@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
@@ -33,7 +33,7 @@
33
33
  */
34
34
 
35
35
  /**
36
- * @remix-run/router v1.15.1
36
+ * @remix-run/router v1.15.3
37
37
  *
38
38
  * Copyright (c) Remix Software Inc.
39
39
  *
@@ -44,7 +44,7 @@
44
44
  */
45
45
 
46
46
  /**
47
- * React Router v6.22.1
47
+ * React Router v6.22.3
48
48
  *
49
49
  * Copyright (c) Remix Software Inc.
50
50
  *
package/package.json CHANGED
@@ -1,37 +1,37 @@
1
1
  {
2
2
  "name": "@public-ui/sample-react",
3
- "version": "2.0.8",
3
+ "version": "2.0.9",
4
4
  "description": "This app contains samples for the KoliBri/Public UI",
5
5
  "license": "EUPL-1.2",
6
6
  "dependencies": {
7
7
  "@leanup/stack": "1.3.49",
8
8
  "@leanup/stack-react": "1.3.49",
9
9
  "@leanup/stack-webpack": "1.3.49",
10
- "@public-ui/components": "2.0.8",
11
- "@public-ui/react": "2.0.8",
12
- "@public-ui/themes": "2.0.8",
13
- "@types/node": "20.11.19",
14
- "@types/react": "18.2.57",
15
- "@types/react-dom": "18.2.19",
10
+ "@public-ui/components": "2.0.9",
11
+ "@public-ui/react": "2.0.9",
12
+ "@public-ui/themes": "2.0.9",
13
+ "@types/node": "20.11.25",
14
+ "@types/react": "18.2.64",
15
+ "@types/react-dom": "18.2.21",
16
16
  "@unocss/preset-uno": "0.58.5",
17
17
  "@unocss/webpack": "0.58.5",
18
18
  "ajv": "8.12.0",
19
- "chromedriver": "121.0.2",
19
+ "chromedriver": "122.0.4",
20
20
  "cpy-cli": "5.0.0",
21
21
  "eslint-plugin-jsx-a11y": "6.8.0",
22
- "eslint-plugin-react": "7.33.2",
22
+ "eslint-plugin-react": "7.34.0",
23
23
  "formik": "2.4.5",
24
24
  "nightwatch-axe-verbose": "2.3.0",
25
25
  "npm-run-all": "4.1.5",
26
26
  "react": "18.2.0",
27
27
  "react-dom": "18.2.0",
28
- "react-router": "6.22.1",
29
- "react-router-dom": "6.22.1",
28
+ "react-router": "6.22.3",
29
+ "react-router-dom": "6.22.3",
30
30
  "rimraf": "3.0.2",
31
31
  "ts-prune": "0.10.3",
32
- "typescript": "5.3.3",
32
+ "typescript": "5.4.2",
33
33
  "world_countries_lists": "2.9.0",
34
- "yup": "1.3.3"
34
+ "yup": "1.4.0"
35
35
  },
36
36
  "files": [
37
37
  ".eslintignore",
package/src/App.tsx CHANGED
@@ -139,7 +139,7 @@ export const App: FC = () => {
139
139
  {!hideMenus && isDraftTheme(theme) && <KolBadge className="block mb-3" _label="DRAFT" _color="#db5461" />}
140
140
  <Routes>
141
141
  {ROUTE_TREE}
142
- <Route path="*" element={<KolAlert _type="info">This code example has not been migrated yet - it&#39;s coming soon!</KolAlert>} />
142
+ <Route path="*" element={<Navigate to={ROUTE_LIST[0]} replace />} />
143
143
  <Route path="back-page" element={<BackPage />} />
144
144
  </Routes>
145
145
  </main>
@@ -47,7 +47,7 @@ export const Sidebar: FC<Props> = ({ version, theme, routes, routeList, sample,
47
47
 
48
48
  const handlePreviousClick = () => {
49
49
  const currentIndex = getIndexOfSample();
50
- const nextIndex = currentIndex === 0 ? routeList.length - 1 : currentIndex - 1;
50
+ const nextIndex = currentIndex <= 0 ? routeList.length - 1 : currentIndex - 1;
51
51
  location.replace(`#${routeList[nextIndex]}`);
52
52
  };
53
53
 
@@ -1,37 +1,41 @@
1
1
  import React from 'react';
2
2
 
3
3
  import { KolAbbr } from '@public-ui/react';
4
+ import { SampleDescription } from '../SampleDescription';
4
5
 
5
6
  import type { FC } from 'react';
6
7
  export const AbbrBasic: FC = () => (
7
8
  <>
9
+ <SampleDescription>
10
+ <p>Beim Bewegen der Maus über den unterstrichenen Abkürzungen, soll die ausgeschriebene Abkürzung an verschiedenen Stellen erscheinen.</p>
11
+ </SampleDescription>
8
12
  <p>
9
- Ich bin <KolAbbr _label="Abkürzung">z.B.</KolAbbr> eine Abkürzung.
13
+ Ich bin <KolAbbr _label="zum Beispiel">z.B.</KolAbbr> eine Abkürzung.
10
14
  </p>
11
15
  <p>
12
16
  Ich bin{' '}
13
- <KolAbbr _label="Abkürzung" _tooltipAlign="right">
17
+ <KolAbbr _label="zum Beispiel" _tooltipAlign="right">
14
18
  z.B.
15
19
  </KolAbbr>{' '}
16
20
  eine Abkürzung (rechts).
17
21
  </p>
18
22
  <p>
19
23
  Ich bin{' '}
20
- <KolAbbr _label="Abkürzung" _tooltipAlign="bottom">
24
+ <KolAbbr _label="zum Beispiel" _tooltipAlign="bottom">
21
25
  z.B.
22
26
  </KolAbbr>{' '}
23
27
  eine Abkürzung (unten).
24
28
  </p>
25
29
  <p>
26
30
  Ich bin{' '}
27
- <KolAbbr _label="Abkürzung" _tooltipAlign="left">
31
+ <KolAbbr _label="zum Beispiel" _tooltipAlign="left">
28
32
  z.B.
29
33
  </KolAbbr>{' '}
30
34
  eine Abkürzung (links).
31
35
  </p>
32
36
  <p>
33
37
  Ich bin{' '}
34
- <KolAbbr _label="Abkürzung" _tooltipAlign="top">
38
+ <KolAbbr _label="zum Beispiel" _tooltipAlign="top">
35
39
  z.B.
36
40
  </KolAbbr>{' '}
37
41
  eine Abkürzung (oben).
@@ -1,19 +1,25 @@
1
1
  import React from 'react';
2
2
 
3
3
  import { KolAccordion } from '@public-ui/react';
4
+ import { SampleDescription } from '../SampleDescription';
4
5
 
5
6
  import type { FC } from 'react';
6
7
 
7
8
  export const AccordionBasic: FC = () => (
8
- <div className="grid gap-4">
9
- <KolAccordion _label="Überschrift Accordion Tab 1" _level={1}>
10
- <div slot="">Inhalt Accordion Tab 1</div>
11
- </KolAccordion>
12
- <KolAccordion _disabled _label="Überschrift Accordion Tab 2 (deaktiviert)" _level={1} _open>
13
- <div slot="">Inhalt Accordion Tab 2</div>
14
- </KolAccordion>
15
- <KolAccordion _label="Überschrift Accordion Tab 3" _level={1}>
16
- <div slot="">Inhalt Accordion Tab 3</div>
17
- </KolAccordion>
18
- </div>
9
+ <>
10
+ <SampleDescription>
11
+ <p>Beim klicken mit der Maus auf die einzelnen Überschriften, soll der Inhalt darunter aufgeklappt und beim erneuten klicken wieder zugeklappt werden.</p>
12
+ </SampleDescription>
13
+ <div className="grid gap-4">
14
+ <KolAccordion _label="Überschrift Accordion Tab 1" _level={1}>
15
+ <div slot="">Inhalt Accordion Tab 1</div>
16
+ </KolAccordion>
17
+ <KolAccordion _disabled _label="Überschrift Accordion Tab 2 (deaktiviert)" _level={1} _open>
18
+ <div slot="">Inhalt Accordion Tab 2</div>
19
+ </KolAccordion>
20
+ <KolAccordion _label="Überschrift Accordion Tab 3" _level={1}>
21
+ <div slot="">Inhalt Accordion Tab 3</div>
22
+ </KolAccordion>
23
+ </div>
24
+ </>
19
25
  );
@@ -1,28 +1,34 @@
1
1
  import React from 'react';
2
2
 
3
3
  import { KolAccordion } from '@public-ui/react';
4
+ import { SampleDescription } from '../SampleDescription';
4
5
 
5
6
  import type { FC } from 'react';
6
7
 
7
8
  export const AccordionHeadlines: FC = () => (
8
- <div className="grid gap-4">
9
- <KolAccordion _label="Überschrift Level 1" _level={1}>
10
- <div slot="">Inhalt Accordion Tab 1</div>
11
- </KolAccordion>
12
- <KolAccordion _label="Überschrift Level 2" _level={2}>
13
- <div slot="">Inhalt Accordion Tab 2</div>
14
- </KolAccordion>
15
- <KolAccordion _label="Überschrift Level 3" _level={3}>
16
- <div slot="">Inhalt Accordion Tab 3</div>
17
- </KolAccordion>
18
- <KolAccordion _label="Überschrift Level 4" _level={4}>
19
- <div slot="">Inhalt Accordion Tab 4</div>
20
- </KolAccordion>
21
- <KolAccordion _label="Überschrift Level 5" _level={5}>
22
- <div slot="">Inhalt Accordion Tab 5</div>
23
- </KolAccordion>
24
- <KolAccordion _label="Überschrift Level 6" _level={6}>
25
- <div slot="">Inhalt Accordion Tab 6</div>
26
- </KolAccordion>
27
- </div>
9
+ <>
10
+ <SampleDescription>
11
+ <p>Beim klicken mit der Maus auf die einzelnen Überschriften, soll der Inhalt darunter aufgeklappt und beim erneuten klicken wieder zugeklappt werden.</p>
12
+ </SampleDescription>
13
+ <div className="grid gap-4">
14
+ <KolAccordion _label="Überschrift Level 1" _level={1}>
15
+ <div slot="">Inhalt Accordion Tab 1</div>
16
+ </KolAccordion>
17
+ <KolAccordion _label="Überschrift Level 2" _level={2}>
18
+ <div slot="">Inhalt Accordion Tab 2</div>
19
+ </KolAccordion>
20
+ <KolAccordion _label="Überschrift Level 3" _level={3}>
21
+ <div slot="">Inhalt Accordion Tab 3</div>
22
+ </KolAccordion>
23
+ <KolAccordion _label="Überschrift Level 4" _level={4}>
24
+ <div slot="">Inhalt Accordion Tab 4</div>
25
+ </KolAccordion>
26
+ <KolAccordion _label="Überschrift Level 5" _level={5}>
27
+ <div slot="">Inhalt Accordion Tab 5</div>
28
+ </KolAccordion>
29
+ <KolAccordion _label="Überschrift Level 6" _level={6}>
30
+ <div slot="">Inhalt Accordion Tab 6</div>
31
+ </KolAccordion>
32
+ </div>
33
+ </>
28
34
  );
@@ -2,6 +2,7 @@ import type { FC } from 'react';
2
2
  import React from 'react';
3
3
 
4
4
  import { KolAccordion } from '@public-ui/react';
5
+ import { SampleDescription } from '../SampleDescription';
5
6
 
6
7
  const LIST = [
7
8
  {
@@ -19,11 +20,16 @@ const LIST = [
19
20
  ];
20
21
 
21
22
  export const AccordionList: FC = () => (
22
- <div className="grid gap-4">
23
- {LIST.map(({ heading, content }, index) => (
24
- <KolAccordion _label={heading} _level={1} _open={index === 1} key={index}>
25
- <p>{content}</p>
26
- </KolAccordion>
27
- ))}
28
- </div>
23
+ <>
24
+ <SampleDescription>
25
+ <p>Beim klicken mit der Maus auf die einzelnen Überschriften, soll der Inhalt darunter aufgeklappt und beim erneuten klicken wieder zugeklappt werden.</p>
26
+ </SampleDescription>
27
+ <div className="grid gap-4">
28
+ {LIST.map(({ heading, content }, index) => (
29
+ <KolAccordion _label={heading} _level={1} _open={index === 1} key={index}>
30
+ <p>{content}</p>
31
+ </KolAccordion>
32
+ ))}
33
+ </div>
34
+ </>
29
35
  );
@@ -1,9 +1,8 @@
1
1
  import React from 'react';
2
-
3
2
  import { KolAlert } from '@public-ui/react';
4
-
5
3
  import type { FC } from 'react';
6
4
  import type { AlertType, AlertVariant, HeadingLevel } from '@public-ui/components';
5
+ import { SampleDescription } from '../SampleDescription';
7
6
 
8
7
  type PropsByType = {
9
8
  level: HeadingLevel;
@@ -32,11 +31,19 @@ const AlertByType: FC<PropsByType> = ({ level, type, variant }) => (
32
31
  );
33
32
 
34
33
  export const AlertBasic: FC<PropsBasic> = ({ variant = 'msg' }) => (
35
- <div className="grid gap-4">
36
- <AlertByType level={1} type="default" variant={variant} />
37
- <AlertByType level={2} type="error" variant={variant} />
38
- <AlertByType level={3} type="info" variant={variant} />
39
- <AlertByType level={4} type="success" variant={variant} />
40
- <AlertByType level={5} type="warning" variant={variant} />
41
- </div>
34
+ <>
35
+ <SampleDescription>
36
+ <p>
37
+ Hier werden verschiedene Alerts gezeigt. Beim klicken auf das X soll das Schließen-Event ausgelöst werden. In diesem Beispiel erscheint eine Textbox mit
38
+ Inhalt Schließen.
39
+ </p>
40
+ </SampleDescription>
41
+ <div className="grid gap-4">
42
+ <AlertByType level={1} type="default" variant={variant} />
43
+ <AlertByType level={2} type="error" variant={variant} />
44
+ <AlertByType level={3} type="info" variant={variant} />
45
+ <AlertByType level={4} type="success" variant={variant} />
46
+ <AlertByType level={5} type="warning" variant={variant} />
47
+ </div>
48
+ </>
42
49
  );
@@ -1,29 +1,34 @@
1
1
  import React from 'react';
2
2
 
3
3
  import { KolAlert } from '@public-ui/react';
4
-
4
+ import { SampleDescription } from '../SampleDescription';
5
5
  import type { FC } from 'react';
6
6
 
7
7
  export const AlertHtml: FC = () => (
8
- <div>
9
- <KolAlert _label="Ausgabe von HTML-Code im Alert" _type="info">
10
- <h2 className="mt-2 mb-3">Hier wird eine H2-Überschrift ausgegeben</h2>
11
- <div className="grid gap-4 sm:grid-cols-2">
12
- <div>
13
- <h3>Text in einer linken Spalte</h3>
14
- <p>
15
- Lorem ipsum dolor sit amet consectetur, adipisicing elit. Quidem sed fugiat dolorum ratione et, ullam officia nobis nihil debitis, consectetur dicta
16
- accusantium. Vitae debitis, quibusdam vel recusandae deleniti placeat dolorem?
17
- </p>
18
- </div>
19
- <div>
20
- <h3>Text in einer rechten Spalte</h3>
21
- <p>
22
- Lorem, ipsum dolor sit amet consectetur adipisicing elit. Quod beatae officiis, velit nam dicta quae repellat perspiciatis explicabo illo. Possimus,
23
- molestiae deleniti! Exercitationem blanditiis ducimus similique tempora ratione consequuntur eaque!
24
- </p>
8
+ <>
9
+ <SampleDescription>
10
+ <p>Hier werden Alerts als html ausgegeben.</p>
11
+ </SampleDescription>
12
+ <div>
13
+ <KolAlert _label="Ausgabe von HTML-Code im Alert" _type="info">
14
+ <h2 className="mt-2 mb-3">Hier wird eine H2-Überschrift ausgegeben</h2>
15
+ <div className="grid gap-4 sm:grid-cols-2">
16
+ <div>
17
+ <h3>Text in einer linken Spalte</h3>
18
+ <p>
19
+ Lorem ipsum dolor sit amet consectetur, adipisicing elit. Quidem sed fugiat dolorum ratione et, ullam officia nobis nihil debitis, consectetur
20
+ dicta accusantium. Vitae debitis, quibusdam vel recusandae deleniti placeat dolorem?
21
+ </p>
22
+ </div>
23
+ <div>
24
+ <h3>Text in einer rechten Spalte</h3>
25
+ <p>
26
+ Lorem, ipsum dolor sit amet consectetur adipisicing elit. Quod beatae officiis, velit nam dicta quae repellat perspiciatis explicabo illo.
27
+ Possimus, molestiae deleniti! Exercitationem blanditiis ducimus similique tempora ratione consequuntur eaque!
28
+ </p>
29
+ </div>
25
30
  </div>
26
- </div>
27
- </KolAlert>
28
- </div>
31
+ </KolAlert>
32
+ </div>
33
+ </>
29
34
  );
@@ -1,14 +1,19 @@
1
- import React from 'react';
2
-
3
1
  import { KolAvatar } from '@public-ui/react';
4
-
2
+ import React from 'react';
5
3
  import type { FC } from 'react';
4
+ import { SampleDescription } from '../SampleDescription';
5
+
6
6
  export const AvatarBasic: FC = () => (
7
- <div className="flex flex-wrap gap-4">
8
- <KolAvatar _src="https://www.w3schools.com/howto/img_avatar.png" _label="Elke Mustermann" />
7
+ <>
8
+ <SampleDescription>
9
+ <p>Hier werden verschiedene Avatar-Typen angezeigt</p>
10
+ </SampleDescription>
11
+ <div className="flex flex-wrap gap-4">
12
+ <KolAvatar _src="https://www.w3schools.com/howto/img_avatar.png" _label="Elke Mustermann" />
9
13
 
10
- {/* intentional trailing space 👇 - it's supposed to be trimmed */}
11
- <KolAvatar _label="Elke Mustermann " />
12
- <KolAvatar _label="Marianne" />
13
- </div>
14
+ {/* intentional trailing space 👇 - it's supposed to be trimmed */}
15
+ <KolAvatar _label="Elke Mustermann " />
16
+ <KolAvatar _label="Marianne" />
17
+ </div>
18
+ </>
14
19
  );
