@public-ui/sample-react 1.7.0-rc.10

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 (342) hide show
  1. package/.eslintignore +1 -0
  2. package/.eslintrc.js +27 -0
  3. package/.gitignore +35 -0
  4. package/.prettierignore +4 -0
  5. package/package.json +64 -0
  6. package/prettier.config.js +5 -0
  7. package/public/.htaccess +3 -0
  8. package/public/assets/bundes/LICENSE.md +1 -0
  9. package/public/assets/bundes/sans/BundesSans-Web-Black.ttf +0 -0
  10. package/public/assets/bundes/sans/BundesSans-Web-Black.woff +0 -0
  11. package/public/assets/bundes/sans/BundesSans-Web-Black.woff2 +0 -0
  12. package/public/assets/bundes/sans/BundesSans-Web-BlackItalic.ttf +0 -0
  13. package/public/assets/bundes/sans/BundesSans-Web-BlackItalic.woff +0 -0
  14. package/public/assets/bundes/sans/BundesSans-Web-BlackItalic.woff2 +0 -0
  15. package/public/assets/bundes/sans/BundesSans-Web-Bold.ttf +0 -0
  16. package/public/assets/bundes/sans/BundesSans-Web-Bold.woff +0 -0
  17. package/public/assets/bundes/sans/BundesSans-Web-Bold.woff2 +0 -0
  18. package/public/assets/bundes/sans/BundesSans-Web-BoldItalic.ttf +0 -0
  19. package/public/assets/bundes/sans/BundesSans-Web-BoldItalic.woff +0 -0
  20. package/public/assets/bundes/sans/BundesSans-Web-BoldItalic.woff2 +0 -0
  21. package/public/assets/bundes/sans/BundesSans-Web-Light.ttf +0 -0
  22. package/public/assets/bundes/sans/BundesSans-Web-Light.woff +0 -0
  23. package/public/assets/bundes/sans/BundesSans-Web-Light.woff2 +0 -0
  24. package/public/assets/bundes/sans/BundesSans-Web-LightItalic.ttf +0 -0
  25. package/public/assets/bundes/sans/BundesSans-Web-LightItalic.woff +0 -0
  26. package/public/assets/bundes/sans/BundesSans-Web-LightItalic.woff2 +0 -0
  27. package/public/assets/bundes/sans/BundesSans-Web-Medium.ttf +0 -0
  28. package/public/assets/bundes/sans/BundesSans-Web-Medium.woff +0 -0
  29. package/public/assets/bundes/sans/BundesSans-Web-Medium.woff2 +0 -0
  30. package/public/assets/bundes/sans/BundesSans-Web-MediumItalic.ttf +0 -0
  31. package/public/assets/bundes/sans/BundesSans-Web-MediumItalic.woff +0 -0
  32. package/public/assets/bundes/sans/BundesSans-Web-MediumItalic.woff2 +0 -0
  33. package/public/assets/bundes/sans/BundesSans-Web-Regular.ttf +0 -0
  34. package/public/assets/bundes/sans/BundesSans-Web-Regular.woff +0 -0
  35. package/public/assets/bundes/sans/BundesSans-Web-Regular.woff2 +0 -0
  36. package/public/assets/bundes/sans/BundesSans-Web-RegularItalic.ttf +0 -0
  37. package/public/assets/bundes/sans/BundesSans-Web-RegularItalic.woff +0 -0
  38. package/public/assets/bundes/sans/BundesSans-Web-RegularItalic.woff2 +0 -0
  39. package/public/assets/bundes/sans-cond/BundesSansCond-Web-Regular.ttf +0 -0
  40. package/public/assets/bundes/sans-cond/BundesSansCond-Web-Regular.woff +0 -0
  41. package/public/assets/bundes/sans-cond/BundesSansCond-Web-Regular.woff2 +0 -0
  42. package/public/assets/bundes/serif/BundesSerif-Web-Bold.ttf +0 -0
  43. package/public/assets/bundes/serif/BundesSerif-Web-Bold.woff +0 -0
  44. package/public/assets/bundes/serif/BundesSerif-Web-Bold.woff2 +0 -0
  45. package/public/assets/bundes/serif/BundesSerif-Web-BoldItalic.ttf +0 -0
  46. package/public/assets/bundes/serif/BundesSerif-Web-BoldItalic.woff +0 -0
  47. package/public/assets/bundes/serif/BundesSerif-Web-BoldItalic.woff2 +0 -0
  48. package/public/assets/bundes/serif/BundesSerif-Web-Italic.ttf +0 -0
  49. package/public/assets/bundes/serif/BundesSerif-Web-Italic.woff +0 -0
  50. package/public/assets/bundes/serif/BundesSerif-Web-Italic.woff2 +0 -0
  51. package/public/assets/bundes/serif/BundesSerif-Web-Regular.ttf +0 -0
  52. package/public/assets/bundes/serif/BundesSerif-Web-Regular.woff +0 -0
  53. package/public/assets/bundes/serif/BundesSerif-Web-Regular.woff2 +0 -0
  54. package/public/assets/bundes/style.css +84 -0
  55. package/public/assets/codicons/LICENSE +395 -0
  56. package/public/assets/codicons/LICENSE-CODE +21 -0
  57. package/public/assets/codicons/codicon.css +582 -0
  58. package/public/assets/codicons/codicon.csv +426 -0
  59. package/public/assets/codicons/codicon.html +3911 -0
  60. package/public/assets/codicons/codicon.svg +1 -0
  61. package/public/assets/codicons/codicon.ttf +0 -0
  62. package/public/assets/fontawesome-free/LICENSE.txt +165 -0
  63. package/public/assets/fontawesome-free/css/all.css +7831 -0
  64. package/public/assets/fontawesome-free/css/all.min.css +6 -0
  65. package/public/assets/fontawesome-free/css/brands.css +1432 -0
  66. package/public/assets/fontawesome-free/css/brands.min.css +6 -0
  67. package/public/assets/fontawesome-free/css/fontawesome.css +6338 -0
  68. package/public/assets/fontawesome-free/css/fontawesome.min.css +6 -0
  69. package/public/assets/fontawesome-free/css/regular.css +19 -0
  70. package/public/assets/fontawesome-free/css/regular.min.css +6 -0
  71. package/public/assets/fontawesome-free/css/solid.css +19 -0
  72. package/public/assets/fontawesome-free/css/solid.min.css +6 -0
  73. package/public/assets/fontawesome-free/css/svg-with-js.css +634 -0
  74. package/public/assets/fontawesome-free/css/svg-with-js.min.css +6 -0
  75. package/public/assets/fontawesome-free/css/v4-font-face.css +26 -0
  76. package/public/assets/fontawesome-free/css/v4-font-face.min.css +6 -0
  77. package/public/assets/fontawesome-free/css/v4-shims.css +2146 -0
  78. package/public/assets/fontawesome-free/css/v4-shims.min.css +6 -0
  79. package/public/assets/fontawesome-free/css/v5-font-face.css +22 -0
  80. package/public/assets/fontawesome-free/css/v5-font-face.min.css +6 -0
  81. package/public/assets/fontawesome-free/webfonts/fa-brands-400.ttf +0 -0
  82. package/public/assets/fontawesome-free/webfonts/fa-brands-400.woff2 +0 -0
  83. package/public/assets/fontawesome-free/webfonts/fa-regular-400.ttf +0 -0
  84. package/public/assets/fontawesome-free/webfonts/fa-regular-400.woff2 +0 -0
  85. package/public/assets/fontawesome-free/webfonts/fa-solid-900.ttf +0 -0
  86. package/public/assets/fontawesome-free/webfonts/fa-solid-900.woff2 +0 -0
  87. package/public/assets/fontawesome-free/webfonts/fa-v4compatibility.ttf +0 -0
  88. package/public/assets/fontawesome-free/webfonts/fa-v4compatibility.woff2 +0 -0
  89. package/public/assets/icofont/demo.html +18939 -0
  90. package/public/assets/icofont/fonts/icofont.eot +0 -0
  91. package/public/assets/icofont/fonts/icofont.svg +2105 -0
  92. package/public/assets/icofont/fonts/icofont.ttf +0 -0
  93. package/public/assets/icofont/fonts/icofont.woff +0 -0
  94. package/public/assets/icofont/fonts/icofont.woff2 +0 -0
  95. package/public/assets/icofont/icofont.css +10757 -0
  96. package/public/assets/icofont/icofont.min.css +7 -0
  97. package/public/assets/kolibri.ico +0 -0
  98. package/public/assets/kreon/Kreon-VariableFont_wght.ttf +0 -0
  99. package/public/assets/kreon/OFL.txt +93 -0
  100. package/public/assets/kreon/README.txt +67 -0
  101. package/public/assets/kreon/static/Kreon-Bold.ttf +0 -0
  102. package/public/assets/kreon/static/Kreon-Light.ttf +0 -0
  103. package/public/assets/kreon/static/Kreon-Medium.ttf +0 -0
  104. package/public/assets/kreon/static/Kreon-Regular.ttf +0 -0
  105. package/public/assets/kreon/static/Kreon-SemiBold.ttf +0 -0
  106. package/public/assets/kreon/style.css +41 -0
  107. package/public/assets/material-icons/LICENSE +202 -0
  108. package/public/assets/material-icons/README.md +129 -0
  109. package/public/assets/material-icons/_data/versions.json +2124 -0
  110. package/public/assets/material-icons/css/_codepoints.scss +2279 -0
  111. package/public/assets/material-icons/css/_mixins.scss +13 -0
  112. package/public/assets/material-icons/css/_variables.scss +6 -0
  113. package/public/assets/material-icons/css/material-icons.css +9208 -0
  114. package/public/assets/material-icons/css/material-icons.min.css +1 -0
  115. package/public/assets/material-icons/css/material-icons.scss +39 -0
  116. package/public/assets/material-icons/iconfont/_mixins.scss +55 -0
  117. package/public/assets/material-icons/iconfont/_variables.scss +3 -0
  118. package/public/assets/material-icons/iconfont/filled.css +24 -0
  119. package/public/assets/material-icons/iconfont/filled.scss +4 -0
  120. package/public/assets/material-icons/iconfont/material-icons-outlined.woff +0 -0
  121. package/public/assets/material-icons/iconfont/material-icons-outlined.woff2 +0 -0
  122. package/public/assets/material-icons/iconfont/material-icons-round.woff +0 -0
  123. package/public/assets/material-icons/iconfont/material-icons-round.woff2 +0 -0
  124. package/public/assets/material-icons/iconfont/material-icons-sharp.woff +0 -0
  125. package/public/assets/material-icons/iconfont/material-icons-sharp.woff2 +0 -0
  126. package/public/assets/material-icons/iconfont/material-icons-two-tone.woff +0 -0
  127. package/public/assets/material-icons/iconfont/material-icons-two-tone.woff2 +0 -0
  128. package/public/assets/material-icons/iconfont/material-icons.css +124 -0
  129. package/public/assets/material-icons/iconfont/material-icons.scss +5 -0
  130. package/public/assets/material-icons/iconfont/material-icons.woff +0 -0
  131. package/public/assets/material-icons/iconfont/material-icons.woff2 +0 -0
  132. package/public/assets/material-icons/iconfont/outlined.css +24 -0
  133. package/public/assets/material-icons/iconfont/outlined.scss +4 -0
  134. package/public/assets/material-icons/iconfont/round.css +24 -0
  135. package/public/assets/material-icons/iconfont/round.scss +4 -0
  136. package/public/assets/material-icons/iconfont/sharp.css +24 -0
  137. package/public/assets/material-icons/iconfont/sharp.scss +4 -0
  138. package/public/assets/material-icons/iconfont/two-tone.css +24 -0
  139. package/public/assets/material-icons/iconfont/two-tone.scss +4 -0
  140. package/public/assets/material-icons/index.d.ts +2128 -0
  141. package/public/assets/material-icons/package.json +52 -0
  142. package/public/assets/material-symbols/LICENSE +202 -0
  143. package/public/assets/material-symbols/README.md +114 -0
  144. package/public/assets/material-symbols/_core.scss +47 -0
  145. package/public/assets/material-symbols/index.css +74 -0
  146. package/public/assets/material-symbols/index.d.ts +2809 -0
  147. package/public/assets/material-symbols/index.scss +3 -0
  148. package/public/assets/material-symbols/material-symbols-outlined.woff2 +0 -0
  149. package/public/assets/material-symbols/material-symbols-rounded.woff2 +0 -0
  150. package/public/assets/material-symbols/material-symbols-sharp.woff2 +0 -0
  151. package/public/assets/material-symbols/outlined.css +24 -0
  152. package/public/assets/material-symbols/outlined.scss +3 -0
  153. package/public/assets/material-symbols/package.json +41 -0
  154. package/public/assets/material-symbols/rounded.css +24 -0
  155. package/public/assets/material-symbols/rounded.scss +3 -0
  156. package/public/assets/material-symbols/sharp.css +24 -0
  157. package/public/assets/material-symbols/sharp.scss +3 -0
  158. package/public/assets/noto-sans/fonts/NotoSans-Black.ttf +0 -0
  159. package/public/assets/noto-sans/fonts/NotoSans-BlackItalic.ttf +0 -0
  160. package/public/assets/noto-sans/fonts/NotoSans-Bold.ttf +0 -0
  161. package/public/assets/noto-sans/fonts/NotoSans-BoldItalic.ttf +0 -0
  162. package/public/assets/noto-sans/fonts/NotoSans-ExtraBold.ttf +0 -0
  163. package/public/assets/noto-sans/fonts/NotoSans-ExtraBoldItalic.ttf +0 -0
  164. package/public/assets/noto-sans/fonts/NotoSans-ExtraLight.ttf +0 -0
  165. package/public/assets/noto-sans/fonts/NotoSans-ExtraLightItalic.ttf +0 -0
  166. package/public/assets/noto-sans/fonts/NotoSans-Italic.ttf +0 -0
  167. package/public/assets/noto-sans/fonts/NotoSans-Light.ttf +0 -0
  168. package/public/assets/noto-sans/fonts/NotoSans-LightItalic.ttf +0 -0
  169. package/public/assets/noto-sans/fonts/NotoSans-Medium.ttf +0 -0
  170. package/public/assets/noto-sans/fonts/NotoSans-MediumItalic.ttf +0 -0
  171. package/public/assets/noto-sans/fonts/NotoSans-Regular.ttf +0 -0
  172. package/public/assets/noto-sans/fonts/NotoSans-SemiBold.ttf +0 -0
  173. package/public/assets/noto-sans/fonts/NotoSans-SemiBoldItalic.ttf +0 -0
  174. package/public/assets/noto-sans/fonts/NotoSans-Thin.ttf +0 -0
  175. package/public/assets/noto-sans/fonts/NotoSans-ThinItalic.ttf +0 -0
  176. package/public/assets/noto-sans/fonts/OFL.txt +93 -0
  177. package/public/assets/noto-sans/noto-sans.css +11 -0
  178. package/public/assets/roboto/LICENSE.txt +202 -0
  179. package/public/assets/roboto/Roboto-Black.ttf +0 -0
  180. package/public/assets/roboto/Roboto-BlackItalic.ttf +0 -0
  181. package/public/assets/roboto/Roboto-Bold.ttf +0 -0
  182. package/public/assets/roboto/Roboto-BoldItalic.ttf +0 -0
  183. package/public/assets/roboto/Roboto-Italic.ttf +0 -0
  184. package/public/assets/roboto/Roboto-Light.ttf +0 -0
  185. package/public/assets/roboto/Roboto-LightItalic.ttf +0 -0
  186. package/public/assets/roboto/Roboto-Medium.ttf +0 -0
  187. package/public/assets/roboto/Roboto-MediumItalic.ttf +0 -0
  188. package/public/assets/roboto/Roboto-Regular.ttf +0 -0
  189. package/public/assets/roboto/Roboto-Thin.ttf +0 -0
  190. package/public/assets/roboto/Roboto-ThinItalic.ttf +0 -0
  191. package/public/assets/roboto/roboto.css +27 -0
  192. package/public/assets/tabler-icons/fonts/tabler-icons.eot +0 -0
  193. package/public/assets/tabler-icons/fonts/tabler-icons.ttf +0 -0
  194. package/public/assets/tabler-icons/fonts/tabler-icons.woff +0 -0
  195. package/public/assets/tabler-icons/fonts/tabler-icons.woff2 +0 -0
  196. package/public/assets/tabler-icons/tabler-icons.css +16056 -0
  197. package/public/assets/tabler-icons/tabler-icons.html +36226 -0
  198. package/public/assets/tabler-icons/tabler-icons.min.css +4 -0
  199. package/public/assets/tabler-icons/tabler-icons.png +0 -0
  200. package/public/assets/tabler-icons/tabler-icons.scss +8058 -0
  201. package/public/index.html +28 -0
  202. package/public/robots.txt +2 -0
  203. package/src/App.tsx +131 -0
  204. package/src/components/Sidebar.tsx +95 -0
  205. package/src/components/abbr/basic.html +6 -0
  206. package/src/components/abbr/basic.tsx +39 -0
  207. package/src/components/abbr/routes.ts +9 -0
  208. package/src/components/accordion/basic.tsx +18 -0
  209. package/src/components/accordion/header.tsx +17 -0
  210. package/src/components/accordion/headlines.tsx +27 -0
  211. package/src/components/accordion/list.tsx +32 -0
  212. package/src/components/accordion/routes.ts +17 -0
  213. package/src/components/alert/basic.tsx +37 -0
  214. package/src/components/alert/card-msg.tsx +11 -0
  215. package/src/components/alert/html.tsx +29 -0
  216. package/src/components/alert/routes.ts +15 -0
  217. package/src/components/avatar/basic.tsx +10 -0
  218. package/src/components/avatar/routes.ts +8 -0
  219. package/src/components/badge/basic.tsx +18 -0
  220. package/src/components/badge/button.tsx +25 -0
  221. package/src/components/badge/routes.ts +12 -0
  222. package/src/components/breadcrumb/basic.tsx +53 -0
  223. package/src/components/breadcrumb/routes.ts +9 -0
  224. package/src/components/button/basic.tsx +29 -0
  225. package/src/components/button/hide-label.tsx +31 -0
  226. package/src/components/button/icons.tsx +27 -0
  227. package/src/components/button/routes.ts +18 -0
  228. package/src/components/button/width.tsx +30 -0
  229. package/src/components/button-group/basic.tsx +13 -0
  230. package/src/components/button-group/routes.ts +9 -0
  231. package/src/components/button-link/basic.tsx +23 -0
  232. package/src/components/button-link/icons.tsx +37 -0
  233. package/src/components/button-link/image.tsx +14 -0
  234. package/src/components/button-link/routes.ts +18 -0
  235. package/src/components/button-link/target.tsx +16 -0
  236. package/src/components/card/basic.tsx +12 -0
  237. package/src/components/card/confirm.tsx +19 -0
  238. package/src/components/card/flex.tsx +44 -0
  239. package/src/components/card/routes.ts +18 -0
  240. package/src/components/card/selection.tsx +70 -0
  241. package/src/components/details/basic.tsx +19 -0
  242. package/src/components/details/routes.ts +9 -0
  243. package/src/components/form/routes.ts +5 -0
  244. package/src/components/handout/basic.tsx +1013 -0
  245. package/src/components/handout/routes.ts +9 -0
  246. package/src/components/heading/badged.tsx +27 -0
  247. package/src/components/heading/basic.tsx +15 -0
  248. package/src/components/heading/paragraph.tsx +45 -0
  249. package/src/components/heading/routes.ts +15 -0
  250. package/src/components/icon/basic.tsx +17 -0
  251. package/src/components/icon/routes.ts +9 -0
  252. package/src/components/indented-text/basic.tsx +24 -0
  253. package/src/components/indented-text/routes.ts +9 -0
  254. package/src/components/input-checkbox/basic.tsx +37 -0
  255. package/src/components/input-checkbox/routes.ts +9 -0
  256. package/src/components/input-color/basic.tsx +29 -0
  257. package/src/components/input-color/routes.ts +9 -0
  258. package/src/components/input-date/basic.tsx +20 -0
  259. package/src/components/input-date/routes.ts +9 -0
  260. package/src/components/input-email/basic.tsx +30 -0
  261. package/src/components/input-email/routes.ts +9 -0
  262. package/src/components/input-file/basic.tsx +25 -0
  263. package/src/components/input-file/routes.ts +9 -0
  264. package/src/components/input-number/basic.tsx +30 -0
  265. package/src/components/input-number/routes.ts +9 -0
  266. package/src/components/input-password/basic.tsx +28 -0
  267. package/src/components/input-password/routes.ts +11 -0
  268. package/src/components/input-password/show-password.tsx +38 -0
  269. package/src/components/input-radio/basic.tsx +46 -0
  270. package/src/components/input-radio/horizontal.tsx +42 -0
  271. package/src/components/input-radio/routes.ts +14 -0
  272. package/src/components/input-radio/select.tsx +18 -0
  273. package/src/components/input-range/basic.tsx +29 -0
  274. package/src/components/input-range/routes.ts +9 -0
  275. package/src/components/input-text/basic.tsx +72 -0
  276. package/src/components/input-text/blur.tsx +16 -0
  277. package/src/components/input-text/focus.tsx +24 -0
  278. package/src/components/input-text/hidden-label.tsx +66 -0
  279. package/src/components/input-text/routes.ts +16 -0
  280. package/src/components/link/basic.tsx +23 -0
  281. package/src/components/link/icons.tsx +37 -0
  282. package/src/components/link/image.tsx +20 -0
  283. package/src/components/link/routes.ts +18 -0
  284. package/src/components/link/target.tsx +15 -0
  285. package/src/components/link-button/basic.tsx +22 -0
  286. package/src/components/link-button/routes.ts +9 -0
  287. package/src/components/link-group/routes.ts +5 -0
  288. package/src/components/nav/active.tsx +88 -0
  289. package/src/components/nav/aria-current.tsx +22 -0
  290. package/src/components/nav/basic.tsx +62 -0
  291. package/src/components/nav/horizontal.tsx +59 -0
  292. package/src/components/nav/routes.ts +18 -0
  293. package/src/components/pagination/basic.tsx +12 -0
  294. package/src/components/pagination/routes.ts +9 -0
  295. package/src/components/popover/basic.tsx +36 -0
  296. package/src/components/popover/routes.ts +8 -0
  297. package/src/components/progress/basic.tsx +11 -0
  298. package/src/components/progress/routes.ts +9 -0
  299. package/src/components/select/basic.tsx +51 -0
  300. package/src/components/select/routes.ts +9 -0
  301. package/src/components/skip-nav/basic.tsx +33 -0
  302. package/src/components/skip-nav/routes.ts +9 -0
  303. package/src/components/spin/basic.tsx +6 -0
  304. package/src/components/spin/custom.css +52 -0
  305. package/src/components/spin/custom.tsx +11 -0
  306. package/src/components/spin/cycle.tsx +6 -0
  307. package/src/components/spin/routes.ts +13 -0
  308. package/src/components/split-button/basic.tsx +46 -0
  309. package/src/components/split-button/routes.ts +8 -0
  310. package/src/components/table/badge-size.tsx +51 -0
  311. package/src/components/table/render-cell.tsx +48 -0
  312. package/src/components/table/routes.ts +15 -0
  313. package/src/components/table/sort-date.tsx +33 -0
  314. package/src/components/table/test-data.ts +66 -0
  315. package/src/components/textarea/adjust-height.tsx +22 -0
  316. package/src/components/textarea/basic.tsx +11 -0
  317. package/src/components/textarea/disabled.tsx +10 -0
  318. package/src/components/textarea/placeholder.tsx +10 -0
  319. package/src/components/textarea/readonly.tsx +10 -0
  320. package/src/components/textarea/resize.tsx +13 -0
  321. package/src/components/textarea/routes.ts +27 -0
  322. package/src/components/textarea/rows.tsx +10 -0
  323. package/src/components/toast/basic.tsx +21 -0
  324. package/src/components/toast/routes.ts +8 -0
  325. package/src/components/version/basic.tsx +6 -0
  326. package/src/components/version/context.tsx +12 -0
  327. package/src/components/version/routes.ts +12 -0
  328. package/src/declare.d.ts +4 -0
  329. package/src/hooks/useMobile.ts +21 -0
  330. package/src/main.ts +7 -0
  331. package/src/react.main.tsx +56 -0
  332. package/src/shares/constants.ts +2 -0
  333. package/src/shares/react-roots.ts +10 -0
  334. package/src/shares/routes.ts +87 -0
  335. package/src/shares/store.ts +85 -0
  336. package/src/shares/theme.ts +103 -0
  337. package/src/shares/types.ts +4 -0
  338. package/src/style.scss +43 -0
  339. package/test-build.sh +2 -0
  340. package/tsconfig.json +32 -0
  341. package/unocss.config.ts +7 -0
  342. package/webpack.config.js +14 -0
