@public-ui/sample-react 3.0.0-rc.1 → 3.0.0-rc.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/1006.js +2 -0
- package/dist/1114.js +2 -0
- package/dist/1752.js +2 -0
- package/dist/1932.js +2 -0
- package/dist/2069.js +2 -0
- package/dist/2212.js +2 -0
- package/dist/2231.js +2 -0
- package/dist/2321.js +2 -0
- package/dist/2596.js +2 -0
- package/dist/2827.js +2 -0
- package/dist/2894.js +2 -0
- package/dist/3099.js +2 -0
- package/dist/3151.js +2 -0
- package/dist/3203.js +2 -0
- package/dist/3540.js +2 -0
- package/dist/373.js +2 -0
- package/dist/3918.js +2 -0
- package/dist/3920.js +2 -0
- package/dist/4030.js +2 -0
- package/dist/4048.js +2 -0
- package/dist/4201.js +2 -0
- package/dist/4260.js +2 -0
- package/dist/4361.js +2 -0
- package/dist/4587.js +2 -0
- package/dist/4611.js +2 -0
- package/dist/4641.js +2 -0
- package/dist/4876.js +2 -0
- package/dist/5143.js +2 -0
- package/dist/5249.js +2 -0
- package/dist/5301.js +1 -1
- package/dist/5690.js +2 -0
- package/dist/5746.js +2 -0
- package/dist/{2450.js → 6047.js} +2 -2
- package/dist/6066.js +2 -0
- package/dist/6256.js +2 -0
- package/dist/6304.js +2 -0
- package/dist/6781.js +2 -0
- package/dist/6790.js +2 -0
- package/dist/6984.js +2 -0
- package/dist/7013.js +2 -0
- package/dist/7178.js +2 -0
- package/dist/7347.js +2 -0
- package/dist/740.js +2 -0
- package/dist/7444.js +2 -0
- package/dist/7533.js +2 -0
- package/dist/7535.js +2 -0
- package/dist/775.js +2 -0
- package/dist/8137.js +2 -0
- package/dist/8180.js +2 -0
- package/dist/8192.js +2 -0
- package/dist/8246.js +1 -0
- package/dist/833.js +2 -0
- package/dist/8378.js +2 -0
- package/dist/8605.js +2 -0
- package/dist/8625.js +2 -0
- package/dist/8840.js +2 -0
- package/dist/907.js +2 -0
- package/dist/9108.js +2 -0
- package/dist/9255.js +2 -0
- package/dist/9322.js +2 -0
- package/dist/9581.js +2 -0
- package/dist/9719.js +2 -0
- package/dist/9731.js +2 -0
- package/dist/9907.js +2 -0
- package/dist/9930.js +2 -0
- package/dist/9938.js +2 -0
- package/dist/index.html +1 -0
- package/dist/main.css +3 -3
- package/dist/main.js +1 -1
- package/dist/main.js.LICENSE.txt +2 -2
- package/package.json +33 -25
- package/public/index.html +1 -0
- package/src/App.tsx +1 -3
- package/src/components/SampleColumns.tsx +10 -0
- package/src/components/SampleDescription.tsx +27 -15
- package/src/components/Sidebar.tsx +29 -10
- package/src/components/badge/basic.tsx +1 -1
- package/src/components/badge/button.tsx +1 -1
- package/src/components/button/baselined.tsx +1 -1
- package/src/components/button/partials/cases.tsx +2 -2
- package/src/components/button/short-key.tsx +104 -3
- package/src/components/combobox/partials/variants.tsx +3 -2
- package/src/components/drawer/basic.tsx +9 -25
- package/src/components/drawer/controlled.tsx +0 -8
- package/src/components/form/error-list.tsx +66 -24
- package/src/components/handout/basic.tsx +25 -30
- package/src/components/icon/basic.tsx +2 -1
- package/src/components/input-checkbox/partials/variants.tsx +5 -4
- package/src/components/input-color/partials/cases.tsx +4 -2
- package/src/components/input-color/partials/variants.tsx +3 -2
- package/src/components/input-date/partials/cases.tsx +7 -4
- package/src/components/input-date/partials/minMax.tsx +3 -3
- package/src/components/input-date/partials/variants.tsx +4 -3
- package/src/components/input-date/show-hide-msg.tsx +1 -2
- package/src/components/input-email/partials/cases.tsx +6 -3
- package/src/components/input-email/partials/variants.tsx +3 -2
- package/src/components/input-file/partials/cases.tsx +6 -3
- package/src/components/input-file/partials/variants.tsx +3 -2
- package/src/components/input-number/partials/variants.tsx +3 -2
- package/src/components/input-password/partials/cases.tsx +8 -5
- package/src/components/input-password/partials/variants.tsx +3 -2
- package/src/components/input-radio/partials/variants.tsx +11 -8
- package/src/components/input-range/partials/cases.tsx +6 -3
- package/src/components/input-range/partials/variants.tsx +3 -2
- package/src/components/input-text/{hide-errors.tsx → hide-msg.tsx} +5 -5
- package/src/components/input-text/partials/cases.tsx +1 -1
- package/src/components/input-text/partials/variants.tsx +3 -2
- package/src/components/input-text/routes.ts +2 -2
- package/src/components/input-text/smart-button.tsx +14 -1
- package/src/components/input-text/text-formatter.tsx +1 -2
- package/src/components/link/access-key.tsx +1 -3
- package/src/components/link/short-key.tsx +1 -1
- package/src/components/link-button/aria-description.tsx +1 -1
- package/src/components/link-button/basic.tsx +8 -10
- package/src/components/modal/basic.tsx +28 -12
- package/src/components/nav/basic.tsx +8 -2
- package/src/components/nav/horizontal.tsx +2 -2
- package/src/components/pagination/basic.tsx +1 -1
- package/src/components/popover-button/basic.tsx +55 -0
- package/src/components/popover-button/routes.ts +8 -0
- package/src/components/progress/basic.tsx +12 -5
- package/src/components/select/partials/cases.tsx +22 -4
- package/src/components/select/partials/variants.tsx +3 -2
- package/src/components/single-select/partials/cases.tsx +8 -4
- package/src/components/single-select/partials/variants.tsx +8 -7
- package/src/components/split-button/basic.tsx +2 -2
- package/src/components/table/column-alignment.tsx +16 -12
- package/src/components/table/complex-headers.tsx +4 -3
- package/src/components/table/horizontal-scrollbar.tsx +12 -6
- package/src/components/table/interactive-child-elements.tsx +2 -0
- package/src/components/table/multi-sort.tsx +6 -4
- package/src/components/table/pagination-position.tsx +26 -5
- package/src/components/table/predefined-settings.tsx +41 -0
- package/src/components/table/render-cell.tsx +5 -5
- package/src/components/table/routes.ts +6 -4
- package/src/components/table/sort-data.tsx +16 -18
- package/src/components/table/stateful-with-selection.tsx +10 -6
- package/src/components/table/stateful-with-single-selection.tsx +6 -5
- package/src/components/table/stateless-with-selection.tsx +11 -7
- package/src/components/table/stateless-with-single-selection.tsx +9 -6
- package/src/components/table/stateless.tsx +1 -0
- package/src/components/table/with-footer.tsx +4 -3
- package/src/components/table/with-pagination.tsx +3 -3
- package/src/components/textarea/partials/cases.tsx +9 -4
- package/src/components/textarea/partials/variants.tsx +3 -2
- package/src/components/tree/basic.tsx +2 -1
- package/src/react.main.tsx +4 -9
- package/src/scenarios/appointment-form/PersonalInformationForm.tsx +4 -1
- package/src/scenarios/change-tabindex.tsx +24 -22
- package/src/scenarios/horizontal-scrollbar-advanced/TableHorizontalScrollbarAdvanced.tsx +2 -2
- package/src/scenarios/horizontal-scrollbar-advanced/layout.scss +4 -4
- package/src/scenarios/input-group-with-error.tsx +4 -4
- package/src/scenarios/routes.ts +2 -0
- package/src/scenarios/same-height-of-all-interactive-elements.tsx +62 -0
- package/src/shares/longOptions.ts +15 -0
- package/src/shares/routes.ts +3 -7
- package/src/shares/theme.ts +4 -8
- package/src/style.scss +17 -6
- package/unocss.config.ts +67 -68
- package/webpack.config.js +13 -2
- package/dist/1073.js +0 -2
- package/dist/1325.js +0 -2
- package/dist/1392.js +0 -2
- package/dist/1604.js +0 -2
- package/dist/175.js +0 -2
- package/dist/178.js +0 -2
- package/dist/1791.js +0 -2
- package/dist/2220.js +0 -2
- package/dist/2444.js +0 -2
- package/dist/2671.js +0 -2
- package/dist/2986.js +0 -2
- package/dist/3030.js +0 -2
- package/dist/3270.js +0 -2
- package/dist/3340.js +0 -2
- package/dist/3392.js +0 -2
- package/dist/3529.js +0 -2
- package/dist/3756.js +0 -2
- package/dist/3960.js +0 -2
- package/dist/399.js +0 -2
- package/dist/4145.js +0 -2
- package/dist/4288.js +0 -2
- package/dist/4539.js +0 -2
- package/dist/4563.js +0 -2
- package/dist/4571.js +0 -2
- package/dist/5260.js +0 -2
- package/dist/5333.js +0 -2
- package/dist/5523.js +0 -2
- package/dist/5551.js +0 -2
- package/dist/5575.js +0 -2
- package/dist/5665.js +0 -2
- package/dist/572.js +0 -2
- package/dist/5873.js +0 -2
- package/dist/5879.js +0 -2
- package/dist/5964.js +0 -2
- package/dist/6005.js +0 -2
- package/dist/618.js +0 -2
- package/dist/623.js +0 -2
- package/dist/643.js +0 -2
- package/dist/6610.js +0 -2
- package/dist/6618.js +0 -2
- package/dist/6711.js +0 -2
- package/dist/6740.js +0 -2
- package/dist/6786.js +0 -2
- package/dist/685.js +0 -2
- package/dist/6950.js +0 -2
- package/dist/7055.js +0 -2
- package/dist/7106.js +0 -2
- package/dist/7141.js +0 -2
- package/dist/7146.js +0 -2
- package/dist/7287.js +0 -2
- package/dist/7599.js +0 -2
- package/dist/7648.js +0 -2
- package/dist/7668.js +0 -2
- package/dist/7855.js +0 -2
- package/dist/8165.js +0 -2
- package/dist/8177.js +0 -2
- package/dist/8306.js +0 -2
- package/dist/8543.js +0 -2
- package/dist/866.js +0 -2
- package/dist/8859.js +0 -2
- package/dist/904.js +0 -2
- package/dist/9148.js +0 -2
- package/dist/9522.js +0 -2
- package/dist/9625.js +0 -2
- package/dist/9625.js.LICENSE.txt +0 -3
- package/dist/971.js +0 -2
- package/dist/971.js.LICENSE.txt +0 -3
- package/dist/9712.js +0 -2
- package/dist/9712.js.LICENSE.txt +0 -3
- package/dist/976.js +0 -2
- package/dist/976.js.LICENSE.txt +0 -3
- package/dist/982.js +0 -2
- package/dist/982.js.LICENSE.txt +0 -3
- package/dist/986.js +0 -2
- package/dist/986.js.LICENSE.txt +0 -3
- package/dist/assets/README.md +0 -1
- package/dist/assets/fontawesome-free/LICENSE.txt +0 -165
- package/dist/assets/fontawesome-free/css/all.css +0 -7831
- package/dist/assets/fontawesome-free/css/all.min.css +0 -6
- package/dist/assets/fontawesome-free/css/brands.css +0 -1432
- package/dist/assets/fontawesome-free/css/brands.min.css +0 -6
- package/dist/assets/fontawesome-free/css/fontawesome.css +0 -6338
- package/dist/assets/fontawesome-free/css/fontawesome.min.css +0 -6
- package/dist/assets/fontawesome-free/css/regular.css +0 -19
- package/dist/assets/fontawesome-free/css/regular.min.css +0 -6
- package/dist/assets/fontawesome-free/css/solid.css +0 -19
- package/dist/assets/fontawesome-free/css/solid.min.css +0 -6
- package/dist/assets/fontawesome-free/css/svg-with-js.css +0 -634
- package/dist/assets/fontawesome-free/css/svg-with-js.min.css +0 -6
- package/dist/assets/fontawesome-free/css/v4-font-face.css +0 -26
- package/dist/assets/fontawesome-free/css/v4-font-face.min.css +0 -6
- package/dist/assets/fontawesome-free/css/v4-shims.css +0 -2146
- package/dist/assets/fontawesome-free/css/v4-shims.min.css +0 -6
- package/dist/assets/fontawesome-free/css/v5-font-face.css +0 -22
- package/dist/assets/fontawesome-free/css/v5-font-face.min.css +0 -6
- package/dist/assets/fontawesome-free/webfonts/fa-brands-400.ttf +0 -0
- package/dist/assets/fontawesome-free/webfonts/fa-brands-400.woff2 +0 -0
- package/dist/assets/fontawesome-free/webfonts/fa-regular-400.ttf +0 -0
- package/dist/assets/fontawesome-free/webfonts/fa-regular-400.woff2 +0 -0
- package/dist/assets/fontawesome-free/webfonts/fa-solid-900.ttf +0 -0
- package/dist/assets/fontawesome-free/webfonts/fa-solid-900.woff2 +0 -0
- package/dist/assets/fontawesome-free/webfonts/fa-v4compatibility.ttf +0 -0
- package/dist/assets/fontawesome-free/webfonts/fa-v4compatibility.woff2 +0 -0
- package/dist/assets/icofont/demo.html +0 -18939
- package/dist/assets/icofont/fonts/icofont.eot +0 -0
- package/dist/assets/icofont/fonts/icofont.svg +0 -2105
- package/dist/assets/icofont/fonts/icofont.ttf +0 -0
- package/dist/assets/icofont/fonts/icofont.woff +0 -0
- package/dist/assets/icofont/fonts/icofont.woff2 +0 -0
- package/dist/assets/icofont/icofont.css +0 -10757
- package/dist/assets/icofont/icofont.min.css +0 -7
- package/dist/assets/kreon/Kreon-VariableFont_wght.ttf +0 -0
- package/dist/assets/kreon/OFL.txt +0 -93
- package/dist/assets/kreon/README.txt +0 -67
- package/dist/assets/kreon/static/Kreon-Bold.ttf +0 -0
- package/dist/assets/kreon/static/Kreon-Light.ttf +0 -0
- package/dist/assets/kreon/static/Kreon-Medium.ttf +0 -0
- package/dist/assets/kreon/static/Kreon-Regular.ttf +0 -0
- package/dist/assets/kreon/static/Kreon-SemiBold.ttf +0 -0
- package/dist/assets/kreon/style.css +0 -41
- package/dist/assets/material-icons/LICENSE +0 -202
- package/dist/assets/material-icons/README.md +0 -129
- package/dist/assets/material-icons/_data/versions.json +0 -2124
- package/dist/assets/material-icons/css/_codepoints.scss +0 -2279
- package/dist/assets/material-icons/css/_mixins.scss +0 -13
- package/dist/assets/material-icons/css/_variables.scss +0 -6
- package/dist/assets/material-icons/css/material-icons.css +0 -9208
- package/dist/assets/material-icons/css/material-icons.min.css +0 -1
- package/dist/assets/material-icons/css/material-icons.scss +0 -39
- package/dist/assets/material-icons/iconfont/_mixins.scss +0 -55
- package/dist/assets/material-icons/iconfont/_variables.scss +0 -3
- package/dist/assets/material-icons/iconfont/filled.css +0 -24
- package/dist/assets/material-icons/iconfont/filled.scss +0 -4
- package/dist/assets/material-icons/iconfont/material-icons-outlined.woff +0 -0
- package/dist/assets/material-icons/iconfont/material-icons-outlined.woff2 +0 -0
- package/dist/assets/material-icons/iconfont/material-icons-round.woff +0 -0
- package/dist/assets/material-icons/iconfont/material-icons-round.woff2 +0 -0
- package/dist/assets/material-icons/iconfont/material-icons-sharp.woff +0 -0
- package/dist/assets/material-icons/iconfont/material-icons-sharp.woff2 +0 -0
- package/dist/assets/material-icons/iconfont/material-icons-two-tone.woff +0 -0
- package/dist/assets/material-icons/iconfont/material-icons-two-tone.woff2 +0 -0
- package/dist/assets/material-icons/iconfont/material-icons.css +0 -124
- package/dist/assets/material-icons/iconfont/material-icons.scss +0 -5
- package/dist/assets/material-icons/iconfont/material-icons.woff +0 -0
- package/dist/assets/material-icons/iconfont/material-icons.woff2 +0 -0
- package/dist/assets/material-icons/iconfont/outlined.css +0 -24
- package/dist/assets/material-icons/iconfont/outlined.scss +0 -4
- package/dist/assets/material-icons/iconfont/round.css +0 -24
- package/dist/assets/material-icons/iconfont/round.scss +0 -4
- package/dist/assets/material-icons/iconfont/sharp.css +0 -24
- package/dist/assets/material-icons/iconfont/sharp.scss +0 -4
- package/dist/assets/material-icons/iconfont/two-tone.css +0 -24
- package/dist/assets/material-icons/iconfont/two-tone.scss +0 -4
- package/dist/assets/material-icons/index.d.ts +0 -2128
- package/dist/assets/material-icons/package.json +0 -52
- package/dist/assets/material-symbols/LICENSE +0 -202
- package/dist/assets/material-symbols/README.md +0 -114
- package/dist/assets/material-symbols/_core.scss +0 -46
- package/dist/assets/material-symbols/index.css +0 -74
- package/dist/assets/material-symbols/index.d.ts +0 -2809
- package/dist/assets/material-symbols/index.scss +0 -3
- package/dist/assets/material-symbols/material-symbols-outlined.woff2 +0 -0
- package/dist/assets/material-symbols/material-symbols-rounded.woff2 +0 -0
- package/dist/assets/material-symbols/material-symbols-sharp.woff2 +0 -0
- package/dist/assets/material-symbols/outlined.css +0 -24
- package/dist/assets/material-symbols/outlined.scss +0 -3
- package/dist/assets/material-symbols/package.json +0 -41
- package/dist/assets/material-symbols/rounded.css +0 -24
- package/dist/assets/material-symbols/rounded.scss +0 -3
- package/dist/assets/material-symbols/sharp.css +0 -24
- package/dist/assets/material-symbols/sharp.scss +0 -3
- package/dist/assets/noto-sans/fonts/NotoSans-Black.ttf +0 -0
- package/dist/assets/noto-sans/fonts/NotoSans-BlackItalic.ttf +0 -0
- package/dist/assets/noto-sans/fonts/NotoSans-Bold.ttf +0 -0
- package/dist/assets/noto-sans/fonts/NotoSans-BoldItalic.ttf +0 -0
- package/dist/assets/noto-sans/fonts/NotoSans-ExtraBold.ttf +0 -0
- package/dist/assets/noto-sans/fonts/NotoSans-ExtraBoldItalic.ttf +0 -0
- package/dist/assets/noto-sans/fonts/NotoSans-ExtraLight.ttf +0 -0
- package/dist/assets/noto-sans/fonts/NotoSans-ExtraLightItalic.ttf +0 -0
- package/dist/assets/noto-sans/fonts/NotoSans-Italic.ttf +0 -0
- package/dist/assets/noto-sans/fonts/NotoSans-Light.ttf +0 -0
- package/dist/assets/noto-sans/fonts/NotoSans-LightItalic.ttf +0 -0
- package/dist/assets/noto-sans/fonts/NotoSans-Medium.ttf +0 -0
- package/dist/assets/noto-sans/fonts/NotoSans-MediumItalic.ttf +0 -0
- package/dist/assets/noto-sans/fonts/NotoSans-Regular.ttf +0 -0
- package/dist/assets/noto-sans/fonts/NotoSans-SemiBold.ttf +0 -0
- package/dist/assets/noto-sans/fonts/NotoSans-SemiBoldItalic.ttf +0 -0
- package/dist/assets/noto-sans/fonts/NotoSans-Thin.ttf +0 -0
- package/dist/assets/noto-sans/fonts/NotoSans-ThinItalic.ttf +0 -0
- package/dist/assets/noto-sans/fonts/OFL.txt +0 -93
- package/dist/assets/noto-sans/noto-sans.css +0 -11
- package/dist/assets/roboto/LICENSE.txt +0 -202
- package/dist/assets/roboto/Roboto-Black.ttf +0 -0
- package/dist/assets/roboto/Roboto-BlackItalic.ttf +0 -0
- package/dist/assets/roboto/Roboto-Bold.ttf +0 -0
- package/dist/assets/roboto/Roboto-BoldItalic.ttf +0 -0
- package/dist/assets/roboto/Roboto-Italic.ttf +0 -0
- package/dist/assets/roboto/Roboto-Light.ttf +0 -0
- package/dist/assets/roboto/Roboto-LightItalic.ttf +0 -0
- package/dist/assets/roboto/Roboto-Medium.ttf +0 -0
- package/dist/assets/roboto/Roboto-MediumItalic.ttf +0 -0
- package/dist/assets/roboto/Roboto-Regular.ttf +0 -0
- package/dist/assets/roboto/Roboto-Thin.ttf +0 -0
- package/dist/assets/roboto/Roboto-ThinItalic.ttf +0 -0
- package/dist/assets/roboto/roboto.css +0 -27
- package/dist/assets/tabler-icons/fonts/tabler-icons.eot +0 -0
- package/dist/assets/tabler-icons/fonts/tabler-icons.ttf +0 -0
- package/dist/assets/tabler-icons/fonts/tabler-icons.woff +0 -0
- package/dist/assets/tabler-icons/fonts/tabler-icons.woff2 +0 -0
- package/dist/assets/tabler-icons/tabler-icons.css +0 -16056
- package/dist/assets/tabler-icons/tabler-icons.html +0 -36226
- package/dist/assets/tabler-icons/tabler-icons.min.css +0 -4
- package/dist/assets/tabler-icons/tabler-icons.png +0 -0
- package/dist/assets/tabler-icons/tabler-icons.scss +0 -8058
- package/public/assets/README.md +0 -1
- package/public/assets/fontawesome-free/LICENSE.txt +0 -165
- package/public/assets/fontawesome-free/css/all.css +0 -7831
- package/public/assets/fontawesome-free/css/all.min.css +0 -6
- package/public/assets/fontawesome-free/css/brands.css +0 -1432
- package/public/assets/fontawesome-free/css/brands.min.css +0 -6
- package/public/assets/fontawesome-free/css/fontawesome.css +0 -6338
- package/public/assets/fontawesome-free/css/fontawesome.min.css +0 -6
- package/public/assets/fontawesome-free/css/regular.css +0 -19
- package/public/assets/fontawesome-free/css/regular.min.css +0 -6
- package/public/assets/fontawesome-free/css/solid.css +0 -19
- package/public/assets/fontawesome-free/css/solid.min.css +0 -6
- package/public/assets/fontawesome-free/css/svg-with-js.css +0 -634
- package/public/assets/fontawesome-free/css/svg-with-js.min.css +0 -6
- package/public/assets/fontawesome-free/css/v4-font-face.css +0 -26
- package/public/assets/fontawesome-free/css/v4-font-face.min.css +0 -6
- package/public/assets/fontawesome-free/css/v4-shims.css +0 -2146
- package/public/assets/fontawesome-free/css/v4-shims.min.css +0 -6
- package/public/assets/fontawesome-free/css/v5-font-face.css +0 -22
- package/public/assets/fontawesome-free/css/v5-font-face.min.css +0 -6
- package/public/assets/fontawesome-free/webfonts/fa-brands-400.ttf +0 -0
- package/public/assets/fontawesome-free/webfonts/fa-brands-400.woff2 +0 -0
- package/public/assets/fontawesome-free/webfonts/fa-regular-400.ttf +0 -0
- package/public/assets/fontawesome-free/webfonts/fa-regular-400.woff2 +0 -0
- package/public/assets/fontawesome-free/webfonts/fa-solid-900.ttf +0 -0
- package/public/assets/fontawesome-free/webfonts/fa-solid-900.woff2 +0 -0
- package/public/assets/fontawesome-free/webfonts/fa-v4compatibility.ttf +0 -0
- package/public/assets/fontawesome-free/webfonts/fa-v4compatibility.woff2 +0 -0
- package/public/assets/icofont/demo.html +0 -18939
- package/public/assets/icofont/fonts/icofont.eot +0 -0
- package/public/assets/icofont/fonts/icofont.svg +0 -2105
- package/public/assets/icofont/fonts/icofont.ttf +0 -0
- package/public/assets/icofont/fonts/icofont.woff +0 -0
- package/public/assets/icofont/fonts/icofont.woff2 +0 -0
- package/public/assets/icofont/icofont.css +0 -10757
- package/public/assets/icofont/icofont.min.css +0 -7
- package/public/assets/kreon/Kreon-VariableFont_wght.ttf +0 -0
- package/public/assets/kreon/OFL.txt +0 -93
- package/public/assets/kreon/README.txt +0 -67
- package/public/assets/kreon/static/Kreon-Bold.ttf +0 -0
- package/public/assets/kreon/static/Kreon-Light.ttf +0 -0
- package/public/assets/kreon/static/Kreon-Medium.ttf +0 -0
- package/public/assets/kreon/static/Kreon-Regular.ttf +0 -0
- package/public/assets/kreon/static/Kreon-SemiBold.ttf +0 -0
- package/public/assets/kreon/style.css +0 -41
- package/public/assets/material-icons/LICENSE +0 -202
- package/public/assets/material-icons/README.md +0 -129
- package/public/assets/material-icons/_data/versions.json +0 -2124
- package/public/assets/material-icons/css/_codepoints.scss +0 -2279
- package/public/assets/material-icons/css/_mixins.scss +0 -13
- package/public/assets/material-icons/css/_variables.scss +0 -6
- package/public/assets/material-icons/css/material-icons.css +0 -9208
- package/public/assets/material-icons/css/material-icons.min.css +0 -1
- package/public/assets/material-icons/css/material-icons.scss +0 -39
- package/public/assets/material-icons/iconfont/_mixins.scss +0 -55
- package/public/assets/material-icons/iconfont/_variables.scss +0 -3
- package/public/assets/material-icons/iconfont/filled.css +0 -24
- package/public/assets/material-icons/iconfont/filled.scss +0 -4
- package/public/assets/material-icons/iconfont/material-icons-outlined.woff +0 -0
- package/public/assets/material-icons/iconfont/material-icons-outlined.woff2 +0 -0
- package/public/assets/material-icons/iconfont/material-icons-round.woff +0 -0
- package/public/assets/material-icons/iconfont/material-icons-round.woff2 +0 -0
- package/public/assets/material-icons/iconfont/material-icons-sharp.woff +0 -0
- package/public/assets/material-icons/iconfont/material-icons-sharp.woff2 +0 -0
- package/public/assets/material-icons/iconfont/material-icons-two-tone.woff +0 -0
- package/public/assets/material-icons/iconfont/material-icons-two-tone.woff2 +0 -0
- package/public/assets/material-icons/iconfont/material-icons.css +0 -124
- package/public/assets/material-icons/iconfont/material-icons.scss +0 -5
- package/public/assets/material-icons/iconfont/material-icons.woff +0 -0
- package/public/assets/material-icons/iconfont/material-icons.woff2 +0 -0
- package/public/assets/material-icons/iconfont/outlined.css +0 -24
- package/public/assets/material-icons/iconfont/outlined.scss +0 -4
- package/public/assets/material-icons/iconfont/round.css +0 -24
- package/public/assets/material-icons/iconfont/round.scss +0 -4
- package/public/assets/material-icons/iconfont/sharp.css +0 -24
- package/public/assets/material-icons/iconfont/sharp.scss +0 -4
- package/public/assets/material-icons/iconfont/two-tone.css +0 -24
- package/public/assets/material-icons/iconfont/two-tone.scss +0 -4
- package/public/assets/material-icons/index.d.ts +0 -2128
- package/public/assets/material-icons/package.json +0 -52
- package/public/assets/material-symbols/LICENSE +0 -202
- package/public/assets/material-symbols/README.md +0 -114
- package/public/assets/material-symbols/_core.scss +0 -46
- package/public/assets/material-symbols/index.css +0 -74
- package/public/assets/material-symbols/index.d.ts +0 -2809
- package/public/assets/material-symbols/index.scss +0 -3
- package/public/assets/material-symbols/material-symbols-outlined.woff2 +0 -0
- package/public/assets/material-symbols/material-symbols-rounded.woff2 +0 -0
- package/public/assets/material-symbols/material-symbols-sharp.woff2 +0 -0
- package/public/assets/material-symbols/outlined.css +0 -24
- package/public/assets/material-symbols/outlined.scss +0 -3
- package/public/assets/material-symbols/package.json +0 -41
- package/public/assets/material-symbols/rounded.css +0 -24
- package/public/assets/material-symbols/rounded.scss +0 -3
- package/public/assets/material-symbols/sharp.css +0 -24
- package/public/assets/material-symbols/sharp.scss +0 -3
- package/public/assets/noto-sans/fonts/NotoSans-Black.ttf +0 -0
- package/public/assets/noto-sans/fonts/NotoSans-BlackItalic.ttf +0 -0
- package/public/assets/noto-sans/fonts/NotoSans-Bold.ttf +0 -0
- package/public/assets/noto-sans/fonts/NotoSans-BoldItalic.ttf +0 -0
- package/public/assets/noto-sans/fonts/NotoSans-ExtraBold.ttf +0 -0
- package/public/assets/noto-sans/fonts/NotoSans-ExtraBoldItalic.ttf +0 -0
- package/public/assets/noto-sans/fonts/NotoSans-ExtraLight.ttf +0 -0
- package/public/assets/noto-sans/fonts/NotoSans-ExtraLightItalic.ttf +0 -0
- package/public/assets/noto-sans/fonts/NotoSans-Italic.ttf +0 -0
- package/public/assets/noto-sans/fonts/NotoSans-Light.ttf +0 -0
- package/public/assets/noto-sans/fonts/NotoSans-LightItalic.ttf +0 -0
- package/public/assets/noto-sans/fonts/NotoSans-Medium.ttf +0 -0
- package/public/assets/noto-sans/fonts/NotoSans-MediumItalic.ttf +0 -0
- package/public/assets/noto-sans/fonts/NotoSans-Regular.ttf +0 -0
- package/public/assets/noto-sans/fonts/NotoSans-SemiBold.ttf +0 -0
- package/public/assets/noto-sans/fonts/NotoSans-SemiBoldItalic.ttf +0 -0
- package/public/assets/noto-sans/fonts/NotoSans-Thin.ttf +0 -0
- package/public/assets/noto-sans/fonts/NotoSans-ThinItalic.ttf +0 -0
- package/public/assets/noto-sans/fonts/OFL.txt +0 -93
- package/public/assets/noto-sans/noto-sans.css +0 -11
- package/public/assets/roboto/LICENSE.txt +0 -202
- package/public/assets/roboto/Roboto-Black.ttf +0 -0
- package/public/assets/roboto/Roboto-BlackItalic.ttf +0 -0
- package/public/assets/roboto/Roboto-Bold.ttf +0 -0
- package/public/assets/roboto/Roboto-BoldItalic.ttf +0 -0
- package/public/assets/roboto/Roboto-Italic.ttf +0 -0
- package/public/assets/roboto/Roboto-Light.ttf +0 -0
- package/public/assets/roboto/Roboto-LightItalic.ttf +0 -0
- package/public/assets/roboto/Roboto-Medium.ttf +0 -0
- package/public/assets/roboto/Roboto-MediumItalic.ttf +0 -0
- package/public/assets/roboto/Roboto-Regular.ttf +0 -0
- package/public/assets/roboto/Roboto-Thin.ttf +0 -0
- package/public/assets/roboto/Roboto-ThinItalic.ttf +0 -0
- package/public/assets/roboto/roboto.css +0 -27
- package/public/assets/tabler-icons/fonts/tabler-icons.eot +0 -0
- package/public/assets/tabler-icons/fonts/tabler-icons.ttf +0 -0
- package/public/assets/tabler-icons/fonts/tabler-icons.woff +0 -0
- package/public/assets/tabler-icons/fonts/tabler-icons.woff2 +0 -0
- package/public/assets/tabler-icons/tabler-icons.css +0 -16056
- package/public/assets/tabler-icons/tabler-icons.html +0 -36226
- package/public/assets/tabler-icons/tabler-icons.min.css +0 -4
- package/public/assets/tabler-icons/tabler-icons.png +0 -0
- package/public/assets/tabler-icons/tabler-icons.scss +0 -8058
- package/src/components/button-group/basic.tsx +0 -34
- package/src/components/button-group/routes.ts +0 -8
- package/src/components/indented-text/basic.tsx +0 -37
- package/src/components/indented-text/routes.ts +0 -8
- package/src/components/link-group/basic.tsx +0 -23
- package/src/components/link-group/horizontal.tsx +0 -23
- package/src/components/link-group/routes.ts +0 -10
- /package/dist/{1073.js.LICENSE.txt → 1006.js.LICENSE.txt} +0 -0
- /package/dist/{1325.js.LICENSE.txt → 1114.js.LICENSE.txt} +0 -0
- /package/dist/{1392.js.LICENSE.txt → 1752.js.LICENSE.txt} +0 -0
- /package/dist/{1604.js.LICENSE.txt → 1932.js.LICENSE.txt} +0 -0
- /package/dist/{175.js.LICENSE.txt → 2069.js.LICENSE.txt} +0 -0
- /package/dist/{178.js.LICENSE.txt → 2212.js.LICENSE.txt} +0 -0
- /package/dist/{1791.js.LICENSE.txt → 2231.js.LICENSE.txt} +0 -0
- /package/dist/{2220.js.LICENSE.txt → 2321.js.LICENSE.txt} +0 -0
- /package/dist/{2444.js.LICENSE.txt → 2596.js.LICENSE.txt} +0 -0
- /package/dist/{2450.js.LICENSE.txt → 2827.js.LICENSE.txt} +0 -0
- /package/dist/{2671.js.LICENSE.txt → 2894.js.LICENSE.txt} +0 -0
- /package/dist/{2986.js.LICENSE.txt → 3099.js.LICENSE.txt} +0 -0
- /package/dist/{3030.js.LICENSE.txt → 3151.js.LICENSE.txt} +0 -0
- /package/dist/{3270.js.LICENSE.txt → 3203.js.LICENSE.txt} +0 -0
- /package/dist/{3340.js.LICENSE.txt → 3540.js.LICENSE.txt} +0 -0
- /package/dist/{3392.js.LICENSE.txt → 373.js.LICENSE.txt} +0 -0
- /package/dist/{3529.js.LICENSE.txt → 3918.js.LICENSE.txt} +0 -0
- /package/dist/{3756.js.LICENSE.txt → 3920.js.LICENSE.txt} +0 -0
- /package/dist/{3960.js.LICENSE.txt → 4030.js.LICENSE.txt} +0 -0
- /package/dist/{399.js.LICENSE.txt → 4048.js.LICENSE.txt} +0 -0
- /package/dist/{4145.js.LICENSE.txt → 4201.js.LICENSE.txt} +0 -0
- /package/dist/{4288.js.LICENSE.txt → 4260.js.LICENSE.txt} +0 -0
- /package/dist/{4539.js.LICENSE.txt → 4361.js.LICENSE.txt} +0 -0
- /package/dist/{4563.js.LICENSE.txt → 4587.js.LICENSE.txt} +0 -0
- /package/dist/{4571.js.LICENSE.txt → 4611.js.LICENSE.txt} +0 -0
- /package/dist/{5260.js.LICENSE.txt → 4641.js.LICENSE.txt} +0 -0
- /package/dist/{5333.js.LICENSE.txt → 4876.js.LICENSE.txt} +0 -0
- /package/dist/{5523.js.LICENSE.txt → 5143.js.LICENSE.txt} +0 -0
- /package/dist/{5551.js.LICENSE.txt → 5249.js.LICENSE.txt} +0 -0
- /package/dist/{5575.js.LICENSE.txt → 5690.js.LICENSE.txt} +0 -0
- /package/dist/{5665.js.LICENSE.txt → 5746.js.LICENSE.txt} +0 -0
- /package/dist/{572.js.LICENSE.txt → 6047.js.LICENSE.txt} +0 -0
- /package/dist/{5873.js.LICENSE.txt → 6066.js.LICENSE.txt} +0 -0
- /package/dist/{5879.js.LICENSE.txt → 6256.js.LICENSE.txt} +0 -0
- /package/dist/{5964.js.LICENSE.txt → 6304.js.LICENSE.txt} +0 -0
- /package/dist/{6005.js.LICENSE.txt → 6781.js.LICENSE.txt} +0 -0
- /package/dist/{618.js.LICENSE.txt → 6790.js.LICENSE.txt} +0 -0
- /package/dist/{623.js.LICENSE.txt → 6984.js.LICENSE.txt} +0 -0
- /package/dist/{643.js.LICENSE.txt → 7013.js.LICENSE.txt} +0 -0
- /package/dist/{6610.js.LICENSE.txt → 7178.js.LICENSE.txt} +0 -0
- /package/dist/{6618.js.LICENSE.txt → 7347.js.LICENSE.txt} +0 -0
- /package/dist/{6711.js.LICENSE.txt → 740.js.LICENSE.txt} +0 -0
- /package/dist/{6740.js.LICENSE.txt → 7444.js.LICENSE.txt} +0 -0
- /package/dist/{6786.js.LICENSE.txt → 7533.js.LICENSE.txt} +0 -0
- /package/dist/{685.js.LICENSE.txt → 7535.js.LICENSE.txt} +0 -0
- /package/dist/{6950.js.LICENSE.txt → 775.js.LICENSE.txt} +0 -0
- /package/dist/{7055.js.LICENSE.txt → 8137.js.LICENSE.txt} +0 -0
- /package/dist/{7106.js.LICENSE.txt → 8180.js.LICENSE.txt} +0 -0
- /package/dist/{7141.js.LICENSE.txt → 8192.js.LICENSE.txt} +0 -0
- /package/dist/{7146.js.LICENSE.txt → 833.js.LICENSE.txt} +0 -0
- /package/dist/{7287.js.LICENSE.txt → 8378.js.LICENSE.txt} +0 -0
- /package/dist/{7599.js.LICENSE.txt → 8605.js.LICENSE.txt} +0 -0
- /package/dist/{7648.js.LICENSE.txt → 8625.js.LICENSE.txt} +0 -0
- /package/dist/{7668.js.LICENSE.txt → 8840.js.LICENSE.txt} +0 -0
- /package/dist/{7855.js.LICENSE.txt → 907.js.LICENSE.txt} +0 -0
- /package/dist/{8165.js.LICENSE.txt → 9108.js.LICENSE.txt} +0 -0
- /package/dist/{8177.js.LICENSE.txt → 9255.js.LICENSE.txt} +0 -0
- /package/dist/{8306.js.LICENSE.txt → 9322.js.LICENSE.txt} +0 -0
- /package/dist/{8543.js.LICENSE.txt → 9581.js.LICENSE.txt} +0 -0
- /package/dist/{866.js.LICENSE.txt → 9719.js.LICENSE.txt} +0 -0
- /package/dist/{8859.js.LICENSE.txt → 9731.js.LICENSE.txt} +0 -0
- /package/dist/{904.js.LICENSE.txt → 9907.js.LICENSE.txt} +0 -0
- /package/dist/{9148.js.LICENSE.txt → 9930.js.LICENSE.txt} +0 -0
- /package/dist/{9522.js.LICENSE.txt → 9938.js.LICENSE.txt} +0 -0
|
@@ -1,17 +1,18 @@
|
|
|
1
1
|
import type { FC } from 'react';
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import {
|
|
3
|
+
import { KolTableStateful } from '@public-ui/react';
|
|
4
4
|
import { SampleDescription } from '../SampleDescription';
|
|
5
5
|
|
|
6
6
|
export const TableComplexHeaders: FC = () => (
|
|
7
7
|
<>
|
|
8
8
|
<SampleDescription>
|
|
9
|
-
<p>This sample shows
|
|
9
|
+
<p>This sample shows KolTableStateful using vertical and horizontal headers, applying colspan and rowspan.</p>
|
|
10
10
|
</SampleDescription>
|
|
11
11
|
|
|
12
12
|
<section className="w-full flex flex-col">
|
|
13
|
-
<
|
|
13
|
+
<KolTableStateful
|
|
14
14
|
_label="Business hours"
|
|
15
|
+
_minWidth="auto"
|
|
15
16
|
_data={[
|
|
16
17
|
{
|
|
17
18
|
asp: 'Center',
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { FC } from 'react';
|
|
2
2
|
import React, { useState } from 'react';
|
|
3
3
|
|
|
4
|
-
import { KolHeading, KolInputCheckbox,
|
|
4
|
+
import { KolHeading, KolInputCheckbox, KolTableStateful } from '@public-ui/react';
|
|
5
5
|
|
|
6
6
|
import { SampleDescription } from '../SampleDescription';
|
|
7
7
|
|
|
@@ -26,15 +26,15 @@ export const TableHorizontalScrollbar: FC = () => {
|
|
|
26
26
|
<>
|
|
27
27
|
<SampleDescription>
|
|
28
28
|
<p>
|
|
29
|
-
This sample shows
|
|
30
|
-
to scroll it using arrow keys.
|
|
29
|
+
This sample shows KolTableStateful with and without horizontal scrollbars. When a scrollbar is present, it should be possible to focus the table
|
|
30
|
+
container and to scroll it using arrow keys.
|
|
31
31
|
</p>
|
|
32
32
|
</SampleDescription>
|
|
33
33
|
|
|
34
34
|
<section className="w-full flex flex-col gap-4">
|
|
35
35
|
<KolHeading _label="Table with scrollbar" _level={2} />
|
|
36
36
|
|
|
37
|
-
<
|
|
37
|
+
<KolTableStateful
|
|
38
38
|
_label="Table for demonstration purposes with horizontal scrollbar."
|
|
39
39
|
_minWidth={hasWidthRestriction ? '600px' : 'auto'}
|
|
40
40
|
_headers={HEADERS}
|
|
@@ -45,7 +45,7 @@ export const TableHorizontalScrollbar: FC = () => {
|
|
|
45
45
|
|
|
46
46
|
<KolHeading _label="Empty Table with scrollbar" _level={3} />
|
|
47
47
|
|
|
48
|
-
<
|
|
48
|
+
<KolTableStateful
|
|
49
49
|
_label="Table for demonstration purposes with horizontal scrollbar with auto minWidth."
|
|
50
50
|
_minWidth={hasWidthRestriction ? '600px' : 'auto'}
|
|
51
51
|
_headers={HEADERS}
|
|
@@ -70,7 +70,13 @@ export const TableHorizontalScrollbar: FC = () => {
|
|
|
70
70
|
<i>Scrollbar appears on very small viewport sizes</i>
|
|
71
71
|
</p>
|
|
72
72
|
|
|
73
|
-
<
|
|
73
|
+
<KolTableStateful
|
|
74
|
+
_label="Table for demonstration purposes without horizontal scrollbar"
|
|
75
|
+
_minWidth="600px"
|
|
76
|
+
_headers={HEADERS}
|
|
77
|
+
_data={DATA}
|
|
78
|
+
className="block"
|
|
79
|
+
/>
|
|
74
80
|
</section>
|
|
75
81
|
</>
|
|
76
82
|
);
|
|
@@ -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
|
[
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { FC } from 'react';
|
|
2
2
|
import React, { useState } from 'react';
|
|
3
3
|
|
|
4
|
-
import { KolHeading, KolInputCheckbox,
|
|
4
|
+
import { KolHeading, KolInputCheckbox, KolTableStateful } from '@public-ui/react';
|
|
5
5
|
import type { KoliBriTableHeaders, KoliBriTableDataType } from '@public-ui/components';
|
|
6
6
|
import type { Data } from './test-data';
|
|
7
7
|
import { DATA } from './test-data';
|
|
@@ -74,7 +74,7 @@ export const MultiSortTable: FC = () => {
|
|
|
74
74
|
return (
|
|
75
75
|
<>
|
|
76
76
|
<SampleDescription>
|
|
77
|
-
<p>This sample shows
|
|
77
|
+
<p>This sample shows KolTableStateful with multi-sort functionality, allowing sorting by both "order" and "date" columns.</p>
|
|
78
78
|
</SampleDescription>
|
|
79
79
|
|
|
80
80
|
<section className="w-full grid gap-4">
|
|
@@ -86,8 +86,9 @@ export const MultiSortTable: FC = () => {
|
|
|
86
86
|
_variant="switch"
|
|
87
87
|
_on={{ onChange: (_, value) => setAllowMultiSortVertical(Boolean(value)) }}
|
|
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"
|
|
@@ -102,8 +103,9 @@ export const MultiSortTable: FC = () => {
|
|
|
102
103
|
_variant="switch"
|
|
103
104
|
_on={{ onChange: (_, value) => setAllowMultiSortHorizontal(Boolean(value)) }}
|
|
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"
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { FC } from 'react';
|
|
2
2
|
import React from 'react';
|
|
3
3
|
|
|
4
|
-
import { KolHeading,
|
|
4
|
+
import { KolHeading, KolTableStateful } from '@public-ui/react';
|
|
5
5
|
|
|
6
6
|
import { SampleDescription } from '../SampleDescription';
|
|
7
7
|
import { DATE_FORMATTER } from './formatter';
|
|
@@ -23,21 +23,42 @@ const PAGINATION: KoliBriTablePaginationProps = { _page: 2 };
|
|
|
23
23
|
export const PaginationPosition: FC = () => (
|
|
24
24
|
<div className="w-full grid gap-14">
|
|
25
25
|
<SampleDescription>
|
|
26
|
-
<p>This sample shows
|
|
26
|
+
<p>This sample shows KolTableStateful with different pagination positions.</p>
|
|
27
27
|
</SampleDescription>
|
|
28
28
|
|
|
29
29
|
<section className="w-full flex flex-col gap-14">
|
|
30
30
|
<section className="grid gap-4">
|
|
31
31
|
<KolHeading _level={2} _label="Table with pagination at the bottom."></KolHeading>
|
|
32
|
-
<
|
|
32
|
+
<KolTableStateful
|
|
33
|
+
_label="Sample table with pagination at the bottom"
|
|
34
|
+
_minWidth="auto"
|
|
35
|
+
_data={DATA}
|
|
36
|
+
_headers={HEADERS}
|
|
37
|
+
_pagination={PAGINATION}
|
|
38
|
+
_paginationPosition="bottom"
|
|
39
|
+
></KolTableStateful>
|
|
33
40
|
</section>
|
|
34
41
|
<section className="grid gap-4">
|
|
35
42
|
<KolHeading _level={2} _label="Table with pagination at the top."></KolHeading>
|
|
36
|
-
<
|
|
43
|
+
<KolTableStateful
|
|
44
|
+
_label="Sample table with pagination at the top"
|
|
45
|
+
_minWidth="auto"
|
|
46
|
+
_data={DATA}
|
|
47
|
+
_headers={HEADERS}
|
|
48
|
+
_pagination={PAGINATION}
|
|
49
|
+
_paginationPosition="top"
|
|
50
|
+
></KolTableStateful>
|
|
37
51
|
</section>
|
|
38
52
|
<section className="grid gap-4">
|
|
39
53
|
<KolHeading _level={2} _label="Table with pagination at both top and bottom."></KolHeading>
|
|
40
|
-
<
|
|
54
|
+
<KolTableStateful
|
|
55
|
+
_label="Sample table with pagination at both top and bottom"
|
|
56
|
+
_minWidth="auto"
|
|
57
|
+
_data={DATA}
|
|
58
|
+
_headers={HEADERS}
|
|
59
|
+
_pagination={PAGINATION}
|
|
60
|
+
_paginationPosition="both"
|
|
61
|
+
></KolTableStateful>
|
|
41
62
|
</section>
|
|
42
63
|
</section>
|
|
43
64
|
</div>
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { SampleDescription } from '../SampleDescription';
|
|
2
|
+
import { KolTableStateful } from '@public-ui/react';
|
|
3
|
+
import type { FC } from 'react';
|
|
4
|
+
import React from 'react';
|
|
5
|
+
|
|
6
|
+
const DATA = [{ columnA: 'Column A', columnB: 'Column B', columnC: 'Column C' }];
|
|
7
|
+
|
|
8
|
+
export const PredefinedSettings: FC = () => {
|
|
9
|
+
return (
|
|
10
|
+
<>
|
|
11
|
+
<SampleDescription>
|
|
12
|
+
<p>This example shows the table with predefined settings.</p>
|
|
13
|
+
</SampleDescription>
|
|
14
|
+
|
|
15
|
+
<KolTableStateful
|
|
16
|
+
_label="Table for demonstration purposes with predefined settings"
|
|
17
|
+
_minWidth="auto"
|
|
18
|
+
_headers={{
|
|
19
|
+
horizontal: [
|
|
20
|
+
[
|
|
21
|
+
{ label: 'column A', key: 'columnA' },
|
|
22
|
+
{ label: 'column B', key: 'columnB' },
|
|
23
|
+
{ label: 'column C', key: 'columnC' },
|
|
24
|
+
],
|
|
25
|
+
],
|
|
26
|
+
}}
|
|
27
|
+
_tableSettings={{
|
|
28
|
+
columns: [
|
|
29
|
+
{ key: 'columnA', visible: false, label: 'Column A', position: 2 },
|
|
30
|
+
{ key: 'columnB', visible: true, label: 'Column B', position: 1, width: 20 },
|
|
31
|
+
{ key: 'columnC', visible: true, label: 'Column C', position: 0, width: 45 },
|
|
32
|
+
],
|
|
33
|
+
}}
|
|
34
|
+
_data={DATA}
|
|
35
|
+
_min-width="500px"
|
|
36
|
+
className="block"
|
|
37
|
+
style={{ maxWidth: '600px' }}
|
|
38
|
+
/>
|
|
39
|
+
</>
|
|
40
|
+
);
|
|
41
|
+
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { FC } from 'react';
|
|
2
2
|
import React from 'react';
|
|
3
3
|
|
|
4
|
-
import { createReactRenderElement, KolButton, KolInputText,
|
|
4
|
+
import { createReactRenderElement, KolButton, KolInputText, KolTableStateful } from '@public-ui/react';
|
|
5
5
|
|
|
6
6
|
import { getRoot } from '../../shares/react-roots';
|
|
7
7
|
import { SampleDescription } from '../SampleDescription';
|
|
@@ -80,11 +80,11 @@ const HEADERS: KoliBriTableHeaders = {
|
|
|
80
80
|
render: (el, cell) => {
|
|
81
81
|
el.innerHTML = `<strong>${DATE_FORMATTER.format(cell.label as unknown as Date)}</strong>`;
|
|
82
82
|
},
|
|
83
|
-
|
|
83
|
+
compareFn: (data0, data1) => (data0 as Data).date.getTime() - (data1 as Data).date.getTime(),
|
|
84
84
|
},
|
|
85
85
|
{
|
|
86
86
|
label: 'Action (react)',
|
|
87
|
-
key: '
|
|
87
|
+
key: 'action',
|
|
88
88
|
width: '20em',
|
|
89
89
|
|
|
90
90
|
/* Example 4: Render function using React */
|
|
@@ -112,9 +112,9 @@ const HEADERS: KoliBriTableHeaders = {
|
|
|
112
112
|
export const TableRenderCell: FC = () => (
|
|
113
113
|
<>
|
|
114
114
|
<SampleDescription>
|
|
115
|
-
<p>This sample shows
|
|
115
|
+
<p>This sample shows KolTableStateful using React render functions for the cell contents.</p>
|
|
116
116
|
</SampleDescription>
|
|
117
117
|
|
|
118
|
-
<
|
|
118
|
+
<KolTableStateful _label="Sort by date column" _minWidth="auto" _data={DATA} _headers={HEADERS} className="w-full" />
|
|
119
119
|
</>
|
|
120
120
|
);
|
|
@@ -14,23 +14,25 @@ import { TableStatelessWithSingleSelection } from './stateless-with-single-selec
|
|
|
14
14
|
import { TableWithPagination } from './with-pagination';
|
|
15
15
|
import { InteractiveChildElements } from './interactive-child-elements';
|
|
16
16
|
import { MultiSortTable } from './multi-sort';
|
|
17
|
+
import { PredefinedSettings } from './predefined-settings';
|
|
17
18
|
|
|
18
19
|
export const TABLE_ROUTES: Routes = {
|
|
19
20
|
table: {
|
|
20
21
|
'column-alignment': TableColumnAlignment,
|
|
21
22
|
'complex-headers': TableComplexHeaders,
|
|
22
23
|
'horizontal-scrollbar': TableHorizontalScrollbar,
|
|
24
|
+
'interactive-child-elements': InteractiveChildElements,
|
|
25
|
+
'multi-sort': MultiSortTable,
|
|
23
26
|
'pagination-position': PaginationPosition,
|
|
27
|
+
'predefined-settings': PredefinedSettings,
|
|
24
28
|
'render-cell': TableRenderCell,
|
|
25
29
|
'sort-data': TableSortData,
|
|
26
|
-
'with-footer': TableWithFooter,
|
|
27
30
|
'stateful-with-selection': TableStatefulWithSelection,
|
|
28
31
|
'stateful-with-single-selection': TableStatefulWithSingleSelection,
|
|
32
|
+
stateless: TableStateless,
|
|
29
33
|
'stateless-with-selection': TableStatelessWithSelection,
|
|
30
34
|
'stateless-with-single-selection': TableStatelessWithSingleSelection,
|
|
35
|
+
'with-footer': TableWithFooter,
|
|
31
36
|
'with-pagination': TableWithPagination,
|
|
32
|
-
'interactive-child-elements': InteractiveChildElements,
|
|
33
|
-
stateless: TableStateless,
|
|
34
|
-
'multi-sort': MultiSortTable,
|
|
35
37
|
},
|
|
36
38
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { FC } from 'react';
|
|
2
2
|
import React from 'react';
|
|
3
3
|
|
|
4
|
-
import { KolHeading,
|
|
4
|
+
import { KolHeading, KolTableStateful } from '@public-ui/react';
|
|
5
5
|
import type { KoliBriTableHeaders } from '@public-ui/components';
|
|
6
6
|
import type { Data } from './test-data';
|
|
7
7
|
import { DATA } from './test-data';
|
|
@@ -22,12 +22,11 @@ const HEADERS_HORIZONTAL: KoliBriTableHeaders = {
|
|
|
22
22
|
key: 'date',
|
|
23
23
|
textAlign: 'center',
|
|
24
24
|
render: (_el, _cell, tupel) => DATE_FORMATTER.format((tupel as Data).date),
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
}),
|
|
25
|
+
compareFn: (data0, data1) => {
|
|
26
|
+
if ((data0 as Data).date < (data1 as Data).date) return -1;
|
|
27
|
+
else if ((data1 as Data).date < (data0 as Data).date) return 1;
|
|
28
|
+
else return 0;
|
|
29
|
+
},
|
|
31
30
|
},
|
|
32
31
|
],
|
|
33
32
|
],
|
|
@@ -42,12 +41,11 @@ const HEADERS_VERTICAL: KoliBriTableHeaders = {
|
|
|
42
41
|
key: 'date',
|
|
43
42
|
textAlign: 'center',
|
|
44
43
|
render: (_el, _cell, tupel) => DATE_FORMATTER.format((tupel as Data).date),
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
}),
|
|
44
|
+
compareFn: (data0, data1) => {
|
|
45
|
+
if ((data0 as Data).date < (data1 as Data).date) return -1;
|
|
46
|
+
else if ((data1 as Data).date < (data0 as Data).date) return 1;
|
|
47
|
+
else return 0;
|
|
48
|
+
},
|
|
51
49
|
},
|
|
52
50
|
],
|
|
53
51
|
],
|
|
@@ -56,17 +54,17 @@ const HEADERS_VERTICAL: KoliBriTableHeaders = {
|
|
|
56
54
|
export const TableSortData: FC = () => (
|
|
57
55
|
<>
|
|
58
56
|
<SampleDescription>
|
|
59
|
-
<p>This sample shows
|
|
57
|
+
<p>This sample shows KolTableStateful with sortable columns. The sort-order can be changed by clicking the "date" header column.</p>
|
|
60
58
|
</SampleDescription>
|
|
61
59
|
|
|
62
60
|
<section className="w-full grid gap-4">
|
|
63
61
|
<section className="grid gap-4">
|
|
64
|
-
<KolHeading _level={2} _label="Vertical" />
|
|
65
|
-
<
|
|
62
|
+
<KolHeading _level={2} _label="Vertical headers" />
|
|
63
|
+
<KolTableStateful _label="Sort a date column" _minWidth="auto" _data={DATA.slice(0, 10)} _headers={HEADERS_VERTICAL} className="block" />
|
|
66
64
|
</section>
|
|
67
65
|
<section className="grid gap-4">
|
|
68
|
-
<KolHeading _level={2} _label="Horizontal" />
|
|
69
|
-
<
|
|
66
|
+
<KolHeading _level={2} _label="Horizontal headers" />
|
|
67
|
+
<KolTableStateful _label="Sort a date column" _minWidth="auto" _data={DATA} _headers={HEADERS_HORIZONTAL} className="block" />
|
|
70
68
|
</section>
|
|
71
69
|
</section>
|
|
72
70
|
</>
|
|
@@ -1,15 +1,17 @@
|
|
|
1
1
|
import type { FC } from 'react';
|
|
2
2
|
import React, { useEffect, useRef, useState } from 'react';
|
|
3
|
-
import { KolButton, KolTableStateful
|
|
3
|
+
import { createReactRenderElement, KolButton, KolTableStateful } from '@public-ui/react';
|
|
4
4
|
import { SampleDescription } from '../SampleDescription';
|
|
5
|
-
import type { KoliBriTableDataType, KoliBriTableSelection } from '@public-ui/components';
|
|
5
|
+
import type { KoliBriTableCell, KoliBriTableDataType, KoliBriTableSelection } from '@public-ui/components';
|
|
6
|
+
import { KolEvent } from '@public-ui/components';
|
|
6
7
|
import { getRoot } from '../../shares/react-roots';
|
|
7
|
-
import type { KoliBriTableCell } from '@public-ui/components';
|
|
8
8
|
import { useToasterService } from '../../hooks/useToasterService';
|
|
9
9
|
|
|
10
10
|
const DATA = [
|
|
11
11
|
{ id: '1001', name: 'Foo Bar', internalIdentifier: `AAA1001` },
|
|
12
12
|
{ id: '1002', name: 'Foo Baz', internalIdentifier: `AAA1002` },
|
|
13
|
+
{ id: '1003', name: 'This row is always unchecked', internalIdentifier: `AAA1003` },
|
|
14
|
+
{ id: '1004', name: 'This row is always checked', internalIdentifier: `AAA1004` },
|
|
13
15
|
];
|
|
14
16
|
type Data = (typeof DATA)[0];
|
|
15
17
|
|
|
@@ -28,7 +30,8 @@ export const TableStatefulWithSelection: FC = () => {
|
|
|
28
30
|
|
|
29
31
|
const selection: KoliBriTableSelection = {
|
|
30
32
|
label: (row) => `Selection for ${(row as Data).name}`,
|
|
31
|
-
selectedKeys: selectedValue ? selectedValue.map((element) => element.internalIdentifier) : [],
|
|
33
|
+
selectedKeys: selectedValue ? selectedValue.map((element) => element.internalIdentifier) : ['AAA1004'],
|
|
34
|
+
disabledKeys: ['AAA1003', 'AAA1004'],
|
|
32
35
|
keyPropertyName: 'internalIdentifier',
|
|
33
36
|
};
|
|
34
37
|
|
|
@@ -48,11 +51,11 @@ export const TableStatefulWithSelection: FC = () => {
|
|
|
48
51
|
|
|
49
52
|
useEffect(() => {
|
|
50
53
|
// @ts-expect-error https://github.com/Microsoft/TypeScript/issues/28357
|
|
51
|
-
kolTableStatefulRef.current?.addEventListener(
|
|
54
|
+
kolTableStatefulRef.current?.addEventListener(KolEvent.selectionChange, handleSelectionChangeEvent);
|
|
52
55
|
|
|
53
56
|
return () => {
|
|
54
57
|
// @ts-expect-error https://github.com/Microsoft/TypeScript/issues/28357
|
|
55
|
-
kolTableStatefulRef.current?.removeEventListener(
|
|
58
|
+
kolTableStatefulRef.current?.removeEventListener(KolEvent.selectionChange, handleSelectionChangeEvent);
|
|
56
59
|
};
|
|
57
60
|
}, [kolTableStatefulRef]);
|
|
58
61
|
|
|
@@ -69,6 +72,7 @@ export const TableStatefulWithSelection: FC = () => {
|
|
|
69
72
|
<section className="w-full">
|
|
70
73
|
<KolTableStateful
|
|
71
74
|
_label="Table with selection checkboxes"
|
|
75
|
+
_minWidth="auto"
|
|
72
76
|
_headers={{
|
|
73
77
|
horizontal: [
|
|
74
78
|
[
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import type { FC } from 'react';
|
|
2
2
|
import React, { useEffect, useRef, useState } from 'react';
|
|
3
|
-
import { KolButton, KolTableStateful
|
|
3
|
+
import { createReactRenderElement, KolButton, KolTableStateful } from '@public-ui/react';
|
|
4
4
|
import { SampleDescription } from '../SampleDescription';
|
|
5
|
-
import type { KoliBriTableDataType, KoliBriTableSelection } from '@public-ui/components';
|
|
5
|
+
import type { KoliBriTableCell, KoliBriTableDataType, KoliBriTableSelection } from '@public-ui/components';
|
|
6
|
+
import { KolEvent } from '@public-ui/components';
|
|
6
7
|
import { getRoot } from '../../shares/react-roots';
|
|
7
|
-
import type { KoliBriTableCell } from '@public-ui/components';
|
|
8
8
|
import { useToasterService } from '../../hooks/useToasterService';
|
|
9
9
|
|
|
10
10
|
const DATA = [
|
|
@@ -50,11 +50,11 @@ export const TableStatefulWithSingleSelection: FC = () => {
|
|
|
50
50
|
|
|
51
51
|
useEffect(() => {
|
|
52
52
|
// @ts-expect-error https://github.com/Microsoft/TypeScript/issues/28357
|
|
53
|
-
kolTableStatefulRef.current?.addEventListener(
|
|
53
|
+
kolTableStatefulRef.current?.addEventListener(KolEvent.selectionChange, handleSelectionChangeEvent);
|
|
54
54
|
|
|
55
55
|
return () => {
|
|
56
56
|
// @ts-expect-error https://github.com/Microsoft/TypeScript/issues/28357
|
|
57
|
-
kolTableStatefulRef.current?.removeEventListener(
|
|
57
|
+
kolTableStatefulRef.current?.removeEventListener(KolEvent.selectionChange, handleSelectionChangeEvent);
|
|
58
58
|
};
|
|
59
59
|
}, [kolTableStatefulRef]);
|
|
60
60
|
|
|
@@ -71,6 +71,7 @@ export const TableStatefulWithSingleSelection: FC = () => {
|
|
|
71
71
|
<section className="w-full">
|
|
72
72
|
<KolTableStateful
|
|
73
73
|
_label="Table with selection radio"
|
|
74
|
+
_minWidth="auto"
|
|
74
75
|
_headers={{
|
|
75
76
|
horizontal: [
|
|
76
77
|
[
|
|
@@ -1,15 +1,17 @@
|
|
|
1
1
|
import type { FC } from 'react';
|
|
2
|
-
import React, { useEffect,
|
|
3
|
-
import { KolButton, KolTableStateless
|
|
2
|
+
import React, { useEffect, useRef, useState } from 'react';
|
|
3
|
+
import { createReactRenderElement, KolButton, KolTableStateless } from '@public-ui/react';
|
|
4
4
|
import { SampleDescription } from '../SampleDescription';
|
|
5
|
-
import type { KoliBriTableSelection } from '@public-ui/components';
|
|
5
|
+
import type { KoliBriTableCell, KoliBriTableSelection } from '@public-ui/components';
|
|
6
|
+
import { KolEvent } from '@public-ui/components';
|
|
6
7
|
import { getRoot } from '../../shares/react-roots';
|
|
7
|
-
import type { KoliBriTableCell } from '@public-ui/components';
|
|
8
8
|
import { useToasterService } from '../../hooks/useToasterService';
|
|
9
9
|
|
|
10
10
|
const DATA = [
|
|
11
11
|
{ id: '1001', name: 'Foo Bar', internalIdentifier: `AAA1001` },
|
|
12
12
|
{ id: '1002', name: 'Foo Baz', internalIdentifier: `AAA1002` },
|
|
13
|
+
{ id: '1003', name: 'This row is always unchecked', internalIdentifier: `AAA1003` },
|
|
14
|
+
{ id: '1004', name: 'This row is always checked', internalIdentifier: `AAA1004` },
|
|
13
15
|
];
|
|
14
16
|
type Data = (typeof DATA)[0];
|
|
15
17
|
|
|
@@ -24,12 +26,13 @@ function KolButtonWrapper({ label }: { label: string }) {
|
|
|
24
26
|
}
|
|
25
27
|
|
|
26
28
|
export const TableStatelessWithSelection: FC = () => {
|
|
27
|
-
const [selectedKeys, setSelectedKeys] = useState(['AAA1002']);
|
|
29
|
+
const [selectedKeys, setSelectedKeys] = useState(['AAA1002', 'AAA1004']);
|
|
28
30
|
|
|
29
31
|
const selection: KoliBriTableSelection = {
|
|
30
32
|
label: (row) => `Selection for ${(row as Data).name}`,
|
|
31
33
|
selectedKeys,
|
|
32
34
|
keyPropertyName: 'internalIdentifier',
|
|
35
|
+
disabledKeys: ['AAA1003', 'AAA1004'],
|
|
33
36
|
};
|
|
34
37
|
|
|
35
38
|
const kolTableStatelessRef = useRef<HTMLKolTableStatelessElement>(null);
|
|
@@ -44,11 +47,11 @@ export const TableStatelessWithSelection: FC = () => {
|
|
|
44
47
|
|
|
45
48
|
useEffect(() => {
|
|
46
49
|
// @ts-expect-error https://github.com/Microsoft/TypeScript/issues/28357
|
|
47
|
-
kolTableStatelessRef.current?.addEventListener(
|
|
50
|
+
kolTableStatelessRef.current?.addEventListener(KolEvent.selectionChange, handleSelectionChangeEvent);
|
|
48
51
|
|
|
49
52
|
return () => {
|
|
50
53
|
// @ts-expect-error https://github.com/Microsoft/TypeScript/issues/28357
|
|
51
|
-
kolTableStatelessRef.current?.removeEventListener(
|
|
54
|
+
kolTableStatelessRef.current?.removeEventListener(KolEvent.selectionChange, handleSelectionChangeEvent);
|
|
52
55
|
};
|
|
53
56
|
}, [kolTableStatelessRef]);
|
|
54
57
|
|
|
@@ -65,6 +68,7 @@ export const TableStatelessWithSelection: FC = () => {
|
|
|
65
68
|
<section className="w-full">
|
|
66
69
|
<KolTableStateless
|
|
67
70
|
_label="Table with selection checkboxes"
|
|
71
|
+
_minWidth="auto"
|
|
68
72
|
_headerCells={{
|
|
69
73
|
horizontal: [
|
|
70
74
|
[
|
|
@@ -1,15 +1,16 @@
|
|
|
1
1
|
import type { FC } from 'react';
|
|
2
|
-
import React, { useEffect,
|
|
3
|
-
import { KolButton, KolTableStateless
|
|
2
|
+
import React, { useEffect, useRef, useState } from 'react';
|
|
3
|
+
import { createReactRenderElement, KolButton, KolTableStateless } from '@public-ui/react';
|
|
4
4
|
import { SampleDescription } from '../SampleDescription';
|
|
5
|
-
import type { KoliBriTableSelection } from '@public-ui/components';
|
|
5
|
+
import type { KoliBriTableCell, KoliBriTableSelection } from '@public-ui/components';
|
|
6
|
+
import { KolEvent } from '@public-ui/components';
|
|
6
7
|
import { getRoot } from '../../shares/react-roots';
|
|
7
|
-
import type { KoliBriTableCell } from '@public-ui/components';
|
|
8
8
|
import { useToasterService } from '../../hooks/useToasterService';
|
|
9
9
|
|
|
10
10
|
const DATA = [
|
|
11
11
|
{ id: '1001', name: 'Foo Bar', internalIdentifier: `AAA1001` },
|
|
12
12
|
{ id: '1002', name: 'Foo Baz', internalIdentifier: `AAA1002` },
|
|
13
|
+
{ id: '1003', name: 'Foo Disabled', internalIdentifier: `AAA1003` },
|
|
13
14
|
];
|
|
14
15
|
type Data = (typeof DATA)[0];
|
|
15
16
|
|
|
@@ -30,6 +31,7 @@ export const TableStatelessWithSingleSelection: FC = () => {
|
|
|
30
31
|
label: (row) => `Selection for ${(row as Data).name}`,
|
|
31
32
|
multiple: false,
|
|
32
33
|
selectedKeys,
|
|
34
|
+
disabledKeys: ['AAA1003'],
|
|
33
35
|
keyPropertyName: 'internalIdentifier',
|
|
34
36
|
};
|
|
35
37
|
|
|
@@ -45,11 +47,11 @@ export const TableStatelessWithSingleSelection: FC = () => {
|
|
|
45
47
|
|
|
46
48
|
useEffect(() => {
|
|
47
49
|
// @ts-expect-error https://github.com/Microsoft/TypeScript/issues/28357
|
|
48
|
-
kolTableStatelessRef.current?.addEventListener(
|
|
50
|
+
kolTableStatelessRef.current?.addEventListener(KolEvent.selectionChange, handleSelectionChangeEvent);
|
|
49
51
|
|
|
50
52
|
return () => {
|
|
51
53
|
// @ts-expect-error https://github.com/Microsoft/TypeScript/issues/28357
|
|
52
|
-
kolTableStatelessRef.current?.removeEventListener(
|
|
54
|
+
kolTableStatelessRef.current?.removeEventListener(KolEvent.selectionChange, handleSelectionChangeEvent);
|
|
53
55
|
};
|
|
54
56
|
}, [kolTableStatelessRef]);
|
|
55
57
|
|
|
@@ -66,6 +68,7 @@ export const TableStatelessWithSingleSelection: FC = () => {
|
|
|
66
68
|
<section className="w-full">
|
|
67
69
|
<KolTableStateless
|
|
68
70
|
_label="Table with selection checkboxes"
|
|
71
|
+
_minWidth="auto"
|
|
69
72
|
_headerCells={{
|
|
70
73
|
horizontal: [
|
|
71
74
|
[
|
|
@@ -1,17 +1,18 @@
|
|
|
1
1
|
import type { FC } from 'react';
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import {
|
|
3
|
+
import { KolTableStateful } from '@public-ui/react';
|
|
4
4
|
import { SampleDescription } from '../SampleDescription';
|
|
5
5
|
|
|
6
6
|
export const TableWithFooter: FC = () => (
|
|
7
7
|
<>
|
|
8
8
|
<SampleDescription>
|
|
9
|
-
<p>This sample shows
|
|
9
|
+
<p>This sample shows KolTableStateful with footer data.</p>
|
|
10
10
|
</SampleDescription>
|
|
11
11
|
|
|
12
|
-
<
|
|
12
|
+
<KolTableStateful
|
|
13
13
|
className="w-full"
|
|
14
14
|
_label="Business hours"
|
|
15
|
+
_minWidth="auto"
|
|
15
16
|
_headers={{
|
|
16
17
|
horizontal: [
|
|
17
18
|
[
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { FC } from 'react';
|
|
2
2
|
import React from 'react';
|
|
3
3
|
|
|
4
|
-
import {
|
|
4
|
+
import { KolTableStateful } from '@public-ui/react';
|
|
5
5
|
|
|
6
6
|
import { DATE_FORMATTER } from './formatter';
|
|
7
7
|
import { SampleDescription } from '../SampleDescription';
|
|
@@ -23,10 +23,10 @@ const PAGINATION: KoliBriTablePaginationProps = { _page: 2 };
|
|
|
23
23
|
export const TableWithPagination: FC = () => (
|
|
24
24
|
<>
|
|
25
25
|
<SampleDescription>
|
|
26
|
-
<p>This sample shows how
|
|
26
|
+
<p>This sample shows how KolTableStateful can be navigated using a pagination.</p>
|
|
27
27
|
</SampleDescription>
|
|
28
28
|
<div className="w-full">
|
|
29
|
-
<
|
|
29
|
+
<KolTableStateful _label="Table description" _minWidth="auto" _data={DATA} _headers={HEADERS} _pagination={PAGINATION}></KolTableStateful>
|
|
30
30
|
</div>
|
|
31
31
|
</>
|
|
32
32
|
);
|
|
@@ -1,14 +1,19 @@
|
|
|
1
1
|
import React, { forwardRef } from 'react';
|
|
2
|
-
|
|
3
2
|
import { KolTextarea } 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 TextareaCases = forwardRef<HTMLKolTextareaElement, Components.KolTextarea>(function TextareaCases(props, ref) {
|
|
9
8
|
return (
|
|
10
9
|
<div className="grid gap-4">
|
|
11
|
-
<
|
|
10
|
+
<div className="black-background">
|
|
11
|
+
<KolTextarea {...props} ref={ref} _placeholder="Placeholder" _label="Text" />
|
|
12
|
+
</div>
|
|
13
|
+
<KolTextarea {...props} _placeholder="Placeholder" _required _msg={{ _type: 'error', _description: ERROR_MSG }} _label="Text" _touched _hint={HINT_MSG} />
|
|
14
|
+
<KolTextarea {...props} _placeholder="Placeholder" _label="Text" _msg={{ _type: 'info', _description: 'Just a hint' }} />
|
|
15
|
+
<KolTextarea {...props} _placeholder="Placeholder" _label="Text" _msg={{ _type: 'warning', _description: 'Small warning' }} />
|
|
16
|
+
<KolTextarea {...props} _placeholder="Placeholder" _label="Text" _msg={{ _type: 'success', _description: 'Success message' }} />
|
|
12
17
|
<KolTextarea {...props} ref={ref} _accessKey="T" _label="Text (3 rows)" _rows={3} />
|
|
13
18
|
<KolTextarea {...props} ref={ref} _label="Text (placeholder)" _rows={3} _placeholder="Placeholder" />
|
|
14
19
|
<KolTextarea {...props} ref={ref} _label="Text (disabled & placeholder)" _rows={3} _placeholder="Placeholder" _disabled />
|