@public-ui/sample-react 3.0.0-rc.3 → 3.0.0-rc.5
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/1068.js +1 -1
- package/dist/1219.js +1 -1
- package/dist/136.js +1 -1
- package/dist/1416.js +1 -1
- package/dist/1676.js +1 -1
- package/dist/1718.js +1 -1
- package/dist/1744.js +1 -1
- package/dist/1791.js +1 -1
- package/dist/2078.js +1 -1
- package/dist/2115.js +1 -1
- package/dist/2195.js +1 -1
- package/dist/3021.js +1 -1
- package/dist/3027.js +1 -1
- package/dist/3186.js +1 -1
- package/dist/364.js +1 -1
- package/dist/3758.js +1 -1
- package/dist/3836.js +1 -1
- package/dist/3872.js +1 -1
- package/dist/3879.js +1 -1
- package/dist/{1714.js → 3926.js} +2 -2
- package/dist/3949.js +1 -1
- package/dist/4211.js +1 -1
- package/dist/4350.js +1 -1
- package/dist/4390.js +1 -1
- package/dist/4566.js +1 -1
- package/dist/4662.js +1 -1
- package/dist/4928.js +1 -1
- package/dist/5000.js +1 -1
- package/dist/5138.js +2 -0
- package/dist/5151.js +1 -1
- package/dist/5171.js +1 -1
- package/dist/5718.js +2 -0
- package/dist/5781.js +2 -0
- package/dist/5876.js +1 -1
- package/dist/597.js +1 -1
- package/dist/6451.js +1 -1
- package/dist/6480.js +1 -1
- package/dist/6577.js +1 -1
- package/dist/6983.js +1 -1
- package/dist/7084.js +1 -1
- package/dist/7225.js +1 -1
- package/dist/7267.js +1 -1
- package/dist/7958.js +1 -1
- package/dist/7997.js +1 -1
- package/dist/8069.js +1 -1
- package/dist/8177.js +1 -1
- package/dist/8212.js +1 -1
- package/dist/8243.js +1 -1
- package/dist/8283.js +1 -1
- package/dist/8478.js +1 -1
- package/dist/851.js +1 -1
- package/dist/8573.js +1 -1
- package/dist/8728.js +1 -1
- package/dist/8808.js +1 -1
- package/dist/8999.js +1 -1
- package/dist/9068.js +1 -1
- package/dist/9130.js +1 -1
- package/dist/9162.js +1 -1
- package/dist/9219.js +1 -1
- package/dist/9423.js +1 -1
- package/dist/9430.js +1 -1
- package/dist/9929.js +1 -1
- package/dist/993.js +1 -1
- package/dist/index.html +0 -8
- package/dist/main.js +1 -1
- package/package.json +7 -5
- package/public/index.html +0 -8
- package/src/components/SampleColumns.tsx +10 -0
- package/src/components/combobox/partials/variants.tsx +3 -2
- package/src/components/form/error-list.tsx +39 -11
- package/src/components/handout/basic.tsx +1 -1
- package/src/components/input-checkbox/partials/variants.tsx +5 -4
- package/src/components/input-color/partials/variants.tsx +3 -2
- package/src/components/input-date/partials/variants.tsx +3 -2
- package/src/components/input-date/show-hide-msg.tsx +1 -1
- package/src/components/input-email/partials/variants.tsx +3 -2
- 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/variants.tsx +3 -2
- package/src/components/input-radio/partials/variants.tsx +3 -2
- 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/variants.tsx +3 -2
- package/src/components/input-text/routes.ts +2 -2
- package/src/components/modal/basic.tsx +28 -12
- package/src/components/select/partials/variants.tsx +3 -2
- package/src/components/single-select/partials/variants.tsx +3 -2
- package/src/components/table/column-alignment.tsx +4 -0
- package/src/components/table/complex-headers.tsx +1 -0
- package/src/components/table/interactive-child-elements.tsx +2 -0
- package/src/components/table/multi-sort.tsx +2 -0
- package/src/components/table/pagination-position.tsx +3 -0
- package/src/components/table/render-cell.tsx +1 -1
- package/src/components/table/sort-data.tsx +2 -2
- package/src/components/table/stateful-with-selection.tsx +1 -0
- package/src/components/table/stateful-with-single-selection.tsx +1 -0
- package/src/components/table/stateless-with-selection.tsx +1 -0
- package/src/components/table/stateless-with-single-selection.tsx +1 -0
- package/src/components/table/stateless.tsx +1 -0
- package/src/components/table/with-footer.tsx +1 -0
- package/src/components/table/with-pagination.tsx +1 -1
- package/src/components/textarea/partials/variants.tsx +3 -2
- package/src/react.main.tsx +2 -1
- package/src/scenarios/input-group-with-error.tsx +4 -4
- package/dist/1055.js +0 -2
- package/dist/1657.js +0 -2
- package/dist/5792.js +0 -2
- package/dist/6018.js +0 -2
- package/dist/6018.js.LICENSE.txt +0 -3
- package/dist/6203.js +0 -2
- package/dist/6203.js.LICENSE.txt +0 -3
- 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/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/dist/{1055.js.LICENSE.txt → 3926.js.LICENSE.txt} +0 -0
- /package/dist/{1657.js.LICENSE.txt → 5138.js.LICENSE.txt} +0 -0
- /package/dist/{1714.js.LICENSE.txt → 5718.js.LICENSE.txt} +0 -0
- /package/dist/{5792.js.LICENSE.txt → 5781.js.LICENSE.txt} +0 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@public-ui/sample-react",
|
|
3
|
-
"version": "3.0.0-rc.
|
|
3
|
+
"version": "3.0.0-rc.5",
|
|
4
4
|
"description": "This app contains samples for the KoliBri/Public UI",
|
|
5
5
|
"license": "EUPL-1.2",
|
|
6
6
|
"repository": {
|
|
@@ -56,9 +56,10 @@
|
|
|
56
56
|
"webpack-dev-server": "5.2.0",
|
|
57
57
|
"world_countries_lists": "2.9.0",
|
|
58
58
|
"yup": "1.5.0",
|
|
59
|
-
"@public-ui
|
|
60
|
-
"@public-ui/components": "3.0.0-rc.
|
|
61
|
-
"@public-ui/
|
|
59
|
+
"@public-ui-/theme-ecl": "2.1.3",
|
|
60
|
+
"@public-ui/components": "3.0.0-rc.5",
|
|
61
|
+
"@public-ui/react": "3.0.0-rc.5",
|
|
62
|
+
"@public-ui/theme-default": "3.0.0-rc.5"
|
|
62
63
|
},
|
|
63
64
|
"files": [
|
|
64
65
|
".eslintignore",
|
|
@@ -75,13 +76,14 @@
|
|
|
75
76
|
"webpack.config.js"
|
|
76
77
|
],
|
|
77
78
|
"scripts": {
|
|
79
|
+
"prebuild": "pnpm -r --filter=@public-ui/theme-* --filter @public-ui-/theme-* build",
|
|
78
80
|
"build": "rimraf dist && cross-env NODE_ENV=production webpack",
|
|
79
81
|
"build:deps": "pnpm --filter @public-ui/sample-react^... build",
|
|
80
82
|
"format": "prettier --check src",
|
|
81
83
|
"lint": "tsc --noemit && eslint \"{src,tests,e2e}/**/*.{html,js,json,jsx,ts,tsx,gql,graphql}\"",
|
|
82
84
|
"postinstall": "pnpm exec playwright install",
|
|
83
85
|
"prepare:components-assets": "cpy \"node_modules/@public-ui/components/assets/**/*\" public/assets --dot",
|
|
84
|
-
"prepare:themes-assets": "cpy \"node_modules/@public-ui/
|
|
86
|
+
"prepare:themes-assets": "cpy \"node_modules/@public-ui/theme-default/assets/**/*\" public/assets --dot",
|
|
85
87
|
"serve": "cross-env NODE_ENV=development webpack serve --devtool=source-map",
|
|
86
88
|
"start": "npm run serve -- --open",
|
|
87
89
|
"test": "pnpm test:e2e",
|
package/public/index.html
CHANGED
|
@@ -7,14 +7,6 @@
|
|
|
7
7
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
8
8
|
<link rel="shortcut icon" type="image/x-icon" href="assets/kolibri.ico" />
|
|
9
9
|
<link rel="stylesheet" href="assets/codicons/codicon.css" />
|
|
10
|
-
<link rel="stylesheet" href="assets/fontawesome-free/css/all.min.css" />
|
|
11
|
-
<link rel="stylesheet" href="assets/icofont/icofont.min.css" />
|
|
12
|
-
<link rel="stylesheet" href="assets/kreon/style.css" />
|
|
13
|
-
<link rel="stylesheet" href="assets/noto-sans/noto-sans.css" />
|
|
14
|
-
<link rel="stylesheet" href="assets/material-icons/iconfont/material-icons.css" />
|
|
15
|
-
<link rel="stylesheet" href="assets/material-symbols/index.css" />
|
|
16
|
-
<link rel="stylesheet" href="assets/roboto/roboto.css" />
|
|
17
|
-
<link rel="stylesheet" href="assets/tabler-icons/tabler-icons.css" />
|
|
18
10
|
<link rel="stylesheet" href="main.css" />
|
|
19
11
|
<meta name="robots" content="noindex" />
|
|
20
12
|
<meta name="kolibri" content="dev-mode=false;experimental-mode=true;" />
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { type PropsWithChildren } from 'react';
|
|
3
|
+
import { useSearchParams } from 'react-router-dom';
|
|
4
|
+
|
|
5
|
+
export function SampleColumns({ children }: PropsWithChildren) {
|
|
6
|
+
const [searchParams] = useSearchParams();
|
|
7
|
+
const noColumns = searchParams.has('noColumns');
|
|
8
|
+
|
|
9
|
+
return <div className={noColumns ? '' : 'grid md:grid-cols-2 gap-4'}>{children}</div>;
|
|
10
|
+
}
|
|
@@ -2,10 +2,11 @@ import React from 'react';
|
|
|
2
2
|
import type { Components } from '@public-ui/components';
|
|
3
3
|
|
|
4
4
|
import { ComboboxCases } from './cases';
|
|
5
|
+
import { SampleColumns } from '../../SampleColumns';
|
|
5
6
|
|
|
6
7
|
export const ComboboxVariants = (props: Partial<Components.KolCombobox>) => {
|
|
7
8
|
return (
|
|
8
|
-
<
|
|
9
|
+
<SampleColumns>
|
|
9
10
|
<fieldset>
|
|
10
11
|
<legend>Text</legend>
|
|
11
12
|
<ComboboxCases {...props} />
|
|
@@ -14,6 +15,6 @@ export const ComboboxVariants = (props: Partial<Components.KolCombobox>) => {
|
|
|
14
15
|
<legend>Text (hideLabel)</legend>
|
|
15
16
|
<ComboboxCases {...props} _hideLabel />
|
|
16
17
|
</fieldset>
|
|
17
|
-
</
|
|
18
|
+
</SampleColumns>
|
|
18
19
|
);
|
|
19
20
|
};
|
|
@@ -1,10 +1,22 @@
|
|
|
1
1
|
import { KolButton, KolForm, KolInputText } from '@public-ui/react';
|
|
2
2
|
import type { FC } from 'react';
|
|
3
|
-
import React, { useRef } from 'react';
|
|
3
|
+
import React, { useEffect, useRef } from 'react';
|
|
4
4
|
import { SampleDescription } from '../SampleDescription';
|
|
5
5
|
|
|
6
6
|
export const FormErrorList: FC = () => {
|
|
7
7
|
const formRef = useRef<HTMLKolFormElement | null>(null);
|
|
8
|
+
|
|
9
|
+
const scrollTo = () => {
|
|
10
|
+
formRef.current?.focusErrorList();
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* Simulate the form submission
|
|
15
|
+
*/
|
|
16
|
+
useEffect(() => {
|
|
17
|
+
formRef.current?.focusErrorList();
|
|
18
|
+
}, []);
|
|
19
|
+
|
|
8
20
|
return (
|
|
9
21
|
<>
|
|
10
22
|
<SampleDescription>
|
|
@@ -14,26 +26,42 @@ export const FormErrorList: FC = () => {
|
|
|
14
26
|
<KolForm
|
|
15
27
|
className="w-full"
|
|
16
28
|
ref={formRef}
|
|
29
|
+
_on={{
|
|
30
|
+
onSubmit: scrollTo,
|
|
31
|
+
}}
|
|
17
32
|
_errorList={[
|
|
18
33
|
{
|
|
19
34
|
message: 'Error in Input 2',
|
|
20
35
|
selector: '#input2',
|
|
21
36
|
},
|
|
37
|
+
{
|
|
38
|
+
message: 'Error in Input 3',
|
|
39
|
+
selector: () => alert('Error in Input 3'),
|
|
40
|
+
},
|
|
22
41
|
]}
|
|
23
42
|
>
|
|
24
43
|
<div className="grid gap-2">
|
|
25
44
|
<KolInputText id="input1" _label="Input 1" />
|
|
26
|
-
<KolInputText
|
|
27
|
-
|
|
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
|
+
/>
|
|
28
63
|
<div>
|
|
29
|
-
<KolButton
|
|
30
|
-
_label="ScrollTo"
|
|
31
|
-
_on={{
|
|
32
|
-
onClick: () => {
|
|
33
|
-
formRef.current?.focusErrorList();
|
|
34
|
-
},
|
|
35
|
-
}}
|
|
36
|
-
/>
|
|
64
|
+
<KolButton _label="ScrollTo" _type="submit" />
|
|
37
65
|
</div>
|
|
38
66
|
</div>
|
|
39
67
|
</KolForm>
|
|
@@ -471,7 +471,7 @@ export const HandoutBasic: FC = () => {
|
|
|
471
471
|
</KolCard>
|
|
472
472
|
<KolCard className="col-span-6 sm:col-span-6 md:col-span-4 xl:col-span-5" _label="Table with Pagination" _level={2}>
|
|
473
473
|
<div slot="" className="grid gap-2 p-2">
|
|
474
|
-
<KolTableStateful _label="Table" _headers={TABLE_HEADERS} _data={TABLE_DATA} _pagination></KolTableStateful>
|
|
474
|
+
<KolTableStateful _label="Table" _minWidth="auto" _headers={TABLE_HEADERS} _data={TABLE_DATA} _pagination></KolTableStateful>
|
|
475
475
|
</div>
|
|
476
476
|
</KolCard>
|
|
477
477
|
</div>
|
|
@@ -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
|
});
|
|
@@ -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
|
});
|
|
@@ -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} />
|
|
@@ -19,6 +20,6 @@ export const InputDateVariants = forwardRef<HTMLKolInputDateElement, Components.
|
|
|
19
20
|
<legend>Date (with min/max)</legend>
|
|
20
21
|
<InputDateMinMaxCases {...props} />
|
|
21
22
|
</fieldset>
|
|
22
|
-
</
|
|
23
|
+
</SampleColumns>
|
|
23
24
|
);
|
|
24
25
|
});
|
|
@@ -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,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
|
});
|
|
@@ -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,9 +3,10 @@ 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';
|
|
6
7
|
export const InputRadioVariants = forwardRef<HTMLKolInputRadioElement, Components.KolInputRadio>(function InputRadioVariant(props, ref) {
|
|
7
8
|
return (
|
|
8
|
-
<
|
|
9
|
+
<SampleColumns>
|
|
9
10
|
<fieldset>
|
|
10
11
|
<legend>Radio</legend>
|
|
11
12
|
<InputRadioCases {...props} />
|
|
@@ -14,6 +15,6 @@ export const InputRadioVariants = forwardRef<HTMLKolInputRadioElement, Component
|
|
|
14
15
|
<legend>Radio (hideLabel)</legend>
|
|
15
16
|
<InputRadioCases 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 { InputRangeCases } from './cases';
|
|
4
4
|
|
|
5
5
|
import type { Components } from '@public-ui/components';
|
|
6
|
+
import { SampleColumns } from '../../SampleColumns';
|
|
6
7
|
export const InputRangeVariants = forwardRef<HTMLKolInputRangeElement, Components.KolInputRange>(function InputRangeVariant(props, ref) {
|
|
7
8
|
return (
|
|
8
|
-
<
|
|
9
|
+
<SampleColumns>
|
|
9
10
|
<fieldset>
|
|
10
11
|
<legend>Range</legend>
|
|
11
12
|
<InputRangeCases {...props} />
|
|
@@ -14,6 +15,6 @@ export const InputRangeVariants = forwardRef<HTMLKolInputRangeElement, Component
|
|
|
14
15
|
<legend>Range (hideLabel)</legend>
|
|
15
16
|
<InputRangeCases ref={ref} {...props} _hideLabel />
|
|
16
17
|
</fieldset>
|
|
17
|
-
</
|
|
18
|
+
</SampleColumns>
|
|
18
19
|
);
|
|
19
20
|
});
|
|
@@ -3,12 +3,12 @@ import type { FC } from 'react';
|
|
|
3
3
|
import React from 'react';
|
|
4
4
|
import { SampleDescription } from '../SampleDescription';
|
|
5
5
|
|
|
6
|
-
export const
|
|
6
|
+
export const InputTextHideMsg: FC = () => (
|
|
7
7
|
<div className="grid gap-4">
|
|
8
8
|
<SampleDescription>
|
|
9
9
|
<p>
|
|
10
|
-
This sample shows the <code>
|
|
11
|
-
|
|
10
|
+
This sample shows the <code>_hideMsg</code> feature for KolInputText. It allows to hide the message from an input field and can be used, when the
|
|
11
|
+
message (e.g. error) is already shown somewhere else, e.g. for a group of inputs.
|
|
12
12
|
</p>
|
|
13
13
|
</SampleDescription>
|
|
14
14
|
|
|
@@ -21,8 +21,8 @@ export const InputTextHideErrors: FC = () => (
|
|
|
21
21
|
<KolAlert className="col-span-2" _level={0} _type="error">
|
|
22
22
|
This is a combined error message
|
|
23
23
|
</KolAlert>
|
|
24
|
-
<KolInputText _msg={{ _type: 'error', _description: 'This is a combined error message' }}
|
|
25
|
-
<KolInputText _msg={{ _type: 'error', _description: 'This is a combined error message' }}
|
|
24
|
+
<KolInputText _msg={{ _type: 'error', _description: 'This is a combined error message' }} _hideMsg _label="First input" _touched />
|
|
25
|
+
<KolInputText _msg={{ _type: 'error', _description: 'This is a combined error message' }} _hideMsg _label="Second input with error" _touched />
|
|
26
26
|
</fieldset>
|
|
27
27
|
</KolCard>
|
|
28
28
|
</div>
|
|
@@ -3,9 +3,10 @@ import React, { forwardRef } from 'react';
|
|
|
3
3
|
import { InputTextCases } from './cases';
|
|
4
4
|
|
|
5
5
|
import type { Components } from '@public-ui/components';
|
|
6
|
+
import { SampleColumns } from '../../SampleColumns';
|
|
6
7
|
export const InputTextVariants = forwardRef<HTMLKolInputTextElement, Components.KolInputText>(function InputTextVariant(props, ref) {
|
|
7
8
|
return (
|
|
8
|
-
<
|
|
9
|
+
<SampleColumns>
|
|
9
10
|
<fieldset>
|
|
10
11
|
<legend>Text</legend>
|
|
11
12
|
<InputTextCases {...props} />
|
|
@@ -14,6 +15,6 @@ export const InputTextVariants = forwardRef<HTMLKolInputTextElement, Components.
|
|
|
14
15
|
<legend>Text (hideLabel)</legend>
|
|
15
16
|
<InputTextCases ref={ref} {...props} _hideLabel />
|
|
16
17
|
</fieldset>
|
|
17
|
-
</
|
|
18
|
+
</SampleColumns>
|
|
18
19
|
);
|
|
19
20
|
});
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Routes } from '../../shares/types';
|
|
2
2
|
import { InputTextBasic } from './basic';
|
|
3
|
-
import {
|
|
3
|
+
import { InputTextHideMsg } from './hide-msg';
|
|
4
4
|
import { InputTextFormatterDemo } from './text-formatter';
|
|
5
5
|
import { InputTextSmartButton } from './smart-button';
|
|
6
6
|
import { InputTextExpertSlot } from './expert-slot';
|
|
@@ -8,7 +8,7 @@ import { InputTextExpertSlot } from './expert-slot';
|
|
|
8
8
|
export const INPUT_TEXT_ROUTES: Routes = {
|
|
9
9
|
'input-text': {
|
|
10
10
|
basic: InputTextBasic,
|
|
11
|
-
'hide-
|
|
11
|
+
'hide-msg': InputTextHideMsg,
|
|
12
12
|
'text-formatter': InputTextFormatterDemo,
|
|
13
13
|
'smart-button': InputTextSmartButton,
|
|
14
14
|
'expert-slot': InputTextExpertSlot,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { FC } from 'react';
|
|
2
|
-
import React, { useEffect, useRef } from 'react';
|
|
2
|
+
import React, { useEffect, useRef, useState } from 'react';
|
|
3
3
|
import { useSearchParams } from 'react-router-dom';
|
|
4
4
|
|
|
5
5
|
import { KolButton, KolCard, KolModal } from '@public-ui/react';
|
|
@@ -8,14 +8,18 @@ import { SampleDescription } from '../SampleDescription';
|
|
|
8
8
|
export const ModalBasic: FC = () => {
|
|
9
9
|
const [searchParams] = useSearchParams();
|
|
10
10
|
const modalState = searchParams.get('show-modal') as string;
|
|
11
|
+
const defaultVariant = searchParams.get('variant') as string;
|
|
11
12
|
const modalElement = useRef<HTMLKolModalElement>(null);
|
|
12
13
|
const stackedModalElement = useRef<HTMLKolModalElement>(null);
|
|
13
|
-
|
|
14
|
+
const [variant, setVariant] = useState<'card' | 'blank'>('blank');
|
|
14
15
|
useEffect(() => {
|
|
15
16
|
if (modalState === 'true') {
|
|
16
17
|
modalElement.current?.openModal();
|
|
17
18
|
}
|
|
18
|
-
|
|
19
|
+
if (defaultVariant === 'card') {
|
|
20
|
+
setVariant(defaultVariant);
|
|
21
|
+
}
|
|
22
|
+
}, [modalState, defaultVariant]);
|
|
19
23
|
|
|
20
24
|
return (
|
|
21
25
|
<>
|
|
@@ -27,7 +31,7 @@ export const ModalBasic: FC = () => {
|
|
|
27
31
|
</SampleDescription>
|
|
28
32
|
|
|
29
33
|
<div className="flex">
|
|
30
|
-
<KolModal _label="Primary modal" _width="80%" ref={modalElement} _on={{ onClose: () => console.log('Modal closed') }}>
|
|
34
|
+
<KolModal _label="Primary modal" _width="80%" ref={modalElement} _on={{ onClose: () => console.log('Modal closed') }} _variant={variant}>
|
|
31
35
|
<KolCard _label="I am a modal.">
|
|
32
36
|
<KolButton
|
|
33
37
|
_label="Open stacked modal"
|
|
@@ -62,15 +66,27 @@ export const ModalBasic: FC = () => {
|
|
|
62
66
|
/>
|
|
63
67
|
</KolCard>
|
|
64
68
|
</KolModal>
|
|
69
|
+
<div className="grid gap-4">
|
|
70
|
+
<KolButton
|
|
71
|
+
_label="Open modal"
|
|
72
|
+
_on={{
|
|
73
|
+
onClick: () => {
|
|
74
|
+
setVariant('blank');
|
|
75
|
+
modalElement.current?.openModal();
|
|
76
|
+
},
|
|
77
|
+
}}
|
|
78
|
+
/>
|
|
65
79
|
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
80
|
+
<KolButton
|
|
81
|
+
_label="Open card modal"
|
|
82
|
+
_on={{
|
|
83
|
+
onClick: () => {
|
|
84
|
+
setVariant('card');
|
|
85
|
+
modalElement.current?.openModal();
|
|
86
|
+
},
|
|
87
|
+
}}
|
|
88
|
+
/>
|
|
89
|
+
</div>
|
|
74
90
|
</div>
|
|
75
91
|
</>
|
|
76
92
|
);
|
|
@@ -3,9 +3,10 @@ import React, { forwardRef } from 'react';
|
|
|
3
3
|
import { SelectCases } from './cases';
|
|
4
4
|
|
|
5
5
|
import type { Components } from '@public-ui/components';
|
|
6
|
+
import { SampleColumns } from '../../SampleColumns';
|
|
6
7
|
export const SelectVariants = forwardRef<HTMLKolSelectElement, Components.KolSelect>(function SelectVariant(props, ref) {
|
|
7
8
|
return (
|
|
8
|
-
<
|
|
9
|
+
<SampleColumns>
|
|
9
10
|
<fieldset>
|
|
10
11
|
<legend>Text</legend>
|
|
11
12
|
<SelectCases {...props} />
|
|
@@ -14,6 +15,6 @@ export const SelectVariants = forwardRef<HTMLKolSelectElement, Components.KolSel
|
|
|
14
15
|
<legend>Text (hideLabel)</legend>
|
|
15
16
|
<SelectCases ref={ref} {...props} _hideLabel />
|
|
16
17
|
</fieldset>
|
|
17
|
-
</
|
|
18
|
+
</SampleColumns>
|
|
18
19
|
);
|
|
19
20
|
});
|
|
@@ -2,10 +2,11 @@ import React from 'react';
|
|
|
2
2
|
|
|
3
3
|
import { SingleSelectCases } from './cases';
|
|
4
4
|
import type { Components } from '@public-ui/components';
|
|
5
|
+
import { SampleColumns } from '../../SampleColumns';
|
|
5
6
|
|
|
6
7
|
export const SingleSelectVariants = (props: Components.KolSingleSelect) => {
|
|
7
8
|
return (
|
|
8
|
-
<
|
|
9
|
+
<SampleColumns>
|
|
9
10
|
<fieldset>
|
|
10
11
|
<legend>Text</legend>
|
|
11
12
|
<SingleSelectCases {...props} />
|
|
@@ -14,6 +15,6 @@ export const SingleSelectVariants = (props: Components.KolSingleSelect) => {
|
|
|
14
15
|
<legend>Text (hideLabel)</legend>
|
|
15
16
|
<SingleSelectCases {...props} _hideLabel />
|
|
16
17
|
</fieldset>
|
|
17
|
-
</
|
|
18
|
+
</SampleColumns>
|
|
18
19
|
);
|
|
19
20
|
};
|
|
@@ -18,6 +18,7 @@ export const TableColumnAlignment: FC = () => (
|
|
|
18
18
|
<KolHeading _label="Simple table" _level={3}></KolHeading>
|
|
19
19
|
<KolTableStateful
|
|
20
20
|
_label="Table for demonstration purposes with different text align properties"
|
|
21
|
+
_minWidth="auto"
|
|
21
22
|
_headers={{
|
|
22
23
|
horizontal: [
|
|
23
24
|
[
|
|
@@ -35,6 +36,7 @@ export const TableColumnAlignment: FC = () => (
|
|
|
35
36
|
<KolHeading _label="Table with sortable columns" _level={3} className="block mt-6"></KolHeading>
|
|
36
37
|
<KolTableStateful
|
|
37
38
|
_label="Table for demonstration purposes with sortable columns"
|
|
39
|
+
_minWidth="auto"
|
|
38
40
|
_headers={{
|
|
39
41
|
horizontal: [
|
|
40
42
|
[
|
|
@@ -52,6 +54,7 @@ export const TableColumnAlignment: FC = () => (
|
|
|
52
54
|
<KolHeading _label="Table some sortable columns" _level={3} className="block mt-6"></KolHeading>
|
|
53
55
|
<KolTableStateful
|
|
54
56
|
_label="Table for demonstration purposes with some but not all columns sortable"
|
|
57
|
+
_minWidth="auto"
|
|
55
58
|
_headers={{
|
|
56
59
|
horizontal: [
|
|
57
60
|
[
|
|
@@ -69,6 +72,7 @@ export const TableColumnAlignment: FC = () => (
|
|
|
69
72
|
<KolHeading _label="Table with vertical heading" _level={3} className="block mt-6"></KolHeading>
|
|
70
73
|
<KolTableStateful
|
|
71
74
|
_label="Table for demonstration purposes with vertical heading"
|
|
75
|
+
_minWidth="auto"
|
|
72
76
|
_headers={{
|
|
73
77
|
horizontal: [
|
|
74
78
|
[
|
|
@@ -46,6 +46,7 @@ export const InteractiveChildElements: FC = () => (
|
|
|
46
46
|
<section className="w-full flex flex-col">
|
|
47
47
|
<KolTableStateless
|
|
48
48
|
_label="Button styles"
|
|
49
|
+
_minWidth="auto"
|
|
49
50
|
_headerCells={{
|
|
50
51
|
horizontal: [
|
|
51
52
|
[
|
|
@@ -79,6 +80,7 @@ export const InteractiveChildElements: FC = () => (
|
|
|
79
80
|
|
|
80
81
|
<KolTableStateless
|
|
81
82
|
_label="Link styles"
|
|
83
|
+
_minWidth="auto"
|
|
82
84
|
_headerCells={{
|
|
83
85
|
horizontal: [
|
|
84
86
|
[
|
|
@@ -88,6 +88,7 @@ export const MultiSortTable: FC = () => {
|
|
|
88
88
|
></KolInputCheckbox>
|
|
89
89
|
<KolTableStateful
|
|
90
90
|
_label="Sort Table with Order and Date"
|
|
91
|
+
_minWidth="auto"
|
|
91
92
|
_data={DATA.slice(0, 10)}
|
|
92
93
|
_headers={HEADERS_VERTICAL}
|
|
93
94
|
className="block"
|
|
@@ -104,6 +105,7 @@ export const MultiSortTable: FC = () => {
|
|
|
104
105
|
></KolInputCheckbox>
|
|
105
106
|
<KolTableStateful
|
|
106
107
|
_label="Sort Table with Order and Date"
|
|
108
|
+
_minWidth="auto"
|
|
107
109
|
_data={DATA}
|
|
108
110
|
_headers={HEADERS_HORIZONTAL}
|
|
109
111
|
className="block"
|