@@ -0,0 +1,9 @@
1
+ import { Routes } from '../../shares/types';
2
+
3
+ import { BreadcrumbBasic } from './basic';
4
+
5
+ export const BREADCRUMB_ROUTES: Routes = {
6
+ breadcrumb: {
7
+ basic: BreadcrumbBasic,
8
+ },
9
+ };
@@ -0,0 +1,29 @@
1
+ import React from 'react';
2
+ import { KolButton } from '@public-ui/react';
3
+
4
+ import { FC } from 'react';
5
+
6
+ const ARGS = {
7
+ _on: {
8
+ onClick: (_event, _value) => alert('Klick!'),
9
+ },
10
+ };
11
+
12
+ export const ButtonBasic: FC = () => (
13
+ <div className="grid gap-14">
14
+ <div className="flex flex-wrap gap-14">
15
+ <KolButton _label="Primary" _variant="primary" {...ARGS}></KolButton>
16
+ <KolButton _label="Secondary" _variant="secondary" {...ARGS}></KolButton>
17
+ <KolButton _label="Normal" _variant="normal" {...ARGS}></KolButton>
18
+ <KolButton _label="Danger" _variant="danger" {...ARGS}></KolButton>
19
+ <KolButton _label="Ghost" _variant="ghost" {...ARGS}></KolButton>
20
+ </div>
21
+ <div className="flex flex-wrap gap-14">
22
+ <KolButton _disabled _label="Primary" _variant="primary"></KolButton>
23
+ <KolButton _disabled _label="Secondary" _variant="secondary"></KolButton>
24
+ <KolButton _disabled _label="Normal" _variant="normal"></KolButton>
25
+ <KolButton _disabled _label="Danger" _variant="danger"></KolButton>
26
+ <KolButton _disabled _label="Ghost" _variant="ghost"></KolButton>
27
+ </div>
28
+ </div>
29
+ );
@@ -0,0 +1,31 @@
1
+ import React from 'react';
2
+ import { KolButton } from '@public-ui/react';
3
+
4
+ import { FC } from 'react';
5
+
6
+ const ARGS = {
7
+ _icon: 'codicon codicon-home',
8
+ _hideLabel: true,
9
+ _on: {
10
+ onClick: (_event, _value) => alert('Klick!'),
11
+ },
12
+ };
13
+
14
+ export const ButtonIconOnly: FC = () => (
15
+ <div className="grid gap-14">
16
+ <div className="flex flex-wrap gap-14">
17
+ <KolButton _label="Primary" _variant="primary" _tooltipAlign="top" {...ARGS}></KolButton>
18
+ <KolButton _label="Secondary" _variant="secondary" _tooltipAlign="right" {...ARGS}></KolButton>
19
+ <KolButton _label="Normal" _variant="normal" _tooltipAlign="bottom" {...ARGS}></KolButton>
20
+ <KolButton _label="Danger" _variant="danger" _tooltipAlign="left" {...ARGS}></KolButton>
21
+ <KolButton _label="Ghost" _variant="ghost" {...ARGS}></KolButton>
22
+ </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>
31
+ );
@@ -0,0 +1,27 @@
1
+ import React from 'react';
2
+ import { KolButton } from '@public-ui/react';
3
+
4
+ import { FC } from 'react';
5
+
6
+ export const ButtonIcons: FC = () => (
7
+ <KolButton
8
+ _icon={{
9
+ bottom: 'codicon codicon-arrow-down',
10
+ left: {
11
+ icon: 'codicon codicon-arrow-left',
12
+ },
13
+ top: {
14
+ style: {
15
+ 'font-size': '200%',
16
+ transform: 'rotate(45deg)',
17
+ },
18
+ icon: 'codicon codicon-arrow-up',
19
+ },
20
+ right: 'codicon codicon-arrow-right',
21
+ }}
22
+ _label="Label"
23
+ _on={{
24
+ onClick: (_event, _value) => alert('Klick!'),
25
+ }}
26
+ />
27
+ );
@@ -0,0 +1,18 @@
1
+ import { Routes } from '../../shares/types';
2
+
3
+ import { ButtonBasic } from './basic';
4
+
5
+ import { ButtonIconOnly } from './hide-label';
6
+
7
+ import { ButtonIcons } from './icons';
8
+
9
+ import { ButtonWidth } from './width';
10
+
11
+ export const BUTTON_ROUTES: Routes = {
12
+ button: {
13
+ basic: ButtonBasic,
14
+ 'hide-label': ButtonIconOnly,
15
+ icons: ButtonIcons,
16
+ width: ButtonWidth,
17
+ },
18
+ };
@@ -0,0 +1,30 @@
1
+ import React from 'react';
2
+ import { KolButton } from '@public-ui/react';
3
+
4
+ import { FC } from 'react';
5
+
6
+ const ARGS = {
7
+ className: 'w-8rem',
8
+ _on: {
9
+ onClick: (_event, _value) => alert('Klick!'),
10
+ },
11
+ };
12
+
13
+ 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>
28
+ </div>
29
+ </div>
30
+ );
@@ -0,0 +1,13 @@
1
+ import React from 'react';
2
+ import { KolButton, KolButtonGroup } from '@public-ui/react';
3
+
4
+ import { FC } from 'react';
5
+
6
+ export const ButtonGroupBasic: FC = () => (
7
+ <KolButtonGroup>
8
+ <KolButton _label="Active" _variant="primary"></KolButton>
9
+ <KolButton _label="Not active" _disabled></KolButton>
10
+ <KolButton _label="Active" _icon="codicon codicon-home" _variant="danger"></KolButton>
11
+ <KolButton _label="Active" _icon="codicon codicon-trash" _hideLabel _variant="ghost"></KolButton>
12
+ </KolButtonGroup>
13
+ );
@@ -0,0 +1,9 @@
1
+ import { Routes } from '../../shares/types';
2
+
3
+ import { ButtonGroupBasic } from './basic';
4
+
5
+ export const BUTTON_GROUP_ROUTES: Routes = {
6
+ 'button-group': {
7
+ basic: ButtonGroupBasic,
8
+ },
9
+ };
@@ -0,0 +1,23 @@
1
+ import React from 'react';
2
+ import { KolButtonLink } from '@public-ui/react';
3
+
4
+ import { FC } from 'react';
5
+
6
+ export const ButtonLinkBasic: FC = () => (
7
+ <div className="grid gap-4">
8
+ <KolButtonLink _href="#" _label="Simple Link" />
9
+ <p>
10
+ In diesem Absatz wird ein Link gesetzt, der keine weiteren Attribute enthält. <KolButtonLink _href="#" _label="Simple Link" /> Er wird standardmäßig als{' '}
11
+ <strong>inline-Element</strong> ausgegeben.
12
+ </p>
13
+ <p>
14
+ In diesem Absatz wird ein Link gesetzt, der einmal als inline-block-Element ausgegeben wird.{' '}
15
+ <KolButtonLink class="d-inline-block" _href="#" _label="Simple Link" />. Damit kann man mir per CSS-Styles eine Breite, eine Höhe und andere Eigenschaften
16
+ zuweisen.
17
+ <br />
18
+ <br />
19
+ Danach folgt ein Link, der als block-Element ausgegeben wird.
20
+ <KolButtonLink class="d-block" _href="#" _label="Simple Link" />, daher gehe ich über die ganze Breite des Eltern-Elements erzeuge so einen Zeilenumbruch.
21
+ </p>
22
+ </div>
23
+ );
@@ -0,0 +1,37 @@
1
+ import React from 'react';
2
+ import { KolButtonLink } from '@public-ui/react';
3
+
4
+ import { FC } from 'react';
5
+
6
+ export const ButtonLinkIcons: FC = () => (
7
+ <div className="grid gap-4">
8
+ <KolButtonLink _icon="codicon codicon-home" _label="Ich bin ein Link mit Icon links" />
9
+ <KolButtonLink
10
+ _icon={{
11
+ right: 'codicon codicon-home',
12
+ }}
13
+ _label="Ich bin ein Link mit Icon rechts"
14
+ />
15
+ <KolButtonLink
16
+ _icon={{
17
+ top: 'codicon codicon-home',
18
+ }}
19
+ _label="Ich bin ein Link mit Icon oben"
20
+ />
21
+ <KolButtonLink
22
+ _icon={{
23
+ bottom: 'codicon codicon-home',
24
+ }}
25
+ _label="Ich bin ein Link mit Icon unten"
26
+ />
27
+ <KolButtonLink
28
+ _icon={{
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>
37
+ );
@@ -0,0 +1,14 @@
1
+ import React from 'react';
2
+ import { KolButtonLink } from '@public-ui/react';
3
+
4
+ import { FC } from 'react';
5
+
6
+ export const ButtonLinkImage: FC = () => (
7
+ <div className="grid gap-4">
8
+ <KolButtonLink _href="#" _label="Ich bin ein Link, der als Text gerendert wird" />
9
+ <br />
10
+ <KolButtonLink _href="#" _label="">
11
+ <img alt="Abgrenzung" slot="expert" src="https://public-ui.github.io/assets/abgrenzung.jpg" width="300" />
12
+ </KolButtonLink>
13
+ </div>
14
+ );
@@ -0,0 +1,18 @@
1
+ import { Routes } from '../../shares/types';
2
+
3
+ import { ButtonLinkBasic } from './basic';
4
+
5
+ import { ButtonLinkIcons } from './icons';
6
+
7
+ import { ButtonLinkImage } from './image';
8
+
9
+ import { ButtonLinkTarget } from './target';
10
+
11
+ export const BUTTON_LINK_ROUTES: Routes = {
12
+ 'button-link': {
13
+ basic: ButtonLinkBasic,
14
+ icons: ButtonLinkIcons,
15
+ image: ButtonLinkImage,
16
+ target: ButtonLinkTarget,
17
+ },
18
+ };
@@ -0,0 +1,16 @@
1
+ import React from 'react';
2
+ import { KolAlert, KolButtonLink } from '@public-ui/react';
3
+
4
+ import { FC } from 'react';
5
+
6
+ export const ButtonLinkTarget: FC = () => (
7
+ <div className="grid gap-4">
8
+ <KolAlert _type="info">Bei einem semantischen Button der als Link dargestellt wird, gibt es kein Target!</KolAlert>
9
+ <KolButtonLink _href="#" _label="Ich bin ein Link ohne Target" />
10
+ <KolButtonLink _href="#" _label="Ich bin ein Link mit Target (_self)" _target="_self" />
11
+ <KolButtonLink _href="#" _label="Ich bin ein Link mit Target (_blank)" _target="_blank" />
12
+ <KolButtonLink _href="#" _icon="codicon codicon-home" _hideLabel _label="Ich bin ein Link ohne Target" />
13
+ <KolButtonLink _href="#" _icon="codicon codicon-home" _hideLabel _label="Ich bin ein Link mit Target (_self)" _target="_self" />
14
+ <KolButtonLink _href="#" _icon="codicon codicon-home" _hideLabel _label="Ich bin ein Link mit Target (_blank)" _target="_blank" />
15
+ </div>
16
+ );
@@ -0,0 +1,12 @@
1
+ import React from 'react';
2
+ import { KolCard } from '@public-ui/react';
3
+
4
+ import { FC } from 'react';
5
+
6
+ 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>
12
+ );
@@ -0,0 +1,19 @@
1
+ import React from 'react';
2
+ import { KolButton, KolCard } from '@public-ui/react';
3
+
4
+ import { FC } from 'react';
5
+
6
+ export const CardConfirm: FC = () => (
7
+ <KolCard _has-footer _heading="Überschrift">
8
+ <p className="p-2" slot="content">
9
+ Lorem ipsum dolor sit amet consectetur, adipisicing elit. Soluta pariatur laudantium saepe ipsa atque officia cupiditate repudiandae harum earum aut
10
+ doloribus autem libero exercitationem dolor ad, magni dignissimos ratione fuga. Lorem ipsum dolor sit amet consectetur adipisicing elit. Officiis
11
+ perferendis qui animi nesciunt illo facere, doloribus sint cupiditate nihil dolorem voluptate ab esse! Ducimus ad est commodi molestias voluptas
12
+ reiciendis.
13
+ </p>
14
+ <div slot="footer" className="d-flex gap-2 float-end">
15
+ <KolButton className="w-12rem" _variant="primary" _label="Speichern"></KolButton>
16
+ <KolButton className="w-12rem" _variant="secondary" _label="Abbrechen"></KolButton>
17
+ </div>
18
+ </KolCard>
19
+ );
@@ -0,0 +1,44 @@
1
+ import React from 'react';
2
+ import { KolCard } from '@public-ui/react';
3
+
4
+ import { FC } from 'react';
5
+
6
+ export const CardFlex: FC = () => (
7
+ <div className="grid grid-cols-2 gap-4">
8
+ <KolCard _heading="Titel" _hasFooter>
9
+ <div slot="header">Zusätzlicher Header</div>
10
+ <div slot="content">Inhalt</div>
11
+ <div slot="footer">Fusszeile</div>
12
+ </KolCard>
13
+ <KolCard _heading="Titel" _hasFooter>
14
+ <div slot="header">Zusätzlicher Header</div>
15
+ <div slot="content">
16
+ Inhalt
17
+ <br />
18
+ Inhalt
19
+ </div>
20
+ <div slot="footer">Fusszeile</div>
21
+ </KolCard>
22
+ <KolCard _heading="Titel" _hasFooter>
23
+ <div slot="header">Zusätzlicher Header</div>
24
+ <div slot="content">
25
+ Inhalt
26
+ <br />
27
+ Inhalt
28
+ <br />
29
+ Inhalt
30
+ </div>
31
+ <div slot="footer">Fusszeile</div>
32
+ </KolCard>
33
+ <KolCard _heading="Titel" _hasFooter>
34
+ <div slot="header">Zusätzlicher Header</div>
35
+ <div slot="content">Inhalt</div>
36
+ <div slot="footer">Fusszeile</div>
37
+ </KolCard>
38
+ <KolCard _heading="Titel" _hasFooter>
39
+ <div slot="header">Zusätzlicher Header</div>
40
+ <div slot="content">Inhalt</div>
41
+ <div slot="footer">Fusszeile</div>
42
+ </KolCard>
43
+ </div>
44
+ );
@@ -0,0 +1,18 @@
1
+ import { Routes } from '../../shares/types';
2
+
3
+ import { CardBasic } from './basic';
4
+
5
+ import { CardConfirm } from './confirm';
6
+
7
+ import { CardFlex } from './flex';
8
+
9
+ import { CardSelection } from './selection';
10
+
11
+ export const CARD_ROUTES: Routes = {
12
+ card: {
13
+ basic: CardBasic,
14
+ confirm: CardConfirm,
15
+ flex: CardFlex,
16
+ selection: CardSelection,
17
+ },
18
+ };
@@ -0,0 +1,70 @@
1
+ import React from 'react';
2
+ import { KolButton, KolCard, KolInputCheckbox } from '@public-ui/react';
3
+
4
+ import { FC } from 'react';
5
+
6
+ const STYLE = {
7
+ display: 'flex',
8
+ justifyContent: 'space-between',
9
+ alignItems: 'center',
10
+ gap: '.5rem',
11
+ };
12
+
13
+ export const CardSelection: FC = () => (
14
+ <div className="d-flex gap-2">
15
+ <KolCard _hasFooter _heading="DEBTI-25437/17-1">
16
+ <div slot="header">
17
+ TeCorp Endplatte
18
+ <br />
19
+ VZTA
20
+ </div>
21
+ <div slot="content">
22
+ <div>
23
+ <img alt="Beispielbild" src="https://via.placeholder.com/200" />
24
+ </div>
25
+ </div>
26
+ <div slot="footer">
27
+ <div style={STYLE}>
28
+ <KolInputCheckbox _id="article-0">Auswählen</KolInputCheckbox>
29
+ <KolButton _variant="primary" _label="Öffnen"></KolButton>
30
+ </div>
31
+ </div>
32
+ </KolCard>
33
+ <KolCard _hasFooter _heading="DEBTI-25437/17-1">
34
+ <div slot="header">
35
+ TeCorp Endplatte
36
+ <br />
37
+ VZTA
38
+ </div>
39
+ <div slot="content">
40
+ <div>
41
+ <img alt="Beispielbild" src="https://via.placeholder.com/200" />
42
+ </div>
43
+ </div>
44
+ <div slot="footer">
45
+ <div style={STYLE}>
46
+ <KolInputCheckbox _id="article-1">Auswählen</KolInputCheckbox>
47
+ <KolButton _variant="primary" _label="Öffnen"></KolButton>
48
+ </div>
49
+ </div>
50
+ </KolCard>
51
+ <KolCard _hasFooter _heading="DEBTI-25437/17-1">
52
+ <div slot="header">
53
+ TeCorp Endplatte
54
+ <br />
55
+ VZTA
56
+ </div>
57
+ <div slot="content">
58
+ <div>
59
+ <img alt="Beispielbild" src="https://via.placeholder.com/200" />
60
+ </div>
61
+ </div>
62
+ <div slot="footer">
63
+ <div style={STYLE}>
64
+ <KolInputCheckbox _id="article-2">Auswählen</KolInputCheckbox>
65
+ <KolButton _variant="primary" _label="Öffnen"></KolButton>
66
+ </div>
67
+ </div>
68
+ </KolCard>
69
+ </div>
70
+ );
@@ -0,0 +1,19 @@
1
+ import React from 'react';
2
+ import { KolDetails } from '@public-ui/react';
3
+
4
+ import { FC } from 'react';
5
+
6
+ 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>
19
+ );
@@ -0,0 +1,9 @@
1
+ import { Routes } from '../../shares/types';
2
+
3
+ import { DetailsBasic } from './basic';
4
+
5
+ export const DETAILS_ROUTES: Routes = {
6
+ details: {
7
+ basic: DetailsBasic,
8
+ },
9
+ };
@@ -0,0 +1,5 @@
1
+ import { Routes } from '../../shares/types';
2
+
3
+ export const FORM_ROUTES: Routes = {
4
+ form: {},
5
+ };