@public-ui/sample-react 1.7.0-rc.13 → 1.7.0-rc.15
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.
- package/dist/.htaccess +3 -0
- package/dist/1159.js +2 -0
- package/dist/1159.js.LICENSE.txt +3 -0
- package/dist/1474.js +2 -0
- package/dist/1474.js.LICENSE.txt +3 -0
- package/dist/183.js +2 -0
- package/dist/183.js.LICENSE.txt +3 -0
- package/dist/2337.js +2 -0
- package/dist/2337.js.LICENSE.txt +3 -0
- package/dist/2412.js +2 -0
- package/dist/2412.js.LICENSE.txt +3 -0
- package/dist/2697.js +2 -0
- package/dist/2697.js.LICENSE.txt +3 -0
- package/dist/3303.js +2 -0
- package/dist/3303.js.LICENSE.txt +3 -0
- package/dist/3325.js +2 -0
- package/dist/3325.js.LICENSE.txt +3 -0
- package/dist/3429.js +2 -0
- package/dist/3429.js.LICENSE.txt +3 -0
- package/dist/3459.js +2 -0
- package/dist/3459.js.LICENSE.txt +3 -0
- package/dist/3537.js +2 -0
- package/dist/3537.js.LICENSE.txt +3 -0
- package/dist/3932.js +2 -0
- package/dist/3932.js.LICENSE.txt +3 -0
- package/dist/4021.js +2 -0
- package/dist/4021.js.LICENSE.txt +3 -0
- package/dist/4022.js +2 -0
- package/dist/4022.js.LICENSE.txt +3 -0
- package/dist/4195.js +2 -0
- package/dist/4195.js.LICENSE.txt +3 -0
- package/dist/4291.js +2 -0
- package/dist/4291.js.LICENSE.txt +3 -0
- package/dist/4323.js +2 -0
- package/dist/4323.js.LICENSE.txt +3 -0
- package/dist/4355.js +2 -0
- package/dist/4355.js.LICENSE.txt +3 -0
- package/dist/4378.js +2 -0
- package/dist/4378.js.LICENSE.txt +3 -0
- package/dist/4477.js +2 -0
- package/dist/4477.js.LICENSE.txt +3 -0
- package/dist/4564.js +2 -0
- package/dist/4564.js.LICENSE.txt +3 -0
- package/dist/4891.js +2 -0
- package/dist/4891.js.LICENSE.txt +3 -0
- package/dist/5183.js +2 -0
- package/dist/5183.js.LICENSE.txt +3 -0
- package/dist/5369.js +2 -0
- package/dist/5369.js.LICENSE.txt +3 -0
- package/dist/5390.js +2 -0
- package/dist/5390.js.LICENSE.txt +3 -0
- package/dist/540.js +2 -0
- package/dist/540.js.LICENSE.txt +3 -0
- package/dist/5862.js +2 -0
- package/dist/5862.js.LICENSE.txt +3 -0
- package/dist/5866.js +2 -0
- package/dist/5866.js.LICENSE.txt +3 -0
- package/dist/6012.js +2 -0
- package/dist/6012.js.LICENSE.txt +3 -0
- package/dist/6068.js +2 -0
- package/dist/6068.js.LICENSE.txt +3 -0
- package/dist/6210.js +2 -0
- package/dist/6210.js.LICENSE.txt +3 -0
- package/dist/6320.js +2 -0
- package/dist/6320.js.LICENSE.txt +3 -0
- package/dist/6558.js +2 -0
- package/dist/6558.js.LICENSE.txt +3 -0
- package/dist/6655.js +2 -0
- package/dist/6655.js.LICENSE.txt +3 -0
- package/dist/6813.js +2 -0
- package/dist/6813.js.LICENSE.txt +3 -0
- package/dist/6908.js +2 -0
- package/dist/6908.js.LICENSE.txt +3 -0
- package/dist/7029.js +2 -0
- package/dist/7029.js.LICENSE.txt +3 -0
- package/dist/7255.js +2 -0
- package/dist/7255.js.LICENSE.txt +3 -0
- package/dist/7447.js +2 -0
- package/dist/7447.js.LICENSE.txt +3 -0
- package/dist/7715.js +2 -0
- package/dist/7715.js.LICENSE.txt +3 -0
- package/dist/7722.js +2 -0
- package/dist/7722.js.LICENSE.txt +3 -0
- package/dist/7801.js +2 -0
- package/dist/7801.js.LICENSE.txt +3 -0
- package/dist/7858.js +2 -0
- package/dist/7858.js.LICENSE.txt +3 -0
- package/dist/7955.js +2 -0
- package/dist/7955.js.LICENSE.txt +3 -0
- package/dist/7958.js +2 -0
- package/dist/7958.js.LICENSE.txt +3 -0
- package/dist/7995.js +2 -0
- package/dist/7995.js.LICENSE.txt +3 -0
- package/dist/8061.js +2 -0
- package/dist/8061.js.LICENSE.txt +3 -0
- package/dist/8065.js +2 -0
- package/dist/8065.js.LICENSE.txt +3 -0
- package/dist/8073.js +2 -0
- package/dist/8073.js.LICENSE.txt +3 -0
- package/dist/8099.js +2 -0
- package/dist/8099.js.LICENSE.txt +3 -0
- package/dist/8111.js +2 -0
- package/dist/8111.js.LICENSE.txt +3 -0
- package/dist/8255.js +2 -0
- package/dist/8255.js.LICENSE.txt +3 -0
- package/dist/8291.js +2 -0
- package/dist/8291.js.LICENSE.txt +3 -0
- package/dist/8408.js +2 -0
- package/dist/8408.js.LICENSE.txt +3 -0
- package/dist/8709.js +1 -0
- package/dist/8761.js +2 -0
- package/dist/8761.js.LICENSE.txt +3 -0
- package/dist/9106.js +2 -0
- package/dist/9106.js.LICENSE.txt +3 -0
- package/dist/9230.js +2 -0
- package/dist/9230.js.LICENSE.txt +3 -0
- package/dist/9329.js +2 -0
- package/dist/9329.js.LICENSE.txt +3 -0
- package/dist/959.js +2 -0
- package/dist/959.js.LICENSE.txt +3 -0
- package/dist/9598.js +2 -0
- package/dist/9598.js.LICENSE.txt +3 -0
- package/dist/9734.js +2 -0
- package/dist/9734.js.LICENSE.txt +3 -0
- package/dist/9747.js +2 -0
- package/dist/9747.js.LICENSE.txt +3 -0
- package/dist/9753.js +2 -0
- package/dist/9753.js.LICENSE.txt +3 -0
- package/dist/9792.js +2 -0
- package/dist/9792.js.LICENSE.txt +3 -0
- package/dist/9895.js +2 -0
- package/dist/9895.js.LICENSE.txt +3 -0
- package/dist/9963.js +2 -0
- package/dist/9963.js.LICENSE.txt +3 -0
- package/dist/9972.js +2 -0
- package/dist/9972.js.LICENSE.txt +3 -0
- package/dist/assets/bundes/LICENSE.md +1 -0
- package/dist/assets/bundes/sans/BundesSans-Web-Black.ttf +0 -0
- package/dist/assets/bundes/sans/BundesSans-Web-Black.woff +0 -0
- package/dist/assets/bundes/sans/BundesSans-Web-Black.woff2 +0 -0
- package/dist/assets/bundes/sans/BundesSans-Web-BlackItalic.ttf +0 -0
- package/dist/assets/bundes/sans/BundesSans-Web-BlackItalic.woff +0 -0
- package/dist/assets/bundes/sans/BundesSans-Web-BlackItalic.woff2 +0 -0
- package/dist/assets/bundes/sans/BundesSans-Web-Bold.ttf +0 -0
- package/dist/assets/bundes/sans/BundesSans-Web-Bold.woff +0 -0
- package/dist/assets/bundes/sans/BundesSans-Web-Bold.woff2 +0 -0
- package/dist/assets/bundes/sans/BundesSans-Web-BoldItalic.ttf +0 -0
- package/dist/assets/bundes/sans/BundesSans-Web-BoldItalic.woff +0 -0
- package/dist/assets/bundes/sans/BundesSans-Web-BoldItalic.woff2 +0 -0
- package/dist/assets/bundes/sans/BundesSans-Web-Light.ttf +0 -0
- package/dist/assets/bundes/sans/BundesSans-Web-Light.woff +0 -0
- package/dist/assets/bundes/sans/BundesSans-Web-Light.woff2 +0 -0
- package/dist/assets/bundes/sans/BundesSans-Web-LightItalic.ttf +0 -0
- package/dist/assets/bundes/sans/BundesSans-Web-LightItalic.woff +0 -0
- package/dist/assets/bundes/sans/BundesSans-Web-LightItalic.woff2 +0 -0
- package/dist/assets/bundes/sans/BundesSans-Web-Medium.ttf +0 -0
- package/dist/assets/bundes/sans/BundesSans-Web-Medium.woff +0 -0
- package/dist/assets/bundes/sans/BundesSans-Web-Medium.woff2 +0 -0
- package/dist/assets/bundes/sans/BundesSans-Web-MediumItalic.ttf +0 -0
- package/dist/assets/bundes/sans/BundesSans-Web-MediumItalic.woff +0 -0
- package/dist/assets/bundes/sans/BundesSans-Web-MediumItalic.woff2 +0 -0
- package/dist/assets/bundes/sans/BundesSans-Web-Regular.ttf +0 -0
- package/dist/assets/bundes/sans/BundesSans-Web-Regular.woff +0 -0
- package/dist/assets/bundes/sans/BundesSans-Web-Regular.woff2 +0 -0
- package/dist/assets/bundes/sans/BundesSans-Web-RegularItalic.ttf +0 -0
- package/dist/assets/bundes/sans/BundesSans-Web-RegularItalic.woff +0 -0
- package/dist/assets/bundes/sans/BundesSans-Web-RegularItalic.woff2 +0 -0
- package/dist/assets/bundes/sans-cond/BundesSansCond-Web-Regular.ttf +0 -0
- package/dist/assets/bundes/sans-cond/BundesSansCond-Web-Regular.woff +0 -0
- package/dist/assets/bundes/sans-cond/BundesSansCond-Web-Regular.woff2 +0 -0
- package/dist/assets/bundes/serif/BundesSerif-Web-Bold.ttf +0 -0
- package/dist/assets/bundes/serif/BundesSerif-Web-Bold.woff +0 -0
- package/dist/assets/bundes/serif/BundesSerif-Web-Bold.woff2 +0 -0
- package/dist/assets/bundes/serif/BundesSerif-Web-BoldItalic.ttf +0 -0
- package/dist/assets/bundes/serif/BundesSerif-Web-BoldItalic.woff +0 -0
- package/dist/assets/bundes/serif/BundesSerif-Web-BoldItalic.woff2 +0 -0
- package/dist/assets/bundes/serif/BundesSerif-Web-Italic.ttf +0 -0
- package/dist/assets/bundes/serif/BundesSerif-Web-Italic.woff +0 -0
- package/dist/assets/bundes/serif/BundesSerif-Web-Italic.woff2 +0 -0
- package/dist/assets/bundes/serif/BundesSerif-Web-Regular.ttf +0 -0
- package/dist/assets/bundes/serif/BundesSerif-Web-Regular.woff +0 -0
- package/dist/assets/bundes/serif/BundesSerif-Web-Regular.woff2 +0 -0
- package/dist/assets/bundes/style.css +84 -0
- package/dist/assets/codicons/LICENSE +395 -0
- package/dist/assets/codicons/LICENSE-CODE +21 -0
- package/dist/assets/codicons/codicon.css +582 -0
- package/dist/assets/codicons/codicon.csv +426 -0
- package/dist/assets/codicons/codicon.html +3911 -0
- package/dist/assets/codicons/codicon.svg +1 -0
- package/dist/assets/codicons/codicon.ttf +0 -0
- package/dist/assets/fontawesome-free/LICENSE.txt +165 -0
- package/dist/assets/fontawesome-free/css/all.css +7831 -0
- package/dist/assets/fontawesome-free/css/all.min.css +6 -0
- package/dist/assets/fontawesome-free/css/brands.css +1432 -0
- package/dist/assets/fontawesome-free/css/brands.min.css +6 -0
- package/dist/assets/fontawesome-free/css/fontawesome.css +6338 -0
- package/dist/assets/fontawesome-free/css/fontawesome.min.css +6 -0
- package/dist/assets/fontawesome-free/css/regular.css +19 -0
- package/dist/assets/fontawesome-free/css/regular.min.css +6 -0
- package/dist/assets/fontawesome-free/css/solid.css +19 -0
- package/dist/assets/fontawesome-free/css/solid.min.css +6 -0
- package/dist/assets/fontawesome-free/css/svg-with-js.css +634 -0
- package/dist/assets/fontawesome-free/css/svg-with-js.min.css +6 -0
- package/dist/assets/fontawesome-free/css/v4-font-face.css +26 -0
- package/dist/assets/fontawesome-free/css/v4-font-face.min.css +6 -0
- package/dist/assets/fontawesome-free/css/v4-shims.css +2146 -0
- package/dist/assets/fontawesome-free/css/v4-shims.min.css +6 -0
- package/dist/assets/fontawesome-free/css/v5-font-face.css +22 -0
- package/dist/assets/fontawesome-free/css/v5-font-face.min.css +6 -0
- package/dist/assets/fontawesome-free/webfonts/fa-brands-400.ttf +0 -0
- package/dist/assets/fontawesome-free/webfonts/fa-brands-400.woff2 +0 -0
- package/dist/assets/fontawesome-free/webfonts/fa-regular-400.ttf +0 -0
- package/dist/assets/fontawesome-free/webfonts/fa-regular-400.woff2 +0 -0
- package/dist/assets/fontawesome-free/webfonts/fa-solid-900.ttf +0 -0
- package/dist/assets/fontawesome-free/webfonts/fa-solid-900.woff2 +0 -0
- package/dist/assets/fontawesome-free/webfonts/fa-v4compatibility.ttf +0 -0
- package/dist/assets/fontawesome-free/webfonts/fa-v4compatibility.woff2 +0 -0
- package/dist/assets/icofont/demo.html +18939 -0
- package/dist/assets/icofont/fonts/icofont.eot +0 -0
- package/dist/assets/icofont/fonts/icofont.svg +2105 -0
- package/dist/assets/icofont/fonts/icofont.ttf +0 -0
- package/dist/assets/icofont/fonts/icofont.woff +0 -0
- package/dist/assets/icofont/fonts/icofont.woff2 +0 -0
- package/dist/assets/icofont/icofont.css +10757 -0
- package/dist/assets/icofont/icofont.min.css +7 -0
- package/dist/assets/kolibri.ico +0 -0
- package/dist/assets/kreon/Kreon-VariableFont_wght.ttf +0 -0
- package/dist/assets/kreon/OFL.txt +93 -0
- package/dist/assets/kreon/README.txt +67 -0
- package/dist/assets/kreon/static/Kreon-Bold.ttf +0 -0
- package/dist/assets/kreon/static/Kreon-Light.ttf +0 -0
- package/dist/assets/kreon/static/Kreon-Medium.ttf +0 -0
- package/dist/assets/kreon/static/Kreon-Regular.ttf +0 -0
- package/dist/assets/kreon/static/Kreon-SemiBold.ttf +0 -0
- package/dist/assets/kreon/style.css +41 -0
- package/dist/assets/material-icons/LICENSE +202 -0
- package/dist/assets/material-icons/README.md +129 -0
- package/dist/assets/material-icons/_data/versions.json +2124 -0
- package/dist/assets/material-icons/css/_codepoints.scss +2279 -0
- package/dist/assets/material-icons/css/_mixins.scss +13 -0
- package/dist/assets/material-icons/css/_variables.scss +6 -0
- package/dist/assets/material-icons/css/material-icons.css +9208 -0
- package/dist/assets/material-icons/css/material-icons.min.css +1 -0
- package/dist/assets/material-icons/css/material-icons.scss +39 -0
- package/dist/assets/material-icons/iconfont/_mixins.scss +55 -0
- package/dist/assets/material-icons/iconfont/_variables.scss +3 -0
- package/dist/assets/material-icons/iconfont/filled.css +24 -0
- package/dist/assets/material-icons/iconfont/filled.scss +4 -0
- package/dist/assets/material-icons/iconfont/material-icons-outlined.woff +0 -0
- package/dist/assets/material-icons/iconfont/material-icons-outlined.woff2 +0 -0
- package/dist/assets/material-icons/iconfont/material-icons-round.woff +0 -0
- package/dist/assets/material-icons/iconfont/material-icons-round.woff2 +0 -0
- package/dist/assets/material-icons/iconfont/material-icons-sharp.woff +0 -0
- package/dist/assets/material-icons/iconfont/material-icons-sharp.woff2 +0 -0
- package/dist/assets/material-icons/iconfont/material-icons-two-tone.woff +0 -0
- package/dist/assets/material-icons/iconfont/material-icons-two-tone.woff2 +0 -0
- package/dist/assets/material-icons/iconfont/material-icons.css +124 -0
- package/dist/assets/material-icons/iconfont/material-icons.scss +5 -0
- package/dist/assets/material-icons/iconfont/material-icons.woff +0 -0
- package/dist/assets/material-icons/iconfont/material-icons.woff2 +0 -0
- package/dist/assets/material-icons/iconfont/outlined.css +24 -0
- package/dist/assets/material-icons/iconfont/outlined.scss +4 -0
- package/dist/assets/material-icons/iconfont/round.css +24 -0
- package/dist/assets/material-icons/iconfont/round.scss +4 -0
- package/dist/assets/material-icons/iconfont/sharp.css +24 -0
- package/dist/assets/material-icons/iconfont/sharp.scss +4 -0
- package/dist/assets/material-icons/iconfont/two-tone.css +24 -0
- package/dist/assets/material-icons/iconfont/two-tone.scss +4 -0
- package/dist/assets/material-icons/index.d.ts +2128 -0
- package/dist/assets/material-icons/package.json +52 -0
- package/dist/assets/material-symbols/LICENSE +202 -0
- package/dist/assets/material-symbols/README.md +114 -0
- package/dist/assets/material-symbols/_core.scss +47 -0
- package/dist/assets/material-symbols/index.css +74 -0
- package/dist/assets/material-symbols/index.d.ts +2809 -0
- package/dist/assets/material-symbols/index.scss +3 -0
- package/dist/assets/material-symbols/material-symbols-outlined.woff2 +0 -0
- package/dist/assets/material-symbols/material-symbols-rounded.woff2 +0 -0
- package/dist/assets/material-symbols/material-symbols-sharp.woff2 +0 -0
- package/dist/assets/material-symbols/outlined.css +24 -0
- package/dist/assets/material-symbols/outlined.scss +3 -0
- package/dist/assets/material-symbols/package.json +41 -0
- package/dist/assets/material-symbols/rounded.css +24 -0
- package/dist/assets/material-symbols/rounded.scss +3 -0
- package/dist/assets/material-symbols/sharp.css +24 -0
- package/dist/assets/material-symbols/sharp.scss +3 -0
- package/dist/assets/noto-sans/fonts/NotoSans-Black.ttf +0 -0
- package/dist/assets/noto-sans/fonts/NotoSans-BlackItalic.ttf +0 -0
- package/dist/assets/noto-sans/fonts/NotoSans-Bold.ttf +0 -0
- package/dist/assets/noto-sans/fonts/NotoSans-BoldItalic.ttf +0 -0
- package/dist/assets/noto-sans/fonts/NotoSans-ExtraBold.ttf +0 -0
- package/dist/assets/noto-sans/fonts/NotoSans-ExtraBoldItalic.ttf +0 -0
- package/dist/assets/noto-sans/fonts/NotoSans-ExtraLight.ttf +0 -0
- package/dist/assets/noto-sans/fonts/NotoSans-ExtraLightItalic.ttf +0 -0
- package/dist/assets/noto-sans/fonts/NotoSans-Italic.ttf +0 -0
- package/dist/assets/noto-sans/fonts/NotoSans-Light.ttf +0 -0
- package/dist/assets/noto-sans/fonts/NotoSans-LightItalic.ttf +0 -0
- package/dist/assets/noto-sans/fonts/NotoSans-Medium.ttf +0 -0
- package/dist/assets/noto-sans/fonts/NotoSans-MediumItalic.ttf +0 -0
- package/dist/assets/noto-sans/fonts/NotoSans-Regular.ttf +0 -0
- package/dist/assets/noto-sans/fonts/NotoSans-SemiBold.ttf +0 -0
- package/dist/assets/noto-sans/fonts/NotoSans-SemiBoldItalic.ttf +0 -0
- package/dist/assets/noto-sans/fonts/NotoSans-Thin.ttf +0 -0
- package/dist/assets/noto-sans/fonts/NotoSans-ThinItalic.ttf +0 -0
- package/dist/assets/noto-sans/fonts/OFL.txt +93 -0
- package/dist/assets/noto-sans/noto-sans.css +11 -0
- package/dist/assets/roboto/LICENSE.txt +202 -0
- package/dist/assets/roboto/Roboto-Black.ttf +0 -0
- package/dist/assets/roboto/Roboto-BlackItalic.ttf +0 -0
- package/dist/assets/roboto/Roboto-Bold.ttf +0 -0
- package/dist/assets/roboto/Roboto-BoldItalic.ttf +0 -0
- package/dist/assets/roboto/Roboto-Italic.ttf +0 -0
- package/dist/assets/roboto/Roboto-Light.ttf +0 -0
- package/dist/assets/roboto/Roboto-LightItalic.ttf +0 -0
- package/dist/assets/roboto/Roboto-Medium.ttf +0 -0
- package/dist/assets/roboto/Roboto-MediumItalic.ttf +0 -0
- package/dist/assets/roboto/Roboto-Regular.ttf +0 -0
- package/dist/assets/roboto/Roboto-Thin.ttf +0 -0
- package/dist/assets/roboto/Roboto-ThinItalic.ttf +0 -0
- package/dist/assets/roboto/roboto.css +27 -0
- package/dist/assets/tabler-icons/fonts/tabler-icons.eot +0 -0
- package/dist/assets/tabler-icons/fonts/tabler-icons.ttf +0 -0
- package/dist/assets/tabler-icons/fonts/tabler-icons.woff +0 -0
- package/dist/assets/tabler-icons/fonts/tabler-icons.woff2 +0 -0
- package/dist/assets/tabler-icons/tabler-icons.css +16056 -0
- package/dist/assets/tabler-icons/tabler-icons.html +36226 -0
- package/dist/assets/tabler-icons/tabler-icons.min.css +4 -0
- package/dist/assets/tabler-icons/tabler-icons.png +0 -0
- package/dist/assets/tabler-icons/tabler-icons.scss +8058 -0
- package/dist/index.html +28 -0
- package/dist/main.css +3 -0
- package/dist/main.js +2374 -0
- package/dist/main.js.LICENSE.txt +57 -0
- package/dist/robots.txt +2 -0
- package/package.json +61 -61
- package/src/App.tsx +2 -0
- package/src/components/FocusInput.tsx +56 -0
- package/src/components/alert/basic.tsx +6 -0
- package/src/components/alert/card-msg.tsx +0 -1
- package/src/components/alert/html.tsx +3 -3
- package/src/components/button/width.tsx +1 -1
- package/src/components/button-link/basic.tsx +5 -5
- package/src/components/button-link/image.tsx +2 -2
- package/src/components/button-link/routes.ts +0 -3
- package/src/components/card/confirm.tsx +1 -1
- package/src/components/card/selection.tsx +4 -4
- package/src/components/input-checkbox/basic.tsx +3 -2
- package/src/components/input-checkbox/button.tsx +10 -2
- package/src/components/input-checkbox/partials/cases.tsx +62 -0
- package/src/components/input-checkbox/partials/variants.tsx +15 -65
- package/src/components/input-checkbox/switch.tsx +10 -2
- package/src/components/input-color/basic.tsx +4 -28
- package/src/components/input-color/partials/cases.tsx +25 -0
- package/src/components/input-color/partials/variants.tsx +19 -0
- package/src/components/input-date/basic.tsx +4 -19
- package/src/components/input-date/partials/cases.tsx +22 -0
- package/src/components/input-date/partials/variants.tsx +19 -0
- package/src/components/input-email/basic.tsx +4 -29
- package/src/components/input-email/partials/cases.tsx +33 -0
- package/src/components/input-email/partials/variants.tsx +19 -0
- package/src/components/input-file/basic.tsx +4 -24
- package/src/components/input-file/partials/cases.tsx +27 -0
- package/src/components/input-file/partials/variants.tsx +19 -0
- package/src/components/input-number/basic.tsx +4 -29
- package/src/components/input-number/partials/cases.tsx +32 -0
- package/src/components/input-number/partials/variants.tsx +19 -0
- package/src/components/input-password/basic.tsx +4 -27
- package/src/components/input-password/partials/cases.tsx +32 -0
- package/src/components/input-password/partials/variants.tsx +19 -0
- package/src/components/input-password/show-password.tsx +2 -1
- package/src/components/input-radio/basic.tsx +4 -45
- package/src/components/input-radio/horizontal.tsx +9 -6
- package/src/components/input-radio/partials/cases.tsx +56 -0
- package/src/components/input-radio/partials/variants.tsx +19 -0
- package/src/components/input-radio/select.tsx +1 -1
- package/src/components/input-range/basic.tsx +4 -28
- package/src/components/input-range/partials/cases.tsx +31 -0
- package/src/components/input-range/partials/variants.tsx +19 -0
- package/src/components/input-text/basic.tsx +4 -71
- package/src/components/input-text/blur.tsx +2 -4
- package/src/components/input-text/focus.tsx +7 -5
- package/src/components/input-text/partials/cases.tsx +47 -0
- package/src/components/input-text/partials/variants.tsx +19 -0
- package/src/components/input-text/routes.ts +0 -3
- package/src/components/link/image.tsx +1 -2
- package/src/components/link/target.tsx +4 -5
- package/src/components/select/basic.tsx +4 -50
- package/src/components/select/partials/cases.tsx +67 -0
- package/src/components/select/partials/variants.tsx +19 -0
- package/src/components/split-button/basic.tsx +6 -34
- package/src/components/table/badge-size.tsx +1 -1
- package/src/components/table/render-cell.tsx +3 -3
- package/src/components/table/routes.ts +2 -2
- package/src/components/table/sort-date.tsx +1 -1
- package/src/components/textarea/adjust-height.tsx +2 -2
- package/src/components/textarea/basic.tsx +4 -10
- package/src/components/textarea/disabled.tsx +1 -1
- package/src/components/textarea/partials/cases.tsx +14 -0
- package/src/components/textarea/partials/variants.tsx +19 -0
- package/src/components/textarea/placeholder.tsx +1 -1
- package/src/components/textarea/readonly.tsx +1 -1
- package/src/components/textarea/resize.tsx +4 -4
- package/src/components/textarea/rows.tsx +1 -1
- package/src/components/button-link/target.tsx +0 -16
- package/src/components/input-text/hidden-label.tsx +0 -66
|
@@ -1,29 +1,5 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import {
|
|
1
|
+
import React, { FC } from 'react';
|
|
2
|
+
import { FocusInput } from '../FocusInput';
|
|
3
|
+
import { InputRangeVariants } from './partials/variants';
|
|
3
4
|
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
import { ERROR_MSG } from '../../shares/constants';
|
|
7
|
-
|
|
8
|
-
export const InputRangeBasic: FC = () => (
|
|
9
|
-
<KolForm className="grid gap-4">
|
|
10
|
-
<KolInputRange
|
|
11
|
-
_id="range"
|
|
12
|
-
_min={0}
|
|
13
|
-
_max={50}
|
|
14
|
-
_name="range"
|
|
15
|
-
_error={ERROR_MSG}
|
|
16
|
-
_label="Schieberegler"
|
|
17
|
-
_icon={{
|
|
18
|
-
left: {
|
|
19
|
-
icon: 'codicon codicon-arrow-left',
|
|
20
|
-
},
|
|
21
|
-
right: {
|
|
22
|
-
icon: 'codicon codicon-arrow-right',
|
|
23
|
-
},
|
|
24
|
-
}}
|
|
25
|
-
/>
|
|
26
|
-
<KolInputRange _id="range" _min={0} _max={50} _step={10} _error={ERROR_MSG} _label="Schieberegler" />
|
|
27
|
-
<KolInputRange _disabled _id="range" _min={0} _max={50} _label="Schieberegler" />
|
|
28
|
-
</KolForm>
|
|
29
|
-
);
|
|
5
|
+
export const InputRangeBasic: FC = () => <FocusInput RefInput={InputRangeVariants} />;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import React, { forwardRef } from 'react';
|
|
2
|
+
|
|
3
|
+
import { KolInputRange } from '@public-ui/react';
|
|
4
|
+
|
|
5
|
+
import { Components } from '@public-ui/components';
|
|
6
|
+
import { ERROR_MSG } from '../../../shares/constants';
|
|
7
|
+
|
|
8
|
+
export const InputRangeCases = forwardRef<HTMLKolInputRangeElement, Components.KolInputRange>(function InputRangeCases(props, ref) {
|
|
9
|
+
return (
|
|
10
|
+
<div className="grid gap-4">
|
|
11
|
+
<KolInputRange
|
|
12
|
+
{...props}
|
|
13
|
+
_min={0}
|
|
14
|
+
_max={50}
|
|
15
|
+
_error={ERROR_MSG}
|
|
16
|
+
_label="Schieberegler"
|
|
17
|
+
_icon={{
|
|
18
|
+
left: {
|
|
19
|
+
icon: 'codicon codicon-arrow-left',
|
|
20
|
+
},
|
|
21
|
+
right: {
|
|
22
|
+
icon: 'codicon codicon-arrow-right',
|
|
23
|
+
},
|
|
24
|
+
}}
|
|
25
|
+
_touched
|
|
26
|
+
/>
|
|
27
|
+
<KolInputRange {...props} ref={ref} _min={0} _max={50} _step={10} _error={ERROR_MSG} _label="Schieberegler mit Fehler" _touched />
|
|
28
|
+
<KolInputRange {...props} _disabled _min={0} _max={50} _label="Schieberegler (disabled)" />
|
|
29
|
+
</div>
|
|
30
|
+
);
|
|
31
|
+
});
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import React, { forwardRef } from 'react';
|
|
2
|
+
|
|
3
|
+
import { Components } from '@public-ui/components';
|
|
4
|
+
import { InputRangeCases } from './cases';
|
|
5
|
+
|
|
6
|
+
export const InputRangeVariants = forwardRef<HTMLKolInputRangeElement, Components.KolInputRange>(function InputRangeVariant(props, ref) {
|
|
7
|
+
return (
|
|
8
|
+
<div className="grid md:grid-cols-2 gap-4">
|
|
9
|
+
<fieldset>
|
|
10
|
+
<legend>Range</legend>
|
|
11
|
+
<InputRangeCases {...props} />
|
|
12
|
+
</fieldset>
|
|
13
|
+
<fieldset>
|
|
14
|
+
<legend>Range (hideLabel)</legend>
|
|
15
|
+
<InputRangeCases ref={ref} {...props} _hideLabel />
|
|
16
|
+
</fieldset>
|
|
17
|
+
</div>
|
|
18
|
+
);
|
|
19
|
+
});
|
|
@@ -1,72 +1,5 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import {
|
|
1
|
+
import React, { FC } from 'react';
|
|
2
|
+
import { FocusInput } from '../FocusInput';
|
|
3
|
+
import { InputTextVariants } from './partials/variants';
|
|
3
4
|
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
import { ERROR_MSG, HINT_MSG } from '../../shares/constants';
|
|
7
|
-
|
|
8
|
-
export const InputTextBasic: FC = () => (
|
|
9
|
-
<KolForm className="grid gap-4">
|
|
10
|
-
<KolInputText
|
|
11
|
-
_id=""
|
|
12
|
-
_hint={HINT_MSG}
|
|
13
|
-
_error={ERROR_MSG}
|
|
14
|
-
_placeholder="Mit Icons"
|
|
15
|
-
_icon={{
|
|
16
|
-
left: 'codicon codicon-arrow-left',
|
|
17
|
-
right: {
|
|
18
|
-
icon: 'codicon codicon-arrow-right',
|
|
19
|
-
style: {
|
|
20
|
-
'font-size': '200%',
|
|
21
|
-
},
|
|
22
|
-
},
|
|
23
|
-
}}
|
|
24
|
-
_on={{
|
|
25
|
-
onBlur: console.log,
|
|
26
|
-
onChange: console.log,
|
|
27
|
-
onClick: console.log,
|
|
28
|
-
onFocus: console.log,
|
|
29
|
-
}}
|
|
30
|
-
_hideLabel
|
|
31
|
-
_required
|
|
32
|
-
_smartButton={{
|
|
33
|
-
_icon: {
|
|
34
|
-
left: {
|
|
35
|
-
icon: 'codicon codicon-eye',
|
|
36
|
-
},
|
|
37
|
-
},
|
|
38
|
-
_hideLabel: true,
|
|
39
|
-
_label: 'Passwort anzeigen',
|
|
40
|
-
_on: {
|
|
41
|
-
onClick: () => {},
|
|
42
|
-
},
|
|
43
|
-
}}
|
|
44
|
-
_type="search"
|
|
45
|
-
_label="Suche"
|
|
46
|
-
/>
|
|
47
|
-
<KolInputText
|
|
48
|
-
_id=""
|
|
49
|
-
_error={ERROR_MSG}
|
|
50
|
-
_placeholder="Mit Icons"
|
|
51
|
-
_label="Suche"
|
|
52
|
-
_icon={{
|
|
53
|
-
left: {
|
|
54
|
-
icon: 'codicon codicon-arrow-left',
|
|
55
|
-
},
|
|
56
|
-
right: {
|
|
57
|
-
icon: 'codicon codicon-arrow-right',
|
|
58
|
-
},
|
|
59
|
-
}}
|
|
60
|
-
_hideLabel
|
|
61
|
-
_type="search"
|
|
62
|
-
/>
|
|
63
|
-
<KolInputText _id="" _placeholder="Placeholder" _label="Vorname (text)" _required />
|
|
64
|
-
<KolInputText _id="" _placeholder="Placeholder" _label="Suche (search)" _type="search" />
|
|
65
|
-
<KolInputText _id="vorname" _placeholder="Placeholder" _error={ERROR_MSG} _type="url" _label="URL (url)" />
|
|
66
|
-
<KolInputText _id="" _placeholder="Placeholder" _type="tel" _label="Telefon (tel)" />
|
|
67
|
-
<KolInputText _id="" _placeholder="Placeholder" _read-only _label="Vorname (text, readonly)" />
|
|
68
|
-
<KolInputText _id="" _value="Value" _read-only _label="Vorname (text, readonly)" />
|
|
69
|
-
<KolInputText _id="" _placeholder="Placeholder" _disabled _label="Vorname (text, disabled)" />
|
|
70
|
-
<KolInputText _id="" _value="Value" _disabled _label="Vorname (text, disabled)" />
|
|
71
|
-
</KolForm>
|
|
72
|
-
);
|
|
5
|
+
export const InputTextBasic: FC = () => <FocusInput RefInput={InputTextVariants} />;
|
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
import { KolForm, KolInputText } from '@public-ui/react';
|
|
2
|
-
import React from 'react';
|
|
3
|
-
|
|
4
|
-
import { FC } from 'react';
|
|
2
|
+
import React, { FC } from 'react';
|
|
5
3
|
|
|
6
4
|
export const InputTextBlur: FC = () => (
|
|
7
|
-
<KolForm
|
|
5
|
+
<KolForm>
|
|
8
6
|
<KolInputText
|
|
9
7
|
_on={{
|
|
10
8
|
onBlur: console.log,
|
|
@@ -13,11 +13,13 @@ export const InputTextFocus: FC = () => {
|
|
|
13
13
|
}, [ref]);
|
|
14
14
|
|
|
15
15
|
return (
|
|
16
|
-
<KolForm
|
|
17
|
-
<
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
<
|
|
16
|
+
<KolForm>
|
|
17
|
+
<div className="grid gap-4">
|
|
18
|
+
<KolInputText ref={ref} _label="Vorname" />
|
|
19
|
+
<KolInputText _label="Nachname" />
|
|
20
|
+
<div>
|
|
21
|
+
<KolButton _label="Submit"></KolButton>
|
|
22
|
+
</div>
|
|
21
23
|
</div>
|
|
22
24
|
</KolForm>
|
|
23
25
|
);
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import React, { forwardRef } from 'react';
|
|
2
|
+
|
|
3
|
+
import { KolInputText } from '@public-ui/react';
|
|
4
|
+
|
|
5
|
+
import { Components } from '@public-ui/components';
|
|
6
|
+
import { ERROR_MSG, HINT_MSG } from '../../../shares/constants';
|
|
7
|
+
|
|
8
|
+
export const InputTextCases = forwardRef<HTMLKolInputTextElement, Components.KolInputText>(function InputTextCases(props, ref) {
|
|
9
|
+
return (
|
|
10
|
+
<div className="grid gap-4">
|
|
11
|
+
<KolInputText
|
|
12
|
+
{...props}
|
|
13
|
+
_hint={HINT_MSG}
|
|
14
|
+
_error={ERROR_MSG}
|
|
15
|
+
_placeholder="Mit Icons"
|
|
16
|
+
_icon={{
|
|
17
|
+
left: 'codicon codicon-arrow-left',
|
|
18
|
+
right: {
|
|
19
|
+
icon: 'codicon codicon-arrow-right',
|
|
20
|
+
style: {
|
|
21
|
+
'font-size': '200%',
|
|
22
|
+
},
|
|
23
|
+
},
|
|
24
|
+
}}
|
|
25
|
+
_on={{
|
|
26
|
+
onBlur: console.log,
|
|
27
|
+
onChange: console.log,
|
|
28
|
+
onClick: console.log,
|
|
29
|
+
onFocus: console.log,
|
|
30
|
+
}}
|
|
31
|
+
_hideLabel
|
|
32
|
+
_required
|
|
33
|
+
_type="search"
|
|
34
|
+
_touched
|
|
35
|
+
_label="Suche"
|
|
36
|
+
/>
|
|
37
|
+
<KolInputText {...props} ref={ref} _placeholder="Placeholder" _label="Vorname (text)" _required />
|
|
38
|
+
<KolInputText {...props} _placeholder="Placeholder" _label="Suche (search)" _type="search" />
|
|
39
|
+
<KolInputText {...props} _placeholder="Placeholder" _error={ERROR_MSG} _touched _type="url" _label="URL (url)" />
|
|
40
|
+
<KolInputText {...props} _placeholder="Placeholder" _type="tel" _label="Telefon (tel)" />
|
|
41
|
+
<KolInputText {...props} _placeholder="Placeholder" _readOnly _label="Vorname (text, readonly)" />
|
|
42
|
+
<KolInputText {...props} _value="Value" _readOnly _label="Vorname (text, readonly)" />
|
|
43
|
+
<KolInputText {...props} _placeholder="Placeholder" _disabled _label="Vorname (text, disabled)" />
|
|
44
|
+
<KolInputText {...props} _value="Value" _disabled _label="Vorname (text, disabled)" />
|
|
45
|
+
</div>
|
|
46
|
+
);
|
|
47
|
+
});
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import React, { forwardRef } from 'react';
|
|
2
|
+
|
|
3
|
+
import { Components } from '@public-ui/components';
|
|
4
|
+
import { InputTextCases } from './cases';
|
|
5
|
+
|
|
6
|
+
export const InputTextVariants = forwardRef<HTMLKolInputTextElement, Components.KolInputText>(function InputTextVariant(props, ref) {
|
|
7
|
+
return (
|
|
8
|
+
<div className="grid md:grid-cols-2 gap-4">
|
|
9
|
+
<fieldset>
|
|
10
|
+
<legend>Text</legend>
|
|
11
|
+
<InputTextCases {...props} />
|
|
12
|
+
</fieldset>
|
|
13
|
+
<fieldset>
|
|
14
|
+
<legend>Text (hideLabel)</legend>
|
|
15
|
+
<InputTextCases ref={ref} {...props} _hideLabel />
|
|
16
|
+
</fieldset>
|
|
17
|
+
</div>
|
|
18
|
+
);
|
|
19
|
+
});
|
|
@@ -4,12 +4,9 @@ import { InputTextBasic } from './basic';
|
|
|
4
4
|
import { InputTextBlur } from './blur';
|
|
5
5
|
import { InputTextFocus } from './focus';
|
|
6
6
|
|
|
7
|
-
import { InputTextHiddenLabel } from './hidden-label';
|
|
8
|
-
|
|
9
7
|
export const INPUT_TEXT_ROUTES: Routes = {
|
|
10
8
|
'input-text': {
|
|
11
9
|
basic: InputTextBasic,
|
|
12
|
-
'hidden-label': InputTextHiddenLabel,
|
|
13
10
|
blur: InputTextBlur,
|
|
14
11
|
focus: InputTextFocus,
|
|
15
12
|
},
|
|
@@ -9,9 +9,8 @@ export const LinkImage: FC = () => (
|
|
|
9
9
|
<br />
|
|
10
10
|
<KolLink _href="#" _label="">
|
|
11
11
|
<img alt="Abgrenzung" slot="expert" src="https://public-ui.github.io/assets/abgrenzung.jpg" width="300" />
|
|
12
|
-
<KolKolibri></KolKolibri>
|
|
12
|
+
<KolKolibri style={{ width: '300px' }}></KolKolibri>
|
|
13
13
|
</KolLink>
|
|
14
|
-
<KolKolibri />
|
|
15
14
|
<br />
|
|
16
15
|
<KolLink _href="#" _label="">
|
|
17
16
|
<img alt="Abgrenzung" slot="expert" src="https://public-ui.github.io/assets/abgrenzung.jpg" width="300" />
|
|
@@ -5,11 +5,10 @@ import { FC } from 'react';
|
|
|
5
5
|
|
|
6
6
|
export const LinkTarget: FC = () => (
|
|
7
7
|
<div className="d-flex gap-4">
|
|
8
|
-
<KolLink _href="#" _label="Ich bin ein Link ohne Target" />
|
|
9
|
-
<KolLink _href="#" _label="Ich bin ein Link mit Target (
|
|
10
|
-
<KolLink _href="#" _label="Ich bin ein Link
|
|
11
|
-
<KolLink _href="#" _icon="codicon codicon-home" _hideLabel _label="Ich bin ein Link
|
|
12
|
-
<KolLink _href="#" _icon="codicon codicon-home" _hideLabel _label="Ich bin ein Link mit Target (_self)" _target="_self" />
|
|
8
|
+
<KolLink _href="#" _label="Ich bin ein Link ohne Target" /> <KolLink _href="#" _label="Ich bin ein Link mit Target (_self)" _target="_self" />{' '}
|
|
9
|
+
<KolLink _href="#" _label="Ich bin ein Link mit Target (_blank)" _target="_blank" />{' '}
|
|
10
|
+
<KolLink _href="#" _icon="codicon codicon-home" _hideLabel _label="Ich bin ein Link ohne Target" />{' '}
|
|
11
|
+
<KolLink _href="#" _icon="codicon codicon-home" _hideLabel _label="Ich bin ein Link mit Target (_self)" _target="_self" />{' '}
|
|
13
12
|
<KolLink _href="#" _icon="codicon codicon-home" _hideLabel _label="Ich bin ein Link mit Target (_blank)" _target="_blank" />
|
|
14
13
|
</div>
|
|
15
14
|
);
|
|
@@ -1,51 +1,5 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import {
|
|
1
|
+
import React, { FC } from 'react';
|
|
2
|
+
import { FocusInput } from '../FocusInput';
|
|
3
|
+
import { SelectVariants } from './partials/variants';
|
|
3
4
|
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
import { FC } from 'react';
|
|
7
|
-
|
|
8
|
-
import countries from 'world_countries_lists/data/countries/de/countries.json';
|
|
9
|
-
|
|
10
|
-
import { ERROR_MSG } from '../../shares/constants';
|
|
11
|
-
|
|
12
|
-
const STATUS_OPTIONS: SelectOption<string>[] = [
|
|
13
|
-
{
|
|
14
|
-
label: '- Keine Auswahl',
|
|
15
|
-
value: '',
|
|
16
|
-
disabled: true,
|
|
17
|
-
},
|
|
18
|
-
];
|
|
19
|
-
|
|
20
|
-
type Country = {
|
|
21
|
-
id: number;
|
|
22
|
-
alpha2: string;
|
|
23
|
-
alpha3: string;
|
|
24
|
-
name: string;
|
|
25
|
-
};
|
|
26
|
-
(countries as Country[]).forEach((country) =>
|
|
27
|
-
STATUS_OPTIONS.push({
|
|
28
|
-
label: country.name,
|
|
29
|
-
value: country.alpha2,
|
|
30
|
-
}),
|
|
31
|
-
);
|
|
32
|
-
|
|
33
|
-
export const SelectBasic: FC = () => (
|
|
34
|
-
<KolForm className="grid gap-4">
|
|
35
|
-
<KolSelect
|
|
36
|
-
_id=""
|
|
37
|
-
_options={STATUS_OPTIONS}
|
|
38
|
-
_error={ERROR_MSG}
|
|
39
|
-
_label="Anrede"
|
|
40
|
-
_icon={{
|
|
41
|
-
left: {
|
|
42
|
-
icon: 'codicon codicon-arrow-left',
|
|
43
|
-
},
|
|
44
|
-
right: {
|
|
45
|
-
icon: 'codicon codicon-arrow-right',
|
|
46
|
-
},
|
|
47
|
-
}}
|
|
48
|
-
/>
|
|
49
|
-
<KolSelect _id="" _options={STATUS_OPTIONS} _label="Anrede" _multiple _required _error={ERROR_MSG} />
|
|
50
|
-
</KolForm>
|
|
51
|
-
);
|
|
5
|
+
export const SelectBasic: FC = () => <FocusInput RefInput={SelectVariants} />;
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import React, { forwardRef } from 'react';
|
|
2
|
+
|
|
3
|
+
import { Components, SelectOption } from '@public-ui/components';
|
|
4
|
+
import { KolSelect } from '@public-ui/react';
|
|
5
|
+
import { ERROR_MSG } from '../../../shares/constants';
|
|
6
|
+
|
|
7
|
+
import countries from 'world_countries_lists/data/countries/de/countries.json';
|
|
8
|
+
|
|
9
|
+
type Country = {
|
|
10
|
+
id: number;
|
|
11
|
+
alpha2: string;
|
|
12
|
+
alpha3: string;
|
|
13
|
+
name: string;
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
const SALUTATION_OPTIONS: SelectOption<string>[] = [
|
|
17
|
+
{
|
|
18
|
+
label: '- Keine Auswahl',
|
|
19
|
+
value: '',
|
|
20
|
+
disabled: true,
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
label: 'Frau',
|
|
24
|
+
value: 'Frau',
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
label: 'Herr',
|
|
28
|
+
value: 'Herr',
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
label: 'Divers',
|
|
32
|
+
value: 'Divers',
|
|
33
|
+
},
|
|
34
|
+
];
|
|
35
|
+
|
|
36
|
+
const COUNTRY_OPTIONS: SelectOption<string>[] = [
|
|
37
|
+
...(countries as Country[]).map((country) => ({
|
|
38
|
+
label: country.name,
|
|
39
|
+
value: country.alpha2,
|
|
40
|
+
})),
|
|
41
|
+
];
|
|
42
|
+
|
|
43
|
+
export const SelectCases = forwardRef<HTMLKolSelectElement, Components.KolSelect>(function SelectCases(props, ref) {
|
|
44
|
+
return (
|
|
45
|
+
<div className="grid gap-4">
|
|
46
|
+
<KolSelect
|
|
47
|
+
{...props}
|
|
48
|
+
ref={ref}
|
|
49
|
+
_options={SALUTATION_OPTIONS}
|
|
50
|
+
_error={ERROR_MSG}
|
|
51
|
+
_label="Anrede"
|
|
52
|
+
_icon={{
|
|
53
|
+
left: {
|
|
54
|
+
icon: 'codicon codicon-arrow-left',
|
|
55
|
+
},
|
|
56
|
+
right: {
|
|
57
|
+
icon: 'codicon codicon-arrow-right',
|
|
58
|
+
},
|
|
59
|
+
}}
|
|
60
|
+
_touched
|
|
61
|
+
/>
|
|
62
|
+
<KolSelect {...props} _options={SALUTATION_OPTIONS} _label="Anrede mit Fehler" _error={ERROR_MSG} _touched />
|
|
63
|
+
<KolSelect {...props} _options={COUNTRY_OPTIONS} _label="Mehrfachauswahl" _multiple />
|
|
64
|
+
<KolSelect {...props} _options={COUNTRY_OPTIONS} _label="Mehrfachauswahl mit Fehler" _multiple _required _error={ERROR_MSG} _touched />
|
|
65
|
+
</div>
|
|
66
|
+
);
|
|
67
|
+
});
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import React, { forwardRef } from 'react';
|
|
2
|
+
|
|
3
|
+
import { Components } from '@public-ui/components';
|
|
4
|
+
import { SelectCases } from './cases';
|
|
5
|
+
|
|
6
|
+
export const SelectVariants = forwardRef<HTMLKolSelectElement, Components.KolSelect>(function SelectVariant(props, ref) {
|
|
7
|
+
return (
|
|
8
|
+
<div className="grid md:grid-cols-2 gap-4">
|
|
9
|
+
<fieldset>
|
|
10
|
+
<legend>Text</legend>
|
|
11
|
+
<SelectCases {...props} />
|
|
12
|
+
</fieldset>
|
|
13
|
+
<fieldset>
|
|
14
|
+
<legend>Text (hideLabel)</legend>
|
|
15
|
+
<SelectCases ref={ref} {...props} _hideLabel />
|
|
16
|
+
</fieldset>
|
|
17
|
+
</div>
|
|
18
|
+
);
|
|
19
|
+
});
|
|
@@ -1,45 +1,17 @@
|
|
|
1
|
-
import React, {
|
|
1
|
+
import React, { FC } from 'react';
|
|
2
2
|
import { KolSplitButton } from '@public-ui/react';
|
|
3
3
|
|
|
4
|
-
import { FC } from 'react';
|
|
5
|
-
|
|
6
4
|
export const SplitButtonBasic: FC = () => {
|
|
7
|
-
const [showDropdown, setShowDropdown] = useState(false);
|
|
8
|
-
|
|
9
5
|
return (
|
|
10
6
|
<div className="grid gap-4">
|
|
11
|
-
<KolSplitButton _label="Nur der Pfeil öffnet"
|
|
12
|
-
|
|
13
|
-
<br />a dwarf
|
|
7
|
+
<KolSplitButton _label="Nur der Pfeil öffnet" _on={{ onClick: console.log }}>
|
|
8
|
+
Drowndown-Inhalt
|
|
14
9
|
</KolSplitButton>
|
|
15
10
|
<KolSplitButton _label="ohne label" _hide-label _icon="codicon codicon-git-pull-request">
|
|
16
|
-
|
|
17
|
-
<br />
|
|
18
|
-
I'm
|
|
19
|
-
<br />
|
|
20
|
-
digging
|
|
21
|
-
<br />a hole
|
|
22
|
-
</KolSplitButton>
|
|
23
|
-
<KolSplitButton _label="kick me">
|
|
24
|
-
diggy
|
|
25
|
-
<br />
|
|
26
|
-
diggy
|
|
27
|
-
<br />
|
|
28
|
-
hole
|
|
29
|
-
</KolSplitButton>
|
|
30
|
-
<KolSplitButton _label="schon offen" _show-dropdown={showDropdown}>
|
|
31
|
-
diggy
|
|
32
|
-
<br />
|
|
33
|
-
diggy
|
|
34
|
-
<br />
|
|
35
|
-
hole
|
|
11
|
+
Drowndown-Inhalt
|
|
36
12
|
</KolSplitButton>
|
|
37
|
-
<KolSplitButton _label=
|
|
38
|
-
|
|
39
|
-
<br />
|
|
40
|
-
diggy
|
|
41
|
-
<br />
|
|
42
|
-
hole
|
|
13
|
+
<KolSplitButton _label="schon offen" _show>
|
|
14
|
+
Dropdown initial sichtbar
|
|
43
15
|
</KolSplitButton>
|
|
44
16
|
</div>
|
|
45
17
|
);
|
|
@@ -48,4 +48,4 @@ const HEADERS: KoliBriTableHeaders = {
|
|
|
48
48
|
],
|
|
49
49
|
};
|
|
50
50
|
|
|
51
|
-
export const TableBadgeSize: FC = () => <KolTable _caption="Sort a date column" _data={DATA} _headers={HEADERS} />;
|
|
51
|
+
export const TableBadgeSize: FC = () => <KolTable _caption="Sort a date column" _data={DATA} _headers={HEADERS} className="block" />;
|
|
@@ -31,12 +31,12 @@ const HEADERS: KoliBriTableHeaders = {
|
|
|
31
31
|
{
|
|
32
32
|
label: 'Aktion (react)',
|
|
33
33
|
key: 'order',
|
|
34
|
-
render: (el
|
|
34
|
+
render: (el) => {
|
|
35
35
|
// https://reactjs.org/docs/portals.html
|
|
36
36
|
getRoot(el).render(
|
|
37
37
|
<>
|
|
38
38
|
<KolButton _label={'Speichern'} />
|
|
39
|
-
<KolInputText
|
|
39
|
+
<KolInputText _label="Eingabe" />
|
|
40
40
|
</>,
|
|
41
41
|
);
|
|
42
42
|
},
|
|
@@ -45,4 +45,4 @@ const HEADERS: KoliBriTableHeaders = {
|
|
|
45
45
|
],
|
|
46
46
|
};
|
|
47
47
|
|
|
48
|
-
export const TableRenderCell: FC = () => <KolTable _caption="Sort a date column" _data={DATA} _headers={HEADERS} />;
|
|
48
|
+
export const TableRenderCell: FC = () => <KolTable _caption="Sort a date column" _data={DATA} _headers={HEADERS} className="block" />;
|
|
@@ -4,12 +4,12 @@ import { TableBadgeSize } from './badge-size';
|
|
|
4
4
|
|
|
5
5
|
import { TableRenderCell } from './render-cell';
|
|
6
6
|
|
|
7
|
-
import {
|
|
7
|
+
import { TableSortTable } from './sort-date';
|
|
8
8
|
|
|
9
9
|
export const TABLE_ROUTES: Routes = {
|
|
10
10
|
table: {
|
|
11
11
|
'badge-size': TableBadgeSize,
|
|
12
12
|
'render-cell': TableRenderCell,
|
|
13
|
-
'sort-data':
|
|
13
|
+
'sort-data': TableSortTable,
|
|
14
14
|
},
|
|
15
15
|
};
|
|
@@ -30,4 +30,4 @@ const HEADERS: KoliBriTableHeaders = {
|
|
|
30
30
|
],
|
|
31
31
|
};
|
|
32
32
|
|
|
33
|
-
export const
|
|
33
|
+
export const TableSortTable: FC = () => <KolTable _caption="Sort a date column" _data={DATA} _headers={HEADERS} className="block" />;
|
|
@@ -13,10 +13,10 @@ sit amet.`;
|
|
|
13
13
|
export const TextareaAdjustHeight: FC = () => (
|
|
14
14
|
<KolForm className="row">
|
|
15
15
|
<div className="col-sm-6">
|
|
16
|
-
<KolTextarea _adjustHeight={true}
|
|
16
|
+
<KolTextarea _adjustHeight={true} _resize="vertical" _value={VALUE} _label="Texteingabe (horizontal)" />
|
|
17
17
|
</div>
|
|
18
18
|
<div className="col-sm-6">
|
|
19
|
-
<KolTextarea _adjustHeight={true}
|
|
19
|
+
<KolTextarea _adjustHeight={true} _resize="none" _value={VALUE} _label="Texteingabe (none)" />
|
|
20
20
|
</div>
|
|
21
21
|
</KolForm>
|
|
22
22
|
);
|
|
@@ -1,11 +1,5 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import {
|
|
1
|
+
import React, { FC } from 'react';
|
|
2
|
+
import { FocusInput } from '../FocusInput';
|
|
3
|
+
import { TextareaVariants } from './partials/variants';
|
|
3
4
|
|
|
4
|
-
|
|
5
|
-
import { ERROR_MSG } from '../../shares/constants';
|
|
6
|
-
|
|
7
|
-
export const TextareaBasic: FC = () => (
|
|
8
|
-
<KolForm>
|
|
9
|
-
<KolTextarea _id="text" _error={ERROR_MSG} _label="Texteingabe" />
|
|
10
|
-
</KolForm>
|
|
11
|
-
);
|
|
5
|
+
export const TextareaBasic: FC = () => <FocusInput RefInput={TextareaVariants} />;
|
|
@@ -5,6 +5,6 @@ import { FC } from 'react';
|
|
|
5
5
|
|
|
6
6
|
export const TextareaDisabled: FC = () => (
|
|
7
7
|
<KolForm>
|
|
8
|
-
<KolTextarea _disabled _error="Es ist ein Fehler aufgetreten."
|
|
8
|
+
<KolTextarea _disabled _error="Es ist ein Fehler aufgetreten." _value="Kleiner Text im Eingabefeld ..." _label="Texteingabe" />
|
|
9
9
|
</KolForm>
|
|
10
10
|
);
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import React, { forwardRef } from 'react';
|
|
2
|
+
|
|
3
|
+
import { Components } from '@public-ui/components';
|
|
4
|
+
import { KolTextarea } from '@public-ui/react';
|
|
5
|
+
import { ERROR_MSG } from '../../../shares/constants';
|
|
6
|
+
|
|
7
|
+
export const TextareaCases = forwardRef<HTMLKolTextareaElement, Components.KolTextarea>(function TextareaCases(props, ref) {
|
|
8
|
+
return (
|
|
9
|
+
<div className="grid gap-4">
|
|
10
|
+
<KolTextarea {...props} ref={ref} _error={ERROR_MSG} _label="Text" _touched />
|
|
11
|
+
<KolTextarea {...props} ref={ref} _label="Text (3 rows)" _rows={3} />
|
|
12
|
+
</div>
|
|
13
|
+
);
|
|
14
|
+
});
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import React, { forwardRef } from 'react';
|
|
2
|
+
|
|
3
|
+
import { Components } from '@public-ui/components';
|
|
4
|
+
import { TextareaCases } from './cases';
|
|
5
|
+
|
|
6
|
+
export const TextareaVariants = forwardRef<HTMLKolTextareaElement, Components.KolTextarea>(function TextareaVariant(props, ref) {
|
|
7
|
+
return (
|
|
8
|
+
<div className="grid md:grid-cols-2 gap-4">
|
|
9
|
+
<fieldset>
|
|
10
|
+
<legend>Text</legend>
|
|
11
|
+
<TextareaCases {...props} />
|
|
12
|
+
</fieldset>
|
|
13
|
+
<fieldset>
|
|
14
|
+
<legend>Text (hideLabel)</legend>
|
|
15
|
+
<TextareaCases ref={ref} {...props} _hideLabel />
|
|
16
|
+
</fieldset>
|
|
17
|
+
</div>
|
|
18
|
+
);
|
|
19
|
+
});
|
|
@@ -5,6 +5,6 @@ import { FC } from 'react';
|
|
|
5
5
|
|
|
6
6
|
export const TextareaPlaceholder: FC = () => (
|
|
7
7
|
<KolForm>
|
|
8
|
-
<KolTextarea
|
|
8
|
+
<KolTextarea _placeholder="Hier steht ein Platzhaltertext" _label="Texteingabe" />
|
|
9
9
|
</KolForm>
|
|
10
10
|
);
|
|
@@ -5,6 +5,6 @@ import { FC } from 'react';
|
|
|
5
5
|
|
|
6
6
|
export const TextareaReadOnly: FC = () => (
|
|
7
7
|
<KolForm>
|
|
8
|
-
<KolTextarea _error="Es ist ein Fehler aufgetreten."
|
|
8
|
+
<KolTextarea _error="Es ist ein Fehler aufgetreten." _readOnly _value="Kleiner Text im Eingabefeld ..." _label="Texteingabe" />
|
|
9
9
|
</KolForm>
|
|
10
10
|
);
|