@@ -1,15 +1,21 @@
1
1
  import React from 'react';
2
2
 
3
3
  import { KolBadge } from '@public-ui/react';
4
+ import { SampleDescription } from '../SampleDescription';
4
5
 
5
6
  import type { FC } from 'react';
6
7
 
7
8
  export const BadgeBasic: FC = () => (
8
- <div className="flex gap-2">
9
- <KolBadge _label="schwarz"></KolBadge>
10
- <KolBadge _color="#86ffc6" _label="türkis"></KolBadge>
11
- <KolBadge _color="#06539e" _label="blau"></KolBadge>
12
- <KolBadge _color="#ae0000" _label="rot"></KolBadge>
13
- <KolBadge _color="#8b008b" _label="lila"></KolBadge>
14
- </div>
9
+ <>
10
+ <SampleDescription>
11
+ <p>Hier werden verschiedenfarbige Badges angezeigt</p>
12
+ </SampleDescription>
13
+ <div className="flex gap-2">
14
+ <KolBadge _label="schwarz"></KolBadge>
15
+ <KolBadge _color="#86ffc6" _label="türkis"></KolBadge>
16
+ <KolBadge _color="#06539e" _label="blau"></KolBadge>
17
+ <KolBadge _color="#ae0000" _label="rot"></KolBadge>
18
+ <KolBadge _color="#8b008b" _label="lila"></KolBadge>
19
+ </div>
20
+ </>
15
21
  );
