@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
@@ -2,6 +2,7 @@ import React from 'react';
2
2
  import { KolButton } from '@public-ui/react';
3
3
 
4
4
  import { FC } from 'react';
5
+ import { SampleDescription } from '../SampleDescription';
5
6
 
6
7
  const ARGS = {
7
8
  className: 'w-8rem',
@@ -11,20 +12,26 @@ const ARGS = {
11
12
  };
12
13
 
13
14
  export const ButtonWidth: FC = () => (
14
- <div className="grid gap-14">
15
- <div className="flex flex-warp gap-14">
16
- <KolButton _label="Primary" _variant="primary" {...ARGS}></KolButton>
17
- <KolButton _label="Secondary" _variant="secondary" {...ARGS}></KolButton>
18
- <KolButton _label="Normal" _variant="normal" {...ARGS}></KolButton>
19
- <KolButton _label="Danger" _variant="danger" {...ARGS}></KolButton>
20
- <KolButton _label="Ghost" _variant="ghost" {...ARGS}></KolButton>
21
- </div>
22
- <div className="flex flex-warp gap-14">
23
- <KolButton _disabled _label="Primary" _variant="primary" {...ARGS}></KolButton>
24
- <KolButton _disabled _label="Secondary" _variant="secondary" {...ARGS}></KolButton>
25
- <KolButton _disabled _label="Normal" _variant="normal" {...ARGS}></KolButton>
26
- <KolButton _disabled _label="Danger" _variant="danger" {...ARGS}></KolButton>
27
- <KolButton _disabled _label="Ghost" _variant="ghost" {...ARGS}></KolButton>
15
+ <>
16
+ <SampleDescription>
17
+ <p>This sample shows KolButton with adjusted widths.</p>
18
+ </SampleDescription>
19
+
20
+ <div className="grid gap-14">
21
+ <div className="flex flex-warp gap-14">
22
+ <KolButton _label="Primary" _variant="primary" {...ARGS}></KolButton>
23
+ <KolButton _label="Secondary" _variant="secondary" {...ARGS}></KolButton>
24
+ <KolButton _label="Normal" _variant="normal" {...ARGS}></KolButton>
25
+ <KolButton _label="Danger" _variant="danger" {...ARGS}></KolButton>
26
+ <KolButton _label="Ghost" _variant="ghost" {...ARGS}></KolButton>
27
+ </div>
28
+ <div className="flex flex-warp gap-14">
29
+ <KolButton _disabled _label="Primary" _variant="primary" {...ARGS}></KolButton>
30
+ <KolButton _disabled _label="Secondary" _variant="secondary" {...ARGS}></KolButton>
31
+ <KolButton _disabled _label="Normal" _variant="normal" {...ARGS}></KolButton>
32
+ <KolButton _disabled _label="Danger" _variant="danger" {...ARGS}></KolButton>
33
+ <KolButton _disabled _label="Ghost" _variant="ghost" {...ARGS}></KolButton>
34
+ </div>
28
35
  </div>
29
- </div>
36
+ </>
30
37
  );
@@ -1,13 +1,24 @@
1
1
  import React from 'react';
2
- import { KolButton, KolButtonGroup } from '@public-ui/react';
2
+ import { KolBadge, KolButton, KolButtonGroup } from '@public-ui/react';
3
3
 
4
4
  import { FC } from 'react';
5
+ import { SampleDescription } from '../SampleDescription';
5
6
 
6
7
  export const ButtonGroupBasic: FC = () => (
7
- <KolButtonGroup>
8
- <KolButton _label="Active" _variant="primary"></KolButton>
9
- <KolButton _label="Not active" _disabled></KolButton>
10
- <KolButton _label="Active" _icons="codicon codicon-home" _variant="danger"></KolButton>
11
- <KolButton _label="Active" _icons="codicon codicon-trash" _hideLabel _variant="ghost"></KolButton>
12
- </KolButtonGroup>
8
+ <>
9
+ <SampleDescription>
10
+ <p>KolButtonGroup shows multiple KolButton-elements visually grouped together.</p>
11
+
12
+ <p>
13
+ <KolBadge _label="The component is deprecated and won't be available anymore in KoliBri version 3." _color="#db5461" />
14
+ </p>
15
+ </SampleDescription>
16
+
17
+ <KolButtonGroup>
18
+ <KolButton _label="Active" _variant="primary"></KolButton>
19
+ <KolButton _label="Not active" _disabled></KolButton>
20
+ <KolButton _label="Active" _icons="codicon codicon-home" _variant="danger"></KolButton>
21
+ <KolButton _label="Active" _icons="codicon codicon-trash" _hideLabel _variant="ghost"></KolButton>
22
+ </KolButtonGroup>
23
+ </>
13
24
  );
@@ -2,22 +2,32 @@ import React from 'react';
2
2
  import { KolButtonLink } from '@public-ui/react';
3
3
 
4
4
  import { FC } from 'react';
5
+ import { SampleDescription } from '../SampleDescription';
5
6
 
6
7
  export const ButtonLinkBasic: FC = () => (
7
- <div className="grid gap-4">
8
- <p>
9
- In diesem Absatz wird ein Link gesetzt, der keine weiteren Attribute enthält. <KolButtonLink _label="Simple Link" /> Er wird standardmäßig als{' '}
10
- <strong>inline-Element</strong> ausgegeben.
11
- </p>
12
- <p>
13
- In diesem Absatz wird ein Link gesetzt, der einmal als inline-block-Element ausgegeben wird.{' '}
14
- <KolButtonLink style={{ display: 'inline-block', margin: '1rem', border: '1px dotted' }} _label="Simple Link" />. Damit kann man mir per CSS-Styles eine
15
- Breite, eine Höhe und andere Eigenschaften zuweisen.
16
- <br />
17
- <br />
18
- Danach folgt ein Link, der als block-Element ausgegeben wird.
19
- <KolButtonLink style={{ display: 'block' }} _label="Simple Link" />
20
- Daher gehe ich über die ganze Breite des Eltern-Elements erzeuge so einen Zeilenumbruch.
21
- </p>
22
- </div>
8
+ <>
9
+ <SampleDescription>
10
+ <p>
11
+ KolButtonLink shows an element, that behaves like a button but looks like a link. The sample illustrates KolButtonLink with different display-properties
12
+ such as <code>block</code>, <code>inline-block</code> and <code>inline</code>. It also demonstrates the disabled-state.
13
+ </p>
14
+ </SampleDescription>
15
+
16
+ <div className="grid gap-4">
17
+ <p>
18
+ In diesem Absatz wird ein Link gesetzt, der keine weiteren Attribute enthält. <KolButtonLink _label="Simple Link" /> Er wird standardmäßig als{' '}
19
+ <strong>inline-Element</strong> ausgegeben.
20
+ </p>
21
+ <p>
22
+ In diesem Absatz wird ein Link gesetzt, der einmal als inline-block-Element ausgegeben wird.{' '}
23
+ <KolButtonLink style={{ display: 'inline-block', margin: '1rem', border: '1px dotted' }} _label="Simple Link" />. Damit kann man mir per CSS-Styles eine
24
+ Breite, eine Höhe und andere Eigenschaften zuweisen.
25
+ <br />
26
+ <br />
27
+ Danach folgt ein Link, der als block-Element ausgegeben wird.
28
+ <KolButtonLink style={{ display: 'block' }} _label="Simple Link" />
29
+ Daher gehe ich über die ganze Breite des Eltern-Elements erzeuge so einen Zeilenumbruch.
30
+ </p>
31
+ </div>
32
+ </>
23
33
  );
@@ -2,36 +2,43 @@ import React from 'react';
2
2
  import { KolButtonLink } from '@public-ui/react';
3
3
 
4
4
  import { FC } from 'react';
5
+ import { SampleDescription } from '../SampleDescription';
5
6
 
6
7
  export const ButtonLinkIcons: FC = () => (
7
- <div className="grid gap-4">
8
- <KolButtonLink _icons="codicon codicon-home" _label="Ich bin ein Link mit Icon links" />
9
- <KolButtonLink
10
- _icons={{
11
- right: 'codicon codicon-home',
12
- }}
13
- _label="Ich bin ein Link mit Icon rechts"
14
- />
15
- <KolButtonLink
16
- _icons={{
17
- top: 'codicon codicon-home',
18
- }}
19
- _label="Ich bin ein Link mit Icon oben"
20
- />
21
- <KolButtonLink
22
- _icons={{
23
- bottom: 'codicon codicon-home',
24
- }}
25
- _label="Ich bin ein Link mit Icon unten"
26
- />
27
- <KolButtonLink
28
- _icons={{
29
- top: 'codicon codicon-home',
30
- right: 'codicon codicon-home',
31
- bottom: 'codicon codicon-home',
32
- left: 'codicon codicon-home',
33
- }}
34
- _label="Ich bin ein Link mit allen Icons"
35
- />
36
- </div>
8
+ <>
9
+ <SampleDescription>
10
+ <p>This sample shows KolButtonLink with icons in different locations.</p>
11
+ </SampleDescription>
12
+
13
+ <div className="grid gap-4">
14
+ <KolButtonLink _icons="codicon codicon-home" _label="Ich bin ein Link mit Icon links" />
15
+ <KolButtonLink
16
+ _icons={{
17
+ right: 'codicon codicon-home',
18
+ }}
19
+ _label="Ich bin ein Link mit Icon rechts"
20
+ />
21
+ <KolButtonLink
22
+ _icons={{
23
+ top: 'codicon codicon-home',
24
+ }}
25
+ _label="Ich bin ein Link mit Icon oben"
26
+ />
27
+ <KolButtonLink
28
+ _icons={{
29
+ bottom: 'codicon codicon-home',
30
+ }}
31
+ _label="Ich bin ein Link mit Icon unten"
32
+ />
33
+ <KolButtonLink
34
+ _icons={{
35
+ top: 'codicon codicon-home',
36
+ right: 'codicon codicon-home',
37
+ bottom: 'codicon codicon-home',
38
+ left: 'codicon codicon-home',
39
+ }}
40
+ _label="Ich bin ein Link mit allen Icons"
41
+ />
42
+ </div>
43
+ </>
37
44
  );
@@ -2,13 +2,20 @@ import React from 'react';
2
2
  import { KolButtonLink } from '@public-ui/react';
3
3
 
4
4
  import { FC } from 'react';
5
+ import { SampleDescription } from '../SampleDescription';
5
6
 
6
7
  export const ButtonLinkImage: FC = () => (
7
- <div className="grid gap-4">
8
- <KolButtonLink _label="Ich bin ein Link, der als Text gerendert wird" />
9
- <br />
10
- <KolButtonLink _label="">
11
- <img alt="Darstellung des KoliBri-Theming" slot="expert" src="abgrenzung.jpg" width="300" />
12
- </KolButtonLink>
13
- </div>
8
+ <>
9
+ <SampleDescription>
10
+ <p>This sample shows KolButtonLink with slot-content instead of a label. The sample uses an image as content.</p>
11
+ </SampleDescription>
12
+
13
+ <div className="grid gap-4">
14
+ <KolButtonLink _label="Ich bin ein Link, der als Text gerendert wird" />
15
+ <br />
16
+ <KolButtonLink _label="">
17
+ <img alt="Darstellung des KoliBri-Theming" slot="expert" src="abgrenzung.jpg" width="300" />
18
+ </KolButtonLink>
19
+ </div>
20
+ </>
14
21
  );
@@ -2,11 +2,18 @@ import React from 'react';
2
2
  import { KolCard } from '@public-ui/react';
3
3
 
4
4
  import { FC } from 'react';
5
+ import { SampleDescription } from '../SampleDescription';
5
6
 
6
7
  export const CardBasic: FC = () => (
7
- <KolCard _heading="Titel" _hasFooter>
8
- <div slot="header">Zusätzlicher Header</div>
9
- <div slot="content">Inhalt</div>
10
- <div slot="footer">Fusszeile</div>
11
- </KolCard>
8
+ <>
9
+ <SampleDescription>
10
+ <p>KolCard shows a card with title and slot content. The second sample features a close button.</p>
11
+ </SampleDescription>
12
+
13
+ <KolCard _heading="Titel" _hasFooter>
14
+ <div slot="header">Zusätzlicher Header</div>
15
+ <div slot="content">Inhalt</div>
16
+ <div slot="footer">Fusszeile</div>
17
+ </KolCard>
18
+ </>
12
19
  );
@@ -2,17 +2,8 @@ import { Routes } from '../../shares/types';
2
2
 
3
3
  import { CardBasic } from './basic';
4
4
 
5
- import { CardConfirm } from './confirm';
6
-
7
- import { CardFlex } from './flex';
8
-
9
- import { CardSelection } from './selection';
10
-
11
5
  export const CARD_ROUTES: Routes = {
12
6
  card: {
13
7
  basic: CardBasic,
14
- confirm: CardConfirm,
15
- flex: CardFlex,
16
- selection: CardSelection,
17
8
  },
18
9
  };
@@ -2,18 +2,27 @@ import React from 'react';
2
2
  import { KolDetails } from '@public-ui/react';
3
3
 
4
4
  import { FC } from 'react';
5
+ import { SampleDescription } from '../SampleDescription';
5
6
 
6
7
  export const DetailsBasic: FC = () => (
7
- <p className="grid gap-4">
8
- <KolDetails _summary="Nach Laden der Seite geschlossen">
9
- Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
10
- voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet.
11
- Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt.
12
- </KolDetails>
13
- <KolDetails _summary="Nach Laden der Seite geöffnet" _open>
14
- Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
15
- voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet.
16
- Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt.
17
- </KolDetails>
18
- </p>
8
+ <>
9
+ <SampleDescription>
10
+ <p>
11
+ KolDetails hides its content until opened. The open state can be toggled either by clicking the label or by setting the <code>_open</code>-prop
12
+ programmatically. The sample includes an initially open state and a disabled but open Details component.
13
+ </p>
14
+ </SampleDescription>
15
+ <p className="grid gap-4">
16
+ <KolDetails _summary="Nach Laden der Seite geschlossen">
17
+ Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
18
+ voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet.
19
+ Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt.
20
+ </KolDetails>
21
+ <KolDetails _summary="Nach Laden der Seite geöffnet" _open>
22
+ Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
23
+ voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet.
24
+ Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt.
25
+ </KolDetails>
26
+ </p>
27
+ </>
19
28
  );
@@ -2,26 +2,34 @@ import React from 'react';
2
2
  import { KolBadge, KolHeading } from '@public-ui/react';
3
3
 
4
4
  import { FC } from 'react';
5
+ import { SampleDescription } from '../SampleDescription';
5
6
 
6
7
  export const HeadingBadged: FC = () => (
7
- <div className="grid gap-4">
8
- <KolHeading _label="" _level={1}>
9
- Eine Überschrift mit einem <KolBadge _color="#f00" _label="Label"></KolBadge>
10
- </KolHeading>
11
- <KolHeading _label="" _level={2}>
12
- Eine Überschrift mit einem <KolBadge _color="#0f0" _label="Label"></KolBadge>
13
- </KolHeading>
14
- <KolHeading _label="" _level={3}>
15
- Eine Überschrift mit einem <KolBadge _color="#00f" _label="Label"></KolBadge>
16
- </KolHeading>
17
- <KolHeading _label="" _level={4}>
18
- Eine Überschrift mit einem <KolBadge _color="#800080" _label="Label"></KolBadge>
19
- </KolHeading>
20
- <KolHeading _label="" _level={5}>
21
- Eine Überschrift mit einem <KolBadge _color="#ff0" _label="Label"></KolBadge>
22
- </KolHeading>
23
- <KolHeading _label="" _level={6}>
24
- Eine Überschrift mit einem <KolBadge _color="#ffc0cb" _label="Label"></KolBadge>
25
- </KolHeading>
26
- </div>
8
+ <>
9
+ <SampleDescription>
10
+ <p>
11
+ This sample shows KolHeading with its different levels and content provided using the export slot instead of the <code>_label</code>-property.
12
+ </p>
13
+ </SampleDescription>
14
+ <div className="grid gap-4">
15
+ <KolHeading _label="" _level={1}>
16
+ Eine Überschrift mit einem <KolBadge _color="#f00" _label="Label"></KolBadge>
17
+ </KolHeading>
18
+ <KolHeading _label="" _level={2}>
19
+ Eine Überschrift mit einem <KolBadge _color="#0f0" _label="Label"></KolBadge>
20
+ </KolHeading>
21
+ <KolHeading _label="" _level={3}>
22
+ Eine Überschrift mit einem <KolBadge _color="#00f" _label="Label"></KolBadge>
23
+ </KolHeading>
24
+ <KolHeading _label="" _level={4}>
25
+ Eine Überschrift mit einem <KolBadge _color="#800080" _label="Label"></KolBadge>
26
+ </KolHeading>
27
+ <KolHeading _label="" _level={5}>
28
+ Eine Überschrift mit einem <KolBadge _color="#ff0" _label="Label"></KolBadge>
29
+ </KolHeading>
30
+ <KolHeading _label="" _level={6}>
31
+ Eine Überschrift mit einem <KolBadge _color="#ffc0cb" _label="Label"></KolBadge>
32
+ </KolHeading>
33
+ </div>
34
+ </>
27
35
  );
@@ -2,14 +2,20 @@ import React from 'react';
2
2
  import { KolHeading } from '@public-ui/react';
3
3
 
4
4
  import { FC } from 'react';
5
+ import { SampleDescription } from '../SampleDescription';
5
6
 
6
7
  export const HeadingBasic: FC = () => (
7
- <div className="grid gap-4">
8
- <KolHeading _label="Ich bin eine H1-Überschrift" _level={1} />
9
- <KolHeading _label="Ich bin eine H2-Überschrift" _level={2} />
10
- <KolHeading _label="Ich bin eine H3-Überschrift" _level={3} />
11
- <KolHeading _label="Ich bin eine H4-Überschrift" _level={4} />
12
- <KolHeading _label="Ich bin eine H5-Überschrift" _level={5} />
13
- <KolHeading _label="Ich bin eine H6-Überschrift" _level={6} />
14
- </div>
8
+ <>
9
+ <SampleDescription>
10
+ <p>KolHeading renders a heading with the given level.</p>
11
+ </SampleDescription>
12
+ <div className="grid gap-4">
13
+ <KolHeading _label="Ich bin eine H1-Überschrift" _level={1} />
14
+ <KolHeading _label="Ich bin eine H2-Überschrift" _level={2} />
15
+ <KolHeading _label="Ich bin eine H3-Überschrift" _level={3} />
16
+ <KolHeading _label="Ich bin eine H4-Überschrift" _level={4} />
17
+ <KolHeading _label="Ich bin eine H5-Überschrift" _level={5} />
18
+ <KolHeading _label="Ich bin eine H6-Überschrift" _level={6} />
19
+ </div>
20
+ </>
15
21
  );
@@ -2,44 +2,50 @@ import React from 'react';
2
2
  import { KolHeading } from '@public-ui/react';
3
3
 
4
4
  import { FC } from 'react';
5
+ import { SampleDescription } from '../SampleDescription';
5
6
 
6
7
  export const HeadingParagraph: FC = () => (
7
- <div className="grid gap-4">
8
- <KolHeading _label="Ich bin eine H1-Überschrift" _level={1} />
9
- <p>
10
- Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
11
- voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet.
12
- Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor.
13
- </p>
14
- <KolHeading _label="Ich bin eine H2-Überschrift" _level={2} />
15
- <p>
16
- Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
17
- voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet.
18
- Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor.
19
- </p>
20
- <KolHeading _label="Ich bin eine H3-Überschrift" _level={3} />
21
- <p>
22
- Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
23
- voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet.
24
- Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor.
25
- </p>
26
- <KolHeading _label="Ich bin eine H4-Überschrift" _level={4} />
27
- <p>
28
- Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
29
- voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet.
30
- Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor.
31
- </p>
32
- <KolHeading _label="Ich bin eine H5-Überschrift" _level={5} />
33
- <p>
34
- Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
35
- voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet.
36
- Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor.
37
- </p>
38
- <KolHeading _label="Ich bin eine H6-Überschrift" _level={6} />
39
- <p>
40
- Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
41
- voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet.
42
- Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor.
43
- </p>
44
- </div>
8
+ <>
9
+ <SampleDescription>
10
+ <p>This sample shows KolHeading with its different levels combined with some text content each.</p>
11
+ </SampleDescription>
12
+ <div className="grid gap-4">
13
+ <KolHeading _label="Ich bin eine H1-Überschrift" _level={1} />
14
+ <p>
15
+ Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
16
+ voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet.
17
+ Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor.
18
+ </p>
19
+ <KolHeading _label="Ich bin eine H2-Überschrift" _level={2} />
20
+ <p>
21
+ Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
22
+ voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet.
23
+ Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor.
24
+ </p>
25
+ <KolHeading _label="Ich bin eine H3-Überschrift" _level={3} />
26
+ <p>
27
+ Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
28
+ voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet.
29
+ Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor.
30
+ </p>
31
+ <KolHeading _label="Ich bin eine H4-Überschrift" _level={4} />
32
+ <p>
33
+ Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
34
+ voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet.
35
+ Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor.
36
+ </p>
37
+ <KolHeading _label="Ich bin eine H5-Überschrift" _level={5} />
38
+ <p>
39
+ Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
40
+ voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet.
41
+ Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor.
42
+ </p>
43
+ <KolHeading _label="Ich bin eine H6-Überschrift" _level={6} />
44
+ <p>
45
+ Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
46
+ voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet.
47
+ Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor.
48
+ </p>
49
+ </div>
50
+ </>
45
51
  );
@@ -2,16 +2,22 @@ import React from 'react';
2
2
  import { KolIcon } from '@public-ui/react';
3
3
 
4
4
  import { FC } from 'react';
5
+ import { SampleDescription } from '../SampleDescription';
5
6
 
6
7
  export const IconBasic: FC = () => (
7
- <div className="grid gap-4">
8
- <KolIcon _ariaLabel="" _icons="codicon codicon-home" />
9
- <KolIcon
10
- style={{
11
- color: 'red',
12
- }}
13
- _ariaLabel=""
14
- _icons="codicon codicon-home"
15
- />
16
- </div>
8
+ <>
9
+ <SampleDescription>
10
+ <p>KolIcon renders an icon. This sample shows one regular icon and one with a custom style-property, changing the icon color.</p>
11
+ </SampleDescription>
12
+ <div className="grid gap-4">
13
+ <KolIcon _ariaLabel="" _icons="codicon codicon-home" />
14
+ <KolIcon
15
+ style={{
16
+ color: 'red',
17
+ }}
18
+ _ariaLabel=""
19
+ _icons="codicon codicon-home"
20
+ />
21
+ </div>
22
+ </>
17
23
  );
@@ -1,5 +1,13 @@
1
1
  import { FC } from 'react';
2
2
  import { KolImage } from '@public-ui/react';
3
3
  import React from 'react';
4
+ import { SampleDescription } from '../SampleDescription';
4
5
 
5
- export const ImageBasic: FC = () => <KolImage className="w-80%" _src="abgrenzung.jpg" _alt="Darstellung des KoliBri-Theming" />;
6
+ export const ImageBasic: FC = () => (
7
+ <>
8
+ <SampleDescription>
9
+ <p>KolImage renders an image. The sample shows an image with alternative text.</p>
10
+ </SampleDescription>
11
+ <KolImage className="w-80%" _src="abgrenzung.jpg" _alt="Darstellung des KoliBri-Theming" />
12
+ </>
13
+ );
@@ -2,23 +2,31 @@ import React from 'react';
2
2
  import { KolIndentedText } from '@public-ui/react';
3
3
 
4
4
  import { FC } from 'react';
5
+ import { SampleDescription } from '../SampleDescription';
5
6
 
6
7
  export const IndentedTextBasic: FC = () => (
7
- <div className="grid gap-4">
8
- <p>
9
- Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
10
- voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet.
11
- Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt.
12
- </p>
13
- <KolIndentedText>
14
- Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
15
- voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet.
16
- Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt.
17
- </KolIndentedText>
18
- <p>
19
- Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
20
- voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet.
21
- Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt.
22
- </p>
23
- </div>
8
+ <>
9
+ <SampleDescription>
10
+ <p>
11
+ KolIndentedText renders the given slot content, styled as indented text. The sample shows two regular paragraphs with an indented paragraph in between.
12
+ </p>
13
+ </SampleDescription>
14
+ <div className="grid gap-4">
15
+ <p>
16
+ Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
17
+ voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet.
18
+ Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt.
19
+ </p>
20
+ <KolIndentedText>
21
+ Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
22
+ voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet.
23
+ Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt.
24
+ </KolIndentedText>
25
+ <p>
26
+ Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
27
+ voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet.
28
+ Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt.
29
+ </p>
30
+ </div>
31
+ </>
24
32
  );
@@ -1,5 +1,13 @@
1
1
  import React, { FC } from 'react';
2
2
  import { FormWrap } from '../FormWrap';
3
3
  import { InputCheckboxVariants } from './partials/variants';
4
+ import { SampleDescription } from '../SampleDescription';
4
5
 
5
- export const InputCheckboxBasic: FC = () => <FormWrap RefComponent={InputCheckboxVariants} />;
6
+ export const InputCheckboxBasic: FC = () => (
7
+ <>
8
+ <SampleDescription>
9
+ <p>KolInputCheckbox renders a checkbox. The sample shows KolInputCheckbox in a form context with all variations and states.</p>
10
+ </SampleDescription>
11
+ <FormWrap RefComponent={InputCheckboxVariants} />
12
+ </>
13
+ );