@mieweb/ui 0.1.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/LICENSE +21 -0
- package/README.md +696 -0
- package/dist/brands/bluehive.cjs +18 -0
- package/dist/brands/bluehive.cjs.map +1 -0
- package/dist/brands/bluehive.css +136 -0
- package/dist/brands/bluehive.d.cts +16 -0
- package/dist/brands/bluehive.d.ts +16 -0
- package/dist/brands/bluehive.js +3 -0
- package/dist/brands/bluehive.js.map +1 -0
- package/dist/brands/enterprise-health.css +260 -0
- package/dist/brands/index.cjs +55 -0
- package/dist/brands/index.cjs.map +1 -0
- package/dist/brands/index.d.cts +100 -0
- package/dist/brands/index.d.ts +100 -0
- package/dist/brands/index.js +10 -0
- package/dist/brands/index.js.map +1 -0
- package/dist/brands/mieweb.css +138 -0
- package/dist/brands/types.cjs +20 -0
- package/dist/brands/types.cjs.map +1 -0
- package/dist/brands/types.d.cts +188 -0
- package/dist/brands/types.d.ts +188 -0
- package/dist/brands/types.js +3 -0
- package/dist/brands/types.js.map +1 -0
- package/dist/brands/waggleline.css +164 -0
- package/dist/brands/webchart.css +138 -0
- package/dist/chunk-265CFCCX.js +173 -0
- package/dist/chunk-265CFCCX.js.map +1 -0
- package/dist/chunk-2J2V4TMJ.cjs +139 -0
- package/dist/chunk-2J2V4TMJ.cjs.map +1 -0
- package/dist/chunk-2O7D6F67.cjs +63 -0
- package/dist/chunk-2O7D6F67.cjs.map +1 -0
- package/dist/chunk-3NJ72QU6.js +55 -0
- package/dist/chunk-3NJ72QU6.js.map +1 -0
- package/dist/chunk-4AWW5WPF.js +161 -0
- package/dist/chunk-4AWW5WPF.js.map +1 -0
- package/dist/chunk-4LNS5QDP.cjs +84 -0
- package/dist/chunk-4LNS5QDP.cjs.map +1 -0
- package/dist/chunk-4LTN2LEN.js +79 -0
- package/dist/chunk-4LTN2LEN.js.map +1 -0
- package/dist/chunk-4MHTSFPX.js +205 -0
- package/dist/chunk-4MHTSFPX.js.map +1 -0
- package/dist/chunk-4YRAEFYW.js +233 -0
- package/dist/chunk-4YRAEFYW.js.map +1 -0
- package/dist/chunk-53K3KWXQ.cjs +753 -0
- package/dist/chunk-53K3KWXQ.cjs.map +1 -0
- package/dist/chunk-6DP6RKUA.cjs +15 -0
- package/dist/chunk-6DP6RKUA.cjs.map +1 -0
- package/dist/chunk-6HFFWEM3.cjs +22 -0
- package/dist/chunk-6HFFWEM3.cjs.map +1 -0
- package/dist/chunk-6OCIIIAI.js +128 -0
- package/dist/chunk-6OCIIIAI.js.map +1 -0
- package/dist/chunk-6Q4SU72T.js +300 -0
- package/dist/chunk-6Q4SU72T.js.map +1 -0
- package/dist/chunk-AU5ADTYD.cjs +326 -0
- package/dist/chunk-AU5ADTYD.cjs.map +1 -0
- package/dist/chunk-AWIULTJW.js +190 -0
- package/dist/chunk-AWIULTJW.js.map +1 -0
- package/dist/chunk-B26RIQ5R.js +97 -0
- package/dist/chunk-B26RIQ5R.js.map +1 -0
- package/dist/chunk-B3L43JGH.js +98 -0
- package/dist/chunk-B3L43JGH.js.map +1 -0
- package/dist/chunk-B7DA35BY.cjs +496 -0
- package/dist/chunk-B7DA35BY.cjs.map +1 -0
- package/dist/chunk-B7YGVKTE.cjs +184 -0
- package/dist/chunk-B7YGVKTE.cjs.map +1 -0
- package/dist/chunk-BR2XGATJ.cjs +40 -0
- package/dist/chunk-BR2XGATJ.cjs.map +1 -0
- package/dist/chunk-BTJHYGPI.cjs +27 -0
- package/dist/chunk-BTJHYGPI.cjs.map +1 -0
- package/dist/chunk-BXK5TNJE.cjs +329 -0
- package/dist/chunk-BXK5TNJE.cjs.map +1 -0
- package/dist/chunk-C6MDPPPL.js +82 -0
- package/dist/chunk-C6MDPPPL.js.map +1 -0
- package/dist/chunk-CEHWXAAI.js +22 -0
- package/dist/chunk-CEHWXAAI.js.map +1 -0
- package/dist/chunk-CLNOI5J7.js +38 -0
- package/dist/chunk-CLNOI5J7.js.map +1 -0
- package/dist/chunk-CP7NPDQW.js +99 -0
- package/dist/chunk-CP7NPDQW.js.map +1 -0
- package/dist/chunk-CQCYXHCU.cjs +256 -0
- package/dist/chunk-CQCYXHCU.cjs.map +1 -0
- package/dist/chunk-D5IBXXF2.js +243 -0
- package/dist/chunk-D5IBXXF2.js.map +1 -0
- package/dist/chunk-DMA74PZ7.js +240 -0
- package/dist/chunk-DMA74PZ7.js.map +1 -0
- package/dist/chunk-EF46XW4Z.cjs +270 -0
- package/dist/chunk-EF46XW4Z.cjs.map +1 -0
- package/dist/chunk-EKIQE524.cjs +78 -0
- package/dist/chunk-EKIQE524.cjs.map +1 -0
- package/dist/chunk-F3SOEIN2.js +11 -0
- package/dist/chunk-F3SOEIN2.js.map +1 -0
- package/dist/chunk-FFJVCQ5R.cjs +128 -0
- package/dist/chunk-FFJVCQ5R.cjs.map +1 -0
- package/dist/chunk-FHY3K6PL.cjs +24 -0
- package/dist/chunk-FHY3K6PL.cjs.map +1 -0
- package/dist/chunk-FIUNOH6W.js +13 -0
- package/dist/chunk-FIUNOH6W.js.map +1 -0
- package/dist/chunk-FIXAVBUA.cjs +200 -0
- package/dist/chunk-FIXAVBUA.cjs.map +1 -0
- package/dist/chunk-FQ5G7J24.js +297 -0
- package/dist/chunk-FQ5G7J24.js.map +1 -0
- package/dist/chunk-G2DOD34H.js +215 -0
- package/dist/chunk-G2DOD34H.js.map +1 -0
- package/dist/chunk-GV5JQBPX.js +110 -0
- package/dist/chunk-GV5JQBPX.js.map +1 -0
- package/dist/chunk-H2CIKJQI.js +32 -0
- package/dist/chunk-H2CIKJQI.js.map +1 -0
- package/dist/chunk-HB7C7NB5.js +20 -0
- package/dist/chunk-HB7C7NB5.js.map +1 -0
- package/dist/chunk-HLW3XD5R.cjs +322 -0
- package/dist/chunk-HLW3XD5R.cjs.map +1 -0
- package/dist/chunk-HRA4FUO6.cjs +425 -0
- package/dist/chunk-HRA4FUO6.cjs.map +1 -0
- package/dist/chunk-IY7UQPDO.cjs +122 -0
- package/dist/chunk-IY7UQPDO.cjs.map +1 -0
- package/dist/chunk-JFAXLE2J.js +217 -0
- package/dist/chunk-JFAXLE2J.js.map +1 -0
- package/dist/chunk-JYMQJ32S.cjs +115 -0
- package/dist/chunk-JYMQJ32S.cjs.map +1 -0
- package/dist/chunk-KJOFWJHV.js +406 -0
- package/dist/chunk-KJOFWJHV.js.map +1 -0
- package/dist/chunk-KJZNEVYM.js +61 -0
- package/dist/chunk-KJZNEVYM.js.map +1 -0
- package/dist/chunk-KMN7JX2X.cjs +67 -0
- package/dist/chunk-KMN7JX2X.cjs.map +1 -0
- package/dist/chunk-LEE3NMNP.cjs +429 -0
- package/dist/chunk-LEE3NMNP.cjs.map +1 -0
- package/dist/chunk-LZEY55QZ.cjs +219 -0
- package/dist/chunk-LZEY55QZ.cjs.map +1 -0
- package/dist/chunk-MKJDBXX4.cjs +171 -0
- package/dist/chunk-MKJDBXX4.cjs.map +1 -0
- package/dist/chunk-MTZPVOP6.js +99 -0
- package/dist/chunk-MTZPVOP6.js.map +1 -0
- package/dist/chunk-N3QTYHRZ.cjs +134 -0
- package/dist/chunk-N3QTYHRZ.cjs.map +1 -0
- package/dist/chunk-N5EKL4DH.js +148 -0
- package/dist/chunk-N5EKL4DH.js.map +1 -0
- package/dist/chunk-NAATBUHR.cjs +231 -0
- package/dist/chunk-NAATBUHR.cjs.map +1 -0
- package/dist/chunk-NH2JVQ6V.cjs +272 -0
- package/dist/chunk-NH2JVQ6V.cjs.map +1 -0
- package/dist/chunk-NIHESA7O.js +114 -0
- package/dist/chunk-NIHESA7O.js.map +1 -0
- package/dist/chunk-NXRLGHEC.js +98 -0
- package/dist/chunk-NXRLGHEC.js.map +1 -0
- package/dist/chunk-O5HS7ZND.cjs +81 -0
- package/dist/chunk-O5HS7ZND.cjs.map +1 -0
- package/dist/chunk-O7WRE2WX.js +195 -0
- package/dist/chunk-O7WRE2WX.js.map +1 -0
- package/dist/chunk-ONWOB76P.js +319 -0
- package/dist/chunk-ONWOB76P.js.map +1 -0
- package/dist/chunk-OR5DRJCW.cjs +13 -0
- package/dist/chunk-OR5DRJCW.cjs.map +1 -0
- package/dist/chunk-ORUPC5TV.cjs +244 -0
- package/dist/chunk-ORUPC5TV.cjs.map +1 -0
- package/dist/chunk-OT36EMM5.js +22 -0
- package/dist/chunk-OT36EMM5.js.map +1 -0
- package/dist/chunk-OW2BWGST.js +238 -0
- package/dist/chunk-OW2BWGST.js.map +1 -0
- package/dist/chunk-OWPWP46L.js +92 -0
- package/dist/chunk-OWPWP46L.js.map +1 -0
- package/dist/chunk-P52GA3GJ.cjs +101 -0
- package/dist/chunk-P52GA3GJ.cjs.map +1 -0
- package/dist/chunk-PEFJAWNR.cjs +121 -0
- package/dist/chunk-PEFJAWNR.cjs.map +1 -0
- package/dist/chunk-PF3XWKE5.cjs +343 -0
- package/dist/chunk-PF3XWKE5.cjs.map +1 -0
- package/dist/chunk-QBWVTJKF.js +548 -0
- package/dist/chunk-QBWVTJKF.js.map +1 -0
- package/dist/chunk-QDGZBDBI.cjs +99 -0
- package/dist/chunk-QDGZBDBI.cjs.map +1 -0
- package/dist/chunk-QL2YTVTR.js +163 -0
- package/dist/chunk-QL2YTVTR.js.map +1 -0
- package/dist/chunk-QYJ7RQJ2.cjs +239 -0
- package/dist/chunk-QYJ7RQJ2.cjs.map +1 -0
- package/dist/chunk-QZLRB3UG.js +727 -0
- package/dist/chunk-QZLRB3UG.js.map +1 -0
- package/dist/chunk-R4DM4635.cjs +109 -0
- package/dist/chunk-R4DM4635.cjs.map +1 -0
- package/dist/chunk-RCMF6KZA.js +75 -0
- package/dist/chunk-RCMF6KZA.js.map +1 -0
- package/dist/chunk-RRQGH7C5.cjs +187 -0
- package/dist/chunk-RRQGH7C5.cjs.map +1 -0
- package/dist/chunk-S6UNPMAS.cjs +84 -0
- package/dist/chunk-S6UNPMAS.cjs.map +1 -0
- package/dist/chunk-SJ3BF4BO.cjs +199 -0
- package/dist/chunk-SJ3BF4BO.cjs.map +1 -0
- package/dist/chunk-SN52QMRT.js +58 -0
- package/dist/chunk-SN52QMRT.js.map +1 -0
- package/dist/chunk-SOFX4T7M.js +124 -0
- package/dist/chunk-SOFX4T7M.js.map +1 -0
- package/dist/chunk-SWMRCGL4.cjs +24 -0
- package/dist/chunk-SWMRCGL4.cjs.map +1 -0
- package/dist/chunk-SWV5E75F.cjs +94 -0
- package/dist/chunk-SWV5E75F.cjs.map +1 -0
- package/dist/chunk-T4ME7QCT.js +22 -0
- package/dist/chunk-T4ME7QCT.js.map +1 -0
- package/dist/chunk-TA6FVVCM.js +207 -0
- package/dist/chunk-TA6FVVCM.js.map +1 -0
- package/dist/chunk-UHSPAFY6.js +82 -0
- package/dist/chunk-UHSPAFY6.js.map +1 -0
- package/dist/chunk-ULOA7WBW.js +82 -0
- package/dist/chunk-ULOA7WBW.js.map +1 -0
- package/dist/chunk-UZUBLXVC.js +307 -0
- package/dist/chunk-UZUBLXVC.js.map +1 -0
- package/dist/chunk-VDMQCSXT.cjs +234 -0
- package/dist/chunk-VDMQCSXT.cjs.map +1 -0
- package/dist/chunk-VV4N4WY6.cjs +121 -0
- package/dist/chunk-VV4N4WY6.cjs.map +1 -0
- package/dist/chunk-VWXGUNBR.cjs +574 -0
- package/dist/chunk-VWXGUNBR.cjs.map +1 -0
- package/dist/chunk-WN2FJE23.js +474 -0
- package/dist/chunk-WN2FJE23.js.map +1 -0
- package/dist/chunk-XHJGYBYG.cjs +262 -0
- package/dist/chunk-XHJGYBYG.cjs.map +1 -0
- package/dist/chunk-XXOBTAKA.js +390 -0
- package/dist/chunk-XXOBTAKA.js.map +1 -0
- package/dist/chunk-Z3TFPXVN.cjs +84 -0
- package/dist/chunk-Z3TFPXVN.cjs.map +1 -0
- package/dist/chunk-ZJCPW6MS.cjs +54 -0
- package/dist/chunk-ZJCPW6MS.cjs.map +1 -0
- package/dist/chunk-ZO46CFVN.cjs +4 -0
- package/dist/chunk-ZO46CFVN.cjs.map +1 -0
- package/dist/chunk-ZQ4XMJH7.js +3 -0
- package/dist/chunk-ZQ4XMJH7.js.map +1 -0
- package/dist/components/Alert/index.cjs +25 -0
- package/dist/components/Alert/index.cjs.map +1 -0
- package/dist/components/Alert/index.d.cts +39 -0
- package/dist/components/Alert/index.d.ts +39 -0
- package/dist/components/Alert/index.js +4 -0
- package/dist/components/Alert/index.js.map +1 -0
- package/dist/components/AudioPlayer/index.cjs +29 -0
- package/dist/components/AudioPlayer/index.cjs.map +1 -0
- package/dist/components/AudioPlayer/index.d.cts +83 -0
- package/dist/components/AudioPlayer/index.d.ts +83 -0
- package/dist/components/AudioPlayer/index.js +4 -0
- package/dist/components/AudioPlayer/index.js.map +1 -0
- package/dist/components/AudioRecorder/index.cjs +29 -0
- package/dist/components/AudioRecorder/index.cjs.map +1 -0
- package/dist/components/AudioRecorder/index.d.cts +106 -0
- package/dist/components/AudioRecorder/index.d.ts +106 -0
- package/dist/components/AudioRecorder/index.js +4 -0
- package/dist/components/AudioRecorder/index.js.map +1 -0
- package/dist/components/Avatar/index.cjs +25 -0
- package/dist/components/Avatar/index.cjs.map +1 -0
- package/dist/components/Avatar/index.d.cts +62 -0
- package/dist/components/Avatar/index.d.ts +62 -0
- package/dist/components/Avatar/index.js +4 -0
- package/dist/components/Avatar/index.js.map +1 -0
- package/dist/components/Badge/index.cjs +17 -0
- package/dist/components/Badge/index.cjs.map +1 -0
- package/dist/components/Badge/index.d.cts +25 -0
- package/dist/components/Badge/index.d.ts +25 -0
- package/dist/components/Badge/index.js +4 -0
- package/dist/components/Badge/index.js.map +1 -0
- package/dist/components/Breadcrumb/index.cjs +17 -0
- package/dist/components/Breadcrumb/index.cjs.map +1 -0
- package/dist/components/Breadcrumb/index.d.cts +47 -0
- package/dist/components/Breadcrumb/index.d.ts +47 -0
- package/dist/components/Breadcrumb/index.js +4 -0
- package/dist/components/Breadcrumb/index.js.map +1 -0
- package/dist/components/Button/index.cjs +17 -0
- package/dist/components/Button/index.cjs.map +1 -0
- package/dist/components/Button/index.d.cts +32 -0
- package/dist/components/Button/index.d.ts +32 -0
- package/dist/components/Button/index.js +4 -0
- package/dist/components/Button/index.js.map +1 -0
- package/dist/components/Card/index.cjs +65 -0
- package/dist/components/Card/index.cjs.map +1 -0
- package/dist/components/Card/index.d.cts +119 -0
- package/dist/components/Card/index.d.ts +119 -0
- package/dist/components/Card/index.js +4 -0
- package/dist/components/Card/index.js.map +1 -0
- package/dist/components/Checkbox/index.cjs +21 -0
- package/dist/components/Checkbox/index.cjs.map +1 -0
- package/dist/components/Checkbox/index.d.cts +63 -0
- package/dist/components/Checkbox/index.d.ts +63 -0
- package/dist/components/Checkbox/index.js +4 -0
- package/dist/components/Checkbox/index.js.map +1 -0
- package/dist/components/DateInput/index.cjs +15 -0
- package/dist/components/DateInput/index.cjs.map +1 -0
- package/dist/components/DateInput/index.d.cts +55 -0
- package/dist/components/DateInput/index.d.ts +55 -0
- package/dist/components/DateInput/index.js +6 -0
- package/dist/components/DateInput/index.js.map +1 -0
- package/dist/components/Dropdown/index.cjs +35 -0
- package/dist/components/Dropdown/index.cjs.map +1 -0
- package/dist/components/Dropdown/index.d.cts +102 -0
- package/dist/components/Dropdown/index.d.ts +102 -0
- package/dist/components/Dropdown/index.js +6 -0
- package/dist/components/Dropdown/index.js.map +1 -0
- package/dist/components/Input/index.cjs +17 -0
- package/dist/components/Input/index.cjs.map +1 -0
- package/dist/components/Input/index.d.cts +32 -0
- package/dist/components/Input/index.d.ts +32 -0
- package/dist/components/Input/index.js +4 -0
- package/dist/components/Input/index.js.map +1 -0
- package/dist/components/Modal/index.cjs +43 -0
- package/dist/components/Modal/index.cjs.map +1 -0
- package/dist/components/Modal/index.d.cts +82 -0
- package/dist/components/Modal/index.d.ts +82 -0
- package/dist/components/Modal/index.js +6 -0
- package/dist/components/Modal/index.js.map +1 -0
- package/dist/components/Pagination/index.cjs +21 -0
- package/dist/components/Pagination/index.cjs.map +1 -0
- package/dist/components/Pagination/index.d.cts +78 -0
- package/dist/components/Pagination/index.d.ts +78 -0
- package/dist/components/Pagination/index.js +4 -0
- package/dist/components/Pagination/index.js.map +1 -0
- package/dist/components/PhoneInput/index.cjs +19 -0
- package/dist/components/PhoneInput/index.cjs.map +1 -0
- package/dist/components/PhoneInput/index.d.cts +80 -0
- package/dist/components/PhoneInput/index.d.ts +80 -0
- package/dist/components/PhoneInput/index.js +6 -0
- package/dist/components/PhoneInput/index.js.map +1 -0
- package/dist/components/Progress/index.cjs +29 -0
- package/dist/components/Progress/index.cjs.map +1 -0
- package/dist/components/Progress/index.d.cts +76 -0
- package/dist/components/Progress/index.d.ts +76 -0
- package/dist/components/Progress/index.js +4 -0
- package/dist/components/Progress/index.js.map +1 -0
- package/dist/components/QuickAction/index.cjs +29 -0
- package/dist/components/QuickAction/index.cjs.map +1 -0
- package/dist/components/QuickAction/index.d.cts +78 -0
- package/dist/components/QuickAction/index.d.ts +78 -0
- package/dist/components/QuickAction/index.js +4 -0
- package/dist/components/QuickAction/index.js.map +1 -0
- package/dist/components/Radio/index.cjs +21 -0
- package/dist/components/Radio/index.cjs.map +1 -0
- package/dist/components/Radio/index.d.cts +72 -0
- package/dist/components/Radio/index.d.ts +72 -0
- package/dist/components/Radio/index.js +4 -0
- package/dist/components/Radio/index.js.map +1 -0
- package/dist/components/RecordButton/index.cjs +25 -0
- package/dist/components/RecordButton/index.cjs.map +1 -0
- package/dist/components/RecordButton/index.d.cts +83 -0
- package/dist/components/RecordButton/index.d.ts +83 -0
- package/dist/components/RecordButton/index.js +4 -0
- package/dist/components/RecordButton/index.js.map +1 -0
- package/dist/components/SchedulePicker/index.cjs +45 -0
- package/dist/components/SchedulePicker/index.cjs.map +1 -0
- package/dist/components/SchedulePicker/index.d.cts +111 -0
- package/dist/components/SchedulePicker/index.d.ts +111 -0
- package/dist/components/SchedulePicker/index.js +4 -0
- package/dist/components/SchedulePicker/index.js.map +1 -0
- package/dist/components/Select/index.cjs +19 -0
- package/dist/components/Select/index.cjs.map +1 -0
- package/dist/components/Select/index.d.cts +79 -0
- package/dist/components/Select/index.d.ts +79 -0
- package/dist/components/Select/index.js +6 -0
- package/dist/components/Select/index.js.map +1 -0
- package/dist/components/Skeleton/index.cjs +29 -0
- package/dist/components/Skeleton/index.cjs.map +1 -0
- package/dist/components/Skeleton/index.d.cts +96 -0
- package/dist/components/Skeleton/index.d.ts +96 -0
- package/dist/components/Skeleton/index.js +4 -0
- package/dist/components/Skeleton/index.js.map +1 -0
- package/dist/components/Spinner/index.cjs +25 -0
- package/dist/components/Spinner/index.cjs.map +1 -0
- package/dist/components/Spinner/index.d.cts +67 -0
- package/dist/components/Spinner/index.d.ts +67 -0
- package/dist/components/Spinner/index.js +4 -0
- package/dist/components/Spinner/index.js.map +1 -0
- package/dist/components/Switch/index.cjs +21 -0
- package/dist/components/Switch/index.cjs.map +1 -0
- package/dist/components/Switch/index.d.cts +41 -0
- package/dist/components/Switch/index.d.ts +41 -0
- package/dist/components/Switch/index.js +4 -0
- package/dist/components/Switch/index.js.map +1 -0
- package/dist/components/Table/index.cjs +41 -0
- package/dist/components/Table/index.cjs.map +1 -0
- package/dist/components/Table/index.d.cts +54 -0
- package/dist/components/Table/index.d.ts +54 -0
- package/dist/components/Table/index.js +4 -0
- package/dist/components/Table/index.js.map +1 -0
- package/dist/components/Tabs/index.cjs +33 -0
- package/dist/components/Tabs/index.cjs.map +1 -0
- package/dist/components/Tabs/index.d.cts +70 -0
- package/dist/components/Tabs/index.d.ts +70 -0
- package/dist/components/Tabs/index.js +4 -0
- package/dist/components/Tabs/index.js.map +1 -0
- package/dist/components/Text/index.cjs +21 -0
- package/dist/components/Text/index.cjs.map +1 -0
- package/dist/components/Text/index.d.cts +35 -0
- package/dist/components/Text/index.d.ts +35 -0
- package/dist/components/Text/index.js +4 -0
- package/dist/components/Text/index.js.map +1 -0
- package/dist/components/Textarea/index.cjs +17 -0
- package/dist/components/Textarea/index.cjs.map +1 -0
- package/dist/components/Textarea/index.d.cts +42 -0
- package/dist/components/Textarea/index.d.ts +42 -0
- package/dist/components/Textarea/index.js +4 -0
- package/dist/components/Textarea/index.js.map +1 -0
- package/dist/components/ThemeProvider/index.cjs +36 -0
- package/dist/components/ThemeProvider/index.cjs.map +1 -0
- package/dist/components/ThemeProvider/index.d.cts +121 -0
- package/dist/components/ThemeProvider/index.d.ts +121 -0
- package/dist/components/ThemeProvider/index.js +7 -0
- package/dist/components/ThemeProvider/index.js.map +1 -0
- package/dist/components/Tooltip/index.cjs +14 -0
- package/dist/components/Tooltip/index.cjs.map +1 -0
- package/dist/components/Tooltip/index.d.cts +55 -0
- package/dist/components/Tooltip/index.d.ts +55 -0
- package/dist/components/Tooltip/index.js +5 -0
- package/dist/components/Tooltip/index.js.map +1 -0
- package/dist/components/VisuallyHidden/index.cjs +12 -0
- package/dist/components/VisuallyHidden/index.cjs.map +1 -0
- package/dist/components/VisuallyHidden/index.d.cts +20 -0
- package/dist/components/VisuallyHidden/index.d.ts +20 -0
- package/dist/components/VisuallyHidden/index.js +3 -0
- package/dist/components/VisuallyHidden/index.js.map +1 -0
- package/dist/default-LIRPABBK.js +3 -0
- package/dist/default-LIRPABBK.js.map +1 -0
- package/dist/default-ZGHKI5WF.cjs +18 -0
- package/dist/default-ZGHKI5WF.cjs.map +1 -0
- package/dist/enterprise-health-ORQQOLM3.js +3 -0
- package/dist/enterprise-health-ORQQOLM3.js.map +1 -0
- package/dist/enterprise-health-UDI25OCV.cjs +18 -0
- package/dist/enterprise-health-UDI25OCV.cjs.map +1 -0
- package/dist/hooks/index.cjs +69 -0
- package/dist/hooks/index.cjs.map +1 -0
- package/dist/hooks/index.d.cts +179 -0
- package/dist/hooks/index.d.ts +179 -0
- package/dist/hooks/index.js +8 -0
- package/dist/hooks/index.js.map +1 -0
- package/dist/index.cjs +33153 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.cts +8188 -0
- package/dist/index.d.ts +8188 -0
- package/dist/index.js +32162 -0
- package/dist/index.js.map +1 -0
- package/dist/mieweb-PV2YKYO7.js +3 -0
- package/dist/mieweb-PV2YKYO7.js.map +1 -0
- package/dist/mieweb-UJABK5XX.cjs +18 -0
- package/dist/mieweb-UJABK5XX.cjs.map +1 -0
- package/dist/styles.css +2 -0
- package/dist/tailwind-preset.cjs +22 -0
- package/dist/tailwind-preset.cjs.map +1 -0
- package/dist/tailwind-preset.d.cts +39 -0
- package/dist/tailwind-preset.d.ts +39 -0
- package/dist/tailwind-preset.js +3 -0
- package/dist/tailwind-preset.js.map +1 -0
- package/dist/useTheme-B9SWu6ui.d.cts +24 -0
- package/dist/useTheme-B9SWu6ui.d.ts +24 -0
- package/dist/utils/index.cjs +63 -0
- package/dist/utils/index.cjs.map +1 -0
- package/dist/utils/index.d.cts +73 -0
- package/dist/utils/index.d.ts +73 -0
- package/dist/utils/index.js +6 -0
- package/dist/utils/index.js.map +1 -0
- package/dist/waggleline-6IGA66HR.cjs +18 -0
- package/dist/waggleline-6IGA66HR.cjs.map +1 -0
- package/dist/waggleline-BMUYAFJF.js +3 -0
- package/dist/waggleline-BMUYAFJF.js.map +1 -0
- package/dist/webchart-2SLO5ICI.js +3 -0
- package/dist/webchart-2SLO5ICI.js.map +1 -0
- package/dist/webchart-EHVGP46N.cjs +18 -0
- package/dist/webchart-EHVGP46N.cjs.map +1 -0
- package/package.json +212 -0
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var chunkP52GA3GJ_cjs = require('./chunk-P52GA3GJ.cjs');
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
Object.defineProperty(exports, "default", {
|
|
10
|
+
enumerable: true,
|
|
11
|
+
get: function () { return chunkP52GA3GJ_cjs.enterpriseHealthBrand; }
|
|
12
|
+
});
|
|
13
|
+
Object.defineProperty(exports, "enterpriseHealthBrand", {
|
|
14
|
+
enumerable: true,
|
|
15
|
+
get: function () { return chunkP52GA3GJ_cjs.enterpriseHealthBrand; }
|
|
16
|
+
});
|
|
17
|
+
//# sourceMappingURL=enterprise-health-UDI25OCV.cjs.map
|
|
18
|
+
//# sourceMappingURL=enterprise-health-UDI25OCV.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"enterprise-health-UDI25OCV.cjs"}
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var chunkR4DM4635_cjs = require('../chunk-R4DM4635.cjs');
|
|
4
|
+
var chunk2O7D6F67_cjs = require('../chunk-2O7D6F67.cjs');
|
|
5
|
+
var chunk6HFFWEM3_cjs = require('../chunk-6HFFWEM3.cjs');
|
|
6
|
+
var chunkBR2XGATJ_cjs = require('../chunk-BR2XGATJ.cjs');
|
|
7
|
+
var chunkSWMRCGL4_cjs = require('../chunk-SWMRCGL4.cjs');
|
|
8
|
+
var chunkFHY3K6PL_cjs = require('../chunk-FHY3K6PL.cjs');
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
Object.defineProperty(exports, "useCommandK", {
|
|
13
|
+
enumerable: true,
|
|
14
|
+
get: function () { return chunkR4DM4635_cjs.useCommandK; }
|
|
15
|
+
});
|
|
16
|
+
Object.defineProperty(exports, "useIsDesktop", {
|
|
17
|
+
enumerable: true,
|
|
18
|
+
get: function () { return chunkR4DM4635_cjs.useIsDesktop; }
|
|
19
|
+
});
|
|
20
|
+
Object.defineProperty(exports, "useIsLargeDesktop", {
|
|
21
|
+
enumerable: true,
|
|
22
|
+
get: function () { return chunkR4DM4635_cjs.useIsLargeDesktop; }
|
|
23
|
+
});
|
|
24
|
+
Object.defineProperty(exports, "useIsMobile", {
|
|
25
|
+
enumerable: true,
|
|
26
|
+
get: function () { return chunkR4DM4635_cjs.useIsMobile; }
|
|
27
|
+
});
|
|
28
|
+
Object.defineProperty(exports, "useIsMobileOrTablet", {
|
|
29
|
+
enumerable: true,
|
|
30
|
+
get: function () { return chunkR4DM4635_cjs.useIsMobileOrTablet; }
|
|
31
|
+
});
|
|
32
|
+
Object.defineProperty(exports, "useIsSmallTablet", {
|
|
33
|
+
enumerable: true,
|
|
34
|
+
get: function () { return chunkR4DM4635_cjs.useIsSmallTablet; }
|
|
35
|
+
});
|
|
36
|
+
Object.defineProperty(exports, "useIsTablet", {
|
|
37
|
+
enumerable: true,
|
|
38
|
+
get: function () { return chunkR4DM4635_cjs.useIsTablet; }
|
|
39
|
+
});
|
|
40
|
+
Object.defineProperty(exports, "useKeyboardShortcut", {
|
|
41
|
+
enumerable: true,
|
|
42
|
+
get: function () { return chunkR4DM4635_cjs.useKeyboardShortcut; }
|
|
43
|
+
});
|
|
44
|
+
Object.defineProperty(exports, "useMediaQuery", {
|
|
45
|
+
enumerable: true,
|
|
46
|
+
get: function () { return chunkR4DM4635_cjs.useMediaQuery; }
|
|
47
|
+
});
|
|
48
|
+
Object.defineProperty(exports, "useTheme", {
|
|
49
|
+
enumerable: true,
|
|
50
|
+
get: function () { return chunk2O7D6F67_cjs.useTheme; }
|
|
51
|
+
});
|
|
52
|
+
Object.defineProperty(exports, "usePrefersReducedMotion", {
|
|
53
|
+
enumerable: true,
|
|
54
|
+
get: function () { return chunk6HFFWEM3_cjs.usePrefersReducedMotion; }
|
|
55
|
+
});
|
|
56
|
+
Object.defineProperty(exports, "useFocusTrap", {
|
|
57
|
+
enumerable: true,
|
|
58
|
+
get: function () { return chunkBR2XGATJ_cjs.useFocusTrap; }
|
|
59
|
+
});
|
|
60
|
+
Object.defineProperty(exports, "useClickOutside", {
|
|
61
|
+
enumerable: true,
|
|
62
|
+
get: function () { return chunkSWMRCGL4_cjs.useClickOutside; }
|
|
63
|
+
});
|
|
64
|
+
Object.defineProperty(exports, "useEscapeKey", {
|
|
65
|
+
enumerable: true,
|
|
66
|
+
get: function () { return chunkFHY3K6PL_cjs.useEscapeKey; }
|
|
67
|
+
});
|
|
68
|
+
//# sourceMappingURL=index.cjs.map
|
|
69
|
+
//# sourceMappingURL=index.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"index.cjs"}
|
|
@@ -0,0 +1,179 @@
|
|
|
1
|
+
export { R as ResolvedTheme, T as Theme, u as useTheme } from '../useTheme-B9SWu6ui.cjs';
|
|
2
|
+
import { RefObject } from 'react';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* Hook that detects if the user prefers reduced motion.
|
|
6
|
+
* Useful for disabling animations for accessibility.
|
|
7
|
+
*
|
|
8
|
+
* @example
|
|
9
|
+
* ```tsx
|
|
10
|
+
* function AnimatedComponent() {
|
|
11
|
+
* const prefersReducedMotion = usePrefersReducedMotion();
|
|
12
|
+
* return (
|
|
13
|
+
* <div className={prefersReducedMotion ? '' : 'animate-fade-in'}>
|
|
14
|
+
* Content
|
|
15
|
+
* </div>
|
|
16
|
+
* );
|
|
17
|
+
* }
|
|
18
|
+
* ```
|
|
19
|
+
*/
|
|
20
|
+
declare function usePrefersReducedMotion(): boolean;
|
|
21
|
+
|
|
22
|
+
/**
|
|
23
|
+
* Hook that detects clicks outside of a specified element.
|
|
24
|
+
* Useful for closing dropdowns, modals, and other overlays.
|
|
25
|
+
*
|
|
26
|
+
* @example
|
|
27
|
+
* ```tsx
|
|
28
|
+
* function Dropdown() {
|
|
29
|
+
* const [isOpen, setIsOpen] = useState(false);
|
|
30
|
+
* const ref = useRef<HTMLDivElement>(null);
|
|
31
|
+
*
|
|
32
|
+
* useClickOutside(ref, () => setIsOpen(false));
|
|
33
|
+
*
|
|
34
|
+
* return (
|
|
35
|
+
* <div ref={ref}>
|
|
36
|
+
* <button onClick={() => setIsOpen(!isOpen)}>Toggle</button>
|
|
37
|
+
* {isOpen && <div>Dropdown content</div>}
|
|
38
|
+
* </div>
|
|
39
|
+
* );
|
|
40
|
+
* }
|
|
41
|
+
* ```
|
|
42
|
+
*/
|
|
43
|
+
declare function useClickOutside<T extends HTMLElement>(ref: RefObject<T | null>, callback: () => void): void;
|
|
44
|
+
|
|
45
|
+
/**
|
|
46
|
+
* Hook that triggers a callback when the Escape key is pressed.
|
|
47
|
+
* Useful for closing modals, dropdowns, and other overlays.
|
|
48
|
+
*
|
|
49
|
+
* @param callback - Function to call when Escape is pressed
|
|
50
|
+
* @param enabled - Whether the listener is active (default: true)
|
|
51
|
+
*
|
|
52
|
+
* @example
|
|
53
|
+
* ```tsx
|
|
54
|
+
* function Modal({ onClose }: { onClose: () => void }) {
|
|
55
|
+
* useEscapeKey(onClose);
|
|
56
|
+
* return <div>Modal content</div>;
|
|
57
|
+
* }
|
|
58
|
+
* ```
|
|
59
|
+
*/
|
|
60
|
+
declare function useEscapeKey(callback: () => void, enabled?: boolean): void;
|
|
61
|
+
|
|
62
|
+
/**
|
|
63
|
+
* Hook that traps focus within a container element.
|
|
64
|
+
* Essential for accessibility in modals and dialogs.
|
|
65
|
+
*
|
|
66
|
+
* @param enabled - Whether focus trapping is active
|
|
67
|
+
* @returns ref to attach to the container element
|
|
68
|
+
*
|
|
69
|
+
* @example
|
|
70
|
+
* ```tsx
|
|
71
|
+
* function Modal({ isOpen }: { isOpen: boolean }) {
|
|
72
|
+
* const containerRef = useFocusTrap<HTMLDivElement>(isOpen);
|
|
73
|
+
* return (
|
|
74
|
+
* <div ref={containerRef} role="dialog" aria-modal="true">
|
|
75
|
+
* <button>First focusable</button>
|
|
76
|
+
* <button>Last focusable</button>
|
|
77
|
+
* </div>
|
|
78
|
+
* );
|
|
79
|
+
* }
|
|
80
|
+
* ```
|
|
81
|
+
*/
|
|
82
|
+
declare function useFocusTrap<T extends HTMLElement>(enabled?: boolean): RefObject<T | null>;
|
|
83
|
+
|
|
84
|
+
/**
|
|
85
|
+
* Options for keyboard shortcut hook
|
|
86
|
+
*/
|
|
87
|
+
interface KeyboardShortcutOptions {
|
|
88
|
+
/** Whether the shortcut is currently enabled (default: true) */
|
|
89
|
+
enabled?: boolean;
|
|
90
|
+
/** Modifier keys required (default: none) */
|
|
91
|
+
modifiers?: {
|
|
92
|
+
ctrl?: boolean;
|
|
93
|
+
shift?: boolean;
|
|
94
|
+
alt?: boolean;
|
|
95
|
+
meta?: boolean;
|
|
96
|
+
};
|
|
97
|
+
/** Whether to prevent default browser behavior (default: true) */
|
|
98
|
+
preventDefault?: boolean;
|
|
99
|
+
/** Whether to stop event propagation (default: false) */
|
|
100
|
+
stopPropagation?: boolean;
|
|
101
|
+
/** Element types to ignore when the shortcut is pressed (default: ['INPUT', 'TEXTAREA', 'SELECT']) */
|
|
102
|
+
ignoreInputs?: boolean;
|
|
103
|
+
}
|
|
104
|
+
/**
|
|
105
|
+
* Hook that triggers a callback when a specific keyboard shortcut is pressed.
|
|
106
|
+
* Supports modifier keys (Ctrl, Shift, Alt, Meta) and ignores input fields by default.
|
|
107
|
+
*
|
|
108
|
+
* @param key - The key to listen for (e.g., 'k', 'Enter', 'Escape', '/')
|
|
109
|
+
* @param callback - Function to call when the shortcut is pressed
|
|
110
|
+
* @param options - Configuration options
|
|
111
|
+
*
|
|
112
|
+
* @example
|
|
113
|
+
* ```tsx
|
|
114
|
+
* // Cmd/Ctrl+K to open search
|
|
115
|
+
* useKeyboardShortcut('k', openSearch, { modifiers: { meta: true, ctrl: true } });
|
|
116
|
+
*
|
|
117
|
+
* // Forward slash to focus search (ignoring when typing)
|
|
118
|
+
* useKeyboardShortcut('/', focusSearch);
|
|
119
|
+
*
|
|
120
|
+
* // Escape to close modal
|
|
121
|
+
* useKeyboardShortcut('Escape', closeModal);
|
|
122
|
+
* ```
|
|
123
|
+
*/
|
|
124
|
+
declare function useKeyboardShortcut(key: string, callback: (event: KeyboardEvent) => void, options?: KeyboardShortcutOptions): void;
|
|
125
|
+
/**
|
|
126
|
+
* Hook for the common Cmd/Ctrl+K shortcut pattern (command palette, search, etc.)
|
|
127
|
+
*
|
|
128
|
+
* @param callback - Function to call when Cmd/Ctrl+K is pressed
|
|
129
|
+
* @param enabled - Whether the shortcut is active (default: true)
|
|
130
|
+
*
|
|
131
|
+
* @example
|
|
132
|
+
* ```tsx
|
|
133
|
+
* useCommandK(() => setIsOpen(true));
|
|
134
|
+
* ```
|
|
135
|
+
*/
|
|
136
|
+
declare function useCommandK(callback: () => void, enabled?: boolean): void;
|
|
137
|
+
|
|
138
|
+
/**
|
|
139
|
+
* Hook that tracks whether a media query matches.
|
|
140
|
+
* Uses the native `matchMedia` API for efficient media query tracking.
|
|
141
|
+
*
|
|
142
|
+
* @param query - CSS media query string (e.g., '(min-width: 768px)')
|
|
143
|
+
* @returns Boolean indicating whether the media query matches
|
|
144
|
+
*
|
|
145
|
+
* @example
|
|
146
|
+
* ```tsx
|
|
147
|
+
* function ResponsiveComponent() {
|
|
148
|
+
* const isMobile = useMediaQuery('(max-width: 767px)');
|
|
149
|
+
* const isTablet = useMediaQuery('(min-width: 768px) and (max-width: 1023px)');
|
|
150
|
+
* const isDesktop = useMediaQuery('(min-width: 1024px)');
|
|
151
|
+
*
|
|
152
|
+
* return (
|
|
153
|
+
* <div>
|
|
154
|
+
* {isMobile && <MobileLayout />}
|
|
155
|
+
* {isTablet && <TabletLayout />}
|
|
156
|
+
* {isDesktop && <DesktopLayout />}
|
|
157
|
+
* </div>
|
|
158
|
+
* );
|
|
159
|
+
* }
|
|
160
|
+
* ```
|
|
161
|
+
*/
|
|
162
|
+
declare function useMediaQuery(query: string): boolean;
|
|
163
|
+
/**
|
|
164
|
+
* Preset breakpoint hooks following common responsive design patterns
|
|
165
|
+
*/
|
|
166
|
+
/** Returns true when viewport is smaller than 640px (mobile) */
|
|
167
|
+
declare function useIsMobile(): boolean;
|
|
168
|
+
/** Returns true when viewport is 640px-767px (large mobile / small tablet) */
|
|
169
|
+
declare function useIsSmallTablet(): boolean;
|
|
170
|
+
/** Returns true when viewport is 768px-1023px (tablet) */
|
|
171
|
+
declare function useIsTablet(): boolean;
|
|
172
|
+
/** Returns true when viewport is 1024px or larger (desktop) */
|
|
173
|
+
declare function useIsDesktop(): boolean;
|
|
174
|
+
/** Returns true when viewport is 1280px or larger (large desktop) */
|
|
175
|
+
declare function useIsLargeDesktop(): boolean;
|
|
176
|
+
/** Returns true when viewport is smaller than 1024px (mobile/tablet) */
|
|
177
|
+
declare function useIsMobileOrTablet(): boolean;
|
|
178
|
+
|
|
179
|
+
export { type KeyboardShortcutOptions, useClickOutside, useCommandK, useEscapeKey, useFocusTrap, useIsDesktop, useIsLargeDesktop, useIsMobile, useIsMobileOrTablet, useIsSmallTablet, useIsTablet, useKeyboardShortcut, useMediaQuery, usePrefersReducedMotion };
|
|
@@ -0,0 +1,179 @@
|
|
|
1
|
+
export { R as ResolvedTheme, T as Theme, u as useTheme } from '../useTheme-B9SWu6ui.js';
|
|
2
|
+
import { RefObject } from 'react';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* Hook that detects if the user prefers reduced motion.
|
|
6
|
+
* Useful for disabling animations for accessibility.
|
|
7
|
+
*
|
|
8
|
+
* @example
|
|
9
|
+
* ```tsx
|
|
10
|
+
* function AnimatedComponent() {
|
|
11
|
+
* const prefersReducedMotion = usePrefersReducedMotion();
|
|
12
|
+
* return (
|
|
13
|
+
* <div className={prefersReducedMotion ? '' : 'animate-fade-in'}>
|
|
14
|
+
* Content
|
|
15
|
+
* </div>
|
|
16
|
+
* );
|
|
17
|
+
* }
|
|
18
|
+
* ```
|
|
19
|
+
*/
|
|
20
|
+
declare function usePrefersReducedMotion(): boolean;
|
|
21
|
+
|
|
22
|
+
/**
|
|
23
|
+
* Hook that detects clicks outside of a specified element.
|
|
24
|
+
* Useful for closing dropdowns, modals, and other overlays.
|
|
25
|
+
*
|
|
26
|
+
* @example
|
|
27
|
+
* ```tsx
|
|
28
|
+
* function Dropdown() {
|
|
29
|
+
* const [isOpen, setIsOpen] = useState(false);
|
|
30
|
+
* const ref = useRef<HTMLDivElement>(null);
|
|
31
|
+
*
|
|
32
|
+
* useClickOutside(ref, () => setIsOpen(false));
|
|
33
|
+
*
|
|
34
|
+
* return (
|
|
35
|
+
* <div ref={ref}>
|
|
36
|
+
* <button onClick={() => setIsOpen(!isOpen)}>Toggle</button>
|
|
37
|
+
* {isOpen && <div>Dropdown content</div>}
|
|
38
|
+
* </div>
|
|
39
|
+
* );
|
|
40
|
+
* }
|
|
41
|
+
* ```
|
|
42
|
+
*/
|
|
43
|
+
declare function useClickOutside<T extends HTMLElement>(ref: RefObject<T | null>, callback: () => void): void;
|
|
44
|
+
|
|
45
|
+
/**
|
|
46
|
+
* Hook that triggers a callback when the Escape key is pressed.
|
|
47
|
+
* Useful for closing modals, dropdowns, and other overlays.
|
|
48
|
+
*
|
|
49
|
+
* @param callback - Function to call when Escape is pressed
|
|
50
|
+
* @param enabled - Whether the listener is active (default: true)
|
|
51
|
+
*
|
|
52
|
+
* @example
|
|
53
|
+
* ```tsx
|
|
54
|
+
* function Modal({ onClose }: { onClose: () => void }) {
|
|
55
|
+
* useEscapeKey(onClose);
|
|
56
|
+
* return <div>Modal content</div>;
|
|
57
|
+
* }
|
|
58
|
+
* ```
|
|
59
|
+
*/
|
|
60
|
+
declare function useEscapeKey(callback: () => void, enabled?: boolean): void;
|
|
61
|
+
|
|
62
|
+
/**
|
|
63
|
+
* Hook that traps focus within a container element.
|
|
64
|
+
* Essential for accessibility in modals and dialogs.
|
|
65
|
+
*
|
|
66
|
+
* @param enabled - Whether focus trapping is active
|
|
67
|
+
* @returns ref to attach to the container element
|
|
68
|
+
*
|
|
69
|
+
* @example
|
|
70
|
+
* ```tsx
|
|
71
|
+
* function Modal({ isOpen }: { isOpen: boolean }) {
|
|
72
|
+
* const containerRef = useFocusTrap<HTMLDivElement>(isOpen);
|
|
73
|
+
* return (
|
|
74
|
+
* <div ref={containerRef} role="dialog" aria-modal="true">
|
|
75
|
+
* <button>First focusable</button>
|
|
76
|
+
* <button>Last focusable</button>
|
|
77
|
+
* </div>
|
|
78
|
+
* );
|
|
79
|
+
* }
|
|
80
|
+
* ```
|
|
81
|
+
*/
|
|
82
|
+
declare function useFocusTrap<T extends HTMLElement>(enabled?: boolean): RefObject<T | null>;
|
|
83
|
+
|
|
84
|
+
/**
|
|
85
|
+
* Options for keyboard shortcut hook
|
|
86
|
+
*/
|
|
87
|
+
interface KeyboardShortcutOptions {
|
|
88
|
+
/** Whether the shortcut is currently enabled (default: true) */
|
|
89
|
+
enabled?: boolean;
|
|
90
|
+
/** Modifier keys required (default: none) */
|
|
91
|
+
modifiers?: {
|
|
92
|
+
ctrl?: boolean;
|
|
93
|
+
shift?: boolean;
|
|
94
|
+
alt?: boolean;
|
|
95
|
+
meta?: boolean;
|
|
96
|
+
};
|
|
97
|
+
/** Whether to prevent default browser behavior (default: true) */
|
|
98
|
+
preventDefault?: boolean;
|
|
99
|
+
/** Whether to stop event propagation (default: false) */
|
|
100
|
+
stopPropagation?: boolean;
|
|
101
|
+
/** Element types to ignore when the shortcut is pressed (default: ['INPUT', 'TEXTAREA', 'SELECT']) */
|
|
102
|
+
ignoreInputs?: boolean;
|
|
103
|
+
}
|
|
104
|
+
/**
|
|
105
|
+
* Hook that triggers a callback when a specific keyboard shortcut is pressed.
|
|
106
|
+
* Supports modifier keys (Ctrl, Shift, Alt, Meta) and ignores input fields by default.
|
|
107
|
+
*
|
|
108
|
+
* @param key - The key to listen for (e.g., 'k', 'Enter', 'Escape', '/')
|
|
109
|
+
* @param callback - Function to call when the shortcut is pressed
|
|
110
|
+
* @param options - Configuration options
|
|
111
|
+
*
|
|
112
|
+
* @example
|
|
113
|
+
* ```tsx
|
|
114
|
+
* // Cmd/Ctrl+K to open search
|
|
115
|
+
* useKeyboardShortcut('k', openSearch, { modifiers: { meta: true, ctrl: true } });
|
|
116
|
+
*
|
|
117
|
+
* // Forward slash to focus search (ignoring when typing)
|
|
118
|
+
* useKeyboardShortcut('/', focusSearch);
|
|
119
|
+
*
|
|
120
|
+
* // Escape to close modal
|
|
121
|
+
* useKeyboardShortcut('Escape', closeModal);
|
|
122
|
+
* ```
|
|
123
|
+
*/
|
|
124
|
+
declare function useKeyboardShortcut(key: string, callback: (event: KeyboardEvent) => void, options?: KeyboardShortcutOptions): void;
|
|
125
|
+
/**
|
|
126
|
+
* Hook for the common Cmd/Ctrl+K shortcut pattern (command palette, search, etc.)
|
|
127
|
+
*
|
|
128
|
+
* @param callback - Function to call when Cmd/Ctrl+K is pressed
|
|
129
|
+
* @param enabled - Whether the shortcut is active (default: true)
|
|
130
|
+
*
|
|
131
|
+
* @example
|
|
132
|
+
* ```tsx
|
|
133
|
+
* useCommandK(() => setIsOpen(true));
|
|
134
|
+
* ```
|
|
135
|
+
*/
|
|
136
|
+
declare function useCommandK(callback: () => void, enabled?: boolean): void;
|
|
137
|
+
|
|
138
|
+
/**
|
|
139
|
+
* Hook that tracks whether a media query matches.
|
|
140
|
+
* Uses the native `matchMedia` API for efficient media query tracking.
|
|
141
|
+
*
|
|
142
|
+
* @param query - CSS media query string (e.g., '(min-width: 768px)')
|
|
143
|
+
* @returns Boolean indicating whether the media query matches
|
|
144
|
+
*
|
|
145
|
+
* @example
|
|
146
|
+
* ```tsx
|
|
147
|
+
* function ResponsiveComponent() {
|
|
148
|
+
* const isMobile = useMediaQuery('(max-width: 767px)');
|
|
149
|
+
* const isTablet = useMediaQuery('(min-width: 768px) and (max-width: 1023px)');
|
|
150
|
+
* const isDesktop = useMediaQuery('(min-width: 1024px)');
|
|
151
|
+
*
|
|
152
|
+
* return (
|
|
153
|
+
* <div>
|
|
154
|
+
* {isMobile && <MobileLayout />}
|
|
155
|
+
* {isTablet && <TabletLayout />}
|
|
156
|
+
* {isDesktop && <DesktopLayout />}
|
|
157
|
+
* </div>
|
|
158
|
+
* );
|
|
159
|
+
* }
|
|
160
|
+
* ```
|
|
161
|
+
*/
|
|
162
|
+
declare function useMediaQuery(query: string): boolean;
|
|
163
|
+
/**
|
|
164
|
+
* Preset breakpoint hooks following common responsive design patterns
|
|
165
|
+
*/
|
|
166
|
+
/** Returns true when viewport is smaller than 640px (mobile) */
|
|
167
|
+
declare function useIsMobile(): boolean;
|
|
168
|
+
/** Returns true when viewport is 640px-767px (large mobile / small tablet) */
|
|
169
|
+
declare function useIsSmallTablet(): boolean;
|
|
170
|
+
/** Returns true when viewport is 768px-1023px (tablet) */
|
|
171
|
+
declare function useIsTablet(): boolean;
|
|
172
|
+
/** Returns true when viewport is 1024px or larger (desktop) */
|
|
173
|
+
declare function useIsDesktop(): boolean;
|
|
174
|
+
/** Returns true when viewport is 1280px or larger (large desktop) */
|
|
175
|
+
declare function useIsLargeDesktop(): boolean;
|
|
176
|
+
/** Returns true when viewport is smaller than 1024px (mobile/tablet) */
|
|
177
|
+
declare function useIsMobileOrTablet(): boolean;
|
|
178
|
+
|
|
179
|
+
export { type KeyboardShortcutOptions, useClickOutside, useCommandK, useEscapeKey, useFocusTrap, useIsDesktop, useIsLargeDesktop, useIsMobile, useIsMobileOrTablet, useIsSmallTablet, useIsTablet, useKeyboardShortcut, useMediaQuery, usePrefersReducedMotion };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export { useCommandK, useIsDesktop, useIsLargeDesktop, useIsMobile, useIsMobileOrTablet, useIsSmallTablet, useIsTablet, useKeyboardShortcut, useMediaQuery } from '../chunk-CP7NPDQW.js';
|
|
2
|
+
export { useTheme } from '../chunk-KJZNEVYM.js';
|
|
3
|
+
export { usePrefersReducedMotion } from '../chunk-HB7C7NB5.js';
|
|
4
|
+
export { useFocusTrap } from '../chunk-CLNOI5J7.js';
|
|
5
|
+
export { useClickOutside } from '../chunk-OT36EMM5.js';
|
|
6
|
+
export { useEscapeKey } from '../chunk-T4ME7QCT.js';
|
|
7
|
+
//# sourceMappingURL=index.js.map
|
|
8
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"index.js"}
|