@public-ui/sample-react 2.0.8 → 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 (288) 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/{9340.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 -17750
  71. package/dist/main.js.LICENSE.txt +2 -2
  72. package/package.json +13 -13
  73. package/src/App.tsx +1 -1
  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/link/basic.tsx +25 -19
  123. package/src/components/link/icons.tsx +40 -34
  124. package/src/components/link/image.tsx +18 -12
  125. package/src/components/link/target.tsx +14 -8
  126. package/src/components/link-button/basic.tsx +14 -8
  127. package/src/components/link-group/basic.tsx +9 -1
  128. package/src/components/link-group/horizontal.tsx +9 -1
  129. package/src/components/logo/basic.tsx +9 -1
  130. package/src/components/modal/basic.tsx +37 -28
  131. package/src/components/nav/basic.tsx +7 -1
  132. package/src/components/nav/horizontal.tsx +12 -3
  133. package/src/components/pagination/basic.tsx +24 -16
  134. package/src/components/progress/basic.tsx +10 -4
  135. package/src/components/quote/basic.tsx +7 -1
  136. package/src/components/quote/block.tsx +15 -6
  137. package/src/components/select/basic.tsx +12 -1
  138. package/src/components/spin/basic.tsx +9 -1
  139. package/src/components/spin/custom.tsx +9 -3
  140. package/src/components/spin/cycle.tsx +9 -1
  141. package/src/components/split-button/basic.tsx +17 -8
  142. package/src/components/table/badge-size.tsx +12 -1
  143. package/src/components/table/sort-data.tsx +14 -4
  144. package/src/components/table/with-pagination.tsx +12 -3
  145. package/src/components/tabs/basic.tsx +18 -12
  146. package/src/components/tabs/icons-only.tsx +12 -6
  147. package/src/components/textarea/adjust-height.tsx +14 -8
  148. package/src/components/textarea/basic.tsx +9 -1
  149. package/src/components/textarea/counter.tsx +7 -1
  150. package/src/components/textarea/disabled.tsx +9 -3
  151. package/src/components/textarea/placeholder.tsx +9 -3
  152. package/src/components/textarea/readonly.tsx +9 -3
  153. package/src/components/textarea/resize.tsx +13 -7
  154. package/src/components/textarea/rows.tsx +9 -3
  155. package/src/components/toast/basic.tsx +17 -11
  156. package/src/components/version/basic.tsx +9 -2
  157. package/src/components/version/context.tsx +11 -5
  158. package/src/react.main.tsx +11 -3
  159. package/src/scenarios/complex-form/component.tsx +2 -1
  160. package/src/scenarios/complex-form/kopfdaten/component.tsx +2 -1
  161. package/src/scenarios/complex-form/location/component.tsx +2 -1
  162. package/src/scenarios/complex-form/schedule/component.tsx +2 -1
  163. package/src/scenarios/static-form.tsx +15 -0
  164. package/src/shares/types.ts +1 -1
  165. package/dist/104.js +0 -2
  166. package/dist/1296.js +0 -2
  167. package/dist/1461.js +0 -2
  168. package/dist/1684.js +0 -2
  169. package/dist/1685.js +0 -2
  170. package/dist/1888.js +0 -2
  171. package/dist/2120.js +0 -2
  172. package/dist/2240.js +0 -2
  173. package/dist/2364.js +0 -2
  174. package/dist/2392.js +0 -2
  175. package/dist/2444.js +0 -2
  176. package/dist/2628.js +0 -2
  177. package/dist/2740.js +0 -2
  178. package/dist/2764.js +0 -2
  179. package/dist/2782.js +0 -2
  180. package/dist/2812.js +0 -2
  181. package/dist/3200.js +0 -2
  182. package/dist/3204.js +0 -2
  183. package/dist/352.js +0 -2
  184. package/dist/3564.js +0 -2
  185. package/dist/3920.js +0 -2
  186. package/dist/4064.js +0 -2
  187. package/dist/4136.js +0 -1
  188. package/dist/4544.js +0 -2
  189. package/dist/4728.js +0 -2
  190. package/dist/4915.js +0 -2
  191. package/dist/4988.js +0 -2
  192. package/dist/5376.js +0 -2
  193. package/dist/5456.js +0 -2
  194. package/dist/5628.js +0 -2
  195. package/dist/5744.js +0 -2
  196. package/dist/5768.js +0 -2
  197. package/dist/5839.js +0 -2
  198. package/dist/5956.js +0 -2
  199. package/dist/5972.js +0 -2
  200. package/dist/6040.js +0 -2
  201. package/dist/6476.js +0 -2
  202. package/dist/7192.js +0 -2
  203. package/dist/72.js +0 -2
  204. package/dist/7312.js +0 -2
  205. package/dist/736.js +0 -2
  206. package/dist/7496.js +0 -2
  207. package/dist/7508.js +0 -2
  208. package/dist/7596.js +0 -2
  209. package/dist/7712.js +0 -2
  210. package/dist/7804.js +0 -2
  211. package/dist/7808.js +0 -2
  212. package/dist/8188.js +0 -2
  213. package/dist/8232.js +0 -2
  214. package/dist/8248.js +0 -2
  215. package/dist/828.js +0 -2
  216. package/dist/8476.js +0 -2
  217. package/dist/8524.js +0 -2
  218. package/dist/9072.js +0 -2
  219. package/dist/9088.js +0 -2
  220. package/dist/9200.js +0 -2
  221. package/dist/9404.js +0 -2
  222. package/dist/9424.js +0 -2
  223. package/dist/9680.js +0 -2
  224. package/dist/9888.js +0 -2
  225. /package/dist/{104.js.LICENSE.txt → 1090.js.LICENSE.txt} +0 -0
  226. /package/dist/{1296.js.LICENSE.txt → 1181.js.LICENSE.txt} +0 -0
  227. /package/dist/{1461.js.LICENSE.txt → 1218.js.LICENSE.txt} +0 -0
  228. /package/dist/{1684.js.LICENSE.txt → 1280.js.LICENSE.txt} +0 -0
  229. /package/dist/{1685.js.LICENSE.txt → 1338.js.LICENSE.txt} +0 -0
  230. /package/dist/{1888.js.LICENSE.txt → 1517.js.LICENSE.txt} +0 -0
  231. /package/dist/{2120.js.LICENSE.txt → 1596.js.LICENSE.txt} +0 -0
  232. /package/dist/{2240.js.LICENSE.txt → 2079.js.LICENSE.txt} +0 -0
  233. /package/dist/{2364.js.LICENSE.txt → 2163.js.LICENSE.txt} +0 -0
  234. /package/dist/{2392.js.LICENSE.txt → 2415.js.LICENSE.txt} +0 -0
  235. /package/dist/{2444.js.LICENSE.txt → 2594.js.LICENSE.txt} +0 -0
  236. /package/dist/{2628.js.LICENSE.txt → 2611.js.LICENSE.txt} +0 -0
  237. /package/dist/{2740.js.LICENSE.txt → 2643.js.LICENSE.txt} +0 -0
  238. /package/dist/{2764.js.LICENSE.txt → 3034.js.LICENSE.txt} +0 -0
  239. /package/dist/{2782.js.LICENSE.txt → 3099.js.LICENSE.txt} +0 -0
  240. /package/dist/{2812.js.LICENSE.txt → 3145.js.LICENSE.txt} +0 -0
  241. /package/dist/{2984.js.LICENSE.txt → 3345.js.LICENSE.txt} +0 -0
  242. /package/dist/{3200.js.LICENSE.txt → 3388.js.LICENSE.txt} +0 -0
  243. /package/dist/{3204.js.LICENSE.txt → 3466.js.LICENSE.txt} +0 -0
  244. /package/dist/{3384.js.LICENSE.txt → 3580.js.LICENSE.txt} +0 -0
  245. /package/dist/{352.js.LICENSE.txt → 3600.js.LICENSE.txt} +0 -0
  246. /package/dist/{3564.js.LICENSE.txt → 3619.js.LICENSE.txt} +0 -0
  247. /package/dist/{3920.js.LICENSE.txt → 3776.js.LICENSE.txt} +0 -0
  248. /package/dist/{4064.js.LICENSE.txt → 3845.js.LICENSE.txt} +0 -0
  249. /package/dist/{4544.js.LICENSE.txt → 4150.js.LICENSE.txt} +0 -0
  250. /package/dist/{4728.js.LICENSE.txt → 42.js.LICENSE.txt} +0 -0
  251. /package/dist/{4915.js.LICENSE.txt → 4279.js.LICENSE.txt} +0 -0
  252. /package/dist/{4988.js.LICENSE.txt → 4463.js.LICENSE.txt} +0 -0
  253. /package/dist/{5376.js.LICENSE.txt → 4669.js.LICENSE.txt} +0 -0
  254. /package/dist/{5456.js.LICENSE.txt → 4686.js.LICENSE.txt} +0 -0
  255. /package/dist/{5628.js.LICENSE.txt → 4689.js.LICENSE.txt} +0 -0
  256. /package/dist/{5744.js.LICENSE.txt → 4756.js.LICENSE.txt} +0 -0
  257. /package/dist/{5768.js.LICENSE.txt → 5027.js.LICENSE.txt} +0 -0
  258. /package/dist/{5839.js.LICENSE.txt → 521.js.LICENSE.txt} +0 -0
  259. /package/dist/{5956.js.LICENSE.txt → 5324.js.LICENSE.txt} +0 -0
  260. /package/dist/{5972.js.LICENSE.txt → 5373.js.LICENSE.txt} +0 -0
  261. /package/dist/{6040.js.LICENSE.txt → 5518.js.LICENSE.txt} +0 -0
  262. /package/dist/{6112.js.LICENSE.txt → 5853.js.LICENSE.txt} +0 -0
  263. /package/dist/{6476.js.LICENSE.txt → 6010.js.LICENSE.txt} +0 -0
  264. /package/dist/{7192.js.LICENSE.txt → 6308.js.LICENSE.txt} +0 -0
  265. /package/dist/{72.js.LICENSE.txt → 6826.js.LICENSE.txt} +0 -0
  266. /package/dist/{7312.js.LICENSE.txt → 7170.js.LICENSE.txt} +0 -0
  267. /package/dist/{736.js.LICENSE.txt → 755.js.LICENSE.txt} +0 -0
  268. /package/dist/{7496.js.LICENSE.txt → 7654.js.LICENSE.txt} +0 -0
  269. /package/dist/{7508.js.LICENSE.txt → 8037.js.LICENSE.txt} +0 -0
  270. /package/dist/{7596.js.LICENSE.txt → 817.js.LICENSE.txt} +0 -0
  271. /package/dist/{7712.js.LICENSE.txt → 8180.js.LICENSE.txt} +0 -0
  272. /package/dist/{7804.js.LICENSE.txt → 8341.js.LICENSE.txt} +0 -0
  273. /package/dist/{7808.js.LICENSE.txt → 8612.js.LICENSE.txt} +0 -0
  274. /package/dist/{8188.js.LICENSE.txt → 8734.js.LICENSE.txt} +0 -0
  275. /package/dist/{8232.js.LICENSE.txt → 881.js.LICENSE.txt} +0 -0
  276. /package/dist/{8248.js.LICENSE.txt → 8869.js.LICENSE.txt} +0 -0
  277. /package/dist/{828.js.LICENSE.txt → 892.js.LICENSE.txt} +0 -0
  278. /package/dist/{8476.js.LICENSE.txt → 8948.js.LICENSE.txt} +0 -0
  279. /package/dist/{8524.js.LICENSE.txt → 8951.js.LICENSE.txt} +0 -0
  280. /package/dist/{9072.js.LICENSE.txt → 9150.js.LICENSE.txt} +0 -0
  281. /package/dist/{9088.js.LICENSE.txt → 9317.js.LICENSE.txt} +0 -0
  282. /package/dist/{9200.js.LICENSE.txt → 9330.js.LICENSE.txt} +0 -0
  283. /package/dist/{9224.js.LICENSE.txt → 9681.js.LICENSE.txt} +0 -0
  284. /package/dist/{9340.js.LICENSE.txt → 9700.js.LICENSE.txt} +0 -0
  285. /package/dist/{9404.js.LICENSE.txt → 9727.js.LICENSE.txt} +0 -0
  286. /package/dist/{9424.js.LICENSE.txt → 9797.js.LICENSE.txt} +0 -0
  287. /package/dist/{9680.js.LICENSE.txt → 9865.js.LICENSE.txt} +0 -0
  288. /package/dist/{9888.js.LICENSE.txt → 9886.js.LICENSE.txt} +0 -0
@@ -3,5 +3,13 @@ import React from 'react';
3
3
 
4
4
  import { FocusElement } from '../FocusInput';
5
5
  import { ButtonVariants } from './partials/variants';
6
+ import { SampleDescription } from '../SampleDescription';
6
7
 
7
- export const ButtonBasic: FC = () => <FocusElement RefComponent={ButtonVariants} />;
8
+ export const ButtonBasic: FC = () => (
9
+ <>
10
+ <SampleDescription>
11
+ <p>Hier sind anklickbare und nicht anklickbare Buttons. Es gibt außerdem Buttons mit Label und ohne Label.</p>
12
+ </SampleDescription>
13
+ <FocusElement RefComponent={ButtonVariants} />
14
+ </>
15
+ );
@@ -3,6 +3,7 @@ import React from 'react';
3
3
  import { KolButton } from '@public-ui/react';
4
4
 
5
5
  import type { FC } from 'react';
6
+ import { SampleDescription } from '../SampleDescription';
6
7
 
7
8
  const ARGS = {
8
9
  _icons: 'codicon codicon-home',
@@ -13,20 +14,28 @@ const ARGS = {
13
14
  };
14
15
 
15
16
  export const ButtonIconOnly: FC = () => (
16
- <div className="grid gap-14">
17
- <div className="flex flex-wrap gap-14">
18
- <KolButton _label="Primary" _variant="primary" _tooltipAlign="top" {...ARGS}></KolButton>
19
- <KolButton _label="Secondary" _variant="secondary" _tooltipAlign="right" {...ARGS}></KolButton>
20
- <KolButton _label="Normal" _variant="normal" _tooltipAlign="bottom" {...ARGS}></KolButton>
21
- <KolButton _label="Danger" _variant="danger" _tooltipAlign="left" {...ARGS}></KolButton>
22
- <KolButton _label="Ghost" _variant="ghost" {...ARGS}></KolButton>
17
+ <>
18
+ <SampleDescription>
19
+ <p>
20
+ Hier sind Buttons aktiviert und deaktiviert. Sie beinhalten kein Label. Das Label wird beim anklicken oder als Tooltip angezeigt. Beim anklicken wird
21
+ ein alert als Popup ausgeführt.
22
+ </p>
23
+ </SampleDescription>
24
+ <div className="grid gap-14">
25
+ <div className="flex flex-wrap gap-14">
26
+ <KolButton _label="Primary" _variant="primary" _tooltipAlign="top" {...ARGS}></KolButton>
27
+ <KolButton _label="Secondary" _variant="secondary" _tooltipAlign="right" {...ARGS}></KolButton>
28
+ <KolButton _label="Normal" _variant="normal" _tooltipAlign="bottom" {...ARGS}></KolButton>
29
+ <KolButton _label="Danger" _variant="danger" _tooltipAlign="left" {...ARGS}></KolButton>
30
+ <KolButton _label="Ghost" _variant="ghost" {...ARGS}></KolButton>
31
+ </div>
32
+ <div className="flex flex-wrap gap-14">
33
+ <KolButton _disabled _label="Primary" _variant="primary" {...ARGS}></KolButton>
34
+ <KolButton _disabled _label="Secondary" _variant="secondary" {...ARGS}></KolButton>
35
+ <KolButton _disabled _label="Normal" _variant="normal" {...ARGS}></KolButton>
36
+ <KolButton _disabled _label="Danger" _variant="danger" {...ARGS}></KolButton>
37
+ <KolButton _disabled _label="Ghost" _variant="ghost" {...ARGS}></KolButton>
38
+ </div>
23
39
  </div>
24
- <div className="flex flex-wrap gap-14">
25
- <KolButton _disabled _label="Primary" _variant="primary" {...ARGS}></KolButton>
26
- <KolButton _disabled _label="Secondary" _variant="secondary" {...ARGS}></KolButton>
27
- <KolButton _disabled _label="Normal" _variant="normal" {...ARGS}></KolButton>
28
- <KolButton _disabled _label="Danger" _variant="danger" {...ARGS}></KolButton>
29
- <KolButton _disabled _label="Ghost" _variant="ghost" {...ARGS}></KolButton>
30
- </div>
31
- </div>
40
+ </>
32
41
  );
@@ -3,26 +3,32 @@ import React from 'react';
3
3
  import { KolButton } from '@public-ui/react';
4
4
 
5
5
  import type { FC } from 'react';
6
+ import { SampleDescription } from '../SampleDescription';
6
7
 
7
8
  export const ButtonIcons: FC = () => (
8
- <KolButton
9
- _icons={{
10
- bottom: 'codicon codicon-arrow-down',
11
- left: {
12
- icon: 'codicon codicon-arrow-left',
13
- },
14
- top: {
15
- style: {
16
- 'font-size': '200%',
17
- transform: 'rotate(45deg)',
9
+ <>
10
+ <SampleDescription>
11
+ <p>Hier wird ein Button mit dem Label &apos;Label&apos; angezeigt. Beim anklicken wird ein alert als Popup ausgeführt. </p>
12
+ </SampleDescription>
13
+ <KolButton
14
+ _icons={{
15
+ bottom: 'codicon codicon-arrow-down',
16
+ left: {
17
+ icon: 'codicon codicon-arrow-left',
18
18
  },
19
- icon: 'codicon codicon-arrow-up',
20
- },
21
- right: 'codicon codicon-arrow-right',
22
- }}
23
- _label="Label"
24
- _on={{
25
- onClick: (_event, _value) => alert('Klick!'),
26
- }}
27
- />
19
+ top: {
20
+ style: {
21
+ 'font-size': '200%',
22
+ transform: 'rotate(45deg)',
23
+ },
24
+ icon: 'codicon codicon-arrow-up',
25
+ },
26
+ right: 'codicon codicon-arrow-right',
27
+ }}
28
+ _label="Label"
29
+ _on={{
30
+ onClick: (_event, _value) => alert('Klick!'),
31
+ }}
32
+ />
33
+ </>
28
34
  );
@@ -3,6 +3,7 @@ import React from 'react';
3
3
  import { KolButton } from '@public-ui/react';
4
4
 
5
5
  import type { FC } from 'react';
6
+ import { SampleDescription } from '../SampleDescription';
6
7
 
7
8
  const ARGS = {
8
9
  className: 'w-8rem',
@@ -12,20 +13,25 @@ const ARGS = {
12
13
  };
13
14
 
14
15
  export const ButtonWidth: FC = () => (
15
- <div className="grid gap-14">
16
- <div className="flex flex-wrap gap-14">
17
- <KolButton _label="Primary" _variant="primary" {...ARGS}></KolButton>
18
- <KolButton _label="Secondary" _variant="secondary" {...ARGS}></KolButton>
19
- <KolButton _label="Normal" _variant="normal" {...ARGS}></KolButton>
20
- <KolButton _label="Danger" _variant="danger" {...ARGS}></KolButton>
21
- <KolButton _label="Ghost" _variant="ghost" {...ARGS}></KolButton>
16
+ <>
17
+ <SampleDescription>
18
+ <p>Hier werden breite Buttons angezeigt. Beim anklicken wird ein alert als Popup ausgeführt.</p>
19
+ </SampleDescription>
20
+ <div className="grid gap-14">
21
+ <div className="flex flex-wrap 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-wrap 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>
22
35
  </div>
23
- <div className="flex flex-wrap gap-14">
24
- <KolButton _disabled _label="Primary" _variant="primary" {...ARGS}></KolButton>
25
- <KolButton _disabled _label="Secondary" _variant="secondary" {...ARGS}></KolButton>
26
- <KolButton _disabled _label="Normal" _variant="normal" {...ARGS}></KolButton>
27
- <KolButton _disabled _label="Danger" _variant="danger" {...ARGS}></KolButton>
28
- <KolButton _disabled _label="Ghost" _variant="ghost" {...ARGS}></KolButton>
29
- </div>
30
- </div>
36
+ </>
31
37
  );
@@ -1,14 +1,20 @@
1
1
  import React from 'react';
2
2
 
3
3
  import { KolButton, KolButtonGroup } from '@public-ui/react';
4
+ import { SampleDescription } from '../SampleDescription';
4
5
 
5
6
  import type { FC } from 'react';
6
7
 
7
8
  export const ButtonGroupBasic: FC = () => (
8
- <KolButtonGroup>
9
- <KolButton _label="Active" _variant="primary"></KolButton>
10
- <KolButton _label="Not active" _disabled></KolButton>
11
- <KolButton _label="Active" _icons="codicon codicon-home" _variant="danger"></KolButton>
12
- <KolButton _label="Active" _icons="codicon codicon-trash" _hideLabel _variant="ghost"></KolButton>
13
- </KolButtonGroup>
9
+ <>
10
+ <SampleDescription>
11
+ <p>Hier werden Vier verschiedene Buttons angezeigt. Drei davon lassen sich anklicken und in den Status Active versetzen.</p>
12
+ </SampleDescription>
13
+ <KolButtonGroup>
14
+ <KolButton _label="Active" _variant="primary"></KolButton>
15
+ <KolButton _label="Not active" _disabled></KolButton>
16
+ <KolButton _label="Active" _icons="codicon codicon-home" _variant="danger"></KolButton>
17
+ <KolButton _label="Active" _icons="codicon codicon-trash" _hideLabel _variant="ghost"></KolButton>
18
+ </KolButtonGroup>
19
+ </>
14
20
  );
@@ -3,36 +3,42 @@ import React from 'react';
3
3
  import { KolButtonLink } from '@public-ui/react';
4
4
 
5
5
  import type { FC } from 'react';
6
+ import { SampleDescription } from '../SampleDescription';
6
7
 
7
8
  export const ButtonLinkIcons: FC = () => (
8
- <div className="grid gap-4">
9
- <KolButtonLink _icons="codicon codicon-home" _label="Ich bin ein Link mit Icon links" />
10
- <KolButtonLink
11
- _icons={{
12
- right: 'codicon codicon-home',
13
- }}
14
- _label="Ich bin ein Link mit Icon rechts"
15
- />
16
- <KolButtonLink
17
- _icons={{
18
- top: 'codicon codicon-home',
19
- }}
20
- _label="Ich bin ein Link mit Icon oben"
21
- />
22
- <KolButtonLink
23
- _icons={{
24
- bottom: 'codicon codicon-home',
25
- }}
26
- _label="Ich bin ein Link mit Icon unten"
27
- />
28
- <KolButtonLink
29
- _icons={{
30
- top: 'codicon codicon-home',
31
- right: 'codicon codicon-home',
32
- bottom: 'codicon codicon-home',
33
- left: 'codicon codicon-home',
34
- }}
35
- _label="Ich bin ein Link mit allen Icons"
36
- />
37
- </div>
9
+ <>
10
+ <SampleDescription>
11
+ <p>Hier werden verschiedene Links mit Icons angezeigt. Die Links führen zu keinem Ziel.</p>
12
+ </SampleDescription>
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
+ </>
38
44
  );
@@ -3,13 +3,19 @@ import React from 'react';
3
3
  import { KolButtonLink } from '@public-ui/react';
4
4
 
5
5
  import type { FC } from 'react';
6
+ import { SampleDescription } from '../SampleDescription';
6
7
 
7
8
  export const ButtonLinkImage: FC = () => (
8
- <div className="grid gap-4">
9
- <KolButtonLink _label="Ich bin ein Link, der als Text gerendert wird" />
10
- <br />
11
- <KolButtonLink _label="">
12
- <img alt="Darstellung des KoliBri-Theming" slot="expert" src="abgrenzung.jpg" width="300" />
13
- </KolButtonLink>
14
- </div>
9
+ <>
10
+ <SampleDescription>
11
+ <p>Hier wird ein Link angezeigt, der als Text gerendert wird. Nach klicken auf den Link wird das Bild abgrenzung.jpg angezeigt.</p>
12
+ </SampleDescription>
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
+ </>
15
21
  );
@@ -3,9 +3,15 @@ import React from 'react';
3
3
  import { KolCard } from '@public-ui/react';
4
4
 
5
5
  import type { FC } from 'react';
6
+ import { SampleDescription } from '../SampleDescription';
6
7
 
7
8
  export const CardBasic: FC = () => (
8
- <KolCard _label="Titel">
9
- <div slot="">Inhalt</div>
10
- </KolCard>
9
+ <>
10
+ <SampleDescription>
11
+ <p>Hier wird eine Card mit Titel und &apos;Inhalt&apos; angezeigt. Es gibt keine Interaktionsmöglichkeit.</p>
12
+ </SampleDescription>
13
+ <KolCard _label="Titel">
14
+ <div slot="">Inhalt</div>
15
+ </KolCard>
16
+ </>
11
17
  );
@@ -3,20 +3,26 @@ import React from 'react';
3
3
  import { KolButton, KolCard } from '@public-ui/react';
4
4
 
5
5
  import type { FC } from 'react';
6
+ import { SampleDescription } from '../SampleDescription';
6
7
 
7
8
  export const CardConfirm: FC = () => (
8
- <KolCard _has-footer _label="Überschrift">
9
- <div>
10
- <p className="p-2">
11
- Lorem ipsum dolor sit amet consectetur, adipisicing elit. Soluta pariatur laudantium saepe ipsa atque officia cupiditate repudiandae harum earum aut
12
- doloribus autem libero exercitationem dolor ad, magni dignissimos ratione fuga. Lorem ipsum dolor sit amet consectetur adipisicing elit. Officiis
13
- perferendis qui animi nesciunt illo facere, doloribus sint cupiditate nihil dolorem voluptate ab esse! Ducimus ad est commodi molestias voluptas
14
- reiciendis.
15
- </p>
16
- <div className="flex gap-2 flex-justify-end">
17
- <KolButton className="w-12rem" _variant="primary" _label="Speichern"></KolButton>
18
- <KolButton className="w-12rem" _variant="secondary" _label="Abbrechen"></KolButton>
9
+ <>
10
+ <SampleDescription>
11
+ <p>Hier wird eine Karte mit Beispieltext und zwei Knöpfen &apos;Speichern&apos; und &apos;Abbrechen&apos;.</p>
12
+ </SampleDescription>
13
+ <KolCard _has-footer _label="Überschrift">
14
+ <div>
15
+ <p className="p-2">
16
+ Lorem ipsum dolor sit amet consectetur, adipisicing elit. Soluta pariatur laudantium saepe ipsa atque officia cupiditate repudiandae harum earum aut
17
+ doloribus autem libero exercitationem dolor ad, magni dignissimos ratione fuga. Lorem ipsum dolor sit amet consectetur adipisicing elit. Officiis
18
+ perferendis qui animi nesciunt illo facere, doloribus sint cupiditate nihil dolorem voluptate ab esse! Ducimus ad est commodi molestias voluptas
19
+ reiciendis.
20
+ </p>
21
+ <div className="flex gap-2 flex-justify-end">
22
+ <KolButton className="w-12rem" _variant="primary" _label="Speichern"></KolButton>
23
+ <KolButton className="w-12rem" _variant="secondary" _label="Abbrechen"></KolButton>
24
+ </div>
19
25
  </div>
20
- </div>
21
- </KolCard>
26
+ </KolCard>
27
+ </>
22
28
  );
@@ -3,33 +3,42 @@ import React from 'react';
3
3
  import { KolCard } from '@public-ui/react';
4
4
 
5
5
  import type { FC } from 'react';
6
+ import { SampleDescription } from '../SampleDescription';
6
7
 
7
8
  export const CardFlex: FC = () => (
8
- <div className="grid grid-cols-2 gap-4">
9
- <KolCard _label="Titel">
10
- <div>Inhalt</div>
11
- </KolCard>
12
- <KolCard _label="Titel" _hasCloser>
13
- <div>
14
- Inhalt
15
- <br />
16
- Inhalt
17
- </div>
18
- </KolCard>
19
- <KolCard _label="Titel">
20
- <div>
21
- Inhalt
22
- <br />
23
- Inhalt
24
- <br />
25
- Inhalt
26
- </div>
27
- </KolCard>
28
- <KolCard _label="Titel">
29
- <div>Inhalt</div>
30
- </KolCard>
31
- <KolCard _label="Titel">
32
- <div>Inhalt</div>
33
- </KolCard>
34
- </div>
9
+ <>
10
+ <SampleDescription>
11
+ <p>
12
+ Hier werden mehrere Karten mit unterschiedlichen Inhalten angezeigt. Beim anklicken des &apos;x&apos; wird ein Label mit &apos;Schließen&apos;
13
+ angezeigt.
14
+ </p>
15
+ </SampleDescription>
16
+ <div className="grid grid-cols-2 gap-4">
17
+ <KolCard _label="Titel">
18
+ <div>Inhalt</div>
19
+ </KolCard>
20
+ <KolCard _label="Titel" _hasCloser>
21
+ <div>
22
+ Inhalt
23
+ <br />
24
+ Inhalt
25
+ </div>
26
+ </KolCard>
27
+ <KolCard _label="Titel">
28
+ <div>
29
+ Inhalt
30
+ <br />
31
+ Inhalt
32
+ <br />
33
+ Inhalt
34
+ </div>
35
+ </KolCard>
36
+ <KolCard _label="Titel">
37
+ <div>Inhalt</div>
38
+ </KolCard>
39
+ <KolCard _label="Titel">
40
+ <div>Inhalt</div>
41
+ </KolCard>
42
+ </div>
43
+ </>
35
44
  );
@@ -3,8 +3,10 @@ import { CardBasic } from './basic';
3
3
  import { CardConfirm } from './confirm';
4
4
  import { CardFlex } from './flex';
5
5
  import { CardSelection } from './selection';
6
+ import { SampleDescription } from '../SampleDescription';
6
7
 
7
8
  export const CARD_ROUTES: Routes = {
9
+ //SYNTAXERROR
8
10
  card: {
9
11
  basic: CardBasic,
10
12
  confirm: CardConfirm,
@@ -3,6 +3,7 @@ import React from 'react';
3
3
  import { KolButton, KolCard, KolInputCheckbox } from '@public-ui/react';
4
4
 
5
5
  import type { FC } from 'react';
6
+ import { SampleDescription } from '../SampleDescription';
6
7
 
7
8
  const STYLE = {
8
9
  display: 'flex',
@@ -12,66 +13,71 @@ const STYLE = {
12
13
  };
13
14
 
14
15
  export const CardSelection: FC = () => (
15
- <div className="flex flex-wrap gap-2">
16
- <KolCard _label="DEBTI-25437/17-1" className="lg:w-[calc(33.33%-16px)] md:w-[calc(50%-16px)] sm:w-full">
17
- <div>
18
- <div>
19
- TeCorp Endplatte
20
- <br />
21
- VZTA
22
- </div>
16
+ <>
17
+ <SampleDescription>
18
+ <p>Hier werden drei Beispielbilder nach klicken auf &apos;Öffnen&apos; angezeigt. Die Checkboxen &apos;Auswählen&apos; können an und abgewählt werden.</p>
19
+ </SampleDescription>
20
+ <div className="flex flex-wrap gap-2">
21
+ <KolCard _label="DEBTI-25437/17-1" className="lg:w-[calc(33.33%-16px)] md:w-[calc(50%-16px)] sm:w-full">
23
22
  <div>
24
23
  <div>
25
- <img alt="Darstellung des KoliBri-Theming" src="abgrenzung.jpg" width="100%" />
24
+ TeCorp Endplatte
25
+ <br />
26
+ VZTA
26
27
  </div>
27
- </div>
28
- <div>
29
- <div style={STYLE}>
30
- <KolInputCheckbox _label={`Auswählen`} />
31
- <KolButton _variant="primary" _label="Öffnen"></KolButton>
28
+ <div>
29
+ <div>
30
+ <img alt="Darstellung des KoliBri-Theming" src="abgrenzung.jpg" width="100%" />
31
+ </div>
32
32
  </div>
33
- </div>
34
- </div>
35
- </KolCard>
36
- <KolCard _label="DEBTI-25437/17-1" className="lg:w-[calc(33.33%-16px)] md:w-[calc(50%-16px)] sm:w-full">
37
- <div>
38
- <div>
39
- TeCorp Endplatte
40
- <br />
41
- VZTA
42
- </div>
43
- <div>
44
33
  <div>
45
- <img alt="Darstellung des KoliBri-Theming" src="abgrenzung.jpg" width="100%" />
34
+ <div style={STYLE}>
35
+ <KolInputCheckbox _label={`Auswählen`} />
36
+ <KolButton _variant="primary" _label="Öffnen"></KolButton>
37
+ </div>
46
38
  </div>
47
39
  </div>
40
+ </KolCard>
41
+ <KolCard _label="DEBTI-25437/17-1" className="lg:w-[calc(33.33%-16px)] md:w-[calc(50%-16px)] sm:w-full">
48
42
  <div>
49
- <div style={STYLE}>
50
- <KolInputCheckbox _label={`Auswählen`} />
51
- <KolButton _variant="primary" _label="Öffnen"></KolButton>
43
+ <div>
44
+ TeCorp Endplatte
45
+ <br />
46
+ VZTA
47
+ </div>
48
+ <div>
49
+ <div>
50
+ <img alt="Darstellung des KoliBri-Theming" src="abgrenzung.jpg" width="100%" />
51
+ </div>
52
52
  </div>
53
- </div>
54
- </div>
55
- </KolCard>
56
- <KolCard _label="DEBTI-25437/17-1" className="lg:w-[calc(33.33%-16px)] md:w-[calc(50%-16px)] sm:w-full">
57
- <div>
58
- <div>
59
- TeCorp Endplatte
60
- <br />
61
- VZTA
62
- </div>
63
- <div>
64
53
  <div>
65
- <img alt="Darstellung des KoliBri-Theming" src="abgrenzung.jpg" width="100%" />
54
+ <div style={STYLE}>
55
+ <KolInputCheckbox _label={`Auswählen`} />
56
+ <KolButton _variant="primary" _label="Öffnen"></KolButton>
57
+ </div>
66
58
  </div>
67
59
  </div>
60
+ </KolCard>
61
+ <KolCard _label="DEBTI-25437/17-1" className="lg:w-[calc(33.33%-16px)] md:w-[calc(50%-16px)] sm:w-full">
68
62
  <div>
69
- <div style={STYLE}>
70
- <KolInputCheckbox _label={`Auswählen`} />
71
- <KolButton _variant="primary" _label="Öffnen"></KolButton>
63
+ <div>
64
+ TeCorp Endplatte
65
+ <br />
66
+ VZTA
67
+ </div>
68
+ <div>
69
+ <div>
70
+ <img alt="Darstellung des KoliBri-Theming" src="abgrenzung.jpg" width="100%" />
71
+ </div>
72
+ </div>
73
+ <div>
74
+ <div style={STYLE}>
75
+ <KolInputCheckbox _label={`Auswählen`} />
76
+ <KolButton _variant="primary" _label="Öffnen"></KolButton>
77
+ </div>
72
78
  </div>
73
79
  </div>
74
- </div>
75
- </KolCard>
76
- </div>
80
+ </KolCard>
81
+ </div>
82
+ </>
77
83
  );
@@ -3,23 +3,32 @@ import React from 'react';
3
3
  import { KolDetails } from '@public-ui/react';
4
4
 
5
5
  import type { FC } from 'react';
6
+ import { SampleDescription } from '../SampleDescription';
6
7
 
7
8
  export const DetailsBasic: FC = () => (
8
- <p className="grid gap-4">
9
- <KolDetails _label="Nach Laden der Seite geschlossen">
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 invidunt.
13
- </KolDetails>
14
- <KolDetails _disabled _label="Nach Laden der Seite geöffnet (deaktiviert)" _open>
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 invidunt.
18
- </KolDetails>
19
- <KolDetails _label="Nach Laden der Seite geöffnet" _open>
20
- Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
21
- 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.
22
- Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt.
23
- </KolDetails>
24
- </p>
9
+ <>
10
+ <SampleDescription>
11
+ <p>
12
+ Hier sind zwei Texte und ein deaktivierter Text. Beide aktivierten Texte können durch das klicken auf den &apos;Titel&apos; geöffnet und wieder
13
+ geschlossen werden. Der untere Text ist nach laden der Seite bereits geöffnet, während der obere Text nach laden der Seite geschlossen ist.{' '}
14
+ </p>
15
+ </SampleDescription>
16
+ <p className="grid gap-4">
17
+ <KolDetails _label="Nach Laden der Seite geschlossen">
18
+ Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
19
+ 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.
20
+ Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt.
21
+ </KolDetails>
22
+ <KolDetails _disabled _label="Nach Laden der Seite geöffnet (deaktiviert)" _open>
23
+ Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
24
+ 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.
25
+ Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt.
26
+ </KolDetails>
27
+ <KolDetails _label="Nach Laden der Seite geöffnet" _open>
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 invidunt.
31
+ </KolDetails>
32
+ </p>
33
+ </>
25
34
  );