eidos-ui 3.6.3 → 3.8.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/README.md +11 -0
- package/dist/{Avatar.types-BY-C09Ke.d.cts → Avatar.types-DkRznn-7.d.cts} +6 -1
- package/dist/{Avatar.types-BY-C09Ke.d.ts → Avatar.types-DkRznn-7.d.ts} +6 -1
- package/dist/{Breadcrumb.types-DaykU-C8.d.cts → Breadcrumb.types-C3uADbKU.d.cts} +4 -1
- package/dist/{Breadcrumb.types-DaykU-C8.d.ts → Breadcrumb.types-C3uADbKU.d.ts} +4 -1
- package/dist/Button.types-BCIK8Qlk.d.ts +59 -0
- package/dist/Button.types-DkgWjFsk.d.cts +59 -0
- package/dist/Chip.types-BM-UZOCv.d.ts +33 -0
- package/dist/Chip.types-_1bhyKz4.d.cts +33 -0
- package/dist/{Header.types-Ce5Cj301.d.cts → Header.types-a6p0-ZHx.d.cts} +24 -8
- package/dist/{Header.types-0XovUp0T.d.ts → Header.types-zbhURbg7.d.ts} +24 -8
- package/dist/{Input.types-D7-sWq-q.d.cts → Input.types--K0t_3L2.d.cts} +1 -1
- package/dist/{Input.types-CSDMaZNe.d.ts → Input.types--UjucBDd.d.ts} +1 -1
- package/dist/{Menu.types-CTnUijv5.d.cts → Menu.types-D6VoK9T9.d.cts} +1 -1
- package/dist/{Menu.types-BN4g1-3A.d.ts → Menu.types-tUEhXn52.d.ts} +1 -1
- package/dist/{Navigation.types-By5HfPTi.d.ts → Navigation.types-CJRzo9Zo.d.ts} +1 -1
- package/dist/{Navigation.types-_MrYqqUI.d.cts → Navigation.types-D95oHZEJ.d.cts} +1 -1
- package/dist/{SegmentedControl.types-cjLwwBAm.d.ts → SegmentedControl.types-CHtjABQM.d.ts} +1 -1
- package/dist/{SegmentedControl.types-BofrEYyd.d.cts → SegmentedControl.types-D_gHYL9X.d.cts} +1 -1
- package/dist/{Select.types-ok-03rLo.d.cts → Select.types-8CGZBgT-.d.cts} +2 -2
- package/dist/{Select.types-C2tGy1vj.d.ts → Select.types-CAVh9Gvd.d.ts} +2 -2
- package/dist/{Table.types-D8pmgxKA.d.ts → Table.types-BFDE-hhF.d.ts} +2 -2
- package/dist/{Table.types-D-9tC0kJ.d.cts → Table.types-Tai7_MTz.d.cts} +2 -2
- package/dist/{Toolbar.types-CKnQC_TW.d.ts → Toolbar.types-BqBrPVww.d.ts} +8 -6
- package/dist/{Toolbar.types-DUz2mxct.d.cts → Toolbar.types-GCUgzuKW.d.cts} +8 -6
- package/dist/alert/index.cjs +8 -5
- package/dist/alert/index.cjs.map +1 -1
- package/dist/alert/index.d.cts +1 -1
- package/dist/alert/index.d.ts +1 -1
- package/dist/alert/index.js +7 -4
- package/dist/avatar/index.d.cts +2 -2
- package/dist/avatar/index.d.ts +2 -2
- package/dist/breadcrumb/index.cjs +4 -2
- package/dist/breadcrumb/index.cjs.map +1 -1
- package/dist/breadcrumb/index.d.cts +2 -2
- package/dist/breadcrumb/index.d.ts +2 -2
- package/dist/breadcrumb/index.js +3 -1
- package/dist/button/index.cjs +7 -4
- package/dist/button/index.cjs.map +1 -1
- package/dist/button/index.d.cts +5 -5
- package/dist/button/index.d.ts +5 -5
- package/dist/button/index.js +6 -3
- package/dist/button-group/index.d.cts +2 -2
- package/dist/button-group/index.d.ts +2 -2
- package/dist/chip/index.cjs +7 -4
- package/dist/chip/index.cjs.map +1 -1
- package/dist/chip/index.d.cts +5 -23
- package/dist/chip/index.d.ts +5 -23
- package/dist/chip/index.js +6 -3
- package/dist/{chunk-DRXPTACG.js → chunk-26PRBZA6.js} +6 -2
- package/dist/chunk-26PRBZA6.js.map +1 -0
- package/dist/chunk-2IXCEKLI.js +82 -0
- package/dist/chunk-2IXCEKLI.js.map +1 -0
- package/dist/{chunk-GWHZFX2H.js → chunk-2TIMJD4K.js} +29 -6
- package/dist/chunk-2TIMJD4K.js.map +1 -0
- package/dist/{chunk-RHFD2Z5V.js → chunk-3TF2GZSG.js} +7 -7
- package/dist/{chunk-TC5IC6OP.cjs → chunk-3VXUOAIJ.cjs} +3 -3
- package/dist/{chunk-TC5IC6OP.cjs.map → chunk-3VXUOAIJ.cjs.map} +1 -1
- package/dist/{chunk-JHX6JK3M.js → chunk-3X6QVHTD.js} +2 -2
- package/dist/{chunk-7VJCGKVP.cjs → chunk-4HZIXRAJ.cjs} +11 -11
- package/dist/{chunk-7VJCGKVP.cjs.map → chunk-4HZIXRAJ.cjs.map} +1 -1
- package/dist/{chunk-MQAOXZD4.js → chunk-4S57PE43.js} +4 -4
- package/dist/{chunk-JT4KVXJK.js → chunk-4V2XYUQL.js} +2 -2
- package/dist/{chunk-PMSENLOA.cjs → chunk-544RAXWO.cjs} +19 -19
- package/dist/{chunk-PMSENLOA.cjs.map → chunk-544RAXWO.cjs.map} +1 -1
- package/dist/{chunk-4JSTBA4F.cjs → chunk-6CW5QSYV.cjs} +7 -7
- package/dist/{chunk-4JSTBA4F.cjs.map → chunk-6CW5QSYV.cjs.map} +1 -1
- package/dist/{chunk-AR2ZOO6L.js → chunk-6FXFKMJ5.js} +3 -3
- package/dist/{chunk-KREHT4AQ.cjs → chunk-6IB27I5K.cjs} +8 -8
- package/dist/{chunk-KREHT4AQ.cjs.map → chunk-6IB27I5K.cjs.map} +1 -1
- package/dist/{chunk-LGDODZHI.js → chunk-6LTZV6HN.js} +4 -4
- package/dist/{chunk-YP4HUBKN.js → chunk-6NAOAKII.js} +2 -2
- package/dist/chunk-75Q5OS7L.cjs +10 -0
- package/dist/chunk-75Q5OS7L.cjs.map +1 -0
- package/dist/{chunk-LQXFXXMJ.cjs → chunk-7FV2X62W.cjs} +7 -7
- package/dist/{chunk-LQXFXXMJ.cjs.map → chunk-7FV2X62W.cjs.map} +1 -1
- package/dist/{chunk-2T7ZMMH5.cjs → chunk-7NUVLVSL.cjs} +5 -5
- package/dist/{chunk-2T7ZMMH5.cjs.map → chunk-7NUVLVSL.cjs.map} +1 -1
- package/dist/chunk-ACH7SYQ2.js +47 -0
- package/dist/chunk-ACH7SYQ2.js.map +1 -0
- package/dist/{chunk-HNGFRRVZ.cjs → chunk-AUNDBUHM.cjs} +3 -3
- package/dist/{chunk-HNGFRRVZ.cjs.map → chunk-AUNDBUHM.cjs.map} +1 -1
- package/dist/{chunk-XZLSHEHE.cjs → chunk-B2OHBIAL.cjs} +10 -10
- package/dist/{chunk-XZLSHEHE.cjs.map → chunk-B2OHBIAL.cjs.map} +1 -1
- package/dist/chunk-BDH2MXJW.js +46 -0
- package/dist/chunk-BDH2MXJW.js.map +1 -0
- package/dist/{chunk-D7SQ7LHJ.js → chunk-BO3KK3ZQ.js} +2 -2
- package/dist/{chunk-NOQF7UQ5.cjs → chunk-CFVUUMQA.cjs} +6 -6
- package/dist/{chunk-NOQF7UQ5.cjs.map → chunk-CFVUUMQA.cjs.map} +1 -1
- package/dist/chunk-CJT7L764.cjs +21 -0
- package/dist/chunk-CJT7L764.cjs.map +1 -0
- package/dist/{chunk-5XH2PHT2.js → chunk-CNTG7OOO.js} +14 -14
- package/dist/{chunk-I6M6CVI2.cjs → chunk-DG3O5NV4.cjs} +3 -3
- package/dist/{chunk-I6M6CVI2.cjs.map → chunk-DG3O5NV4.cjs.map} +1 -1
- package/dist/{chunk-WNDDS367.js → chunk-DPTTDHZ5.js} +3 -3
- package/dist/{chunk-35LGEPLP.cjs → chunk-ENMDOQQO.cjs} +29 -14
- package/dist/chunk-ENMDOQQO.cjs.map +1 -0
- package/dist/{chunk-V4BZWBZT.cjs → chunk-F5IRMMZ2.cjs} +7 -7
- package/dist/{chunk-V4BZWBZT.cjs.map → chunk-F5IRMMZ2.cjs.map} +1 -1
- package/dist/{chunk-WE2SBWZ6.js → chunk-FE7S4RSK.js} +10 -10
- package/dist/chunk-FE7S4RSK.js.map +1 -0
- package/dist/{chunk-BFKPJ627.js → chunk-FHOD3FUN.js} +4 -4
- package/dist/{chunk-SNRRF64M.js → chunk-GDRLVX2A.js} +31 -10
- package/dist/chunk-GDRLVX2A.js.map +1 -0
- package/dist/{chunk-5O73AALP.cjs → chunk-GP6EEZH5.cjs} +7 -3
- package/dist/chunk-GP6EEZH5.cjs.map +1 -0
- package/dist/{chunk-SDUGYJGW.js → chunk-H3C6YECZ.js} +6 -6
- package/dist/{chunk-RJVHR45I.cjs → chunk-H46ZLPNJ.cjs} +7 -7
- package/dist/{chunk-RJVHR45I.cjs.map → chunk-H46ZLPNJ.cjs.map} +1 -1
- package/dist/{chunk-66UQTF57.cjs → chunk-HLI4SOH3.cjs} +45 -45
- package/dist/{chunk-66UQTF57.cjs.map → chunk-HLI4SOH3.cjs.map} +1 -1
- package/dist/{chunk-ZMRINZIO.cjs → chunk-HR5MWA3B.cjs} +5 -5
- package/dist/{chunk-ZMRINZIO.cjs.map → chunk-HR5MWA3B.cjs.map} +1 -1
- package/dist/{chunk-MPIVBAMY.js → chunk-HYRLK462.js} +2 -2
- package/dist/{chunk-FIVMMCGM.js → chunk-IHPSRTVW.js} +4 -4
- package/dist/{chunk-THCTUBX6.js → chunk-IKXXXVUO.js} +3 -3
- package/dist/{chunk-JPYJQ4TF.cjs → chunk-JFV56ISS.cjs} +6 -6
- package/dist/{chunk-JPYJQ4TF.cjs.map → chunk-JFV56ISS.cjs.map} +1 -1
- package/dist/{chunk-75GFIQRU.js → chunk-JY77VJAZ.js} +30 -15
- package/dist/chunk-JY77VJAZ.js.map +1 -0
- package/dist/chunk-KXDGW6LJ.cjs +46 -0
- package/dist/chunk-KXDGW6LJ.cjs.map +1 -0
- package/dist/{chunk-24HKKSKX.js → chunk-L6ERHCQ2.js} +3 -3
- package/dist/{chunk-4LNTZPSQ.js → chunk-L6YJ6QTZ.js} +2 -2
- package/dist/{chunk-KBQD4JLK.cjs → chunk-LUDK44NZ.cjs} +3 -3
- package/dist/{chunk-KBQD4JLK.cjs.map → chunk-LUDK44NZ.cjs.map} +1 -1
- package/dist/chunk-LWCFT5SP.cjs +82 -0
- package/dist/chunk-LWCFT5SP.cjs.map +1 -0
- package/dist/{chunk-JNY7TUDS.js → chunk-MCPGI6EI.js} +2 -2
- package/dist/{chunk-DU5JKTHK.cjs → chunk-MKC6V3SY.cjs} +6 -6
- package/dist/{chunk-DU5JKTHK.cjs.map → chunk-MKC6V3SY.cjs.map} +1 -1
- package/dist/{chunk-J76JHN7J.cjs → chunk-N5NXKVFJ.cjs} +10 -10
- package/dist/{chunk-J76JHN7J.cjs.map → chunk-N5NXKVFJ.cjs.map} +1 -1
- package/dist/{chunk-XERBOFYZ.cjs → chunk-NERASTO2.cjs} +3 -3
- package/dist/{chunk-XERBOFYZ.cjs.map → chunk-NERASTO2.cjs.map} +1 -1
- package/dist/{chunk-3KBBJZHK.cjs → chunk-NFD7MPX4.cjs} +16 -14
- package/dist/chunk-NFD7MPX4.cjs.map +1 -0
- package/dist/{chunk-3ZRFOKDM.cjs → chunk-NNAEQR3Y.cjs} +30 -30
- package/dist/{chunk-3ZRFOKDM.cjs.map → chunk-NNAEQR3Y.cjs.map} +1 -1
- package/dist/{chunk-36JFXFM2.cjs → chunk-OGGZIFTI.cjs} +38 -38
- package/dist/chunk-OGGZIFTI.cjs.map +1 -0
- package/dist/{chunk-2PCCGQOH.js → chunk-P6OJQ2RN.js} +6 -6
- package/dist/{chunk-3RWZC6OW.cjs → chunk-PE2SLXUS.cjs} +5 -5
- package/dist/{chunk-3RWZC6OW.cjs.map → chunk-PE2SLXUS.cjs.map} +1 -1
- package/dist/chunk-QD32IMMH.js +13 -0
- package/dist/chunk-QD32IMMH.js.map +1 -0
- package/dist/{chunk-HEXAY6DE.cjs → chunk-QUSO4GFA.cjs} +7 -7
- package/dist/{chunk-HEXAY6DE.cjs.map → chunk-QUSO4GFA.cjs.map} +1 -1
- package/dist/{chunk-OOCCSMWM.js → chunk-RHWZX7PB.js} +9 -7
- package/dist/chunk-RHWZX7PB.js.map +1 -0
- package/dist/{chunk-YXRKBKFB.js → chunk-S5CMZFX6.js} +3 -3
- package/dist/{chunk-4AO5RKV5.cjs → chunk-SLHIVEFW.cjs} +7 -7
- package/dist/{chunk-4AO5RKV5.cjs.map → chunk-SLHIVEFW.cjs.map} +1 -1
- package/dist/{chunk-HEX4IMLO.js → chunk-TJQNGJHP.js} +4 -4
- package/dist/{chunk-JCKGAAPZ.cjs → chunk-TNQ2ZZ7W.cjs} +9 -9
- package/dist/{chunk-JCKGAAPZ.cjs.map → chunk-TNQ2ZZ7W.cjs.map} +1 -1
- package/dist/chunk-U32K2H3N.js +10 -0
- package/dist/chunk-U32K2H3N.js.map +1 -0
- package/dist/{chunk-RHHZRTWM.js → chunk-U34INRFO.js} +28 -13
- package/dist/chunk-U34INRFO.js.map +1 -0
- package/dist/{chunk-SFFKQQ5Z.js → chunk-U4SVBE2M.js} +5 -5
- package/dist/{chunk-O3QM3BFE.js → chunk-UC4NYF6T.js} +2 -2
- package/dist/{chunk-6JHVXWDV.cjs → chunk-ULKWUKD2.cjs} +22 -22
- package/dist/{chunk-6JHVXWDV.cjs.map → chunk-ULKWUKD2.cjs.map} +1 -1
- package/dist/{chunk-BEOECPVJ.cjs → chunk-UTYY35QX.cjs} +3 -3
- package/dist/{chunk-BEOECPVJ.cjs.map → chunk-UTYY35QX.cjs.map} +1 -1
- package/dist/{chunk-7BFODYNL.cjs → chunk-UUT2VEN5.cjs} +7 -7
- package/dist/{chunk-7BFODYNL.cjs.map → chunk-UUT2VEN5.cjs.map} +1 -1
- package/dist/chunk-V3T7RO4F.js +21 -0
- package/dist/chunk-V3T7RO4F.js.map +1 -0
- package/dist/{chunk-GIEDIAPD.js → chunk-V5CM5TH3.js} +3 -3
- package/dist/{chunk-L65MHFMD.js → chunk-V64DICJK.js} +3 -3
- package/dist/{chunk-KIZVY57H.cjs → chunk-VXC7Z7XB.cjs} +5 -5
- package/dist/{chunk-KIZVY57H.cjs.map → chunk-VXC7Z7XB.cjs.map} +1 -1
- package/dist/chunk-VYF7WV4K.cjs +47 -0
- package/dist/chunk-VYF7WV4K.cjs.map +1 -0
- package/dist/{chunk-P4XZH3OR.js → chunk-WHQGJHMD.js} +4 -4
- package/dist/{chunk-TTLFY76J.cjs → chunk-WR77IZUU.cjs} +32 -9
- package/dist/chunk-WR77IZUU.cjs.map +1 -0
- package/dist/{chunk-O2BECFXJ.cjs → chunk-WTFEMOV5.cjs} +43 -22
- package/dist/chunk-WTFEMOV5.cjs.map +1 -0
- package/dist/{chunk-YAKTVIVK.js → chunk-XIUZT4TO.js} +3 -3
- package/dist/chunk-XPG56DLQ.cjs +103 -0
- package/dist/chunk-XPG56DLQ.cjs.map +1 -0
- package/dist/{chunk-GPVGGBIR.js → chunk-XWMXEJVZ.js} +2 -2
- package/dist/chunk-XZILHRKG.cjs +13 -0
- package/dist/chunk-XZILHRKG.cjs.map +1 -0
- package/dist/{chunk-VQGLVBPL.cjs → chunk-YIOHKQ6Y.cjs} +11 -4
- package/dist/chunk-YIOHKQ6Y.cjs.map +1 -0
- package/dist/{chunk-A3LMUPG3.js → chunk-Z3IJWYUD.js} +2 -2
- package/dist/{chunk-4J25XZDI.js → chunk-ZJWQPZ7E.js} +9 -2
- package/dist/chunk-ZJWQPZ7E.js.map +1 -0
- package/dist/color-picker/index.cjs +5 -4
- package/dist/color-picker/index.cjs.map +1 -1
- package/dist/color-picker/index.js +4 -3
- package/dist/combobox/index.cjs +7 -6
- package/dist/combobox/index.cjs.map +1 -1
- package/dist/combobox/index.js +6 -5
- package/dist/command-palette/index.cjs +4 -3
- package/dist/command-palette/index.cjs.map +1 -1
- package/dist/command-palette/index.js +3 -2
- package/dist/context-menu/index.cjs +7 -6
- package/dist/context-menu/index.cjs.map +1 -1
- package/dist/context-menu/index.d.cts +2 -2
- package/dist/context-menu/index.d.ts +2 -2
- package/dist/context-menu/index.js +6 -5
- package/dist/conversation/index.cjs +11 -8
- package/dist/conversation/index.cjs.map +1 -1
- package/dist/conversation/index.d.cts +3 -3
- package/dist/conversation/index.d.ts +3 -3
- package/dist/conversation/index.js +10 -7
- package/dist/data-grid/index.cjs +18 -15
- package/dist/data-grid/index.cjs.map +1 -1
- package/dist/data-grid/index.d.cts +8 -8
- package/dist/data-grid/index.d.ts +8 -8
- package/dist/data-grid/index.js +17 -14
- package/dist/date-picker/index.cjs +11 -8
- package/dist/date-picker/index.cjs.map +1 -1
- package/dist/date-picker/index.d.cts +2 -2
- package/dist/date-picker/index.d.ts +2 -2
- package/dist/date-picker/index.js +10 -7
- package/dist/drawer/index.cjs +8 -5
- package/dist/drawer/index.cjs.map +1 -1
- package/dist/drawer/index.d.cts +5 -4
- package/dist/drawer/index.d.ts +5 -4
- package/dist/drawer/index.js +7 -4
- package/dist/dropdown/index.cjs +4 -3
- package/dist/dropdown/index.cjs.map +1 -1
- package/dist/dropdown/index.js +3 -2
- package/dist/header/index.cjs +9 -6
- package/dist/header/index.cjs.map +1 -1
- package/dist/header/index.d.cts +10 -10
- package/dist/header/index.d.ts +10 -10
- package/dist/header/index.js +8 -5
- package/dist/index.cjs +59 -42
- package/dist/index.cjs.map +1 -1
- package/dist/index.css +107 -34
- package/dist/index.d.cts +16 -13
- package/dist/index.d.ts +16 -13
- package/dist/index.js +65 -48
- package/dist/inline-edit/index.cjs +6 -5
- package/dist/inline-edit/index.cjs.map +1 -1
- package/dist/inline-edit/index.js +5 -4
- package/dist/input/index.cjs +5 -4
- package/dist/input/index.cjs.map +1 -1
- package/dist/input/index.d.cts +3 -3
- package/dist/input/index.d.ts +3 -3
- package/dist/input/index.js +4 -3
- package/dist/link-provider/index.cjs +12 -0
- package/dist/link-provider/index.cjs.map +1 -0
- package/dist/link-provider/index.d.cts +43 -0
- package/dist/link-provider/index.d.ts +43 -0
- package/dist/link-provider/index.js +12 -0
- package/dist/link-provider/index.js.map +1 -0
- package/dist/lucide-icons/index.cjs +9 -0
- package/dist/lucide-icons/index.cjs.map +1 -0
- package/dist/lucide-icons/index.d.cts +2 -0
- package/dist/lucide-icons/index.d.ts +2 -0
- package/dist/lucide-icons/index.js +9 -0
- package/dist/lucide-icons/index.js.map +1 -0
- package/dist/menu/index.cjs +6 -5
- package/dist/menu/index.cjs.map +1 -1
- package/dist/menu/index.d.cts +3 -3
- package/dist/menu/index.d.ts +3 -3
- package/dist/menu/index.js +5 -4
- package/dist/modal/index.cjs +8 -5
- package/dist/modal/index.cjs.map +1 -1
- package/dist/modal/index.d.cts +2 -2
- package/dist/modal/index.d.ts +2 -2
- package/dist/modal/index.js +7 -4
- package/dist/navigation/index.cjs +8 -5
- package/dist/navigation/index.cjs.map +1 -1
- package/dist/navigation/index.d.cts +3 -3
- package/dist/navigation/index.d.ts +3 -3
- package/dist/navigation/index.js +7 -4
- package/dist/number-input/index.cjs +4 -3
- package/dist/number-input/index.cjs.map +1 -1
- package/dist/number-input/index.js +3 -2
- package/dist/page-layout/index.cjs +16 -13
- package/dist/page-layout/index.cjs.map +1 -1
- package/dist/page-layout/index.d.cts +8 -8
- package/dist/page-layout/index.d.ts +8 -8
- package/dist/page-layout/index.js +15 -12
- package/dist/pagination/index.cjs +11 -8
- package/dist/pagination/index.cjs.map +1 -1
- package/dist/pagination/index.js +10 -7
- package/dist/popover/index.cjs +4 -3
- package/dist/popover/index.cjs.map +1 -1
- package/dist/popover/index.d.cts +1 -1
- package/dist/popover/index.d.ts +1 -1
- package/dist/popover/index.js +3 -2
- package/dist/renderIcon-BW3PUtg8.d.cts +50 -0
- package/dist/renderIcon-BW3PUtg8.d.ts +50 -0
- package/dist/segmented-control/index.cjs +5 -4
- package/dist/segmented-control/index.cjs.map +1 -1
- package/dist/segmented-control/index.d.cts +3 -3
- package/dist/segmented-control/index.d.ts +3 -3
- package/dist/segmented-control/index.js +4 -3
- package/dist/select/index.cjs +7 -6
- package/dist/select/index.cjs.map +1 -1
- package/dist/select/index.d.cts +4 -4
- package/dist/select/index.d.ts +4 -4
- package/dist/select/index.js +6 -5
- package/dist/snackbar/index.cjs +8 -5
- package/dist/snackbar/index.cjs.map +1 -1
- package/dist/snackbar/index.js +7 -4
- package/dist/split-button/index.cjs +7 -6
- package/dist/split-button/index.cjs.map +1 -1
- package/dist/split-button/index.d.cts +2 -2
- package/dist/split-button/index.d.ts +2 -2
- package/dist/split-button/index.js +6 -5
- package/dist/split-chip/index.cjs +14 -0
- package/dist/split-chip/index.cjs.map +1 -0
- package/dist/split-chip/index.d.cts +67 -0
- package/dist/split-chip/index.d.ts +67 -0
- package/dist/split-chip/index.js +14 -0
- package/dist/split-chip/index.js.map +1 -0
- package/dist/table/index.cjs +16 -13
- package/dist/table/index.cjs.map +1 -1
- package/dist/table/index.d.cts +4 -4
- package/dist/table/index.d.ts +4 -4
- package/dist/table/index.js +15 -12
- package/dist/tabs/index.cjs +4 -3
- package/dist/tabs/index.cjs.map +1 -1
- package/dist/tabs/index.d.cts +1 -1
- package/dist/tabs/index.d.ts +1 -1
- package/dist/tabs/index.js +3 -2
- package/dist/tag-input/index.cjs +9 -6
- package/dist/tag-input/index.cjs.map +1 -1
- package/dist/tag-input/index.js +8 -5
- package/dist/textarea/index.cjs +5 -4
- package/dist/textarea/index.cjs.map +1 -1
- package/dist/textarea/index.d.cts +1 -1
- package/dist/textarea/index.d.ts +1 -1
- package/dist/textarea/index.js +4 -3
- package/dist/theme-editor/index.cjs +14 -11
- package/dist/theme-editor/index.cjs.map +1 -1
- package/dist/theme-editor/index.js +13 -10
- package/dist/theme-provider/index.cjs +4 -3
- package/dist/theme-provider/index.cjs.map +1 -1
- package/dist/theme-provider/index.js +3 -2
- package/dist/timeline/index.cjs +2 -2
- package/dist/timeline/index.d.cts +18 -3
- package/dist/timeline/index.d.ts +18 -3
- package/dist/timeline/index.js +1 -1
- package/dist/toolbar/index.cjs +12 -9
- package/dist/toolbar/index.cjs.map +1 -1
- package/dist/toolbar/index.d.cts +7 -7
- package/dist/toolbar/index.d.ts +7 -7
- package/dist/toolbar/index.js +11 -8
- package/dist/tooltip/index.cjs +4 -3
- package/dist/tooltip/index.cjs.map +1 -1
- package/dist/tooltip/index.js +3 -2
- package/package.json +4 -2
- package/dist/Button.types-BH0CPyPx.d.ts +0 -33
- package/dist/Button.types-DZRCVqyN.d.cts +0 -33
- package/dist/chunk-35LGEPLP.cjs.map +0 -1
- package/dist/chunk-36JFXFM2.cjs.map +0 -1
- package/dist/chunk-3KBBJZHK.cjs.map +0 -1
- package/dist/chunk-4J25XZDI.js.map +0 -1
- package/dist/chunk-5O73AALP.cjs.map +0 -1
- package/dist/chunk-75GFIQRU.js.map +0 -1
- package/dist/chunk-DA375AI6.cjs +0 -88
- package/dist/chunk-DA375AI6.cjs.map +0 -1
- package/dist/chunk-DRXPTACG.js.map +0 -1
- package/dist/chunk-GWHZFX2H.js.map +0 -1
- package/dist/chunk-NEQXEVHM.js +0 -34
- package/dist/chunk-NEQXEVHM.js.map +0 -1
- package/dist/chunk-O2BECFXJ.cjs.map +0 -1
- package/dist/chunk-OOCCSMWM.js.map +0 -1
- package/dist/chunk-RHHZRTWM.js.map +0 -1
- package/dist/chunk-SNRRF64M.js.map +0 -1
- package/dist/chunk-TTLFY76J.cjs.map +0 -1
- package/dist/chunk-VQGLVBPL.cjs.map +0 -1
- package/dist/chunk-WE2SBWZ6.js.map +0 -1
- package/dist/chunk-ZMDZGL5A.cjs +0 -34
- package/dist/chunk-ZMDZGL5A.cjs.map +0 -1
- package/dist/renderIcon-C2lEMMzb.d.cts +0 -30
- package/dist/renderIcon-C2lEMMzb.d.ts +0 -30
- /package/dist/{chunk-RHFD2Z5V.js.map → chunk-3TF2GZSG.js.map} +0 -0
- /package/dist/{chunk-JHX6JK3M.js.map → chunk-3X6QVHTD.js.map} +0 -0
- /package/dist/{chunk-MQAOXZD4.js.map → chunk-4S57PE43.js.map} +0 -0
- /package/dist/{chunk-JT4KVXJK.js.map → chunk-4V2XYUQL.js.map} +0 -0
- /package/dist/{chunk-AR2ZOO6L.js.map → chunk-6FXFKMJ5.js.map} +0 -0
- /package/dist/{chunk-LGDODZHI.js.map → chunk-6LTZV6HN.js.map} +0 -0
- /package/dist/{chunk-YP4HUBKN.js.map → chunk-6NAOAKII.js.map} +0 -0
- /package/dist/{chunk-D7SQ7LHJ.js.map → chunk-BO3KK3ZQ.js.map} +0 -0
- /package/dist/{chunk-5XH2PHT2.js.map → chunk-CNTG7OOO.js.map} +0 -0
- /package/dist/{chunk-WNDDS367.js.map → chunk-DPTTDHZ5.js.map} +0 -0
- /package/dist/{chunk-BFKPJ627.js.map → chunk-FHOD3FUN.js.map} +0 -0
- /package/dist/{chunk-SDUGYJGW.js.map → chunk-H3C6YECZ.js.map} +0 -0
- /package/dist/{chunk-MPIVBAMY.js.map → chunk-HYRLK462.js.map} +0 -0
- /package/dist/{chunk-FIVMMCGM.js.map → chunk-IHPSRTVW.js.map} +0 -0
- /package/dist/{chunk-THCTUBX6.js.map → chunk-IKXXXVUO.js.map} +0 -0
- /package/dist/{chunk-24HKKSKX.js.map → chunk-L6ERHCQ2.js.map} +0 -0
- /package/dist/{chunk-4LNTZPSQ.js.map → chunk-L6YJ6QTZ.js.map} +0 -0
- /package/dist/{chunk-JNY7TUDS.js.map → chunk-MCPGI6EI.js.map} +0 -0
- /package/dist/{chunk-2PCCGQOH.js.map → chunk-P6OJQ2RN.js.map} +0 -0
- /package/dist/{chunk-YXRKBKFB.js.map → chunk-S5CMZFX6.js.map} +0 -0
- /package/dist/{chunk-HEX4IMLO.js.map → chunk-TJQNGJHP.js.map} +0 -0
- /package/dist/{chunk-SFFKQQ5Z.js.map → chunk-U4SVBE2M.js.map} +0 -0
- /package/dist/{chunk-O3QM3BFE.js.map → chunk-UC4NYF6T.js.map} +0 -0
- /package/dist/{chunk-GIEDIAPD.js.map → chunk-V5CM5TH3.js.map} +0 -0
- /package/dist/{chunk-L65MHFMD.js.map → chunk-V64DICJK.js.map} +0 -0
- /package/dist/{chunk-P4XZH3OR.js.map → chunk-WHQGJHMD.js.map} +0 -0
- /package/dist/{chunk-YAKTVIVK.js.map → chunk-XIUZT4TO.js.map} +0 -0
- /package/dist/{chunk-GPVGGBIR.js.map → chunk-XWMXEJVZ.js.map} +0 -0
- /package/dist/{chunk-A3LMUPG3.js.map → chunk-Z3IJWYUD.js.map} +0 -0
package/dist/avatar/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React__default from 'react';
|
|
2
|
-
import { b as AvatarProps, a as AvatarGroupProps } from '../Avatar.types-
|
|
3
|
-
export { A as AvatarColor, c as AvatarSize } from '../Avatar.types-
|
|
2
|
+
import { b as AvatarProps, a as AvatarGroupProps } from '../Avatar.types-DkRznn-7.js';
|
|
3
|
+
export { A as AvatarColor, c as AvatarSize } from '../Avatar.types-DkRznn-7.js';
|
|
4
4
|
|
|
5
5
|
declare const Avatar: React__default.FC<AvatarProps>;
|
|
6
6
|
declare const AvatarGroup: React__default.FC<AvatarGroupProps>;
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkGP6EEZH5cjs = require('../chunk-GP6EEZH5.cjs');
|
|
4
|
+
require('../chunk-KXDGW6LJ.cjs');
|
|
5
|
+
require('../chunk-75Q5OS7L.cjs');
|
|
4
6
|
require('../chunk-DZUJEN5N.cjs');
|
|
5
7
|
|
|
6
8
|
|
|
7
|
-
exports.Breadcrumb =
|
|
9
|
+
exports.Breadcrumb = _chunkGP6EEZH5cjs.Breadcrumb;
|
|
8
10
|
//# sourceMappingURL=index.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["/home/runner/work/eidos-ui/eidos-ui/dist/breadcrumb/index.cjs"],"names":[],"mappings":"AAAA;AACE;AACF,yDAA8B;AAC9B,iCAA8B;AAC9B;AACE;AACF,kDAAC","file":"/home/runner/work/eidos-ui/eidos-ui/dist/breadcrumb/index.cjs"}
|
|
1
|
+
{"version":3,"sources":["/home/runner/work/eidos-ui/eidos-ui/dist/breadcrumb/index.cjs"],"names":[],"mappings":"AAAA;AACE;AACF,yDAA8B;AAC9B,iCAA8B;AAC9B,iCAA8B;AAC9B,iCAA8B;AAC9B;AACE;AACF,kDAAC","file":"/home/runner/work/eidos-ui/eidos-ui/dist/breadcrumb/index.cjs"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React__default from 'react';
|
|
2
|
-
import { a as BreadcrumbProps } from '../Breadcrumb.types-
|
|
3
|
-
export { B as BreadcrumbItem } from '../Breadcrumb.types-
|
|
2
|
+
import { a as BreadcrumbProps } from '../Breadcrumb.types-C3uADbKU.cjs';
|
|
3
|
+
export { B as BreadcrumbItem } from '../Breadcrumb.types-C3uADbKU.cjs';
|
|
4
4
|
|
|
5
5
|
declare const Breadcrumb: React__default.FC<BreadcrumbProps>;
|
|
6
6
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React__default from 'react';
|
|
2
|
-
import { a as BreadcrumbProps } from '../Breadcrumb.types-
|
|
3
|
-
export { B as BreadcrumbItem } from '../Breadcrumb.types-
|
|
2
|
+
import { a as BreadcrumbProps } from '../Breadcrumb.types-C3uADbKU.js';
|
|
3
|
+
export { B as BreadcrumbItem } from '../Breadcrumb.types-C3uADbKU.js';
|
|
4
4
|
|
|
5
5
|
declare const Breadcrumb: React__default.FC<BreadcrumbProps>;
|
|
6
6
|
|
package/dist/breadcrumb/index.js
CHANGED
package/dist/button/index.cjs
CHANGED
|
@@ -2,13 +2,16 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var _chunkXPG56DLQcjs = require('../chunk-XPG56DLQ.cjs');
|
|
6
6
|
require('../chunk-I6UOIS4J.cjs');
|
|
7
|
-
require('../chunk-
|
|
8
|
-
require('../chunk-
|
|
7
|
+
require('../chunk-UTYY35QX.cjs');
|
|
8
|
+
require('../chunk-ENMDOQQO.cjs');
|
|
9
|
+
require('../chunk-CJT7L764.cjs');
|
|
10
|
+
require('../chunk-KXDGW6LJ.cjs');
|
|
11
|
+
require('../chunk-75Q5OS7L.cjs');
|
|
9
12
|
require('../chunk-DZUJEN5N.cjs');
|
|
10
13
|
|
|
11
14
|
|
|
12
15
|
|
|
13
|
-
exports.Button =
|
|
16
|
+
exports.Button = _chunkXPG56DLQcjs.Button; exports.IconButton = _chunkXPG56DLQcjs.IconButton;
|
|
14
17
|
//# sourceMappingURL=index.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["/home/runner/work/eidos-ui/eidos-ui/dist/button/index.cjs"],"names":[],"mappings":"AAAA,0GAA8B;AAC9B;AACE;AACA;AACF,yDAA8B;AAC9B,iCAA8B;AAC9B,iCAA8B;AAC9B,iCAA8B;AAC9B,iCAA8B;AAC9B;AACE;AACA;AACF,6FAAC","file":"/home/runner/work/eidos-ui/eidos-ui/dist/button/index.cjs"}
|
|
1
|
+
{"version":3,"sources":["/home/runner/work/eidos-ui/eidos-ui/dist/button/index.cjs"],"names":[],"mappings":"AAAA,0GAA8B;AAC9B;AACE;AACA;AACF,yDAA8B;AAC9B,iCAA8B;AAC9B,iCAA8B;AAC9B,iCAA8B;AAC9B,iCAA8B;AAC9B,iCAA8B;AAC9B,iCAA8B;AAC9B,iCAA8B;AAC9B;AACE;AACA;AACF,6FAAC","file":"/home/runner/work/eidos-ui/eidos-ui/dist/button/index.cjs"}
|
package/dist/button/index.d.cts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React__default from 'react';
|
|
2
|
-
import { a as ButtonProps, I as IconButtonProps } from '../Button.types-
|
|
3
|
-
export { B as ButtonColorProps, b as ButtonVariantProps, T as TextButtonProps } from '../Button.types-
|
|
4
|
-
import '../renderIcon-
|
|
2
|
+
import { a as ButtonProps, I as IconButtonProps, c as IconLinkButtonProps } from '../Button.types-DkgWjFsk.cjs';
|
|
3
|
+
export { B as ButtonColorProps, b as ButtonVariantProps, T as TextButtonProps, d as TextLinkButtonProps } from '../Button.types-DkgWjFsk.cjs';
|
|
4
|
+
import '../renderIcon-BW3PUtg8.cjs';
|
|
5
5
|
import '../sizes-DM6Rrrgq.cjs';
|
|
6
6
|
|
|
7
7
|
declare const Button: React__default.FC<ButtonProps>;
|
|
@@ -16,6 +16,6 @@ declare const Button: React__default.FC<ButtonProps>;
|
|
|
16
16
|
* <IconButton icon={Plus} tooltip="Add item" />
|
|
17
17
|
* ```
|
|
18
18
|
*/
|
|
19
|
-
declare const IconButton: React__default.FC<IconButtonProps>;
|
|
19
|
+
declare const IconButton: React__default.FC<IconButtonProps | IconLinkButtonProps>;
|
|
20
20
|
|
|
21
|
-
export { Button, ButtonProps, IconButton, IconButtonProps };
|
|
21
|
+
export { Button, ButtonProps, IconButton, IconButtonProps, IconLinkButtonProps };
|
package/dist/button/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React__default from 'react';
|
|
2
|
-
import { a as ButtonProps, I as IconButtonProps } from '../Button.types-
|
|
3
|
-
export { B as ButtonColorProps, b as ButtonVariantProps, T as TextButtonProps } from '../Button.types-
|
|
4
|
-
import '../renderIcon-
|
|
2
|
+
import { a as ButtonProps, I as IconButtonProps, c as IconLinkButtonProps } from '../Button.types-BCIK8Qlk.js';
|
|
3
|
+
export { B as ButtonColorProps, b as ButtonVariantProps, T as TextButtonProps, d as TextLinkButtonProps } from '../Button.types-BCIK8Qlk.js';
|
|
4
|
+
import '../renderIcon-BW3PUtg8.js';
|
|
5
5
|
import '../sizes-DM6Rrrgq.js';
|
|
6
6
|
|
|
7
7
|
declare const Button: React__default.FC<ButtonProps>;
|
|
@@ -16,6 +16,6 @@ declare const Button: React__default.FC<ButtonProps>;
|
|
|
16
16
|
* <IconButton icon={Plus} tooltip="Add item" />
|
|
17
17
|
* ```
|
|
18
18
|
*/
|
|
19
|
-
declare const IconButton: React__default.FC<IconButtonProps>;
|
|
19
|
+
declare const IconButton: React__default.FC<IconButtonProps | IconLinkButtonProps>;
|
|
20
20
|
|
|
21
|
-
export { Button, ButtonProps, IconButton, IconButtonProps };
|
|
21
|
+
export { Button, ButtonProps, IconButton, IconButtonProps, IconLinkButtonProps };
|
package/dist/button/index.js
CHANGED
|
@@ -2,10 +2,13 @@ import "../chunk-N5JDL4VE.js";
|
|
|
2
2
|
import {
|
|
3
3
|
Button,
|
|
4
4
|
IconButton
|
|
5
|
-
} from "../chunk-
|
|
5
|
+
} from "../chunk-JY77VJAZ.js";
|
|
6
6
|
import "../chunk-66R54X6R.js";
|
|
7
|
-
import "../chunk-
|
|
8
|
-
import "../chunk-
|
|
7
|
+
import "../chunk-MCPGI6EI.js";
|
|
8
|
+
import "../chunk-U34INRFO.js";
|
|
9
|
+
import "../chunk-V3T7RO4F.js";
|
|
10
|
+
import "../chunk-BDH2MXJW.js";
|
|
11
|
+
import "../chunk-U32K2H3N.js";
|
|
9
12
|
import "../chunk-5WRI5ZAA.js";
|
|
10
13
|
export {
|
|
11
14
|
Button,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React__default from 'react';
|
|
2
|
-
import { b as ButtonVariantProps, B as ButtonColorProps } from '../Button.types-
|
|
2
|
+
import { b as ButtonVariantProps, B as ButtonColorProps } from '../Button.types-DkgWjFsk.cjs';
|
|
3
3
|
import { C as ComponentSizeProps } from '../sizes-DM6Rrrgq.cjs';
|
|
4
|
-
import '../renderIcon-
|
|
4
|
+
import '../renderIcon-BW3PUtg8.cjs';
|
|
5
5
|
|
|
6
6
|
interface ButtonGroupProps {
|
|
7
7
|
/** Buttons (or other elements) to group. */
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React__default from 'react';
|
|
2
|
-
import { b as ButtonVariantProps, B as ButtonColorProps } from '../Button.types-
|
|
2
|
+
import { b as ButtonVariantProps, B as ButtonColorProps } from '../Button.types-BCIK8Qlk.js';
|
|
3
3
|
import { C as ComponentSizeProps } from '../sizes-DM6Rrrgq.js';
|
|
4
|
-
import '../renderIcon-
|
|
4
|
+
import '../renderIcon-BW3PUtg8.js';
|
|
5
5
|
|
|
6
6
|
interface ButtonGroupProps {
|
|
7
7
|
/** Buttons (or other elements) to group. */
|
package/dist/chip/index.cjs
CHANGED
|
@@ -1,11 +1,14 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});require('../chunk-FQZ6F7FQ.cjs');
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
5
|
-
require('../chunk-
|
|
6
|
-
require('../chunk-
|
|
4
|
+
var _chunkWR77IZUUcjs = require('../chunk-WR77IZUU.cjs');
|
|
5
|
+
require('../chunk-UTYY35QX.cjs');
|
|
6
|
+
require('../chunk-ENMDOQQO.cjs');
|
|
7
|
+
require('../chunk-CJT7L764.cjs');
|
|
8
|
+
require('../chunk-KXDGW6LJ.cjs');
|
|
9
|
+
require('../chunk-75Q5OS7L.cjs');
|
|
7
10
|
require('../chunk-DZUJEN5N.cjs');
|
|
8
11
|
|
|
9
12
|
|
|
10
|
-
exports.Chip =
|
|
13
|
+
exports.Chip = _chunkWR77IZUUcjs.Chip;
|
|
11
14
|
//# sourceMappingURL=index.cjs.map
|
package/dist/chip/index.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["/home/runner/work/eidos-ui/eidos-ui/dist/chip/index.cjs"],"names":[],"mappings":"AAAA,0GAA8B;AAC9B;AACE;AACF,yDAA8B;AAC9B,iCAA8B;AAC9B,iCAA8B;AAC9B,iCAA8B;AAC9B;AACE;AACF,sCAAC","file":"/home/runner/work/eidos-ui/eidos-ui/dist/chip/index.cjs"}
|
|
1
|
+
{"version":3,"sources":["/home/runner/work/eidos-ui/eidos-ui/dist/chip/index.cjs"],"names":[],"mappings":"AAAA,0GAA8B;AAC9B;AACE;AACF,yDAA8B;AAC9B,iCAA8B;AAC9B,iCAA8B;AAC9B,iCAA8B;AAC9B,iCAA8B;AAC9B,iCAA8B;AAC9B,iCAA8B;AAC9B;AACE;AACF,sCAAC","file":"/home/runner/work/eidos-ui/eidos-ui/dist/chip/index.cjs"}
|
package/dist/chip/index.d.cts
CHANGED
|
@@ -1,27 +1,9 @@
|
|
|
1
1
|
import React__default from 'react';
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
type ChipColorProps = 'primary' | 'secondary' | 'success' | 'danger' | 'warning' | 'info';
|
|
7
|
-
interface BaseChipProps extends Omit<React.HTMLAttributes<HTMLElement>, 'onClick'> {
|
|
8
|
-
variant?: ChipVariantProps;
|
|
9
|
-
color?: ChipColorProps;
|
|
10
|
-
size?: ComponentSizeProps;
|
|
11
|
-
fullWidth?: boolean;
|
|
12
|
-
disabled?: boolean;
|
|
13
|
-
tooltip?: string;
|
|
14
|
-
className?: string;
|
|
15
|
-
onClick?: () => void;
|
|
16
|
-
onRemove?: () => void;
|
|
17
|
-
}
|
|
18
|
-
interface TextChipProps extends BaseChipProps {
|
|
19
|
-
children: React.ReactNode;
|
|
20
|
-
preIcon?: IconType;
|
|
21
|
-
posIcon?: IconType;
|
|
22
|
-
}
|
|
23
|
-
type ChipProps = TextChipProps;
|
|
2
|
+
import { a as ChipProps } from '../Chip.types-_1bhyKz4.cjs';
|
|
3
|
+
export { C as ChipColorProps, b as ChipVariantProps, T as TextChipProps } from '../Chip.types-_1bhyKz4.cjs';
|
|
4
|
+
import '../renderIcon-BW3PUtg8.cjs';
|
|
5
|
+
import '../sizes-DM6Rrrgq.cjs';
|
|
24
6
|
|
|
25
7
|
declare const Chip: React__default.FC<ChipProps>;
|
|
26
8
|
|
|
27
|
-
export { Chip,
|
|
9
|
+
export { Chip, ChipProps };
|
package/dist/chip/index.d.ts
CHANGED
|
@@ -1,27 +1,9 @@
|
|
|
1
1
|
import React__default from 'react';
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
type ChipColorProps = 'primary' | 'secondary' | 'success' | 'danger' | 'warning' | 'info';
|
|
7
|
-
interface BaseChipProps extends Omit<React.HTMLAttributes<HTMLElement>, 'onClick'> {
|
|
8
|
-
variant?: ChipVariantProps;
|
|
9
|
-
color?: ChipColorProps;
|
|
10
|
-
size?: ComponentSizeProps;
|
|
11
|
-
fullWidth?: boolean;
|
|
12
|
-
disabled?: boolean;
|
|
13
|
-
tooltip?: string;
|
|
14
|
-
className?: string;
|
|
15
|
-
onClick?: () => void;
|
|
16
|
-
onRemove?: () => void;
|
|
17
|
-
}
|
|
18
|
-
interface TextChipProps extends BaseChipProps {
|
|
19
|
-
children: React.ReactNode;
|
|
20
|
-
preIcon?: IconType;
|
|
21
|
-
posIcon?: IconType;
|
|
22
|
-
}
|
|
23
|
-
type ChipProps = TextChipProps;
|
|
2
|
+
import { a as ChipProps } from '../Chip.types-BM-UZOCv.js';
|
|
3
|
+
export { C as ChipColorProps, b as ChipVariantProps, T as TextChipProps } from '../Chip.types-BM-UZOCv.js';
|
|
4
|
+
import '../renderIcon-BW3PUtg8.js';
|
|
5
|
+
import '../sizes-DM6Rrrgq.js';
|
|
24
6
|
|
|
25
7
|
declare const Chip: React__default.FC<ChipProps>;
|
|
26
8
|
|
|
27
|
-
export { Chip,
|
|
9
|
+
export { Chip, ChipProps };
|
package/dist/chip/index.js
CHANGED
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
import "../chunk-TPNCV7KA.js";
|
|
2
2
|
import {
|
|
3
3
|
Chip
|
|
4
|
-
} from "../chunk-
|
|
5
|
-
import "../chunk-
|
|
6
|
-
import "../chunk-
|
|
4
|
+
} from "../chunk-2TIMJD4K.js";
|
|
5
|
+
import "../chunk-MCPGI6EI.js";
|
|
6
|
+
import "../chunk-U34INRFO.js";
|
|
7
|
+
import "../chunk-V3T7RO4F.js";
|
|
8
|
+
import "../chunk-BDH2MXJW.js";
|
|
9
|
+
import "../chunk-U32K2H3N.js";
|
|
7
10
|
import "../chunk-5WRI5ZAA.js";
|
|
8
11
|
export {
|
|
9
12
|
Chip
|
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
import {
|
|
2
|
+
EidosLink
|
|
3
|
+
} from "./chunk-BDH2MXJW.js";
|
|
4
|
+
|
|
1
5
|
// src/components/Breadcrumb/Breadcrumb.component.tsx
|
|
2
6
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
7
|
var Breadcrumb = ({
|
|
@@ -19,7 +23,7 @@ var Breadcrumb = ({
|
|
|
19
23
|
isLast ? /* @__PURE__ */ jsxs("span", { "aria-current": "page", className: "eidos-breadcrumb-current", children: [
|
|
20
24
|
item.icon && /* @__PURE__ */ jsx("span", { className: "eidos-breadcrumb-icon", children: item.icon }),
|
|
21
25
|
item.label
|
|
22
|
-
] }) : item.href ? /* @__PURE__ */ jsxs(
|
|
26
|
+
] }) : item.href ? /* @__PURE__ */ jsxs(EidosLink, { href: item.href, onClick: item.onClick, className: "eidos-breadcrumb-link", children: [
|
|
23
27
|
item.icon && /* @__PURE__ */ jsx("span", { className: "eidos-breadcrumb-icon", children: item.icon }),
|
|
24
28
|
item.label
|
|
25
29
|
] }) : /* @__PURE__ */ jsxs(
|
|
@@ -47,4 +51,4 @@ Breadcrumb.displayName = "Breadcrumb";
|
|
|
47
51
|
export {
|
|
48
52
|
Breadcrumb
|
|
49
53
|
};
|
|
50
|
-
//# sourceMappingURL=chunk-
|
|
54
|
+
//# sourceMappingURL=chunk-26PRBZA6.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/components/Breadcrumb/Breadcrumb.component.tsx"],"sourcesContent":["import React from 'react';\nimport type { BreadcrumbProps } from './Breadcrumb.types';\nimport { EidosLink } from '../LinkProvider/Link.component';\n\nexport const Breadcrumb: React.FC<BreadcrumbProps> = ({\n items,\n separator = '/',\n className = '',\n}) => (\n <nav\n aria-label=\"Breadcrumb\"\n className={['eidos-breadcrumb-nav', className].filter(Boolean).join(' ')}\n >\n <ol className=\"eidos-breadcrumb\">\n {items.map((item, index) => {\n const isLast = index === items.length - 1;\n\n return (\n <li\n key={index}\n className={['eidos-breadcrumb-item', isLast && 'eidos-breadcrumb-item--current']\n .filter(Boolean)\n .join(' ')}\n >\n {isLast ? (\n <span aria-current=\"page\" className=\"eidos-breadcrumb-current\">\n {item.icon && <span className=\"eidos-breadcrumb-icon\">{item.icon}</span>}\n {item.label}\n </span>\n ) : item.href ? (\n <EidosLink href={item.href} onClick={item.onClick} className=\"eidos-breadcrumb-link\">\n {item.icon && <span className=\"eidos-breadcrumb-icon\">{item.icon}</span>}\n {item.label}\n </EidosLink>\n ) : (\n <button\n type=\"button\"\n onClick={item.onClick}\n className=\"eidos-breadcrumb-link eidos-breadcrumb-link--button\"\n >\n {item.icon && <span className=\"eidos-breadcrumb-icon\">{item.icon}</span>}\n {item.label}\n </button>\n )}\n\n {!isLast && (\n <span aria-hidden=\"true\" className=\"eidos-breadcrumb-separator\">\n {separator}\n </span>\n )}\n </li>\n );\n })}\n </ol>\n </nav>\n);\n\nBreadcrumb.displayName = 'Breadcrumb';\n"],"mappings":";;;;;AAyBc,SACgB,KADhB;AArBP,IAAM,aAAwC,CAAC;AAAA,EACpD;AAAA,EACA,YAAY;AAAA,EACZ,YAAY;AACd,MACE;AAAA,EAAC;AAAA;AAAA,IACC,cAAW;AAAA,IACX,WAAW,CAAC,wBAAwB,SAAS,EAAE,OAAO,OAAO,EAAE,KAAK,GAAG;AAAA,IAEvE,8BAAC,QAAG,WAAU,oBACX,gBAAM,IAAI,CAAC,MAAM,UAAU;AAC1B,YAAM,SAAS,UAAU,MAAM,SAAS;AAExC,aACE;AAAA,QAAC;AAAA;AAAA,UAEC,WAAW,CAAC,yBAAyB,UAAU,gCAAgC,EAC5E,OAAO,OAAO,EACd,KAAK,GAAG;AAAA,UAEV;AAAA,qBACC,qBAAC,UAAK,gBAAa,QAAO,WAAU,4BACjC;AAAA,mBAAK,QAAQ,oBAAC,UAAK,WAAU,yBAAyB,eAAK,MAAK;AAAA,cAChE,KAAK;AAAA,eACR,IACE,KAAK,OACP,qBAAC,aAAU,MAAM,KAAK,MAAM,SAAS,KAAK,SAAS,WAAU,yBAC1D;AAAA,mBAAK,QAAQ,oBAAC,UAAK,WAAU,yBAAyB,eAAK,MAAK;AAAA,cAChE,KAAK;AAAA,eACR,IAEA;AAAA,cAAC;AAAA;AAAA,gBACC,MAAK;AAAA,gBACL,SAAS,KAAK;AAAA,gBACd,WAAU;AAAA,gBAET;AAAA,uBAAK,QAAQ,oBAAC,UAAK,WAAU,yBAAyB,eAAK,MAAK;AAAA,kBAChE,KAAK;AAAA;AAAA;AAAA,YACR;AAAA,YAGD,CAAC,UACA,oBAAC,UAAK,eAAY,QAAO,WAAU,8BAChC,qBACH;AAAA;AAAA;AAAA,QA7BG;AAAA,MA+BP;AAAA,IAEJ,CAAC,GACH;AAAA;AACF;AAGF,WAAW,cAAc;","names":[]}
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
import {
|
|
2
|
+
Chip
|
|
3
|
+
} from "./chunk-2TIMJD4K.js";
|
|
4
|
+
|
|
5
|
+
// src/components/SplitChip/SplitChip.utils.ts
|
|
6
|
+
var hasVisibleBorder = (segment) => segment.variant === "outlined" || segment.disabled;
|
|
7
|
+
var resolveSegmentEdges = (segments, showDividers) => {
|
|
8
|
+
const edges = segments.map(() => ({ joinedStart: false, joinedEnd: false, divided: false }));
|
|
9
|
+
for (let i = 0; i < segments.length - 1; i++) {
|
|
10
|
+
const a = hasVisibleBorder(segments[i]);
|
|
11
|
+
const b = hasVisibleBorder(segments[i + 1]);
|
|
12
|
+
const sameOutline = segments[i].disabled === segments[i + 1].disabled;
|
|
13
|
+
if (a && b) {
|
|
14
|
+
edges[i].joinedEnd = !showDividers && sameOutline;
|
|
15
|
+
edges[i + 1].joinedStart = true;
|
|
16
|
+
} else if (a) {
|
|
17
|
+
edges[i + 1].joinedStart = true;
|
|
18
|
+
} else if (b) {
|
|
19
|
+
edges[i].joinedEnd = true;
|
|
20
|
+
} else {
|
|
21
|
+
edges[i].joinedEnd = true;
|
|
22
|
+
edges[i + 1].joinedStart = !showDividers;
|
|
23
|
+
edges[i + 1].divided = showDividers;
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
return edges;
|
|
27
|
+
};
|
|
28
|
+
|
|
29
|
+
// src/components/SplitChip/SplitChip.component.tsx
|
|
30
|
+
import { jsx } from "react/jsx-runtime";
|
|
31
|
+
var SplitChip = ({
|
|
32
|
+
segments,
|
|
33
|
+
variant = "filled",
|
|
34
|
+
color = "primary",
|
|
35
|
+
size = "md",
|
|
36
|
+
disabled = false,
|
|
37
|
+
showDividers = false,
|
|
38
|
+
className = "",
|
|
39
|
+
...rest
|
|
40
|
+
}) => {
|
|
41
|
+
const classes = [
|
|
42
|
+
"eidos-split-chip",
|
|
43
|
+
`eidos-split-chip--${size}`,
|
|
44
|
+
showDividers && "eidos-split-chip--dividers",
|
|
45
|
+
disabled && "eidos-split-chip--disabled",
|
|
46
|
+
className
|
|
47
|
+
].filter(Boolean).join(" ");
|
|
48
|
+
const lastIndex = segments.length - 1;
|
|
49
|
+
const resolved = segments.map((segment) => ({
|
|
50
|
+
variant: segment.variant ?? variant,
|
|
51
|
+
disabled: disabled || !!segment.disabled
|
|
52
|
+
}));
|
|
53
|
+
const edges = resolveSegmentEdges(resolved, showDividers);
|
|
54
|
+
return /* @__PURE__ */ jsx("div", { className: classes, ...rest, children: segments.map((segment, index) => /* @__PURE__ */ jsx(
|
|
55
|
+
Chip,
|
|
56
|
+
{
|
|
57
|
+
variant: resolved[index].variant,
|
|
58
|
+
color: segment.color ?? color,
|
|
59
|
+
size,
|
|
60
|
+
disabled: resolved[index].disabled,
|
|
61
|
+
onClick: segment.onClick,
|
|
62
|
+
tooltip: segment.tooltip,
|
|
63
|
+
preIcon: segment.preIcon,
|
|
64
|
+
posIcon: segment.posIcon,
|
|
65
|
+
className: [
|
|
66
|
+
"eidos-split-chip__segment",
|
|
67
|
+
index === 0 && "eidos-split-chip__segment--first",
|
|
68
|
+
index === lastIndex && "eidos-split-chip__segment--last",
|
|
69
|
+
edges[index].joinedStart && "eidos-split-chip__segment--joined-start",
|
|
70
|
+
edges[index].joinedEnd && "eidos-split-chip__segment--joined-end",
|
|
71
|
+
edges[index].divided && "eidos-split-chip__segment--divided"
|
|
72
|
+
].filter(Boolean).join(" "),
|
|
73
|
+
children: segment.label
|
|
74
|
+
},
|
|
75
|
+
segment.id
|
|
76
|
+
)) });
|
|
77
|
+
};
|
|
78
|
+
|
|
79
|
+
export {
|
|
80
|
+
SplitChip
|
|
81
|
+
};
|
|
82
|
+
//# sourceMappingURL=chunk-2IXCEKLI.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/components/SplitChip/SplitChip.utils.ts","../src/components/SplitChip/SplitChip.component.tsx"],"sourcesContent":["import type { ChipVariantProps } from '../Chip/Chip.types';\n\nexport interface SeamSegment {\n variant: ChipVariantProps;\n disabled: boolean;\n}\n\nexport interface SegmentEdges {\n /** Drop the leading (left) border. */\n joinedStart: boolean;\n /** Drop the trailing (right) border. */\n joinedEnd: boolean;\n /** Draw a divider as the leading border, in the segment's own colour. */\n divided: boolean;\n}\n\n/**\n * A segment \"owns\" a visible border when it is `outlined`, or when it is\n * disabled - the disabled Chip style paints a grey border on every variant.\n * `filled` and `text` borders are transparent.\n */\nconst hasVisibleBorder = (segment: SeamSegment) =>\n segment.variant === 'outlined' || segment.disabled;\n\n/**\n * Decides, per seam, which of the two neighbouring edges survives.\n *\n * Each seam is resolved from **both** sides at once. The first version decided\n * each edge from one side only (\"drop it if the neighbour is not `text`\"),\n * which broke two ways: an `outlined` segment beside a disabled one dropped\n * its edge while the disabled segment dropped its own too, leaving the seam\n * open; and with dividers, an `outlined` segment gave up its own border to a\n * divider drawn in the *neighbour's* colour.\n *\n * The rules, for a seam between A (left) and B (right):\n *\n * - Both have visible borders: if they are the same kind (both enabled\n * `outlined`, or both disabled), seamless by default - both edges drop, so\n * the run reads as one outline. With dividers, or when the kinds differ,\n * A's own edge is the seam and B's drops.\n * - Only one has a visible border: that edge is the seam; the other drops, so\n * there is never a double line and never an open side.\n * - Neither has one: both drop; with dividers, B draws one in its own colour.\n */\nexport const resolveSegmentEdges = (\n segments: SeamSegment[],\n showDividers: boolean,\n): SegmentEdges[] => {\n const edges = segments.map(() => ({ joinedStart: false, joinedEnd: false, divided: false }));\n\n for (let i = 0; i < segments.length - 1; i++) {\n const a = hasVisibleBorder(segments[i]);\n const b = hasVisibleBorder(segments[i + 1]);\n // Two borders only merge into one outline when they are the same kind:\n // both enabled `outlined`, or both disabled. An outlined segment beside a\n // disabled one would otherwise lose the seam against a near-white surface.\n const sameOutline = segments[i].disabled === segments[i + 1].disabled;\n\n if (a && b) {\n edges[i].joinedEnd = !showDividers && sameOutline;\n edges[i + 1].joinedStart = true;\n } else if (a) {\n edges[i + 1].joinedStart = true;\n } else if (b) {\n edges[i].joinedEnd = true;\n } else {\n edges[i].joinedEnd = true;\n edges[i + 1].joinedStart = !showDividers;\n edges[i + 1].divided = showDividers;\n }\n }\n\n return edges;\n};\n","import React from 'react';\nimport { Chip } from '../Chip/Chip.component';\nimport type { SplitChipProps } from './SplitChip.types';\nimport { resolveSegmentEdges } from './SplitChip.utils';\n\n/**\n * SplitChip - one chip split into independent segments, each with its own\n * label, variant, colour and optional click handler.\n *\n * Every segment is a real `Chip`, the same way `SplitButton` is built from\n * `Button`, so variants, sizes, icons, tooltips, disabled styling and the\n * \"hover only when clickable\" rule cannot drift between the two. This\n * component only adds the join: collapsed inner borders, radii on the outer\n * ends, and optional dividers.\n *\n * @example\n * ```tsx\n * <SplitChip\n * segments={[\n * { id: 'label', label: 'Status', variant: 'outlined' },\n * { id: 'value', label: 'Open', color: 'success', onClick: openFilter },\n * ]}\n * />\n * ```\n */\nexport const SplitChip: React.FC<SplitChipProps> = ({\n segments,\n variant = 'filled',\n color = 'primary',\n size = 'md',\n disabled = false,\n showDividers = false,\n className = '',\n ...rest\n}) => {\n const classes = [\n 'eidos-split-chip',\n `eidos-split-chip--${size}`,\n showDividers && 'eidos-split-chip--dividers',\n disabled && 'eidos-split-chip--disabled',\n className,\n ]\n .filter(Boolean)\n .join(' ');\n\n const lastIndex = segments.length - 1;\n const resolved = segments.map((segment) => ({\n variant: segment.variant ?? variant,\n disabled: disabled || !!segment.disabled,\n }));\n const edges = resolveSegmentEdges(resolved, showDividers);\n\n return (\n <div className={classes} {...rest}>\n {segments.map((segment, index) => (\n <Chip\n key={segment.id}\n variant={resolved[index].variant}\n color={segment.color ?? color}\n size={size}\n disabled={resolved[index].disabled}\n onClick={segment.onClick}\n tooltip={segment.tooltip}\n preIcon={segment.preIcon}\n posIcon={segment.posIcon}\n // Position comes from the index, not `:first-child`/`:last-child`:\n // a segment with a `tooltip` is wrapped in the Tooltip's trigger\n // `div`, so the chip is no longer a direct child of this container\n // and structural pseudo-classes would round the wrong corners.\n className={[\n 'eidos-split-chip__segment',\n index === 0 && 'eidos-split-chip__segment--first',\n index === lastIndex && 'eidos-split-chip__segment--last',\n edges[index].joinedStart && 'eidos-split-chip__segment--joined-start',\n edges[index].joinedEnd && 'eidos-split-chip__segment--joined-end',\n edges[index].divided && 'eidos-split-chip__segment--divided',\n ]\n .filter(Boolean)\n .join(' ')}\n >\n {segment.label}\n </Chip>\n ))}\n </div>\n );\n};\n"],"mappings":";;;;;AAqBA,IAAM,mBAAmB,CAAC,YACxB,QAAQ,YAAY,cAAc,QAAQ;AAsBrC,IAAM,sBAAsB,CACjC,UACA,iBACmB;AACnB,QAAM,QAAQ,SAAS,IAAI,OAAO,EAAE,aAAa,OAAO,WAAW,OAAO,SAAS,MAAM,EAAE;AAE3F,WAAS,IAAI,GAAG,IAAI,SAAS,SAAS,GAAG,KAAK;AAC5C,UAAM,IAAI,iBAAiB,SAAS,CAAC,CAAC;AACtC,UAAM,IAAI,iBAAiB,SAAS,IAAI,CAAC,CAAC;AAI1C,UAAM,cAAc,SAAS,CAAC,EAAE,aAAa,SAAS,IAAI,CAAC,EAAE;AAE7D,QAAI,KAAK,GAAG;AACV,YAAM,CAAC,EAAE,YAAY,CAAC,gBAAgB;AACtC,YAAM,IAAI,CAAC,EAAE,cAAc;AAAA,IAC7B,WAAW,GAAG;AACZ,YAAM,IAAI,CAAC,EAAE,cAAc;AAAA,IAC7B,WAAW,GAAG;AACZ,YAAM,CAAC,EAAE,YAAY;AAAA,IACvB,OAAO;AACL,YAAM,CAAC,EAAE,YAAY;AACrB,YAAM,IAAI,CAAC,EAAE,cAAc,CAAC;AAC5B,YAAM,IAAI,CAAC,EAAE,UAAU;AAAA,IACzB;AAAA,EACF;AAEA,SAAO;AACT;;;AClBQ;AA9BD,IAAM,YAAsC,CAAC;AAAA,EAClD;AAAA,EACA,UAAU;AAAA,EACV,QAAQ;AAAA,EACR,OAAO;AAAA,EACP,WAAW;AAAA,EACX,eAAe;AAAA,EACf,YAAY;AAAA,EACZ,GAAG;AACL,MAAM;AACJ,QAAM,UAAU;AAAA,IACd;AAAA,IACA,qBAAqB,IAAI;AAAA,IACzB,gBAAgB;AAAA,IAChB,YAAY;AAAA,IACZ;AAAA,EACF,EACG,OAAO,OAAO,EACd,KAAK,GAAG;AAEX,QAAM,YAAY,SAAS,SAAS;AACpC,QAAM,WAAW,SAAS,IAAI,CAAC,aAAa;AAAA,IAC1C,SAAS,QAAQ,WAAW;AAAA,IAC5B,UAAU,YAAY,CAAC,CAAC,QAAQ;AAAA,EAClC,EAAE;AACF,QAAM,QAAQ,oBAAoB,UAAU,YAAY;AAExD,SACE,oBAAC,SAAI,WAAW,SAAU,GAAG,MAC1B,mBAAS,IAAI,CAAC,SAAS,UACtB;AAAA,IAAC;AAAA;AAAA,MAEC,SAAS,SAAS,KAAK,EAAE;AAAA,MACzB,OAAO,QAAQ,SAAS;AAAA,MACxB;AAAA,MACA,UAAU,SAAS,KAAK,EAAE;AAAA,MAC1B,SAAS,QAAQ;AAAA,MACjB,SAAS,QAAQ;AAAA,MACjB,SAAS,QAAQ;AAAA,MACjB,SAAS,QAAQ;AAAA,MAKjB,WAAW;AAAA,QACT;AAAA,QACA,UAAU,KAAK;AAAA,QACf,UAAU,aAAa;AAAA,QACvB,MAAM,KAAK,EAAE,eAAe;AAAA,QAC5B,MAAM,KAAK,EAAE,aAAa;AAAA,QAC1B,MAAM,KAAK,EAAE,WAAW;AAAA,MAC1B,EACG,OAAO,OAAO,EACd,KAAK,GAAG;AAAA,MAEV,kBAAQ;AAAA;AAAA,IAxBJ,QAAQ;AAAA,EAyBf,CACD,GACH;AAEJ;","names":[]}
|
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Tooltip
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-MCPGI6EI.js";
|
|
4
4
|
import {
|
|
5
5
|
renderIcon
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-U34INRFO.js";
|
|
7
|
+
import {
|
|
8
|
+
EidosLink
|
|
9
|
+
} from "./chunk-BDH2MXJW.js";
|
|
7
10
|
|
|
8
11
|
// src/components/Chip/Chip.component.tsx
|
|
9
12
|
import { X } from "lucide-react";
|
|
@@ -21,9 +24,12 @@ var Chip = ({
|
|
|
21
24
|
children,
|
|
22
25
|
onClick,
|
|
23
26
|
onRemove,
|
|
27
|
+
href,
|
|
28
|
+
target,
|
|
29
|
+
rel,
|
|
24
30
|
...chipProps
|
|
25
31
|
}) => {
|
|
26
|
-
const isClickable = !!onClick;
|
|
32
|
+
const isClickable = !!onClick || href !== void 0;
|
|
27
33
|
const isRemovable = !!onRemove;
|
|
28
34
|
const chipClasses = [
|
|
29
35
|
"eidos-chip",
|
|
@@ -46,12 +52,29 @@ var Chip = ({
|
|
|
46
52
|
onRemove();
|
|
47
53
|
};
|
|
48
54
|
const hasBothControls = isClickable && isRemovable;
|
|
49
|
-
const ChipElement = isClickable && !isRemovable ? "button" : "div";
|
|
50
55
|
const body = /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
51
56
|
preIcon && renderIcon(preIcon, "eidos-chip--pre-icon"),
|
|
52
57
|
/* @__PURE__ */ jsx("span", { className: "eidos-chip--copy", children }),
|
|
53
58
|
posIcon && renderIcon(posIcon, "eidos-chip--pos-icon")
|
|
54
59
|
] });
|
|
60
|
+
const renderLink = (linkHref, className2, attributes) => /* @__PURE__ */ jsx(
|
|
61
|
+
EidosLink,
|
|
62
|
+
{
|
|
63
|
+
...attributes,
|
|
64
|
+
href: linkHref,
|
|
65
|
+
target,
|
|
66
|
+
rel,
|
|
67
|
+
className: className2,
|
|
68
|
+
disabled,
|
|
69
|
+
onClick: onClick ? handleClick : void 0,
|
|
70
|
+
children: body
|
|
71
|
+
}
|
|
72
|
+
);
|
|
73
|
+
if (href !== void 0 && !isRemovable) {
|
|
74
|
+
const link = renderLink(href, chipClasses, chipProps);
|
|
75
|
+
return tooltip ? /* @__PURE__ */ jsx(Tooltip, { message: tooltip, children: link }) : link;
|
|
76
|
+
}
|
|
77
|
+
const ChipElement = isClickable && !isRemovable ? "button" : "div";
|
|
55
78
|
const chipContent = /* @__PURE__ */ jsxs(
|
|
56
79
|
ChipElement,
|
|
57
80
|
{
|
|
@@ -60,7 +83,7 @@ var Chip = ({
|
|
|
60
83
|
onClick: isClickable && !hasBothControls ? handleClick : void 0,
|
|
61
84
|
...chipProps,
|
|
62
85
|
children: [
|
|
63
|
-
hasBothControls ? /* @__PURE__ */ jsx(
|
|
86
|
+
hasBothControls ? href !== void 0 ? renderLink(href, "eidos-chip--action") : /* @__PURE__ */ jsx(
|
|
64
87
|
"button",
|
|
65
88
|
{
|
|
66
89
|
type: "button",
|
|
@@ -90,4 +113,4 @@ var Chip = ({
|
|
|
90
113
|
export {
|
|
91
114
|
Chip
|
|
92
115
|
};
|
|
93
|
-
//# sourceMappingURL=chunk-
|
|
116
|
+
//# sourceMappingURL=chunk-2TIMJD4K.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/components/Chip/Chip.component.tsx"],"sourcesContent":["import React from 'react';\nimport { X } from 'lucide-react';\nimport type { ChipProps } from './Chip.types';\nimport { Tooltip } from '../Tooltip/Tooltip.component';\nimport { renderIcon } from '../../utils';\nimport { EidosLink } from '../LinkProvider/Link.component';\n\nexport const Chip: React.FC<ChipProps> = ({\n variant = 'filled',\n color = 'primary',\n size = 'md',\n disabled = false,\n fullWidth = false,\n tooltip,\n className = '',\n preIcon,\n posIcon,\n children,\n onClick,\n onRemove,\n href,\n target,\n rel,\n ...chipProps\n}) => {\n const isClickable = !!onClick || href !== undefined;\n const isRemovable = !!onRemove;\n\n // Build CSS classes\n const chipClasses = [\n 'eidos-chip',\n `eidos-chip--${variant}`,\n `eidos-chip--${color}`,\n `eidos-chip--${size}`,\n disabled && 'eidos-chip--disabled',\n isClickable && 'eidos-chip--clickable',\n isRemovable && 'eidos-chip--removable',\n fullWidth && 'eidos-chip--full-width',\n className,\n ]\n .filter(Boolean)\n .join(' ');\n\n const handleClick = () => {\n if (disabled || !onClick) return;\n onClick();\n };\n\n const handleRemove = (e: React.MouseEvent) => {\n e.stopPropagation(); // Prevent chip click when removing\n if (disabled || !onRemove) return;\n onRemove();\n };\n\n // A chip that is both clickable and removable holds *two* controls, so it\n // has to render them as siblings.\n //\n // The previous shape switched the outer element to a `<div>` when\n // removable - the comment said \"to avoid nested buttons\" - and then gave\n // that div `role=\"button\"` and `tabIndex={0}`. That is the same defect\n // wearing a different hat: a button containing a button, which is invalid\n // (`nested-interactive`) and leaves a screen reader announcing a control\n // inside a control. It is the same shape already fixed on `Dropdown` and\n // `DataGrid`'s rows.\n //\n // Now the outer element is a plain container whenever there is a remove\n // button, and the chip's own action moves to an inner `<button>` wrapping\n // just the content. Each control is separately reachable and separately\n // named.\n const hasBothControls = isClickable && isRemovable;\n\n const body = (\n <>\n {preIcon && renderIcon(preIcon, 'eidos-chip--pre-icon')}\n\n <span className=\"eidos-chip--copy\">{children}</span>\n\n {posIcon && renderIcon(posIcon, 'eidos-chip--pos-icon')}\n </>\n );\n\n // A link chip follows the same two-control rule: alone, the chip *is* the\n // link; with a remove button, the link moves to the inner action slot so\n // the two stay siblings.\n const renderLink = (\n linkHref: string,\n className: string,\n attributes?: React.AnchorHTMLAttributes<HTMLAnchorElement>,\n ) => (\n <EidosLink\n {...attributes}\n href={linkHref}\n target={target}\n rel={rel}\n className={className}\n disabled={disabled}\n onClick={onClick ? handleClick : undefined}\n >\n {body}\n </EidosLink>\n );\n\n if (href !== undefined && !isRemovable) {\n const link = renderLink(href, chipClasses, chipProps);\n return tooltip ? <Tooltip message={tooltip}>{link}</Tooltip> : link;\n }\n\n const ChipElement = isClickable && !isRemovable ? 'button' : 'div';\n\n const chipContent = (\n <ChipElement\n className={chipClasses}\n disabled={ChipElement === 'button' ? disabled : undefined}\n onClick={isClickable && !hasBothControls ? handleClick : undefined}\n {...chipProps}\n >\n {hasBothControls ? (\n href !== undefined ? (\n renderLink(href, 'eidos-chip--action')\n ) : (\n <button\n type=\"button\"\n className=\"eidos-chip--action\"\n onClick={handleClick}\n disabled={disabled}\n >\n {body}\n </button>\n )\n ) : (\n body\n )}\n\n {isRemovable && (\n <button\n className=\"eidos-chip--remove-button\"\n onClick={handleRemove}\n disabled={disabled}\n aria-label=\"Remove\"\n type=\"button\"\n >\n <X className=\"eidos-chip--remove-icon\" />\n </button>\n )}\n </ChipElement>\n );\n\n return tooltip ? <Tooltip message={tooltip}>{chipContent}</Tooltip> : chipContent;\n};\n"],"mappings":";;;;;;;;;;;AACA,SAAS,SAAS;AAuEd,mBAGE,KAHF;AAjEG,IAAM,OAA4B,CAAC;AAAA,EACxC,UAAU;AAAA,EACV,QAAQ;AAAA,EACR,OAAO;AAAA,EACP,WAAW;AAAA,EACX,YAAY;AAAA,EACZ;AAAA,EACA,YAAY;AAAA,EACZ;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA,GAAG;AACL,MAAM;AACJ,QAAM,cAAc,CAAC,CAAC,WAAW,SAAS;AAC1C,QAAM,cAAc,CAAC,CAAC;AAGtB,QAAM,cAAc;AAAA,IAClB;AAAA,IACA,eAAe,OAAO;AAAA,IACtB,eAAe,KAAK;AAAA,IACpB,eAAe,IAAI;AAAA,IACnB,YAAY;AAAA,IACZ,eAAe;AAAA,IACf,eAAe;AAAA,IACf,aAAa;AAAA,IACb;AAAA,EACF,EACG,OAAO,OAAO,EACd,KAAK,GAAG;AAEX,QAAM,cAAc,MAAM;AACxB,QAAI,YAAY,CAAC,QAAS;AAC1B,YAAQ;AAAA,EACV;AAEA,QAAM,eAAe,CAAC,MAAwB;AAC5C,MAAE,gBAAgB;AAClB,QAAI,YAAY,CAAC,SAAU;AAC3B,aAAS;AAAA,EACX;AAiBA,QAAM,kBAAkB,eAAe;AAEvC,QAAM,OACJ,iCACG;AAAA,eAAW,WAAW,SAAS,sBAAsB;AAAA,IAEtD,oBAAC,UAAK,WAAU,oBAAoB,UAAS;AAAA,IAE5C,WAAW,WAAW,SAAS,sBAAsB;AAAA,KACxD;AAMF,QAAM,aAAa,CACjB,UACAA,YACA,eAEA;AAAA,IAAC;AAAA;AAAA,MACE,GAAG;AAAA,MACJ,MAAM;AAAA,MACN;AAAA,MACA;AAAA,MACA,WAAWA;AAAA,MACX;AAAA,MACA,SAAS,UAAU,cAAc;AAAA,MAEhC;AAAA;AAAA,EACH;AAGF,MAAI,SAAS,UAAa,CAAC,aAAa;AACtC,UAAM,OAAO,WAAW,MAAM,aAAa,SAAS;AACpD,WAAO,UAAU,oBAAC,WAAQ,SAAS,SAAU,gBAAK,IAAa;AAAA,EACjE;AAEA,QAAM,cAAc,eAAe,CAAC,cAAc,WAAW;AAE7D,QAAM,cACJ;AAAA,IAAC;AAAA;AAAA,MACC,WAAW;AAAA,MACX,UAAU,gBAAgB,WAAW,WAAW;AAAA,MAChD,SAAS,eAAe,CAAC,kBAAkB,cAAc;AAAA,MACxD,GAAG;AAAA,MAEH;AAAA,0BACC,SAAS,SACP,WAAW,MAAM,oBAAoB,IAErC;AAAA,UAAC;AAAA;AAAA,YACC,MAAK;AAAA,YACL,WAAU;AAAA,YACV,SAAS;AAAA,YACT;AAAA,YAEC;AAAA;AAAA,QACH,IAGF;AAAA,QAGD,eACC;AAAA,UAAC;AAAA;AAAA,YACC,WAAU;AAAA,YACV,SAAS;AAAA,YACT;AAAA,YACA,cAAW;AAAA,YACX,MAAK;AAAA,YAEL,8BAAC,KAAE,WAAU,2BAA0B;AAAA;AAAA,QACzC;AAAA;AAAA;AAAA,EAEJ;AAGF,SAAO,UAAU,oBAAC,WAAQ,SAAS,SAAU,uBAAY,IAAa;AACxE;","names":["className"]}
|
|
@@ -11,13 +11,13 @@ import {
|
|
|
11
11
|
useSensor,
|
|
12
12
|
useSensors,
|
|
13
13
|
useSortable
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-H3C6YECZ.js";
|
|
15
15
|
import {
|
|
16
16
|
SplitButton
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-FHOD3FUN.js";
|
|
18
18
|
import {
|
|
19
19
|
Pagination
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-DPTTDHZ5.js";
|
|
21
21
|
import {
|
|
22
22
|
Checkbox
|
|
23
23
|
} from "./chunk-DGXHR6FV.js";
|
|
@@ -29,13 +29,13 @@ import {
|
|
|
29
29
|
} from "./chunk-3TUCQAYL.js";
|
|
30
30
|
import {
|
|
31
31
|
Dropdown
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-3X6QVHTD.js";
|
|
33
33
|
import {
|
|
34
34
|
Button
|
|
35
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-JY77VJAZ.js";
|
|
36
36
|
import {
|
|
37
37
|
devWarn
|
|
38
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-U34INRFO.js";
|
|
39
39
|
|
|
40
40
|
// src/components/Table/Table.component.tsx
|
|
41
41
|
import { useState, useMemo, useEffect, useLayoutEffect, useRef, useCallback } from "react";
|
|
@@ -918,4 +918,4 @@ var Table = ({
|
|
|
918
918
|
export {
|
|
919
919
|
Table
|
|
920
920
|
};
|
|
921
|
-
//# sourceMappingURL=chunk-
|
|
921
|
+
//# sourceMappingURL=chunk-3TF2GZSG.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkENMDOQQOcjs = require('./chunk-ENMDOQQO.cjs');
|
|
4
4
|
|
|
5
5
|
// src/components/NumberInput/NumberInput.component.tsx
|
|
6
6
|
var _react = require('react');
|
|
@@ -100,7 +100,7 @@ var NumberInput = _react.forwardRef.call(void 0,
|
|
|
100
100
|
const rootClasses = [
|
|
101
101
|
"eidos-number-input",
|
|
102
102
|
`eidos-number-input--${size}`,
|
|
103
|
-
fullWidth &&
|
|
103
|
+
fullWidth && _chunkENMDOQQOcjs.fullWidthModifier.call(void 0, "eidos-number-input"),
|
|
104
104
|
error && "eidos-number-input--error",
|
|
105
105
|
className
|
|
106
106
|
].filter(Boolean).join(" ");
|
|
@@ -203,4 +203,4 @@ NumberInput.displayName = "NumberInput";
|
|
|
203
203
|
|
|
204
204
|
|
|
205
205
|
exports.NumberInput = NumberInput;
|
|
206
|
-
//# sourceMappingURL=chunk-
|
|
206
|
+
//# sourceMappingURL=chunk-3VXUOAIJ.cjs.map
|