@machinerd/js-module 0.9.0 → 0.11.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 +132 -63
- package/dist/align-CdK8Ar2w.mjs +1 -0
- package/dist/align-Dp4avXIm.cjs +1 -0
- package/dist/{api-client-C3o2pO0q.cjs → api-client-BXH8Rm-J.cjs} +1 -1
- package/dist/{api-client-C0sbSOQf.mjs → api-client-xK3Ua3Gr.mjs} +1 -1
- package/dist/basic-image-D26zahpC.mjs +1 -0
- package/dist/basic-image-Wl0IBgOX.cjs +1 -0
- package/dist/country-flag-8HG6HZPi.cjs +1 -0
- package/dist/country-flag-Bypgu_rR.mjs +1 -0
- package/dist/custom-heading-By14y5ug.cjs +1 -0
- package/dist/custom-heading-eGRLcDQZ.mjs +1 -0
- package/dist/dnd-CeWNVM-V.mjs +1 -0
- package/dist/dnd-DHNRwFj8.cjs +1 -0
- package/dist/editor/extensions/align/index.cjs +1 -0
- package/dist/editor/extensions/align/index.d.cts +2 -0
- package/dist/editor/extensions/align/index.d.mts +2 -0
- package/dist/editor/extensions/align/index.mjs +1 -0
- package/dist/editor/extensions/table-controls/index.cjs +1 -0
- package/dist/editor/extensions/table-controls/index.d.cts +2 -0
- package/dist/editor/extensions/table-controls/index.d.mts +2 -0
- package/dist/editor/extensions/table-controls/index.mjs +1 -0
- package/dist/editor/extensions/table-resize/index.cjs +1 -0
- package/dist/editor/extensions/table-resize/index.d.cts +2 -0
- package/dist/editor/extensions/table-resize/index.d.mts +2 -0
- package/dist/editor/extensions/table-resize/index.mjs +1 -0
- package/dist/editor/index.cjs +1 -1
- package/dist/editor/index.d.cts +51 -73
- package/dist/editor/index.d.mts +51 -73
- package/dist/editor/index.mjs +1 -1
- package/dist/editor/nodes/basic-image/index.cjs +1 -0
- package/dist/editor/nodes/basic-image/index.d.cts +4 -0
- package/dist/editor/nodes/basic-image/index.d.mts +4 -0
- package/dist/editor/nodes/basic-image/index.mjs +1 -0
- package/dist/editor/nodes/custom-heading/index.cjs +1 -0
- package/dist/editor/nodes/custom-heading/index.d.cts +2 -0
- package/dist/editor/nodes/custom-heading/index.d.mts +2 -0
- package/dist/editor/nodes/custom-heading/index.mjs +1 -0
- package/dist/editor/nodes/menu-wrapper/index.cjs +1 -0
- package/dist/editor/nodes/menu-wrapper/index.d.cts +54 -0
- package/dist/editor/nodes/menu-wrapper/index.d.mts +54 -0
- package/dist/editor/nodes/menu-wrapper/index.mjs +1 -0
- package/dist/editor/nodes/node-resize/index.cjs +1 -0
- package/dist/editor/nodes/node-resize/index.d.cts +27 -0
- package/dist/editor/nodes/node-resize/index.d.mts +27 -0
- package/dist/editor/nodes/node-resize/index.mjs +1 -0
- package/dist/editor/nodes/node-size/index.cjs +1 -0
- package/dist/editor/nodes/node-size/index.d.cts +3 -0
- package/dist/editor/nodes/node-size/index.d.mts +3 -0
- package/dist/editor/nodes/node-size/index.mjs +1 -0
- package/dist/editor/nodes/node-view-context/index.cjs +1 -0
- package/dist/editor/nodes/node-view-context/index.d.cts +2 -0
- package/dist/editor/nodes/node-view-context/index.d.mts +2 -0
- package/dist/editor/nodes/node-view-context/index.mjs +1 -0
- package/dist/editor/nodes/subset-image/index.cjs +1 -0
- package/dist/editor/nodes/subset-image/index.d.cts +5 -0
- package/dist/editor/nodes/subset-image/index.d.mts +5 -0
- package/dist/editor/nodes/subset-image/index.mjs +1 -0
- package/dist/editor/nodes/table/index.cjs +1 -0
- package/dist/editor/nodes/table/index.d.cts +2 -0
- package/dist/editor/nodes/table/index.d.mts +2 -0
- package/dist/editor/nodes/table/index.mjs +1 -0
- package/dist/editor/nodes/tabs/index.cjs +1 -0
- package/dist/editor/nodes/tabs/index.d.cts +2 -0
- package/dist/editor/nodes/tabs/index.d.mts +2 -0
- package/dist/editor/nodes/tabs/index.mjs +1 -0
- package/dist/editor-CHuJTM4H.mjs +1 -0
- package/dist/editor-DvLUotoh.cjs +1 -0
- package/dist/{file-B-UJkabO.mjs → file-CapBKYce.mjs} +1 -1
- package/dist/file-DeZ1OKdy.cjs +1 -0
- package/dist/hooks/use-delay-unmount/index.cjs +1 -0
- package/dist/hooks/use-delay-unmount/index.d.cts +4 -0
- package/dist/hooks/use-delay-unmount/index.d.mts +4 -0
- package/dist/hooks/use-delay-unmount/index.mjs +1 -0
- package/dist/hooks/use-dialog-stack/index.cjs +1 -0
- package/dist/hooks/use-dialog-stack/index.d.cts +4 -0
- package/dist/hooks/use-dialog-stack/index.d.mts +4 -0
- package/dist/hooks/use-dialog-stack/index.mjs +1 -0
- package/dist/hooks/use-drag-resize/index.cjs +1 -0
- package/dist/hooks/use-drag-resize/index.d.cts +2 -0
- package/dist/hooks/use-drag-resize/index.d.mts +2 -0
- package/dist/hooks/use-drag-resize/index.mjs +1 -0
- package/dist/hooks/use-drag-scroll/index.cjs +1 -0
- package/dist/hooks/use-drag-scroll/index.d.cts +13 -0
- package/dist/hooks/use-drag-scroll/index.d.mts +13 -0
- package/dist/hooks/use-drag-scroll/index.mjs +1 -0
- package/dist/hooks/use-effect-once/index.cjs +1 -0
- package/dist/hooks/use-effect-once/index.d.cts +7 -0
- package/dist/hooks/use-effect-once/index.d.mts +7 -0
- package/dist/hooks/use-effect-once/index.mjs +1 -0
- package/dist/hooks/use-outside-click/index.cjs +1 -0
- package/dist/hooks/use-outside-click/index.d.cts +13 -0
- package/dist/hooks/use-outside-click/index.d.mts +13 -0
- package/dist/hooks/use-outside-click/index.mjs +1 -0
- package/dist/hooks/use-scroll-lock/index.cjs +1 -0
- package/dist/hooks/use-scroll-lock/index.d.cts +12 -0
- package/dist/hooks/use-scroll-lock/index.d.mts +12 -0
- package/dist/hooks/use-scroll-lock/index.mjs +1 -0
- package/dist/hooks/use-scroll-top/index.cjs +1 -0
- package/dist/hooks/use-scroll-top/index.d.cts +17 -0
- package/dist/hooks/use-scroll-top/index.d.mts +17 -0
- package/dist/hooks/use-scroll-top/index.mjs +1 -0
- package/dist/hooks/use-snackbar/index.cjs +1 -0
- package/dist/hooks/{use-snackbar.d.cts → use-snackbar/index.d.cts} +1 -1
- package/dist/hooks/{use-snackbar.d.mts → use-snackbar/index.d.mts} +1 -1
- package/dist/hooks/use-sticky/index.cjs +1 -0
- package/dist/hooks/use-sticky/index.d.cts +9 -0
- package/dist/hooks/use-sticky/index.d.mts +9 -0
- package/dist/hooks/use-sticky/index.mjs +1 -0
- package/dist/hooks/use-subset-image/index.cjs +1 -0
- package/dist/hooks/use-subset-image/index.d.cts +2 -0
- package/dist/hooks/use-subset-image/index.d.mts +2 -0
- package/dist/hooks/use-subset-image/index.mjs +1 -0
- package/dist/hooks/use-window-size/index.cjs +1 -0
- package/dist/hooks/use-window-size/index.d.cts +6 -0
- package/dist/hooks/use-window-size/index.d.mts +6 -0
- package/dist/hooks/use-window-size/index.mjs +1 -0
- package/dist/image-CAEWHuaM.mjs +1 -0
- package/dist/image-kIL2PjTS.cjs +1 -0
- package/dist/index-90Zl6qBK.d.cts +17 -0
- package/dist/index-BD2sHM7a.d.cts +34 -0
- package/dist/index-BJgz2hkX.d.cts +56 -0
- package/dist/index-BKqI0jBF.d.mts +43 -0
- package/dist/index-BMZtFPh-.d.cts +43 -0
- package/dist/index-BT7Y7xkm.d.cts +7 -0
- package/dist/index-BTUIpavj.d.mts +34 -0
- package/dist/index-BlQhHmTa.d.cts +31 -0
- package/dist/index-BoJg4HO3.d.mts +56 -0
- package/dist/{util/fetcher.d.cts → index-Bpp6ufv-.d.cts} +2 -2
- package/dist/index-BxqkZ148.d.cts +18 -0
- package/dist/index-C3wA7a3i.d.mts +7 -0
- package/dist/index-CLxl-tUO.d.cts +41 -0
- package/dist/index-CV-nhdHd.d.mts +43 -0
- package/dist/{util/fetcher.d.mts → index-C_5zGF-K.d.mts} +2 -2
- package/dist/index-C_YTuhwX.d.mts +11 -0
- package/dist/index-CcpFy_mT.d.mts +17 -0
- package/dist/{index-B1YNV_Vm.d.cts → index-CqZGdObz.d.mts} +47 -15
- package/dist/index-Cxc49Lmr.d.mts +19 -0
- package/dist/index-D-NPxMFr.d.cts +11 -0
- package/dist/index-D0Uuydfo.d.cts +6 -0
- package/dist/index-D5uh7klO.d.mts +18 -0
- package/dist/{index-C8chDULk.d.mts → index-DCzaZKG0.d.cts} +47 -15
- package/dist/index-DDG8MvPD.d.mts +31 -0
- package/dist/index-DEolXbf5.d.cts +26 -0
- package/dist/index-DHXj3w9p.d.mts +40 -0
- package/dist/{use-subset-image-Dygkyw-W.d.mts → index-DHyXKIBX.d.cts} +1 -1
- package/dist/index-DSVr-P8y.d.mts +45 -0
- package/dist/index-DTtrJ-ei.d.cts +10 -0
- package/dist/index-D_Hfb-z2.d.cts +45 -0
- package/dist/index-DeXwS1TW.d.mts +10 -0
- package/dist/index-Dhkwd0rJ.d.cts +19 -0
- package/dist/index-DrUJZDtK.d.cts +43 -0
- package/dist/index-DvEtYdm4.d.cts +40 -0
- package/dist/{use-subset-image-bDB5TSd4.d.cts → index-DxW8JBva.d.mts} +1 -1
- package/dist/index-X2XMkoEC.d.mts +26 -0
- package/dist/index-aA4ojwuQ.d.mts +6 -0
- package/dist/index-wiRVGgrx.d.mts +41 -0
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +2 -2
- package/dist/index.d.mts +2 -2
- package/dist/index.mjs +1 -1
- package/dist/label-DeEAgKAc.mjs +1 -0
- package/dist/label-jZuNIGyF.cjs +1 -0
- package/dist/node-resize-Cs4wR_HY.mjs +1 -0
- package/dist/node-resize-dantnBzP.cjs +1 -0
- package/dist/node-size-BQQGo7t7.cjs +1 -0
- package/dist/node-size-Bg-g2Png.mjs +1 -0
- package/dist/node-view-context-D-1j5isf.mjs +1 -0
- package/dist/node-view-context-YTl_1gGD.cjs +1 -0
- package/dist/providers/api-client/index.cjs +1 -1
- package/dist/providers/api-client/index.d.cts +3 -3
- package/dist/providers/api-client/index.d.mts +3 -3
- package/dist/providers/api-client/index.mjs +1 -1
- package/dist/providers/editor/index.cjs +1 -0
- package/dist/providers/editor/index.d.cts +21 -0
- package/dist/providers/editor/index.d.mts +21 -0
- package/dist/providers/editor/index.mjs +1 -0
- package/dist/providers/noti-stack/index.cjs +1 -1
- package/dist/providers/noti-stack/index.d.cts +2 -2
- package/dist/providers/noti-stack/index.mjs +1 -1
- package/dist/select-field-CoNJTWRb.cjs +1 -0
- package/dist/select-field-DeyQlWxq.mjs +1 -0
- package/dist/skeleton-7P1IZD3G.cjs +1 -0
- package/dist/skeleton-D4Q9wT-o.mjs +1 -0
- package/dist/src-BB55dPBE.mjs +1 -0
- package/dist/src-Dz1mULYA.cjs +1 -0
- package/dist/styles/admin.css +2424 -0
- package/dist/styles/editor.css +2917 -63
- package/dist/styles/index.css +788 -184
- package/dist/subset-image-AaZA0RuB.cjs +1 -0
- package/dist/subset-image-Co0fWefj.mjs +1 -0
- package/dist/subset-image-DnZ2TqZY.mjs +1 -0
- package/dist/subset-image-P2NQM0-3.cjs +0 -0
- package/dist/switch-BDdSF3lu.cjs +1 -0
- package/dist/switch-DTQt7BzY.mjs +1 -0
- package/dist/table-CKVL_ezW.mjs +1 -0
- package/dist/table-DmwOZtdl.cjs +1 -0
- package/dist/table-controls-CQmqnc4R.cjs +1 -0
- package/dist/table-controls-CpCGiLvR.mjs +1 -0
- package/dist/table-resize-DI2Pf2Mi.cjs +1 -0
- package/dist/table-resize-w9EsReKV.mjs +1 -0
- package/dist/tabs-DQ1db_eg.mjs +1 -0
- package/dist/tabs-DiryrHZ7.cjs +1 -0
- package/dist/text-field-CTxoUkAg.cjs +1 -0
- package/dist/text-field-D2x9nugT.mjs +1 -0
- package/dist/ui/admin/async-select-field/index.cjs +1 -0
- package/dist/ui/admin/async-select-field/index.d.cts +35 -0
- package/dist/ui/admin/async-select-field/index.d.mts +35 -0
- package/dist/ui/admin/async-select-field/index.mjs +1 -0
- package/dist/ui/admin/country-select/index.cjs +1 -0
- package/dist/ui/admin/country-select/index.d.cts +47 -0
- package/dist/ui/admin/country-select/index.d.mts +47 -0
- package/dist/ui/admin/country-select/index.mjs +1 -0
- package/dist/ui/admin/dropzone-field/index.cjs +1 -0
- package/dist/ui/admin/dropzone-field/index.d.cts +110 -0
- package/dist/ui/admin/dropzone-field/index.d.mts +110 -0
- package/dist/ui/admin/dropzone-field/index.mjs +1 -0
- package/dist/ui/admin/email-field/index.cjs +1 -0
- package/dist/ui/admin/email-field/index.d.cts +9 -0
- package/dist/ui/admin/email-field/index.d.mts +9 -0
- package/dist/ui/admin/email-field/index.mjs +1 -0
- package/dist/ui/admin/file-field/index.cjs +1 -0
- package/dist/ui/admin/file-field/index.d.cts +36 -0
- package/dist/ui/admin/file-field/index.d.mts +36 -0
- package/dist/ui/admin/file-field/index.mjs +1 -0
- package/dist/ui/admin/image-list-field/index.cjs +1 -0
- package/dist/ui/admin/image-list-field/index.d.cts +53 -0
- package/dist/ui/admin/image-list-field/index.d.mts +53 -0
- package/dist/ui/admin/image-list-field/index.mjs +1 -0
- package/dist/ui/admin/label/index.cjs +1 -0
- package/dist/ui/admin/label/index.d.cts +2 -0
- package/dist/ui/admin/label/index.d.mts +2 -0
- package/dist/ui/admin/label/index.mjs +1 -0
- package/dist/ui/admin/priority-field/index.cjs +1 -0
- package/dist/ui/admin/priority-field/index.d.cts +19 -0
- package/dist/ui/admin/priority-field/index.d.mts +19 -0
- package/dist/ui/admin/priority-field/index.mjs +1 -0
- package/dist/ui/admin/select-field/index.cjs +1 -0
- package/dist/ui/admin/select-field/index.d.cts +3 -0
- package/dist/ui/admin/select-field/index.d.mts +3 -0
- package/dist/ui/admin/select-field/index.mjs +1 -0
- package/dist/ui/admin/series-field/index.cjs +1 -0
- package/dist/ui/admin/series-field/index.d.cts +37 -0
- package/dist/ui/admin/series-field/index.d.mts +37 -0
- package/dist/ui/admin/series-field/index.mjs +1 -0
- package/dist/ui/admin/sns-field/index.cjs +1 -0
- package/dist/ui/admin/sns-field/index.d.cts +50 -0
- package/dist/ui/admin/sns-field/index.d.mts +50 -0
- package/dist/ui/admin/sns-field/index.mjs +1 -0
- package/dist/ui/admin/source-field/index.cjs +1 -0
- package/dist/ui/admin/source-field/index.d.cts +34 -0
- package/dist/ui/admin/source-field/index.d.mts +34 -0
- package/dist/ui/admin/source-field/index.mjs +1 -0
- package/dist/ui/admin/text-area-field/index.cjs +1 -0
- package/dist/ui/admin/text-area-field/index.d.cts +20 -0
- package/dist/ui/admin/text-area-field/index.d.mts +20 -0
- package/dist/ui/admin/text-area-field/index.mjs +1 -0
- package/dist/ui/admin/text-field/index.cjs +1 -0
- package/dist/ui/admin/text-field/index.d.cts +3 -0
- package/dist/ui/admin/text-field/index.d.mts +3 -0
- package/dist/ui/admin/text-field/index.mjs +1 -0
- package/dist/ui/admin/url-field/index.cjs +1 -0
- package/dist/ui/admin/url-field/index.d.cts +9 -0
- package/dist/ui/admin/url-field/index.d.mts +9 -0
- package/dist/ui/admin/url-field/index.mjs +1 -0
- package/dist/ui/admin/video-field/index.cjs +1 -0
- package/dist/ui/admin/video-field/index.d.cts +24 -0
- package/dist/ui/admin/video-field/index.d.mts +24 -0
- package/dist/ui/admin/video-field/index.mjs +1 -0
- package/dist/ui/admin/with-extra-field/index.cjs +1 -0
- package/dist/ui/admin/with-extra-field/index.d.cts +19 -0
- package/dist/ui/admin/with-extra-field/index.d.mts +19 -0
- package/dist/ui/admin/with-extra-field/index.mjs +1 -0
- package/dist/ui/bottom-app-bar/index.cjs +1 -0
- package/dist/ui/bottom-app-bar/index.d.cts +21 -0
- package/dist/ui/bottom-app-bar/index.d.mts +21 -0
- package/dist/ui/bottom-app-bar/index.mjs +1 -0
- package/dist/ui/button/index.cjs +1 -0
- package/dist/{button-DHvx-GAg.d.cts → ui/button/index.d.cts} +11 -11
- package/dist/{button-DRIyBtEB.d.mts → ui/button/index.d.mts} +13 -13
- package/dist/ui/button/index.mjs +1 -0
- package/dist/ui/carousel/index.cjs +1 -1
- package/dist/ui/carousel/index.d.cts +9 -9
- package/dist/ui/carousel/index.mjs +1 -1
- package/dist/ui/conditional-wrapper/index.cjs +1 -0
- package/dist/ui/conditional-wrapper/index.d.cts +29 -0
- package/dist/ui/conditional-wrapper/index.d.mts +29 -0
- package/dist/ui/conditional-wrapper/index.mjs +1 -0
- package/dist/ui/country-flag/index.cjs +1 -0
- package/dist/ui/country-flag/index.d.cts +13 -0
- package/dist/ui/country-flag/index.d.mts +13 -0
- package/dist/ui/country-flag/index.mjs +1 -0
- package/dist/ui/dialog/index.cjs +1 -1
- package/dist/ui/dialog/index.d.cts +5 -5
- package/dist/ui/dialog/index.d.mts +7 -7
- package/dist/ui/dialog/index.mjs +1 -1
- package/dist/ui/dnd/index.cjs +1 -1
- package/dist/ui/dnd/index.d.cts +2 -2
- package/dist/ui/dnd/index.mjs +1 -1
- package/dist/ui/dropdown/index.cjs +1 -1
- package/dist/ui/dropdown/index.d.cts +16 -44
- package/dist/ui/dropdown/index.d.mts +16 -44
- package/dist/ui/dropdown/index.mjs +1 -1
- package/dist/ui/image/index.cjs +1 -1
- package/dist/ui/image/index.d.cts +3 -45
- package/dist/ui/image/index.d.mts +3 -45
- package/dist/ui/image/index.mjs +1 -1
- package/dist/ui/input/index.cjs +1 -0
- package/dist/ui/input/index.d.cts +22 -0
- package/dist/ui/input/index.d.mts +22 -0
- package/dist/ui/input/index.mjs +1 -0
- package/dist/ui/motion-dialog/index.cjs +1 -1
- package/dist/ui/motion-dialog/index.mjs +1 -1
- package/dist/ui/radius-handler/index.cjs +1 -0
- package/dist/ui/radius-handler/index.d.cts +17 -0
- package/dist/ui/radius-handler/index.d.mts +17 -0
- package/dist/ui/radius-handler/index.mjs +1 -0
- package/dist/ui/sheet/index.cjs +1 -1
- package/dist/ui/sheet/index.d.cts +2 -2
- package/dist/ui/sheet/index.d.mts +2 -2
- package/dist/ui/sheet/index.mjs +1 -1
- package/dist/ui/skeleton/index.cjs +1 -0
- package/dist/ui/skeleton/index.d.cts +26 -0
- package/dist/ui/skeleton/index.d.mts +26 -0
- package/dist/ui/skeleton/index.mjs +1 -0
- package/dist/ui/stable-text/index.cjs +1 -0
- package/dist/ui/stable-text/index.d.cts +13 -0
- package/dist/ui/stable-text/index.d.mts +13 -0
- package/dist/ui/stable-text/index.mjs +1 -0
- package/dist/ui/switch/index.cjs +1 -1
- package/dist/ui/switch/index.d.cts +1 -15
- package/dist/ui/switch/index.d.mts +1 -15
- package/dist/ui/switch/index.mjs +1 -1
- package/dist/ui/tooltip/index.cjs +1 -1
- package/dist/ui/tooltip/index.d.cts +2 -2
- package/dist/ui/tooltip/index.d.mts +2 -2
- package/dist/ui/tooltip/index.mjs +1 -1
- package/dist/use-delay-unmount-CNNJXNX5.cjs +1 -0
- package/dist/use-delay-unmount-_wzkutyv.mjs +1 -0
- package/dist/use-drag-resize--3PrrhJj.mjs +1 -0
- package/dist/use-drag-resize-BO3zANv3.cjs +1 -0
- package/dist/use-outside-click-BS2UOXoV.cjs +1 -0
- package/dist/use-outside-click-tsaJo3cz.mjs +1 -0
- package/dist/use-subset-image-B9ZSiVjx.mjs +1 -0
- package/dist/use-subset-image-BUurDItP.cjs +1 -0
- package/dist/util/browser/index.cjs +1 -0
- package/dist/util/{browser.d.cts → browser/index.d.cts} +1 -1
- package/dist/util/{browser.d.mts → browser/index.d.mts} +1 -1
- package/dist/util/common/index.cjs +1 -0
- package/dist/util/{common.d.cts → common/index.d.cts} +5 -5
- package/dist/util/{common.d.mts → common/index.d.mts} +5 -5
- package/dist/{common-ZUMpASnc.mjs → util/common/index.mjs} +1 -1
- package/dist/util/date/index.cjs +1 -0
- package/dist/util/{date.d.cts → date/index.d.cts} +1 -1
- package/dist/util/{date.d.mts → date/index.d.mts} +1 -1
- package/dist/util/editor/index.cjs +1 -0
- package/dist/util/editor/index.d.cts +55 -0
- package/dist/util/editor/index.d.mts +55 -0
- package/dist/util/editor/index.mjs +1 -0
- package/dist/util/fetcher/index.d.cts +2 -0
- package/dist/util/fetcher/index.d.mts +2 -0
- package/dist/util/file/index.cjs +1 -0
- package/dist/util/{file.d.mts → file/index.d.cts} +2 -2
- package/dist/util/{file.d.cts → file/index.d.mts} +2 -2
- package/dist/util/file/index.mjs +1 -0
- package/dist/util/format/index.cjs +1 -0
- package/dist/util/format/index.d.cts +6 -0
- package/dist/util/format/index.d.mts +6 -0
- package/dist/util/format/index.mjs +1 -0
- package/dist/util/generator/index.cjs +1 -0
- package/dist/util/{generator.d.cts → generator/index.d.cts} +1 -1
- package/dist/util/{generator.d.mts → generator/index.d.mts} +1 -1
- package/dist/util/phone/index.cjs +1 -0
- package/dist/util/{phone.d.cts → phone/index.d.cts} +1 -1
- package/dist/util/{phone.d.mts → phone/index.d.mts} +1 -1
- package/package.json +151 -108
- package/dist/button-CQZuaIU7.mjs +0 -1
- package/dist/button-ChX3XGbR.cjs +0 -1
- package/dist/common-B8HXyhZa.cjs +0 -1
- package/dist/common-CWHkXe0F.mjs +0 -1
- package/dist/common-D4sUwkFd.cjs +0 -1
- package/dist/file-5mweNdAM.cjs +0 -1
- package/dist/format-1_RTNUQv.mjs +0 -1
- package/dist/format-DEuImTYJ.cjs +0 -1
- package/dist/hooks/common/index.cjs +0 -1
- package/dist/hooks/common/index.d.cts +0 -72
- package/dist/hooks/common/index.d.mts +0 -72
- package/dist/hooks/common/index.mjs +0 -1
- package/dist/hooks/use-snackbar.cjs +0 -1
- package/dist/skeleton-B5ZccRFX.cjs +0 -1
- package/dist/skeleton-Y22bmaaB.mjs +0 -1
- package/dist/src-6KfzqI9Z.cjs +0 -1
- package/dist/src-CIMlbgv1.mjs +0 -1
- package/dist/ui/index.cjs +0 -1
- package/dist/ui/index.d.cts +0 -92
- package/dist/ui/index.d.mts +0 -92
- package/dist/ui/index.mjs +0 -1
- package/dist/ui/preserve-focus-button/index.cjs +0 -1
- package/dist/ui/preserve-focus-button/index.d.cts +0 -12
- package/dist/ui/preserve-focus-button/index.d.mts +0 -12
- package/dist/ui/preserve-focus-button/index.mjs +0 -1
- package/dist/ui-Bs9PP9eC.cjs +0 -1
- package/dist/ui-D2DoC_0E.mjs +0 -1
- package/dist/use-drag-resize-BdeLdulk.mjs +0 -1
- package/dist/use-drag-resize-DEgcua2U.d.cts +0 -48
- package/dist/use-drag-resize-DRHPv5RK.d.mts +0 -48
- package/dist/use-drag-resize-DeDqPC4h.cjs +0 -1
- package/dist/use-subset-image-Df2fCrtH.mjs +0 -1
- package/dist/use-subset-image-o_gmC1HL.cjs +0 -1
- package/dist/util/browser.cjs +0 -1
- package/dist/util/common.cjs +0 -1
- package/dist/util/common.mjs +0 -1
- package/dist/util/date.cjs +0 -1
- package/dist/util/editor.cjs +0 -1
- package/dist/util/editor.d.cts +0 -21
- package/dist/util/editor.d.mts +0 -21
- package/dist/util/editor.mjs +0 -1
- package/dist/util/file.cjs +0 -1
- package/dist/util/file.mjs +0 -1
- package/dist/util/format.cjs +0 -1
- package/dist/util/format.d.cts +0 -34
- package/dist/util/format.d.mts +0 -34
- package/dist/util/format.mjs +0 -1
- package/dist/util/generator.cjs +0 -1
- package/dist/util/phone.cjs +0 -1
- /package/dist/hooks/{use-snackbar.mjs → use-snackbar/index.mjs} +0 -0
- /package/dist/{use-dialog-stack-YiLs-sNf.cjs → use-dialog-stack-CH2nhH1Q.cjs} +0 -0
- /package/dist/{use-dialog-stack-Crj8YWJl.mjs → use-dialog-stack-nI1GTvfl.mjs} +0 -0
- /package/dist/util/{browser.mjs → browser/index.mjs} +0 -0
- /package/dist/util/{date.mjs → date/index.mjs} +0 -0
- /package/dist/util/{fetcher.cjs → fetcher/index.cjs} +0 -0
- /package/dist/util/{fetcher.mjs → fetcher/index.mjs} +0 -0
- /package/dist/util/{generator.mjs → generator/index.mjs} +0 -0
- /package/dist/util/{phone.mjs → phone/index.mjs} +0 -0
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { n as LabelProps } from "../../../index-BKqI0jBF.mjs";
|
|
2
|
+
import { VariantProps } from "class-variance-authority";
|
|
3
|
+
import * as react46 from "react";
|
|
4
|
+
import { ComponentProps } from "react";
|
|
5
|
+
import * as class_variance_authority_types11 from "class-variance-authority/types";
|
|
6
|
+
|
|
7
|
+
//#region src/ui/admin/text-area-field/text-area.d.ts
|
|
8
|
+
declare const classes: (props?: ({
|
|
9
|
+
size?: "xs" | "sm" | "lg" | "md" | null | undefined;
|
|
10
|
+
invalid?: boolean | null | undefined;
|
|
11
|
+
shadow?: boolean | null | undefined;
|
|
12
|
+
resize?: "auto" | "none" | null | undefined;
|
|
13
|
+
} & class_variance_authority_types11.ClassProp) | undefined) => string;
|
|
14
|
+
interface TextareaFieldProps extends Omit<ComponentProps<'textarea'>, 'size' | 'ref' | 'color'>, VariantProps<typeof classes> {
|
|
15
|
+
label?: Omit<LabelProps, 'children'>;
|
|
16
|
+
variant?: 'default';
|
|
17
|
+
}
|
|
18
|
+
declare const TextareaField: react46.ForwardRefExoticComponent<TextareaFieldProps & react46.RefAttributes<HTMLTextAreaElement>>;
|
|
19
|
+
//#endregion
|
|
20
|
+
export { TextareaField, TextareaFieldProps };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";import{t as e}from"../../../label-DeEAgKAc.mjs";import{cva as t}from"class-variance-authority";import{forwardRef as n,useEffect as r,useRef as i}from"react";import a from"clsx";import{jsx as o}from"react/jsx-runtime";const s=t(a(`komc:w-full komc:py-3 komc:m-0 komc:text-lg komc:leading-5.5`,`komc:focus:form-field komc-active`,`komc:bg-white komc:border-[0.6px] komc:border-neutral-300 komc:relative`,`komc:outline-none komc-no-scrollbar`),{variants:{size:{xs:`komc:min-h-8 komc:rounded-sm komc:px-2.5`,sm:`komc:min-h-8.5 komc:rounded-sm komc:px-4`,md:`komc:min-h-9.5 komc:rounded-sm komc:px-4`,lg:`komc:min-h-11.5 komc:rounded-lg komc:px-4`},invalid:{true:`komc-error`,false:``},shadow:{true:`komc:shadow-field`,false:``},resize:{none:`komc:resize-none`,auto:`komc:resize`}},defaultVariants:{size:`lg`,invalid:!1,shadow:!0,resize:`auto`}}),c=n(({label:t,size:n,className:a,invalid:c,shadow:l,resize:u,...d},f)=>{let p=i(null),m=e=>{p.current=e,typeof f==`function`?f(e):f&&(f.current=e)},h=e=>{e&&(e.style.height=`auto`,e.style.height=`${e.scrollHeight}px`)},g=e=>{h(e.currentTarget),d.onInput?.(e)};return r(()=>{h(p.current)},[d.value,d.defaultValue]),o(e,{...t,children:o(`textarea`,{"data-komc":!0,ref:m,id:t?.id,rows:1,className:s({size:n,invalid:c,className:a,shadow:l,resize:u}),...d,onInput:g})})});export{c as TextareaField};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";require(`../../../label-jZuNIGyF.cjs`);const e=require(`../../../text-field-CTxoUkAg.cjs`);exports.TextField=e.t;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";import"../../../label-DeEAgKAc.mjs";import{t as e}from"../../../text-field-D2x9nugT.mjs";export{e as TextField};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";const e=require(`../../../chunk-Bmb41Sf3.cjs`);require(`../../../label-jZuNIGyF.cjs`);const t=require(`../../../text-field-CTxoUkAg.cjs`);let n=require(`react`),r=require(`react/jsx-runtime`);const i=/^https?:\/\/([\w-]+\.)+[\w-]{2,}(\/[\w\-._~:/?#[\]@!$&'()*+,;=]*)?$/i,a=e=>{let t=String(e);return t===``||t===`undefined`||i.test(t)},o=(0,n.forwardRef)(({label:e={},size:i=`lg`,...o},s)=>{let c=(0,n.useRef)(null),{helpText:l=`Invalid URL`,helpTextColor:u=`error`,...d}=e,[f,p]=(0,n.useState)(!a(o.defaultValue||o.value)),m=e=>{let t=e.target.value;o.onChange?.(e),p(!a(t))},h=(0,n.useCallback)(e=>{c.current=e,typeof s==`function`&&s(e)},[s]);return(0,n.useEffect)(()=>{c.current?.value&&p(!a(c.current.value))},[]),(0,n.useEffect)(()=>{(o.defaultValue||o.value)&&p(!a(o.defaultValue||o.value))},[o.defaultValue,o.value]),(0,r.jsx)(t.t,{label:{helpTextColor:f?u:`default`,helpText:f?l:``,...d},placeholder:`https://example.com`,size:i,id:d.id,invalid:f,...o,type:`url`,onChange:m,ref:h})});exports.UrlField=o;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import "../../../index-DrUJZDtK.cjs";
|
|
2
|
+
import { r as TextFieldProps } from "../../../index-BJgz2hkX.cjs";
|
|
3
|
+
import * as react33 from "react";
|
|
4
|
+
|
|
5
|
+
//#region src/ui/admin/url-field/url-field.d.ts
|
|
6
|
+
type UrlFieldProps = TextFieldProps;
|
|
7
|
+
declare const UrlField: react33.ForwardRefExoticComponent<TextFieldProps & react33.RefAttributes<HTMLInputElement>>;
|
|
8
|
+
//#endregion
|
|
9
|
+
export { UrlField, UrlFieldProps };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import "../../../index-BKqI0jBF.mjs";
|
|
2
|
+
import { r as TextFieldProps } from "../../../index-BoJg4HO3.mjs";
|
|
3
|
+
import * as react29 from "react";
|
|
4
|
+
|
|
5
|
+
//#region src/ui/admin/url-field/url-field.d.ts
|
|
6
|
+
type UrlFieldProps = TextFieldProps;
|
|
7
|
+
declare const UrlField: react29.ForwardRefExoticComponent<TextFieldProps & react29.RefAttributes<HTMLInputElement>>;
|
|
8
|
+
//#endregion
|
|
9
|
+
export { UrlField, UrlFieldProps };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";import"../../../label-DeEAgKAc.mjs";import{t as e}from"../../../text-field-D2x9nugT.mjs";import{forwardRef as t,useCallback as n,useEffect as r,useRef as i,useState as a}from"react";import{jsx as o}from"react/jsx-runtime";const s=/^https?:\/\/([\w-]+\.)+[\w-]{2,}(\/[\w\-._~:/?#[\]@!$&'()*+,;=]*)?$/i,c=e=>{let t=String(e);return t===``||t===`undefined`||s.test(t)},l=t(({label:t={},size:s=`lg`,...l},u)=>{let d=i(null),{helpText:f=`Invalid URL`,helpTextColor:p=`error`,...m}=t,[h,g]=a(!c(l.defaultValue||l.value)),_=e=>{let t=e.target.value;l.onChange?.(e),g(!c(t))},v=n(e=>{d.current=e,typeof u==`function`&&u(e)},[u]);return r(()=>{d.current?.value&&g(!c(d.current.value))},[]),r(()=>{(l.defaultValue||l.value)&&g(!c(l.defaultValue||l.value))},[l.defaultValue,l.value]),o(e,{label:{helpTextColor:h?p:`default`,helpText:h?f:``,...m},placeholder:`https://example.com`,size:s,id:m.id,invalid:h,...l,type:`url`,onChange:_,ref:v})});export{l as UrlField};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";const e=require(`../../../chunk-Bmb41Sf3.cjs`),t=require(`../../../dnd-DHNRwFj8.cjs`),n=require(`../../../label-jZuNIGyF.cjs`),r=require(`../../../text-field-CTxoUkAg.cjs`);let i=require(`class-variance-authority`),a=require(`react`),o=require(`clsx`);o=e.t(o);let s=require(`react/jsx-runtime`);const c=(0,i.cva)((0,o.default)(`komc:flex komc:flex-row komc:items-center komc:gap-x-4`,`komc:w-full komc:h-15.5 komc:px-4 komc:py-3 komc:rounded-sm`,`komc:border-[0.6px] komc:border-neutral-300 komc:shadow-field`),{variants:{disabled:{true:`komc:bg-white/40`,false:`komc:bg-white`}},defaultVariants:{disabled:!1}}),l=`komc:flex komc:justify-center komc:items-center komc:w-5 komc:h-5 komc:aspect-square komc:[&_svg]:w-3.5 komc:[&_svg]:h-4 komc:[&_svg]:text-neutral-500`,u=(0,a.forwardRef)(({label:e,dragId:r,...i},a)=>(0,s.jsx)(t.t,{id:r,render:(t,r)=>(0,s.jsx)(n.t,{...e,children:(0,s.jsx)(d,{id:e?.id,...i,ref:a,attributes:t,listeners:r})})})),d=(0,a.forwardRef)(({disabled:e=!1,attributes:t,listeners:n,placeholder:i=`URL`,onDelete:a,handle:u,action:d,...f},p)=>(0,s.jsxs)(`div`,{"data-komc":!0,className:c({disabled:e}),children:[(0,s.jsx)(`div`,{className:(0,o.default)(l,`komc:cursor-grab`),"aria-label":`Drag to reorder`,...t,...n,children:u}),(0,s.jsx)(r.t,{...f,size:`md`,disabled:e,placeholder:i,ref:p}),(0,s.jsx)(`button`,{type:`button`,className:(0,o.default)(l,`komc:cursor-pointer`),disabled:e,"aria-label":`Delete`,onClick:a,children:d})]}));exports.VideoField=u,exports.VideoFieldItem=d;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { n as LabelProps } from "../../../index-DrUJZDtK.cjs";
|
|
2
|
+
import * as react38 from "react";
|
|
3
|
+
import { ComponentProps, ReactNode } from "react";
|
|
4
|
+
import { DraggableAttributes } from "@dnd-kit/core";
|
|
5
|
+
import { useSortable } from "@dnd-kit/sortable";
|
|
6
|
+
|
|
7
|
+
//#region src/ui/admin/video-field/video-field.d.ts
|
|
8
|
+
interface VideoFieldProps extends ComponentProps<'input'> {
|
|
9
|
+
label?: Omit<LabelProps, 'children'>;
|
|
10
|
+
dragId: string;
|
|
11
|
+
disabled?: boolean;
|
|
12
|
+
onDelete: () => void;
|
|
13
|
+
handle: ReactNode;
|
|
14
|
+
action: ReactNode;
|
|
15
|
+
}
|
|
16
|
+
type SortableListeners = ReturnType<typeof useSortable>['listeners'];
|
|
17
|
+
declare const VideoField: react38.ForwardRefExoticComponent<Omit<VideoFieldProps, "ref"> & react38.RefAttributes<HTMLInputElement>>;
|
|
18
|
+
interface VideoFieldItemProps extends Omit<VideoFieldProps, 'dragId'> {
|
|
19
|
+
attributes: DraggableAttributes;
|
|
20
|
+
listeners?: SortableListeners;
|
|
21
|
+
}
|
|
22
|
+
declare const VideoFieldItem: react38.ForwardRefExoticComponent<Omit<VideoFieldItemProps, "ref"> & react38.RefAttributes<HTMLInputElement>>;
|
|
23
|
+
//#endregion
|
|
24
|
+
export { VideoField, VideoFieldItem, VideoFieldItemProps, VideoFieldProps };
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { n as LabelProps } from "../../../index-BKqI0jBF.mjs";
|
|
2
|
+
import * as react15 from "react";
|
|
3
|
+
import { ComponentProps, ReactNode } from "react";
|
|
4
|
+
import { useSortable } from "@dnd-kit/sortable";
|
|
5
|
+
import { DraggableAttributes } from "@dnd-kit/core";
|
|
6
|
+
|
|
7
|
+
//#region src/ui/admin/video-field/video-field.d.ts
|
|
8
|
+
interface VideoFieldProps extends ComponentProps<'input'> {
|
|
9
|
+
label?: Omit<LabelProps, 'children'>;
|
|
10
|
+
dragId: string;
|
|
11
|
+
disabled?: boolean;
|
|
12
|
+
onDelete: () => void;
|
|
13
|
+
handle: ReactNode;
|
|
14
|
+
action: ReactNode;
|
|
15
|
+
}
|
|
16
|
+
type SortableListeners = ReturnType<typeof useSortable>['listeners'];
|
|
17
|
+
declare const VideoField: react15.ForwardRefExoticComponent<Omit<VideoFieldProps, "ref"> & react15.RefAttributes<HTMLInputElement>>;
|
|
18
|
+
interface VideoFieldItemProps extends Omit<VideoFieldProps, 'dragId'> {
|
|
19
|
+
attributes: DraggableAttributes;
|
|
20
|
+
listeners?: SortableListeners;
|
|
21
|
+
}
|
|
22
|
+
declare const VideoFieldItem: react15.ForwardRefExoticComponent<Omit<VideoFieldItemProps, "ref"> & react15.RefAttributes<HTMLInputElement>>;
|
|
23
|
+
//#endregion
|
|
24
|
+
export { VideoField, VideoFieldItem, VideoFieldItemProps, VideoFieldProps };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";import{t as e}from"../../../dnd-CeWNVM-V.mjs";import{t}from"../../../label-DeEAgKAc.mjs";import{t as n}from"../../../text-field-D2x9nugT.mjs";import{cva as r}from"class-variance-authority";import{forwardRef as i}from"react";import a from"clsx";import{jsx as o,jsxs as s}from"react/jsx-runtime";const c=r(a(`komc:flex komc:flex-row komc:items-center komc:gap-x-4`,`komc:w-full komc:h-15.5 komc:px-4 komc:py-3 komc:rounded-sm`,`komc:border-[0.6px] komc:border-neutral-300 komc:shadow-field`),{variants:{disabled:{true:`komc:bg-white/40`,false:`komc:bg-white`}},defaultVariants:{disabled:!1}}),l=`komc:flex komc:justify-center komc:items-center komc:w-5 komc:h-5 komc:aspect-square komc:[&_svg]:w-3.5 komc:[&_svg]:h-4 komc:[&_svg]:text-neutral-500`,u=i(({label:n,dragId:r,...i},a)=>o(e,{id:r,render:(e,r)=>o(t,{...n,children:o(d,{id:n?.id,...i,ref:a,attributes:e,listeners:r})})})),d=i(({disabled:e=!1,attributes:t,listeners:r,placeholder:i=`URL`,onDelete:u,handle:d,action:f,...p},m)=>s(`div`,{"data-komc":!0,className:c({disabled:e}),children:[o(`div`,{className:a(l,`komc:cursor-grab`),"aria-label":`Drag to reorder`,...t,...r,children:d}),o(n,{...p,size:`md`,disabled:e,placeholder:i,ref:m}),o(`button`,{type:`button`,className:a(l,`komc:cursor-pointer`),disabled:e,"aria-label":`Delete`,onClick:u,children:f})]}));export{u as VideoField,d as VideoFieldItem};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";const e=require(`../../../chunk-Bmb41Sf3.cjs`);let t=require(`react`),n=require(`clsx`);n=e.t(n);let r=require(`react/jsx-runtime`),i=require(`react-hook-form`);function a(e){return(0,t.forwardRef)((t,a)=>{let{control:o,extraFieldName:s,defaultValue:c,add:l,remove:u,...d}=t,{fields:f,append:p,remove:m}=(0,i.useFieldArray)({control:o,name:s});return(0,r.jsxs)(`div`,{"data-komc":!0,className:`komc:flex komc:flex-col komc:gap-y-4 komc:w-full komc:relative`,children:[(0,r.jsx)(e,{...d,ref:a}),f.map((t,a)=>(0,r.jsxs)(`div`,{className:`komc:flex komc:items-center komc:w-full komc:relative komc:group/item`,children:[(0,r.jsx)(i.Controller,{name:`${s}.${a}`,control:o,render:({field:t})=>(0,r.jsx)(e,{...t})}),(0,r.jsx)(`button`,{type:`button`,className:(0,n.default)(`komc:flex komc:justify-center komc:w-7.5 komc:h-7.5 komc:bg-red-50 komc:rounded-sm komc:items-center`,`komc:right-1 komc:top-1 komc:absolute komc:cursor-pointer`,`komc:opacity-0 komc:group-hover/item:opacity-100 komc:focus-visible:opacity-100 komc:focus-within:opacity-100`,`komc:[&_svg]:w-4 komc:[&_svg]:h-4 komc:[&_svg]:text-red-500`),"aria-label":`Delete`,onClick:()=>m(a),children:u})]},t.id)),(0,r.jsx)(`button`,{type:`button`,className:(0,n.default)(`komc:flex komc:justify-center komc:w-7.5 komc:h-7.5 komc:bg-blue-100 komc:rounded-sm komc:items-center`,`komc:right-0 komc:top-0 komc:absolute komc:cursor-pointer`,`komc:[&_svg]:w-4 komc:[&_svg]:h-4`),"aria-label":`Add`,onClick:()=>p(c||``,{shouldFocus:!0}),children:l})]})})}exports.withExtraField=a;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { t as Label } from "../../../index-DrUJZDtK.cjs";
|
|
2
|
+
import * as react3 from "react";
|
|
3
|
+
import { ComponentProps, ComponentType, PropsWithoutRef, ReactNode } from "react";
|
|
4
|
+
import { Control, FieldValues, Path } from "react-hook-form";
|
|
5
|
+
|
|
6
|
+
//#region src/ui/admin/with-extra-field/with-extra-field.d.ts
|
|
7
|
+
interface ExtraFieldProps<T extends FieldValues = FieldValues> {
|
|
8
|
+
control: Control<T>;
|
|
9
|
+
extraFieldName: Path<T>;
|
|
10
|
+
defaultValue?: string;
|
|
11
|
+
add: ReactNode;
|
|
12
|
+
remove: ReactNode;
|
|
13
|
+
}
|
|
14
|
+
interface BaseHOCProps {
|
|
15
|
+
label?: ComponentProps<typeof Label>;
|
|
16
|
+
}
|
|
17
|
+
declare function withExtraField<T extends FieldValues, F>(Component: ComponentType<F>): react3.ForwardRefExoticComponent<PropsWithoutRef<PropsWithoutRef<F> & ExtraFieldProps<T> & BaseHOCProps> & react3.RefAttributes<unknown>>;
|
|
18
|
+
//#endregion
|
|
19
|
+
export { BaseHOCProps, ExtraFieldProps, withExtraField };
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { t as Label } from "../../../index-BKqI0jBF.mjs";
|
|
2
|
+
import * as react19 from "react";
|
|
3
|
+
import { ComponentProps, ComponentType, PropsWithoutRef, ReactNode } from "react";
|
|
4
|
+
import { Control, FieldValues, Path } from "react-hook-form";
|
|
5
|
+
|
|
6
|
+
//#region src/ui/admin/with-extra-field/with-extra-field.d.ts
|
|
7
|
+
interface ExtraFieldProps<T extends FieldValues = FieldValues> {
|
|
8
|
+
control: Control<T>;
|
|
9
|
+
extraFieldName: Path<T>;
|
|
10
|
+
defaultValue?: string;
|
|
11
|
+
add: ReactNode;
|
|
12
|
+
remove: ReactNode;
|
|
13
|
+
}
|
|
14
|
+
interface BaseHOCProps {
|
|
15
|
+
label?: ComponentProps<typeof Label>;
|
|
16
|
+
}
|
|
17
|
+
declare function withExtraField<T extends FieldValues, F>(Component: ComponentType<F>): react19.ForwardRefExoticComponent<PropsWithoutRef<PropsWithoutRef<F> & ExtraFieldProps<T> & BaseHOCProps> & react19.RefAttributes<unknown>>;
|
|
18
|
+
//#endregion
|
|
19
|
+
export { BaseHOCProps, ExtraFieldProps, withExtraField };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";import{forwardRef as e}from"react";import t from"clsx";import{jsx as n,jsxs as r}from"react/jsx-runtime";import{Controller as i,useFieldArray as a}from"react-hook-form";function o(o){return e((e,s)=>{let{control:c,extraFieldName:l,defaultValue:u,add:d,remove:f,...p}=e,{fields:m,append:h,remove:g}=a({control:c,name:l});return r(`div`,{"data-komc":!0,className:`komc:flex komc:flex-col komc:gap-y-4 komc:w-full komc:relative`,children:[n(o,{...p,ref:s}),m.map((e,a)=>r(`div`,{className:`komc:flex komc:items-center komc:w-full komc:relative komc:group/item`,children:[n(i,{name:`${l}.${a}`,control:c,render:({field:e})=>n(o,{...e})}),n(`button`,{type:`button`,className:t(`komc:flex komc:justify-center komc:w-7.5 komc:h-7.5 komc:bg-red-50 komc:rounded-sm komc:items-center`,`komc:right-1 komc:top-1 komc:absolute komc:cursor-pointer`,`komc:opacity-0 komc:group-hover/item:opacity-100 komc:focus-visible:opacity-100 komc:focus-within:opacity-100`,`komc:[&_svg]:w-4 komc:[&_svg]:h-4 komc:[&_svg]:text-red-500`),"aria-label":`Delete`,onClick:()=>g(a),children:f})]},e.id)),n(`button`,{type:`button`,className:t(`komc:flex komc:justify-center komc:w-7.5 komc:h-7.5 komc:bg-blue-100 komc:rounded-sm komc:items-center`,`komc:right-0 komc:top-0 komc:absolute komc:cursor-pointer`,`komc:[&_svg]:w-4 komc:[&_svg]:h-4`),"aria-label":`Add`,onClick:()=>h(u||``,{shouldFocus:!0}),children:d})]})})}export{o as withExtraField};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e=require(`../../chunk-Bmb41Sf3.cjs`);let t=require(`class-variance-authority`),n=require(`react`);n=e.t(n);let r=require(`clsx`);r=e.t(r);let i=require(`react/jsx-runtime`);const a=(0,t.cva)(`komc:grid`,{variants:{size:{auto:``,xxs:`komc:min-h-10`,xs:`komc:min-h-12`,"xs-caption":`komc:min-h-12.5`,caption:`komc:min-h-13`,sm:`komc:min-h-14`,"sm-base":`komc:min-h-15`,base:`komc:min-h-16`,"base-lg":`komc:min-h-17`,lg:`komc:min-h-18`}},defaultVariants:{size:`sm-base`}});function o({className:e,items:t,render:o,size:s,...c}){return(0,i.jsx)(`nav`,{"data-komc":!0,"aria-label":`bottom app bar`,className:(0,r.default)(`komc:fixed komc:bottom-0 komc:left-0 komc:right-0`,`komc:border-t komc:border-neutral-200 komc:bg-white komc:z-10`,e),...c,children:(0,i.jsx)(`ul`,{className:a({size:s}),style:{gridTemplateColumns:`repeat(${t.length}, 1fr)`},children:t.map((e,t)=>(0,i.jsx)(n.default.Fragment,{children:o(e)},t))})})}exports.BottomAppBar=o;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { VariantProps } from "class-variance-authority";
|
|
3
|
+
import * as class_variance_authority_types0 from "class-variance-authority/types";
|
|
4
|
+
|
|
5
|
+
//#region src/ui/bottom-app-bar/bottom-app-bar.d.ts
|
|
6
|
+
declare const classes: (props?: ({
|
|
7
|
+
size?: "auto" | "xxs" | "xs" | "xs-caption" | "caption" | "sm" | "sm-base" | "base" | "base-lg" | "lg" | null | undefined;
|
|
8
|
+
} & class_variance_authority_types0.ClassProp) | undefined) => string;
|
|
9
|
+
interface BottomAppBarProps<T> extends React.HTMLAttributes<HTMLElement>, VariantProps<typeof classes> {
|
|
10
|
+
items: T[];
|
|
11
|
+
render: (item: T) => React.ReactNode;
|
|
12
|
+
}
|
|
13
|
+
declare function BottomAppBar<T>({
|
|
14
|
+
className,
|
|
15
|
+
items,
|
|
16
|
+
render,
|
|
17
|
+
size,
|
|
18
|
+
...props
|
|
19
|
+
}: BottomAppBarProps<T>): React.ReactNode;
|
|
20
|
+
//#endregion
|
|
21
|
+
export { BottomAppBar, type BottomAppBarProps };
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { VariantProps } from "class-variance-authority";
|
|
2
|
+
import React from "react";
|
|
3
|
+
import * as class_variance_authority_types0 from "class-variance-authority/types";
|
|
4
|
+
|
|
5
|
+
//#region src/ui/bottom-app-bar/bottom-app-bar.d.ts
|
|
6
|
+
declare const classes: (props?: ({
|
|
7
|
+
size?: "auto" | "xxs" | "xs" | "xs-caption" | "caption" | "sm" | "sm-base" | "base" | "base-lg" | "lg" | null | undefined;
|
|
8
|
+
} & class_variance_authority_types0.ClassProp) | undefined) => string;
|
|
9
|
+
interface BottomAppBarProps<T> extends React.HTMLAttributes<HTMLElement>, VariantProps<typeof classes> {
|
|
10
|
+
items: T[];
|
|
11
|
+
render: (item: T) => React.ReactNode;
|
|
12
|
+
}
|
|
13
|
+
declare function BottomAppBar<T>({
|
|
14
|
+
className,
|
|
15
|
+
items,
|
|
16
|
+
render,
|
|
17
|
+
size,
|
|
18
|
+
...props
|
|
19
|
+
}: BottomAppBarProps<T>): React.ReactNode;
|
|
20
|
+
//#endregion
|
|
21
|
+
export { BottomAppBar, type BottomAppBarProps };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{cva as e}from"class-variance-authority";import t from"react";import n from"clsx";import{jsx as r}from"react/jsx-runtime";const i=e(`komc:grid`,{variants:{size:{auto:``,xxs:`komc:min-h-10`,xs:`komc:min-h-12`,"xs-caption":`komc:min-h-12.5`,caption:`komc:min-h-13`,sm:`komc:min-h-14`,"sm-base":`komc:min-h-15`,base:`komc:min-h-16`,"base-lg":`komc:min-h-17`,lg:`komc:min-h-18`}},defaultVariants:{size:`sm-base`}});function a({className:e,items:a,render:o,size:s,...c}){return r(`nav`,{"data-komc":!0,"aria-label":`bottom app bar`,className:n(`komc:fixed komc:bottom-0 komc:left-0 komc:right-0`,`komc:border-t komc:border-neutral-200 komc:bg-white komc:z-10`,e),...c,children:r(`ul`,{className:i({size:s}),style:{gridTemplateColumns:`repeat(${a.length}, 1fr)`},children:a.map((e,n)=>r(t.Fragment,{children:o(e)},n))})})}export{a as BottomAppBar};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e=require(`../../chunk-Bmb41Sf3.cjs`);let t=require(`class-variance-authority`),n=require(`react`),r=require(`clsx`);r=e.t(r);let i=require(`react/jsx-runtime`),a=require(`@radix-ui/react-slot`);const o=(0,t.cva)((0,r.default)(`komc:flex komc:justify-center komc:items-center komc:gap-x-2 komc:w-full`,`komc:transition-colors komc:duration-200 komc:relative`,`komc:[&_svg]:transition-colors komc:[&_svg]:duration-200`,`komc:cursor-pointer komc:disabled:cursor-default`),{variants:{size:{xxs:`komc:h-7.5`,xs:`komc:h-8`,sm:`komc:h-9`,md:`komc:h-10`,lg:`komc:h-11`,xl:`komc:h-12`,"2xl":`komc:h-13`,"3xl":`komc:h-14`,"4xl":`komc:h-15`},shadow:{none:``,sm:`komc:drop-shadow-sm`,md:`komc:drop-shadow-md`,lg:`komc:drop-shadow-lg`,xl:`komc:drop-shadow-xl`,"2xl":`komc:drop-shadow-2xl`,"3xl":`komc:drop-shadow-3xl`},outline:{line:`komc:border`,solid:`komc:border komc:border-transparent`,clear:`komc:border-none`},variant:{blue:``,duo:``,white:``,gray:``,neutral:``,night:``,black:``,sky:``,"sky-blue":``,indigo:``},px:{none:`komc:px-0`,xs:`komc:px-0.5`,sm:`komc:px-1`,md:`komc:px-1.5`,lg:`komc:px-2`,xl:`komc:px-3`,"2xl":`komc:px-4`,"3xl":`komc:px-5`,"4xl":`komc:px-6`},rounded:{none:`komc:rounded-none`,sm:`komc:rounded-sm`,md:`komc:rounded-md`,lg:`komc:rounded-lg`,xl:`komc:rounded-xl`,"2xl":`komc:rounded-2xl`,"3xl":`komc:rounded-3xl`,full:`komc:rounded-full`}},compoundVariants:[{outline:`line`,variant:`blue`,className:(0,r.default)(`komc:border-blue-500 komc:bg-white komc:text-blue-500`,`komc:hover:border-transparent komc:hover:bg-blue-500 komc:hover:text-white`,`komc:active:border-transparent komc:active:bg-blue-500 komc:active:text-white`,`komc:disabled:border-gray-500 komc:disabled:bg-white komc:disabled:text-gray-500`)},{outline:`line`,variant:`duo`,className:(0,r.default)(`komc:border-blue-500 komc:bg-white komc:text-brand-blck`,`komc:hover:border-transparent komc:hover:bg-blue-500 komc:hover:text-white`,`komc:active:border-transparent komc:active:bg-blue-500 komc:active:text-white`,`komc:disabled:border-gray-500 komc:disabled:bg-white komc:disabled:text-gray-500`)},{outline:`line`,variant:`white`,className:(0,r.default)(`komc:border-gray-600 komc:bg-white komc:text-brand-blck`,`komc:hover:bg-gray-200 komc:hover:text-brand-blck`,`komc:active:bg-gray-200 komc:active:text-brand-blck`,`komc:disabled:border-gray-500 komc:disabled:bg-white komc:disabled:text-gray-500`)},{outline:`line`,variant:`gray`,className:(0,r.default)(`komc:border-white komc:bg-transparent komc:text-white`,`komc:hover:bg-[rgb(199,199,199)] komc:hover:text-white`,`komc:active:bg-[rgb(199,199,199)] komc:active:text-white`,`komc:disabled:border-gray-500 komc:disabled:bg-white komc:disabled:text-gray-500`)},{outline:`line`,variant:`neutral`,className:(0,r.default)(`komc:border-gray-800 komc:bg-transparent komc:text-black`,`komc:hover:bg-gray-200 komc:hover:text-black`,`komc:active:bg-gray-200 komc:active:text-black`,`komc:disabled:border-gray-500 komc:disabled:bg-transparent komc:disabled:text-gray-500`)},{outline:`line`,variant:`sky`,className:(0,r.default)(`komc:border-sky-750 komc:bg-transparent komc:text-black`,`komc:hover:bg-sky-750 komc:hover:text-white`,`komc:active:bg-sky-750 komc:active:text-white`,`komc:disabled:border-gray-500 komc:disabled:bg-transparent komc:disabled:text-gray-500`)},{outline:`line`,variant:`sky-blue`,className:(0,r.default)(`komc:border-sky-450 komc:bg-transparent komc:text-black`,`komc:hover:bg-sky-450 komc:hover:text-white`,`komc:active:bg-sky-450 komc:active:text-white`,`komc:disabled:border-gray-500 komc:disabled:bg-transparent komc:disabled:text-gray-500`)},{outline:`solid`,variant:`white`,className:(0,r.default)(`komc:bg-white komc:text-brand-blck`,`komc:hover:bg-gray-200`,`komc:active:bg-gray-200`,`komc:disabled:border-white komc:disabled:bg-gray-50 komc:disabled:text-gray-800`)},{outline:`solid`,variant:`gray`,className:(0,r.default)(`komc:bg-gray-100 komc:text-blue-500`,`komc:hover:bg-blue-500 komc:hover:text-white`,`komc:active:bg-blue-500 komc:active:text-white`,`komc:disabled:border-white komc:disabled:bg-gray-50 komc:disabled:text-gray-800`)},{outline:`solid`,variant:`blue`,className:(0,r.default)(`komc:bg-blue-500 komc:text-white`,`komc:hover:bg-night-700 komc:hover:text-white`,`komc:active:bg-night-700 komc:active:text-white`,`komc:disabled:border-white komc:disabled:bg-gray-50 komc:disabled:text-gray-800`)},{outline:`solid`,variant:`night`,className:(0,r.default)(`komc:bg-night-700 komc:text-white`,`komc:hover:bg-night-800 komc:hover:text-white`,`komc:active:bg-night-800 komc:active:text-white`,`komc:disabled:border-white komc:disabled:bg-gray-50 komc:disabled:text-gray-800`)},{outline:`solid`,variant:`black`,className:(0,r.default)(`komc:bg-[rgb(95,95,96)] komc:text-white`,`komc:hover:bg-[rgb(76,76,77)] komc:hover:text-white`,`komc:active:bg-[rgb(76,76,77)] komc:active:text-white`,`komc:disabled:border-white komc:disabled:bg-gray-50 komc:disabled:text-gray-800`)},{outline:`solid`,variant:`sky`,className:(0,r.default)(`komc:bg-sky-750 komc:text-white`,`komc:hover:bg-sky-950 komc:hover:text-white`,`komc:active:bg-sky-950 komc:active:text-white`,`komc:disabled:border-white komc:disabled:bg-gray-700`)},{outline:`solid`,variant:`sky-blue`,className:(0,r.default)(`komc:bg-sky-450 komc:text-white`,`komc:hover:bg-sky-650 komc:hover:text-white`,`komc:active:bg-sky-650 komc:active:text-white`,`komc:disabled:border-white komc:disabled:bg-gray-700`)},{outline:`solid`,variant:`indigo`,className:(0,r.default)(`komc:bg-indigo-600 komc:text-white`,`komc:hover:bg-indigo-700 komc:hover:text-white`,`komc:active:bg-indigo-700 komc:active:text-white`,`komc:disabled:border-white komc:disabled:bg-gray-700`)},{outline:`clear`,variant:`sky`,className:(0,r.default)(`komc:bg-transparent komc:text-[#1890FF]`,`komc:hover:bg-transparent komc:hover:text-[#1890FF] komc:hover:underline`,`komc:active:bg-transparent komc:active:text-[#1890FF] komc:active:underline`,`komc:disabled:border-transparent komc:disabled:bg-transparent komc:disabled:text-gray-500`)},{outline:`clear`,variant:`gray`,className:(0,r.default)(`komc:bg-transparent komc:text-gray-800`,`komc:hover:bg-transparent komc:hover:text-gray-800 komc:hover:underline`,`komc:active:bg-transparent komc:active:text-gray-800 komc:active:underline`,`komc:disabled:border-transparent komc:disabled:bg-transparent komc:disabled:text-gray-500`)}],defaultVariants:{size:`md`,shadow:`none`,outline:`line`,variant:`blue`,px:`2xl`,rounded:`sm`}}),s=(0,n.forwardRef)(({type:e=`button`,className:t,id:n,size:r,shadow:s,outline:c,variant:l,px:u,rounded:d,asChild:f,...p},m)=>(0,i.jsx)(f?a.Slot:`button`,{ref:m,...p,"data-komc":!0,type:e,id:n,className:o({size:r,shadow:s,outline:c,variant:l,px:u,rounded:d,className:t})}));var c=s;exports.Button=c;
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react11 from "react";
|
|
2
2
|
import { ComponentProps } from "react";
|
|
3
|
-
import * as class_variance_authority_types1 from "class-variance-authority/types";
|
|
4
3
|
import { VariantProps } from "class-variance-authority";
|
|
4
|
+
import * as class_variance_authority_types1 from "class-variance-authority/types";
|
|
5
5
|
|
|
6
6
|
//#region src/ui/button/button.d.ts
|
|
7
7
|
declare const classes: (props?: ({
|
|
8
|
-
size?: "
|
|
9
|
-
shadow?: "
|
|
8
|
+
size?: "xxs" | "xs" | "sm" | "lg" | "md" | "xl" | "2xl" | "3xl" | "4xl" | null | undefined;
|
|
9
|
+
shadow?: "none" | "sm" | "lg" | "md" | "xl" | "2xl" | "3xl" | null | undefined;
|
|
10
10
|
outline?: "line" | "solid" | "clear" | null | undefined;
|
|
11
11
|
variant?: "blue" | "duo" | "white" | "gray" | "neutral" | "night" | "black" | "sky" | "sky-blue" | "indigo" | null | undefined;
|
|
12
|
-
px?: "
|
|
13
|
-
rounded?: "
|
|
12
|
+
px?: "none" | "xs" | "sm" | "lg" | "md" | "xl" | "2xl" | "3xl" | "4xl" | null | undefined;
|
|
13
|
+
rounded?: "none" | "sm" | "lg" | "md" | "xl" | "2xl" | "3xl" | "full" | null | undefined;
|
|
14
14
|
} & class_variance_authority_types1.ClassProp) | undefined) => string;
|
|
15
15
|
interface VariantMap {
|
|
16
16
|
line: 'blue' | 'duo' | 'white' | 'gray' | 'neutral' | 'sky' | 'sky-blue';
|
|
@@ -30,21 +30,21 @@ type ButtonProps = ComponentProps<'button'> & BaseProps & ({
|
|
|
30
30
|
}) & {
|
|
31
31
|
asChild?: boolean;
|
|
32
32
|
};
|
|
33
|
-
declare const Button:
|
|
33
|
+
declare const Button: react11.ForwardRefExoticComponent<(Omit<react11.ClassAttributes<HTMLButtonElement> & react11.ButtonHTMLAttributes<HTMLButtonElement> & BaseProps & {
|
|
34
34
|
outline?: "line";
|
|
35
35
|
variant?: VariantMap["line"];
|
|
36
36
|
} & {
|
|
37
37
|
asChild?: boolean;
|
|
38
|
-
}, "ref"> | Omit<
|
|
38
|
+
}, "ref"> | Omit<react11.ClassAttributes<HTMLButtonElement> & react11.ButtonHTMLAttributes<HTMLButtonElement> & BaseProps & {
|
|
39
39
|
outline: "solid";
|
|
40
40
|
variant?: VariantMap["solid"];
|
|
41
41
|
} & {
|
|
42
42
|
asChild?: boolean;
|
|
43
|
-
}, "ref"> | Omit<
|
|
43
|
+
}, "ref"> | Omit<react11.ClassAttributes<HTMLButtonElement> & react11.ButtonHTMLAttributes<HTMLButtonElement> & BaseProps & {
|
|
44
44
|
outline: "clear";
|
|
45
45
|
variant?: VariantMap["clear"];
|
|
46
46
|
} & {
|
|
47
47
|
asChild?: boolean;
|
|
48
|
-
}, "ref">) &
|
|
48
|
+
}, "ref">) & react11.RefAttributes<HTMLButtonElement>>;
|
|
49
49
|
//#endregion
|
|
50
|
-
export {
|
|
50
|
+
export { Button, type ButtonProps };
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import * as react12 from "react";
|
|
2
|
-
import { ComponentProps } from "react";
|
|
3
1
|
import { VariantProps } from "class-variance-authority";
|
|
4
|
-
import * as
|
|
2
|
+
import * as react7 from "react";
|
|
3
|
+
import { ComponentProps } from "react";
|
|
4
|
+
import * as class_variance_authority_types3 from "class-variance-authority/types";
|
|
5
5
|
|
|
6
6
|
//#region src/ui/button/button.d.ts
|
|
7
7
|
declare const classes: (props?: ({
|
|
8
|
-
size?: "
|
|
9
|
-
shadow?: "
|
|
8
|
+
size?: "xxs" | "xs" | "sm" | "lg" | "md" | "xl" | "2xl" | "3xl" | "4xl" | null | undefined;
|
|
9
|
+
shadow?: "none" | "sm" | "lg" | "md" | "xl" | "2xl" | "3xl" | null | undefined;
|
|
10
10
|
outline?: "line" | "solid" | "clear" | null | undefined;
|
|
11
11
|
variant?: "blue" | "duo" | "white" | "gray" | "neutral" | "night" | "black" | "sky" | "sky-blue" | "indigo" | null | undefined;
|
|
12
|
-
px?: "
|
|
13
|
-
rounded?: "
|
|
14
|
-
} &
|
|
12
|
+
px?: "none" | "xs" | "sm" | "lg" | "md" | "xl" | "2xl" | "3xl" | "4xl" | null | undefined;
|
|
13
|
+
rounded?: "none" | "sm" | "lg" | "md" | "xl" | "2xl" | "3xl" | "full" | null | undefined;
|
|
14
|
+
} & class_variance_authority_types3.ClassProp) | undefined) => string;
|
|
15
15
|
interface VariantMap {
|
|
16
16
|
line: 'blue' | 'duo' | 'white' | 'gray' | 'neutral' | 'sky' | 'sky-blue';
|
|
17
17
|
solid: 'white' | 'gray' | 'blue' | 'night' | 'black' | 'sky' | 'sky-blue' | 'indigo';
|
|
@@ -30,21 +30,21 @@ type ButtonProps = ComponentProps<'button'> & BaseProps & ({
|
|
|
30
30
|
}) & {
|
|
31
31
|
asChild?: boolean;
|
|
32
32
|
};
|
|
33
|
-
declare const Button:
|
|
33
|
+
declare const Button: react7.ForwardRefExoticComponent<(Omit<react7.ClassAttributes<HTMLButtonElement> & react7.ButtonHTMLAttributes<HTMLButtonElement> & BaseProps & {
|
|
34
34
|
outline?: "line";
|
|
35
35
|
variant?: VariantMap["line"];
|
|
36
36
|
} & {
|
|
37
37
|
asChild?: boolean;
|
|
38
|
-
}, "ref"> | Omit<
|
|
38
|
+
}, "ref"> | Omit<react7.ClassAttributes<HTMLButtonElement> & react7.ButtonHTMLAttributes<HTMLButtonElement> & BaseProps & {
|
|
39
39
|
outline: "solid";
|
|
40
40
|
variant?: VariantMap["solid"];
|
|
41
41
|
} & {
|
|
42
42
|
asChild?: boolean;
|
|
43
|
-
}, "ref"> | Omit<
|
|
43
|
+
}, "ref"> | Omit<react7.ClassAttributes<HTMLButtonElement> & react7.ButtonHTMLAttributes<HTMLButtonElement> & BaseProps & {
|
|
44
44
|
outline: "clear";
|
|
45
45
|
variant?: VariantMap["clear"];
|
|
46
46
|
} & {
|
|
47
47
|
asChild?: boolean;
|
|
48
|
-
}, "ref">) &
|
|
48
|
+
}, "ref">) & react7.RefAttributes<HTMLButtonElement>>;
|
|
49
49
|
//#endregion
|
|
50
|
-
export {
|
|
50
|
+
export { Button, type ButtonProps };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{cva as e}from"class-variance-authority";import{forwardRef as t}from"react";import n from"clsx";import{jsx as r}from"react/jsx-runtime";import{Slot as i}from"@radix-ui/react-slot";const a=e(n(`komc:flex komc:justify-center komc:items-center komc:gap-x-2 komc:w-full`,`komc:transition-colors komc:duration-200 komc:relative`,`komc:[&_svg]:transition-colors komc:[&_svg]:duration-200`,`komc:cursor-pointer komc:disabled:cursor-default`),{variants:{size:{xxs:`komc:h-7.5`,xs:`komc:h-8`,sm:`komc:h-9`,md:`komc:h-10`,lg:`komc:h-11`,xl:`komc:h-12`,"2xl":`komc:h-13`,"3xl":`komc:h-14`,"4xl":`komc:h-15`},shadow:{none:``,sm:`komc:drop-shadow-sm`,md:`komc:drop-shadow-md`,lg:`komc:drop-shadow-lg`,xl:`komc:drop-shadow-xl`,"2xl":`komc:drop-shadow-2xl`,"3xl":`komc:drop-shadow-3xl`},outline:{line:`komc:border`,solid:`komc:border komc:border-transparent`,clear:`komc:border-none`},variant:{blue:``,duo:``,white:``,gray:``,neutral:``,night:``,black:``,sky:``,"sky-blue":``,indigo:``},px:{none:`komc:px-0`,xs:`komc:px-0.5`,sm:`komc:px-1`,md:`komc:px-1.5`,lg:`komc:px-2`,xl:`komc:px-3`,"2xl":`komc:px-4`,"3xl":`komc:px-5`,"4xl":`komc:px-6`},rounded:{none:`komc:rounded-none`,sm:`komc:rounded-sm`,md:`komc:rounded-md`,lg:`komc:rounded-lg`,xl:`komc:rounded-xl`,"2xl":`komc:rounded-2xl`,"3xl":`komc:rounded-3xl`,full:`komc:rounded-full`}},compoundVariants:[{outline:`line`,variant:`blue`,className:n(`komc:border-blue-500 komc:bg-white komc:text-blue-500`,`komc:hover:border-transparent komc:hover:bg-blue-500 komc:hover:text-white`,`komc:active:border-transparent komc:active:bg-blue-500 komc:active:text-white`,`komc:disabled:border-gray-500 komc:disabled:bg-white komc:disabled:text-gray-500`)},{outline:`line`,variant:`duo`,className:n(`komc:border-blue-500 komc:bg-white komc:text-brand-blck`,`komc:hover:border-transparent komc:hover:bg-blue-500 komc:hover:text-white`,`komc:active:border-transparent komc:active:bg-blue-500 komc:active:text-white`,`komc:disabled:border-gray-500 komc:disabled:bg-white komc:disabled:text-gray-500`)},{outline:`line`,variant:`white`,className:n(`komc:border-gray-600 komc:bg-white komc:text-brand-blck`,`komc:hover:bg-gray-200 komc:hover:text-brand-blck`,`komc:active:bg-gray-200 komc:active:text-brand-blck`,`komc:disabled:border-gray-500 komc:disabled:bg-white komc:disabled:text-gray-500`)},{outline:`line`,variant:`gray`,className:n(`komc:border-white komc:bg-transparent komc:text-white`,`komc:hover:bg-[rgb(199,199,199)] komc:hover:text-white`,`komc:active:bg-[rgb(199,199,199)] komc:active:text-white`,`komc:disabled:border-gray-500 komc:disabled:bg-white komc:disabled:text-gray-500`)},{outline:`line`,variant:`neutral`,className:n(`komc:border-gray-800 komc:bg-transparent komc:text-black`,`komc:hover:bg-gray-200 komc:hover:text-black`,`komc:active:bg-gray-200 komc:active:text-black`,`komc:disabled:border-gray-500 komc:disabled:bg-transparent komc:disabled:text-gray-500`)},{outline:`line`,variant:`sky`,className:n(`komc:border-sky-750 komc:bg-transparent komc:text-black`,`komc:hover:bg-sky-750 komc:hover:text-white`,`komc:active:bg-sky-750 komc:active:text-white`,`komc:disabled:border-gray-500 komc:disabled:bg-transparent komc:disabled:text-gray-500`)},{outline:`line`,variant:`sky-blue`,className:n(`komc:border-sky-450 komc:bg-transparent komc:text-black`,`komc:hover:bg-sky-450 komc:hover:text-white`,`komc:active:bg-sky-450 komc:active:text-white`,`komc:disabled:border-gray-500 komc:disabled:bg-transparent komc:disabled:text-gray-500`)},{outline:`solid`,variant:`white`,className:n(`komc:bg-white komc:text-brand-blck`,`komc:hover:bg-gray-200`,`komc:active:bg-gray-200`,`komc:disabled:border-white komc:disabled:bg-gray-50 komc:disabled:text-gray-800`)},{outline:`solid`,variant:`gray`,className:n(`komc:bg-gray-100 komc:text-blue-500`,`komc:hover:bg-blue-500 komc:hover:text-white`,`komc:active:bg-blue-500 komc:active:text-white`,`komc:disabled:border-white komc:disabled:bg-gray-50 komc:disabled:text-gray-800`)},{outline:`solid`,variant:`blue`,className:n(`komc:bg-blue-500 komc:text-white`,`komc:hover:bg-night-700 komc:hover:text-white`,`komc:active:bg-night-700 komc:active:text-white`,`komc:disabled:border-white komc:disabled:bg-gray-50 komc:disabled:text-gray-800`)},{outline:`solid`,variant:`night`,className:n(`komc:bg-night-700 komc:text-white`,`komc:hover:bg-night-800 komc:hover:text-white`,`komc:active:bg-night-800 komc:active:text-white`,`komc:disabled:border-white komc:disabled:bg-gray-50 komc:disabled:text-gray-800`)},{outline:`solid`,variant:`black`,className:n(`komc:bg-[rgb(95,95,96)] komc:text-white`,`komc:hover:bg-[rgb(76,76,77)] komc:hover:text-white`,`komc:active:bg-[rgb(76,76,77)] komc:active:text-white`,`komc:disabled:border-white komc:disabled:bg-gray-50 komc:disabled:text-gray-800`)},{outline:`solid`,variant:`sky`,className:n(`komc:bg-sky-750 komc:text-white`,`komc:hover:bg-sky-950 komc:hover:text-white`,`komc:active:bg-sky-950 komc:active:text-white`,`komc:disabled:border-white komc:disabled:bg-gray-700`)},{outline:`solid`,variant:`sky-blue`,className:n(`komc:bg-sky-450 komc:text-white`,`komc:hover:bg-sky-650 komc:hover:text-white`,`komc:active:bg-sky-650 komc:active:text-white`,`komc:disabled:border-white komc:disabled:bg-gray-700`)},{outline:`solid`,variant:`indigo`,className:n(`komc:bg-indigo-600 komc:text-white`,`komc:hover:bg-indigo-700 komc:hover:text-white`,`komc:active:bg-indigo-700 komc:active:text-white`,`komc:disabled:border-white komc:disabled:bg-gray-700`)},{outline:`clear`,variant:`sky`,className:n(`komc:bg-transparent komc:text-[#1890FF]`,`komc:hover:bg-transparent komc:hover:text-[#1890FF] komc:hover:underline`,`komc:active:bg-transparent komc:active:text-[#1890FF] komc:active:underline`,`komc:disabled:border-transparent komc:disabled:bg-transparent komc:disabled:text-gray-500`)},{outline:`clear`,variant:`gray`,className:n(`komc:bg-transparent komc:text-gray-800`,`komc:hover:bg-transparent komc:hover:text-gray-800 komc:hover:underline`,`komc:active:bg-transparent komc:active:text-gray-800 komc:active:underline`,`komc:disabled:border-transparent komc:disabled:bg-transparent komc:disabled:text-gray-500`)}],defaultVariants:{size:`md`,shadow:`none`,outline:`line`,variant:`blue`,px:`2xl`,rounded:`sm`}});var o=t(({type:e=`button`,className:t,id:n,size:o,shadow:s,outline:c,variant:l,px:u,rounded:d,asChild:f,...p},m)=>r(f?i:`button`,{ref:m,...p,"data-komc":!0,type:e,id:n,className:a({size:o,shadow:s,outline:c,variant:l,px:u,rounded:d,className:t})}));export{o as Button};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";const e=require(`../../chunk-Bmb41Sf3.cjs`)
|
|
1
|
+
"use client";const e=require(`../../chunk-Bmb41Sf3.cjs`);let t=require(`react`);t=e.t(t);let n=require(`clsx`);n=e.t(n);let r=require(`react/jsx-runtime`),i=require(`embla-carousel-react`);i=e.t(i);const a=t.default.createContext(null);function o(){let e=t.default.useContext(a);if(!e)throw Error(`useCarousel must be used within a <Carousel />`);return e}function s({orientation:e=`horizontal`,options:o,setApi:s,plugins:c,className:l,children:u,...d}){let[f,p]=(0,i.default)({...o,axis:e===`horizontal`?`x`:`y`},c),[m,h]=(0,t.useState)(!1),[g,_]=(0,t.useState)(!1),[v,y]=(0,t.useState)(0),[b,x]=(0,t.useState)(0),S=(0,t.useCallback)(e=>{e&&(h(e.canScrollPrev()),_(e.canScrollNext()),x(e.selectedScrollSnap()))},[]),C=(0,t.useCallback)(()=>{p?.scrollPrev()},[p]),w=(0,t.useCallback)(()=>{p?.scrollNext()},[p]),T=(0,t.useCallback)(e=>{p?.scrollTo(e)},[p]),E=(0,t.useCallback)(()=>{y(p?.scrollSnapList().length||0)},[p]),D=(0,t.useCallback)(t=>{e===`horizontal`?t.key===`ArrowLeft`?(t.preventDefault(),C()):t.key===`ArrowRight`&&(t.preventDefault(),w()):t.key===`ArrowUp`?(t.preventDefault(),C()):t.key===`ArrowDown`&&(t.preventDefault(),w())},[C,w,e]);return(0,t.useEffect)(()=>{!p||!s||s(p)},[p,s]),(0,t.useEffect)(()=>{if(p)return S(p),E(),p.on(`reInit`,E),p.on(`reInit`,S),p.on(`select`,S),()=>{p?.off(`select`,S)}},[p,E,S]),(0,r.jsx)(a.Provider,{value:{carouselRef:f,api:p,options:o,orientation:e||(o?.axis===`y`?`vertical`:`horizontal`),scrollPrev:C,scrollNext:w,canScrollPrev:m,canScrollNext:g,scrollTo:T,dots:v,selectedScrollSnap:b},children:(0,r.jsx)(`div`,{"data-komc":!0,role:`region`,"aria-label":`carousel`,"aria-roledescription":`carousel`,tabIndex:0,onKeyDownCapture:D,className:(0,n.default)(`komc:relative`,l),...d,children:u})})}function c({children:e,className:t,...i}){let{carouselRef:a}=o();return(0,r.jsx)(`div`,{ref:a,"data-komc":!0,className:(0,n.default)(`komc:h-full komc:overflow-hidden`,t),...i,children:e})}function l({className:e,...t}){let{orientation:i}=o();return(0,r.jsx)(`div`,{"data-komc":!0,className:(0,n.default)(`komc:flex komc:h-full`,i===`horizontal`?`komc:-ml-4`:`komc:-mt-4 komc:flex-col`,e),...t})}function u({className:e,...t}){let{orientation:i}=o();return(0,r.jsx)(`div`,{"data-komc":!0,role:`group`,"aria-roledescription":`slide`,className:(0,n.default)(`komc:min-w-0 komc:shrink-0 komc:grow-0 komc:basis-full`,i===`horizontal`?`komc:pl-4`:`komc:pt-4`,e),...t})}function d({children:e,className:t,...i}){let{scrollPrev:a,canScrollPrev:s}=o();return(0,r.jsx)(`button`,{type:`button`,"data-komc":!0,disabled:!s,"aria-label":`previous slide`,className:(0,n.default)(`komc:w-full`,t),onClick:a,...i,children:e})}function f({children:e,className:t,...i}){let{scrollNext:a,canScrollNext:s}=o();return(0,r.jsx)(`button`,{type:`button`,"data-komc":!0,disabled:!s,"aria-label":`next slide`,className:(0,n.default)(`komc:w-full`,t),onClick:a,...i,children:e})}function p({children:e,...t}){let{dots:n,selectedScrollSnap:i,scrollTo:a}=o();return(0,r.jsx)(r.Fragment,{children:Array.from({length:n}).map((n,o)=>(0,r.jsx)(`button`,{type:`button`,"data-komc":!0,"data-selected":i===o,"aria-label":`go to slide ${o+1}`,onClick:()=>a(o),...t,children:e?.(o)},o))})}function m({index:e,children:t,...n}){let{selectedScrollSnap:i,scrollTo:a}=o();return(0,r.jsx)(`button`,{type:`button`,"data-komc":!0,"data-selected":i===e,"aria-label":`go to slide ${e+1}`,onClick:()=>a(e),...n,children:t})}exports.Carousel=s,exports.CarouselDot=m,exports.CarouselDots=p,exports.CarouselItem=u,exports.CarouselNext=f,exports.CarouselPrevious=d,exports.CarouselViewport=c,exports.CarouselWrapper=l,exports.useCarousel=o;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
+
import * as react_jsx_runtime9 from "react/jsx-runtime";
|
|
1
2
|
import React, { ComponentProps } from "react";
|
|
2
|
-
import * as react_jsx_runtime5 from "react/jsx-runtime";
|
|
3
3
|
import useEmblaCarousel, { UseEmblaCarouselType } from "embla-carousel-react";
|
|
4
4
|
|
|
5
5
|
//#region src/ui/carousel/carousel-context.d.ts
|
|
@@ -41,40 +41,40 @@ declare function Carousel({
|
|
|
41
41
|
className,
|
|
42
42
|
children,
|
|
43
43
|
...props
|
|
44
|
-
}: CarouselProps$1):
|
|
44
|
+
}: CarouselProps$1): react_jsx_runtime9.JSX.Element;
|
|
45
45
|
//#endregion
|
|
46
46
|
//#region src/ui/carousel/carousel-viewport.d.ts
|
|
47
47
|
declare function CarouselViewport({
|
|
48
48
|
children,
|
|
49
49
|
className,
|
|
50
50
|
...props
|
|
51
|
-
}: React.ComponentProps<'div'>):
|
|
51
|
+
}: React.ComponentProps<'div'>): react_jsx_runtime9.JSX.Element;
|
|
52
52
|
//#endregion
|
|
53
53
|
//#region src/ui/carousel/carousel-wrapper.d.ts
|
|
54
54
|
declare function CarouselWrapper({
|
|
55
55
|
className,
|
|
56
56
|
...props
|
|
57
|
-
}: React.ComponentProps<'div'>):
|
|
57
|
+
}: React.ComponentProps<'div'>): react_jsx_runtime9.JSX.Element;
|
|
58
58
|
//#endregion
|
|
59
59
|
//#region src/ui/carousel/carousel-item.d.ts
|
|
60
60
|
declare function CarouselItem({
|
|
61
61
|
className,
|
|
62
62
|
...props
|
|
63
|
-
}: React.ComponentProps<'div'>):
|
|
63
|
+
}: React.ComponentProps<'div'>): react_jsx_runtime9.JSX.Element;
|
|
64
64
|
//#endregion
|
|
65
65
|
//#region src/ui/carousel/carousel-previous.d.ts
|
|
66
66
|
declare function CarouselPrevious({
|
|
67
67
|
children,
|
|
68
68
|
className,
|
|
69
69
|
...props
|
|
70
|
-
}: React.ComponentProps<'button'>):
|
|
70
|
+
}: React.ComponentProps<'button'>): react_jsx_runtime9.JSX.Element;
|
|
71
71
|
//#endregion
|
|
72
72
|
//#region src/ui/carousel/carousel-next.d.ts
|
|
73
73
|
declare function CarouselNext({
|
|
74
74
|
children,
|
|
75
75
|
className,
|
|
76
76
|
...props
|
|
77
|
-
}: React.ComponentProps<'button'>):
|
|
77
|
+
}: React.ComponentProps<'button'>): react_jsx_runtime9.JSX.Element;
|
|
78
78
|
//#endregion
|
|
79
79
|
//#region src/ui/carousel/carousel-dots.d.ts
|
|
80
80
|
declare function CarouselDots$1({
|
|
@@ -82,7 +82,7 @@ declare function CarouselDots$1({
|
|
|
82
82
|
...props
|
|
83
83
|
}: Omit<React.ComponentProps<'button'>, 'children'> & {
|
|
84
84
|
children?: (index: number) => React.ReactNode;
|
|
85
|
-
}):
|
|
85
|
+
}): react_jsx_runtime9.JSX.Element;
|
|
86
86
|
//#endregion
|
|
87
87
|
//#region src/ui/carousel/carousel-dot.d.ts
|
|
88
88
|
declare function CarouselDots({
|
|
@@ -91,6 +91,6 @@ declare function CarouselDots({
|
|
|
91
91
|
...props
|
|
92
92
|
}: React.ComponentProps<'button'> & {
|
|
93
93
|
index: number;
|
|
94
|
-
}):
|
|
94
|
+
}): react_jsx_runtime9.JSX.Element;
|
|
95
95
|
//#endregion
|
|
96
96
|
export { Carousel, type CarouselApi, type CarouselContextProps, CarouselDots as CarouselDot, CarouselDots$1 as CarouselDots, CarouselItem, CarouselNext, type CarouselOptions, type CarouselPlugin, CarouselPrevious, type CarouselProps, CarouselViewport, CarouselWrapper, useCarousel };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";import
|
|
1
|
+
"use client";import e,{useCallback as t,useEffect as n,useState as r}from"react";import i from"clsx";import{Fragment as a,jsx as o}from"react/jsx-runtime";import s from"embla-carousel-react";const c=e.createContext(null);function l(){let t=e.useContext(c);if(!t)throw Error(`useCarousel must be used within a <Carousel />`);return t}function u({orientation:e=`horizontal`,options:a,setApi:l,plugins:u,className:d,children:f,...p}){let[m,h]=s({...a,axis:e===`horizontal`?`x`:`y`},u),[g,_]=r(!1),[v,y]=r(!1),[b,x]=r(0),[S,C]=r(0),w=t(e=>{e&&(_(e.canScrollPrev()),y(e.canScrollNext()),C(e.selectedScrollSnap()))},[]),T=t(()=>{h?.scrollPrev()},[h]),E=t(()=>{h?.scrollNext()},[h]),D=t(e=>{h?.scrollTo(e)},[h]),O=t(()=>{x(h?.scrollSnapList().length||0)},[h]),k=t(t=>{e===`horizontal`?t.key===`ArrowLeft`?(t.preventDefault(),T()):t.key===`ArrowRight`&&(t.preventDefault(),E()):t.key===`ArrowUp`?(t.preventDefault(),T()):t.key===`ArrowDown`&&(t.preventDefault(),E())},[T,E,e]);return n(()=>{!h||!l||l(h)},[h,l]),n(()=>{if(h)return w(h),O(),h.on(`reInit`,O),h.on(`reInit`,w),h.on(`select`,w),()=>{h?.off(`select`,w)}},[h,O,w]),o(c.Provider,{value:{carouselRef:m,api:h,options:a,orientation:e||(a?.axis===`y`?`vertical`:`horizontal`),scrollPrev:T,scrollNext:E,canScrollPrev:g,canScrollNext:v,scrollTo:D,dots:b,selectedScrollSnap:S},children:o(`div`,{"data-komc":!0,role:`region`,"aria-label":`carousel`,"aria-roledescription":`carousel`,tabIndex:0,onKeyDownCapture:k,className:i(`komc:relative`,d),...p,children:f})})}function d({children:e,className:t,...n}){let{carouselRef:r}=l();return o(`div`,{ref:r,"data-komc":!0,className:i(`komc:h-full komc:overflow-hidden`,t),...n,children:e})}function f({className:e,...t}){let{orientation:n}=l();return o(`div`,{"data-komc":!0,className:i(`komc:flex komc:h-full`,n===`horizontal`?`komc:-ml-4`:`komc:-mt-4 komc:flex-col`,e),...t})}function p({className:e,...t}){let{orientation:n}=l();return o(`div`,{"data-komc":!0,role:`group`,"aria-roledescription":`slide`,className:i(`komc:min-w-0 komc:shrink-0 komc:grow-0 komc:basis-full`,n===`horizontal`?`komc:pl-4`:`komc:pt-4`,e),...t})}function m({children:e,className:t,...n}){let{scrollPrev:r,canScrollPrev:a}=l();return o(`button`,{type:`button`,"data-komc":!0,disabled:!a,"aria-label":`previous slide`,className:i(`komc:w-full`,t),onClick:r,...n,children:e})}function h({children:e,className:t,...n}){let{scrollNext:r,canScrollNext:a}=l();return o(`button`,{type:`button`,"data-komc":!0,disabled:!a,"aria-label":`next slide`,className:i(`komc:w-full`,t),onClick:r,...n,children:e})}function g({children:e,...t}){let{dots:n,selectedScrollSnap:r,scrollTo:i}=l();return o(a,{children:Array.from({length:n}).map((n,a)=>o(`button`,{type:`button`,"data-komc":!0,"data-selected":r===a,"aria-label":`go to slide ${a+1}`,onClick:()=>i(a),...t,children:e?.(a)},a))})}function _({index:e,children:t,...n}){let{selectedScrollSnap:r,scrollTo:i}=l();return o(`button`,{type:`button`,"data-komc":!0,"data-selected":r===e,"aria-label":`go to slide ${e+1}`,onClick:()=>i(e),...n,children:t})}export{u as Carousel,_ as CarouselDot,g as CarouselDots,p as CarouselItem,h as CarouselNext,m as CarouselPrevious,d as CarouselViewport,f as CarouselWrapper,l as useCarousel};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
function e({condition:e,wrapper:t,children:n}){return e?t(n):n}function t({condition:e,trueWrapper:t,falseWrapper:n,children:r}){return e?t(r):n(r)}exports.ConditionalEitherWrapper=t,exports.ConditionalWrapper=e;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import * as react43 from "react";
|
|
2
|
+
|
|
3
|
+
//#region src/ui/conditional-wrapper/conditional-wrapper.d.ts
|
|
4
|
+
interface ConditionalWrapperProps {
|
|
5
|
+
condition: boolean;
|
|
6
|
+
wrapper: (children: React.ReactNode) => React.ReactNode;
|
|
7
|
+
children: React.ReactNode;
|
|
8
|
+
}
|
|
9
|
+
declare function ConditionalWrapper({
|
|
10
|
+
condition,
|
|
11
|
+
wrapper,
|
|
12
|
+
children
|
|
13
|
+
}: ConditionalWrapperProps): react43.ReactNode;
|
|
14
|
+
//#endregion
|
|
15
|
+
//#region src/ui/conditional-wrapper/conditional-either-wrapper.d.ts
|
|
16
|
+
interface ConditionalEitherWrapperProps {
|
|
17
|
+
condition: boolean;
|
|
18
|
+
trueWrapper: (children: React.ReactNode) => React.ReactNode;
|
|
19
|
+
falseWrapper: (children: React.ReactNode) => React.ReactNode;
|
|
20
|
+
children: React.ReactNode;
|
|
21
|
+
}
|
|
22
|
+
declare function ConditionalEitherWrapper({
|
|
23
|
+
condition,
|
|
24
|
+
trueWrapper,
|
|
25
|
+
falseWrapper,
|
|
26
|
+
children
|
|
27
|
+
}: ConditionalEitherWrapperProps): react43.ReactNode;
|
|
28
|
+
//#endregion
|
|
29
|
+
export { ConditionalEitherWrapper, type ConditionalEitherWrapperProps, ConditionalWrapper, type ConditionalWrapperProps };
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import * as react4 from "react";
|
|
2
|
+
|
|
3
|
+
//#region src/ui/conditional-wrapper/conditional-wrapper.d.ts
|
|
4
|
+
interface ConditionalWrapperProps {
|
|
5
|
+
condition: boolean;
|
|
6
|
+
wrapper: (children: React.ReactNode) => React.ReactNode;
|
|
7
|
+
children: React.ReactNode;
|
|
8
|
+
}
|
|
9
|
+
declare function ConditionalWrapper({
|
|
10
|
+
condition,
|
|
11
|
+
wrapper,
|
|
12
|
+
children
|
|
13
|
+
}: ConditionalWrapperProps): react4.ReactNode;
|
|
14
|
+
//#endregion
|
|
15
|
+
//#region src/ui/conditional-wrapper/conditional-either-wrapper.d.ts
|
|
16
|
+
interface ConditionalEitherWrapperProps {
|
|
17
|
+
condition: boolean;
|
|
18
|
+
trueWrapper: (children: React.ReactNode) => React.ReactNode;
|
|
19
|
+
falseWrapper: (children: React.ReactNode) => React.ReactNode;
|
|
20
|
+
children: React.ReactNode;
|
|
21
|
+
}
|
|
22
|
+
declare function ConditionalEitherWrapper({
|
|
23
|
+
condition,
|
|
24
|
+
trueWrapper,
|
|
25
|
+
falseWrapper,
|
|
26
|
+
children
|
|
27
|
+
}: ConditionalEitherWrapperProps): react4.ReactNode;
|
|
28
|
+
//#endregion
|
|
29
|
+
export { ConditionalEitherWrapper, type ConditionalEitherWrapperProps, ConditionalWrapper, type ConditionalWrapperProps };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
function e({condition:e,wrapper:t,children:n}){return e?t(n):n}function t({condition:e,trueWrapper:t,falseWrapper:n,children:r}){return e?t(r):n(r)}export{t as ConditionalEitherWrapper,e as ConditionalWrapper};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";const e=require(`../../country-flag-8HG6HZPi.cjs`);exports.CountryFlag=e.t;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import * as react_jsx_runtime52 from "react/jsx-runtime";
|
|
2
|
+
import { HTMLAttributes } from "react";
|
|
3
|
+
|
|
4
|
+
//#region src/ui/country-flag/country-flag.d.ts
|
|
5
|
+
interface CountryFlagProps extends HTMLAttributes<HTMLImageElement> {
|
|
6
|
+
countryCode: string;
|
|
7
|
+
}
|
|
8
|
+
declare const CountryFlag: ({
|
|
9
|
+
countryCode,
|
|
10
|
+
...props
|
|
11
|
+
}: CountryFlagProps) => react_jsx_runtime52.JSX.Element;
|
|
12
|
+
//#endregion
|
|
13
|
+
export { CountryFlag, CountryFlagProps };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { HTMLAttributes } from "react";
|
|
2
|
+
import * as react_jsx_runtime9 from "react/jsx-runtime";
|
|
3
|
+
|
|
4
|
+
//#region src/ui/country-flag/country-flag.d.ts
|
|
5
|
+
interface CountryFlagProps extends HTMLAttributes<HTMLImageElement> {
|
|
6
|
+
countryCode: string;
|
|
7
|
+
}
|
|
8
|
+
declare const CountryFlag: ({
|
|
9
|
+
countryCode,
|
|
10
|
+
...props
|
|
11
|
+
}: CountryFlagProps) => react_jsx_runtime9.JSX.Element;
|
|
12
|
+
//#endregion
|
|
13
|
+
export { CountryFlag, CountryFlagProps };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";import{t as e}from"../../country-flag-Bypgu_rR.mjs";export{e as CountryFlag};
|