@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
|
@@ -12,6 +12,6 @@ export const InputCheckboxButton: FC = () => (
|
|
|
12
12
|
<p>This sample shows KolInputCheckbox in the variant "button".</p>
|
|
13
13
|
</SampleDescription>
|
|
14
14
|
|
|
15
|
-
<FormWrap<Components.KolInputCheckbox> RefComponent={InputCheckboxVariants} _variant="button" />
|
|
15
|
+
<FormWrap<Components.KolInputCheckbox> RefComponent={InputCheckboxVariants} _variant="button" showButtons={false} />
|
|
16
16
|
</>
|
|
17
17
|
);
|
|
@@ -3,10 +3,11 @@ import React, { forwardRef } from 'react';
|
|
|
3
3
|
import { InputCheckboxCases } from './cases';
|
|
4
4
|
|
|
5
5
|
import type { Components } from '@public-ui/components';
|
|
6
|
+
import { SampleColumns } from '../../SampleColumns';
|
|
6
7
|
export const InputCheckboxVariants = forwardRef<HTMLKolInputCheckboxElement, Components.KolInputCheckbox>(function InputCheckboxVariant(props, ref) {
|
|
7
8
|
return (
|
|
8
9
|
<>
|
|
9
|
-
<
|
|
10
|
+
<SampleColumns>
|
|
10
11
|
<fieldset>
|
|
11
12
|
<legend>Label align "left" with label</legend>
|
|
12
13
|
<InputCheckboxCases {...props} _labelAlign="left" />
|
|
@@ -15,8 +16,8 @@ export const InputCheckboxVariants = forwardRef<HTMLKolInputCheckboxElement, Com
|
|
|
15
16
|
<legend>Label align "left" without Label (hideLabel)</legend>
|
|
16
17
|
<InputCheckboxCases ref={ref} {...props} _hideLabel _labelAlign="left" />
|
|
17
18
|
</fieldset>
|
|
18
|
-
</
|
|
19
|
-
<
|
|
19
|
+
</SampleColumns>
|
|
20
|
+
<SampleColumns>
|
|
20
21
|
<fieldset>
|
|
21
22
|
<legend>Label align "right" with label</legend>
|
|
22
23
|
<InputCheckboxCases {...props} />
|
|
@@ -25,7 +26,7 @@ export const InputCheckboxVariants = forwardRef<HTMLKolInputCheckboxElement, Com
|
|
|
25
26
|
<legend>Label align "right" without Label (hideLabel)</legend>
|
|
26
27
|
<InputCheckboxCases ref={ref} {...props} _hideLabel />
|
|
27
28
|
</fieldset>
|
|
28
|
-
</
|
|
29
|
+
</SampleColumns>
|
|
29
30
|
</>
|
|
30
31
|
);
|
|
31
32
|
});
|
|
@@ -10,6 +10,6 @@ export const InputCheckboxSwitch: FC = () => (
|
|
|
10
10
|
<p>This sample shows KolInputCheckbox in the variant "switch".</p>
|
|
11
11
|
</SampleDescription>
|
|
12
12
|
|
|
13
|
-
<FormWrap RefComponent={InputCheckboxVariants} _variant="switch" />
|
|
13
|
+
<FormWrap RefComponent={InputCheckboxVariants} _variant="switch" showButtons={false} />
|
|
14
14
|
</>
|
|
15
15
|
);
|
|
@@ -11,6 +11,6 @@ export const InputColorBasic: FC = () => (
|
|
|
11
11
|
<p>KolInputColor renders a color input. The sample shows KolInputColor in a form context with all variations and states.</p>
|
|
12
12
|
</SampleDescription>
|
|
13
13
|
|
|
14
|
-
<FormWrap RefComponent={InputColorVariants} />
|
|
14
|
+
<FormWrap RefComponent={InputColorVariants} showButtons={false} />
|
|
15
15
|
</>
|
|
16
16
|
);
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import React, { forwardRef } from 'react';
|
|
2
|
-
|
|
3
|
-
import {
|
|
2
|
+
import { KolInputColor } from '@public-ui/react-v19';
|
|
3
|
+
import type { Components } from '@public-ui/components';
|
|
4
4
|
|
|
5
5
|
import { ERROR_MSG } from '../../../shares/constants';
|
|
6
6
|
|
|
7
|
-
import type { Components } from '@public-ui/components';
|
|
8
7
|
export const InputColorCases = forwardRef<HTMLKolInputColorElement, Components.KolInputColor>(function InputColorCases(props, ref) {
|
|
9
8
|
return (
|
|
10
9
|
<div className="grid gap-4">
|
|
@@ -26,6 +25,9 @@ export const InputColorCases = forwardRef<HTMLKolInputColorElement, Components.K
|
|
|
26
25
|
_suggestions="['#000000','#f08080', '#0000ff','#00ff00']"
|
|
27
26
|
_touched
|
|
28
27
|
/>
|
|
28
|
+
<KolInputColor {...props} _msg={{ _type: 'info', _description: 'Just a hint' }} _label="Color" />
|
|
29
|
+
<KolInputColor {...props} _msg={{ _type: 'warning', _description: 'Small warning' }} _label="Color" />
|
|
30
|
+
<KolInputColor {...props} _msg={{ _type: 'success', _description: 'Success message' }} _label="Color" />
|
|
29
31
|
<KolInputColor {...props} ref={ref} _accessKey="C" _hint="Hint text" _label="Color with hint" _value="#f08080" />
|
|
30
32
|
<KolInputColor {...props} _disabled _label="Color (Disabled)" _value="#f08080" />
|
|
31
33
|
<KolInputColor {...props} _label="With access key" _accessKey="c"></KolInputColor>
|
|
@@ -3,9 +3,10 @@ import React, { forwardRef } from 'react';
|
|
|
3
3
|
import { InputColorCases } from './cases';
|
|
4
4
|
|
|
5
5
|
import type { Components } from '@public-ui/components';
|
|
6
|
+
import { SampleColumns } from '../../SampleColumns';
|
|
6
7
|
export const InputColorVariants = forwardRef<HTMLKolInputColorElement, Components.KolInputColor>(function InputColorVariant(props, ref) {
|
|
7
8
|
return (
|
|
8
|
-
<
|
|
9
|
+
<SampleColumns>
|
|
9
10
|
<fieldset>
|
|
10
11
|
<legend>Color</legend>
|
|
11
12
|
<InputColorCases {...props} />
|
|
@@ -14,6 +15,6 @@ export const InputColorVariants = forwardRef<HTMLKolInputColorElement, Component
|
|
|
14
15
|
<legend>Color (hideLabel)</legend>
|
|
15
16
|
<InputColorCases ref={ref} {...props} _hideLabel />
|
|
16
17
|
</fieldset>
|
|
17
|
-
</
|
|
18
|
+
</SampleColumns>
|
|
18
19
|
);
|
|
19
20
|
});
|
|
@@ -11,6 +11,6 @@ export const InputDateBasic: FC = () => (
|
|
|
11
11
|
<p>KolInputDate renders all types of fields for date and time input. The sample shows KolInputDate in a form context with all variations and states.</p>
|
|
12
12
|
</SampleDescription>
|
|
13
13
|
|
|
14
|
-
<FormWrap RefComponent={InputDateVariants} />
|
|
14
|
+
<FormWrap RefComponent={InputDateVariants} showButtons={false} />
|
|
15
15
|
</>
|
|
16
16
|
);
|
|
@@ -0,0 +1,172 @@
|
|
|
1
|
+
import React, { useCallback, useEffect, useMemo, useRef, useState } from 'react';
|
|
2
|
+
import { KolButton, KolInputDate, KolInputText } from '@public-ui/react-v19';
|
|
3
|
+
import { SampleDescription } from '../SampleDescription';
|
|
4
|
+
|
|
5
|
+
/** -----------------------------
|
|
6
|
+
* Types & helpers
|
|
7
|
+
* ----------------------------- */
|
|
8
|
+
const pad2 = (n: number): string => String(n).padStart(2, '0');
|
|
9
|
+
|
|
10
|
+
type Year = `${number}`;
|
|
11
|
+
type Month = `${number}`;
|
|
12
|
+
type Day = `${number}`;
|
|
13
|
+
type IsoDate = `${Year}-${Month}-${Day}`;
|
|
14
|
+
|
|
15
|
+
const isValidYmd = (y: number, m: number, d: number): boolean => {
|
|
16
|
+
const dt = new Date(y, m - 1, d);
|
|
17
|
+
return dt.getFullYear() === y && dt.getMonth() === m - 1 && dt.getDate() === d;
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
/** Parse ONLY German format DD.MM.YYYY to ISO (internal use) */
|
|
21
|
+
function parseDeToIso(input: string): IsoDate | null {
|
|
22
|
+
const m = /^\s*(\d{1,2})\.(\d{1,2})\.(\d{4})\s*$/.exec(input);
|
|
23
|
+
if (!m) return null;
|
|
24
|
+
const d = +m[1];
|
|
25
|
+
const mo = +m[2];
|
|
26
|
+
const y = +m[3];
|
|
27
|
+
if (!isValidYmd(y, mo, d)) return null;
|
|
28
|
+
return `${y}-${pad2(mo)}-${pad2(d)}` as IsoDate;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
/** -----------------------------
|
|
32
|
+
* Typed Web Component bridge
|
|
33
|
+
* ----------------------------- */
|
|
34
|
+
type SetIsoValueMethod = (iso: IsoDate | null) => Promise<void>;
|
|
35
|
+
|
|
36
|
+
type KolInputDateHost = HTMLKolInputDateElement & {
|
|
37
|
+
setIsoValue?: SetIsoValueMethod;
|
|
38
|
+
value?: string;
|
|
39
|
+
_value?: IsoDate | Date | null;
|
|
40
|
+
};
|
|
41
|
+
|
|
42
|
+
function isKolHost(n: EventTarget): n is KolInputDateHost {
|
|
43
|
+
return n instanceof HTMLElement && n.tagName === 'KOL-INPUT-DATE';
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
async function setKolInputDateValue(host: KolInputDateHost, iso: IsoDate): Promise<void> {
|
|
47
|
+
if (typeof host.setIsoValue === 'function') {
|
|
48
|
+
await host.setIsoValue(iso);
|
|
49
|
+
} else if (typeof host.value !== 'undefined') {
|
|
50
|
+
host.value = iso;
|
|
51
|
+
} else if (typeof host._value !== 'undefined') {
|
|
52
|
+
host._value = iso;
|
|
53
|
+
} else {
|
|
54
|
+
host.setAttribute('_value', iso);
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
host.dispatchEvent(new Event('input', { bubbles: true, composed: true }));
|
|
58
|
+
host.dispatchEvent(new Event('change', { bubbles: true, composed: true }));
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
/** -----------------------------
|
|
62
|
+
* React component
|
|
63
|
+
* ----------------------------- */
|
|
64
|
+
export const InputDateCopyPaste: React.FC = () => {
|
|
65
|
+
const [deValue, setDeValue] = useState<string>('31.12.2025');
|
|
66
|
+
const [status, setStatus] = useState<string>('');
|
|
67
|
+
const activeKolHostRef = useRef<KolInputDateHost | null>(null);
|
|
68
|
+
|
|
69
|
+
const isoFromDe = useMemo(() => parseDeToIso(deValue), [deValue]);
|
|
70
|
+
|
|
71
|
+
// Track focus target inside shadow DOM
|
|
72
|
+
useEffect(() => {
|
|
73
|
+
const ac = new AbortController();
|
|
74
|
+
const onFocusIn = (e: Event): void => {
|
|
75
|
+
const path = (e.composedPath?.() ?? []) as EventTarget[];
|
|
76
|
+
activeKolHostRef.current = path.find(isKolHost) ?? null;
|
|
77
|
+
};
|
|
78
|
+
document.addEventListener('focusin', onFocusIn, { capture: true, signal: ac.signal });
|
|
79
|
+
return () => ac.abort();
|
|
80
|
+
}, []);
|
|
81
|
+
|
|
82
|
+
// Global paste handler: read German date from clipboard, convert to ISO internally, inject into KolInputDate
|
|
83
|
+
useEffect(() => {
|
|
84
|
+
const ac = new AbortController();
|
|
85
|
+
|
|
86
|
+
const onPaste = (e: ClipboardEvent): void => {
|
|
87
|
+
const host = activeKolHostRef.current;
|
|
88
|
+
if (!host) return;
|
|
89
|
+
|
|
90
|
+
const raw = e.clipboardData?.getData('text') ?? '';
|
|
91
|
+
const iso = parseDeToIso(raw);
|
|
92
|
+
|
|
93
|
+
if (!iso) {
|
|
94
|
+
setStatus('Clipboard: unrecognized date. Use DD.MM.YYYY.');
|
|
95
|
+
return;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
e.preventDefault();
|
|
99
|
+
void setKolInputDateValue(host, iso);
|
|
100
|
+
setStatus('Pasted.');
|
|
101
|
+
};
|
|
102
|
+
|
|
103
|
+
document.addEventListener('paste', onPaste, { capture: true, signal: ac.signal });
|
|
104
|
+
return () => ac.abort();
|
|
105
|
+
}, []);
|
|
106
|
+
|
|
107
|
+
const copyToClipboard = useCallback(async (text: string): Promise<void> => {
|
|
108
|
+
setStatus('');
|
|
109
|
+
try {
|
|
110
|
+
await navigator.clipboard.writeText(text);
|
|
111
|
+
setStatus('Copied.');
|
|
112
|
+
} catch {
|
|
113
|
+
setStatus('Copy failed. Your browser may block clipboard access.');
|
|
114
|
+
}
|
|
115
|
+
}, []);
|
|
116
|
+
|
|
117
|
+
/** -----------------------------
|
|
118
|
+
* KolInputText handlers (match signature: (event, value: unknown) => void)
|
|
119
|
+
* ----------------------------- */
|
|
120
|
+
const handleDeInput = useCallback((event: Event, value: unknown) => {
|
|
121
|
+
if (event?.target) {
|
|
122
|
+
const next = typeof value === 'string' ? value : String(value ?? '');
|
|
123
|
+
setDeValue(next);
|
|
124
|
+
}
|
|
125
|
+
}, []);
|
|
126
|
+
|
|
127
|
+
return (
|
|
128
|
+
<>
|
|
129
|
+
<SampleDescription>
|
|
130
|
+
<p>
|
|
131
|
+
Type a date in German format (<code>DD.MM.YYYY</code>), click <em>Copy to Clipboard</em>, then paste it into the date field below with <kbd>Ctrl</kbd>
|
|
132
|
+
+<kbd>V</kbd>. The ISO conversion happens internally.
|
|
133
|
+
</p>
|
|
134
|
+
</SampleDescription>
|
|
135
|
+
|
|
136
|
+
<div className="grid gap-8" lang="en">
|
|
137
|
+
<section aria-labelledby="de-title">
|
|
138
|
+
<h3 id="de-title" className="text-lg font-semibold mb-2">
|
|
139
|
+
German date (DD.MM.YYYY)
|
|
140
|
+
</h3>
|
|
141
|
+
|
|
142
|
+
<div className="grid gap-3">
|
|
143
|
+
<KolInputText
|
|
144
|
+
className="w-full"
|
|
145
|
+
_label="German date (DD.MM.YYYY)"
|
|
146
|
+
_placeholder="e.g., 31.12.2025"
|
|
147
|
+
_value={deValue}
|
|
148
|
+
_type="text"
|
|
149
|
+
_on={{
|
|
150
|
+
onInput: handleDeInput,
|
|
151
|
+
onChange: handleDeInput,
|
|
152
|
+
}}
|
|
153
|
+
/>
|
|
154
|
+
|
|
155
|
+
<small className="opacity-80">Click the button to copy the exact German date, then paste it into the date field below.</small>
|
|
156
|
+
|
|
157
|
+
<div className="flex items-center gap-2">
|
|
158
|
+
<KolButton _label="Copy to Clipboard" _on={{ onClick: () => copyToClipboard(deValue) }} />
|
|
159
|
+
{!isoFromDe && <span className="text-red-600">Invalid date</span>}
|
|
160
|
+
</div>
|
|
161
|
+
|
|
162
|
+
<KolInputDate _type="date" _label="Date (paste here with Ctrl+V)" className="w-full" />
|
|
163
|
+
</div>
|
|
164
|
+
</section>
|
|
165
|
+
|
|
166
|
+
<p aria-live="polite" role="status" className="mt-2 opacity-80">
|
|
167
|
+
{status}
|
|
168
|
+
</p>
|
|
169
|
+
</div>
|
|
170
|
+
</>
|
|
171
|
+
);
|
|
172
|
+
};
|
|
@@ -1,26 +1,29 @@
|
|
|
1
1
|
import React, { forwardRef } from 'react';
|
|
2
|
+
import { KolInputDate } from '@public-ui/react-v19';
|
|
3
|
+
import type { Components } from '@public-ui/components';
|
|
2
4
|
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
import { ERROR_MSG } from '../../../shares/constants';
|
|
5
|
+
import { ERROR_MSG, HINT_MSG } from '../../../shares/constants';
|
|
6
6
|
|
|
7
|
-
import type { Components } from '@public-ui/components';
|
|
8
7
|
export const InputDateCases = forwardRef<HTMLKolInputDateElement, Components.KolInputDate>(function InputDateCases(props, ref) {
|
|
9
8
|
return (
|
|
10
9
|
<div className="grid gap-4">
|
|
11
10
|
<div className="black-background">
|
|
12
|
-
<KolInputDate {...props} _type="date" _label="Date input (Black background test)" _required />
|
|
11
|
+
<KolInputDate {...props} _type="date" _label="Date input (Black background test)" _required />
|
|
13
12
|
</div>
|
|
14
13
|
<KolInputDate {...props} _type="datetime-local" _label="Local-Datetime (Standard)" _required />
|
|
15
14
|
<KolInputDate
|
|
16
15
|
{...props}
|
|
17
16
|
_step={1}
|
|
18
17
|
_type="datetime-local"
|
|
18
|
+
_hint={HINT_MSG}
|
|
19
19
|
_msg={{ _type: 'error', _description: ERROR_MSG }}
|
|
20
20
|
_label="Local datetime (with seconds)"
|
|
21
21
|
_required
|
|
22
22
|
_touched
|
|
23
23
|
/>
|
|
24
|
+
<KolInputDate {...props} _msg={{ _type: 'info', _description: 'Just a hint' }} _label="Color" />
|
|
25
|
+
<KolInputDate {...props} _msg={{ _type: 'warning', _description: 'Small warning' }} _label="Color" />
|
|
26
|
+
<KolInputDate {...props} _msg={{ _type: 'success', _description: 'Success message' }} _label="Color" />
|
|
24
27
|
<KolInputDate {...props} _type="month" _label="Month" _required />
|
|
25
28
|
<KolInputDate {...props} ref={ref} _accessKey="W" _type="week" _label="Week" _required />
|
|
26
29
|
<KolInputDate {...props} _type="time" _label="Time (standard)" _required />
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import React
|
|
2
|
-
import { KolInputDate } from '@public-ui/react';
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { KolInputDate } from '@public-ui/react-v19';
|
|
3
3
|
import type { Components } from '@public-ui/components';
|
|
4
4
|
|
|
5
|
-
export const InputDateMinMaxCases =
|
|
5
|
+
export const InputDateMinMaxCases = (props: Components.KolInputDate) => {
|
|
6
6
|
const minDateIso = '2024-09-26';
|
|
7
7
|
const maxDateIso = '2024-09-27';
|
|
8
8
|
|
|
@@ -38,4 +38,4 @@ export const InputDateMinMaxCases = forwardRef<HTMLKolInputDateElement, Componen
|
|
|
38
38
|
<KolInputDate {...props} _type="month" _label="Month with Date" _min={minDate} _max={maxDate} />
|
|
39
39
|
</div>
|
|
40
40
|
);
|
|
41
|
-
}
|
|
41
|
+
};
|
|
@@ -4,9 +4,10 @@ import { InputDateCases } from './cases';
|
|
|
4
4
|
|
|
5
5
|
import type { Components } from '@public-ui/components';
|
|
6
6
|
import { InputDateMinMaxCases } from './minMax';
|
|
7
|
+
import { SampleColumns } from '../../SampleColumns';
|
|
7
8
|
export const InputDateVariants = forwardRef<HTMLKolInputDateElement, Components.KolInputDate>(function InputDateVariant(props, ref) {
|
|
8
9
|
return (
|
|
9
|
-
<
|
|
10
|
+
<SampleColumns>
|
|
10
11
|
<fieldset>
|
|
11
12
|
<legend>Date</legend>
|
|
12
13
|
<InputDateCases {...props} />
|
|
@@ -17,8 +18,8 @@ export const InputDateVariants = forwardRef<HTMLKolInputDateElement, Components.
|
|
|
17
18
|
</fieldset>
|
|
18
19
|
<fieldset>
|
|
19
20
|
<legend>Date (with min/max)</legend>
|
|
20
|
-
<InputDateMinMaxCases
|
|
21
|
+
<InputDateMinMaxCases {...props} />
|
|
21
22
|
</fieldset>
|
|
22
|
-
</
|
|
23
|
+
</SampleColumns>
|
|
23
24
|
);
|
|
24
25
|
});
|
|
@@ -1,10 +1,14 @@
|
|
|
1
1
|
import { Routes } from '../../shares/types';
|
|
2
2
|
import { InputDateBasic } from './basic';
|
|
3
3
|
import { InputDateReset } from './reset';
|
|
4
|
+
import { InputDateShowHideMsg } from './show-hide-msg';
|
|
5
|
+
import { InputDateCopyPaste } from './copy-paste';
|
|
4
6
|
|
|
5
7
|
export const INPUT_DATE_ROUTES: Routes = {
|
|
6
8
|
'input-date': {
|
|
7
9
|
basic: InputDateBasic,
|
|
10
|
+
'copy-paste': InputDateCopyPaste,
|
|
8
11
|
reset: InputDateReset,
|
|
12
|
+
'show-hide-msg': InputDateShowHideMsg,
|
|
9
13
|
},
|
|
10
14
|
};
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import { KolInputCheckbox, KolInputDate } from '@public-ui/react-v19';
|
|
2
|
+
import React, { useState } from 'react';
|
|
3
|
+
import { SampleDescription } from '../SampleDescription';
|
|
4
|
+
|
|
5
|
+
const msgTypes = ['default', 'error', 'info', 'success', 'warning'] as const;
|
|
6
|
+
|
|
7
|
+
function onGenerator(setter: (cb: (b: boolean) => boolean) => void) {
|
|
8
|
+
return {
|
|
9
|
+
onChange: () => setter((b) => !b),
|
|
10
|
+
};
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export const InputDateShowHideMsg = () => {
|
|
14
|
+
const [showMsg, setShowMsg] = useState(true);
|
|
15
|
+
const [isTouched, setIsTouched] = useState(true);
|
|
16
|
+
const [hideMsg, setHideMsg] = useState(false);
|
|
17
|
+
|
|
18
|
+
const onMsg = onGenerator(setShowMsg);
|
|
19
|
+
const onTouched = onGenerator(setIsTouched);
|
|
20
|
+
const onHideMsg = onGenerator(setHideMsg);
|
|
21
|
+
|
|
22
|
+
return (
|
|
23
|
+
<>
|
|
24
|
+
<SampleDescription>
|
|
25
|
+
<p>This example shows how messages work in input fields.</p>
|
|
26
|
+
</SampleDescription>
|
|
27
|
+
|
|
28
|
+
<div className="flex gap-4 flex-col">
|
|
29
|
+
<div className="flex gap-4 items-center">
|
|
30
|
+
<KolInputCheckbox _label="Toggle Msg" _on={onMsg} _checked={showMsg} _variant="button" />
|
|
31
|
+
<KolInputCheckbox _label="Toggle Touched" _on={onTouched} _checked={isTouched} _variant="button" />
|
|
32
|
+
<KolInputCheckbox _label="Toggle Hide Msg" _on={onHideMsg} _checked={hideMsg} _variant="button" />
|
|
33
|
+
</div>
|
|
34
|
+
<pre>
|
|
35
|
+
Message exists: {showMsg ? 'Yes' : 'No'} (showMsg: {showMsg ? 'Yes' : 'No'})<br />
|
|
36
|
+
Non-Error-Message visible: {showMsg && !hideMsg ? 'Yes' : 'No'} (showMsg: {showMsg ? 'Yes' : 'No'}, hideMsg: {hideMsg ? 'Yes' : 'No'})<br />
|
|
37
|
+
Error-Message visible: {showMsg && isTouched && !hideMsg ? 'Yes' : 'No'} (showMsg: {showMsg ? 'Yes' : 'No'}, isTouched: {isTouched ? 'Yes' : 'No'},
|
|
38
|
+
hideMsg: {hideMsg ? 'Yes' : 'No'})
|
|
39
|
+
</pre>
|
|
40
|
+
{msgTypes.map((type) => (
|
|
41
|
+
<KolInputDate
|
|
42
|
+
key={type}
|
|
43
|
+
_hideMsg={hideMsg}
|
|
44
|
+
_label={`Date (_msg, ${type})`}
|
|
45
|
+
_msg={
|
|
46
|
+
showMsg
|
|
47
|
+
? {
|
|
48
|
+
_description: `${type} message`,
|
|
49
|
+
_type: type,
|
|
50
|
+
}
|
|
51
|
+
: undefined
|
|
52
|
+
}
|
|
53
|
+
_touched={isTouched}
|
|
54
|
+
/>
|
|
55
|
+
))}
|
|
56
|
+
</div>
|
|
57
|
+
</>
|
|
58
|
+
);
|
|
59
|
+
};
|
|
@@ -11,6 +11,6 @@ export const InputEmailBasic: FC = () => (
|
|
|
11
11
|
<p>KolInputEmail renders an email input field. The sample shows KolInputEmail in a form context with all variations and states.</p>
|
|
12
12
|
</SampleDescription>
|
|
13
13
|
|
|
14
|
-
<FormWrap RefComponent={InputEmailVariants} />
|
|
14
|
+
<FormWrap RefComponent={InputEmailVariants} showButtons={false} />
|
|
15
15
|
</>
|
|
16
16
|
);
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import React, { forwardRef } from 'react';
|
|
2
|
+
import { KolInputEmail } from '@public-ui/react-v19';
|
|
3
|
+
import type { Components } from '@public-ui/components';
|
|
2
4
|
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
import { ERROR_MSG } from '../../../shares/constants';
|
|
5
|
+
import { ERROR_MSG, HINT_MSG } from '../../../shares/constants';
|
|
6
6
|
|
|
7
|
-
import type { Components } from '@public-ui/components';
|
|
8
7
|
export const InputEmailCases = forwardRef<HTMLKolInputEmailElement, Components.KolInputEmail>(function InputEmailCases(props, ref) {
|
|
9
8
|
return (
|
|
10
9
|
<div className="grid gap-4">
|
|
@@ -18,6 +17,7 @@ export const InputEmailCases = forwardRef<HTMLKolInputEmailElement, Components.K
|
|
|
18
17
|
_placeholder="elke@mustermann.de"
|
|
19
18
|
_suggestions="['test1@mail.de', 'test2@mail.de', 'test3@mail.de']"
|
|
20
19
|
_label="E-Mail (list)"
|
|
20
|
+
_hint={HINT_MSG}
|
|
21
21
|
_msg={{ _type: 'error', _description: ERROR_MSG }}
|
|
22
22
|
_touched
|
|
23
23
|
_icons={{
|
|
@@ -29,6 +29,9 @@ export const InputEmailCases = forwardRef<HTMLKolInputEmailElement, Components.K
|
|
|
29
29
|
},
|
|
30
30
|
}}
|
|
31
31
|
/>
|
|
32
|
+
<KolInputEmail {...props} _msg={{ _type: 'info', _description: 'Just a hint' }} _label="E-Mail" />
|
|
33
|
+
<KolInputEmail {...props} _msg={{ _type: 'warning', _description: 'Small warning' }} _label="E-Mail" />
|
|
34
|
+
<KolInputEmail {...props} _msg={{ _type: 'success', _description: 'Success message' }} _label="E-Mail" />
|
|
32
35
|
<KolInputEmail {...props} _disabled _value="test@mail.de" _label="E-Mail (Disabled)" />
|
|
33
36
|
<KolInputEmail {...props} _readOnly _value="test@mail.de" _label="E-Mail (Readonly)" />
|
|
34
37
|
<KolInputEmail {...props} _value="test@mail.de" _label="With access key" _accessKey="c" />
|
|
@@ -3,9 +3,10 @@ import React, { forwardRef } from 'react';
|
|
|
3
3
|
import { InputEmailCases } from './cases';
|
|
4
4
|
|
|
5
5
|
import type { Components } from '@public-ui/components';
|
|
6
|
+
import { SampleColumns } from '../../SampleColumns';
|
|
6
7
|
export const InputEmailVariants = forwardRef<HTMLKolInputEmailElement, Components.KolInputEmail>(function InputEmailVariant(props, ref) {
|
|
7
8
|
return (
|
|
8
|
-
<
|
|
9
|
+
<SampleColumns>
|
|
9
10
|
<fieldset>
|
|
10
11
|
<legend>Email</legend>
|
|
11
12
|
<InputEmailCases {...props} />
|
|
@@ -14,6 +15,6 @@ export const InputEmailVariants = forwardRef<HTMLKolInputEmailElement, Component
|
|
|
14
15
|
<legend>Email (hideLabel)</legend>
|
|
15
16
|
<InputEmailCases ref={ref} {...props} _hideLabel />
|
|
16
17
|
</fieldset>
|
|
17
|
-
</
|
|
18
|
+
</SampleColumns>
|
|
18
19
|
);
|
|
19
20
|
});
|
|
@@ -11,6 +11,6 @@ export const InputFileBasic: FC = () => (
|
|
|
11
11
|
<p>KolInputFile renders a file input field. The sample shows KolInputFile in a form context with all variations and states.</p>
|
|
12
12
|
</SampleDescription>
|
|
13
13
|
|
|
14
|
-
<FormWrap RefComponent={InputFileVariants} />
|
|
14
|
+
<FormWrap RefComponent={InputFileVariants} showButtons={false} />
|
|
15
15
|
</>
|
|
16
16
|
);
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import React, { forwardRef } from 'react';
|
|
2
|
+
import { KolInputFile } from '@public-ui/react-v19';
|
|
3
|
+
import type { Components } from '@public-ui/components';
|
|
2
4
|
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
import { ERROR_MSG } from '../../../shares/constants';
|
|
5
|
+
import { ERROR_MSG, HINT_MSG } from '../../../shares/constants';
|
|
6
6
|
|
|
7
|
-
import type { Components } from '@public-ui/components';
|
|
8
7
|
export const InputFileCases = forwardRef<HTMLKolInputFileElement, Components.KolInputFile>(function InputFileCases(props, ref) {
|
|
9
8
|
return (
|
|
10
9
|
<div className="grid gap-4">
|
|
@@ -23,6 +22,7 @@ export const InputFileCases = forwardRef<HTMLKolInputFileElement, Components.Kol
|
|
|
23
22
|
<KolInputFile
|
|
24
23
|
{...props}
|
|
25
24
|
_required
|
|
25
|
+
_hint={HINT_MSG}
|
|
26
26
|
_msg={{ _type: 'error', _description: ERROR_MSG }}
|
|
27
27
|
_label="Upload file (Black background test)"
|
|
28
28
|
_icons={{
|
|
@@ -32,6 +32,9 @@ export const InputFileCases = forwardRef<HTMLKolInputFileElement, Components.Kol
|
|
|
32
32
|
}}
|
|
33
33
|
_touched
|
|
34
34
|
/>
|
|
35
|
+
<KolInputFile {...props} _msg={{ _type: 'info', _description: 'Just a hint' }} _label="Upload file" />
|
|
36
|
+
<KolInputFile {...props} _msg={{ _type: 'warning', _description: 'Small warning' }} _label="Upload file" />
|
|
37
|
+
<KolInputFile {...props} _msg={{ _type: 'success', _description: 'Success message' }} _label="Upload file" />
|
|
35
38
|
<KolInputFile {...props} ref={ref} _accessKey="h" _multiple _msg={{ _type: 'error', _description: ERROR_MSG }} _label="Upload file (Multiple)" />
|
|
36
39
|
<KolInputFile {...props} _disabled _label="Upload file (Disabled)" />
|
|
37
40
|
<KolInputFile {...props} _label="With access key" _accessKey="c" />
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import React, { forwardRef } from 'react';
|
|
2
2
|
|
|
3
3
|
import { InputFileCases } from './cases';
|
|
4
|
+
import { SampleColumns } from '../../SampleColumns';
|
|
4
5
|
|
|
5
6
|
import type { Components } from '@public-ui/components';
|
|
6
7
|
export const InputFileVariants = forwardRef<HTMLKolInputFileElement, Components.KolInputFile>(function InputFileVariant(props, ref) {
|
|
7
8
|
return (
|
|
8
|
-
<
|
|
9
|
+
<SampleColumns>
|
|
9
10
|
<fieldset>
|
|
10
11
|
<legend>File</legend>
|
|
11
12
|
<InputFileCases {...props} />
|
|
@@ -14,6 +15,6 @@ export const InputFileVariants = forwardRef<HTMLKolInputFileElement, Components.
|
|
|
14
15
|
<legend>File (hideLabel)</legend>
|
|
15
16
|
<InputFileCases ref={ref} {...props} _hideLabel />
|
|
16
17
|
</fieldset>
|
|
17
|
-
</
|
|
18
|
+
</SampleColumns>
|
|
18
19
|
);
|
|
19
20
|
});
|
|
@@ -14,6 +14,6 @@ export const InputNumberBasic: FC = () => (
|
|
|
14
14
|
emphasize validation rules, supporting examples without form validation, and refrains from additional validation through native HTML element validation.
|
|
15
15
|
</p>
|
|
16
16
|
</SampleDescription>
|
|
17
|
-
<FormWrap RefComponent={InputNumberVariants} />
|
|
17
|
+
<FormWrap RefComponent={InputNumberVariants} showButtons={false} />
|
|
18
18
|
</>
|
|
19
19
|
);
|
|
@@ -3,9 +3,10 @@ import React, { forwardRef } from 'react';
|
|
|
3
3
|
import { InputNumberCases } from './cases';
|
|
4
4
|
|
|
5
5
|
import type { Components } from '@public-ui/components';
|
|
6
|
+
import { SampleColumns } from '../../SampleColumns';
|
|
6
7
|
export const InputNumberVariants = forwardRef<HTMLKolInputNumberElement, Components.KolInputNumber>(function InputNumberVariant(props, ref) {
|
|
7
8
|
return (
|
|
8
|
-
<
|
|
9
|
+
<SampleColumns>
|
|
9
10
|
<fieldset>
|
|
10
11
|
<legend>Number</legend>
|
|
11
12
|
<InputNumberCases {...props} />
|
|
@@ -14,6 +15,6 @@ export const InputNumberVariants = forwardRef<HTMLKolInputNumberElement, Compone
|
|
|
14
15
|
<legend>Number (hideLabel)</legend>
|
|
15
16
|
<InputNumberCases ref={ref} {...props} _hideLabel />
|
|
16
17
|
</fieldset>
|
|
17
|
-
</
|
|
18
|
+
</SampleColumns>
|
|
18
19
|
);
|
|
19
20
|
});
|
|
@@ -11,6 +11,6 @@ export const InputPasswordBasic: FC = () => (
|
|
|
11
11
|
<p>KolInputPassword renders a password input field. The sample shows KolInputPassword in a form context with all variations and states.</p>
|
|
12
12
|
</SampleDescription>
|
|
13
13
|
|
|
14
|
-
<FormWrap RefComponent={InputPasswordVariants} />
|
|
14
|
+
<FormWrap RefComponent={InputPasswordVariants} showButtons={false} />
|
|
15
15
|
</>
|
|
16
16
|
);
|