@dev-dga/react 0.10.1 → 0.12.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +91 -0
- package/dist/chunk-2I7URBEK.js +1 -0
- package/dist/chunk-2MDYDWAH.js +79 -0
- package/dist/chunk-2MDYDWAH.js.map +1 -0
- package/dist/chunk-36AIVLVG.cjs +79 -0
- package/dist/chunk-36AIVLVG.cjs.map +1 -0
- package/dist/chunk-3IEUUZKJ.cjs +1 -0
- package/dist/{chunk-G3M3XYMI.cjs.map → chunk-3IEUUZKJ.cjs.map} +1 -1
- package/dist/{chunk-AYIS62JR.cjs → chunk-3JHIEAJG.cjs} +54 -42
- package/dist/chunk-3JHIEAJG.cjs.map +1 -0
- package/dist/chunk-3UT22WQM.cjs +22 -0
- package/dist/chunk-3UT22WQM.cjs.map +1 -0
- package/dist/chunk-42MOUC3M.cjs +1 -0
- package/dist/{chunk-I44YNYI6.cjs.map → chunk-42MOUC3M.cjs.map} +1 -1
- package/dist/chunk-44S33DGQ.js +1 -0
- package/dist/chunk-4HBVLISS.js +169 -0
- package/dist/chunk-4HBVLISS.js.map +1 -0
- package/dist/chunk-4LHIVDAH.js +1 -0
- package/dist/chunk-4RCQFLSE.cjs +114 -0
- package/dist/chunk-4RCQFLSE.cjs.map +1 -0
- package/dist/chunk-4WQLBIL5.cjs +1 -0
- package/dist/{chunk-ISUDUZEG.cjs.map → chunk-4WQLBIL5.cjs.map} +1 -1
- package/dist/chunk-4WUUV44R.js +1 -0
- package/dist/chunk-4WXBRKGZ.cjs +375 -0
- package/dist/chunk-4WXBRKGZ.cjs.map +1 -0
- package/dist/chunk-54KSDBGC.js +260 -0
- package/dist/chunk-54KSDBGC.js.map +1 -0
- package/dist/chunk-55RHNN3T.js +116 -0
- package/dist/chunk-55RHNN3T.js.map +1 -0
- package/dist/chunk-5DBKWVTZ.js +1 -0
- package/dist/chunk-5GDTEDDH.js +503 -0
- package/dist/chunk-5GDTEDDH.js.map +1 -0
- package/dist/chunk-5N6CFYT6.cjs +256 -0
- package/dist/chunk-5N6CFYT6.cjs.map +1 -0
- package/dist/{chunk-UK2SFZIQ.cjs → chunk-5NENDJOM.cjs} +21 -26
- package/dist/chunk-5NENDJOM.cjs.map +1 -0
- package/dist/chunk-5X2XQMGC.js +178 -0
- package/dist/chunk-5X2XQMGC.js.map +1 -0
- package/dist/chunk-6CDZ7ZBG.js +85 -0
- package/dist/chunk-6CDZ7ZBG.js.map +1 -0
- package/dist/{chunk-KPZ5T4DW.cjs → chunk-6G2BJQZL.cjs} +3 -3
- package/dist/{chunk-KPZ5T4DW.cjs.map → chunk-6G2BJQZL.cjs.map} +1 -1
- package/dist/chunk-6HRQMDI3.js +95 -0
- package/dist/chunk-6HRQMDI3.js.map +1 -0
- package/dist/{chunk-RZEJPDIW.js → chunk-6LV62GNU.js} +5 -5
- package/dist/chunk-6LV62GNU.js.map +1 -0
- package/dist/chunk-6POW3HXX.js +73 -0
- package/dist/chunk-6POW3HXX.js.map +1 -0
- package/dist/chunk-6UFDUJZI.cjs +124 -0
- package/dist/chunk-6UFDUJZI.cjs.map +1 -0
- package/dist/chunk-7BOSIHW6.cjs +173 -0
- package/dist/chunk-7BOSIHW6.cjs.map +1 -0
- package/dist/chunk-7EEKESAA.js +167 -0
- package/dist/chunk-7EEKESAA.js.map +1 -0
- package/dist/chunk-7F24FFIV.cjs +260 -0
- package/dist/chunk-7F24FFIV.cjs.map +1 -0
- package/dist/{chunk-6BZMLKCU.cjs → chunk-7GAELGEB.cjs} +47 -20
- package/dist/chunk-7GAELGEB.cjs.map +1 -0
- package/dist/{chunk-EM55NWUF.js → chunk-7GWM7F5C.js} +46 -34
- package/dist/chunk-7GWM7F5C.js.map +1 -0
- package/dist/chunk-7PSLMVCX.js +1 -0
- package/dist/{chunk-RNOXGWKQ.cjs → chunk-A4HS7CYD.cjs} +35 -18
- package/dist/chunk-A4HS7CYD.cjs.map +1 -0
- package/dist/chunk-A6S4V3IG.cjs +1 -0
- package/dist/{chunk-IUEAUTR7.cjs.map → chunk-A6S4V3IG.cjs.map} +1 -1
- package/dist/{chunk-4T6QBG46.cjs → chunk-AJXGXUBN.cjs} +29 -17
- package/dist/chunk-AJXGXUBN.cjs.map +1 -0
- package/dist/{chunk-5EUEJU47.js → chunk-AMF37AOD.js} +21 -3
- package/dist/chunk-AMF37AOD.js.map +1 -0
- package/dist/chunk-AMYFRY7K.js +1 -0
- package/dist/chunk-ANHZT2X2.js +256 -0
- package/dist/chunk-ANHZT2X2.js.map +1 -0
- package/dist/{chunk-PKJUCI7B.js → chunk-APD5WA65.js} +2 -2
- package/dist/chunk-AVHWS36I.js +1 -0
- package/dist/chunk-AZXCLCIV.cjs +1 -0
- package/dist/chunk-AZXCLCIV.cjs.map +1 -0
- package/dist/{chunk-EXAPMLPA.cjs → chunk-BNCUXVZF.cjs} +3 -3
- package/dist/{chunk-EXAPMLPA.cjs.map → chunk-BNCUXVZF.cjs.map} +1 -1
- package/dist/{chunk-SNLIKIJP.js → chunk-BP6BOEVE.js} +2 -2
- package/dist/{chunk-4A7BAISU.js → chunk-BQZ4XAYH.js} +34 -27
- package/dist/chunk-BQZ4XAYH.js.map +1 -0
- package/dist/chunk-BYSA3YCV.cjs +309 -0
- package/dist/chunk-BYSA3YCV.cjs.map +1 -0
- package/dist/chunk-C37NYN62.cjs +1 -0
- package/dist/chunk-C37NYN62.cjs.map +1 -0
- package/dist/chunk-CNY63MC2.cjs +1 -0
- package/dist/chunk-CNY63MC2.cjs.map +1 -0
- package/dist/{chunk-NDHMY3IR.js → chunk-CUGEH7EB.js} +11 -3
- package/dist/chunk-CUGEH7EB.js.map +1 -0
- package/dist/{chunk-NUC6WJU4.cjs → chunk-CUOYBYI4.cjs} +8 -8
- package/dist/{chunk-NUC6WJU4.cjs.map → chunk-CUOYBYI4.cjs.map} +1 -1
- package/dist/chunk-CWUZ4SZN.js +1 -0
- package/dist/{chunk-QGK2KYQS.js → chunk-CYHSWWH6.js} +18 -8
- package/dist/chunk-CYHSWWH6.js.map +1 -0
- package/dist/{chunk-GMBIFJOA.cjs → chunk-DAKCNDN5.cjs} +19 -9
- package/dist/chunk-DAKCNDN5.cjs.map +1 -0
- package/dist/chunk-DI52GZLA.cjs +116 -0
- package/dist/chunk-DI52GZLA.cjs.map +1 -0
- package/dist/{chunk-4U5TTO6E.cjs → chunk-DU4YQEIM.cjs} +71 -28
- package/dist/chunk-DU4YQEIM.cjs.map +1 -0
- package/dist/chunk-DUJCV2NZ.cjs +1 -0
- package/dist/chunk-DUJCV2NZ.cjs.map +1 -0
- package/dist/{chunk-YH44Q6CI.cjs → chunk-DVKPFWP2.cjs} +7 -7
- package/dist/{chunk-YH44Q6CI.cjs.map → chunk-DVKPFWP2.cjs.map} +1 -1
- package/dist/chunk-DWCTUNFU.cjs +85 -0
- package/dist/chunk-DWCTUNFU.cjs.map +1 -0
- package/dist/chunk-E5ZIKIGB.js +22 -0
- package/dist/chunk-E5ZIKIGB.js.map +1 -0
- package/dist/chunk-EMXKYSUI.cjs +341 -0
- package/dist/chunk-EMXKYSUI.cjs.map +1 -0
- package/dist/chunk-EQINOHB6.cjs +169 -0
- package/dist/chunk-EQINOHB6.cjs.map +1 -0
- package/dist/chunk-EY5XTOWH.cjs +45 -0
- package/dist/chunk-EY5XTOWH.cjs.map +1 -0
- package/dist/chunk-EZRPCQSP.js +272 -0
- package/dist/chunk-EZRPCQSP.js.map +1 -0
- package/dist/chunk-F5YD6T5D.js +1 -0
- package/dist/chunk-FF4QNJOQ.js +149 -0
- package/dist/chunk-FF4QNJOQ.js.map +1 -0
- package/dist/chunk-FFGALWM2.js +1113 -0
- package/dist/chunk-FFGALWM2.js.map +1 -0
- package/dist/chunk-FFUNMWQV.cjs +1 -0
- package/dist/chunk-FFUNMWQV.cjs.map +1 -0
- package/dist/chunk-FO7IICMM.js +61 -0
- package/dist/chunk-FO7IICMM.js.map +1 -0
- package/dist/{chunk-CGCO7RFO.js → chunk-FPXFD5XT.js} +2 -2
- package/dist/chunk-FQZ6F7FQ.cjs +1 -0
- package/dist/chunk-FQZ6F7FQ.cjs.map +1 -0
- package/dist/{chunk-CBCUQUHI.cjs → chunk-FUFFG2UW.cjs} +38 -12
- package/dist/chunk-FUFFG2UW.cjs.map +1 -0
- package/dist/{chunk-YVQOUGWG.cjs → chunk-FV6E33FY.cjs} +25 -11
- package/dist/chunk-FV6E33FY.cjs.map +1 -0
- package/dist/chunk-G6LUBXN2.js +271 -0
- package/dist/chunk-G6LUBXN2.js.map +1 -0
- package/dist/chunk-G6ZOJVIG.cjs +271 -0
- package/dist/chunk-G6ZOJVIG.cjs.map +1 -0
- package/dist/{chunk-TT2DEREM.js → chunk-GCOBDP4W.js} +37 -20
- package/dist/chunk-GCOBDP4W.js.map +1 -0
- package/dist/chunk-GEVXV4RL.js +309 -0
- package/dist/chunk-GEVXV4RL.js.map +1 -0
- package/dist/{chunk-Y5IWUJF7.js → chunk-GHJEE4NW.js} +3 -11
- package/dist/chunk-GHJEE4NW.js.map +1 -0
- package/dist/chunk-GIHJ4J47.js +1 -0
- package/dist/{chunk-4RU33BRQ.js → chunk-GQAX2CH6.js} +20 -25
- package/dist/chunk-GQAX2CH6.js.map +1 -0
- package/dist/{chunk-NJIMQWBC.js → chunk-GS7QTYLD.js} +43 -23
- package/dist/chunk-GS7QTYLD.js.map +1 -0
- package/dist/{chunk-D4ZUV7FD.cjs → chunk-GUI2LDJZ.cjs} +5 -13
- package/dist/chunk-GUI2LDJZ.cjs.map +1 -0
- package/dist/chunk-GXF5IZEX.cjs +264 -0
- package/dist/chunk-GXF5IZEX.cjs.map +1 -0
- package/dist/{chunk-TM3FOGLK.cjs → chunk-GYUQ5TEQ.cjs} +1 -1
- package/dist/chunk-GYUQ5TEQ.cjs.map +1 -0
- package/dist/chunk-H2HKUDBZ.js +1 -0
- package/dist/chunk-H6AWWJHL.cjs +1 -0
- package/dist/chunk-H6AWWJHL.cjs.map +1 -0
- package/dist/{chunk-VSC3A6VB.cjs → chunk-H7QU5L7R.cjs} +14 -4
- package/dist/chunk-H7QU5L7R.cjs.map +1 -0
- package/dist/{chunk-WB5AEG5D.cjs → chunk-HC2H35U2.cjs} +57 -15
- package/dist/chunk-HC2H35U2.cjs.map +1 -0
- package/dist/{chunk-ZKYBLXU7.js → chunk-HMXCWHVT.js} +6 -14
- package/dist/chunk-HMXCWHVT.js.map +1 -0
- package/dist/{chunk-P2JM7CUD.cjs → chunk-HTKCQZIJ.cjs} +5 -5
- package/dist/chunk-HTKCQZIJ.cjs.map +1 -0
- package/dist/{chunk-I6BOBHO6.cjs → chunk-IFZWOLDF.cjs} +37 -12
- package/dist/chunk-IFZWOLDF.cjs.map +1 -0
- package/dist/chunk-IJ5F5RUW.cjs +1 -0
- package/dist/chunk-IJ5F5RUW.cjs.map +1 -0
- package/dist/{chunk-ATOT5N34.cjs → chunk-IM6TYL3P.cjs} +3 -3
- package/dist/{chunk-ATOT5N34.cjs.map → chunk-IM6TYL3P.cjs.map} +1 -1
- package/dist/chunk-IMW6TRMU.cjs +1 -0
- package/dist/chunk-IMW6TRMU.cjs.map +1 -0
- package/dist/{chunk-3X7ORLG5.cjs → chunk-J7XCG6SX.cjs} +4 -4
- package/dist/{chunk-3X7ORLG5.cjs.map → chunk-J7XCG6SX.cjs.map} +1 -1
- package/dist/chunk-JAMYRBHS.js +375 -0
- package/dist/chunk-JAMYRBHS.js.map +1 -0
- package/dist/{chunk-NQGCAXTW.cjs → chunk-JCOUZVG3.cjs} +26 -10
- package/dist/chunk-JCOUZVG3.cjs.map +1 -0
- package/dist/chunk-JWOG4I4P.js +130 -0
- package/dist/chunk-JWOG4I4P.js.map +1 -0
- package/dist/chunk-JXATJSBR.js +45 -0
- package/dist/chunk-JXATJSBR.js.map +1 -0
- package/dist/chunk-K27GNXBF.cjs +272 -0
- package/dist/chunk-K27GNXBF.cjs.map +1 -0
- package/dist/{chunk-3VOOMW6O.js → chunk-KDV7V5S4.js} +2 -2
- package/dist/chunk-KSEN4ESR.js +230 -0
- package/dist/chunk-KSEN4ESR.js.map +1 -0
- package/dist/chunk-LEDIOXDM.js +341 -0
- package/dist/chunk-LEDIOXDM.js.map +1 -0
- package/dist/chunk-MKQBAQIH.js +1 -0
- package/dist/chunk-MS6HASC6.js +1 -0
- package/dist/chunk-MVKIXWKJ.js +114 -0
- package/dist/chunk-MVKIXWKJ.js.map +1 -0
- package/dist/{chunk-BGS3MCQZ.cjs → chunk-NH7XLE7E.cjs} +6 -14
- package/dist/chunk-NH7XLE7E.cjs.map +1 -0
- package/dist/chunk-NJIQJHJS.js +264 -0
- package/dist/chunk-NJIQJHJS.js.map +1 -0
- package/dist/{chunk-HBAHWCBK.js → chunk-NKCBDSI2.js} +3 -3
- package/dist/chunk-NL4LM47X.cjs +178 -0
- package/dist/chunk-NL4LM47X.cjs.map +1 -0
- package/dist/chunk-NOXQQACO.js +173 -0
- package/dist/chunk-NOXQQACO.js.map +1 -0
- package/dist/{chunk-VNITXANA.js → chunk-NS4IRTKQ.js} +1 -1
- package/dist/chunk-NS4IRTKQ.js.map +1 -0
- package/dist/chunk-NT6EEI44.cjs +86 -0
- package/dist/chunk-NT6EEI44.cjs.map +1 -0
- package/dist/chunk-NVCOEKCU.js +1 -0
- package/dist/chunk-O7BBEN7E.cjs +503 -0
- package/dist/chunk-O7BBEN7E.cjs.map +1 -0
- package/dist/{chunk-BBGCS5PZ.cjs → chunk-ODNO43HV.cjs} +6 -6
- package/dist/chunk-ODNO43HV.cjs.map +1 -0
- package/dist/chunk-ORRYZCLQ.cjs +1 -0
- package/dist/chunk-ORRYZCLQ.cjs.map +1 -0
- package/dist/{chunk-MCHL23CE.js → chunk-P7XKSXHH.js} +49 -34
- package/dist/chunk-P7XKSXHH.js.map +1 -0
- package/dist/chunk-PLLUSKME.cjs +95 -0
- package/dist/chunk-PLLUSKME.cjs.map +1 -0
- package/dist/chunk-PLT3EZZ5.js +194 -0
- package/dist/chunk-PLT3EZZ5.js.map +1 -0
- package/dist/{chunk-UPIDCMZI.cjs → chunk-QCITJAK6.cjs} +74 -17
- package/dist/chunk-QCITJAK6.cjs.map +1 -0
- package/dist/chunk-QE3ZFSJK.js +55 -0
- package/dist/chunk-QE3ZFSJK.js.map +1 -0
- package/dist/chunk-QG3PLYK6.js +53 -0
- package/dist/chunk-QG3PLYK6.js.map +1 -0
- package/dist/chunk-QLV4RQVQ.cjs +230 -0
- package/dist/chunk-QLV4RQVQ.cjs.map +1 -0
- package/dist/chunk-QU32POS4.js +150 -0
- package/dist/chunk-QU32POS4.js.map +1 -0
- package/dist/{chunk-C3YKGPQM.cjs → chunk-REDX5DCT.cjs} +34 -27
- package/dist/chunk-REDX5DCT.cjs.map +1 -0
- package/dist/{chunk-CNAMOK3Z.cjs → chunk-RH3CQOEI.cjs} +4 -4
- package/dist/{chunk-CNAMOK3Z.cjs.map → chunk-RH3CQOEI.cjs.map} +1 -1
- package/dist/chunk-RQRA5CCA.js +1 -0
- package/dist/chunk-SA7NMDD5.cjs +53 -0
- package/dist/chunk-SA7NMDD5.cjs.map +1 -0
- package/dist/{chunk-WI4WQGF6.cjs → chunk-SJN37JUC.cjs} +57 -42
- package/dist/chunk-SJN37JUC.cjs.map +1 -0
- package/dist/chunk-SOQFBVCQ.cjs +73 -0
- package/dist/chunk-SOQFBVCQ.cjs.map +1 -0
- package/dist/chunk-SZE2JS36.cjs +55 -0
- package/dist/chunk-SZE2JS36.cjs.map +1 -0
- package/dist/chunk-SZMS46F5.js +124 -0
- package/dist/chunk-SZMS46F5.js.map +1 -0
- package/dist/chunk-T2E5XT7P.js +1 -0
- package/dist/{chunk-CISRE6BC.cjs → chunk-T3NVC7UU.cjs} +6 -6
- package/dist/{chunk-CISRE6BC.cjs.map → chunk-T3NVC7UU.cjs.map} +1 -1
- package/dist/{chunk-VAF6PKVY.js → chunk-TG2IDU3W.js} +2 -2
- package/dist/{chunk-SZUMMROW.js → chunk-TNIRKGXY.js} +22 -8
- package/dist/chunk-TNIRKGXY.js.map +1 -0
- package/dist/chunk-TPAVJN55.cjs +1 -0
- package/dist/chunk-TPAVJN55.cjs.map +1 -0
- package/dist/{chunk-IFEWF24B.js → chunk-TPD2GNR6.js} +3 -3
- package/dist/chunk-TPNCV7KA.js +1 -0
- package/dist/{chunk-PZWJQNCY.cjs → chunk-TYZIRV75.cjs} +19 -11
- package/dist/chunk-TYZIRV75.cjs.map +1 -0
- package/dist/chunk-U24PBXZA.cjs +130 -0
- package/dist/chunk-U24PBXZA.cjs.map +1 -0
- package/dist/chunk-U7SCEB34.js +181 -0
- package/dist/chunk-U7SCEB34.js.map +1 -0
- package/dist/{chunk-BGKYCKNM.cjs → chunk-UGQBOWHR.cjs} +6 -6
- package/dist/{chunk-BGKYCKNM.cjs.map → chunk-UGQBOWHR.cjs.map} +1 -1
- package/dist/{chunk-BS3UEJ5G.js → chunk-UV4Q3LRC.js} +28 -16
- package/dist/chunk-UV4Q3LRC.js.map +1 -0
- package/dist/chunk-VB5VOUED.js +1 -0
- package/dist/{chunk-M5ZXQ2QS.js → chunk-VEFRVKSA.js} +60 -18
- package/dist/chunk-VEFRVKSA.js.map +1 -0
- package/dist/chunk-VISVU5LS.js +41 -0
- package/dist/chunk-VISVU5LS.js.map +1 -0
- package/dist/{chunk-MQN6A3CE.js → chunk-VJV3K53D.js} +17 -9
- package/dist/chunk-VJV3K53D.js.map +1 -0
- package/dist/chunk-VMR4KVFM.cjs +1 -0
- package/dist/chunk-VMR4KVFM.cjs.map +1 -0
- package/dist/{chunk-JWUYPAFC.cjs → chunk-VN2YHNUE.cjs} +43 -23
- package/dist/chunk-VN2YHNUE.cjs.map +1 -0
- package/dist/{chunk-GVND3JE3.js → chunk-VRPFA4CN.js} +2 -2
- package/dist/chunk-VYP5GX57.cjs +167 -0
- package/dist/chunk-VYP5GX57.cjs.map +1 -0
- package/dist/{chunk-DEC2WM3G.js → chunk-WGCK6KKL.js} +36 -10
- package/dist/chunk-WGCK6KKL.js.map +1 -0
- package/dist/{chunk-66EVFQVL.js → chunk-WHKNCDTX.js} +3 -3
- package/dist/{chunk-MGZO7MBN.cjs → chunk-WOTSK33U.cjs} +23 -5
- package/dist/chunk-WOTSK33U.cjs.map +1 -0
- package/dist/{chunk-BTP7G7WR.js → chunk-WRCHASO2.js} +5 -5
- package/dist/chunk-WRCHASO2.js.map +1 -0
- package/dist/{chunk-FI65HI2H.js → chunk-WRUVDZRI.js} +49 -22
- package/dist/chunk-WRUVDZRI.js.map +1 -0
- package/dist/chunk-WUSHGDHJ.cjs +1 -0
- package/dist/chunk-WUSHGDHJ.cjs.map +1 -0
- package/dist/{chunk-XCR3TPXT.js → chunk-XB6YHZAG.js} +70 -27
- package/dist/chunk-XB6YHZAG.js.map +1 -0
- package/dist/{chunk-AV6BIQQA.js → chunk-Y2E2RLBI.js} +14 -4
- package/dist/chunk-Y2E2RLBI.js.map +1 -0
- package/dist/chunk-YCIZERNO.cjs +150 -0
- package/dist/chunk-YCIZERNO.cjs.map +1 -0
- package/dist/chunk-YD2UW3PB.js +1 -0
- package/dist/chunk-YOKOPO2W.cjs +181 -0
- package/dist/chunk-YOKOPO2W.cjs.map +1 -0
- package/dist/chunk-YS2JJ73M.cjs +1113 -0
- package/dist/chunk-YS2JJ73M.cjs.map +1 -0
- package/dist/chunk-YS3BV5KJ.cjs +41 -0
- package/dist/chunk-YS3BV5KJ.cjs.map +1 -0
- package/dist/chunk-YUW5S2BZ.cjs +1 -0
- package/dist/chunk-YUW5S2BZ.cjs.map +1 -0
- package/dist/chunk-Z2LJBEIV.cjs +149 -0
- package/dist/chunk-Z2LJBEIV.cjs.map +1 -0
- package/dist/{chunk-TTHWYBQB.cjs → chunk-Z6YQH5SZ.cjs} +11 -3
- package/dist/chunk-Z6YQH5SZ.cjs.map +1 -0
- package/dist/chunk-Z6ZCVVNU.js +86 -0
- package/dist/chunk-Z6ZCVVNU.js.map +1 -0
- package/dist/{chunk-JOJ23OD4.js → chunk-ZNDJS2W7.js} +36 -11
- package/dist/chunk-ZNDJS2W7.js.map +1 -0
- package/dist/chunk-ZNUMOJOI.cjs +1 -0
- package/dist/chunk-ZNUMOJOI.cjs.map +1 -0
- package/dist/chunk-ZYPPXGI7.cjs +1 -0
- package/dist/chunk-ZYPPXGI7.cjs.map +1 -0
- package/dist/components/Accordion/Accordion.cjs +3 -3
- package/dist/components/Accordion/Accordion.js +2 -2
- package/dist/components/Accordion/index.cjs +3 -3
- package/dist/components/Accordion/index.js +2 -2
- package/dist/components/Avatar/Avatar.cjs +2 -2
- package/dist/components/Avatar/Avatar.js +1 -1
- package/dist/components/Avatar/index.cjs +2 -2
- package/dist/components/Avatar/index.js +1 -1
- package/dist/components/Breadcrumb/Breadcrumb.cjs +5 -3
- package/dist/components/Breadcrumb/Breadcrumb.cjs.map +1 -1
- package/dist/components/Breadcrumb/Breadcrumb.js +4 -2
- package/dist/components/Breadcrumb/index.cjs +5 -3
- package/dist/components/Breadcrumb/index.cjs.map +1 -1
- package/dist/components/Breadcrumb/index.js +4 -2
- package/dist/components/Button/Button.cjs +3 -3
- package/dist/components/Button/Button.js +2 -2
- package/dist/components/Button/index.cjs +3 -3
- package/dist/components/Button/index.js +2 -2
- package/dist/components/Card/Card.cjs +11 -2
- package/dist/components/Card/Card.cjs.map +1 -1
- package/dist/components/Card/Card.js +10 -1
- package/dist/components/Card/index.cjs +11 -2
- package/dist/components/Card/index.cjs.map +1 -1
- package/dist/components/Card/index.js +10 -1
- package/dist/components/Carousel/Carousel.cjs +26 -0
- package/dist/components/Carousel/Carousel.cjs.map +1 -0
- package/dist/components/Carousel/Carousel.js +26 -0
- package/dist/components/Carousel/index.cjs +26 -0
- package/dist/components/Carousel/index.cjs.map +1 -0
- package/dist/components/Carousel/index.js +26 -0
- package/dist/components/Charts/Charts.cjs +14 -0
- package/dist/components/Charts/Charts.cjs.map +1 -0
- package/dist/components/Charts/Charts.js +14 -0
- package/dist/components/Charts/index.cjs +14 -0
- package/dist/components/Charts/index.cjs.map +1 -0
- package/dist/components/Charts/index.js +14 -0
- package/dist/components/Charts/index.js.map +1 -0
- package/dist/components/Checkbox/Checkbox.cjs +4 -4
- package/dist/components/Checkbox/Checkbox.js +3 -3
- package/dist/components/Checkbox/index.cjs +4 -4
- package/dist/components/Checkbox/index.js +3 -3
- package/dist/components/Chip/Chip.cjs +11 -0
- package/dist/components/Chip/Chip.cjs.map +1 -0
- package/dist/components/Chip/Chip.js +11 -0
- package/dist/components/Chip/Chip.js.map +1 -0
- package/dist/components/Chip/index.cjs +11 -0
- package/dist/components/Chip/index.cjs.map +1 -0
- package/dist/components/Chip/index.js +11 -0
- package/dist/components/Chip/index.js.map +1 -0
- package/dist/components/CodeSnippet/CodeSnippet.cjs +15 -0
- package/dist/components/CodeSnippet/CodeSnippet.cjs.map +1 -0
- package/dist/components/CodeSnippet/CodeSnippet.js +15 -0
- package/dist/components/CodeSnippet/CodeSnippet.js.map +1 -0
- package/dist/components/CodeSnippet/index.cjs +15 -0
- package/dist/components/CodeSnippet/index.cjs.map +1 -0
- package/dist/components/CodeSnippet/index.js +15 -0
- package/dist/components/CodeSnippet/index.js.map +1 -0
- package/dist/components/Command/Command.cjs +3 -3
- package/dist/components/Command/Command.js +2 -2
- package/dist/components/Command/index.cjs +3 -3
- package/dist/components/Command/index.js +2 -2
- package/dist/components/ContentSwitcher/ContentSwitcher.cjs +13 -0
- package/dist/components/ContentSwitcher/ContentSwitcher.cjs.map +1 -0
- package/dist/components/ContentSwitcher/ContentSwitcher.js +13 -0
- package/dist/components/ContentSwitcher/ContentSwitcher.js.map +1 -0
- package/dist/components/ContentSwitcher/index.cjs +13 -0
- package/dist/components/ContentSwitcher/index.cjs.map +1 -0
- package/dist/components/ContentSwitcher/index.js +13 -0
- package/dist/components/ContentSwitcher/index.js.map +1 -0
- package/dist/components/DatePicker/DatePicker.cjs +4 -4
- package/dist/components/DatePicker/DatePicker.js +3 -3
- package/dist/components/DatePicker/index.cjs +4 -4
- package/dist/components/DatePicker/index.js +3 -3
- package/dist/components/DateRangePicker/DateRangePicker.cjs +4 -4
- package/dist/components/DateRangePicker/DateRangePicker.js +3 -3
- package/dist/components/DateRangePicker/index.cjs +4 -4
- package/dist/components/DateRangePicker/index.js +3 -3
- package/dist/components/DigitalStamp/DigitalStamp.cjs +12 -0
- package/dist/components/DigitalStamp/DigitalStamp.cjs.map +1 -0
- package/dist/components/DigitalStamp/DigitalStamp.js +12 -0
- package/dist/components/DigitalStamp/DigitalStamp.js.map +1 -0
- package/dist/components/DigitalStamp/index.cjs +12 -0
- package/dist/components/DigitalStamp/index.cjs.map +1 -0
- package/dist/components/DigitalStamp/index.js +12 -0
- package/dist/components/DigitalStamp/index.js.map +1 -0
- package/dist/components/Divider/Divider.cjs +2 -2
- package/dist/components/Divider/Divider.js +1 -1
- package/dist/components/Divider/index.cjs +2 -2
- package/dist/components/Divider/index.js +1 -1
- package/dist/components/Drawer/Drawer.cjs +3 -3
- package/dist/components/Drawer/Drawer.js +2 -2
- package/dist/components/Drawer/index.cjs +3 -3
- package/dist/components/Drawer/index.js +2 -2
- package/dist/components/Dropdown/Dropdown.cjs +22 -0
- package/dist/components/Dropdown/Dropdown.cjs.map +1 -0
- package/dist/components/Dropdown/Dropdown.js +22 -0
- package/dist/components/Dropdown/Dropdown.js.map +1 -0
- package/dist/components/Dropdown/index.cjs +22 -0
- package/dist/components/Dropdown/index.cjs.map +1 -0
- package/dist/components/Dropdown/index.js +22 -0
- package/dist/components/Dropdown/index.js.map +1 -0
- package/dist/components/DropdownMenu/DropdownMenu.cjs +3 -3
- package/dist/components/DropdownMenu/DropdownMenu.js +2 -2
- package/dist/components/DropdownMenu/index.cjs +3 -3
- package/dist/components/DropdownMenu/index.js +2 -2
- package/dist/components/EmptyState/EmptyState.cjs +3 -3
- package/dist/components/EmptyState/EmptyState.js +2 -2
- package/dist/components/EmptyState/index.cjs +3 -3
- package/dist/components/EmptyState/index.js +2 -2
- package/dist/components/FileUpload/FileUpload.cjs +6 -8
- package/dist/components/FileUpload/FileUpload.cjs.map +1 -1
- package/dist/components/FileUpload/FileUpload.js +5 -7
- package/dist/components/FileUpload/index.cjs +6 -8
- package/dist/components/FileUpload/index.cjs.map +1 -1
- package/dist/components/FileUpload/index.js +5 -7
- package/dist/components/Filtration/Filtration.cjs +44 -0
- package/dist/components/Filtration/Filtration.cjs.map +1 -0
- package/dist/components/Filtration/Filtration.js +44 -0
- package/dist/components/Filtration/Filtration.js.map +1 -0
- package/dist/components/Filtration/index.cjs +44 -0
- package/dist/components/Filtration/index.cjs.map +1 -0
- package/dist/components/Filtration/index.js +44 -0
- package/dist/components/Filtration/index.js.map +1 -0
- package/dist/components/FloatingButton/FloatingButton.cjs +11 -0
- package/dist/components/FloatingButton/FloatingButton.cjs.map +1 -0
- package/dist/components/FloatingButton/FloatingButton.js +11 -0
- package/dist/components/FloatingButton/FloatingButton.js.map +1 -0
- package/dist/components/FloatingButton/index.cjs +11 -0
- package/dist/components/FloatingButton/index.cjs.map +1 -0
- package/dist/components/FloatingButton/index.js +11 -0
- package/dist/components/FloatingButton/index.js.map +1 -0
- package/dist/components/InlineAlert/InlineAlert.cjs +14 -0
- package/dist/components/InlineAlert/InlineAlert.cjs.map +1 -0
- package/dist/components/InlineAlert/InlineAlert.js +14 -0
- package/dist/components/InlineAlert/InlineAlert.js.map +1 -0
- package/dist/components/InlineAlert/index.cjs +14 -0
- package/dist/components/InlineAlert/index.cjs.map +1 -0
- package/dist/components/InlineAlert/index.js +14 -0
- package/dist/components/InlineAlert/index.js.map +1 -0
- package/dist/components/InputOTP/InputOTP.cjs +3 -3
- package/dist/components/InputOTP/InputOTP.js +2 -2
- package/dist/components/InputOTP/index.cjs +3 -3
- package/dist/components/InputOTP/index.js +2 -2
- package/dist/components/Link/Link.cjs +3 -3
- package/dist/components/Link/Link.js +2 -2
- package/dist/components/Link/index.cjs +3 -3
- package/dist/components/Link/index.js +2 -2
- package/dist/components/List/List.cjs +2 -8
- package/dist/components/List/List.cjs.map +1 -1
- package/dist/components/List/List.js +1 -7
- package/dist/components/List/index.cjs +2 -8
- package/dist/components/List/index.cjs.map +1 -1
- package/dist/components/List/index.js +1 -7
- package/dist/components/Menubar/Menubar.cjs +3 -3
- package/dist/components/Menubar/Menubar.js +2 -2
- package/dist/components/Menubar/index.cjs +3 -3
- package/dist/components/Menubar/index.js +2 -2
- package/dist/components/Metric/Metric.cjs +16 -0
- package/dist/components/Metric/Metric.cjs.map +1 -0
- package/dist/components/Metric/Metric.js +16 -0
- package/dist/components/Metric/Metric.js.map +1 -0
- package/dist/components/Metric/MetricGroup.cjs +11 -0
- package/dist/components/Metric/MetricGroup.cjs.map +1 -0
- package/dist/components/Metric/MetricGroup.js +11 -0
- package/dist/components/Metric/MetricGroup.js.map +1 -0
- package/dist/components/Metric/index.cjs +22 -0
- package/dist/components/Metric/index.cjs.map +1 -0
- package/dist/components/Metric/index.js +22 -0
- package/dist/components/Metric/index.js.map +1 -0
- package/dist/components/Modal/Modal.cjs +3 -3
- package/dist/components/Modal/Modal.js +2 -2
- package/dist/components/Modal/index.cjs +3 -3
- package/dist/components/Modal/index.js +2 -2
- package/dist/components/Notification/Notification.cjs +12 -0
- package/dist/components/Notification/Notification.cjs.map +1 -0
- package/dist/components/Notification/Notification.js +12 -0
- package/dist/components/Notification/Notification.js.map +1 -0
- package/dist/components/Notification/index.cjs +12 -0
- package/dist/components/Notification/index.cjs.map +1 -0
- package/dist/components/Notification/index.js +12 -0
- package/dist/components/Notification/index.js.map +1 -0
- package/dist/components/NotificationToast/NotificationToast.cjs +24 -0
- package/dist/components/NotificationToast/NotificationToast.cjs.map +1 -0
- package/dist/components/NotificationToast/NotificationToast.js +24 -0
- package/dist/components/NotificationToast/NotificationToast.js.map +1 -0
- package/dist/components/NotificationToast/index.cjs +24 -0
- package/dist/components/NotificationToast/index.cjs.map +1 -0
- package/dist/components/NotificationToast/index.js +24 -0
- package/dist/components/NotificationToast/index.js.map +1 -0
- package/dist/components/NotificationToast/toast-store.cjs +14 -0
- package/dist/components/NotificationToast/toast-store.cjs.map +1 -0
- package/dist/components/{Toast → NotificationToast}/toast-store.js +1 -1
- package/dist/components/NotificationToast/toast-store.js.map +1 -0
- package/dist/components/NumberInput/NumberInput.cjs +4 -4
- package/dist/components/NumberInput/NumberInput.js +3 -3
- package/dist/components/NumberInput/index.cjs +4 -4
- package/dist/components/NumberInput/index.js +3 -3
- package/dist/components/Pagination/Pagination.cjs +6 -3
- package/dist/components/Pagination/Pagination.cjs.map +1 -1
- package/dist/components/Pagination/Pagination.js +5 -2
- package/dist/components/Pagination/index.cjs +7 -4
- package/dist/components/Pagination/index.cjs.map +1 -1
- package/dist/components/Pagination/index.js +8 -5
- package/dist/components/Popover/Popover.cjs +3 -3
- package/dist/components/Popover/Popover.js +2 -2
- package/dist/components/Popover/index.cjs +3 -3
- package/dist/components/Popover/index.js +2 -2
- package/dist/components/Progress/Progress.cjs +3 -2
- package/dist/components/Progress/Progress.cjs.map +1 -1
- package/dist/components/Progress/Progress.js +2 -1
- package/dist/components/Progress/index.cjs +3 -2
- package/dist/components/Progress/index.cjs.map +1 -1
- package/dist/components/Progress/index.js +2 -1
- package/dist/components/ProgressIndicator/ProgressIndicator.cjs +24 -0
- package/dist/components/ProgressIndicator/ProgressIndicator.cjs.map +1 -0
- package/dist/components/ProgressIndicator/ProgressIndicator.js +24 -0
- package/dist/components/ProgressIndicator/ProgressIndicator.js.map +1 -0
- package/dist/components/ProgressIndicator/index.cjs +24 -0
- package/dist/components/ProgressIndicator/index.cjs.map +1 -0
- package/dist/components/ProgressIndicator/index.js +24 -0
- package/dist/components/ProgressIndicator/index.js.map +1 -0
- package/dist/components/Quote/Quote.cjs +2 -11
- package/dist/components/Quote/Quote.cjs.map +1 -1
- package/dist/components/Quote/Quote.js +1 -10
- package/dist/components/Quote/index.cjs +2 -11
- package/dist/components/Quote/index.cjs.map +1 -1
- package/dist/components/Quote/index.js +1 -10
- package/dist/components/Radio/Radio.cjs +3 -3
- package/dist/components/Radio/Radio.js +2 -2
- package/dist/components/Radio/index.cjs +3 -3
- package/dist/components/Radio/index.js +2 -2
- package/dist/components/Rating/Rating.cjs +4 -4
- package/dist/components/Rating/Rating.js +3 -3
- package/dist/components/Rating/index.cjs +4 -4
- package/dist/components/Rating/index.js +3 -3
- package/dist/components/SaudiRiyal/SaudiRiyal.cjs +16 -0
- package/dist/components/SaudiRiyal/SaudiRiyal.cjs.map +1 -0
- package/dist/components/SaudiRiyal/SaudiRiyal.js +16 -0
- package/dist/components/SaudiRiyal/SaudiRiyal.js.map +1 -0
- package/dist/components/SaudiRiyal/index.cjs +16 -0
- package/dist/components/SaudiRiyal/index.cjs.map +1 -0
- package/dist/components/SaudiRiyal/index.js +16 -0
- package/dist/components/SaudiRiyal/index.js.map +1 -0
- package/dist/components/SearchBox/SearchBox.cjs +8 -8
- package/dist/components/SearchBox/SearchBox.js +7 -7
- package/dist/components/SearchBox/index.cjs +8 -8
- package/dist/components/SearchBox/index.js +7 -7
- package/dist/components/Select/Select.cjs +4 -4
- package/dist/components/Select/Select.js +3 -3
- package/dist/components/Select/index.cjs +4 -4
- package/dist/components/Select/index.js +3 -3
- package/dist/components/Sidebar/Sidebar.cjs +4 -4
- package/dist/components/Sidebar/Sidebar.js +3 -3
- package/dist/components/Sidebar/SidebarMenu.cjs +4 -4
- package/dist/components/Sidebar/SidebarMenu.js +3 -3
- package/dist/components/Sidebar/index.cjs +7 -7
- package/dist/components/Sidebar/index.js +6 -6
- package/dist/components/Skeleton/Skeleton.cjs +2 -2
- package/dist/components/Skeleton/Skeleton.js +1 -1
- package/dist/components/Skeleton/index.cjs +2 -2
- package/dist/components/Skeleton/index.js +1 -1
- package/dist/components/SlideoutMenu/SlideoutMenu.cjs +35 -0
- package/dist/components/SlideoutMenu/SlideoutMenu.cjs.map +1 -0
- package/dist/components/SlideoutMenu/SlideoutMenu.js +35 -0
- package/dist/components/SlideoutMenu/SlideoutMenu.js.map +1 -0
- package/dist/components/SlideoutMenu/index.cjs +35 -0
- package/dist/components/SlideoutMenu/index.cjs.map +1 -0
- package/dist/components/SlideoutMenu/index.js +35 -0
- package/dist/components/SlideoutMenu/index.js.map +1 -0
- package/dist/components/Slider/Slider.cjs +3 -3
- package/dist/components/Slider/Slider.js +2 -2
- package/dist/components/Slider/index.cjs +3 -3
- package/dist/components/Slider/index.js +2 -2
- package/dist/components/Spinner/Spinner.cjs +2 -2
- package/dist/components/Spinner/Spinner.js +1 -1
- package/dist/components/Spinner/index.cjs +2 -2
- package/dist/components/Spinner/index.js +1 -1
- package/dist/components/StatusTag/StatusTag.cjs +11 -0
- package/dist/components/StatusTag/StatusTag.cjs.map +1 -0
- package/dist/components/StatusTag/StatusTag.js +11 -0
- package/dist/components/StatusTag/StatusTag.js.map +1 -0
- package/dist/components/StatusTag/index.cjs +11 -0
- package/dist/components/StatusTag/index.cjs.map +1 -0
- package/dist/components/StatusTag/index.js +11 -0
- package/dist/components/StatusTag/index.js.map +1 -0
- package/dist/components/StructuredList/StructuredList.cjs +27 -0
- package/dist/components/StructuredList/StructuredList.cjs.map +1 -0
- package/dist/components/StructuredList/StructuredList.js +27 -0
- package/dist/components/StructuredList/StructuredList.js.map +1 -0
- package/dist/components/StructuredList/index.cjs +27 -0
- package/dist/components/StructuredList/index.cjs.map +1 -0
- package/dist/components/StructuredList/index.js +27 -0
- package/dist/components/StructuredList/index.js.map +1 -0
- package/dist/components/Switch/Switch.cjs +3 -3
- package/dist/components/Switch/Switch.js +2 -2
- package/dist/components/Switch/index.cjs +3 -3
- package/dist/components/Switch/index.js +2 -2
- package/dist/components/Table/Table.cjs +3 -3
- package/dist/components/Table/Table.js +2 -2
- package/dist/components/Table/index.cjs +3 -3
- package/dist/components/Table/index.js +2 -2
- package/dist/components/Tabs/Tabs.cjs +5 -2
- package/dist/components/Tabs/Tabs.cjs.map +1 -1
- package/dist/components/Tabs/Tabs.js +4 -1
- package/dist/components/Tabs/index.cjs +5 -2
- package/dist/components/Tabs/index.cjs.map +1 -1
- package/dist/components/Tabs/index.js +4 -1
- package/dist/components/Tag/Tag.cjs +12 -0
- package/dist/components/Tag/Tag.cjs.map +1 -0
- package/dist/components/Tag/Tag.js +12 -0
- package/dist/components/Tag/Tag.js.map +1 -0
- package/dist/components/Tag/index.cjs +12 -0
- package/dist/components/Tag/index.cjs.map +1 -0
- package/dist/components/Tag/index.js +12 -0
- package/dist/components/Tag/index.js.map +1 -0
- package/dist/components/TagInput/TagInput.cjs +6 -6
- package/dist/components/TagInput/TagInput.js +5 -5
- package/dist/components/TagInput/index.cjs +6 -6
- package/dist/components/TagInput/index.js +5 -5
- package/dist/components/TextInput/TextInput.cjs +19 -0
- package/dist/components/TextInput/TextInput.cjs.map +1 -0
- package/dist/components/TextInput/TextInput.js +19 -0
- package/dist/components/TextInput/TextInput.js.map +1 -0
- package/dist/components/TextInput/index.cjs +19 -0
- package/dist/components/TextInput/index.cjs.map +1 -0
- package/dist/components/TextInput/index.js +19 -0
- package/dist/components/TextInput/index.js.map +1 -0
- package/dist/components/Textarea/Textarea.cjs +4 -3
- package/dist/components/Textarea/Textarea.cjs.map +1 -1
- package/dist/components/Textarea/Textarea.js +3 -2
- package/dist/components/Textarea/index.cjs +4 -3
- package/dist/components/Textarea/index.cjs.map +1 -1
- package/dist/components/Textarea/index.js +3 -2
- package/dist/components/Timeline/Timeline.cjs +2 -2
- package/dist/components/Timeline/Timeline.js +1 -1
- package/dist/components/Timeline/index.cjs +2 -2
- package/dist/components/Timeline/index.js +1 -1
- package/dist/components/Toggle/Toggle.cjs +2 -8
- package/dist/components/Toggle/Toggle.cjs.map +1 -1
- package/dist/components/Toggle/Toggle.js +1 -7
- package/dist/components/Toggle/index.cjs +2 -8
- package/dist/components/Toggle/index.cjs.map +1 -1
- package/dist/components/Toggle/index.js +1 -7
- package/dist/components/Tooltip/Tooltip.cjs +4 -2
- package/dist/components/Tooltip/Tooltip.cjs.map +1 -1
- package/dist/components/Tooltip/Tooltip.js +3 -1
- package/dist/components/Tooltip/index.cjs +4 -2
- package/dist/components/Tooltip/index.cjs.map +1 -1
- package/dist/components/Tooltip/index.js +3 -1
- package/dist/field/FieldMessage.cjs +2 -2
- package/dist/field/FieldMessage.js +1 -1
- package/dist/field/index.cjs +2 -2
- package/dist/field/index.js +1 -1
- package/dist/index.cjs +251 -102
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1024 -406
- package/dist/index.d.ts +1024 -406
- package/dist/index.js +436 -287
- package/dist/internal/calendar/calendar-core.cjs +5 -3
- package/dist/internal/calendar/calendar-core.cjs.map +1 -1
- package/dist/internal/calendar/calendar-core.js +6 -4
- package/dist/internal/calendar/index.cjs +5 -3
- package/dist/internal/calendar/index.cjs.map +1 -1
- package/dist/internal/calendar/index.js +6 -4
- package/dist/internal/icons/index.cjs +62 -2
- package/dist/internal/icons/index.cjs.map +1 -1
- package/dist/internal/icons/index.js +63 -3
- package/package.json +3 -3
- package/dist/chunk-23C5MSXZ.cjs +0 -86
- package/dist/chunk-23C5MSXZ.cjs.map +0 -1
- package/dist/chunk-4A7BAISU.js.map +0 -1
- package/dist/chunk-4RU33BRQ.js.map +0 -1
- package/dist/chunk-4T6QBG46.cjs.map +0 -1
- package/dist/chunk-4U5TTO6E.cjs.map +0 -1
- package/dist/chunk-5EUEJU47.js.map +0 -1
- package/dist/chunk-5MQV6PLC.js +0 -1
- package/dist/chunk-5QC5N3OO.js +0 -77
- package/dist/chunk-5QC5N3OO.js.map +0 -1
- package/dist/chunk-6BZMLKCU.cjs.map +0 -1
- package/dist/chunk-6DN3JE3P.js +0 -271
- package/dist/chunk-6DN3JE3P.js.map +0 -1
- package/dist/chunk-6ELYUHB6.js +0 -45
- package/dist/chunk-6ELYUHB6.js.map +0 -1
- package/dist/chunk-6NZXWKUE.js +0 -1
- package/dist/chunk-7QCXGMBX.js +0 -1
- package/dist/chunk-A6RVSF5V.cjs +0 -77
- package/dist/chunk-A6RVSF5V.cjs.map +0 -1
- package/dist/chunk-AM2OVOQV.cjs +0 -45
- package/dist/chunk-AM2OVOQV.cjs.map +0 -1
- package/dist/chunk-AV6BIQQA.js.map +0 -1
- package/dist/chunk-AYIS62JR.cjs.map +0 -1
- package/dist/chunk-BBGCS5PZ.cjs.map +0 -1
- package/dist/chunk-BGS3MCQZ.cjs.map +0 -1
- package/dist/chunk-BS3UEJ5G.js.map +0 -1
- package/dist/chunk-BS4PX23P.js +0 -102
- package/dist/chunk-BS4PX23P.js.map +0 -1
- package/dist/chunk-BTP7G7WR.js.map +0 -1
- package/dist/chunk-C3YKGPQM.cjs.map +0 -1
- package/dist/chunk-CBCUQUHI.cjs.map +0 -1
- package/dist/chunk-CDS4SYEQ.js +0 -456
- package/dist/chunk-CDS4SYEQ.js.map +0 -1
- package/dist/chunk-CVQFSXRR.cjs +0 -271
- package/dist/chunk-CVQFSXRR.cjs.map +0 -1
- package/dist/chunk-D4ZUV7FD.cjs.map +0 -1
- package/dist/chunk-DEC2WM3G.js.map +0 -1
- package/dist/chunk-DKRLAJZE.js +0 -45
- package/dist/chunk-DKRLAJZE.js.map +0 -1
- package/dist/chunk-DMWYQSO4.cjs +0 -100
- package/dist/chunk-DMWYQSO4.cjs.map +0 -1
- package/dist/chunk-DXY5JEC4.js +0 -137
- package/dist/chunk-DXY5JEC4.js.map +0 -1
- package/dist/chunk-E7WQI7PE.js +0 -19
- package/dist/chunk-E7WQI7PE.js.map +0 -1
- package/dist/chunk-EJHBW4AK.js +0 -100
- package/dist/chunk-EJHBW4AK.js.map +0 -1
- package/dist/chunk-EM55NWUF.js.map +0 -1
- package/dist/chunk-FEUMA5IS.cjs +0 -102
- package/dist/chunk-FEUMA5IS.cjs.map +0 -1
- package/dist/chunk-FI65HI2H.js.map +0 -1
- package/dist/chunk-G3M3XYMI.cjs +0 -1
- package/dist/chunk-GLWMKKLR.cjs +0 -109
- package/dist/chunk-GLWMKKLR.cjs.map +0 -1
- package/dist/chunk-GMBIFJOA.cjs.map +0 -1
- package/dist/chunk-GNL72FRN.js +0 -224
- package/dist/chunk-GNL72FRN.js.map +0 -1
- package/dist/chunk-I44YNYI6.cjs +0 -1
- package/dist/chunk-I6BOBHO6.cjs.map +0 -1
- package/dist/chunk-IFB53HNO.js +0 -61
- package/dist/chunk-IFB53HNO.js.map +0 -1
- package/dist/chunk-IKWD2OEN.cjs +0 -456
- package/dist/chunk-IKWD2OEN.cjs.map +0 -1
- package/dist/chunk-IQ4KQJAO.js +0 -1
- package/dist/chunk-ISUDUZEG.cjs +0 -1
- package/dist/chunk-IUEAUTR7.cjs +0 -1
- package/dist/chunk-JOJ23OD4.js.map +0 -1
- package/dist/chunk-JWUYPAFC.cjs.map +0 -1
- package/dist/chunk-K5P2VY5J.cjs +0 -140
- package/dist/chunk-K5P2VY5J.cjs.map +0 -1
- package/dist/chunk-KO5F344T.cjs +0 -1
- package/dist/chunk-KO5F344T.cjs.map +0 -1
- package/dist/chunk-KRIWNW4A.cjs +0 -131
- package/dist/chunk-KRIWNW4A.cjs.map +0 -1
- package/dist/chunk-KXO72WTH.js +0 -1
- package/dist/chunk-LDDAQLH6.js +0 -140
- package/dist/chunk-LDDAQLH6.js.map +0 -1
- package/dist/chunk-LG2IADSZ.cjs +0 -61
- package/dist/chunk-LG2IADSZ.cjs.map +0 -1
- package/dist/chunk-LQ4PCHBP.js +0 -109
- package/dist/chunk-LQ4PCHBP.js.map +0 -1
- package/dist/chunk-M5ZXQ2QS.js.map +0 -1
- package/dist/chunk-MCHL23CE.js.map +0 -1
- package/dist/chunk-MGZO7MBN.cjs.map +0 -1
- package/dist/chunk-MQN6A3CE.js.map +0 -1
- package/dist/chunk-N4FHLSNV.cjs +0 -19
- package/dist/chunk-N4FHLSNV.cjs.map +0 -1
- package/dist/chunk-NDHMY3IR.js.map +0 -1
- package/dist/chunk-NJIMQWBC.js.map +0 -1
- package/dist/chunk-NQGCAXTW.cjs.map +0 -1
- package/dist/chunk-NU3WUSG7.cjs +0 -189
- package/dist/chunk-NU3WUSG7.cjs.map +0 -1
- package/dist/chunk-O74TNSJD.cjs +0 -101
- package/dist/chunk-O74TNSJD.cjs.map +0 -1
- package/dist/chunk-OGZKNZS6.cjs +0 -111
- package/dist/chunk-OGZKNZS6.cjs.map +0 -1
- package/dist/chunk-OSUT5FH5.js +0 -1
- package/dist/chunk-P2JM7CUD.cjs.map +0 -1
- package/dist/chunk-P2K47B56.js +0 -116
- package/dist/chunk-P2K47B56.js.map +0 -1
- package/dist/chunk-PZWJQNCY.cjs.map +0 -1
- package/dist/chunk-QFHAVVXT.js +0 -86
- package/dist/chunk-QFHAVVXT.js.map +0 -1
- package/dist/chunk-QGK2KYQS.js.map +0 -1
- package/dist/chunk-QOEXXGRP.js +0 -110
- package/dist/chunk-QOEXXGRP.js.map +0 -1
- package/dist/chunk-RCR5CRZ5.js +0 -1
- package/dist/chunk-RNOXGWKQ.cjs.map +0 -1
- package/dist/chunk-RSXDPFXK.js +0 -189
- package/dist/chunk-RSXDPFXK.js.map +0 -1
- package/dist/chunk-RZEJPDIW.js.map +0 -1
- package/dist/chunk-STJDMXL7.cjs +0 -116
- package/dist/chunk-STJDMXL7.cjs.map +0 -1
- package/dist/chunk-SZUMMROW.js.map +0 -1
- package/dist/chunk-TLD67NXQ.js +0 -101
- package/dist/chunk-TLD67NXQ.js.map +0 -1
- package/dist/chunk-TM3FOGLK.cjs.map +0 -1
- package/dist/chunk-TT2DEREM.js.map +0 -1
- package/dist/chunk-TTHWYBQB.cjs.map +0 -1
- package/dist/chunk-UK2SFZIQ.cjs.map +0 -1
- package/dist/chunk-UPIDCMZI.cjs.map +0 -1
- package/dist/chunk-URC4A3GE.cjs +0 -118
- package/dist/chunk-URC4A3GE.cjs.map +0 -1
- package/dist/chunk-UXGJ6NTD.js +0 -118
- package/dist/chunk-UXGJ6NTD.js.map +0 -1
- package/dist/chunk-VBWRH4UW.cjs +0 -1
- package/dist/chunk-VBWRH4UW.cjs.map +0 -1
- package/dist/chunk-VMAJ34DC.cjs +0 -224
- package/dist/chunk-VMAJ34DC.cjs.map +0 -1
- package/dist/chunk-VNITXANA.js.map +0 -1
- package/dist/chunk-VPTWF4AK.js +0 -111
- package/dist/chunk-VPTWF4AK.js.map +0 -1
- package/dist/chunk-VSC3A6VB.cjs.map +0 -1
- package/dist/chunk-WB5AEG5D.cjs.map +0 -1
- package/dist/chunk-WI4WQGF6.cjs.map +0 -1
- package/dist/chunk-WOJUO43J.js +0 -131
- package/dist/chunk-WOJUO43J.js.map +0 -1
- package/dist/chunk-XCR3TPXT.js.map +0 -1
- package/dist/chunk-Y5IWUJF7.js.map +0 -1
- package/dist/chunk-YKKDKR6Q.cjs +0 -1
- package/dist/chunk-YKKDKR6Q.cjs.map +0 -1
- package/dist/chunk-YVQOUGWG.cjs.map +0 -1
- package/dist/chunk-Z5XJ5S7U.cjs +0 -110
- package/dist/chunk-Z5XJ5S7U.cjs.map +0 -1
- package/dist/chunk-ZKYBLXU7.js.map +0 -1
- package/dist/components/Alert/Alert.cjs +0 -16
- package/dist/components/Alert/Alert.cjs.map +0 -1
- package/dist/components/Alert/Alert.js +0 -16
- package/dist/components/Alert/index.cjs +0 -16
- package/dist/components/Alert/index.cjs.map +0 -1
- package/dist/components/Alert/index.js +0 -16
- package/dist/components/Badge/Badge.cjs +0 -12
- package/dist/components/Badge/Badge.cjs.map +0 -1
- package/dist/components/Badge/Badge.js +0 -12
- package/dist/components/Badge/index.cjs +0 -12
- package/dist/components/Badge/index.cjs.map +0 -1
- package/dist/components/Badge/index.js +0 -12
- package/dist/components/Combobox/Combobox.cjs +0 -24
- package/dist/components/Combobox/Combobox.cjs.map +0 -1
- package/dist/components/Combobox/Combobox.js +0 -24
- package/dist/components/Combobox/index.cjs +0 -24
- package/dist/components/Combobox/index.cjs.map +0 -1
- package/dist/components/Combobox/index.js +0 -24
- package/dist/components/Input/Input.cjs +0 -14
- package/dist/components/Input/Input.cjs.map +0 -1
- package/dist/components/Input/Input.js +0 -14
- package/dist/components/Input/index.cjs +0 -14
- package/dist/components/Input/index.cjs.map +0 -1
- package/dist/components/Input/index.js +0 -14
- package/dist/components/Stat/Stat.cjs +0 -20
- package/dist/components/Stat/Stat.cjs.map +0 -1
- package/dist/components/Stat/Stat.js +0 -20
- package/dist/components/Stat/StatGroup.cjs +0 -11
- package/dist/components/Stat/StatGroup.cjs.map +0 -1
- package/dist/components/Stat/StatGroup.js +0 -11
- package/dist/components/Stat/index.cjs +0 -26
- package/dist/components/Stat/index.cjs.map +0 -1
- package/dist/components/Stat/index.js +0 -26
- package/dist/components/Steps/Steps.cjs +0 -22
- package/dist/components/Steps/Steps.cjs.map +0 -1
- package/dist/components/Steps/Steps.js +0 -22
- package/dist/components/Steps/index.cjs +0 -22
- package/dist/components/Steps/index.cjs.map +0 -1
- package/dist/components/Steps/index.js +0 -22
- package/dist/components/Toast/Toast.cjs +0 -24
- package/dist/components/Toast/Toast.cjs.map +0 -1
- package/dist/components/Toast/Toast.js +0 -24
- package/dist/components/Toast/index.cjs +0 -24
- package/dist/components/Toast/index.cjs.map +0 -1
- package/dist/components/Toast/index.js +0 -24
- package/dist/components/Toast/toast-store.cjs +0 -14
- package/dist/components/Toast/toast-store.cjs.map +0 -1
- /package/dist/{chunk-5MQV6PLC.js.map → chunk-2I7URBEK.js.map} +0 -0
- /package/dist/{chunk-6NZXWKUE.js.map → chunk-44S33DGQ.js.map} +0 -0
- /package/dist/{chunk-7QCXGMBX.js.map → chunk-4LHIVDAH.js.map} +0 -0
- /package/dist/{chunk-IQ4KQJAO.js.map → chunk-4WUUV44R.js.map} +0 -0
- /package/dist/{chunk-KXO72WTH.js.map → chunk-5DBKWVTZ.js.map} +0 -0
- /package/dist/{chunk-OSUT5FH5.js.map → chunk-7PSLMVCX.js.map} +0 -0
- /package/dist/{chunk-RCR5CRZ5.js.map → chunk-AMYFRY7K.js.map} +0 -0
- /package/dist/{chunk-PKJUCI7B.js.map → chunk-APD5WA65.js.map} +0 -0
- /package/dist/{components/Alert/Alert.js.map → chunk-AVHWS36I.js.map} +0 -0
- /package/dist/{chunk-SNLIKIJP.js.map → chunk-BP6BOEVE.js.map} +0 -0
- /package/dist/{components/Alert/index.js.map → chunk-CWUZ4SZN.js.map} +0 -0
- /package/dist/{components/Badge/Badge.js.map → chunk-F5YD6T5D.js.map} +0 -0
- /package/dist/{chunk-CGCO7RFO.js.map → chunk-FPXFD5XT.js.map} +0 -0
- /package/dist/{components/Badge/index.js.map → chunk-GIHJ4J47.js.map} +0 -0
- /package/dist/{components/Combobox/Combobox.js.map → chunk-H2HKUDBZ.js.map} +0 -0
- /package/dist/{chunk-3VOOMW6O.js.map → chunk-KDV7V5S4.js.map} +0 -0
- /package/dist/{components/Combobox/index.js.map → chunk-MKQBAQIH.js.map} +0 -0
- /package/dist/{components/Input/Input.js.map → chunk-MS6HASC6.js.map} +0 -0
- /package/dist/{chunk-HBAHWCBK.js.map → chunk-NKCBDSI2.js.map} +0 -0
- /package/dist/{components/Input/index.js.map → chunk-NVCOEKCU.js.map} +0 -0
- /package/dist/{components/Stat/Stat.js.map → chunk-RQRA5CCA.js.map} +0 -0
- /package/dist/{components/Stat/StatGroup.js.map → chunk-T2E5XT7P.js.map} +0 -0
- /package/dist/{chunk-VAF6PKVY.js.map → chunk-TG2IDU3W.js.map} +0 -0
- /package/dist/{chunk-IFEWF24B.js.map → chunk-TPD2GNR6.js.map} +0 -0
- /package/dist/{components/Stat/index.js.map → chunk-TPNCV7KA.js.map} +0 -0
- /package/dist/{components/Steps/Steps.js.map → chunk-VB5VOUED.js.map} +0 -0
- /package/dist/{chunk-GVND3JE3.js.map → chunk-VRPFA4CN.js.map} +0 -0
- /package/dist/{chunk-66EVFQVL.js.map → chunk-WHKNCDTX.js.map} +0 -0
- /package/dist/{components/Steps/index.js.map → chunk-YD2UW3PB.js.map} +0 -0
- /package/dist/components/{Toast/Toast.js.map → Carousel/Carousel.js.map} +0 -0
- /package/dist/components/{Toast → Carousel}/index.js.map +0 -0
- /package/dist/components/{Toast/toast-store.js.map → Charts/Charts.js.map} +0 -0
package/dist/chunk-QOEXXGRP.js
DELETED
|
@@ -1,110 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
cn
|
|
3
|
-
} from "./chunk-7NTT2UXP.js";
|
|
4
|
-
|
|
5
|
-
// src/components/Card/Card.tsx
|
|
6
|
-
import { Slot as SlotPrimitive } from "radix-ui";
|
|
7
|
-
import { cva } from "class-variance-authority";
|
|
8
|
-
import { jsx } from "react/jsx-runtime";
|
|
9
|
-
var cardVariants = cva("ddga-card", {
|
|
10
|
-
variants: {
|
|
11
|
-
variant: {
|
|
12
|
-
default: "ddga-card--default",
|
|
13
|
-
outline: "ddga-card--outline",
|
|
14
|
-
elevated: "ddga-card--elevated",
|
|
15
|
-
filled: "ddga-card--filled",
|
|
16
|
-
gradient: "ddga-card--gradient",
|
|
17
|
-
ghost: "ddga-card--ghost"
|
|
18
|
-
},
|
|
19
|
-
padding: {
|
|
20
|
-
sm: "ddga-card--padding-sm",
|
|
21
|
-
md: "ddga-card--padding-md",
|
|
22
|
-
lg: "ddga-card--padding-lg"
|
|
23
|
-
},
|
|
24
|
-
orientation: {
|
|
25
|
-
vertical: "ddga-card--vertical",
|
|
26
|
-
horizontal: "ddga-card--horizontal"
|
|
27
|
-
},
|
|
28
|
-
interactive: {
|
|
29
|
-
true: "ddga-card--interactive"
|
|
30
|
-
}
|
|
31
|
-
},
|
|
32
|
-
defaultVariants: {
|
|
33
|
-
variant: "default",
|
|
34
|
-
padding: "md",
|
|
35
|
-
orientation: "vertical"
|
|
36
|
-
}
|
|
37
|
-
});
|
|
38
|
-
function Card({
|
|
39
|
-
variant,
|
|
40
|
-
padding,
|
|
41
|
-
orientation,
|
|
42
|
-
interactive,
|
|
43
|
-
asChild,
|
|
44
|
-
className,
|
|
45
|
-
...props
|
|
46
|
-
}) {
|
|
47
|
-
const Comp = asChild ? SlotPrimitive.Slot : "div";
|
|
48
|
-
return /* @__PURE__ */ jsx(
|
|
49
|
-
Comp,
|
|
50
|
-
{
|
|
51
|
-
"data-slot": "card",
|
|
52
|
-
"data-orientation": orientation ?? "vertical",
|
|
53
|
-
className: cn(cardVariants({ variant, padding, orientation, interactive }), className),
|
|
54
|
-
...props
|
|
55
|
-
}
|
|
56
|
-
);
|
|
57
|
-
}
|
|
58
|
-
function CardImage({ aspectRatio = "16/9", className, style, ...props }) {
|
|
59
|
-
return /* @__PURE__ */ jsx(
|
|
60
|
-
"img",
|
|
61
|
-
{
|
|
62
|
-
"data-slot": "card-image",
|
|
63
|
-
className: cn("ddga-card__image", className),
|
|
64
|
-
style: {
|
|
65
|
-
"--ddga-card-image-aspect": aspectRatio,
|
|
66
|
-
...style
|
|
67
|
-
},
|
|
68
|
-
...props
|
|
69
|
-
}
|
|
70
|
-
);
|
|
71
|
-
}
|
|
72
|
-
function CardHeader({ asChild, className, ...props }) {
|
|
73
|
-
const Comp = asChild ? SlotPrimitive.Slot : "div";
|
|
74
|
-
return /* @__PURE__ */ jsx(Comp, { "data-slot": "card-header", className: cn("ddga-card__header", className), ...props });
|
|
75
|
-
}
|
|
76
|
-
function CardTitle({ asChild, className, ...props }) {
|
|
77
|
-
const Comp = asChild ? SlotPrimitive.Slot : "h3";
|
|
78
|
-
return /* @__PURE__ */ jsx(Comp, { "data-slot": "card-title", className: cn("ddga-card__title", className), ...props });
|
|
79
|
-
}
|
|
80
|
-
function CardDescription({ asChild, className, ...props }) {
|
|
81
|
-
const Comp = asChild ? SlotPrimitive.Slot : "p";
|
|
82
|
-
return /* @__PURE__ */ jsx(
|
|
83
|
-
Comp,
|
|
84
|
-
{
|
|
85
|
-
"data-slot": "card-description",
|
|
86
|
-
className: cn("ddga-card__description", className),
|
|
87
|
-
...props
|
|
88
|
-
}
|
|
89
|
-
);
|
|
90
|
-
}
|
|
91
|
-
function CardContent({ asChild, className, ...props }) {
|
|
92
|
-
const Comp = asChild ? SlotPrimitive.Slot : "div";
|
|
93
|
-
return /* @__PURE__ */ jsx(Comp, { "data-slot": "card-content", className: cn("ddga-card__content", className), ...props });
|
|
94
|
-
}
|
|
95
|
-
function CardFooter({ asChild, className, ...props }) {
|
|
96
|
-
const Comp = asChild ? SlotPrimitive.Slot : "div";
|
|
97
|
-
return /* @__PURE__ */ jsx(Comp, { "data-slot": "card-footer", className: cn("ddga-card__footer", className), ...props });
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
export {
|
|
101
|
-
cardVariants,
|
|
102
|
-
Card,
|
|
103
|
-
CardImage,
|
|
104
|
-
CardHeader,
|
|
105
|
-
CardTitle,
|
|
106
|
-
CardDescription,
|
|
107
|
-
CardContent,
|
|
108
|
-
CardFooter
|
|
109
|
-
};
|
|
110
|
-
//# sourceMappingURL=chunk-QOEXXGRP.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/components/Card/Card.tsx"],"sourcesContent":["'use client';\n\nimport { Slot as SlotPrimitive } from 'radix-ui';\nimport { cva, type VariantProps } from 'class-variance-authority';\nimport { cn } from '../../utils/cn';\n\n// ─── 1. Variants (cva) ─── //\n\nconst cardVariants = cva('ddga-card', {\n variants: {\n variant: {\n default: 'ddga-card--default',\n outline: 'ddga-card--outline',\n elevated: 'ddga-card--elevated',\n filled: 'ddga-card--filled',\n gradient: 'ddga-card--gradient',\n ghost: 'ddga-card--ghost',\n },\n padding: {\n sm: 'ddga-card--padding-sm',\n md: 'ddga-card--padding-md',\n lg: 'ddga-card--padding-lg',\n },\n orientation: {\n vertical: 'ddga-card--vertical',\n horizontal: 'ddga-card--horizontal',\n },\n interactive: {\n true: 'ddga-card--interactive',\n },\n },\n defaultVariants: {\n variant: 'default',\n padding: 'md',\n orientation: 'vertical',\n },\n});\n\n// ─── 2. Types ─── //\n\ninterface CardProps extends React.ComponentProps<'div'>, VariantProps<typeof cardVariants> {\n /** Render as the single child element instead of a `<div>` (see Button). */\n asChild?: boolean;\n}\n\ntype CardSectionProps = React.ComponentProps<'div'> & { asChild?: boolean };\n\ninterface CardTitleProps extends React.ComponentProps<'h3'> {\n /** Override the heading element (e.g. render an `<h2>` or `<a>`). */\n asChild?: boolean;\n}\n\ntype CardDescriptionProps = React.ComponentProps<'p'> & { asChild?: boolean };\n\ninterface CardImageProps extends React.ComponentProps<'img'> {\n /**\n * Aspect ratio of the image in vertical orientation (e.g. `'16/9'`, `'4/3'`,\n * `'1/1'`). Default `'16/9'`. Ignored in horizontal orientation — the image\n * fills the card's full height there.\n */\n aspectRatio?: string;\n}\n\n// ─── 3. Components ─── //\n\nfunction Card({\n variant,\n padding,\n orientation,\n interactive,\n asChild,\n className,\n ...props\n}: CardProps) {\n const Comp = asChild ? SlotPrimitive.Slot : 'div';\n return (\n <Comp\n data-slot=\"card\"\n data-orientation={orientation ?? 'vertical'}\n className={cn(cardVariants({ variant, padding, orientation, interactive }), className)}\n {...props}\n />\n );\n}\n\nfunction CardImage({ aspectRatio = '16/9', className, style, ...props }: CardImageProps) {\n return (\n <img\n data-slot=\"card-image\"\n className={cn('ddga-card__image', className)}\n style={\n {\n '--ddga-card-image-aspect': aspectRatio,\n ...style,\n } as React.CSSProperties\n }\n {...props}\n />\n );\n}\n\nfunction CardHeader({ asChild, className, ...props }: CardSectionProps) {\n const Comp = asChild ? SlotPrimitive.Slot : 'div';\n return <Comp data-slot=\"card-header\" className={cn('ddga-card__header', className)} {...props} />;\n}\n\nfunction CardTitle({ asChild, className, ...props }: CardTitleProps) {\n const Comp = asChild ? SlotPrimitive.Slot : 'h3';\n return <Comp data-slot=\"card-title\" className={cn('ddga-card__title', className)} {...props} />;\n}\n\nfunction CardDescription({ asChild, className, ...props }: CardDescriptionProps) {\n const Comp = asChild ? SlotPrimitive.Slot : 'p';\n return (\n <Comp\n data-slot=\"card-description\"\n className={cn('ddga-card__description', className)}\n {...props}\n />\n );\n}\n\nfunction CardContent({ asChild, className, ...props }: CardSectionProps) {\n const Comp = asChild ? SlotPrimitive.Slot : 'div';\n return (\n <Comp data-slot=\"card-content\" className={cn('ddga-card__content', className)} {...props} />\n );\n}\n\nfunction CardFooter({ asChild, className, ...props }: CardSectionProps) {\n const Comp = asChild ? SlotPrimitive.Slot : 'div';\n return <Comp data-slot=\"card-footer\" className={cn('ddga-card__footer', className)} {...props} />;\n}\n\n// ─── 4. Exports ─── //\n\nexport {\n Card,\n CardImage,\n CardHeader,\n CardTitle,\n CardDescription,\n CardContent,\n CardFooter,\n cardVariants,\n};\nexport type { CardProps, CardImageProps, CardSectionProps, CardTitleProps, CardDescriptionProps };\n"],"mappings":";;;;;AAEA,SAAS,QAAQ,qBAAqB;AACtC,SAAS,WAA8B;AAyEnC;AApEJ,IAAM,eAAe,IAAI,aAAa;AAAA,EACpC,UAAU;AAAA,IACR,SAAS;AAAA,MACP,SAAS;AAAA,MACT,SAAS;AAAA,MACT,UAAU;AAAA,MACV,QAAQ;AAAA,MACR,UAAU;AAAA,MACV,OAAO;AAAA,IACT;AAAA,IACA,SAAS;AAAA,MACP,IAAI;AAAA,MACJ,IAAI;AAAA,MACJ,IAAI;AAAA,IACN;AAAA,IACA,aAAa;AAAA,MACX,UAAU;AAAA,MACV,YAAY;AAAA,IACd;AAAA,IACA,aAAa;AAAA,MACX,MAAM;AAAA,IACR;AAAA,EACF;AAAA,EACA,iBAAiB;AAAA,IACf,SAAS;AAAA,IACT,SAAS;AAAA,IACT,aAAa;AAAA,EACf;AACF,CAAC;AA6BD,SAAS,KAAK;AAAA,EACZ;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA,GAAG;AACL,GAAc;AACZ,QAAM,OAAO,UAAU,cAAc,OAAO;AAC5C,SACE;AAAA,IAAC;AAAA;AAAA,MACC,aAAU;AAAA,MACV,oBAAkB,eAAe;AAAA,MACjC,WAAW,GAAG,aAAa,EAAE,SAAS,SAAS,aAAa,YAAY,CAAC,GAAG,SAAS;AAAA,MACpF,GAAG;AAAA;AAAA,EACN;AAEJ;AAEA,SAAS,UAAU,EAAE,cAAc,QAAQ,WAAW,OAAO,GAAG,MAAM,GAAmB;AACvF,SACE;AAAA,IAAC;AAAA;AAAA,MACC,aAAU;AAAA,MACV,WAAW,GAAG,oBAAoB,SAAS;AAAA,MAC3C,OACE;AAAA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,IAAA;AACH,EAAA;AAEF,EAAA;AAGb,EAAA;AACE,oBAAA;AAAC,MAAA;AAAA,MAAA;AACa,QAAA;AACF,QAAA;AACA,QAAA;AACH,QAAA;AACI,QAAA;AAEV,QAAA;AAIA,MAAA;AACH,IAAA;AACA,oBAAA;AAAC,MAAA;AAAA,MAAA;AACa,QAAA;AACF,QAAA;AACA,QAAA;AACH,QAAA;AACI,QAAA;AAEV,QAAA;AAIA,MAAA;AACH,IAAA;AACF,EAAA;AAEJ;AAQgB;AAIJ,EAAA;AAER,EAAA;AACE,oBAAA;AACA,oBAAA;AAGF,EAAA;AAEJ;ADnIuB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA","file":"/home/devdhaif/work/react/dga-dev/packages/react/dist/chunk-RNOXGWKQ.cjs","sourcesContent":[null,"'use client';\n\n// Shared Calendar core consumed by both DatePicker (single date) and\n// DateRangePicker (date range). Everything here is calendar-system /\n// month-year-navigation / day-rendering logic that is identical regardless of\n// whether one date or a range is being selected — extracted so the two pickers\n// stay in lockstep on Hijri handling, Latin digits, and locale composition.\n//\n// NOT exported from the public barrel. Pickers import from here directly.\n\nimport { useContext, useMemo, type ReactNode } from 'react';\nimport {\n CalendarStateContext as AriaCalendarStateContext,\n RangeCalendarStateContext as AriaRangeCalendarStateContext,\n} from 'react-aria-components';\nimport {\n CalendarDate,\n GregorianCalendar,\n IslamicUmalquraCalendar,\n toCalendar,\n type DateValue,\n} from '@internationalized/date';\nimport { ChevronLeft, ChevronRight } from '../icons';\nimport { DgaContext } from '../../providers/DgaContext';\n\n// ─── Types ─── //\n\nexport type CalendarSystem = 'gregorian' | 'hijri';\n\nexport interface CalendarLabels {\n gregorian: string;\n hijri: string;\n}\n\n// Locale-aware accessible names for the calendar chrome's controls. Defaulted\n// in `useCalendarChrome` (Arabic when the DGA locale is `ar`) so a screen reader\n// in an Arabic UI doesn't announce these controls in English.\nexport interface CalendarA11yLabels {\n /** Accessible name for the popover trigger button. */\n openCalendar: string;\n /** Accessible name for the Gregorian↔Hijri tablist. */\n calendarSystem: string;\n}\n\n// ─── Date ↔ CalendarDate (Gregorian) normalization ─── //\n\n// Public APIs are `Date`-based so consumers don't take a dep on\n// `@internationalized/date`. Internally everything round-trips through a\n// Gregorian `CalendarDate` so the Hijri toggle is purely a *display* concern —\n// the stored value is always the same absolute day, regardless of which\n// calendar the user was looking at when they picked it.\n\nconst GREGORIAN = new GregorianCalendar();\nconst ISLAMIC_UMALQURA = new IslamicUmalquraCalendar();\n\nexport function dateToCalendarDate(date: Date | null | undefined): CalendarDate | null {\n if (!date) return null;\n // Extract LOCAL Y/M/D, not UTC. The contract is date-only; converting\n // through UTC would shift the day across timezone boundaries.\n return new CalendarDate(date.getFullYear(), date.getMonth() + 1, date.getDate());\n}\n\nexport function calendarDateToDate(value: DateValue | null | undefined): Date | null {\n if (!value) return null;\n // Defensive: if a non-Gregorian CalendarDate ever reaches here, convert.\n // Today the contract is Gregorian-only.\n const greg =\n value.calendar.identifier === 'gregory' ? value : toCalendar(value, new GregorianCalendar());\n return new Date(greg.year, greg.month - 1, greg.day);\n}\n\n// ─── Locale composition (DGA locale + optional calendar override) ─── //\n\nexport function composeLocale(dgaLocale: string, calendar: CalendarSystem): string {\n // Promote a bare 'ar'/'en' from DgaProvider to a regional tag so react-aria\n // picks the right defaults (week start, weekday names). 'ar-SA' matches the\n // DGA target audience; 'en-US' is the conventional English default.\n const base = dgaLocale === 'ar' ? 'ar-SA' : dgaLocale === 'en' ? 'en-US' : dgaLocale;\n // DGA convention: Latin digits (0–9) at all times, regardless of calendar or\n // UI language. Without this, `ar-*` locales default to Arabic-Indic numerals\n // (٠–٩) on segments + calendar cells, which makes month/year dropdowns and\n // cross-calendar comparisons harder to read. The Unicode `-u-` extension\n // carries both calendar and numbering-system keys when both apply.\n const isArabic = base.startsWith('ar');\n if (calendar === 'hijri') {\n return isArabic ? `${base}-u-ca-islamic-umalqura-nu-latn` : `${base}-u-ca-islamic-umalqura`;\n }\n return isArabic ? `${base}-u-nu-latn` : base;\n}\n\n// ─── Secondary-calendar helper ─── //\n\nexport function secondaryDayNumber(date: DateValue, mainCalendar: CalendarSystem): number {\n const other = mainCalendar === 'hijri' ? GREGORIAN : ISLAMIC_UMALQURA;\n return toCalendar(date, other).day;\n}\n\n// ─── Shared chrome hook (locale, portal, chevrons, labels) ─── //\n\n// Consolidates the DgaContext-derived bits both pickers need: the composed\n// react-aria locale, the body-portal container (theme inheritance), the\n// direction-swapped prev/next chevrons, and locale-aware default labels.\nexport function useCalendarChrome(calendarSystem: CalendarSystem, calendarLabels?: CalendarLabels) {\n const dgaCtx = useContext(DgaContext);\n const dgaLocale = dgaCtx?.locale ?? 'en';\n const dir = dgaCtx?.dir ?? 'ltr';\n\n const locale = useMemo(\n () => composeLocale(dgaLocale, calendarSystem),\n [dgaLocale, calendarSystem],\n );\n\n // react-aria's Popover renders to a portal under <body> by default. Re-anchor\n // it under DgaProvider's body-mounted portal so data-theme, theme vars, and\n // .ddga-theme-* classes inherit into the dropdown. Falls back to <body> when\n // used standalone (no provider).\n const portalContainer = (dgaCtx?.portalEl ?? dgaCtx?.rootEl ?? undefined) as Element | undefined;\n\n // In RTL, \"previous\" sits visually on the right and should point right; \"next\"\n // sits on the left and points left. Swapping the icon components (rather than\n // CSS-flipping) is robust because it doesn't rely on the portal inheriting dir.\n const PrevChevron = dir === 'rtl' ? ChevronRight : ChevronLeft;\n const NextChevron = dir === 'rtl' ? ChevronLeft : ChevronRight;\n\n const resolvedLabels = useMemo<CalendarLabels>(() => {\n if (calendarLabels) return calendarLabels;\n return dgaLocale.startsWith('ar')\n ? { gregorian: 'ميلادي', hijri: 'هجري' }\n : { gregorian: 'Gregorian', hijri: 'Hijri' };\n }, [calendarLabels, dgaLocale]);\n\n const navLabels = useMemo(\n () =>\n dgaLocale.startsWith('ar')\n ? { month: 'الشهر', year: 'السنة' }\n : { month: 'Month', year: 'Year' },\n [dgaLocale],\n );\n\n const a11yLabels = useMemo<CalendarA11yLabels>(\n () =>\n dgaLocale.startsWith('ar')\n ? { openCalendar: 'فتح التقويم', calendarSystem: 'نظام التقويم' }\n : { openCalendar: 'Open calendar', calendarSystem: 'Calendar system' },\n [dgaLocale],\n );\n\n return {\n dgaLocale,\n dir,\n locale,\n portalContainer,\n PrevChevron,\n NextChevron,\n resolvedLabels,\n navLabels,\n a11yLabels,\n };\n}\n\n// ─── Calendar-system toggle (Gregorian ↔ Hijri) ─── //\n\ninterface CalendarSystemToggleProps {\n value: CalendarSystem;\n onChange: (next: CalendarSystem) => void;\n labels: CalendarLabels;\n /** Localized accessible name for the tablist (from `useCalendarChrome`). */\n groupLabel: string;\n}\n\nexport function CalendarSystemToggle({\n value,\n onChange,\n labels,\n groupLabel,\n}: CalendarSystemToggleProps) {\n return (\n <div\n role=\"tablist\"\n aria-label={groupLabel}\n className=\"ddga-calendar-toggle\"\n data-slot=\"calendar-toggle\"\n >\n <button\n type=\"button\"\n role=\"tab\"\n aria-selected={value === 'gregorian'}\n className=\"ddga-calendar-toggle__button\"\n data-active={value === 'gregorian' ? '' : undefined}\n onClick={() => onChange('gregorian')}\n >\n {labels.gregorian}\n </button>\n <button\n type=\"button\"\n role=\"tab\"\n aria-selected={value === 'hijri'}\n className=\"ddga-calendar-toggle__button\"\n data-active={value === 'hijri' ? '' : undefined}\n onClick={() => onChange('hijri')}\n >\n {labels.hijri}\n </button>\n </div>\n );\n}\n\n// ─── Calendar nav header (month + year dropdowns) ─── //\n\n// Rendered inside <Calendar>/<RangeCalendar> so it can consume the calendar\n// state context. Both single and range calendars expose the same\n// `focusedDate`/`setFocusedDate`/`minValue`/`maxValue` surface (CalendarStateBase),\n// so we read whichever context is populated — the component is calendar-kind\n// agnostic. Hooking the state directly keeps the dropdowns in sync with the\n// prev/next buttons and keyboard navigation automatically.\ninterface CalendarNavHeaderProps {\n locale: string;\n monthLabel: string;\n yearLabel: string;\n}\n\nexport function CalendarNavHeader({ locale, monthLabel, yearLabel }: CalendarNavHeaderProps) {\n // A given subtree lives inside exactly one of these; the other is null.\n const rangeState = useContext(AriaRangeCalendarStateContext);\n const singleState = useContext(AriaCalendarStateContext);\n const state = rangeState ?? singleState;\n\n // Pull state fields with safe fallbacks so the hooks below stay unconditional\n // (rules-of-hooks). Rendering still bails when state is null.\n const focusedDate = state?.focusedDate ?? null;\n const focusedYear = focusedDate?.year ?? 0;\n const focusedCalendar = focusedDate?.calendar ?? GREGORIAN;\n const minValue = state?.minValue ?? null;\n const maxValue = state?.maxValue ?? null;\n\n // Localized month names in the active calendar. Hijri months translate\n // correctly because the locale string carries `-u-ca-islamic-umalqura`.\n const monthNames = useMemo(() => {\n if (!focusedDate) return [];\n const fmt = new Intl.DateTimeFormat(locale, { month: 'long' });\n return Array.from({ length: 12 }, (_, i) => {\n const cd = new CalendarDate(focusedCalendar, focusedYear, i + 1, 1);\n const greg = toCalendar(cd, GREGORIAN);\n const js = new Date(greg.year, greg.month - 1, greg.day);\n return fmt.format(js);\n });\n }, [locale, focusedDate, focusedCalendar, focusedYear]);\n\n // Year range. min/maxValue are in the consumer's calendar (Gregorian); convert\n // to the focused calendar's year. Defaults span 100 years back to 30 forward.\n const yearOptions = useMemo(() => {\n if (!focusedDate) return [];\n const minY = minValue ? toCalendar(minValue, focusedCalendar).year : focusedYear - 100;\n const maxY = maxValue ? toCalendar(maxValue, focusedCalendar).year : focusedYear + 30;\n const start = Math.min(minY, focusedYear);\n const end = Math.max(maxY, focusedYear);\n return Array.from({ length: end - start + 1 }, (_, i) => start + i);\n }, [focusedDate, focusedCalendar, focusedYear, minValue, maxValue]);\n\n if (!state || !focusedDate) return null;\n\n return (\n <div className=\"ddga-calendar__nav-selects\" data-slot=\"calendar-nav\">\n <select\n aria-label={monthLabel}\n className=\"ddga-calendar__select ddga-calendar__month-select\"\n data-slot=\"calendar-month-select\"\n value={focusedDate.month}\n onChange={(e) => state.setFocusedDate(focusedDate.set({ month: Number(e.target.value) }))}\n >\n {monthNames.map((name, i) => (\n <option key={i + 1} value={i + 1}>\n {name}\n </option>\n ))}\n </select>\n <select\n aria-label={yearLabel}\n className=\"ddga-calendar__select ddga-calendar__year-select\"\n data-slot=\"calendar-year-select\"\n value={focusedDate.year}\n onChange={(e) => state.setFocusedDate(focusedDate.set({ year: Number(e.target.value) }))}\n >\n {yearOptions.map((y) => (\n <option key={y} value={y}>\n {y}\n </option>\n ))}\n </select>\n </div>\n );\n}\n\n// ─── Day-cell content (primary number + optional secondary calendar number) ─── //\n\n// The visual content rendered inside a day cell, shared by both pickers. Takes\n// the already-formatted primary text (react-aria's `formattedDate`, or a bare\n// day number for the single picker's outside-month button) and stacks the other\n// calendar's day number beneath it when `showSecondary` is on.\nexport function renderDayContent(\n primary: ReactNode,\n opts: { showSecondary: boolean; date: DateValue; calendarSystem: CalendarSystem },\n): ReactNode {\n if (!opts.showSecondary) return primary;\n return (\n <>\n <span className=\"ddga-calendar__cell-primary\">{primary}</span>\n <span aria-hidden=\"true\" className=\"ddga-calendar__cell-secondary\">\n {secondaryDayNumber(opts.date, opts.calendarSystem)}\n </span>\n </>\n );\n}\n"]}
|
package/dist/chunk-RSXDPFXK.js
DELETED
|
@@ -1,189 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
cn
|
|
3
|
-
} from "./chunk-7NTT2UXP.js";
|
|
4
|
-
|
|
5
|
-
// src/components/Progress/Progress.tsx
|
|
6
|
-
import { Progress as ProgressPrimitive } from "radix-ui";
|
|
7
|
-
import { cva } from "class-variance-authority";
|
|
8
|
-
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
9
|
-
var progressVariants = cva("ddga-progress", {
|
|
10
|
-
variants: {
|
|
11
|
-
size: {
|
|
12
|
-
sm: "ddga-progress--sm",
|
|
13
|
-
md: "ddga-progress--md",
|
|
14
|
-
lg: "ddga-progress--lg"
|
|
15
|
-
},
|
|
16
|
-
color: {
|
|
17
|
-
primary: "ddga-progress--primary",
|
|
18
|
-
success: "ddga-progress--success",
|
|
19
|
-
warning: "ddga-progress--warning",
|
|
20
|
-
destructive: "ddga-progress--destructive"
|
|
21
|
-
}
|
|
22
|
-
},
|
|
23
|
-
defaultVariants: {
|
|
24
|
-
size: "md",
|
|
25
|
-
color: "primary"
|
|
26
|
-
}
|
|
27
|
-
});
|
|
28
|
-
var circularProgressVariants = cva("ddga-circular-progress", {
|
|
29
|
-
variants: {
|
|
30
|
-
size: {
|
|
31
|
-
sm: "ddga-circular-progress--sm",
|
|
32
|
-
md: "ddga-circular-progress--md",
|
|
33
|
-
lg: "ddga-circular-progress--lg"
|
|
34
|
-
},
|
|
35
|
-
color: {
|
|
36
|
-
primary: "ddga-circular-progress--primary",
|
|
37
|
-
success: "ddga-circular-progress--success",
|
|
38
|
-
warning: "ddga-circular-progress--warning",
|
|
39
|
-
destructive: "ddga-circular-progress--destructive"
|
|
40
|
-
}
|
|
41
|
-
},
|
|
42
|
-
defaultVariants: {
|
|
43
|
-
size: "md",
|
|
44
|
-
color: "primary"
|
|
45
|
-
}
|
|
46
|
-
});
|
|
47
|
-
function Progress({ value = null, max = 100, size, color, className, ...props }) {
|
|
48
|
-
const isIndeterminate = value === null;
|
|
49
|
-
const pct = isIndeterminate ? 0 : Math.min(100, Math.max(0, value / max * 100));
|
|
50
|
-
return /* @__PURE__ */ jsx(
|
|
51
|
-
ProgressPrimitive.Root,
|
|
52
|
-
{
|
|
53
|
-
"data-slot": "progress",
|
|
54
|
-
value,
|
|
55
|
-
max,
|
|
56
|
-
className: cn(progressVariants({ size, color }), className),
|
|
57
|
-
...props,
|
|
58
|
-
children: /* @__PURE__ */ jsx(
|
|
59
|
-
ProgressPrimitive.Indicator,
|
|
60
|
-
{
|
|
61
|
-
"data-slot": "progress-indicator",
|
|
62
|
-
className: "ddga-progress__indicator",
|
|
63
|
-
style: isIndeterminate ? void 0 : { inlineSize: `${pct}%` }
|
|
64
|
-
}
|
|
65
|
-
)
|
|
66
|
-
}
|
|
67
|
-
);
|
|
68
|
-
}
|
|
69
|
-
var CIRCULAR_SIZES = { sm: 32, md: 48, lg: 72 };
|
|
70
|
-
var CIRCULAR_DEFAULT_THICKNESS = { sm: 4, md: 5, lg: 6 };
|
|
71
|
-
var SEGMENT_GAP_FRACTION = 0.16;
|
|
72
|
-
function CircularProgress({
|
|
73
|
-
value = null,
|
|
74
|
-
max = 100,
|
|
75
|
-
size,
|
|
76
|
-
color,
|
|
77
|
-
thickness,
|
|
78
|
-
segments,
|
|
79
|
-
showLabel = false,
|
|
80
|
-
className,
|
|
81
|
-
...props
|
|
82
|
-
}) {
|
|
83
|
-
if (process.env.NODE_ENV === "development" && !props["aria-label"] && !props["aria-labelledby"]) {
|
|
84
|
-
console.warn(
|
|
85
|
-
"[dga/Progress] <CircularProgress> has no accessible name. Pass `aria-label` or `aria-labelledby` so screen-reader users know what the progress represents."
|
|
86
|
-
);
|
|
87
|
-
}
|
|
88
|
-
const isIndeterminate = value === null;
|
|
89
|
-
const isSegmented = typeof segments === "number" && segments >= 2;
|
|
90
|
-
const sizeKey = size ?? "md";
|
|
91
|
-
const diameter = CIRCULAR_SIZES[sizeKey];
|
|
92
|
-
const strokeWidth = thickness ?? CIRCULAR_DEFAULT_THICKNESS[sizeKey];
|
|
93
|
-
const radius = (diameter - strokeWidth) / 2;
|
|
94
|
-
const circumference = 2 * Math.PI * radius;
|
|
95
|
-
const center = diameter / 2;
|
|
96
|
-
const pct = isIndeterminate ? 0 : Math.min(100, Math.max(0, value / max * 100));
|
|
97
|
-
const dashOffset = isIndeterminate ? circumference * 0.75 : circumference * (1 - pct / 100);
|
|
98
|
-
const state = isIndeterminate ? "indeterminate" : value >= max ? "complete" : "loading";
|
|
99
|
-
const segmentEls = isSegmented && segments ? (() => {
|
|
100
|
-
const filled = isIndeterminate ? 0 : Math.round(pct / 100 * segments);
|
|
101
|
-
const segAngle = 360 / segments;
|
|
102
|
-
const gapAngle = segAngle * SEGMENT_GAP_FRACTION;
|
|
103
|
-
const segLen = circumference * ((1 - SEGMENT_GAP_FRACTION) / segments);
|
|
104
|
-
return Array.from({ length: segments }, (_, i) => /* @__PURE__ */ jsx(
|
|
105
|
-
"circle",
|
|
106
|
-
{
|
|
107
|
-
className: cn(
|
|
108
|
-
"ddga-circular-progress__segment",
|
|
109
|
-
i < filled && "ddga-circular-progress__segment--filled"
|
|
110
|
-
),
|
|
111
|
-
cx: center,
|
|
112
|
-
cy: center,
|
|
113
|
-
r: radius,
|
|
114
|
-
fill: "none",
|
|
115
|
-
strokeWidth,
|
|
116
|
-
strokeLinecap: "butt",
|
|
117
|
-
strokeDasharray: `${segLen} ${circumference}`,
|
|
118
|
-
transform: `rotate(${-90 + i * segAngle + gapAngle / 2} ${center} ${center})`
|
|
119
|
-
},
|
|
120
|
-
i
|
|
121
|
-
));
|
|
122
|
-
})() : null;
|
|
123
|
-
const labelText = isSegmented ? `${segments ? Math.round(pct / 100 * segments) : 0}/${segments}` : `${Math.round(pct)}%`;
|
|
124
|
-
return /* @__PURE__ */ jsxs(
|
|
125
|
-
"div",
|
|
126
|
-
{
|
|
127
|
-
"data-slot": "circular-progress",
|
|
128
|
-
"data-state": state,
|
|
129
|
-
"data-segmented": isSegmented ? "" : void 0,
|
|
130
|
-
role: "progressbar",
|
|
131
|
-
"aria-valuemin": 0,
|
|
132
|
-
"aria-valuemax": max,
|
|
133
|
-
"aria-valuenow": isIndeterminate ? void 0 : value,
|
|
134
|
-
className: cn(circularProgressVariants({ size, color }), className),
|
|
135
|
-
style: { inlineSize: diameter, blockSize: diameter },
|
|
136
|
-
...props,
|
|
137
|
-
children: [
|
|
138
|
-
/* @__PURE__ */ jsx(
|
|
139
|
-
"svg",
|
|
140
|
-
{
|
|
141
|
-
className: "ddga-circular-progress__svg",
|
|
142
|
-
viewBox: `0 0 ${diameter} ${diameter}`,
|
|
143
|
-
width: diameter,
|
|
144
|
-
height: diameter,
|
|
145
|
-
"aria-hidden": "true",
|
|
146
|
-
focusable: "false",
|
|
147
|
-
children: isSegmented ? segmentEls : /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
148
|
-
/* @__PURE__ */ jsx(
|
|
149
|
-
"circle",
|
|
150
|
-
{
|
|
151
|
-
className: "ddga-circular-progress__track",
|
|
152
|
-
cx: center,
|
|
153
|
-
cy: center,
|
|
154
|
-
r: radius,
|
|
155
|
-
fill: "none",
|
|
156
|
-
strokeWidth
|
|
157
|
-
}
|
|
158
|
-
),
|
|
159
|
-
/* @__PURE__ */ jsx(
|
|
160
|
-
"circle",
|
|
161
|
-
{
|
|
162
|
-
className: "ddga-circular-progress__indicator",
|
|
163
|
-
cx: center,
|
|
164
|
-
cy: center,
|
|
165
|
-
r: radius,
|
|
166
|
-
fill: "none",
|
|
167
|
-
strokeWidth,
|
|
168
|
-
strokeLinecap: "round",
|
|
169
|
-
strokeDasharray: circumference,
|
|
170
|
-
strokeDashoffset: dashOffset,
|
|
171
|
-
transform: `rotate(-90 ${center} ${center})`
|
|
172
|
-
}
|
|
173
|
-
)
|
|
174
|
-
] })
|
|
175
|
-
}
|
|
176
|
-
),
|
|
177
|
-
showLabel && !isIndeterminate ? /* @__PURE__ */ jsx("span", { className: "ddga-circular-progress__label", "aria-hidden": "true", children: labelText }) : null
|
|
178
|
-
]
|
|
179
|
-
}
|
|
180
|
-
);
|
|
181
|
-
}
|
|
182
|
-
|
|
183
|
-
export {
|
|
184
|
-
progressVariants,
|
|
185
|
-
circularProgressVariants,
|
|
186
|
-
Progress,
|
|
187
|
-
CircularProgress
|
|
188
|
-
};
|
|
189
|
-
//# sourceMappingURL=chunk-RSXDPFXK.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/components/Progress/Progress.tsx"],"sourcesContent":["'use client';\n\nimport { Progress as ProgressPrimitive } from 'radix-ui';\nimport { cva, type VariantProps } from 'class-variance-authority';\nimport { cn } from '../../utils/cn';\n\n// ─── 1. Variants ─── //\n\nconst progressVariants = cva('ddga-progress', {\n variants: {\n size: {\n sm: 'ddga-progress--sm',\n md: 'ddga-progress--md',\n lg: 'ddga-progress--lg',\n },\n color: {\n primary: 'ddga-progress--primary',\n success: 'ddga-progress--success',\n warning: 'ddga-progress--warning',\n destructive: 'ddga-progress--destructive',\n },\n },\n defaultVariants: {\n size: 'md',\n color: 'primary',\n },\n});\n\nconst circularProgressVariants = cva('ddga-circular-progress', {\n variants: {\n size: {\n sm: 'ddga-circular-progress--sm',\n md: 'ddga-circular-progress--md',\n lg: 'ddga-circular-progress--lg',\n },\n color: {\n primary: 'ddga-circular-progress--primary',\n success: 'ddga-circular-progress--success',\n warning: 'ddga-circular-progress--warning',\n destructive: 'ddga-circular-progress--destructive',\n },\n },\n defaultVariants: {\n size: 'md',\n color: 'primary',\n },\n});\n\n// ─── 2. Linear Progress (Radix) ─── //\n\ntype ProgressOwnProps = VariantProps<typeof progressVariants> & {\n /**\n * Current progress. `null` (or omitted) renders the indeterminate animation.\n * Otherwise clamp yourself to `[0, max]` — Radix Progress assumes the value\n * is in range.\n */\n value?: number | null;\n /** Maximum value. Defaults to 100. */\n max?: number;\n /**\n * Accessible label for the progressbar. Required for assistive tech —\n * Radix logs a warning if neither `aria-label` nor `aria-labelledby` is set.\n */\n 'aria-label'?: string;\n 'aria-labelledby'?: string;\n};\n\ntype ProgressProps = ProgressOwnProps &\n Omit<React.ComponentProps<typeof ProgressPrimitive.Root>, keyof ProgressOwnProps>;\n\nfunction Progress({ value = null, max = 100, size, color, className, ...props }: ProgressProps) {\n const isIndeterminate = value === null;\n const pct = isIndeterminate ? 0 : Math.min(100, Math.max(0, (value / max) * 100));\n\n return (\n <ProgressPrimitive.Root\n data-slot=\"progress\"\n value={value}\n max={max}\n className={cn(progressVariants({ size, color }), className)}\n {...props}\n >\n <ProgressPrimitive.Indicator\n data-slot=\"progress-indicator\"\n className=\"ddga-progress__indicator\"\n // Fill via logical `inline-size`, not a physical `translateX`: the\n // indicator is anchored to the track's inline-start, so it fills from\n // the left in LTR and the right in RTL automatically — no direction\n // read in JS. (A `translateX(-N%)` always slid left, mirroring wrong.)\n style={isIndeterminate ? undefined : { inlineSize: `${pct}%` }}\n />\n </ProgressPrimitive.Root>\n );\n}\n\n// ─── 3. Circular Progress (custom SVG) ─── //\n\ntype CircularProgressOwnProps = VariantProps<typeof circularProgressVariants> & {\n value?: number | null;\n max?: number;\n /** Stroke width in px. Defaults to 4 (sm) / 5 (md) / 6 (lg). */\n thickness?: number;\n /**\n * Render the ring as `segments` discrete arcs (a radial stepper) instead of a\n * continuous arc. Pass an integer `>= 2`; values below that fall back to the\n * continuous ring. The number of filled segments is `round(pct × segments)`,\n * so `value={3} max={5} segments={5}` fills 3. Segmented mode is determinate —\n * a `null` value renders 0 filled (no spinner).\n */\n segments?: number;\n /** Render the label inside the ring (`%`, or `filled/segments` when segmented). */\n showLabel?: boolean;\n 'aria-label'?: string;\n 'aria-labelledby'?: string;\n};\n\ntype CircularProgressProps = CircularProgressOwnProps &\n Omit<React.ComponentProps<'div'>, keyof CircularProgressOwnProps>;\n\nconst CIRCULAR_SIZES = { sm: 32, md: 48, lg: 72 } as const;\nconst CIRCULAR_DEFAULT_THICKNESS = { sm: 4, md: 5, lg: 6 } as const;\n// Fraction of each segment's angular slot left as the gap between segments.\nconst SEGMENT_GAP_FRACTION = 0.16;\n\nfunction CircularProgress({\n value = null,\n max = 100,\n size,\n color,\n thickness,\n segments,\n showLabel = false,\n className,\n ...props\n}: CircularProgressProps) {\n if (process.env.NODE_ENV === 'development' && !props['aria-label'] && !props['aria-labelledby']) {\n // Linear Progress inherits Radix's no-label warning; CircularProgress is a\n // hand-built `role=\"progressbar\"`, so it needs its own. The ring `showLabel`\n // is aria-hidden decoration, not an accessible name.\n console.warn(\n '[dga/Progress] <CircularProgress> has no accessible name. Pass `aria-label` or ' +\n '`aria-labelledby` so screen-reader users know what the progress represents.',\n );\n }\n\n const isIndeterminate = value === null;\n const isSegmented = typeof segments === 'number' && segments >= 2;\n const sizeKey = size ?? 'md';\n const diameter = CIRCULAR_SIZES[sizeKey];\n const strokeWidth = thickness ?? CIRCULAR_DEFAULT_THICKNESS[sizeKey];\n const radius = (diameter - strokeWidth) / 2;\n const circumference = 2 * Math.PI * radius;\n const center = diameter / 2;\n\n const pct = isIndeterminate ? 0 : Math.min(100, Math.max(0, (value / max) * 100));\n const dashOffset = isIndeterminate ? circumference * 0.75 : circumference * (1 - pct / 100);\n\n // Mirror Radix Progress's data-state vocabulary so CSS can use a single\n // selector across linear + circular.\n const state = isIndeterminate ? 'indeterminate' : value >= max ? 'complete' : 'loading';\n\n // Segmented (radial-stepper) geometry: split the ring into `segments` arcs\n // with gaps. Each segment is a single dash of `segLen`, rotated into its slot;\n // the gap is centered so segments stay evenly spaced. Determinate-only.\n const segmentEls =\n isSegmented && segments\n ? (() => {\n const filled = isIndeterminate ? 0 : Math.round((pct / 100) * segments);\n const segAngle = 360 / segments;\n const gapAngle = segAngle * SEGMENT_GAP_FRACTION;\n const segLen = circumference * ((1 - SEGMENT_GAP_FRACTION) / segments);\n return Array.from({ length: segments }, (_, i) => (\n <circle\n key={i}\n className={cn(\n 'ddga-circular-progress__segment',\n i < filled && 'ddga-circular-progress__segment--filled',\n )}\n cx={center}\n cy={center}\n r={radius}\n fill=\"none\"\n strokeWidth={strokeWidth}\n // Butt caps, not round: round caps extend strokeWidth/2 past each\n // arc end and would swallow the gap (overlapping at small sizes).\n strokeLinecap=\"butt\"\n strokeDasharray={`${segLen} ${circumference}`}\n transform={`rotate(${-90 + i * segAngle + gapAngle / 2} ${center} ${center})`}\n />\n ));\n })()\n : null;\n\n const labelText = isSegmented\n ? `${segments ? Math.round((pct / 100) * segments) : 0}/${segments}`\n : `${Math.round(pct)}%`;\n\n return (\n <div\n data-slot=\"circular-progress\"\n data-state={state}\n data-segmented={isSegmented ? '' : undefined}\n role=\"progressbar\"\n aria-valuemin={0}\n aria-valuemax={max}\n aria-valuenow={isIndeterminate ? undefined : value}\n className={cn(circularProgressVariants({ size, color }), className)}\n style={{ inlineSize: diameter, blockSize: diameter }}\n {...props}\n >\n <svg\n className=\"ddga-circular-progress__svg\"\n viewBox={`0 0 ${diameter} ${diameter}`}\n width={diameter}\n height={diameter}\n aria-hidden=\"true\"\n focusable=\"false\"\n >\n {isSegmented ? (\n segmentEls\n ) : (\n <>\n <circle\n className=\"ddga-circular-progress__track\"\n cx={center}\n cy={center}\n r={radius}\n fill=\"none\"\n strokeWidth={strokeWidth}\n />\n <circle\n className=\"ddga-circular-progress__indicator\"\n cx={center}\n cy={center}\n r={radius}\n fill=\"none\"\n strokeWidth={strokeWidth}\n strokeLinecap=\"round\"\n strokeDasharray={circumference}\n strokeDashoffset={dashOffset}\n transform={`rotate(-90 ${center} ${center})`}\n />\n </>\n )}\n </svg>\n {showLabel && !isIndeterminate ? (\n <span className=\"ddga-circular-progress__label\" aria-hidden=\"true\">\n {labelText}\n </span>\n ) : null}\n </div>\n );\n}\n\n// ─── 4. Exports ─── //\n\nexport { Progress, CircularProgress, progressVariants, circularProgressVariants };\nexport type { ProgressProps, CircularProgressProps };\n"],"mappings":";;;;;AAEA,SAAS,YAAY,yBAAyB;AAC9C,SAAS,WAA8B;AA+EjC,SA2II,UA3IJ,KA2II,YA3IJ;AA1EN,IAAM,mBAAmB,IAAI,iBAAiB;AAAA,EAC5C,UAAU;AAAA,IACR,MAAM;AAAA,MACJ,IAAI;AAAA,MACJ,IAAI;AAAA,MACJ,IAAI;AAAA,IACN;AAAA,IACA,OAAO;AAAA,MACL,SAAS;AAAA,MACT,SAAS;AAAA,MACT,SAAS;AAAA,MACT,aAAa;AAAA,IACf;AAAA,EACF;AAAA,EACA,iBAAiB;AAAA,IACf,MAAM;AAAA,IACN,OAAO;AAAA,EACT;AACF,CAAC;AAED,IAAM,2BAA2B,IAAI,0BAA0B;AAAA,EAC7D,UAAU;AAAA,IACR,MAAM;AAAA,MACJ,IAAI;AAAA,MACJ,IAAI;AAAA,MACJ,IAAI;AAAA,IACN;AAAA,IACA,OAAO;AAAA,MACL,SAAS;AAAA,MACT,SAAS;AAAA,MACT,SAAS;AAAA,MACT,aAAa;AAAA,IACf;AAAA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ACf,iBAAe,kBAAkB,SAAY;AAAA,MAC7C,WAAW,GAAG,yBAAyB,EAAE,MAAM,MAAM,CAAC,GAAG,SAAS;AAAA,MAClE,OAAO,EAAE,YAAY,UAAU,WAAW,SAAS;AAAA,MAClD,GAAG;AAAA,MAEJ;AAAA;AAAA,UAAC;AAAA;AAAA,YACC,WAAU;AAAA,YACV,SAAS,OAAO,QAAQ,IAAI,QAAQ;AAAA,YACpC,OAAO;AAAA,YACP,QAAQ;AAAA,YACR,eAAY;AAAA,YACZ,WAAU;AAAA,YAET,wBACC,aAEA,iCACE;AAAA;AAAA,gBAAC;AAAA;AAAA,kBACC,WAAU;AAAA,kBACV,IAAI;AAAA,kBACJ,IAAI;AAAA,kBACJ,GAAG;AAAA,kBACH,MAAK;AAAA,kBACL;AAAA;AAAA,cACF;AAAA,cACA;AAAA,gBAAC;AAAA;AAAA,kBACC,WAAU;AAAA,kBACV,IAAI;AAAA,kBACJ,IAAI;AAAA,kBACJ,GAAG;AAAA,kBACH,MAAK;AAAA,kBACL;AAAA,kBACA,eAAc;AAAA,kBACd,iBAAiB;AAAA,kBACjB,kBAAkB;AAAA,kBAClB,WAAW,cAAc,MAAM,IAAI,MAAM;AAAA;AAAA,cAC3C;AAAA,eACF;AAAA;AAAA,QAEJ;AAAA,QACC,aAAa,CAAC,kBACb,oBAAC,UAAK,WAAU,iCAAgC,eAAY,QACzD,qBACH,IACE;AAAA;AAAA;AAAA,EACN;AAEJ;","names":[]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/components/Skeleton/Skeleton.tsx"],"sourcesContent":["'use client';\n\nimport { cva, type VariantProps } from 'class-variance-authority';\nimport { cn } from '../../utils/cn';\n\nconst skeletonVariants = cva('ddga-skeleton', {\n variants: {\n shape: {\n text: 'ddga-skeleton--text',\n circle: 'ddga-skeleton--circle',\n rectangle: 'ddga-skeleton--rectangle',\n },\n animation: {\n pulse: 'ddga-skeleton--pulse',\n wave: 'ddga-skeleton--wave',\n none: 'ddga-skeleton--none',\n },\n },\n defaultVariants: {\n shape: 'text',\n animation: 'pulse',\n },\n});\n\ninterface SkeletonProps extends React.ComponentProps<'div'>, VariantProps<typeof skeletonVariants> {\n /**\n * Inline width override (any valid CSS length, e.g. `\"60%\"`, `200`, `\"4rem\"`).\n * Defaults: `text` → `100%`, `circle`/`rectangle` → `40px` (CSS-controlled).\n */\n width?: number | string;\n /**\n * Inline height override. Defaults: `text` → `1em` so it tracks the surrounding\n * line height; `rectangle` → `40px`; `circle` → matches `width` to stay round.\n */\n height?: number | string;\n}\n\nfunction Skeleton({ shape, animation, width, height, className, style, ...props }: SkeletonProps) {\n const sizeStyle: React.CSSProperties = {\n ...(width !== undefined ? { width: typeof width === 'number' ? `${width}px` : width } : null),\n ...(height !== undefined\n ? { height: typeof height === 'number' ? `${height}px` : height }\n : null),\n ...style,\n };\n\n return (\n <div\n data-slot=\"skeleton\"\n aria-hidden=\"true\"\n className={cn(skeletonVariants({ shape, animation }), className)}\n style={sizeStyle}\n {...props}\n />\n );\n}\n\nexport { Skeleton, skeletonVariants };\nexport type { SkeletonProps };\n"],"mappings":";;;;;AAEA,SAAS,WAA8B;AA6CnC;AA1CJ,IAAM,mBAAmB,IAAI,iBAAiB;AAAA,EAC5C,UAAU;AAAA,IACR,OAAO;AAAA,MACL,MAAM;AAAA,MACN,QAAQ;AAAA,MACR,WAAW;AAAA,IACb;AAAA,IACA,WAAW;AAAA,MACT,OAAO;AAAA,MACP,MAAM;AAAA,MACN,MAAM;AAAA,IACR;AAAA,EACF;AAAA,EACA,iBAAiB;AAAA,IACf,OAAO;AAAA,IACP,WAAW;AAAA,EACb;AACF,CAAC;AAeD,SAAS,SAAS,EAAE,OAAO,WAAW,OAAO,QAAQ,WAAW,OAAO,GAAG,MAAM,GAAkB;AAChG,QAAM,YAAiC;AAAA,IACrC,GAAI,UAAU,SAAY,EAAE,OAAO,OAAO,UAAU,WAAW,GAAG,KAAK,OAAO,MAAM,IAAI;AAAA,IACxF,GAAI,WAAW,SACX,EAAE,QAAQ,OAAO,WAAW,WAAW,GAAG,MAAM,OAAO,OAAO,IAC9D;AAAA,IACJ,GAAG;AAAA,EACL;AAEA,SACE;AAAA,IAAC;AAAA;AAAA,MACC,aAAU;AAAA,MACV,eAAY;AAAA,MACZ,WAAW,GAAG,iBAAiB,EAAE,OAAO,UAAU,CAAC,GAAG,SAAS;AAAA,MAC/D,OAAO;AAAA,MACN,GAAG;AAAA;AAAA,EACN;AAEJ;","names":[]}
|
package/dist/chunk-STJDMXL7.cjs
DELETED
|
@@ -1,116 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } }
|
|
2
|
-
|
|
3
|
-
var _chunkN4FHLSNVcjs = require('./chunk-N4FHLSNV.cjs');
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
var _chunkNH3KGR65cjs = require('./chunk-NH3KGR65.cjs');
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
var _chunkV6MXOJQ4cjs = require('./chunk-V6MXOJQ4.cjs');
|
|
10
|
-
|
|
11
|
-
// src/components/Slider/Slider.tsx
|
|
12
|
-
var _react = require('react');
|
|
13
|
-
var _radixui = require('radix-ui');
|
|
14
|
-
var _classvarianceauthority = require('class-variance-authority');
|
|
15
|
-
var _jsxruntime = require('react/jsx-runtime');
|
|
16
|
-
var sliderVariants = _classvarianceauthority.cva.call(void 0, "ddga-slider", {
|
|
17
|
-
variants: {
|
|
18
|
-
size: {
|
|
19
|
-
sm: "ddga-slider--sm",
|
|
20
|
-
md: "ddga-slider--md"
|
|
21
|
-
},
|
|
22
|
-
error: {
|
|
23
|
-
true: "ddga-slider--error"
|
|
24
|
-
}
|
|
25
|
-
},
|
|
26
|
-
defaultVariants: {
|
|
27
|
-
size: "md"
|
|
28
|
-
}
|
|
29
|
-
});
|
|
30
|
-
var DEFAULT_THUMB_LABELS = ["Minimum", "Maximum"];
|
|
31
|
-
function toArray(value) {
|
|
32
|
-
if (value === void 0) return void 0;
|
|
33
|
-
return Array.isArray(value) ? value : [value];
|
|
34
|
-
}
|
|
35
|
-
function Slider({
|
|
36
|
-
id: externalId,
|
|
37
|
-
value,
|
|
38
|
-
defaultValue,
|
|
39
|
-
onValueChange,
|
|
40
|
-
onValueCommit,
|
|
41
|
-
min = 0,
|
|
42
|
-
max = 100,
|
|
43
|
-
size,
|
|
44
|
-
label,
|
|
45
|
-
helperText,
|
|
46
|
-
errorMessage,
|
|
47
|
-
error,
|
|
48
|
-
showValue = false,
|
|
49
|
-
formatValue,
|
|
50
|
-
thumbLabels = DEFAULT_THUMB_LABELS,
|
|
51
|
-
className,
|
|
52
|
-
...props
|
|
53
|
-
}) {
|
|
54
|
-
const labelId = _react.useId.call(void 0, );
|
|
55
|
-
const { fieldId, errorId, helperId, hasError, hasErrorMessage, hasHelper, controlProps } = _chunkNH3KGR65cjs.useFieldA11y.call(void 0, {
|
|
56
|
-
name: "Slider",
|
|
57
|
-
id: externalId,
|
|
58
|
-
label,
|
|
59
|
-
error,
|
|
60
|
-
errorMessage,
|
|
61
|
-
helperText,
|
|
62
|
-
"aria-label": props["aria-label"],
|
|
63
|
-
"aria-labelledby": _nullishCoalesce(props["aria-labelledby"], () => ( (label ? labelId : void 0)))
|
|
64
|
-
});
|
|
65
|
-
const isRange = Array.isArray(_nullishCoalesce(value, () => ( defaultValue)));
|
|
66
|
-
const valueArray = toArray(value);
|
|
67
|
-
const defaultArray = _nullishCoalesce(toArray(defaultValue), () => ( [min]));
|
|
68
|
-
const wrap = (next) => isRange ? next : next[0];
|
|
69
|
-
const currentForRender = _nullishCoalesce(valueArray, () => ( defaultArray));
|
|
70
|
-
const fmt = (n) => formatValue ? formatValue(n) : String(n);
|
|
71
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { "data-slot": "slider-field", className: "ddga-field", children: [
|
|
72
|
-
(label || showValue) && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "ddga-slider__header", children: [
|
|
73
|
-
label && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { id: labelId, className: "ddga-slider__label", children: label }),
|
|
74
|
-
showValue && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "ddga-slider__value", "aria-hidden": "true", children: currentForRender.map(fmt).join(" \u2013 ") })
|
|
75
|
-
] }),
|
|
76
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
77
|
-
_radixui.Slider.Root,
|
|
78
|
-
{
|
|
79
|
-
...props,
|
|
80
|
-
id: fieldId,
|
|
81
|
-
min,
|
|
82
|
-
max,
|
|
83
|
-
value: valueArray,
|
|
84
|
-
defaultValue: value === void 0 ? defaultArray : void 0,
|
|
85
|
-
onValueChange: onValueChange ? (next) => onValueChange(wrap(next)) : void 0,
|
|
86
|
-
onValueCommit: onValueCommit ? (next) => onValueCommit(wrap(next)) : void 0,
|
|
87
|
-
"aria-invalid": controlProps["aria-invalid"],
|
|
88
|
-
"data-slot": "slider",
|
|
89
|
-
className: _chunkV6MXOJQ4cjs.cn.call(void 0, sliderVariants({ size, error: hasError }), className),
|
|
90
|
-
children: [
|
|
91
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _radixui.Slider.Track, { "data-slot": "slider-track", className: "ddga-slider__track", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _radixui.Slider.Range, { "data-slot": "slider-range", className: "ddga-slider__range" }) }),
|
|
92
|
-
currentForRender.map((thumbValue, index) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
93
|
-
_radixui.Slider.Thumb,
|
|
94
|
-
{
|
|
95
|
-
"data-slot": "slider-thumb",
|
|
96
|
-
className: "ddga-slider__thumb",
|
|
97
|
-
"aria-label": isRange ? thumbLabels[index] : void 0,
|
|
98
|
-
"aria-labelledby": !isRange && label ? labelId : void 0,
|
|
99
|
-
"aria-valuetext": formatValue ? fmt(thumbValue) : void 0,
|
|
100
|
-
"aria-describedby": controlProps["aria-describedby"]
|
|
101
|
-
},
|
|
102
|
-
index
|
|
103
|
-
))
|
|
104
|
-
]
|
|
105
|
-
}
|
|
106
|
-
),
|
|
107
|
-
hasErrorMessage && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkN4FHLSNVcjs.FieldMessage, { id: errorId, variant: "error", children: errorMessage }),
|
|
108
|
-
hasHelper && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkN4FHLSNVcjs.FieldMessage, { id: helperId, variant: "helper", children: helperText })
|
|
109
|
-
] });
|
|
110
|
-
}
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
exports.sliderVariants = sliderVariants; exports.Slider = Slider;
|
|
116
|
-
//# sourceMappingURL=chunk-STJDMXL7.cjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["/home/devdhaif/work/react/dga-dev/packages/react/dist/chunk-STJDMXL7.cjs","../src/components/Slider/Slider.tsx"],"names":[],"mappings":"AAAA;AACE;AACF,wDAA6B;AAC7B;AACE;AACF,wDAA6B;AAC7B;AACE;AACF,wDAA6B;AAC7B;AACA;ACRA,8BAAsC;AACtC,mCAA0C;AAC1C,kEAAuC;AA4H/B,+CAAA;AAtHR,IAAM,eAAA,EAAiB,yCAAA,aAAI,EAAe;AAAA,EACxC,QAAA,EAAU;AAAA,IACR,IAAA,EAAM;AAAA,MACJ,EAAA,EAAI,iBAAA;AAAA,MACJ,EAAA,EAAI;AAAA,IACN,CAAA;AAAA,IACA,KAAA,EAAO;AAAA,MACL,IAAA,EAAM;AAAA,IACR;AAAA,EACF,CAAA;AAAA,EACA,eAAA,EAAiB;AAAA,IACf,IAAA,EAAM;AAAA,EACR;AACF,CAAC,CAAA;AA8CD,IAAM,qBAAA,EAAyC,CAAC,SAAA,EAAW,SAAS,CAAA;AAEpE,SAAS,OAAA,CAAQ,KAAA,EAAsD;AACrE,EAA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AA,CACH,CAAA;AAAA,IAED,UAAA,mBACC,6BAAA,8BAAC,EAAA,EAAa,EAAA,EAAI,QAAA,EAAU,OAAA,EAAQ,QAAA,EACjC,QAAA,EAAA,WAAA,CACH;AAAA,EAAA,EAAA,CAEJ,CAAA;AAEJ;AD3EA;AACA;AACE;AACA;AACF,iEAAC","file":"/home/devdhaif/work/react/dga-dev/packages/react/dist/chunk-STJDMXL7.cjs","sourcesContent":[null,"'use client';\n\nimport { useId, type ReactNode } from 'react';\nimport { Slider as SliderPrimitive } from 'radix-ui';\nimport { cva, type VariantProps } from 'class-variance-authority';\nimport { cn } from '../../utils/cn';\nimport { useFieldA11y, FieldMessage } from '../../field';\n\n// ─── 1. Variants (cva) ─── //\n\nconst sliderVariants = cva('ddga-slider', {\n variants: {\n size: {\n sm: 'ddga-slider--sm',\n md: 'ddga-slider--md',\n },\n error: {\n true: 'ddga-slider--error',\n },\n },\n defaultVariants: {\n size: 'md',\n },\n});\n\n// ─── 2. Types ─── //\n\n// Radix owns the slider state model, but always as `number[]`. We expose a\n// cleaner API: a single `number` for one thumb, `number[]` for a range. The\n// emitted value mirrors the shape that was passed in.\ntype SliderValue = number | number[];\n\ninterface SliderProps\n extends\n Omit<\n React.ComponentProps<typeof SliderPrimitive.Root>,\n 'value' | 'defaultValue' | 'onValueChange' | 'onValueCommit' | 'asChild'\n >,\n VariantProps<typeof sliderVariants> {\n /** Controlled value. `number` → single thumb, `number[]` → one thumb each. */\n value?: SliderValue;\n /** Uncontrolled initial value. Defaults to a single thumb at `min`. */\n defaultValue?: SliderValue;\n /** Fires continuously while dragging. Shape mirrors `value`/`defaultValue`. */\n onValueChange?: (value: SliderValue) => void;\n /** Fires once on release (pointer up / keyboard commit). */\n onValueCommit?: (value: SliderValue) => void;\n\n /** Visible field label, associated to the thumb(s) via `aria-labelledby`. */\n label?: ReactNode;\n /** Hint shown below the field. Hidden while an error message is showing. */\n helperText?: ReactNode;\n /** Message shown below the field when `error` is true. */\n errorMessage?: ReactNode;\n /** Marks the field invalid: sets `aria-invalid` and error styling. */\n error?: boolean;\n\n /** Render the current value(s) as text beside the label. */\n showValue?: boolean;\n /** Formats each value for `showValue` and the thumb's `aria-valuetext`\n * (e.g. percentages or currency). */\n formatValue?: (value: number) => string;\n /** Accessible names for the two range thumbs. Ignored for single thumbs.\n * Defaults to `['Minimum', 'Maximum']`. */\n thumbLabels?: [string, string];\n}\n\n// ─── 3. Helpers ─── //\n\nconst DEFAULT_THUMB_LABELS: [string, string] = ['Minimum', 'Maximum'];\n\nfunction toArray(value: SliderValue | undefined): number[] | undefined {\n if (value === undefined) return undefined;\n return Array.isArray(value) ? value : [value];\n}\n\n// ─── 4. Component ─── //\n\nfunction Slider({\n id: externalId,\n value,\n defaultValue,\n onValueChange,\n onValueCommit,\n min = 0,\n max = 100,\n size,\n label,\n helperText,\n errorMessage,\n error,\n showValue = false,\n formatValue,\n thumbLabels = DEFAULT_THUMB_LABELS,\n className,\n ...props\n}: SliderProps) {\n const labelId = useId();\n const { fieldId, errorId, helperId, hasError, hasErrorMessage, hasHelper, controlProps } =\n useFieldA11y({\n name: 'Slider',\n id: externalId,\n label,\n error,\n errorMessage,\n helperText,\n 'aria-label': props['aria-label'],\n 'aria-labelledby': props['aria-labelledby'] ?? (label ? labelId : undefined),\n });\n\n // Single vs range is determined by the controlled/uncontrolled shape the\n // consumer chose; fall back to single when neither is provided.\n const isRange = Array.isArray(value ?? defaultValue);\n\n const valueArray = toArray(value);\n const defaultArray = toArray(defaultValue) ?? [min];\n\n // Re-wrap Radix's `number[]` back into the consumer's shape.\n const wrap = (next: number[]): SliderValue => (isRange ? next : next[0]);\n\n // Each thumb needs an accessible name. A single thumb borrows the field\n // label; range thumbs get distinct min/max labels.\n const currentForRender = valueArray ?? defaultArray;\n const fmt = (n: number) => (formatValue ? formatValue(n) : String(n));\n\n return (\n <div data-slot=\"slider-field\" className=\"ddga-field\">\n {(label || showValue) && (\n <div className=\"ddga-slider__header\">\n {label && (\n <span id={labelId} className=\"ddga-slider__label\">\n {label}\n </span>\n )}\n {showValue && (\n <span className=\"ddga-slider__value\" aria-hidden=\"true\">\n {currentForRender.map(fmt).join(' – ')}\n </span>\n )}\n </div>\n )}\n\n <SliderPrimitive.Root\n // Spread props first, then the a11y/state contract so consumers\n // cannot clobber the wiring.\n {...props}\n id={fieldId}\n min={min}\n max={max}\n value={valueArray}\n defaultValue={value === undefined ? defaultArray : undefined}\n onValueChange={onValueChange ? (next) => onValueChange(wrap(next)) : undefined}\n onValueCommit={onValueCommit ? (next) => onValueCommit(wrap(next)) : undefined}\n aria-invalid={controlProps['aria-invalid']}\n data-slot=\"slider\"\n className={cn(sliderVariants({ size, error: hasError }), className)}\n >\n <SliderPrimitive.Track data-slot=\"slider-track\" className=\"ddga-slider__track\">\n <SliderPrimitive.Range data-slot=\"slider-range\" className=\"ddga-slider__range\" />\n </SliderPrimitive.Track>\n {currentForRender.map((thumbValue, index) => (\n <SliderPrimitive.Thumb\n key={index}\n data-slot=\"slider-thumb\"\n className=\"ddga-slider__thumb\"\n aria-label={isRange ? thumbLabels[index] : undefined}\n aria-labelledby={!isRange && label ? labelId : undefined}\n aria-valuetext={formatValue ? fmt(thumbValue) : undefined}\n aria-describedby={controlProps['aria-describedby']}\n />\n ))}\n </SliderPrimitive.Root>\n\n {hasErrorMessage && (\n <FieldMessage id={errorId} variant=\"error\">\n {errorMessage}\n </FieldMessage>\n )}\n {hasHelper && (\n <FieldMessage id={helperId} variant=\"helper\">\n {helperText}\n </FieldMessage>\n )}\n </div>\n );\n}\n\n// ─── 5. Exports ─── //\n\nexport { Slider, sliderVariants };\nexport type { SliderProps, SliderValue };\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/components/Checkbox/Checkbox.tsx"],"sourcesContent":["'use client';\n\nimport type { ReactNode } from 'react';\nimport { Checkbox as CheckboxPrimitive } from 'radix-ui';\nimport { cva, type VariantProps } from 'class-variance-authority';\nimport { cn } from '../../utils/cn';\nimport { Check, Minus } from '../../internal/icons';\nimport { useFieldA11y, FieldMessage } from '../../field';\n\n// ─── 1. Variants (cva) ─── //\n\n// Applied to the Radix Root (the role=checkbox button). Two sizes only ,\n// a \"lg\" checkbox is unusual; keep the surface honest.\nconst checkboxVariants = cva('ddga-checkbox', {\n variants: {\n size: {\n sm: 'ddga-checkbox--sm',\n md: 'ddga-checkbox--md',\n },\n error: {\n true: 'ddga-checkbox--error',\n },\n },\n defaultVariants: {\n size: 'md',\n },\n});\n\n// ─── 2. Types ─── //\n\n// Radix owns the state model (checked / defaultChecked / onCheckedChange /\n// indeterminate via checked=\"indeterminate\" / disabled / required / name /\n// value). We add the composed label + helper/error + a11y wiring. `children`\n// is omitted , the indicator is rendered internally.\ninterface CheckboxProps\n extends\n Omit<React.ComponentProps<typeof CheckboxPrimitive.Root>, 'children'>,\n VariantProps<typeof checkboxVariants> {\n /** Visible label, sits beside the box, associated via `htmlFor`/`id`. */\n label?: ReactNode;\n /** Hint shown below the row. Hidden while an error message is showing. */\n helperText?: ReactNode;\n /** Message shown below the row when `error` is true. */\n errorMessage?: ReactNode;\n /** Marks the field invalid: sets `aria-invalid` and error styling. */\n error?: boolean;\n}\n\n// ─── 3. Component ─── //\n\nfunction Checkbox({\n id: externalId,\n label,\n helperText,\n errorMessage,\n error,\n size,\n required,\n className,\n ...props\n}: CheckboxProps) {\n const { fieldId, errorId, helperId, hasError, hasErrorMessage, hasHelper, controlProps } =\n useFieldA11y({\n name: 'Checkbox',\n id: externalId,\n label,\n error,\n errorMessage,\n helperText,\n 'aria-label': props['aria-label'],\n 'aria-labelledby': props['aria-labelledby'],\n });\n\n return (\n <div data-slot=\"checkbox-field\" className=\"ddga-field\">\n <div className=\"ddga-checkbox-row\">\n <CheckboxPrimitive.Root\n // Spread props first, then the a11y contract (controlProps) so a\n // consumer cannot accidentally clobber the wiring.\n {...props}\n {...controlProps}\n data-slot=\"checkbox\"\n required={required}\n className={cn(checkboxVariants({ size, error: hasError }), className)}\n >\n <CheckboxPrimitive.Indicator\n data-slot=\"checkbox-indicator\"\n className=\"ddga-checkbox__indicator\"\n >\n {/* Both render inside the indicator (which only mounts when\n checked or indeterminate); CSS picks one via Root data-state. */}\n <Check className=\"ddga-checkbox__check\" aria-hidden=\"true\" />\n <Minus className=\"ddga-checkbox__minus\" aria-hidden=\"true\" />\n </CheckboxPrimitive.Indicator>\n </CheckboxPrimitive.Root>\n {label && (\n <label htmlFor={fieldId} className=\"ddga-checkbox__label\">\n {label}\n {required && (\n <span aria-hidden=\"true\" className=\"ddga-checkbox__required\">\n *\n </span>\n )}\n </label>\n )}\n </div>\n {hasErrorMessage && (\n <FieldMessage id={errorId} variant=\"error\">\n {errorMessage}\n </FieldMessage>\n )}\n {hasHelper && (\n <FieldMessage id={helperId} variant=\"helper\">\n {helperText}\n </FieldMessage>\n )}\n </div>\n );\n}\n\n// ─── 4. Exports ─── //\n\nexport { Checkbox, checkboxVariants };\nexport type { CheckboxProps };\n"],"mappings":";;;;;;;;;;;;;;;AAGA,SAAS,YAAY,yBAAyB;AAC9C,SAAS,WAA8B;AAiF7B,SAME,KANF;AAxEV,IAAM,mBAAmB,IAAI,iBAAiB;AAAA,EAC5C,UAAU;AAAA,IACR,MAAM;AAAA,MACJ,IAAI;AAAA,MACJ,IAAI;AAAA,IACN;AAAA,IACA,OAAO;AAAA,MACL,MAAM;AAAA,IACR;AAAA,EACF;AAAA,EACA,iBAAiB;AAAA,IACf,MAAM;AAAA,EACR;AACF,CAAC;AAwBD,SAAS,SAAS;AAAA,EAChB,IAAI;AAAA,EACJ;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA,GAAG;AACL,GAAkB;AAChB,QAAM,EAAE,SAAS,SAAS,UAAU,UAAU,iBAAiB,WAAW,aAAa,IACrF,aAAa;AAAA,IACX,MAAM;AAAA,IACN,IAAI;AAAA,IACJ;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA,c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