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