@trilogy-ds/react 0.0.23-esm-cjs → 0.0.25-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-33VIHGIE.mjs → chunk-2DKS2LMX.mjs} +1 -1
- package/lib/{chunk-WGIO7CR2.mjs → chunk-2OTGQMU4.mjs} +1 -1
- package/lib/{chunk-44BUDUHH.mjs → chunk-2YH3RRRM.mjs} +2 -2
- package/lib/{chunk-GQOES35K.mjs → chunk-35P2GFHE.mjs} +2 -2
- package/lib/{chunk-XRN2HE4L.mjs → chunk-3K66IDEM.mjs} +1 -1
- package/lib/{chunk-KRZWEBDP.mjs → chunk-3KNUQLB6.mjs} +2 -2
- package/lib/{chunk-3EEOOLVU.mjs → chunk-3Q36KXPA.mjs} +2 -2
- package/lib/{chunk-KPIWEUFQ.mjs → chunk-3TQRRK4V.mjs} +1 -1
- package/lib/{chunk-HXGWY5FL.mjs → chunk-4OWEDMLE.mjs} +1 -1
- package/lib/{chunk-TBR32D5M.mjs → chunk-4TJ4WCBN.mjs} +2 -2
- package/lib/{chunk-NMYQHE6C.mjs → chunk-4YVGGJFD.mjs} +3 -3
- package/lib/{chunk-RVU3IPAE.mjs → chunk-52HQIQWC.mjs} +1 -1
- package/lib/{chunk-SOPUKVAK.mjs → chunk-54XVTKOK.mjs} +3 -3
- package/lib/{chunk-WMZ3FFFO.mjs → chunk-55SIPHX3.mjs} +6 -6
- package/lib/{chunk-CU2FQJB3.mjs → chunk-5CRE5L6X.mjs} +2 -2
- package/lib/{chunk-V4BZDJSQ.mjs → chunk-5D3WYM25.mjs} +2 -2
- package/lib/{chunk-FKLCZFMR.mjs → chunk-5TA2DEFJ.mjs} +2 -2
- package/lib/{chunk-X4ABDBKN.mjs → chunk-5TB5SHQX.mjs} +1 -1
- package/lib/{chunk-UQSQUPSK.mjs → chunk-6AHBDM56.mjs} +3 -7
- package/lib/{chunk-NWKP62JQ.mjs → chunk-6BRKV3OX.mjs} +2 -2
- package/lib/{chunk-BL73QKUI.mjs → chunk-6BSQWFNU.mjs} +2 -2
- package/lib/{chunk-ALGX47MZ.mjs → chunk-6C6TV53V.mjs} +2 -2
- package/lib/{chunk-C3VH34J4.mjs → chunk-6DMIGJGO.mjs} +5 -5
- package/lib/{chunk-QE4JSIR3.mjs → chunk-6FDEOGMS.mjs} +5 -5
- package/lib/{chunk-CWIO3GEP.mjs → chunk-6IKR6FTJ.mjs} +1 -1
- package/lib/{chunk-NHN7GU32.mjs → chunk-6PKFJTR4.mjs} +2 -2
- package/lib/{chunk-VXYPRBJB.mjs → chunk-6SQYOEWM.mjs} +3 -3
- package/lib/{chunk-QOUQNN33.mjs → chunk-6UJQSFOY.mjs} +2 -2
- package/lib/{chunk-S7JT7LRM.mjs → chunk-72F756XM.mjs} +2 -2
- package/lib/{chunk-RHBTSMCQ.mjs → chunk-75VV7W4Z.mjs} +2 -2
- package/lib/{chunk-3VDWD5KA.mjs → chunk-77TXQHWK.mjs} +7 -7
- package/lib/{chunk-2FPIT2VY.mjs → chunk-7MWJMPTG.mjs} +2 -2
- package/lib/{chunk-4FJA5ASG.mjs → chunk-7NY2ELVH.mjs} +2 -2
- package/lib/{chunk-ICF5RIVG.mjs → chunk-7T4UN4NV.mjs} +2 -2
- package/lib/{chunk-LJF3YLMG.mjs → chunk-7Y2HGS2P.mjs} +2 -2
- package/lib/{chunk-SX2VUWRF.mjs → chunk-ACB42JEB.mjs} +2 -2
- package/lib/{chunk-7LIZKR65.mjs → chunk-ADIMRCHR.mjs} +2 -2
- package/lib/{chunk-5JFVDSGE.mjs → chunk-ADLM6LQF.mjs} +1 -1
- package/lib/{chunk-UFMRE754.mjs → chunk-AEBY6HDR.mjs} +1 -1
- package/lib/{chunk-SESMX6FY.mjs → chunk-AH5YNWHF.mjs} +1 -1
- package/lib/{chunk-DJQD6XHB.mjs → chunk-ANCM66IY.mjs} +1 -1
- package/lib/{chunk-NRNJCOJP.mjs → chunk-ASB33EQZ.mjs} +3 -3
- package/lib/{chunk-Y7WPI233.mjs → chunk-AY5YFUGA.mjs} +2 -2
- package/lib/{chunk-2SSPDMXO.mjs → chunk-AYI37F2L.mjs} +2 -2
- package/lib/{chunk-HZAMMVDY.mjs → chunk-AZZ5HW4W.mjs} +3 -3
- package/lib/{chunk-HZL4PLNP.mjs → chunk-BAHET6SO.mjs} +2 -2
- package/lib/{chunk-T27AVHAC.mjs → chunk-BB4CHSZW.mjs} +2 -2
- package/lib/{chunk-DTG6ZDOA.mjs → chunk-BKJTZKXR.mjs} +1 -1
- package/lib/{chunk-EIBKS56D.mjs → chunk-BW6K6RLN.mjs} +4 -4
- package/lib/{chunk-IW7QGP3O.mjs → chunk-C2N7EZSY.mjs} +2 -2
- package/lib/{chunk-ZETHVOMR.mjs → chunk-C755BW7T.mjs} +1 -1
- package/lib/{chunk-3PFN4T6S.mjs → chunk-CABYORPP.mjs} +2 -2
- package/lib/{chunk-76P5II7A.mjs → chunk-CEDDJDON.mjs} +4 -4
- package/lib/{chunk-JPWTOBGP.mjs → chunk-CGAJ7YB2.mjs} +3 -3
- package/lib/{chunk-HWHXZZKH.mjs → chunk-CUPC2XLZ.mjs} +1 -1
- package/lib/{chunk-RAQQH2DI.mjs → chunk-CVT3UV6O.mjs} +2 -2
- package/lib/{chunk-QNTBEAY4.mjs → chunk-D7QZPJSF.mjs} +3 -3
- package/lib/{chunk-ASZC2OSU.mjs → chunk-DI7Y6K3W.mjs} +3 -3
- package/lib/{chunk-3CUMNA5T.mjs → chunk-DL6NMHIM.mjs} +6 -6
- package/lib/{chunk-DB4LE4EW.mjs → chunk-DLQQ5RUK.mjs} +2 -2
- package/lib/{chunk-YF74SWNR.mjs → chunk-DMO4FETO.mjs} +4 -4
- package/lib/{chunk-ZX64XZS4.mjs → chunk-DW37QZID.mjs} +2 -2
- package/lib/{chunk-5NAC2FB4.mjs → chunk-E4DP4RHW.mjs} +2 -2
- package/lib/{chunk-HHARJB6A.mjs → chunk-EDBGLR45.mjs} +3 -3
- package/lib/{chunk-O72JHAKF.mjs → chunk-EHWZOM3O.mjs} +2 -2
- package/lib/{chunk-RGEGLOEG.mjs → chunk-ERBNAV6P.mjs} +2 -2
- package/lib/{chunk-HVDDVQIJ.mjs → chunk-FA3RCDVF.mjs} +3 -3
- package/lib/{chunk-EKMGL7ZZ.mjs → chunk-FES7E6XR.mjs} +1 -1
- package/lib/{chunk-MR7AJAP2.mjs → chunk-FI6OORG5.mjs} +2 -2
- package/lib/{chunk-IRYNHKFI.mjs → chunk-FM5TDIGH.mjs} +1 -1
- package/lib/{chunk-AVYI3IRF.mjs → chunk-FVGAKQHS.mjs} +1 -1
- package/lib/{chunk-IOHOQM2G.mjs → chunk-FWRHFQLQ.mjs} +2 -2
- package/lib/{chunk-DVOMGTK6.mjs → chunk-FZ7TRGKO.mjs} +2 -2
- package/lib/{chunk-5NCBENYK.mjs → chunk-G25IZXAD.mjs} +3 -3
- package/lib/{chunk-LBSTQNK7.mjs → chunk-HD7VWQFD.mjs} +2 -2
- package/lib/{chunk-7E4J6YBL.mjs → chunk-HG6NXLAY.mjs} +1 -1
- package/lib/{chunk-ZPE5DDAE.mjs → chunk-HJ3V3LWN.mjs} +2 -2
- package/lib/{chunk-5LNNQJ3B.mjs → chunk-HKJPCWC2.mjs} +2 -2
- package/lib/{chunk-SHMAZXUA.mjs → chunk-HUUIFJSN.mjs} +1 -1
- package/lib/{chunk-3HY3E3O3.mjs → chunk-I5HF26DL.mjs} +5 -5
- package/lib/{chunk-E7H2KJ4A.mjs → chunk-IA3WT3RN.mjs} +1 -1
- package/lib/{chunk-5FBFEA7R.mjs → chunk-INWRBUES.mjs} +1 -1
- package/lib/{chunk-ED5NFRNM.mjs → chunk-IQBE33C7.mjs} +3 -3
- package/lib/{chunk-6WPEEBMC.mjs → chunk-JBRB6UO5.mjs} +1 -1
- package/lib/{chunk-Z7AZ74DI.mjs → chunk-JFNPMFSP.mjs} +2 -2
- package/lib/{chunk-INMX4E34.mjs → chunk-JLBB25B5.mjs} +1 -1
- package/lib/{chunk-UASF66A2.mjs → chunk-JOU2LHCZ.mjs} +2 -2
- package/lib/{chunk-IJ7BZ3FQ.mjs → chunk-JRFUYD7U.mjs} +2 -2
- package/lib/{chunk-WWBPXBJT.mjs → chunk-JYORSGTM.mjs} +2 -2
- package/lib/{chunk-BNFC4BW2.mjs → chunk-K2JIIRTX.mjs} +1 -1
- package/lib/{chunk-2DMJIJTD.mjs → chunk-KDAZ6BEC.mjs} +3 -3
- package/lib/{chunk-33VW4RVE.mjs → chunk-KPAPQ4IC.mjs} +2 -2
- package/lib/{chunk-I3KHCP2X.mjs → chunk-KTNZEEPJ.mjs} +2 -2
- package/lib/{chunk-UIJLFZYF.mjs → chunk-KYJZK3YJ.mjs} +1 -1
- package/lib/{chunk-P3RZGE6X.mjs → chunk-LFNZETZS.mjs} +3 -3
- package/lib/{chunk-FADGUVGS.mjs → chunk-LKQDPJV3.mjs} +2 -2
- package/lib/{chunk-7HQWD2HW.mjs → chunk-LPOWVAJK.mjs} +2 -2
- package/lib/{chunk-6RNUF4LV.mjs → chunk-LR6UB33S.mjs} +1 -1
- package/lib/{chunk-TZFHL54Q.mjs → chunk-M5IAFQJU.mjs} +1 -1
- package/lib/{chunk-24R7IYOG.mjs → chunk-MAENF3VX.mjs} +4 -4
- package/lib/{chunk-SOW7WGY7.mjs → chunk-MC6ZX32S.mjs} +7 -7
- package/lib/{chunk-WC7HZXMT.mjs → chunk-MEPLLYE4.mjs} +3 -3
- package/lib/{chunk-T4VM27IJ.mjs → chunk-MFQR6S2P.mjs} +1 -1
- package/lib/{chunk-DFR5TVL7.mjs → chunk-MMG2MVYV.mjs} +1 -1
- package/lib/{chunk-OQ6PNNED.mjs → chunk-MR3H2M4V.mjs} +3 -3
- package/lib/{chunk-AMGZXLNR.mjs → chunk-N2ZRITFK.mjs} +3 -3
- package/lib/{chunk-QLJ54D5Q.mjs → chunk-NB23NKHT.mjs} +2 -2
- package/lib/{chunk-WG7MHIX6.mjs → chunk-NOBOKBJV.mjs} +2 -2
- package/lib/{chunk-OUYOYTXI.mjs → chunk-NYLWPJMU.mjs} +2 -2
- package/lib/{chunk-7JMUQSV5.mjs → chunk-NZRHYMSU.mjs} +1 -1
- package/lib/{chunk-JOULFEEZ.mjs → chunk-O26LE2MU.mjs} +2 -2
- package/lib/{chunk-3GLD7T7V.mjs → chunk-O2LVO3J5.mjs} +3 -3
- package/lib/{chunk-7LJJ6SKX.mjs → chunk-O4276YRE.mjs} +3 -3
- package/lib/{chunk-3QN2JTJH.mjs → chunk-O4JDUDIB.mjs} +3 -3
- package/lib/{chunk-OANYLKIF.mjs → chunk-O4THC3SR.mjs} +1 -1
- package/lib/{chunk-HHE7L3CW.mjs → chunk-OHYZ6AS2.mjs} +2 -2
- package/lib/{chunk-4J6WJU6H.mjs → chunk-OKRYV2K5.mjs} +1 -1
- package/lib/{chunk-BBXAF6LS.mjs → chunk-ORKJJOJJ.mjs} +3 -3
- package/lib/{chunk-2ZXXN4R4.mjs → chunk-OV5LZHEB.mjs} +2 -2
- package/lib/{chunk-5UAX67EN.mjs → chunk-P25LYDHG.mjs} +3 -3
- package/lib/{chunk-TXKGISWW.mjs → chunk-PJ76LGUE.mjs} +2 -2
- package/lib/{chunk-44DOSDMV.mjs → chunk-PJKSBYEI.mjs} +1 -1
- package/lib/{chunk-UK4S4W4O.mjs → chunk-PKUBH5X2.mjs} +2 -2
- package/lib/chunk-PMNL6QAW.mjs +75 -0
- package/lib/{chunk-JIGVLQZM.mjs → chunk-PUI5XUNN.mjs} +1 -1
- package/lib/{chunk-VZX5PGQL.mjs → chunk-PZ6AN3SW.mjs} +3 -3
- package/lib/{chunk-MIEXUCOH.mjs → chunk-Q3CNJCLF.mjs} +3 -3
- package/lib/{chunk-YR5WZRJD.mjs → chunk-QEJFO7PR.mjs} +1 -1
- package/lib/{chunk-SFIOTEMN.mjs → chunk-QLJMWP7T.mjs} +2 -2
- package/lib/{chunk-FRZM4C7T.mjs → chunk-QMVD2AXH.mjs} +2 -2
- package/lib/{chunk-WU5VMIX7.mjs → chunk-QNUD6J4U.mjs} +3 -3
- package/lib/{chunk-COHZA3Q6.mjs → chunk-QSMS7EPD.mjs} +2 -2
- package/lib/{chunk-RA7237YI.mjs → chunk-R3PATAKZ.mjs} +3 -3
- package/lib/{chunk-DY3O7TP2.mjs → chunk-R77TROLC.mjs} +1 -1
- package/lib/{chunk-CYSI752N.mjs → chunk-REASBJQM.mjs} +3 -3
- package/lib/{chunk-S76GK7PI.mjs → chunk-RHDHWW2S.mjs} +2 -2
- package/lib/{chunk-Q665G2U7.mjs → chunk-RMYLVQQI.mjs} +4 -4
- package/lib/{chunk-CHKSRCM7.mjs → chunk-RNN54DGP.mjs} +2 -2
- package/lib/{chunk-RXGITNPE.mjs → chunk-ROIMX2WR.mjs} +3 -3
- package/lib/chunk-RTX3I6ZK.mjs +10 -0
- package/lib/{chunk-WRTLMWIM.mjs → chunk-RUOX32PA.mjs} +3 -3
- package/lib/{chunk-DOA3WDEF.mjs → chunk-S7J3C47T.mjs} +1 -1
- package/lib/{chunk-TFDPKEJD.mjs → chunk-S7NWKIXK.mjs} +1 -1
- package/lib/{chunk-3TFMB2ZU.mjs → chunk-SIIM6V43.mjs} +3 -3
- package/lib/{chunk-ABTLCSFA.mjs → chunk-SND7OSS4.mjs} +2 -2
- package/lib/{chunk-3APJ5TJP.mjs → chunk-SNMP7GGG.mjs} +2 -2
- package/lib/{chunk-3OWVPQQ3.mjs → chunk-TDU2S3TS.mjs} +3 -3
- package/lib/{chunk-VDIATO4X.mjs → chunk-TOOAKGKJ.mjs} +3 -3
- package/lib/{chunk-J2YGXNIH.mjs → chunk-TQYLYXDD.mjs} +3 -3
- package/lib/{chunk-M3FKAS2D.mjs → chunk-TT23XPP5.mjs} +2 -2
- package/lib/{chunk-PZ2SAVMT.mjs → chunk-TTOOQXA2.mjs} +2 -2
- package/lib/{chunk-UMCBNLSL.mjs → chunk-TU3M3HXO.mjs} +1 -1
- package/lib/{chunk-Z44CCSOP.mjs → chunk-TVAJEINF.mjs} +1 -1
- package/lib/{chunk-CKEC5R4P.mjs → chunk-U2STNP4N.mjs} +1 -1
- package/lib/{chunk-6QE3IUXA.mjs → chunk-U7ZITDRY.mjs} +2 -2
- package/lib/{chunk-DOYDNMGO.mjs → chunk-UCE7MO2B.mjs} +2 -2
- package/lib/{chunk-UVXTJYNN.mjs → chunk-UGCBEAF4.mjs} +2 -2
- package/lib/{chunk-JDIKK2K5.mjs → chunk-UP6C5CAR.mjs} +2 -2
- package/lib/{chunk-ZUZ6IVLL.mjs → chunk-UXIUWXUF.mjs} +1 -1
- package/lib/{chunk-EFI4OPOL.mjs → chunk-V5NZV3BW.mjs} +1 -1
- package/lib/{chunk-6BMF3QD3.mjs → chunk-V7KCQBOE.mjs} +2 -2
- package/lib/{chunk-NWBGCS6B.mjs → chunk-VFLDE54S.mjs} +3 -3
- package/lib/{chunk-252FYXMD.mjs → chunk-VN4ZXS27.mjs} +4 -4
- package/lib/{chunk-ZWCLOA5C.mjs → chunk-VRAQPSBJ.mjs} +4 -4
- package/lib/{chunk-HSBIO24M.mjs → chunk-VXPAONOR.mjs} +2 -2
- package/lib/{chunk-THX2YDD5.mjs → chunk-W4QFWAZK.mjs} +2 -2
- package/lib/{chunk-NPCDCOTL.mjs → chunk-W4TMRSZ2.mjs} +2 -2
- package/lib/{chunk-QTU7TCVL.mjs → chunk-WCWE6Z45.mjs} +1 -1
- package/lib/{chunk-ELJCCXAM.mjs → chunk-WJPKHTJB.mjs} +2 -2
- package/lib/{chunk-PZP5ZUI3.mjs → chunk-WO4Y2FRW.mjs} +1 -1
- package/lib/{chunk-AEV6FHUQ.mjs → chunk-WRQHV62E.mjs} +1 -1
- package/lib/{chunk-CDK7APZM.mjs → chunk-WXIW56CT.mjs} +2 -2
- package/lib/{chunk-KJ3L7UBY.mjs → chunk-WZ5KQZFN.mjs} +2 -2
- package/lib/{chunk-WB5FKCPB.mjs → chunk-X6HGH62D.mjs} +7 -7
- package/lib/chunk-XCIDMO7T.mjs +10 -0
- package/lib/{chunk-T2NWMSDU.mjs → chunk-XEHYV47R.mjs} +3 -3
- package/lib/{chunk-MV3N2D6T.mjs → chunk-XEMIHTST.mjs} +2 -2
- package/lib/{chunk-VXILM4QO.mjs → chunk-XFHKH7VN.mjs} +2 -2
- package/lib/{chunk-SQGVYXQT.mjs → chunk-XJETMZE6.mjs} +5 -5
- package/lib/{chunk-ZB4OWTDD.mjs → chunk-XUTWIHGC.mjs} +1 -1
- package/lib/{chunk-JFTUDUYA.mjs → chunk-XZ7VW6AY.mjs} +3 -3
- package/lib/{chunk-SWCJ5OOQ.mjs → chunk-Y4NXOCAQ.mjs} +2 -2
- package/lib/{chunk-6YU73H5M.mjs → chunk-Y7OXSD5B.mjs} +1 -1
- package/lib/{chunk-KY7T6Q73.mjs → chunk-Y7SHWYB4.mjs} +3 -3
- package/lib/{chunk-BD73QGIH.mjs → chunk-YJUVXFTO.mjs} +2 -2
- package/lib/{chunk-4LBDW7MG.mjs → chunk-YTLLJ6RH.mjs} +11 -11
- package/lib/{chunk-HS7PWFF3.mjs → chunk-Z6W7GBCH.mjs} +4 -4
- package/lib/{chunk-ILTCTVY7.mjs → chunk-ZETKJIUV.mjs} +1 -1
- package/lib/{chunk-P7P7S4GM.mjs → chunk-ZFISNJY5.mjs} +4 -4
- package/lib/{chunk-O2ACJJBX.mjs → chunk-ZFXTFSU7.mjs} +2 -2
- package/lib/{chunk-2EF72O53.mjs → chunk-ZNADK25G.mjs} +3 -3
- package/lib/{chunk-IZYESQPA.mjs → chunk-ZNXJTPMT.mjs} +1 -1
- package/lib/{chunk-QUKKSRQH.mjs → chunk-ZZ6LK25R.mjs} +2 -2
- package/lib/components/accordion/Accordion.js +31 -4
- package/lib/components/accordion/Accordion.mjs +7 -3
- package/lib/components/accordion/index.js +41 -14
- package/lib/components/accordion/index.mjs +12 -8
- package/lib/components/accordion/index.native.js +1 -1
- package/lib/components/accordion/index.native.mjs +5 -5
- package/lib/components/accordion/item/AccordionItem.js +32 -5
- package/lib/components/accordion/item/AccordionItem.mjs +7 -3
- package/lib/components/accordion/item/AccordionItem.native.js +1 -1
- package/lib/components/accordion/item/AccordionItem.native.mjs +3 -3
- package/lib/components/accordion/item/body/AccordionBody.js +31 -4
- package/lib/components/accordion/item/body/AccordionBody.mjs +7 -3
- package/lib/components/accordion/item/body/index.js +31 -4
- package/lib/components/accordion/item/body/index.mjs +7 -3
- package/lib/components/accordion/item/header/AccordionHeader.js +31 -4
- package/lib/components/accordion/item/header/AccordionHeader.mjs +7 -3
- package/lib/components/accordion/item/header/index.js +31 -4
- package/lib/components/accordion/item/header/index.mjs +7 -3
- package/lib/components/accordion/item/index.js +32 -5
- package/lib/components/accordion/item/index.mjs +7 -3
- package/lib/components/accordion/item/index.native.js +1 -1
- package/lib/components/accordion/item/index.native.mjs +3 -3
- package/lib/components/alert/Alert.js +56 -42
- package/lib/components/alert/Alert.mjs +14 -11
- package/lib/components/alert/Alert.native.js +1 -1
- package/lib/components/alert/Alert.native.mjs +20 -20
- package/lib/components/alert/index.js +56 -42
- package/lib/components/alert/index.mjs +14 -11
- package/lib/components/alert/index.native.js +1 -1
- package/lib/components/alert/index.native.mjs +20 -20
- package/lib/components/autocomplete/AutoComplete.js +104 -90
- package/lib/components/autocomplete/AutoComplete.mjs +28 -25
- package/lib/components/autocomplete/AutoComplete.native.js +1 -1
- package/lib/components/autocomplete/AutoComplete.native.mjs +20 -20
- package/lib/components/autocomplete/index.js +104 -90
- package/lib/components/autocomplete/index.mjs +30 -27
- package/lib/components/autocomplete/index.native.js +26 -7
- package/lib/components/autocomplete/index.native.mjs +32 -29
- package/lib/components/autocomplete/item/AutoCompleteIem.native.js +1 -1
- package/lib/components/autocomplete/item/AutoCompleteIem.native.mjs +3 -3
- package/lib/components/autocomplete/item/AutoCompleteItem.js +31 -4
- package/lib/components/autocomplete/item/AutoCompleteItem.mjs +8 -4
- package/lib/components/autocomplete/item/index.js +31 -4
- package/lib/components/autocomplete/item/index.mjs +9 -5
- package/lib/components/autocomplete/item/index.native.js +1 -1
- package/lib/components/autocomplete/item/index.native.mjs +3 -3
- package/lib/components/autocomplete/menu/AutoCompleteMenu.js +30 -3
- package/lib/components/autocomplete/menu/AutoCompleteMenu.mjs +8 -4
- package/lib/components/autocomplete/menu/AutoCompleteMenu.native.js +1 -1
- package/lib/components/autocomplete/menu/AutoCompleteMenu.native.mjs +16 -16
- package/lib/components/autocomplete/menu/index.js +30 -3
- package/lib/components/autocomplete/menu/index.mjs +9 -5
- package/lib/components/autocomplete/menu/index.native.js +1 -1
- package/lib/components/autocomplete/menu/index.native.mjs +16 -16
- package/lib/components/autolayout/AutoLayout/AutoLayout.native.mjs +2 -2
- package/lib/components/autolayout/AutoLayout/index.native.mjs +2 -2
- package/lib/components/autolayout/AutoLayoutWrapper/index.native.mjs +3 -3
- package/lib/components/autolayout/helpers/AutoLayout.helpers.js +38 -11
- package/lib/components/autolayout/helpers/AutoLayout.helpers.mjs +7 -3
- package/lib/components/autolayout/index.native.mjs +3 -3
- package/lib/components/badge/Badge.js +37 -23
- package/lib/components/badge/Badge.mjs +9 -6
- package/lib/components/badge/Badge.native.js +1 -1
- package/lib/components/badge/Badge.native.mjs +14 -14
- package/lib/components/badge/index.js +37 -23
- package/lib/components/badge/index.mjs +9 -6
- package/lib/components/badge/index.native.js +1 -1
- package/lib/components/badge/index.native.mjs +14 -14
- package/lib/components/box/Box.js +30 -16
- package/lib/components/box/Box.mjs +7 -4
- package/lib/components/box/Box.native.js +1 -1
- package/lib/components/box/Box.native.mjs +2 -2
- package/lib/components/box/content/BoxContent.js +32 -18
- package/lib/components/box/content/BoxContent.mjs +8 -5
- package/lib/components/box/content/index.js +32 -18
- package/lib/components/box/content/index.mjs +9 -6
- package/lib/components/box/footer/BoxFooter.js +32 -18
- package/lib/components/box/footer/BoxFooter.mjs +8 -5
- package/lib/components/box/footer/BoxFooter.native.js +1 -1
- package/lib/components/box/footer/BoxFooter.native.mjs +13 -13
- package/lib/components/box/footer/index.js +32 -18
- package/lib/components/box/footer/index.mjs +9 -6
- package/lib/components/box/footer/index.native.js +1 -1
- package/lib/components/box/footer/index.native.mjs +13 -13
- package/lib/components/box/header/BoxHeader.js +32 -18
- package/lib/components/box/header/BoxHeader.mjs +8 -5
- package/lib/components/box/header/BoxHeader.native.js +1 -1
- package/lib/components/box/header/BoxHeader.native.mjs +2 -2
- package/lib/components/box/header/index.js +32 -18
- package/lib/components/box/header/index.mjs +9 -6
- package/lib/components/box/header/index.native.js +1 -1
- package/lib/components/box/header/index.native.mjs +2 -2
- package/lib/components/box/index.js +45 -31
- package/lib/components/box/index.mjs +21 -18
- package/lib/components/box/index.native.js +1 -1
- package/lib/components/box/index.native.mjs +15 -15
- package/lib/components/box/item/BoxItem.js +31 -4
- package/lib/components/box/item/BoxItem.mjs +7 -3
- package/lib/components/box/item/index.js +31 -4
- package/lib/components/box/item/index.mjs +8 -4
- package/lib/components/box/table-container/BoxTableContainer.js +31 -4
- package/lib/components/box/table-container/BoxTableContainer.mjs +7 -3
- package/lib/components/box/table-container/index.js +31 -4
- package/lib/components/box/table-container/index.mjs +8 -4
- package/lib/components/breadcrumb/Breadcrumb.js +32 -5
- package/lib/components/breadcrumb/Breadcrumb.mjs +7 -3
- package/lib/components/breadcrumb/Breadcrumb.native.js +1 -1
- package/lib/components/breadcrumb/Breadcrumb.native.mjs +3 -3
- package/lib/components/breadcrumb/index.js +47 -33
- package/lib/components/breadcrumb/index.mjs +11 -8
- package/lib/components/breadcrumb/index.native.js +1 -1
- package/lib/components/breadcrumb/index.native.mjs +5 -5
- package/lib/components/breadcrumb/item/BreadcrumbItem.js +43 -29
- package/lib/components/breadcrumb/item/BreadcrumbItem.mjs +10 -7
- package/lib/components/breadcrumb/item/BreadcrumbItem.native.js +1 -1
- package/lib/components/breadcrumb/item/BreadcrumbItem.native.mjs +3 -3
- package/lib/components/breadcrumb/item/index.js +43 -29
- package/lib/components/breadcrumb/item/index.mjs +10 -7
- package/lib/components/breadcrumb/item/index.native.js +1 -1
- package/lib/components/breadcrumb/item/index.native.mjs +3 -3
- package/lib/components/button/Button.js +40 -26
- package/lib/components/button/Button.mjs +9 -6
- package/lib/components/button/Button.native.js +1 -1
- package/lib/components/button/Button.native.mjs +15 -15
- package/lib/components/button/index.js +43 -29
- package/lib/components/button/index.mjs +10 -7
- package/lib/components/button/index.native.js +1 -1
- package/lib/components/button/index.native.mjs +15 -15
- package/lib/components/button/list/ButtonList.js +31 -4
- package/lib/components/button/list/ButtonList.mjs +8 -4
- package/lib/components/button/list/index.js +31 -4
- package/lib/components/button/list/index.mjs +8 -4
- package/lib/components/calendar/Calendar.js +173 -159
- package/lib/components/calendar/Calendar.mjs +28 -25
- package/lib/components/calendar/Calendar.native.js +1 -1
- package/lib/components/calendar/Calendar.native.mjs +4 -4
- package/lib/components/calendar/index.js +173 -159
- package/lib/components/calendar/index.mjs +28 -25
- package/lib/components/calendar/index.native.js +1 -1
- package/lib/components/calendar/index.native.mjs +4 -4
- package/lib/components/card/Card.js +33 -6
- package/lib/components/card/Card.mjs +7 -3
- package/lib/components/card/Card.native.js +1 -1
- package/lib/components/card/Card.native.mjs +2 -2
- package/lib/components/card/content/CardContent.js +31 -4
- package/lib/components/card/content/CardContent.mjs +7 -3
- package/lib/components/card/content/CardContent.native.js +1 -1
- package/lib/components/card/content/CardContent.native.mjs +3 -3
- package/lib/components/card/content/index.js +31 -4
- package/lib/components/card/content/index.mjs +8 -4
- package/lib/components/card/content/index.native.js +1 -1
- package/lib/components/card/content/index.native.mjs +3 -3
- package/lib/components/card/image/CardImage.js +32 -5
- package/lib/components/card/image/CardImage.mjs +7 -3
- package/lib/components/card/image/CardImage.native.js +1 -1
- package/lib/components/card/image/CardImage.native.mjs +3 -3
- package/lib/components/card/image/index.js +32 -5
- package/lib/components/card/image/index.mjs +8 -4
- package/lib/components/card/image/index.native.js +1 -1
- package/lib/components/card/image/index.native.mjs +3 -3
- package/lib/components/card/index.js +40 -13
- package/lib/components/card/index.mjs +13 -9
- package/lib/components/card/index.native.js +1 -1
- package/lib/components/card/index.native.mjs +4 -4
- package/lib/components/checkbox/Checkbox.js +35 -8
- package/lib/components/checkbox/Checkbox.mjs +7 -3
- package/lib/components/checkbox/Checkbox.native.js +1 -1
- package/lib/components/checkbox/Checkbox.native.mjs +4 -4
- package/lib/components/checkbox/index.js +63 -49
- package/lib/components/checkbox/index.mjs +27 -24
- package/lib/components/checkbox/index.native.js +1 -1
- package/lib/components/checkbox/index.native.mjs +23 -23
- package/lib/components/checkbox/list/CheckboxList.js +42 -28
- package/lib/components/checkbox/list/CheckboxList.mjs +21 -18
- package/lib/components/checkbox/list/CheckboxList.native.js +1 -1
- package/lib/components/checkbox/list/CheckboxList.native.mjs +7 -7
- package/lib/components/checkbox/list/index.js +42 -28
- package/lib/components/checkbox/list/index.mjs +21 -18
- package/lib/components/checkbox/list/index.native.js +1 -1
- package/lib/components/checkbox/list/index.native.mjs +7 -7
- package/lib/components/checkbox/tiles/CheckboxTiles.js +34 -7
- package/lib/components/checkbox/tiles/CheckboxTiles.mjs +7 -3
- package/lib/components/checkbox/tiles/index.js +34 -7
- package/lib/components/checkbox/tiles/index.mjs +7 -3
- package/lib/components/checkbox/tiles/tile/CheckboxTile.js +44 -30
- package/lib/components/checkbox/tiles/tile/CheckboxTile.mjs +20 -17
- package/lib/components/checkbox/tiles/tile/CheckboxTile.native.js +1 -1
- package/lib/components/checkbox/tiles/tile/CheckboxTile.native.mjs +18 -18
- package/lib/components/checkbox/tiles/tile/index.js +44 -30
- package/lib/components/checkbox/tiles/tile/index.mjs +20 -17
- package/lib/components/checkbox/tiles/tile/index.native.js +1 -1
- package/lib/components/checkbox/tiles/tile/index.native.mjs +18 -18
- package/lib/components/chips/Chips.js +31 -4
- package/lib/components/chips/Chips.mjs +7 -3
- package/lib/components/chips/Chips.native.js +1 -1
- package/lib/components/chips/Chips.native.mjs +5 -5
- package/lib/components/chips/index.js +34 -7
- package/lib/components/chips/index.mjs +8 -4
- package/lib/components/chips/index.native.js +1 -1
- package/lib/components/chips/index.native.mjs +5 -5
- package/lib/components/chips/list/ChipsList.js +31 -4
- package/lib/components/chips/list/ChipsList.mjs +7 -3
- package/lib/components/chips/list/index.js +31 -4
- package/lib/components/chips/list/index.mjs +7 -3
- package/lib/components/columns/Columns.js +31 -4
- package/lib/components/columns/Columns.mjs +8 -4
- package/lib/components/columns/column/Column.js +31 -4
- package/lib/components/columns/column/Column.mjs +7 -3
- package/lib/components/columns/column/Column.native.js +1 -1
- package/lib/components/columns/column/Column.native.mjs +13 -13
- package/lib/components/columns/column/index.js +31 -4
- package/lib/components/columns/column/index.mjs +8 -4
- package/lib/components/columns/column/index.native.js +1 -1
- package/lib/components/columns/column/index.native.mjs +13 -13
- package/lib/components/columns/index.js +34 -7
- package/lib/components/columns/index.mjs +10 -6
- package/lib/components/columns/index.native.js +1 -1
- package/lib/components/columns/index.native.mjs +13 -13
- package/lib/components/container/Container.js +31 -4
- package/lib/components/container/Container.mjs +7 -3
- package/lib/components/container/index.js +31 -4
- package/lib/components/container/index.mjs +7 -3
- package/lib/components/countdown/Countdown.js +36 -9
- package/lib/components/countdown/Countdown.mjs +7 -3
- package/lib/components/countdown/Countdown.native.js +1 -1
- package/lib/components/countdown/Countdown.native.mjs +3 -3
- package/lib/components/countdown/index.js +36 -9
- package/lib/components/countdown/index.mjs +7 -3
- package/lib/components/countdown/index.native.js +1 -1
- package/lib/components/countdown/index.native.mjs +3 -3
- package/lib/components/datepicker/DatePicker.js +259 -245
- package/lib/components/datepicker/DatePicker.mjs +38 -35
- package/lib/components/datepicker/DatePicker.native.js +9 -9
- package/lib/components/datepicker/DatePicker.native.mjs +5 -5
- package/lib/components/datepicker/index.js +259 -245
- package/lib/components/datepicker/index.mjs +38 -35
- package/lib/components/datepicker/index.native.js +9 -9
- package/lib/components/datepicker/index.native.mjs +5 -5
- package/lib/components/divider/Divider.js +35 -21
- package/lib/components/divider/Divider.mjs +9 -6
- package/lib/components/divider/Divider.native.js +1 -1
- package/lib/components/divider/Divider.native.mjs +4 -4
- package/lib/components/divider/index.js +35 -21
- package/lib/components/divider/index.mjs +9 -6
- package/lib/components/divider/index.native.js +1 -1
- package/lib/components/divider/index.native.mjs +4 -4
- package/lib/components/fab/Fab.js +38 -24
- package/lib/components/fab/Fab.mjs +9 -6
- package/lib/components/fab/Fab.native.js +1 -1
- package/lib/components/fab/Fab.native.mjs +15 -15
- package/lib/components/fab/index.js +38 -24
- package/lib/components/fab/index.mjs +9 -6
- package/lib/components/fab/index.native.js +1 -1
- package/lib/components/fab/index.native.mjs +15 -15
- package/lib/components/flex-box/FlexBox.js +31 -4
- package/lib/components/flex-box/FlexBox.mjs +8 -4
- package/lib/components/flex-box/FlexBox.native.js +1 -1
- package/lib/components/flex-box/FlexBox.native.mjs +14 -14
- package/lib/components/flex-box/flex-item/FlexItem.js +31 -4
- package/lib/components/flex-box/flex-item/FlexItem.mjs +7 -3
- package/lib/components/flex-box/index.js +34 -7
- package/lib/components/flex-box/index.mjs +9 -5
- package/lib/components/flex-box/index.native.js +1 -1
- package/lib/components/flex-box/index.native.mjs +14 -14
- package/lib/components/hero/Hero.js +31 -17
- package/lib/components/hero/Hero.mjs +7 -4
- package/lib/components/hero/Hero.native.js +1 -1
- package/lib/components/hero/Hero.native.mjs +16 -16
- package/lib/components/hero/index.js +31 -17
- package/lib/components/hero/index.mjs +7 -4
- package/lib/components/hero/index.native.js +1 -1
- package/lib/components/hero/index.native.mjs +16 -16
- package/lib/components/icon/Icon.js +32 -18
- package/lib/components/icon/Icon.mjs +8 -5
- package/lib/components/icon/Icon.native.js +1 -1
- package/lib/components/icon/Icon.native.mjs +2 -2
- package/lib/components/icon/index.js +32 -18
- package/lib/components/icon/index.mjs +8 -5
- package/lib/components/icon/index.native.js +1 -1
- package/lib/components/icon/index.native.mjs +2 -2
- package/lib/components/image/Image.js +37 -23
- package/lib/components/image/Image.mjs +19 -16
- package/lib/components/image/index.js +37 -23
- package/lib/components/image/index.mjs +19 -16
- package/lib/components/index.js +679 -665
- package/lib/components/index.mjs +196 -193
- package/lib/components/index.native.js +639 -637
- package/lib/components/index.native.mjs +143 -141
- package/lib/components/input/Input.js +87 -73
- package/lib/components/input/Input.mjs +23 -20
- package/lib/components/input/Input.native.js +1 -1
- package/lib/components/input/Input.native.mjs +17 -17
- package/lib/components/input/gauge/InputGauge.js +57 -43
- package/lib/components/input/gauge/InputGauge.mjs +19 -16
- package/lib/components/input/gauge/InputGauge.native.js +1 -1
- package/lib/components/input/gauge/InputGauge.native.mjs +15 -15
- package/lib/components/input/gauge/hook/useGauge.js +47 -33
- package/lib/components/input/gauge/hook/useGauge.mjs +18 -15
- package/lib/components/input/gauge/hook/useGauge.native.js +1 -1
- package/lib/components/input/gauge/hook/useGauge.native.mjs +13 -13
- package/lib/components/input/index.js +87 -73
- package/lib/components/input/index.mjs +23 -20
- package/lib/components/input/index.native.js +1 -1
- package/lib/components/input/index.native.mjs +17 -17
- package/lib/components/link/Link.js +39 -25
- package/lib/components/link/Link.mjs +9 -6
- package/lib/components/link/Link.native.js +1 -1
- package/lib/components/link/Link.native.mjs +3 -3
- package/lib/components/link/index.js +39 -25
- package/lib/components/link/index.mjs +9 -6
- package/lib/components/link/index.native.js +1 -1
- package/lib/components/link/index.native.mjs +3 -3
- package/lib/components/list/List.js +31 -4
- package/lib/components/list/List.mjs +7 -3
- package/lib/components/list/List.native.mjs +1 -1
- package/lib/components/list/context/index.mjs +1 -1
- package/lib/components/list/index.js +43 -29
- package/lib/components/list/index.mjs +21 -18
- package/lib/components/list/index.native.js +1 -1
- package/lib/components/list/index.native.mjs +17 -17
- package/lib/components/list/item/ListItem.js +37 -23
- package/lib/components/list/item/ListItem.mjs +19 -16
- package/lib/components/list/item/ListItem.native.js +1 -1
- package/lib/components/list/item/ListItem.native.mjs +16 -16
- package/lib/components/list/item/description/ListItemDescription.js +31 -4
- package/lib/components/list/item/description/ListItemDescription.mjs +8 -4
- package/lib/components/list/item/description/ListItemDescription.native.js +1 -1
- package/lib/components/list/item/description/ListItemDescription.native.mjs +16 -16
- package/lib/components/list/item/description/index.js +31 -4
- package/lib/components/list/item/description/index.mjs +8 -4
- package/lib/components/list/item/description/index.native.js +1 -1
- package/lib/components/list/item/description/index.native.mjs +16 -16
- package/lib/components/list/item/index.js +40 -26
- package/lib/components/list/item/index.mjs +20 -17
- package/lib/components/list/item/index.native.js +1 -1
- package/lib/components/list/item/index.native.mjs +17 -17
- package/lib/components/modal/Modal.js +64 -50
- package/lib/components/modal/Modal.mjs +13 -10
- package/lib/components/modal/Modal.native.js +1 -1
- package/lib/components/modal/Modal.native.mjs +15 -15
- package/lib/components/modal/body/ModalBody.js +31 -4
- package/lib/components/modal/body/ModalBody.mjs +8 -4
- package/lib/components/modal/body/ModalBody.native.js +1 -1
- package/lib/components/modal/body/ModalBody.native.mjs +13 -13
- package/lib/components/modal/body/index.native.js +1 -1
- package/lib/components/modal/body/index.native.mjs +13 -13
- package/lib/components/modal/footer/ModalFooter.js +31 -4
- package/lib/components/modal/footer/ModalFooter.mjs +8 -4
- package/lib/components/modal/footer/ModalFooter.native.js +1 -1
- package/lib/components/modal/footer/ModalFooter.native.mjs +15 -15
- package/lib/components/modal/footer/index.native.js +1 -1
- package/lib/components/modal/footer/index.native.mjs +15 -15
- package/lib/components/modal/index.js +70 -56
- package/lib/components/modal/index.mjs +17 -14
- package/lib/components/modal/index.native.js +1 -1
- package/lib/components/modal/index.native.mjs +16 -16
- package/lib/components/otp/Otp.js +43 -29
- package/lib/components/otp/Otp.mjs +8 -5
- package/lib/components/otp/Otp.native.js +1 -1
- package/lib/components/otp/Otp.native.mjs +16 -16
- package/lib/components/otp/index.js +43 -29
- package/lib/components/otp/index.mjs +8 -5
- package/lib/components/otp/index.native.js +1 -1
- package/lib/components/otp/index.native.mjs +16 -16
- package/lib/components/pagination/Pagination.js +44 -30
- package/lib/components/pagination/Pagination.mjs +9 -6
- package/lib/components/pagination/Pagination.native.js +1 -1
- package/lib/components/pagination/Pagination.native.mjs +4 -4
- package/lib/components/pagination/index.js +44 -30
- package/lib/components/pagination/index.mjs +9 -6
- package/lib/components/pagination/index.native.js +1 -1
- package/lib/components/pagination/index.native.mjs +4 -4
- package/lib/components/popover/Popover.js +31 -4
- package/lib/components/popover/Popover.mjs +7 -3
- package/lib/components/popover/Popover.native.js +1 -1
- package/lib/components/popover/Popover.native.mjs +13 -13
- package/lib/components/popover/index.js +31 -4
- package/lib/components/popover/index.mjs +7 -3
- package/lib/components/popover/index.native.js +1 -1
- package/lib/components/popover/index.native.mjs +13 -13
- package/lib/components/price/Price.js +43 -29
- package/lib/components/price/Price.mjs +20 -17
- package/lib/components/price/Price.native.js +1 -1
- package/lib/components/price/Price.native.mjs +14 -14
- package/lib/components/price/index.js +43 -29
- package/lib/components/price/index.mjs +20 -17
- package/lib/components/price/index.native.js +1 -1
- package/lib/components/price/index.native.mjs +14 -14
- package/lib/components/product-tour/ProductTour.js +37 -23
- package/lib/components/product-tour/ProductTour.mjs +9 -6
- package/lib/components/product-tour/index.js +37 -23
- package/lib/components/product-tour/index.mjs +9 -6
- package/lib/components/progress/Progress.js +40 -26
- package/lib/components/progress/Progress.mjs +21 -18
- package/lib/components/progress/Progress.native.js +1 -1
- package/lib/components/progress/Progress.native.mjs +16 -16
- package/lib/components/progress/index.js +57 -43
- package/lib/components/progress/index.mjs +28 -25
- package/lib/components/progress/index.native.js +1 -1
- package/lib/components/progress/index.native.mjs +20 -20
- package/lib/components/progress/item/ProgressItem.js +36 -22
- package/lib/components/progress/item/ProgressItem.mjs +19 -16
- package/lib/components/progress/item/index.js +36 -22
- package/lib/components/progress/item/index.mjs +20 -17
- package/lib/components/progress/radial/ProgressRadial.js +44 -30
- package/lib/components/progress/radial/ProgressRadial.mjs +12 -9
- package/lib/components/progress/radial/ProgressRadial.native.js +1 -1
- package/lib/components/progress/radial/ProgressRadial.native.mjs +15 -15
- package/lib/components/progress/radial/index.js +44 -30
- package/lib/components/progress/radial/index.mjs +13 -10
- package/lib/components/progress/radial/index.native.js +1 -1
- package/lib/components/progress/radial/index.native.mjs +15 -15
- package/lib/components/progress/radial/item/ProgressRadialtem.js +30 -3
- package/lib/components/progress/radial/item/ProgressRadialtem.mjs +8 -4
- package/lib/components/progress/radial/item/index.js +30 -3
- package/lib/components/progress/radial/item/index.mjs +8 -4
- package/lib/components/radio/Radio.js +33 -6
- package/lib/components/radio/Radio.mjs +7 -3
- package/lib/components/radio/Radio.native.js +1 -1
- package/lib/components/radio/Radio.native.mjs +15 -15
- package/lib/components/radio/index.js +58 -44
- package/lib/components/radio/index.mjs +26 -23
- package/lib/components/radio/index.native.js +83 -77
- package/lib/components/radio/index.native.mjs +28 -26
- package/lib/components/radio/list/RadioList.js +42 -28
- package/lib/components/radio/list/RadioList.mjs +21 -18
- package/lib/components/radio/list/RadioList.native.js +39 -25
- package/lib/components/radio/list/RadioList.native.mjs +12 -9
- package/lib/components/radio/list/index.js +42 -28
- package/lib/components/radio/list/index.mjs +21 -18
- package/lib/components/radio/list/index.native.js +39 -25
- package/lib/components/radio/list/index.native.mjs +12 -9
- package/lib/components/radio/tiles/RadioTiles.js +39 -25
- package/lib/components/radio/tiles/RadioTiles.mjs +19 -16
- package/lib/components/radio/tiles/index.js +39 -25
- package/lib/components/radio/tiles/index.mjs +19 -16
- package/lib/components/radio/tiles/tile/RadioTile.js +41 -27
- package/lib/components/radio/tiles/tile/RadioTile.mjs +20 -17
- package/lib/components/radio/tiles/tile/RadioTile.native.js +1 -1
- package/lib/components/radio/tiles/tile/RadioTile.native.mjs +17 -17
- package/lib/components/radio/tiles/tile/index.js +41 -27
- package/lib/components/radio/tiles/tile/index.mjs +20 -17
- package/lib/components/radio/tiles/tile/index.native.js +1 -1
- package/lib/components/radio/tiles/tile/index.native.mjs +17 -17
- package/lib/components/range/Range.js +51 -37
- package/lib/components/range/Range.mjs +19 -16
- package/lib/components/range/Range.native.js +1 -1
- package/lib/components/range/Range.native.mjs +15 -15
- package/lib/components/range/index.js +51 -37
- package/lib/components/range/index.mjs +19 -16
- package/lib/components/range/index.native.js +1 -1
- package/lib/components/range/index.native.mjs +15 -15
- package/lib/components/rows/Rows.js +31 -4
- package/lib/components/rows/Rows.mjs +8 -4
- package/lib/components/rows/index.js +34 -7
- package/lib/components/rows/index.mjs +10 -6
- package/lib/components/rows/row/Row.js +31 -4
- package/lib/components/rows/row/Row.mjs +8 -4
- package/lib/components/rows/row/index.js +31 -4
- package/lib/components/rows/row/index.mjs +9 -5
- package/lib/components/scroll-view/ScrollView.js +36 -22
- package/lib/components/scroll-view/ScrollView.mjs +19 -16
- package/lib/components/scroll-view/ScrollView.native.js +1 -1
- package/lib/components/scroll-view/ScrollView.native.mjs +13 -13
- package/lib/components/scroll-view/index.js +36 -22
- package/lib/components/scroll-view/index.mjs +19 -16
- package/lib/components/scroll-view/index.native.js +1 -1
- package/lib/components/scroll-view/index.native.mjs +13 -13
- package/lib/components/section/Section.js +36 -22
- package/lib/components/section/Section.mjs +19 -16
- package/lib/components/section/Section.native.js +1 -1
- package/lib/components/section/Section.native.mjs +13 -13
- package/lib/components/section/index.js +36 -22
- package/lib/components/section/index.mjs +19 -16
- package/lib/components/section/index.native.js +1 -1
- package/lib/components/section/index.native.mjs +13 -13
- package/lib/components/segment-control/SegmentControl.js +45 -31
- package/lib/components/segment-control/SegmentControl.mjs +21 -18
- package/lib/components/segment-control/SegmentControl.native.js +33 -14
- package/lib/components/segment-control/SegmentControl.native.mjs +24 -21
- package/lib/components/segment-control/index.js +45 -31
- package/lib/components/segment-control/index.mjs +21 -18
- package/lib/components/segment-control/index.native.js +39 -20
- package/lib/components/segment-control/index.native.mjs +24 -21
- package/lib/components/segment-control/item/SegmentControlItem.js +33 -6
- package/lib/components/segment-control/item/SegmentControlItem.mjs +8 -4
- package/lib/components/segment-control/item/index.js +33 -6
- package/lib/components/segment-control/item/index.mjs +9 -5
- package/lib/components/select/Select.js +131 -117
- package/lib/components/select/Select.mjs +27 -24
- package/lib/components/select/Select.native.js +1 -1
- package/lib/components/select/Select.native.mjs +26 -26
- package/lib/components/select/index.js +131 -117
- package/lib/components/select/index.mjs +27 -24
- package/lib/components/select/index.native.js +1 -1
- package/lib/components/select/index.native.mjs +26 -26
- package/lib/components/select/option/SelectOption.js +40 -26
- package/lib/components/select/option/SelectOption.mjs +9 -6
- package/lib/components/select/option/SelectOption.native.js +1 -1
- package/lib/components/select/option/SelectOption.native.mjs +15 -15
- package/lib/components/select/option/index.js +40 -26
- package/lib/components/select/option/index.mjs +10 -7
- package/lib/components/select/option/index.native.js +1 -1
- package/lib/components/select/option/index.native.mjs +16 -16
- package/lib/components/select/web/SelectDynamic.js +105 -91
- package/lib/components/select/web/SelectDynamic.mjs +24 -21
- package/lib/components/select/web/SelectNative.js +133 -119
- package/lib/components/select/web/SelectNative.mjs +27 -24
- package/lib/components/select/web/index.js +133 -119
- package/lib/components/select/web/index.mjs +27 -24
- package/lib/components/skeleton/Skeleton.d.mts +13 -0
- package/lib/components/skeleton/Skeleton.d.ts +13 -0
- package/lib/components/skeleton/Skeleton.native.d.mts +12 -0
- package/lib/components/skeleton/Skeleton.native.d.ts +12 -0
- package/lib/components/spacer/Spacer.js +31 -4
- package/lib/components/spacer/Spacer.mjs +7 -3
- package/lib/components/spacer/index.js +31 -4
- package/lib/components/spacer/index.mjs +7 -3
- package/lib/components/stepper/Stepper.js +37 -10
- package/lib/components/stepper/Stepper.mjs +9 -5
- package/lib/components/stepper/Stepper.native.js +1 -1
- package/lib/components/stepper/Stepper.native.mjs +15 -15
- package/lib/components/stepper/index.js +44 -30
- package/lib/components/stepper/index.mjs +12 -9
- package/lib/components/stepper/index.native.js +1 -1
- package/lib/components/stepper/index.native.mjs +15 -15
- package/lib/components/stepper/step/Step.js +35 -21
- package/lib/components/stepper/step/Step.mjs +9 -6
- package/lib/components/stepper/step/Step.native.js +1 -1
- package/lib/components/stepper/step/Step.native.mjs +13 -13
- package/lib/components/stepper/step/index.js +35 -21
- package/lib/components/stepper/step/index.mjs +10 -7
- package/lib/components/stepper/step/index.native.js +1 -1
- package/lib/components/stepper/step/index.native.mjs +13 -13
- package/lib/components/sticker/Sticker.js +36 -22
- package/lib/components/sticker/Sticker.mjs +19 -16
- package/lib/components/sticker/Sticker.native.js +1 -1
- package/lib/components/sticker/Sticker.native.mjs +15 -15
- package/lib/components/sticker/index.js +36 -22
- package/lib/components/sticker/index.mjs +19 -16
- package/lib/components/sticker/index.native.js +1 -1
- package/lib/components/sticker/index.native.mjs +15 -15
- package/lib/components/switch/Switch.js +42 -28
- package/lib/components/switch/Switch.mjs +19 -16
- package/lib/components/switch/Switch.native.js +1 -1
- package/lib/components/switch/Switch.native.mjs +13 -13
- package/lib/components/switch/index.js +42 -28
- package/lib/components/switch/index.mjs +19 -16
- package/lib/components/switch/index.native.js +1 -1
- package/lib/components/switch/index.native.mjs +13 -13
- package/lib/components/table/Table.js +31 -4
- package/lib/components/table/Table.mjs +7 -3
- package/lib/components/table/Table.native.js +1 -1
- package/lib/components/table/Table.native.mjs +13 -13
- package/lib/components/table/body/TableBody.js +32 -18
- package/lib/components/table/body/TableBody.mjs +7 -4
- package/lib/components/table/body/index.js +32 -18
- package/lib/components/table/body/index.mjs +8 -5
- package/lib/components/table/head/TableHead.js +32 -18
- package/lib/components/table/head/TableHead.mjs +7 -4
- package/lib/components/table/head/index.js +32 -18
- package/lib/components/table/head/index.mjs +8 -5
- package/lib/components/table/index.js +47 -33
- package/lib/components/table/index.mjs +20 -17
- package/lib/components/table/index.native.js +1 -1
- package/lib/components/table/index.native.mjs +20 -20
- package/lib/components/table/td/TableTd.js +31 -4
- package/lib/components/table/td/TableTd.mjs +7 -3
- package/lib/components/table/td/TableTd.native.js +1 -1
- package/lib/components/table/td/TableTd.native.mjs +13 -13
- package/lib/components/table/td/index.js +31 -4
- package/lib/components/table/td/index.mjs +8 -4
- package/lib/components/table/td/index.native.js +1 -1
- package/lib/components/table/td/index.native.mjs +13 -13
- package/lib/components/table/th/TableTh.js +31 -4
- package/lib/components/table/th/TableTh.mjs +7 -3
- package/lib/components/table/th/TableTh.native.js +1 -1
- package/lib/components/table/th/TableTh.native.mjs +16 -16
- package/lib/components/table/th/index.js +31 -4
- package/lib/components/table/th/index.mjs +8 -4
- package/lib/components/table/th/index.native.js +1 -1
- package/lib/components/table/th/index.native.mjs +16 -16
- package/lib/components/table/tr/TableTr.js +32 -18
- package/lib/components/table/tr/TableTr.mjs +7 -4
- package/lib/components/table/tr/TableTr.native.js +1 -1
- package/lib/components/table/tr/TableTr.native.mjs +16 -16
- package/lib/components/table/tr/index.js +32 -18
- package/lib/components/table/tr/index.mjs +8 -5
- package/lib/components/table/tr/index.native.js +1 -1
- package/lib/components/table/tr/index.native.mjs +16 -16
- package/lib/components/tabs/Tabs.js +35 -8
- package/lib/components/tabs/Tabs.mjs +7 -3
- package/lib/components/tabs/index.js +86 -72
- package/lib/components/tabs/index.mjs +17 -14
- package/lib/components/tabs/index.native.js +2 -6
- package/lib/components/tabs/index.native.mjs +20 -20
- package/lib/components/tabs/tab-list/TabList.js +72 -58
- package/lib/components/tabs/tab-list/TabList.mjs +13 -10
- package/lib/components/tabs/tab-list/TabList.native.js +2 -6
- package/lib/components/tabs/tab-list/TabList.native.mjs +16 -16
- package/lib/components/tabs/tab-list/index.js +72 -58
- package/lib/components/tabs/tab-list/index.mjs +13 -10
- package/lib/components/tabs/tab-list/index.native.js +2 -6
- package/lib/components/tabs/tab-list/index.native.mjs +16 -16
- package/lib/components/tabs/tab-list/tab/Tab.js +46 -32
- package/lib/components/tabs/tab-list/tab/Tab.mjs +10 -7
- package/lib/components/tabs/tab-list/tab/Tab.native.js +2 -6
- package/lib/components/tabs/tab-list/tab/Tab.native.mjs +4 -4
- package/lib/components/tabs/tab-list/tab/index.js +46 -32
- package/lib/components/tabs/tab-list/tab/index.mjs +10 -7
- package/lib/components/tabs/tab-list/tab/index.native.js +2 -6
- package/lib/components/tabs/tab-list/tab/index.native.mjs +4 -4
- package/lib/components/tabs/tab-panels/TabPanels.js +37 -10
- package/lib/components/tabs/tab-panels/TabPanels.mjs +9 -5
- package/lib/components/tabs/tab-panels/TabPanels.native.js +1 -1
- package/lib/components/tabs/tab-panels/TabPanels.native.mjs +13 -13
- package/lib/components/tabs/tab-panels/index.js +37 -10
- package/lib/components/tabs/tab-panels/index.mjs +9 -5
- package/lib/components/tabs/tab-panels/index.native.js +1 -1
- package/lib/components/tabs/tab-panels/index.native.mjs +13 -13
- package/lib/components/tabs/tab-panels/tab-panel/TabPanel.js +32 -5
- package/lib/components/tabs/tab-panels/tab-panel/TabPanel.mjs +7 -3
- package/lib/components/tabs/tab-panels/tab-panel/index.js +32 -5
- package/lib/components/tabs/tab-panels/tab-panel/index.mjs +8 -4
- package/lib/components/tag/Tag.js +35 -21
- package/lib/components/tag/Tag.mjs +9 -6
- package/lib/components/tag/Tag.native.js +1 -1
- package/lib/components/tag/Tag.native.mjs +3 -3
- package/lib/components/tag/index.js +39 -25
- package/lib/components/tag/index.mjs +21 -18
- package/lib/components/tag/index.native.js +1 -1
- package/lib/components/tag/index.native.mjs +3 -3
- package/lib/components/tag/list/TagList.js +36 -22
- package/lib/components/tag/list/TagList.mjs +19 -16
- package/lib/components/tag/list/index.js +36 -22
- package/lib/components/tag/list/index.mjs +20 -17
- package/lib/components/text/Text.js +31 -4
- package/lib/components/text/Text.mjs +7 -3
- package/lib/components/text/Text.native.js +1 -1
- package/lib/components/text/Text.native.mjs +2 -2
- package/lib/components/text/index.js +31 -4
- package/lib/components/text/index.mjs +7 -3
- package/lib/components/text/index.native.js +1 -1
- package/lib/components/text/index.native.mjs +2 -2
- package/lib/components/textarea/Textarea.js +42 -28
- package/lib/components/textarea/Textarea.mjs +21 -18
- package/lib/components/textarea/Textarea.native.js +1 -1
- package/lib/components/textarea/Textarea.native.mjs +16 -16
- package/lib/components/textarea/index.js +42 -28
- package/lib/components/textarea/index.mjs +21 -18
- package/lib/components/textarea/index.native.js +1 -1
- package/lib/components/textarea/index.native.mjs +16 -16
- package/lib/components/timeline/Timeline.js +31 -4
- package/lib/components/timeline/Timeline.mjs +8 -4
- package/lib/components/timeline/content/TimelineContent.js +46 -32
- package/lib/components/timeline/content/TimelineContent.mjs +11 -8
- package/lib/components/timeline/content/TimelineContent.native.js +1 -1
- package/lib/components/timeline/content/TimelineContent.native.mjs +20 -20
- package/lib/components/timeline/content/index.js +46 -32
- package/lib/components/timeline/content/index.mjs +12 -9
- package/lib/components/timeline/content/index.native.js +1 -1
- package/lib/components/timeline/content/index.native.mjs +20 -20
- package/lib/components/timeline/index.js +55 -41
- package/lib/components/timeline/index.mjs +19 -16
- package/lib/components/timeline/index.native.js +1 -1
- package/lib/components/timeline/index.native.mjs +22 -22
- package/lib/components/timeline/item/TimelineItem.js +31 -4
- package/lib/components/timeline/item/TimelineItem.mjs +8 -4
- package/lib/components/timeline/item/index.js +31 -4
- package/lib/components/timeline/item/index.mjs +9 -5
- package/lib/components/timeline/marker/TimelineMarker.js +35 -21
- package/lib/components/timeline/marker/TimelineMarker.mjs +9 -6
- package/lib/components/timeline/marker/TimelineMarker.native.js +1 -1
- package/lib/components/timeline/marker/TimelineMarker.native.mjs +14 -14
- package/lib/components/timeline/marker/index.js +35 -21
- package/lib/components/timeline/marker/index.mjs +10 -7
- package/lib/components/timeline/marker/index.native.js +1 -1
- package/lib/components/timeline/marker/index.native.mjs +15 -15
- package/lib/components/title/Title.js +31 -4
- package/lib/components/title/Title.mjs +8 -4
- package/lib/components/title/Title.native.js +1 -1
- package/lib/components/title/Title.native.mjs +14 -14
- package/lib/components/title/index.js +31 -4
- package/lib/components/title/index.mjs +8 -4
- package/lib/components/title/index.native.js +1 -1
- package/lib/components/title/index.native.mjs +14 -14
- package/lib/components/view/View.js +36 -22
- package/lib/components/view/View.mjs +19 -16
- package/lib/components/view/View.native.js +1 -1
- package/lib/components/view/View.native.mjs +14 -14
- package/lib/components/view/index.js +36 -22
- package/lib/components/view/index.mjs +20 -17
- package/lib/components/view/index.native.js +1 -1
- package/lib/components/view/index.native.mjs +14 -14
- package/lib/context/context/index.d.mts +10 -0
- package/lib/context/context/index.d.ts +10 -0
- package/lib/context/context/index.js +54 -0
- package/lib/context/context/index.mjs +10 -0
- package/lib/context/context/index.native.d.mts +2 -0
- package/lib/context/context/index.native.d.ts +2 -0
- package/lib/context/context/index.native.js +38 -0
- package/lib/context/context/index.native.mjs +10 -0
- package/lib/context/index.d.mts +5 -10
- package/lib/context/index.d.ts +5 -10
- package/lib/context/index.js +144 -1
- package/lib/context/index.mjs +20 -1
- package/lib/context/index.native.d.mts +5 -2
- package/lib/context/index.native.d.ts +5 -2
- package/lib/context/index.native.js +90 -1
- package/lib/context/index.native.mjs +25 -1
- package/lib/context/provider/index.js +31 -7
- package/lib/context/provider/index.mjs +5 -4
- package/lib/context/provider/index.native.mjs +3 -5
- package/lib/context/providerStates/index.js +1 -1
- package/lib/context/providerStates/index.mjs +1 -1
- package/lib/context/providerStyled/index.js +38 -14
- package/lib/context/providerStyled/index.mjs +6 -31
- package/lib/context/providerStyled/index.native.mjs +3 -5
- package/lib/context/test/provider.test.js +37 -13
- package/lib/context/test/provider.test.mjs +5 -4
- package/lib/helpers/hashClassesHelpers/index.js +28 -1
- package/lib/helpers/hashClassesHelpers/index.mjs +6 -2
- package/lib/helpers/index.js +28 -1
- package/lib/helpers/index.mjs +9 -5
- package/lib/helpers/index.native.js +28 -1
- package/lib/helpers/index.native.mjs +9 -5
- package/lib/index.js +792 -706
- package/lib/index.mjs +222 -210
- package/lib/index.native.d.mts +1 -2
- package/lib/index.native.d.ts +1 -2
- package/lib/index.native.js +640 -680
- package/lib/index.native.mjs +158 -162
- package/lib/objects/facets/Status/index.js +33 -19
- package/lib/objects/facets/Status/index.mjs +8 -5
- package/lib/objects/facets/Status/index.native.js +1 -1
- package/lib/objects/facets/Status/index.native.mjs +2 -2
- package/lib/objects/facets/index.js +18 -4
- package/lib/objects/facets/index.mjs +24 -21
- package/lib/objects/facets/index.native.js +1 -1
- package/lib/objects/facets/index.native.mjs +18 -18
- package/lib/objects/index.js +20 -6
- package/lib/objects/index.mjs +28 -25
- package/lib/objects/index.native.js +1 -1
- package/lib/objects/index.native.mjs +25 -25
- 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 +6 -1
- package/lib/chunk-2BQXWN3R.mjs +0 -44
- package/lib/chunk-KYCWE6NL.mjs +0 -10
- package/lib/{chunk-4GKCUICZ.mjs → chunk-LEVHVJ5Q.mjs} +3 -3
- package/lib/{chunk-MCQZ43VV.mjs → chunk-M2TC4BZG.mjs} +3 -3
- package/lib/{chunk-6GGZCKVV.mjs → chunk-XKU72OAN.mjs} +3 -3
|
@@ -35,7 +35,7 @@ __export(calendar_exports, {
|
|
|
35
35
|
});
|
|
36
36
|
module.exports = __toCommonJS(calendar_exports);
|
|
37
37
|
|
|
38
|
-
// context/index.tsx
|
|
38
|
+
// context/context/index.tsx
|
|
39
39
|
var React = __toESM(require("react"));
|
|
40
40
|
var TrilogyContext = React.createContext({
|
|
41
41
|
styled: false,
|
|
@@ -49,6 +49,33 @@ var useTrilogyContext = () => {
|
|
|
49
49
|
return context;
|
|
50
50
|
};
|
|
51
51
|
|
|
52
|
+
// context/provider/index.tsx
|
|
53
|
+
var import_react = __toESM(require("react"));
|
|
54
|
+
|
|
55
|
+
// context/providerStates/index.ts
|
|
56
|
+
var import_react2 = require("react");
|
|
57
|
+
var StatesContext = (0, import_react2.createContext)({
|
|
58
|
+
inverted: false,
|
|
59
|
+
active: false,
|
|
60
|
+
flat: false
|
|
61
|
+
});
|
|
62
|
+
|
|
63
|
+
// context/providerStyled/index.tsx
|
|
64
|
+
var React3 = __toESM(require("react"));
|
|
65
|
+
|
|
66
|
+
// context/providerTheme/index.tsx
|
|
67
|
+
var import_react3 = __toESM(require("react"));
|
|
68
|
+
var defaultTheme = {
|
|
69
|
+
icons: {},
|
|
70
|
+
colors: {},
|
|
71
|
+
fontFamily: {}
|
|
72
|
+
};
|
|
73
|
+
var defaultContextValue = {
|
|
74
|
+
theme: defaultTheme,
|
|
75
|
+
setTheme: () => void 0
|
|
76
|
+
};
|
|
77
|
+
var TrilogyThemeContext = import_react3.default.createContext(defaultContextValue);
|
|
78
|
+
|
|
52
79
|
// helpers/hashClassesHelpers/index.tsx
|
|
53
80
|
var hashClass = (addHash = false, classes) => {
|
|
54
81
|
const { hash, styled } = useTrilogyContext();
|
|
@@ -94,23 +121,10 @@ var has = classify("has");
|
|
|
94
121
|
// components/calendar/Calendar.tsx
|
|
95
122
|
var import_locales2 = require("@trilogy-ds/locales");
|
|
96
123
|
var import_clsx8 = __toESM(require("clsx"));
|
|
97
|
-
var
|
|
98
|
-
|
|
99
|
-
// context/providerTheme/index.tsx
|
|
100
|
-
var import_react = __toESM(require("react"));
|
|
101
|
-
var defaultTheme = {
|
|
102
|
-
icons: {},
|
|
103
|
-
colors: {},
|
|
104
|
-
fontFamily: {}
|
|
105
|
-
};
|
|
106
|
-
var defaultContextValue = {
|
|
107
|
-
theme: defaultTheme,
|
|
108
|
-
setTheme: () => void 0
|
|
109
|
-
};
|
|
110
|
-
var TrilogyThemeContext = import_react.default.createContext(defaultContextValue);
|
|
124
|
+
var import_react11 = __toESM(require("react"));
|
|
111
125
|
|
|
112
126
|
// objects/facets/Color/index.tsx
|
|
113
|
-
var
|
|
127
|
+
var import_react4 = require("react");
|
|
114
128
|
var colors = {
|
|
115
129
|
["WHITE" /* BACKGROUND */]: ["#fff", "white", "main"],
|
|
116
130
|
["MAIN" /* MAIN */]: ["#3d5d7e", "main", "white"],
|
|
@@ -139,7 +153,7 @@ var getColorClassName = (trilogyColor) => {
|
|
|
139
153
|
};
|
|
140
154
|
var getColorStyle = (trilogyColor) => {
|
|
141
155
|
if (typeof navigator !== "undefined" && navigator.userAgent === void 0) {
|
|
142
|
-
const { theme } = (0,
|
|
156
|
+
const { theme } = (0, import_react4.useContext)(TrilogyThemeContext);
|
|
143
157
|
const colorsStyle = (theme == null ? void 0 : theme.colors) || colors;
|
|
144
158
|
const colorArray = colorsStyle[trilogyColor] || colorsStyle.default;
|
|
145
159
|
if (trilogyColor === "transparent") return "transparent";
|
|
@@ -174,8 +188,8 @@ var getJustifySelfClassName = (justifyContent) => {
|
|
|
174
188
|
|
|
175
189
|
// components/icon/Icon.tsx
|
|
176
190
|
var import_clsx = __toESM(require("clsx"));
|
|
177
|
-
var
|
|
178
|
-
var Icon =
|
|
191
|
+
var React5 = __toESM(require("react"));
|
|
192
|
+
var Icon = React5.forwardRef(
|
|
179
193
|
({ className, id, size, name, circled, stretched, color, backgroundColor, onClick, skeleton, align, ...others }, ref) => {
|
|
180
194
|
const { styled } = useTrilogyContext();
|
|
181
195
|
const background = backgroundColor && has(getBackgroundClassName(backgroundColor)) || circled && has(getBackgroundClassName("MAIN" /* MAIN */)) || "";
|
|
@@ -194,18 +208,18 @@ var Icon = React3.forwardRef(
|
|
|
194
208
|
className
|
|
195
209
|
)
|
|
196
210
|
);
|
|
197
|
-
return /* @__PURE__ */
|
|
211
|
+
return /* @__PURE__ */ React5.createElement("span", { id, onClick: onClick && onClick, className: classes, ...others, ref }, /* @__PURE__ */ React5.createElement("i", { className: hashClass(styled, (0, import_clsx.default)(name)), "aria-hidden": "true" }));
|
|
198
212
|
}
|
|
199
213
|
);
|
|
200
214
|
Icon.displayName = "Icon" /* Icon */;
|
|
201
215
|
var Icon_default = Icon;
|
|
202
216
|
|
|
203
217
|
// components/select/Select.tsx
|
|
204
|
-
var
|
|
218
|
+
var React13 = __toESM(require("react"));
|
|
205
219
|
|
|
206
220
|
// components/select/context/index.tsx
|
|
207
|
-
var
|
|
208
|
-
var SelectContext =
|
|
221
|
+
var import_react5 = __toESM(require("react"));
|
|
222
|
+
var SelectContext = import_react5.default.createContext({
|
|
209
223
|
selectedOptionValues: [],
|
|
210
224
|
multiple: false,
|
|
211
225
|
custom: false,
|
|
@@ -216,16 +230,16 @@ var SelectContext = import_react3.default.createContext({
|
|
|
216
230
|
|
|
217
231
|
// components/select/web/SelectDynamic.tsx
|
|
218
232
|
var import_clsx5 = __toESM(require("clsx"));
|
|
219
|
-
var
|
|
233
|
+
var import_react10 = __toESM(require("react"));
|
|
220
234
|
var import_react_dom = __toESM(require("react-dom"));
|
|
221
235
|
|
|
222
236
|
// components/input/Input.tsx
|
|
223
237
|
var import_locales = require("@trilogy-ds/locales");
|
|
224
238
|
var import_clsx4 = __toESM(require("clsx"));
|
|
225
|
-
var
|
|
239
|
+
var import_react9 = __toESM(require("react"));
|
|
226
240
|
|
|
227
241
|
// components/text/Text.tsx
|
|
228
|
-
var
|
|
242
|
+
var React7 = __toESM(require("react"));
|
|
229
243
|
var import_clsx2 = __toESM(require("clsx"));
|
|
230
244
|
|
|
231
245
|
// components/text/TextEnum.ts
|
|
@@ -236,7 +250,7 @@ var TextMarkup = /* @__PURE__ */ ((TextMarkup2) => {
|
|
|
236
250
|
})(TextMarkup || {});
|
|
237
251
|
|
|
238
252
|
// components/text/Text.tsx
|
|
239
|
-
var Text =
|
|
253
|
+
var Text = React7.forwardRef(({
|
|
240
254
|
level,
|
|
241
255
|
markup,
|
|
242
256
|
children,
|
|
@@ -284,7 +298,7 @@ var Text = React5.forwardRef(({
|
|
|
284
298
|
if (stringMarkup in TextMarkup || Object.values(TextMarkup).includes(stringMarkup)) return true;
|
|
285
299
|
};
|
|
286
300
|
const Tag = markup && isCorrectMarkup(markup) ? markup : "p";
|
|
287
|
-
return /* @__PURE__ */
|
|
301
|
+
return /* @__PURE__ */ React7.createElement(
|
|
288
302
|
Tag,
|
|
289
303
|
{
|
|
290
304
|
ref,
|
|
@@ -310,28 +324,28 @@ var STATUS_COLORS = {
|
|
|
310
324
|
};
|
|
311
325
|
|
|
312
326
|
// objects/Typography/TypographyBold/index.tsx
|
|
313
|
-
var
|
|
327
|
+
var import_react6 = require("react");
|
|
314
328
|
|
|
315
329
|
// components/input/gauge/InputGauge.tsx
|
|
316
330
|
var import_clsx3 = __toESM(require("clsx"));
|
|
317
|
-
var
|
|
331
|
+
var import_react8 = __toESM(require("react"));
|
|
318
332
|
|
|
319
333
|
// components/input/gauge/hook/useGauge.tsx
|
|
320
|
-
var
|
|
334
|
+
var import_react7 = __toESM(require("react"));
|
|
321
335
|
var useGauge = ({ validationRules, inputValue, securityRules }) => {
|
|
322
336
|
var _a, _b;
|
|
323
|
-
const [points, setPoints] =
|
|
337
|
+
const [points, setPoints] = import_react7.default.useState(0);
|
|
324
338
|
const initStateVerifies = { isVerify: false, color: "NEUTRAL" /* NEUTRAL */ };
|
|
325
|
-
const [isLengthVerify, setIsLengthVerify] =
|
|
326
|
-
const [isSpecialCharsVerify, setIsSpecialCharsVerify] =
|
|
327
|
-
const [isNumberVerify, setIsNumberVerify] =
|
|
328
|
-
const [isUppercaseVerify, setIsUppercaseVerify] =
|
|
329
|
-
const [isLowerercaseVerify, setisLowerercaseVerify] =
|
|
330
|
-
const nbAllVerifies =
|
|
339
|
+
const [isLengthVerify, setIsLengthVerify] = import_react7.default.useState(initStateVerifies);
|
|
340
|
+
const [isSpecialCharsVerify, setIsSpecialCharsVerify] = import_react7.default.useState(initStateVerifies);
|
|
341
|
+
const [isNumberVerify, setIsNumberVerify] = import_react7.default.useState(initStateVerifies);
|
|
342
|
+
const [isUppercaseVerify, setIsUppercaseVerify] = import_react7.default.useState(initStateVerifies);
|
|
343
|
+
const [isLowerercaseVerify, setisLowerercaseVerify] = import_react7.default.useState(initStateVerifies);
|
|
344
|
+
const nbAllVerifies = import_react7.default.useMemo(
|
|
331
345
|
() => validationRules && Object.values(validationRules).filter((rule) => rule).length || securityRules && securityRules.length || 0,
|
|
332
346
|
[validationRules, securityRules]
|
|
333
347
|
);
|
|
334
|
-
const rules =
|
|
348
|
+
const rules = import_react7.default.useMemo(
|
|
335
349
|
() => securityRules && securityRules.map(({ label, patternValidator, dataAttribute }) => ({
|
|
336
350
|
label,
|
|
337
351
|
validate: !!(patternValidator == null ? void 0 : patternValidator.test(inputValue)),
|
|
@@ -339,7 +353,7 @@ var useGauge = ({ validationRules, inputValue, securityRules }) => {
|
|
|
339
353
|
})),
|
|
340
354
|
[inputValue, securityRules]
|
|
341
355
|
);
|
|
342
|
-
const calcPoints =
|
|
356
|
+
const calcPoints = import_react7.default.useMemo(() => {
|
|
343
357
|
if (validationRules) {
|
|
344
358
|
return Number((points / nbAllVerifies * 100).toFixed(0));
|
|
345
359
|
}
|
|
@@ -349,7 +363,7 @@ var useGauge = ({ validationRules, inputValue, securityRules }) => {
|
|
|
349
363
|
}
|
|
350
364
|
return 0;
|
|
351
365
|
}, [points, nbAllVerifies, rules, validationRules, securityRules]);
|
|
352
|
-
const widthGauge =
|
|
366
|
+
const widthGauge = import_react7.default.useMemo(() => {
|
|
353
367
|
if (calcPoints <= 50 && calcPoints > 0) return "50%";
|
|
354
368
|
if (calcPoints <= 99 && calcPoints > 50) return "75%";
|
|
355
369
|
if (calcPoints === 100) return "100%";
|
|
@@ -361,7 +375,7 @@ var useGauge = ({ validationRules, inputValue, securityRules }) => {
|
|
|
361
375
|
if (calcPoints === 100) return getColorStyle("SUCCESS" /* SUCCESS */);
|
|
362
376
|
return getColorStyle("NEUTRAL_FADE" /* NEUTRAL_FADE */);
|
|
363
377
|
};
|
|
364
|
-
const LengthvalidationRulesText = (0,
|
|
378
|
+
const LengthvalidationRulesText = (0, import_react7.useMemo)(() => {
|
|
365
379
|
var _a2, _b2, _c, _d, _e, _f, _g, _h, _i, _j;
|
|
366
380
|
switch (true) {
|
|
367
381
|
case (((_a2 = validationRules == null ? void 0 : validationRules.length) == null ? void 0 : _a2.min) !== void 0 && ((_b2 = validationRules == null ? void 0 : validationRules.length) == null ? void 0 : _b2.max) !== void 0):
|
|
@@ -374,7 +388,7 @@ var useGauge = ({ validationRules, inputValue, securityRules }) => {
|
|
|
374
388
|
return "";
|
|
375
389
|
}
|
|
376
390
|
}, [(_a = validationRules == null ? void 0 : validationRules.length) == null ? void 0 : _a.min, (_b = validationRules == null ? void 0 : validationRules.length) == null ? void 0 : _b.max]);
|
|
377
|
-
(0,
|
|
391
|
+
(0, import_react7.useEffect)(() => {
|
|
378
392
|
var _a2, _b2;
|
|
379
393
|
const min = ((_a2 = validationRules == null ? void 0 : validationRules.length) == null ? void 0 : _a2.min) || 0;
|
|
380
394
|
const max = ((_b2 = validationRules == null ? void 0 : validationRules.length) == null ? void 0 : _b2.max) || "";
|
|
@@ -406,7 +420,7 @@ var useGauge = ({ validationRules, inputValue, securityRules }) => {
|
|
|
406
420
|
|
|
407
421
|
// components/input/gauge/InputGauge.tsx
|
|
408
422
|
var InputGauge = ({ validationRules, styled, inputValue, securityRules }) => {
|
|
409
|
-
const id = (0,
|
|
423
|
+
const id = (0, import_react8.useId)();
|
|
410
424
|
const {
|
|
411
425
|
widthGauge,
|
|
412
426
|
colorGauge,
|
|
@@ -418,14 +432,14 @@ var InputGauge = ({ validationRules, styled, inputValue, securityRules }) => {
|
|
|
418
432
|
isUppercaseVerify,
|
|
419
433
|
rules
|
|
420
434
|
} = useGauge({ validationRules, inputValue, securityRules });
|
|
421
|
-
return /* @__PURE__ */
|
|
435
|
+
return /* @__PURE__ */ import_react8.default.createElement("div", { "data-testid": "security-gauge", className: hashClass(styled, (0, import_clsx3.default)("security-gauge-container")) }, /* @__PURE__ */ import_react8.default.createElement("div", { className: hashClass(styled, (0, import_clsx3.default)("security-gauge")) }, /* @__PURE__ */ import_react8.default.createElement(
|
|
422
436
|
"div",
|
|
423
437
|
{
|
|
424
438
|
"data-gauge": true,
|
|
425
439
|
style: { width: widthGauge, backgroundColor: colorGauge() },
|
|
426
440
|
className: hashClass(styled, (0, import_clsx3.default)("gauge"))
|
|
427
441
|
}
|
|
428
|
-
)), /* @__PURE__ */
|
|
442
|
+
)), /* @__PURE__ */ import_react8.default.createElement("div", { className: hashClass(styled, (0, import_clsx3.default)("security-gauge-verifies")) }, validationRules && /* @__PURE__ */ import_react8.default.createElement(import_react8.default.Fragment, null, /* @__PURE__ */ import_react8.default.createElement(
|
|
429
443
|
DataVerify,
|
|
430
444
|
{
|
|
431
445
|
display: !!(validationRules == null ? void 0 : validationRules.length),
|
|
@@ -436,7 +450,7 @@ var InputGauge = ({ validationRules, styled, inputValue, securityRules }) => {
|
|
|
436
450
|
iconName: isLengthVerify.isVerify ? "tri-check-circle" /* CHECK_CIRCLE */ : "tri-times" /* TIMES */,
|
|
437
451
|
styled
|
|
438
452
|
}
|
|
439
|
-
), /* @__PURE__ */
|
|
453
|
+
), /* @__PURE__ */ import_react8.default.createElement(
|
|
440
454
|
DataVerify,
|
|
441
455
|
{
|
|
442
456
|
display: !!(validationRules == null ? void 0 : validationRules.uppercase),
|
|
@@ -447,7 +461,7 @@ var InputGauge = ({ validationRules, styled, inputValue, securityRules }) => {
|
|
|
447
461
|
iconName: isUppercaseVerify.isVerify ? "tri-check-circle" /* CHECK_CIRCLE */ : "tri-times" /* TIMES */,
|
|
448
462
|
styled
|
|
449
463
|
}
|
|
450
|
-
), /* @__PURE__ */
|
|
464
|
+
), /* @__PURE__ */ import_react8.default.createElement(
|
|
451
465
|
DataVerify,
|
|
452
466
|
{
|
|
453
467
|
display: !!(validationRules == null ? void 0 : validationRules.specialChars),
|
|
@@ -458,7 +472,7 @@ var InputGauge = ({ validationRules, styled, inputValue, securityRules }) => {
|
|
|
458
472
|
iconName: isSpecialCharsVerify.isVerify ? "tri-check-circle" /* CHECK_CIRCLE */ : "tri-times" /* TIMES */,
|
|
459
473
|
styled
|
|
460
474
|
}
|
|
461
|
-
), /* @__PURE__ */
|
|
475
|
+
), /* @__PURE__ */ import_react8.default.createElement(
|
|
462
476
|
DataVerify,
|
|
463
477
|
{
|
|
464
478
|
display: !!(validationRules == null ? void 0 : validationRules.lowercase),
|
|
@@ -469,7 +483,7 @@ var InputGauge = ({ validationRules, styled, inputValue, securityRules }) => {
|
|
|
469
483
|
iconName: isLowerercaseVerify.isVerify ? "tri-check-circle" /* CHECK_CIRCLE */ : "tri-times" /* TIMES */,
|
|
470
484
|
styled
|
|
471
485
|
}
|
|
472
|
-
), /* @__PURE__ */
|
|
486
|
+
), /* @__PURE__ */ import_react8.default.createElement(
|
|
473
487
|
DataVerify,
|
|
474
488
|
{
|
|
475
489
|
display: !!(validationRules == null ? void 0 : validationRules.number),
|
|
@@ -480,7 +494,7 @@ var InputGauge = ({ validationRules, styled, inputValue, securityRules }) => {
|
|
|
480
494
|
iconName: isNumberVerify.isVerify ? "tri-check-circle" /* CHECK_CIRCLE */ : "tri-times" /* TIMES */,
|
|
481
495
|
styled
|
|
482
496
|
}
|
|
483
|
-
)), securityRules && rules && rules.map((rule) => /* @__PURE__ */
|
|
497
|
+
)), securityRules && rules && rules.map((rule) => /* @__PURE__ */ import_react8.default.createElement(
|
|
484
498
|
DataVerify,
|
|
485
499
|
{
|
|
486
500
|
key: `${id}_${rule.label}`,
|
|
@@ -503,18 +517,18 @@ var DataVerify = ({
|
|
|
503
517
|
styled
|
|
504
518
|
}) => {
|
|
505
519
|
if (!display) return null;
|
|
506
|
-
return /* @__PURE__ */
|
|
520
|
+
return /* @__PURE__ */ import_react8.default.createElement("div", { ...dataAttribute, className: hashClass(styled, (0, import_clsx3.default)("security", classes)) }, /* @__PURE__ */ import_react8.default.createElement(Icon_default, { color, name: iconName, size: "smaller" /* SMALLER */ }), /* @__PURE__ */ import_react8.default.createElement("span", null, type));
|
|
507
521
|
};
|
|
508
522
|
var InputGauge_default = InputGauge;
|
|
509
523
|
|
|
510
524
|
// components/input/Input.tsx
|
|
511
|
-
var Input =
|
|
525
|
+
var Input = import_react9.default.forwardRef(
|
|
512
526
|
({
|
|
513
527
|
forceControl,
|
|
514
528
|
label,
|
|
515
529
|
sample,
|
|
516
530
|
className,
|
|
517
|
-
id =
|
|
531
|
+
id = import_react9.default.useId(),
|
|
518
532
|
disabled,
|
|
519
533
|
onChange,
|
|
520
534
|
onKeyPress,
|
|
@@ -553,19 +567,19 @@ var Input = import_react7.default.forwardRef(
|
|
|
553
567
|
...others
|
|
554
568
|
}, ref) => {
|
|
555
569
|
const { styled } = useTrilogyContext();
|
|
556
|
-
const idHelp = (0,
|
|
557
|
-
const idSample = (0,
|
|
570
|
+
const idHelp = (0, import_react9.useId)();
|
|
571
|
+
const idSample = (0, import_react9.useId)();
|
|
558
572
|
const inputIcon = /* @__PURE__ */ new Map();
|
|
559
573
|
inputIcon.set("success" /* SUCCESS */, "tri-check-circle" /* CHECK_CIRCLE */);
|
|
560
574
|
inputIcon.set("warning" /* WARNING */, "tri-exclamation-circle" /* EXCLAMATION_CIRCLE */);
|
|
561
575
|
inputIcon.set("error" /* ERROR */, "tri-exclamation-circle" /* EXCLAMATION_CIRCLE */);
|
|
562
|
-
const [_value, setValue] = (0,
|
|
563
|
-
const [isFocused, setIsFocused] = (0,
|
|
564
|
-
const [isDirty, setIsDirty] = (0,
|
|
565
|
-
const [isTouched, setIsTouched] = (0,
|
|
566
|
-
const [localStatus, setLocalStatus] = (0,
|
|
567
|
-
const [inputType, setInputType] = (0,
|
|
568
|
-
const [isShowPwd, setIsShowPwd] = (0,
|
|
576
|
+
const [_value, setValue] = (0, import_react9.useState)(defaultValue != null ? defaultValue : "");
|
|
577
|
+
const [isFocused, setIsFocused] = (0, import_react9.useState)(focused != null ? focused : false);
|
|
578
|
+
const [isDirty, setIsDirty] = (0, import_react9.useState)(false);
|
|
579
|
+
const [isTouched, setIsTouched] = (0, import_react9.useState)(false);
|
|
580
|
+
const [localStatus, setLocalStatus] = (0, import_react9.useState)(status || "default" /* DEFAULT */);
|
|
581
|
+
const [inputType, setInputType] = (0, import_react9.useState)(type);
|
|
582
|
+
const [isShowPwd, setIsShowPwd] = (0, import_react9.useState)(false);
|
|
569
583
|
const helpClasses = (0, import_clsx4.default)("help", localStatus && is(localStatus));
|
|
570
584
|
const loader = hashClass(styled, (0, import_clsx4.default)(is("searching")));
|
|
571
585
|
const inputLabelClasses = hashClass(styled, "input-label");
|
|
@@ -584,7 +598,7 @@ var Input = import_react7.default.forwardRef(
|
|
|
584
598
|
[has("icons-left")]: iconNameLeft || type === "search" /* SEARCH */
|
|
585
599
|
})
|
|
586
600
|
);
|
|
587
|
-
const onPressKey = (0,
|
|
601
|
+
const onPressKey = (0, import_react9.useCallback)((e) => {
|
|
588
602
|
const target = e.target;
|
|
589
603
|
return {
|
|
590
604
|
inputName: target.name,
|
|
@@ -595,10 +609,10 @@ var Input = import_react7.default.forwardRef(
|
|
|
595
609
|
preventDefault: () => e.preventDefault()
|
|
596
610
|
};
|
|
597
611
|
}, []);
|
|
598
|
-
const IconWrapper = (0,
|
|
612
|
+
const IconWrapper = (0, import_react9.useCallback)(
|
|
599
613
|
({ className: className2, name: name2, color, closeIconSearch, onPress, srOnly, showPassword }) => {
|
|
600
614
|
const Markup = showPassword ? "button" : "div";
|
|
601
|
-
return /* @__PURE__ */
|
|
615
|
+
return /* @__PURE__ */ import_react9.default.createElement(
|
|
602
616
|
Markup,
|
|
603
617
|
{
|
|
604
618
|
...showPassword && { "data-show-pwd": true, type: "button" },
|
|
@@ -609,8 +623,8 @@ var Input = import_react7.default.forwardRef(
|
|
|
609
623
|
}
|
|
610
624
|
}
|
|
611
625
|
},
|
|
612
|
-
/* @__PURE__ */
|
|
613
|
-
_value && _value.length > 0 && closeIconSearch && /* @__PURE__ */
|
|
626
|
+
/* @__PURE__ */ import_react9.default.createElement(Icon_default, { className: className2, name: name2, size: "small" /* SMALL */, color }),
|
|
627
|
+
_value && _value.length > 0 && closeIconSearch && /* @__PURE__ */ import_react9.default.createElement(
|
|
614
628
|
Icon_default,
|
|
615
629
|
{
|
|
616
630
|
onClick: () => setValue(""),
|
|
@@ -619,34 +633,34 @@ var Input = import_react7.default.forwardRef(
|
|
|
619
633
|
size: "small" /* SMALL */
|
|
620
634
|
}
|
|
621
635
|
),
|
|
622
|
-
showPassword && srOnly && /* @__PURE__ */
|
|
636
|
+
showPassword && srOnly && /* @__PURE__ */ import_react9.default.createElement("span", { className: srOnlyClasses }, srOnly)
|
|
623
637
|
);
|
|
624
638
|
},
|
|
625
639
|
[_value, styled]
|
|
626
640
|
);
|
|
627
641
|
const validator = !customValidator && patternValidator ? (value2) => patternValidator.test(value2) ? "success" /* SUCCESS */ : "error" /* ERROR */ : customValidator;
|
|
628
|
-
(0,
|
|
642
|
+
(0, import_react9.useEffect)(() => {
|
|
629
643
|
var _a;
|
|
630
644
|
setValue((_a = value != null ? value : defaultValue) != null ? _a : "");
|
|
631
645
|
}, [value, defaultValue]);
|
|
632
|
-
(0,
|
|
646
|
+
(0, import_react9.useEffect)(() => {
|
|
633
647
|
setIsFocused(focused != null ? focused : false);
|
|
634
648
|
}, [focused]);
|
|
635
|
-
(0,
|
|
649
|
+
(0, import_react9.useEffect)(() => {
|
|
636
650
|
if (isFocused) setIsDirty(true);
|
|
637
651
|
else if (isDirty) setIsTouched(true);
|
|
638
652
|
}, [isFocused, isDirty]);
|
|
639
|
-
(0,
|
|
653
|
+
(0, import_react9.useEffect)(() => {
|
|
640
654
|
if (!validator || !isTouched) return;
|
|
641
655
|
setLocalStatus(validator(_value));
|
|
642
656
|
}, [isFocused, isTouched]);
|
|
643
|
-
(0,
|
|
657
|
+
(0, import_react9.useEffect)(() => {
|
|
644
658
|
setLocalStatus(status || "default" /* DEFAULT */);
|
|
645
659
|
}, [status]);
|
|
646
|
-
(0,
|
|
660
|
+
(0, import_react9.useEffect)(() => {
|
|
647
661
|
if (onStatusChange) onStatusChange(localStatus);
|
|
648
662
|
}, [localStatus]);
|
|
649
|
-
return /* @__PURE__ */
|
|
663
|
+
return /* @__PURE__ */ import_react9.default.createElement("div", { className: wrapperClasses, "data-has-gauge": securityGauge ? true : void 0 }, label && /* @__PURE__ */ import_react9.default.createElement("label", { className: inputLabelClasses, htmlFor: id }, label, " ", required && /* @__PURE__ */ import_react9.default.createElement(Text_default, { markup: "span" /* SPAN */, typo: "has-text-error" /* TEXT_ERROR */ }, "*")), sample && /* @__PURE__ */ import_react9.default.createElement(Text_default, { className: "input-sample", level: 2 /* TWO */, id: idSample }, sample), /* @__PURE__ */ import_react9.default.createElement("div", { className: controlClasses }, /* @__PURE__ */ import_react9.default.createElement(
|
|
650
664
|
"input",
|
|
651
665
|
{
|
|
652
666
|
"aria-describedby": `${idHelp} ${idSample}`,
|
|
@@ -711,7 +725,7 @@ var Input = import_react7.default.forwardRef(
|
|
|
711
725
|
setIsFocused(false);
|
|
712
726
|
}
|
|
713
727
|
}
|
|
714
|
-
), hasIcon && !localStatus && !loading && iconNameLeft && /* @__PURE__ */
|
|
728
|
+
), hasIcon && !localStatus && !loading && iconNameLeft && /* @__PURE__ */ import_react9.default.createElement(IconWrapper, { name: iconNameLeft }), (iconNameLeft || type === "search" /* SEARCH */) && /* @__PURE__ */ import_react9.default.createElement(IconWrapper, { className: "icon-left", name: iconNameLeft || "tri-search" /* SEARCH */ }), iconNameRight && !loading && type !== "password" /* PASSWORD */ && /* @__PURE__ */ import_react9.default.createElement(IconWrapper, { className: "icon-right", name: iconNameRight }), !loading && type === "password" /* PASSWORD */ && /* @__PURE__ */ import_react9.default.createElement(
|
|
715
729
|
IconWrapper,
|
|
716
730
|
{
|
|
717
731
|
showPassword: true,
|
|
@@ -728,7 +742,7 @@ var Input = import_react7.default.forwardRef(
|
|
|
728
742
|
}
|
|
729
743
|
}
|
|
730
744
|
}
|
|
731
|
-
), loading && /* @__PURE__ */
|
|
745
|
+
), loading && /* @__PURE__ */ import_react9.default.createElement("span", { className: loader })), help && /* @__PURE__ */ import_react9.default.createElement(Text_default, { className: helpClasses, id: idHelp }, help), securityGauge && type === "password" /* PASSWORD */ && /* @__PURE__ */ import_react9.default.createElement(
|
|
732
746
|
InputGauge_default,
|
|
733
747
|
{
|
|
734
748
|
validationRules,
|
|
@@ -744,7 +758,7 @@ var Input_default = Input;
|
|
|
744
758
|
|
|
745
759
|
// components/select/web/SelectDynamic.tsx
|
|
746
760
|
var OPTION_SIZE = 48;
|
|
747
|
-
var SelectDynamic =
|
|
761
|
+
var SelectDynamic = import_react10.default.forwardRef(
|
|
748
762
|
({
|
|
749
763
|
onChange,
|
|
750
764
|
disabled,
|
|
@@ -767,11 +781,11 @@ var SelectDynamic = import_react8.default.forwardRef(
|
|
|
767
781
|
...others
|
|
768
782
|
}, ref) => {
|
|
769
783
|
const { styled } = useTrilogyContext();
|
|
770
|
-
const { setIsVisibleOptions, isVisibleOptions, selectedOptionValues } = (0,
|
|
771
|
-
const containerRef = (0,
|
|
772
|
-
const [openUpward, setOpenUpward] = (0,
|
|
773
|
-
const optionsListSize = (0,
|
|
774
|
-
const [dropdownStyles, setDropdownStyles] = (0,
|
|
784
|
+
const { setIsVisibleOptions, isVisibleOptions, selectedOptionValues } = (0, import_react10.useContext)(SelectContext);
|
|
785
|
+
const containerRef = (0, import_react10.useRef)(null);
|
|
786
|
+
const [openUpward, setOpenUpward] = (0, import_react10.useState)(false);
|
|
787
|
+
const optionsListSize = (0, import_react10.useRef)(0);
|
|
788
|
+
const [dropdownStyles, setDropdownStyles] = (0, import_react10.useState)({});
|
|
775
789
|
const selectClasses = hashClass(styled, (0, import_clsx5.default)("select", className));
|
|
776
790
|
const optionsClasses = hashClass(styled, (0, import_clsx5.default)("select-options", openUpward && "select-options-top"));
|
|
777
791
|
const portalClasses = hashClass(styled, "select-trilogy_modal_open");
|
|
@@ -800,29 +814,29 @@ var SelectDynamic = import_react8.default.forwardRef(
|
|
|
800
814
|
return prev;
|
|
801
815
|
});
|
|
802
816
|
};
|
|
803
|
-
const options = (0,
|
|
817
|
+
const options = (0, import_react10.useMemo)(() => {
|
|
804
818
|
var _a;
|
|
805
|
-
return (_a =
|
|
806
|
-
if (!
|
|
819
|
+
return (_a = import_react10.default.Children.map(children, (child) => {
|
|
820
|
+
if (!import_react10.default.isValidElement(child)) return false;
|
|
807
821
|
return {
|
|
808
822
|
label: child.props.children || child.props.label,
|
|
809
823
|
value: child.props.value
|
|
810
824
|
};
|
|
811
825
|
})) == null ? void 0 : _a.filter((option) => option);
|
|
812
826
|
}, []);
|
|
813
|
-
const labelsSelected = (0,
|
|
827
|
+
const labelsSelected = (0, import_react10.useMemo)(() => {
|
|
814
828
|
return selectedOptionValues.map((selectedOption) => {
|
|
815
829
|
const elm = options == null ? void 0 : options.find((opt) => opt.value === selectedOption);
|
|
816
830
|
return elm == null ? void 0 : elm.label;
|
|
817
831
|
});
|
|
818
832
|
}, [selectedOptionValues, options]);
|
|
819
|
-
(0,
|
|
820
|
-
const childrenCount =
|
|
833
|
+
(0, import_react10.useEffect)(() => {
|
|
834
|
+
const childrenCount = import_react10.default.Children.count(children);
|
|
821
835
|
if (childrenCount > 0) {
|
|
822
836
|
optionsListSize.current = childrenCount * OPTION_SIZE;
|
|
823
837
|
}
|
|
824
838
|
}, [children]);
|
|
825
|
-
return /* @__PURE__ */
|
|
839
|
+
return /* @__PURE__ */ import_react10.default.createElement("div", { className: selectClasses, ref: containerRef, ...others }, /* @__PURE__ */ import_react10.default.createElement(
|
|
826
840
|
Input_default,
|
|
827
841
|
{
|
|
828
842
|
sample,
|
|
@@ -849,7 +863,7 @@ var SelectDynamic = import_react8.default.forwardRef(
|
|
|
849
863
|
},
|
|
850
864
|
...{ readOnly: true, id, role: "combobox" }
|
|
851
865
|
}
|
|
852
|
-
), /* @__PURE__ */
|
|
866
|
+
), /* @__PURE__ */ import_react10.default.createElement(
|
|
853
867
|
"ul",
|
|
854
868
|
{
|
|
855
869
|
role: "listbox",
|
|
@@ -861,7 +875,7 @@ var SelectDynamic = import_react8.default.forwardRef(
|
|
|
861
875
|
},
|
|
862
876
|
children
|
|
863
877
|
), isVisibleOptions && import_react_dom.default.createPortal(
|
|
864
|
-
/* @__PURE__ */
|
|
878
|
+
/* @__PURE__ */ import_react10.default.createElement("div", { role: "presentation", className: portalClasses, onClick: onCloseOptions }),
|
|
865
879
|
document.body
|
|
866
880
|
));
|
|
867
881
|
}
|
|
@@ -871,8 +885,8 @@ var SelectDynamic_default = SelectDynamic;
|
|
|
871
885
|
|
|
872
886
|
// components/select/web/SelectNative.tsx
|
|
873
887
|
var import_clsx6 = __toESM(require("clsx"));
|
|
874
|
-
var
|
|
875
|
-
var SelectNative =
|
|
888
|
+
var React12 = __toESM(require("react"));
|
|
889
|
+
var SelectNative = React12.forwardRef(
|
|
876
890
|
({
|
|
877
891
|
onChange,
|
|
878
892
|
disabled,
|
|
@@ -894,25 +908,25 @@ var SelectNative = React10.forwardRef(
|
|
|
894
908
|
...others
|
|
895
909
|
}, ref) => {
|
|
896
910
|
const { styled } = useTrilogyContext();
|
|
897
|
-
const idHelp =
|
|
898
|
-
const idSample =
|
|
899
|
-
const [focused, setIsFocused] =
|
|
900
|
-
const [selectedValues, setSelectedValues] =
|
|
911
|
+
const idHelp = React12.useId();
|
|
912
|
+
const idSample = React12.useId();
|
|
913
|
+
const [focused, setIsFocused] = React12.useState(false);
|
|
914
|
+
const [selectedValues, setSelectedValues] = React12.useState(selected);
|
|
901
915
|
const selectClasses = hashClass(styled, (0, import_clsx6.default)("select", className));
|
|
902
916
|
const controlClass = hashClass(styled, (0, import_clsx6.default)("control", iconName && "has-icons-left"));
|
|
903
917
|
const helpClasses = (0, import_clsx6.default)("help", status && is(status));
|
|
904
|
-
const handleFocus =
|
|
918
|
+
const handleFocus = React12.useCallback((e) => {
|
|
905
919
|
setIsFocused(true);
|
|
906
920
|
onFocus && onFocus(e);
|
|
907
921
|
}, []);
|
|
908
|
-
const handleBlur =
|
|
922
|
+
const handleBlur = React12.useCallback((e) => {
|
|
909
923
|
setIsFocused(false);
|
|
910
924
|
onBlur && onBlur(e);
|
|
911
925
|
}, []);
|
|
912
|
-
|
|
926
|
+
React12.useEffect(() => {
|
|
913
927
|
setSelectedValues(selected);
|
|
914
928
|
}, [selected]);
|
|
915
|
-
return /* @__PURE__ */
|
|
929
|
+
return /* @__PURE__ */ React12.createElement("div", { className: selectClasses }, /* @__PURE__ */ React12.createElement("div", { className: hashClass(styled, (0, import_clsx6.default)("field", focused && "focus")) }, label && /* @__PURE__ */ React12.createElement("label", { className: hashClass(styled, "input-label"), htmlFor: id }, label, " ", required && /* @__PURE__ */ React12.createElement(Text_default, { markup: "span" /* SPAN */, typo: "has-text-error" /* TEXT_ERROR */ }, "*")), sample && /* @__PURE__ */ React12.createElement(Text_default, { className: "input-sample", level: 2 /* TWO */, id: idSample }, sample), /* @__PURE__ */ React12.createElement("div", { className: controlClass }, /* @__PURE__ */ React12.createElement(
|
|
916
930
|
"select",
|
|
917
931
|
{
|
|
918
932
|
ref,
|
|
@@ -942,30 +956,30 @@ var SelectNative = React10.forwardRef(
|
|
|
942
956
|
role: "listbox",
|
|
943
957
|
...others
|
|
944
958
|
},
|
|
945
|
-
|
|
946
|
-
if (!
|
|
959
|
+
React12.Children.map(children, (child) => {
|
|
960
|
+
if (!React12.isValidElement(child)) return null;
|
|
947
961
|
const props = {
|
|
948
962
|
...child.props,
|
|
949
963
|
native: "true"
|
|
950
964
|
};
|
|
951
|
-
return /* @__PURE__ */
|
|
965
|
+
return /* @__PURE__ */ React12.createElement(option_default, { ...props });
|
|
952
966
|
})
|
|
953
|
-
), iconName && /* @__PURE__ */
|
|
967
|
+
), iconName && /* @__PURE__ */ React12.createElement(Icon_default, { name: iconName, size: "small" })), help && /* @__PURE__ */ React12.createElement(Text_default, { className: helpClasses, id: idHelp }, help)));
|
|
954
968
|
}
|
|
955
969
|
);
|
|
956
970
|
SelectNative.displayName = "Select" /* Select */;
|
|
957
971
|
var SelectNative_default = SelectNative;
|
|
958
972
|
|
|
959
973
|
// components/select/Select.tsx
|
|
960
|
-
var Select =
|
|
961
|
-
const [isVisibleOptions, setIsVisibleOptions] =
|
|
962
|
-
const [selectedOptionValues, setSelectedOptionValues] =
|
|
963
|
-
|
|
974
|
+
var Select = React13.forwardRef(({ selected, ...props }, ref) => {
|
|
975
|
+
const [isVisibleOptions, setIsVisibleOptions] = React13.useState(false);
|
|
976
|
+
const [selectedOptionValues, setSelectedOptionValues] = React13.useState([]);
|
|
977
|
+
React13.useEffect(() => {
|
|
964
978
|
const value = typeof selected === "string" || typeof selected === "number" ? [selected] : !selected || selected === null ? [] : selected;
|
|
965
979
|
setSelectedOptionValues(value);
|
|
966
980
|
}, [selected]);
|
|
967
981
|
if (props.custom || props.multiple)
|
|
968
|
-
return /* @__PURE__ */
|
|
982
|
+
return /* @__PURE__ */ React13.createElement(
|
|
969
983
|
SelectContext.Provider,
|
|
970
984
|
{
|
|
971
985
|
value: {
|
|
@@ -978,20 +992,20 @@ var Select = React11.forwardRef(({ selected, ...props }, ref) => {
|
|
|
978
992
|
onChange: props.onChange
|
|
979
993
|
}
|
|
980
994
|
},
|
|
981
|
-
/* @__PURE__ */
|
|
995
|
+
/* @__PURE__ */ React13.createElement(SelectDynamic_default, { ref, selected, ...props })
|
|
982
996
|
);
|
|
983
|
-
return /* @__PURE__ */
|
|
997
|
+
return /* @__PURE__ */ React13.createElement(SelectNative_default, { ref, selected, ...props });
|
|
984
998
|
});
|
|
985
999
|
Select.displayName = "Select" /* Select */;
|
|
986
1000
|
var Select_default = Select;
|
|
987
1001
|
|
|
988
1002
|
// components/select/option/SelectOption.tsx
|
|
989
1003
|
var import_clsx7 = __toESM(require("clsx"));
|
|
990
|
-
var
|
|
991
|
-
var SelectOption =
|
|
1004
|
+
var React14 = __toESM(require("react"));
|
|
1005
|
+
var SelectOption = React14.forwardRef(
|
|
992
1006
|
({ id, className, value = "", disabled, children, onClick, label, iconName, testId, ...others }, ref) => {
|
|
993
1007
|
const { styled } = useTrilogyContext();
|
|
994
|
-
const { custom, selectedOptionValues, setSelectedOptionValues, multiple, setIsVisibleOptions, onChange } =
|
|
1008
|
+
const { custom, selectedOptionValues, setSelectedOptionValues, multiple, setIsVisibleOptions, onChange } = React14.useContext(SelectContext);
|
|
995
1009
|
const isChecked = selectedOptionValues.includes(value);
|
|
996
1010
|
const selectClasses = hashClass(styled, (0, import_clsx7.default)("option", isChecked && "focus", disabled && is("disabled"), className));
|
|
997
1011
|
const handleClickOption = () => {
|
|
@@ -1013,7 +1027,7 @@ var SelectOption = React12.forwardRef(
|
|
|
1013
1027
|
if (!multiple) setIsVisibleOptions(false);
|
|
1014
1028
|
};
|
|
1015
1029
|
if (custom || multiple) {
|
|
1016
|
-
return /* @__PURE__ */
|
|
1030
|
+
return /* @__PURE__ */ React14.createElement(
|
|
1017
1031
|
"li",
|
|
1018
1032
|
{
|
|
1019
1033
|
ref,
|
|
@@ -1026,11 +1040,11 @@ var SelectOption = React12.forwardRef(
|
|
|
1026
1040
|
onClick: !disabled ? handleClickOption : void 0,
|
|
1027
1041
|
...others
|
|
1028
1042
|
},
|
|
1029
|
-
iconName && /* @__PURE__ */
|
|
1043
|
+
iconName && /* @__PURE__ */ React14.createElement(Icon_default, { name: iconName }),
|
|
1030
1044
|
label || children
|
|
1031
1045
|
);
|
|
1032
1046
|
}
|
|
1033
|
-
return /* @__PURE__ */
|
|
1047
|
+
return /* @__PURE__ */ React14.createElement(
|
|
1034
1048
|
"option",
|
|
1035
1049
|
{
|
|
1036
1050
|
ref,
|
|
@@ -1068,7 +1082,7 @@ var currentDate = /* @__PURE__ */ new Date();
|
|
|
1068
1082
|
function checkIsRange(date) {
|
|
1069
1083
|
return !(date instanceof Date);
|
|
1070
1084
|
}
|
|
1071
|
-
var Calendar =
|
|
1085
|
+
var Calendar = import_react11.default.forwardRef(
|
|
1072
1086
|
({
|
|
1073
1087
|
value = currentDate,
|
|
1074
1088
|
minDate = new Date(currentDate.getFullYear() - 10, 0, 1),
|
|
@@ -1080,16 +1094,16 @@ var Calendar = import_react9.default.forwardRef(
|
|
|
1080
1094
|
onMonthChange
|
|
1081
1095
|
}, ref) => {
|
|
1082
1096
|
const { styled } = useTrilogyContext();
|
|
1083
|
-
const [visibleMonth, setVisibleMonth] =
|
|
1097
|
+
const [visibleMonth, setVisibleMonth] = import_react11.default.useState(
|
|
1084
1098
|
value instanceof Date ? value : value[0] || currentDate
|
|
1085
1099
|
);
|
|
1086
|
-
const [activeDate, setActiveDate] =
|
|
1087
|
-
const [dateEndHovered, setDateEndHovered] =
|
|
1088
|
-
const refsDays =
|
|
1089
|
-
const refDayFocused =
|
|
1090
|
-
const refs =
|
|
1091
|
-
const weeksId =
|
|
1092
|
-
const daysId =
|
|
1100
|
+
const [activeDate, setActiveDate] = import_react11.default.useState(value);
|
|
1101
|
+
const [dateEndHovered, setDateEndHovered] = import_react11.default.useState();
|
|
1102
|
+
const refsDays = import_react11.default.useRef([]);
|
|
1103
|
+
const refDayFocused = import_react11.default.useRef();
|
|
1104
|
+
const refs = import_react11.default.useRef([]);
|
|
1105
|
+
const weeksId = import_react11.default.useId();
|
|
1106
|
+
const daysId = import_react11.default.useId();
|
|
1093
1107
|
const calendarClasses = hashClass(styled, (0, import_clsx8.default)("calendar"));
|
|
1094
1108
|
const calendarheaderClasses = hashClass(styled, (0, import_clsx8.default)("calendar-header"));
|
|
1095
1109
|
const headerDropdownClasses = hashClass(styled, (0, import_clsx8.default)("calendar-header-dropdown"));
|
|
@@ -1111,15 +1125,15 @@ var Calendar = import_react9.default.forwardRef(
|
|
|
1111
1125
|
const rondedLeftClasses = hashClass(styled, (0, import_clsx8.default)("calendar-date-rounded-left"));
|
|
1112
1126
|
const rondedRightClasses = hashClass(styled, (0, import_clsx8.default)("calendar-date-rounded-right"));
|
|
1113
1127
|
const isRange = checkIsRange(activeDate);
|
|
1114
|
-
const isNextDisabled =
|
|
1128
|
+
const isNextDisabled = import_react11.default.useMemo(
|
|
1115
1129
|
() => disabled || (maxDate == null ? void 0 : maxDate.getMonth()) === (visibleMonth == null ? void 0 : visibleMonth.getMonth()) && (maxDate == null ? void 0 : maxDate.getFullYear()) === (visibleMonth == null ? void 0 : visibleMonth.getFullYear()),
|
|
1116
1130
|
[maxDate, visibleMonth, disabled]
|
|
1117
1131
|
);
|
|
1118
|
-
const isPrevDisabled =
|
|
1132
|
+
const isPrevDisabled = import_react11.default.useMemo(
|
|
1119
1133
|
() => disabled || (minDate == null ? void 0 : minDate.getMonth()) === (visibleMonth == null ? void 0 : visibleMonth.getMonth()) && (minDate == null ? void 0 : minDate.getFullYear()) === (visibleMonth == null ? void 0 : visibleMonth.getFullYear()),
|
|
1120
1134
|
[minDate, visibleMonth, disabled]
|
|
1121
1135
|
);
|
|
1122
|
-
const getAllDaysInMonth =
|
|
1136
|
+
const getAllDaysInMonth = import_react11.default.useCallback((year, month) => {
|
|
1123
1137
|
const date = new Date(year, month, 1);
|
|
1124
1138
|
const days2 = [];
|
|
1125
1139
|
const firstDayOfMonth = (date.getDay() + 6) % 7;
|
|
@@ -1130,7 +1144,7 @@ var Calendar = import_react9.default.forwardRef(
|
|
|
1130
1144
|
for (let i = 0; i < days2.length; i += 7) allDays.push(days2.slice(i, i + 7));
|
|
1131
1145
|
return allDays;
|
|
1132
1146
|
}, []);
|
|
1133
|
-
const yearsBetween =
|
|
1147
|
+
const yearsBetween = import_react11.default.useMemo(() => {
|
|
1134
1148
|
const minYear = minDate.getFullYear();
|
|
1135
1149
|
const maxYear = maxDate.getFullYear();
|
|
1136
1150
|
const currentYear = value instanceof Date && (value == null ? void 0 : value.getFullYear());
|
|
@@ -1147,7 +1161,7 @@ var Calendar = import_react9.default.forwardRef(
|
|
|
1147
1161
|
}
|
|
1148
1162
|
return years;
|
|
1149
1163
|
}, [minDate, maxDate, value]);
|
|
1150
|
-
const availableMonths =
|
|
1164
|
+
const availableMonths = import_react11.default.useMemo(() => {
|
|
1151
1165
|
const currentYear = visibleMonth.getFullYear();
|
|
1152
1166
|
const minYear = minDate.getFullYear();
|
|
1153
1167
|
const maxYear = maxDate.getFullYear();
|
|
@@ -1160,18 +1174,18 @@ var Calendar = import_react9.default.forwardRef(
|
|
|
1160
1174
|
return true;
|
|
1161
1175
|
});
|
|
1162
1176
|
}, [minDate, maxDate, visibleMonth]);
|
|
1163
|
-
const availableYear =
|
|
1177
|
+
const availableYear = import_react11.default.useMemo(() => {
|
|
1164
1178
|
const minYear = minDate.getFullYear();
|
|
1165
1179
|
const maxYear = maxDate.getFullYear();
|
|
1166
1180
|
return Array.from({ length: maxYear - minYear + 1 }, (_, i) => minYear + i);
|
|
1167
1181
|
}, [minDate, maxDate, visibleMonth]);
|
|
1168
|
-
const allDaysInMonth =
|
|
1182
|
+
const allDaysInMonth = import_react11.default.useMemo(() => {
|
|
1169
1183
|
refsDays.current = [];
|
|
1170
1184
|
const activeYear = visibleMonth.getFullYear();
|
|
1171
1185
|
const activeMonth = visibleMonth.getMonth();
|
|
1172
1186
|
return getAllDaysInMonth(activeYear, activeMonth);
|
|
1173
1187
|
}, [visibleMonth]);
|
|
1174
|
-
const handleClickNextPrevMonth =
|
|
1188
|
+
const handleClickNextPrevMonth = import_react11.default.useCallback(
|
|
1175
1189
|
(month) => {
|
|
1176
1190
|
const nextMonth = new Date(visibleMonth.getFullYear(), visibleMonth.getMonth() + month, visibleMonth.getDate());
|
|
1177
1191
|
setVisibleMonth(nextMonth);
|
|
@@ -1179,7 +1193,7 @@ var Calendar = import_react9.default.forwardRef(
|
|
|
1179
1193
|
},
|
|
1180
1194
|
[visibleMonth, onMonthChange]
|
|
1181
1195
|
);
|
|
1182
|
-
const handleMonthSelect =
|
|
1196
|
+
const handleMonthSelect = import_react11.default.useCallback(
|
|
1183
1197
|
(selectedMonth) => {
|
|
1184
1198
|
const newDate = new Date(visibleMonth.getFullYear(), selectedMonth, visibleMonth.getDate());
|
|
1185
1199
|
setVisibleMonth(newDate);
|
|
@@ -1187,7 +1201,7 @@ var Calendar = import_react9.default.forwardRef(
|
|
|
1187
1201
|
},
|
|
1188
1202
|
[visibleMonth, onMonthChange, minDate, maxDate]
|
|
1189
1203
|
);
|
|
1190
|
-
const handleYearSelect =
|
|
1204
|
+
const handleYearSelect = import_react11.default.useCallback(
|
|
1191
1205
|
(selectedYear) => {
|
|
1192
1206
|
const newDate = new Date(selectedYear, visibleMonth.getMonth(), visibleMonth.getDate());
|
|
1193
1207
|
if (newDate.getTime() < minDate.getTime() || newDate.getTime() > maxDate.getTime()) {
|
|
@@ -1205,7 +1219,7 @@ var Calendar = import_react9.default.forwardRef(
|
|
|
1205
1219
|
},
|
|
1206
1220
|
[visibleMonth, onMonthChange, minDate, maxDate]
|
|
1207
1221
|
);
|
|
1208
|
-
const navigateInDaysWithKeyboard =
|
|
1222
|
+
const navigateInDaysWithKeyboard = import_react11.default.useCallback(
|
|
1209
1223
|
(currentIndex, nextIndex) => {
|
|
1210
1224
|
var _a;
|
|
1211
1225
|
const nextRef = refsDays.current[currentIndex + nextIndex];
|
|
@@ -1236,7 +1250,7 @@ var Calendar = import_react9.default.forwardRef(
|
|
|
1236
1250
|
},
|
|
1237
1251
|
[refsDays.current, refDayFocused.current, isNextDisabled, isPrevDisabled]
|
|
1238
1252
|
);
|
|
1239
|
-
const handlePressEnterInDays =
|
|
1253
|
+
const handlePressEnterInDays = import_react11.default.useCallback(
|
|
1240
1254
|
(e) => {
|
|
1241
1255
|
if (readOnly) return;
|
|
1242
1256
|
const elm = e.target;
|
|
@@ -1255,7 +1269,7 @@ var Calendar = import_react9.default.forwardRef(
|
|
|
1255
1269
|
},
|
|
1256
1270
|
[refsDays.current, onChange, readOnly, activeDate, isRange]
|
|
1257
1271
|
);
|
|
1258
|
-
const onKeyDownDay =
|
|
1272
|
+
const onKeyDownDay = import_react11.default.useCallback(
|
|
1259
1273
|
(e, index, isDisabled) => {
|
|
1260
1274
|
switch (e.key) {
|
|
1261
1275
|
case "ArrowRight":
|
|
@@ -1274,7 +1288,7 @@ var Calendar = import_react9.default.forwardRef(
|
|
|
1274
1288
|
},
|
|
1275
1289
|
[handlePressEnterInDays, navigateInDaysWithKeyboard]
|
|
1276
1290
|
);
|
|
1277
|
-
|
|
1291
|
+
import_react11.default.useEffect(() => {
|
|
1278
1292
|
var _a, _b;
|
|
1279
1293
|
if (refsDays.current) {
|
|
1280
1294
|
const activeDateIndex = refsDays.current.findIndex((day) => day.tabIndex === 0);
|
|
@@ -1290,7 +1304,7 @@ var Calendar = import_react9.default.forwardRef(
|
|
|
1290
1304
|
}
|
|
1291
1305
|
}
|
|
1292
1306
|
}, [refsDays.current, refDayFocused.current]);
|
|
1293
|
-
|
|
1307
|
+
import_react11.default.useEffect(() => {
|
|
1294
1308
|
const prevActiveDate = activeDate;
|
|
1295
1309
|
setActiveDate(value);
|
|
1296
1310
|
if (value instanceof Date) return setVisibleMonth(value);
|
|
@@ -1299,7 +1313,7 @@ var Calendar = import_react9.default.forwardRef(
|
|
|
1299
1313
|
if (isNewRangeSelection) return setVisibleMonth(value[0]);
|
|
1300
1314
|
}
|
|
1301
1315
|
}, [value]);
|
|
1302
|
-
return /* @__PURE__ */
|
|
1316
|
+
return /* @__PURE__ */ import_react11.default.createElement(
|
|
1303
1317
|
"table",
|
|
1304
1318
|
{
|
|
1305
1319
|
"data-calendar-trilogy": "",
|
|
@@ -1310,7 +1324,7 @@ var Calendar = import_react9.default.forwardRef(
|
|
|
1310
1324
|
isRange && activeDate.length === 1 && rangeInitClasses
|
|
1311
1325
|
)
|
|
1312
1326
|
},
|
|
1313
|
-
/* @__PURE__ */
|
|
1327
|
+
/* @__PURE__ */ import_react11.default.createElement("thead", { className: calendarheaderClasses }, /* @__PURE__ */ import_react11.default.createElement("tr", null, /* @__PURE__ */ import_react11.default.createElement("th", { colSpan: 1, className: calendarPrevMonthClasses }, /* @__PURE__ */ import_react11.default.createElement(
|
|
1314
1328
|
"button",
|
|
1315
1329
|
{
|
|
1316
1330
|
"data-focusable": !isPrevDisabled,
|
|
@@ -1322,8 +1336,8 @@ var Calendar = import_react9.default.forwardRef(
|
|
|
1322
1336
|
if (el && refs) refs.current[1] = el;
|
|
1323
1337
|
}
|
|
1324
1338
|
},
|
|
1325
|
-
/* @__PURE__ */
|
|
1326
|
-
)), /* @__PURE__ */
|
|
1339
|
+
/* @__PURE__ */ import_react11.default.createElement(Icon_default, { name: "tri-arrow-left" })
|
|
1340
|
+
)), /* @__PURE__ */ import_react11.default.createElement("th", { colSpan: 5, className: calendarActiveMonthClasses }, /* @__PURE__ */ import_react11.default.createElement("div", { className: headerDropdownClasses }, /* @__PURE__ */ import_react11.default.createElement(
|
|
1327
1341
|
Select_default,
|
|
1328
1342
|
{
|
|
1329
1343
|
"data-focusable": "true",
|
|
@@ -1333,8 +1347,8 @@ var Calendar = import_react9.default.forwardRef(
|
|
|
1333
1347
|
if (el && refs) refs.current[2] = el;
|
|
1334
1348
|
}
|
|
1335
1349
|
},
|
|
1336
|
-
months.map((monthName, monthIndex) => /* @__PURE__ */
|
|
1337
|
-
), /* @__PURE__ */
|
|
1350
|
+
months.map((monthName, monthIndex) => /* @__PURE__ */ import_react11.default.createElement(option_default, { key: monthIndex, value: String(monthIndex), disabled: !availableMonths[monthIndex] }, monthName))
|
|
1351
|
+
), /* @__PURE__ */ import_react11.default.createElement(
|
|
1338
1352
|
Select_default,
|
|
1339
1353
|
{
|
|
1340
1354
|
"data-focusable": "true",
|
|
@@ -1344,7 +1358,7 @@ var Calendar = import_react9.default.forwardRef(
|
|
|
1344
1358
|
if (el && refs) refs.current[3] = el;
|
|
1345
1359
|
}
|
|
1346
1360
|
},
|
|
1347
|
-
yearsBetween.map((year) => /* @__PURE__ */
|
|
1361
|
+
yearsBetween.map((year) => /* @__PURE__ */ import_react11.default.createElement(
|
|
1348
1362
|
option_default,
|
|
1349
1363
|
{
|
|
1350
1364
|
key: year.value,
|
|
@@ -1353,7 +1367,7 @@ var Calendar = import_react9.default.forwardRef(
|
|
|
1353
1367
|
},
|
|
1354
1368
|
String(year.value)
|
|
1355
1369
|
))
|
|
1356
|
-
))), /* @__PURE__ */
|
|
1370
|
+
))), /* @__PURE__ */ import_react11.default.createElement("th", { colSpan: 1, className: calendarNextMonthClasses }, /* @__PURE__ */ import_react11.default.createElement(
|
|
1357
1371
|
"button",
|
|
1358
1372
|
{
|
|
1359
1373
|
"data-focusable": !isNextDisabled,
|
|
@@ -1365,12 +1379,12 @@ var Calendar = import_react9.default.forwardRef(
|
|
|
1365
1379
|
if (el && refs) refs.current[4] = el;
|
|
1366
1380
|
}
|
|
1367
1381
|
},
|
|
1368
|
-
/* @__PURE__ */
|
|
1369
|
-
))), /* @__PURE__ */
|
|
1370
|
-
return /* @__PURE__ */
|
|
1382
|
+
/* @__PURE__ */ import_react11.default.createElement(Icon_default, { name: "tri-arrow-right" })
|
|
1383
|
+
))), /* @__PURE__ */ import_react11.default.createElement("tr", null, days.map((day, index) => {
|
|
1384
|
+
return /* @__PURE__ */ import_react11.default.createElement("td", { className: calendarDayLabelClasses, key: index }, /* @__PURE__ */ import_react11.default.createElement(Text_default, null, day.slice(0, 1)));
|
|
1371
1385
|
}))),
|
|
1372
|
-
/* @__PURE__ */
|
|
1373
|
-
return /* @__PURE__ */
|
|
1386
|
+
/* @__PURE__ */ import_react11.default.createElement("tbody", null, allDaysInMonth.map((week, weekIndex) => {
|
|
1387
|
+
return /* @__PURE__ */ import_react11.default.createElement(
|
|
1374
1388
|
"tr",
|
|
1375
1389
|
{
|
|
1376
1390
|
key: `${weeksId}_${weekIndex}`,
|
|
@@ -1390,7 +1404,7 @@ var Calendar = import_react9.default.forwardRef(
|
|
|
1390
1404
|
(date) => (date == null ? void 0 : date.getFullYear()) === (day == null ? void 0 : day.getFullYear()) && (date == null ? void 0 : date.getMonth()) === (day == null ? void 0 : day.getMonth()) && (date == null ? void 0 : date.getDate()) === (day == null ? void 0 : day.getDate())
|
|
1391
1405
|
)) || false;
|
|
1392
1406
|
const isInRange = isRange && activeDate[0] && dateEndHovered && day && day.getTime() >= activeDate[0].getTime() && day.getTime() < dateEndHovered.getTime() || isRange && activeDate[0] && activeDate[1] && day && day.getTime() >= activeDate[0].getTime() && day.getTime() < activeDate[1].getTime();
|
|
1393
|
-
return /* @__PURE__ */
|
|
1407
|
+
return /* @__PURE__ */ import_react11.default.createElement(
|
|
1394
1408
|
"td",
|
|
1395
1409
|
{
|
|
1396
1410
|
key: `${daysId}_${dayIndex}_${day == null ? void 0 : day.getTime()}`,
|
|
@@ -1405,7 +1419,7 @@ var Calendar = import_react9.default.forwardRef(
|
|
|
1405
1419
|
dayIndex === 6 && rondedRightClasses
|
|
1406
1420
|
)
|
|
1407
1421
|
},
|
|
1408
|
-
day && ind !== false && /* @__PURE__ */
|
|
1422
|
+
day && ind !== false && /* @__PURE__ */ import_react11.default.createElement(
|
|
1409
1423
|
"button",
|
|
1410
1424
|
{
|
|
1411
1425
|
disabled: isDisabled,
|