@public-ui/sample-react 4.0.0-alpha.0 → 5.0.0-alpha.0
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 +20 -1
- package/dist/assets/Alert-CPAV4jP0-CLk7QYp0.js +4 -0
- package/dist/assets/Alert-CPAV4jP0-CLk7QYp0.js.map +1 -0
- package/dist/assets/Collapsible-BdJSqZfQ-CW3zh1sv.js +4 -0
- package/dist/assets/Collapsible-BdJSqZfQ-CW3zh1sv.js.map +1 -0
- package/dist/assets/CustomSuggestionsToggle-bD-uaZjm-VQtkCu9s.js +4 -0
- package/dist/assets/CustomSuggestionsToggle-bD-uaZjm-VQtkCu9s.js.map +1 -0
- package/dist/assets/FieldControlStateWrapper-Dx7wIY7O-BARR_W_9.js +4 -0
- package/dist/assets/FieldControlStateWrapper-Dx7wIY7O-BARR_W_9.js.map +1 -0
- package/dist/assets/FormFieldStateWrapper-P3gsirX7-_klxEfUe.js +4 -0
- package/dist/assets/FormFieldStateWrapper-P3gsirX7-_klxEfUe.js.map +1 -0
- package/dist/assets/Heading-E6VPUTCQ-B1xNnKja.js +4 -0
- package/dist/assets/Heading-E6VPUTCQ-B1xNnKja.js.map +1 -0
- package/dist/assets/Icon-CZGGWMvI-CpggmwQf.js +4 -0
- package/dist/assets/Icon-CZGGWMvI-CpggmwQf.js.map +1 -0
- package/dist/assets/Input-B9Wel4KN-CD5ZpCgM.js +4 -0
- package/dist/assets/Input-B9Wel4KN-CD5ZpCgM.js.map +1 -0
- package/dist/assets/InputStateWrapper-tA40Qb4L-B2T4BcML.js +4 -0
- package/dist/assets/InputStateWrapper-tA40Qb4L-B2T4BcML.js.map +1 -0
- package/dist/assets/InternalUnderlinedBadgeText-CAeB1moW-RuwntPUK.js +4 -0
- package/dist/assets/InternalUnderlinedBadgeText-CAeB1moW-RuwntPUK.js.map +1 -0
- package/dist/assets/README.md +1 -0
- package/dist/assets/Span-4JeabU4v-B4Ic693K.js +4 -0
- package/dist/assets/Span-4JeabU4v-B4Ic693K.js.map +1 -0
- package/dist/assets/access-and-short-key-bcID78Ha-DEFKt7Bg.js +4 -0
- package/dist/assets/access-and-short-key-bcID78Ha-DEFKt7Bg.js.map +1 -0
- package/dist/assets/align-CyK0wp7d-DAXTQf4t.js +4 -0
- package/dist/assets/align-CyK0wp7d-DAXTQf4t.js.map +1 -0
- package/dist/assets/align-floating-elements-Bx4ukVlr-CL_0eU3g.js +4 -0
- package/dist/assets/align-floating-elements-Bx4ukVlr-CL_0eU3g.js.map +1 -0
- package/dist/assets/associated.controller-BKIODHIT-Di-mnA6P.js +4 -0
- package/dist/assets/associated.controller-BKIODHIT-Di-mnA6P.js.map +1 -0
- package/dist/assets/auto-complete-BsG3RQJ3-Bomu057n.js +4 -0
- package/dist/assets/auto-complete-BsG3RQJ3-Bomu057n.js.map +1 -0
- package/dist/assets/clsx-eK3rPvPS-BT_IL7Fz.js +4 -0
- package/dist/assets/clsx-eK3rPvPS-BT_IL7Fz.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-C3pYZKV3-Boz82QD1.js +4 -0
- package/dist/assets/color-C3pYZKV3-Boz82QD1.js.map +1 -0
- package/dist/assets/controller-4o5NtKAV-D22HY-_r.js +4 -0
- package/dist/assets/controller-4o5NtKAV-D22HY-_r.js.map +1 -0
- package/dist/assets/controller-CAN1DW3L-B9N3aOv7.js +4 -0
- package/dist/assets/controller-CAN1DW3L-B9N3aOv7.js.map +1 -0
- package/dist/assets/controller-CV2y9Ae_-C2Ci0S_1.js +4 -0
- package/dist/assets/controller-CV2y9Ae_-C2Ci0S_1.js.map +1 -0
- package/dist/assets/controller-Dl3IUIE_-BJro71ic.js +4 -0
- package/dist/assets/controller-Dl3IUIE_-BJro71ic.js.map +1 -0
- package/dist/assets/controller-icon-Dl7OIeHN-B8sxZuO8.js +4 -0
- package/dist/assets/controller-icon-Dl7OIeHN-B8sxZuO8.js.map +1 -0
- package/dist/assets/custom-class-CA0KGtrM-CKVUEgqH.js +4 -0
- package/dist/assets/custom-class-CA0KGtrM-CKVUEgqH.js.map +1 -0
- package/dist/assets/dev.utils-CeYsnaLz-_oCb7mSZ.js +16 -0
- package/dist/assets/dev.utils-CeYsnaLz-_oCb7mSZ.js.map +1 -0
- package/dist/assets/devtools-DAp5aq4j-B34OXP1z.js +16 -0
- package/dist/assets/devtools-DAp5aq4j-B34OXP1z.js.map +1 -0
- package/dist/assets/disabled-BydergHu-DG5LdC-Q.js +4 -0
- package/dist/assets/disabled-BydergHu-DG5LdC-Q.js.map +1 -0
- package/dist/assets/has-closer-BBMh8HY3-X-04kzoH.js +4 -0
- package/dist/assets/has-closer-BBMh8HY3-X-04kzoH.js.map +1 -0
- package/dist/assets/hide-label-DRunOux4--dDsrCvo.js +4 -0
- package/dist/assets/hide-label-DRunOux4--dDsrCvo.js.map +1 -0
- package/dist/assets/href-zZq6HYWf-CJRn7KoA.js +4 -0
- package/dist/assets/href-zZq6HYWf-CJRn7KoA.js.map +1 -0
- package/dist/assets/i18n-CdSCDnmA-DXZ5RBs2.js +4 -0
- package/dist/assets/i18n-CdSCDnmA-DXZ5RBs2.js.map +1 -0
- package/dist/assets/icons-72ER78AW-DpSGILmm.js +4 -0
- package/dist/assets/icons-72ER78AW-DpSGILmm.js.map +1 -0
- package/dist/assets/image-source-RWPv7frZ-DPAFBpz5.js +4 -0
- package/dist/assets/image-source-RWPv7frZ-DPAFBpz5.js.map +1 -0
- package/dist/assets/index-BGOAkFhh.css +1 -0
- package/dist/assets/index-BcWoQyjV.js +14095 -0
- package/dist/assets/index-BcWoQyjV.js.map +1 -0
- package/dist/assets/isObject-DvSELytj-B0RigBxT.js +4 -0
- package/dist/assets/isObject-DvSELytj-B0RigBxT.js.map +1 -0
- package/dist/assets/keyboard-D6PoWr38-Bn_Qh8Bq.js +4 -0
- package/dist/assets/keyboard-D6PoWr38-Bn_Qh8Bq.js.map +1 -0
- package/dist/assets/kol-abbr.entry-D1-px79M.js +237 -0
- package/dist/assets/kol-abbr.entry-D1-px79M.js.map +1 -0
- package/dist/assets/kol-accordion.entry-D5TwzVdy.js +249 -0
- package/dist/assets/kol-accordion.entry-D5TwzVdy.js.map +1 -0
- package/dist/assets/kol-alert-wc.entry-BRcerKE9.js +4 -0
- package/dist/assets/kol-alert-wc.entry-BRcerKE9.js.map +1 -0
- package/dist/assets/kol-alert.entry-DjTpHMvm.js +258 -0
- package/dist/assets/kol-alert.entry-DjTpHMvm.js.map +1 -0
- package/dist/assets/kol-avatar-wc.entry-DL1FiK4Y.js +4 -0
- package/dist/assets/kol-avatar-wc.entry-DL1FiK4Y.js.map +1 -0
- package/dist/assets/kol-avatar.entry-D-Hk8QoG.js +221 -0
- package/dist/assets/kol-avatar.entry-D-Hk8QoG.js.map +1 -0
- package/dist/assets/kol-badge.entry-BmtWYybc.js +248 -0
- package/dist/assets/kol-badge.entry-BmtWYybc.js.map +1 -0
- package/dist/assets/kol-breadcrumb.entry-4_4wJ1V7.js +281 -0
- package/dist/assets/kol-breadcrumb.entry-4_4wJ1V7.js.map +1 -0
- package/dist/assets/kol-button-link.entry-C4RHDvXg.js +267 -0
- package/dist/assets/kol-button-link.entry-C4RHDvXg.js.map +1 -0
- package/dist/assets/kol-button-wc.entry-CO1HKaP-.js +4 -0
- package/dist/assets/kol-button-wc.entry-CO1HKaP-.js.map +1 -0
- package/dist/assets/kol-button.entry-7-wx39q5.js +258 -0
- package/dist/assets/kol-button.entry-7-wx39q5.js.map +1 -0
- package/dist/assets/kol-card-wc.entry-PlaKhF5y.js +4 -0
- package/dist/assets/kol-card-wc.entry-PlaKhF5y.js.map +1 -0
- package/dist/assets/kol-card.entry-CyHtLWIW.js +250 -0
- package/dist/assets/kol-card.entry-CyHtLWIW.js.map +1 -0
- package/dist/assets/kol-combobox.entry-CpmqxpBN.js +343 -0
- package/dist/assets/kol-combobox.entry-CpmqxpBN.js.map +1 -0
- package/dist/assets/kol-details.entry-kQzWhN5P.js +260 -0
- package/dist/assets/kol-details.entry-kQzWhN5P.js.map +1 -0
- package/dist/assets/kol-drawer.entry-DxS7MGCL.js +289 -0
- package/dist/assets/kol-drawer.entry-DxS7MGCL.js.map +1 -0
- package/dist/assets/kol-form.entry-DFy3LYKz.js +283 -0
- package/dist/assets/kol-form.entry-DFy3LYKz.js.map +1 -0
- package/dist/assets/kol-heading.entry-Bz6Uz9Xb.js +197 -0
- package/dist/assets/kol-heading.entry-Bz6Uz9Xb.js.map +1 -0
- package/dist/assets/kol-icon.entry-C4kKMLmM.js +2376 -0
- package/dist/assets/kol-icon.entry-C4kKMLmM.js.map +1 -0
- package/dist/assets/kol-image.entry-DN85gHIY.js +199 -0
- package/dist/assets/kol-image.entry-DN85gHIY.js.map +1 -0
- package/dist/assets/kol-input-checkbox.entry-BB36qYTr.js +435 -0
- package/dist/assets/kol-input-checkbox.entry-BB36qYTr.js.map +1 -0
- package/dist/assets/kol-input-color.entry-CRrCLnIq.js +331 -0
- package/dist/assets/kol-input-color.entry-CRrCLnIq.js.map +1 -0
- package/dist/assets/kol-input-date.entry-GfOOymhn.js +313 -0
- package/dist/assets/kol-input-date.entry-GfOOymhn.js.map +1 -0
- package/dist/assets/kol-input-email.entry-PV2-V6ea.js +313 -0
- package/dist/assets/kol-input-email.entry-PV2-V6ea.js.map +1 -0
- package/dist/assets/kol-input-file.entry-BV9OeZr8.js +345 -0
- package/dist/assets/kol-input-file.entry-BV9OeZr8.js.map +1 -0
- package/dist/assets/kol-input-number.entry-RTzOX8E_.js +313 -0
- package/dist/assets/kol-input-number.entry-RTzOX8E_.js.map +1 -0
- package/dist/assets/kol-input-password.entry-P1D_zg4A.js +316 -0
- package/dist/assets/kol-input-password.entry-P1D_zg4A.js.map +1 -0
- package/dist/assets/kol-input-radio.entry-dTd41HrI.js +434 -0
- package/dist/assets/kol-input-radio.entry-dTd41HrI.js.map +1 -0
- package/dist/assets/kol-input-range.entry-DcGp-uOd.js +360 -0
- package/dist/assets/kol-input-range.entry-DcGp-uOd.js.map +1 -0
- package/dist/assets/kol-input-text.entry-TOkH_vFE.js +313 -0
- package/dist/assets/kol-input-text.entry-TOkH_vFE.js.map +1 -0
- package/dist/assets/kol-kolibri.entry-vnjBHTkR.js +203 -0
- package/dist/assets/kol-kolibri.entry-vnjBHTkR.js.map +1 -0
- package/dist/assets/kol-link-button.entry-CiZlKz0X.js +258 -0
- package/dist/assets/kol-link-button.entry-CiZlKz0X.js.map +1 -0
- package/dist/assets/kol-link-wc.entry-gCO8GEIA.js +4 -0
- package/dist/assets/kol-link-wc.entry-gCO8GEIA.js.map +1 -0
- package/dist/assets/kol-link.entry-CEbyTLtL.js +264 -0
- package/dist/assets/kol-link.entry-CEbyTLtL.js.map +1 -0
- package/dist/assets/kol-modal.entry-DxkjKvjF.js +265 -0
- package/dist/assets/kol-modal.entry-DxkjKvjF.js.map +1 -0
- package/dist/assets/kol-nav.entry-ETXrkvXL.js +280 -0
- package/dist/assets/kol-nav.entry-ETXrkvXL.js.map +1 -0
- package/dist/assets/kol-pagination-wc.entry-CVm2_d-B.js +4 -0
- package/dist/assets/kol-pagination-wc.entry-CVm2_d-B.js.map +1 -0
- package/dist/assets/kol-pagination.entry-CFi2-gxM.js +258 -0
- package/dist/assets/kol-pagination.entry-CFi2-gxM.js.map +1 -0
- package/dist/assets/kol-popover-button-wc.entry-ChSU6IFm.js +4 -0
- package/dist/assets/kol-popover-button-wc.entry-ChSU6IFm.js.map +1 -0
- package/dist/assets/kol-popover-button.entry-DxNtCQp-.js +266 -0
- package/dist/assets/kol-popover-button.entry-DxNtCQp-.js.map +1 -0
- package/dist/assets/kol-popover-wc.entry-DifxtFqF.js +4 -0
- package/dist/assets/kol-popover-wc.entry-DifxtFqF.js.map +1 -0
- package/dist/assets/kol-progress.entry-nca34a3W.js +275 -0
- package/dist/assets/kol-progress.entry-nca34a3W.js.map +1 -0
- package/dist/assets/kol-quote.entry-YXiTZNnm.js +220 -0
- package/dist/assets/kol-quote.entry-YXiTZNnm.js.map +1 -0
- package/dist/assets/kol-select.entry-BH_s2GX5.js +326 -0
- package/dist/assets/kol-select.entry-BH_s2GX5.js.map +1 -0
- package/dist/assets/kol-single-select.entry-DVUfcX_x.js +359 -0
- package/dist/assets/kol-single-select.entry-DVUfcX_x.js.map +1 -0
- package/dist/assets/kol-skip-nav.entry-CMICgsBM.js +213 -0
- package/dist/assets/kol-skip-nav.entry-CMICgsBM.js.map +1 -0
- package/dist/assets/kol-spin.entry-BibNCOH_.js +326 -0
- package/dist/assets/kol-spin.entry-BibNCOH_.js.map +1 -0
- package/dist/assets/kol-split-button.entry-CN1J8gkv.js +299 -0
- package/dist/assets/kol-split-button.entry-CN1J8gkv.js.map +1 -0
- package/dist/assets/kol-table-settings-wc.entry-DzYEaUnI.js +4 -0
- package/dist/assets/kol-table-settings-wc.entry-DzYEaUnI.js.map +1 -0
- package/dist/assets/kol-table-stateful.entry-DC6QZqed.js +478 -0
- package/dist/assets/kol-table-stateful.entry-DC6QZqed.js.map +1 -0
- package/dist/assets/kol-table-stateless-wc.entry-BKTtdiXs.js +4 -0
- package/dist/assets/kol-table-stateless-wc.entry-BKTtdiXs.js.map +1 -0
- package/dist/assets/kol-table-stateless.entry-ceyX4Pr1.js +437 -0
- package/dist/assets/kol-table-stateless.entry-ceyX4Pr1.js.map +1 -0
- package/dist/assets/kol-tabs.entry-ugHVPvjR.js +285 -0
- package/dist/assets/kol-tabs.entry-ugHVPvjR.js.map +1 -0
- package/dist/assets/kol-textarea.entry-BvcXAwnb.js +312 -0
- package/dist/assets/kol-textarea.entry-BvcXAwnb.js.map +1 -0
- package/dist/assets/kol-toast-container.entry-C3GIT1za.js +267 -0
- package/dist/assets/kol-toast-container.entry-C3GIT1za.js.map +1 -0
- package/dist/assets/kol-toolbar.entry-2hd718Om.js +271 -0
- package/dist/assets/kol-toolbar.entry-2hd718Om.js.map +1 -0
- package/dist/assets/kol-tooltip-wc.entry-hBiCsVpb.js +4 -0
- package/dist/assets/kol-tooltip-wc.entry-hBiCsVpb.js.map +1 -0
- package/dist/assets/kol-tree-item-wc.entry-Cr2lH6I6.js +4 -0
- package/dist/assets/kol-tree-item-wc.entry-Cr2lH6I6.js.map +1 -0
- package/dist/assets/kol-tree-item.entry-DmWUWFcB.js +230 -0
- package/dist/assets/kol-tree-item.entry-DmWUWFcB.js.map +1 -0
- package/dist/assets/kol-tree-wc.entry-BxjlLj3I.js +4 -0
- package/dist/assets/kol-tree-wc.entry-BxjlLj3I.js.map +1 -0
- package/dist/assets/kol-tree.entry-DtuEyjDz.js +203 -0
- package/dist/assets/kol-tree.entry-DtuEyjDz.js.map +1 -0
- package/dist/assets/kol-version.entry-BAe12zmq.js +192 -0
- package/dist/assets/kol-version.entry-BAe12zmq.js.map +1 -0
- package/dist/assets/kreon/OFL.txt +93 -93
- package/dist/assets/label-CdtNxOKu-pHFEuQ3R.js +4 -0
- package/dist/assets/label-CdtNxOKu-pHFEuQ3R.js.map +1 -0
- package/dist/assets/link-variant-H9yefO89-BVbfesoN.js +4 -0
- package/dist/assets/link-variant-H9yefO89-BVbfesoN.js.map +1 -0
- package/dist/assets/markdown-DL-PkOqb-4V8Cu5gn.js +19 -0
- package/dist/assets/markdown-DL-PkOqb-4V8Cu5gn.js.map +1 -0
- 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-symbols/index.scss +3 -3
- package/dist/assets/material-symbols/outlined.scss +2 -2
- package/dist/assets/material-symbols/rounded.scss +2 -2
- package/dist/assets/material-symbols/sharp.scss +2 -2
- package/dist/assets/max-length-behavior-BmNWss6T-BiOjdIG-.js +4 -0
- package/dist/assets/max-length-behavior-BmNWss6T-BiOjdIG-.js.map +1 -0
- package/dist/assets/multiple-bcm5IaCN-BM-5Peyu.js +4 -0
- package/dist/assets/multiple-bcm5IaCN-BM-5Peyu.js.map +1 -0
- package/dist/assets/noto-sans/fonts/OFL.txt +93 -93
- package/dist/assets/open-D9q98v46-Bj8Lg8iR.js +4 -0
- package/dist/assets/open-D9q98v46-Bj8Lg8iR.js.map +1 -0
- package/dist/assets/orientation-5kQWqijN-b_j8C7_r.js +4 -0
- package/dist/assets/orientation-5kQWqijN-b_j8C7_r.js.map +1 -0
- package/dist/assets/placeholder-6URRds0_-BkuOrv2r.js +4 -0
- package/dist/assets/placeholder-6URRds0_-BkuOrv2r.js.map +1 -0
- package/dist/assets/read-only-CcRldJ9w-CcImKy3V.js +4 -0
- package/dist/assets/read-only-CcRldJ9w-CcImKy3V.js.map +1 -0
- package/dist/assets/required-G86n77y0-D0bNZ_U9.js +4 -0
- package/dist/assets/required-G86n77y0-D0bNZ_U9.js.map +1 -0
- package/dist/assets/reuse-CX4AQDkS-Cyh-fyjG.js +4 -0
- package/dist/assets/reuse-CX4AQDkS-Cyh-fyjG.js.map +1 -0
- package/dist/assets/roboto/LICENSE.txt +202 -202
- package/dist/assets/rows-P4l3PNiA-BMhEFcD5.js +4 -0
- package/dist/assets/rows-P4l3PNiA-BMhEFcD5.js.map +1 -0
- package/dist/assets/show-DsV_Vx8g-Dv3aCZCZ.js +4 -0
- package/dist/assets/show-DsV_Vx8g-Dv3aCZCZ.js.map +1 -0
- package/dist/assets/spell-check-DIsLAYgk-nyUkR3AD.js +4 -0
- package/dist/assets/spell-check-DIsLAYgk-nyUkR3AD.js.map +1 -0
- package/dist/assets/suggestions-DfF4lcNG-DtOaXua3.js +4 -0
- package/dist/assets/suggestions-DfF4lcNG-DtOaXua3.js.map +1 -0
- package/dist/assets/table-settings-DSZObo-2-CG57c-Iz.js +4 -0
- package/dist/assets/table-settings-DSZObo-2-CG57c-Iz.js.map +1 -0
- package/dist/assets/test-component.entry-XCdkvKax.js +4 -0
- package/dist/assets/test-component.entry-XCdkvKax.js.map +1 -0
- package/dist/assets/tooltip-align-_VI7LehI-CnTmBpTY.js +4 -0
- package/dist/assets/tooltip-align-_VI7LehI-CnTmBpTY.js.map +1 -0
- package/dist/assets/tooltip-open-tracking-rBbBgPWP-CZrYVTp5.js +4 -0
- package/dist/assets/tooltip-open-tracking-rBbBgPWP-CZrYVTp5.js.map +1 -0
- package/dist/assets/tslib.es6-CxX45GIN-BAJoBDh7.js +4 -0
- package/dist/assets/tslib.es6-CxX45GIN-BAJoBDh7.js.map +1 -0
- package/dist/assets/unique-nav-labels-C_NhdgGz-CJHm2FuG.js +4 -0
- package/dist/assets/unique-nav-labels-C_NhdgGz-CJHm2FuG.js.map +1 -0
- package/dist/assets/validation-CW_RXPSn-jNLxrEvl.js +4 -0
- package/dist/assets/validation-CW_RXPSn-jNLxrEvl.js.map +1 -0
- package/dist/assets/validation-DoIjmu3L-CXCVI4ek.js +4 -0
- package/dist/assets/validation-DoIjmu3L-CXCVI4ek.js.map +1 -0
- package/dist/index.html +16 -14
- package/index.html +29 -0
- package/package.json +54 -48
- 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/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-symbols/index.scss +3 -3
- package/public/assets/material-symbols/outlined.scss +2 -2
- 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 +1 -1
- package/src/components/SampleColumns.tsx +10 -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 +1 -1
- package/src/components/accordion/headlines.tsx +1 -1
- package/src/components/alert/basic.tsx +5 -5
- package/src/components/alert/html.tsx +1 -1
- package/src/components/avatar/basic.tsx +1 -1
- package/src/components/badge/basic.tsx +2 -2
- package/src/components/badge/button.tsx +2 -2
- package/src/components/badge/formatted-label.tsx +19 -0
- package/src/components/badge/routes.ts +2 -0
- package/src/components/breadcrumb/basic.tsx +1 -1
- package/src/components/button/access-key.tsx +5 -4
- package/src/components/button/aria-description.tsx +1 -1
- package/src/components/button/baselined.tsx +2 -2
- package/src/components/button/icons.tsx +1 -1
- package/src/components/button/partials/cases.tsx +3 -3
- package/src/components/button/partials/variants.tsx +1 -1
- package/src/components/button/routes.ts +2 -0
- package/src/components/button/row-reverse-tooltip.tsx +26 -0
- package/src/components/button/short-key.tsx +108 -6
- package/src/components/button/width.tsx +1 -1
- package/src/components/button-link/aria-description.tsx +1 -1
- package/src/components/button-link/basic.tsx +9 -4
- package/src/components/button-link/icons.tsx +1 -1
- package/src/components/button-link/image.tsx +1 -1
- package/src/components/card/basic.tsx +1 -1
- package/src/components/combobox/basic.tsx +1 -6
- package/src/components/combobox/partials/cases.tsx +1 -1
- package/src/components/combobox/partials/variants.tsx +3 -2
- 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 +27 -37
- 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 +3 -2
- package/src/components/image/basic.tsx +2 -2
- package/src/components/input-checkbox/basic.tsx +1 -1
- package/src/components/input-checkbox/button.tsx +1 -1
- 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 +1 -1
- package/src/components/input-color/basic.tsx +1 -1
- package/src/components/input-color/partials/cases.tsx +5 -3
- package/src/components/input-color/partials/variants.tsx +3 -2
- package/src/components/input-date/basic.tsx +1 -1
- package/src/components/input-date/copy-paste.tsx +172 -0
- package/src/components/input-date/partials/cases.tsx +8 -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 +1 -1
- package/src/components/input-email/partials/cases.tsx +7 -4
- package/src/components/input-email/partials/variants.tsx +3 -2
- package/src/components/input-file/basic.tsx +1 -1
- package/src/components/input-file/partials/cases.tsx +7 -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/partials/cases.tsx +1 -1
- package/src/components/input-number/partials/variants.tsx +3 -2
- package/src/components/input-password/basic.tsx +1 -1
- package/src/components/input-password/partials/cases.tsx +9 -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 +1 -1
- 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 +1 -1
- package/src/components/input-range/partials/cases.tsx +7 -4
- package/src/components/input-range/partials/variants.tsx +3 -2
- package/src/components/input-text/basic.tsx +1 -1
- package/src/components/input-text/expert-slot.tsx +1 -1
- package/src/components/input-text/{hide-errors.tsx → hide-msg.tsx} +6 -6
- package/src/components/input-text/partials/cases.tsx +4 -4
- 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 +43 -14
- package/src/components/input-text/text-formatter.tsx +3 -4
- package/src/components/kolibri/basic.tsx +1 -1
- package/src/components/link/access-key.tsx +2 -4
- package/src/components/link/aria-description.tsx +1 -1
- package/src/components/link/basic.tsx +13 -11
- 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 +2 -0
- 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 +2 -2
- package/src/components/link-button/basic.tsx +9 -11
- 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 +62 -0
- package/src/components/popover-button/routes.ts +8 -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 +1 -1
- 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 +1 -7
- package/src/components/single-select/partials/cases.tsx +10 -5
- package/src/components/single-select/partials/variants.tsx +8 -7
- package/src/components/skip-nav/basic.tsx +1 -1
- package/src/components/spin/basic.tsx +1 -1
- package/src/components/spin/custom.css +13 -12
- package/src/components/spin/custom.tsx +1 -1
- 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 +28 -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/horizontal-scrollbar.tsx +50 -25
- package/src/components/table/interactive-child-elements.tsx +3 -3
- package/src/components/table/multi-sort.tsx +6 -4
- 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 +17 -9
- 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-settings-menu.tsx +52 -0
- package/src/components/table/stateless-with-single-selection.tsx +9 -6
- package/src/components/table/stateless.tsx +3 -2
- package/src/components/table/sticky-header.tsx +37 -0
- package/src/components/table/test-complex-data.ts +2214 -0
- package/src/components/table/with-footer.tsx +4 -3
- package/src/components/table/with-pagination.tsx +3 -3
- package/src/components/tabs/align.tsx +1 -1
- 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 +2 -0
- package/src/components/textarea/adjust-height.tsx +1 -1
- package/src/components/textarea/basic.tsx +1 -1
- package/src/components/textarea/partials/cases.tsx +10 -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 +40 -40
- package/src/components/toolbar/disabled.tsx +2 -5
- package/src/components/tree/basic.tsx +3 -3
- 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 +59 -10
- package/src/scenarios/appointment-form/AppointmentForm.tsx +1 -1
- package/src/scenarios/appointment-form/AvailableAppointmentsForm.tsx +1 -1
- package/src/scenarios/appointment-form/DistrictForm.tsx +2 -2
- package/src/scenarios/appointment-form/PersonalInformationForm.tsx +6 -3
- package/src/scenarios/appointment-form/Summary.tsx +1 -1
- package/src/scenarios/appointment-form/formUtils.ts +1 -1
- package/src/scenarios/change-tabindex.tsx +25 -23
- package/src/scenarios/custom-tooltip-width.tsx +1 -1
- package/src/scenarios/disabled-interactive-elements.tsx +1 -1
- package/src/scenarios/focus-elements.tsx +1 -1
- package/src/scenarios/horizontal-scrollbar-advanced/TableHorizontalScrollbarAdvanced.tsx +10 -4
- package/src/scenarios/horizontal-scrollbar-advanced/layout.scss +7 -7
- package/src/scenarios/input-group-with-error.tsx +5 -5
- package/src/scenarios/inputs-get-value.tsx +11 -6
- package/src/scenarios/performance-test.tsx +27 -0
- package/src/scenarios/react-hook-form/basic.tsx +183 -0
- package/src/scenarios/routes.ts +16 -6
- package/src/scenarios/same-height-of-all-interactive-elements.tsx +62 -0
- package/src/scenarios/sample-form-with-validation.tsx +192 -0
- package/src/scenarios/static-form.tsx +1 -1
- package/src/scenarios/toolbar-item-order.tsx +64 -0
- package/src/scenarios/tooltip-positioning.tsx +29 -0
- package/src/shares/longOptions.ts +15 -0
- package/src/shares/routes.ts +3 -7
- package/src/shares/store.ts +0 -19
- package/src/shares/theme.ts +5 -9
- package/src/style.scss +36 -13
- 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-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/src/components/nav/horizontal.tsx +0 -24
- package/src/components/textarea/counter.tsx +0 -20
- package/webpack.config.js +0 -19
|
@@ -0,0 +1,183 @@
|
|
|
1
|
+
import type { FC } from 'react';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import type { SubmitHandler, FieldErrors } from 'react-hook-form';
|
|
4
|
+
import { useForm } from 'react-hook-form';
|
|
5
|
+
import {
|
|
6
|
+
KolInputTextController,
|
|
7
|
+
KolInputPasswordController,
|
|
8
|
+
KolInputEmailController,
|
|
9
|
+
KolInputNumberController,
|
|
10
|
+
KolInputRangeController,
|
|
11
|
+
KolInputDateController,
|
|
12
|
+
KolInputColorController,
|
|
13
|
+
KolInputFileController,
|
|
14
|
+
KolTextareaController,
|
|
15
|
+
KolComboboxController,
|
|
16
|
+
KolSelectController,
|
|
17
|
+
KolSingleSelectController,
|
|
18
|
+
KolInputRadioController,
|
|
19
|
+
KolInputCheckboxController,
|
|
20
|
+
} from '@public-ui/react-hook-form-adapter';
|
|
21
|
+
import { KolButton } from '@public-ui/react-v19';
|
|
22
|
+
|
|
23
|
+
import { SampleDescription } from '../../components/SampleDescription';
|
|
24
|
+
import { COUNTRY_SUGGESTIONS } from '../../shares/country';
|
|
25
|
+
|
|
26
|
+
interface FormData {
|
|
27
|
+
firstName: string;
|
|
28
|
+
lastName: string;
|
|
29
|
+
email: string;
|
|
30
|
+
password: string;
|
|
31
|
+
age: number;
|
|
32
|
+
volume: number;
|
|
33
|
+
birthday: string;
|
|
34
|
+
favoriteColor: string;
|
|
35
|
+
cv: FileList | null;
|
|
36
|
+
bio: string;
|
|
37
|
+
country: string;
|
|
38
|
+
language: string;
|
|
39
|
+
framework: string;
|
|
40
|
+
gender: string;
|
|
41
|
+
termsAccepted: boolean;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
const defaultValues: FormData = {
|
|
45
|
+
firstName: '',
|
|
46
|
+
lastName: '',
|
|
47
|
+
email: '',
|
|
48
|
+
password: '',
|
|
49
|
+
age: 18,
|
|
50
|
+
volume: 50,
|
|
51
|
+
birthday: '',
|
|
52
|
+
favoriteColor: '#000000',
|
|
53
|
+
cv: null,
|
|
54
|
+
bio: '',
|
|
55
|
+
country: '',
|
|
56
|
+
language: 'de',
|
|
57
|
+
framework: '',
|
|
58
|
+
gender: '',
|
|
59
|
+
termsAccepted: false,
|
|
60
|
+
};
|
|
61
|
+
|
|
62
|
+
const languageOptions = [
|
|
63
|
+
{ label: 'English', value: 'en' },
|
|
64
|
+
{ label: 'German', value: 'de' },
|
|
65
|
+
{ label: 'French', value: 'fr' },
|
|
66
|
+
];
|
|
67
|
+
|
|
68
|
+
const frameworkOptions = [
|
|
69
|
+
{ label: 'React', value: 'react' },
|
|
70
|
+
{ label: 'Vue', value: 'vue' },
|
|
71
|
+
{ label: 'Stencil', value: 'stencil' },
|
|
72
|
+
];
|
|
73
|
+
|
|
74
|
+
const genderOptions = [
|
|
75
|
+
{ label: 'Male', value: 'male' },
|
|
76
|
+
{ label: 'Female', value: 'female' },
|
|
77
|
+
{ label: 'Other', value: 'other' },
|
|
78
|
+
];
|
|
79
|
+
|
|
80
|
+
const allFields: Array<keyof FormData> = [
|
|
81
|
+
'firstName',
|
|
82
|
+
'lastName',
|
|
83
|
+
'email',
|
|
84
|
+
'password',
|
|
85
|
+
'age',
|
|
86
|
+
'volume',
|
|
87
|
+
'birthday',
|
|
88
|
+
'favoriteColor',
|
|
89
|
+
'cv',
|
|
90
|
+
'bio',
|
|
91
|
+
'country',
|
|
92
|
+
'language',
|
|
93
|
+
'framework',
|
|
94
|
+
'gender',
|
|
95
|
+
'termsAccepted',
|
|
96
|
+
];
|
|
97
|
+
|
|
98
|
+
export const RHFBasic: FC = () => {
|
|
99
|
+
const { control, handleSubmit, setValue, getValues, trigger } = useForm<FormData>({
|
|
100
|
+
defaultValues,
|
|
101
|
+
mode: 'onTouched',
|
|
102
|
+
shouldFocusError: true,
|
|
103
|
+
});
|
|
104
|
+
|
|
105
|
+
const touchAndValidateAll = () => {
|
|
106
|
+
allFields.forEach((name) => {
|
|
107
|
+
setValue(name, getValues(name), { shouldTouch: true, shouldValidate: true });
|
|
108
|
+
});
|
|
109
|
+
};
|
|
110
|
+
|
|
111
|
+
const onSubmit: SubmitHandler<FormData> = (data) => {
|
|
112
|
+
alert(JSON.stringify(data, null, 2));
|
|
113
|
+
};
|
|
114
|
+
|
|
115
|
+
const onError = (errors: FieldErrors<FormData>) => {
|
|
116
|
+
touchAndValidateAll();
|
|
117
|
+
void trigger(undefined, { shouldFocus: true });
|
|
118
|
+
|
|
119
|
+
console.warn('Validation errors:', errors);
|
|
120
|
+
};
|
|
121
|
+
|
|
122
|
+
return (
|
|
123
|
+
<>
|
|
124
|
+
<SampleDescription>
|
|
125
|
+
<p>This sample demonstrates a form using React Hook Form with KoliBri adapters. All inputs are validated, and error messages are shown on submit.</p>
|
|
126
|
+
</SampleDescription>
|
|
127
|
+
|
|
128
|
+
<form onSubmit={handleSubmit(onSubmit, onError)} className="grid gap-4 w-full max-w-xl">
|
|
129
|
+
<KolInputTextController name="firstName" control={control} _label="First Name" rules={{ required: 'First name is required' }} _required />
|
|
130
|
+
<KolInputTextController name="lastName" control={control} _label="Last Name" rules={{ required: 'Last name is required' }} _required />
|
|
131
|
+
<KolInputEmailController name="email" control={control} _label="Email" rules={{ required: 'Email is required' }} _required />
|
|
132
|
+
<KolInputPasswordController name="password" control={control} _label="Password" rules={{ required: 'Password is required' }} _required />
|
|
133
|
+
<KolInputNumberController name="age" control={control} _label="Age" rules={{ required: 'Age is required', min: 0 }} _required />
|
|
134
|
+
<KolInputRangeController name="volume" control={control} _label="Volume (0–100)" _min={0} _max={100} />
|
|
135
|
+
<KolInputDateController name="birthday" control={control} _label="Birthday" rules={{ required: 'Birthday is required' }} />
|
|
136
|
+
<KolInputColorController name="favoriteColor" control={control} _label="Favorite Color" id="favoriteColor" />
|
|
137
|
+
<KolInputFileController name="cv" control={control} _label="Upload CV" rules={{ required: 'Please upload your CV' }} _required />
|
|
138
|
+
<KolTextareaController name="bio" control={control} _label="Bio" rules={{ required: 'Please provide a short bio' }} _required />
|
|
139
|
+
<KolComboboxController
|
|
140
|
+
control={control}
|
|
141
|
+
rules={{ required: 'Please select a country' }}
|
|
142
|
+
name="country"
|
|
143
|
+
_label="Country"
|
|
144
|
+
_suggestions={COUNTRY_SUGGESTIONS}
|
|
145
|
+
_required
|
|
146
|
+
/>
|
|
147
|
+
<KolSelectController
|
|
148
|
+
control={control}
|
|
149
|
+
rules={{ required: 'Please select a language' }}
|
|
150
|
+
name="language"
|
|
151
|
+
_label="Preferred Language"
|
|
152
|
+
_options={languageOptions}
|
|
153
|
+
_required
|
|
154
|
+
/>
|
|
155
|
+
<KolSingleSelectController
|
|
156
|
+
rules={{ required: 'Please select a framework' }}
|
|
157
|
+
control={control}
|
|
158
|
+
name="framework"
|
|
159
|
+
_label="Favorite Framework"
|
|
160
|
+
_options={frameworkOptions}
|
|
161
|
+
_required
|
|
162
|
+
/>
|
|
163
|
+
<KolInputRadioController
|
|
164
|
+
control={control}
|
|
165
|
+
rules={{ required: 'Please select your gender' }}
|
|
166
|
+
name="gender"
|
|
167
|
+
_label="Gender"
|
|
168
|
+
_options={genderOptions}
|
|
169
|
+
_required
|
|
170
|
+
/>
|
|
171
|
+
<KolInputCheckboxController
|
|
172
|
+
name="termsAccepted"
|
|
173
|
+
control={control}
|
|
174
|
+
_label="I accept the terms and conditions"
|
|
175
|
+
rules={{ required: 'You must accept the terms' }}
|
|
176
|
+
_required
|
|
177
|
+
/>
|
|
178
|
+
|
|
179
|
+
<KolButton _label="Submit" _type="submit" />
|
|
180
|
+
</form>
|
|
181
|
+
</>
|
|
182
|
+
);
|
|
183
|
+
};
|
package/src/scenarios/routes.ts
CHANGED
|
@@ -1,24 +1,34 @@
|
|
|
1
1
|
import { Routes } from '../shares/types';
|
|
2
|
-
import {
|
|
2
|
+
import { ChangeTabindex } from './change-tabindex';
|
|
3
3
|
import { CustomTooltipWidth } from './custom-tooltip-width';
|
|
4
4
|
import { DisabledInteractiveElements } from './disabled-interactive-elements';
|
|
5
|
+
import { FocusElements } from './focus-elements';
|
|
6
|
+
import { InputGroupWithError } from './input-group-with-error';
|
|
5
7
|
import { InputsGetValue } from './inputs-get-value';
|
|
8
|
+
import { PerformanceTest } from './performance-test';
|
|
9
|
+
import { SameHeightOfAllInteractiveElements } from './same-height-of-all-interactive-elements';
|
|
6
10
|
import { StaticForm } from './static-form';
|
|
7
|
-
import {
|
|
11
|
+
import { SampleFormWithValidation } from './sample-form-with-validation';
|
|
8
12
|
import { TableHorizontalScrollAdvanced } from './horizontal-scrollbar-advanced';
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
13
|
+
import { ToolbarItemOrder } from './toolbar-item-order';
|
|
14
|
+
import { TooltipPositioning } from './tooltip-positioning';
|
|
15
|
+
import { RHFBasic } from './react-hook-form/basic';
|
|
11
16
|
|
|
12
17
|
export const SCENARIO_ROUTES: Routes = {
|
|
13
18
|
scenarios: {
|
|
14
|
-
'
|
|
19
|
+
'change-tabindex': ChangeTabindex,
|
|
15
20
|
'custom-tooltip-width': CustomTooltipWidth,
|
|
16
21
|
'disabled-interactive-scenario': DisabledInteractiveElements,
|
|
17
22
|
'focus-elements': FocusElements,
|
|
18
23
|
'input-group-with-error': InputGroupWithError,
|
|
19
24
|
'inputs-get-value': InputsGetValue,
|
|
25
|
+
'react-hook-form-adapter': RHFBasic,
|
|
26
|
+
'same-height-of-all-interactive-elements': SameHeightOfAllInteractiveElements,
|
|
20
27
|
'static-form': StaticForm,
|
|
28
|
+
'sample-form-with-validation': SampleFormWithValidation,
|
|
21
29
|
'table-horizontal-scrollbar-advanced': TableHorizontalScrollAdvanced,
|
|
22
|
-
'
|
|
30
|
+
'toolbar-item-order': ToolbarItemOrder,
|
|
31
|
+
'tooltip-positioning': TooltipPositioning,
|
|
32
|
+
'performance-test': PerformanceTest,
|
|
23
33
|
},
|
|
24
34
|
};
|
|
@@ -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,192 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { useForm } from 'react-hook-form';
|
|
3
|
+
import type { FieldError } from 'react-hook-form';
|
|
4
|
+
import { zodResolver } from '@hookform/resolvers/zod';
|
|
5
|
+
import { z } from 'zod';
|
|
6
|
+
|
|
7
|
+
import {
|
|
8
|
+
KolInputCheckbox,
|
|
9
|
+
KolInputColor,
|
|
10
|
+
KolInputDate,
|
|
11
|
+
KolInputEmail,
|
|
12
|
+
KolInputNumber,
|
|
13
|
+
KolInputPassword,
|
|
14
|
+
KolInputRadio,
|
|
15
|
+
KolInputRange,
|
|
16
|
+
KolInputText,
|
|
17
|
+
KolSelect,
|
|
18
|
+
KolSingleSelect,
|
|
19
|
+
KolCombobox,
|
|
20
|
+
KolTextarea,
|
|
21
|
+
KolButton,
|
|
22
|
+
KolHeading,
|
|
23
|
+
KolAlert,
|
|
24
|
+
KolLink,
|
|
25
|
+
} from '@public-ui/react-v19';
|
|
26
|
+
|
|
27
|
+
import { SampleDescription } from '../components/SampleDescription';
|
|
28
|
+
import { COUNTRY_SUGGESTIONS } from '../shares/country';
|
|
29
|
+
import { useToasterService } from '../hooks/useToasterService';
|
|
30
|
+
|
|
31
|
+
const formSchema = z.object({
|
|
32
|
+
date: z.preprocess(
|
|
33
|
+
(val) => (typeof val === 'string' || val instanceof Date ? new Date(val) : undefined),
|
|
34
|
+
z.date({ message: 'Date is required' }).refine((d) => !isNaN(d.getTime()), { message: 'Invalid date' }),
|
|
35
|
+
),
|
|
36
|
+
|
|
37
|
+
text: z.string({ message: 'Please enter text.' }).min(10, 'Text must be at least 10 characters long.'),
|
|
38
|
+
email: z.string({ message: 'Please enter your email.' }).min(1, 'Please enter your email.').email('Invalid email address.'),
|
|
39
|
+
password: z
|
|
40
|
+
.string({ message: 'Please enter a password.' })
|
|
41
|
+
.min(8, 'Password must be at least 8 characters.')
|
|
42
|
+
.regex(/[A-Z]/, 'Password must include at least one uppercase letter.')
|
|
43
|
+
.regex(/[0-9]/, 'Password must include at least one number.'),
|
|
44
|
+
range: z.number({ message: 'Please select a range.' }).min(30, 'Minimum value is 30.'),
|
|
45
|
+
number: z.number({ message: 'Please enter a number.' }).min(1, 'Minimum is 1.').max(10, 'Maximum is 10.'),
|
|
46
|
+
checkbox: z.boolean().refine((val: boolean) => val === true, {
|
|
47
|
+
message: 'You must accept the terms and conditions.',
|
|
48
|
+
}),
|
|
49
|
+
|
|
50
|
+
radio: z.string({ message: 'Please select a gender.' }).min(1, 'Please select a gender.'),
|
|
51
|
+
color: z.string({ message: 'Please select a color.' }).min(1, 'Please select a color.'),
|
|
52
|
+
select: z.string({ message: 'Please select a value.' }).min(1, 'Please select a value.'),
|
|
53
|
+
singleSelect: z.string({ message: 'Please select a single option.' }).min(1, 'Please select a single option.'),
|
|
54
|
+
combobox: z.string({ message: 'Please select a country.' }).min(1, 'Please select a country.'),
|
|
55
|
+
textarea: z.string({ message: 'Please enter a message.' }).min(1, 'Please enter a message.'),
|
|
56
|
+
});
|
|
57
|
+
|
|
58
|
+
export const SampleFormWithValidation: React.FC = () => {
|
|
59
|
+
const { dummyClickEventHandler } = useToasterService();
|
|
60
|
+
const {
|
|
61
|
+
handleSubmit,
|
|
62
|
+
formState: { errors, touchedFields },
|
|
63
|
+
reset,
|
|
64
|
+
setValue,
|
|
65
|
+
trigger,
|
|
66
|
+
watch,
|
|
67
|
+
} = useForm({
|
|
68
|
+
mode: 'onBlur',
|
|
69
|
+
reValidateMode: 'onChange',
|
|
70
|
+
resolver: zodResolver(formSchema),
|
|
71
|
+
defaultValues: {
|
|
72
|
+
range: 30,
|
|
73
|
+
number: 5,
|
|
74
|
+
},
|
|
75
|
+
});
|
|
76
|
+
|
|
77
|
+
const err = (key: keyof z.infer<typeof formSchema>) => {
|
|
78
|
+
const fieldError = errors[key];
|
|
79
|
+
|
|
80
|
+
if (!fieldError || typeof fieldError !== 'object' || !('message' in fieldError)) {
|
|
81
|
+
return undefined;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
return {
|
|
85
|
+
_description: fieldError.message as string,
|
|
86
|
+
_type: 'error' as const,
|
|
87
|
+
};
|
|
88
|
+
};
|
|
89
|
+
|
|
90
|
+
const isTouched = (key: keyof z.infer<typeof formSchema>) => {
|
|
91
|
+
return !!touchedFields[key];
|
|
92
|
+
};
|
|
93
|
+
|
|
94
|
+
const bind = <K extends keyof z.infer<typeof formSchema>>(key: K) => ({
|
|
95
|
+
id: `field-${key as string}`,
|
|
96
|
+
_name: key,
|
|
97
|
+
_value: watch(key) as z.infer<typeof formSchema>[K],
|
|
98
|
+
_touched: isTouched(key),
|
|
99
|
+
_msg: err(key),
|
|
100
|
+
_on: {
|
|
101
|
+
onInput: (_: Event, v: unknown) => setValue(key, v as any, { shouldTouch: true, shouldValidate: true }),
|
|
102
|
+
onBlur: () => trigger(key),
|
|
103
|
+
},
|
|
104
|
+
});
|
|
105
|
+
|
|
106
|
+
const onReset = () => {
|
|
107
|
+
reset(undefined, {
|
|
108
|
+
keepErrors: false,
|
|
109
|
+
keepTouched: false,
|
|
110
|
+
keepDirty: false,
|
|
111
|
+
});
|
|
112
|
+
};
|
|
113
|
+
|
|
114
|
+
const allErrors = Object.entries(errors)
|
|
115
|
+
.map(([key, value]) => [key, (value as FieldError).message] as const)
|
|
116
|
+
.filter(([, msg]) => Boolean(msg));
|
|
117
|
+
|
|
118
|
+
return (
|
|
119
|
+
<section className="w-full max-w-3xl mx-auto p-6">
|
|
120
|
+
<KolHeading _level={2} _label="Sample Form with Validation (Zod)" />
|
|
121
|
+
<SampleDescription>
|
|
122
|
+
<p>
|
|
123
|
+
This example shows validation with <code>react-hook-form</code>, <code>Zod</code>, and an error list.
|
|
124
|
+
</p>
|
|
125
|
+
</SampleDescription>
|
|
126
|
+
|
|
127
|
+
{allErrors.length > 0 && (
|
|
128
|
+
<KolAlert _type="error" _label="Please fix the following:" _alert _variant="card">
|
|
129
|
+
<ul className="list-disc pl-5">
|
|
130
|
+
{allErrors.map(([key, msg], i) => (
|
|
131
|
+
<li key={i}>
|
|
132
|
+
<KolLink
|
|
133
|
+
_label={msg}
|
|
134
|
+
_href={`#field-${key}`}
|
|
135
|
+
_on={{
|
|
136
|
+
onClick: (e: Event) => {
|
|
137
|
+
e.preventDefault();
|
|
138
|
+
const input = document.getElementById(`field-${key}`);
|
|
139
|
+
input?.focus();
|
|
140
|
+
},
|
|
141
|
+
}}
|
|
142
|
+
/>
|
|
143
|
+
</li>
|
|
144
|
+
))}
|
|
145
|
+
</ul>
|
|
146
|
+
</KolAlert>
|
|
147
|
+
)}
|
|
148
|
+
|
|
149
|
+
<form onSubmit={handleSubmit(dummyClickEventHandler)} noValidate className="grid gap-4 mt-6">
|
|
150
|
+
<KolInputDate _label="Date" {...bind('date')} />
|
|
151
|
+
<KolInputText _label="Text (≥ 10 chars)" {...bind('text')} />
|
|
152
|
+
<KolInputEmail _label="Email" {...bind('email')} />
|
|
153
|
+
<KolInputPassword _label="Password" {...bind('password')} />
|
|
154
|
+
<KolInputRange _label="Range (≥ 30)" _min={0} _max={100} {...bind('range')} />
|
|
155
|
+
<KolInputNumber _label="Number (1 – 10)" {...bind('number')} />
|
|
156
|
+
<KolInputCheckbox _label="Accept terms" {...bind('checkbox')} />
|
|
157
|
+
<KolInputRadio
|
|
158
|
+
_label="Gender"
|
|
159
|
+
_options={[
|
|
160
|
+
{ label: 'Female', value: 'f' },
|
|
161
|
+
{ label: 'Male', value: 'm' },
|
|
162
|
+
]}
|
|
163
|
+
{...bind('radio')}
|
|
164
|
+
/>
|
|
165
|
+
<KolInputColor _label="Favorite Color" {...bind('color')} />
|
|
166
|
+
<KolSelect
|
|
167
|
+
_label="Select"
|
|
168
|
+
_options={[
|
|
169
|
+
{ label: 'Option A', value: 'A' },
|
|
170
|
+
{ label: 'Option B', value: 'B' },
|
|
171
|
+
]}
|
|
172
|
+
{...bind('select')}
|
|
173
|
+
/>
|
|
174
|
+
<KolSingleSelect
|
|
175
|
+
_label="Single Select"
|
|
176
|
+
_options={[
|
|
177
|
+
{ label: 'Option A', value: 'A' },
|
|
178
|
+
{ label: 'Option B', value: 'B' },
|
|
179
|
+
]}
|
|
180
|
+
{...bind('singleSelect')}
|
|
181
|
+
/>
|
|
182
|
+
<KolCombobox _label="Country" _suggestions={COUNTRY_SUGGESTIONS} {...bind('combobox')} />
|
|
183
|
+
<KolTextarea _label="Message" _rows={4} {...bind('textarea')} />
|
|
184
|
+
|
|
185
|
+
<div className="flex gap-4 mt-4">
|
|
186
|
+
<KolButton _label="Submit" _type="submit" _variant="primary" />
|
|
187
|
+
<KolButton _label="Reset" _type="reset" onClick={onReset} />
|
|
188
|
+
</div>
|
|
189
|
+
</form>
|
|
190
|
+
</section>
|
|
191
|
+
);
|
|
192
|
+
};
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import React, { useEffect, useMemo, useState } from 'react';
|
|
2
|
+
import type { FC } from 'react';
|
|
3
|
+
import type { ToolbarItemsPropType } from '@public-ui/components';
|
|
4
|
+
import { KolHeading, KolToolbar } from '@public-ui/react-v19';
|
|
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
|
+
_label: `Button ${index + 1}`,
|
|
36
|
+
_on: { onClick: handleSubmit },
|
|
37
|
+
_icons: isSubmitting ? 'codicon codicon-loading codicon-modifier-spin' : void 0,
|
|
38
|
+
_disabled: isSubmitting,
|
|
39
|
+
}));
|
|
40
|
+
return items;
|
|
41
|
+
}, [isSubmitting]);
|
|
42
|
+
|
|
43
|
+
const brokenToolbarItems = useMemo(() => {
|
|
44
|
+
const items: ToolbarItemsPropType = Array.from({ length: 5 }, (_item, index) => ({
|
|
45
|
+
_label: `Button ${index + 1}`,
|
|
46
|
+
_on: { onClick: handleSubmit2 },
|
|
47
|
+
_disabled: isSubmitting2,
|
|
48
|
+
_icons: isSubmitting2 ? 'codicon codicon-loading codicon-modifier-spin' : void 0,
|
|
49
|
+
}));
|
|
50
|
+
return items;
|
|
51
|
+
}, [isSubmitting2]);
|
|
52
|
+
|
|
53
|
+
return (
|
|
54
|
+
<div style={{ display: 'flex', flexDirection: 'column', gap: '1rem' }}>
|
|
55
|
+
<KolHeading _label="Disabled Toolbar Buttons Bug (solved)" />
|
|
56
|
+
|
|
57
|
+
<KolHeading _label="icon vor disabled" _level={2} />
|
|
58
|
+
<KolToolbar _label="KolToolbar A" _items={toolbarItems} />
|
|
59
|
+
<KolHeading _label="disabled vor icon" _level={2} />
|
|
60
|
+
<p>Klicke auf einen der {brokenToolbarItems.length - 1} ersten Buttons hatte zur Folge, dass die nachfolgenden Buttons kaputt gehen.</p>
|
|
61
|
+
<KolToolbar _label="KolToolbar B" _items={brokenToolbarItems} />
|
|
62
|
+
</div>
|
|
63
|
+
);
|
|
64
|
+
};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import type { FC } from 'react';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { KolPopoverButton } from '@public-ui/react-v19';
|
|
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,7 +4,6 @@ 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';
|
|
@@ -15,7 +14,6 @@ import { HANDOUT_ROUTES } from '../components/handout/routes';
|
|
|
15
14
|
import { HEADING_ROUTES } from '../components/heading/routes';
|
|
16
15
|
import { ICON_ROUTES } from '../components/icon/routes';
|
|
17
16
|
import { IMAGE_ROUTES } from '../components/image/routes';
|
|
18
|
-
import { INDENTED_ROUTES } from '../components/indented-text/routes';
|
|
19
17
|
import { INPUT_CHECKBOX_ROUTES } from '../components/input-checkbox/routes';
|
|
20
18
|
import { INPUT_COLOR_ROUTES } from '../components/input-color/routes';
|
|
21
19
|
import { INPUT_DATE_ROUTES } from '../components/input-date/routes';
|
|
@@ -28,13 +26,14 @@ import { INPUT_RANGE_ROUTES } from '../components/input-range/routes';
|
|
|
28
26
|
import { INPUT_TEXT_ROUTES } from '../components/input-text/routes';
|
|
29
27
|
import { KOLIBRI_ROUTES } from '../components/kolibri/routes';
|
|
30
28
|
import { LINK_BUTTON_ROUTES } from '../components/link-button/routes';
|
|
31
|
-
import { LINK_GROUP_ROUTES } from '../components/link-group/routes';
|
|
32
29
|
import { LINK_ROUTES } from '../components/link/routes';
|
|
33
30
|
import { MODAL_ROUTES } from '../components/modal/routes';
|
|
34
31
|
import { NAV_ROUTES } from '../components/nav/routes';
|
|
35
32
|
import { PAGINATION_ROUTES } from '../components/pagination/routes';
|
|
33
|
+
import { POPOVER_BUTTON_ROUTES } from '../components/popover-button/routes';
|
|
36
34
|
import { PROGRESS_ROUTES } from '../components/progress/routes';
|
|
37
35
|
import { QUOTE_ROUTES } from '../components/quote/routes';
|
|
36
|
+
import { SCENARIO_ROUTES } from '../scenarios/routes';
|
|
38
37
|
import { SELECT_ROUTES } from '../components/select/routes';
|
|
39
38
|
import { SKIP_NAV_ROUTES } from '../components/skip-nav/routes';
|
|
40
39
|
import { SPIN_ROUTES } from '../components/spin/routes';
|
|
@@ -45,7 +44,6 @@ import { TEXTAREA_ROUTES } from '../components/textarea/routes';
|
|
|
45
44
|
import { TOAST_ROUTES } from '../components/toast/routes';
|
|
46
45
|
import { TOOLBAR_ROUTES } from '../components/toolbar/routes';
|
|
47
46
|
import { VERSION_ROUTES } from '../components/version/routes';
|
|
48
|
-
import { SCENARIO_ROUTES } from '../scenarios/routes';
|
|
49
47
|
import { Routes } from './types';
|
|
50
48
|
import { TREE_ROUTES } from '../components/tree/routes';
|
|
51
49
|
import { COMBOBOX_ROUTES } from '../components/combobox/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,
|