@public-ui/sample-react 4.0.0-alpha.0 → 4.0.0-alpha.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +21 -2
- package/dist/assets/Alert-DzpS4CJD-CznI58Av.js +2 -0
- package/dist/assets/Alert-DzpS4CJD-CznI58Av.js.map +1 -0
- package/dist/assets/Collapsible-CIER1XyD-CCVXz7W8.js +2 -0
- package/dist/assets/Collapsible-CIER1XyD-CCVXz7W8.js.map +1 -0
- package/dist/assets/CustomSuggestionsOptionsGroup-C6GgxWBC-O703Eyna.js +2 -0
- package/dist/assets/CustomSuggestionsOptionsGroup-C6GgxWBC-O703Eyna.js.map +1 -0
- package/dist/assets/FieldControlStateWrapper-DDYTL8sS-D6Ov-duE.js +2 -0
- package/dist/assets/FieldControlStateWrapper-DDYTL8sS-D6Ov-duE.js.map +1 -0
- package/dist/assets/FormFieldStateWrapper-B3p0ZzG--DmEUXckD.js +2 -0
- package/dist/assets/FormFieldStateWrapper-B3p0ZzG--DmEUXckD.js.map +1 -0
- package/dist/assets/Heading-ClZtMSvA-B-SEEyYN.js +2 -0
- package/dist/assets/Heading-ClZtMSvA-B-SEEyYN.js.map +1 -0
- package/dist/assets/Icon-B8-kh-9q-cdzuq2LQ.js +2 -0
- package/dist/assets/Icon-B8-kh-9q-cdzuq2LQ.js.map +1 -0
- package/dist/assets/Input-CF2Hxzy7-R3WGmdMD.js +2 -0
- package/dist/assets/Input-CF2Hxzy7-R3WGmdMD.js.map +1 -0
- package/dist/assets/InputStateWrapper-BNXEE43D-Dz_72eJ0.js +2 -0
- package/dist/assets/InputStateWrapper-BNXEE43D-Dz_72eJ0.js.map +1 -0
- package/dist/assets/InternalUnderlinedBadgeText-CF6FOiQi-FLLqVWFj.js +2 -0
- package/dist/assets/InternalUnderlinedBadgeText-CF6FOiQi-FLLqVWFj.js.map +1 -0
- package/dist/assets/README.md +1 -0
- package/dist/assets/Span-CNwuRioU-CpQJxJzY.js +2 -0
- package/dist/assets/Span-CNwuRioU-CpQJxJzY.js.map +1 -0
- package/dist/assets/access-and-short-key-Dy2a7Py3-D3FG3jS9.js +2 -0
- package/dist/assets/access-and-short-key-Dy2a7Py3-D3FG3jS9.js.map +1 -0
- package/dist/assets/align-Bcqvz5vw-BBjz1uM7.js +2 -0
- package/dist/assets/align-Bcqvz5vw-BBjz1uM7.js.map +1 -0
- package/dist/assets/align-floating-elements-DUQRrio7-DJAxiHCK.js +2 -0
- package/dist/assets/align-floating-elements-DUQRrio7-DJAxiHCK.js.map +1 -0
- package/dist/assets/associated.controller-CvM-u0FR-BWXALlhJ.js +2 -0
- package/dist/assets/associated.controller-CvM-u0FR-BWXALlhJ.js.map +1 -0
- package/dist/assets/auto-complete-h9OoHuC5-BpT20QvE.js +2 -0
- package/dist/assets/auto-complete-h9OoHuC5-BpT20QvE.js.map +1 -0
- package/dist/assets/button-variant-ueS50zGR-jw3dS8sQ.js +2 -0
- package/dist/assets/button-variant-ueS50zGR-jw3dS8sQ.js.map +1 -0
- package/dist/assets/clsx-eK3rPvPS-B-dksMZM.js +2 -0
- package/dist/assets/clsx-eK3rPvPS-B-dksMZM.js.map +1 -0
- package/dist/assets/codicons/codicon.css +54 -1
- package/dist/assets/codicons/codicon.csv +41 -0
- package/dist/assets/codicons/codicon.svg +1 -1
- package/dist/assets/codicons/codicon.ttf +0 -0
- package/dist/assets/color-DLhBoaj--BGlcAOOS.js +2 -0
- package/dist/assets/color-DLhBoaj--BGlcAOOS.js.map +1 -0
- package/dist/assets/controller-BUJ57XsU-_S7dLy4z.js +2 -0
- package/dist/assets/controller-BUJ57XsU-_S7dLy4z.js.map +1 -0
- package/dist/assets/controller-DKkpnndm-BH5XagBP.js +2 -0
- package/dist/assets/controller-DKkpnndm-BH5XagBP.js.map +1 -0
- package/dist/assets/controller-DLgscExO-DSo9kG6v.js +2 -0
- package/dist/assets/controller-DLgscExO-DSo9kG6v.js.map +1 -0
- package/dist/assets/controller-icon-jwhou2Oz-B9hDiz5F.js +2 -0
- package/dist/assets/controller-icon-jwhou2Oz-B9hDiz5F.js.map +1 -0
- package/dist/assets/controller-q35akpMH-Cy0REM1l.js +2 -0
- package/dist/assets/controller-q35akpMH-Cy0REM1l.js.map +1 -0
- package/dist/assets/custom-class-Dg0c6ST7-D0jJYdlm.js +2 -0
- package/dist/assets/custom-class-Dg0c6ST7-D0jJYdlm.js.map +1 -0
- package/dist/assets/dev.utils-yQD-QKCU-CTXdCWUO.js +14 -0
- package/dist/assets/dev.utils-yQD-QKCU-CTXdCWUO.js.map +1 -0
- package/dist/assets/devtools-Bonmqoiz-Cf7aqlNl.js +14 -0
- package/dist/assets/devtools-Bonmqoiz-Cf7aqlNl.js.map +1 -0
- package/dist/assets/disabled-u5a_azlj-DDthpSns.js +2 -0
- package/dist/assets/disabled-u5a_azlj-DDthpSns.js.map +1 -0
- package/dist/assets/has-closer-DENzUWH2-BVxXP49m.js +2 -0
- package/dist/assets/has-closer-DENzUWH2-BVxXP49m.js.map +1 -0
- package/dist/assets/hide-label-DjBQJOAP-C2BOypr4.js +2 -0
- package/dist/assets/hide-label-DjBQJOAP-C2BOypr4.js.map +1 -0
- package/dist/assets/href-LHUCJ_IZ-CcMJQXzv.js +2 -0
- package/dist/assets/href-LHUCJ_IZ-CcMJQXzv.js.map +1 -0
- package/dist/assets/i18n-CQxlBXNV-Bs_gON2P.js +2 -0
- package/dist/assets/i18n-CQxlBXNV-Bs_gON2P.js.map +1 -0
- package/dist/assets/icons-CmMX8bbY-BsUQMS1k.js +2 -0
- package/dist/assets/icons-CmMX8bbY-BsUQMS1k.js.map +1 -0
- package/dist/assets/image-source-DqpWx57w-DrXvm2N8.js +2 -0
- package/dist/assets/image-source-DqpWx57w-DrXvm2N8.js.map +1 -0
- package/dist/assets/index-Bt2kD2D4.css +1 -0
- package/dist/assets/index-D9ygQgpL.js +22547 -0
- package/dist/assets/index-D9ygQgpL.js.map +1 -0
- package/dist/assets/inline-CeKQgcde-BDWnozYb.js +2 -0
- package/dist/assets/inline-CeKQgcde-BDWnozYb.js.map +1 -0
- package/dist/assets/isObject-DvSELytj-DhzEQer1.js +2 -0
- package/dist/assets/isObject-DvSELytj-DhzEQer1.js.map +1 -0
- package/dist/assets/keyboard-D6PoWr38-BGYQJqo4.js +2 -0
- package/dist/assets/keyboard-D6PoWr38-BGYQJqo4.js.map +1 -0
- package/dist/assets/kol-abbr.entry-CVemTlcS.js +262 -0
- package/dist/assets/kol-abbr.entry-CVemTlcS.js.map +1 -0
- package/dist/assets/kol-accordion.entry-ZE4XHffO.js +262 -0
- package/dist/assets/kol-accordion.entry-ZE4XHffO.js.map +1 -0
- package/dist/assets/kol-alert-wc.entry-CnPBvGgZ.js +2 -0
- package/dist/assets/kol-alert-wc.entry-CnPBvGgZ.js.map +1 -0
- package/dist/assets/kol-alert.entry-DzfeO1ck.js +283 -0
- package/dist/assets/kol-alert.entry-DzfeO1ck.js.map +1 -0
- package/dist/assets/kol-avatar-wc.entry-BoycVXyw.js +2 -0
- package/dist/assets/kol-avatar-wc.entry-BoycVXyw.js.map +1 -0
- package/dist/assets/kol-avatar.entry-HqiALmid.js +229 -0
- package/dist/assets/kol-avatar.entry-HqiALmid.js.map +1 -0
- package/dist/assets/kol-badge.entry-8Ls5W1-H.js +273 -0
- package/dist/assets/kol-badge.entry-8Ls5W1-H.js.map +1 -0
- package/dist/assets/kol-breadcrumb.entry-C_q81ADT.js +301 -0
- package/dist/assets/kol-breadcrumb.entry-C_q81ADT.js.map +1 -0
- package/dist/assets/kol-button-link.entry-kIBoCi0H.js +293 -0
- package/dist/assets/kol-button-link.entry-kIBoCi0H.js.map +1 -0
- package/dist/assets/kol-button-wc.entry-DpxmFMkL.js +2 -0
- package/dist/assets/kol-button-wc.entry-DpxmFMkL.js.map +1 -0
- package/dist/assets/kol-button.entry-BsjF_xs2.js +281 -0
- package/dist/assets/kol-button.entry-BsjF_xs2.js.map +1 -0
- package/dist/assets/kol-card-wc.entry-C2fnGX9l.js +2 -0
- package/dist/assets/kol-card-wc.entry-C2fnGX9l.js.map +1 -0
- package/dist/assets/kol-card.entry-8zV_YsaR.js +286 -0
- package/dist/assets/kol-card.entry-8zV_YsaR.js.map +1 -0
- package/dist/assets/kol-combobox.entry-C77kC3qm.js +386 -0
- package/dist/assets/kol-combobox.entry-C77kC3qm.js.map +1 -0
- package/dist/assets/kol-details.entry--UxnwBZL.js +273 -0
- package/dist/assets/kol-details.entry--UxnwBZL.js.map +1 -0
- package/dist/assets/kol-drawer.entry-C_QbgsoK.js +325 -0
- package/dist/assets/kol-drawer.entry-C_QbgsoK.js.map +1 -0
- package/dist/assets/kol-form.entry-8_2s2CHt.js +308 -0
- package/dist/assets/kol-form.entry-8_2s2CHt.js.map +1 -0
- package/dist/assets/kol-heading.entry-vEksA2CZ.js +205 -0
- package/dist/assets/kol-heading.entry-vEksA2CZ.js.map +1 -0
- package/dist/assets/kol-icon.entry-XQZFaUlO.js +2375 -0
- package/dist/assets/kol-icon.entry-XQZFaUlO.js.map +1 -0
- package/dist/assets/kol-image.entry-Dd0bm8f2.js +207 -0
- package/dist/assets/kol-image.entry-Dd0bm8f2.js.map +1 -0
- package/dist/assets/kol-input-checkbox.entry-BwoERhKS.js +460 -0
- package/dist/assets/kol-input-checkbox.entry-BwoERhKS.js.map +1 -0
- package/dist/assets/kol-input-color.entry-DmP3-OLD.js +357 -0
- package/dist/assets/kol-input-color.entry-DmP3-OLD.js.map +1 -0
- package/dist/assets/kol-input-date.entry-veV69ftf.js +359 -0
- package/dist/assets/kol-input-date.entry-veV69ftf.js.map +1 -0
- package/dist/assets/kol-input-email.entry-WuzasvJu.js +339 -0
- package/dist/assets/kol-input-email.entry-WuzasvJu.js.map +1 -0
- package/dist/assets/kol-input-file.entry-eWzGGuLk.js +388 -0
- package/dist/assets/kol-input-file.entry-eWzGGuLk.js.map +1 -0
- package/dist/assets/kol-input-number.entry-Cyw5Y0_B.js +346 -0
- package/dist/assets/kol-input-number.entry-Cyw5Y0_B.js.map +1 -0
- package/dist/assets/kol-input-password.entry-DgItvBL6.js +342 -0
- package/dist/assets/kol-input-password.entry-DgItvBL6.js.map +1 -0
- package/dist/assets/kol-input-radio.entry-CAKyYUCP.js +459 -0
- package/dist/assets/kol-input-radio.entry-CAKyYUCP.js.map +1 -0
- package/dist/assets/kol-input-range.entry-BBU90Lo9.js +386 -0
- package/dist/assets/kol-input-range.entry-BBU90Lo9.js.map +1 -0
- package/dist/assets/kol-input-text.entry-CCtLxC_E.js +339 -0
- package/dist/assets/kol-input-text.entry-CCtLxC_E.js.map +1 -0
- package/dist/assets/kol-kolibri.entry-AwuchqCv.js +211 -0
- package/dist/assets/kol-kolibri.entry-AwuchqCv.js.map +1 -0
- package/dist/assets/kol-link-button.entry-CRRQNJrY.js +281 -0
- package/dist/assets/kol-link-button.entry-CRRQNJrY.js.map +1 -0
- package/dist/assets/kol-link-wc.entry-BebojOG8.js +2 -0
- package/dist/assets/kol-link-wc.entry-BebojOG8.js.map +1 -0
- package/dist/assets/kol-link.entry-DXifcQI8.js +289 -0
- package/dist/assets/kol-link.entry-DXifcQI8.js.map +1 -0
- package/dist/assets/kol-modal.entry-C3vVLSDB.js +301 -0
- package/dist/assets/kol-modal.entry-C3vVLSDB.js.map +1 -0
- package/dist/assets/kol-nav.entry-DfgZuMtU.js +297 -0
- package/dist/assets/kol-nav.entry-DfgZuMtU.js.map +1 -0
- package/dist/assets/kol-pagination-wc.entry-Bpq_U4eQ.js +2 -0
- package/dist/assets/kol-pagination-wc.entry-Bpq_U4eQ.js.map +1 -0
- package/dist/assets/kol-pagination.entry-IT4QAnOG.js +283 -0
- package/dist/assets/kol-pagination.entry-IT4QAnOG.js.map +1 -0
- package/dist/assets/kol-popover-button-wc.entry-Dd1lzvY3.js +2 -0
- package/dist/assets/kol-popover-button-wc.entry-Dd1lzvY3.js.map +1 -0
- package/dist/assets/kol-popover-button.entry-sFTORXui.js +299 -0
- package/dist/assets/kol-popover-button.entry-sFTORXui.js.map +1 -0
- package/dist/assets/kol-popover-wc.entry-drcDMJuT.js +2 -0
- package/dist/assets/kol-popover-wc.entry-drcDMJuT.js.map +1 -0
- package/dist/assets/kol-progress.entry-HKsFCBRH.js +283 -0
- package/dist/assets/kol-progress.entry-HKsFCBRH.js.map +1 -0
- package/dist/assets/kol-quote.entry-D3Y4Gkhj.js +228 -0
- package/dist/assets/kol-quote.entry-D3Y4Gkhj.js.map +1 -0
- package/dist/assets/kol-select.entry-DN0f7EIq.js +354 -0
- package/dist/assets/kol-select.entry-DN0f7EIq.js.map +1 -0
- package/dist/assets/kol-single-select.entry-XUu_V8oD.js +396 -0
- package/dist/assets/kol-single-select.entry-XUu_V8oD.js.map +1 -0
- package/dist/assets/kol-skip-nav.entry-DDyRk9Dh.js +221 -0
- package/dist/assets/kol-skip-nav.entry-DDyRk9Dh.js.map +1 -0
- package/dist/assets/kol-spin.entry-C0bmsgIy.js +334 -0
- package/dist/assets/kol-spin.entry-C0bmsgIy.js.map +1 -0
- package/dist/assets/kol-split-button.entry-y9JcUE7Z.js +324 -0
- package/dist/assets/kol-split-button.entry-y9JcUE7Z.js.map +1 -0
- package/dist/assets/kol-table-settings-wc.entry-sowYy9Vo.js +2 -0
- package/dist/assets/kol-table-settings-wc.entry-sowYy9Vo.js.map +1 -0
- package/dist/assets/kol-table-stateful.entry-B82YNFHs.js +514 -0
- package/dist/assets/kol-table-stateful.entry-B82YNFHs.js.map +1 -0
- package/dist/assets/kol-table-stateless-wc.entry-BQHIXqKL.js +2 -0
- package/dist/assets/kol-table-stateless-wc.entry-BQHIXqKL.js.map +1 -0
- package/dist/assets/kol-table-stateless.entry-BDJGhfHG.js +473 -0
- package/dist/assets/kol-table-stateless.entry-BDJGhfHG.js.map +1 -0
- package/dist/assets/kol-tabs.entry-Ctu4XMNN.js +310 -0
- package/dist/assets/kol-tabs.entry-Ctu4XMNN.js.map +1 -0
- package/dist/assets/kol-textarea.entry-BJqUrxrp.js +337 -0
- package/dist/assets/kol-textarea.entry-BJqUrxrp.js.map +1 -0
- package/dist/assets/kol-toast-container.entry-DQnF3J0_.js +292 -0
- package/dist/assets/kol-toast-container.entry-DQnF3J0_.js.map +1 -0
- package/dist/assets/kol-toolbar.entry-CI3jGR0V.js +313 -0
- package/dist/assets/kol-toolbar.entry-CI3jGR0V.js.map +1 -0
- package/dist/assets/kol-tooltip-wc.entry-DxNr5skK.js +2 -0
- package/dist/assets/kol-tooltip-wc.entry-DxNr5skK.js.map +1 -0
- package/dist/assets/kol-tree-item-wc.entry-D0nKqCYQ.js +2 -0
- package/dist/assets/kol-tree-item-wc.entry-D0nKqCYQ.js.map +1 -0
- package/dist/assets/kol-tree-item.entry-DHGHWJkh.js +238 -0
- package/dist/assets/kol-tree-item.entry-DHGHWJkh.js.map +1 -0
- package/dist/assets/kol-tree-wc.entry-BRk_Ps9N.js +2 -0
- package/dist/assets/kol-tree-wc.entry-BRk_Ps9N.js.map +1 -0
- package/dist/assets/kol-tree.entry-qKBOQfs6.js +211 -0
- package/dist/assets/kol-tree.entry-qKBOQfs6.js.map +1 -0
- package/dist/assets/kol-version.entry-hC3_z2Ah.js +200 -0
- package/dist/assets/kol-version.entry-hC3_z2Ah.js.map +1 -0
- package/dist/assets/kreon/OFL.txt +93 -93
- package/dist/assets/label-ohY9ajP0-DL9LDU0L.js +2 -0
- package/dist/assets/label-ohY9ajP0-DL9LDU0L.js.map +1 -0
- package/dist/assets/markdown-CVks1MC0-Cgkgxqwt.js +17 -0
- package/dist/assets/markdown-CVks1MC0-Cgkgxqwt.js.map +1 -0
- package/dist/assets/material-icons/README.md +19 -14
- package/dist/assets/material-icons/_data/versions.json +2123 -2123
- package/dist/assets/material-icons/css/_mixins.scss +2 -2
- package/dist/assets/material-icons/css/_variables.scss +3 -3
- package/dist/assets/material-icons/css/material-icons.scss +16 -22
- package/dist/assets/material-icons/iconfont/filled.scss +3 -3
- package/dist/assets/material-icons/iconfont/material-icons.scss +5 -5
- package/dist/assets/material-icons/iconfont/outlined.scss +3 -3
- package/dist/assets/material-icons/iconfont/round.scss +3 -3
- package/dist/assets/material-icons/iconfont/sharp.scss +3 -3
- package/dist/assets/material-icons/iconfont/two-tone.scss +3 -3
- package/dist/assets/material-icons/index.d.ts +2122 -2122
- package/dist/assets/material-icons/package.json +50 -50
- package/dist/assets/material-symbols/README.md +18 -11
- package/dist/assets/material-symbols/index.d.ts +2803 -2803
- package/dist/assets/material-symbols/index.scss +3 -3
- package/dist/assets/material-symbols/outlined.scss +2 -2
- package/dist/assets/material-symbols/package.json +39 -39
- package/dist/assets/material-symbols/rounded.scss +2 -2
- package/dist/assets/material-symbols/sharp.scss +2 -2
- package/dist/assets/max-length-behavior-N5Lbz6E--DCs07sPx.js +2 -0
- package/dist/assets/max-length-behavior-N5Lbz6E--DCs07sPx.js.map +1 -0
- package/dist/assets/multiple-D1puaB9F-D3g5RjPg.js +2 -0
- package/dist/assets/multiple-D1puaB9F-D3g5RjPg.js.map +1 -0
- package/dist/assets/noto-sans/fonts/OFL.txt +93 -93
- package/dist/assets/open-BFQWty8w-CEWvP37i.js +2 -0
- package/dist/assets/open-BFQWty8w-CEWvP37i.js.map +1 -0
- package/dist/assets/orientation-B0ErOlUK-YOoBrfEn.js +2 -0
- package/dist/assets/orientation-B0ErOlUK-YOoBrfEn.js.map +1 -0
- package/dist/assets/placeholder-DrgXYoah-DBHh57Yg.js +2 -0
- package/dist/assets/placeholder-DrgXYoah-DBHh57Yg.js.map +1 -0
- package/dist/assets/read-only-Bp291veM-BMLpzHyH.js +2 -0
- package/dist/assets/read-only-Bp291veM-BMLpzHyH.js.map +1 -0
- package/dist/assets/required-7L0ytoMT-Culzw-cc.js +2 -0
- package/dist/assets/required-7L0ytoMT-Culzw-cc.js.map +1 -0
- package/dist/assets/reuse-CX4AQDkS-BaVSFETn.js +2 -0
- package/dist/assets/reuse-CX4AQDkS-BaVSFETn.js.map +1 -0
- package/dist/assets/roboto/LICENSE.txt +202 -202
- package/dist/assets/rows-C8piLIWD-CZVHqmm6.js +2 -0
- package/dist/assets/rows-C8piLIWD-CZVHqmm6.js.map +1 -0
- package/dist/assets/show-ChfALFZd-Vn4qEOP-.js +2 -0
- package/dist/assets/show-ChfALFZd-Vn4qEOP-.js.map +1 -0
- package/dist/assets/spell-check-DrU5XI1o-Bo9L0HXW.js +2 -0
- package/dist/assets/spell-check-DrU5XI1o-Bo9L0HXW.js.map +1 -0
- package/dist/assets/suggestions-Bufr76At-B0AGyg0P.js +2 -0
- package/dist/assets/suggestions-Bufr76At-B0AGyg0P.js.map +1 -0
- package/dist/assets/table-settings-BYcS3vAt-Z4ssf2K9.js +2 -0
- package/dist/assets/table-settings-BYcS3vAt-Z4ssf2K9.js.map +1 -0
- package/dist/assets/test-component.entry-CUG_pNnC.js +2 -0
- package/dist/assets/test-component.entry-CUG_pNnC.js.map +1 -0
- package/dist/assets/tooltip-align-DEw_M6Is-DzxhQKdw.js +2 -0
- package/dist/assets/tooltip-align-DEw_M6Is-DzxhQKdw.js.map +1 -0
- package/dist/assets/tooltip-open-tracking-rBbBgPWP-DRkgcff2.js +2 -0
- package/dist/assets/tooltip-open-tracking-rBbBgPWP-DRkgcff2.js.map +1 -0
- package/dist/assets/tslib.es6-CxX45GIN-BGVaTf34.js +2 -0
- package/dist/assets/tslib.es6-CxX45GIN-BGVaTf34.js.map +1 -0
- package/dist/assets/unique-nav-labels-C-bt2E8D-BEINIyfh.js +2 -0
- package/dist/assets/unique-nav-labels-C-bt2E8D-BEINIyfh.js.map +1 -0
- package/dist/assets/validation-BVeaxeev-BCeyl-Th.js +2 -0
- package/dist/assets/validation-BVeaxeev-BCeyl-Th.js.map +1 -0
- package/dist/assets/validation-BmqW5reG-DI0TkU4B.js +2 -0
- package/dist/assets/validation-BmqW5reG-DI0TkU4B.js.map +1 -0
- package/dist/index.html +16 -14
- package/index.html +29 -0
- package/package.json +53 -49
- package/public/assets/README.md +1 -0
- package/public/assets/codicons/codicon.css +54 -1
- package/public/assets/codicons/codicon.csv +41 -0
- package/public/assets/codicons/codicon.svg +1 -1
- package/public/assets/codicons/codicon.ttf +0 -0
- package/public/assets/kreon/OFL.txt +93 -93
- package/public/assets/material-icons/README.md +19 -14
- package/public/assets/material-icons/_data/versions.json +2123 -2123
- package/public/assets/material-icons/css/_mixins.scss +2 -2
- package/public/assets/material-icons/css/_variables.scss +3 -3
- package/public/assets/material-icons/css/material-icons.scss +16 -22
- package/public/assets/material-icons/iconfont/filled.scss +3 -3
- package/public/assets/material-icons/iconfont/material-icons.scss +5 -5
- package/public/assets/material-icons/iconfont/outlined.scss +3 -3
- package/public/assets/material-icons/iconfont/round.scss +3 -3
- package/public/assets/material-icons/iconfont/sharp.scss +3 -3
- package/public/assets/material-icons/iconfont/two-tone.scss +3 -3
- package/public/assets/material-icons/index.d.ts +2122 -2122
- package/public/assets/material-icons/package.json +50 -50
- package/public/assets/material-symbols/README.md +18 -11
- package/public/assets/material-symbols/index.d.ts +2803 -2803
- package/public/assets/material-symbols/index.scss +3 -3
- package/public/assets/material-symbols/outlined.scss +2 -2
- package/public/assets/material-symbols/package.json +39 -39
- package/public/assets/material-symbols/rounded.scss +2 -2
- package/public/assets/material-symbols/sharp.scss +2 -2
- package/public/assets/noto-sans/fonts/OFL.txt +93 -93
- package/public/assets/roboto/LICENSE.txt +202 -202
- package/src/App.tsx +2 -6
- package/src/components/BackPage.tsx +1 -1
- package/src/components/FormWrap.tsx +18 -16
- package/src/components/Navigation.tsx +3 -3
- package/src/components/SampleColumns.tsx +9 -0
- package/src/components/SampleDescription.tsx +28 -16
- package/src/components/Sidebar.tsx +32 -13
- package/src/components/abbr/basic.tsx +2 -2
- package/src/components/accordion/basic.tsx +9 -5
- package/src/components/accordion/headlines.tsx +1 -1
- package/src/components/alert/basic.tsx +6 -6
- package/src/components/alert/card-msg.tsx +1 -1
- package/src/components/alert/html.tsx +2 -2
- package/src/components/avatar/basic.tsx +7 -3
- package/src/components/badge/basic.tsx +2 -2
- package/src/components/badge/button.tsx +4 -3
- package/src/components/badge/formatted-label.tsx +19 -0
- package/src/components/badge/routes.ts +2 -0
- package/src/components/breadcrumb/basic.tsx +2 -1
- package/src/components/button/access-key.tsx +37 -19
- package/src/components/button/aria-description.tsx +15 -7
- package/src/components/button/baselined.tsx +15 -11
- package/src/components/button/basic.tsx +83 -11
- package/src/components/button/disabled.tsx +43 -0
- package/src/components/button/expert-slot.tsx +48 -11
- package/src/components/button/hide-label.tsx +57 -0
- package/src/components/button/icons.tsx +113 -26
- package/src/components/button/routes.ts +12 -2
- package/src/components/button/row-reverse-tooltip.tsx +26 -0
- package/src/components/button/short-key.tsx +36 -17
- package/src/components/button/spinner.tsx +112 -0
- package/src/components/button/variants.tsx +35 -0
- package/src/components/button/width.tsx +26 -21
- package/src/components/button-link/aria-description.tsx +2 -2
- package/src/components/button-link/basic.tsx +12 -5
- package/src/components/button-link/icons.tsx +3 -2
- package/src/components/button-link/image.tsx +1 -1
- package/src/components/button-link/routes.ts +1 -1
- package/src/components/card/basic.tsx +1 -1
- package/src/components/card/headlines.tsx +46 -0
- package/src/components/card/routes.ts +2 -0
- package/src/components/combobox/basic.tsx +2 -7
- package/src/components/combobox/html.tsx +16 -0
- package/src/components/combobox/partials/cases.tsx +2 -2
- package/src/components/combobox/partials/variants.tsx +4 -3
- package/src/components/combobox/routes.ts +2 -0
- package/src/components/details/basic.tsx +1 -1
- package/src/components/drawer/basic.tsx +32 -30
- package/src/components/drawer/controlled.tsx +2 -13
- package/src/components/drawer/partials/align.tsx +1 -1
- package/src/components/drawer/routes.ts +2 -0
- package/src/components/drawer/scrolled.tsx +133 -0
- package/src/components/form/basic.tsx +1 -1
- package/src/components/form/error-list.tsx +66 -24
- package/src/components/handout/basic.tsx +39 -42
- package/src/components/heading/badged.tsx +1 -1
- package/src/components/heading/basic.tsx +1 -1
- package/src/components/heading/paragraph.tsx +1 -1
- package/src/components/heading/routes.ts +2 -0
- package/src/components/heading/secondary.tsx +20 -0
- package/src/components/icon/basic.tsx +8 -3
- package/src/components/icon/font-awesome.tsx +36 -0
- package/src/components/icon/routes.ts +2 -0
- package/src/components/image/basic.tsx +2 -2
- package/src/components/input-checkbox/basic.tsx +2 -2
- package/src/components/input-checkbox/button.tsx +2 -2
- package/src/components/input-checkbox/partials/cases.tsx +1 -1
- package/src/components/input-checkbox/partials/variants.tsx +5 -4
- package/src/components/input-checkbox/switch.tsx +2 -2
- package/src/components/input-color/basic.tsx +2 -2
- package/src/components/input-color/partials/cases.tsx +6 -3
- package/src/components/input-color/partials/variants.tsx +3 -2
- package/src/components/input-date/basic.tsx +2 -2
- package/src/components/input-date/copy-paste.tsx +172 -0
- package/src/components/input-date/partials/cases.tsx +9 -5
- package/src/components/input-date/partials/minMax.tsx +4 -4
- package/src/components/input-date/partials/variants.tsx +4 -3
- package/src/components/input-date/reset.tsx +1 -1
- package/src/components/input-date/routes.ts +4 -0
- package/src/components/input-date/show-hide-msg.tsx +59 -0
- package/src/components/input-email/basic.tsx +2 -2
- package/src/components/input-email/partials/cases.tsx +8 -4
- package/src/components/input-email/partials/variants.tsx +3 -2
- package/src/components/input-file/basic.tsx +2 -2
- package/src/components/input-file/partials/cases.tsx +8 -4
- package/src/components/input-file/partials/variants.tsx +3 -2
- package/src/components/input-number/basic.tsx +1 -1
- package/src/components/input-number/number-formatter.tsx +215 -0
- package/src/components/input-number/partials/cases.tsx +5 -5
- package/src/components/input-number/partials/variants.tsx +3 -2
- package/src/components/input-number/routes.ts +2 -0
- package/src/components/input-password/basic.tsx +2 -2
- package/src/components/input-password/partials/cases.tsx +10 -6
- package/src/components/input-password/partials/variants.tsx +3 -2
- package/src/components/input-password/show-password.tsx +9 -1
- package/src/components/input-radio/basic.tsx +2 -2
- package/src/components/input-radio/horizontal.tsx +3 -3
- package/src/components/input-radio/objectValue.tsx +1 -1
- package/src/components/input-radio/partials/cases.tsx +1 -14
- package/src/components/input-radio/partials/variants.tsx +11 -8
- package/src/components/input-range/basic.tsx +2 -2
- package/src/components/input-range/partials/cases.tsx +8 -4
- package/src/components/input-range/partials/variants.tsx +3 -2
- package/src/components/input-text/access-short-key.tsx +19 -0
- package/src/components/input-text/background-test.tsx +20 -0
- package/src/components/input-text/basic.tsx +10 -5
- package/src/components/input-text/disabled.tsx +19 -0
- package/src/components/input-text/expert-slot.tsx +21 -5
- package/src/components/input-text/hide-label.tsx +48 -0
- package/src/components/input-text/{hide-errors.tsx → hide-msg.tsx} +10 -10
- package/src/components/input-text/message-types.tsx +20 -0
- package/src/components/input-text/placeholder.tsx +20 -0
- package/src/components/input-text/readonly.tsx +25 -0
- package/src/components/input-text/routes.ts +20 -4
- package/src/components/input-text/select-range.tsx +36 -0
- package/src/components/input-text/smart-button.tsx +45 -15
- package/src/components/input-text/text-formatter.tsx +133 -97
- package/src/components/kolibri/basic.tsx +1 -1
- package/src/components/link/access-key.tsx +2 -4
- package/src/components/link/aria-description.tsx +2 -2
- package/src/components/link/basic.tsx +12 -12
- package/src/components/link/icons.tsx +1 -1
- package/src/components/link/image.tsx +1 -1
- package/src/components/link/link-react-router.tsx +31 -0
- package/src/components/link/routes.ts +5 -3
- package/src/components/link/short-key.tsx +2 -2
- package/src/components/link/target.tsx +1 -1
- package/src/components/link-button/aria-description.tsx +3 -3
- package/src/components/link-button/basic.tsx +9 -11
- package/src/components/link-button/routes.ts +1 -1
- package/src/components/modal/basic.tsx +41 -55
- package/src/components/nav/aria-current.tsx +1 -1
- package/src/components/nav/basic.tsx +20 -4
- package/src/components/nav/links.ts +61 -0
- package/src/components/nav/routes.ts +0 -2
- package/src/components/pagination/basic.tsx +2 -2
- package/src/components/popover-button/basic.tsx +69 -0
- package/src/components/popover-button/inline.tsx +36 -0
- package/src/components/popover-button/routes.ts +10 -0
- package/src/components/progress/basic.tsx +13 -6
- package/src/components/quote/basic.tsx +1 -1
- package/src/components/quote/block.tsx +1 -1
- package/src/components/select/basic.tsx +2 -2
- package/src/components/select/partials/cases.tsx +25 -6
- package/src/components/select/partials/variants.tsx +3 -2
- package/src/components/single-select/basic.tsx +2 -8
- package/src/components/single-select/partials/cases.tsx +95 -4
- package/src/components/single-select/partials/variants.tsx +8 -7
- package/src/components/skip-nav/basic.tsx +36 -27
- package/src/components/spin/basic.tsx +1 -1
- package/src/components/spin/custom.css +13 -12
- package/src/components/spin/custom.tsx +2 -2
- package/src/components/spin/cycle.tsx +1 -1
- package/src/components/spin/label.tsx +23 -0
- package/src/components/spin/routes.ts +2 -0
- package/src/components/split-button/basic.tsx +32 -17
- package/src/components/split-button/with-context.tsx +2 -2
- package/src/components/table/column-alignment.tsx +16 -13
- package/src/components/table/complex-headers.tsx +21 -10
- package/src/components/table/direction-aware-sort.tsx +65 -0
- package/src/components/table/horizontal-scrollbar.tsx +50 -25
- package/src/components/table/interactive-child-elements.tsx +4 -4
- package/src/components/table/multi-sort.tsx +110 -78
- package/src/components/table/non-hidable-columns.tsx +35 -0
- package/src/components/table/pagination-position.tsx +26 -5
- package/src/components/table/predefined-settings.tsx +42 -0
- package/src/components/table/render-cell.tsx +4 -5
- package/src/components/table/routes.ts +21 -9
- package/src/components/table/settings-column-options.tsx +58 -0
- package/src/components/table/sort-data.tsx +19 -20
- package/src/components/table/stateful-with-selection.tsx +13 -9
- package/src/components/table/stateful-with-single-selection.tsx +9 -8
- package/src/components/table/stateless-with-selection.tsx +17 -11
- package/src/components/table/stateless-with-settings-menu.tsx +104 -0
- package/src/components/table/stateless-with-single-selection.tsx +16 -11
- package/src/components/table/stateless.tsx +3 -2
- package/src/components/table/sticky-header.tsx +35 -0
- package/src/components/table/test-complex-data.ts +277 -0
- package/src/components/table/with-footer.tsx +4 -3
- package/src/components/table/with-pagination.tsx +4 -4
- package/src/components/tabs/align.tsx +2 -2
- package/src/components/tabs/basic.tsx +1 -1
- package/src/components/tabs/behavior.tsx +1 -1
- package/src/components/tabs/create-button.tsx +42 -0
- package/src/components/tabs/icons-only.tsx +1 -1
- package/src/components/tabs/routes.ts +4 -2
- package/src/components/textarea/adjust-height.tsx +1 -1
- package/src/components/textarea/basic.tsx +2 -2
- package/src/components/textarea/partials/cases.tsx +11 -5
- package/src/components/textarea/partials/variants.tsx +3 -2
- package/src/components/textarea/resize.tsx +7 -6
- package/src/components/textarea/routes.ts +2 -2
- package/src/components/textarea/rows.tsx +1 -1
- package/src/components/textarea/with-counter.tsx +23 -0
- package/src/components/toast/basic.tsx +11 -38
- package/src/components/toast/configurator.tsx +84 -0
- package/src/components/toast/routes.ts +2 -0
- package/src/components/toolbar/basic.tsx +46 -40
- package/src/components/toolbar/disabled.tsx +7 -5
- package/src/components/tree/basic.tsx +4 -4
- package/src/components/version/basic.tsx +1 -1
- package/src/components/version/context.tsx +1 -1
- package/src/main.ts +11 -0
- package/src/react.main.tsx +60 -11
- package/src/scenarios/appointment-form/AppointmentForm.tsx +116 -98
- package/src/scenarios/appointment-form/AvailableAppointmentsForm.tsx +83 -75
- package/src/scenarios/appointment-form/DistrictForm.tsx +50 -50
- package/src/scenarios/appointment-form/PersonalInformationForm.tsx +111 -142
- package/src/scenarios/appointment-form/Summary.tsx +12 -11
- package/src/scenarios/appointment-form/formUtils.ts +26 -7
- package/src/scenarios/button-shortkey-table.tsx +127 -0
- package/src/scenarios/change-tabindex.tsx +30 -28
- package/src/scenarios/custom-tooltip-css-properties.tsx +42 -0
- package/src/scenarios/date-in-form.tsx +24 -0
- package/src/scenarios/disabled-interactive-elements.tsx +1 -1
- package/src/scenarios/focus-elements.tsx +3 -4
- package/src/scenarios/horizontal-scrollbar-advanced/TableHorizontalScrollbarAdvanced.tsx +11 -5
- package/src/scenarios/horizontal-scrollbar-advanced/layout.scss +7 -7
- package/src/scenarios/input-group-with-error.tsx +7 -7
- package/src/scenarios/inputs-get-value.tsx +13 -8
- package/src/scenarios/performance-test.tsx +27 -0
- package/src/scenarios/react-hook-form/basic.tsx +194 -0
- package/src/scenarios/routes.ts +22 -8
- package/src/scenarios/same-height-of-all-interactive-elements.tsx +62 -0
- package/src/scenarios/sample-form-with-validation.tsx +160 -0
- package/src/scenarios/static-form.tsx +3 -3
- package/src/scenarios/toolbar-item-order.tsx +66 -0
- package/src/scenarios/tooltip-positioning.tsx +29 -0
- package/src/shares/longOptions.ts +15 -0
- package/src/shares/routes.ts +5 -9
- package/src/shares/store.ts +1 -20
- package/src/shares/theme.ts +5 -9
- package/src/style.scss +42 -20
- package/tsconfig.json +2 -1
- package/unocss.config.ts +251 -153
- package/vite.config.ts +42 -0
- package/.eslintignore +0 -2
- package/.eslintrc.js +0 -33
- package/.gitignore +0 -41
- package/.prettierignore +0 -4
- package/dist/1487.js +0 -2
- package/dist/1487.js.LICENSE.txt +0 -3
- package/dist/1552.js +0 -2
- package/dist/1552.js.LICENSE.txt +0 -3
- package/dist/1596.js +0 -2
- package/dist/1596.js.LICENSE.txt +0 -3
- package/dist/1636.js +0 -2
- package/dist/1636.js.LICENSE.txt +0 -3
- package/dist/1792.js +0 -2
- package/dist/1792.js.LICENSE.txt +0 -3
- package/dist/2017.js +0 -2
- package/dist/2017.js.LICENSE.txt +0 -3
- package/dist/2207.js +0 -2
- package/dist/2207.js.LICENSE.txt +0 -3
- package/dist/2322.js +0 -2
- package/dist/2322.js.LICENSE.txt +0 -3
- package/dist/2538.js +0 -2
- package/dist/2538.js.LICENSE.txt +0 -3
- package/dist/2567.js +0 -2
- package/dist/2567.js.LICENSE.txt +0 -3
- package/dist/263.js +0 -2
- package/dist/263.js.LICENSE.txt +0 -3
- package/dist/2719.js +0 -2
- package/dist/2719.js.LICENSE.txt +0 -3
- package/dist/3064.js +0 -2
- package/dist/3064.js.LICENSE.txt +0 -3
- package/dist/3077.js +0 -2
- package/dist/3077.js.LICENSE.txt +0 -3
- package/dist/3238.js +0 -2
- package/dist/3238.js.LICENSE.txt +0 -3
- package/dist/3395.js +0 -2
- package/dist/3395.js.LICENSE.txt +0 -3
- package/dist/35.js +0 -2
- package/dist/35.js.LICENSE.txt +0 -3
- package/dist/3521.js +0 -2
- package/dist/3521.js.LICENSE.txt +0 -3
- package/dist/356.js +0 -2
- package/dist/356.js.LICENSE.txt +0 -3
- package/dist/3714.js +0 -2
- package/dist/3714.js.LICENSE.txt +0 -3
- package/dist/3735.js +0 -2
- package/dist/3735.js.LICENSE.txt +0 -3
- package/dist/3766.js +0 -2
- package/dist/3766.js.LICENSE.txt +0 -3
- package/dist/380.js +0 -2
- package/dist/380.js.LICENSE.txt +0 -3
- package/dist/3906.js +0 -2
- package/dist/3906.js.LICENSE.txt +0 -3
- package/dist/3994.js +0 -2
- package/dist/3994.js.LICENSE.txt +0 -3
- package/dist/4025.js +0 -2
- package/dist/4025.js.LICENSE.txt +0 -3
- package/dist/4058.js +0 -2
- package/dist/4058.js.LICENSE.txt +0 -3
- package/dist/4118.js +0 -2
- package/dist/4118.js.LICENSE.txt +0 -3
- package/dist/4182.js +0 -2
- package/dist/4182.js.LICENSE.txt +0 -3
- package/dist/4188.js +0 -2
- package/dist/4188.js.LICENSE.txt +0 -3
- package/dist/4332.js +0 -2
- package/dist/4332.js.LICENSE.txt +0 -3
- package/dist/4402.js +0 -2
- package/dist/4402.js.LICENSE.txt +0 -3
- package/dist/4818.js +0 -2
- package/dist/4818.js.LICENSE.txt +0 -3
- package/dist/4892.js +0 -2
- package/dist/4892.js.LICENSE.txt +0 -3
- package/dist/4933.js +0 -2
- package/dist/4933.js.LICENSE.txt +0 -3
- package/dist/4943.js +0 -2
- package/dist/4943.js.LICENSE.txt +0 -3
- package/dist/5034.js +0 -2
- package/dist/5034.js.LICENSE.txt +0 -3
- package/dist/5056.js +0 -2
- package/dist/5056.js.LICENSE.txt +0 -3
- package/dist/5157.js +0 -2
- package/dist/5157.js.LICENSE.txt +0 -3
- package/dist/5296.js +0 -2
- package/dist/5296.js.LICENSE.txt +0 -3
- package/dist/5356.js +0 -2
- package/dist/5356.js.LICENSE.txt +0 -3
- package/dist/5551.js +0 -2
- package/dist/5551.js.LICENSE.txt +0 -3
- package/dist/5835.js +0 -2
- package/dist/5835.js.LICENSE.txt +0 -3
- package/dist/5840.js +0 -2
- package/dist/5840.js.LICENSE.txt +0 -3
- package/dist/5889.js +0 -2
- package/dist/5889.js.LICENSE.txt +0 -3
- package/dist/5912.js +0 -2
- package/dist/5912.js.LICENSE.txt +0 -3
- package/dist/6082.js +0 -2
- package/dist/6082.js.LICENSE.txt +0 -3
- package/dist/6099.js +0 -2
- package/dist/6099.js.LICENSE.txt +0 -3
- package/dist/6181.js +0 -2
- package/dist/6181.js.LICENSE.txt +0 -3
- package/dist/619.js +0 -2
- package/dist/619.js.LICENSE.txt +0 -3
- package/dist/6671.js +0 -2
- package/dist/6671.js.LICENSE.txt +0 -3
- package/dist/6775.js +0 -2
- package/dist/6775.js.LICENSE.txt +0 -3
- package/dist/7274.js +0 -2
- package/dist/7274.js.LICENSE.txt +0 -3
- package/dist/7795.js +0 -2
- package/dist/7795.js.LICENSE.txt +0 -3
- package/dist/7802.js +0 -2
- package/dist/7802.js.LICENSE.txt +0 -3
- package/dist/7860.js +0 -2
- package/dist/7860.js.LICENSE.txt +0 -3
- package/dist/8092.js +0 -2
- package/dist/8092.js.LICENSE.txt +0 -3
- package/dist/8111.js +0 -2
- package/dist/8111.js.LICENSE.txt +0 -3
- package/dist/8146.js +0 -2
- package/dist/8146.js.LICENSE.txt +0 -3
- package/dist/8427.js +0 -2
- package/dist/8427.js.LICENSE.txt +0 -3
- package/dist/8495.js +0 -2
- package/dist/8495.js.LICENSE.txt +0 -3
- package/dist/8672.js +0 -2
- package/dist/8672.js.LICENSE.txt +0 -3
- package/dist/8737.js +0 -2
- package/dist/8737.js.LICENSE.txt +0 -3
- package/dist/8786.js +0 -2
- package/dist/8786.js.LICENSE.txt +0 -3
- package/dist/8796.js +0 -2
- package/dist/8796.js.LICENSE.txt +0 -3
- package/dist/8977.js +0 -2
- package/dist/8977.js.LICENSE.txt +0 -3
- package/dist/9333.js +0 -2
- package/dist/9333.js.LICENSE.txt +0 -3
- package/dist/9389.js +0 -2
- package/dist/9389.js.LICENSE.txt +0 -3
- package/dist/9561.js +0 -2
- package/dist/9561.js.LICENSE.txt +0 -3
- package/dist/9599.js +0 -2
- package/dist/9599.js.LICENSE.txt +0 -3
- package/dist/9612.js +0 -2
- package/dist/9612.js.LICENSE.txt +0 -3
- package/dist/9890.js +0 -2
- package/dist/9890.js.LICENSE.txt +0 -3
- package/dist/assets/codicons/codicon.html +0 -3911
- package/dist/main.css +0 -4
- package/dist/main.js +0 -2
- package/dist/main.js.LICENSE.txt +0 -64
- package/prettier.config.js +0 -5
- package/public/assets/codicons/codicon.html +0 -3911
- package/public/index.html +0 -28
- package/src/components/button/partials/cases.tsx +0 -37
- package/src/components/button/partials/type.ts +0 -4
- package/src/components/button/partials/variants.tsx +0 -25
- 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/input-text/partials/cases.tsx +0 -54
- package/src/components/input-text/partials/variants.tsx +0 -19
- 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/src/components/nav/horizontal.tsx +0 -24
- package/src/components/textarea/counter.tsx +0 -20
- package/src/scenarios/custom-tooltip-width.tsx +0 -33
- package/webpack.config.js +0 -19
|
@@ -0,0 +1,194 @@
|
|
|
1
|
+
import {
|
|
2
|
+
KolComboboxController,
|
|
3
|
+
KolInputCheckboxController,
|
|
4
|
+
KolInputColorController,
|
|
5
|
+
KolInputDateController,
|
|
6
|
+
KolInputEmailController,
|
|
7
|
+
KolInputFileController,
|
|
8
|
+
KolInputNumberController,
|
|
9
|
+
KolInputPasswordController,
|
|
10
|
+
KolInputRadioController,
|
|
11
|
+
KolInputRangeController,
|
|
12
|
+
KolInputTextController,
|
|
13
|
+
KolSelectController,
|
|
14
|
+
KolSingleSelectController,
|
|
15
|
+
KolTextareaController,
|
|
16
|
+
} from '@public-ui/react-hook-form-adapter';
|
|
17
|
+
import { KolButton, KolForm } from '@public-ui/react-v19';
|
|
18
|
+
import React, { type BaseSyntheticEvent, type FC } from 'react';
|
|
19
|
+
import type { FieldErrors, SubmitHandler } from 'react-hook-form';
|
|
20
|
+
import { useForm } from 'react-hook-form';
|
|
21
|
+
|
|
22
|
+
import { SampleDescription } from '../../components/SampleDescription';
|
|
23
|
+
import { COUNTRY_SUGGESTIONS } from '../../shares/country';
|
|
24
|
+
|
|
25
|
+
interface FormData {
|
|
26
|
+
firstName: string;
|
|
27
|
+
lastName: string;
|
|
28
|
+
email: string;
|
|
29
|
+
password: string;
|
|
30
|
+
age: number;
|
|
31
|
+
volume: number;
|
|
32
|
+
birthday: string;
|
|
33
|
+
favoriteColor: string;
|
|
34
|
+
cv: FileList | null;
|
|
35
|
+
bio: string;
|
|
36
|
+
country: string;
|
|
37
|
+
language: string;
|
|
38
|
+
framework: string;
|
|
39
|
+
gender: string;
|
|
40
|
+
termsAccepted: boolean;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
const defaultValues: FormData = {
|
|
44
|
+
firstName: '',
|
|
45
|
+
lastName: '',
|
|
46
|
+
email: '',
|
|
47
|
+
password: '',
|
|
48
|
+
age: 18,
|
|
49
|
+
volume: 50,
|
|
50
|
+
birthday: '',
|
|
51
|
+
favoriteColor: '#000000',
|
|
52
|
+
cv: null,
|
|
53
|
+
bio: '',
|
|
54
|
+
country: '',
|
|
55
|
+
language: 'de',
|
|
56
|
+
framework: '',
|
|
57
|
+
gender: '',
|
|
58
|
+
termsAccepted: false,
|
|
59
|
+
};
|
|
60
|
+
|
|
61
|
+
const languageOptions = [
|
|
62
|
+
{ label: 'English', value: 'en' },
|
|
63
|
+
{ label: 'German', value: 'de' },
|
|
64
|
+
{ label: 'French', value: 'fr' },
|
|
65
|
+
];
|
|
66
|
+
|
|
67
|
+
const frameworkOptions = [
|
|
68
|
+
{ label: 'React', value: 'react' },
|
|
69
|
+
{ label: 'Vue', value: 'vue' },
|
|
70
|
+
{ label: 'Stencil', value: 'stencil' },
|
|
71
|
+
];
|
|
72
|
+
|
|
73
|
+
const genderOptions = [
|
|
74
|
+
{ label: 'Male', value: 'male' },
|
|
75
|
+
{ label: 'Female', value: 'female' },
|
|
76
|
+
{ label: 'Other', value: 'other' },
|
|
77
|
+
];
|
|
78
|
+
|
|
79
|
+
const allFields: Array<keyof FormData> = [
|
|
80
|
+
'firstName',
|
|
81
|
+
'lastName',
|
|
82
|
+
'email',
|
|
83
|
+
'password',
|
|
84
|
+
'age',
|
|
85
|
+
'volume',
|
|
86
|
+
'birthday',
|
|
87
|
+
'favoriteColor',
|
|
88
|
+
'cv',
|
|
89
|
+
'bio',
|
|
90
|
+
'country',
|
|
91
|
+
'language',
|
|
92
|
+
'framework',
|
|
93
|
+
'gender',
|
|
94
|
+
'termsAccepted',
|
|
95
|
+
];
|
|
96
|
+
|
|
97
|
+
export const RHFBasic: FC = () => {
|
|
98
|
+
const { control, handleSubmit, setValue, getValues, trigger } = useForm<FormData>({
|
|
99
|
+
defaultValues,
|
|
100
|
+
mode: 'onTouched',
|
|
101
|
+
shouldFocusError: true,
|
|
102
|
+
});
|
|
103
|
+
|
|
104
|
+
const touchAndValidateAll = () => {
|
|
105
|
+
allFields.forEach((name) => {
|
|
106
|
+
setValue(name, getValues(name), { shouldTouch: true, shouldValidate: true });
|
|
107
|
+
});
|
|
108
|
+
};
|
|
109
|
+
|
|
110
|
+
const onSubmit: SubmitHandler<FormData> = (data) => {
|
|
111
|
+
alert(JSON.stringify(data, null, 2));
|
|
112
|
+
};
|
|
113
|
+
|
|
114
|
+
const onError = (errors: FieldErrors<FormData>) => {
|
|
115
|
+
touchAndValidateAll();
|
|
116
|
+
void trigger(undefined, { shouldFocus: true });
|
|
117
|
+
|
|
118
|
+
console.warn('Validation errors:', errors);
|
|
119
|
+
};
|
|
120
|
+
|
|
121
|
+
return (
|
|
122
|
+
<>
|
|
123
|
+
<SampleDescription>
|
|
124
|
+
<p>
|
|
125
|
+
This sample demonstrates a form using React Hook Form with KoliBri adapters wrapped in a KolForm. All inputs are validated, and error messages are
|
|
126
|
+
shown on submit.
|
|
127
|
+
</p>
|
|
128
|
+
</SampleDescription>
|
|
129
|
+
|
|
130
|
+
<KolForm
|
|
131
|
+
className="w-full max-w-xl"
|
|
132
|
+
_on={{
|
|
133
|
+
onSubmit: (event) => {
|
|
134
|
+
void handleSubmit(onSubmit, onError)(event as unknown as BaseSyntheticEvent);
|
|
135
|
+
},
|
|
136
|
+
}}
|
|
137
|
+
>
|
|
138
|
+
<div className="grid gap-4">
|
|
139
|
+
<KolInputTextController name="firstName" control={control} _label="First Name" rules={{ required: 'First name is required' }} _required />
|
|
140
|
+
<KolInputTextController name="lastName" control={control} _label="Last Name" rules={{ required: 'Last name is required' }} _required />
|
|
141
|
+
<KolInputEmailController name="email" control={control} _label="Email" rules={{ required: 'Email is required' }} _required />
|
|
142
|
+
<KolInputPasswordController name="password" control={control} _label="Password" rules={{ required: 'Password is required' }} _required />
|
|
143
|
+
<KolInputNumberController name="age" control={control} _label="Age" rules={{ required: 'Age is required', min: 0 }} _required />
|
|
144
|
+
<KolInputRangeController name="volume" control={control} _label="Volume (0–100)" _min={0} _max={100} />
|
|
145
|
+
<KolInputDateController name="birthday" control={control} _label="Birthday" rules={{ required: 'Birthday is required' }} />
|
|
146
|
+
<KolInputColorController name="favoriteColor" control={control} _label="Favorite Color" id="favoriteColor" />
|
|
147
|
+
<KolInputFileController name="cv" control={control} _label="Upload CV" rules={{ required: 'Please upload your CV' }} _required />
|
|
148
|
+
<KolTextareaController name="bio" control={control} _label="Bio" rules={{ required: 'Please provide a short bio' }} _required />
|
|
149
|
+
<KolComboboxController
|
|
150
|
+
control={control}
|
|
151
|
+
rules={{ required: 'Please select a country' }}
|
|
152
|
+
name="country"
|
|
153
|
+
_label="Country"
|
|
154
|
+
_suggestions={COUNTRY_SUGGESTIONS}
|
|
155
|
+
_required
|
|
156
|
+
/>
|
|
157
|
+
<KolSelectController
|
|
158
|
+
control={control}
|
|
159
|
+
rules={{ required: 'Please select a language' }}
|
|
160
|
+
name="language"
|
|
161
|
+
_label="Preferred Language"
|
|
162
|
+
_options={languageOptions}
|
|
163
|
+
_required
|
|
164
|
+
/>
|
|
165
|
+
<KolSingleSelectController
|
|
166
|
+
rules={{ required: 'Please select a framework' }}
|
|
167
|
+
control={control}
|
|
168
|
+
name="framework"
|
|
169
|
+
_label="Favorite Framework"
|
|
170
|
+
_options={frameworkOptions}
|
|
171
|
+
_required
|
|
172
|
+
/>
|
|
173
|
+
<KolInputRadioController
|
|
174
|
+
control={control}
|
|
175
|
+
rules={{ required: 'Please select your gender' }}
|
|
176
|
+
name="gender"
|
|
177
|
+
_label="Gender"
|
|
178
|
+
_options={genderOptions}
|
|
179
|
+
_required
|
|
180
|
+
/>
|
|
181
|
+
<KolInputCheckboxController
|
|
182
|
+
name="termsAccepted"
|
|
183
|
+
control={control}
|
|
184
|
+
_label="I accept the terms and conditions"
|
|
185
|
+
rules={{ required: 'You must accept the terms' }}
|
|
186
|
+
_required
|
|
187
|
+
/>
|
|
188
|
+
|
|
189
|
+
<KolButton _label="Submit" _type="submit" />
|
|
190
|
+
</div>
|
|
191
|
+
</KolForm>
|
|
192
|
+
</>
|
|
193
|
+
);
|
|
194
|
+
};
|
package/src/scenarios/routes.ts
CHANGED
|
@@ -1,24 +1,38 @@
|
|
|
1
1
|
import { Routes } from '../shares/types';
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import { ButtonShortkeyTable } from './button-shortkey-table';
|
|
3
|
+
import { ChangeTabindex } from './change-tabindex';
|
|
4
|
+
import { CustomTooltipCssProperties } from './custom-tooltip-css-properties';
|
|
5
|
+
import { DateInForm } from './date-in-form';
|
|
4
6
|
import { DisabledInteractiveElements } from './disabled-interactive-elements';
|
|
5
|
-
import { InputsGetValue } from './inputs-get-value';
|
|
6
|
-
import { StaticForm } from './static-form';
|
|
7
7
|
import { FocusElements } from './focus-elements';
|
|
8
8
|
import { TableHorizontalScrollAdvanced } from './horizontal-scrollbar-advanced';
|
|
9
9
|
import { InputGroupWithError } from './input-group-with-error';
|
|
10
|
-
import {
|
|
10
|
+
import { InputsGetValue } from './inputs-get-value';
|
|
11
|
+
import { PerformanceTest } from './performance-test';
|
|
12
|
+
import { RHFBasic } from './react-hook-form/basic';
|
|
13
|
+
import { SameHeightOfAllInteractiveElements } from './same-height-of-all-interactive-elements';
|
|
14
|
+
import { SampleFormWithValidation } from './sample-form-with-validation';
|
|
15
|
+
import { StaticForm } from './static-form';
|
|
16
|
+
import { ToolbarItemOrder } from './toolbar-item-order';
|
|
17
|
+
import { TooltipPositioning } from './tooltip-positioning';
|
|
11
18
|
|
|
12
19
|
export const SCENARIO_ROUTES: Routes = {
|
|
13
20
|
scenarios: {
|
|
14
|
-
'
|
|
15
|
-
'
|
|
21
|
+
'button-shortkey-table': ButtonShortkeyTable,
|
|
22
|
+
'change-tabindex': ChangeTabindex,
|
|
23
|
+
'custom-tooltip-css-properties': CustomTooltipCssProperties,
|
|
24
|
+
'date-in-form': DateInForm,
|
|
16
25
|
'disabled-interactive-scenario': DisabledInteractiveElements,
|
|
17
26
|
'focus-elements': FocusElements,
|
|
18
27
|
'input-group-with-error': InputGroupWithError,
|
|
19
28
|
'inputs-get-value': InputsGetValue,
|
|
29
|
+
'react-hook-form-adapter': RHFBasic,
|
|
30
|
+
'same-height-of-all-interactive-elements': SameHeightOfAllInteractiveElements,
|
|
20
31
|
'static-form': StaticForm,
|
|
32
|
+
'sample-form-with-validation': SampleFormWithValidation,
|
|
21
33
|
'table-horizontal-scrollbar-advanced': TableHorizontalScrollAdvanced,
|
|
22
|
-
'
|
|
34
|
+
'toolbar-item-order': ToolbarItemOrder,
|
|
35
|
+
'tooltip-positioning': TooltipPositioning,
|
|
36
|
+
'performance-test': PerformanceTest,
|
|
23
37
|
},
|
|
24
38
|
};
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import {
|
|
2
|
+
KolButton,
|
|
3
|
+
KolCombobox,
|
|
4
|
+
KolInputColor,
|
|
5
|
+
KolInputDate,
|
|
6
|
+
KolInputEmail,
|
|
7
|
+
KolInputFile,
|
|
8
|
+
KolInputNumber,
|
|
9
|
+
KolInputPassword,
|
|
10
|
+
KolInputRange,
|
|
11
|
+
KolInputText,
|
|
12
|
+
KolLinkButton,
|
|
13
|
+
KolSelect,
|
|
14
|
+
KolSingleSelect,
|
|
15
|
+
KolTextarea,
|
|
16
|
+
} from '@public-ui/react-v19';
|
|
17
|
+
import type { FC } from 'react';
|
|
18
|
+
import React from 'react';
|
|
19
|
+
import { SampleDescription } from '../components/SampleDescription';
|
|
20
|
+
import { useToasterService } from '../hooks/useToasterService';
|
|
21
|
+
|
|
22
|
+
export const SameHeightOfAllInteractiveElements: FC = () => {
|
|
23
|
+
const { dummyClickEventHandler } = useToasterService();
|
|
24
|
+
|
|
25
|
+
const dummyEventHandler = {
|
|
26
|
+
onClick: dummyClickEventHandler,
|
|
27
|
+
};
|
|
28
|
+
|
|
29
|
+
return (
|
|
30
|
+
<>
|
|
31
|
+
<SampleDescription>
|
|
32
|
+
<p>
|
|
33
|
+
All interactive elements, such as buttons and input fields, should have the same height to ensure a consistent and visually balanced user interface.
|
|
34
|
+
</p>
|
|
35
|
+
</SampleDescription>
|
|
36
|
+
<div className="w-full flex flex-wrap gap-4">
|
|
37
|
+
<KolButton _icons="codicon codicon-home" _label="Button" _on={dummyEventHandler} />
|
|
38
|
+
<KolButton _hideLabel _icons="codicon codicon-home" _label="Button" _on={dummyEventHandler} />
|
|
39
|
+
<KolLinkButton _href="#" _icons="codicon codicon-home" _label="Link-Button" _on={dummyEventHandler} />
|
|
40
|
+
<KolLinkButton _hideLabel _href="#" _icons="codicon codicon-home" _label="Link-Button" _on={dummyEventHandler} />
|
|
41
|
+
<KolCombobox _hideLabel _icons="codicon codicon-home" _label="Combobox" _suggestions={[]} />
|
|
42
|
+
<KolInputColor
|
|
43
|
+
_hideLabel
|
|
44
|
+
_icons={{
|
|
45
|
+
left: 'codicon codicon-home',
|
|
46
|
+
}}
|
|
47
|
+
_label="Input-Color"
|
|
48
|
+
/>
|
|
49
|
+
<KolInputFile _hideLabel _icons="codicon codicon-home" _label="Input-File" />
|
|
50
|
+
<KolInputDate _hideLabel _icons="codicon codicon-home" _label="Input-Date" />
|
|
51
|
+
<KolInputEmail _hideLabel _icons="codicon codicon-home" _label="Input-Email" />
|
|
52
|
+
<KolInputNumber _hideLabel _icons="codicon codicon-home" _label="Input-Number" />
|
|
53
|
+
<KolInputPassword _hideLabel _icons="codicon codicon-home" _label="Input-Password" />
|
|
54
|
+
<KolInputRange _hideLabel _icons="codicon codicon-home" _label="Input-Range" />
|
|
55
|
+
<KolInputText _hideLabel _icons="codicon codicon-home" _label="Input-Text" />
|
|
56
|
+
<KolSelect _hideLabel _icons="codicon codicon-home" _label="Combobox" _options={[]} />
|
|
57
|
+
<KolSingleSelect _hideLabel _icons="codicon codicon-home" _label="Combobox" _options={[]} />
|
|
58
|
+
<KolTextarea _hideLabel _icons="codicon codicon-home" _label="Combobox" />
|
|
59
|
+
</div>
|
|
60
|
+
</>
|
|
61
|
+
);
|
|
62
|
+
};
|
|
@@ -0,0 +1,160 @@
|
|
|
1
|
+
import { zodResolver } from '@hookform/resolvers/zod';
|
|
2
|
+
import {
|
|
3
|
+
KolComboboxController,
|
|
4
|
+
KolInputCheckboxController,
|
|
5
|
+
KolInputColorController,
|
|
6
|
+
KolInputDateController,
|
|
7
|
+
KolInputEmailController,
|
|
8
|
+
KolInputNumberController,
|
|
9
|
+
KolInputPasswordController,
|
|
10
|
+
KolInputRadioController,
|
|
11
|
+
KolInputRangeController,
|
|
12
|
+
KolInputTextController,
|
|
13
|
+
KolSelectController,
|
|
14
|
+
KolSingleSelectController,
|
|
15
|
+
KolTextareaController,
|
|
16
|
+
} from '@public-ui/react-hook-form-adapter';
|
|
17
|
+
import { KolAlert, KolButton, KolHeading, KolLink } from '@public-ui/react-v19';
|
|
18
|
+
import React from 'react';
|
|
19
|
+
import type { FieldError } from 'react-hook-form';
|
|
20
|
+
import { useForm } from 'react-hook-form';
|
|
21
|
+
import { z } from 'zod';
|
|
22
|
+
|
|
23
|
+
import { SampleDescription } from '../components/SampleDescription';
|
|
24
|
+
import { useToasterService } from '../hooks/useToasterService';
|
|
25
|
+
import { COUNTRY_SUGGESTIONS } from '../shares/country';
|
|
26
|
+
|
|
27
|
+
const formSchema = z.object({
|
|
28
|
+
date: z.preprocess(
|
|
29
|
+
(val) => (typeof val === 'string' || val instanceof Date ? new Date(val) : undefined),
|
|
30
|
+
z.date({ message: 'Date is required' }).refine((d) => !isNaN(d.getTime()), { message: 'Invalid date' }),
|
|
31
|
+
),
|
|
32
|
+
|
|
33
|
+
text: z.string({ message: 'Please enter text.' }).min(10, 'Text must be at least 10 characters long.'),
|
|
34
|
+
email: z.string({ message: 'Please enter your email.' }).min(1, 'Please enter your email.').email('Invalid email address.'),
|
|
35
|
+
password: z
|
|
36
|
+
.string({ message: 'Please enter a password.' })
|
|
37
|
+
.min(8, 'Password must be at least 8 characters.')
|
|
38
|
+
.regex(/[A-Z]/, 'Password must include at least one uppercase letter.')
|
|
39
|
+
.regex(/[0-9]/, 'Password must include at least one number.'),
|
|
40
|
+
range: z.number({ message: 'Please select a range.' }).min(30, 'Minimum value is 30.'),
|
|
41
|
+
number: z.number({ message: 'Please enter a number.' }).min(1, 'Minimum is 1.').max(10, 'Maximum is 10.'),
|
|
42
|
+
checkbox: z.boolean().refine((val: boolean) => val === true, {
|
|
43
|
+
message: 'You must accept the terms and conditions.',
|
|
44
|
+
}),
|
|
45
|
+
|
|
46
|
+
radio: z.string({ message: 'Please select a gender.' }).min(1, 'Please select a gender.'),
|
|
47
|
+
color: z.string({ message: 'Please select a color.' }).min(1, 'Please select a color.'),
|
|
48
|
+
select: z.string({ message: 'Please select a value.' }).min(1, 'Please select a value.'),
|
|
49
|
+
singleSelect: z.string({ message: 'Please select a single option.' }).min(1, 'Please select a single option.'),
|
|
50
|
+
combobox: z.string({ message: 'Please select a country.' }).min(1, 'Please select a country.'),
|
|
51
|
+
textarea: z.string({ message: 'Please enter a message.' }).min(1, 'Please enter a message.'),
|
|
52
|
+
});
|
|
53
|
+
|
|
54
|
+
export const SampleFormWithValidation: React.FC = () => {
|
|
55
|
+
const { dummyClickEventHandler } = useToasterService();
|
|
56
|
+
const {
|
|
57
|
+
handleSubmit,
|
|
58
|
+
formState: { errors },
|
|
59
|
+
reset,
|
|
60
|
+
control,
|
|
61
|
+
} = useForm({
|
|
62
|
+
mode: 'onBlur',
|
|
63
|
+
reValidateMode: 'onChange',
|
|
64
|
+
resolver: zodResolver(formSchema),
|
|
65
|
+
defaultValues: {
|
|
66
|
+
range: 30,
|
|
67
|
+
number: 5,
|
|
68
|
+
},
|
|
69
|
+
});
|
|
70
|
+
|
|
71
|
+
const onReset = () => {
|
|
72
|
+
reset(undefined, {
|
|
73
|
+
keepErrors: false,
|
|
74
|
+
keepTouched: false,
|
|
75
|
+
keepDirty: false,
|
|
76
|
+
});
|
|
77
|
+
};
|
|
78
|
+
|
|
79
|
+
const allErrors = Object.entries(errors)
|
|
80
|
+
.map(([key, value]) => [key, (value as FieldError).message] as const)
|
|
81
|
+
.filter(([, msg]) => Boolean(msg));
|
|
82
|
+
|
|
83
|
+
return (
|
|
84
|
+
<section className="w-full max-w-3xl mx-auto p-6">
|
|
85
|
+
<KolHeading _level={2} _label="Sample Form with Validation (Zod)" />
|
|
86
|
+
<SampleDescription>
|
|
87
|
+
<p>
|
|
88
|
+
This example shows validation with <code>react-hook-form</code>, <code>Zod</code>, and an error list.
|
|
89
|
+
</p>
|
|
90
|
+
</SampleDescription>
|
|
91
|
+
|
|
92
|
+
{allErrors.length > 0 && (
|
|
93
|
+
<KolAlert _type="error" _label="Please fix the following:" _alert _variant="card">
|
|
94
|
+
<ul className="list-disc pl-5">
|
|
95
|
+
{allErrors.map(([key, msg], i) => (
|
|
96
|
+
<li key={i}>
|
|
97
|
+
<KolLink
|
|
98
|
+
_label={msg}
|
|
99
|
+
_href={`#field-${key}`}
|
|
100
|
+
_on={{
|
|
101
|
+
onClick: (e: Event) => {
|
|
102
|
+
e.preventDefault();
|
|
103
|
+
const input = document.getElementById(`field-${key}`);
|
|
104
|
+
input?.focus();
|
|
105
|
+
},
|
|
106
|
+
}}
|
|
107
|
+
/>
|
|
108
|
+
</li>
|
|
109
|
+
))}
|
|
110
|
+
</ul>
|
|
111
|
+
</KolAlert>
|
|
112
|
+
)}
|
|
113
|
+
|
|
114
|
+
<form onSubmit={handleSubmit(dummyClickEventHandler)} noValidate className="grid gap-4 mt-6">
|
|
115
|
+
<KolInputDateController control={control as any} name="date" _label="Date" />
|
|
116
|
+
<KolInputTextController control={control as any} name="text" _label="Text (≥ 10 chars)" />
|
|
117
|
+
<KolInputEmailController control={control as any} name="email" _label="Email" />
|
|
118
|
+
<KolInputPasswordController control={control as any} name="password" _label="Password" />
|
|
119
|
+
<KolInputRangeController control={control as any} name="range" _label="Range (≥ 30)" _min={0} _max={100} />
|
|
120
|
+
<KolInputNumberController control={control as any} name="number" _label="Number (1 – 10)" />
|
|
121
|
+
<KolInputCheckboxController control={control as any} name="checkbox" _label="Accept terms" />
|
|
122
|
+
<KolInputRadioController
|
|
123
|
+
control={control as any}
|
|
124
|
+
name="radio"
|
|
125
|
+
_label="Gender"
|
|
126
|
+
_options={[
|
|
127
|
+
{ label: 'Female', value: 'f' },
|
|
128
|
+
{ label: 'Male', value: 'm' },
|
|
129
|
+
]}
|
|
130
|
+
/>
|
|
131
|
+
<KolInputColorController control={control as any} name="color" _label="Favorite Color" />
|
|
132
|
+
<KolSelectController
|
|
133
|
+
control={control as any}
|
|
134
|
+
name="select"
|
|
135
|
+
_label="Select"
|
|
136
|
+
_options={[
|
|
137
|
+
{ label: 'Option A', value: 'A' },
|
|
138
|
+
{ label: 'Option B', value: 'B' },
|
|
139
|
+
]}
|
|
140
|
+
/>
|
|
141
|
+
<KolSingleSelectController
|
|
142
|
+
control={control as any}
|
|
143
|
+
name="singleSelect"
|
|
144
|
+
_label="Single Select"
|
|
145
|
+
_options={[
|
|
146
|
+
{ label: 'Option A', value: 'A' },
|
|
147
|
+
{ label: 'Option B', value: 'B' },
|
|
148
|
+
]}
|
|
149
|
+
/>
|
|
150
|
+
<KolComboboxController control={control as any} name="combobox" _label="Country" _suggestions={COUNTRY_SUGGESTIONS} />
|
|
151
|
+
<KolTextareaController control={control as any} name="textarea" _label="Message" _rows={4} />
|
|
152
|
+
|
|
153
|
+
<div className="flex gap-4 mt-4">
|
|
154
|
+
<KolButton _label="Submit" _type="submit" _variant="primary" />
|
|
155
|
+
<KolButton _label="Reset" _type="reset" onClick={onReset} />
|
|
156
|
+
</div>
|
|
157
|
+
</form>
|
|
158
|
+
</section>
|
|
159
|
+
);
|
|
160
|
+
};
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
KolButton,
|
|
3
|
+
KolCombobox,
|
|
4
|
+
KolHeading,
|
|
3
5
|
KolInputCheckbox,
|
|
4
6
|
KolInputColor,
|
|
5
7
|
KolInputDate,
|
|
@@ -12,10 +14,8 @@ import {
|
|
|
12
14
|
KolInputText,
|
|
13
15
|
KolSelect,
|
|
14
16
|
KolSingleSelect,
|
|
15
|
-
KolCombobox,
|
|
16
17
|
KolTextarea,
|
|
17
|
-
|
|
18
|
-
} from '@public-ui/react';
|
|
18
|
+
} from '@public-ui/react-v19';
|
|
19
19
|
import type { FC } from 'react';
|
|
20
20
|
import React from 'react';
|
|
21
21
|
import { SampleDescription } from '../components/SampleDescription';
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import type { ToolbarItemsPropType } from '@public-ui/components';
|
|
2
|
+
import { KolHeading, KolToolbar } from '@public-ui/react-v19';
|
|
3
|
+
import type { FC } from 'react';
|
|
4
|
+
import React, { useEffect, useMemo, useState } from 'react';
|
|
5
|
+
|
|
6
|
+
export const ToolbarItemOrder: FC = () => {
|
|
7
|
+
const [isSubmitting, setIsSubmitting] = useState(false);
|
|
8
|
+
const [isSubmitting2, setIsSubmitting2] = useState(false);
|
|
9
|
+
|
|
10
|
+
useEffect(() => {
|
|
11
|
+
let timer: ReturnType<typeof setTimeout>;
|
|
12
|
+
if (isSubmitting) {
|
|
13
|
+
timer = setTimeout(() => {
|
|
14
|
+
setIsSubmitting(false);
|
|
15
|
+
}, 2000);
|
|
16
|
+
}
|
|
17
|
+
return () => clearTimeout(timer);
|
|
18
|
+
}, [isSubmitting]);
|
|
19
|
+
|
|
20
|
+
useEffect(() => {
|
|
21
|
+
let timer: ReturnType<typeof setTimeout>;
|
|
22
|
+
if (isSubmitting2) {
|
|
23
|
+
timer = setTimeout(() => {
|
|
24
|
+
setIsSubmitting2(false);
|
|
25
|
+
}, 2000);
|
|
26
|
+
}
|
|
27
|
+
return () => clearTimeout(timer);
|
|
28
|
+
}, [isSubmitting2]);
|
|
29
|
+
|
|
30
|
+
const handleSubmit = () => setIsSubmitting(true);
|
|
31
|
+
const handleSubmit2 = () => setIsSubmitting2(true);
|
|
32
|
+
|
|
33
|
+
const toolbarItems = useMemo(() => {
|
|
34
|
+
const items: ToolbarItemsPropType = Array.from({ length: 5 }, (_item, index) => ({
|
|
35
|
+
type: 'button',
|
|
36
|
+
_label: `Button ${index + 1}`,
|
|
37
|
+
_on: { onClick: handleSubmit },
|
|
38
|
+
_icons: isSubmitting ? 'codicon codicon-loading codicon-modifier-spin' : void 0,
|
|
39
|
+
_disabled: isSubmitting,
|
|
40
|
+
}));
|
|
41
|
+
return items;
|
|
42
|
+
}, [isSubmitting]);
|
|
43
|
+
|
|
44
|
+
const brokenToolbarItems = useMemo(() => {
|
|
45
|
+
const items: ToolbarItemsPropType = Array.from({ length: 5 }, (_item, index) => ({
|
|
46
|
+
type: 'button',
|
|
47
|
+
_label: `Button ${index + 1}`,
|
|
48
|
+
_on: { onClick: handleSubmit2 },
|
|
49
|
+
_disabled: isSubmitting2,
|
|
50
|
+
_icons: isSubmitting2 ? 'codicon codicon-loading codicon-modifier-spin' : void 0,
|
|
51
|
+
}));
|
|
52
|
+
return items;
|
|
53
|
+
}, [isSubmitting2]);
|
|
54
|
+
|
|
55
|
+
return (
|
|
56
|
+
<div style={{ display: 'flex', flexDirection: 'column', gap: '1rem' }}>
|
|
57
|
+
<KolHeading _label="Disabled Toolbar Buttons Bug (solved)" />
|
|
58
|
+
|
|
59
|
+
<KolHeading _label="icon vor disabled" _level={2} />
|
|
60
|
+
<KolToolbar _label="KolToolbar A" _items={toolbarItems} />
|
|
61
|
+
<KolHeading _label="disabled vor icon" _level={2} />
|
|
62
|
+
<p>Klicke auf einen der {brokenToolbarItems.length - 1} ersten Buttons hatte zur Folge, dass die nachfolgenden Buttons kaputt gehen.</p>
|
|
63
|
+
<KolToolbar _label="KolToolbar B" _items={brokenToolbarItems} />
|
|
64
|
+
</div>
|
|
65
|
+
);
|
|
66
|
+
};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { KolPopoverButton } from '@public-ui/react-v19';
|
|
2
|
+
import type { FC } from 'react';
|
|
3
|
+
import React from 'react';
|
|
4
|
+
import { SampleDescription } from '../components/SampleDescription';
|
|
5
|
+
|
|
6
|
+
export const TooltipPositioning: FC = () => {
|
|
7
|
+
return (
|
|
8
|
+
<>
|
|
9
|
+
<SampleDescription>
|
|
10
|
+
<p>
|
|
11
|
+
This example demonstrates tooltip positioning within container query contexts. Container queries can interfere with fixed positioning, causing
|
|
12
|
+
tooltips to render incorrectly relative to the viewport. The layout containment fix ensures tooltips position properly even when their parent elements
|
|
13
|
+
use container-based sizing and layout rules.
|
|
14
|
+
</p>
|
|
15
|
+
</SampleDescription>
|
|
16
|
+
|
|
17
|
+
<div
|
|
18
|
+
style={{
|
|
19
|
+
container: 'test / size',
|
|
20
|
+
contain: 'layout',
|
|
21
|
+
}}
|
|
22
|
+
>
|
|
23
|
+
<KolPopoverButton _label="Sample PopoverButton—Click for Popover" _icons="codicon codicon-info" _tooltipAlign="right" _hideLabel>
|
|
24
|
+
This is an explanation shown on click.
|
|
25
|
+
</KolPopoverButton>
|
|
26
|
+
</div>
|
|
27
|
+
</>
|
|
28
|
+
);
|
|
29
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export const LONG_OPTIONS = [
|
|
2
|
+
{ value: '1', label: 'Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam' },
|
|
3
|
+
{ value: '2', label: 'Lorem ipsum dolor' },
|
|
4
|
+
{
|
|
5
|
+
value: '3',
|
|
6
|
+
label:
|
|
7
|
+
'Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet.',
|
|
8
|
+
},
|
|
9
|
+
{ value: '4', label: 'Lorem ipsum dolor' },
|
|
10
|
+
{ value: '5', label: 'Lorem ipsum dolor' },
|
|
11
|
+
{ value: '6', label: 'Lorem ipsum dolor' },
|
|
12
|
+
{ value: '7', label: 'Lorem ipsum dolor' },
|
|
13
|
+
{ value: '8', label: 'Lorem ipsum dolor' },
|
|
14
|
+
{ value: '2', label: 'Lorem ipsum dolor' },
|
|
15
|
+
];
|
package/src/shares/routes.ts
CHANGED
|
@@ -4,10 +4,10 @@ import { ALERT_ROUTES } from '../components/alert/routes';
|
|
|
4
4
|
import { AVATAR_ROUTES } from '../components/avatar/routes';
|
|
5
5
|
import { BADGE_ROUTES } from '../components/badge/routes';
|
|
6
6
|
import { BREADCRUMB_ROUTES } from '../components/breadcrumb/routes';
|
|
7
|
-
import { BUTTON_GROUP_ROUTES } from '../components/button-group/routes';
|
|
8
7
|
import { BUTTON_LINK_ROUTES } from '../components/button-link/routes';
|
|
9
8
|
import { BUTTON_ROUTES } from '../components/button/routes';
|
|
10
9
|
import { CARD_ROUTES } from '../components/card/routes';
|
|
10
|
+
import { COMBOBOX_ROUTES } from '../components/combobox/routes';
|
|
11
11
|
import { DETAILS_ROUTES } from '../components/details/routes';
|
|
12
12
|
import { DRAWER_ROUTES } from '../components/drawer/routes';
|
|
13
13
|
import { FORM_ROUTES } from '../components/form/routes';
|
|
@@ -15,7 +15,6 @@ import { HANDOUT_ROUTES } from '../components/handout/routes';
|
|
|
15
15
|
import { HEADING_ROUTES } from '../components/heading/routes';
|
|
16
16
|
import { ICON_ROUTES } from '../components/icon/routes';
|
|
17
17
|
import { IMAGE_ROUTES } from '../components/image/routes';
|
|
18
|
-
import { INDENTED_ROUTES } from '../components/indented-text/routes';
|
|
19
18
|
import { INPUT_CHECKBOX_ROUTES } from '../components/input-checkbox/routes';
|
|
20
19
|
import { INPUT_COLOR_ROUTES } from '../components/input-color/routes';
|
|
21
20
|
import { INPUT_DATE_ROUTES } from '../components/input-date/routes';
|
|
@@ -28,14 +27,15 @@ import { INPUT_RANGE_ROUTES } from '../components/input-range/routes';
|
|
|
28
27
|
import { INPUT_TEXT_ROUTES } from '../components/input-text/routes';
|
|
29
28
|
import { KOLIBRI_ROUTES } from '../components/kolibri/routes';
|
|
30
29
|
import { LINK_BUTTON_ROUTES } from '../components/link-button/routes';
|
|
31
|
-
import { LINK_GROUP_ROUTES } from '../components/link-group/routes';
|
|
32
30
|
import { LINK_ROUTES } from '../components/link/routes';
|
|
33
31
|
import { MODAL_ROUTES } from '../components/modal/routes';
|
|
34
32
|
import { NAV_ROUTES } from '../components/nav/routes';
|
|
35
33
|
import { PAGINATION_ROUTES } from '../components/pagination/routes';
|
|
34
|
+
import { POPOVER_BUTTON_ROUTES } from '../components/popover-button/routes';
|
|
36
35
|
import { PROGRESS_ROUTES } from '../components/progress/routes';
|
|
37
36
|
import { QUOTE_ROUTES } from '../components/quote/routes';
|
|
38
37
|
import { SELECT_ROUTES } from '../components/select/routes';
|
|
38
|
+
import { SINGLE_SELECT_ROUTES } from '../components/single-select/routes';
|
|
39
39
|
import { SKIP_NAV_ROUTES } from '../components/skip-nav/routes';
|
|
40
40
|
import { SPIN_ROUTES } from '../components/spin/routes';
|
|
41
41
|
import { SPLIT_BUTTON_ROUTES } from '../components/split-button/routes';
|
|
@@ -44,12 +44,10 @@ import { TABS_ROUTES } from '../components/tabs/routes';
|
|
|
44
44
|
import { TEXTAREA_ROUTES } from '../components/textarea/routes';
|
|
45
45
|
import { TOAST_ROUTES } from '../components/toast/routes';
|
|
46
46
|
import { TOOLBAR_ROUTES } from '../components/toolbar/routes';
|
|
47
|
+
import { TREE_ROUTES } from '../components/tree/routes';
|
|
47
48
|
import { VERSION_ROUTES } from '../components/version/routes';
|
|
48
49
|
import { SCENARIO_ROUTES } from '../scenarios/routes';
|
|
49
50
|
import { Routes } from './types';
|
|
50
|
-
import { TREE_ROUTES } from '../components/tree/routes';
|
|
51
|
-
import { COMBOBOX_ROUTES } from '../components/combobox/routes';
|
|
52
|
-
import { SINGLE_SELECT_ROUTES } from '../components/single-select/routes';
|
|
53
51
|
|
|
54
52
|
export const ROUTES: Routes = {
|
|
55
53
|
...HANDOUT_ROUTES,
|
|
@@ -59,7 +57,6 @@ export const ROUTES: Routes = {
|
|
|
59
57
|
...AVATAR_ROUTES,
|
|
60
58
|
...BADGE_ROUTES,
|
|
61
59
|
...BREADCRUMB_ROUTES,
|
|
62
|
-
...BUTTON_GROUP_ROUTES,
|
|
63
60
|
...BUTTON_LINK_ROUTES,
|
|
64
61
|
...BUTTON_ROUTES,
|
|
65
62
|
...CARD_ROUTES,
|
|
@@ -70,7 +67,6 @@ export const ROUTES: Routes = {
|
|
|
70
67
|
...HEADING_ROUTES,
|
|
71
68
|
...ICON_ROUTES,
|
|
72
69
|
...IMAGE_ROUTES,
|
|
73
|
-
...INDENTED_ROUTES,
|
|
74
70
|
...INPUT_CHECKBOX_ROUTES,
|
|
75
71
|
...INPUT_COLOR_ROUTES,
|
|
76
72
|
...INPUT_DATE_ROUTES,
|
|
@@ -83,11 +79,11 @@ export const ROUTES: Routes = {
|
|
|
83
79
|
...INPUT_TEXT_ROUTES,
|
|
84
80
|
...KOLIBRI_ROUTES,
|
|
85
81
|
...LINK_BUTTON_ROUTES,
|
|
86
|
-
...LINK_GROUP_ROUTES,
|
|
87
82
|
...LINK_ROUTES,
|
|
88
83
|
...MODAL_ROUTES,
|
|
89
84
|
...NAV_ROUTES,
|
|
90
85
|
...PAGINATION_ROUTES,
|
|
86
|
+
...POPOVER_BUTTON_ROUTES,
|
|
91
87
|
...PROGRESS_ROUTES,
|
|
92
88
|
...QUOTE_ROUTES,
|
|
93
89
|
...SELECT_ROUTES,
|