@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
package/dist/main.js.LICENSE.txt
CHANGED
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
*/
|
|
34
34
|
|
|
35
35
|
/**
|
|
36
|
-
* @remix-run/router v1.
|
|
36
|
+
* @remix-run/router v1.23.0
|
|
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.
|
|
47
|
+
* React Router v6.30.0
|
|
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.10",
|
|
4
4
|
"description": "This app contains samples for the KoliBri/Public UI",
|
|
5
5
|
"license": "EUPL-1.2",
|
|
6
6
|
"repository": {
|
|
@@ -11,54 +11,58 @@
|
|
|
11
11
|
"@leanup/stack": "1.3.54",
|
|
12
12
|
"@leanup/stack-react": "1.3.54",
|
|
13
13
|
"@leanup/stack-webpack": "1.3.54",
|
|
14
|
-
"@playwright/test": "1.49.
|
|
14
|
+
"@playwright/test": "1.49.1",
|
|
15
15
|
"@stencil/core": "4.22.3",
|
|
16
|
-
"@types/node": "
|
|
16
|
+
"@types/node": "22.14.1",
|
|
17
17
|
"@types/react": "18.3.4",
|
|
18
|
-
"@types/react-dom": "18.3.
|
|
19
|
-
"@typescript-eslint/eslint-plugin": "8.
|
|
20
|
-
"@typescript-eslint/parser": "8.
|
|
18
|
+
"@types/react-dom": "18.3.5",
|
|
19
|
+
"@typescript-eslint/eslint-plugin": "8.27.0",
|
|
20
|
+
"@typescript-eslint/parser": "8.27.0",
|
|
21
21
|
"@unocss/preset-uno": "0.58.9",
|
|
22
22
|
"@unocss/webpack": "0.58.9",
|
|
23
|
-
"adopted-style-sheets": "1.1.
|
|
23
|
+
"adopted-style-sheets": "1.1.8",
|
|
24
24
|
"ajv": "8.17.1",
|
|
25
25
|
"chromedriver": "130.0.4",
|
|
26
26
|
"cpy-cli": "5.0.0",
|
|
27
27
|
"cross-env": "7.0.3",
|
|
28
28
|
"css-loader": "7.1.2",
|
|
29
|
-
"esbuild-loader": "4.
|
|
29
|
+
"esbuild-loader": "4.3.0",
|
|
30
30
|
"eslint": "^8",
|
|
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
|
-
"knip": "5.
|
|
37
|
+
"knip": "5.46.0",
|
|
38
38
|
"less-loader": "12.2.0",
|
|
39
39
|
"mini-css-extract-plugin": "2.9.2",
|
|
40
40
|
"nightwatch-axe-verbose": "2.3.1",
|
|
41
|
-
"npm-run-
|
|
41
|
+
"npm-run-all2": "7.0.2",
|
|
42
42
|
"postcss-loader": "8.1.1",
|
|
43
|
-
"prettier": "3.
|
|
43
|
+
"prettier": "3.5.3",
|
|
44
44
|
"react": "18.3.1",
|
|
45
45
|
"react-dom": "18.3.1",
|
|
46
|
-
"react-number-format": "5.4.
|
|
47
|
-
"react-router": "6.
|
|
48
|
-
"react-router-dom": "6.
|
|
46
|
+
"react-number-format": "5.4.3",
|
|
47
|
+
"react-router": "6.30.0",
|
|
48
|
+
"react-router-dom": "6.30.0",
|
|
49
49
|
"rimraf": "6.0.1",
|
|
50
|
-
"sass-loader": "16.0.
|
|
50
|
+
"sass-loader": "16.0.5",
|
|
51
51
|
"string-replace-loader": "3.1.0",
|
|
52
|
+
"stylelint": "16.17.0",
|
|
53
|
+
"stylelint-config-recommended-scss": "14.1.0",
|
|
54
|
+
"stylelint-config-standard": "37.0.0",
|
|
55
|
+
"stylelint-scss": "6.11.1",
|
|
52
56
|
"tslib": "2.8.1",
|
|
53
|
-
"typescript": "5.
|
|
54
|
-
"webpack": "5.
|
|
57
|
+
"typescript": "5.8.2",
|
|
58
|
+
"webpack": "5.98.0",
|
|
55
59
|
"webpack-cli": "5.1.4",
|
|
56
|
-
"webpack-dev-server": "5.
|
|
60
|
+
"webpack-dev-server": "5.2.0",
|
|
57
61
|
"world_countries_lists": "2.9.0",
|
|
58
|
-
"yup": "1.
|
|
59
|
-
"@public-ui/components": "3.0.0-rc.
|
|
60
|
-
"@public-ui/
|
|
61
|
-
"@public-ui/
|
|
62
|
+
"yup": "1.6.1",
|
|
63
|
+
"@public-ui/components": "3.0.0-rc.10",
|
|
64
|
+
"@public-ui/themes": "3.0.0-rc.10",
|
|
65
|
+
"@public-ui/react": "3.0.0-rc.10"
|
|
62
66
|
},
|
|
63
67
|
"files": [
|
|
64
68
|
".eslintignore",
|
|
@@ -75,13 +79,17 @@
|
|
|
75
79
|
"webpack.config.js"
|
|
76
80
|
],
|
|
77
81
|
"scripts": {
|
|
82
|
+
"prebuild": "pnpm -r --filter=@public-ui/themes build",
|
|
78
83
|
"build": "rimraf dist && cross-env NODE_ENV=production webpack",
|
|
79
84
|
"build:deps": "pnpm --filter @public-ui/sample-react^... build",
|
|
80
85
|
"format": "prettier --check src",
|
|
81
|
-
"lint": "
|
|
86
|
+
"lint": "pnpm lint:eslint && pnpm lint:stylelint && pnpm lint:tsc",
|
|
87
|
+
"lint:eslint": "eslint src",
|
|
88
|
+
"lint:stylelint": "stylelint \"src/**/*.{css,scss}\"",
|
|
89
|
+
"lint:tsc": "tsc --noemit",
|
|
82
90
|
"postinstall": "pnpm exec playwright install",
|
|
83
91
|
"prepare:components-assets": "cpy \"node_modules/@public-ui/components/assets/**/*\" public/assets --dot",
|
|
84
|
-
"prepare:themes-assets": "cpy \"node_modules/@public-ui/
|
|
92
|
+
"prepare:themes-assets": "cpy \"node_modules/@public-ui/theme-default/assets/**/*\" public/assets --dot",
|
|
85
93
|
"serve": "cross-env NODE_ENV=development webpack serve --devtool=source-map",
|
|
86
94
|
"start": "npm run serve -- --open",
|
|
87
95
|
"test": "pnpm test:e2e",
|
package/public/index.html
CHANGED
|
@@ -6,6 +6,7 @@
|
|
|
6
6
|
<meta name="description" content="Webapp demonstrating KolBri-components with React." />
|
|
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
|
+
<!-- We include all the important fonts in the index.html here so that they are available for the theme tests. -->
|
|
9
10
|
<link rel="stylesheet" href="assets/bundes/style.css" />
|
|
10
11
|
<link rel="stylesheet" href="assets/codicons/codicon.css" />
|
|
11
12
|
<link rel="stylesheet" href="assets/fontawesome-free/css/all.min.css" />
|
package/src/App.tsx
CHANGED
|
@@ -91,8 +91,6 @@ const getRouteTree = (routes: MyRoutes): ReturnType<typeof Route>[] => {
|
|
|
91
91
|
const ROUTE_LIST = getRouteList(ROUTES);
|
|
92
92
|
const ROUTE_TREE = getRouteTree(ROUTES);
|
|
93
93
|
|
|
94
|
-
console.log('ROUTE_LIST', ROUTE_LIST);
|
|
95
|
-
|
|
96
94
|
const componentList: Map<string, Option<string>> = new Map();
|
|
97
95
|
ROUTE_LIST.forEach((route) => {
|
|
98
96
|
const routeSplit = route.split('/');
|
|
@@ -139,7 +137,7 @@ export const App: FC = () => {
|
|
|
139
137
|
)}
|
|
140
138
|
|
|
141
139
|
<main className="flex flex-col items-stretch p-4" id="route-container">
|
|
142
|
-
{!hideMenus && isDraftTheme(theme) && <KolBadge className="block mb-3" _label="
|
|
140
|
+
{!hideMenus && isDraftTheme(theme) && <KolBadge className="block mb-3" _label="In progress" _color="#db5461" />}
|
|
143
141
|
<Routes>
|
|
144
142
|
{ROUTE_TREE}
|
|
145
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
|
+
}
|
|
@@ -6,36 +6,48 @@ import { PUBLIC_CODE_COMPONENT_URL, PUBLIC_DOC_COMPONENT_URL } from '../shares/c
|
|
|
6
6
|
import { KolLink } from '@public-ui/react';
|
|
7
7
|
|
|
8
8
|
import { HideMenusContext } from '../shares/HideMenusContext';
|
|
9
|
-
|
|
10
|
-
const getLocationPaths = () => {
|
|
11
|
-
return location.hash.split('/').slice(1);
|
|
12
|
-
};
|
|
9
|
+
import { useLocation } from 'react-router';
|
|
13
10
|
|
|
14
11
|
export const SampleDescription: FC<PropsWithChildren> = (props) => {
|
|
15
12
|
const hideMenus = useContext(HideMenusContext);
|
|
13
|
+
const location = useLocation();
|
|
14
|
+
const paths = location.pathname.split('/').slice(1);
|
|
16
15
|
|
|
17
16
|
const docLink = useMemo(() => {
|
|
18
|
-
const paths = getLocationPaths();
|
|
19
17
|
return paths[0] === 'scenarios'
|
|
20
18
|
? null // Scenarios are not a component and hence have no documentation.
|
|
21
19
|
: `${PUBLIC_DOC_COMPONENT_URL}/${paths[0]}`;
|
|
22
20
|
}, [location.hash]);
|
|
23
21
|
|
|
24
22
|
const codeLink = useMemo(() => {
|
|
25
|
-
const paths = getLocationPaths();
|
|
26
23
|
return paths[0] === 'scenarios'
|
|
27
24
|
? null // Scenarios are not a component and hence have no documentation.
|
|
28
25
|
: `${PUBLIC_CODE_COMPONENT_URL}/${paths[0]}/${paths[1]}.tsx`;
|
|
29
26
|
}, [location.hash]);
|
|
30
27
|
|
|
31
|
-
return
|
|
32
|
-
|
|
33
|
-
<
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
28
|
+
return (
|
|
29
|
+
<>
|
|
30
|
+
<h1 className="visually-hidden">{location.pathname.replace(/\//g, ' ')}</h1>
|
|
31
|
+
{hideMenus ? null : (
|
|
32
|
+
<div className="grid sm:flex gap-4 justify-between pb-sm border-b-1 border-b-solid border-gray mb-2">
|
|
33
|
+
<div className="indented-text">{props.children}</div>
|
|
34
|
+
<ul className="flex flex-wrap gap-2 list-none m-0 p-0">
|
|
35
|
+
{codeLink && (
|
|
36
|
+
<li>
|
|
37
|
+
<KolLink _href={codeLink} _label="Code" _target="_blank" />
|
|
38
|
+
</li>
|
|
39
|
+
)}
|
|
40
|
+
{docLink && (
|
|
41
|
+
<li>
|
|
42
|
+
<KolLink _href={docLink} _label="Documentation" _target="_blank" />
|
|
43
|
+
</li>
|
|
44
|
+
)}
|
|
45
|
+
<li>
|
|
46
|
+
<KolLink _href={`#${location.pathname}?hideMenus`} _label="Standalone example" _target="_blank" />
|
|
47
|
+
</li>
|
|
48
|
+
</ul>
|
|
49
|
+
</div>
|
|
50
|
+
)}
|
|
51
|
+
</>
|
|
40
52
|
);
|
|
41
53
|
};
|
|
@@ -7,6 +7,34 @@ import { THEME_OPTIONS } from '../shares/theme';
|
|
|
7
7
|
|
|
8
8
|
import type { Routes } from '../shares/types';
|
|
9
9
|
import Navigation from './Navigation';
|
|
10
|
+
|
|
11
|
+
type BuildInformationProps = {
|
|
12
|
+
buildDate?: string | null;
|
|
13
|
+
commitHash?: string | null;
|
|
14
|
+
};
|
|
15
|
+
const BuildInformation: FC<BuildInformationProps> = ({ buildDate, commitHash }) => {
|
|
16
|
+
if (!buildDate && !commitHash) {
|
|
17
|
+
return '';
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
return (
|
|
21
|
+
<div className="text-sm font-mono color-gray-5 m-t-2">
|
|
22
|
+
{buildDate && commitHash ? ( // date and hash provided
|
|
23
|
+
<>
|
|
24
|
+
Build: {commitHash}
|
|
25
|
+
<br />
|
|
26
|
+
at {buildDate}
|
|
27
|
+
</>
|
|
28
|
+
) : commitHash ? ( // hash only
|
|
29
|
+
`Build: ${commitHash}`
|
|
30
|
+
) : (
|
|
31
|
+
// date only
|
|
32
|
+
`Build date: ${buildDate}`
|
|
33
|
+
)}
|
|
34
|
+
</div>
|
|
35
|
+
);
|
|
36
|
+
};
|
|
37
|
+
|
|
10
38
|
type Props = {
|
|
11
39
|
version: string;
|
|
12
40
|
theme: string;
|
|
@@ -47,16 +75,8 @@ export const Sidebar: FC<Props> = ({ version, theme, routes, routeList, sample,
|
|
|
47
75
|
<KolHeading _label="KoliBri React"></KolHeading>
|
|
48
76
|
<KolVersion _label={version}></KolVersion>
|
|
49
77
|
</div>
|
|
50
|
-
{
|
|
51
|
-
<div className="text-sm font-mono color-gray-5 m-t-2">
|
|
52
|
-
{commitHash ? `Build: ${commitHash}` : ''}
|
|
53
|
-
<br />
|
|
54
|
-
{buildDate ? `at ${buildDate}` : ''}
|
|
55
|
-
</div>
|
|
56
|
-
)}
|
|
57
|
-
|
|
78
|
+
<BuildInformation buildDate={buildDate} commitHash={commitHash} />
|
|
58
79
|
<KolSelect _label="Theme" _options={THEME_OPTIONS} _on={{ onChange: handleThemeSelectChange }} _value={[theme]} class="mt"></KolSelect>
|
|
59
|
-
|
|
60
80
|
<KolHeading _label="Components" _level={2} className="block mt"></KolHeading>
|
|
61
81
|
<div className="flex flex-justify-between flex-items-center mt">
|
|
62
82
|
<KolButton _icons="codicon codicon-arrow-left" _hideLabel _label="Previous component" _on={{ onClick: handlePreviousClick }} />
|
|
@@ -65,7 +85,6 @@ export const Sidebar: FC<Props> = ({ version, theme, routes, routeList, sample,
|
|
|
65
85
|
</span>
|
|
66
86
|
<KolButton _icons="codicon codicon-arrow-right" _hideLabel _label="Next component" _on={{ onClick: handleNextClick }} />
|
|
67
87
|
</div>
|
|
68
|
-
|
|
69
88
|
<Navigation routes={routes} />
|
|
70
89
|
</div>
|
|
71
90
|
</aside>
|
|
@@ -11,7 +11,7 @@ export const BadgeBasic: FC = () => (
|
|
|
11
11
|
<p>KolBadge shows badges with a label, background color and optional icon.</p>
|
|
12
12
|
</SampleDescription>
|
|
13
13
|
|
|
14
|
-
<div className="flex gap-2">
|
|
14
|
+
<div className="flex flex-wrap gap-2">
|
|
15
15
|
<KolBadge _label="black"></KolBadge>
|
|
16
16
|
<KolBadge _color="#86ffc6" _label="teal"></KolBadge>
|
|
17
17
|
<KolBadge _color="#06539e" _label="blue"></KolBadge>
|
|
@@ -23,7 +23,7 @@ export const BadgeButton: FC = () => (
|
|
|
23
23
|
</p>
|
|
24
24
|
</SampleDescription>
|
|
25
25
|
|
|
26
|
-
<div className="flex gap-2">
|
|
26
|
+
<div className="flex flex-wrap gap-2">
|
|
27
27
|
<KolBadge {...createBadgeProps('black')}></KolBadge>
|
|
28
28
|
<KolBadge _color="#86ffc6" {...createBadgeProps('teal')}></KolBadge>
|
|
29
29
|
<KolBadge _color="#06539e" {...createBadgeProps('blue')}></KolBadge>
|
|
@@ -19,7 +19,7 @@ export const ButtonBaselined: FC = () => {
|
|
|
19
19
|
<p>This KolButton sample is used for internal testing purposes: It features multiple buttons with and without icons which are vertically aligned.</p>
|
|
20
20
|
</SampleDescription>
|
|
21
21
|
|
|
22
|
-
<div className="flex">
|
|
22
|
+
<div className="flex flex-wrap gap-2">
|
|
23
23
|
<KolButton _label="Label-Text" _on={dummyEventHandler}></KolButton>
|
|
24
24
|
<KolButton _label="Label-Text" _on={dummyEventHandler}></KolButton>
|
|
25
25
|
<KolButton _label="Label-Text" _on={dummyEventHandler}></KolButton>
|
|
@@ -20,10 +20,10 @@ export const ButtonCases: React.FC<ButtonSampleProps> = (props) => {
|
|
|
20
20
|
<KolButton _icons="codicon codicon-heart" _label="Secondary" _variant="secondary" _on={dummyEventHandler} {...other}>
|
|
21
21
|
{children}
|
|
22
22
|
</KolButton>
|
|
23
|
-
<KolButton _icons="codicon codicon-hubot" _label="
|
|
23
|
+
<KolButton _icons="codicon codicon-hubot" _label="Tertiary" _variant="tertiary" _on={dummyEventHandler} {...other}>
|
|
24
24
|
{children}
|
|
25
25
|
</KolButton>
|
|
26
|
-
<KolButton _icons="codicon codicon-hubot" _label="
|
|
26
|
+
<KolButton _icons="codicon codicon-hubot" _label="Normal" _variant="normal" _on={dummyEventHandler} {...other}>
|
|
27
27
|
{children}
|
|
28
28
|
</KolButton>
|
|
29
29
|
<KolButton _icons="codicon codicon-trash" _label="Danger" _variant="danger" _on={dummyEventHandler} {...other}>
|
|
@@ -1,8 +1,61 @@
|
|
|
1
|
-
import { KolButton } from '@public-ui/react';
|
|
2
|
-
import React from 'react';
|
|
1
|
+
import { createReactRenderElement, KolButton, KolHeading, KolTableStateful } from '@public-ui/react';
|
|
3
2
|
import type { FC } from 'react';
|
|
3
|
+
import { useRef } from 'react';
|
|
4
|
+
import React from 'react';
|
|
4
5
|
import { SampleDescription } from '../SampleDescription';
|
|
5
6
|
import { useToasterService } from '../../hooks/useToasterService';
|
|
7
|
+
import { getRoot } from '../../shares/react-roots';
|
|
8
|
+
import type { KoliBriTableHeaders } from '@public-ui/components';
|
|
9
|
+
import { ToasterService } from '@public-ui/components';
|
|
10
|
+
|
|
11
|
+
const RowActions: FC<{ label: string }> = ({ label }) => {
|
|
12
|
+
const toaster = ToasterService.getInstance(document);
|
|
13
|
+
const editButtonRef = useRef<HTMLKolButtonElement | null>(null);
|
|
14
|
+
const deleteButtonRef = useRef<HTMLKolButtonElement | null>(null);
|
|
15
|
+
|
|
16
|
+
const handleEditClick = () => {
|
|
17
|
+
toaster.enqueue({
|
|
18
|
+
label: 'Edit clicked',
|
|
19
|
+
description: `The button "edit" has been clicked for ${label}`,
|
|
20
|
+
type: 'info',
|
|
21
|
+
});
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
const handleDeleteClick = () => {
|
|
25
|
+
toaster.enqueue({
|
|
26
|
+
label: 'Delete clicked',
|
|
27
|
+
description: `The button "delete" has been clicked for ${label}`,
|
|
28
|
+
type: 'warning',
|
|
29
|
+
});
|
|
30
|
+
};
|
|
31
|
+
|
|
32
|
+
const handleKeyUp = (event: React.KeyboardEvent<HTMLDivElement>) => {
|
|
33
|
+
switch (event.code) {
|
|
34
|
+
case 'KeyE':
|
|
35
|
+
void editButtonRef.current?.kolFocus();
|
|
36
|
+
handleEditClick();
|
|
37
|
+
return;
|
|
38
|
+
case 'KeyD':
|
|
39
|
+
void deleteButtonRef.current?.kolFocus();
|
|
40
|
+
handleDeleteClick();
|
|
41
|
+
return;
|
|
42
|
+
}
|
|
43
|
+
};
|
|
44
|
+
|
|
45
|
+
return (
|
|
46
|
+
// eslint-disable-next-line jsx-a11y/no-static-element-interactions
|
|
47
|
+
<div
|
|
48
|
+
style={{
|
|
49
|
+
display: 'flex',
|
|
50
|
+
gap: 'calc(10rem / var(--kolibri-root-font-size, 16))',
|
|
51
|
+
}}
|
|
52
|
+
onKeyUp={handleKeyUp}
|
|
53
|
+
>
|
|
54
|
+
<KolButton ref={editButtonRef} _label={'Edit'} _shortKey={'e'} _on={{ onClick: handleEditClick }} />
|
|
55
|
+
<KolButton ref={deleteButtonRef} _label={'Delete'} _shortKey={'d'} _variant={'danger'} _on={{ onClick: handleDeleteClick }} />
|
|
56
|
+
</div>
|
|
57
|
+
);
|
|
58
|
+
};
|
|
6
59
|
|
|
7
60
|
export const ButtonShortKey: FC = () => {
|
|
8
61
|
const { dummyClickEventHandler } = useToasterService();
|
|
@@ -11,11 +64,50 @@ export const ButtonShortKey: FC = () => {
|
|
|
11
64
|
onClick: dummyClickEventHandler,
|
|
12
65
|
};
|
|
13
66
|
|
|
67
|
+
type Data = {
|
|
68
|
+
label: string;
|
|
69
|
+
};
|
|
70
|
+
const DATA: Data[] = [
|
|
71
|
+
{
|
|
72
|
+
label: 'Row 1',
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
label: 'Row 2',
|
|
76
|
+
},
|
|
77
|
+
];
|
|
78
|
+
|
|
79
|
+
const HEADERS: KoliBriTableHeaders = {
|
|
80
|
+
horizontal: [
|
|
81
|
+
[
|
|
82
|
+
{
|
|
83
|
+
label: 'Label',
|
|
84
|
+
key: 'label',
|
|
85
|
+
textAlign: 'left',
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
label: 'Actions',
|
|
89
|
+
key: 'actions',
|
|
90
|
+
textAlign: 'left',
|
|
91
|
+
|
|
92
|
+
render: (el, cell) => {
|
|
93
|
+
getRoot(createReactRenderElement(el)).render(<RowActions label={(cell.data as Data).label} />);
|
|
94
|
+
},
|
|
95
|
+
},
|
|
96
|
+
],
|
|
97
|
+
],
|
|
98
|
+
};
|
|
99
|
+
|
|
14
100
|
return (
|
|
15
101
|
<>
|
|
16
102
|
<SampleDescription>
|
|
17
103
|
<p>
|
|
18
|
-
|
|
104
|
+
The first sample shows KolButton with short key without functionality. The short key is purely visual. Its functionality needs to be developed
|
|
105
|
+
separately.
|
|
106
|
+
</p>
|
|
107
|
+
<p>
|
|
108
|
+
The second sample showcases a table where each row contains two KolButtons, each with its own shortcut key. To trigger an action, move the focus to
|
|
109
|
+
any of the "Actions" cells and press "e" or "d." Doing so will activate the corresponding action and display a Toast
|
|
110
|
+
notification for demonstration purposes.
|
|
19
111
|
</p>
|
|
20
112
|
</SampleDescription>
|
|
21
113
|
|
|
@@ -34,6 +126,15 @@ export const ButtonShortKey: FC = () => {
|
|
|
34
126
|
_on={dummyEventHandler}
|
|
35
127
|
/>
|
|
36
128
|
</div>
|
|
129
|
+
|
|
130
|
+
<KolHeading _level={2} _label="Interactive sample" className="mt" />
|
|
131
|
+
|
|
132
|
+
<KolTableStateful
|
|
133
|
+
_label={`Move focus within one of the "Actions" cells and press "e" or "d" to trigger an action.`}
|
|
134
|
+
_data={DATA}
|
|
135
|
+
_headers={HEADERS}
|
|
136
|
+
_minWidth="400px"
|
|
137
|
+
/>
|
|
37
138
|
</>
|
|
38
139
|
);
|
|
39
140
|
};
|
|
@@ -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,47 +14,31 @@ 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)} />
|
|
35
31
|
<div className="flex flex-wrap gap-4">
|
|
36
32
|
<KolDrawer ref={drawerElement} _label="I am a drawer" _align={align} _on={{ onClose: () => console.log('Drawer onClose triggered!') }}>
|
|
37
|
-
<
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
33
|
+
<div className={align === 'left' || align == 'right' ? 'drawer-content-vertical' : ''}>
|
|
34
|
+
<p>
|
|
35
|
+
Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
|
|
36
|
+
voluptua.
|
|
37
|
+
</p>
|
|
38
|
+
<KolButton _label="Close drawer" _on={{ onClick: () => drawerElement.current?.close() }} />
|
|
39
|
+
</div>
|
|
42
40
|
</KolDrawer>
|
|
43
41
|
<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
42
|
</div>
|
|
59
43
|
</>
|
|
60
44
|
);
|
|
@@ -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
|
);
|