@public-ui/sample-react 3.0.0-rc.2 → 3.0.0-rc.4
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/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/{3241.js → 4989.js} +2 -2
- package/dist/5000.js +1 -1
- package/dist/5151.js +1 -1
- package/dist/5171.js +1 -1
- package/dist/5876.js +1 -1
- package/dist/597.js +1 -1
- package/dist/6368.js +2 -0
- package/dist/6420.js +2 -0
- 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/9244.js +2 -0
- package/dist/9296.js +2 -0
- 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/dist/main.js.LICENSE.txt +2 -2
- package/package.json +14 -12
- package/public/index.html +0 -8
- package/src/App.tsx +1 -1
- package/src/components/SampleColumns.tsx +10 -0
- package/src/components/combobox/partials/variants.tsx +3 -2
- package/src/components/drawer/basic.tsx +2 -20
- package/src/components/drawer/controlled.tsx +0 -8
- package/src/components/form/error-list.tsx +66 -24
- package/src/components/handout/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 +6 -3
- 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/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 +3 -2
- 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/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/cases.tsx +9 -4
- package/src/components/textarea/partials/variants.tsx +3 -2
- package/src/react.main.tsx +3 -2
- package/src/scenarios/input-group-with-error.tsx +4 -4
- package/src/shares/theme.ts +4 -8
- package/dist/1258.js +0 -2
- package/dist/1298.js +0 -2
- package/dist/5792.js +0 -2
- package/dist/7779.js +0 -2
- package/dist/9542.js +0 -2
- package/dist/9542.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/{1258.js.LICENSE.txt → 4989.js.LICENSE.txt} +0 -0
- /package/dist/{1298.js.LICENSE.txt → 6368.js.LICENSE.txt} +0 -0
- /package/dist/{3241.js.LICENSE.txt → 6420.js.LICENSE.txt} +0 -0
- /package/dist/{5792.js.LICENSE.txt → 9244.js.LICENSE.txt} +0 -0
- /package/dist/{7779.js.LICENSE.txt → 9296.js.LICENSE.txt} +0 -0
package/dist/main.js.LICENSE.txt
CHANGED
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
*/
|
|
34
34
|
|
|
35
35
|
/**
|
|
36
|
-
* @remix-run/router v1.21.
|
|
36
|
+
* @remix-run/router v1.21.1
|
|
37
37
|
*
|
|
38
38
|
* Copyright (c) Remix Software Inc.
|
|
39
39
|
*
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
*/
|
|
45
45
|
|
|
46
46
|
/**
|
|
47
|
-
* React Router v6.28.
|
|
47
|
+
* React Router v6.28.2
|
|
48
48
|
*
|
|
49
49
|
* Copyright (c) Remix Software Inc.
|
|
50
50
|
*
|
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.4",
|
|
4
4
|
"description": "This app contains samples for the KoliBri/Public UI",
|
|
5
5
|
"license": "EUPL-1.2",
|
|
6
6
|
"repository": {
|
|
@@ -16,8 +16,8 @@
|
|
|
16
16
|
"@types/node": "ts5.7",
|
|
17
17
|
"@types/react": "18.3.4",
|
|
18
18
|
"@types/react-dom": "18.3.5",
|
|
19
|
-
"@typescript-eslint/eslint-plugin": "8.18.
|
|
20
|
-
"@typescript-eslint/parser": "8.18.
|
|
19
|
+
"@typescript-eslint/eslint-plugin": "8.18.2",
|
|
20
|
+
"@typescript-eslint/parser": "8.18.2",
|
|
21
21
|
"@unocss/preset-uno": "0.58.9",
|
|
22
22
|
"@unocss/webpack": "0.58.9",
|
|
23
23
|
"adopted-style-sheets": "1.1.7",
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"eslint-plugin-html": "8.1.2",
|
|
32
32
|
"eslint-plugin-json": "^3",
|
|
33
33
|
"eslint-plugin-jsx-a11y": "6.10.2",
|
|
34
|
-
"eslint-plugin-react": "7.37.
|
|
34
|
+
"eslint-plugin-react": "7.37.4",
|
|
35
35
|
"file-loader": "6.2.0",
|
|
36
36
|
"formik": "2.4.6",
|
|
37
37
|
"knip": "5.40.0",
|
|
@@ -43,22 +43,23 @@
|
|
|
43
43
|
"prettier": "3.4.2",
|
|
44
44
|
"react": "18.3.1",
|
|
45
45
|
"react-dom": "18.3.1",
|
|
46
|
-
"react-number-format": "5.4.
|
|
47
|
-
"react-router": "6.28.
|
|
48
|
-
"react-router-dom": "6.28.
|
|
46
|
+
"react-number-format": "5.4.3",
|
|
47
|
+
"react-router": "6.28.2",
|
|
48
|
+
"react-router-dom": "6.28.2",
|
|
49
49
|
"rimraf": "6.0.1",
|
|
50
50
|
"sass-loader": "16.0.4",
|
|
51
51
|
"string-replace-loader": "3.1.0",
|
|
52
52
|
"tslib": "2.8.1",
|
|
53
|
-
"typescript": "5.7.
|
|
53
|
+
"typescript": "5.7.3",
|
|
54
54
|
"webpack": "5.97.1",
|
|
55
55
|
"webpack-cli": "5.1.4",
|
|
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/
|
|
61
|
-
"@public-ui/react": "3.0.0-rc.
|
|
59
|
+
"@public-ui-/theme-ecl": "2.1.3",
|
|
60
|
+
"@public-ui/components": "3.0.0-rc.4",
|
|
61
|
+
"@public-ui/react": "3.0.0-rc.4",
|
|
62
|
+
"@public-ui/theme-default": "3.0.0-rc.4"
|
|
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;" />
|
package/src/App.tsx
CHANGED
|
@@ -137,7 +137,7 @@ export const App: FC = () => {
|
|
|
137
137
|
)}
|
|
138
138
|
|
|
139
139
|
<main className="flex flex-col items-stretch p-4" id="route-container">
|
|
140
|
-
{!hideMenus && isDraftTheme(theme) && <KolBadge className="block mb-3" _label="
|
|
140
|
+
{!hideMenus && isDraftTheme(theme) && <KolBadge className="block mb-3" _label="In progress" _color="#db5461" />}
|
|
141
141
|
<Routes>
|
|
142
142
|
{ROUTE_TREE}
|
|
143
143
|
<Route path="*" element={<Navigate to={ROUTE_LIST[0]} replace />} />
|
|
@@ -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
|
};
|
|
@@ -14,21 +14,17 @@ export const DrawerBasic: FC = () => {
|
|
|
14
14
|
const defaultAlign = searchParams.get('align') as AlignPropType;
|
|
15
15
|
const hideMenus = useContext(HideMenusContext);
|
|
16
16
|
const drawerElement = useRef<HTMLKolDrawerElement>(null);
|
|
17
|
-
const drawerModalElement = useRef<HTMLKolDrawerElement>(null);
|
|
18
17
|
const [align, setAlign] = useState<AlignPropType>(defaultAlign || 'left');
|
|
19
18
|
useEffect(() => {
|
|
20
19
|
if (defaultAlign) {
|
|
21
|
-
|
|
20
|
+
drawerElement.current?.open();
|
|
22
21
|
}
|
|
23
22
|
}, [defaultAlign]);
|
|
24
23
|
return (
|
|
25
24
|
<>
|
|
26
25
|
{!hideMenus && <KolBadge className="block mb-3" _label="Component is a DRAFT - Don't use in production yet." _color="#db5461" />}
|
|
27
26
|
<SampleDescription>
|
|
28
|
-
<p>
|
|
29
|
-
KolDrawer shows a dialog attached to one of the sides of the viewport, when opened. This sample illustrates the four alignments and the modal- and
|
|
30
|
-
non-modal modes.
|
|
31
|
-
</p>
|
|
27
|
+
<p>KolDrawer shows a dialog attached to one of the sides of the viewport, when opened. This sample illustrates the four alignments.</p>
|
|
32
28
|
</SampleDescription>
|
|
33
29
|
|
|
34
30
|
<DrawerRadioAlign value={align} onChange={(_, value) => setAlign(value as AlignPropType)} />
|
|
@@ -41,20 +37,6 @@ export const DrawerBasic: FC = () => {
|
|
|
41
37
|
<KolButton _label="Close drawer" _on={{ onClick: () => drawerElement.current?.close() }} />
|
|
42
38
|
</KolDrawer>
|
|
43
39
|
<KolButton _label="Open drawer" _on={{ onClick: () => drawerElement.current?.open() }} />
|
|
44
|
-
<KolDrawer
|
|
45
|
-
ref={drawerModalElement}
|
|
46
|
-
_modal
|
|
47
|
-
_align={align}
|
|
48
|
-
_label="I am a Drawer Modal"
|
|
49
|
-
_on={{ onClose: () => console.log('Drawer Modal onClose triggered!') }}
|
|
50
|
-
>
|
|
51
|
-
<p>
|
|
52
|
-
Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
|
|
53
|
-
voluptua.
|
|
54
|
-
</p>
|
|
55
|
-
<KolButton _label="Close drawer modal" _on={{ onClick: () => drawerModalElement.current?.close() }} />
|
|
56
|
-
</KolDrawer>
|
|
57
|
-
<KolButton _label="Open drawer as modal" _on={{ onClick: () => drawerModalElement.current?.open() }} />
|
|
58
40
|
</div>
|
|
59
41
|
</>
|
|
60
42
|
);
|
|
@@ -14,7 +14,6 @@ export const DrawerControlled: FC = () => {
|
|
|
14
14
|
const defaultAlign = searchParams.get('align') as AlignPropType;
|
|
15
15
|
const hideMenus = useContext(HideMenusContext);
|
|
16
16
|
const [open, setOpen] = useState(false);
|
|
17
|
-
const [modalOpen, setModalOpen] = useState(false);
|
|
18
17
|
const [align, setAlign] = useState<AlignPropType>(defaultAlign || 'left');
|
|
19
18
|
return (
|
|
20
19
|
<div>
|
|
@@ -34,13 +33,6 @@ export const DrawerControlled: FC = () => {
|
|
|
34
33
|
</div>
|
|
35
34
|
</KolDrawer>
|
|
36
35
|
<KolButton _label="Open drawer" _on={{ onClick: () => setOpen(true) }} />
|
|
37
|
-
<KolDrawer _open={modalOpen} _modal _align={align} _label="I'm a controlled modal drawer" _on={{ onClose: () => setModalOpen(false) }}>
|
|
38
|
-
<div>
|
|
39
|
-
<p>Lorem ipsum dolor sit amet,</p>
|
|
40
|
-
<KolButton _label="Close drawer" _on={{ onClick: () => setModalOpen(false) }} />
|
|
41
|
-
</div>
|
|
42
|
-
</KolDrawer>
|
|
43
|
-
<KolButton _label="Open drawer as modal" _on={{ onClick: () => setModalOpen(true) }} />
|
|
44
36
|
</div>
|
|
45
37
|
</div>
|
|
46
38
|
);
|
|
@@ -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
|
+
};
|
|
@@ -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
|
});
|
|
@@ -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,10 +1,9 @@
|
|
|
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">
|
|
@@ -16,11 +15,15 @@ export const InputDateCases = forwardRef<HTMLKolInputDateElement, Components.Kol
|
|
|
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 />
|
|
@@ -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
|
});
|
|
@@ -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
|
});
|