@trilogy-ds/react 0.0.26-esm-cjs → 0.0.28-esm-cjs
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/lib/{chunk-YTLLJ6RH.mjs → chunk-2FNMU5IX.mjs} +5 -5
- package/lib/{chunk-VN4ZXS27.mjs → chunk-2HYM6QES.mjs} +4 -4
- package/lib/{chunk-MAENF3VX.mjs → chunk-2PZUJQQR.mjs} +4 -4
- package/lib/{chunk-D7QZPJSF.mjs → chunk-2QZXS5AV.mjs} +4 -4
- package/lib/{chunk-6BRKV3OX.mjs → chunk-2WSBPEOM.mjs} +2 -2
- package/lib/{chunk-VXPAONOR.mjs → chunk-2ZXNMNZQ.mjs} +3 -3
- package/lib/{chunk-7XDHFJHA.mjs → chunk-3CLJZ35B.mjs} +3 -3
- package/lib/{chunk-I5HF26DL.mjs → chunk-3EMMIIET.mjs} +6 -6
- package/lib/{chunk-52HQIQWC.mjs → chunk-3IHIP67Z.mjs} +1 -1
- package/lib/{chunk-KDAZ6BEC.mjs → chunk-3IZPRJRW.mjs} +2 -2
- package/lib/{chunk-VFLDE54S.mjs → chunk-3MRBYJGC.mjs} +3 -3
- package/lib/{chunk-N2ZRITFK.mjs → chunk-3OQUOEEJ.mjs} +3 -3
- package/lib/{chunk-QMVD2AXH.mjs → chunk-3TNW7H2X.mjs} +4 -4
- package/lib/{chunk-4TJ4WCBN.mjs → chunk-3U5AG5RZ.mjs} +2 -2
- package/lib/{chunk-V5NZV3BW.mjs → chunk-3Y6JQ767.mjs} +1 -1
- package/lib/{chunk-7Y2HGS2P.mjs → chunk-46KWKMJG.mjs} +2 -2
- package/lib/{chunk-SND7OSS4.mjs → chunk-4ADCF72E.mjs} +2 -2
- package/lib/{chunk-6BSQWFNU.mjs → chunk-4N2HADSN.mjs} +2 -2
- package/lib/{chunk-DLQQ5RUK.mjs → chunk-4OJAZNII.mjs} +4 -4
- package/lib/{chunk-BAHET6SO.mjs → chunk-4RX5LU4W.mjs} +2 -2
- package/lib/{chunk-MEPLLYE4.mjs → chunk-55YD5ED2.mjs} +4 -7
- package/lib/chunk-57ZCA2JK.mjs +27 -0
- package/lib/{chunk-X67AAUB2.mjs → chunk-5GU35YAB.mjs} +1 -1
- package/lib/{chunk-WZ5KQZFN.mjs → chunk-5IXVMMY7.mjs} +2 -2
- package/lib/{chunk-M2TC4BZG.mjs → chunk-5WJ7A7D5.mjs} +4 -4
- package/lib/{chunk-FDO26JVD.mjs → chunk-5XH2PQIG.mjs} +4 -4
- package/lib/{chunk-G25IZXAD.mjs → chunk-5XWBQO3M.mjs} +6 -6
- package/lib/{chunk-S7NWKIXK.mjs → chunk-646A2HCH.mjs} +1 -1
- package/lib/{chunk-4OWEDMLE.mjs → chunk-6NXJEE3F.mjs} +1 -1
- package/lib/{chunk-6SQYOEWM.mjs → chunk-6Q3377VJ.mjs} +17 -74
- package/lib/{chunk-2YH3RRRM.mjs → chunk-6RXP4NE6.mjs} +2 -2
- package/lib/{chunk-O4THC3SR.mjs → chunk-6V2MRRVW.mjs} +1 -1
- package/lib/{chunk-75VV7W4Z.mjs → chunk-7GLFPWPU.mjs} +2 -2
- package/lib/{chunk-FVGAKQHS.mjs → chunk-7HNDZCFM.mjs} +3 -3
- package/lib/{chunk-REASBJQM.mjs → chunk-7IA5T4GI.mjs} +3 -3
- package/lib/{chunk-CEDDJDON.mjs → chunk-7JWRLHSR.mjs} +5 -5
- package/lib/{chunk-UGCBEAF4.mjs → chunk-7K7SPNOM.mjs} +2 -2
- package/lib/{chunk-AYI37F2L.mjs → chunk-7WILNASW.mjs} +2 -2
- package/lib/{chunk-NYLWPJMU.mjs → chunk-7ZWD57KT.mjs} +3 -3
- package/lib/{chunk-RVE7QNTO.mjs → chunk-A2GENPGN.mjs} +1 -1
- package/lib/{chunk-E4YRRUI3.mjs → chunk-A2OOIRKG.mjs} +4 -2
- package/lib/{chunk-LR6UB33S.mjs → chunk-A5Y275DM.mjs} +1 -1
- package/lib/chunk-AHFPVKHD.mjs +1 -0
- package/lib/{chunk-MMG2MVYV.mjs → chunk-B2FYI737.mjs} +1 -1
- package/lib/{chunk-Y7OXSD5B.mjs → chunk-B5LAI56B.mjs} +2 -2
- package/lib/chunk-BH2YO4EE.mjs +1 -0
- package/lib/{chunk-SIIM6V43.mjs → chunk-BH74XDMP.mjs} +6 -16
- package/lib/{chunk-R3PATAKZ.mjs → chunk-BKAHLA6T.mjs} +7 -7
- package/lib/{chunk-RMYLVQQI.mjs → chunk-BOJEB57A.mjs} +4 -5
- package/lib/{chunk-SNMP7GGG.mjs → chunk-BPOHYLLY.mjs} +4 -4
- package/lib/chunk-BU5IIOVY.mjs +1 -0
- package/lib/{chunk-6CVNPSI3.mjs → chunk-C6EXVJOJ.mjs} +1 -1
- package/lib/{chunk-VRAQPSBJ.mjs → chunk-CAKOEONJ.mjs} +4 -4
- package/lib/{chunk-DL6NMHIM.mjs → chunk-CGRFHQUS.mjs} +6 -6
- package/lib/{chunk-CUPC2XLZ.mjs → chunk-CJLC36ED.mjs} +1 -1
- package/lib/chunk-CQ4R52AQ.mjs +129 -0
- package/lib/{chunk-TU3M3HXO.mjs → chunk-D6KHDGMM.mjs} +2 -2
- package/lib/{chunk-XEMIHTST.mjs → chunk-D7B3AXCV.mjs} +2 -2
- package/lib/{chunk-L4UDEKQK.mjs → chunk-DBSMMWLO.mjs} +25 -27
- package/lib/{chunk-KYJZK3YJ.mjs → chunk-DEACASZB.mjs} +2 -2
- package/lib/{chunk-7T4UN4NV.mjs → chunk-DIG52JAP.mjs} +2 -2
- package/lib/{chunk-MFQR6S2P.mjs → chunk-DKIHQR7V.mjs} +1 -1
- package/lib/{chunk-AASRNCVH.mjs → chunk-DPDJLVWF.mjs} +1 -1
- package/lib/{chunk-FM5TDIGH.mjs → chunk-DRDVVX4C.mjs} +1 -1
- package/lib/chunk-DSNLT3UH.mjs +1 -0
- package/lib/{chunk-GDGMVGYN.mjs → chunk-DSRICZET.mjs} +2 -2
- package/lib/{chunk-54XVTKOK.mjs → chunk-DTFTWQQS.mjs} +3 -3
- package/lib/chunk-DXF7I6CG.mjs +1 -0
- package/lib/{chunk-PKUBH5X2.mjs → chunk-ED5WYLTT.mjs} +2 -2
- package/lib/{chunk-HUUIFJSN.mjs → chunk-EFP7DVG5.mjs} +1 -1
- package/lib/{chunk-K2JIIRTX.mjs → chunk-EGVXOTE6.mjs} +3 -3
- package/lib/{chunk-FWRHFQLQ.mjs → chunk-EJ7CRWYJ.mjs} +2 -2
- package/lib/{chunk-3K66IDEM.mjs → chunk-EQYCLLGI.mjs} +1 -1
- package/lib/{chunk-UXIUWXUF.mjs → chunk-ESKMYNGQ.mjs} +1 -1
- package/lib/{chunk-5QUXSOHX.mjs → chunk-ESW3POMO.mjs} +1 -1
- package/lib/{chunk-CGAJ7YB2.mjs → chunk-F3CYHG6O.mjs} +4 -4
- package/lib/{chunk-3KNUQLB6.mjs → chunk-FC6GPWAZ.mjs} +2 -2
- package/lib/{chunk-QLJMWP7T.mjs → chunk-FLYK57G3.mjs} +2 -2
- package/lib/{chunk-RUOX32PA.mjs → chunk-FPCVKIZS.mjs} +3 -3
- package/lib/chunk-FRHV2QIJ.mjs +1 -0
- package/lib/{chunk-TT23XPP5.mjs → chunk-FUBZO2MZ.mjs} +2 -2
- package/lib/{chunk-7VSJ3RTI.mjs → chunk-GA2G3UAN.mjs} +4 -2
- package/lib/chunk-GA52AA6D.mjs +1 -0
- package/lib/{chunk-S7J3C47T.mjs → chunk-GEP3KAEA.mjs} +1 -1
- package/lib/chunk-GRRASUZF.mjs +1 -0
- package/lib/{chunk-TTOOQXA2.mjs → chunk-GVASFGHQ.mjs} +3 -3
- package/lib/{chunk-U7ZITDRY.mjs → chunk-GXJ7QD2H.mjs} +3 -3
- package/lib/{chunk-O26LE2MU.mjs → chunk-H6QEN4NN.mjs} +2 -2
- package/lib/{chunk-RNN54DGP.mjs → chunk-H7HGXRWI.mjs} +2 -2
- package/lib/chunk-HAIHG3RG.mjs +84 -0
- package/lib/{chunk-WJPKHTJB.mjs → chunk-HBGKDX6F.mjs} +2 -2
- package/lib/{chunk-IQBE33C7.mjs → chunk-HGUXIYN5.mjs} +3 -3
- package/lib/{chunk-7WYOWHKR.mjs → chunk-HHXAXWJI.mjs} +1 -1
- package/lib/chunk-HJOVQPVB.mjs +48 -0
- package/lib/chunk-HJYU5E5R.mjs +104 -0
- package/lib/{chunk-O4JDUDIB.mjs → chunk-HPBRN6XW.mjs} +4 -4
- package/lib/chunk-HPMZZUFH.mjs +13 -0
- package/lib/{chunk-V7KCQBOE.mjs → chunk-HWSV5GKN.mjs} +3 -3
- package/lib/chunk-HZ3DFWF6.mjs +1 -0
- package/lib/{chunk-ARA7YCBH.mjs → chunk-HZZLLQ65.mjs} +1 -1
- package/lib/{chunk-PUI5XUNN.mjs → chunk-I6MSAMAC.mjs} +1 -1
- package/lib/{chunk-LFNZETZS.mjs → chunk-IBJX42RL.mjs} +3 -3
- package/lib/{chunk-EHWZOM3O.mjs → chunk-IC445GIJ.mjs} +3 -3
- package/lib/{chunk-ZZ6LK25R.mjs → chunk-IFUHFOWH.mjs} +2 -2
- package/lib/{chunk-HKJPCWC2.mjs → chunk-IK5P3TKT.mjs} +2 -2
- package/lib/{chunk-K6DW4JHP.mjs → chunk-ILIFTIS7.mjs} +1 -1
- package/lib/{chunk-3LXODEBD.mjs → chunk-IMU5WNB3.mjs} +1 -1
- package/lib/{chunk-C755BW7T.mjs → chunk-IOVSRIE6.mjs} +1 -1
- package/lib/{chunk-YKUYXBXK.mjs → chunk-IPZTVXIE.mjs} +1 -1
- package/lib/{chunk-ZFXTFSU7.mjs → chunk-IZUKA7UT.mjs} +2 -2
- package/lib/{chunk-ASB33EQZ.mjs → chunk-J2WZEY4A.mjs} +3 -3
- package/lib/chunk-J76YWOKT.mjs +139 -0
- package/lib/{chunk-CABYORPP.mjs → chunk-JALHID37.mjs} +2 -2
- package/lib/{chunk-M5IAFQJU.mjs → chunk-JAZFBHYC.mjs} +1 -1
- package/lib/{chunk-IA3WT3RN.mjs → chunk-JFIQ6B2V.mjs} +1 -1
- package/lib/{chunk-I6QAEJTP.mjs → chunk-JJU7GKEZ.mjs} +1 -1
- package/lib/{chunk-ORKJJOJJ.mjs → chunk-JKB3FJDP.mjs} +4 -4
- package/lib/{chunk-W4TMRSZ2.mjs → chunk-KBHDFQFH.mjs} +2 -2
- package/lib/{chunk-5TA2DEFJ.mjs → chunk-KHZZLEU7.mjs} +5 -5
- package/lib/{chunk-O32SL32C.mjs → chunk-KNUAL7BY.mjs} +2 -2
- package/lib/{chunk-ANCM66IY.mjs → chunk-KPZTLGUB.mjs} +1 -1
- package/lib/{chunk-QSMS7EPD.mjs → chunk-KRROU6EI.mjs} +3 -3
- package/lib/{chunk-MMFURLTB.mjs → chunk-KVJVSJWO.mjs} +3 -3
- package/lib/{chunk-BW6K6RLN.mjs → chunk-L37WAR3R.mjs} +2 -2
- package/lib/{chunk-AH5YNWHF.mjs → chunk-L4XWH35Z.mjs} +1 -1
- package/lib/{chunk-TVGHQUUI.mjs → chunk-L7YU4GTE.mjs} +5 -5
- package/lib/{chunk-6C6TV53V.mjs → chunk-LBHJFKKZ.mjs} +5 -5
- package/lib/{chunk-P25LYDHG.mjs → chunk-LBWE4Q2G.mjs} +3 -3
- package/lib/{chunk-RTX3I6ZK.mjs → chunk-LFJBH2F7.mjs} +1 -1
- package/lib/{chunk-JLBB25B5.mjs → chunk-LN2AQJ2K.mjs} +3 -3
- package/lib/chunk-LZH3HQCB.mjs +13 -0
- package/lib/chunk-M5US2UAQ.mjs +44 -0
- package/lib/{chunk-DZORJA3B.mjs → chunk-M5YDQECK.mjs} +1 -1
- package/lib/{chunk-VDLM4YQP.mjs → chunk-M6FZOPDH.mjs} +4 -0
- package/lib/{chunk-77TXQHWK.mjs → chunk-MF6PO4E4.mjs} +13 -10
- package/lib/{chunk-PJKSBYEI.mjs → chunk-MJ77K6AT.mjs} +1 -1
- package/lib/{chunk-NOBOKBJV.mjs → chunk-MT625ECH.mjs} +3 -3
- package/lib/{chunk-XXKEMYTB.mjs → chunk-MTRPTXD2.mjs} +1 -1
- package/lib/{chunk-DMO4FETO.mjs → chunk-MU2EQ442.mjs} +5 -5
- package/lib/{chunk-OKRYV2K5.mjs → chunk-MVEZGLRT.mjs} +2 -2
- package/lib/chunk-N6PAYRHX.mjs +1 -0
- package/lib/{chunk-JOU2LHCZ.mjs → chunk-NCL6MF45.mjs} +2 -2
- package/lib/chunk-NESCKBOS.mjs +1 -0
- package/lib/{chunk-WXIW56CT.mjs → chunk-NHFXJFKR.mjs} +3 -3
- package/lib/{chunk-HJ3V3LWN.mjs → chunk-NM36ZQBX.mjs} +2 -2
- package/lib/{chunk-XZ7VW6AY.mjs → chunk-NN2CPAZB.mjs} +1 -1
- package/lib/{chunk-5TB5SHQX.mjs → chunk-NOWU56K4.mjs} +1 -1
- package/lib/{chunk-AY5YFUGA.mjs → chunk-NPUTS6X6.mjs} +4 -4
- package/lib/{chunk-4GKCUICZ.mjs → chunk-NRXSGVTI.mjs} +3 -3
- package/lib/{chunk-GIHKIRAH.mjs → chunk-NSWYV6NV.mjs} +1 -1
- package/lib/{chunk-CCMHIAAZ.mjs → chunk-NU2Q7VNH.mjs} +1 -1
- package/lib/{chunk-JFNPMFSP.mjs → chunk-NUPGLVWR.mjs} +3 -3
- package/lib/{chunk-Y4NXOCAQ.mjs → chunk-NYQKHWRS.mjs} +2 -2
- package/lib/{chunk-3Q36KXPA.mjs → chunk-O35PF67M.mjs} +2 -2
- package/lib/{chunk-ADLM6LQF.mjs → chunk-O3HJSFRB.mjs} +1 -1
- package/lib/{chunk-ROIMX2WR.mjs → chunk-O623VKKD.mjs} +4 -4
- package/lib/{chunk-35P2GFHE.mjs → chunk-O6FFP6ZJ.mjs} +16 -44
- package/lib/{chunk-6UJQSFOY.mjs → chunk-OFKAQCVE.mjs} +3 -3
- package/lib/{chunk-C2N7EZSY.mjs → chunk-OIVTDVP3.mjs} +2 -2
- package/lib/{chunk-U2STNP4N.mjs → chunk-OKUHPJOD.mjs} +1 -1
- package/lib/chunk-OQCQ2H22.mjs +1 -0
- package/lib/{chunk-HG6NXLAY.mjs → chunk-OTWLBNXW.mjs} +1 -1
- package/lib/{chunk-FI6OORG5.mjs → chunk-OWCKMPKU.mjs} +2 -2
- package/lib/{chunk-UGUC4TWZ.mjs → chunk-OXCSBRU5.mjs} +1 -1
- package/lib/{chunk-NZRHYMSU.mjs → chunk-OZEOCP57.mjs} +1 -1
- package/lib/{chunk-ACB42JEB.mjs → chunk-PAZZT5QH.mjs} +2 -2
- package/lib/{chunk-XFHKH7VN.mjs → chunk-PD3YSK2R.mjs} +2 -2
- package/lib/{chunk-2SIDIWLZ.mjs → chunk-PHSWP4WG.mjs} +1 -1
- package/lib/{chunk-AEBY6HDR.mjs → chunk-PKMC2LCN.mjs} +1 -1
- package/lib/{chunk-UP6C5CAR.mjs → chunk-POXQVINA.mjs} +4 -4
- package/lib/{chunk-3TQRRK4V.mjs → chunk-PUV3AXGV.mjs} +1 -1
- package/lib/{chunk-E4DP4RHW.mjs → chunk-PWEIAE6G.mjs} +3 -3
- package/lib/{chunk-GGTSWVFO.mjs → chunk-PZRIBILT.mjs} +1 -1
- package/lib/{chunk-RHDHWW2S.mjs → chunk-Q5SCBEUH.mjs} +2 -2
- package/lib/{chunk-5DHXX5PL.mjs → chunk-QLZP7GBB.mjs} +24 -7
- package/lib/{chunk-5D3WYM25.mjs → chunk-QP2PFT3K.mjs} +3 -3
- package/lib/{chunk-WRQHV62E.mjs → chunk-QYH2SNJL.mjs} +1 -1
- package/lib/{chunk-BKJTZKXR.mjs → chunk-R2NTHO6N.mjs} +2 -2
- package/lib/{chunk-Y7SHWYB4.mjs → chunk-R5D4YF5R.mjs} +5 -5
- package/lib/{chunk-NB23NKHT.mjs → chunk-RETE3ZTE.mjs} +3 -3
- package/lib/{chunk-5LGX4H46.mjs → chunk-REUPPELB.mjs} +1 -1
- package/lib/{chunk-FES7E6XR.mjs → chunk-RN2GGQZD.mjs} +1 -1
- package/lib/chunk-RPYWD5K3.mjs +78 -0
- package/lib/{chunk-CYAWPWM7.mjs → chunk-RV46LSGL.mjs} +7 -7
- package/lib/{chunk-72F756XM.mjs → chunk-RYDIJL4T.mjs} +2 -2
- package/lib/{chunk-5CRE5L6X.mjs → chunk-RYUTIOBN.mjs} +3 -3
- package/lib/{chunk-CW3YHVBA.mjs → chunk-S2Z4UFJX.mjs} +4 -4
- package/lib/{chunk-QEJFO7PR.mjs → chunk-SABZOTT3.mjs} +1 -1
- package/lib/{chunk-KTNZEEPJ.mjs → chunk-SAMHT3RS.mjs} +3 -3
- package/lib/{chunk-DW37QZID.mjs → chunk-SCQP6POV.mjs} +3 -3
- package/lib/{chunk-WO4Y2FRW.mjs → chunk-SGXS373A.mjs} +3 -3
- package/lib/{chunk-2T6URXV2.mjs → chunk-SHAZZJ6B.mjs} +1 -1
- package/lib/{chunk-XUTWIHGC.mjs → chunk-SJHSDGQP.mjs} +1 -1
- package/lib/{chunk-JRFUYD7U.mjs → chunk-T6BO4FGS.mjs} +2 -2
- package/lib/{chunk-TQYLYXDD.mjs → chunk-T7HWHYJW.mjs} +3 -3
- package/lib/{chunk-55SIPHX3.mjs → chunk-TAMBU4V6.mjs} +6 -6
- package/lib/chunk-TCTATCEY.mjs +74 -0
- package/lib/{chunk-AZZ5HW4W.mjs → chunk-TDRTUPK5.mjs} +4 -4
- package/lib/{chunk-XCIDMO7T.mjs → chunk-TGTQHMQ6.mjs} +1 -1
- package/lib/{chunk-OHYZ6AS2.mjs → chunk-TGYSZFVX.mjs} +2 -2
- package/lib/{chunk-WCWE6Z45.mjs → chunk-TO4JE2QX.mjs} +1 -1
- package/lib/{chunk-TOOAKGKJ.mjs → chunk-TZXX4HLS.mjs} +4 -4
- package/lib/chunk-UAHBURVC.mjs +13 -0
- package/lib/{chunk-PJ76LGUE.mjs → chunk-UFI4GLBY.mjs} +3 -3
- package/lib/{chunk-AYUDKR5P.mjs → chunk-UK222BLE.mjs} +4 -4
- package/lib/{chunk-7MWJMPTG.mjs → chunk-UL7E4VXO.mjs} +3 -3
- package/lib/{chunk-OV5LZHEB.mjs → chunk-UNHVULPH.mjs} +2 -2
- package/lib/{chunk-YJUVXFTO.mjs → chunk-UQFAPQ6Y.mjs} +2 -2
- package/lib/{chunk-R77TROLC.mjs → chunk-UWBCYIUU.mjs} +1 -1
- package/lib/chunk-UXQWL2JF.mjs +1 -0
- package/lib/{chunk-EDBGLR45.mjs → chunk-UZB67GRB.mjs} +2 -2
- package/lib/{chunk-ZUSPKNMI.mjs → chunk-UZRSMDJB.mjs} +1 -1
- package/lib/{chunk-TVAJEINF.mjs → chunk-V3KB6SXF.mjs} +1 -1
- package/lib/{chunk-NRTMJLXK.mjs → chunk-V4SC5SC7.mjs} +1 -1
- package/lib/{chunk-LKQDPJV3.mjs → chunk-V5EYHP5F.mjs} +3 -3
- package/lib/{chunk-TDU2S3TS.mjs → chunk-V6GFAYJV.mjs} +3 -3
- package/lib/{chunk-ZNXJTPMT.mjs → chunk-VCBA76C3.mjs} +3 -3
- package/lib/chunk-VFI6BIAG.mjs +13 -0
- package/lib/{chunk-HD7VWQFD.mjs → chunk-VFLFZSNX.mjs} +4 -4
- package/lib/{chunk-6AHBDM56.mjs → chunk-VMXTYYVG.mjs} +3 -3
- package/lib/{chunk-7NWVVRXM.mjs → chunk-VNK64K2K.mjs} +1 -1
- package/lib/{chunk-X6CBAXAB.mjs → chunk-VQCAUTKX.mjs} +4 -4
- package/lib/{chunk-JYORSGTM.mjs → chunk-WAL2P2NA.mjs} +5 -5
- package/lib/{chunk-2MIHKT5E.mjs → chunk-WAPMPOZH.mjs} +2 -2
- package/lib/{chunk-O4276YRE.mjs → chunk-WBHMMFEP.mjs} +4 -4
- package/lib/{chunk-2OTGQMU4.mjs → chunk-WDBPDZHG.mjs} +1 -1
- package/lib/{chunk-6GGZCKVV.mjs → chunk-WEN3Q6CZ.mjs} +5 -3
- package/lib/{chunk-MB55ARZ7.mjs → chunk-WFIXFBGQ.mjs} +1 -1
- package/lib/{chunk-PZ6AN3SW.mjs → chunk-WGTQL5UH.mjs} +3 -3
- package/lib/{chunk-6PKFJTR4.mjs → chunk-WHJ5TUTR.mjs} +4 -4
- package/lib/chunk-WIHUGD7U.mjs +62 -0
- package/lib/{chunk-O2LVO3J5.mjs → chunk-WIO4VLQV.mjs} +3 -3
- package/lib/{chunk-G3V2MA32.mjs → chunk-WJBZ7JCI.mjs} +5 -5
- package/lib/{chunk-2DKS2LMX.mjs → chunk-WLAMVZKC.mjs} +2 -2
- package/lib/{chunk-ZNF2AXYR.mjs → chunk-WWWZCWQK.mjs} +1 -1
- package/lib/{chunk-CD6DMMCL.mjs → chunk-X63WVV4X.mjs} +5 -4
- package/lib/{chunk-BDLJDNUM.mjs → chunk-X6SQUIXU.mjs} +5 -5
- package/lib/{chunk-XEHYV47R.mjs → chunk-X7QSYAIO.mjs} +5 -5
- package/lib/{chunk-MC6ZX32S.mjs → chunk-XAQZOHJR.mjs} +7 -7
- package/lib/{chunk-P372ZF3A.mjs → chunk-XGS2TGKN.mjs} +1 -1
- package/lib/{chunk-QNUD6J4U.mjs → chunk-XVF356O5.mjs} +3 -3
- package/lib/{chunk-FA3RCDVF.mjs → chunk-XW5VQ75G.mjs} +4 -4
- package/lib/{chunk-WVL5S3CD.mjs → chunk-YCEN6SBK.mjs} +1 -1
- package/lib/{chunk-6AFOGEEB.mjs → chunk-YGEFQ6BP.mjs} +1 -1
- package/lib/chunk-YLWSQ5PL.mjs +109 -0
- package/lib/{chunk-FZ7TRGKO.mjs → chunk-YS5ON754.mjs} +2 -2
- package/lib/{chunk-INWRBUES.mjs → chunk-YST5NWVV.mjs} +1 -1
- package/lib/{chunk-DI7Y6K3W.mjs → chunk-YW5BEIAP.mjs} +4 -4
- package/lib/{chunk-CJTAJA4V.mjs → chunk-Z7VYGFYV.mjs} +1 -1
- package/lib/{chunk-MMGVLILA.mjs → chunk-ZIIDLA6A.mjs} +3 -3
- package/lib/{chunk-LPOWVAJK.mjs → chunk-ZJ42PVHE.mjs} +3 -3
- package/lib/{chunk-KPAPQ4IC.mjs → chunk-ZOBYKSZB.mjs} +3 -3
- package/lib/{chunk-2TTA4KLO.mjs → chunk-ZTO4MLYA.mjs} +7 -7
- package/lib/components/accordion/Accordion.js +4 -4
- package/lib/components/accordion/Accordion.mjs +8 -7
- package/lib/components/accordion/Accordion.native.mjs +1 -1
- package/lib/components/accordion/index.js +4 -4
- package/lib/components/accordion/index.mjs +13 -12
- package/lib/components/accordion/index.native.js +124 -44
- package/lib/components/accordion/index.native.mjs +7 -7
- package/lib/components/accordion/item/AccordionItem.js +4 -4
- package/lib/components/accordion/item/AccordionItem.mjs +8 -7
- package/lib/components/accordion/item/AccordionItem.native.js +118 -38
- package/lib/components/accordion/item/AccordionItem.native.mjs +7 -7
- package/lib/components/accordion/item/body/AccordionBody.js +4 -4
- package/lib/components/accordion/item/body/AccordionBody.mjs +8 -7
- package/lib/components/accordion/item/body/AccordionBody.native.mjs +1 -1
- package/lib/components/accordion/item/body/index.js +4 -4
- package/lib/components/accordion/item/body/index.mjs +8 -7
- package/lib/components/accordion/item/body/index.native.mjs +1 -1
- package/lib/components/accordion/item/header/AccordionHeader.js +4 -4
- package/lib/components/accordion/item/header/AccordionHeader.mjs +8 -7
- package/lib/components/accordion/item/header/AccordionHeader.native.mjs +1 -1
- package/lib/components/accordion/item/header/index.js +4 -4
- package/lib/components/accordion/item/header/index.mjs +8 -7
- package/lib/components/accordion/item/header/index.native.mjs +1 -1
- package/lib/components/accordion/item/index.js +4 -4
- package/lib/components/accordion/item/index.mjs +8 -7
- package/lib/components/accordion/item/index.native.js +118 -38
- package/lib/components/accordion/item/index.native.mjs +7 -7
- package/lib/components/alert/Alert.js +12 -10
- package/lib/components/alert/Alert.mjs +17 -16
- package/lib/components/alert/Alert.native.js +211 -146
- package/lib/components/alert/Alert.native.mjs +28 -28
- package/lib/components/alert/context/ToastConfigDefaults.js +8 -0
- package/lib/components/alert/context/ToasterContextProps.d.mts +2 -1
- package/lib/components/alert/context/ToasterContextProps.d.ts +2 -1
- package/lib/components/alert/index.js +12 -10
- package/lib/components/alert/index.mjs +17 -16
- package/lib/components/alert/index.native.js +211 -146
- package/lib/components/alert/index.native.mjs +28 -28
- package/lib/components/autocomplete/AutoComplete.js +18 -13
- package/lib/components/autocomplete/AutoComplete.mjs +34 -33
- package/lib/components/autocomplete/AutoComplete.native.js +149 -147
- package/lib/components/autocomplete/AutoComplete.native.mjs +28 -28
- package/lib/components/autocomplete/AutoCompletePropsNativeDefaults.js +9 -2
- package/lib/components/autocomplete/AutoCompletePropsWebDefaults.js +9 -2
- package/lib/components/autocomplete/index.js +18 -13
- package/lib/components/autocomplete/index.mjs +36 -35
- package/lib/components/autocomplete/index.native.js +153 -151
- package/lib/components/autocomplete/index.native.mjs +41 -40
- package/lib/components/autocomplete/item/AutoCompleteIem.native.js +92 -13
- package/lib/components/autocomplete/item/AutoCompleteIem.native.mjs +8 -8
- package/lib/components/autocomplete/item/AutoCompleteItem.js +4 -4
- package/lib/components/autocomplete/item/AutoCompleteItem.mjs +8 -7
- package/lib/components/autocomplete/item/index.js +4 -4
- package/lib/components/autocomplete/item/index.mjs +9 -8
- package/lib/components/autocomplete/item/index.native.js +92 -13
- package/lib/components/autocomplete/item/index.native.mjs +8 -8
- package/lib/components/autocomplete/menu/AutoCompleteMenu.js +4 -4
- package/lib/components/autocomplete/menu/AutoCompleteMenu.mjs +8 -7
- package/lib/components/autocomplete/menu/AutoCompleteMenu.native.js +114 -34
- package/lib/components/autocomplete/menu/AutoCompleteMenu.native.mjs +24 -24
- package/lib/components/autocomplete/menu/index.js +4 -4
- package/lib/components/autocomplete/menu/index.mjs +9 -8
- package/lib/components/autocomplete/menu/index.native.js +114 -34
- package/lib/components/autocomplete/menu/index.native.mjs +24 -24
- package/lib/components/autolayout/AutoLayout/AutoLayout.native.js +4 -0
- package/lib/components/autolayout/AutoLayout/AutoLayout.native.mjs +3 -3
- package/lib/components/autolayout/AutoLayout/index.native.js +4 -0
- package/lib/components/autolayout/AutoLayout/index.native.mjs +3 -3
- package/lib/components/autolayout/AutoLayoutWrapper/index.native.js +4 -0
- package/lib/components/autolayout/AutoLayoutWrapper/index.native.mjs +4 -4
- package/lib/components/autolayout/helpers/AutoLayout.helpers.js +8 -4
- package/lib/components/autolayout/helpers/AutoLayout.helpers.mjs +8 -7
- package/lib/components/autolayout/helpers/AutoLayout.helpers.native.js +4 -0
- package/lib/components/autolayout/helpers/AutoLayout.helpers.native.mjs +2 -2
- package/lib/components/autolayout/index.native.js +4 -0
- package/lib/components/autolayout/index.native.mjs +4 -4
- package/lib/components/badge/Badge.js +11 -9
- package/lib/components/badge/Badge.mjs +15 -14
- package/lib/components/badge/Badge.native.js +107 -27
- package/lib/components/badge/Badge.native.mjs +22 -22
- package/lib/components/badge/index.js +11 -9
- package/lib/components/badge/index.mjs +15 -14
- package/lib/components/badge/index.native.js +107 -27
- package/lib/components/badge/index.native.mjs +22 -22
- package/lib/components/box/Box.js +6 -5
- package/lib/components/box/Box.mjs +10 -9
- package/lib/components/box/Box.native.js +4 -3
- package/lib/components/box/Box.native.mjs +3 -3
- package/lib/components/box/BoxPropsDefaults.js +6 -2
- package/lib/components/box/content/BoxContent.js +6 -5
- package/lib/components/box/content/BoxContent.mjs +11 -10
- package/lib/components/box/content/BoxContent.native.js +3 -2
- package/lib/components/box/content/BoxContent.native.mjs +3 -3
- package/lib/components/box/content/BoxContentPropsDefaults.js +3 -1
- package/lib/components/box/content/index.js +6 -5
- package/lib/components/box/content/index.mjs +12 -11
- package/lib/components/box/content/index.native.js +3 -2
- package/lib/components/box/content/index.native.mjs +3 -3
- package/lib/components/box/footer/BoxFooter.js +6 -5
- package/lib/components/box/footer/BoxFooter.mjs +11 -10
- package/lib/components/box/footer/BoxFooter.native.js +104 -24
- package/lib/components/box/footer/BoxFooter.native.mjs +22 -22
- package/lib/components/box/footer/BoxFooterPropsDefaults.js +3 -1
- package/lib/components/box/footer/index.js +6 -5
- package/lib/components/box/footer/index.mjs +12 -11
- package/lib/components/box/footer/index.native.js +104 -24
- package/lib/components/box/footer/index.native.mjs +22 -22
- package/lib/components/box/header/BoxHeader.js +6 -5
- package/lib/components/box/header/BoxHeader.mjs +12 -11
- package/lib/components/box/header/BoxHeader.native.js +3 -2
- package/lib/components/box/header/BoxHeader.native.mjs +3 -3
- package/lib/components/box/header/BoxHeaderPropsDefaults.js +21 -3
- package/lib/components/box/header/index.js +6 -5
- package/lib/components/box/header/index.mjs +13 -12
- package/lib/components/box/header/index.native.js +3 -2
- package/lib/components/box/header/index.native.mjs +3 -3
- package/lib/components/box/index.js +6 -5
- package/lib/components/box/index.mjs +25 -24
- package/lib/components/box/index.native.js +134 -45
- package/lib/components/box/index.native.mjs +28 -26
- package/lib/components/box/item/BoxItem.js +4 -4
- package/lib/components/box/item/BoxItem.mjs +8 -7
- package/lib/components/box/item/BoxItem.native.mjs +1 -1
- package/lib/components/box/item/index.js +4 -4
- package/lib/components/box/item/index.mjs +9 -8
- package/lib/components/box/item/index.native.mjs +1 -1
- package/lib/components/box/table-container/BoxTableContainer.js +4 -4
- package/lib/components/box/table-container/BoxTableContainer.mjs +8 -7
- package/lib/components/box/table-container/BoxTableContainer.native.mjs +1 -1
- package/lib/components/box/table-container/index.js +4 -4
- package/lib/components/box/table-container/index.mjs +9 -8
- package/lib/components/box/table-container/index.native.mjs +1 -1
- package/lib/components/breadcrumb/Breadcrumb.js +4 -4
- package/lib/components/breadcrumb/Breadcrumb.mjs +8 -7
- package/lib/components/breadcrumb/Breadcrumb.native.js +104 -24
- package/lib/components/breadcrumb/Breadcrumb.native.mjs +7 -7
- package/lib/components/breadcrumb/index.js +11 -9
- package/lib/components/breadcrumb/index.mjs +15 -14
- package/lib/components/breadcrumb/index.native.js +112 -32
- package/lib/components/breadcrumb/index.native.mjs +11 -11
- package/lib/components/breadcrumb/item/BreadcrumbItem.js +11 -9
- package/lib/components/breadcrumb/item/BreadcrumbItem.mjs +14 -13
- package/lib/components/breadcrumb/item/BreadcrumbItem.native.js +93 -14
- package/lib/components/breadcrumb/item/BreadcrumbItem.native.mjs +8 -8
- package/lib/components/breadcrumb/item/index.js +11 -9
- package/lib/components/breadcrumb/item/index.mjs +14 -13
- package/lib/components/breadcrumb/item/index.native.js +93 -14
- package/lib/components/breadcrumb/item/index.native.mjs +8 -8
- package/lib/components/button/Button.js +11 -9
- package/lib/components/button/Button.mjs +13 -12
- package/lib/components/button/Button.native.js +127 -44
- package/lib/components/button/Button.native.mjs +23 -23
- package/lib/components/button/index.js +16 -13
- package/lib/components/button/index.mjs +14 -13
- package/lib/components/button/index.native.js +129 -46
- package/lib/components/button/index.native.mjs +23 -23
- package/lib/components/button/list/ButtonList.js +9 -8
- package/lib/components/button/list/ButtonList.mjs +10 -9
- package/lib/components/button/list/ButtonList.native.mjs +1 -1
- package/lib/components/button/list/ButtonListProps.d.mts +2 -2
- package/lib/components/button/list/ButtonListProps.d.ts +2 -2
- package/lib/components/button/list/ButtonListWebPropsDefaults.js +9 -1
- package/lib/components/button/list/index.js +9 -8
- package/lib/components/button/list/index.mjs +10 -9
- package/lib/components/button/list/index.native.mjs +1 -1
- package/lib/components/calendar/Calendar.js +12 -10
- package/lib/components/calendar/Calendar.mjs +35 -34
- package/lib/components/calendar/Calendar.native.js +142 -62
- package/lib/components/calendar/Calendar.native.mjs +10 -10
- package/lib/components/calendar/index.js +12 -10
- package/lib/components/calendar/index.mjs +35 -34
- package/lib/components/calendar/index.native.js +142 -62
- package/lib/components/calendar/index.native.mjs +10 -10
- package/lib/components/card/Card.js +4 -4
- package/lib/components/card/Card.mjs +8 -7
- package/lib/components/card/Card.native.js +8 -17
- package/lib/components/card/Card.native.mjs +3 -3
- package/lib/components/card/content/CardContent.js +4 -4
- package/lib/components/card/content/CardContent.mjs +8 -7
- package/lib/components/card/content/CardContent.native.js +8 -17
- package/lib/components/card/content/CardContent.native.mjs +4 -4
- package/lib/components/card/content/index.js +4 -4
- package/lib/components/card/content/index.mjs +9 -8
- package/lib/components/card/content/index.native.js +8 -17
- package/lib/components/card/content/index.native.mjs +4 -4
- package/lib/components/card/image/CardImage.js +4 -4
- package/lib/components/card/image/CardImage.mjs +8 -7
- package/lib/components/card/image/CardImage.native.js +8 -17
- package/lib/components/card/image/CardImage.native.mjs +4 -4
- package/lib/components/card/image/index.js +4 -4
- package/lib/components/card/image/index.mjs +9 -8
- package/lib/components/card/image/index.native.js +8 -17
- package/lib/components/card/image/index.native.mjs +4 -4
- package/lib/components/card/index.js +4 -4
- package/lib/components/card/index.mjs +14 -13
- package/lib/components/card/index.native.js +8 -17
- package/lib/components/card/index.native.mjs +7 -7
- package/lib/components/checkbox/Checkbox.js +4 -4
- package/lib/components/checkbox/Checkbox.mjs +8 -7
- package/lib/components/checkbox/Checkbox.native.js +108 -28
- package/lib/components/checkbox/Checkbox.native.mjs +10 -10
- package/lib/components/checkbox/index.js +16 -13
- package/lib/components/checkbox/index.mjs +33 -32
- package/lib/components/checkbox/index.native.js +145 -58
- package/lib/components/checkbox/index.native.mjs +33 -33
- package/lib/components/checkbox/list/CheckboxList.js +16 -13
- package/lib/components/checkbox/list/CheckboxList.mjs +27 -26
- package/lib/components/checkbox/list/CheckboxList.native.js +95 -12
- package/lib/components/checkbox/list/CheckboxList.native.mjs +11 -11
- package/lib/components/checkbox/list/CheckboxListProps.d.mts +2 -2
- package/lib/components/checkbox/list/CheckboxListProps.d.ts +2 -2
- package/lib/components/checkbox/list/CheckboxListWebPropsDefaults.js +9 -1
- package/lib/components/checkbox/list/index.js +16 -13
- package/lib/components/checkbox/list/index.mjs +27 -26
- package/lib/components/checkbox/list/index.native.js +95 -12
- package/lib/components/checkbox/list/index.native.mjs +11 -11
- package/lib/components/checkbox/tiles/CheckboxTiles.js +4 -4
- package/lib/components/checkbox/tiles/CheckboxTiles.mjs +9 -8
- package/lib/components/checkbox/tiles/CheckboxTiles.native.js +5 -4
- package/lib/components/checkbox/tiles/CheckboxTiles.native.mjs +3 -3
- package/lib/components/checkbox/tiles/CheckboxTilesPropsDefaults.js +18 -2
- package/lib/components/checkbox/tiles/index.js +4 -4
- package/lib/components/checkbox/tiles/index.mjs +9 -8
- package/lib/components/checkbox/tiles/index.native.js +5 -4
- package/lib/components/checkbox/tiles/index.native.mjs +3 -3
- package/lib/components/checkbox/tiles/tile/CheckboxTile.js +11 -9
- package/lib/components/checkbox/tiles/tile/CheckboxTile.mjs +27 -26
- package/lib/components/checkbox/tiles/tile/CheckboxTile.native.js +130 -47
- package/lib/components/checkbox/tiles/tile/CheckboxTile.native.mjs +25 -25
- package/lib/components/checkbox/tiles/tile/index.js +11 -9
- package/lib/components/checkbox/tiles/tile/index.mjs +27 -26
- package/lib/components/checkbox/tiles/tile/index.native.js +130 -47
- package/lib/components/checkbox/tiles/tile/index.native.mjs +25 -25
- package/lib/components/chips/Chips.js +4 -4
- package/lib/components/chips/Chips.mjs +8 -7
- package/lib/components/chips/Chips.native.js +115 -35
- package/lib/components/chips/Chips.native.mjs +10 -10
- package/lib/components/chips/index.js +4 -4
- package/lib/components/chips/index.mjs +9 -8
- package/lib/components/chips/index.native.js +115 -35
- package/lib/components/chips/index.native.mjs +10 -10
- package/lib/components/chips/list/ChipsList.js +4 -4
- package/lib/components/chips/list/ChipsList.mjs +8 -7
- package/lib/components/chips/list/ChipsList.native.mjs +1 -1
- package/lib/components/chips/list/index.js +4 -4
- package/lib/components/chips/list/index.mjs +8 -7
- package/lib/components/chips/list/index.native.mjs +1 -1
- package/lib/components/columns/Columns.js +9 -8
- package/lib/components/columns/Columns.mjs +10 -9
- package/lib/components/columns/Columns.native.js +5 -4
- package/lib/components/columns/Columns.native.mjs +3 -3
- package/lib/components/columns/ColumnsPropsDefaults.js +18 -2
- package/lib/components/columns/column/Column.js +4 -4
- package/lib/components/columns/column/Column.mjs +9 -8
- package/lib/components/columns/column/Column.native.js +103 -23
- package/lib/components/columns/column/Column.native.mjs +22 -22
- package/lib/components/columns/column/ColumnPropsDefaults.js +18 -2
- package/lib/components/columns/column/index.js +4 -4
- package/lib/components/columns/column/index.mjs +10 -9
- package/lib/components/columns/column/index.native.js +103 -23
- package/lib/components/columns/column/index.native.mjs +22 -22
- package/lib/components/columns/index.js +9 -8
- package/lib/components/columns/index.mjs +12 -11
- package/lib/components/columns/index.native.js +103 -23
- package/lib/components/columns/index.native.mjs +23 -23
- package/lib/components/container/Container.js +4 -4
- package/lib/components/container/Container.mjs +8 -7
- package/lib/components/container/Container.native.mjs +1 -1
- package/lib/components/container/index.js +4 -4
- package/lib/components/container/index.mjs +8 -7
- package/lib/components/container/index.native.mjs +1 -1
- package/lib/components/countdown/Countdown.js +4 -4
- package/lib/components/countdown/Countdown.mjs +8 -7
- package/lib/components/countdown/Countdown.native.js +92 -13
- package/lib/components/countdown/Countdown.native.mjs +8 -8
- package/lib/components/countdown/index.js +4 -4
- package/lib/components/countdown/index.mjs +8 -7
- package/lib/components/countdown/index.native.js +92 -13
- package/lib/components/countdown/index.native.mjs +8 -8
- package/lib/components/datepicker/DatePicker.js +17 -14
- package/lib/components/datepicker/DatePicker.mjs +43 -42
- package/lib/components/datepicker/DatePicker.native.js +150 -70
- package/lib/components/datepicker/DatePicker.native.mjs +11 -11
- package/lib/components/datepicker/index.js +17 -14
- package/lib/components/datepicker/index.mjs +43 -42
- package/lib/components/datepicker/index.native.js +150 -70
- package/lib/components/datepicker/index.native.mjs +11 -11
- package/lib/components/divider/Divider.js +11 -9
- package/lib/components/divider/Divider.mjs +13 -12
- package/lib/components/divider/Divider.native.js +112 -32
- package/lib/components/divider/Divider.native.mjs +10 -10
- package/lib/components/divider/index.js +11 -9
- package/lib/components/divider/index.mjs +13 -12
- package/lib/components/divider/index.native.js +112 -32
- package/lib/components/divider/index.native.mjs +10 -10
- package/lib/components/dropdown/Dropdown.d.mts +13 -0
- package/lib/components/dropdown/Dropdown.d.ts +13 -0
- package/lib/components/dropdown/Dropdown.js +312 -0
- package/lib/components/dropdown/Dropdown.mjs +20 -0
- package/lib/components/dropdown/Dropdown.native.d.mts +4 -0
- package/lib/components/dropdown/Dropdown.native.d.ts +4 -0
- package/lib/components/dropdown/Dropdown.native.js +42 -0
- package/lib/components/dropdown/Dropdown.native.mjs +9 -0
- package/lib/components/dropdown/DropdownProps.d.mts +15 -0
- package/lib/components/dropdown/DropdownProps.d.ts +15 -0
- package/lib/components/dropdown/DropdownProps.js +19 -0
- package/lib/components/dropdown/DropdownProps.mjs +2 -0
- package/lib/components/dropdown/DropdownPropsDefaults.js +53 -0
- package/lib/components/dropdown/context/DropdownContext.d.mts +15 -0
- package/lib/components/dropdown/context/DropdownContext.d.ts +15 -0
- package/lib/components/dropdown/context/DropdownContext.js +78 -0
- package/lib/components/dropdown/context/DropdownContext.mjs +10 -0
- package/lib/components/dropdown/context/index.d.mts +1 -0
- package/lib/components/dropdown/context/index.d.ts +1 -0
- package/lib/components/dropdown/context/index.js +80 -0
- package/lib/components/dropdown/context/index.mjs +11 -0
- package/lib/components/dropdown/group/DropdownGroup.d.mts +12 -0
- package/lib/components/dropdown/group/DropdownGroup.d.ts +12 -0
- package/lib/components/dropdown/group/DropdownGroup.js +107 -0
- package/lib/components/dropdown/group/DropdownGroup.mjs +17 -0
- package/lib/components/dropdown/group/DropdownGroup.native.d.mts +4 -0
- package/lib/components/dropdown/group/DropdownGroup.native.d.ts +4 -0
- package/lib/components/dropdown/group/DropdownGroup.native.js +42 -0
- package/lib/components/dropdown/group/DropdownGroup.native.mjs +9 -0
- package/lib/components/dropdown/group/DropdownGroupProps.d.mts +14 -0
- package/lib/components/dropdown/group/DropdownGroupProps.d.ts +14 -0
- package/lib/components/dropdown/group/DropdownGroupProps.js +19 -0
- package/lib/components/dropdown/group/DropdownGroupProps.mjs +2 -0
- package/lib/components/dropdown/group/DropdownGroupPropsDefaults.js +52 -0
- package/lib/components/dropdown/group/index.d.mts +3 -0
- package/lib/components/dropdown/group/index.d.ts +3 -0
- package/lib/components/dropdown/group/index.js +111 -0
- package/lib/components/dropdown/group/index.mjs +18 -0
- package/lib/components/dropdown/group/index.native.d.mts +3 -0
- package/lib/components/dropdown/group/index.native.d.ts +3 -0
- package/lib/components/dropdown/group/index.native.js +48 -0
- package/lib/components/dropdown/group/index.native.mjs +10 -0
- package/lib/components/dropdown/index.d.mts +9 -0
- package/lib/components/dropdown/index.d.ts +9 -0
- package/lib/components/dropdown/index.js +501 -0
- package/lib/components/dropdown/index.mjs +48 -0
- package/lib/components/dropdown/index.native.d.mts +9 -0
- package/lib/components/dropdown/index.native.d.ts +9 -0
- package/lib/components/dropdown/index.native.js +78 -0
- package/lib/components/dropdown/index.native.mjs +26 -0
- package/lib/components/dropdown/item/DropdownItem.d.mts +12 -0
- package/lib/components/dropdown/item/DropdownItem.d.ts +12 -0
- package/lib/components/dropdown/item/DropdownItem.js +260 -0
- package/lib/components/dropdown/item/DropdownItem.mjs +29 -0
- package/lib/components/dropdown/item/DropdownItem.native.d.mts +4 -0
- package/lib/components/dropdown/item/DropdownItem.native.d.ts +4 -0
- package/lib/components/dropdown/item/DropdownItem.native.js +42 -0
- package/lib/components/dropdown/item/DropdownItem.native.mjs +9 -0
- package/lib/components/dropdown/item/DropdownItemProps.d.mts +15 -0
- package/lib/components/dropdown/item/DropdownItemProps.d.ts +15 -0
- package/lib/components/dropdown/item/DropdownItemProps.js +19 -0
- package/lib/components/dropdown/item/DropdownItemProps.mjs +2 -0
- package/lib/components/dropdown/item/DropdownItemPropsDefaults.js +93 -0
- package/lib/components/dropdown/item/index.d.mts +3 -0
- package/lib/components/dropdown/item/index.d.ts +3 -0
- package/lib/components/dropdown/item/index.js +264 -0
- package/lib/components/dropdown/item/index.mjs +30 -0
- package/lib/components/dropdown/item/index.native.d.mts +3 -0
- package/lib/components/dropdown/item/index.native.d.ts +3 -0
- package/lib/components/dropdown/item/index.native.js +48 -0
- package/lib/components/dropdown/item/index.native.mjs +10 -0
- package/lib/components/dropdown/trigger/DropdownTrigger.d.mts +13 -0
- package/lib/components/dropdown/trigger/DropdownTrigger.d.ts +13 -0
- package/lib/components/dropdown/trigger/DropdownTrigger.js +170 -0
- package/lib/components/dropdown/trigger/DropdownTrigger.mjs +18 -0
- package/lib/components/dropdown/trigger/DropdownTrigger.native.d.mts +4 -0
- package/lib/components/dropdown/trigger/DropdownTrigger.native.d.ts +4 -0
- package/lib/components/dropdown/trigger/DropdownTrigger.native.js +42 -0
- package/lib/components/dropdown/trigger/DropdownTrigger.native.mjs +9 -0
- package/lib/components/dropdown/trigger/DropdownTriggerProps.d.mts +13 -0
- package/lib/components/dropdown/trigger/DropdownTriggerProps.d.ts +13 -0
- package/lib/components/dropdown/trigger/DropdownTriggerProps.js +19 -0
- package/lib/components/dropdown/trigger/DropdownTriggerProps.mjs +2 -0
- package/lib/components/dropdown/trigger/DropdownTriggerPropsDefaults.js +44 -0
- package/lib/components/dropdown/trigger/index.d.mts +3 -0
- package/lib/components/dropdown/trigger/index.d.ts +3 -0
- package/lib/components/dropdown/trigger/index.js +176 -0
- package/lib/components/dropdown/trigger/index.mjs +19 -0
- package/lib/components/dropdown/trigger/index.native.d.mts +3 -0
- package/lib/components/dropdown/trigger/index.native.d.ts +3 -0
- package/lib/components/dropdown/trigger/index.native.js +48 -0
- package/lib/components/dropdown/trigger/index.native.mjs +10 -0
- package/lib/components/enumsComponentsName.d.mts +4 -0
- package/lib/components/enumsComponentsName.d.ts +4 -0
- package/lib/components/enumsComponentsName.js +4 -0
- package/lib/components/enumsComponentsName.mjs +1 -1
- package/lib/components/fab/Fab.js +11 -9
- package/lib/components/fab/Fab.mjs +13 -12
- package/lib/components/fab/Fab.native.js +108 -28
- package/lib/components/fab/Fab.native.mjs +23 -23
- package/lib/components/fab/index.js +11 -9
- package/lib/components/fab/index.mjs +13 -12
- package/lib/components/fab/index.native.js +108 -28
- package/lib/components/fab/index.native.mjs +23 -23
- package/lib/components/flex-box/FlexBox.js +25 -31
- package/lib/components/flex-box/FlexBox.mjs +9 -9
- package/lib/components/flex-box/FlexBox.native.js +120 -35
- package/lib/components/flex-box/FlexBox.native.mjs +24 -24
- package/lib/components/flex-box/FlexBoxPropsDefaults.js +2 -2
- package/lib/components/flex-box/flex-item/FlexItem.js +4 -4
- package/lib/components/flex-box/flex-item/FlexItem.mjs +9 -8
- package/lib/components/flex-box/flex-item/FlexItem.native.js +5 -4
- package/lib/components/flex-box/flex-item/FlexItem.native.mjs +3 -3
- package/lib/components/flex-box/flex-item/FlexItemPropsDefaults.js +18 -2
- package/lib/components/flex-box/index.js +25 -31
- package/lib/components/flex-box/index.mjs +10 -10
- package/lib/components/flex-box/index.native.js +122 -37
- package/lib/components/flex-box/index.native.mjs +25 -25
- package/lib/components/hero/Hero.js +6 -5
- package/lib/components/hero/Hero.mjs +10 -9
- package/lib/components/hero/Hero.native.js +152 -63
- package/lib/components/hero/Hero.native.mjs +27 -25
- package/lib/components/hero/HeroPropsDefaults.js +3 -1
- package/lib/components/hero/index.js +6 -5
- package/lib/components/hero/index.mjs +10 -9
- package/lib/components/hero/index.native.js +152 -63
- package/lib/components/hero/index.native.mjs +27 -25
- package/lib/components/icon/Icon.js +11 -9
- package/lib/components/icon/Icon.mjs +12 -11
- package/lib/components/icon/Icon.native.js +101 -21
- package/lib/components/icon/Icon.native.mjs +6 -6
- package/lib/components/icon/index.js +11 -9
- package/lib/components/icon/index.mjs +12 -11
- package/lib/components/icon/index.native.js +101 -21
- package/lib/components/icon/index.native.mjs +6 -6
- package/lib/components/image/Image.js +16 -13
- package/lib/components/image/Image.mjs +26 -25
- package/lib/components/image/Image.native.js +1 -1
- package/lib/components/image/Image.native.mjs +2 -2
- package/lib/components/image/ImagePropsDefaults.js +18 -2
- package/lib/components/image/index.js +16 -13
- package/lib/components/image/index.mjs +26 -25
- package/lib/components/image/index.native.js +1 -1
- package/lib/components/image/index.native.mjs +2 -2
- package/lib/components/index.d.mts +1 -0
- package/lib/components/index.d.ts +1 -0
- package/lib/components/index.js +879 -564
- package/lib/components/index.mjs +243 -219
- package/lib/components/index.native.d.mts +1 -0
- package/lib/components/index.native.d.ts +1 -0
- package/lib/components/index.native.js +1315 -1310
- package/lib/components/index.native.mjs +210 -186
- package/lib/components/input/Input.js +12 -10
- package/lib/components/input/Input.mjs +29 -28
- package/lib/components/input/Input.native.js +136 -134
- package/lib/components/input/Input.native.mjs +25 -25
- package/lib/components/input/InputProps.d.mts +2 -2
- package/lib/components/input/InputProps.d.ts +2 -2
- package/lib/components/input/InputPropsDefaults.js +9 -2
- package/lib/components/input/gauge/InputGauge.js +11 -9
- package/lib/components/input/gauge/InputGauge.mjs +27 -26
- package/lib/components/input/gauge/InputGauge.native.js +109 -29
- package/lib/components/input/gauge/InputGauge.native.mjs +24 -24
- package/lib/components/input/gauge/hook/useGauge.js +11 -9
- package/lib/components/input/gauge/hook/useGauge.mjs +26 -25
- package/lib/components/input/gauge/hook/useGauge.native.js +101 -21
- package/lib/components/input/gauge/hook/useGauge.native.mjs +22 -22
- package/lib/components/input/index.js +12 -10
- package/lib/components/input/index.mjs +29 -28
- package/lib/components/input/index.native.js +136 -134
- package/lib/components/input/index.native.mjs +25 -25
- package/lib/components/link/Link.js +11 -9
- package/lib/components/link/Link.mjs +13 -12
- package/lib/components/link/Link.native.js +108 -28
- package/lib/components/link/Link.native.mjs +7 -7
- package/lib/components/link/index.js +11 -9
- package/lib/components/link/index.mjs +13 -12
- package/lib/components/link/index.native.js +108 -28
- package/lib/components/link/index.native.mjs +7 -7
- package/lib/components/list/List.js +4 -4
- package/lib/components/list/List.mjs +8 -7
- package/lib/components/list/List.native.mjs +2 -2
- package/lib/components/list/context/index.mjs +1 -1
- package/lib/components/list/index.js +12 -9
- package/lib/components/list/index.mjs +28 -27
- package/lib/components/list/index.native.js +109 -29
- package/lib/components/list/index.native.mjs +25 -25
- package/lib/components/list/item/ListItem.js +12 -9
- package/lib/components/list/item/ListItem.mjs +26 -25
- package/lib/components/list/item/ListItem.native.js +109 -29
- package/lib/components/list/item/ListItem.native.mjs +24 -24
- package/lib/components/list/item/description/ListItemDescription.js +4 -4
- package/lib/components/list/item/description/ListItemDescription.mjs +9 -8
- package/lib/components/list/item/description/ListItemDescription.native.js +125 -42
- package/lib/components/list/item/description/ListItemDescription.native.mjs +24 -24
- package/lib/components/list/item/description/index.js +4 -4
- package/lib/components/list/item/description/index.mjs +9 -8
- package/lib/components/list/item/description/index.native.js +125 -42
- package/lib/components/list/item/description/index.native.mjs +24 -24
- package/lib/components/list/item/index.js +12 -9
- package/lib/components/list/item/index.mjs +27 -26
- package/lib/components/list/item/index.native.js +109 -29
- package/lib/components/list/item/index.native.mjs +25 -25
- package/lib/components/modal/Modal.js +16 -13
- package/lib/components/modal/Modal.mjs +17 -16
- package/lib/components/modal/Modal.native.js +184 -122
- package/lib/components/modal/Modal.native.mjs +26 -26
- package/lib/components/modal/body/ModalBody.js +4 -4
- package/lib/components/modal/body/ModalBody.mjs +9 -8
- package/lib/components/modal/body/ModalBody.native.js +104 -24
- package/lib/components/modal/body/ModalBody.native.mjs +22 -22
- package/lib/components/modal/body/index.native.js +104 -24
- package/lib/components/modal/body/index.native.mjs +22 -22
- package/lib/components/modal/footer/ModalFooter.js +4 -4
- package/lib/components/modal/footer/ModalFooter.mjs +9 -8
- package/lib/components/modal/footer/ModalFooter.native.js +175 -113
- package/lib/components/modal/footer/ModalFooter.native.mjs +24 -24
- package/lib/components/modal/footer/index.native.js +175 -113
- package/lib/components/modal/footer/index.native.mjs +24 -24
- package/lib/components/modal/index.js +16 -13
- package/lib/components/modal/index.mjs +21 -20
- package/lib/components/modal/index.native.js +190 -128
- package/lib/components/modal/index.native.mjs +28 -28
- package/lib/components/otp/Otp.js +4 -4
- package/lib/components/otp/Otp.mjs +12 -11
- package/lib/components/otp/Otp.native.js +183 -121
- package/lib/components/otp/Otp.native.mjs +25 -25
- package/lib/components/otp/index.js +4 -4
- package/lib/components/otp/index.mjs +12 -11
- package/lib/components/otp/index.native.js +183 -121
- package/lib/components/otp/index.native.mjs +25 -25
- package/lib/components/pagination/Pagination.js +96 -94
- package/lib/components/pagination/Pagination.mjs +13 -12
- package/lib/components/pagination/Pagination.native.d.mts +2 -2
- package/lib/components/pagination/Pagination.native.d.ts +2 -2
- package/lib/components/pagination/Pagination.native.js +218 -136
- package/lib/components/pagination/Pagination.native.mjs +10 -10
- package/lib/components/pagination/PaginationNativePropsDefaults.js +9 -0
- package/lib/components/pagination/PaginationProps.d.mts +5 -1
- package/lib/components/pagination/PaginationProps.d.ts +5 -1
- package/lib/components/pagination/PaginationPropsDefaults.js +1 -1
- package/lib/components/pagination/index.js +96 -94
- package/lib/components/pagination/index.mjs +14 -13
- package/lib/components/pagination/index.native.js +218 -136
- package/lib/components/pagination/index.native.mjs +11 -11
- package/lib/components/popover/Popover.js +4 -4
- package/lib/components/popover/Popover.mjs +8 -7
- package/lib/components/popover/Popover.native.js +108 -28
- package/lib/components/popover/Popover.native.mjs +22 -22
- package/lib/components/popover/index.js +4 -4
- package/lib/components/popover/index.mjs +8 -7
- package/lib/components/popover/index.native.js +108 -28
- package/lib/components/popover/index.native.mjs +22 -22
- package/lib/components/price/Price.js +21 -95
- package/lib/components/price/Price.mjs +26 -29
- package/lib/components/price/Price.native.js +108 -28
- package/lib/components/price/Price.native.mjs +22 -22
- package/lib/components/price/PricePropsDefaults.js +18 -2
- package/lib/components/price/index.js +21 -95
- package/lib/components/price/index.mjs +27 -30
- package/lib/components/price/index.native.js +108 -28
- package/lib/components/price/index.native.mjs +23 -23
- package/lib/components/product-tour/ProductTour.js +11 -9
- package/lib/components/product-tour/ProductTour.mjs +13 -12
- package/lib/components/product-tour/ProductTour.native.mjs +1 -1
- package/lib/components/product-tour/index.js +11 -9
- package/lib/components/product-tour/index.mjs +13 -12
- package/lib/components/product-tour/index.native.mjs +1 -1
- package/lib/components/progress/Progress.js +11 -9
- package/lib/components/progress/Progress.mjs +27 -26
- package/lib/components/progress/Progress.native.js +130 -47
- package/lib/components/progress/Progress.native.mjs +24 -24
- package/lib/components/progress/index.js +11 -9
- package/lib/components/progress/index.mjs +34 -33
- package/lib/components/progress/index.native.js +168 -78
- package/lib/components/progress/index.native.mjs +30 -28
- package/lib/components/progress/item/ProgressItem.js +11 -9
- package/lib/components/progress/item/ProgressItem.mjs +26 -25
- package/lib/components/progress/item/ProgressItem.native.mjs +1 -1
- package/lib/components/progress/item/index.js +11 -9
- package/lib/components/progress/item/index.mjs +27 -26
- package/lib/components/progress/item/index.native.mjs +1 -1
- package/lib/components/progress/radial/ProgressRadial.js +6 -5
- package/lib/components/progress/radial/ProgressRadial.mjs +13 -12
- package/lib/components/progress/radial/ProgressRadial.native.js +141 -54
- package/lib/components/progress/radial/ProgressRadial.native.mjs +24 -22
- package/lib/components/progress/radial/ProgressRadialPropsDefaults.js +24 -4
- package/lib/components/progress/radial/index.js +6 -5
- package/lib/components/progress/radial/index.mjs +14 -13
- package/lib/components/progress/radial/index.native.js +141 -54
- package/lib/components/progress/radial/index.native.mjs +24 -22
- package/lib/components/progress/radial/item/ProgressRadialItemPropsDefaults.js +1 -0
- package/lib/components/progress/radial/item/ProgressRadialtem.js +4 -4
- package/lib/components/progress/radial/item/ProgressRadialtem.mjs +8 -7
- package/lib/components/progress/radial/item/index.js +4 -4
- package/lib/components/progress/radial/item/index.mjs +8 -7
- package/lib/components/radio/EventHandlerDefaults.js +21 -0
- package/lib/components/radio/Radio.js +35 -43
- package/lib/components/radio/Radio.mjs +8 -7
- package/lib/components/radio/Radio.native.d.mts +2 -2
- package/lib/components/radio/Radio.native.d.ts +2 -2
- package/lib/components/radio/Radio.native.js +152 -77
- package/lib/components/radio/Radio.native.mjs +23 -23
- package/lib/components/radio/RadioNativePropsDefaults.js +9 -0
- package/lib/components/radio/RadioProps.d.mts +9 -2
- package/lib/components/radio/RadioProps.d.ts +9 -2
- package/lib/components/radio/index.js +95 -96
- package/lib/components/radio/index.mjs +32 -31
- package/lib/components/radio/index.native.js +171 -92
- package/lib/components/radio/index.native.mjs +39 -38
- package/lib/components/radio/list/RadioList.js +16 -13
- package/lib/components/radio/list/RadioList.mjs +27 -26
- package/lib/components/radio/list/RadioList.native.js +8 -4
- package/lib/components/radio/list/RadioList.native.mjs +15 -14
- package/lib/components/radio/list/RadioListProps.d.mts +2 -2
- package/lib/components/radio/list/RadioListProps.d.ts +2 -2
- package/lib/components/radio/list/RadioListWebPropsDefaults.js +9 -1
- package/lib/components/radio/list/index.js +16 -13
- package/lib/components/radio/list/index.mjs +27 -26
- package/lib/components/radio/list/index.native.js +8 -4
- package/lib/components/radio/list/index.native.mjs +15 -14
- package/lib/components/radio/tiles/RadioTiles.js +11 -9
- package/lib/components/radio/tiles/RadioTiles.mjs +26 -25
- package/lib/components/radio/tiles/RadioTiles.native.mjs +2 -2
- package/lib/components/radio/tiles/RadioTilesPropsDefaults.js +18 -2
- package/lib/components/radio/tiles/index.js +11 -9
- package/lib/components/radio/tiles/index.mjs +26 -25
- package/lib/components/radio/tiles/index.native.mjs +2 -2
- package/lib/components/radio/tiles/tile/RadioTile.js +59 -53
- package/lib/components/radio/tiles/tile/RadioTile.mjs +27 -26
- package/lib/components/radio/tiles/tile/RadioTile.native.d.mts +2 -2
- package/lib/components/radio/tiles/tile/RadioTile.native.d.ts +2 -2
- package/lib/components/radio/tiles/tile/RadioTile.native.js +116 -36
- package/lib/components/radio/tiles/tile/RadioTile.native.mjs +24 -24
- package/lib/components/radio/tiles/tile/RadioTileNativePropsDefaults.js +104 -0
- package/lib/components/radio/tiles/tile/RadioTileProps.d.mts +7 -2
- package/lib/components/radio/tiles/tile/RadioTileProps.d.ts +7 -2
- package/lib/components/radio/tiles/tile/RadioTilePropsCommonDefaults.js +97 -0
- package/lib/components/radio/tiles/tile/RadioTilePropsDefaults.js +81 -81
- package/lib/components/radio/tiles/tile/index.js +59 -53
- package/lib/components/radio/tiles/tile/index.mjs +27 -26
- package/lib/components/radio/tiles/tile/index.native.js +116 -36
- package/lib/components/radio/tiles/tile/index.native.mjs +24 -24
- package/lib/components/range/Range.js +11 -9
- package/lib/components/range/Range.mjs +26 -25
- package/lib/components/range/Range.native.js +111 -31
- package/lib/components/range/Range.native.mjs +23 -23
- package/lib/components/range/index.js +11 -9
- package/lib/components/range/index.mjs +26 -25
- package/lib/components/range/index.native.js +111 -31
- package/lib/components/range/index.native.mjs +23 -23
- package/lib/components/rows/Rows.js +4 -4
- package/lib/components/rows/Rows.mjs +9 -8
- package/lib/components/rows/Rows.native.mjs +1 -1
- package/lib/components/rows/index.js +4 -4
- package/lib/components/rows/index.mjs +11 -10
- package/lib/components/rows/index.native.mjs +1 -1
- package/lib/components/rows/row/Row.js +4 -4
- package/lib/components/rows/row/Row.mjs +9 -8
- package/lib/components/rows/row/Row.native.mjs +1 -1
- package/lib/components/rows/row/index.js +4 -4
- package/lib/components/rows/row/index.mjs +10 -9
- package/lib/components/rows/row/index.native.mjs +1 -1
- package/lib/components/scroll-view/ScrollView.js +11 -9
- package/lib/components/scroll-view/ScrollView.mjs +26 -25
- package/lib/components/scroll-view/ScrollView.native.js +110 -30
- package/lib/components/scroll-view/ScrollView.native.mjs +22 -22
- package/lib/components/scroll-view/ScrollViewPropsDefaults.js +3 -1
- package/lib/components/scroll-view/index.js +11 -9
- package/lib/components/scroll-view/index.mjs +26 -25
- package/lib/components/scroll-view/index.native.js +110 -30
- package/lib/components/scroll-view/index.native.mjs +22 -22
- package/lib/components/section/Section.js +11 -9
- package/lib/components/section/Section.mjs +26 -25
- package/lib/components/section/Section.native.js +106 -26
- package/lib/components/section/Section.native.mjs +22 -22
- package/lib/components/section/SectionPropsDefaults.js +3 -1
- package/lib/components/section/index.js +11 -9
- package/lib/components/section/index.mjs +26 -25
- package/lib/components/section/index.native.js +106 -26
- package/lib/components/section/index.native.mjs +22 -22
- package/lib/components/segment-control/SegmentControl.js +16 -13
- package/lib/components/segment-control/SegmentControl.mjs +28 -27
- package/lib/components/segment-control/SegmentControl.native.js +131 -48
- package/lib/components/segment-control/SegmentControl.native.mjs +33 -32
- package/lib/components/segment-control/SegmentControlProps.d.mts +2 -2
- package/lib/components/segment-control/SegmentControlProps.d.ts +2 -2
- package/lib/components/segment-control/SegmentControlPropsDefaults.js +9 -1
- package/lib/components/segment-control/index.js +16 -13
- package/lib/components/segment-control/index.mjs +29 -28
- package/lib/components/segment-control/index.native.js +135 -52
- package/lib/components/segment-control/index.native.mjs +34 -33
- package/lib/components/segment-control/item/SegmentControlItem.js +4 -4
- package/lib/components/segment-control/item/SegmentControlItem.mjs +9 -8
- package/lib/components/segment-control/item/SegmentControlItem.native.js +3 -2
- package/lib/components/segment-control/item/SegmentControlItem.native.mjs +3 -3
- package/lib/components/segment-control/item/index.js +4 -4
- package/lib/components/segment-control/item/index.mjs +10 -9
- package/lib/components/segment-control/item/index.native.js +3 -2
- package/lib/components/segment-control/item/index.native.mjs +3 -3
- package/lib/components/select/Select.js +12 -10
- package/lib/components/select/Select.mjs +34 -33
- package/lib/components/select/Select.native.js +231 -247
- package/lib/components/select/Select.native.mjs +35 -35
- package/lib/components/select/index.js +12 -10
- package/lib/components/select/index.mjs +34 -33
- package/lib/components/select/index.native.js +231 -247
- package/lib/components/select/index.native.mjs +36 -36
- package/lib/components/select/option/SelectOption.js +11 -9
- package/lib/components/select/option/SelectOption.mjs +13 -12
- package/lib/components/select/option/SelectOption.native.js +110 -30
- package/lib/components/select/option/SelectOption.native.mjs +25 -25
- package/lib/components/select/option/index.js +11 -9
- package/lib/components/select/option/index.mjs +14 -13
- package/lib/components/select/option/index.native.js +110 -30
- package/lib/components/select/option/index.native.mjs +26 -26
- package/lib/components/select/web/SelectDynamic.js +12 -10
- package/lib/components/select/web/SelectDynamic.mjs +30 -29
- package/lib/components/select/web/SelectNative.js +12 -10
- package/lib/components/select/web/SelectNative.mjs +34 -33
- package/lib/components/select/web/index.js +12 -10
- package/lib/components/select/web/index.mjs +34 -33
- package/lib/components/skeleton/index.native.mjs +1 -0
- package/lib/components/spacer/Spacer.js +4 -4
- package/lib/components/spacer/Spacer.mjs +8 -7
- package/lib/components/spacer/Spacer.native.mjs +1 -1
- package/lib/components/spacer/index.js +4 -4
- package/lib/components/spacer/index.mjs +8 -7
- package/lib/components/spacer/index.native.mjs +1 -1
- package/lib/components/stepper/Stepper.js +4 -4
- package/lib/components/stepper/Stepper.mjs +10 -9
- package/lib/components/stepper/Stepper.native.js +108 -28
- package/lib/components/stepper/Stepper.native.mjs +23 -23
- package/lib/components/stepper/index.js +11 -9
- package/lib/components/stepper/index.mjs +16 -15
- package/lib/components/stepper/index.native.js +114 -34
- package/lib/components/stepper/index.native.mjs +24 -24
- package/lib/components/stepper/step/Step.js +11 -9
- package/lib/components/stepper/step/Step.mjs +13 -12
- package/lib/components/stepper/step/Step.native.js +107 -27
- package/lib/components/stepper/step/Step.native.mjs +22 -22
- package/lib/components/stepper/step/index.js +11 -9
- package/lib/components/stepper/step/index.mjs +14 -13
- package/lib/components/stepper/step/index.native.js +107 -27
- package/lib/components/stepper/step/index.native.mjs +22 -22
- package/lib/components/sticker/Sticker.js +11 -9
- package/lib/components/sticker/Sticker.mjs +26 -25
- package/lib/components/sticker/Sticker.native.js +108 -28
- package/lib/components/sticker/Sticker.native.mjs +23 -23
- package/lib/components/sticker/index.js +11 -9
- package/lib/components/sticker/index.mjs +26 -25
- package/lib/components/sticker/index.native.js +108 -28
- package/lib/components/sticker/index.native.mjs +23 -23
- package/lib/components/switch/Switch.js +11 -9
- package/lib/components/switch/Switch.mjs +26 -25
- package/lib/components/switch/Switch.native.js +104 -24
- package/lib/components/switch/Switch.native.mjs +22 -22
- package/lib/components/switch/index.js +11 -9
- package/lib/components/switch/index.mjs +26 -25
- package/lib/components/switch/index.native.js +104 -24
- package/lib/components/switch/index.native.mjs +22 -22
- package/lib/components/table/Table.js +4 -4
- package/lib/components/table/Table.mjs +8 -7
- package/lib/components/table/Table.native.js +105 -25
- package/lib/components/table/Table.native.mjs +22 -22
- package/lib/components/table/body/TableBody.js +6 -5
- package/lib/components/table/body/TableBody.mjs +10 -9
- package/lib/components/table/body/TableBody.native.mjs +1 -1
- package/lib/components/table/body/TableBodyPropsDefaults.js +6 -2
- package/lib/components/table/body/index.js +6 -5
- package/lib/components/table/body/index.mjs +11 -10
- package/lib/components/table/body/index.native.mjs +1 -1
- package/lib/components/table/head/TableHead.js +6 -5
- package/lib/components/table/head/TableHead.mjs +10 -9
- package/lib/components/table/head/TableHead.native.mjs +1 -1
- package/lib/components/table/head/TableHeadPropsDefaults.js +6 -2
- package/lib/components/table/head/index.js +6 -5
- package/lib/components/table/head/index.mjs +11 -10
- package/lib/components/table/head/index.native.mjs +1 -1
- package/lib/components/table/index.js +6 -5
- package/lib/components/table/index.mjs +23 -22
- package/lib/components/table/index.native.js +144 -61
- package/lib/components/table/index.native.mjs +30 -30
- package/lib/components/table/td/TableTd.js +4 -4
- package/lib/components/table/td/TableTd.mjs +8 -7
- package/lib/components/table/td/TableTd.native.js +106 -26
- package/lib/components/table/td/TableTd.native.mjs +22 -22
- package/lib/components/table/td/index.js +4 -4
- package/lib/components/table/td/index.mjs +9 -8
- package/lib/components/table/td/index.native.js +106 -26
- package/lib/components/table/td/index.native.mjs +22 -22
- package/lib/components/table/th/TableTh.js +4 -4
- package/lib/components/table/th/TableTh.mjs +8 -7
- package/lib/components/table/th/TableTh.native.js +128 -45
- package/lib/components/table/th/TableTh.native.mjs +24 -24
- package/lib/components/table/th/index.js +4 -4
- package/lib/components/table/th/index.mjs +9 -8
- package/lib/components/table/th/index.native.js +128 -45
- package/lib/components/table/th/index.native.mjs +24 -24
- package/lib/components/table/tr/TableTr.js +6 -5
- package/lib/components/table/tr/TableTr.mjs +9 -8
- package/lib/components/table/tr/TableTr.native.js +126 -43
- package/lib/components/table/tr/TableTr.native.mjs +24 -24
- package/lib/components/table/tr/TableTrPropsWebDefaults.js +3 -1
- package/lib/components/table/tr/index.js +6 -5
- package/lib/components/table/tr/index.mjs +10 -9
- package/lib/components/table/tr/index.native.js +126 -43
- package/lib/components/table/tr/index.native.mjs +24 -24
- package/lib/components/tabs/Tabs.js +4 -4
- package/lib/components/tabs/Tabs.mjs +8 -7
- package/lib/components/tabs/Tabs.native.mjs +1 -1
- package/lib/components/tabs/TabsPropsDefaults.js +18 -2
- package/lib/components/tabs/index.js +11 -9
- package/lib/components/tabs/index.mjs +20 -19
- package/lib/components/tabs/index.native.js +123 -43
- package/lib/components/tabs/index.native.mjs +29 -29
- package/lib/components/tabs/tab-list/TabList.js +11 -9
- package/lib/components/tabs/tab-list/TabList.mjs +16 -15
- package/lib/components/tabs/tab-list/TabList.native.js +114 -34
- package/lib/components/tabs/tab-list/TabList.native.mjs +24 -24
- package/lib/components/tabs/tab-list/TabListProps.d.mts +2 -2
- package/lib/components/tabs/tab-list/TabListProps.d.ts +2 -2
- package/lib/components/tabs/tab-list/TabListPropsDefaults.js +9 -1
- package/lib/components/tabs/tab-list/index.js +11 -9
- package/lib/components/tabs/tab-list/index.mjs +16 -15
- package/lib/components/tabs/tab-list/index.native.js +114 -34
- package/lib/components/tabs/tab-list/index.native.mjs +24 -24
- package/lib/components/tabs/tab-list/tab/Tab.js +11 -9
- package/lib/components/tabs/tab-list/tab/Tab.mjs +14 -13
- package/lib/components/tabs/tab-list/tab/Tab.native.js +109 -29
- package/lib/components/tabs/tab-list/tab/Tab.native.mjs +10 -10
- package/lib/components/tabs/tab-list/tab/index.js +11 -9
- package/lib/components/tabs/tab-list/tab/index.mjs +14 -13
- package/lib/components/tabs/tab-list/tab/index.native.js +109 -29
- package/lib/components/tabs/tab-list/tab/index.native.mjs +10 -10
- package/lib/components/tabs/tab-panels/TabPanels.js +4 -4
- package/lib/components/tabs/tab-panels/TabPanels.mjs +10 -9
- package/lib/components/tabs/tab-panels/TabPanels.native.js +104 -24
- package/lib/components/tabs/tab-panels/TabPanels.native.mjs +22 -22
- package/lib/components/tabs/tab-panels/index.js +4 -4
- package/lib/components/tabs/tab-panels/index.mjs +10 -9
- package/lib/components/tabs/tab-panels/index.native.js +104 -24
- package/lib/components/tabs/tab-panels/index.native.mjs +22 -22
- package/lib/components/tabs/tab-panels/tab-panel/TabPanel.js +4 -4
- package/lib/components/tabs/tab-panels/tab-panel/TabPanel.mjs +8 -7
- package/lib/components/tabs/tab-panels/tab-panel/TabPanel.native.mjs +1 -1
- package/lib/components/tabs/tab-panels/tab-panel/index.js +4 -4
- package/lib/components/tabs/tab-panels/tab-panel/index.mjs +9 -8
- package/lib/components/tabs/tab-panels/tab-panel/index.native.mjs +1 -1
- package/lib/components/tag/Tag.js +11 -9
- package/lib/components/tag/Tag.mjs +13 -12
- package/lib/components/tag/Tag.native.js +105 -25
- package/lib/components/tag/Tag.native.mjs +8 -8
- package/lib/components/tag/index.js +16 -13
- package/lib/components/tag/index.mjs +28 -27
- package/lib/components/tag/index.native.js +108 -28
- package/lib/components/tag/index.native.mjs +8 -8
- package/lib/components/tag/list/TagList.js +16 -13
- package/lib/components/tag/list/TagList.mjs +26 -25
- package/lib/components/tag/list/TagList.native.mjs +1 -1
- package/lib/components/tag/list/TagListProps.d.mts +2 -2
- package/lib/components/tag/list/TagListProps.d.ts +2 -2
- package/lib/components/tag/list/TagListPropsDefaults.js +9 -1
- package/lib/components/tag/list/index.js +16 -13
- package/lib/components/tag/list/index.mjs +27 -26
- package/lib/components/tag/list/index.native.mjs +1 -1
- package/lib/components/text/Text.js +4 -4
- package/lib/components/text/Text.mjs +8 -7
- package/lib/components/text/Text.native.js +89 -10
- package/lib/components/text/Text.native.mjs +7 -7
- package/lib/components/text/index.js +4 -4
- package/lib/components/text/index.mjs +8 -7
- package/lib/components/text/index.native.js +89 -10
- package/lib/components/text/index.native.mjs +7 -7
- package/lib/components/textarea/Textarea.d.mts +2 -4
- package/lib/components/textarea/Textarea.d.ts +2 -4
- package/lib/components/textarea/Textarea.js +11 -10
- package/lib/components/textarea/Textarea.mjs +27 -26
- package/lib/components/textarea/Textarea.native.d.mts +2 -3
- package/lib/components/textarea/Textarea.native.d.ts +2 -3
- package/lib/components/textarea/Textarea.native.js +121 -90
- package/lib/components/textarea/Textarea.native.mjs +23 -23
- package/lib/components/textarea/TextareaProps.d.mts +0 -1
- package/lib/components/textarea/TextareaProps.d.ts +0 -1
- package/lib/components/textarea/index.js +11 -10
- package/lib/components/textarea/index.mjs +27 -26
- package/lib/components/textarea/index.native.js +121 -90
- package/lib/components/textarea/index.native.mjs +23 -23
- package/lib/components/timeline/Timeline.js +4 -4
- package/lib/components/timeline/Timeline.mjs +9 -8
- package/lib/components/timeline/Timeline.native.mjs +1 -1
- package/lib/components/timeline/content/TimelineContent.js +11 -9
- package/lib/components/timeline/content/TimelineContent.mjs +15 -14
- package/lib/components/timeline/content/TimelineContent.native.js +125 -41
- package/lib/components/timeline/content/TimelineContent.native.mjs +27 -27
- package/lib/components/timeline/content/index.js +11 -9
- package/lib/components/timeline/content/index.mjs +16 -15
- package/lib/components/timeline/content/index.native.js +125 -41
- package/lib/components/timeline/content/index.native.mjs +27 -27
- package/lib/components/timeline/index.js +11 -9
- package/lib/components/timeline/index.mjs +22 -21
- package/lib/components/timeline/index.native.js +129 -45
- package/lib/components/timeline/index.native.mjs +29 -29
- package/lib/components/timeline/item/TimelineItem.js +4 -4
- package/lib/components/timeline/item/TimelineItem.mjs +9 -8
- package/lib/components/timeline/item/TimelineItem.native.mjs +1 -1
- package/lib/components/timeline/item/index.js +4 -4
- package/lib/components/timeline/item/index.mjs +10 -9
- package/lib/components/timeline/item/index.native.mjs +1 -1
- package/lib/components/timeline/marker/TimelineMarker.js +11 -9
- package/lib/components/timeline/marker/TimelineMarker.mjs +13 -12
- package/lib/components/timeline/marker/TimelineMarker.native.js +114 -34
- package/lib/components/timeline/marker/TimelineMarker.native.mjs +22 -22
- package/lib/components/timeline/marker/index.js +11 -9
- package/lib/components/timeline/marker/index.mjs +14 -13
- package/lib/components/timeline/marker/index.native.js +114 -34
- package/lib/components/timeline/marker/index.native.mjs +23 -23
- package/lib/components/title/Title.js +4 -4
- package/lib/components/title/Title.mjs +8 -7
- package/lib/components/title/Title.native.js +172 -110
- package/lib/components/title/Title.native.mjs +22 -22
- package/lib/components/title/index.js +4 -4
- package/lib/components/title/index.mjs +9 -8
- package/lib/components/title/index.native.js +172 -110
- package/lib/components/title/index.native.mjs +23 -23
- package/lib/components/view/View.js +18 -23
- package/lib/components/view/View.mjs +26 -25
- package/lib/components/view/View.native.js +119 -36
- package/lib/components/view/View.native.mjs +22 -22
- package/lib/components/view/index.js +18 -23
- package/lib/components/view/index.mjs +26 -25
- package/lib/components/view/index.native.js +119 -36
- package/lib/components/view/index.native.mjs +22 -22
- package/lib/context/context/index.d.mts +1 -10
- package/lib/context/context/index.d.ts +1 -10
- package/lib/context/context/index.js +3 -1
- package/lib/context/context/index.mjs +1 -1
- package/lib/context/context/index.native.d.mts +1 -2
- package/lib/context/context/index.native.d.ts +1 -2
- package/lib/context/context/index.native.js +3 -1
- package/lib/context/context/index.native.mjs +2 -1
- package/lib/context/context/trilogyContext.d.mts +10 -0
- package/lib/context/context/trilogyContext.d.ts +10 -0
- package/lib/context/context/trilogyContext.js +54 -0
- package/lib/context/context/trilogyContext.mjs +10 -0
- package/lib/context/context/trilogyContext.native.d.mts +2 -0
- package/lib/context/context/trilogyContext.native.d.ts +2 -0
- package/lib/context/context/trilogyContext.native.js +38 -0
- package/lib/context/context/trilogyContext.native.mjs +10 -0
- package/lib/context/index.d.mts +4 -4
- package/lib/context/index.d.ts +4 -4
- package/lib/context/index.js +6 -6
- package/lib/context/index.mjs +5 -4
- package/lib/context/index.native.js +6 -5
- package/lib/context/index.native.mjs +10 -6
- package/lib/context/provider/index.d.mts +1 -20
- package/lib/context/provider/index.d.ts +1 -20
- package/lib/context/provider/index.js +8 -6
- package/lib/context/provider/index.mjs +5 -4
- package/lib/context/provider/index.native.d.mts +1 -4
- package/lib/context/provider/index.native.d.ts +1 -4
- package/lib/context/provider/index.native.js +3 -1
- package/lib/context/provider/index.native.mjs +2 -1
- package/lib/context/provider/provider.d.mts +20 -0
- package/lib/context/provider/provider.d.ts +20 -0
- package/lib/context/provider/provider.js +109 -0
- package/lib/context/provider/provider.mjs +13 -0
- package/lib/context/provider/provider.native.d.mts +4 -0
- package/lib/context/provider/provider.native.d.ts +4 -0
- package/lib/context/provider/provider.native.js +33 -0
- package/lib/context/provider/provider.native.mjs +8 -0
- package/lib/context/providerStyled/index.d.mts +1 -14
- package/lib/context/providerStyled/index.d.ts +1 -14
- package/lib/context/providerStyled/index.js +7 -5
- package/lib/context/providerStyled/index.mjs +5 -4
- package/lib/context/providerStyled/index.native.d.mts +1 -4
- package/lib/context/providerStyled/index.native.d.ts +1 -4
- package/lib/context/providerStyled/index.native.js +3 -1
- package/lib/context/providerStyled/index.native.mjs +2 -1
- package/lib/context/providerStyled/providerStyled.d.mts +14 -0
- package/lib/context/providerStyled/providerStyled.d.ts +14 -0
- package/lib/context/providerStyled/providerStyled.js +141 -0
- package/lib/context/providerStyled/providerStyled.mjs +13 -0
- package/lib/context/providerStyled/providerStyled.native.d.mts +4 -0
- package/lib/context/providerStyled/providerStyled.native.d.ts +4 -0
- package/lib/context/providerStyled/providerStyled.native.js +33 -0
- package/lib/context/providerStyled/providerStyled.native.mjs +8 -0
- package/lib/context/providerTheme/index.d.mts +1 -13
- package/lib/context/providerTheme/index.d.ts +1 -13
- package/lib/context/providerTheme/index.js +3 -1
- package/lib/context/providerTheme/index.mjs +2 -1
- package/lib/context/providerTheme/index.native.d.mts +1 -18
- package/lib/context/providerTheme/index.native.d.ts +1 -18
- package/lib/context/providerTheme/index.native.js +4 -3
- package/lib/context/providerTheme/index.native.mjs +1 -1
- package/lib/context/providerTheme/providerTheme.d.mts +13 -0
- package/lib/context/providerTheme/providerTheme.d.ts +13 -0
- package/lib/context/providerTheme/providerTheme.js +58 -0
- package/lib/context/providerTheme/providerTheme.mjs +12 -0
- package/lib/context/providerTheme/providerTheme.native.d.mts +18 -0
- package/lib/context/providerTheme/providerTheme.native.d.ts +18 -0
- package/lib/context/providerTheme/providerTheme.native.js +92 -0
- package/lib/context/providerTheme/providerTheme.native.mjs +16 -0
- package/lib/context/test/provider.test.js +42 -42
- package/lib/context/test/provider.test.mjs +6 -7
- package/lib/helpers/hashClassesHelpers/index.js +4 -4
- package/lib/helpers/hashClassesHelpers/index.mjs +6 -5
- package/lib/helpers/index.js +4 -4
- package/lib/helpers/index.mjs +9 -8
- package/lib/helpers/index.native.js +4 -4
- package/lib/helpers/index.native.mjs +9 -8
- package/lib/index.d.mts +1 -1
- package/lib/index.d.ts +1 -1
- package/lib/index.js +902 -583
- package/lib/index.mjs +250 -226
- package/lib/index.native.d.mts +1 -1
- package/lib/index.native.d.ts +1 -1
- package/lib/index.native.js +1364 -1309
- package/lib/index.native.mjs +246 -197
- package/lib/objects/Typography/TypographyBold/index.js +1 -1
- package/lib/objects/Typography/TypographyBold/index.mjs +3 -2
- package/lib/objects/Typography/TypographyBold/index.native.js +3 -2
- package/lib/objects/Typography/TypographyBold/index.native.mjs +2 -2
- package/lib/objects/Typography/TypographyColor/index.js +3 -2
- package/lib/objects/Typography/TypographyColor/index.mjs +4 -3
- package/lib/objects/Typography/TypographyColor/index.native.js +3 -2
- package/lib/objects/Typography/TypographyColor/index.native.mjs +2 -2
- package/lib/objects/Typography/index.js +3 -2
- package/lib/objects/Typography/index.mjs +5 -4
- package/lib/objects/Typography/index.native.js +3 -2
- package/lib/objects/Typography/index.native.mjs +3 -3
- package/lib/objects/atoms/Background/index.js +3 -2
- package/lib/objects/atoms/Background/index.mjs +4 -3
- package/lib/objects/atoms/Background/index.native.js +3 -2
- package/lib/objects/atoms/Background/index.native.mjs +2 -2
- package/lib/objects/atoms/index.js +3 -2
- package/lib/objects/atoms/index.mjs +4 -3
- package/lib/objects/atoms/index.native.js +3 -2
- package/lib/objects/atoms/index.native.mjs +2 -2
- package/lib/objects/facets/Alignable/index.d.mts +10 -3
- package/lib/objects/facets/Alignable/index.d.ts +10 -3
- package/lib/objects/facets/Alignable/index.js +5 -4
- package/lib/objects/facets/Alignable/index.mjs +1 -1
- package/lib/objects/facets/Color/index.d.mts +2 -1
- package/lib/objects/facets/Color/index.d.ts +2 -1
- package/lib/objects/facets/Color/index.js +4 -2
- package/lib/objects/facets/Color/index.mjs +3 -2
- package/lib/objects/facets/Color/index.native.d.mts +2 -1
- package/lib/objects/facets/Color/index.native.d.ts +2 -1
- package/lib/objects/facets/Color/index.native.js +4 -2
- package/lib/objects/facets/Color/index.native.mjs +1 -1
- package/lib/objects/facets/Justifiable/index.d.mts +12 -4
- package/lib/objects/facets/Justifiable/index.d.ts +12 -4
- package/lib/objects/facets/Justifiable/index.js +25 -27
- package/lib/objects/facets/Justifiable/index.mjs +1 -1
- package/lib/objects/facets/Status/index.js +11 -9
- package/lib/objects/facets/Status/index.mjs +13 -12
- package/lib/objects/facets/Status/index.native.js +101 -21
- package/lib/objects/facets/Status/index.native.mjs +7 -7
- package/lib/objects/facets/Variant/index.js +3 -2
- package/lib/objects/facets/Variant/index.mjs +4 -3
- package/lib/objects/facets/Variant/index.native.js +3 -2
- package/lib/objects/facets/Variant/index.native.mjs +2 -2
- package/lib/objects/facets/index.js +37 -36
- package/lib/objects/facets/index.mjs +25 -24
- package/lib/objects/facets/index.native.js +127 -48
- package/lib/objects/facets/index.native.mjs +19 -19
- package/lib/objects/index.js +37 -36
- package/lib/objects/index.mjs +30 -29
- package/lib/objects/index.native.js +127 -48
- package/lib/objects/index.native.mjs +28 -28
- package/lib/version.d.mts +1 -1
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/lib/version.mjs +1 -1
- package/package.json +1 -1
- package/lib/chunk-4YVGGJFD.mjs +0 -109
- package/lib/chunk-7NY2ELVH.mjs +0 -56
- package/lib/chunk-ERBNAV6P.mjs +0 -137
- package/lib/chunk-JBRB6UO5.mjs +0 -67
- package/lib/chunk-ZFISNJY5.mjs +0 -70
- package/lib/chunk-ZNADK25G.mjs +0 -122
- /package/lib/{chunk-JP5IH4HL.mjs → chunk-4SUGANHV.mjs} +0 -0
- /package/lib/{chunk-TYVII7EX.mjs → chunk-7M4UWOKO.mjs} +0 -0
package/lib/index.js
CHANGED
|
@@ -127,6 +127,10 @@ __export(index_exports, {
|
|
|
127
127
|
Device: () => Device,
|
|
128
128
|
DirectionEnum: () => DirectionEnum,
|
|
129
129
|
Divider: () => Divider_default,
|
|
130
|
+
Dropdown: () => Dropdown_default,
|
|
131
|
+
DropdownGroup: () => DropdownGroup_default,
|
|
132
|
+
DropdownItem: () => DropdownItem_default,
|
|
133
|
+
DropdownTrigger: () => DropdownTrigger_default,
|
|
130
134
|
Fab: () => Fab_default,
|
|
131
135
|
FlexBox: () => FlexBox_default,
|
|
132
136
|
FlexItem: () => FlexItem_default,
|
|
@@ -295,7 +299,7 @@ module.exports = __toCommonJS(index_exports);
|
|
|
295
299
|
// components/accordion/Accordion.tsx
|
|
296
300
|
var React7 = __toESM(require("react"));
|
|
297
301
|
|
|
298
|
-
// context/context/
|
|
302
|
+
// context/context/trilogyContext.tsx
|
|
299
303
|
var React = __toESM(require("react"));
|
|
300
304
|
var TrilogyContext = React.createContext({
|
|
301
305
|
styled: false,
|
|
@@ -309,18 +313,18 @@ var useTrilogyContext = () => {
|
|
|
309
313
|
return context;
|
|
310
314
|
};
|
|
311
315
|
|
|
312
|
-
// context/provider/
|
|
316
|
+
// context/provider/provider.tsx
|
|
313
317
|
var import_react = __toESM(require("react"));
|
|
314
318
|
|
|
315
319
|
// version.ts
|
|
316
|
-
var version = "0.0.
|
|
320
|
+
var version = "0.0.28-esm-cjs";
|
|
317
321
|
|
|
318
322
|
// version.json
|
|
319
323
|
var version_default = {
|
|
320
324
|
VERSION: "410"
|
|
321
325
|
};
|
|
322
326
|
|
|
323
|
-
// context/provider/
|
|
327
|
+
// context/provider/provider.tsx
|
|
324
328
|
var getHrefFromAssetUri = (assetUrl, theme, mangled) => {
|
|
325
329
|
return assetUrl.replace("%VERSION%", version).replace("%THEME%", theme).replace("%MANGLED%", mangled ? "-mangled" : "");
|
|
326
330
|
};
|
|
@@ -357,7 +361,7 @@ var StatesContext = (0, import_react2.createContext)({
|
|
|
357
361
|
flat: false
|
|
358
362
|
});
|
|
359
363
|
|
|
360
|
-
// context/providerStyled/
|
|
364
|
+
// context/providerStyled/providerStyled.tsx
|
|
361
365
|
var React5 = __toESM(require("react"));
|
|
362
366
|
var TrilogyProviderStyled = ({
|
|
363
367
|
children,
|
|
@@ -383,7 +387,7 @@ var TrilogyProviderStyled = ({
|
|
|
383
387
|
return /* @__PURE__ */ React5.createElement(TrilogyContext.Provider, { value: { styled, setStyled, hash, setHash } }, StyleComponent2 ? /* @__PURE__ */ React5.createElement(React5.Suspense, { fallback: null }, /* @__PURE__ */ React5.createElement(StyleComponent2, null, children)) : children);
|
|
384
388
|
};
|
|
385
389
|
|
|
386
|
-
// context/providerTheme/
|
|
390
|
+
// context/providerTheme/providerTheme.tsx
|
|
387
391
|
var import_react5 = __toESM(require("react"));
|
|
388
392
|
var defaultTheme = {
|
|
389
393
|
icons: {},
|
|
@@ -581,6 +585,7 @@ var TrilogyColor = /* @__PURE__ */ ((TrilogyColor4) => {
|
|
|
581
585
|
TrilogyColor4["NEUTRAL"] = "NEUTRAL";
|
|
582
586
|
TrilogyColor4["NEUTRAL_FADE"] = "NEUTRAL_FADE";
|
|
583
587
|
TrilogyColor4["STROKE"] = "STROKE";
|
|
588
|
+
TrilogyColor4["STROKE_FADE"] = "STROKE_FADE";
|
|
584
589
|
return TrilogyColor4;
|
|
585
590
|
})(TrilogyColor || {});
|
|
586
591
|
var colors = {
|
|
@@ -603,7 +608,8 @@ var colors = {
|
|
|
603
608
|
["DISABLED_FADE" /* DISABLED_FADE */]: ["#D1D1D1", "disabled-fade", "white"],
|
|
604
609
|
["NEUTRAL" /* NEUTRAL */]: ["#707070", "grey", "white"],
|
|
605
610
|
["NEUTRAL_FADE" /* NEUTRAL_FADE */]: ["#F4F4F4", "grey-fade", "white"],
|
|
606
|
-
["STROKE" /* STROKE */]: ["#BBC1CE", "stroke", "white"]
|
|
611
|
+
["STROKE" /* STROKE */]: ["#BBC1CE", "stroke", "white"],
|
|
612
|
+
["STROKE_FADE" /* STROKE_FADE */]: ["#cadbe8", "stroke-fade", "white"]
|
|
607
613
|
};
|
|
608
614
|
var getColorClassName = (trilogyColor) => {
|
|
609
615
|
const color = colors[trilogyColor];
|
|
@@ -700,72 +706,70 @@ var Justifiable = /* @__PURE__ */ ((Justifiable2) => {
|
|
|
700
706
|
Justifiable2["SPACE_BETWEEN"] = "SPACE_BETWEEN";
|
|
701
707
|
return Justifiable2;
|
|
702
708
|
})(Justifiable || {});
|
|
703
|
-
var Justify = /* @__PURE__ */ ((
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
return
|
|
709
|
+
var Justify = /* @__PURE__ */ ((Justify2) => {
|
|
710
|
+
Justify2["CENTER"] = "CENTER";
|
|
711
|
+
Justify2["START"] = "START";
|
|
712
|
+
Justify2["END"] = "END";
|
|
713
|
+
Justify2["SPACE_BETWEEN"] = "SPACE_BETWEEN";
|
|
714
|
+
Justify2["SPACE_AROUND"] = "SPACE_AROUND";
|
|
715
|
+
Justify2["SPACE_EVENLY"] = "SPACE_EVENLY";
|
|
716
|
+
return Justify2;
|
|
711
717
|
})(Justify || {});
|
|
712
718
|
var getJustifyStyle = (justifyContent) => {
|
|
713
|
-
|
|
714
|
-
|
|
719
|
+
if (!justifyContent) return "flex-start";
|
|
720
|
+
switch (true) {
|
|
721
|
+
case ["CENTER", "JUSTIFIED_CENTER"].includes(justifyContent):
|
|
715
722
|
return "center";
|
|
716
|
-
case "JUSTIFIED_START":
|
|
723
|
+
case ["START", "JUSTIFIED_START"].includes(justifyContent):
|
|
717
724
|
return "flex-start";
|
|
718
|
-
case "JUSTIFIED_END":
|
|
725
|
+
case ["END", "JUSTIFIED_END"].includes(justifyContent):
|
|
719
726
|
return "flex-end";
|
|
720
|
-
case "SPACE_BETWEEN":
|
|
727
|
+
case ["SPACE_BETWEEN", "SPACE_BETWEEN"].includes(justifyContent):
|
|
721
728
|
return "space-between";
|
|
729
|
+
case justifyContent === "SPACE_AROUND":
|
|
730
|
+
return "space-around";
|
|
722
731
|
default:
|
|
723
732
|
return "flex-start";
|
|
724
733
|
}
|
|
725
734
|
};
|
|
726
735
|
var getJustifyClassName = (justifyContent) => {
|
|
727
|
-
|
|
728
|
-
|
|
736
|
+
if (!justifyContent) return "flex-start";
|
|
737
|
+
switch (true) {
|
|
738
|
+
case ["CENTER", "JUSTIFIED_CENTER"].includes(justifyContent):
|
|
729
739
|
return "centered";
|
|
730
|
-
case "
|
|
731
|
-
return "justified-center";
|
|
732
|
-
case "JUSTIFIED_START":
|
|
740
|
+
case ["START", "JUSTIFIED_START"].includes(justifyContent):
|
|
733
741
|
return "justified-start";
|
|
734
|
-
case "
|
|
735
|
-
return "justified-start";
|
|
736
|
-
case "JUSTIFIED_END":
|
|
737
|
-
return "justified-end";
|
|
738
|
-
case "END":
|
|
742
|
+
case ["END", "JUSTIFIED_END"].includes(justifyContent):
|
|
739
743
|
return "justified-end";
|
|
740
|
-
case "SPACE_BETWEEN":
|
|
744
|
+
case ["SPACE_BETWEEN", "SPACE_BETWEEN"].includes(justifyContent):
|
|
741
745
|
return "spaced-between";
|
|
742
|
-
case "
|
|
743
|
-
return "spaced-around";
|
|
744
|
-
case "SPACE_EVENLY":
|
|
746
|
+
case justifyContent === "SPACE_EVENLY":
|
|
745
747
|
return "spaced-evenly";
|
|
746
748
|
default:
|
|
747
749
|
return "justified-start";
|
|
748
750
|
}
|
|
749
751
|
};
|
|
750
752
|
var getJustifiedClassName = (justifyContent) => {
|
|
751
|
-
|
|
752
|
-
|
|
753
|
+
if (!justifyContent) return "justified-start";
|
|
754
|
+
switch (true) {
|
|
755
|
+
case ["ALIGNED_CENTER", "CENTER"].includes(justifyContent):
|
|
753
756
|
return "justified-center";
|
|
754
|
-
case "ALIGNED_START":
|
|
757
|
+
case ["START", "ALIGNED_START"].includes(justifyContent):
|
|
755
758
|
return "justified-start";
|
|
756
|
-
case "ALIGNED_END":
|
|
759
|
+
case ["ALIGNED_END", "END"].includes(justifyContent):
|
|
757
760
|
return "justified-end";
|
|
758
761
|
default:
|
|
759
762
|
return "justified-start";
|
|
760
763
|
}
|
|
761
764
|
};
|
|
762
765
|
var getJustifySelfClassName = (justifyContent) => {
|
|
763
|
-
|
|
764
|
-
|
|
766
|
+
if (!justifyContent) return "justified-selfstart";
|
|
767
|
+
switch (true) {
|
|
768
|
+
case ["ALIGNED_CENTER", "CENTER"].includes(justifyContent):
|
|
765
769
|
return "justified-self-center";
|
|
766
|
-
case "ALIGNED_START":
|
|
770
|
+
case ["START", "ALIGNED_START"].includes(justifyContent):
|
|
767
771
|
return "justified-self-start";
|
|
768
|
-
case "ALIGNED_END":
|
|
772
|
+
case ["ALIGNED_END", "END"].includes(justifyContent):
|
|
769
773
|
return "justified-selfend";
|
|
770
774
|
default:
|
|
771
775
|
return "justified-selfstart";
|
|
@@ -1221,7 +1225,7 @@ var Alert = React15.forwardRef(
|
|
|
1221
1225
|
className: classes,
|
|
1222
1226
|
...others
|
|
1223
1227
|
},
|
|
1224
|
-
/* @__PURE__ */ React15.createElement(Icon_default, { name: iconAlert }),
|
|
1228
|
+
/* @__PURE__ */ React15.createElement(Icon_default, { name: iconAlert, className: "alert-icon" }),
|
|
1225
1229
|
/* @__PURE__ */ React15.createElement("div", { className: hashClass(styled, (0, import_clsx8.default)("body")) }, title && typeof title.valueOf() === "string" ? /* @__PURE__ */ React15.createElement(Title_default, { markup, level: 6 /* SIX */ }, title) : title, description && typeof description.valueOf() === "string" ? /* @__PURE__ */ React15.createElement(Text_default, { level: 2 /* TWO */ }, description) : description)
|
|
1226
1230
|
);
|
|
1227
1231
|
}
|
|
@@ -1354,12 +1358,13 @@ var getAlignClassName = (alignType) => {
|
|
|
1354
1358
|
}
|
|
1355
1359
|
};
|
|
1356
1360
|
var getAlignStyle = (alignType) => {
|
|
1357
|
-
|
|
1358
|
-
|
|
1361
|
+
if (!alignType) return "flex-start";
|
|
1362
|
+
switch (true) {
|
|
1363
|
+
case ["ALIGNED_CENTER", "CENTER"].includes(alignType):
|
|
1359
1364
|
return "center";
|
|
1360
|
-
case "ALIGNED_START":
|
|
1365
|
+
case ["START", "ALIGNED_START"].includes(alignType):
|
|
1361
1366
|
return "flex-start";
|
|
1362
|
-
case "ALIGNED_END":
|
|
1367
|
+
case ["ALIGNED_END", "END"].includes(alignType):
|
|
1363
1368
|
return "flex-end";
|
|
1364
1369
|
default:
|
|
1365
1370
|
return "flex-start";
|
|
@@ -2076,7 +2081,7 @@ var Input = import_react14.default.forwardRef(
|
|
|
2076
2081
|
}
|
|
2077
2082
|
}
|
|
2078
2083
|
}
|
|
2079
|
-
), loading && /* @__PURE__ */ import_react14.default.createElement("span", { className: loader })), help && /* @__PURE__ */ import_react14.default.createElement(Text_default, { className: helpClasses, id: idHelp }, help), securityGauge && type === "password" /* PASSWORD */ && /* @__PURE__ */ import_react14.default.createElement(
|
|
2084
|
+
), loading && /* @__PURE__ */ import_react14.default.createElement("span", { className: loader })), help && typeof help === "string" ? /* @__PURE__ */ import_react14.default.createElement(Text_default, { className: helpClasses, id: idHelp }, help) : help, securityGauge && type === "password" /* PASSWORD */ && /* @__PURE__ */ import_react14.default.createElement(
|
|
2080
2085
|
InputGauge_default,
|
|
2081
2086
|
{
|
|
2082
2087
|
validationRules,
|
|
@@ -2234,8 +2239,7 @@ var AutoCompleteRef = ({
|
|
|
2234
2239
|
(0, import_react15.useEffect)(() => {
|
|
2235
2240
|
setSearch(matching(data, _inputValue));
|
|
2236
2241
|
}, [data]);
|
|
2237
|
-
const
|
|
2238
|
-
setIsAutocompleteMenuVisible(true);
|
|
2242
|
+
const handleChangeInputValue = (e) => {
|
|
2239
2243
|
if (onChange) {
|
|
2240
2244
|
onChange({
|
|
2241
2245
|
inputName: name || "",
|
|
@@ -2255,6 +2259,9 @@ var AutoCompleteRef = ({
|
|
|
2255
2259
|
} else {
|
|
2256
2260
|
setInputValue(e.inputValue);
|
|
2257
2261
|
}
|
|
2262
|
+
};
|
|
2263
|
+
const getSuggestionsHandler = async (e) => {
|
|
2264
|
+
setIsAutocompleteMenuVisible(true);
|
|
2258
2265
|
if (getSuggestions) {
|
|
2259
2266
|
const data2 = await getSuggestions(e.inputValue);
|
|
2260
2267
|
setSearch(data2);
|
|
@@ -2262,7 +2269,7 @@ var AutoCompleteRef = ({
|
|
|
2262
2269
|
setSearch(matching(data, e.inputValue));
|
|
2263
2270
|
}
|
|
2264
2271
|
};
|
|
2265
|
-
const onInputChange = debounceSuggestionsTimeout ? debounce(
|
|
2272
|
+
const onInputChange = debounceSuggestionsTimeout ? debounce(getSuggestionsHandler, debounceSuggestionsTimeout) : getSuggestionsHandler;
|
|
2266
2273
|
const suggestionSelected = (value2, data2, search2) => {
|
|
2267
2274
|
setIsAutocompleteMenuVisible(false);
|
|
2268
2275
|
setInputValue(getLabel(value2));
|
|
@@ -2321,6 +2328,7 @@ var AutoCompleteRef = ({
|
|
|
2321
2328
|
onKeyUp: handleKeyPress,
|
|
2322
2329
|
value: _inputValue,
|
|
2323
2330
|
onChange: (event) => {
|
|
2331
|
+
handleChangeInputValue(event);
|
|
2324
2332
|
onInputChange(event);
|
|
2325
2333
|
},
|
|
2326
2334
|
onIconClick,
|
|
@@ -5043,10 +5051,302 @@ var Divider = import_react34.default.forwardRef(({
|
|
|
5043
5051
|
Divider.displayName = "Divider" /* Divider */;
|
|
5044
5052
|
var Divider_default = Divider;
|
|
5045
5053
|
|
|
5046
|
-
// components/
|
|
5047
|
-
var
|
|
5054
|
+
// components/dropdown/Dropdown.tsx
|
|
5055
|
+
var import_clsx50 = __toESM(require("clsx"));
|
|
5056
|
+
var React64 = __toESM(require("react"));
|
|
5057
|
+
|
|
5058
|
+
// components/dropdown/context/DropdownContext.tsx
|
|
5048
5059
|
var import_react35 = __toESM(require("react"));
|
|
5049
|
-
var
|
|
5060
|
+
var DropdownContext = (0, import_react35.createContext)(void 0);
|
|
5061
|
+
var useDropdownContext = () => {
|
|
5062
|
+
const context = (0, import_react35.useContext)(DropdownContext);
|
|
5063
|
+
if (!context) {
|
|
5064
|
+
throw new Error("useDropdownContext must be used within a DropdownProvider");
|
|
5065
|
+
}
|
|
5066
|
+
return context;
|
|
5067
|
+
};
|
|
5068
|
+
var DropdownProvider = ({
|
|
5069
|
+
children,
|
|
5070
|
+
defaultOpen = false,
|
|
5071
|
+
onToggle
|
|
5072
|
+
}) => {
|
|
5073
|
+
const [isOpen, setIsOpen] = (0, import_react35.useState)(defaultOpen);
|
|
5074
|
+
const toggle = () => {
|
|
5075
|
+
const newState = !isOpen;
|
|
5076
|
+
setIsOpen(newState);
|
|
5077
|
+
onToggle == null ? void 0 : onToggle(newState);
|
|
5078
|
+
};
|
|
5079
|
+
const open = () => {
|
|
5080
|
+
setIsOpen(true);
|
|
5081
|
+
onToggle == null ? void 0 : onToggle(true);
|
|
5082
|
+
};
|
|
5083
|
+
const close = () => {
|
|
5084
|
+
setIsOpen(false);
|
|
5085
|
+
onToggle == null ? void 0 : onToggle(false);
|
|
5086
|
+
};
|
|
5087
|
+
const value = {
|
|
5088
|
+
isOpen,
|
|
5089
|
+
toggle,
|
|
5090
|
+
open,
|
|
5091
|
+
close
|
|
5092
|
+
};
|
|
5093
|
+
return /* @__PURE__ */ import_react35.default.createElement(DropdownContext.Provider, { value }, children);
|
|
5094
|
+
};
|
|
5095
|
+
|
|
5096
|
+
// components/dropdown/trigger/DropdownTrigger.tsx
|
|
5097
|
+
var React63 = __toESM(require("react"));
|
|
5098
|
+
var import_clsx49 = __toESM(require("clsx"));
|
|
5099
|
+
var DropdownTrigger = React63.forwardRef(
|
|
5100
|
+
({
|
|
5101
|
+
children,
|
|
5102
|
+
onClick,
|
|
5103
|
+
className,
|
|
5104
|
+
testId,
|
|
5105
|
+
...others
|
|
5106
|
+
}, ref) => {
|
|
5107
|
+
const { styled } = useTrilogyContext();
|
|
5108
|
+
let contextState = null;
|
|
5109
|
+
try {
|
|
5110
|
+
contextState = useDropdownContext();
|
|
5111
|
+
} catch {
|
|
5112
|
+
contextState = null;
|
|
5113
|
+
}
|
|
5114
|
+
const classes = hashClass(
|
|
5115
|
+
styled,
|
|
5116
|
+
(0, import_clsx49.default)(
|
|
5117
|
+
"dropdown-trigger",
|
|
5118
|
+
className
|
|
5119
|
+
)
|
|
5120
|
+
);
|
|
5121
|
+
const handleClick = (event) => {
|
|
5122
|
+
if (contextState) {
|
|
5123
|
+
contextState.toggle();
|
|
5124
|
+
}
|
|
5125
|
+
onClick == null ? void 0 : onClick(event);
|
|
5126
|
+
};
|
|
5127
|
+
const enhancedChildren = React63.Children.map(children, (child) => {
|
|
5128
|
+
if (React63.isValidElement(child)) {
|
|
5129
|
+
if (!child.props.onClick) {
|
|
5130
|
+
return React63.cloneElement(child, {
|
|
5131
|
+
onClick: (e) => {
|
|
5132
|
+
e.preventDefault();
|
|
5133
|
+
e.stopPropagation();
|
|
5134
|
+
handleClick(e);
|
|
5135
|
+
}
|
|
5136
|
+
});
|
|
5137
|
+
}
|
|
5138
|
+
return React63.cloneElement(child, {
|
|
5139
|
+
onClick: (e) => {
|
|
5140
|
+
var _a, _b;
|
|
5141
|
+
(_b = (_a = child.props).onClick) == null ? void 0 : _b.call(_a, e);
|
|
5142
|
+
if (!e.defaultPrevented) {
|
|
5143
|
+
handleClick(e);
|
|
5144
|
+
}
|
|
5145
|
+
}
|
|
5146
|
+
});
|
|
5147
|
+
}
|
|
5148
|
+
return child;
|
|
5149
|
+
});
|
|
5150
|
+
return /* @__PURE__ */ React63.createElement(
|
|
5151
|
+
"div",
|
|
5152
|
+
{
|
|
5153
|
+
ref,
|
|
5154
|
+
className: classes,
|
|
5155
|
+
onClick: handleClick,
|
|
5156
|
+
"data-testid": testId,
|
|
5157
|
+
...others
|
|
5158
|
+
},
|
|
5159
|
+
enhancedChildren
|
|
5160
|
+
);
|
|
5161
|
+
}
|
|
5162
|
+
);
|
|
5163
|
+
DropdownTrigger.displayName = "DropdownTrigger" /* DropdownTrigger */;
|
|
5164
|
+
var DropdownTrigger_default = DropdownTrigger;
|
|
5165
|
+
|
|
5166
|
+
// components/dropdown/Dropdown.tsx
|
|
5167
|
+
var DropdownContent = React64.forwardRef(
|
|
5168
|
+
({
|
|
5169
|
+
children,
|
|
5170
|
+
className,
|
|
5171
|
+
testId,
|
|
5172
|
+
...others
|
|
5173
|
+
}, ref) => {
|
|
5174
|
+
const { styled } = useTrilogyContext();
|
|
5175
|
+
const dropdownRef = React64.useRef(null);
|
|
5176
|
+
const menuRef = React64.useRef(null);
|
|
5177
|
+
const hasDropdownTrigger = React64.Children.toArray(children).some(
|
|
5178
|
+
(child) => React64.isValidElement(child) && child.type === DropdownTrigger_default
|
|
5179
|
+
);
|
|
5180
|
+
const { isOpen } = useDropdownContext();
|
|
5181
|
+
React64.useEffect(() => {
|
|
5182
|
+
if (!isOpen || !dropdownRef.current || !menuRef.current) return;
|
|
5183
|
+
const dropdown = dropdownRef.current;
|
|
5184
|
+
const menu = menuRef.current;
|
|
5185
|
+
const checkPosition = () => {
|
|
5186
|
+
const rect = dropdown.getBoundingClientRect();
|
|
5187
|
+
const viewportHeight = window.innerHeight;
|
|
5188
|
+
const spaceBelow = viewportHeight - rect.bottom - 8;
|
|
5189
|
+
const spaceAbove = rect.top - 8;
|
|
5190
|
+
const menuHeight = 300;
|
|
5191
|
+
if (spaceBelow < menuHeight && spaceAbove >= menuHeight) {
|
|
5192
|
+
menu.setAttribute("data-position", "upward");
|
|
5193
|
+
} else {
|
|
5194
|
+
menu.removeAttribute("data-position");
|
|
5195
|
+
}
|
|
5196
|
+
};
|
|
5197
|
+
requestAnimationFrame(checkPosition);
|
|
5198
|
+
}, [isOpen]);
|
|
5199
|
+
const classes = hashClass(
|
|
5200
|
+
styled,
|
|
5201
|
+
(0, import_clsx50.default)(
|
|
5202
|
+
"dropdown",
|
|
5203
|
+
isOpen && is("active"),
|
|
5204
|
+
!hasDropdownTrigger && "dropdown-manual",
|
|
5205
|
+
className
|
|
5206
|
+
)
|
|
5207
|
+
);
|
|
5208
|
+
const triggerChildren = [];
|
|
5209
|
+
const contentChildren = [];
|
|
5210
|
+
if (hasDropdownTrigger) {
|
|
5211
|
+
React64.Children.forEach(children, (child) => {
|
|
5212
|
+
if (React64.isValidElement(child) && child.type === DropdownTrigger_default) {
|
|
5213
|
+
triggerChildren.push(child);
|
|
5214
|
+
} else {
|
|
5215
|
+
contentChildren.push(child);
|
|
5216
|
+
}
|
|
5217
|
+
});
|
|
5218
|
+
}
|
|
5219
|
+
return /* @__PURE__ */ React64.createElement(
|
|
5220
|
+
"div",
|
|
5221
|
+
{
|
|
5222
|
+
ref: (node) => {
|
|
5223
|
+
if (dropdownRef.current !== node) {
|
|
5224
|
+
dropdownRef.current = node;
|
|
5225
|
+
}
|
|
5226
|
+
if (typeof ref === "function") {
|
|
5227
|
+
ref(node);
|
|
5228
|
+
} else if (ref) {
|
|
5229
|
+
ref.current = node;
|
|
5230
|
+
}
|
|
5231
|
+
},
|
|
5232
|
+
className: classes,
|
|
5233
|
+
"data-testid": testId,
|
|
5234
|
+
...others
|
|
5235
|
+
},
|
|
5236
|
+
hasDropdownTrigger ? triggerChildren : null,
|
|
5237
|
+
/* @__PURE__ */ React64.createElement("div", { ref: menuRef, className: hashClass(styled, "dropdown-menu") }, /* @__PURE__ */ React64.createElement("div", { className: hashClass(styled, "dropdown-content") }, hasDropdownTrigger ? contentChildren : children))
|
|
5238
|
+
);
|
|
5239
|
+
}
|
|
5240
|
+
);
|
|
5241
|
+
var Dropdown = React64.forwardRef(
|
|
5242
|
+
({
|
|
5243
|
+
children,
|
|
5244
|
+
isActive,
|
|
5245
|
+
defaultOpen,
|
|
5246
|
+
onToggle,
|
|
5247
|
+
className,
|
|
5248
|
+
testId,
|
|
5249
|
+
...others
|
|
5250
|
+
}, ref) => {
|
|
5251
|
+
const hasDropdownTrigger = React64.Children.toArray(children).some(
|
|
5252
|
+
(child) => React64.isValidElement(child) && child.type === DropdownTrigger_default
|
|
5253
|
+
);
|
|
5254
|
+
const useTrigger = defaultOpen !== void 0 || onToggle !== void 0 || hasDropdownTrigger;
|
|
5255
|
+
const isManualMode = !useTrigger && isActive !== void 0;
|
|
5256
|
+
const providerDefaultOpen = isManualMode ? isActive : defaultOpen;
|
|
5257
|
+
return /* @__PURE__ */ React64.createElement(DropdownProvider, { defaultOpen: providerDefaultOpen, onToggle }, /* @__PURE__ */ React64.createElement(
|
|
5258
|
+
DropdownContent,
|
|
5259
|
+
{
|
|
5260
|
+
ref,
|
|
5261
|
+
className,
|
|
5262
|
+
testId,
|
|
5263
|
+
...others
|
|
5264
|
+
},
|
|
5265
|
+
children
|
|
5266
|
+
));
|
|
5267
|
+
}
|
|
5268
|
+
);
|
|
5269
|
+
Dropdown.displayName = "Dropdown" /* Dropdown */;
|
|
5270
|
+
var Dropdown_default = Dropdown;
|
|
5271
|
+
|
|
5272
|
+
// components/dropdown/group/DropdownGroup.tsx
|
|
5273
|
+
var import_clsx51 = __toESM(require("clsx"));
|
|
5274
|
+
var React65 = __toESM(require("react"));
|
|
5275
|
+
var DropdownGroup = React65.forwardRef(
|
|
5276
|
+
({ className, id, children, hideSeparator, testId, ...others }, ref) => {
|
|
5277
|
+
const { styled } = useTrilogyContext();
|
|
5278
|
+
const classes = hashClass(styled, (0, import_clsx51.default)("dropdown-group", hideSeparator && is("no-separator"), className));
|
|
5279
|
+
return /* @__PURE__ */ React65.createElement("div", { ref, id, className: classes, role: "group", "data-testid": testId, ...others }, children);
|
|
5280
|
+
}
|
|
5281
|
+
);
|
|
5282
|
+
DropdownGroup.displayName = "DropdownGroup" /* DropdownGroup */;
|
|
5283
|
+
var DropdownGroup_default = DropdownGroup;
|
|
5284
|
+
|
|
5285
|
+
// components/dropdown/item/DropdownItem.tsx
|
|
5286
|
+
var import_clsx52 = __toESM(require("clsx"));
|
|
5287
|
+
var React66 = __toESM(require("react"));
|
|
5288
|
+
var DropdownItem = React66.forwardRef(
|
|
5289
|
+
({
|
|
5290
|
+
children,
|
|
5291
|
+
iconName,
|
|
5292
|
+
active,
|
|
5293
|
+
disabled,
|
|
5294
|
+
onSelect,
|
|
5295
|
+
...others
|
|
5296
|
+
}, ref) => {
|
|
5297
|
+
const { styled } = useTrilogyContext();
|
|
5298
|
+
const classes = hashClass(
|
|
5299
|
+
styled,
|
|
5300
|
+
(0, import_clsx52.default)(
|
|
5301
|
+
"dropdown-item",
|
|
5302
|
+
active && is("active"),
|
|
5303
|
+
disabled && is("disabled")
|
|
5304
|
+
)
|
|
5305
|
+
);
|
|
5306
|
+
const handleClick = (e) => {
|
|
5307
|
+
if (disabled) {
|
|
5308
|
+
e.preventDefault();
|
|
5309
|
+
return;
|
|
5310
|
+
}
|
|
5311
|
+
if (onSelect) {
|
|
5312
|
+
onSelect();
|
|
5313
|
+
}
|
|
5314
|
+
};
|
|
5315
|
+
const handleKeyDown = (e) => {
|
|
5316
|
+
if (disabled) return;
|
|
5317
|
+
if (e.key === "Enter" || e.key === " ") {
|
|
5318
|
+
e.preventDefault();
|
|
5319
|
+
if (onSelect) {
|
|
5320
|
+
onSelect();
|
|
5321
|
+
}
|
|
5322
|
+
}
|
|
5323
|
+
};
|
|
5324
|
+
return /* @__PURE__ */ React66.createElement(
|
|
5325
|
+
"button",
|
|
5326
|
+
{
|
|
5327
|
+
ref,
|
|
5328
|
+
type: "button",
|
|
5329
|
+
className: classes,
|
|
5330
|
+
onClick: handleClick,
|
|
5331
|
+
onKeyDown: handleKeyDown,
|
|
5332
|
+
disabled,
|
|
5333
|
+
"aria-disabled": disabled,
|
|
5334
|
+
role: "menuitem",
|
|
5335
|
+
tabIndex: disabled ? -1 : 0,
|
|
5336
|
+
...others
|
|
5337
|
+
},
|
|
5338
|
+
iconName && /* @__PURE__ */ React66.createElement(Icon_default, { name: iconName, size: "smaller" /* SMALLER */ }),
|
|
5339
|
+
children
|
|
5340
|
+
);
|
|
5341
|
+
}
|
|
5342
|
+
);
|
|
5343
|
+
DropdownItem.displayName = "DropdownItem" /* DropdownItem */;
|
|
5344
|
+
var DropdownItem_default = DropdownItem;
|
|
5345
|
+
|
|
5346
|
+
// components/fab/Fab.tsx
|
|
5347
|
+
var import_clsx53 = __toESM(require("clsx"));
|
|
5348
|
+
var import_react36 = __toESM(require("react"));
|
|
5349
|
+
var Fab = import_react36.default.forwardRef(({
|
|
5050
5350
|
children,
|
|
5051
5351
|
extended,
|
|
5052
5352
|
iconName,
|
|
@@ -5063,8 +5363,8 @@ var Fab = import_react35.default.forwardRef(({
|
|
|
5063
5363
|
...others
|
|
5064
5364
|
}, ref) => {
|
|
5065
5365
|
const { styled } = useTrilogyContext();
|
|
5066
|
-
const [isExtended, setIsExtended] = (0,
|
|
5067
|
-
(0,
|
|
5366
|
+
const [isExtended, setIsExtended] = (0, import_react36.useState)(extended || false);
|
|
5367
|
+
(0, import_react36.useEffect)(() => {
|
|
5068
5368
|
setIsExtended(extended || false);
|
|
5069
5369
|
}, [isExtended]);
|
|
5070
5370
|
const positionStyle = top || bottom || left || right ? {
|
|
@@ -5076,8 +5376,8 @@ var Fab = import_react35.default.forwardRef(({
|
|
|
5076
5376
|
} : {
|
|
5077
5377
|
position: "relative"
|
|
5078
5378
|
};
|
|
5079
|
-
const _className = hashClass(styled, (0,
|
|
5080
|
-
return /* @__PURE__ */
|
|
5379
|
+
const _className = hashClass(styled, (0, import_clsx53.default)("fab", extended && is("extended"), className));
|
|
5380
|
+
return /* @__PURE__ */ import_react36.default.createElement(
|
|
5081
5381
|
"button",
|
|
5082
5382
|
{
|
|
5083
5383
|
ref,
|
|
@@ -5092,7 +5392,7 @@ var Fab = import_react35.default.forwardRef(({
|
|
|
5092
5392
|
...others,
|
|
5093
5393
|
className: _className
|
|
5094
5394
|
},
|
|
5095
|
-
/* @__PURE__ */
|
|
5395
|
+
/* @__PURE__ */ import_react36.default.createElement(Icon_default, { name: iconName }),
|
|
5096
5396
|
children
|
|
5097
5397
|
);
|
|
5098
5398
|
});
|
|
@@ -5100,8 +5400,8 @@ Fab.displayName = "Fab" /* Fab */;
|
|
|
5100
5400
|
var Fab_default = Fab;
|
|
5101
5401
|
|
|
5102
5402
|
// components/flex-box/FlexBox.tsx
|
|
5103
|
-
var
|
|
5104
|
-
var
|
|
5403
|
+
var import_clsx54 = __toESM(require("clsx"));
|
|
5404
|
+
var import_react37 = __toESM(require("react"));
|
|
5105
5405
|
var generateClassNames = ({ value, getClassName }) => {
|
|
5106
5406
|
if (!value) return [];
|
|
5107
5407
|
if (typeof value === "string" || typeof value === "number") {
|
|
@@ -5124,17 +5424,37 @@ var generateWrapClassNames = ({ value, getClassName }) => {
|
|
|
5124
5424
|
}
|
|
5125
5425
|
return [];
|
|
5126
5426
|
};
|
|
5127
|
-
var
|
|
5427
|
+
var getJustifyClassName2 = (justifyContent) => {
|
|
5428
|
+
if (!justifyContent) return "flex-start";
|
|
5429
|
+
switch (true) {
|
|
5430
|
+
case ["CENTER", "JUSTIFIED_CENTER"].includes(justifyContent):
|
|
5431
|
+
return "justified-center";
|
|
5432
|
+
case ["START", "JUSTIFIED_START"].includes(justifyContent):
|
|
5433
|
+
return "justified-start";
|
|
5434
|
+
case ["END", "JUSTIFIED_END"].includes(justifyContent):
|
|
5435
|
+
return "justified-end";
|
|
5436
|
+
case ["SPACE_BETWEEN", "SPACE_BETWEEN"].includes(justifyContent):
|
|
5437
|
+
return "spaced-between";
|
|
5438
|
+
case justifyContent === "SPACE_EVENLY":
|
|
5439
|
+
return "spaced-evenly";
|
|
5440
|
+
case justifyContent === "SPACE_AROUND":
|
|
5441
|
+
return "spaced-around";
|
|
5442
|
+
default:
|
|
5443
|
+
return "justified-start";
|
|
5444
|
+
}
|
|
5445
|
+
};
|
|
5446
|
+
var FlexBox = import_react37.default.forwardRef(
|
|
5128
5447
|
({ className, id, gap, direction, align, justify, wrap, scrollable, fullheight, mobile, ...others }, ref) => {
|
|
5129
5448
|
const { styled } = useTrilogyContext();
|
|
5449
|
+
const gapClasses = gap === 0 ? [is("gapless")] : generateClassNames({ value: gap, getClassName: (val) => has(`gap-${val}`) });
|
|
5130
5450
|
const classes = hashClass(
|
|
5131
5451
|
styled,
|
|
5132
|
-
(0,
|
|
5452
|
+
(0, import_clsx54.default)([
|
|
5133
5453
|
"flex-box",
|
|
5134
5454
|
...generateClassNames({ value: direction, getClassName: (val) => is(`direction-${val}`) }),
|
|
5135
5455
|
...generateClassNames({ value: align, getClassName: (val) => is(getAlignClassName(val)) }),
|
|
5136
|
-
...generateClassNames({ value: justify, getClassName: (val) => is(
|
|
5137
|
-
...
|
|
5456
|
+
...generateClassNames({ value: justify, getClassName: (val) => is(getJustifyClassName2(val)) }),
|
|
5457
|
+
...gapClasses,
|
|
5138
5458
|
...generateWrapClassNames({ value: wrap, getClassName: (val) => is(`wrap`) }),
|
|
5139
5459
|
scrollable && is("scrollable"),
|
|
5140
5460
|
fullheight && is("fullheight"),
|
|
@@ -5142,22 +5462,22 @@ var FlexBox = import_react36.default.forwardRef(
|
|
|
5142
5462
|
className
|
|
5143
5463
|
])
|
|
5144
5464
|
);
|
|
5145
|
-
return /* @__PURE__ */
|
|
5465
|
+
return /* @__PURE__ */ import_react37.default.createElement("div", { ref, id, className: classes, ...others });
|
|
5146
5466
|
}
|
|
5147
5467
|
);
|
|
5148
5468
|
FlexBox.displayName = "FlexBox" /* FlexBox */;
|
|
5149
5469
|
var FlexBox_default = FlexBox;
|
|
5150
5470
|
|
|
5151
5471
|
// components/flex-box/flex-item/FlexItem.tsx
|
|
5152
|
-
var
|
|
5153
|
-
var
|
|
5154
|
-
var FlexItem =
|
|
5472
|
+
var import_clsx55 = __toESM(require("clsx"));
|
|
5473
|
+
var import_react38 = __toESM(require("react"));
|
|
5474
|
+
var FlexItem = import_react38.default.forwardRef(
|
|
5155
5475
|
({ className, id, size: size2, narrow, verticalAlign, ...others }, ref) => {
|
|
5156
5476
|
const { styled } = useTrilogyContext();
|
|
5157
5477
|
const isNumber = typeof size2 === "number";
|
|
5158
5478
|
const classes = hashClass(
|
|
5159
5479
|
styled,
|
|
5160
|
-
(0,
|
|
5480
|
+
(0, import_clsx55.default)(
|
|
5161
5481
|
"flex-item",
|
|
5162
5482
|
size2 && isNumber && is(`${size2}`),
|
|
5163
5483
|
size2 && !isNumber && (size2 == null ? void 0 : size2.desktop) && is(`${size2.desktop}-desktop`),
|
|
@@ -5171,21 +5491,21 @@ var FlexItem = import_react37.default.forwardRef(
|
|
|
5171
5491
|
className
|
|
5172
5492
|
)
|
|
5173
5493
|
);
|
|
5174
|
-
return /* @__PURE__ */
|
|
5494
|
+
return /* @__PURE__ */ import_react38.default.createElement("div", { ref, id, className: classes, ...others });
|
|
5175
5495
|
}
|
|
5176
5496
|
);
|
|
5177
5497
|
FlexItem.displayName = "FlexItem" /* FlexItem */;
|
|
5178
5498
|
var FlexItem_default = FlexItem;
|
|
5179
5499
|
|
|
5180
5500
|
// components/hero/Hero.tsx
|
|
5181
|
-
var
|
|
5182
|
-
var
|
|
5183
|
-
var Hero =
|
|
5501
|
+
var import_clsx56 = __toESM(require("clsx"));
|
|
5502
|
+
var import_react39 = __toESM(require("react"));
|
|
5503
|
+
var Hero = import_react39.default.forwardRef(
|
|
5184
5504
|
({ children, backgroundColor, backgroundSrc, inverted, className, id, onClick, overlap, ...others }, ref) => {
|
|
5185
5505
|
const { styled } = useTrilogyContext();
|
|
5186
5506
|
const classes = hashClass(
|
|
5187
5507
|
styled,
|
|
5188
|
-
(0,
|
|
5508
|
+
(0, import_clsx56.default)(
|
|
5189
5509
|
"hero",
|
|
5190
5510
|
backgroundColor && has(getBackgroundClassName(backgroundColor)),
|
|
5191
5511
|
backgroundSrc && has("background"),
|
|
@@ -5194,7 +5514,7 @@ var Hero = import_react38.default.forwardRef(
|
|
|
5194
5514
|
className
|
|
5195
5515
|
)
|
|
5196
5516
|
);
|
|
5197
|
-
return /* @__PURE__ */
|
|
5517
|
+
return /* @__PURE__ */ import_react39.default.createElement(
|
|
5198
5518
|
"section",
|
|
5199
5519
|
{
|
|
5200
5520
|
ref,
|
|
@@ -5206,7 +5526,7 @@ var Hero = import_react38.default.forwardRef(
|
|
|
5206
5526
|
},
|
|
5207
5527
|
...others
|
|
5208
5528
|
},
|
|
5209
|
-
/* @__PURE__ */
|
|
5529
|
+
/* @__PURE__ */ import_react39.default.createElement("div", { className: hashClass(styled, (0, import_clsx56.default)("hero-body")) }, children)
|
|
5210
5530
|
);
|
|
5211
5531
|
}
|
|
5212
5532
|
);
|
|
@@ -5231,9 +5551,9 @@ var RadiusValues = /* @__PURE__ */ ((RadiusValues2) => {
|
|
|
5231
5551
|
})(RadiusValues || {});
|
|
5232
5552
|
|
|
5233
5553
|
// components/image/Image.tsx
|
|
5234
|
-
var
|
|
5235
|
-
var
|
|
5236
|
-
var Image =
|
|
5554
|
+
var import_clsx57 = __toESM(require("clsx"));
|
|
5555
|
+
var React71 = __toESM(require("react"));
|
|
5556
|
+
var Image = React71.forwardRef(({
|
|
5237
5557
|
src,
|
|
5238
5558
|
alt = "",
|
|
5239
5559
|
className,
|
|
@@ -5247,14 +5567,14 @@ var Image = React66.forwardRef(({
|
|
|
5247
5567
|
...others
|
|
5248
5568
|
}, ref) => {
|
|
5249
5569
|
const { styled } = useTrilogyContext();
|
|
5250
|
-
const classes = hashClass(styled, (0,
|
|
5570
|
+
const classes = hashClass(styled, (0, import_clsx57.default)("image", className, align && is(getJustifiedClassName(align))));
|
|
5251
5571
|
const styles = {
|
|
5252
5572
|
image: {
|
|
5253
5573
|
width,
|
|
5254
5574
|
height
|
|
5255
5575
|
}
|
|
5256
5576
|
};
|
|
5257
|
-
return /* @__PURE__ */
|
|
5577
|
+
return /* @__PURE__ */ React71.createElement(
|
|
5258
5578
|
"figure",
|
|
5259
5579
|
{
|
|
5260
5580
|
ref,
|
|
@@ -5266,11 +5586,11 @@ var Image = React66.forwardRef(({
|
|
|
5266
5586
|
className: classes,
|
|
5267
5587
|
...others
|
|
5268
5588
|
},
|
|
5269
|
-
/* @__PURE__ */
|
|
5589
|
+
/* @__PURE__ */ React71.createElement(
|
|
5270
5590
|
"img",
|
|
5271
5591
|
{
|
|
5272
5592
|
style: styles.image,
|
|
5273
|
-
className: hashClass(styled, (0,
|
|
5593
|
+
className: hashClass(styled, (0, import_clsx57.default)(radius && has(`border-radius-${radius}`), circled ? is("circled") : "")),
|
|
5274
5594
|
src: typeof src === "string" ? src : "",
|
|
5275
5595
|
alt
|
|
5276
5596
|
}
|
|
@@ -5281,44 +5601,44 @@ Image.displayName = "Image" /* Image */;
|
|
|
5281
5601
|
var Image_default = Image;
|
|
5282
5602
|
|
|
5283
5603
|
// components/list/List.tsx
|
|
5284
|
-
var
|
|
5285
|
-
var
|
|
5286
|
-
var List =
|
|
5604
|
+
var import_clsx58 = __toESM(require("clsx"));
|
|
5605
|
+
var React72 = __toESM(require("react"));
|
|
5606
|
+
var List = React72.forwardRef(({ className, id, children, testId, divider, ordered, ...others }, ref) => {
|
|
5287
5607
|
const { styled } = useTrilogyContext();
|
|
5288
|
-
const classes = hashClass(styled, (0,
|
|
5608
|
+
const classes = hashClass(styled, (0, import_clsx58.default)("list", divider && has("divider"), className));
|
|
5289
5609
|
const Tag2 = ordered ? "ol" : "ul";
|
|
5290
|
-
return /* @__PURE__ */
|
|
5610
|
+
return /* @__PURE__ */ React72.createElement(Tag2, { ref, id, "data-testid": testId, className: classes, ...others }, children);
|
|
5291
5611
|
});
|
|
5292
5612
|
List.displayName = "List" /* List */;
|
|
5293
5613
|
var List_default = List;
|
|
5294
5614
|
|
|
5295
5615
|
// components/list/item/ListItem.tsx
|
|
5296
|
-
var
|
|
5297
|
-
var
|
|
5298
|
-
var ListItem =
|
|
5616
|
+
var import_clsx59 = __toESM(require("clsx"));
|
|
5617
|
+
var React73 = __toESM(require("react"));
|
|
5618
|
+
var ListItem = React73.forwardRef(({ className, id, children, iconName, status, testId }, ref) => {
|
|
5299
5619
|
const { styled } = useTrilogyContext();
|
|
5300
|
-
const classes = (0,
|
|
5301
|
-
return /* @__PURE__ */
|
|
5620
|
+
const classes = (0, import_clsx59.default)("list-item", className, status && is(getColorClassName(TrilogyColor[status])));
|
|
5621
|
+
return /* @__PURE__ */ React73.createElement("li", { ref, id, className: hashClass(styled, (0, import_clsx59.default)(classes)), "data-testid": testId }, iconName && /* @__PURE__ */ React73.createElement(
|
|
5302
5622
|
Icon_default,
|
|
5303
5623
|
{
|
|
5304
|
-
className: status && (0,
|
|
5624
|
+
className: status && (0, import_clsx59.default)(is(getColorClassName(TrilogyColor[status]))),
|
|
5305
5625
|
name: iconName,
|
|
5306
5626
|
size: "small" /* SMALL */
|
|
5307
5627
|
}
|
|
5308
|
-
), /* @__PURE__ */
|
|
5628
|
+
), /* @__PURE__ */ React73.createElement("div", { className: hashClass(styled, (0, import_clsx59.default)("list-item-content")) }, children));
|
|
5309
5629
|
});
|
|
5310
5630
|
ListItem.displayName = "ListItem" /* ListItem */;
|
|
5311
5631
|
var ListItem_default = ListItem;
|
|
5312
5632
|
|
|
5313
5633
|
// components/list/item/description/ListItemDescription.tsx
|
|
5314
|
-
var
|
|
5315
|
-
var
|
|
5316
|
-
var ListItemDescription =
|
|
5634
|
+
var import_clsx60 = __toESM(require("clsx"));
|
|
5635
|
+
var React74 = __toESM(require("react"));
|
|
5636
|
+
var ListItemDescription = React74.forwardRef(({
|
|
5317
5637
|
children,
|
|
5318
5638
|
className
|
|
5319
5639
|
}, ref) => {
|
|
5320
5640
|
const { styled } = useTrilogyContext();
|
|
5321
|
-
return /* @__PURE__ */
|
|
5641
|
+
return /* @__PURE__ */ React74.createElement("dd", { ref, className: hashClass(styled, (0, import_clsx60.default)(className)) }, children);
|
|
5322
5642
|
});
|
|
5323
5643
|
ListItemDescription.displayName = "ListItemDescription" /* ListItemDescription */;
|
|
5324
5644
|
var ListItemDescription_default = ListItemDescription;
|
|
@@ -5334,8 +5654,8 @@ var ListIconStatus = /* @__PURE__ */ ((ListIconStatus2) => {
|
|
|
5334
5654
|
|
|
5335
5655
|
// components/otp/Otp.tsx
|
|
5336
5656
|
var import_locales5 = require("@trilogy-ds/locales");
|
|
5337
|
-
var
|
|
5338
|
-
var
|
|
5657
|
+
var import_clsx61 = __toESM(require("clsx"));
|
|
5658
|
+
var import_react40 = __toESM(require("react"));
|
|
5339
5659
|
var stringToCode = (str, codeSize) => {
|
|
5340
5660
|
if (!str) return new Array(codeSize).fill(null);
|
|
5341
5661
|
return str.split("").map((char) => char === "" ? null : Number(char));
|
|
@@ -5392,7 +5712,7 @@ var inputOnKeyUp = (e) => {
|
|
|
5392
5712
|
var formatTranslation = (translation, x, y) => {
|
|
5393
5713
|
return translation.replace(/:x/g, x).replace(/:y/g, y);
|
|
5394
5714
|
};
|
|
5395
|
-
var Otp =
|
|
5715
|
+
var Otp = import_react40.default.forwardRef(
|
|
5396
5716
|
({
|
|
5397
5717
|
className,
|
|
5398
5718
|
id,
|
|
@@ -5408,18 +5728,18 @@ var Otp = import_react39.default.forwardRef(
|
|
|
5408
5728
|
autoFocus,
|
|
5409
5729
|
...others
|
|
5410
5730
|
}, ref) => {
|
|
5411
|
-
const [codeInput, setCodeInput] = (0,
|
|
5731
|
+
const [codeInput, setCodeInput] = (0, import_react40.useState)(
|
|
5412
5732
|
stringToCode(value, length) || new Array(length).fill(null)
|
|
5413
5733
|
);
|
|
5414
|
-
const hasChanged = (0,
|
|
5734
|
+
const hasChanged = (0, import_react40.useRef)(false);
|
|
5415
5735
|
const { styled } = useTrilogyContext();
|
|
5416
|
-
const classes = hashClass(styled, (0,
|
|
5417
|
-
(0,
|
|
5736
|
+
const classes = hashClass(styled, (0, import_clsx61.default)("otp-list", error && is("error"), className));
|
|
5737
|
+
(0, import_react40.useEffect)(() => {
|
|
5418
5738
|
if (!disabled) {
|
|
5419
5739
|
isCompleted(codeInput) && (onCompleted == null ? void 0 : onCompleted(codeToString(codeInput)));
|
|
5420
5740
|
}
|
|
5421
5741
|
}, [length, codeInput, onCompleted, disabled]);
|
|
5422
|
-
(0,
|
|
5742
|
+
(0, import_react40.useEffect)(() => {
|
|
5423
5743
|
hasChanged.current = codeInput.find((code) => code !== null) !== void 0;
|
|
5424
5744
|
if (hasChanged.current) {
|
|
5425
5745
|
onChange == null ? void 0 : onChange(codeToString(codeInput));
|
|
@@ -5442,14 +5762,14 @@ var Otp = import_react39.default.forwardRef(
|
|
|
5442
5762
|
const { target } = e;
|
|
5443
5763
|
target.setSelectionRange(0, target.value.length);
|
|
5444
5764
|
};
|
|
5445
|
-
return /* @__PURE__ */
|
|
5765
|
+
return /* @__PURE__ */ import_react40.default.createElement(import_react40.default.Fragment, null, label && /* @__PURE__ */ import_react40.default.createElement(
|
|
5446
5766
|
Text_default,
|
|
5447
5767
|
{
|
|
5448
5768
|
markup: "p" /* P */,
|
|
5449
5769
|
typo: disabled && "has-text-grey" /* TEXT_NEUTRAL */ || error && "has-text-error" /* TEXT_ERROR */ || "has-text-main" /* TEXT_MAIN */
|
|
5450
5770
|
},
|
|
5451
5771
|
label
|
|
5452
|
-
), /* @__PURE__ */
|
|
5772
|
+
), /* @__PURE__ */ import_react40.default.createElement(
|
|
5453
5773
|
"div",
|
|
5454
5774
|
{
|
|
5455
5775
|
ref,
|
|
@@ -5461,7 +5781,7 @@ var Otp = import_react39.default.forwardRef(
|
|
|
5461
5781
|
}
|
|
5462
5782
|
}
|
|
5463
5783
|
},
|
|
5464
|
-
codeInput.map((digit, idx) => /* @__PURE__ */
|
|
5784
|
+
codeInput.map((digit, idx) => /* @__PURE__ */ import_react40.default.createElement(
|
|
5465
5785
|
"input",
|
|
5466
5786
|
{
|
|
5467
5787
|
"aria-disabled": disabled,
|
|
@@ -5472,7 +5792,7 @@ var Otp = import_react39.default.forwardRef(
|
|
|
5472
5792
|
autoFocus: idx === 0 && autoFocus,
|
|
5473
5793
|
pattern: "\\d{1}",
|
|
5474
5794
|
maxLength: length,
|
|
5475
|
-
className: hashClass(styled, (0,
|
|
5795
|
+
className: hashClass(styled, (0, import_clsx61.default)("otp")),
|
|
5476
5796
|
value: `${digit != null ? digit : ""}`,
|
|
5477
5797
|
onKeyUp: inputOnKeyUp,
|
|
5478
5798
|
onFocus: inputOnFocus,
|
|
@@ -5482,10 +5802,10 @@ var Otp = import_react39.default.forwardRef(
|
|
|
5482
5802
|
...others
|
|
5483
5803
|
}
|
|
5484
5804
|
))
|
|
5485
|
-
), help && /* @__PURE__ */
|
|
5805
|
+
), help && /* @__PURE__ */ import_react40.default.createElement(
|
|
5486
5806
|
Text_default,
|
|
5487
5807
|
{
|
|
5488
|
-
className: hashClass(styled, (0,
|
|
5808
|
+
className: hashClass(styled, (0, import_clsx61.default)("help")),
|
|
5489
5809
|
markup: "p" /* P */,
|
|
5490
5810
|
typo: error && "has-text-error" /* TEXT_ERROR */ || "has-text-main" /* TEXT_MAIN */
|
|
5491
5811
|
},
|
|
@@ -5497,109 +5817,109 @@ Otp.displayName = "Otp" /* Otp */;
|
|
|
5497
5817
|
var Otp_default = Otp;
|
|
5498
5818
|
|
|
5499
5819
|
// components/pagination/Pagination.tsx
|
|
5500
|
-
var
|
|
5501
|
-
var
|
|
5502
|
-
var Pagination =
|
|
5503
|
-
className,
|
|
5504
|
-
|
|
5505
|
-
|
|
5506
|
-
|
|
5507
|
-
|
|
5508
|
-
|
|
5509
|
-
|
|
5510
|
-
|
|
5511
|
-
|
|
5512
|
-
|
|
5513
|
-
|
|
5514
|
-
|
|
5515
|
-
|
|
5516
|
-
|
|
5517
|
-
|
|
5518
|
-
|
|
5519
|
-
|
|
5520
|
-
|
|
5521
|
-
|
|
5522
|
-
|
|
5523
|
-
|
|
5524
|
-
|
|
5525
|
-
} else if (currentPage + 3 >= length) {
|
|
5526
|
-
startPage = length - 3;
|
|
5527
|
-
endPage = length;
|
|
5528
|
-
} else {
|
|
5529
|
-
startPage = currentPage - 1;
|
|
5530
|
-
endPage = currentPage + 1;
|
|
5531
|
-
}
|
|
5532
|
-
}
|
|
5533
|
-
const pages = [...Array(endPage + 1 - startPage).keys()].map((i) => startPage + i);
|
|
5534
|
-
return {
|
|
5535
|
-
currentPage,
|
|
5536
|
-
length,
|
|
5537
|
-
endPage,
|
|
5538
|
-
pages
|
|
5539
|
-
};
|
|
5540
|
-
}, [currentPage, length]);
|
|
5541
|
-
(0, import_react40.useEffect)(() => {
|
|
5542
|
-
if (onClick && prevCurrentPage.current !== pager.currentPage) {
|
|
5543
|
-
onClick(pager);
|
|
5544
|
-
}
|
|
5545
|
-
setCurrentPage(pager.currentPage);
|
|
5546
|
-
prevCurrentPage.current = pager.currentPage;
|
|
5547
|
-
}, [pager.currentPage]);
|
|
5548
|
-
(0, import_react40.useEffect)(() => {
|
|
5549
|
-
setCurrentPage(defaultPage);
|
|
5550
|
-
}, [defaultPage]);
|
|
5551
|
-
return /* @__PURE__ */ import_react40.default.createElement("nav", { ref, id, className: classes, ...others }, /* @__PURE__ */ import_react40.default.createElement(
|
|
5552
|
-
"a",
|
|
5553
|
-
{
|
|
5554
|
-
className: hashClass(styled, (0, import_clsx58.default)("pagination-previous")),
|
|
5555
|
-
...currentPage === 1 ? { "aria-disabled": true } : {},
|
|
5556
|
-
onClick: () => {
|
|
5557
|
-
if (currentPage !== 1) {
|
|
5558
|
-
setCurrentPage(currentPage - 1);
|
|
5820
|
+
var import_clsx62 = __toESM(require("clsx"));
|
|
5821
|
+
var import_react41 = __toESM(require("react"));
|
|
5822
|
+
var Pagination = import_react41.default.forwardRef(
|
|
5823
|
+
({ className, id, length, defaultPage = 1, onClick, href, ...others }, ref) => {
|
|
5824
|
+
const [currentPage, setCurrentPage] = (0, import_react41.useState)(defaultPage);
|
|
5825
|
+
const { styled } = useTrilogyContext();
|
|
5826
|
+
const classes = hashClass(styled, (0, import_clsx62.default)("pagination", className));
|
|
5827
|
+
const getPages = import_react41.default.useCallback(
|
|
5828
|
+
(page) => {
|
|
5829
|
+
let startPage = 1;
|
|
5830
|
+
let endPage = 5;
|
|
5831
|
+
if (length <= 5) {
|
|
5832
|
+
startPage = 1;
|
|
5833
|
+
endPage = length;
|
|
5834
|
+
} else {
|
|
5835
|
+
if (page <= 3) {
|
|
5836
|
+
startPage = 1;
|
|
5837
|
+
endPage = 4;
|
|
5838
|
+
} else if (page + 3 >= length) {
|
|
5839
|
+
startPage = length - 3;
|
|
5840
|
+
endPage = length;
|
|
5841
|
+
} else {
|
|
5842
|
+
startPage = page - 1;
|
|
5843
|
+
endPage = page + 1;
|
|
5844
|
+
}
|
|
5559
5845
|
}
|
|
5846
|
+
const pages2 = [...Array(endPage + 1 - startPage).keys()].map((i) => startPage + i);
|
|
5847
|
+
return {
|
|
5848
|
+
endPage,
|
|
5849
|
+
pages: pages2
|
|
5850
|
+
};
|
|
5560
5851
|
},
|
|
5561
|
-
|
|
5562
|
-
|
|
5563
|
-
|
|
5564
|
-
|
|
5565
|
-
|
|
5566
|
-
|
|
5567
|
-
|
|
5568
|
-
|
|
5569
|
-
"
|
|
5570
|
-
|
|
5571
|
-
|
|
5852
|
+
[length]
|
|
5853
|
+
);
|
|
5854
|
+
const [pages, setPages] = (0, import_react41.useState)(() => getPages(defaultPage).pages);
|
|
5855
|
+
(0, import_react41.useEffect)(() => {
|
|
5856
|
+
setCurrentPage(defaultPage);
|
|
5857
|
+
setPages(getPages(defaultPage).pages);
|
|
5858
|
+
}, [defaultPage]);
|
|
5859
|
+
return /* @__PURE__ */ import_react41.default.createElement("nav", { ref, id, className: classes, ...others }, /* @__PURE__ */ import_react41.default.createElement(
|
|
5860
|
+
"a",
|
|
5861
|
+
{
|
|
5862
|
+
className: hashClass(styled, (0, import_clsx62.default)("pagination-previous")),
|
|
5863
|
+
...currentPage === 1 ? { "aria-disabled": true } : {},
|
|
5864
|
+
onClick: (e) => {
|
|
5865
|
+
const nextPage = currentPage - 1;
|
|
5866
|
+
const nextPages = getPages(nextPage);
|
|
5867
|
+
if (onClick) onClick(Object.assign(e, nextPages, { currentPage: nextPage, length }));
|
|
5868
|
+
if (currentPage !== 1) {
|
|
5869
|
+
setCurrentPage(nextPage);
|
|
5870
|
+
setPages(nextPages.pages);
|
|
5871
|
+
}
|
|
5872
|
+
},
|
|
5873
|
+
href: href == null ? void 0 : href(currentPage - 1)
|
|
5572
5874
|
},
|
|
5573
|
-
|
|
5574
|
-
},
|
|
5575
|
-
|
|
5576
|
-
|
|
5577
|
-
|
|
5578
|
-
|
|
5579
|
-
|
|
5580
|
-
|
|
5581
|
-
|
|
5582
|
-
|
|
5583
|
-
setCurrentPage(
|
|
5584
|
-
|
|
5875
|
+
/* @__PURE__ */ import_react41.default.createElement(Icon_default, { name: "tri-arrow-left" /* ARROW_LEFT */ })
|
|
5876
|
+
), /* @__PURE__ */ import_react41.default.createElement("ul", { className: hashClass(styled, (0, import_clsx62.default)("pagination-list")) }, !pages.includes(1) && /* @__PURE__ */ import_react41.default.createElement("li", null, /* @__PURE__ */ import_react41.default.createElement("span", { className: hashClass(styled, (0, import_clsx62.default)("pagination-ellipsis")) }, "\u2026")), pages.map((pageNumber) => /* @__PURE__ */ import_react41.default.createElement("li", { key: pageNumber }, /* @__PURE__ */ import_react41.default.createElement(
|
|
5877
|
+
"a",
|
|
5878
|
+
{
|
|
5879
|
+
className: hashClass(styled, (0, import_clsx62.default)("pagination-link")),
|
|
5880
|
+
...currentPage === pageNumber ? { "aria-current": true } : {},
|
|
5881
|
+
"aria-label": `Aller \xE0 la page ${pageNumber}`,
|
|
5882
|
+
onClick: (e) => {
|
|
5883
|
+
const nextPages = getPages(pageNumber);
|
|
5884
|
+
if (onClick) onClick(Object.assign(e, nextPages, { currentPage: pageNumber, length }));
|
|
5885
|
+
setCurrentPage(pageNumber);
|
|
5886
|
+
setPages(nextPages.pages);
|
|
5887
|
+
},
|
|
5888
|
+
href: href == null ? void 0 : href(pageNumber)
|
|
5585
5889
|
},
|
|
5586
|
-
|
|
5587
|
-
},
|
|
5588
|
-
|
|
5589
|
-
|
|
5590
|
-
|
|
5890
|
+
pageNumber
|
|
5891
|
+
))), !pages.includes(length) && /* @__PURE__ */ import_react41.default.createElement("li", null, /* @__PURE__ */ import_react41.default.createElement("span", { className: hashClass(styled, (0, import_clsx62.default)("pagination-ellipsis")) }, "\u2026"))), /* @__PURE__ */ import_react41.default.createElement(
|
|
5892
|
+
"a",
|
|
5893
|
+
{
|
|
5894
|
+
className: hashClass(styled, (0, import_clsx62.default)("pagination-next")),
|
|
5895
|
+
...currentPage === Math.max(length) ? { "aria-disabled": true } : {},
|
|
5896
|
+
onClick: (e) => {
|
|
5897
|
+
const nextPage = currentPage + 1;
|
|
5898
|
+
const nextPages = getPages(nextPage);
|
|
5899
|
+
if (onClick) onClick(Object.assign(e, nextPages, { currentPage: nextPage, length }));
|
|
5900
|
+
if (currentPage !== Math.max(length)) {
|
|
5901
|
+
setCurrentPage(currentPage + 1);
|
|
5902
|
+
setPages(nextPages.pages);
|
|
5903
|
+
}
|
|
5904
|
+
},
|
|
5905
|
+
href: href == null ? void 0 : href(currentPage + 1)
|
|
5906
|
+
},
|
|
5907
|
+
/* @__PURE__ */ import_react41.default.createElement(Icon_default, { name: "tri-arrow-right" /* ARROW_RIGHT */ })
|
|
5908
|
+
));
|
|
5909
|
+
}
|
|
5910
|
+
);
|
|
5591
5911
|
Pagination.displayName = "Pagination" /* Pagination */;
|
|
5592
5912
|
var Pagination_default = Pagination;
|
|
5593
5913
|
|
|
5594
5914
|
// components/popover/Popover.tsx
|
|
5595
|
-
var
|
|
5596
|
-
var
|
|
5597
|
-
var Popover =
|
|
5915
|
+
var import_clsx63 = __toESM(require("clsx"));
|
|
5916
|
+
var React77 = __toESM(require("react"));
|
|
5917
|
+
var Popover = React77.forwardRef(
|
|
5598
5918
|
({ className, id, direction, children, active, arrowPosition, trigger, ...others }, ref) => {
|
|
5599
5919
|
const { styled } = useTrilogyContext();
|
|
5600
5920
|
const classes = hashClass(
|
|
5601
5921
|
styled,
|
|
5602
|
-
(0,
|
|
5922
|
+
(0, import_clsx63.default)(
|
|
5603
5923
|
"popover",
|
|
5604
5924
|
direction && is(`popover-${direction}`),
|
|
5605
5925
|
active && is("popover-active"),
|
|
@@ -5607,7 +5927,7 @@ var Popover = React72.forwardRef(
|
|
|
5607
5927
|
className
|
|
5608
5928
|
)
|
|
5609
5929
|
);
|
|
5610
|
-
return /* @__PURE__ */
|
|
5930
|
+
return /* @__PURE__ */ React77.createElement("span", { ref, id, className: classes, ...others }, trigger && trigger, /* @__PURE__ */ React77.createElement("span", { className: hashClass(styled, "popover-content") }, children));
|
|
5611
5931
|
}
|
|
5612
5932
|
);
|
|
5613
5933
|
Popover.displayName = "Popover" /* Popover */;
|
|
@@ -5627,8 +5947,8 @@ var PopoverArrowPosition = /* @__PURE__ */ ((PopoverArrowPosition2) => {
|
|
|
5627
5947
|
})(PopoverArrowPosition || {});
|
|
5628
5948
|
|
|
5629
5949
|
// components/price/Price.tsx
|
|
5630
|
-
var
|
|
5631
|
-
var
|
|
5950
|
+
var import_clsx64 = __toESM(require("clsx"));
|
|
5951
|
+
var React78 = __toESM(require("react"));
|
|
5632
5952
|
|
|
5633
5953
|
// components/price/PriceHelpers.ts
|
|
5634
5954
|
var checkCents = (text) => {
|
|
@@ -5640,7 +5960,7 @@ var checkCents = (text) => {
|
|
|
5640
5960
|
};
|
|
5641
5961
|
|
|
5642
5962
|
// components/price/Price.tsx
|
|
5643
|
-
var Price =
|
|
5963
|
+
var Price = React78.forwardRef(
|
|
5644
5964
|
({
|
|
5645
5965
|
className,
|
|
5646
5966
|
id,
|
|
@@ -5658,10 +5978,10 @@ var Price = React73.forwardRef(
|
|
|
5658
5978
|
}, ref) => {
|
|
5659
5979
|
var _a, _b;
|
|
5660
5980
|
const { styled } = useTrilogyContext();
|
|
5661
|
-
const classes = hashClass(styled, (0,
|
|
5981
|
+
const classes = hashClass(styled, (0, import_clsx64.default)("price", inverted && is("inverted"), overline && has("suptitle"), className));
|
|
5662
5982
|
const classesStrike = hashClass(
|
|
5663
5983
|
styled,
|
|
5664
|
-
(0,
|
|
5984
|
+
(0, import_clsx64.default)("price", inverted && is("inverted"), oldAmount && "strike", overline && has("suptitle"), className)
|
|
5665
5985
|
);
|
|
5666
5986
|
let amountComponent = null;
|
|
5667
5987
|
let oldAmountComponent = null;
|
|
@@ -5674,7 +5994,7 @@ var Price = React73.forwardRef(
|
|
|
5674
5994
|
let cents = checkCents(((_a = absoluteAmountStrike.toString().split(/[.,]/)[1]) == null ? void 0 : _a.substring(0, 2)) || "");
|
|
5675
5995
|
cents = cents && cents.length === 1 && `${cents}0` || cents;
|
|
5676
5996
|
const centsDisplayed = !hideCents && `\u20AC${cents}` || "\u20AC";
|
|
5677
|
-
oldAmountComponent = /* @__PURE__ */
|
|
5997
|
+
oldAmountComponent = /* @__PURE__ */ React78.createElement("span", { "aria-hidden": "true", className: classesStrike, ...others }, /* @__PURE__ */ React78.createElement("span", null, `${wholeStrike}`), /* @__PURE__ */ React78.createElement("span", { className: hashClass(styled, (0, import_clsx64.default)("price-details")) }, /* @__PURE__ */ React78.createElement("span", { className: hashClass(styled, (0, import_clsx64.default)("cents")) }, centsDisplayed === "\u20AC" ? /* @__PURE__ */ React78.createElement(React78.Fragment, null, "\xA0", centsDisplayed) : centsDisplayed, mention && /* @__PURE__ */ React78.createElement("sup", null, mention)), period && /* @__PURE__ */ React78.createElement("span", { className: hashClass(styled, (0, import_clsx64.default)("period")) }, "/", period)));
|
|
5678
5998
|
}
|
|
5679
5999
|
if (amount !== void 0) {
|
|
5680
6000
|
const isNegative = amount < 0;
|
|
@@ -5685,27 +6005,27 @@ var Price = React73.forwardRef(
|
|
|
5685
6005
|
cents = cents && cents.length === 1 && `${cents}0` || cents;
|
|
5686
6006
|
const centsDisplayed = !hideCents && `\u20AC${cents}` || "\u20AC";
|
|
5687
6007
|
const dataPrice = `${whole}${!hideCents && cents ? `.${cents}` : ""}`;
|
|
5688
|
-
amountComponent = /* @__PURE__ */
|
|
6008
|
+
amountComponent = /* @__PURE__ */ React78.createElement("span", { "aria-hidden": "true", "aria-label": accessibilityLabel, className: classes, "data-price": dataPrice, ...others }, /* @__PURE__ */ React78.createElement("span", null, `${whole}`), /* @__PURE__ */ React78.createElement("span", { className: hashClass(styled, (0, import_clsx64.default)("price-details")) }, /* @__PURE__ */ React78.createElement("span", { className: hashClass(styled, (0, import_clsx64.default)("cents")) }, centsDisplayed === "\u20AC" ? /* @__PURE__ */ React78.createElement(React78.Fragment, null, "\xA0", centsDisplayed) : centsDisplayed, mention && /* @__PURE__ */ React78.createElement("sup", null, mention)), period && /* @__PURE__ */ React78.createElement("span", { className: hashClass(styled, (0, import_clsx64.default)("period")) }, "/", period)));
|
|
5689
6009
|
}
|
|
5690
|
-
return /* @__PURE__ */
|
|
6010
|
+
return /* @__PURE__ */ React78.createElement(
|
|
5691
6011
|
"div",
|
|
5692
6012
|
{
|
|
5693
6013
|
ref,
|
|
5694
6014
|
id,
|
|
5695
6015
|
className: hashClass(
|
|
5696
6016
|
styled,
|
|
5697
|
-
(0,
|
|
6017
|
+
(0, import_clsx64.default)(
|
|
5698
6018
|
"price-container",
|
|
5699
6019
|
is(`level-${level || "1"}`),
|
|
5700
6020
|
align == "ALIGNED_START" /* ALIGNED_START */ && is("justified-start") || align == "ALIGNED_CENTER" /* ALIGNED_CENTER */ && is("justified-center") || align == "ALIGNED_END" /* ALIGNED_END */ && is("justified-end") || ""
|
|
5701
6021
|
)
|
|
5702
6022
|
)
|
|
5703
6023
|
},
|
|
5704
|
-
overline && /* @__PURE__ */
|
|
6024
|
+
overline && /* @__PURE__ */ React78.createElement("p", { className: hashClass(styled, (0, import_clsx64.default)("overline")) }, overline),
|
|
5705
6025
|
oldAmountComponent,
|
|
5706
6026
|
amountComponent,
|
|
5707
6027
|
tagAmountComponent,
|
|
5708
|
-
accessibilityLabel && /* @__PURE__ */
|
|
6028
|
+
accessibilityLabel && /* @__PURE__ */ React78.createElement("p", { className: hashClass(styled, (0, import_clsx64.default)("sr-only")) }, accessibilityLabel)
|
|
5709
6029
|
);
|
|
5710
6030
|
}
|
|
5711
6031
|
);
|
|
@@ -5725,9 +6045,9 @@ var PriceLevel = /* @__PURE__ */ ((PriceLevel2) => {
|
|
|
5725
6045
|
})(PriceLevel || {});
|
|
5726
6046
|
|
|
5727
6047
|
// components/product-tour/ProductTour.tsx
|
|
5728
|
-
var
|
|
5729
|
-
var
|
|
5730
|
-
var ProductTour =
|
|
6048
|
+
var import_clsx65 = __toESM(require("clsx"));
|
|
6049
|
+
var import_react42 = __toESM(require("react"));
|
|
6050
|
+
var ProductTour = import_react42.default.forwardRef(({
|
|
5731
6051
|
children,
|
|
5732
6052
|
className,
|
|
5733
6053
|
id,
|
|
@@ -5739,16 +6059,16 @@ var ProductTour = import_react41.default.forwardRef(({
|
|
|
5739
6059
|
avatarDirection,
|
|
5740
6060
|
...others
|
|
5741
6061
|
}, ref) => {
|
|
5742
|
-
const [display, setDisplay] = (0,
|
|
6062
|
+
const [display, setDisplay] = (0, import_react42.useState)(active || false);
|
|
5743
6063
|
const { styled } = useTrilogyContext();
|
|
5744
|
-
(0,
|
|
6064
|
+
(0, import_react42.useEffect)(() => {
|
|
5745
6065
|
setDisplay(active || false);
|
|
5746
6066
|
}, [active]);
|
|
5747
6067
|
const classes = hashClass(
|
|
5748
6068
|
styled,
|
|
5749
|
-
(0,
|
|
6069
|
+
(0, import_clsx65.default)("product-tour", display && is("active"), avatarDirection && has(`icon-${avatarDirection}`), className)
|
|
5750
6070
|
);
|
|
5751
|
-
return /* @__PURE__ */
|
|
6071
|
+
return /* @__PURE__ */ import_react42.default.createElement("div", { ref, id, className: classes, ...others }, arrowDirection && /* @__PURE__ */ import_react42.default.createElement("div", { className: hashClass(styled, (0, import_clsx65.default)("arrow", is(arrowDirection), arrowAlign && is(arrowAlign))) }), avatarSrc && /* @__PURE__ */ import_react42.default.createElement("span", { className: hashClass(styled, (0, import_clsx65.default)("icon", is("medium"))) }, /* @__PURE__ */ import_react42.default.createElement("img", { className: hashClass(styled, (0, import_clsx65.default)(is("rounded"))), src: avatarSrc })), closeable && /* @__PURE__ */ import_react42.default.createElement("div", { style: { cursor: "pointer" }, onClick: () => setDisplay(!display) }, /* @__PURE__ */ import_react42.default.createElement(Icon_default, { size: "small" /* SMALL */, name: "tri-times" /* TIMES */, className: "close" })), /* @__PURE__ */ import_react42.default.createElement("div", { className: hashClass(styled, (0, import_clsx65.default)("product-tour-content")) }, children));
|
|
5752
6072
|
});
|
|
5753
6073
|
ProductTour.displayName = "ProductTour" /* ProductTour */;
|
|
5754
6074
|
var ProductTour_default = ProductTour;
|
|
@@ -5779,9 +6099,9 @@ var AvatarDirection = /* @__PURE__ */ ((AvatarDirection2) => {
|
|
|
5779
6099
|
})(AvatarDirection || {});
|
|
5780
6100
|
|
|
5781
6101
|
// components/progress/Progress.tsx
|
|
5782
|
-
var
|
|
5783
|
-
var
|
|
5784
|
-
var Progress =
|
|
6102
|
+
var import_clsx66 = __toESM(require("clsx"));
|
|
6103
|
+
var React80 = __toESM(require("react"));
|
|
6104
|
+
var Progress = React80.forwardRef(({
|
|
5785
6105
|
children,
|
|
5786
6106
|
className,
|
|
5787
6107
|
id,
|
|
@@ -5798,7 +6118,7 @@ var Progress = React75.forwardRef(({
|
|
|
5798
6118
|
const { styled } = useTrilogyContext();
|
|
5799
6119
|
const classes = hashClass(
|
|
5800
6120
|
styled,
|
|
5801
|
-
(0,
|
|
6121
|
+
(0, import_clsx66.default)(
|
|
5802
6122
|
"progress",
|
|
5803
6123
|
status && is(getStatusClassName(status)),
|
|
5804
6124
|
!status && is("primary"),
|
|
@@ -5806,26 +6126,26 @@ var Progress = React75.forwardRef(({
|
|
|
5806
6126
|
className
|
|
5807
6127
|
)
|
|
5808
6128
|
);
|
|
5809
|
-
const stackedClasses = hashClass(styled, (0,
|
|
6129
|
+
const stackedClasses = hashClass(styled, (0, import_clsx66.default)("progress", stacked && is("stacked"), className));
|
|
5810
6130
|
if (children && stacked) {
|
|
5811
|
-
return /* @__PURE__ */
|
|
6131
|
+
return /* @__PURE__ */ React80.createElement("div", { className: stackedClasses, ...others }, children);
|
|
5812
6132
|
}
|
|
5813
|
-
return /* @__PURE__ */
|
|
6133
|
+
return /* @__PURE__ */ React80.createElement("div", { ref, className: "progress-container" }, /* @__PURE__ */ React80.createElement("progress", { id, className: classes, value, max, ...others }, value), (legendStart || legendCenter || legendEnd) && /* @__PURE__ */ React80.createElement("div", { className: "progress-legends" }, legendStart && /* @__PURE__ */ React80.createElement("div", { className: "progress-legend-start" }, /* @__PURE__ */ React80.createElement(Text_default, null, legendStart)), legendCenter && /* @__PURE__ */ React80.createElement("div", { className: "progress-legend-center" }, /* @__PURE__ */ React80.createElement(Text_default, null, legendCenter)), legendEnd && /* @__PURE__ */ React80.createElement("div", { className: "progress-legend-end" }, /* @__PURE__ */ React80.createElement(Text_default, null, legendEnd))));
|
|
5814
6134
|
});
|
|
5815
6135
|
Progress.displayName = "Progress" /* Progress */;
|
|
5816
6136
|
var Progress_default = Progress;
|
|
5817
6137
|
|
|
5818
6138
|
// components/progress/item/ProgressItem.tsx
|
|
5819
|
-
var
|
|
5820
|
-
var
|
|
5821
|
-
var ProgressItem =
|
|
6139
|
+
var import_clsx67 = __toESM(require("clsx"));
|
|
6140
|
+
var import_react43 = __toESM(require("react"));
|
|
6141
|
+
var ProgressItem = import_react43.default.forwardRef(
|
|
5822
6142
|
({ className, percent, maxPercent = 100, minPercent = 0, status, accessibilityLabel, ...others }, ref) => {
|
|
5823
6143
|
const { styled } = useTrilogyContext();
|
|
5824
6144
|
const classes = hashClass(
|
|
5825
6145
|
styled,
|
|
5826
|
-
(0,
|
|
6146
|
+
(0, import_clsx67.default)("progress-bar", status && is(getStatusClassName(status)), !status && is("primary"), className)
|
|
5827
6147
|
);
|
|
5828
|
-
return /* @__PURE__ */
|
|
6148
|
+
return /* @__PURE__ */ import_react43.default.createElement(
|
|
5829
6149
|
"div",
|
|
5830
6150
|
{
|
|
5831
6151
|
ref,
|
|
@@ -5848,9 +6168,9 @@ var ProgressItem_default = ProgressItem;
|
|
|
5848
6168
|
var item_default3 = ProgressItem_default;
|
|
5849
6169
|
|
|
5850
6170
|
// components/progress/radial/ProgressRadial.tsx
|
|
5851
|
-
var
|
|
5852
|
-
var
|
|
5853
|
-
var ProgressRadial =
|
|
6171
|
+
var import_react44 = __toESM(require("react"));
|
|
6172
|
+
var import_clsx68 = __toESM(require("clsx"));
|
|
6173
|
+
var ProgressRadial = import_react44.default.forwardRef(({
|
|
5854
6174
|
children,
|
|
5855
6175
|
value = 0,
|
|
5856
6176
|
secondValue = 0,
|
|
@@ -5863,11 +6183,11 @@ var ProgressRadial = import_react43.default.forwardRef(({
|
|
|
5863
6183
|
...others
|
|
5864
6184
|
}, ref) => {
|
|
5865
6185
|
const { styled } = useTrilogyContext();
|
|
5866
|
-
const [firstProgressCurrentValue, setFirstProgressCurrentValue] = (0,
|
|
5867
|
-
const [secondProgressCurrentValue, setSecondProgressCurrentValue] = (0,
|
|
5868
|
-
const classes = hashClass(styled, (0,
|
|
5869
|
-
const classesContent = hashClass(styled, (0,
|
|
5870
|
-
const progressRadialRef = (0,
|
|
6186
|
+
const [firstProgressCurrentValue, setFirstProgressCurrentValue] = (0, import_react44.useState)(0);
|
|
6187
|
+
const [secondProgressCurrentValue, setSecondProgressCurrentValue] = (0, import_react44.useState)(0);
|
|
6188
|
+
const classes = hashClass(styled, (0, import_clsx68.default)("progress-radial", skeleton && is("loading"), small && is("small"), className));
|
|
6189
|
+
const classesContent = hashClass(styled, (0, import_clsx68.default)("progress-radial-content"));
|
|
6190
|
+
const progressRadialRef = (0, import_react44.useRef)(null);
|
|
5871
6191
|
const updateBackgroundStyle = (firstValue, secondValue2) => {
|
|
5872
6192
|
const progressRadial = progressRadialRef.current;
|
|
5873
6193
|
if (!progressRadial) {
|
|
@@ -5883,7 +6203,7 @@ var ProgressRadial = import_react43.default.forwardRef(({
|
|
|
5883
6203
|
)} ${secondProgressStartDegree}deg ${secondProgressStartDegree + secondProgressDegree}deg, ${getColorStyle("MAIN_FADE")} ${secondProgressStartDegree + secondProgressDegree}deg 360deg)`;
|
|
5884
6204
|
progressRadial.style.background = styleBackground;
|
|
5885
6205
|
};
|
|
5886
|
-
(0,
|
|
6206
|
+
(0, import_react44.useEffect)(() => {
|
|
5887
6207
|
let animationFrameId;
|
|
5888
6208
|
setFirstProgressCurrentValue(0);
|
|
5889
6209
|
setSecondProgressCurrentValue(0);
|
|
@@ -5900,10 +6220,10 @@ var ProgressRadial = import_react43.default.forwardRef(({
|
|
|
5900
6220
|
animationFrameId = requestAnimationFrame(frame);
|
|
5901
6221
|
return () => cancelAnimationFrame(animationFrameId);
|
|
5902
6222
|
}, [value, secondValue]);
|
|
5903
|
-
(0,
|
|
6223
|
+
(0, import_react44.useEffect)(() => {
|
|
5904
6224
|
updateBackgroundStyle(firstProgressCurrentValue, secondProgressCurrentValue);
|
|
5905
6225
|
}, [firstProgressCurrentValue, secondProgressCurrentValue]);
|
|
5906
|
-
return /* @__PURE__ */
|
|
6226
|
+
return /* @__PURE__ */ import_react44.default.createElement("div", { id, ...others, className: classes, ref: progressRadialRef }, /* @__PURE__ */ import_react44.default.createElement("div", { ref, className: classesContent }, label && /* @__PURE__ */ import_react44.default.createElement(Title_default, { level: 2 /* TWO */, marginless: true }, label), description && /* @__PURE__ */ import_react44.default.createElement(Text_default, { level: 1 /* ONE */, marginless: true }, description), !label && !description && children));
|
|
5907
6227
|
});
|
|
5908
6228
|
ProgressRadial.displayName = "ProgressRadial" /* ProgressRadial */;
|
|
5909
6229
|
var ProgressRadial_default = ProgressRadial;
|
|
@@ -5912,23 +6232,23 @@ var ProgressRadial_default = ProgressRadial;
|
|
|
5912
6232
|
var radial_default = ProgressRadial_default;
|
|
5913
6233
|
|
|
5914
6234
|
// components/progress/radial/item/ProgressRadialtem.tsx
|
|
5915
|
-
var
|
|
5916
|
-
var
|
|
6235
|
+
var import_clsx69 = __toESM(require("clsx"));
|
|
6236
|
+
var React83 = __toESM(require("react"));
|
|
5917
6237
|
var ProgressRadialItem = ({ color, className, id }) => {
|
|
5918
6238
|
const { styled } = useTrilogyContext();
|
|
5919
|
-
const classes = hashClass(styled, (0,
|
|
5920
|
-
return /* @__PURE__ */
|
|
6239
|
+
const classes = hashClass(styled, (0, import_clsx69.default)(`progress-circle-slice progress-circle-background-${color}`, className));
|
|
6240
|
+
return /* @__PURE__ */ React83.createElement("div", { id, className: classes });
|
|
5921
6241
|
};
|
|
5922
6242
|
var ProgressRadialtem_default = ProgressRadialItem;
|
|
5923
6243
|
|
|
5924
6244
|
// components/radio/list/RadioList.tsx
|
|
5925
|
-
var
|
|
5926
|
-
var
|
|
5927
|
-
var RadioList =
|
|
6245
|
+
var import_clsx70 = __toESM(require("clsx"));
|
|
6246
|
+
var React84 = __toESM(require("react"));
|
|
6247
|
+
var RadioList = React84.forwardRef(
|
|
5928
6248
|
({ className, id, align, horizontalMobile, verticalDesktop, accessibilityLabelledBy, children, label, ...others }, ref) => {
|
|
5929
6249
|
const { styled } = useTrilogyContext();
|
|
5930
6250
|
const groupLabelClasses = hashClass(styled, "group-label");
|
|
5931
|
-
return /* @__PURE__ */
|
|
6251
|
+
return /* @__PURE__ */ React84.createElement(React84.Fragment, null, label && /* @__PURE__ */ React84.createElement("p", { className: groupLabelClasses }, label, isRequiredChild(children) && /* @__PURE__ */ React84.createElement(Text_default, { markup: "span" /* SPAN */, typo: "has-text-error" /* TEXT_ERROR */ }, " ", "*")), /* @__PURE__ */ React84.createElement(
|
|
5932
6252
|
"div",
|
|
5933
6253
|
{
|
|
5934
6254
|
ref,
|
|
@@ -5938,7 +6258,7 @@ var RadioList = React79.forwardRef(
|
|
|
5938
6258
|
"aria-required": isRequiredChild(children) ? "true" : void 0,
|
|
5939
6259
|
className: hashClass(
|
|
5940
6260
|
styled,
|
|
5941
|
-
(0,
|
|
6261
|
+
(0, import_clsx70.default)(
|
|
5942
6262
|
"radios",
|
|
5943
6263
|
className,
|
|
5944
6264
|
align && is(getJustifiedClassName(align)),
|
|
@@ -5956,54 +6276,46 @@ RadioList.displayName = "RadioList" /* RadioList */;
|
|
|
5956
6276
|
var RadioList_default = RadioList;
|
|
5957
6277
|
|
|
5958
6278
|
// components/radio/Radio.tsx
|
|
5959
|
-
var
|
|
5960
|
-
var
|
|
5961
|
-
var Radio =
|
|
5962
|
-
checked,
|
|
5963
|
-
|
|
5964
|
-
|
|
5965
|
-
|
|
5966
|
-
|
|
5967
|
-
|
|
5968
|
-
|
|
5969
|
-
|
|
5970
|
-
|
|
5971
|
-
|
|
5972
|
-
|
|
5973
|
-
|
|
5974
|
-
|
|
5975
|
-
|
|
5976
|
-
|
|
5977
|
-
|
|
5978
|
-
|
|
5979
|
-
|
|
5980
|
-
|
|
5981
|
-
|
|
5982
|
-
|
|
5983
|
-
|
|
5984
|
-
|
|
5985
|
-
|
|
5986
|
-
|
|
5987
|
-
|
|
5988
|
-
|
|
5989
|
-
|
|
5990
|
-
|
|
5991
|
-
|
|
5992
|
-
radioChecked: e.target.checked
|
|
5993
|
-
});
|
|
5994
|
-
}
|
|
5995
|
-
},
|
|
5996
|
-
...others
|
|
5997
|
-
}
|
|
5998
|
-
), /* @__PURE__ */ import_react44.default.createElement("label", { htmlFor: id, className: hashClass(styled, (0, import_clsx67.default)("radio-label")) }, label));
|
|
5999
|
-
});
|
|
6279
|
+
var import_clsx71 = __toESM(require("clsx"));
|
|
6280
|
+
var import_react45 = __toESM(require("react"));
|
|
6281
|
+
var Radio = import_react45.default.forwardRef(
|
|
6282
|
+
({ checked, className, disabled, readonly, id = import_react45.default.useId(), label, onChange, name, value, required, ...others }, ref) => {
|
|
6283
|
+
const { styled } = useTrilogyContext();
|
|
6284
|
+
return /* @__PURE__ */ import_react45.default.createElement("div", { ref, className: hashClass(styled, (0, import_clsx71.default)("radio", className)) }, /* @__PURE__ */ import_react45.default.createElement(
|
|
6285
|
+
"input",
|
|
6286
|
+
{
|
|
6287
|
+
type: "radio",
|
|
6288
|
+
readOnly: readonly,
|
|
6289
|
+
id,
|
|
6290
|
+
disabled,
|
|
6291
|
+
name,
|
|
6292
|
+
value,
|
|
6293
|
+
checked,
|
|
6294
|
+
required,
|
|
6295
|
+
onChange: (e) => {
|
|
6296
|
+
if (onChange && !disabled && !readonly) {
|
|
6297
|
+
onChange(
|
|
6298
|
+
Object.assign(e, {
|
|
6299
|
+
radioId: e.target.id,
|
|
6300
|
+
radioValue: e.target.value,
|
|
6301
|
+
radioName: e.target.name,
|
|
6302
|
+
radioChecked: e.target.checked
|
|
6303
|
+
})
|
|
6304
|
+
);
|
|
6305
|
+
}
|
|
6306
|
+
},
|
|
6307
|
+
...others
|
|
6308
|
+
}
|
|
6309
|
+
), /* @__PURE__ */ import_react45.default.createElement("label", { htmlFor: id, className: hashClass(styled, (0, import_clsx71.default)("radio-label")) }, label));
|
|
6310
|
+
}
|
|
6311
|
+
);
|
|
6000
6312
|
Radio.displayName = "Radio" /* Radio */;
|
|
6001
6313
|
var Radio_default = Radio;
|
|
6002
6314
|
|
|
6003
6315
|
// components/radio/tiles/RadioTiles.tsx
|
|
6004
|
-
var
|
|
6005
|
-
var
|
|
6006
|
-
var RadioTiles =
|
|
6316
|
+
var import_clsx72 = __toESM(require("clsx"));
|
|
6317
|
+
var React86 = __toESM(require("react"));
|
|
6318
|
+
var RadioTiles = React86.forwardRef(({ id, className, children, align, verticalAlign, accessibilityLabelledBy, ...others }, ref) => {
|
|
6007
6319
|
const { styled } = useTrilogyContext();
|
|
6008
6320
|
let alignClass = null;
|
|
6009
6321
|
if (align) {
|
|
@@ -6013,7 +6325,7 @@ var RadioTiles = React81.forwardRef(({ id, className, children, align, verticalA
|
|
|
6013
6325
|
if (verticalAlign) {
|
|
6014
6326
|
verticalAlignClass = getAlignClassName(verticalAlign) === "aligned-start" && is("aligned-start") || getAlignClassName(verticalAlign) === "aligned-center" && is("aligned-center") || getAlignClassName(verticalAlign) === "aligned-end" && is("aligned-end") || getAlignClassName(verticalAlign) === "aligned-stretch" && is("aligned-stretch") || null;
|
|
6015
6327
|
}
|
|
6016
|
-
return /* @__PURE__ */
|
|
6328
|
+
return /* @__PURE__ */ React86.createElement(
|
|
6017
6329
|
"div",
|
|
6018
6330
|
{
|
|
6019
6331
|
ref,
|
|
@@ -6023,7 +6335,7 @@ var RadioTiles = React81.forwardRef(({ id, className, children, align, verticalA
|
|
|
6023
6335
|
"aria-required": isRequiredChild(children) ? "true" : void 0,
|
|
6024
6336
|
className: hashClass(
|
|
6025
6337
|
styled,
|
|
6026
|
-
(0,
|
|
6338
|
+
(0, import_clsx72.default)("radio-tiles", className, align && alignClass, verticalAlign && verticalAlignClass)
|
|
6027
6339
|
),
|
|
6028
6340
|
...others
|
|
6029
6341
|
},
|
|
@@ -6034,62 +6346,66 @@ RadioTiles.displayName = "RadioTiles" /* RadioTiles */;
|
|
|
6034
6346
|
var RadioTiles_default = RadioTiles;
|
|
6035
6347
|
|
|
6036
6348
|
// components/radio/tiles/tile/RadioTile.tsx
|
|
6037
|
-
var
|
|
6038
|
-
var
|
|
6039
|
-
var RadioTile =
|
|
6040
|
-
|
|
6041
|
-
|
|
6042
|
-
|
|
6043
|
-
|
|
6044
|
-
|
|
6045
|
-
|
|
6046
|
-
|
|
6047
|
-
|
|
6048
|
-
|
|
6049
|
-
|
|
6050
|
-
|
|
6051
|
-
|
|
6052
|
-
|
|
6053
|
-
|
|
6054
|
-
|
|
6055
|
-
|
|
6056
|
-
|
|
6057
|
-
|
|
6058
|
-
|
|
6059
|
-
"
|
|
6060
|
-
|
|
6061
|
-
|
|
6062
|
-
|
|
6063
|
-
|
|
6064
|
-
|
|
6065
|
-
|
|
6066
|
-
|
|
6067
|
-
|
|
6068
|
-
|
|
6069
|
-
|
|
6070
|
-
|
|
6071
|
-
onChange
|
|
6072
|
-
|
|
6073
|
-
|
|
6074
|
-
|
|
6075
|
-
|
|
6076
|
-
|
|
6077
|
-
|
|
6078
|
-
|
|
6079
|
-
|
|
6080
|
-
|
|
6081
|
-
|
|
6082
|
-
|
|
6349
|
+
var import_clsx73 = __toESM(require("clsx"));
|
|
6350
|
+
var import_react46 = __toESM(require("react"));
|
|
6351
|
+
var RadioTile = import_react46.default.forwardRef(
|
|
6352
|
+
({
|
|
6353
|
+
checked,
|
|
6354
|
+
className,
|
|
6355
|
+
disabled,
|
|
6356
|
+
readonly,
|
|
6357
|
+
id = import_react46.default.useId(),
|
|
6358
|
+
label,
|
|
6359
|
+
onChange,
|
|
6360
|
+
name,
|
|
6361
|
+
value,
|
|
6362
|
+
description,
|
|
6363
|
+
icon,
|
|
6364
|
+
horizontal,
|
|
6365
|
+
required,
|
|
6366
|
+
sticker,
|
|
6367
|
+
stickerVariant = "ACCENT" /* ACCENT */,
|
|
6368
|
+
...others
|
|
6369
|
+
}, ref) => {
|
|
6370
|
+
const { styled } = useTrilogyContext();
|
|
6371
|
+
return /* @__PURE__ */ import_react46.default.createElement("div", { ref, className: hashClass(styled, (0, import_clsx73.default)("radio-tile", horizontal && is("horizontal"), className)) }, /* @__PURE__ */ import_react46.default.createElement(
|
|
6372
|
+
"input",
|
|
6373
|
+
{
|
|
6374
|
+
type: "radio",
|
|
6375
|
+
readOnly: readonly,
|
|
6376
|
+
id,
|
|
6377
|
+
disabled,
|
|
6378
|
+
name,
|
|
6379
|
+
value,
|
|
6380
|
+
checked,
|
|
6381
|
+
required,
|
|
6382
|
+
onChange: (e) => {
|
|
6383
|
+
if (onChange && !disabled && !readonly) {
|
|
6384
|
+
onChange(
|
|
6385
|
+
Object.assign(e, {
|
|
6386
|
+
radioId: e.target.id,
|
|
6387
|
+
radioValue: e.target.value,
|
|
6388
|
+
radioName: e.target.name,
|
|
6389
|
+
radioChecked: e.target.checked
|
|
6390
|
+
})
|
|
6391
|
+
);
|
|
6392
|
+
}
|
|
6393
|
+
},
|
|
6394
|
+
...others
|
|
6395
|
+
}
|
|
6396
|
+
), /* @__PURE__ */ import_react46.default.createElement("label", { htmlFor: id, className: hashClass(styled, (0, import_clsx73.default)("radio-label")) }, icon && /* @__PURE__ */ import_react46.default.createElement(Icon_default, { name: icon, size: "medium" /* MEDIUM */ }), horizontal ? /* @__PURE__ */ import_react46.default.createElement("span", null, /* @__PURE__ */ import_react46.default.createElement("span", { className: hashClass(styled, (0, import_clsx73.default)("radio-title")) }, label), description && /* @__PURE__ */ import_react46.default.createElement("span", { className: hashClass(styled, (0, import_clsx73.default)("radio-description")) }, description)) : /* @__PURE__ */ import_react46.default.createElement(import_react46.default.Fragment, null, /* @__PURE__ */ import_react46.default.createElement("span", { className: hashClass(styled, (0, import_clsx73.default)("radio-title")) }, label), description && /* @__PURE__ */ import_react46.default.createElement("span", { className: hashClass(styled, (0, import_clsx73.default)("radio-description")) }, description))), sticker && /* @__PURE__ */ import_react46.default.createElement(Sticker_default, { label: sticker, variant: stickerVariant, className: "radio-sticker", small: true }));
|
|
6397
|
+
}
|
|
6398
|
+
);
|
|
6083
6399
|
RadioTile.displayName = "RadioTile" /* RadioTile */;
|
|
6084
6400
|
var RadioTile_default = RadioTile;
|
|
6085
6401
|
|
|
6086
6402
|
// components/range/Range.tsx
|
|
6087
|
-
var
|
|
6088
|
-
var
|
|
6089
|
-
var Range =
|
|
6403
|
+
var import_clsx74 = __toESM(require("clsx"));
|
|
6404
|
+
var React88 = __toESM(require("react"));
|
|
6405
|
+
var Range = React88.forwardRef(
|
|
6090
6406
|
({
|
|
6091
6407
|
className,
|
|
6092
|
-
id =
|
|
6408
|
+
id = React88.useId(),
|
|
6093
6409
|
min,
|
|
6094
6410
|
max,
|
|
6095
6411
|
label,
|
|
@@ -6105,37 +6421,37 @@ var Range = React83.forwardRef(
|
|
|
6105
6421
|
value
|
|
6106
6422
|
}, ref) => {
|
|
6107
6423
|
const { styled } = useTrilogyContext();
|
|
6108
|
-
const refTrack =
|
|
6109
|
-
const [cursorMin, setCursorMin] =
|
|
6110
|
-
const [cursorMax, setCursorMax] =
|
|
6111
|
-
|
|
6424
|
+
const refTrack = React88.useRef(null);
|
|
6425
|
+
const [cursorMin, setCursorMin] = React88.useState(valueMin != null ? valueMin : 0);
|
|
6426
|
+
const [cursorMax, setCursorMax] = React88.useState(simple ? value || 0 : valueMax != null ? valueMax : max);
|
|
6427
|
+
React88.useEffect(() => {
|
|
6112
6428
|
if (refTrack.current) {
|
|
6113
6429
|
const track = refTrack.current;
|
|
6114
6430
|
track.style.background = `linear-gradient(to right, ${getColorStyle("MAIN_FADE" /* MAIN_FADE */)} ${cursorMin / max * 100}% , ${getColorStyle("MAIN" /* MAIN */)} ${cursorMin / max * 100}% , ${getColorStyle("MAIN" /* MAIN */)} ${cursorMax / max * 100}%, ${getColorStyle("MAIN_FADE" /* MAIN_FADE */)} ${cursorMax / max * 100}%) `;
|
|
6115
6431
|
}
|
|
6116
6432
|
}, [cursorMin, cursorMax]);
|
|
6117
|
-
|
|
6433
|
+
React88.useEffect(() => {
|
|
6118
6434
|
setCursorMin(valueMin || 0);
|
|
6119
6435
|
}, [valueMin]);
|
|
6120
|
-
|
|
6436
|
+
React88.useEffect(() => {
|
|
6121
6437
|
if (!simple) setCursorMax(valueMax || max);
|
|
6122
6438
|
}, [valueMax, simple]);
|
|
6123
|
-
|
|
6439
|
+
React88.useEffect(() => {
|
|
6124
6440
|
if (simple && value !== void 0) setCursorMax(value);
|
|
6125
6441
|
}, [value, simple]);
|
|
6126
|
-
const handleChangeCursorMin =
|
|
6442
|
+
const handleChangeCursorMin = React88.useCallback(
|
|
6127
6443
|
(e) => {
|
|
6128
6444
|
if (Number(e.target.value) < cursorMax - gap) setCursorMin(Number(e.target.value));
|
|
6129
6445
|
},
|
|
6130
6446
|
[cursorMax, cursorMin]
|
|
6131
6447
|
);
|
|
6132
|
-
const handleChangeCursorMax =
|
|
6448
|
+
const handleChangeCursorMax = React88.useCallback(
|
|
6133
6449
|
(e) => {
|
|
6134
6450
|
if (Number(e.target.value) >= cursorMin + gap) setCursorMax(Number(e.target.value));
|
|
6135
6451
|
},
|
|
6136
6452
|
[cursorMax, cursorMin]
|
|
6137
6453
|
);
|
|
6138
|
-
const handleMouseUpMin =
|
|
6454
|
+
const handleMouseUpMin = React88.useCallback(() => {
|
|
6139
6455
|
if (onChangeMin) {
|
|
6140
6456
|
onChangeMin({
|
|
6141
6457
|
inputName: name,
|
|
@@ -6143,7 +6459,7 @@ var Range = React83.forwardRef(
|
|
|
6143
6459
|
});
|
|
6144
6460
|
}
|
|
6145
6461
|
}, [onChangeMin, name, cursorMin]);
|
|
6146
|
-
const handleMouseUpMax =
|
|
6462
|
+
const handleMouseUpMax = React88.useCallback(() => {
|
|
6147
6463
|
if (onChangeMax && !simple) {
|
|
6148
6464
|
onChangeMax({
|
|
6149
6465
|
inputName: name,
|
|
@@ -6157,10 +6473,10 @@ var Range = React83.forwardRef(
|
|
|
6157
6473
|
});
|
|
6158
6474
|
}
|
|
6159
6475
|
}, [onChangeMax, name, cursorMax, onChange, simple]);
|
|
6160
|
-
return /* @__PURE__ */
|
|
6476
|
+
return /* @__PURE__ */ React88.createElement("div", { ref, id, className: hashClass(styled, (0, import_clsx74.default)("range-container", className)) }, /* @__PURE__ */ React88.createElement("label", { className: hashClass(styled, (0, import_clsx74.default)("range-label")) }, label), /* @__PURE__ */ React88.createElement("div", { className: hashClass(styled, (0, import_clsx74.default)("range")) }, /* @__PURE__ */ React88.createElement("div", { ref: refTrack, className: hashClass(styled, (0, import_clsx74.default)("range-track")) }), !simple && /* @__PURE__ */ React88.createElement(
|
|
6161
6477
|
"input",
|
|
6162
6478
|
{
|
|
6163
|
-
className: hashClass(styled, (0,
|
|
6479
|
+
className: hashClass(styled, (0, import_clsx74.default)("range-cursor range-cursor-min")),
|
|
6164
6480
|
onTouchEnd: handleMouseUpMin,
|
|
6165
6481
|
onMouseUp: handleMouseUpMin,
|
|
6166
6482
|
onChange: handleChangeCursorMin,
|
|
@@ -6172,10 +6488,10 @@ var Range = React83.forwardRef(
|
|
|
6172
6488
|
id: `${id}-min`,
|
|
6173
6489
|
"aria-label": label
|
|
6174
6490
|
}
|
|
6175
|
-
), /* @__PURE__ */
|
|
6491
|
+
), /* @__PURE__ */ React88.createElement(
|
|
6176
6492
|
"input",
|
|
6177
6493
|
{
|
|
6178
|
-
className: hashClass(styled, (0,
|
|
6494
|
+
className: hashClass(styled, (0, import_clsx74.default)("range-cursor", !simple && "range-cursor-max")),
|
|
6179
6495
|
onTouchEnd: handleMouseUpMax,
|
|
6180
6496
|
onMouseUp: handleMouseUpMax,
|
|
6181
6497
|
onChange: handleChangeCursorMax,
|
|
@@ -6187,25 +6503,25 @@ var Range = React83.forwardRef(
|
|
|
6187
6503
|
id: `${id}-max`,
|
|
6188
6504
|
"aria-label": label
|
|
6189
6505
|
}
|
|
6190
|
-
)), /* @__PURE__ */
|
|
6506
|
+
)), /* @__PURE__ */ React88.createElement("div", { className: hashClass(styled, (0, import_clsx74.default)("range-values")) }, !simple && /* @__PURE__ */ React88.createElement("div", null, /* @__PURE__ */ React88.createElement("span", { className: hashClass(styled, (0, import_clsx74.default)("range-value-min")) }, cursorMin), unit && /* @__PURE__ */ React88.createElement("span", null, " ", unit)), /* @__PURE__ */ React88.createElement("div", null, /* @__PURE__ */ React88.createElement("span", { className: hashClass(styled, (0, import_clsx74.default)(simple ? "range-value" : "range-value-max")) }, cursorMax), unit && /* @__PURE__ */ React88.createElement("span", null, " ", unit))));
|
|
6191
6507
|
}
|
|
6192
6508
|
);
|
|
6193
6509
|
Range.displayName = "Range" /* Range */;
|
|
6194
6510
|
var Range_default = Range;
|
|
6195
6511
|
|
|
6196
6512
|
// components/rows/Rows.tsx
|
|
6197
|
-
var
|
|
6198
|
-
var
|
|
6199
|
-
var Rows =
|
|
6513
|
+
var import_clsx75 = __toESM(require("clsx"));
|
|
6514
|
+
var React89 = __toESM(require("react"));
|
|
6515
|
+
var Rows = React89.forwardRef(({ className, id, gap, ...others }, ref) => {
|
|
6200
6516
|
const { styled } = useTrilogyContext();
|
|
6201
|
-
return /* @__PURE__ */
|
|
6517
|
+
return /* @__PURE__ */ React89.createElement(
|
|
6202
6518
|
"div",
|
|
6203
6519
|
{
|
|
6204
6520
|
ref,
|
|
6205
6521
|
id,
|
|
6206
6522
|
className: hashClass(
|
|
6207
6523
|
styled,
|
|
6208
|
-
(0,
|
|
6524
|
+
(0, import_clsx75.default)("rows", gap && has(`gap-${gap}`), typeof gap !== "undefined" && gap === 0 && is("gapless"), className)
|
|
6209
6525
|
),
|
|
6210
6526
|
...others
|
|
6211
6527
|
}
|
|
@@ -6215,12 +6531,12 @@ Rows.displayName = "Rows" /* Rows */;
|
|
|
6215
6531
|
var Rows_default = Rows;
|
|
6216
6532
|
|
|
6217
6533
|
// components/rows/row/Row.tsx
|
|
6218
|
-
var
|
|
6219
|
-
var
|
|
6220
|
-
var Row =
|
|
6534
|
+
var import_clsx76 = __toESM(require("clsx"));
|
|
6535
|
+
var React90 = __toESM(require("react"));
|
|
6536
|
+
var Row = React90.forwardRef(({ className, id, narrow, ...others }, ref) => {
|
|
6221
6537
|
const { styled } = useTrilogyContext();
|
|
6222
|
-
const classes = hashClass(styled, (0,
|
|
6223
|
-
return /* @__PURE__ */
|
|
6538
|
+
const classes = hashClass(styled, (0, import_clsx76.default)("row", narrow && is("narrow"), className));
|
|
6539
|
+
return /* @__PURE__ */ React90.createElement("div", { ref, id, className: classes, ...others });
|
|
6224
6540
|
});
|
|
6225
6541
|
Row.displayName = "Row" /* Row */;
|
|
6226
6542
|
var Row_default = Row;
|
|
@@ -6229,9 +6545,9 @@ var Row_default = Row;
|
|
|
6229
6545
|
var row_default = Row_default;
|
|
6230
6546
|
|
|
6231
6547
|
// components/scroll-view/ScrollView.tsx
|
|
6232
|
-
var
|
|
6233
|
-
var
|
|
6234
|
-
var ScrollView =
|
|
6548
|
+
var import_clsx77 = __toESM(require("clsx"));
|
|
6549
|
+
var React91 = __toESM(require("react"));
|
|
6550
|
+
var ScrollView = React91.forwardRef(
|
|
6235
6551
|
({ id, scrollDirection, children }, ref) => {
|
|
6236
6552
|
const { styled } = useTrilogyContext();
|
|
6237
6553
|
const scrollDirectionClassName = () => {
|
|
@@ -6247,22 +6563,22 @@ var ScrollView = React86.forwardRef(
|
|
|
6247
6563
|
};
|
|
6248
6564
|
const classes = hashClass(
|
|
6249
6565
|
styled,
|
|
6250
|
-
(0,
|
|
6566
|
+
(0, import_clsx77.default)("scroll-view", scrollDirection && scrollDirectionClassName())
|
|
6251
6567
|
);
|
|
6252
|
-
return /* @__PURE__ */
|
|
6568
|
+
return /* @__PURE__ */ React91.createElement("div", { ref, className: classes, id }, children);
|
|
6253
6569
|
}
|
|
6254
6570
|
);
|
|
6255
6571
|
ScrollView.displayName = "ScrollView" /* ScrollView */;
|
|
6256
6572
|
var ScrollView_default = ScrollView;
|
|
6257
6573
|
|
|
6258
6574
|
// components/section/Section.tsx
|
|
6259
|
-
var
|
|
6260
|
-
var
|
|
6261
|
-
var Section =
|
|
6575
|
+
var import_clsx78 = __toESM(require("clsx"));
|
|
6576
|
+
var import_react47 = __toESM(require("react"));
|
|
6577
|
+
var Section = import_react47.default.forwardRef(({ className, id, skeleton, backgroundColor, backgroundSrc, inverted, ...others }, ref) => {
|
|
6262
6578
|
const { styled } = useTrilogyContext();
|
|
6263
6579
|
const _className = hashClass(
|
|
6264
6580
|
styled,
|
|
6265
|
-
(0,
|
|
6581
|
+
(0, import_clsx78.default)(
|
|
6266
6582
|
"section",
|
|
6267
6583
|
className,
|
|
6268
6584
|
backgroundColor && has(getBackgroundClassName(backgroundColor)),
|
|
@@ -6271,7 +6587,7 @@ var Section = import_react46.default.forwardRef(({ className, id, skeleton, back
|
|
|
6271
6587
|
skeleton && is("loading")
|
|
6272
6588
|
)
|
|
6273
6589
|
);
|
|
6274
|
-
return /* @__PURE__ */
|
|
6590
|
+
return /* @__PURE__ */ import_react47.default.createElement(
|
|
6275
6591
|
"section",
|
|
6276
6592
|
{
|
|
6277
6593
|
ref,
|
|
@@ -6288,27 +6604,27 @@ Section.displayName = "Section" /* Section */;
|
|
|
6288
6604
|
var Section_default = Section;
|
|
6289
6605
|
|
|
6290
6606
|
// components/segment-control/SegmentControl.tsx
|
|
6291
|
-
var
|
|
6292
|
-
var
|
|
6607
|
+
var import_clsx80 = __toESM(require("clsx"));
|
|
6608
|
+
var import_react49 = __toESM(require("react"));
|
|
6293
6609
|
|
|
6294
6610
|
// components/segment-control/item/SegmentControlItem.tsx
|
|
6295
|
-
var
|
|
6296
|
-
var
|
|
6297
|
-
var SegmentControlItem =
|
|
6611
|
+
var import_clsx79 = __toESM(require("clsx"));
|
|
6612
|
+
var import_react48 = __toESM(require("react"));
|
|
6613
|
+
var SegmentControlItem = import_react48.default.forwardRef(
|
|
6298
6614
|
({ active, onClick, disabled, className, id, children, ...others }, ref) => {
|
|
6299
|
-
const [activeItem, setActiveItem] = (0,
|
|
6615
|
+
const [activeItem, setActiveItem] = (0, import_react48.useState)(active || false);
|
|
6300
6616
|
const { styled } = useTrilogyContext();
|
|
6301
|
-
(0,
|
|
6617
|
+
(0, import_react48.useEffect)(() => {
|
|
6302
6618
|
setActiveItem(active || false);
|
|
6303
6619
|
}, [active]);
|
|
6304
|
-
return /* @__PURE__ */
|
|
6620
|
+
return /* @__PURE__ */ import_react48.default.createElement(
|
|
6305
6621
|
"button",
|
|
6306
6622
|
{
|
|
6307
6623
|
type: "button",
|
|
6308
6624
|
ref,
|
|
6309
6625
|
id,
|
|
6310
6626
|
disabled,
|
|
6311
|
-
className: hashClass(styled, (0,
|
|
6627
|
+
className: hashClass(styled, (0, import_clsx79.default)("segmented-control-item", className, { "is-active": activeItem })),
|
|
6312
6628
|
onClick: (e) => {
|
|
6313
6629
|
const target = e.target;
|
|
6314
6630
|
setActiveItem(active || false);
|
|
@@ -6330,10 +6646,10 @@ var SegmentControlItem_default = SegmentControlItem;
|
|
|
6330
6646
|
var item_default4 = SegmentControlItem_default;
|
|
6331
6647
|
|
|
6332
6648
|
// components/segment-control/SegmentControl.tsx
|
|
6333
|
-
var SegmentControl =
|
|
6649
|
+
var SegmentControl = import_react49.default.forwardRef(({ className, id, onClick, children, activeIndex, align, ...others }, ref) => {
|
|
6334
6650
|
const { styled } = useTrilogyContext();
|
|
6335
|
-
const classes = hashClass(styled, (0,
|
|
6336
|
-
const [activateIndex, setActivateIndex] = (0,
|
|
6651
|
+
const classes = hashClass(styled, (0, import_clsx80.default)("segmented-control", align && getJustifiedClassName(align), className));
|
|
6652
|
+
const [activateIndex, setActivateIndex] = (0, import_react49.useState)(activeIndex || 0);
|
|
6337
6653
|
const isActive = (index, childPropsActive) => {
|
|
6338
6654
|
if (typeof childPropsActive !== "undefined" && !activateIndex) {
|
|
6339
6655
|
return childPropsActive;
|
|
@@ -6346,10 +6662,10 @@ var SegmentControl = import_react48.default.forwardRef(({ className, id, onClick
|
|
|
6346
6662
|
setActivateIndex(index);
|
|
6347
6663
|
if (onClick) onClick(e);
|
|
6348
6664
|
};
|
|
6349
|
-
|
|
6665
|
+
import_react49.default.useEffect(() => {
|
|
6350
6666
|
setActivateIndex(activateIndex);
|
|
6351
6667
|
}, [activateIndex]);
|
|
6352
|
-
return /* @__PURE__ */
|
|
6668
|
+
return /* @__PURE__ */ import_react49.default.createElement("div", { ref, id, className: classes, ...others }, children && Array.isArray(children) && // eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
6353
6669
|
children.map((child, index) => {
|
|
6354
6670
|
const props = {
|
|
6355
6671
|
active: Boolean(isActive(index, child.props.active)) || false,
|
|
@@ -6364,7 +6680,7 @@ var SegmentControl = import_react48.default.forwardRef(({ className, id, onClick
|
|
|
6364
6680
|
}
|
|
6365
6681
|
}
|
|
6366
6682
|
};
|
|
6367
|
-
return child && typeof child.valueOf() === "string" ? /* @__PURE__ */
|
|
6683
|
+
return child && typeof child.valueOf() === "string" ? /* @__PURE__ */ import_react49.default.createElement(
|
|
6368
6684
|
item_default4,
|
|
6369
6685
|
{
|
|
6370
6686
|
disabled: props.disabled,
|
|
@@ -6373,23 +6689,23 @@ var SegmentControl = import_react48.default.forwardRef(({ className, id, onClick
|
|
|
6373
6689
|
onClick: (e) => onClick == null ? void 0 : onClick(e)
|
|
6374
6690
|
},
|
|
6375
6691
|
child
|
|
6376
|
-
) :
|
|
6692
|
+
) : import_react49.default.cloneElement(child, props);
|
|
6377
6693
|
}));
|
|
6378
6694
|
});
|
|
6379
6695
|
SegmentControl.displayName = "SegmentControl" /* SegmentControl */;
|
|
6380
6696
|
var SegmentControl_default = SegmentControl;
|
|
6381
6697
|
|
|
6382
6698
|
// components/skeleton/Skeleton.tsx
|
|
6383
|
-
var
|
|
6699
|
+
var import_react50 = __toESM(require("react"));
|
|
6384
6700
|
var Skeleton = () => {
|
|
6385
|
-
return /* @__PURE__ */
|
|
6701
|
+
return /* @__PURE__ */ import_react50.default.createElement("div", null);
|
|
6386
6702
|
};
|
|
6387
6703
|
var Skeleton_default = Skeleton;
|
|
6388
6704
|
|
|
6389
6705
|
// components/spacer/Spacer.tsx
|
|
6390
|
-
var
|
|
6391
|
-
var
|
|
6392
|
-
var Spacer =
|
|
6706
|
+
var import_clsx81 = __toESM(require("clsx"));
|
|
6707
|
+
var React96 = __toESM(require("react"));
|
|
6708
|
+
var Spacer = React96.forwardRef(({ size: size2, horizontal, className, id }, ref) => {
|
|
6393
6709
|
const { styled } = useTrilogyContext();
|
|
6394
6710
|
const styles = {
|
|
6395
6711
|
spacer: {
|
|
@@ -6397,25 +6713,25 @@ var Spacer = React91.forwardRef(({ size: size2, horizontal, className, id }, ref
|
|
|
6397
6713
|
marginTop: !horizontal ? `${size2}px` : "0px"
|
|
6398
6714
|
}
|
|
6399
6715
|
};
|
|
6400
|
-
const classes = hashClass(styled, (0,
|
|
6401
|
-
return /* @__PURE__ */
|
|
6716
|
+
const classes = hashClass(styled, (0, import_clsx81.default)(className));
|
|
6717
|
+
return /* @__PURE__ */ React96.createElement("div", { ref, id, style: styles.spacer, className: classes });
|
|
6402
6718
|
});
|
|
6403
6719
|
Spacer.displayName = "Spacer" /* Spacer */;
|
|
6404
6720
|
var Spacer_default = Spacer;
|
|
6405
6721
|
|
|
6406
6722
|
// components/stepper/Stepper.tsx
|
|
6407
|
-
var
|
|
6408
|
-
var
|
|
6409
|
-
var Stepper =
|
|
6723
|
+
var import_clsx82 = __toESM(require("clsx"));
|
|
6724
|
+
var React97 = __toESM(require("react"));
|
|
6725
|
+
var Stepper = React97.forwardRef(({ className, id, children, ...others }, ref) => {
|
|
6410
6726
|
const { styled } = useTrilogyContext();
|
|
6411
|
-
const classes = hashClass(styled, (0,
|
|
6412
|
-
const [currentStep, setCurrentStep] =
|
|
6413
|
-
const nbChild =
|
|
6727
|
+
const classes = hashClass(styled, (0, import_clsx82.default)("stepper-wrapper", className));
|
|
6728
|
+
const [currentStep, setCurrentStep] = React97.useState(1);
|
|
6729
|
+
const nbChild = React97.useMemo(() => {
|
|
6414
6730
|
if (children && Array.isArray(children)) return children.length;
|
|
6415
6731
|
if (children && !Array.isArray(children)) return 1;
|
|
6416
6732
|
return 0;
|
|
6417
6733
|
}, [children]);
|
|
6418
|
-
|
|
6734
|
+
React97.useEffect(() => {
|
|
6419
6735
|
if (children) {
|
|
6420
6736
|
if (Array.isArray(children)) {
|
|
6421
6737
|
let haveCurrentStep = false;
|
|
@@ -6432,20 +6748,20 @@ var Stepper = React92.forwardRef(({ className, id, children, ...others }, ref) =
|
|
|
6432
6748
|
}
|
|
6433
6749
|
}
|
|
6434
6750
|
}, [children]);
|
|
6435
|
-
return /* @__PURE__ */
|
|
6751
|
+
return /* @__PURE__ */ React97.createElement("div", { ref, id, className: classes, ...others }, children, /* @__PURE__ */ React97.createElement("div", { className: "step-count" }, /* @__PURE__ */ React97.createElement(Text_default, null, currentStep, "/", nbChild)));
|
|
6436
6752
|
});
|
|
6437
6753
|
Stepper.displayName = "Stepper" /* Stepper */;
|
|
6438
6754
|
var Stepper_default = Stepper;
|
|
6439
6755
|
|
|
6440
6756
|
// components/stepper/step/Step.tsx
|
|
6441
|
-
var
|
|
6442
|
-
var
|
|
6443
|
-
var Step =
|
|
6757
|
+
var import_clsx83 = __toESM(require("clsx"));
|
|
6758
|
+
var import_react51 = __toESM(require("react"));
|
|
6759
|
+
var Step = import_react51.default.forwardRef(({ className, id, active, current, done, label, iconName, error, ...others }, ref) => {
|
|
6444
6760
|
const { styled } = useTrilogyContext();
|
|
6445
|
-
const classesStepLabel = hashClass(styled, (0,
|
|
6761
|
+
const classesStepLabel = hashClass(styled, (0, import_clsx83.default)("step-label"));
|
|
6446
6762
|
const classes = hashClass(
|
|
6447
6763
|
styled,
|
|
6448
|
-
(0,
|
|
6764
|
+
(0, import_clsx83.default)(
|
|
6449
6765
|
"stepper-item",
|
|
6450
6766
|
active && is("active"),
|
|
6451
6767
|
current && is("current"),
|
|
@@ -6454,7 +6770,7 @@ var Step = import_react50.default.forwardRef(({ className, id, active, current,
|
|
|
6454
6770
|
className
|
|
6455
6771
|
)
|
|
6456
6772
|
);
|
|
6457
|
-
return /* @__PURE__ */
|
|
6773
|
+
return /* @__PURE__ */ import_react51.default.createElement("div", { ref, id, className: classes, "data-label": label, ...others }, /* @__PURE__ */ import_react51.default.createElement("div", { className: classesStepLabel }, label, !done && iconName && /* @__PURE__ */ import_react51.default.createElement(Icon_default, { name: iconName && iconName, className: "step-icon", size: "medium" /* MEDIUM */ })));
|
|
6458
6774
|
});
|
|
6459
6775
|
Step.displayName = "Step" /* Step */;
|
|
6460
6776
|
var Step_default = Step;
|
|
@@ -6472,11 +6788,11 @@ var StepMarkup = /* @__PURE__ */ ((StepMarkup2) => {
|
|
|
6472
6788
|
var step_default = Step_default;
|
|
6473
6789
|
|
|
6474
6790
|
// components/switch/Switch.tsx
|
|
6475
|
-
var
|
|
6476
|
-
var
|
|
6477
|
-
var Switch =
|
|
6791
|
+
var import_clsx84 = __toESM(require("clsx"));
|
|
6792
|
+
var import_react52 = __toESM(require("react"));
|
|
6793
|
+
var Switch = import_react52.default.forwardRef(({
|
|
6478
6794
|
className,
|
|
6479
|
-
id =
|
|
6795
|
+
id = import_react52.default.useId(),
|
|
6480
6796
|
label,
|
|
6481
6797
|
value,
|
|
6482
6798
|
checked,
|
|
@@ -6490,23 +6806,23 @@ var Switch = import_react51.default.forwardRef(({
|
|
|
6490
6806
|
fullWidth,
|
|
6491
6807
|
...others
|
|
6492
6808
|
}, ref) => {
|
|
6493
|
-
const [_checked, setChecked] = (0,
|
|
6809
|
+
const [_checked, setChecked] = (0, import_react52.useState)(checked || false);
|
|
6494
6810
|
const { styled } = useTrilogyContext();
|
|
6495
|
-
|
|
6811
|
+
import_react52.default.useEffect(() => {
|
|
6496
6812
|
setChecked(checked || false);
|
|
6497
6813
|
}, [checked]);
|
|
6498
|
-
(0,
|
|
6814
|
+
(0, import_react52.useEffect)(() => {
|
|
6499
6815
|
if (!readonly) {
|
|
6500
6816
|
setChecked(checked || false);
|
|
6501
6817
|
}
|
|
6502
6818
|
}, [checked, readonly]);
|
|
6503
|
-
return /* @__PURE__ */
|
|
6819
|
+
return /* @__PURE__ */ import_react52.default.createElement(
|
|
6504
6820
|
"div",
|
|
6505
6821
|
{
|
|
6506
6822
|
ref,
|
|
6507
|
-
className: hashClass(styled, (0,
|
|
6823
|
+
className: hashClass(styled, (0, import_clsx84.default)("switch", reversed && is("reversed"), fullWidth && is("fullwidth"), className))
|
|
6508
6824
|
},
|
|
6509
|
-
/* @__PURE__ */
|
|
6825
|
+
/* @__PURE__ */ import_react52.default.createElement(
|
|
6510
6826
|
"input",
|
|
6511
6827
|
{
|
|
6512
6828
|
onChange: (e) => {
|
|
@@ -6538,19 +6854,19 @@ var Switch = import_react51.default.forwardRef(({
|
|
|
6538
6854
|
id: `switch-${id}`,
|
|
6539
6855
|
type: "checkbox",
|
|
6540
6856
|
disabled,
|
|
6541
|
-
className: hashClass(styled, (0,
|
|
6857
|
+
className: hashClass(styled, (0, import_clsx84.default)(status && is(getStatusClassName(status)))),
|
|
6542
6858
|
...others
|
|
6543
6859
|
}
|
|
6544
6860
|
),
|
|
6545
|
-
/* @__PURE__ */
|
|
6861
|
+
/* @__PURE__ */ import_react52.default.createElement("label", { htmlFor: `switch-${id}` }, label)
|
|
6546
6862
|
);
|
|
6547
6863
|
});
|
|
6548
6864
|
Switch.displayName = "Switch" /* Switch */;
|
|
6549
6865
|
var Switch_default = Switch;
|
|
6550
6866
|
|
|
6551
6867
|
// components/table/Table.tsx
|
|
6552
|
-
var
|
|
6553
|
-
var
|
|
6868
|
+
var React100 = __toESM(require("react"));
|
|
6869
|
+
var import_clsx85 = __toESM(require("clsx"));
|
|
6554
6870
|
|
|
6555
6871
|
// components/table/TableProps.ts
|
|
6556
6872
|
var TableBorderEnum = /* @__PURE__ */ ((TableBorderEnum2) => {
|
|
@@ -6561,7 +6877,7 @@ var TableBorderEnum = /* @__PURE__ */ ((TableBorderEnum2) => {
|
|
|
6561
6877
|
})(TableBorderEnum || {});
|
|
6562
6878
|
|
|
6563
6879
|
// components/table/Table.tsx
|
|
6564
|
-
var Table =
|
|
6880
|
+
var Table = React100.forwardRef(({
|
|
6565
6881
|
className,
|
|
6566
6882
|
id,
|
|
6567
6883
|
fullwidth,
|
|
@@ -6573,7 +6889,7 @@ var Table = React95.forwardRef(({
|
|
|
6573
6889
|
const { styled } = useTrilogyContext();
|
|
6574
6890
|
const classes = hashClass(
|
|
6575
6891
|
styled,
|
|
6576
|
-
(0,
|
|
6892
|
+
(0, import_clsx85.default)(
|
|
6577
6893
|
"table",
|
|
6578
6894
|
fullwidth && is("fullwidth"),
|
|
6579
6895
|
border && border !== "lines" /* LINES */ && has(`border-${border}`),
|
|
@@ -6582,25 +6898,25 @@ var Table = React95.forwardRef(({
|
|
|
6582
6898
|
className
|
|
6583
6899
|
)
|
|
6584
6900
|
);
|
|
6585
|
-
return /* @__PURE__ */
|
|
6901
|
+
return /* @__PURE__ */ React100.createElement("table", { ref, id, className: classes, ...others });
|
|
6586
6902
|
});
|
|
6587
6903
|
Table.displayName = "Table" /* Table */;
|
|
6588
6904
|
var Table_default = Table;
|
|
6589
6905
|
|
|
6590
6906
|
// components/table/head/TableHead.tsx
|
|
6591
|
-
var
|
|
6592
|
-
var
|
|
6593
|
-
var TableHead =
|
|
6907
|
+
var React101 = __toESM(require("react"));
|
|
6908
|
+
var import_clsx86 = __toESM(require("clsx"));
|
|
6909
|
+
var TableHead = React101.forwardRef(({ className, id, color, backgroundColor, ...others }, ref) => {
|
|
6594
6910
|
const { styled } = useTrilogyContext();
|
|
6595
6911
|
const classes = hashClass(
|
|
6596
6912
|
styled,
|
|
6597
|
-
(0,
|
|
6913
|
+
(0, import_clsx86.default)(
|
|
6598
6914
|
className,
|
|
6599
6915
|
backgroundColor && has(getBackgroundClassName(backgroundColor)),
|
|
6600
6916
|
color && is(getColorClassName(color))
|
|
6601
6917
|
)
|
|
6602
6918
|
);
|
|
6603
|
-
return /* @__PURE__ */
|
|
6919
|
+
return /* @__PURE__ */ React101.createElement("thead", { ref, id, className: classes, ...others });
|
|
6604
6920
|
});
|
|
6605
6921
|
TableHead.displayName = "TableHead" /* TableHead */;
|
|
6606
6922
|
var TableHead_default = TableHead;
|
|
@@ -6609,19 +6925,19 @@ var TableHead_default = TableHead;
|
|
|
6609
6925
|
var head_default = TableHead_default;
|
|
6610
6926
|
|
|
6611
6927
|
// components/table/body/TableBody.tsx
|
|
6612
|
-
var
|
|
6613
|
-
var
|
|
6614
|
-
var TableBody =
|
|
6928
|
+
var React102 = __toESM(require("react"));
|
|
6929
|
+
var import_clsx87 = __toESM(require("clsx"));
|
|
6930
|
+
var TableBody = React102.forwardRef(({ className, id, color, backgroundColor, ...others }, ref) => {
|
|
6615
6931
|
const { styled } = useTrilogyContext();
|
|
6616
6932
|
const classes = hashClass(
|
|
6617
6933
|
styled,
|
|
6618
|
-
(0,
|
|
6934
|
+
(0, import_clsx87.default)(
|
|
6619
6935
|
className,
|
|
6620
6936
|
backgroundColor && has(getBackgroundClassName(backgroundColor)),
|
|
6621
6937
|
color && is(getColorClassName(color))
|
|
6622
6938
|
)
|
|
6623
6939
|
);
|
|
6624
|
-
return /* @__PURE__ */
|
|
6940
|
+
return /* @__PURE__ */ React102.createElement("tbody", { ref, id, className: classes, ...others });
|
|
6625
6941
|
});
|
|
6626
6942
|
TableBody.displayName = "TableBody" /* TableBody */;
|
|
6627
6943
|
var TableBody_default = TableBody;
|
|
@@ -6630,12 +6946,12 @@ var TableBody_default = TableBody;
|
|
|
6630
6946
|
var body_default = TableBody_default;
|
|
6631
6947
|
|
|
6632
6948
|
// components/table/th/TableTh.tsx
|
|
6633
|
-
var
|
|
6634
|
-
var
|
|
6635
|
-
var TableTh =
|
|
6949
|
+
var React103 = __toESM(require("react"));
|
|
6950
|
+
var import_clsx88 = __toESM(require("clsx"));
|
|
6951
|
+
var TableTh = React103.forwardRef(({ className, id, colSpan, rowSpan, ...others }, ref) => {
|
|
6636
6952
|
const { styled } = useTrilogyContext();
|
|
6637
|
-
const classes = hashClass(styled, (0,
|
|
6638
|
-
return /* @__PURE__ */
|
|
6953
|
+
const classes = hashClass(styled, (0, import_clsx88.default)(className));
|
|
6954
|
+
return /* @__PURE__ */ React103.createElement("th", { ref, id, className: classes, colSpan, rowSpan, ...others });
|
|
6639
6955
|
});
|
|
6640
6956
|
TableTh.displayName = "TableTh" /* TableTh */;
|
|
6641
6957
|
var TableTh_default = TableTh;
|
|
@@ -6644,9 +6960,9 @@ var TableTh_default = TableTh;
|
|
|
6644
6960
|
var th_default = TableTh_default;
|
|
6645
6961
|
|
|
6646
6962
|
// components/table/tr/TableTr.tsx
|
|
6647
|
-
var
|
|
6648
|
-
var
|
|
6649
|
-
var TableTr =
|
|
6963
|
+
var React104 = __toESM(require("react"));
|
|
6964
|
+
var import_clsx89 = __toESM(require("clsx"));
|
|
6965
|
+
var TableTr = React104.forwardRef(({
|
|
6650
6966
|
className,
|
|
6651
6967
|
id,
|
|
6652
6968
|
expandable,
|
|
@@ -6658,7 +6974,7 @@ var TableTr = React99.forwardRef(({
|
|
|
6658
6974
|
const { styled } = useTrilogyContext();
|
|
6659
6975
|
const classes = hashClass(
|
|
6660
6976
|
styled,
|
|
6661
|
-
(0,
|
|
6977
|
+
(0, import_clsx89.default)(
|
|
6662
6978
|
className,
|
|
6663
6979
|
expandable && is("expandable"),
|
|
6664
6980
|
expanded && is("expanded"),
|
|
@@ -6666,7 +6982,7 @@ var TableTr = React99.forwardRef(({
|
|
|
6666
6982
|
color && getColorClassName(color)
|
|
6667
6983
|
)
|
|
6668
6984
|
);
|
|
6669
|
-
return /* @__PURE__ */
|
|
6985
|
+
return /* @__PURE__ */ React104.createElement("tr", { ref, id, className: classes, ...others });
|
|
6670
6986
|
});
|
|
6671
6987
|
TableTr.displayName = "TableTr" /* TableTr */;
|
|
6672
6988
|
var TableTr_default = TableTr;
|
|
@@ -6675,12 +6991,12 @@ var TableTr_default = TableTr;
|
|
|
6675
6991
|
var tr_default = TableTr_default;
|
|
6676
6992
|
|
|
6677
6993
|
// components/table/td/TableTd.tsx
|
|
6678
|
-
var
|
|
6679
|
-
var
|
|
6680
|
-
var TableTd =
|
|
6994
|
+
var React105 = __toESM(require("react"));
|
|
6995
|
+
var import_clsx90 = __toESM(require("clsx"));
|
|
6996
|
+
var TableTd = React105.forwardRef(({ className, id, rowSpan, colSpan, ...others }, ref) => {
|
|
6681
6997
|
const { styled } = useTrilogyContext();
|
|
6682
|
-
const classes = hashClass(styled, (0,
|
|
6683
|
-
return /* @__PURE__ */
|
|
6998
|
+
const classes = hashClass(styled, (0, import_clsx90.default)(className));
|
|
6999
|
+
return /* @__PURE__ */ React105.createElement("td", { ref, id, className: classes, rowSpan, colSpan, ...others });
|
|
6684
7000
|
});
|
|
6685
7001
|
TableTd.displayName = "TableTd" /* TableTd */;
|
|
6686
7002
|
var TableTd_default = TableTd;
|
|
@@ -6689,8 +7005,8 @@ var TableTd_default = TableTd;
|
|
|
6689
7005
|
var td_default = TableTd_default;
|
|
6690
7006
|
|
|
6691
7007
|
// components/tabs/context/index.tsx
|
|
6692
|
-
var
|
|
6693
|
-
var TabsContext =
|
|
7008
|
+
var import_react53 = __toESM(require("react"));
|
|
7009
|
+
var TabsContext = import_react53.default.createContext({
|
|
6694
7010
|
activeIndex: 0,
|
|
6695
7011
|
inverted: false,
|
|
6696
7012
|
setActiveIndex: () => 0,
|
|
@@ -6700,21 +7016,21 @@ var TabsContext = import_react52.default.createContext({
|
|
|
6700
7016
|
});
|
|
6701
7017
|
|
|
6702
7018
|
// components/tabs/Tabs.tsx
|
|
6703
|
-
var
|
|
6704
|
-
var
|
|
6705
|
-
var Tabs =
|
|
7019
|
+
var import_clsx91 = __toESM(require("clsx"));
|
|
7020
|
+
var import_react54 = __toESM(require("react"));
|
|
7021
|
+
var Tabs = import_react54.default.forwardRef(
|
|
6706
7022
|
({ children, className, id, activeIndex, fullwidth, inverted, small }, ref) => {
|
|
6707
|
-
const [currentIndex, setCurrentIndex] =
|
|
6708
|
-
const [isInverted, setIsInverted] =
|
|
7023
|
+
const [currentIndex, setCurrentIndex] = import_react54.default.useState(activeIndex || 0);
|
|
7024
|
+
const [isInverted, setIsInverted] = import_react54.default.useState(inverted || false);
|
|
6709
7025
|
const { styled } = useTrilogyContext();
|
|
6710
7026
|
const classes = hashClass(
|
|
6711
7027
|
styled,
|
|
6712
|
-
(0,
|
|
7028
|
+
(0, import_clsx91.default)("tabs", fullwidth && is("fullwidth"), inverted && is("inverted"), small && is("small"), className)
|
|
6713
7029
|
);
|
|
6714
|
-
|
|
7030
|
+
import_react54.default.useEffect(() => {
|
|
6715
7031
|
activeIndex !== void 0 && setCurrentIndex(activeIndex);
|
|
6716
7032
|
}, [activeIndex]);
|
|
6717
|
-
return /* @__PURE__ */
|
|
7033
|
+
return /* @__PURE__ */ import_react54.default.createElement(
|
|
6718
7034
|
TabsContext.Provider,
|
|
6719
7035
|
{
|
|
6720
7036
|
value: {
|
|
@@ -6725,7 +7041,7 @@ var Tabs = import_react53.default.forwardRef(
|
|
|
6725
7041
|
setActiveIndex: setCurrentIndex
|
|
6726
7042
|
}
|
|
6727
7043
|
},
|
|
6728
|
-
/* @__PURE__ */
|
|
7044
|
+
/* @__PURE__ */ import_react54.default.createElement("div", { ref, id, className: classes, "data-tabs-context": "" }, children)
|
|
6729
7045
|
);
|
|
6730
7046
|
}
|
|
6731
7047
|
);
|
|
@@ -6733,17 +7049,17 @@ Tabs.displayName = "Tabs" /* Tabs */;
|
|
|
6733
7049
|
var Tabs_default = Tabs;
|
|
6734
7050
|
|
|
6735
7051
|
// components/tabs/tab-list/tab/Tab.tsx
|
|
6736
|
-
var
|
|
6737
|
-
var
|
|
6738
|
-
var Tab =
|
|
7052
|
+
var import_clsx92 = __toESM(require("clsx"));
|
|
7053
|
+
var import_react55 = __toESM(require("react"));
|
|
7054
|
+
var Tab = import_react55.default.forwardRef(
|
|
6739
7055
|
({ active, className, onClick, routerLink = "a", iconName, label, disabled, testId, ariaControls, ...others }, ref) => {
|
|
6740
7056
|
const { styled } = useTrilogyContext();
|
|
6741
7057
|
const { index, ...props } = others;
|
|
6742
|
-
const { activeIndex, setActiveIndex, small } =
|
|
7058
|
+
const { activeIndex, setActiveIndex, small } = import_react55.default.useContext(TabsContext);
|
|
6743
7059
|
const Tag2 = others.href || others.to ? routerLink : "button";
|
|
6744
|
-
const isActive =
|
|
6745
|
-
const classes = hashClass(styled, (0,
|
|
6746
|
-
const handleClick =
|
|
7060
|
+
const isActive = import_react55.default.useMemo(() => activeIndex === index, [activeIndex, index]);
|
|
7061
|
+
const classes = hashClass(styled, (0, import_clsx92.default)("tab", className, { "is-active": isActive }));
|
|
7062
|
+
const handleClick = import_react55.default.useCallback(
|
|
6747
7063
|
(e) => {
|
|
6748
7064
|
if (!disabled) {
|
|
6749
7065
|
if (!others.href && !others.to) setActiveIndex(index);
|
|
@@ -6752,10 +7068,10 @@ var Tab = import_react54.default.forwardRef(
|
|
|
6752
7068
|
},
|
|
6753
7069
|
[disabled, onClick, index, setActiveIndex]
|
|
6754
7070
|
);
|
|
6755
|
-
|
|
7071
|
+
import_react55.default.useEffect(() => {
|
|
6756
7072
|
if (active) setActiveIndex(index);
|
|
6757
7073
|
}, [active, setActiveIndex, index]);
|
|
6758
|
-
return /* @__PURE__ */
|
|
7074
|
+
return /* @__PURE__ */ import_react55.default.createElement(
|
|
6759
7075
|
Tag2,
|
|
6760
7076
|
{
|
|
6761
7077
|
ref,
|
|
@@ -6771,8 +7087,8 @@ var Tab = import_react54.default.forwardRef(
|
|
|
6771
7087
|
onClick: handleClick,
|
|
6772
7088
|
...props
|
|
6773
7089
|
},
|
|
6774
|
-
/* @__PURE__ */
|
|
6775
|
-
label && /* @__PURE__ */
|
|
7090
|
+
/* @__PURE__ */ import_react55.default.createElement("div", { className: hashClass(styled, "tab-icon") }, iconName && /* @__PURE__ */ import_react55.default.createElement(Icon_default, { size: small ? "small" : "medium", name: iconName })),
|
|
7091
|
+
label && /* @__PURE__ */ import_react55.default.createElement(Text_default, null, label)
|
|
6776
7092
|
);
|
|
6777
7093
|
}
|
|
6778
7094
|
);
|
|
@@ -6780,32 +7096,32 @@ Tab.displayName = "Tab" /* Tab */;
|
|
|
6780
7096
|
var Tab_default = Tab;
|
|
6781
7097
|
|
|
6782
7098
|
// components/tabs/tab-list/TabList.tsx
|
|
6783
|
-
var
|
|
6784
|
-
var
|
|
6785
|
-
var TabList =
|
|
7099
|
+
var import_clsx93 = __toESM(require("clsx"));
|
|
7100
|
+
var import_react56 = __toESM(require("react"));
|
|
7101
|
+
var TabList = import_react56.default.forwardRef(
|
|
6786
7102
|
({ children, className, id, testId, align, ...others }, ref) => {
|
|
6787
7103
|
const { styled } = useTrilogyContext();
|
|
6788
|
-
const TabListRef =
|
|
6789
|
-
const tabRefs =
|
|
6790
|
-
const { small } =
|
|
6791
|
-
|
|
6792
|
-
const [tabsWidth, setTabsWidth] =
|
|
6793
|
-
const [tabListWidth, setTabListWidth] =
|
|
6794
|
-
const [scrollLeft, setScrollLeft] =
|
|
6795
|
-
const [tabFocused, setTabFocused] =
|
|
6796
|
-
const classes = hashClass(styled, (0,
|
|
6797
|
-
const isVisibleArrowLeft = (0,
|
|
7104
|
+
const TabListRef = import_react56.default.useRef(null);
|
|
7105
|
+
const tabRefs = import_react56.default.useRef([]);
|
|
7106
|
+
const { small } = import_react56.default.useContext(TabsContext);
|
|
7107
|
+
import_react56.default.useImperativeHandle(ref, () => TabListRef.current);
|
|
7108
|
+
const [tabsWidth, setTabsWidth] = import_react56.default.useState(0);
|
|
7109
|
+
const [tabListWidth, setTabListWidth] = import_react56.default.useState(0);
|
|
7110
|
+
const [scrollLeft, setScrollLeft] = import_react56.default.useState(0);
|
|
7111
|
+
const [tabFocused, setTabFocused] = import_react56.default.useState(0);
|
|
7112
|
+
const classes = hashClass(styled, (0, import_clsx93.default)("tab-list", align && is(getAlignClassName(align)), className));
|
|
7113
|
+
const isVisibleArrowLeft = (0, import_react56.useMemo)(() => {
|
|
6798
7114
|
if (!tabRefs.current.length) return false;
|
|
6799
7115
|
return scrollLeft > tabRefs.current[0].width / 2;
|
|
6800
7116
|
}, [tabRefs, scrollLeft]);
|
|
6801
|
-
const isVisibleArrowRight = (0,
|
|
7117
|
+
const isVisibleArrowRight = (0, import_react56.useMemo)(
|
|
6802
7118
|
() => tabListWidth - tabsWidth - scrollLeft > 5,
|
|
6803
7119
|
[tabListWidth, tabsWidth, scrollLeft]
|
|
6804
7120
|
);
|
|
6805
|
-
const TabElms =
|
|
6806
|
-
return
|
|
6807
|
-
if (!
|
|
6808
|
-
return /* @__PURE__ */
|
|
7121
|
+
const TabElms = import_react56.default.useMemo(() => {
|
|
7122
|
+
return import_react56.default.Children.map(children, (child, index) => {
|
|
7123
|
+
if (!import_react56.default.isValidElement(child)) return false;
|
|
7124
|
+
return /* @__PURE__ */ import_react56.default.createElement(
|
|
6809
7125
|
Tab_default,
|
|
6810
7126
|
{
|
|
6811
7127
|
ref: (el) => tabRefs.current[index] = el == null ? void 0 : el.getBoundingClientRect(),
|
|
@@ -6815,7 +7131,7 @@ var TabList = import_react55.default.forwardRef(
|
|
|
6815
7131
|
);
|
|
6816
7132
|
});
|
|
6817
7133
|
}, [children, tabRefs]);
|
|
6818
|
-
const scrollWithArrow =
|
|
7134
|
+
const scrollWithArrow = import_react56.default.useCallback(
|
|
6819
7135
|
(direction) => {
|
|
6820
7136
|
var _a;
|
|
6821
7137
|
if (tabRefs.current) {
|
|
@@ -6827,7 +7143,7 @@ var TabList = import_react55.default.forwardRef(
|
|
|
6827
7143
|
},
|
|
6828
7144
|
[tabRefs.current, tabFocused, TabListRef]
|
|
6829
7145
|
);
|
|
6830
|
-
const handleScrollList =
|
|
7146
|
+
const handleScrollList = import_react56.default.useCallback(
|
|
6831
7147
|
(e) => {
|
|
6832
7148
|
const target = e.target;
|
|
6833
7149
|
const firstGap = tabRefs.current[0].x + (small ? 16 : 24);
|
|
@@ -6839,26 +7155,26 @@ var TabList = import_react55.default.forwardRef(
|
|
|
6839
7155
|
},
|
|
6840
7156
|
[tabRefs, small]
|
|
6841
7157
|
);
|
|
6842
|
-
const onClickPrev =
|
|
7158
|
+
const onClickPrev = import_react56.default.useCallback(() => {
|
|
6843
7159
|
isVisibleArrowLeft && scrollWithArrow(-1);
|
|
6844
7160
|
}, [scrollWithArrow, isVisibleArrowLeft]);
|
|
6845
|
-
const onClickNext =
|
|
7161
|
+
const onClickNext = import_react56.default.useCallback(() => {
|
|
6846
7162
|
isVisibleArrowRight && scrollWithArrow(1);
|
|
6847
7163
|
}, [scrollWithArrow, isVisibleArrowRight]);
|
|
6848
|
-
const setWidths =
|
|
7164
|
+
const setWidths = import_react56.default.useCallback(() => {
|
|
6849
7165
|
if (TabListRef.current) {
|
|
6850
7166
|
setTabsWidth(TabListRef.current.clientWidth);
|
|
6851
7167
|
setTabListWidth(TabListRef.current.scrollWidth);
|
|
6852
7168
|
}
|
|
6853
7169
|
}, [TabListRef]);
|
|
6854
|
-
|
|
7170
|
+
import_react56.default.useEffect(() => {
|
|
6855
7171
|
setWidths();
|
|
6856
7172
|
}, [setWidths, isVisibleArrowLeft, isVisibleArrowRight]);
|
|
6857
|
-
|
|
7173
|
+
import_react56.default.useEffect(() => {
|
|
6858
7174
|
window.addEventListener("resize", setWidths);
|
|
6859
7175
|
return () => window.removeEventListener("resize", setWidths);
|
|
6860
7176
|
}, [TabListRef, setWidths]);
|
|
6861
|
-
return /* @__PURE__ */
|
|
7177
|
+
return /* @__PURE__ */ import_react56.default.createElement(
|
|
6862
7178
|
"div",
|
|
6863
7179
|
{
|
|
6864
7180
|
ref: TabListRef,
|
|
@@ -6869,23 +7185,23 @@ var TabList = import_react55.default.forwardRef(
|
|
|
6869
7185
|
onScroll: handleScrollList,
|
|
6870
7186
|
...others
|
|
6871
7187
|
},
|
|
6872
|
-
isVisibleArrowLeft && /* @__PURE__ */
|
|
7188
|
+
isVisibleArrowLeft && /* @__PURE__ */ import_react56.default.createElement(
|
|
6873
7189
|
Icon_default,
|
|
6874
7190
|
{
|
|
6875
7191
|
"data-arrow-prev": "",
|
|
6876
7192
|
name: "tri-arrow-left",
|
|
6877
|
-
className: (0,
|
|
7193
|
+
className: (0, import_clsx93.default)("arrow-prev"),
|
|
6878
7194
|
size: small ? "small" : "medium",
|
|
6879
7195
|
onClick: onClickPrev
|
|
6880
7196
|
}
|
|
6881
7197
|
),
|
|
6882
7198
|
TabElms,
|
|
6883
|
-
isVisibleArrowRight && /* @__PURE__ */
|
|
7199
|
+
isVisibleArrowRight && /* @__PURE__ */ import_react56.default.createElement(
|
|
6884
7200
|
Icon_default,
|
|
6885
7201
|
{
|
|
6886
7202
|
"data-arrow-next": "",
|
|
6887
7203
|
name: "tri-arrow-right",
|
|
6888
|
-
className: (0,
|
|
7204
|
+
className: (0, import_clsx93.default)("arrow-next"),
|
|
6889
7205
|
size: small ? "small" : "medium",
|
|
6890
7206
|
onClick: onClickNext
|
|
6891
7207
|
}
|
|
@@ -6897,14 +7213,14 @@ TabList.displayName = "TabList" /* TabList */;
|
|
|
6897
7213
|
var TabList_default = TabList;
|
|
6898
7214
|
|
|
6899
7215
|
// components/tabs/tab-panels/tab-panel/TabPanel.tsx
|
|
6900
|
-
var
|
|
6901
|
-
var
|
|
6902
|
-
var TabPanel =
|
|
7216
|
+
var import_clsx94 = __toESM(require("clsx"));
|
|
7217
|
+
var import_react57 = __toESM(require("react"));
|
|
7218
|
+
var TabPanel = import_react57.default.forwardRef(({ children, className, testId, ...others }, ref) => {
|
|
6903
7219
|
const { styled } = useTrilogyContext();
|
|
6904
7220
|
const { index, ...props } = others;
|
|
6905
|
-
const { activeIndex } =
|
|
6906
|
-
const classes = hashClass(styled, (0,
|
|
6907
|
-
return /* @__PURE__ */
|
|
7221
|
+
const { activeIndex } = import_react57.default.useContext(TabsContext);
|
|
7222
|
+
const classes = hashClass(styled, (0, import_clsx94.default)("tab-panel", index === activeIndex && is("active"), className));
|
|
7223
|
+
return /* @__PURE__ */ import_react57.default.createElement("div", { ref, "data-testid": testId, className: classes, ...props }, children);
|
|
6908
7224
|
});
|
|
6909
7225
|
TabPanel.displayName = "TabPanel" /* TabPanel */;
|
|
6910
7226
|
var TabPanel_default = TabPanel;
|
|
@@ -6913,28 +7229,28 @@ var TabPanel_default = TabPanel;
|
|
|
6913
7229
|
var tab_panel_default = TabPanel_default;
|
|
6914
7230
|
|
|
6915
7231
|
// components/tabs/tab-panels/TabPanels.tsx
|
|
6916
|
-
var
|
|
6917
|
-
var
|
|
6918
|
-
var TabPanels =
|
|
7232
|
+
var import_clsx95 = __toESM(require("clsx"));
|
|
7233
|
+
var import_react58 = __toESM(require("react"));
|
|
7234
|
+
var TabPanels = import_react58.default.forwardRef(({ children, className, id, testId, ...others }, ref) => {
|
|
6919
7235
|
const { styled } = useTrilogyContext();
|
|
6920
|
-
const classes = hashClass(styled, (0,
|
|
6921
|
-
return /* @__PURE__ */
|
|
6922
|
-
if (!
|
|
6923
|
-
return /* @__PURE__ */
|
|
7236
|
+
const classes = hashClass(styled, (0, import_clsx95.default)("tab-panels", className));
|
|
7237
|
+
return /* @__PURE__ */ import_react58.default.createElement("div", { ref, id, "data-testid": testId, className: classes, ...others }, import_react58.default.Children.map(children, (child, index) => {
|
|
7238
|
+
if (!import_react58.default.isValidElement(child)) return false;
|
|
7239
|
+
return /* @__PURE__ */ import_react58.default.createElement(tab_panel_default, { ...child.props, index });
|
|
6924
7240
|
}));
|
|
6925
7241
|
});
|
|
6926
7242
|
TabPanels.displayName = "TabPanels" /* TabPanels */;
|
|
6927
7243
|
var TabPanels_default = TabPanels;
|
|
6928
7244
|
|
|
6929
7245
|
// components/tag/Tag.tsx
|
|
6930
|
-
var
|
|
6931
|
-
var
|
|
6932
|
-
var Tag =
|
|
7246
|
+
var import_clsx96 = __toESM(require("clsx"));
|
|
7247
|
+
var import_react59 = __toESM(require("react"));
|
|
7248
|
+
var Tag = import_react59.default.forwardRef(
|
|
6933
7249
|
({ label, className, id, variant, inverted, small, iconName, ...others }, ref) => {
|
|
6934
7250
|
const { styled } = useTrilogyContext();
|
|
6935
7251
|
const tagClassNames = hashClass(
|
|
6936
7252
|
styled,
|
|
6937
|
-
(0,
|
|
7253
|
+
(0, import_clsx96.default)(
|
|
6938
7254
|
"tag",
|
|
6939
7255
|
variant && is(getColorClassName(variant)),
|
|
6940
7256
|
inverted && is("inverted"),
|
|
@@ -6942,26 +7258,26 @@ var Tag = import_react58.default.forwardRef(
|
|
|
6942
7258
|
className
|
|
6943
7259
|
)
|
|
6944
7260
|
);
|
|
6945
|
-
const tagIconClassNames = (0,
|
|
6946
|
-
return /* @__PURE__ */
|
|
7261
|
+
const tagIconClassNames = (0, import_clsx96.default)(variant && is(getColorClassName(variant)));
|
|
7262
|
+
return /* @__PURE__ */ import_react59.default.createElement("span", { ref, id, className: tagClassNames, ...others }, iconName && /* @__PURE__ */ import_react59.default.createElement(Icon_default, { className: tagIconClassNames, name: iconName }), label);
|
|
6947
7263
|
}
|
|
6948
7264
|
);
|
|
6949
7265
|
Tag.displayName = "Tag" /* Tag */;
|
|
6950
7266
|
var Tag_default = Tag;
|
|
6951
7267
|
|
|
6952
7268
|
// components/tag/list/TagList.tsx
|
|
6953
|
-
var
|
|
6954
|
-
var
|
|
6955
|
-
var TagList =
|
|
7269
|
+
var import_clsx97 = __toESM(require("clsx"));
|
|
7270
|
+
var React113 = __toESM(require("react"));
|
|
7271
|
+
var TagList = React113.forwardRef(({ className, id, align, marginless, ...others }, ref) => {
|
|
6956
7272
|
const { styled } = useTrilogyContext();
|
|
6957
|
-
return /* @__PURE__ */
|
|
7273
|
+
return /* @__PURE__ */ React113.createElement(
|
|
6958
7274
|
"div",
|
|
6959
7275
|
{
|
|
6960
7276
|
ref,
|
|
6961
7277
|
id,
|
|
6962
7278
|
className: hashClass(
|
|
6963
7279
|
styled,
|
|
6964
|
-
(0,
|
|
7280
|
+
(0, import_clsx97.default)("tags", align && is(getJustifiedClassName(align)), marginless && is("marginless"), className)
|
|
6965
7281
|
),
|
|
6966
7282
|
...others
|
|
6967
7283
|
}
|
|
@@ -6983,9 +7299,9 @@ var TagVariant = /* @__PURE__ */ ((TagVariant2) => {
|
|
|
6983
7299
|
})(TagVariant || {});
|
|
6984
7300
|
|
|
6985
7301
|
// components/textarea/Textarea.tsx
|
|
6986
|
-
var
|
|
6987
|
-
var
|
|
6988
|
-
var Textarea =
|
|
7302
|
+
var import_clsx98 = __toESM(require("clsx"));
|
|
7303
|
+
var import_react60 = __toESM(require("react"));
|
|
7304
|
+
var Textarea = import_react60.default.forwardRef(
|
|
6989
7305
|
({
|
|
6990
7306
|
className,
|
|
6991
7307
|
id,
|
|
@@ -6997,7 +7313,6 @@ var Textarea = import_react59.default.forwardRef(
|
|
|
6997
7313
|
defaultValue,
|
|
6998
7314
|
help,
|
|
6999
7315
|
status,
|
|
7000
|
-
dynamicPlaceholder = true,
|
|
7001
7316
|
rows,
|
|
7002
7317
|
label,
|
|
7003
7318
|
maxLength,
|
|
@@ -7006,20 +7321,20 @@ var Textarea = import_react59.default.forwardRef(
|
|
|
7006
7321
|
iconNameRight,
|
|
7007
7322
|
...others
|
|
7008
7323
|
}, ref) => {
|
|
7009
|
-
const [value, setValue] = (0,
|
|
7324
|
+
const [value, setValue] = (0, import_react60.useState)(defaultValue || "");
|
|
7010
7325
|
const { styled } = useTrilogyContext();
|
|
7011
|
-
(0,
|
|
7326
|
+
(0, import_react60.useEffect)(() => {
|
|
7012
7327
|
setValue(defaultValue || "");
|
|
7013
7328
|
}, [defaultValue]);
|
|
7014
|
-
const wrapperClasses = hashClass(styled, (0,
|
|
7015
|
-
const classes = hashClass(styled, (0,
|
|
7016
|
-
const helpClasses = (0,
|
|
7017
|
-
const counterClasses = hashClass(styled, (0,
|
|
7329
|
+
const wrapperClasses = hashClass(styled, (0, import_clsx98.default)("field textarea-wrapper", className, status && is(status)));
|
|
7330
|
+
const classes = hashClass(styled, (0, import_clsx98.default)("textarea"));
|
|
7331
|
+
const helpClasses = (0, import_clsx98.default)("help", status && is(status));
|
|
7332
|
+
const counterClasses = hashClass(styled, (0, import_clsx98.default)("counter", maxLength));
|
|
7018
7333
|
const controlClasses = hashClass(
|
|
7019
7334
|
styled,
|
|
7020
|
-
(0,
|
|
7335
|
+
(0, import_clsx98.default)("control", iconNameLeft && has("icons-left"), iconNameRight && has("icons-right"))
|
|
7021
7336
|
);
|
|
7022
|
-
return /* @__PURE__ */
|
|
7337
|
+
return /* @__PURE__ */ import_react60.default.createElement("div", { id, className: wrapperClasses }, label && /* @__PURE__ */ import_react60.default.createElement("label", { className: hashClass(styled, "textarea-label"), htmlFor: id }, label, " ", required && /* @__PURE__ */ import_react60.default.createElement(Text_default, { markup: "span" /* SPAN */, typo: "has-text-error" /* TEXT_ERROR */ }, "*")), sample && /* @__PURE__ */ import_react60.default.createElement(Text_default, { className: "input-sample", level: 2 /* TWO */, id }, sample), /* @__PURE__ */ import_react60.default.createElement("div", { className: controlClasses }, /* @__PURE__ */ import_react60.default.createElement(
|
|
7023
7338
|
"textarea",
|
|
7024
7339
|
{
|
|
7025
7340
|
ref,
|
|
@@ -7042,23 +7357,23 @@ var Textarea = import_react59.default.forwardRef(
|
|
|
7042
7357
|
required,
|
|
7043
7358
|
...others
|
|
7044
7359
|
}
|
|
7045
|
-
), iconNameLeft && /* @__PURE__ */
|
|
7360
|
+
), iconNameLeft && /* @__PURE__ */ import_react60.default.createElement(Icon_default, { name: iconNameLeft, size: "small", className: "icon-left" }), iconNameRight && /* @__PURE__ */ import_react60.default.createElement(Icon_default, { name: iconNameRight, size: "small", className: "icon-right" }), maxLength && /* @__PURE__ */ import_react60.default.createElement("div", { className: counterClasses }, `${value.length}/${maxLength == null ? void 0 : maxLength.toString()}`)), help && /* @__PURE__ */ import_react60.default.createElement(Text_default, { className: helpClasses }, help));
|
|
7046
7361
|
}
|
|
7047
7362
|
);
|
|
7048
7363
|
Textarea.displayName = "Textarea" /* Textarea */;
|
|
7049
7364
|
var Textarea_default = Textarea;
|
|
7050
7365
|
|
|
7051
7366
|
// components/timeline/content/TimelineContent.tsx
|
|
7052
|
-
var
|
|
7053
|
-
var
|
|
7054
|
-
var TimelineContent =
|
|
7367
|
+
var import_clsx99 = __toESM(require("clsx"));
|
|
7368
|
+
var React115 = __toESM(require("react"));
|
|
7369
|
+
var TimelineContent = React115.forwardRef(
|
|
7055
7370
|
({ children, className, id, heading, content, linkLabel, linkTo, ...others }, ref) => {
|
|
7056
7371
|
const { styled } = useTrilogyContext();
|
|
7057
|
-
const classes = hashClass(styled, (0,
|
|
7372
|
+
const classes = hashClass(styled, (0, import_clsx99.default)("timeline-content", className));
|
|
7058
7373
|
if (children) {
|
|
7059
|
-
return /* @__PURE__ */
|
|
7374
|
+
return /* @__PURE__ */ React115.createElement("div", { ref, id, className: classes, ...others }, children);
|
|
7060
7375
|
}
|
|
7061
|
-
return /* @__PURE__ */
|
|
7376
|
+
return /* @__PURE__ */ React115.createElement("div", { ref, id, className: classes, ...others }, heading && /* @__PURE__ */ React115.createElement(Text_default, { markup: "p" /* P */ }, heading), content && /* @__PURE__ */ React115.createElement(Text_default, { className: "main-content", markup: "p" /* P */ }, content), linkTo && linkLabel && /* @__PURE__ */ React115.createElement(Link_default, { href: linkTo }, linkLabel));
|
|
7062
7377
|
}
|
|
7063
7378
|
);
|
|
7064
7379
|
TimelineContent.displayName = "TimelineContent" /* TimelineContent */;
|
|
@@ -7068,15 +7383,15 @@ var TimelineContent_default = TimelineContent;
|
|
|
7068
7383
|
var content_default3 = TimelineContent_default;
|
|
7069
7384
|
|
|
7070
7385
|
// components/timeline/item/TimelineItem.tsx
|
|
7071
|
-
var
|
|
7072
|
-
var
|
|
7073
|
-
var TimelineItem =
|
|
7386
|
+
var import_clsx100 = __toESM(require("clsx"));
|
|
7387
|
+
var React116 = __toESM(require("react"));
|
|
7388
|
+
var TimelineItem = React116.forwardRef(({ className, id, done, active, cancel, ...others }, ref) => {
|
|
7074
7389
|
const { styled } = useTrilogyContext();
|
|
7075
7390
|
const classes = hashClass(
|
|
7076
7391
|
styled,
|
|
7077
|
-
(0,
|
|
7392
|
+
(0, import_clsx100.default)("timeline-item", done && "done", active && "active", cancel && "cancel", className)
|
|
7078
7393
|
);
|
|
7079
|
-
return /* @__PURE__ */
|
|
7394
|
+
return /* @__PURE__ */ React116.createElement("div", { ref, id, className: classes, ...others });
|
|
7080
7395
|
});
|
|
7081
7396
|
TimelineItem.displayName = "TimelineItem" /* TimelineItem */;
|
|
7082
7397
|
var TimelineItem_default = TimelineItem;
|
|
@@ -7085,9 +7400,9 @@ var TimelineItem_default = TimelineItem;
|
|
|
7085
7400
|
var item_default5 = TimelineItem_default;
|
|
7086
7401
|
|
|
7087
7402
|
// components/timeline/marker/TimelineMarker.tsx
|
|
7088
|
-
var
|
|
7089
|
-
var
|
|
7090
|
-
var TimelineMarker =
|
|
7403
|
+
var import_clsx101 = __toESM(require("clsx"));
|
|
7404
|
+
var React117 = __toESM(require("react"));
|
|
7405
|
+
var TimelineMarker = React117.forwardRef(({
|
|
7091
7406
|
className,
|
|
7092
7407
|
id,
|
|
7093
7408
|
iconClassname,
|
|
@@ -7095,9 +7410,9 @@ var TimelineMarker = React112.forwardRef(({
|
|
|
7095
7410
|
...others
|
|
7096
7411
|
}, ref) => {
|
|
7097
7412
|
const { styled } = useTrilogyContext();
|
|
7098
|
-
const classes = hashClass(styled, (0,
|
|
7099
|
-
const iconClasses = (0,
|
|
7100
|
-
return /* @__PURE__ */
|
|
7413
|
+
const classes = hashClass(styled, (0, import_clsx101.default)("timeline-marker", is("icon"), className));
|
|
7414
|
+
const iconClasses = (0, import_clsx101.default)(iconClassname);
|
|
7415
|
+
return /* @__PURE__ */ React117.createElement("div", { ref, id, className: classes, ...others }, /* @__PURE__ */ React117.createElement("div", { className: "card-header-icon" }, /* @__PURE__ */ React117.createElement(Icon_default, { className: iconClasses, name: iconName, size: "small" /* SMALL */ })));
|
|
7101
7416
|
});
|
|
7102
7417
|
TimelineMarker.displayName = "TimelineMarker" /* TimelineMarker */;
|
|
7103
7418
|
var TimelineMarker_default = TimelineMarker;
|
|
@@ -7106,19 +7421,19 @@ var TimelineMarker_default = TimelineMarker;
|
|
|
7106
7421
|
var marker_default = TimelineMarker_default;
|
|
7107
7422
|
|
|
7108
7423
|
// components/timeline/Timeline.tsx
|
|
7109
|
-
var
|
|
7110
|
-
var
|
|
7111
|
-
var Timeline =
|
|
7424
|
+
var import_clsx102 = __toESM(require("clsx"));
|
|
7425
|
+
var React118 = __toESM(require("react"));
|
|
7426
|
+
var Timeline = React118.forwardRef(({ className, id, horizontal, ...others }, ref) => {
|
|
7112
7427
|
const { styled } = useTrilogyContext();
|
|
7113
|
-
const classes = hashClass(styled, (0,
|
|
7114
|
-
return /* @__PURE__ */
|
|
7428
|
+
const classes = hashClass(styled, (0, import_clsx102.default)("timeline", horizontal && is("horizontal"), className));
|
|
7429
|
+
return /* @__PURE__ */ React118.createElement("div", { ref, id, className: classes, ...others });
|
|
7115
7430
|
});
|
|
7116
7431
|
Timeline.displayName = "Timeline" /* Timeline */;
|
|
7117
7432
|
var Timeline_default = Timeline;
|
|
7118
7433
|
|
|
7119
7434
|
// components/view/View.tsx
|
|
7120
|
-
var
|
|
7121
|
-
var
|
|
7435
|
+
var import_clsx103 = __toESM(require("clsx"));
|
|
7436
|
+
var React119 = __toESM(require("react"));
|
|
7122
7437
|
|
|
7123
7438
|
// components/view/ViewProps/index.ts
|
|
7124
7439
|
var ViewMarkup = /* @__PURE__ */ ((ViewMarkup2) => {
|
|
@@ -7143,7 +7458,7 @@ var ViewMarkup = /* @__PURE__ */ ((ViewMarkup2) => {
|
|
|
7143
7458
|
})(ViewMarkup || {});
|
|
7144
7459
|
|
|
7145
7460
|
// components/view/View.tsx
|
|
7146
|
-
var View =
|
|
7461
|
+
var View = React119.forwardRef(({
|
|
7147
7462
|
children,
|
|
7148
7463
|
style,
|
|
7149
7464
|
className,
|
|
@@ -7167,7 +7482,7 @@ var View = React114.forwardRef(({
|
|
|
7167
7482
|
const Tag2 = markup && isCorrectMarkup2(markup) ? markup : "div";
|
|
7168
7483
|
const classes = hashClass(
|
|
7169
7484
|
styled,
|
|
7170
|
-
(0,
|
|
7485
|
+
(0, import_clsx103.default)(
|
|
7171
7486
|
typeof loading === "string" && is(getLoadingClassName(loading)),
|
|
7172
7487
|
typeof loading === "boolean" ? is("loading") : is("loaded"),
|
|
7173
7488
|
backgroundColor && has(getBackgroundClassName(backgroundColor)),
|
|
@@ -7180,7 +7495,7 @@ var View = React114.forwardRef(({
|
|
|
7180
7495
|
className
|
|
7181
7496
|
)
|
|
7182
7497
|
);
|
|
7183
|
-
return /* @__PURE__ */
|
|
7498
|
+
return /* @__PURE__ */ React119.createElement(
|
|
7184
7499
|
Tag2,
|
|
7185
7500
|
{
|
|
7186
7501
|
ref,
|
|
@@ -7278,6 +7593,10 @@ var JustifyContent = /* @__PURE__ */ ((JustifyContent2) => {
|
|
|
7278
7593
|
Device,
|
|
7279
7594
|
DirectionEnum,
|
|
7280
7595
|
Divider,
|
|
7596
|
+
Dropdown,
|
|
7597
|
+
DropdownGroup,
|
|
7598
|
+
DropdownItem,
|
|
7599
|
+
DropdownTrigger,
|
|
7281
7600
|
Fab,
|
|
7282
7601
|
FlexBox,
|
|
7283
7602
|
FlexItem,
|