@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
package/src/react.main.tsx
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
+
import { setTagNameTransformer } from '@public-ui/react-v19';
|
|
1
2
|
import React, { StrictMode } from 'react';
|
|
2
3
|
import { createRoot } from 'react-dom/client';
|
|
3
4
|
import { HashRouter as Router } from 'react-router-dom';
|
|
4
|
-
import { setTagNameTransformer } from '@public-ui/react';
|
|
5
5
|
|
|
6
|
-
import { bootstrap,
|
|
6
|
+
import { bootstrap, KoliBriDevHelper } from '@public-ui/components';
|
|
7
7
|
import { defineCustomElements } from '@public-ui/components/dist/loader';
|
|
8
|
-
import { DEFAULT, ECL_EC, ECL_EU
|
|
8
|
+
import { DEFAULT, ECL_EC, ECL_EU } from '@public-ui/themes';
|
|
9
9
|
|
|
10
10
|
import { App } from './App';
|
|
11
11
|
|
|
@@ -13,6 +13,12 @@ import type { Generic } from 'adopted-style-sheets';
|
|
|
13
13
|
|
|
14
14
|
type Theme = Generic.Theming.RegisterPatch<string, string, string>;
|
|
15
15
|
|
|
16
|
+
const ENABLE_I18N_OVERWRITING =
|
|
17
|
+
process.env.ENABLE_I18N_OVERWRITING === 'true' || new URL('https://x' + location.hash.substring(1)).searchParams.has('enableI18nOverwriting');
|
|
18
|
+
|
|
19
|
+
const ENABLE_THEME_PATCHING =
|
|
20
|
+
process.env.ENABLE_THEME_PATCHING === 'true' || new URL('https://x' + location.hash.substring(1)).searchParams.has('enableThemePatching');
|
|
21
|
+
|
|
16
22
|
const ENABLE_TAG_NAME_TRANSFORMER =
|
|
17
23
|
process.env.ENABLE_TAG_NAME_TRANSFORMER === 'true' || new URL('https://x' + location.hash.substring(1)).searchParams.has('enableTagNameTransformer');
|
|
18
24
|
|
|
@@ -24,19 +30,21 @@ if (ENABLE_TAG_NAME_TRANSFORMER) {
|
|
|
24
30
|
const getThemes = async () => {
|
|
25
31
|
if (process.env.THEME_MODULE) {
|
|
26
32
|
/* Visual regression testing mode: Themes are overridden with a certain theme module, that should be used instead. */
|
|
27
|
-
|
|
33
|
+
if (process.env.PLATFORM === 'win32') {
|
|
34
|
+
/* Add leading slash, required for ESBuild on Windows.
|
|
35
|
+
Note: process.env.THEME_MODULE must be used literally in the import(). Moving it to a constant breaks the import. */
|
|
36
|
+
process.env.THEME_MODULE = `/${process.env.THEME_MODULE}`;
|
|
37
|
+
}
|
|
38
|
+
const { [(process.env.THEME_EXPORT as string) || 'default']: theme } = (await import(/* @vite-ignore */ process.env.THEME_MODULE)) as Record<string, Theme>;
|
|
28
39
|
return [theme];
|
|
29
40
|
}
|
|
30
41
|
|
|
31
42
|
/* List of regular sample app themes */
|
|
32
|
-
return [DEFAULT, ECL_EC, ECL_EU
|
|
43
|
+
return [DEFAULT, ECL_EC, ECL_EU] as Theme[];
|
|
33
44
|
};
|
|
34
45
|
|
|
35
46
|
void (async () => {
|
|
36
47
|
try {
|
|
37
|
-
console.info('bootstap is initialized: ', isInitialized());
|
|
38
|
-
console.info('start kolibri bootstrap');
|
|
39
|
-
|
|
40
48
|
await bootstrap(
|
|
41
49
|
await getThemes(),
|
|
42
50
|
() => {
|
|
@@ -47,6 +55,8 @@ void (async () => {
|
|
|
47
55
|
} as any);
|
|
48
56
|
},
|
|
49
57
|
{
|
|
58
|
+
environment: process.env.NODE_ENV === 'development' ? 'development' : 'production',
|
|
59
|
+
reflectInputValues: true,
|
|
50
60
|
theme: process.env.THEME_MODULE
|
|
51
61
|
? undefined
|
|
52
62
|
: {
|
|
@@ -55,12 +65,51 @@ void (async () => {
|
|
|
55
65
|
translation: {
|
|
56
66
|
name: 'en',
|
|
57
67
|
},
|
|
68
|
+
/**
|
|
69
|
+
* You can add your own translations here.
|
|
70
|
+
*/
|
|
71
|
+
translations: ENABLE_I18N_OVERWRITING
|
|
72
|
+
? new Set([
|
|
73
|
+
(t) =>
|
|
74
|
+
t('en', {
|
|
75
|
+
// https://github.com/public-ui/kolibri/blob/develop/packages/components/src/locales/en.ts
|
|
76
|
+
'kol-error': 'Tiny error!',
|
|
77
|
+
}),
|
|
78
|
+
(t) =>
|
|
79
|
+
t('de', {
|
|
80
|
+
// https://github.com/public-ui/kolibri/blob/develop/packages/components/src/locales/de.ts
|
|
81
|
+
'kol-error': 'Kleiner Fehler!',
|
|
82
|
+
}),
|
|
83
|
+
])
|
|
84
|
+
: undefined,
|
|
58
85
|
transformTagName: ENABLE_TAG_NAME_TRANSFORMER ? tagNameTransformer : undefined,
|
|
59
|
-
environment: process.env.NODE_ENV === 'development' ? 'development' : 'production',
|
|
60
86
|
},
|
|
61
87
|
);
|
|
62
88
|
|
|
63
|
-
|
|
89
|
+
/**
|
|
90
|
+
* You should patch the theme after the components and your default theme are registered.
|
|
91
|
+
*/
|
|
92
|
+
if (ENABLE_THEME_PATCHING) {
|
|
93
|
+
KoliBriDevHelper.patchTheme(
|
|
94
|
+
'default',
|
|
95
|
+
{
|
|
96
|
+
'KOL-BUTTON': `
|
|
97
|
+
button {
|
|
98
|
+
border: 1px solid red;
|
|
99
|
+
}`,
|
|
100
|
+
'KOL-SPIN': `
|
|
101
|
+
.bg-spin-2 {
|
|
102
|
+
background-color: red;
|
|
103
|
+
}
|
|
104
|
+
.bg-spin-3 {
|
|
105
|
+
background-color: gold;
|
|
106
|
+
}`,
|
|
107
|
+
},
|
|
108
|
+
{
|
|
109
|
+
append: true,
|
|
110
|
+
},
|
|
111
|
+
);
|
|
112
|
+
}
|
|
64
113
|
} catch (error) {
|
|
65
114
|
console.warn('Theme registration failed:', error);
|
|
66
115
|
}
|
|
@@ -2,7 +2,7 @@ import { Formik } from 'formik';
|
|
|
2
2
|
import React, { useEffect, useState, useRef } from 'react';
|
|
3
3
|
import * as Yup from 'yup';
|
|
4
4
|
|
|
5
|
-
import { KolLink, KolTabs } from '@public-ui/react';
|
|
5
|
+
import { KolLink, KolTabs } from '@public-ui/react-v19';
|
|
6
6
|
|
|
7
7
|
import { checkAppointmentAvailability } from './appointmentService';
|
|
8
8
|
import { AvailableAppointmentsForm } from './AvailableAppointmentsForm';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Field, useFormikContext } from 'formik';
|
|
2
2
|
import React, { useEffect, useState, useRef, useCallback } from 'react';
|
|
3
3
|
|
|
4
|
-
import { KolButton, KolForm, KolHeading, KolInputDate, KolInputRadio, KolSpin } from '@public-ui/react';
|
|
4
|
+
import { KolButton, KolForm, KolHeading, KolInputDate, KolInputRadio, KolSpin } from '@public-ui/react-v19';
|
|
5
5
|
|
|
6
6
|
import { fetchAvailableTimes } from './appointmentService';
|
|
7
7
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Field, useFormikContext } from 'formik';
|
|
2
2
|
import React, { useState, useRef } from 'react';
|
|
3
3
|
|
|
4
|
-
import { KolButton, KolForm, KolHeading, KolSelect } from '@public-ui/react';
|
|
4
|
+
import { KolButton, KolForm, KolHeading, KolSelect } from '@public-ui/react-v19';
|
|
5
5
|
|
|
6
6
|
import type { FieldProps } from 'formik';
|
|
7
7
|
import type { FormValues } from './AppointmentForm';
|
|
@@ -62,7 +62,7 @@ export function DistrictForm() {
|
|
|
62
62
|
id="field-district"
|
|
63
63
|
_label="District"
|
|
64
64
|
_options={[{ label: 'Please select…', value: '' }, ...LOCATION_OPTIONS]}
|
|
65
|
-
_value={
|
|
65
|
+
_value={field.value}
|
|
66
66
|
_msg={{
|
|
67
67
|
_type: 'error',
|
|
68
68
|
_description: form.errors.district || '',
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Field, useFormikContext } from 'formik';
|
|
2
2
|
import React, { useState, useEffect, useRef } from 'react';
|
|
3
3
|
|
|
4
|
-
import { KolButton, KolForm, KolHeading, KolInputEmail, KolInputText, KolSelect } from '@public-ui/react';
|
|
4
|
+
import { KolButton, KolForm, KolHeading, KolInputEmail, KolInputText, KolSelect } from '@public-ui/react-v19';
|
|
5
5
|
|
|
6
6
|
import type { FieldProps } from 'formik';
|
|
7
7
|
import type { FormValues } from './AppointmentForm';
|
|
@@ -57,7 +57,7 @@ export function PersonalInformationForm() {
|
|
|
57
57
|
}}
|
|
58
58
|
id="field-salutation"
|
|
59
59
|
_label="Salutation"
|
|
60
|
-
_value={
|
|
60
|
+
_value={field.value}
|
|
61
61
|
_msg={{
|
|
62
62
|
_type: 'error',
|
|
63
63
|
_description: form.errors.salutation || '',
|
|
@@ -145,7 +145,10 @@ export function PersonalInformationForm() {
|
|
|
145
145
|
id="field-email"
|
|
146
146
|
_label="E-Mail"
|
|
147
147
|
_value={field.value}
|
|
148
|
-
|
|
148
|
+
_msg={{
|
|
149
|
+
_type: 'error',
|
|
150
|
+
_description: form.errors.email || '',
|
|
151
|
+
}}
|
|
149
152
|
_touched={form.touched.email}
|
|
150
153
|
_required
|
|
151
154
|
_on={{
|
|
@@ -7,6 +7,6 @@ export function createErrorList(formikErrors: Record<string, string>): ErrorList
|
|
|
7
7
|
}));
|
|
8
8
|
}
|
|
9
9
|
|
|
10
|
-
export function focusErrorList(formikRef: React.RefObject<HTMLKolFormElement>) {
|
|
10
|
+
export function focusErrorList(formikRef: React.RefObject<HTMLKolFormElement | null>) {
|
|
11
11
|
formikRef.current?.focusErrorList().catch(console.warn);
|
|
12
12
|
}
|
|
@@ -21,7 +21,7 @@ import {
|
|
|
21
21
|
KolSingleSelect,
|
|
22
22
|
KolSplitButton,
|
|
23
23
|
KolTextarea,
|
|
24
|
-
} from '@public-ui/react';
|
|
24
|
+
} from '@public-ui/react-v19';
|
|
25
25
|
import React from 'react';
|
|
26
26
|
import type { FC } from 'react';
|
|
27
27
|
import { ERROR_MSG, HINT_MSG } from '../shares/constants';
|
|
@@ -37,7 +37,7 @@ export const ChangeTabindex: FC = () => {
|
|
|
37
37
|
|
|
38
38
|
<div className="w-full grid gap-4">
|
|
39
39
|
<KolCard _label="Button" _level={0}>
|
|
40
|
-
<div className="flex flex-wrap gap-4">
|
|
40
|
+
<div className="grid sm:flex flex-wrap gap-4 items-end">
|
|
41
41
|
<KolButton _label="Button 1, Tabindex 4" _variant="primary" tabIndex={4} />
|
|
42
42
|
<KolButton _disabled _label="Button 2, Tabindex 3" _variant="primary" tabIndex={3} />
|
|
43
43
|
<KolButton _label="Button 3, Tabindex 2" _variant="primary" tabIndex={2} />
|
|
@@ -46,7 +46,7 @@ export const ChangeTabindex: FC = () => {
|
|
|
46
46
|
</KolCard>
|
|
47
47
|
|
|
48
48
|
<KolCard _label="ButtonLink" _level={0}>
|
|
49
|
-
<div className="flex flex-wrap gap-4">
|
|
49
|
+
<div className="grid sm:flex flex-wrap gap-4 items-end">
|
|
50
50
|
<KolButtonLink _label="ButtonLink 1, Tabindex 4" tabIndex={4} />
|
|
51
51
|
<KolButtonLink _disabled _label="ButtonLink 2, Tabindex 3" tabIndex={3} />
|
|
52
52
|
<KolButtonLink _label="ButtonLink 3, Tabindex 2" tabIndex={2} />
|
|
@@ -55,7 +55,7 @@ export const ChangeTabindex: FC = () => {
|
|
|
55
55
|
</KolCard>
|
|
56
56
|
|
|
57
57
|
<KolCard _label="Combobox" _level={0}>
|
|
58
|
-
<div className="flex flex-wrap gap-4">
|
|
58
|
+
<div className="grid sm:flex flex-wrap gap-4 items-end">
|
|
59
59
|
<KolCombobox _hint={HINT_MSG} _label="Combobox 1, Tabindex 4" _suggestions={COUNTRY_SUGGESTIONS} _value={'Deutschland'} tabIndex={4} />
|
|
60
60
|
<KolCombobox _disabled _hint={HINT_MSG} _label="Combobox 2, Tabindex 3" _suggestions={COUNTRY_SUGGESTIONS} _value={'Deutschland'} tabIndex={3} />
|
|
61
61
|
<KolCombobox
|
|
@@ -72,7 +72,7 @@ export const ChangeTabindex: FC = () => {
|
|
|
72
72
|
</KolCard>
|
|
73
73
|
|
|
74
74
|
<KolCard _label="InputCheckbox" _level={0}>
|
|
75
|
-
<div className="flex flex-wrap gap-4">
|
|
75
|
+
<div className="grid sm:flex flex-wrap gap-4 items-end">
|
|
76
76
|
<KolInputCheckbox _label="InputCheckbox 4, Tabindex 1" _value={false} tabIndex={4} />
|
|
77
77
|
<KolInputCheckbox _disabled _label="InputCheckbox 3, Tabindex 2" _value={false} tabIndex={3} />
|
|
78
78
|
<KolInputCheckbox _touched _label="InputCheckbox 2, Tabindex 3" _msg={{ _type: 'error', _description: ERROR_MSG }} _value={false} tabIndex={2} />
|
|
@@ -81,7 +81,7 @@ export const ChangeTabindex: FC = () => {
|
|
|
81
81
|
</KolCard>
|
|
82
82
|
|
|
83
83
|
<KolCard _label="InputColor" _level={0}>
|
|
84
|
-
<div className="flex flex-wrap gap-4">
|
|
84
|
+
<div className="grid sm:flex flex-wrap gap-4 items-end">
|
|
85
85
|
<KolInputColor _value="#f08080" _label="InputCheckbox 1, Tabindex 4" tabIndex={4} />
|
|
86
86
|
<KolInputColor _disabled _value="#f08080" _label="InputCheckbox 2, Tabindex 3" tabIndex={3} />
|
|
87
87
|
<KolInputColor _touched _value="#f08080" _label="InputCheckbox 3, Tabindex 2" _msg={{ _type: 'error', _description: ERROR_MSG }} tabIndex={2} />
|
|
@@ -90,7 +90,7 @@ export const ChangeTabindex: FC = () => {
|
|
|
90
90
|
</KolCard>
|
|
91
91
|
|
|
92
92
|
<KolCard _label="InputDate" _level={0}>
|
|
93
|
-
<div className="flex flex-wrap gap-4">
|
|
93
|
+
<div className="grid sm:flex flex-wrap gap-4 items-end">
|
|
94
94
|
<KolInputDate _type="datetime-local" _label="InputCheckbox 1, Tabindex 4" tabIndex={4} />
|
|
95
95
|
<KolInputDate _disabled _type="datetime-local" _label="InputCheckbox 2, Tabindex 3" tabIndex={3} />
|
|
96
96
|
<KolInputDate
|
|
@@ -105,7 +105,7 @@ export const ChangeTabindex: FC = () => {
|
|
|
105
105
|
</KolCard>
|
|
106
106
|
|
|
107
107
|
<KolCard _label="InputEmail" _level={0}>
|
|
108
|
-
<div className="flex flex-wrap gap-4">
|
|
108
|
+
<div className="grid sm:flex flex-wrap gap-4 items-end">
|
|
109
109
|
<KolInputEmail _label="InputEmail 1, Tabindex 4" tabIndex={4} />
|
|
110
110
|
<KolInputEmail _disabled _label="InputEmail 2, Tabindex 3" tabIndex={3} />
|
|
111
111
|
<KolInputEmail _touched _label="InputEmail 3, Tabindex 2" _msg={{ _type: 'error', _description: ERROR_MSG }} tabIndex={2} />
|
|
@@ -114,7 +114,7 @@ export const ChangeTabindex: FC = () => {
|
|
|
114
114
|
</KolCard>
|
|
115
115
|
|
|
116
116
|
<KolCard _label="InputFile" _level={0}>
|
|
117
|
-
<div className="flex flex-wrap gap-4">
|
|
117
|
+
<div className="grid sm:flex flex-wrap gap-4 items-end">
|
|
118
118
|
<KolInputFile _label="InputFile 1, Tabindex 4" tabIndex={4} />
|
|
119
119
|
<KolInputFile _disabled _label="InputFile 2, Tabindex 3" tabIndex={3} />
|
|
120
120
|
<KolInputFile _touched _label="InputFile 3, Tabindex 2" _msg={{ _type: 'error', _description: ERROR_MSG }} tabIndex={2} />
|
|
@@ -123,7 +123,7 @@ export const ChangeTabindex: FC = () => {
|
|
|
123
123
|
</KolCard>
|
|
124
124
|
|
|
125
125
|
<KolCard _label="InputNumber" _level={0}>
|
|
126
|
-
<div className="flex flex-wrap gap-4">
|
|
126
|
+
<div className="grid sm:flex flex-wrap gap-4 items-end">
|
|
127
127
|
<KolInputNumber _label="InputNumber 1, Tabindex 4" tabIndex={4} />
|
|
128
128
|
<KolInputNumber _disabled _label="InputNumber 2, Tabindex 3" tabIndex={3} />
|
|
129
129
|
<KolInputNumber _touched _label="InputNumber 3, Tabindex 2" _msg={{ _type: 'error', _description: ERROR_MSG }} tabIndex={2} />
|
|
@@ -132,7 +132,7 @@ export const ChangeTabindex: FC = () => {
|
|
|
132
132
|
</KolCard>
|
|
133
133
|
|
|
134
134
|
<KolCard _label="InputPassword" _level={0}>
|
|
135
|
-
<div className="flex flex-wrap gap-4">
|
|
135
|
+
<div className="grid sm:flex flex-wrap gap-4 items-end">
|
|
136
136
|
<KolInputPassword _label="InputPassword 1, Tabindex 4" tabIndex={4} />
|
|
137
137
|
<KolInputPassword _disabled _label="InputPassword 2, Tabindex 3" tabIndex={3} />
|
|
138
138
|
<KolInputPassword _touched _label="InputPassword 3, Tabindex 2" _msg={{ _type: 'error', _description: ERROR_MSG }} tabIndex={2} />
|
|
@@ -141,7 +141,7 @@ export const ChangeTabindex: FC = () => {
|
|
|
141
141
|
</KolCard>
|
|
142
142
|
|
|
143
143
|
<KolCard _label="InputRadio" _level={0}>
|
|
144
|
-
<div className="flex flex-wrap gap-4">
|
|
144
|
+
<div className="grid sm:flex flex-wrap gap-4 items-end">
|
|
145
145
|
<KolInputRadio
|
|
146
146
|
_options="[{'label':'Mrs.','value':'Mrs.'},{'disabled':true,'label':'Mr. (disabled)','value':'Mr.'},{'label':'Company','value':'Company'}]"
|
|
147
147
|
_label="InputRadio 1, Tabindex 4"
|
|
@@ -169,7 +169,7 @@ export const ChangeTabindex: FC = () => {
|
|
|
169
169
|
</KolCard>
|
|
170
170
|
|
|
171
171
|
<KolCard _label="InputRange" _level={0}>
|
|
172
|
-
<div className="flex flex-wrap gap-4">
|
|
172
|
+
<div className="grid sm:flex flex-wrap gap-4 items-end">
|
|
173
173
|
<KolInputRange _label="InputRange 1, Tabindex 4" _min={0} _max={50} tabIndex={4} />
|
|
174
174
|
<KolInputRange _disabled _label="InputRange 2, Tabindex 3" _min={0} _max={50} tabIndex={3} />
|
|
175
175
|
<KolInputRange _touched _label="InputRange 3, Tabindex 2" _min={0} _max={50} _msg={{ _type: 'error', _description: ERROR_MSG }} tabIndex={2} />
|
|
@@ -178,7 +178,7 @@ export const ChangeTabindex: FC = () => {
|
|
|
178
178
|
</KolCard>
|
|
179
179
|
|
|
180
180
|
<KolCard _label="InputText" _level={0}>
|
|
181
|
-
<div className="flex flex-wrap gap-4">
|
|
181
|
+
<div className="grid sm:flex flex-wrap gap-4 items-end">
|
|
182
182
|
<KolInputText _label="InputText 1, Tabindex 4" tabIndex={4} />
|
|
183
183
|
<KolInputText _disabled _label="InputText 2, Tabindex 3" tabIndex={3} />
|
|
184
184
|
<KolInputText _touched _label="InputText 3, Tabindex 2" _msg={{ _type: 'error', _description: ERROR_MSG }} tabIndex={2} />
|
|
@@ -187,7 +187,7 @@ export const ChangeTabindex: FC = () => {
|
|
|
187
187
|
</KolCard>
|
|
188
188
|
|
|
189
189
|
<KolCard _label="LinkButton" _level={0}>
|
|
190
|
-
<div className="flex flex-wrap gap-4">
|
|
190
|
+
<div className="grid sm:flex flex-wrap gap-4 items-end">
|
|
191
191
|
<KolLinkButton _href={'#/back-page'} _label="InputText 1, Tabindex 4" _variant="primary" tabIndex={4}></KolLinkButton>
|
|
192
192
|
<KolLinkButton _disabled _href={'#/back-page'} _label="InputText 2, Tabindex 3" _variant="primary" tabIndex={3}></KolLinkButton>
|
|
193
193
|
<KolLinkButton _href={'#/back-page'} _label="InputText 3, Tabindex 2" _variant="primary" tabIndex={2}></KolLinkButton>
|
|
@@ -196,14 +196,16 @@ export const ChangeTabindex: FC = () => {
|
|
|
196
196
|
</KolCard>
|
|
197
197
|
|
|
198
198
|
<KolCard _label="Link" _level={0}>
|
|
199
|
-
<
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
199
|
+
<div className="grid sm:flex flex-wrap gap-4 items-end">
|
|
200
|
+
<KolLink _href="#/back-page" _label="InputText 1, Tabindex 4" tabIndex={4} />
|
|
201
|
+
<KolLink _disabled _href="#/back-page" _label="InputText 2, Tabindex 3" tabIndex={3} />
|
|
202
|
+
<KolLink _href="#/back-page" _label="InputText 3, Tabindex 2" tabIndex={2} />
|
|
203
|
+
<KolLink _href="#/back-page" _label="InputText 4, Tabindex 1" tabIndex={1} />
|
|
204
|
+
</div>
|
|
203
205
|
</KolCard>
|
|
204
206
|
|
|
205
207
|
<KolCard _label="SingleSelect" _level={0}>
|
|
206
|
-
<div className="flex flex-wrap gap-4">
|
|
208
|
+
<div className="grid sm:flex flex-wrap gap-4 items-end">
|
|
207
209
|
<KolSingleSelect _label="InputText 1, Tabindex 4" _options={COUNTRY_OPTIONS as Option<StencilUnknown>[]} _value={'de'} tabIndex={4} />
|
|
208
210
|
<KolSingleSelect _disabled _label="InputText 2, Tabindex 3" _options={COUNTRY_OPTIONS as Option<StencilUnknown>[]} _value={'de'} tabIndex={3} />
|
|
209
211
|
<KolSingleSelect
|
|
@@ -219,7 +221,7 @@ export const ChangeTabindex: FC = () => {
|
|
|
219
221
|
</KolCard>
|
|
220
222
|
|
|
221
223
|
<KolCard _label="SplitButton" _level={0}>
|
|
222
|
-
<div className="flex flex-wrap gap-4">
|
|
224
|
+
<div className="grid sm:flex flex-wrap gap-4 items-end">
|
|
223
225
|
<KolSplitButton _label="InputText 1, Tabindex 4" tabIndex={4}>
|
|
224
226
|
Dropdown-Inhalt
|
|
225
227
|
</KolSplitButton>
|
|
@@ -228,7 +230,7 @@ export const ChangeTabindex: FC = () => {
|
|
|
228
230
|
</KolSplitButton>
|
|
229
231
|
<KolSplitButton _label="InputText 3, Tabindex 2" tabIndex={2}>
|
|
230
232
|
Dropdown-Inhalt
|
|
231
|
-
</KolSplitButton>
|
|
233
|
+
</KolSplitButton>
|
|
232
234
|
<KolSplitButton _label="InputText 4, Tabindex 1" tabIndex={1}>
|
|
233
235
|
Dropdown-Inhalt
|
|
234
236
|
</KolSplitButton>
|
|
@@ -236,7 +238,7 @@ export const ChangeTabindex: FC = () => {
|
|
|
236
238
|
</KolCard>
|
|
237
239
|
|
|
238
240
|
<KolCard _label="Textarea" _level={0}>
|
|
239
|
-
<div className="flex flex-wrap gap-4">
|
|
241
|
+
<div className="grid sm:flex flex-wrap gap-4 items-end">
|
|
240
242
|
<KolTextarea _label="Textarea 1, Tabindex 4" _rows={3} _placeholder="Placeholder" tabIndex={4} />
|
|
241
243
|
<KolTextarea _disabled _label="Textarea 2, Tabindex 3" _rows={3} _placeholder="Placeholder" tabIndex={3} />
|
|
242
244
|
<KolTextarea
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { FC } from 'react';
|
|
2
2
|
import React from 'react';
|
|
3
3
|
|
|
4
|
-
import { KolButton } from '@public-ui/react';
|
|
4
|
+
import { KolButton } from '@public-ui/react-v19';
|
|
5
5
|
import { SampleDescription } from '../components/SampleDescription';
|
|
6
6
|
import { useToasterService } from '../hooks/useToasterService';
|
|
7
7
|
|
|
@@ -21,7 +21,7 @@ import {
|
|
|
21
21
|
KolSelect,
|
|
22
22
|
KolSingleSelect,
|
|
23
23
|
KolTextarea,
|
|
24
|
-
} from '@public-ui/react';
|
|
24
|
+
} from '@public-ui/react-v19';
|
|
25
25
|
import type { FC, ForwardRefRenderFunction } from 'react';
|
|
26
26
|
import { useMemo } from 'react';
|
|
27
27
|
import React, { forwardRef, useLayoutEffect, useRef } from 'react';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { KolTableStateful, KolTabs, KolNav } from '@public-ui/react-v19';
|
|
3
3
|
import type { KoliBriTableHeaders, TabButtonProps } from '@public-ui/components';
|
|
4
4
|
import { SampleDescription } from '../../components/SampleDescription';
|
|
5
5
|
import { LINKS } from '../../components/nav/links';
|
|
@@ -47,14 +47,20 @@ function TableHorizontalScrollbarAdvanced() {
|
|
|
47
47
|
let width = 0;
|
|
48
48
|
|
|
49
49
|
for (const def of columnDefinitions as { width: string }[]) {
|
|
50
|
-
width +=
|
|
50
|
+
width += parseFloat(def.width?.replace('px', '') || '0');
|
|
51
51
|
}
|
|
52
52
|
return `${width}px`;
|
|
53
53
|
});
|
|
54
54
|
|
|
55
55
|
return (
|
|
56
56
|
<>
|
|
57
|
-
<SampleDescription
|
|
57
|
+
<SampleDescription>
|
|
58
|
+
<p>
|
|
59
|
+
This advanced scenario demonstrates a complex layout with KolTable featuring horizontal scrollbar within a tab-based navigation system. The table
|
|
60
|
+
automatically calculates its minimum width based on column definitions and provides smooth horizontal scrolling when content exceeds the container
|
|
61
|
+
width. This example showcases real-world usage in a dashboard-like interface with sidebar navigation and tabbed content areas.
|
|
62
|
+
</p>
|
|
63
|
+
</SampleDescription>
|
|
58
64
|
<div className="mainlayout">
|
|
59
65
|
<aside className="nav-area">
|
|
60
66
|
<KolNav _label="Main navigation" _links={LINKS} _hasCompactButton _hasIconsWhenExpanded />
|
|
@@ -62,7 +68,7 @@ function TableHorizontalScrollbarAdvanced() {
|
|
|
62
68
|
<div className="content">
|
|
63
69
|
<KolTabs _tabs={TABS} _align="top" _label="Demo Tabs">
|
|
64
70
|
<div style={{ overflow: 'hidden' }}>
|
|
65
|
-
<
|
|
71
|
+
<KolTableStateful
|
|
66
72
|
_label="Table for demonstration purposes with horizontal scrollbar"
|
|
67
73
|
_minWidth={tableWith}
|
|
68
74
|
_headers={HEADERS}
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
@
|
|
1
|
+
@use '../../@shared/mixins' as *;
|
|
2
2
|
|
|
3
3
|
.mainlayout {
|
|
4
|
-
min-height: calc(100vh - rem(32));
|
|
5
|
-
width: 100%;
|
|
6
4
|
display: grid;
|
|
5
|
+
width: 100%;
|
|
6
|
+
min-height: calc(100vh - rem(32));
|
|
7
7
|
column-gap: rem(16);
|
|
8
|
+
grid-template-areas: 'nav content';
|
|
8
9
|
grid-template-columns: rem(400) calc(100% - rem(460));
|
|
9
10
|
grid-template-rows: 1fr;
|
|
10
|
-
grid-template-areas: 'nav content';
|
|
11
11
|
|
|
12
|
-
|
|
12
|
+
&>.nav-area {
|
|
13
13
|
grid-area: nav;
|
|
14
14
|
}
|
|
15
15
|
|
|
16
|
-
|
|
16
|
+
&>.content {
|
|
17
17
|
grid-area: content;
|
|
18
18
|
}
|
|
19
|
-
}
|
|
19
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type { FC } from 'react';
|
|
3
|
-
import { KolAlert, KolInputCheckbox, KolInputText, KolSelect } from '@public-ui/react';
|
|
3
|
+
import { KolAlert, KolInputCheckbox, KolInputText, KolSelect } from '@public-ui/react-v19';
|
|
4
4
|
import { SampleDescription } from '../components/SampleDescription';
|
|
5
5
|
import type { SelectOption } from '@public-ui/components';
|
|
6
6
|
|
|
@@ -42,9 +42,9 @@ export const InputGroupWithError: FC = () => {
|
|
|
42
42
|
{phoneError && <KolAlert _alert _type="error" _label={phoneErrorMessage} />}
|
|
43
43
|
|
|
44
44
|
<div className="grid grid-cols-3 gap-4 max-w-2xl">
|
|
45
|
-
<KolSelect _options={countryCodes} _label="CountryCode " _msg={{ _description: phoneErrorMessage, _type: 'error' }} _touched
|
|
46
|
-
<KolInputText _label="Area code" _msg={{ _description: phoneErrorMessage, _type: 'error' }} _touched
|
|
47
|
-
<KolInputText _label="Local number" _msg={{ _description: phoneErrorMessage, _type: 'error' }} _touched
|
|
45
|
+
<KolSelect _options={countryCodes} _label="CountryCode " _msg={{ _description: phoneErrorMessage, _type: 'error' }} _touched _hideMsg />
|
|
46
|
+
<KolInputText _label="Area code" _msg={{ _description: phoneErrorMessage, _type: 'error' }} _touched _hideMsg />
|
|
47
|
+
<KolInputText _label="Local number" _msg={{ _description: phoneErrorMessage, _type: 'error' }} _touched _hideMsg />
|
|
48
48
|
</div>
|
|
49
49
|
</fieldset>
|
|
50
50
|
|
|
@@ -53,7 +53,7 @@ export const InputGroupWithError: FC = () => {
|
|
|
53
53
|
{pizzaError && <KolAlert _alert _type="error" _label={pizzaErrorMessage} />}
|
|
54
54
|
|
|
55
55
|
{pizzaToppings.map((topping) => (
|
|
56
|
-
<KolInputCheckbox key={topping} _label={topping} _msg={{ _description: phoneErrorMessage, _type: 'error' }} _touched
|
|
56
|
+
<KolInputCheckbox key={topping} _label={topping} _msg={{ _description: phoneErrorMessage, _type: 'error' }} _touched _hideMsg />
|
|
57
57
|
))}
|
|
58
58
|
</fieldset>
|
|
59
59
|
</>
|
|
@@ -19,7 +19,7 @@ import {
|
|
|
19
19
|
KolSingleSelect,
|
|
20
20
|
KolCombobox,
|
|
21
21
|
KolTextarea,
|
|
22
|
-
} from '@public-ui/react';
|
|
22
|
+
} from '@public-ui/react-v19';
|
|
23
23
|
|
|
24
24
|
import { SampleDescription } from '../components/SampleDescription';
|
|
25
25
|
import { COUNTRY_SUGGESTIONS } from '../shares/country';
|
|
@@ -37,14 +37,16 @@ type Props = {
|
|
|
37
37
|
testId?: string;
|
|
38
38
|
};
|
|
39
39
|
const Scenario = (props: Props) => {
|
|
40
|
-
const ref = useRef<HTMLStencilElement & { getValue: () => Promise<any> }>();
|
|
41
|
-
const [
|
|
40
|
+
const ref = useRef<HTMLStencilElement & { getValue: () => Promise<any> }>(null);
|
|
41
|
+
const [displayValue, setDisplayValue] = useState<unknown>(undefined);
|
|
42
|
+
const [modelValue, setModelValue] = useState<unknown>(props.inputProps._value);
|
|
42
43
|
const formatter = props.formatter || JSON.stringify;
|
|
43
44
|
const eventTarget = useContext(EventTargetContext);
|
|
44
45
|
const eventLoggerActive = useContext(EventLoggerActiveContext);
|
|
45
46
|
|
|
46
47
|
const handleButtonClick = async () => {
|
|
47
|
-
|
|
48
|
+
const value = await ref.current?.getValue();
|
|
49
|
+
setDisplayValue(value);
|
|
48
50
|
};
|
|
49
51
|
|
|
50
52
|
useEffect(() => {
|
|
@@ -65,6 +67,9 @@ const Scenario = (props: Props) => {
|
|
|
65
67
|
if (eventLoggerActive) {
|
|
66
68
|
console.log(props.inputProps._label, eventName, value, event);
|
|
67
69
|
}
|
|
70
|
+
if (eventName === 'onInput') {
|
|
71
|
+
setModelValue(value);
|
|
72
|
+
}
|
|
68
73
|
},
|
|
69
74
|
]),
|
|
70
75
|
);
|
|
@@ -72,7 +77,7 @@ const Scenario = (props: Props) => {
|
|
|
72
77
|
return (
|
|
73
78
|
<>
|
|
74
79
|
<div className="grid grid-cols-3 items-end gap-4" data-testid={props.testId}>
|
|
75
|
-
<props.InputComponent ref={ref} _on={eventListeners} {...props.inputProps} />
|
|
80
|
+
<props.InputComponent ref={ref} _on={eventListeners} {...props.inputProps} _value={modelValue} />
|
|
76
81
|
<KolButton
|
|
77
82
|
_label="getValue()"
|
|
78
83
|
_on={{
|
|
@@ -81,7 +86,7 @@ const Scenario = (props: Props) => {
|
|
|
81
86
|
},
|
|
82
87
|
}}
|
|
83
88
|
></KolButton>
|
|
84
|
-
<pre className="text-base">{formatter(
|
|
89
|
+
<pre className="text-base">{formatter(displayValue)}</pre>
|
|
85
90
|
</div>
|
|
86
91
|
</>
|
|
87
92
|
);
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { KolInputCheckbox, KolInputNumber, KolInputText } from '@public-ui/react-v19';
|
|
2
|
+
import type { FC } from 'react';
|
|
3
|
+
import React from 'react';
|
|
4
|
+
import { SampleDescription } from '../components/SampleDescription';
|
|
5
|
+
|
|
6
|
+
const MAX_LENGTH = 333;
|
|
7
|
+
const NUMBER_OF_INPUTS = new Array(MAX_LENGTH).fill(0).map((_, i) => i + 1);
|
|
8
|
+
|
|
9
|
+
export const PerformanceTest: FC = () => {
|
|
10
|
+
return (
|
|
11
|
+
<>
|
|
12
|
+
<SampleDescription>
|
|
13
|
+
<p>This example renders many KoliBri components to show the performance.</p>
|
|
14
|
+
</SampleDescription>
|
|
15
|
+
|
|
16
|
+
<div className="w-full grid gap-4">
|
|
17
|
+
{NUMBER_OF_INPUTS.map((idx) => (
|
|
18
|
+
<div className="flex flex-wrap items-end gap-4" key={idx}>
|
|
19
|
+
<KolInputText _label={`TextInput #${idx}`} />
|
|
20
|
+
<KolInputNumber _label={`NumberInput #${idx}`} />
|
|
21
|
+
<KolInputCheckbox _label={`Checkbox #${idx}`} />
|
|
22
|
+
</div>
|
|
23
|
+
))}
|
|
24
|
+
</div>
|
|
25
|
+
</>
|
|
26
|
+
);
|
|
27
|
+
};
|