@public-ui/sample-react 2.2.12 → 2.2.13-rc.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/dist/assets/Alert-a6848745-ChrZEM69.js +4 -0
- package/dist/assets/Alert-a6848745-ChrZEM69.js.map +1 -0
- package/dist/assets/Collapsible-54678189-CzJpWLMJ.js +4 -0
- package/dist/assets/Collapsible-54678189-CzJpWLMJ.js.map +1 -0
- package/dist/assets/FormFieldMsg-40c5fb14-D4xK3XLd.js +4 -0
- package/dist/assets/FormFieldMsg-40c5fb14-D4xK3XLd.js.map +1 -0
- package/dist/assets/InternalUnderlinedBadgeText-5c3ce08a-B2s62pih.js +4 -0
- package/dist/assets/InternalUnderlinedBadgeText-5c3ce08a-B2s62pih.js.map +1 -0
- package/dist/assets/access-and-short-key-25e651f4-CO7t6jfN.js +4 -0
- package/dist/assets/access-and-short-key-25e651f4-CO7t6jfN.js.map +1 -0
- package/dist/assets/align-d80dfc19-BPR7NM6-.js +4 -0
- package/dist/assets/align-d80dfc19-BPR7NM6-.js.map +1 -0
- package/dist/assets/align-floating-elements-f5502865-CAr9dRJh.js +4 -0
- package/dist/assets/align-floating-elements-f5502865-CAr9dRJh.js.map +1 -0
- package/dist/assets/associated.controller-2ad4f930-YNkB_bYO.js +4 -0
- package/dist/assets/associated.controller-2ad4f930-YNkB_bYO.js.map +1 -0
- package/dist/assets/badge-text-4cf87dc1-BGgGcN_M.js +4 -0
- package/dist/assets/badge-text-4cf87dc1-BGgGcN_M.js.map +1 -0
- package/dist/assets/button-variant-fa29de43-C1Fh6dCG.js +4 -0
- package/dist/assets/button-variant-fa29de43-C1Fh6dCG.js.map +1 -0
- package/dist/assets/clsx-09a06a12-BT_IL7Fz.js +4 -0
- package/dist/assets/clsx-09a06a12-BT_IL7Fz.js.map +1 -0
- package/dist/assets/color-9352cce1-BKBlEBTi.js +4 -0
- package/dist/assets/color-9352cce1-BKBlEBTi.js.map +1 -0
- package/dist/assets/controller-5c44e017-BBGztty6.js +4 -0
- package/dist/assets/controller-5c44e017-BBGztty6.js.map +1 -0
- package/dist/assets/controller-cbb66178-BPEJVmqC.js +4 -0
- package/dist/assets/controller-cbb66178-BPEJVmqC.js.map +1 -0
- package/dist/assets/controller-d5636bab-BywBs6DK.js +4 -0
- package/dist/assets/controller-d5636bab-BywBs6DK.js.map +1 -0
- package/dist/assets/controller-d9005336-AEpbs-Uq.js +4 -0
- package/dist/assets/controller-d9005336-AEpbs-Uq.js.map +1 -0
- package/dist/assets/controller-e284d179-FPEkGcg2.js +4 -0
- package/dist/assets/controller-e284d179-FPEkGcg2.js.map +1 -0
- package/dist/assets/controller-icon-22e2a4c6-DOqkvSAP.js +4 -0
- package/dist/assets/controller-icon-22e2a4c6-DOqkvSAP.js.map +1 -0
- package/dist/assets/custom-class-349f0572-DUzXd_yW.js +4 -0
- package/dist/assets/custom-class-349f0572-DUzXd_yW.js.map +1 -0
- package/dist/assets/dev.utils-ca6328e7-CHU4njpz.js +16 -0
- package/dist/assets/dev.utils-ca6328e7-CHU4njpz.js.map +1 -0
- package/dist/assets/devtools-3033ee89-BcggoE27.js +16 -0
- package/dist/assets/devtools-3033ee89-BcggoE27.js.map +1 -0
- package/dist/assets/disabled-ad5b6199-C_wEAx8e.js +4 -0
- package/dist/assets/disabled-ad5b6199-C_wEAx8e.js.map +1 -0
- package/dist/assets/events-29e84d75-BhxFwhXP.js +4 -0
- package/dist/assets/events-29e84d75-BhxFwhXP.js.map +1 -0
- package/dist/assets/has-closer-229bd67f-D0hZ2C6q.js +4 -0
- package/dist/assets/has-closer-229bd67f-D0hZ2C6q.js.map +1 -0
- package/dist/assets/has-counter-451a5ec0-D32j5JiB.js +4 -0
- package/dist/assets/has-counter-451a5ec0-D32j5JiB.js.map +1 -0
- package/dist/assets/hide-label-e3ae2cf6-Cn_YU1L2.js +4 -0
- package/dist/assets/hide-label-e3ae2cf6-Cn_YU1L2.js.map +1 -0
- package/dist/assets/href-1819d882-_e2v8LSF.js +4 -0
- package/dist/assets/href-1819d882-_e2v8LSF.js.map +1 -0
- package/dist/assets/i18n-0835cc3b-DKpqqbhz.js +4 -0
- package/dist/assets/i18n-0835cc3b-DKpqqbhz.js.map +1 -0
- package/dist/assets/icons-e36b4959-D4AYWGyH.js +4 -0
- package/dist/assets/icons-e36b4959-D4AYWGyH.js.map +1 -0
- package/dist/assets/image-source-aecd6893-tw-_yN4H.js +4 -0
- package/dist/assets/image-source-aecd6893-tw-_yN4H.js.map +1 -0
- package/dist/assets/index-Bvb9XsoR.js +23020 -0
- package/dist/assets/index-Bvb9XsoR.js.map +1 -0
- package/dist/assets/index-D6lIshvf.css +1 -0
- package/dist/assets/keyboard-77e19a81-D1ah5412.js +4 -0
- package/dist/assets/keyboard-77e19a81-D1ah5412.js.map +1 -0
- package/dist/assets/kol-abbr.entry-BiD-Ff_2.js +222 -0
- package/dist/assets/kol-abbr.entry-BiD-Ff_2.js.map +1 -0
- package/dist/assets/kol-accordion.entry-BF_QPz0A.js +224 -0
- package/dist/assets/kol-accordion.entry-BF_QPz0A.js.map +1 -0
- package/dist/assets/kol-alert-wc.entry-BKjsKtET.js +4 -0
- package/dist/assets/kol-alert-wc.entry-BKjsKtET.js.map +1 -0
- package/dist/assets/kol-alert.entry-Cxqq2tPd.js +239 -0
- package/dist/assets/kol-alert.entry-Cxqq2tPd.js.map +1 -0
- package/dist/assets/kol-avatar-wc.entry-DjoY6k29.js +4 -0
- package/dist/assets/kol-avatar-wc.entry-DjoY6k29.js.map +1 -0
- package/dist/assets/kol-avatar.entry-BHdq15KU.js +202 -0
- package/dist/assets/kol-avatar.entry-BHdq15KU.js.map +1 -0
- package/dist/assets/kol-badge.entry-DzxCHfk-.js +228 -0
- package/dist/assets/kol-badge.entry-DzxCHfk-.js.map +1 -0
- package/dist/assets/kol-breadcrumb.entry-DtsRJdV3.js +192 -0
- package/dist/assets/kol-breadcrumb.entry-DtsRJdV3.js.map +1 -0
- package/dist/assets/kol-button-group-wc.entry-CnRjB19C.js +4 -0
- package/dist/assets/kol-button-group-wc.entry-CnRjB19C.js.map +1 -0
- package/dist/assets/kol-button-group.entry-BLdpOeGO.js +178 -0
- package/dist/assets/kol-button-group.entry-BLdpOeGO.js.map +1 -0
- package/dist/assets/kol-button-link.entry-rI4OhCUY.js +253 -0
- package/dist/assets/kol-button-link.entry-rI4OhCUY.js.map +1 -0
- package/dist/assets/kol-button-wc.entry-Biu9C5nD.js +4 -0
- package/dist/assets/kol-button-wc.entry-Biu9C5nD.js.map +1 -0
- package/dist/assets/kol-button.entry-ghJbzwzP.js +238 -0
- package/dist/assets/kol-button.entry-ghJbzwzP.js.map +1 -0
- package/dist/assets/kol-card.entry-D6cnBsM8.js +230 -0
- package/dist/assets/kol-card.entry-D6cnBsM8.js.map +1 -0
- package/dist/assets/kol-combobox.entry-BGdi1kH3.js +367 -0
- package/dist/assets/kol-combobox.entry-BGdi1kH3.js.map +1 -0
- package/dist/assets/kol-details.entry-HUPcrjHG.js +235 -0
- package/dist/assets/kol-details.entry-HUPcrjHG.js.map +1 -0
- package/dist/assets/kol-drawer.entry-BcBVb1JS.js +224 -0
- package/dist/assets/kol-drawer.entry-BcBVb1JS.js.map +1 -0
- package/dist/assets/kol-form.entry-jYCokTEH.js +275 -0
- package/dist/assets/kol-form.entry-jYCokTEH.js.map +1 -0
- package/dist/assets/kol-heading-wc.entry-CZdQoW0t.js +4 -0
- package/dist/assets/kol-heading-wc.entry-CZdQoW0t.js.map +1 -0
- package/dist/assets/kol-heading.entry-CLsOfD4P.js +172 -0
- package/dist/assets/kol-heading.entry-CLsOfD4P.js.map +1 -0
- package/dist/assets/kol-icon.entry-DFoRHTFZ.js +2375 -0
- package/dist/assets/kol-icon.entry-DFoRHTFZ.js.map +1 -0
- package/dist/assets/kol-image.entry--Wa32B2T.js +181 -0
- package/dist/assets/kol-image.entry--Wa32B2T.js.map +1 -0
- package/dist/assets/kol-indented-text-wc.entry-DDduTSf5.js +4 -0
- package/dist/assets/kol-indented-text-wc.entry-DDduTSf5.js.map +1 -0
- package/dist/assets/kol-indented-text.entry-CjUyjY4u.js +183 -0
- package/dist/assets/kol-indented-text.entry-CjUyjY4u.js.map +1 -0
- package/dist/assets/kol-input-checkbox.entry-QPntqK2d.js +464 -0
- package/dist/assets/kol-input-checkbox.entry-QPntqK2d.js.map +1 -0
- package/dist/assets/kol-input-color.entry-TmqeWBNf.js +323 -0
- package/dist/assets/kol-input-color.entry-TmqeWBNf.js.map +1 -0
- package/dist/assets/kol-input-date.entry-C87d8ETg.js +323 -0
- package/dist/assets/kol-input-date.entry-C87d8ETg.js.map +1 -0
- package/dist/assets/kol-input-email.entry-GfvOL0-Y.js +323 -0
- package/dist/assets/kol-input-email.entry-GfvOL0-Y.js.map +1 -0
- package/dist/assets/kol-input-file.entry-CsZGFEEt.js +336 -0
- package/dist/assets/kol-input-file.entry-CsZGFEEt.js.map +1 -0
- package/dist/assets/kol-input-number.entry-DF-vpiqS.js +323 -0
- package/dist/assets/kol-input-number.entry-DF-vpiqS.js.map +1 -0
- package/dist/assets/kol-input-password.entry-D4J-V8C_.js +333 -0
- package/dist/assets/kol-input-password.entry-D4J-V8C_.js.map +1 -0
- package/dist/assets/kol-input-radio.entry-B_8nJ0WP.js +348 -0
- package/dist/assets/kol-input-radio.entry-B_8nJ0WP.js.map +1 -0
- package/dist/assets/kol-input-range.entry-D6QCZ77w.js +374 -0
- package/dist/assets/kol-input-range.entry-D6QCZ77w.js.map +1 -0
- package/dist/assets/kol-input-text.entry-C44Qfapr.js +323 -0
- package/dist/assets/kol-input-text.entry-C44Qfapr.js.map +1 -0
- package/dist/assets/kol-input.entry-utrZPG-l.js +4 -0
- package/dist/assets/kol-input.entry-utrZPG-l.js.map +1 -0
- package/dist/assets/kol-kolibri.entry-Vk3aSeuU.js +185 -0
- package/dist/assets/kol-kolibri.entry-Vk3aSeuU.js.map +1 -0
- package/dist/assets/kol-link-button.entry-CO7ivunM.js +238 -0
- package/dist/assets/kol-link-button.entry-CO7ivunM.js.map +1 -0
- package/dist/assets/kol-link-group.entry-ChHsWaBe.js +201 -0
- package/dist/assets/kol-link-group.entry-ChHsWaBe.js.map +1 -0
- package/dist/assets/kol-link-wc.entry-Dl_nyQRQ.js +4 -0
- package/dist/assets/kol-link-wc.entry-Dl_nyQRQ.js.map +1 -0
- package/dist/assets/kol-link.entry-CWXXA2Ud.js +253 -0
- package/dist/assets/kol-link.entry-CWXXA2Ud.js.map +1 -0
- package/dist/assets/kol-logo.entry-GjW6ZD77.js +238 -0
- package/dist/assets/kol-logo.entry-GjW6ZD77.js.map +1 -0
- package/dist/assets/kol-modal.entry-Ct_22Dlt.js +181 -0
- package/dist/assets/kol-modal.entry-Ct_22Dlt.js.map +1 -0
- package/dist/assets/kol-nav.entry-IcpibHev.js +249 -0
- package/dist/assets/kol-nav.entry-IcpibHev.js.map +1 -0
- package/dist/assets/kol-pagination.entry-7_5B3Gvs.js +238 -0
- package/dist/assets/kol-pagination.entry-7_5B3Gvs.js.map +1 -0
- package/dist/assets/kol-popover-button.entry-BakTw53k.js +248 -0
- package/dist/assets/kol-popover-button.entry-BakTw53k.js.map +1 -0
- package/dist/assets/kol-popover-wc.entry-Cfu3e-qY.js +4 -0
- package/dist/assets/kol-popover-wc.entry-Cfu3e-qY.js.map +1 -0
- package/dist/assets/kol-progress.entry-BbS5ru0f.js +254 -0
- package/dist/assets/kol-progress.entry-BbS5ru0f.js.map +1 -0
- package/dist/assets/kol-quote.entry-DoPY1sLr.js +197 -0
- package/dist/assets/kol-quote.entry-DoPY1sLr.js.map +1 -0
- package/dist/assets/kol-select.entry-CGMtM5T2.js +329 -0
- package/dist/assets/kol-select.entry-CGMtM5T2.js.map +1 -0
- package/dist/assets/kol-single-select.entry-CMTD4-Jq.js +367 -0
- package/dist/assets/kol-single-select.entry-CMTD4-Jq.js.map +1 -0
- package/dist/assets/kol-skip-nav.entry-B6v4FgCO.js +194 -0
- package/dist/assets/kol-skip-nav.entry-B6v4FgCO.js.map +1 -0
- package/dist/assets/kol-span-wc.entry-BPNTeypv.js +19 -0
- package/dist/assets/kol-span-wc.entry-BPNTeypv.js.map +1 -0
- package/dist/assets/kol-spin.entry-CieKcpIC.js +309 -0
- package/dist/assets/kol-spin.entry-CieKcpIC.js.map +1 -0
- package/dist/assets/kol-split-button.entry-DB3LbyAP.js +272 -0
- package/dist/assets/kol-split-button.entry-DB3LbyAP.js.map +1 -0
- package/dist/assets/kol-symbol.entry-mZCPt9H8.js +4 -0
- package/dist/assets/kol-symbol.entry-mZCPt9H8.js.map +1 -0
- package/dist/assets/kol-table-stateful.entry-9AmDqsJO.js +372 -0
- package/dist/assets/kol-table-stateful.entry-9AmDqsJO.js.map +1 -0
- package/dist/assets/kol-table-stateless-wc.entry-BeCReDi3.js +4 -0
- package/dist/assets/kol-table-stateless-wc.entry-BeCReDi3.js.map +1 -0
- package/dist/assets/kol-table-stateless.entry-DLoiCcKo.js +347 -0
- package/dist/assets/kol-table-stateless.entry-DLoiCcKo.js.map +1 -0
- package/dist/assets/kol-table.entry-DVVBQ-gH.js +4 -0
- package/dist/assets/kol-table.entry-DVVBQ-gH.js.map +1 -0
- package/dist/assets/kol-tabs.entry-BOEtl29T.js +305 -0
- package/dist/assets/kol-tabs.entry-BOEtl29T.js.map +1 -0
- package/dist/assets/kol-textarea.entry-D_yWg_HA.js +323 -0
- package/dist/assets/kol-textarea.entry-D_yWg_HA.js.map +1 -0
- package/dist/assets/kol-toast-container.entry-O7QO9qvL.js +250 -0
- package/dist/assets/kol-toast-container.entry-O7QO9qvL.js.map +1 -0
- package/dist/assets/kol-toolbar.entry-fwGjXOXX.js +250 -0
- package/dist/assets/kol-toolbar.entry-fwGjXOXX.js.map +1 -0
- package/dist/assets/kol-tooltip-wc.entry-BQ0yZemT.js +4 -0
- package/dist/assets/kol-tooltip-wc.entry-BQ0yZemT.js.map +1 -0
- package/dist/assets/kol-tree-item-wc.entry-Dw_LImrP.js +4 -0
- package/dist/assets/kol-tree-item-wc.entry-Dw_LImrP.js.map +1 -0
- package/dist/assets/kol-tree-item.entry-ZamQ-ZND.js +213 -0
- package/dist/assets/kol-tree-item.entry-ZamQ-ZND.js.map +1 -0
- package/dist/assets/kol-tree-wc.entry-BFFzGCTE.js +4 -0
- package/dist/assets/kol-tree-wc.entry-BFFzGCTE.js.map +1 -0
- package/dist/assets/kol-tree.entry-CvfY8ec_.js +183 -0
- package/dist/assets/kol-tree.entry-CvfY8ec_.js.map +1 -0
- package/dist/assets/kol-version.entry-LHG3URfj.js +172 -0
- package/dist/assets/kol-version.entry-LHG3URfj.js.map +1 -0
- package/dist/assets/label-c2f427ab-CqjOOKaa.js +4 -0
- package/dist/assets/label-c2f427ab-CqjOOKaa.js.map +1 -0
- package/dist/assets/open-8d886d18-g3t9NCQh.js +4 -0
- package/dist/assets/open-8d886d18-g3t9NCQh.js.map +1 -0
- package/dist/assets/rows-11065067-EwHVZIWc.js +4 -0
- package/dist/assets/rows-11065067-EwHVZIWc.js.map +1 -0
- package/dist/assets/show-37e6b447-BMdbDuN6.js +4 -0
- package/dist/assets/show-37e6b447-BMdbDuN6.js.map +1 -0
- package/dist/assets/spell-check-99498ed1-BgRiBK3B.js +4 -0
- package/dist/assets/spell-check-99498ed1-BgRiBK3B.js.map +1 -0
- package/dist/assets/suggestions-3d93a5ce-sG8bkPPU.js +4 -0
- package/dist/assets/suggestions-3d93a5ce-sG8bkPPU.js.map +1 -0
- package/dist/assets/table-selection-94fe9747-CuuwK6yB.js +4 -0
- package/dist/assets/table-selection-94fe9747-CuuwK6yB.js.map +1 -0
- package/dist/assets/test-component.entry-DGt78rvu.js +4 -0
- package/dist/assets/test-component.entry-DGt78rvu.js.map +1 -0
- package/dist/assets/tooltip-align-86e888fb-CTMgUNsU.js +4 -0
- package/dist/assets/tooltip-align-86e888fb-CTMgUNsU.js.map +1 -0
- package/dist/assets/tslib.es6-1173d062-BAJoBDh7.js +4 -0
- package/dist/assets/tslib.es6-1173d062-BAJoBDh7.js.map +1 -0
- package/dist/assets/unique-nav-labels-2ea6b853-C67PyND8.js +4 -0
- package/dist/assets/unique-nav-labels-2ea6b853-C67PyND8.js.map +1 -0
- package/dist/assets/validation-8a691044-DlsyEjHH.js +4 -0
- package/dist/assets/validation-8a691044-DlsyEjHH.js.map +1 -0
- package/dist/assets/validation-c5900dbf-DVj847E9.js +4 -0
- package/dist/assets/validation-c5900dbf-DVj847E9.js.map +1 -0
- package/dist/index.html +15 -13
- package/package.json +15 -24
- package/src/components/abbr/basic.tsx +12 -12
- package/src/react.main.tsx +1 -1
- package/src/shares/routes.ts +1 -1
- package/tsconfig.json +1 -1
- package/unocss.config.ts +248 -149
- package/vite.config.ts +32 -0
- package/.eslintignore +0 -2
- package/.eslintrc.js +0 -36
- package/.gitignore +0 -41
- package/.prettierignore +0 -4
- package/dist/1266.js +0 -2
- package/dist/1266.js.LICENSE.txt +0 -3
- package/dist/1601.js +0 -2
- package/dist/1601.js.LICENSE.txt +0 -3
- package/dist/1786.js +0 -2
- package/dist/1786.js.LICENSE.txt +0 -3
- package/dist/1797.js +0 -2
- package/dist/1797.js.LICENSE.txt +0 -3
- package/dist/1832.js +0 -2
- package/dist/1832.js.LICENSE.txt +0 -3
- package/dist/2441.js +0 -2
- package/dist/2441.js.LICENSE.txt +0 -3
- package/dist/2462.js +0 -2
- package/dist/2462.js.LICENSE.txt +0 -3
- package/dist/2605.js +0 -2
- package/dist/2605.js.LICENSE.txt +0 -3
- package/dist/2728.js +0 -2
- package/dist/2728.js.LICENSE.txt +0 -3
- package/dist/2960.js +0 -2
- package/dist/2960.js.LICENSE.txt +0 -3
- package/dist/343.js +0 -2
- package/dist/343.js.LICENSE.txt +0 -3
- package/dist/3440.js +0 -2
- package/dist/3440.js.LICENSE.txt +0 -3
- package/dist/3460.js +0 -2
- package/dist/3460.js.LICENSE.txt +0 -3
- package/dist/3492.js +0 -2
- package/dist/3492.js.LICENSE.txt +0 -3
- package/dist/3503.js +0 -2
- package/dist/3503.js.LICENSE.txt +0 -3
- package/dist/3845.js +0 -2
- package/dist/3845.js.LICENSE.txt +0 -3
- package/dist/3882.js +0 -2
- package/dist/3882.js.LICENSE.txt +0 -3
- package/dist/3965.js +0 -2
- package/dist/3965.js.LICENSE.txt +0 -3
- package/dist/4181.js +0 -2
- package/dist/4181.js.LICENSE.txt +0 -3
- package/dist/4294.js +0 -2
- package/dist/4294.js.LICENSE.txt +0 -3
- package/dist/4604.js +0 -2
- package/dist/4604.js.LICENSE.txt +0 -3
- package/dist/4714.js +0 -2
- package/dist/4714.js.LICENSE.txt +0 -3
- package/dist/4737.js +0 -2
- package/dist/4737.js.LICENSE.txt +0 -3
- package/dist/4972.js +0 -2
- package/dist/4972.js.LICENSE.txt +0 -3
- package/dist/5076.js +0 -2
- package/dist/5076.js.LICENSE.txt +0 -3
- package/dist/5204.js +0 -2
- package/dist/5204.js.LICENSE.txt +0 -3
- package/dist/5399.js +0 -2
- package/dist/5399.js.LICENSE.txt +0 -3
- package/dist/5431.js +0 -2
- package/dist/5431.js.LICENSE.txt +0 -3
- package/dist/5514.js +0 -2
- package/dist/5514.js.LICENSE.txt +0 -3
- package/dist/5522.js +0 -2
- package/dist/5522.js.LICENSE.txt +0 -3
- package/dist/5677.js +0 -2
- package/dist/5677.js.LICENSE.txt +0 -3
- package/dist/5781.js +0 -2
- package/dist/5781.js.LICENSE.txt +0 -3
- package/dist/5813.js +0 -2
- package/dist/5813.js.LICENSE.txt +0 -3
- package/dist/5829.js +0 -2
- package/dist/5829.js.LICENSE.txt +0 -3
- package/dist/6199.js +0 -2
- package/dist/6199.js.LICENSE.txt +0 -3
- package/dist/6320.js +0 -2
- package/dist/6320.js.LICENSE.txt +0 -3
- package/dist/6473.js +0 -2
- package/dist/6473.js.LICENSE.txt +0 -3
- package/dist/6567.js +0 -2
- package/dist/6567.js.LICENSE.txt +0 -3
- package/dist/6649.js +0 -2
- package/dist/6649.js.LICENSE.txt +0 -3
- package/dist/6705.js +0 -2
- package/dist/6705.js.LICENSE.txt +0 -3
- package/dist/6717.js +0 -2
- package/dist/6717.js.LICENSE.txt +0 -3
- package/dist/6731.js +0 -2
- package/dist/6731.js.LICENSE.txt +0 -3
- package/dist/6974.js +0 -2
- package/dist/6974.js.LICENSE.txt +0 -3
- package/dist/7157.js +0 -2
- package/dist/7157.js.LICENSE.txt +0 -3
- package/dist/7162.js +0 -2
- package/dist/7162.js.LICENSE.txt +0 -3
- package/dist/7163.js +0 -2
- package/dist/7163.js.LICENSE.txt +0 -3
- package/dist/7183.js +0 -2
- package/dist/7183.js.LICENSE.txt +0 -3
- package/dist/7192.js +0 -2
- package/dist/7192.js.LICENSE.txt +0 -3
- package/dist/7310.js +0 -2
- package/dist/7310.js.LICENSE.txt +0 -3
- package/dist/7391.js +0 -2
- package/dist/7391.js.LICENSE.txt +0 -3
- package/dist/7461.js +0 -2
- package/dist/7461.js.LICENSE.txt +0 -3
- package/dist/7560.js +0 -2
- package/dist/7560.js.LICENSE.txt +0 -3
- package/dist/7582.js +0 -2
- package/dist/7582.js.LICENSE.txt +0 -3
- package/dist/7609.js +0 -2
- package/dist/7609.js.LICENSE.txt +0 -3
- package/dist/8100.js +0 -2
- package/dist/8100.js.LICENSE.txt +0 -3
- package/dist/8116.js +0 -2
- package/dist/8116.js.LICENSE.txt +0 -3
- package/dist/8126.js +0 -2
- package/dist/8126.js.LICENSE.txt +0 -3
- package/dist/8191.js +0 -2
- package/dist/8191.js.LICENSE.txt +0 -3
- package/dist/8210.js +0 -2
- package/dist/8210.js.LICENSE.txt +0 -3
- package/dist/8286.js +0 -2
- package/dist/8286.js.LICENSE.txt +0 -3
- package/dist/8471.js +0 -2
- package/dist/8471.js.LICENSE.txt +0 -3
- package/dist/85.js +0 -2
- package/dist/85.js.LICENSE.txt +0 -3
- package/dist/8799.js +0 -2
- package/dist/8799.js.LICENSE.txt +0 -3
- package/dist/8902.js +0 -2
- package/dist/8902.js.LICENSE.txt +0 -3
- package/dist/8956.js +0 -2
- package/dist/8956.js.LICENSE.txt +0 -3
- package/dist/92.js +0 -2
- package/dist/92.js.LICENSE.txt +0 -3
- package/dist/9558.js +0 -2
- package/dist/9558.js.LICENSE.txt +0 -3
- package/dist/9768.js +0 -2
- package/dist/9768.js.LICENSE.txt +0 -3
- package/dist/9818.js +0 -2
- package/dist/9818.js.LICENSE.txt +0 -3
- package/dist/9849.js +0 -2
- package/dist/9849.js.LICENSE.txt +0 -3
- package/dist/9857.js +0 -2
- package/dist/9857.js.LICENSE.txt +0 -3
- package/dist/989.js +0 -2
- package/dist/989.js.LICENSE.txt +0 -3
- package/dist/9980.js +0 -2
- package/dist/9980.js.LICENSE.txt +0 -3
- package/dist/main.css +0 -4
- package/dist/main.js +0 -2
- package/dist/main.js.LICENSE.txt +0 -42
- package/prettier.config.js +0 -5
- package/public/index.html +0 -28
- package/webpack.config.js +0 -32
package/unocss.config.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { defineConfig } from '@unocss/
|
|
2
|
-
import {
|
|
1
|
+
import { defineConfig } from '@unocss/vite';
|
|
2
|
+
import { presetMini } from '@unocss/preset-mini';
|
|
3
3
|
|
|
4
4
|
function pxValueToRem(size: number): string {
|
|
5
5
|
return `calc(${size}rem / var(--kolibri-root-font-size, 16))`;
|
|
@@ -10,152 +10,251 @@ function convertRem(value: number): string {
|
|
|
10
10
|
}
|
|
11
11
|
|
|
12
12
|
function convertDynamicClassValueToRem(value: string) {
|
|
13
|
-
return pxValueToRem(Number.parseFloat(value) * 16 / 4);
|
|
13
|
+
return pxValueToRem((Number.parseFloat(value) * 16) / 4);
|
|
14
14
|
}
|
|
15
15
|
|
|
16
16
|
export default defineConfig({
|
|
17
17
|
rules: [
|
|
18
|
-
[
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
[
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
[
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
[
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
[
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
18
|
+
[
|
|
19
|
+
/^p-(\d+)$/,
|
|
20
|
+
([, d]) => ({
|
|
21
|
+
padding: convertDynamicClassValueToRem(d),
|
|
22
|
+
}),
|
|
23
|
+
],
|
|
24
|
+
|
|
25
|
+
[
|
|
26
|
+
/^px-(\d+)$/,
|
|
27
|
+
([, d]) => ({
|
|
28
|
+
'padding-left': convertDynamicClassValueToRem(d),
|
|
29
|
+
'padding-right': convertDynamicClassValueToRem(d),
|
|
30
|
+
}),
|
|
31
|
+
],
|
|
32
|
+
[
|
|
33
|
+
/^py-(\d+)$/,
|
|
34
|
+
([, d]) => ({
|
|
35
|
+
'padding-top': convertDynamicClassValueToRem(d),
|
|
36
|
+
'padding-bottom': convertDynamicClassValueToRem(d),
|
|
37
|
+
}),
|
|
38
|
+
],
|
|
39
|
+
|
|
40
|
+
[
|
|
41
|
+
/^ps-(\d+)$/,
|
|
42
|
+
([, d]) => ({
|
|
43
|
+
'padding-inline-start': convertDynamicClassValueToRem(d),
|
|
44
|
+
}),
|
|
45
|
+
],
|
|
46
|
+
[
|
|
47
|
+
/^pe-(\d+)$/,
|
|
48
|
+
([, d]) => ({
|
|
49
|
+
'padding-inline-end': convertDynamicClassValueToRem(d),
|
|
50
|
+
}),
|
|
51
|
+
],
|
|
52
|
+
|
|
53
|
+
[
|
|
54
|
+
/^pt-(\d+)$/,
|
|
55
|
+
([, d]) => ({
|
|
56
|
+
'padding-top': convertDynamicClassValueToRem(d),
|
|
57
|
+
}),
|
|
58
|
+
],
|
|
59
|
+
[
|
|
60
|
+
/^pl-(\d+)$/,
|
|
61
|
+
([, d]) => ({
|
|
62
|
+
'padding-left': convertDynamicClassValueToRem(d),
|
|
63
|
+
}),
|
|
64
|
+
],
|
|
65
|
+
[
|
|
66
|
+
/^pr-(\d+)$/,
|
|
67
|
+
([, d]) => ({
|
|
68
|
+
'padding-right': convertDynamicClassValueToRem(d),
|
|
69
|
+
}),
|
|
70
|
+
],
|
|
71
|
+
[
|
|
72
|
+
/^pb-(\d+)$/,
|
|
73
|
+
([, d]) => ({
|
|
74
|
+
'padding-bottom': convertDynamicClassValueToRem(d),
|
|
75
|
+
}),
|
|
76
|
+
],
|
|
77
|
+
|
|
78
|
+
[
|
|
79
|
+
/^p-t-(\d+)$/,
|
|
80
|
+
([, d]) => ({
|
|
81
|
+
'padding-top': convertDynamicClassValueToRem(d),
|
|
82
|
+
}),
|
|
83
|
+
],
|
|
84
|
+
[
|
|
85
|
+
/^p-l-(\d+)$/,
|
|
86
|
+
([, d]) => ({
|
|
87
|
+
'padding-left': convertDynamicClassValueToRem(d),
|
|
88
|
+
}),
|
|
89
|
+
],
|
|
90
|
+
[
|
|
91
|
+
/^p-r-(\d+)$/,
|
|
92
|
+
([, d]) => ({
|
|
93
|
+
'padding-right': convertDynamicClassValueToRem(d),
|
|
94
|
+
}),
|
|
95
|
+
],
|
|
96
|
+
[
|
|
97
|
+
/^p-b-(\d+)$/,
|
|
98
|
+
([, d]) => ({
|
|
99
|
+
'padding-bottom': convertDynamicClassValueToRem(d),
|
|
100
|
+
}),
|
|
101
|
+
],
|
|
102
|
+
|
|
103
|
+
[
|
|
104
|
+
/^m-(\d+)$/,
|
|
105
|
+
([, d]) => ({
|
|
106
|
+
margin: convertDynamicClassValueToRem(d),
|
|
107
|
+
}),
|
|
108
|
+
],
|
|
109
|
+
|
|
110
|
+
[
|
|
111
|
+
/^mx-(\d+)$/,
|
|
112
|
+
([, d]) => ({
|
|
113
|
+
'margin-left': convertDynamicClassValueToRem(d),
|
|
114
|
+
'margin-right': convertDynamicClassValueToRem(d),
|
|
115
|
+
}),
|
|
116
|
+
],
|
|
117
|
+
[
|
|
118
|
+
/^my-(\d+)$/,
|
|
119
|
+
([, d]) => ({
|
|
120
|
+
'margin-top': convertDynamicClassValueToRem(d),
|
|
121
|
+
'margin-bottom': convertDynamicClassValueToRem(d),
|
|
122
|
+
}),
|
|
123
|
+
],
|
|
124
|
+
|
|
125
|
+
[
|
|
126
|
+
/^ms-(\d+)$/,
|
|
127
|
+
([, d]) => ({
|
|
128
|
+
'margin-inline-start': convertDynamicClassValueToRem(d),
|
|
129
|
+
}),
|
|
130
|
+
],
|
|
131
|
+
[
|
|
132
|
+
/^me-(\d+)$/,
|
|
133
|
+
([, d]) => ({
|
|
134
|
+
'margin-inline-end': convertDynamicClassValueToRem(d),
|
|
135
|
+
}),
|
|
136
|
+
],
|
|
137
|
+
|
|
138
|
+
[
|
|
139
|
+
/^mt$/,
|
|
140
|
+
() => ({
|
|
141
|
+
'margin-top': pxValueToRem(16),
|
|
142
|
+
}),
|
|
143
|
+
],
|
|
144
|
+
[
|
|
145
|
+
/^ml$/,
|
|
146
|
+
() => ({
|
|
147
|
+
'margin-left': pxValueToRem(16),
|
|
148
|
+
}),
|
|
149
|
+
],
|
|
150
|
+
[
|
|
151
|
+
/^mr$/,
|
|
152
|
+
() => ({
|
|
153
|
+
'margin-right': pxValueToRem(16),
|
|
154
|
+
}),
|
|
155
|
+
],
|
|
156
|
+
[
|
|
157
|
+
/^mb$/,
|
|
158
|
+
() => ({
|
|
159
|
+
'margin-bottom': pxValueToRem(16),
|
|
160
|
+
}),
|
|
161
|
+
],
|
|
162
|
+
|
|
163
|
+
[
|
|
164
|
+
/^mt-(\d+)$/,
|
|
165
|
+
([, d]) => ({
|
|
166
|
+
'margin-top': convertDynamicClassValueToRem(d),
|
|
167
|
+
}),
|
|
168
|
+
],
|
|
169
|
+
[
|
|
170
|
+
/^ml-(\d+)$/,
|
|
171
|
+
([, d]) => ({
|
|
172
|
+
'margin-left': convertDynamicClassValueToRem(d),
|
|
173
|
+
}),
|
|
174
|
+
],
|
|
175
|
+
[
|
|
176
|
+
/^mr-(\d+)$/,
|
|
177
|
+
([, d]) => ({
|
|
178
|
+
'margin-right': convertDynamicClassValueToRem(d),
|
|
179
|
+
}),
|
|
180
|
+
],
|
|
181
|
+
[
|
|
182
|
+
/^mb-(\d+)$/,
|
|
183
|
+
([, d]) => ({
|
|
184
|
+
'margin-bottom': convertDynamicClassValueToRem(d),
|
|
185
|
+
}),
|
|
186
|
+
],
|
|
187
|
+
|
|
188
|
+
[
|
|
189
|
+
/^m-t-(\d+)$/,
|
|
190
|
+
([, d]) => ({
|
|
191
|
+
'margin-top': convertDynamicClassValueToRem(d),
|
|
192
|
+
}),
|
|
193
|
+
],
|
|
194
|
+
[
|
|
195
|
+
/^m-l-(\d+)$/,
|
|
196
|
+
([, d]) => ({
|
|
197
|
+
'margin-left': convertDynamicClassValueToRem(d),
|
|
198
|
+
}),
|
|
199
|
+
],
|
|
200
|
+
[
|
|
201
|
+
/^m-r-(\d+)$/,
|
|
202
|
+
([, d]) => ({
|
|
203
|
+
'margin-right': convertDynamicClassValueToRem(d),
|
|
204
|
+
}),
|
|
205
|
+
],
|
|
206
|
+
[
|
|
207
|
+
/^m-b-(\d+)$/,
|
|
208
|
+
([, d]) => ({
|
|
209
|
+
'margin-bottom': convertDynamicClassValueToRem(d),
|
|
210
|
+
}),
|
|
211
|
+
],
|
|
212
|
+
|
|
213
|
+
[
|
|
214
|
+
/^mb-sm$/,
|
|
215
|
+
() => ({
|
|
216
|
+
'margin-bottom': pxValueToRem(14),
|
|
217
|
+
}),
|
|
218
|
+
],
|
|
126
219
|
|
|
127
220
|
[/^gap-(\d+)$/, ([, d]) => ({ gap: convertDynamicClassValueToRem(d) })],
|
|
128
221
|
[/^gap-x-(\d+)$/, ([, d]) => ({ 'column-gap': convertDynamicClassValueToRem(d) })],
|
|
129
222
|
[/^gap-y-(\d+)$/, ([, d]) => ({ 'row-gap': convertDynamicClassValueToRem(d) })],
|
|
130
223
|
|
|
131
|
-
[
|
|
132
|
-
|
|
133
|
-
|
|
224
|
+
[
|
|
225
|
+
/^w-(\d+)rem$/,
|
|
226
|
+
([, d]) => ({
|
|
227
|
+
width: pxValueToRem(Number.parseInt(d) * 16),
|
|
228
|
+
}),
|
|
229
|
+
],
|
|
134
230
|
|
|
135
|
-
[
|
|
136
|
-
|
|
137
|
-
|
|
231
|
+
[
|
|
232
|
+
/^w-sm$/,
|
|
233
|
+
() => ({
|
|
234
|
+
width: pxValueToRem(24 * 16), // 24rem
|
|
235
|
+
}),
|
|
236
|
+
],
|
|
138
237
|
],
|
|
139
238
|
extendTheme: (theme: any) => {
|
|
140
239
|
return {
|
|
141
240
|
...theme,
|
|
142
241
|
fontSize: {
|
|
143
|
-
xs: [
|
|
144
|
-
sm: [
|
|
145
|
-
base: [
|
|
146
|
-
lg: [
|
|
147
|
-
xl: [
|
|
148
|
-
'2xl': [
|
|
149
|
-
'3xl': [
|
|
150
|
-
'4xl': [
|
|
151
|
-
'5xl': [
|
|
152
|
-
'6xl': [
|
|
153
|
-
'7xl': [
|
|
154
|
-
'8xl': [
|
|
155
|
-
'9xl': [
|
|
156
|
-
'kol-test': ['625%', '1']
|
|
157
|
-
|
|
158
|
-
|
|
242
|
+
xs: [convertRem(0.75), '1'],
|
|
243
|
+
sm: [convertRem(0.875), '1.25'],
|
|
244
|
+
base: [convertRem(1), '1.5'],
|
|
245
|
+
lg: [convertRem(1.125), '1.75'],
|
|
246
|
+
xl: [convertRem(1.25), '1.75'],
|
|
247
|
+
'2xl': [convertRem(1.5), '2'],
|
|
248
|
+
'3xl': [convertRem(1.875), '2.25'],
|
|
249
|
+
'4xl': [convertRem(2.25), '2.5'],
|
|
250
|
+
'5xl': [convertRem(3), '1'],
|
|
251
|
+
'6xl': [convertRem(3.75), '1'],
|
|
252
|
+
'7xl': [convertRem(4.5), '1'],
|
|
253
|
+
'8xl': [convertRem(6), '1'],
|
|
254
|
+
'9xl': [convertRem(8), '1'],
|
|
255
|
+
'kol-test': ['625%', '1'],
|
|
256
|
+
},
|
|
257
|
+
borderRadius: {
|
|
159
258
|
DEFAULT: convertRem(0.25),
|
|
160
259
|
none: '0',
|
|
161
260
|
sm: convertRem(0.125),
|
|
@@ -164,9 +263,9 @@ export default defineConfig({
|
|
|
164
263
|
xl: convertRem(0.75),
|
|
165
264
|
'2xl': convertRem(1),
|
|
166
265
|
'3xl': convertRem(1.5),
|
|
167
|
-
full: '9999px'
|
|
168
|
-
|
|
169
|
-
|
|
266
|
+
full: '9999px',
|
|
267
|
+
},
|
|
268
|
+
containers: {
|
|
170
269
|
xs: `(min-width: ${convertRem(20)})`,
|
|
171
270
|
sm: `(min-width: ${convertRem(24)})`,
|
|
172
271
|
md: `(min-width: ${convertRem(28)})`,
|
|
@@ -178,9 +277,9 @@ export default defineConfig({
|
|
|
178
277
|
'5xl': `(min-width: ${convertRem(64)})`,
|
|
179
278
|
'6xl': `(min-width: ${convertRem(72)})`,
|
|
180
279
|
'7xl': `(min-width: ${convertRem(80)})`,
|
|
181
|
-
prose: '(min-width: 65ch)'
|
|
182
|
-
|
|
183
|
-
|
|
280
|
+
prose: '(min-width: 65ch)',
|
|
281
|
+
},
|
|
282
|
+
spacing: {
|
|
184
283
|
DEFAULT: convertRem(1),
|
|
185
284
|
none: '0',
|
|
186
285
|
xs: convertRem(0.75),
|
|
@@ -194,9 +293,9 @@ export default defineConfig({
|
|
|
194
293
|
'6xl': convertRem(3.75),
|
|
195
294
|
'7xl': convertRem(4.5),
|
|
196
295
|
'8xl': convertRem(6),
|
|
197
|
-
'9xl': convertRem(8)
|
|
198
|
-
|
|
199
|
-
|
|
296
|
+
'9xl': convertRem(8),
|
|
297
|
+
},
|
|
298
|
+
textIndent: {
|
|
200
299
|
DEFAULT: convertRem(1.5),
|
|
201
300
|
xs: convertRem(0.5),
|
|
202
301
|
sm: convertRem(1),
|
|
@@ -204,16 +303,16 @@ export default defineConfig({
|
|
|
204
303
|
lg: convertRem(2),
|
|
205
304
|
xl: convertRem(2.5),
|
|
206
305
|
'2xl': convertRem(3),
|
|
207
|
-
'3xl': convertRem(4)
|
|
208
|
-
|
|
209
|
-
|
|
306
|
+
'3xl': convertRem(4),
|
|
307
|
+
},
|
|
308
|
+
textStrokeWidth: {
|
|
210
309
|
DEFAULT: convertRem(1.5),
|
|
211
310
|
none: '0',
|
|
212
311
|
sm: 'thin',
|
|
213
312
|
md: 'medium',
|
|
214
|
-
lg: 'thick'
|
|
215
|
-
|
|
216
|
-
}
|
|
313
|
+
lg: 'thick',
|
|
314
|
+
},
|
|
315
|
+
};
|
|
217
316
|
},
|
|
218
|
-
presets: [
|
|
317
|
+
presets: [presetMini()],
|
|
219
318
|
});
|
package/vite.config.ts
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { defineConfig } from 'vite';
|
|
2
|
+
import { execSync } from 'node:child_process';
|
|
3
|
+
import react from '@vitejs/plugin-react-swc';
|
|
4
|
+
import UnoCSS from '@unocss/vite';
|
|
5
|
+
|
|
6
|
+
function getGitCommitHash(): string | null {
|
|
7
|
+
try {
|
|
8
|
+
return execSync('git rev-parse --short HEAD 2>/dev/null').toString().trim();
|
|
9
|
+
} catch {
|
|
10
|
+
return null;
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
export default defineConfig({
|
|
15
|
+
plugins: [react(), UnoCSS()],
|
|
16
|
+
define: {
|
|
17
|
+
'process.env.THEME_MODULE': JSON.stringify(process.env.THEME_MODULE || ''),
|
|
18
|
+
'process.env.THEME_EXPORT': JSON.stringify(process.env.THEME_EXPORT || ''),
|
|
19
|
+
'process.env.ENABLE_I18N_OVERWRITING': JSON.stringify(process.env.ENABLE_I18N_OVERWRITING || ''),
|
|
20
|
+
'process.env.ENABLE_TAG_NAME_TRANSFORMER': JSON.stringify(process.env.ENABLE_TAG_NAME_TRANSFORMER || ''),
|
|
21
|
+
'process.env.ENABLE_THEME_PATCHING': JSON.stringify(process.env.ENABLE_THEME_PATCHING || ''),
|
|
22
|
+
'process.env.BUILD_DATE': JSON.stringify(new Date().toISOString()),
|
|
23
|
+
'process.env.COMMIT_HASH': JSON.stringify(getGitCommitHash()),
|
|
24
|
+
},
|
|
25
|
+
build: {
|
|
26
|
+
sourcemap: true,
|
|
27
|
+
},
|
|
28
|
+
server: {
|
|
29
|
+
port: 9191,
|
|
30
|
+
strictPort: true,
|
|
31
|
+
},
|
|
32
|
+
});
|
package/.eslintignore
DELETED
package/.eslintrc.js
DELETED
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
const config = require('@leanup/stack/.eslintrc');
|
|
2
|
-
|
|
3
|
-
config.parserOptions = {
|
|
4
|
-
tsconfigRootDir: __dirname,
|
|
5
|
-
};
|
|
6
|
-
|
|
7
|
-
config.overrides = config.overrides || [];
|
|
8
|
-
config.overrides.push({
|
|
9
|
-
extends: ['plugin:react/recommended', 'plugin:jsx-a11y/recommended'],
|
|
10
|
-
files: ['**/*.tsx'],
|
|
11
|
-
parserOptions: {
|
|
12
|
-
ecmaFeatures: {
|
|
13
|
-
jsx: true,
|
|
14
|
-
},
|
|
15
|
-
},
|
|
16
|
-
rules: {
|
|
17
|
-
'@typescript-eslint/consistent-type-imports': 'error',
|
|
18
|
-
'@typescript-eslint/no-unsafe-member-access': 'error',
|
|
19
|
-
'react/no-unused-state': 'error',
|
|
20
|
-
},
|
|
21
|
-
});
|
|
22
|
-
|
|
23
|
-
config.plugins = config.plugins || [];
|
|
24
|
-
config.plugins.push('react');
|
|
25
|
-
config.plugins.push('jsx-a11y');
|
|
26
|
-
|
|
27
|
-
config.rules = config.rules || {};
|
|
28
|
-
config.rules.eqeqeq = 'error';
|
|
29
|
-
|
|
30
|
-
config.settings = {
|
|
31
|
-
react: {
|
|
32
|
-
version: 'detect',
|
|
33
|
-
},
|
|
34
|
-
};
|
|
35
|
-
|
|
36
|
-
module.exports = config;
|
package/.gitignore
DELETED
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
# Next
|
|
2
|
-
.next
|
|
3
|
-
|
|
4
|
-
# GraphQL
|
|
5
|
-
src/__generated__
|
|
6
|
-
|
|
7
|
-
# IDE's
|
|
8
|
-
.idea
|
|
9
|
-
.project
|
|
10
|
-
*.sublime-*
|
|
11
|
-
*.code-*
|
|
12
|
-
|
|
13
|
-
# Node.js
|
|
14
|
-
node_modules
|
|
15
|
-
npm-debug.log
|
|
16
|
-
|
|
17
|
-
# Cache
|
|
18
|
-
.sass-cache
|
|
19
|
-
.cache
|
|
20
|
-
|
|
21
|
-
# Operating system
|
|
22
|
-
.DS_Store
|
|
23
|
-
Thumbs.db
|
|
24
|
-
|
|
25
|
-
# Other
|
|
26
|
-
/.husky/
|
|
27
|
-
/.reports/
|
|
28
|
-
.env
|
|
29
|
-
.eslintcache
|
|
30
|
-
/dist/
|
|
31
|
-
/public/assets/
|
|
32
|
-
*~
|
|
33
|
-
*.log
|
|
34
|
-
*.tgz
|
|
35
|
-
*.zip
|
|
36
|
-
|
|
37
|
-
.kolibri.migrate.json
|
|
38
|
-
/test-results/
|
|
39
|
-
/playwright-report/
|
|
40
|
-
/blob-report/
|
|
41
|
-
/playwright/.cache/
|
package/.prettierignore
DELETED
package/dist/1266.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
/*! For license information please see 1266.js.LICENSE.txt */
|
|
2
|
-
"use strict";(self.webpackChunk_public_ui_sample_react=self.webpackChunk_public_ui_sample_react||[]).push([[1266],{297:(t,e,n)=>{n.d(e,{v:()=>l});var i=n(8465);const o=(t,e,n)=>{(0,i.B)(n)?t[e]=n:(0,i.y)(n,1)&&(t[e]={icon:n})},a=t=>"object"==typeof t&&null!==t&&(void 0===t.style||(0,i.G)(t.style))&&(void 0===t.label||(0,i.y)(t.label))&&(0,i.y)(t.icon,1),l=(t,e,n={})=>{(0,i.o)(e,(()=>{var l;try{e=(0,i.k)(e)}catch(t){}(0,i.w)(t,"_icons",(t=>{const e="object"==typeof t&&null!==t&&0===Object.keys(t).length;return null===t||e||(0,i.y)(t,1)||"object"==typeof t&&null!==t&&((0,i.y)(t.left,1)||a(t.left)||(0,i.y)(t.right,1)||a(t.right)||(0,i.y)(t.top,1)||a(t.top)||(0,i.y)(t.bottom,1)||a(t.bottom))}),new Set(["KoliBriIcon"]),e,Object.assign(Object.assign({},n),{defaultValue:{},hooks:{afterPatch:null===(l=n.hooks)||void 0===l?void 0:l.afterPatch,beforePatch:(t,e,a,l)=>{var s,r;"function"==typeof(null===(s=n.hooks)||void 0===s?void 0:s.beforePatch)&&(null===(r=n.hooks)||void 0===r||r.beforePatch(t,e,a,l)),(t=>{var e,n,a;if(null===(e=t.nextState)||void 0===e?void 0:e.has("_icons")){const e=null===(n=t.nextState)||void 0===n?void 0:n.get("_icons");null===(a=t.nextState)||void 0===a||a.set("_icons",(t=>{let e={};return(0,i.y)(t,1)?e={left:{icon:t}}:"object"==typeof t&&null!==t&&(o(e,"top",t.top),o(e,"right",t.right),o(e,"bottom",t.bottom),o(e,"left",t.left)),e})(e))}})(a)}}}))}))}},707:(t,e,n)=>{n.d(e,{v:()=>o});var i=n(8465);const o=(t,e)=>{(0,i.D)(t,"_rows",e,{min:1})}},1266:(t,e,n)=>{n.r(e),n.d(e,{kol_select:()=>m});var i=n(9807),o=n(8465),a=n(8133),l=n(9260),s=n(8445),r=n(5099),h=n(1916),d=n(2279),c=n(9523),p=n(5653),u=n(707),v=(n(1977),n(7445),n(2162),n(7335),n(3104),n(2480),n(297),(t,e,n)=>new Promise(((i,o)=>{var a=t=>{try{s(n.next(t))}catch(t){o(t)}},l=t=>{try{s(n.throw(t))}catch(t){o(t)}},s=t=>t.done?i(t.value):Promise.resolve(t.value).then(a,l);s((n=n.apply(t,e)).next())})));class b extends c.I{constructor(t,e,n){super(t,e,n),this.keyOptionMap=new Map,this.getOptionByKey=t=>this.keyOptionMap.get(t),this.isValueInOptions=(t,e)=>void 0!==e.find((e=>"string"==typeof e.value?e.value===t:!!Array.isArray(e.options)&&this.isValueInOptions(t,e.options))),this.filterValuesInOptions=(t,e)=>t.filter((t=>void 0!==this.isValueInOptions(t,e))),this.afterPatchOptions=(t,e,n,i)=>{"_value"===i&&this.setFormAssociatedValue(t)},this.beforePatchOptions=(t,e)=>{const n=e.has("_options")?e.get("_options"):this.component.state._options;if(Array.isArray(n)&&n.length>0){this.keyOptionMap.clear(),(0,p.f)(this.keyOptionMap,n);const t=e.has("_value")?e.get("_value"):this.component.state._value,i=this.filterValuesInOptions(Array.isArray(t)&&t.length>0?t:[],n);!1===this.component._multiple&&0===i.length?e.set("_value",[n[0].value]):Array.isArray(t)&&i.length<t.length&&e.set("_value",i)}},this.component=t}validateOptions(t){(0,p.v)(this.component,t,{hooks:{afterPatch:this.afterPatchOptions,beforePatch:this.beforePatchOptions}})}validateMultiple(t){(0,o.i)(this.component,"_multiple",t,{hooks:{afterPatch:this.afterPatchOptions,beforePatch:this.beforePatchOptions}})}validateRequired(t){(0,o.i)(this.component,"_required",t)}validateRows(t){(0,u.v)(this.component,t)}validateValue(t){(0,o.t)(this.component,"_value",(()=>!0),t,void 0,{hooks:{afterPatch:this.afterPatchOptions,beforePatch:this.beforePatchOptions}})}componentWillLoad(){super.componentWillLoad(),this.validateOptions(this.component._options),this.validateMultiple(this.component._multiple),this.validateRequired(this.component._required),this.validateRows(this.component._rows),this.validateValue(this.component._value)}}const f=(t,e)=>Array.isArray(t)&&t.includes(e),m=class{getValue(){return v(this,null,(function*(){return this.state._value}))}focus(){return v(this,null,(function*(){yield this.kolFocus()}))}kolFocus(){return v(this,null,(function*(){var t;null===(t=this.selectRef)||void 0===t||t.focus()}))}renderOptgroup(t,e){var n;return(0,i.h)("optgroup",{disabled:t.disabled,label:t.label},null===(n=t.options)||void 0===n?void 0:n.map(((t,n)=>{const o=`${e}-${n}`;return Array.isArray(t.options)?this.renderOptgroup(t,o):(0,i.h)("option",{disabled:t.disabled,key:o,selected:f(this.state._value,t.value),value:o},t.label)})))}render(){const{ariaDescribedBy:t}=(0,h.g)(this.state),e=(0,o.A)(this.state._label);return(0,i.h)(i.H,{key:"7bb492332be80be000956f1bf41b52899c728ca5",class:{"kol-select":!0,"has-value":this.state._hasValue}},(0,i.h)(a.l,{key:"b66fca1f0855a92d56986491975dee6922e8fb27",class:{"hide-label":!!this.state._hideLabel,select:!0},_accessKey:this.state._accessKey,_alert:this.showAsAlert(),_disabled:this.state._disabled,_hideError:this.state._hideError,_hideLabel:this.state._hideLabel,_hint:this.state._hint,_icons:this.state._icons,_id:this.state._id,_label:this.state._label,_msg:this.state._msg,_required:this.state._required,_shortKey:this.state._shortKey,_tooltipAlign:this._tooltipAlign,_touched:this.state._touched,onClick:()=>{var t;return null===(t=this.selectRef)||void 0===t?void 0:t.focus()},role:"presentation"},(0,i.h)("span",{key:"b30ed343e39c6cb52ba2b45c985a9c09cce0776e",slot:"label"},e?(0,i.h)("slot",{name:"expert"}):"string"==typeof this.state._accessKey||"string"==typeof this.state._shortKey?(0,i.h)(i.F,null,(0,i.h)(d.I,{badgeText:(0,o.z)(this.state._accessKey,this.state._shortKey),label:this.state._label})," ",(0,i.h)("span",{class:"badge-text-hint","aria-hidden":"true"},(0,o.z)(this.state._accessKey,this.state._shortKey))):(0,i.h)("span",null,this.state._label)),(0,i.h)("div",{key:"07cb61e5927c945ac0ef3285c8f7b8522e7d67b0",slot:"input"},(0,i.h)("form",{key:"5f808e9a56cc66ce7f6bbf44921851eaee225d47",onSubmit:t=>{t.preventDefault(),(0,r.p)({form:this.host,ref:this.selectRef})}},(0,i.h)("input",{key:"853cb5de54e7337fd13a844b4a541063164fa9bf",type:"submit",hidden:!0}),(0,i.h)("select",Object.assign({key:"e5ca87a564dc30134987f4f544b630ce6238a8d2",ref:this.catchRef,title:"",accessKey:this.state._accessKey,"aria-describedby":t.length>0?t.join(" "):void 0,"aria-label":this.state._hideLabel&&"string"==typeof this.state._label?this.state._label:void 0,autoCapitalize:"off",autoCorrect:"off",disabled:this.state._disabled,id:this.state._id,multiple:this.state._multiple,name:this.state._name,required:this.state._required,size:this.state._rows},this.controller.onFacade,{onInput:this.onInput.bind(this),onChange:this.onChange.bind(this),onFocus:t=>{this.controller.onFacade.onFocus(t),this.inputHasFocus=!0},onBlur:t=>{this.controller.onFacade.onBlur(t),this.inputHasFocus=!1}}),this.state._options.map(((t,e)=>{const n=`-${e}`;return Array.isArray(t.options)?this.renderOptgroup(t,n):(0,i.h)("option",{disabled:t.disabled,key:n,selected:f(this.state._value,t.value),value:n},t.label)})))))))}constructor(t){(0,i.r)(this,t),this.catchRef=t=>{this.selectRef=t},this._accessKey=void 0,this._alert=void 0,this._disabled=!1,this._error=void 0,this._hideError=!1,this._hideLabel=!1,this._hint="",this._icons=void 0,this._id=void 0,this._label=void 0,this._msg=void 0,this._multiple=!1,this._name=void 0,this._on=void 0,this._options=void 0,this._required=!1,this._shortKey=void 0,this._rows=void 0,this._syncValueBySelector=void 0,this._tabIndex=void 0,this._tooltipAlign="top",this._touched=!1,this._value=void 0,this.state={_hasValue:!1,_hideError:!1,_id:`id-${(0,l.n)()}`,_label:"",_multiple:!1,_options:[],_value:[]},this.inputHasFocus=!1,this.controller=new b(this,"select",this.host)}showAsAlert(){return void 0===this.state._alert?Boolean(this.state._touched)&&!this.inputHasFocus:this.state._alert}validateAccessKey(t){this.controller.validateAccessKey(t)}validateAlert(t){this.controller.validateAlert(t)}validateDisabled(t){this.controller.validateDisabled(t)}validateError(t){this.controller.validateError(t)}validateHideError(t){this.controller.validateHideError(t)}validateHideLabel(t){this.controller.validateHideLabel(t)}validateHint(t){this.controller.validateHint(t)}validateIcons(t){this.controller.validateIcons(t)}validateId(t){this.controller.validateId(t)}validateLabel(t){this.controller.validateLabel(t)}validateMsg(t){this.controller.validateMsg(t)}validateMultiple(t){this.controller.validateMultiple(t)}validateName(t){this.controller.validateName(t)}validateOn(t){this.controller.validateOn(t)}validateOptions(t){this.controller.validateOptions(t)}validateRequired(t){this.controller.validateRequired(t)}validateRows(t){this.controller.validateRows(t)}validateShortKey(t){this.controller.validateShortKey(t)}validateSyncValueBySelector(t){this.controller.validateSyncValueBySelector(t)}validateTabIndex(t){this.controller.validateTabIndex(t)}validateTouched(t){this.controller.validateTouched(t)}validateValue(t){this.controller.validateValue(t)}componentWillLoad(){this._touched=!0===this._touched,this.controller.componentWillLoad(),this.state._hasValue=!!this.state._value,this.controller.addValueChangeListener((t=>this.state._hasValue=!!t))}onInput(t){var e,n,i;this._value=Array.from((null===(e=this.selectRef)||void 0===e?void 0:e.options)||[]).filter((t=>!0===t.selected)).map((t=>{var e;return null===(e=this.controller.getOptionByKey(t.value))||void 0===e?void 0:e.value})),(0,s.t)("input",this.host,this._value),null===(i=null===(n=this.state._on)||void 0===n?void 0:n.onInput)||void 0===i||i.call(n,t,this._value)}onChange(t){var e,n;(0,s.s)(t),(0,s.t)("change",this.host,this._value),this.controller.setFormAssociatedValue(this._value),null===(n=null===(e=this.state._on)||void 0===e?void 0:e.onChange)||void 0===n||n.call(e,t,this._value)}get host(){return(0,i.g)(this)}static get watchers(){return{_accessKey:["validateAccessKey"],_alert:["validateAlert"],_disabled:["validateDisabled"],_error:["validateError"],_hideError:["validateHideError"],_hideLabel:["validateHideLabel"],_hint:["validateHint"],_icons:["validateIcons"],_id:["validateId"],_label:["validateLabel"],_msg:["validateMsg"],_multiple:["validateMultiple"],_name:["validateName"],_on:["validateOn"],_options:["validateOptions"],_required:["validateRequired"],_rows:["validateRows"],_shortKey:["validateShortKey"],_syncValueBySelector:["validateSyncValueBySelector"],_tabIndex:["validateTabIndex"],_touched:["validateTouched"],_value:["validateValue"]}}};m.style={default:"@charset \"UTF-8\";\n/*\n * This file contains all rules for accessibility.\n */\n@layer kol-global {\n :host {\n /*\n * Minimum size of interactive elements.\n */\n --a11y-min-size: calc(44rem / var(--kolibri-root-font-size, 16));\n /*\n * No element should be used without a background and font color whose contrast ratio has\n * not been checked. By initially setting the background color to white and the font color\n * to black, the contrast ratio is ensured and explicit adjustment is forced.\n */\n background-color: white;\n color: black;\n }\n * {\n /*\n * This rule enables the word dividing for all texts. That is important for high zoom levels.\n */\n hyphens: auto;\n /*\n * Verdana is an accessible font that can be used without requiring additional loading time.\n */\n font-family: Verdana;\n /*\n * Letter spacing is required for all texts.\n */\n letter-spacing: inherit;\n /*\n * This rule enables the word dividing for all texts. That is important for high zoom levels.\n */\n word-break: break-word;\n /*\n * Word spacing is required for all texts.\n */\n word-spacing: inherit;\n }\n /*\n * All interactive elements should have a minimum size of rem(44).\n */\n /* input:not([type='checkbox'], [type='radio'], [type='range']), */\n /* option, */\n /* select, */\n /* textarea, */\n [role=button],\n button:not([role=link]),\n .kol-input .input {\n min-height: var(--a11y-min-size);\n min-width: var(--a11y-min-size);\n }\n /*\n * Some interactive elements should not inherit the font-family and font-size.\n */\n a,\n button,\n h1,\n h2,\n h3,\n h4,\n h5,\n h6,\n input,\n option,\n select,\n textarea {\n /*\n * All elements should inherit the font family from his parent element.\n */\n font-family: inherit;\n /*\n * All elements should inherit the font size from his parent element.\n */\n font-size: inherit;\n }\n}\n/**\n * Sometimes we need the semantic element for accessibility reasons,\n * but we don't want to show it.\n *\n * - https://www.a11yproject.com/posts/how-to-hide-content/\n */\n.visually-hidden {\n clip: rect(0 0 0 0);\n clip-path: inset(50%);\n height: 1px;\n overflow: hidden;\n position: absolute;\n white-space: nowrap;\n width: 1px;\n}\n\n@layer kol-global {\n /*\n * Dieses CSS stellt sicher, dass der Standard-Style\n * von A und Button resettet werden.\n */\n :is(a, button) {\n background-color: transparent;\n border: none;\n margin: 0;\n padding: 0;\n width: 100%; /* 100% needed for custom width from outside */\n }\n /*\n * Ensure elements with hidden attribute to be actually not visible\n * @see https://meowni.ca/hidden.is.a.lie.html\n */\n [hidden] {\n display: none !important;\n }\n}\n@layer kol-global {\n :host {\n font-size: calc(16rem / var(--kolibri-root-font-size, 16));\n /*\n * The max-width is needed to prevent the table from overflowing the\n * parent node, if the table is wider than the parent node.\n */\n max-width: 100%;\n }\n * {\n /*\n * We prefer to box-sizing: border-box for all elements.\n */\n box-sizing: border-box;\n }\n /* KolSpan is a layout component with icons in all directions and a label text in the middle. */\n .kol-span-wc {\n display: grid;\n place-items: center;\n }\n /* The sub span in KolSpan is the horizontal span with icon left and right and the label text in the middle. */\n .kol-span-wc > span {\n display: flex;\n place-items: center;\n }\n a,\n button {\n cursor: pointer;\n }\n /* This is the text label. */\n .hide-label > .kol-span-wc > span > span {\n display: none;\n }\n /* Reset browser agent style. */\n button:disabled {\n color: unset;\n }\n .disabled label,\n .disabled:focus-within label,\n [aria-disabled=true],\n [aria-disabled=true]:focus,\n [disabled],\n [disabled]:focus {\n cursor: not-allowed;\n opacity: 0.5;\n outline: none;\n }\n [aria-disabled=true]:focus .kol-span-wc,\n [disabled]:focus .kol-span-wc {\n outline: none !important;\n }\n .badge-text-hint {\n background-color: lightgray;\n color: black;\n }\n}\n@layer kol-component {\n :host {\n display: block;\n }\n}\n@layer kol-component {\n .kol-tooltip-wc {\n display: contents;\n }\n .kol-tooltip-wc .tooltip-floating {\n animation-duration: 0.25s;\n animation-iteration-count: 1;\n animation-name: fadeInOpacity;\n animation-timing-function: ease-in;\n display: none;\n position: fixed;\n visibility: hidden;\n /* Avoid layout interference - see https://floating-ui.com/docs/computePosition */\n top: 0;\n left: 0;\n max-width: 90vw;\n max-height: 90vh;\n /* Can be used to specify the tooltip-width from the outside. Unset by default. */\n width: var(--kol-tooltip-width);\n }\n /* Shared between content and arrow */\n .kol-tooltip-wc .tooltip-area {\n background-color: #fff;\n color: #000;\n }\n .kol-tooltip-wc .tooltip-arrow {\n height: calc(10rem / var(--kolibri-root-font-size, 16));\n position: absolute;\n transform: rotate(45deg);\n width: calc(10rem / var(--kolibri-root-font-size, 16));\n z-index: 999;\n }\n .kol-tooltip-wc .tooltip-content {\n position: relative;\n z-index: 1000;\n }\n @keyframes fadeInOpacity {\n 0% {\n opacity: 0;\n }\n 100% {\n opacity: 1;\n }\n }\n}\n@layer kol-component {\n .required label > span::after,\n .required legend > span::after {\n content: \"*\";\n }\n}\n@layer kol-component {\n input,\n textarea {\n cursor: text;\n }\n input[type=checkbox],\n input[type=color],\n input[type=file],\n input[type=radio],\n input[type=range],\n label,\n option,\n select {\n cursor: pointer;\n }\n /* input[type='checkbox'], */\n /* input[type='radio'], */\n /* input[type='range'], */\n input[type=color],\n input[type=date],\n input[type=datetime-local],\n input[type=email],\n input[type=file],\n input[type=month],\n input[type=number],\n input[type=password],\n input[type=search],\n input[type=tel],\n input[type=text],\n input[type=time],\n input[type=url],\n input[type=week],\n option,\n select,\n textarea {\n background-color: transparent;\n width: 100%;\n }\n /* needed hack for vertical alignment */\n input[type=file] {\n padding: calc((var(--a11y-min-size) - (16rem / var(--kolibri-root-font-size, 16))) / 10) 0.5em;\n }\n /* needed hack for vertical alignment */\n select[multiple] option {\n padding: calc((var(--a11y-min-size) - (16rem / var(--kolibri-root-font-size, 16))) / 2) 0.5em;\n }\n}\n@layer kol-component {\n .kol-alert-wc {\n display: grid;\n }\n .kol-alert-wc .heading {\n display: flex;\n place-items: center;\n overflow: hidden;\n }\n .kol-alert-wc .heading > div {\n flex-grow: 1;\n }\n .close {\n /* Visible with forced colors */\n outline: transparent solid calc(1rem / var(--kolibri-root-font-size, 16));\n }\n}\n@layer kol-component {\n .kol-input {\n display: grid;\n }\n .kol-input .input-slot {\n flex-grow: 1;\n overflow: hidden;\n }\n input:focus,\n option:focus,\n select:focus,\n textarea:focus {\n outline: 0;\n }\n .input {\n align-items: center;\n background-color: white;\n cursor: pointer;\n display: flex;\n }\n button:not([role=link]) {\n min-height: auto;\n }\n .input > .kol-icon {\n display: grid;\n place-items: center;\n }\n .kol-input.required .input-tooltip .span-label::after {\n content: \"*\";\n }\n}\n@layer kol-component {\n option:checked::before {\n content: \"✓ \";\n }\n}"}},2279:(t,e,n)=>{n.d(e,{I:()=>o});var i=n(9807);const o=({badgeText:t,label:e})=>{const n=t;let[o,...a]=e.split(n);return 0===a.length&&(t=n.toUpperCase(),[o,...a]=e.split(n)),0===a.length&&(t=n.toLowerCase(),[o,...a]=e.split(n)),(0,i.h)(i.F,null,o,a.length?(0,i.h)(i.F,null,(0,i.h)("u",null,t),a.join(n)):null)}},5099:(t,e,n)=>{n.d(e,{a:()=>l,p:()=>s});var i=n(8465),o=n(8133);const a=t=>{for((0,i.E)()&&((0,i.C)("↓ Search form element start."),i.L.debug(t));t instanceof HTMLElement&&"FORM"!==t.tagName&&t.tagName!==o.m.toUpperCase();){try{t=t.parentElement instanceof HTMLElement?t.parentElement:t.parentNode instanceof ShadowRoot?t.parentNode.host:null}catch(t){}(0,i.E)()&&(i.L.debug(t),(0,i.C)("↑ Search form element finished."))}return t},l=(t={})=>{var e,n;const l=a(t.form);if(l instanceof HTMLElement){const t=new Event("reset",{bubbles:!0,cancelable:!0});if("FORM"===l.tagName)(0,i.I)(t,l),l.dispatchEvent(t);else if(l.tagName===o.m.toUpperCase()){(0,i.I)(t,i.a.querySelector("form",l));const o=l;"function"==typeof(null===(e=o._on)||void 0===e?void 0:e.onReset)&&(null===(n=o._on)||void 0===n||n.onReset(t))}}},s=(t={})=>{const e=a(t.form);if(e instanceof HTMLElement){const t=new SubmitEvent("submit",{bubbles:!0,cancelable:!0,submitter:e});if("FORM"===e.tagName)(0,i.E)()&&!1===e.noValidate&&(0,i.C)("If you have not focusable or hidden form fields in your form, you should enable noValidate for your form.",{force:!0}),setTimeout((()=>{"function"==typeof e.requestSubmit?e.requestSubmit():((0,i.I)(t,e),e.dispatchEvent(t))}));else if(e.tagName===o.m.toUpperCase()){(0,i.I)(t,i.a.querySelector("form",e));const n=e;setTimeout((()=>{var e,i;"function"==typeof(null===(e=n._on)||void 0===e?void 0:e.onSubmit)&&(null===(i=n._on)||void 0===i||i.onSubmit(t))}))}}}},5653:(t,e,n)=>{n.d(e,{I:()=>c,a:()=>p,b:()=>s,f:()=>d,v:()=>r});var i=n(8465),o=n(1916),a=n(7335);const l=t=>{if("object"==typeof t&&null!==t){if("string"==typeof t.label&&t.label.length>0)return t.disabled=!0===t.disabled,t.label=`${t.label}`.trim(),!1===(0,a.b)(t.label,3)&&!1===(0,a.c)(t.label)&&(0,i.f)(`A differing Aria-Label (${t.label}) is not accessible. A differing Aria-Label should consist of at least three readable characters.`),!Array.isArray(t.options)||void 0===t.options.find((t=>!1===l(t)));if("number"==typeof t.label)return!0}return!1},s=(t,e,n={})=>{(0,i.t)(t,"_options",(t=>"object"==typeof t&&null!==t&&"string"==typeof t.label&&t.label.length>0),e,void 0,n)},r=(t,e,n={})=>{(0,i.t)(t,"_options",l,e,void 0,n)},h=["horizontal","vertical"],d=(t,e,n="")=>{e.forEach(((e,i)=>{const o=`${n}-${i}`;"object"==typeof e&&null!==e&&"string"==typeof e.label&&e.label.length>0&&(Array.isArray(e.options)?d(t,e.options,o):t.set(o,e))}))};class c extends o.I{constructor(t,e,n){super(t,e,n),this.component=t}validateRequired(t){((t,e)=>{(0,i.i)(t,"_required",e)})(this.component,t)}componentWillLoad(){super.componentWillLoad(),this.validateRequired(this.component._required)}}class p extends c{constructor(t,e,n){super(t,e,n),this.keyOptionMap=new Map,this.getOptionByKey=t=>this.keyOptionMap.get(t),this.afterPatchOptions=(t,e,n,i)=>{"_value"===i&&this.setFormAssociatedValue(t)},this.beforePatchOptions=(t,e)=>{const n=e.has("_options")?e.get("_options"):this.component.state._options;Array.isArray(n)&&n.length>0&&(this.keyOptionMap.clear(),d(this.keyOptionMap,n))},this.component=t}validateOrientation(t){(0,i.w)(this.component,"_orientation",(t=>"string"==typeof t&&h.includes(t)),new Set([`Orientation {${h.join(", ")}`]),t,{defaultValue:"vertical"})}validateOptions(t){s(this.component,t,{hooks:{afterPatch:this.afterPatchOptions,beforePatch:this.beforePatchOptions}})}validateValue(t){t=Array.isArray(t)?t[0]:t,(0,i.l)(this.component,"_value",t,{afterPatch:this.afterPatchOptions,beforePatch:this.beforePatchOptions})}componentWillLoad(){super.componentWillLoad(),this.validateOrientation(this.component._orientation),this.validateOptions(this.component._options),this.validateValue(this.component._value)}}},9523:(t,e,n)=>{n.d(e,{I:()=>a}),n(8465);var i=n(1916),o=n(297);class a extends i.I{constructor(t,e,n){super(t,e,n),this.component=t}validateIcons(t){(0,o.v)(this.component,t)}componentWillLoad(){super.componentWillLoad(),this.validateIcons(this.component._icons)}}}}]);
|
package/dist/1266.js.LICENSE.txt
DELETED
package/dist/1601.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
/*! For license information please see 1601.js.LICENSE.txt */
|
|
2
|
-
"use strict";(self.webpackChunk_public_ui_sample_react=self.webpackChunk_public_ui_sample_react||[]).push([[1601],{1601:(n,e,t)=>{t.r(e),t.d(e,{kol_modal:()=>s});var i=t(9807),o=t(8465),a=t(7335),l=(n,e,t)=>new Promise(((i,o)=>{var a=n=>{try{s(t.next(n))}catch(n){o(n)}},l=n=>{try{s(t.throw(n))}catch(n){o(n)}},s=n=>n.done?i(n.value):Promise.resolve(n.value).then(a,l);s((t=t.apply(n,e)).next())}));const s=class{constructor(n){(0,i.r)(this,n),this._activeElement=void 0,this._label=void 0,this._on=void 0,this._width="100%",this.state={_activeElement:null,_label:"",_width:"100%"}}componentDidRender(){var n;this.state._activeElement&&(null===(n=this.refDialog)||void 0===n||n.showModal())}disconnectedCallback(){this.closeModal()}handleNativeCloseEvent(){var n,e;null===(e=null===(n=this.state._on)||void 0===n?void 0:n.onClose)||void 0===e||e.call(n)}openModal(){return l(this,null,(function*(){var n;null===(n=this.refDialog)||void 0===n||n.showModal()}))}closeModal(){return l(this,null,(function*(){var n,e;this._activeElement=null,null===(e=null===(n=this.refDialog)||void 0===n?void 0:n.close)||void 0===e||e.call(n)}))}render(){return(0,i.h)("dialog",{key:"60cb0446cef2f09e240cf1c726c291b9ed7d236d",class:"kol-modal",ref:n=>{this.refDialog=n},style:{width:this.state._width},"aria-label":this.state._label,onClose:this.handleNativeCloseEvent.bind(this)},(0,i.h)("div",{key:"58dab73678e09f898a432f3a22879a1f150a98a5"},(0,i.h)("slot",{key:"ea74a2c036fd070e2ed21731888a24b4846174fe"})))}validateActiveElement(n){(0,o.w)(this,"_activeElement",(n=>"object"==typeof n||null===n),new Set(["HTMLElement","null"]),n,{defaultValue:null,hooks:{afterPatch:()=>{this.state._activeElement?this.openModal():this.closeModal()}}})}validateLabel(n){(0,a.v)(this,n,{required:!0})}validateOn(n){if("object"==typeof n&&null!==n){const e={};"function"!=typeof n.onClose&&!0!==n.onClose||(e.onClose=n.onClose),(0,o.l)(this,"_on",e)}}validateWidth(n){(0,o.x)(this,"_width",n,{defaultValue:"100%"})}componentWillLoad(){this.validateActiveElement(this._activeElement),this.validateLabel(this._label),this.validateOn(this._on),this.validateWidth(this._width)}static get watchers(){return{_activeElement:["validateActiveElement"],_label:["validateLabel"],_on:["validateOn"],_width:["validateWidth"]}}};s.style={default:"/*\n * This file contains all rules for accessibility.\n */\n@layer kol-global {\n :host {\n /*\n * Minimum size of interactive elements.\n */\n --a11y-min-size: calc(44rem / var(--kolibri-root-font-size, 16));\n /*\n * No element should be used without a background and font color whose contrast ratio has\n * not been checked. By initially setting the background color to white and the font color\n * to black, the contrast ratio is ensured and explicit adjustment is forced.\n */\n background-color: white;\n color: black;\n }\n * {\n /*\n * This rule enables the word dividing for all texts. That is important for high zoom levels.\n */\n hyphens: auto;\n /*\n * Verdana is an accessible font that can be used without requiring additional loading time.\n */\n font-family: Verdana;\n /*\n * Letter spacing is required for all texts.\n */\n letter-spacing: inherit;\n /*\n * This rule enables the word dividing for all texts. That is important for high zoom levels.\n */\n word-break: break-word;\n /*\n * Word spacing is required for all texts.\n */\n word-spacing: inherit;\n }\n /*\n * All interactive elements should have a minimum size of rem(44).\n */\n /* input:not([type='checkbox'], [type='radio'], [type='range']), */\n /* option, */\n /* select, */\n /* textarea, */\n [role=button],\n button:not([role=link]),\n .kol-input .input {\n min-height: var(--a11y-min-size);\n min-width: var(--a11y-min-size);\n }\n /*\n * Some interactive elements should not inherit the font-family and font-size.\n */\n a,\n button,\n h1,\n h2,\n h3,\n h4,\n h5,\n h6,\n input,\n option,\n select,\n textarea {\n /*\n * All elements should inherit the font family from his parent element.\n */\n font-family: inherit;\n /*\n * All elements should inherit the font size from his parent element.\n */\n font-size: inherit;\n }\n}\n/**\n * Sometimes we need the semantic element for accessibility reasons,\n * but we don't want to show it.\n *\n * - https://www.a11yproject.com/posts/how-to-hide-content/\n */\n.visually-hidden {\n clip: rect(0 0 0 0);\n clip-path: inset(50%);\n height: 1px;\n overflow: hidden;\n position: absolute;\n white-space: nowrap;\n width: 1px;\n}\n\n@layer kol-global {\n /*\n * Dieses CSS stellt sicher, dass der Standard-Style\n * von A und Button resettet werden.\n */\n :is(a, button) {\n background-color: transparent;\n border: none;\n margin: 0;\n padding: 0;\n width: 100%; /* 100% needed for custom width from outside */\n }\n /*\n * Ensure elements with hidden attribute to be actually not visible\n * @see https://meowni.ca/hidden.is.a.lie.html\n */\n [hidden] {\n display: none !important;\n }\n}\n@layer kol-global {\n :host {\n font-size: calc(16rem / var(--kolibri-root-font-size, 16));\n /*\n * The max-width is needed to prevent the table from overflowing the\n * parent node, if the table is wider than the parent node.\n */\n max-width: 100%;\n }\n * {\n /*\n * We prefer to box-sizing: border-box for all elements.\n */\n box-sizing: border-box;\n }\n /* KolSpan is a layout component with icons in all directions and a label text in the middle. */\n .kol-span-wc {\n display: grid;\n place-items: center;\n }\n /* The sub span in KolSpan is the horizontal span with icon left and right and the label text in the middle. */\n .kol-span-wc > span {\n display: flex;\n place-items: center;\n }\n a,\n button {\n cursor: pointer;\n }\n /* This is the text label. */\n .hide-label > .kol-span-wc > span > span {\n display: none;\n }\n /* Reset browser agent style. */\n button:disabled {\n color: unset;\n }\n .disabled label,\n .disabled:focus-within label,\n [aria-disabled=true],\n [aria-disabled=true]:focus,\n [disabled],\n [disabled]:focus {\n cursor: not-allowed;\n opacity: 0.5;\n outline: none;\n }\n [aria-disabled=true]:focus .kol-span-wc,\n [disabled]:focus .kol-span-wc {\n outline: none !important;\n }\n .badge-text-hint {\n background-color: lightgray;\n color: black;\n }\n}\n@layer kol-component {\n .kol-modal {\n border: 0;\n padding: 0;\n }\n .kol-modal::backdrop {\n background-color: rgba(0, 0, 0, 0.33);\n }\n}"}},7335:(n,e,t)=>{t.d(e,{a:()=>c,b:()=>s,c:()=>r,h:()=>o,v:()=>h});var i=t(8465);const o=[0,1,2,3,4,5,6],a=/[a-zA-Z0-9äöüÄÖÜß]/g,l=/^\d+$/;function s(n,e=1){return function(n){var e;return"string"==typeof n&&(null===(e=n.match(a))||void 0===e?void 0:e.length)||0}(n)>=e}function r(n){return l.test(n)}const d=new Set(["string"]),h=(n,e,t={})=>{(0,i.w)(n,"_label",(n=>"string"==typeof n),d,e,function(n){var e;return Object.assign(Object.assign({},n),{hooks:{afterPatch:(e,t,o,a)=>{var l,d;"function"==typeof(null===(l=n.hooks)||void 0===l?void 0:l.afterPatch)&&(null===(d=n.hooks)||void 0===d||d.afterPatch(e,t,o,a)),"string"==typeof e&&!1===s(e,3)&&!1===r(e)&&(0,i.f)(`The heading or label ("${e}") is not accessible. A label should consist of at least three readable characters.`),"string"==typeof e&&e.length>80&&(0,i.u)("A heading or label should not be longer than 80 characters.")},beforePatch:null===(e=n.hooks)||void 0===e?void 0:e.beforePatch}})}(t))},c=h}}]);
|
package/dist/1601.js.LICENSE.txt
DELETED