@@ -1,6 +1,7 @@
1
1
  import React from 'react';
2
2
 
3
3
  import { KolBadge, KolHeading } from '@public-ui/react';
4
+ import { SampleDescription } from '../SampleDescription';
4
5
 
5
6
  import type { FC } from 'react';
6
7
 
@@ -16,15 +17,23 @@ const createBadgeProps = (label: string) => ({
16
17
 
17
18
  export const BadgeButton: FC = () => (
18
19
  <>
19
- <div className="mb-4">
20
- <KolHeading _label="Badge" _level={2} />
21
- </div>
22
- <div className="flex gap-2">
23
- <KolBadge _label="schwarz" {...createBadgeProps('schwarz')}></KolBadge>
24
- <KolBadge _label="türkis" _color="#86ffc6" {...createBadgeProps('türkis')}></KolBadge>
25
- <KolBadge _label="blau" _color="#06539e" {...createBadgeProps('blau')}></KolBadge>
26
- <KolBadge _label="rot" _color="#ae0000" {...createBadgeProps('rot')}></KolBadge>
27
- <KolBadge _label="lila" _color="#8b008b" {...createBadgeProps('lila')}></KolBadge>
28
- </div>
20
+ <SampleDescription>
21
+ <p>
22
+ Hier werden verschiedenfarbige Badges mit X Button angezeigt. Beim klicken auf das X soll das Schließen-Event ausgelöst werden. In diesem Beispiel
23
+ erscheint eine Textbox mit Inhalt.{' '}
24
+ </p>
25
+ </SampleDescription>
26
+ <>
27
+ <div className="mb-4">
28
+ <KolHeading _label="Badge" _level={2} />
29
+ </div>
30
+ <div className="flex gap-2">
31
+ <KolBadge _label="schwarz" {...createBadgeProps('schwarz')}></KolBadge>
32
+ <KolBadge _label="türkis" _color="#86ffc6" {...createBadgeProps('türkis')}></KolBadge>
33
+ <KolBadge _label="blau" _color="#06539e" {...createBadgeProps('blau')}></KolBadge>
34
+ <KolBadge _label="rot" _color="#ae0000" {...createBadgeProps('rot')}></KolBadge>
35
+ <KolBadge _label="lila" _color="#8b008b" {...createBadgeProps('lila')}></KolBadge>
36
+ </div>
37
+ </>
29
38
  </>
30
39
  );
@@ -1,54 +1,60 @@
1
1
  import React from 'react';
2
2
 
3
3
  import { KolBreadcrumb } from '@public-ui/react';
4
+ import { SampleDescription } from '../SampleDescription';
4
5
 
5
6
  import type { FC } from 'react';
6
7
 
7
8
  export const BreadcrumbBasic: FC = () => (
8
- <div className="grid gap-4">
9
- <KolBreadcrumb
10
- _label="Breadcrumb aus Text-Links"
11
- _links={[
12
- { _label: 'Startseite', _href: '#/back-page' },
13
- { _label: 'Unterseite der Startseite', _href: '#/back-page' },
14
- {
15
- _label: 'Unterseite der Unterseite',
16
- _href: '#/back-page',
17
- },
18
- ]}
19
- ></KolBreadcrumb>
20
- <KolBreadcrumb
21
- _label="Breadcrumb aus Icons- oder Text-Links"
22
- _links={[
23
- {
24
- _label: 'Startseite',
25
- _icons: 'codicon codicon-home',
26
- _hideLabel: true,
27
- _href: '#/back-page',
28
- },
29
- {
30
- _label: 'Unterseite der Startseite mit sehr langem Link-Test',
31
- _href: '#/back-page',
32
- },
33
- {
34
- _label: 'Unterseite der Unterseite',
35
- _href: '#/back-page',
36
- },
37
- ]}
38
- ></KolBreadcrumb>
39
- <KolBreadcrumb
40
- _label="Breadcrumb aus Icons- und Text-Links"
41
- _links={[
42
- { _label: 'Startseite', _icons: 'codicon codicon-home', _href: '#/back-page' },
43
- {
44
- _label: 'Unterseite der Startseite und ich_bin_ein_echt_langes_zusammengesetztes_Worte_und_versuche_das_Layout_zu_brechen',
45
- _href: '#/back-page',
46
- },
47
- {
48
- _label: 'Unterseite der Unterseite',
49
- _href: '#/back-page',
50
- },
51
- ]}
52
- ></KolBreadcrumb>
53
- </div>
9
+ <>
10
+ <SampleDescription>
11
+ <p>Hier wird eine Breadcrumb-Navigation dargestellt. Beim klicken auf die Links wird man auf Unterseiten weitergeleitet.</p>
12
+ </SampleDescription>
13
+ <div className="grid gap-4">
14
+ <KolBreadcrumb
15
+ _label="Breadcrumb aus Text-Links"
16
+ _links={[
17
+ { _label: 'Startseite', _href: '#/back-page' },
18
+ { _label: 'Unterseite der Startseite', _href: '#/back-page' },
19
+ {
20
+ _label: 'Unterseite der Unterseite',
21
+ _href: '#/back-page',
22
+ },
23
+ ]}
24
+ ></KolBreadcrumb>
25
+ <KolBreadcrumb
26
+ _label="Breadcrumb aus Icons- oder Text-Links"
27
+ _links={[
28
+ {
29
+ _label: 'Startseite',
30
+ _icons: 'codicon codicon-home',
31
+ _hideLabel: true,
32
+ _href: '#/back-page',
33
+ },
34
+ {
35
+ _label: 'Unterseite der Startseite mit sehr langem Link-Test',
36
+ _href: '#/back-page',
37
+ },
38
+ {
39
+ _label: 'Unterseite der Unterseite',
40
+ _href: '#/back-page',
41
+ },
42
+ ]}
43
+ ></KolBreadcrumb>
44
+ <KolBreadcrumb
45
+ _label="Breadcrumb aus Icons- und Text-Links"
46
+ _links={[
47
+ { _label: 'Startseite', _icons: 'codicon codicon-home', _href: '#/back-page' },
48
+ {
49
+ _label: 'Unterseite der Startseite und ich_bin_ein_echt_langes_zusammengesetztes_Worte_und_versuche_das_Layout_zu_brechen',
50
+ _href: '#/back-page',
51
+ },
52
+ {
53
+ _label: 'Unterseite der Unterseite',
54
+ _href: '#/back-page',
55
+ },
56
+ ]}
57
+ ></KolBreadcrumb>
58
+ </div>
59
+ </>
54
60
  );
@@ -1,21 +1,26 @@
1
- import React from 'react';
2
-
3
1
  import { KolButton } from '@public-ui/react';
4
-
2
+ import React from 'react';
5
3
  import type { FC } from 'react';
4
+ import { SampleDescription } from '../SampleDescription';
5
+
6
6
  export const ButtonAccessKey: FC = () => (
7
- <div className="flex flex-wrap gap-4">
8
- <KolButton _label="Mit S access key" _accessKey="S"></KolButton>
9
- <KolButton _label="Sehr kleines s" _accessKey="s"></KolButton>
10
- <KolButton _label="Access key kommt nicht in label vor" _accessKey="x"></KolButton>
11
- <KolButton _label="access key ohne label" _hideLabel _accessKey="s" _icons="codicon codicon-dashboard"></KolButton>
12
- <KolButton
13
- _label="mit inline icons"
14
- _icons={{
15
- left: 'codicon codicon-dashboard',
16
- right: 'codicon codicon-dashboard',
17
- }}
18
- _accessKey="s"
19
- />
20
- </div>
7
+ <>
8
+ <SampleDescription>
9
+ <p>Hier verstehe ich es nicht!</p>
10
+ </SampleDescription>
11
+ <div className="flex flex-wrap gap-4">
12
+ <KolButton _label="Mit S access key" _accessKey="S"></KolButton>
13
+ <KolButton _label="Sehr kleines s" _accessKey="s"></KolButton>
14
+ <KolButton _label="Access key kommt nicht in label vor" _accessKey="x"></KolButton>
15
+ <KolButton _label="access key ohne label" _hideLabel _accessKey="s" _icons="codicon codicon-dashboard"></KolButton>
16
+ <KolButton
17
+ _label="mit inline icons"
18
+ _icons={{
19
+ left: 'codicon codicon-dashboard',
20
+ right: 'codicon codicon-dashboard',
21
+ }}
22
+ _accessKey="s"
23
+ />
24
+ </div>
25
+ </>
21
26
  );
@@ -3,12 +3,18 @@ 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 ButtonBaselined: FC = () => (
8
- <div className="inline-block">
9
- <KolButton _label="Label-Text"></KolButton>
10
- <KolButton _label="Label-Text"></KolButton>
11
- <KolButton _label="Label-Text"></KolButton>
12
- <KolButton _icons="codicon codicon-reactions" _label="Label-Text with Icon"></KolButton>
13
- </div>
9
+ <>
10
+ <SampleDescription>
11
+ <p>Hier verstehe ich Baselined nicht!</p>
12
+ </SampleDescription>
13
+ <div className="inline-block">
14
+ <KolButton _label="Label-Text"></KolButton>
15
+ <KolButton _label="Label-Text"></KolButton>
16
+ <KolButton _label="Label-Text"></KolButton>
17
+ <KolButton _icons="codicon codicon-reactions" _label="Label-Text with Icon"></KolButton>
18
+ </div>
19
+ </>
14
20
  );