@public-ui/sample-react 3.0.0-rc.0 → 3.0.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.
- package/README.md +8 -0
- package/dist/1006.js +2 -0
- package/dist/1114.js +2 -0
- package/dist/1752.js +2 -0
- package/dist/1932.js +2 -0
- package/dist/2069.js +2 -0
- package/dist/2212.js +2 -0
- package/dist/2231.js +2 -0
- package/dist/2321.js +2 -0
- package/dist/2596.js +2 -0
- package/dist/2827.js +2 -0
- package/dist/2894.js +2 -0
- package/dist/3099.js +2 -0
- package/dist/3151.js +2 -0
- package/dist/3203.js +2 -0
- package/dist/3540.js +2 -0
- package/dist/373.js +2 -0
- package/dist/3918.js +2 -0
- package/dist/3920.js +2 -0
- package/dist/4030.js +2 -0
- package/dist/4048.js +2 -0
- package/dist/4201.js +2 -0
- package/dist/4260.js +2 -0
- package/dist/4361.js +2 -0
- package/dist/4587.js +2 -0
- package/dist/4611.js +2 -0
- package/dist/4641.js +2 -0
- package/dist/4876.js +2 -0
- package/dist/5143.js +2 -0
- package/dist/5249.js +2 -0
- package/dist/5301.js +1 -1
- package/dist/5690.js +2 -0
- package/dist/5746.js +2 -0
- package/dist/6047.js +2 -0
- package/dist/6066.js +2 -0
- package/dist/6256.js +2 -0
- package/dist/6304.js +2 -0
- package/dist/6781.js +2 -0
- package/dist/6790.js +2 -0
- package/dist/6984.js +2 -0
- package/dist/7013.js +2 -0
- package/dist/7178.js +2 -0
- package/dist/7347.js +2 -0
- package/dist/740.js +2 -0
- package/dist/7444.js +2 -0
- package/dist/7533.js +2 -0
- package/dist/7535.js +2 -0
- package/dist/775.js +2 -0
- package/dist/8137.js +2 -0
- package/dist/8180.js +2 -0
- package/dist/8192.js +2 -0
- package/dist/8246.js +1 -0
- package/dist/833.js +2 -0
- package/dist/8378.js +2 -0
- package/dist/8605.js +2 -0
- package/dist/8625.js +2 -0
- package/dist/8840.js +2 -0
- package/dist/907.js +2 -0
- package/dist/9108.js +2 -0
- package/dist/9255.js +2 -0
- package/dist/9322.js +2 -0
- package/dist/9581.js +2 -0
- package/dist/9719.js +2 -0
- package/dist/9731.js +2 -0
- package/dist/9907.js +2 -0
- package/dist/9930.js +2 -0
- package/dist/9938.js +2 -0
- package/dist/index.html +1 -0
- package/dist/main.css +3 -3
- package/dist/main.js +1 -1
- package/dist/main.js.LICENSE.txt +2 -2
- package/package.json +33 -25
- package/public/index.html +1 -0
- package/src/App.tsx +1 -3
- package/src/components/SampleColumns.tsx +10 -0
- package/src/components/SampleDescription.tsx +27 -15
- package/src/components/Sidebar.tsx +29 -10
- package/src/components/badge/basic.tsx +1 -1
- package/src/components/badge/button.tsx +1 -1
- package/src/components/button/baselined.tsx +1 -1
- package/src/components/button/partials/cases.tsx +2 -2
- package/src/components/button/short-key.tsx +104 -3
- package/src/components/combobox/partials/variants.tsx +3 -2
- package/src/components/drawer/basic.tsx +9 -25
- package/src/components/drawer/controlled.tsx +0 -8
- package/src/components/form/error-list.tsx +66 -24
- package/src/components/handout/basic.tsx +25 -30
- package/src/components/icon/basic.tsx +2 -1
- package/src/components/image/basic.tsx +1 -1
- package/src/components/input-checkbox/partials/variants.tsx +5 -4
- package/src/components/input-color/partials/cases.tsx +4 -2
- package/src/components/input-color/partials/variants.tsx +3 -2
- package/src/components/input-date/partials/cases.tsx +7 -4
- package/src/components/input-date/partials/minMax.tsx +3 -3
- package/src/components/input-date/partials/variants.tsx +4 -3
- package/src/components/input-date/show-hide-msg.tsx +1 -2
- package/src/components/input-email/partials/cases.tsx +6 -3
- package/src/components/input-email/partials/variants.tsx +3 -2
- package/src/components/input-file/partials/cases.tsx +6 -3
- package/src/components/input-file/partials/variants.tsx +3 -2
- package/src/components/input-number/partials/variants.tsx +3 -2
- package/src/components/input-password/partials/cases.tsx +8 -5
- package/src/components/input-password/partials/variants.tsx +3 -2
- package/src/components/input-radio/partials/variants.tsx +11 -8
- package/src/components/input-range/partials/cases.tsx +6 -3
- package/src/components/input-range/partials/variants.tsx +3 -2
- package/src/components/input-text/{hide-errors.tsx → hide-msg.tsx} +5 -5
- package/src/components/input-text/partials/cases.tsx +1 -1
- package/src/components/input-text/partials/variants.tsx +3 -2
- package/src/components/input-text/routes.ts +2 -2
- package/src/components/input-text/smart-button.tsx +14 -1
- package/src/components/input-text/text-formatter.tsx +1 -2
- package/src/components/link/access-key.tsx +1 -3
- package/src/components/link/short-key.tsx +1 -1
- package/src/components/link-button/aria-description.tsx +1 -1
- package/src/components/link-button/basic.tsx +8 -10
- package/src/components/modal/basic.tsx +28 -12
- package/src/components/nav/basic.tsx +8 -2
- package/src/components/nav/horizontal.tsx +2 -2
- package/src/components/pagination/basic.tsx +1 -1
- package/src/components/popover-button/basic.tsx +55 -0
- package/src/components/popover-button/routes.ts +8 -0
- package/src/components/progress/basic.tsx +12 -5
- package/src/components/select/partials/cases.tsx +22 -4
- package/src/components/select/partials/variants.tsx +3 -2
- package/src/components/single-select/partials/cases.tsx +8 -4
- package/src/components/single-select/partials/variants.tsx +8 -7
- package/src/components/split-button/basic.tsx +2 -2
- package/src/components/table/column-alignment.tsx +16 -12
- package/src/components/table/complex-headers.tsx +4 -3
- package/src/components/table/horizontal-scrollbar.tsx +12 -6
- package/src/components/table/interactive-child-elements.tsx +2 -0
- package/src/components/table/multi-sort.tsx +6 -4
- package/src/components/table/pagination-position.tsx +26 -5
- package/src/components/table/predefined-settings.tsx +41 -0
- package/src/components/table/render-cell.tsx +5 -5
- package/src/components/table/routes.ts +6 -4
- package/src/components/table/sort-data.tsx +16 -18
- package/src/components/table/stateful-with-selection.tsx +10 -6
- package/src/components/table/stateful-with-single-selection.tsx +6 -5
- package/src/components/table/stateless-with-selection.tsx +11 -7
- package/src/components/table/stateless-with-single-selection.tsx +9 -6
- package/src/components/table/stateless.tsx +1 -0
- package/src/components/table/with-footer.tsx +4 -3
- package/src/components/table/with-pagination.tsx +3 -3
- package/src/components/textarea/partials/cases.tsx +9 -4
- package/src/components/textarea/partials/variants.tsx +3 -2
- package/src/components/tree/basic.tsx +2 -1
- package/src/react.main.tsx +4 -9
- package/src/scenarios/appointment-form/PersonalInformationForm.tsx +4 -1
- package/src/scenarios/change-tabindex.tsx +24 -22
- package/src/scenarios/horizontal-scrollbar-advanced/TableHorizontalScrollbarAdvanced.tsx +2 -2
- package/src/scenarios/horizontal-scrollbar-advanced/layout.scss +4 -4
- package/src/scenarios/input-group-with-error.tsx +4 -4
- package/src/scenarios/routes.ts +2 -0
- package/src/scenarios/same-height-of-all-interactive-elements.tsx +62 -0
- package/src/shares/longOptions.ts +15 -0
- package/src/shares/routes.ts +3 -7
- package/src/shares/theme.ts +4 -8
- package/src/style.scss +21 -6
- package/unocss.config.ts +67 -68
- package/webpack.config.js +13 -2
- package/dist/1073.js +0 -2
- package/dist/1325.js +0 -2
- package/dist/1392.js +0 -2
- package/dist/1604.js +0 -2
- package/dist/175.js +0 -2
- package/dist/178.js +0 -2
- package/dist/1791.js +0 -2
- package/dist/2220.js +0 -2
- package/dist/2444.js +0 -2
- package/dist/2450.js +0 -2
- package/dist/2794.js +0 -2
- package/dist/2986.js +0 -2
- package/dist/3030.js +0 -2
- package/dist/3270.js +0 -2
- package/dist/3340.js +0 -2
- package/dist/3392.js +0 -2
- package/dist/3529.js +0 -2
- package/dist/3756.js +0 -2
- package/dist/3960.js +0 -2
- package/dist/399.js +0 -2
- package/dist/4145.js +0 -2
- package/dist/4539.js +0 -2
- package/dist/4563.js +0 -2
- package/dist/4571.js +0 -2
- package/dist/5260.js +0 -2
- package/dist/5333.js +0 -2
- package/dist/5523.js +0 -2
- package/dist/5551.js +0 -2
- package/dist/5575.js +0 -2
- package/dist/5665.js +0 -2
- package/dist/572.js +0 -2
- package/dist/5873.js +0 -2
- package/dist/5879.js +0 -2
- package/dist/5964.js +0 -2
- package/dist/618.js +0 -2
- package/dist/623.js +0 -2
- package/dist/643.js +0 -2
- package/dist/6610.js +0 -2
- package/dist/6618.js +0 -2
- package/dist/6711.js +0 -2
- package/dist/6740.js +0 -2
- package/dist/6786.js +0 -2
- package/dist/685.js +0 -2
- package/dist/6950.js +0 -2
- package/dist/7055.js +0 -2
- package/dist/7106.js +0 -2
- package/dist/7141.js +0 -2
- package/dist/7146.js +0 -2
- package/dist/7287.js +0 -2
- package/dist/7473.js +0 -2
- package/dist/7599.js +0 -2
- package/dist/7648.js +0 -2
- package/dist/7668.js +0 -2
- package/dist/7855.js +0 -2
- package/dist/7965.js +0 -2
- package/dist/8165.js +0 -2
- package/dist/8177.js +0 -2
- package/dist/8306.js +0 -2
- package/dist/8543.js +0 -2
- package/dist/866.js +0 -2
- package/dist/8859.js +0 -2
- package/dist/904.js +0 -2
- package/dist/9148.js +0 -2
- package/dist/9522.js +0 -2
- package/dist/9625.js +0 -2
- package/dist/9625.js.LICENSE.txt +0 -3
- package/dist/971.js +0 -2
- package/dist/971.js.LICENSE.txt +0 -3
- package/dist/9712.js +0 -2
- package/dist/9712.js.LICENSE.txt +0 -3
- package/dist/976.js +0 -2
- package/dist/976.js.LICENSE.txt +0 -3
- package/dist/982.js +0 -2
- package/dist/982.js.LICENSE.txt +0 -3
- package/dist/986.js +0 -2
- package/dist/986.js.LICENSE.txt +0 -3
- package/dist/assets/README.md +0 -1
- package/dist/assets/fontawesome-free/LICENSE.txt +0 -165
- package/dist/assets/fontawesome-free/css/all.css +0 -7831
- package/dist/assets/fontawesome-free/css/all.min.css +0 -6
- package/dist/assets/fontawesome-free/css/brands.css +0 -1432
- package/dist/assets/fontawesome-free/css/brands.min.css +0 -6
- package/dist/assets/fontawesome-free/css/fontawesome.css +0 -6338
- package/dist/assets/fontawesome-free/css/fontawesome.min.css +0 -6
- package/dist/assets/fontawesome-free/css/regular.css +0 -19
- package/dist/assets/fontawesome-free/css/regular.min.css +0 -6
- package/dist/assets/fontawesome-free/css/solid.css +0 -19
- package/dist/assets/fontawesome-free/css/solid.min.css +0 -6
- package/dist/assets/fontawesome-free/css/svg-with-js.css +0 -634
- package/dist/assets/fontawesome-free/css/svg-with-js.min.css +0 -6
- package/dist/assets/fontawesome-free/css/v4-font-face.css +0 -26
- package/dist/assets/fontawesome-free/css/v4-font-face.min.css +0 -6
- package/dist/assets/fontawesome-free/css/v4-shims.css +0 -2146
- package/dist/assets/fontawesome-free/css/v4-shims.min.css +0 -6
- package/dist/assets/fontawesome-free/css/v5-font-face.css +0 -22
- package/dist/assets/fontawesome-free/css/v5-font-face.min.css +0 -6
- 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 +0 -18939
- package/dist/assets/icofont/fonts/icofont.eot +0 -0
- package/dist/assets/icofont/fonts/icofont.svg +0 -2105
- 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 +0 -10757
- package/dist/assets/icofont/icofont.min.css +0 -7
- package/dist/assets/kreon/Kreon-VariableFont_wght.ttf +0 -0
- package/dist/assets/kreon/OFL.txt +0 -93
- package/dist/assets/kreon/README.txt +0 -67
- 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 +0 -41
- package/dist/assets/material-icons/LICENSE +0 -202
- package/dist/assets/material-icons/README.md +0 -129
- package/dist/assets/material-icons/_data/versions.json +0 -2124
- package/dist/assets/material-icons/css/_codepoints.scss +0 -2279
- package/dist/assets/material-icons/css/_mixins.scss +0 -13
- package/dist/assets/material-icons/css/_variables.scss +0 -6
- package/dist/assets/material-icons/css/material-icons.css +0 -9208
- package/dist/assets/material-icons/css/material-icons.min.css +0 -1
- package/dist/assets/material-icons/css/material-icons.scss +0 -39
- package/dist/assets/material-icons/iconfont/_mixins.scss +0 -55
- package/dist/assets/material-icons/iconfont/_variables.scss +0 -3
- package/dist/assets/material-icons/iconfont/filled.css +0 -24
- package/dist/assets/material-icons/iconfont/filled.scss +0 -4
- 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 +0 -124
- package/dist/assets/material-icons/iconfont/material-icons.scss +0 -5
- 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 +0 -24
- package/dist/assets/material-icons/iconfont/outlined.scss +0 -4
- package/dist/assets/material-icons/iconfont/round.css +0 -24
- package/dist/assets/material-icons/iconfont/round.scss +0 -4
- package/dist/assets/material-icons/iconfont/sharp.css +0 -24
- package/dist/assets/material-icons/iconfont/sharp.scss +0 -4
- package/dist/assets/material-icons/iconfont/two-tone.css +0 -24
- package/dist/assets/material-icons/iconfont/two-tone.scss +0 -4
- package/dist/assets/material-icons/index.d.ts +0 -2128
- package/dist/assets/material-icons/package.json +0 -52
- package/dist/assets/material-symbols/LICENSE +0 -202
- package/dist/assets/material-symbols/README.md +0 -114
- package/dist/assets/material-symbols/_core.scss +0 -46
- package/dist/assets/material-symbols/index.css +0 -74
- package/dist/assets/material-symbols/index.d.ts +0 -2809
- package/dist/assets/material-symbols/index.scss +0 -3
- 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 +0 -24
- package/dist/assets/material-symbols/outlined.scss +0 -3
- package/dist/assets/material-symbols/package.json +0 -41
- package/dist/assets/material-symbols/rounded.css +0 -24
- package/dist/assets/material-symbols/rounded.scss +0 -3
- package/dist/assets/material-symbols/sharp.css +0 -24
- package/dist/assets/material-symbols/sharp.scss +0 -3
- 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 +0 -93
- package/dist/assets/noto-sans/noto-sans.css +0 -11
- package/dist/assets/roboto/LICENSE.txt +0 -202
- 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 +0 -27
- 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 +0 -16056
- package/dist/assets/tabler-icons/tabler-icons.html +0 -36226
- package/dist/assets/tabler-icons/tabler-icons.min.css +0 -4
- package/dist/assets/tabler-icons/tabler-icons.png +0 -0
- package/dist/assets/tabler-icons/tabler-icons.scss +0 -8058
- package/public/assets/README.md +0 -1
- package/public/assets/fontawesome-free/LICENSE.txt +0 -165
- package/public/assets/fontawesome-free/css/all.css +0 -7831
- package/public/assets/fontawesome-free/css/all.min.css +0 -6
- package/public/assets/fontawesome-free/css/brands.css +0 -1432
- package/public/assets/fontawesome-free/css/brands.min.css +0 -6
- package/public/assets/fontawesome-free/css/fontawesome.css +0 -6338
- package/public/assets/fontawesome-free/css/fontawesome.min.css +0 -6
- package/public/assets/fontawesome-free/css/regular.css +0 -19
- package/public/assets/fontawesome-free/css/regular.min.css +0 -6
- package/public/assets/fontawesome-free/css/solid.css +0 -19
- package/public/assets/fontawesome-free/css/solid.min.css +0 -6
- package/public/assets/fontawesome-free/css/svg-with-js.css +0 -634
- package/public/assets/fontawesome-free/css/svg-with-js.min.css +0 -6
- package/public/assets/fontawesome-free/css/v4-font-face.css +0 -26
- package/public/assets/fontawesome-free/css/v4-font-face.min.css +0 -6
- package/public/assets/fontawesome-free/css/v4-shims.css +0 -2146
- package/public/assets/fontawesome-free/css/v4-shims.min.css +0 -6
- package/public/assets/fontawesome-free/css/v5-font-face.css +0 -22
- package/public/assets/fontawesome-free/css/v5-font-face.min.css +0 -6
- package/public/assets/fontawesome-free/webfonts/fa-brands-400.ttf +0 -0
- package/public/assets/fontawesome-free/webfonts/fa-brands-400.woff2 +0 -0
- package/public/assets/fontawesome-free/webfonts/fa-regular-400.ttf +0 -0
- package/public/assets/fontawesome-free/webfonts/fa-regular-400.woff2 +0 -0
- package/public/assets/fontawesome-free/webfonts/fa-solid-900.ttf +0 -0
- package/public/assets/fontawesome-free/webfonts/fa-solid-900.woff2 +0 -0
- package/public/assets/fontawesome-free/webfonts/fa-v4compatibility.ttf +0 -0
- package/public/assets/fontawesome-free/webfonts/fa-v4compatibility.woff2 +0 -0
- package/public/assets/icofont/demo.html +0 -18939
- package/public/assets/icofont/fonts/icofont.eot +0 -0
- package/public/assets/icofont/fonts/icofont.svg +0 -2105
- package/public/assets/icofont/fonts/icofont.ttf +0 -0
- package/public/assets/icofont/fonts/icofont.woff +0 -0
- package/public/assets/icofont/fonts/icofont.woff2 +0 -0
- package/public/assets/icofont/icofont.css +0 -10757
- package/public/assets/icofont/icofont.min.css +0 -7
- package/public/assets/kreon/Kreon-VariableFont_wght.ttf +0 -0
- package/public/assets/kreon/OFL.txt +0 -93
- package/public/assets/kreon/README.txt +0 -67
- package/public/assets/kreon/static/Kreon-Bold.ttf +0 -0
- package/public/assets/kreon/static/Kreon-Light.ttf +0 -0
- package/public/assets/kreon/static/Kreon-Medium.ttf +0 -0
- package/public/assets/kreon/static/Kreon-Regular.ttf +0 -0
- package/public/assets/kreon/static/Kreon-SemiBold.ttf +0 -0
- package/public/assets/kreon/style.css +0 -41
- package/public/assets/material-icons/LICENSE +0 -202
- package/public/assets/material-icons/README.md +0 -129
- package/public/assets/material-icons/_data/versions.json +0 -2124
- package/public/assets/material-icons/css/_codepoints.scss +0 -2279
- package/public/assets/material-icons/css/_mixins.scss +0 -13
- package/public/assets/material-icons/css/_variables.scss +0 -6
- package/public/assets/material-icons/css/material-icons.css +0 -9208
- package/public/assets/material-icons/css/material-icons.min.css +0 -1
- package/public/assets/material-icons/css/material-icons.scss +0 -39
- package/public/assets/material-icons/iconfont/_mixins.scss +0 -55
- package/public/assets/material-icons/iconfont/_variables.scss +0 -3
- package/public/assets/material-icons/iconfont/filled.css +0 -24
- package/public/assets/material-icons/iconfont/filled.scss +0 -4
- package/public/assets/material-icons/iconfont/material-icons-outlined.woff +0 -0
- package/public/assets/material-icons/iconfont/material-icons-outlined.woff2 +0 -0
- package/public/assets/material-icons/iconfont/material-icons-round.woff +0 -0
- package/public/assets/material-icons/iconfont/material-icons-round.woff2 +0 -0
- package/public/assets/material-icons/iconfont/material-icons-sharp.woff +0 -0
- package/public/assets/material-icons/iconfont/material-icons-sharp.woff2 +0 -0
- package/public/assets/material-icons/iconfont/material-icons-two-tone.woff +0 -0
- package/public/assets/material-icons/iconfont/material-icons-two-tone.woff2 +0 -0
- package/public/assets/material-icons/iconfont/material-icons.css +0 -124
- package/public/assets/material-icons/iconfont/material-icons.scss +0 -5
- package/public/assets/material-icons/iconfont/material-icons.woff +0 -0
- package/public/assets/material-icons/iconfont/material-icons.woff2 +0 -0
- package/public/assets/material-icons/iconfont/outlined.css +0 -24
- package/public/assets/material-icons/iconfont/outlined.scss +0 -4
- package/public/assets/material-icons/iconfont/round.css +0 -24
- package/public/assets/material-icons/iconfont/round.scss +0 -4
- package/public/assets/material-icons/iconfont/sharp.css +0 -24
- package/public/assets/material-icons/iconfont/sharp.scss +0 -4
- package/public/assets/material-icons/iconfont/two-tone.css +0 -24
- package/public/assets/material-icons/iconfont/two-tone.scss +0 -4
- package/public/assets/material-icons/index.d.ts +0 -2128
- package/public/assets/material-icons/package.json +0 -52
- package/public/assets/material-symbols/LICENSE +0 -202
- package/public/assets/material-symbols/README.md +0 -114
- package/public/assets/material-symbols/_core.scss +0 -46
- package/public/assets/material-symbols/index.css +0 -74
- package/public/assets/material-symbols/index.d.ts +0 -2809
- package/public/assets/material-symbols/index.scss +0 -3
- package/public/assets/material-symbols/material-symbols-outlined.woff2 +0 -0
- package/public/assets/material-symbols/material-symbols-rounded.woff2 +0 -0
- package/public/assets/material-symbols/material-symbols-sharp.woff2 +0 -0
- package/public/assets/material-symbols/outlined.css +0 -24
- package/public/assets/material-symbols/outlined.scss +0 -3
- package/public/assets/material-symbols/package.json +0 -41
- package/public/assets/material-symbols/rounded.css +0 -24
- package/public/assets/material-symbols/rounded.scss +0 -3
- package/public/assets/material-symbols/sharp.css +0 -24
- package/public/assets/material-symbols/sharp.scss +0 -3
- package/public/assets/noto-sans/fonts/NotoSans-Black.ttf +0 -0
- package/public/assets/noto-sans/fonts/NotoSans-BlackItalic.ttf +0 -0
- package/public/assets/noto-sans/fonts/NotoSans-Bold.ttf +0 -0
- package/public/assets/noto-sans/fonts/NotoSans-BoldItalic.ttf +0 -0
- package/public/assets/noto-sans/fonts/NotoSans-ExtraBold.ttf +0 -0
- package/public/assets/noto-sans/fonts/NotoSans-ExtraBoldItalic.ttf +0 -0
- package/public/assets/noto-sans/fonts/NotoSans-ExtraLight.ttf +0 -0
- package/public/assets/noto-sans/fonts/NotoSans-ExtraLightItalic.ttf +0 -0
- package/public/assets/noto-sans/fonts/NotoSans-Italic.ttf +0 -0
- package/public/assets/noto-sans/fonts/NotoSans-Light.ttf +0 -0
- package/public/assets/noto-sans/fonts/NotoSans-LightItalic.ttf +0 -0
- package/public/assets/noto-sans/fonts/NotoSans-Medium.ttf +0 -0
- package/public/assets/noto-sans/fonts/NotoSans-MediumItalic.ttf +0 -0
- package/public/assets/noto-sans/fonts/NotoSans-Regular.ttf +0 -0
- package/public/assets/noto-sans/fonts/NotoSans-SemiBold.ttf +0 -0
- package/public/assets/noto-sans/fonts/NotoSans-SemiBoldItalic.ttf +0 -0
- package/public/assets/noto-sans/fonts/NotoSans-Thin.ttf +0 -0
- package/public/assets/noto-sans/fonts/NotoSans-ThinItalic.ttf +0 -0
- package/public/assets/noto-sans/fonts/OFL.txt +0 -93
- package/public/assets/noto-sans/noto-sans.css +0 -11
- package/public/assets/roboto/LICENSE.txt +0 -202
- package/public/assets/roboto/Roboto-Black.ttf +0 -0
- package/public/assets/roboto/Roboto-BlackItalic.ttf +0 -0
- package/public/assets/roboto/Roboto-Bold.ttf +0 -0
- package/public/assets/roboto/Roboto-BoldItalic.ttf +0 -0
- package/public/assets/roboto/Roboto-Italic.ttf +0 -0
- package/public/assets/roboto/Roboto-Light.ttf +0 -0
- package/public/assets/roboto/Roboto-LightItalic.ttf +0 -0
- package/public/assets/roboto/Roboto-Medium.ttf +0 -0
- package/public/assets/roboto/Roboto-MediumItalic.ttf +0 -0
- package/public/assets/roboto/Roboto-Regular.ttf +0 -0
- package/public/assets/roboto/Roboto-Thin.ttf +0 -0
- package/public/assets/roboto/Roboto-ThinItalic.ttf +0 -0
- package/public/assets/roboto/roboto.css +0 -27
- package/public/assets/tabler-icons/fonts/tabler-icons.eot +0 -0
- package/public/assets/tabler-icons/fonts/tabler-icons.ttf +0 -0
- package/public/assets/tabler-icons/fonts/tabler-icons.woff +0 -0
- package/public/assets/tabler-icons/fonts/tabler-icons.woff2 +0 -0
- package/public/assets/tabler-icons/tabler-icons.css +0 -16056
- package/public/assets/tabler-icons/tabler-icons.html +0 -36226
- package/public/assets/tabler-icons/tabler-icons.min.css +0 -4
- package/public/assets/tabler-icons/tabler-icons.png +0 -0
- package/public/assets/tabler-icons/tabler-icons.scss +0 -8058
- package/src/components/button-group/basic.tsx +0 -34
- package/src/components/button-group/routes.ts +0 -8
- package/src/components/indented-text/basic.tsx +0 -37
- package/src/components/indented-text/routes.ts +0 -8
- package/src/components/link-group/basic.tsx +0 -23
- package/src/components/link-group/horizontal.tsx +0 -23
- package/src/components/link-group/routes.ts +0 -10
- /package/dist/{1073.js.LICENSE.txt → 1006.js.LICENSE.txt} +0 -0
- /package/dist/{1325.js.LICENSE.txt → 1114.js.LICENSE.txt} +0 -0
- /package/dist/{1392.js.LICENSE.txt → 1752.js.LICENSE.txt} +0 -0
- /package/dist/{1604.js.LICENSE.txt → 1932.js.LICENSE.txt} +0 -0
- /package/dist/{175.js.LICENSE.txt → 2069.js.LICENSE.txt} +0 -0
- /package/dist/{178.js.LICENSE.txt → 2212.js.LICENSE.txt} +0 -0
- /package/dist/{1791.js.LICENSE.txt → 2231.js.LICENSE.txt} +0 -0
- /package/dist/{2220.js.LICENSE.txt → 2321.js.LICENSE.txt} +0 -0
- /package/dist/{2444.js.LICENSE.txt → 2596.js.LICENSE.txt} +0 -0
- /package/dist/{2450.js.LICENSE.txt → 2827.js.LICENSE.txt} +0 -0
- /package/dist/{2794.js.LICENSE.txt → 2894.js.LICENSE.txt} +0 -0
- /package/dist/{2986.js.LICENSE.txt → 3099.js.LICENSE.txt} +0 -0
- /package/dist/{3030.js.LICENSE.txt → 3151.js.LICENSE.txt} +0 -0
- /package/dist/{3270.js.LICENSE.txt → 3203.js.LICENSE.txt} +0 -0
- /package/dist/{3340.js.LICENSE.txt → 3540.js.LICENSE.txt} +0 -0
- /package/dist/{3392.js.LICENSE.txt → 373.js.LICENSE.txt} +0 -0
- /package/dist/{3529.js.LICENSE.txt → 3918.js.LICENSE.txt} +0 -0
- /package/dist/{3756.js.LICENSE.txt → 3920.js.LICENSE.txt} +0 -0
- /package/dist/{3960.js.LICENSE.txt → 4030.js.LICENSE.txt} +0 -0
- /package/dist/{399.js.LICENSE.txt → 4048.js.LICENSE.txt} +0 -0
- /package/dist/{4145.js.LICENSE.txt → 4201.js.LICENSE.txt} +0 -0
- /package/dist/{4539.js.LICENSE.txt → 4260.js.LICENSE.txt} +0 -0
- /package/dist/{4563.js.LICENSE.txt → 4361.js.LICENSE.txt} +0 -0
- /package/dist/{4571.js.LICENSE.txt → 4587.js.LICENSE.txt} +0 -0
- /package/dist/{5260.js.LICENSE.txt → 4611.js.LICENSE.txt} +0 -0
- /package/dist/{5333.js.LICENSE.txt → 4641.js.LICENSE.txt} +0 -0
- /package/dist/{5523.js.LICENSE.txt → 4876.js.LICENSE.txt} +0 -0
- /package/dist/{5551.js.LICENSE.txt → 5143.js.LICENSE.txt} +0 -0
- /package/dist/{5575.js.LICENSE.txt → 5249.js.LICENSE.txt} +0 -0
- /package/dist/{5665.js.LICENSE.txt → 5690.js.LICENSE.txt} +0 -0
- /package/dist/{572.js.LICENSE.txt → 5746.js.LICENSE.txt} +0 -0
- /package/dist/{5873.js.LICENSE.txt → 6047.js.LICENSE.txt} +0 -0
- /package/dist/{5879.js.LICENSE.txt → 6066.js.LICENSE.txt} +0 -0
- /package/dist/{5964.js.LICENSE.txt → 6256.js.LICENSE.txt} +0 -0
- /package/dist/{618.js.LICENSE.txt → 6304.js.LICENSE.txt} +0 -0
- /package/dist/{623.js.LICENSE.txt → 6781.js.LICENSE.txt} +0 -0
- /package/dist/{643.js.LICENSE.txt → 6790.js.LICENSE.txt} +0 -0
- /package/dist/{6610.js.LICENSE.txt → 6984.js.LICENSE.txt} +0 -0
- /package/dist/{6618.js.LICENSE.txt → 7013.js.LICENSE.txt} +0 -0
- /package/dist/{6711.js.LICENSE.txt → 7178.js.LICENSE.txt} +0 -0
- /package/dist/{6740.js.LICENSE.txt → 7347.js.LICENSE.txt} +0 -0
- /package/dist/{6786.js.LICENSE.txt → 740.js.LICENSE.txt} +0 -0
- /package/dist/{685.js.LICENSE.txt → 7444.js.LICENSE.txt} +0 -0
- /package/dist/{6950.js.LICENSE.txt → 7533.js.LICENSE.txt} +0 -0
- /package/dist/{7055.js.LICENSE.txt → 7535.js.LICENSE.txt} +0 -0
- /package/dist/{7106.js.LICENSE.txt → 775.js.LICENSE.txt} +0 -0
- /package/dist/{7141.js.LICENSE.txt → 8137.js.LICENSE.txt} +0 -0
- /package/dist/{7146.js.LICENSE.txt → 8180.js.LICENSE.txt} +0 -0
- /package/dist/{7287.js.LICENSE.txt → 8192.js.LICENSE.txt} +0 -0
- /package/dist/{7473.js.LICENSE.txt → 833.js.LICENSE.txt} +0 -0
- /package/dist/{7599.js.LICENSE.txt → 8378.js.LICENSE.txt} +0 -0
- /package/dist/{7648.js.LICENSE.txt → 8605.js.LICENSE.txt} +0 -0
- /package/dist/{7668.js.LICENSE.txt → 8625.js.LICENSE.txt} +0 -0
- /package/dist/{7855.js.LICENSE.txt → 8840.js.LICENSE.txt} +0 -0
- /package/dist/{7965.js.LICENSE.txt → 907.js.LICENSE.txt} +0 -0
- /package/dist/{8165.js.LICENSE.txt → 9108.js.LICENSE.txt} +0 -0
- /package/dist/{8177.js.LICENSE.txt → 9255.js.LICENSE.txt} +0 -0
- /package/dist/{8306.js.LICENSE.txt → 9322.js.LICENSE.txt} +0 -0
- /package/dist/{8543.js.LICENSE.txt → 9581.js.LICENSE.txt} +0 -0
- /package/dist/{866.js.LICENSE.txt → 9719.js.LICENSE.txt} +0 -0
- /package/dist/{8859.js.LICENSE.txt → 9731.js.LICENSE.txt} +0 -0
- /package/dist/{904.js.LICENSE.txt → 9907.js.LICENSE.txt} +0 -0
- /package/dist/{9148.js.LICENSE.txt → 9930.js.LICENSE.txt} +0 -0
- /package/dist/{9522.js.LICENSE.txt → 9938.js.LICENSE.txt} +0 -0
|
@@ -1,28 +1,70 @@
|
|
|
1
|
+
import { KolButton, KolForm, KolInputText } from '@public-ui/react';
|
|
1
2
|
import type { FC } from 'react';
|
|
2
|
-
import React from 'react';
|
|
3
|
+
import React, { useEffect, useRef } from 'react';
|
|
3
4
|
import { SampleDescription } from '../SampleDescription';
|
|
4
|
-
import { KolForm, KolInputText } from '@public-ui/react';
|
|
5
5
|
|
|
6
|
-
export const FormErrorList: FC = () =>
|
|
7
|
-
|
|
8
|
-
<SampleDescription>
|
|
9
|
-
<p>This sample shows a form with error messages.</p>
|
|
10
|
-
</SampleDescription>
|
|
6
|
+
export const FormErrorList: FC = () => {
|
|
7
|
+
const formRef = useRef<HTMLKolFormElement | null>(null);
|
|
11
8
|
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
9
|
+
const scrollTo = () => {
|
|
10
|
+
formRef.current?.focusErrorList();
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* Simulate the form submission
|
|
15
|
+
*/
|
|
16
|
+
useEffect(() => {
|
|
17
|
+
formRef.current?.focusErrorList();
|
|
18
|
+
}, []);
|
|
19
|
+
|
|
20
|
+
return (
|
|
21
|
+
<>
|
|
22
|
+
<SampleDescription>
|
|
23
|
+
<p>This sample shows a form with error messages.</p>
|
|
24
|
+
</SampleDescription>
|
|
25
|
+
|
|
26
|
+
<KolForm
|
|
27
|
+
className="w-full"
|
|
28
|
+
ref={formRef}
|
|
29
|
+
_on={{
|
|
30
|
+
onSubmit: scrollTo,
|
|
31
|
+
}}
|
|
32
|
+
_errorList={[
|
|
33
|
+
{
|
|
34
|
+
message: 'Error in Input 2',
|
|
35
|
+
selector: '#input2',
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
message: 'Error in Input 3',
|
|
39
|
+
selector: () => alert('Error in Input 3'),
|
|
40
|
+
},
|
|
41
|
+
]}
|
|
42
|
+
>
|
|
43
|
+
<div className="grid gap-2">
|
|
44
|
+
<KolInputText id="input1" _label="Input 1" />
|
|
45
|
+
<KolInputText
|
|
46
|
+
id="input2"
|
|
47
|
+
_label="Input 2"
|
|
48
|
+
_touched
|
|
49
|
+
_msg={{
|
|
50
|
+
_description: 'Input error',
|
|
51
|
+
_type: 'error',
|
|
52
|
+
}}
|
|
53
|
+
/>
|
|
54
|
+
<KolInputText
|
|
55
|
+
id="input3"
|
|
56
|
+
_label="Input 3"
|
|
57
|
+
_touched
|
|
58
|
+
_msg={{
|
|
59
|
+
_description: 'Input error',
|
|
60
|
+
_type: 'error',
|
|
61
|
+
}}
|
|
62
|
+
/>
|
|
63
|
+
<div>
|
|
64
|
+
<KolButton _label="ScrollTo" _type="submit" />
|
|
65
|
+
</div>
|
|
66
|
+
</div>
|
|
67
|
+
</KolForm>
|
|
68
|
+
</>
|
|
69
|
+
);
|
|
70
|
+
};
|
|
@@ -29,7 +29,7 @@ import {
|
|
|
29
29
|
KolNav,
|
|
30
30
|
KolProgress,
|
|
31
31
|
KolSelect,
|
|
32
|
-
|
|
32
|
+
KolTableStateful,
|
|
33
33
|
KolTabs,
|
|
34
34
|
KolTextarea,
|
|
35
35
|
KolVersion,
|
|
@@ -73,16 +73,14 @@ const TABLE_HEADERS: KoliBriTableHeaders = {
|
|
|
73
73
|
el.appendChild(renderElement);
|
|
74
74
|
getRoot(renderElement).render(<KolButtonWrapper _label={cell.label} style={{ fontSize: '75%' }} />);
|
|
75
75
|
},
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
return 0;
|
|
85
|
-
});
|
|
76
|
+
compareFn: (first, second) => {
|
|
77
|
+
if ((first as TableDataType).monday < (second as TableDataType).monday) {
|
|
78
|
+
return -1;
|
|
79
|
+
}
|
|
80
|
+
if ((first as TableDataType).monday > (second as TableDataType).monday) {
|
|
81
|
+
return 1;
|
|
82
|
+
}
|
|
83
|
+
return 0;
|
|
86
84
|
},
|
|
87
85
|
sortDirection: 'ASC',
|
|
88
86
|
textAlign: 'right',
|
|
@@ -97,16 +95,14 @@ const TABLE_HEADERS: KoliBriTableHeaders = {
|
|
|
97
95
|
el.appendChild(renderElement);
|
|
98
96
|
getRoot(renderElement).render(<KolBadge _color="#060" _label={cell.label}></KolBadge>);
|
|
99
97
|
},
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
return 0;
|
|
109
|
-
});
|
|
98
|
+
compareFn: (first, second) => {
|
|
99
|
+
if ((first as TableDataType).tuesday < (second as TableDataType).tuesday) {
|
|
100
|
+
return -1;
|
|
101
|
+
}
|
|
102
|
+
if ((first as TableDataType).tuesday > (second as TableDataType).tuesday) {
|
|
103
|
+
return 1;
|
|
104
|
+
}
|
|
105
|
+
return 0;
|
|
110
106
|
},
|
|
111
107
|
sortDirection: 'DESC',
|
|
112
108
|
},
|
|
@@ -194,7 +190,7 @@ export const HandoutBasic: FC = () => {
|
|
|
194
190
|
|
|
195
191
|
return (
|
|
196
192
|
<div className="grid gap-4">
|
|
197
|
-
<div className="grid gap-4 grid-cols-[auto_1fr_1fr] items-center">
|
|
193
|
+
<div className="grid gap-4 md:grid-cols-[auto_1fr_1fr] items-center">
|
|
198
194
|
<KolKolibri className="block w-75px" _labeled={false}></KolKolibri>
|
|
199
195
|
<KolHeading _label="" _level={1}>
|
|
200
196
|
<span slot="expert">
|
|
@@ -252,10 +248,8 @@ export const HandoutBasic: FC = () => {
|
|
|
252
248
|
<p>
|
|
253
249
|
I am <KolAbbr>e.g.</KolAbbr> an abbreviation without label.
|
|
254
250
|
</p>
|
|
255
|
-
<
|
|
256
|
-
|
|
257
|
-
<KolProgress _variant="cycle" _max={100} _value={66} _label="Progress" />
|
|
258
|
-
</div>
|
|
251
|
+
<KolProgress _variant="bar" _max={100} _value={33} _label="Progress" />
|
|
252
|
+
<KolProgress _variant="cycle" _max={100} _value={66} _label="Progress" />
|
|
259
253
|
</div>
|
|
260
254
|
</KolCard>
|
|
261
255
|
<KolCard className="col-span-6 sm:col-span-6 md:col-span-6 xl:col-span-3" _label="Button, LinkButton and Tab" _level={2}>
|
|
@@ -430,7 +424,6 @@ export const HandoutBasic: FC = () => {
|
|
|
430
424
|
/>
|
|
431
425
|
</div>
|
|
432
426
|
{/* <KolSkipNav></KolSkipNav> */}
|
|
433
|
-
{/* <KolLinkGroup _label=""></KolLinkGroup> */}
|
|
434
427
|
<div>
|
|
435
428
|
<KolBreadcrumb
|
|
436
429
|
_label="Breadcrumb aus Text-Links"
|
|
@@ -448,7 +441,7 @@ export const HandoutBasic: FC = () => {
|
|
|
448
441
|
</KolCard>
|
|
449
442
|
<KolCard className="col-span-6 sm:col-span-6 md:col-span-4 xl:col-span-5" _label="Input" _level={2}>
|
|
450
443
|
<KolForm slot="">
|
|
451
|
-
<div className="grid gap-4 grid-cols-3 p-2">
|
|
444
|
+
<div className="grid gap-4 sm:grid-cols-2 md:grid-cols-3 p-2">
|
|
452
445
|
<KolInputColor _label={`Color`} />
|
|
453
446
|
<KolInputFile _label={`Upload file`} />
|
|
454
447
|
<KolInputNumber _label={`Number input`} />
|
|
@@ -467,7 +460,9 @@ export const HandoutBasic: FC = () => {
|
|
|
467
460
|
<div className="grid gap-4">
|
|
468
461
|
<KolInputRadio _orientation="horizontal" _options="[{'label':'Mr.','value':0},{'label':'Mrs.','value':1}]" _value="0" _label={`Salutation`} />
|
|
469
462
|
<KolInputCheckbox _label="">
|
|
470
|
-
|
|
463
|
+
<span slot="expert">
|
|
464
|
+
I accept the <KolAbbr _label="General Terms and Conditions">AGB</KolAbbr>.
|
|
465
|
+
</span>
|
|
471
466
|
</KolInputCheckbox>
|
|
472
467
|
</div>
|
|
473
468
|
<KolTextarea _rows={4} _label={`Textarea`} />
|
|
@@ -476,7 +471,7 @@ export const HandoutBasic: FC = () => {
|
|
|
476
471
|
</KolCard>
|
|
477
472
|
<KolCard className="col-span-6 sm:col-span-6 md:col-span-4 xl:col-span-5" _label="Table with Pagination" _level={2}>
|
|
478
473
|
<div slot="" className="grid gap-2 p-2">
|
|
479
|
-
<
|
|
474
|
+
<KolTableStateful _label="Table" _minWidth="auto" _headers={TABLE_HEADERS} _data={TABLE_DATA} _pagination></KolTableStateful>
|
|
480
475
|
</div>
|
|
481
476
|
</KolCard>
|
|
482
477
|
</div>
|
|
@@ -12,8 +12,9 @@ export const IconBasic: FC = () => (
|
|
|
12
12
|
</SampleDescription>
|
|
13
13
|
|
|
14
14
|
<div className="grid gap-4">
|
|
15
|
-
<KolIcon _label="" _icons="codicon codicon-home" />
|
|
15
|
+
<KolIcon className="block w-[1em] h-[1em]" _label="" _icons="codicon codicon-home" />
|
|
16
16
|
<KolIcon
|
|
17
|
+
className="block w-[1em] h-[1em]"
|
|
17
18
|
style={{
|
|
18
19
|
color: 'red',
|
|
19
20
|
}}
|
|
@@ -9,6 +9,6 @@ export const ImageBasic: FC = () => (
|
|
|
9
9
|
<p>KolImage renders an image. The sample shows an image with alternative text.</p>
|
|
10
10
|
</SampleDescription>
|
|
11
11
|
|
|
12
|
-
<KolImage className="w-
|
|
12
|
+
<KolImage className="w-image" _src="abgrenzung.jpg" _alt="Darstellung des KoliBri-Theming" />
|
|
13
13
|
</>
|
|
14
14
|
);
|
|
@@ -3,10 +3,11 @@ import React, { forwardRef } from 'react';
|
|
|
3
3
|
import { InputCheckboxCases } from './cases';
|
|
4
4
|
|
|
5
5
|
import type { Components } from '@public-ui/components';
|
|
6
|
+
import { SampleColumns } from '../../SampleColumns';
|
|
6
7
|
export const InputCheckboxVariants = forwardRef<HTMLKolInputCheckboxElement, Components.KolInputCheckbox>(function InputCheckboxVariant(props, ref) {
|
|
7
8
|
return (
|
|
8
9
|
<>
|
|
9
|
-
<
|
|
10
|
+
<SampleColumns>
|
|
10
11
|
<fieldset>
|
|
11
12
|
<legend>Label align "left" with label</legend>
|
|
12
13
|
<InputCheckboxCases {...props} _labelAlign="left" />
|
|
@@ -15,8 +16,8 @@ export const InputCheckboxVariants = forwardRef<HTMLKolInputCheckboxElement, Com
|
|
|
15
16
|
<legend>Label align "left" without Label (hideLabel)</legend>
|
|
16
17
|
<InputCheckboxCases ref={ref} {...props} _hideLabel _labelAlign="left" />
|
|
17
18
|
</fieldset>
|
|
18
|
-
</
|
|
19
|
-
<
|
|
19
|
+
</SampleColumns>
|
|
20
|
+
<SampleColumns>
|
|
20
21
|
<fieldset>
|
|
21
22
|
<legend>Label align "right" with label</legend>
|
|
22
23
|
<InputCheckboxCases {...props} />
|
|
@@ -25,7 +26,7 @@ export const InputCheckboxVariants = forwardRef<HTMLKolInputCheckboxElement, Com
|
|
|
25
26
|
<legend>Label align "right" without Label (hideLabel)</legend>
|
|
26
27
|
<InputCheckboxCases ref={ref} {...props} _hideLabel />
|
|
27
28
|
</fieldset>
|
|
28
|
-
</
|
|
29
|
+
</SampleColumns>
|
|
29
30
|
</>
|
|
30
31
|
);
|
|
31
32
|
});
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import React, { forwardRef } from 'react';
|
|
2
|
-
|
|
3
2
|
import { KolInputColor } from '@public-ui/react';
|
|
3
|
+
import type { Components } from '@public-ui/components';
|
|
4
4
|
|
|
5
5
|
import { ERROR_MSG } from '../../../shares/constants';
|
|
6
6
|
|
|
7
|
-
import type { Components } from '@public-ui/components';
|
|
8
7
|
export const InputColorCases = forwardRef<HTMLKolInputColorElement, Components.KolInputColor>(function InputColorCases(props, ref) {
|
|
9
8
|
return (
|
|
10
9
|
<div className="grid gap-4">
|
|
@@ -26,6 +25,9 @@ export const InputColorCases = forwardRef<HTMLKolInputColorElement, Components.K
|
|
|
26
25
|
_suggestions="['#000000','#f08080', '#0000ff','#00ff00']"
|
|
27
26
|
_touched
|
|
28
27
|
/>
|
|
28
|
+
<KolInputColor {...props} _msg={{ _type: 'info', _description: 'Just a hint' }} _label="Color" />
|
|
29
|
+
<KolInputColor {...props} _msg={{ _type: 'warning', _description: 'Small warning' }} _label="Color" />
|
|
30
|
+
<KolInputColor {...props} _msg={{ _type: 'success', _description: 'Success message' }} _label="Color" />
|
|
29
31
|
<KolInputColor {...props} ref={ref} _accessKey="C" _hint="Hint text" _label="Color with hint" _value="#f08080" />
|
|
30
32
|
<KolInputColor {...props} _disabled _label="Color (Disabled)" _value="#f08080" />
|
|
31
33
|
<KolInputColor {...props} _label="With access key" _accessKey="c"></KolInputColor>
|
|
@@ -3,9 +3,10 @@ import React, { forwardRef } from 'react';
|
|
|
3
3
|
import { InputColorCases } from './cases';
|
|
4
4
|
|
|
5
5
|
import type { Components } from '@public-ui/components';
|
|
6
|
+
import { SampleColumns } from '../../SampleColumns';
|
|
6
7
|
export const InputColorVariants = forwardRef<HTMLKolInputColorElement, Components.KolInputColor>(function InputColorVariant(props, ref) {
|
|
7
8
|
return (
|
|
8
|
-
<
|
|
9
|
+
<SampleColumns>
|
|
9
10
|
<fieldset>
|
|
10
11
|
<legend>Color</legend>
|
|
11
12
|
<InputColorCases {...props} />
|
|
@@ -14,6 +15,6 @@ export const InputColorVariants = forwardRef<HTMLKolInputColorElement, Component
|
|
|
14
15
|
<legend>Color (hideLabel)</legend>
|
|
15
16
|
<InputColorCases ref={ref} {...props} _hideLabel />
|
|
16
17
|
</fieldset>
|
|
17
|
-
</
|
|
18
|
+
</SampleColumns>
|
|
18
19
|
);
|
|
19
20
|
});
|
|
@@ -1,26 +1,29 @@
|
|
|
1
1
|
import React, { forwardRef } from 'react';
|
|
2
|
-
|
|
3
2
|
import { KolInputDate } from '@public-ui/react';
|
|
3
|
+
import type { Components } from '@public-ui/components';
|
|
4
4
|
|
|
5
|
-
import { ERROR_MSG } from '../../../shares/constants';
|
|
5
|
+
import { ERROR_MSG, HINT_MSG } from '../../../shares/constants';
|
|
6
6
|
|
|
7
|
-
import type { Components } from '@public-ui/components';
|
|
8
7
|
export const InputDateCases = forwardRef<HTMLKolInputDateElement, Components.KolInputDate>(function InputDateCases(props, ref) {
|
|
9
8
|
return (
|
|
10
9
|
<div className="grid gap-4">
|
|
11
10
|
<div className="black-background">
|
|
12
|
-
<KolInputDate {...props} _type="date" _label="Date input (Black background test)" _required />
|
|
11
|
+
<KolInputDate {...props} _type="date" _label="Date input (Black background test)" _required />
|
|
13
12
|
</div>
|
|
14
13
|
<KolInputDate {...props} _type="datetime-local" _label="Local-Datetime (Standard)" _required />
|
|
15
14
|
<KolInputDate
|
|
16
15
|
{...props}
|
|
17
16
|
_step={1}
|
|
18
17
|
_type="datetime-local"
|
|
18
|
+
_hint={HINT_MSG}
|
|
19
19
|
_msg={{ _type: 'error', _description: ERROR_MSG }}
|
|
20
20
|
_label="Local datetime (with seconds)"
|
|
21
21
|
_required
|
|
22
22
|
_touched
|
|
23
23
|
/>
|
|
24
|
+
<KolInputDate {...props} _msg={{ _type: 'info', _description: 'Just a hint' }} _label="Color" />
|
|
25
|
+
<KolInputDate {...props} _msg={{ _type: 'warning', _description: 'Small warning' }} _label="Color" />
|
|
26
|
+
<KolInputDate {...props} _msg={{ _type: 'success', _description: 'Success message' }} _label="Color" />
|
|
24
27
|
<KolInputDate {...props} _type="month" _label="Month" _required />
|
|
25
28
|
<KolInputDate {...props} ref={ref} _accessKey="W" _type="week" _label="Week" _required />
|
|
26
29
|
<KolInputDate {...props} _type="time" _label="Time (standard)" _required />
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import React
|
|
1
|
+
import React from 'react';
|
|
2
2
|
import { KolInputDate } from '@public-ui/react';
|
|
3
3
|
import type { Components } from '@public-ui/components';
|
|
4
4
|
|
|
5
|
-
export const InputDateMinMaxCases =
|
|
5
|
+
export const InputDateMinMaxCases = (props: Components.KolInputDate) => {
|
|
6
6
|
const minDateIso = '2024-09-26';
|
|
7
7
|
const maxDateIso = '2024-09-27';
|
|
8
8
|
|
|
@@ -38,4 +38,4 @@ export const InputDateMinMaxCases = forwardRef<HTMLKolInputDateElement, Componen
|
|
|
38
38
|
<KolInputDate {...props} _type="month" _label="Month with Date" _min={minDate} _max={maxDate} />
|
|
39
39
|
</div>
|
|
40
40
|
);
|
|
41
|
-
}
|
|
41
|
+
};
|
|
@@ -4,9 +4,10 @@ import { InputDateCases } from './cases';
|
|
|
4
4
|
|
|
5
5
|
import type { Components } from '@public-ui/components';
|
|
6
6
|
import { InputDateMinMaxCases } from './minMax';
|
|
7
|
+
import { SampleColumns } from '../../SampleColumns';
|
|
7
8
|
export const InputDateVariants = forwardRef<HTMLKolInputDateElement, Components.KolInputDate>(function InputDateVariant(props, ref) {
|
|
8
9
|
return (
|
|
9
|
-
<
|
|
10
|
+
<SampleColumns>
|
|
10
11
|
<fieldset>
|
|
11
12
|
<legend>Date</legend>
|
|
12
13
|
<InputDateCases {...props} />
|
|
@@ -17,8 +18,8 @@ export const InputDateVariants = forwardRef<HTMLKolInputDateElement, Components.
|
|
|
17
18
|
</fieldset>
|
|
18
19
|
<fieldset>
|
|
19
20
|
<legend>Date (with min/max)</legend>
|
|
20
|
-
<InputDateMinMaxCases
|
|
21
|
+
<InputDateMinMaxCases {...props} />
|
|
21
22
|
</fieldset>
|
|
22
|
-
</
|
|
23
|
+
</SampleColumns>
|
|
23
24
|
);
|
|
24
25
|
});
|
|
@@ -37,11 +37,10 @@ export const InputDateShowHideMsg = () => {
|
|
|
37
37
|
Error-Message visible: {showMsg && isTouched && !hideMsg ? 'Yes' : 'No'} (showMsg: {showMsg ? 'Yes' : 'No'}, isTouched: {isTouched ? 'Yes' : 'No'},
|
|
38
38
|
hideMsg: {hideMsg ? 'Yes' : 'No'})
|
|
39
39
|
</pre>
|
|
40
|
-
<KolInputDate _error={showMsg ? 'error message' : undefined} _hideError={hideMsg} _label="Date (_error)" _touched={isTouched} />
|
|
41
40
|
{msgTypes.map((type) => (
|
|
42
41
|
<KolInputDate
|
|
43
42
|
key={type}
|
|
44
|
-
|
|
43
|
+
_hideMsg={hideMsg}
|
|
45
44
|
_label={`Date (_msg, ${type})`}
|
|
46
45
|
_msg={
|
|
47
46
|
showMsg
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import React, { forwardRef } from 'react';
|
|
2
|
-
|
|
3
2
|
import { KolInputEmail } from '@public-ui/react';
|
|
3
|
+
import type { Components } from '@public-ui/components';
|
|
4
4
|
|
|
5
|
-
import { ERROR_MSG } from '../../../shares/constants';
|
|
5
|
+
import { ERROR_MSG, HINT_MSG } from '../../../shares/constants';
|
|
6
6
|
|
|
7
|
-
import type { Components } from '@public-ui/components';
|
|
8
7
|
export const InputEmailCases = forwardRef<HTMLKolInputEmailElement, Components.KolInputEmail>(function InputEmailCases(props, ref) {
|
|
9
8
|
return (
|
|
10
9
|
<div className="grid gap-4">
|
|
@@ -18,6 +17,7 @@ export const InputEmailCases = forwardRef<HTMLKolInputEmailElement, Components.K
|
|
|
18
17
|
_placeholder="elke@mustermann.de"
|
|
19
18
|
_suggestions="['test1@mail.de', 'test2@mail.de', 'test3@mail.de']"
|
|
20
19
|
_label="E-Mail (list)"
|
|
20
|
+
_hint={HINT_MSG}
|
|
21
21
|
_msg={{ _type: 'error', _description: ERROR_MSG }}
|
|
22
22
|
_touched
|
|
23
23
|
_icons={{
|
|
@@ -29,6 +29,9 @@ export const InputEmailCases = forwardRef<HTMLKolInputEmailElement, Components.K
|
|
|
29
29
|
},
|
|
30
30
|
}}
|
|
31
31
|
/>
|
|
32
|
+
<KolInputEmail {...props} _msg={{ _type: 'info', _description: 'Just a hint' }} _label="E-Mail" />
|
|
33
|
+
<KolInputEmail {...props} _msg={{ _type: 'warning', _description: 'Small warning' }} _label="E-Mail" />
|
|
34
|
+
<KolInputEmail {...props} _msg={{ _type: 'success', _description: 'Success message' }} _label="E-Mail" />
|
|
32
35
|
<KolInputEmail {...props} _disabled _value="test@mail.de" _label="E-Mail (Disabled)" />
|
|
33
36
|
<KolInputEmail {...props} _readOnly _value="test@mail.de" _label="E-Mail (Readonly)" />
|
|
34
37
|
<KolInputEmail {...props} _value="test@mail.de" _label="With access key" _accessKey="c" />
|
|
@@ -3,9 +3,10 @@ import React, { forwardRef } from 'react';
|
|
|
3
3
|
import { InputEmailCases } from './cases';
|
|
4
4
|
|
|
5
5
|
import type { Components } from '@public-ui/components';
|
|
6
|
+
import { SampleColumns } from '../../SampleColumns';
|
|
6
7
|
export const InputEmailVariants = forwardRef<HTMLKolInputEmailElement, Components.KolInputEmail>(function InputEmailVariant(props, ref) {
|
|
7
8
|
return (
|
|
8
|
-
<
|
|
9
|
+
<SampleColumns>
|
|
9
10
|
<fieldset>
|
|
10
11
|
<legend>Email</legend>
|
|
11
12
|
<InputEmailCases {...props} />
|
|
@@ -14,6 +15,6 @@ export const InputEmailVariants = forwardRef<HTMLKolInputEmailElement, Component
|
|
|
14
15
|
<legend>Email (hideLabel)</legend>
|
|
15
16
|
<InputEmailCases ref={ref} {...props} _hideLabel />
|
|
16
17
|
</fieldset>
|
|
17
|
-
</
|
|
18
|
+
</SampleColumns>
|
|
18
19
|
);
|
|
19
20
|
});
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import React, { forwardRef } from 'react';
|
|
2
|
-
|
|
3
2
|
import { KolInputFile } from '@public-ui/react';
|
|
3
|
+
import type { Components } from '@public-ui/components';
|
|
4
4
|
|
|
5
|
-
import { ERROR_MSG } from '../../../shares/constants';
|
|
5
|
+
import { ERROR_MSG, HINT_MSG } from '../../../shares/constants';
|
|
6
6
|
|
|
7
|
-
import type { Components } from '@public-ui/components';
|
|
8
7
|
export const InputFileCases = forwardRef<HTMLKolInputFileElement, Components.KolInputFile>(function InputFileCases(props, ref) {
|
|
9
8
|
return (
|
|
10
9
|
<div className="grid gap-4">
|
|
@@ -23,6 +22,7 @@ export const InputFileCases = forwardRef<HTMLKolInputFileElement, Components.Kol
|
|
|
23
22
|
<KolInputFile
|
|
24
23
|
{...props}
|
|
25
24
|
_required
|
|
25
|
+
_hint={HINT_MSG}
|
|
26
26
|
_msg={{ _type: 'error', _description: ERROR_MSG }}
|
|
27
27
|
_label="Upload file (Black background test)"
|
|
28
28
|
_icons={{
|
|
@@ -32,6 +32,9 @@ export const InputFileCases = forwardRef<HTMLKolInputFileElement, Components.Kol
|
|
|
32
32
|
}}
|
|
33
33
|
_touched
|
|
34
34
|
/>
|
|
35
|
+
<KolInputFile {...props} _msg={{ _type: 'info', _description: 'Just a hint' }} _label="Upload file" />
|
|
36
|
+
<KolInputFile {...props} _msg={{ _type: 'warning', _description: 'Small warning' }} _label="Upload file" />
|
|
37
|
+
<KolInputFile {...props} _msg={{ _type: 'success', _description: 'Success message' }} _label="Upload file" />
|
|
35
38
|
<KolInputFile {...props} ref={ref} _accessKey="h" _multiple _msg={{ _type: 'error', _description: ERROR_MSG }} _label="Upload file (Multiple)" />
|
|
36
39
|
<KolInputFile {...props} _disabled _label="Upload file (Disabled)" />
|
|
37
40
|
<KolInputFile {...props} _label="With access key" _accessKey="c" />
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import React, { forwardRef } from 'react';
|
|
2
2
|
|
|
3
3
|
import { InputFileCases } from './cases';
|
|
4
|
+
import { SampleColumns } from '../../SampleColumns';
|
|
4
5
|
|
|
5
6
|
import type { Components } from '@public-ui/components';
|
|
6
7
|
export const InputFileVariants = forwardRef<HTMLKolInputFileElement, Components.KolInputFile>(function InputFileVariant(props, ref) {
|
|
7
8
|
return (
|
|
8
|
-
<
|
|
9
|
+
<SampleColumns>
|
|
9
10
|
<fieldset>
|
|
10
11
|
<legend>File</legend>
|
|
11
12
|
<InputFileCases {...props} />
|
|
@@ -14,6 +15,6 @@ export const InputFileVariants = forwardRef<HTMLKolInputFileElement, Components.
|
|
|
14
15
|
<legend>File (hideLabel)</legend>
|
|
15
16
|
<InputFileCases ref={ref} {...props} _hideLabel />
|
|
16
17
|
</fieldset>
|
|
17
|
-
</
|
|
18
|
+
</SampleColumns>
|
|
18
19
|
);
|
|
19
20
|
});
|
|
@@ -3,9 +3,10 @@ import React, { forwardRef } from 'react';
|
|
|
3
3
|
import { InputNumberCases } from './cases';
|
|
4
4
|
|
|
5
5
|
import type { Components } from '@public-ui/components';
|
|
6
|
+
import { SampleColumns } from '../../SampleColumns';
|
|
6
7
|
export const InputNumberVariants = forwardRef<HTMLKolInputNumberElement, Components.KolInputNumber>(function InputNumberVariant(props, ref) {
|
|
7
8
|
return (
|
|
8
|
-
<
|
|
9
|
+
<SampleColumns>
|
|
9
10
|
<fieldset>
|
|
10
11
|
<legend>Number</legend>
|
|
11
12
|
<InputNumberCases {...props} />
|
|
@@ -14,6 +15,6 @@ export const InputNumberVariants = forwardRef<HTMLKolInputNumberElement, Compone
|
|
|
14
15
|
<legend>Number (hideLabel)</legend>
|
|
15
16
|
<InputNumberCases ref={ref} {...props} _hideLabel />
|
|
16
17
|
</fieldset>
|
|
17
|
-
</
|
|
18
|
+
</SampleColumns>
|
|
18
19
|
);
|
|
19
20
|
});
|
|
@@ -1,23 +1,21 @@
|
|
|
1
1
|
import React, { forwardRef } from 'react';
|
|
2
|
-
|
|
3
2
|
import { KolInputPassword } from '@public-ui/react';
|
|
3
|
+
import type { Components } from '@public-ui/components';
|
|
4
4
|
|
|
5
|
-
import { ERROR_MSG } from '../../../shares/constants';
|
|
5
|
+
import { ERROR_MSG, HINT_MSG } from '../../../shares/constants';
|
|
6
6
|
|
|
7
|
-
import type { Components } from '@public-ui/components';
|
|
8
7
|
export const InputPasswordCases = forwardRef<HTMLKolInputPasswordElement, Components.KolInputPassword>(function InputPasswordCases(props, ref) {
|
|
9
8
|
return (
|
|
10
9
|
<div className="grid gap-4">
|
|
11
10
|
<div className="black-background">
|
|
12
11
|
<KolInputPassword {...props} _label="Passwort (Black background test)" />
|
|
13
12
|
</div>
|
|
14
|
-
<KolInputPassword {...props} _disabled _msg={{ _type: 'error', _description: ERROR_MSG }} _label="Passwort (Disabled)" _touched />
|
|
15
|
-
<KolInputPassword {...props} _readOnly _label="Passwort (Readonly)" />
|
|
16
13
|
<KolInputPassword
|
|
17
14
|
{...props}
|
|
18
15
|
ref={ref}
|
|
19
16
|
_accessKey="P"
|
|
20
17
|
_required
|
|
18
|
+
_hint={HINT_MSG}
|
|
21
19
|
_msg={{ _type: 'error', _description: ERROR_MSG }}
|
|
22
20
|
_placeholder="Mit Icons"
|
|
23
21
|
_label="Passwort"
|
|
@@ -31,6 +29,11 @@ export const InputPasswordCases = forwardRef<HTMLKolInputPasswordElement, Compon
|
|
|
31
29
|
}}
|
|
32
30
|
_touched
|
|
33
31
|
/>
|
|
32
|
+
<KolInputPassword {...props} _placeholder="Placeholder" _msg={{ _type: 'info', _description: 'Just a hint' }} _label="Password" />
|
|
33
|
+
<KolInputPassword {...props} _placeholder="Placeholder" _msg={{ _type: 'warning', _description: 'Small warning' }} _label="Password" />
|
|
34
|
+
<KolInputPassword {...props} _placeholder="Placeholder" _msg={{ _type: 'success', _description: 'Success message' }} _label="Password" />
|
|
35
|
+
<KolInputPassword {...props} _disabled _msg={{ _type: 'error', _description: ERROR_MSG }} _label="Passwort (Disabled)" _touched />
|
|
36
|
+
<KolInputPassword {...props} _readOnly _label="Passwort (Readonly)" />
|
|
34
37
|
<KolInputPassword {...props} ref={ref} _shortKey="c" _label="With access key" />
|
|
35
38
|
<KolInputPassword {...props} ref={ref} _shortKey="s" _label="With short key" />
|
|
36
39
|
</div>
|
|
@@ -3,9 +3,10 @@ import React, { forwardRef } from 'react';
|
|
|
3
3
|
import { InputPasswordCases } from './cases';
|
|
4
4
|
|
|
5
5
|
import type { Components } from '@public-ui/components';
|
|
6
|
+
import { SampleColumns } from '../../SampleColumns';
|
|
6
7
|
export const InputPasswordVariants = forwardRef<HTMLKolInputPasswordElement, Components.KolInputPassword>(function InputPasswordVariant(props, ref) {
|
|
7
8
|
return (
|
|
8
|
-
<
|
|
9
|
+
<SampleColumns>
|
|
9
10
|
<fieldset>
|
|
10
11
|
<legend>Password</legend>
|
|
11
12
|
<InputPasswordCases {...props} />
|
|
@@ -14,6 +15,6 @@ export const InputPasswordVariants = forwardRef<HTMLKolInputPasswordElement, Com
|
|
|
14
15
|
<legend>Password (hideLabel)</legend>
|
|
15
16
|
<InputPasswordCases ref={ref} {...props} _hideLabel />
|
|
16
17
|
</fieldset>
|
|
17
|
-
</
|
|
18
|
+
</SampleColumns>
|
|
18
19
|
);
|
|
19
20
|
});
|
|
@@ -3,17 +3,20 @@ import React, { forwardRef } from 'react';
|
|
|
3
3
|
import { InputRadioCases } from './cases';
|
|
4
4
|
|
|
5
5
|
import type { Components } from '@public-ui/components';
|
|
6
|
+
import { SampleColumns } from '../../SampleColumns';
|
|
7
|
+
import { KolHeading } from '@public-ui/react';
|
|
8
|
+
|
|
6
9
|
export const InputRadioVariants = forwardRef<HTMLKolInputRadioElement, Components.KolInputRadio>(function InputRadioVariant(props, ref) {
|
|
7
10
|
return (
|
|
8
|
-
<
|
|
9
|
-
<
|
|
10
|
-
<
|
|
11
|
+
<SampleColumns>
|
|
12
|
+
<div className="border border-solid border-dark-100 p-3">
|
|
13
|
+
<KolHeading _level={2} _label="Radio" className="block mb-2" />
|
|
11
14
|
<InputRadioCases {...props} />
|
|
12
|
-
</
|
|
13
|
-
<
|
|
14
|
-
<
|
|
15
|
+
</div>
|
|
16
|
+
<div className="border border-solid border-dark-100 p-3">
|
|
17
|
+
<KolHeading _level={2} _label="Radio (hideLabel)" className="block mb-2" />
|
|
15
18
|
<InputRadioCases ref={ref} {...props} _hideLabel />
|
|
16
|
-
</
|
|
17
|
-
</
|
|
19
|
+
</div>
|
|
20
|
+
</SampleColumns>
|
|
18
21
|
);
|
|
19
22
|
});
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import React, { forwardRef } from 'react';
|
|
2
|
-
|
|
3
2
|
import { KolInputRange } from '@public-ui/react';
|
|
3
|
+
import type { Components } from '@public-ui/components';
|
|
4
4
|
|
|
5
|
-
import { ERROR_MSG } from '../../../shares/constants';
|
|
5
|
+
import { ERROR_MSG, HINT_MSG } from '../../../shares/constants';
|
|
6
6
|
|
|
7
|
-
import type { Components } from '@public-ui/components';
|
|
8
7
|
export const InputRangeCases = forwardRef<HTMLKolInputRangeElement, Components.KolInputRange>(function InputRangeCases(props, ref) {
|
|
9
8
|
return (
|
|
10
9
|
<div className="grid gap-4">
|
|
@@ -33,10 +32,14 @@ export const InputRangeCases = forwardRef<HTMLKolInputRangeElement, Components.K
|
|
|
33
32
|
_min={0}
|
|
34
33
|
_max={50}
|
|
35
34
|
_step={10}
|
|
35
|
+
_hint={HINT_MSG}
|
|
36
36
|
_msg={{ _type: 'error', _description: ERROR_MSG }}
|
|
37
37
|
_label="Slider with error"
|
|
38
38
|
_touched
|
|
39
39
|
/>
|
|
40
|
+
<KolInputRange {...props} _msg={{ _type: 'info', _description: 'Just a hint' }} _label="Slider" />
|
|
41
|
+
<KolInputRange {...props} _msg={{ _type: 'warning', _description: 'Small warning' }} _label="Slider" />
|
|
42
|
+
<KolInputRange {...props} _msg={{ _type: 'success', _description: 'Success message' }} _label="Slider" />
|
|
40
43
|
<KolInputRange {...props} _disabled _min={0} _max={50} _label="Slider (disabled)" />
|
|
41
44
|
<KolInputRange {...props} _min={0} _max={50} _label="With access key" _accessKey="c" />
|
|
42
45
|
<KolInputRange {...props} _min={0} _max={50} _label="With short key" _shortKey="s" />
|