@fangxinyan/lumina 0.6.2 → 0.6.4
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 +2 -1
- package/dist/{Alert-JJ7GB3UU.css → Alert-HVPI6L4V.css} +9 -2
- package/dist/Alert.cjs +3 -3
- package/dist/Alert.d.cts +3 -2
- package/dist/Alert.d.ts +3 -2
- package/dist/Alert.js +2 -2
- package/dist/{AppShell-RCALXUCZ.css → AppShell-FZCD4C56.css} +4 -4
- package/dist/AppShell.cjs +5 -5
- package/dist/AppShell.js +1 -1
- package/dist/{AutoComplete-P5KZMZO5.css → AutoComplete-4YZBMW4E.css} +2 -2
- package/dist/AutoComplete.cjs +5 -5
- package/dist/AutoComplete.js +4 -4
- package/dist/{Avatar-R5A4AFKZ.css → Avatar-TNPOHVY5.css} +1 -1
- package/dist/Avatar.cjs +2 -2
- package/dist/Avatar.js +1 -1
- package/dist/Badge.cjs +2 -2
- package/dist/Badge.d.cts +1 -0
- package/dist/Badge.d.ts +1 -0
- package/dist/Badge.js +1 -1
- package/dist/Button-TUMZUQLI.css +118 -0
- package/dist/Button.cjs +3 -3
- package/dist/Button.d.cts +6 -5
- package/dist/Button.d.ts +6 -5
- package/dist/Button.js +2 -2
- package/dist/{Calendar-LHZELUDL.css → Calendar-RUTPKREW.css} +4 -4
- package/dist/Calendar.cjs +3 -3
- package/dist/Calendar.js +2 -2
- package/dist/{Card-6RMVIHWX.css → Card-MA6SV7D5.css} +6 -6
- package/dist/Card.cjs +2 -2
- package/dist/Card.js +1 -1
- package/dist/{Cascader-C2DFSMKJ.css → Cascader-ANEQUPMI.css} +21 -8
- package/dist/Cascader.cjs +5 -5
- package/dist/Cascader.d.cts +4 -2
- package/dist/Cascader.d.ts +4 -2
- package/dist/Cascader.js +4 -4
- package/dist/{Checkbox-U5EUDSYS.css → Checkbox-EDNPZRIP.css} +3 -3
- package/dist/Checkbox.cjs +3 -3
- package/dist/Checkbox.js +2 -2
- package/dist/{Collapse-66U5YJFY.css → Collapse-UNBHEPYP.css} +2 -2
- package/dist/Collapse.cjs +3 -3
- package/dist/Collapse.js +2 -2
- package/dist/{ColorPicker-SDDQGHCM.css → ColorPicker-LPG6QPYF.css} +7 -7
- package/dist/ColorPicker.cjs +2 -2
- package/dist/ColorPicker.js +1 -1
- package/dist/{CommandPalette-T45DBMPY.css → CommandPalette-RTKWNH2D.css} +3 -3
- package/dist/CommandPalette.cjs +5 -5
- package/dist/CommandPalette.js +4 -4
- package/dist/{ContextMenu-FKW6CQW4.css → ContextMenu-WRR2SSWL.css} +3 -3
- package/dist/ContextMenu.cjs +2 -2
- package/dist/ContextMenu.js +1 -1
- package/dist/{Divider-OEE4Q2KS.css → Divider-RPQCVH3J.css} +2 -2
- package/dist/Divider.cjs +2 -2
- package/dist/Divider.js +1 -1
- package/dist/{Drawer-IPGB4CXH.css → Drawer-7N3URAJ6.css} +8 -5
- package/dist/Drawer.cjs +3 -3
- package/dist/Drawer.js +2 -2
- package/dist/{Empty-DC2LPORC.css → Empty-CZTRZMZQ.css} +1 -1
- package/dist/Empty.cjs +2 -2
- package/dist/Empty.js +1 -1
- package/dist/{Form-5GRVZNDO.css → Form-NGCQWTMZ.css} +1 -1
- package/dist/Form.cjs +4 -4
- package/dist/Form.js +1 -1
- package/dist/Icon.cjs +55 -47
- package/dist/Icon.d.cts +9 -1
- package/dist/Icon.d.ts +9 -1
- package/dist/Icon.js +1 -1
- package/dist/{Image-4MN34O6P.css → Image-SGSRTHQX.css} +81 -3
- package/dist/Image.cjs +12 -4
- package/dist/Image.d.cts +79 -6
- package/dist/Image.d.ts +79 -6
- package/dist/Image.js +2 -2
- package/dist/{Input-3G4ONWNU.css → Input-7GDPGP3E.css} +22 -12
- package/dist/Input.cjs +5 -5
- package/dist/Input.d.cts +4 -3
- package/dist/Input.d.ts +4 -3
- package/dist/Input.js +3 -3
- package/dist/InputNumber.cjs +5 -5
- package/dist/InputNumber.js +4 -4
- package/dist/{List-W5BW4D2P.css → List-LSMU5QAC.css} +3 -3
- package/dist/List.cjs +2 -2
- package/dist/List.js +1 -1
- package/dist/{Message-2MZ3LFPU.css → Message-H222YGR6.css} +1 -1
- package/dist/Message.cjs +6 -6
- package/dist/Message.js +2 -2
- package/dist/{Modal-2QNDW4SO.css → Modal-MCFDYVUQ.css} +3 -3
- package/dist/Modal.cjs +4 -4
- package/dist/Modal.d.cts +1 -0
- package/dist/Modal.d.ts +1 -0
- package/dist/Modal.js +3 -3
- package/dist/{Pagination-YIRYJUXP.css → Pagination-YSZSNFHG.css} +5 -5
- package/dist/Pagination.cjs +7 -7
- package/dist/Pagination.js +6 -6
- package/dist/{Popover-DVGQGWX6.css → Popover-Y3LDCJPW.css} +1 -1
- package/dist/Popover.cjs +2 -2
- package/dist/Popover.js +1 -1
- package/dist/{Progress-CHV7DN6Y.css → Progress-CZNXCYGW.css} +1 -1
- package/dist/Progress.cjs +2 -2
- package/dist/Progress.js +1 -1
- package/dist/{Radio-GVFDPAZM.css → Radio-IQKASYDF.css} +4 -4
- package/dist/Radio.cjs +3 -3
- package/dist/Radio.js +1 -1
- package/dist/{Select-JVBQAZBG.css → Select-YZ2NUJSX.css} +44 -19
- package/dist/Select.cjs +6 -6
- package/dist/Select.d.cts +4 -3
- package/dist/Select.d.ts +4 -3
- package/dist/Select.js +5 -5
- package/dist/Skeleton.cjs +2 -2
- package/dist/Skeleton.js +1 -1
- package/dist/{Slider-3JKA5EW6.css → Slider-UM2IZZBH.css} +7 -7
- package/dist/Slider.cjs +2 -2
- package/dist/Slider.js +1 -1
- package/dist/{Spin-3GJNMSIH.css → Spin-GONGPV4Q.css} +1 -1
- package/dist/Spin.cjs +2 -2
- package/dist/Spin.js +1 -1
- package/dist/Splitter.cjs +2 -2
- package/dist/Splitter.js +1 -1
- package/dist/{StatusBar-CDS2GPSI.css → StatusBar-FJKEEPXU.css} +3 -7
- package/dist/StatusBar.cjs +3 -3
- package/dist/StatusBar.js +1 -1
- package/dist/Surface-UDDN3DGL.css +42 -0
- package/dist/Surface.cjs +16 -0
- package/dist/Surface.d.cts +60 -0
- package/dist/Surface.d.ts +60 -0
- package/dist/Surface.js +3 -0
- package/dist/{Switch-36KJNDXM.css → Switch-COAQIOMH.css} +8 -5
- package/dist/Switch.cjs +2 -2
- package/dist/Switch.js +1 -1
- package/dist/{Table-ATJJQLKU.css → Table-IYJTPY6J.css} +16 -16
- package/dist/Table.cjs +9 -9
- package/dist/Table.js +8 -8
- package/dist/{TablePro-3XVHYLSL.css → TablePro-JRSBPXB5.css} +1 -1
- package/dist/TablePro.cjs +10 -10
- package/dist/TablePro.js +9 -9
- package/dist/{Tabs-BLSNI2T5.css → Tabs-X5U5PCPV.css} +2 -2
- package/dist/Tabs.cjs +2 -2
- package/dist/Tabs.js +1 -1
- package/dist/{Tag-LB3OOJAO.css → Tag-G2XWAL7A.css} +15 -2
- package/dist/Tag.cjs +3 -3
- package/dist/Tag.d.cts +4 -3
- package/dist/Tag.d.ts +4 -3
- package/dist/Tag.js +2 -2
- package/dist/{Textarea-YNET7IBH.css → Textarea-YHWKHIFE.css} +3 -3
- package/dist/Textarea.cjs +4 -4
- package/dist/Textarea.js +2 -2
- package/dist/Theme.cjs +14 -10
- package/dist/Theme.d.cts +34 -7
- package/dist/Theme.d.ts +34 -7
- package/dist/Theme.js +1 -1
- package/dist/ThemePanel-76LB3YA5.css +509 -0
- package/dist/ThemePanel.cjs +29 -0
- package/dist/ThemePanel.d.cts +80 -0
- package/dist/ThemePanel.d.ts +80 -0
- package/dist/ThemePanel.js +12 -0
- package/dist/{Timeline-3ZHOHPXT.css → Timeline-ZIM7QFQC.css} +1 -1
- package/dist/Timeline.cjs +3 -3
- package/dist/Timeline.js +2 -2
- package/dist/{Tooltip-DMKUPC24.css → Tooltip-WI23DSRQ.css} +1 -1
- package/dist/Tooltip.cjs +2 -2
- package/dist/Tooltip.js +1 -1
- package/dist/{Typography-NKPWTJCV.css → Typography-GQNIJ4XD.css} +5 -5
- package/dist/Typography.cjs +7 -7
- package/dist/Typography.d.cts +1 -0
- package/dist/Typography.d.ts +1 -0
- package/dist/Typography.js +2 -2
- package/dist/chunk-2NT5QKEX.js +243 -0
- package/dist/{chunk-6BWELOCT.js → chunk-2SCXQ7QS.js} +2 -2
- package/dist/{chunk-5WAXZJG5.cjs → chunk-2ZADGBUN.cjs} +6 -6
- package/dist/{chunk-7NGMQIST.js → chunk-2ZFJTMEF.js} +4 -4
- package/dist/{chunk-UMDGS4BP.js → chunk-3YP7CBJT.js} +5 -5
- package/dist/{chunk-UUHFKIWP.cjs → chunk-4UKM4KAC.cjs} +2 -2
- package/dist/{chunk-WGZ2KJTZ.js → chunk-56PHETWO.js} +3 -3
- package/dist/{chunk-MQV2XN4B.cjs → chunk-5JPAUQ5H.cjs} +7 -7
- package/dist/{chunk-OQBDU5I2.cjs → chunk-5NFSDFBB.cjs} +4 -4
- package/dist/{chunk-SKMP2A5O.cjs → chunk-66GXZQKL.cjs} +4 -4
- package/dist/{chunk-TZJH5HBT.cjs → chunk-66T76GII.cjs} +6 -6
- package/dist/chunk-6EOSMK34.cjs +194 -0
- package/dist/{chunk-WNM5RVXR.cjs → chunk-6GQPF3EI.cjs} +2 -2
- package/dist/{chunk-TJII7BQ2.cjs → chunk-6LARTGLP.cjs} +11 -1
- package/dist/chunk-6SPMHY54.js +191 -0
- package/dist/{chunk-YLIQ37KY.cjs → chunk-6XVLERA3.cjs} +2 -2
- package/dist/{chunk-WKKSAGYH.js → chunk-7D76MI37.js} +8 -8
- package/dist/chunk-7NZ2A4MA.js +495 -0
- package/dist/{chunk-KLEKKZ73.js → chunk-7ZNGHWVS.js} +1 -1
- package/dist/{chunk-4WTU5P3O.cjs → chunk-ACQSRMLF.cjs} +5 -5
- package/dist/{chunk-FFZ6OMZI.js → chunk-AJH2O4WC.js} +3 -3
- package/dist/{chunk-CXWEOAVU.js → chunk-BCFCSVGJ.js} +3 -3
- package/dist/{chunk-NTS5L4NQ.cjs → chunk-BJ6WUVEG.cjs} +4 -4
- package/dist/{chunk-S3VXH5L4.cjs → chunk-C24W6PTJ.cjs} +2 -2
- package/dist/{chunk-GMN74OEY.cjs → chunk-CBKJXKVI.cjs} +2 -2
- package/dist/{chunk-33NCTOEB.js → chunk-CEZ2DR4R.js} +3 -3
- package/dist/{chunk-JD7A6VM3.js → chunk-CNGKJYGZ.js} +6 -6
- package/dist/{chunk-TEG7NJHS.cjs → chunk-D5PCIVID.cjs} +4 -4
- package/dist/{chunk-K2KYM7LW.cjs → chunk-D64IPDUE.cjs} +4 -4
- package/dist/chunk-DYHNOYRC.cjs +271 -0
- package/dist/{chunk-CUXV6QNN.cjs → chunk-DYSGXQUK.cjs} +7 -7
- package/dist/{chunk-3YJU3D5S.cjs → chunk-F3LHLYX6.cjs} +2 -2
- package/dist/{chunk-HPFQXYKG.cjs → chunk-GBKUGKIY.cjs} +11 -11
- package/dist/{chunk-MUXP7ASL.js → chunk-GUZ2DNDC.js} +3 -3
- package/dist/{chunk-K6F25JXT.js → chunk-GZCU6HXD.js} +2 -2
- package/dist/{chunk-USQ43DJ5.js → chunk-HFUHQUPQ.js} +2 -2
- package/dist/{chunk-7JN6FJ55.js → chunk-HU7T64Y3.js} +2 -2
- package/dist/{chunk-OYMJVU66.cjs → chunk-IDJCFYPP.cjs} +16 -16
- package/dist/{chunk-KD4YYIIO.cjs → chunk-IHK2FRTS.cjs} +2 -2
- package/dist/{chunk-Q5SZIU7Z.cjs → chunk-JFQ53MO4.cjs} +1 -1
- package/dist/{chunk-7PQJCLIR.js → chunk-KMG7OMOS.js} +2 -2
- package/dist/{chunk-MT7UWY6T.cjs → chunk-L27C5O4W.cjs} +4 -4
- package/dist/chunk-LFTCK2VM.cjs +1194 -0
- package/dist/{chunk-EJBHR2P5.js → chunk-LI4XJTEA.js} +3 -3
- package/dist/{chunk-45VJGBGN.js → chunk-LQLOOUS3.js} +2 -2
- package/dist/{chunk-PL6DRFUO.cjs → chunk-MOMLQP7B.cjs} +2 -2
- package/dist/{chunk-OF7JIYBY.cjs → chunk-MYHBC3HA.cjs} +2 -2
- package/dist/{chunk-LKK2AA7W.js → chunk-MYRLCN6V.js} +2 -2
- package/dist/{chunk-6ACKL3WH.cjs → chunk-N2BTMKF2.cjs} +5 -5
- package/dist/chunk-N2COYOXE.cjs +526 -0
- package/dist/{chunk-2TL37AP5.cjs → chunk-N3OLFKV5.cjs} +1 -1
- package/dist/{chunk-5JSDQ6QQ.cjs → chunk-NDO22RER.cjs} +2 -2
- package/dist/{chunk-XD3JGL5O.js → chunk-NE7IUGMK.js} +3 -3
- package/dist/{chunk-F6RYCBQG.js → chunk-NFXHIO3G.js} +1 -1
- package/dist/chunk-NJCHFXGC.js +1170 -0
- package/dist/chunk-NT6CJYI3.cjs +129 -0
- package/dist/chunk-O43DOE7V.js +106 -0
- package/dist/{chunk-GNEZD7KE.cjs → chunk-O4BOBOYV.cjs} +2 -2
- package/dist/{chunk-3AS5B7MQ.cjs → chunk-OGPDCBPD.cjs} +12 -12
- package/dist/{chunk-6YQTMI55.js → chunk-OHFZ7L4T.js} +2 -2
- package/dist/{chunk-CEJ7VBR6.js → chunk-OHIFKN4E.js} +4 -4
- package/dist/{chunk-46VXFTEC.js → chunk-OQU3TJCF.js} +3 -3
- package/dist/{chunk-5TKC6IEN.js → chunk-PEJLXJQD.js} +1 -1
- package/dist/{chunk-HWFM4MAT.js → chunk-PKHITACT.js} +2 -2
- package/dist/{chunk-CHMCL7AV.js → chunk-PNZJFLMY.js} +3 -3
- package/dist/{chunk-XRR3CYQL.js → chunk-QP7RXZES.js} +2 -2
- package/dist/{chunk-QGHYQCF3.cjs → chunk-QY76WTO5.cjs} +9 -9
- package/dist/{chunk-EIY7KEJ3.cjs → chunk-R74TZKJS.cjs} +4 -4
- package/dist/{chunk-GNEZQMKH.js → chunk-REMJWNAT.js} +5 -5
- package/dist/{chunk-SWBWZIL4.cjs → chunk-S6OKX4H7.cjs} +2 -2
- package/dist/{chunk-EC4WGEAJ.js → chunk-SABWUELE.js} +2 -2
- package/dist/{chunk-QKQHZIF3.cjs → chunk-SG42F5VB.cjs} +2 -2
- package/dist/{chunk-5C2AI2SD.js → chunk-SQIWPU6V.js} +2 -2
- package/dist/{chunk-ZIP7F4UF.cjs → chunk-SYWTT5TY.cjs} +5 -5
- package/dist/{chunk-OBEKX4VR.js → chunk-TVUBGXWA.js} +2 -2
- package/dist/{chunk-7PNJI5UE.cjs → chunk-U2H4DRMV.cjs} +2 -2
- package/dist/{chunk-6LZ54NPO.cjs → chunk-VAXWWJJP.cjs} +34 -24
- package/dist/{chunk-DQTSTJ6O.js → chunk-VNNQYJLT.js} +4 -4
- package/dist/{chunk-KGSADAOD.cjs → chunk-VSUMJX6Z.cjs} +2 -2
- package/dist/{chunk-ON4DEDMI.js → chunk-W5CJC7S7.js} +3 -3
- package/dist/{chunk-AXZ7ELMA.js → chunk-WEJKY3DF.js} +2 -2
- package/dist/{chunk-EQEJTN3V.js → chunk-WXWFMWWF.js} +3 -3
- package/dist/{chunk-TEEFR2FD.js → chunk-XHQGMMH7.js} +2 -2
- package/dist/{chunk-XTIN5545.js → chunk-XVP7IKLZ.js} +32 -22
- package/dist/{chunk-ELNT3CFO.js → chunk-Y5F7ZTBH.js} +2 -2
- package/dist/{chunk-QCILPZWP.js → chunk-YJEXAO2I.js} +2 -2
- package/dist/{chunk-7ABFUIOB.cjs → chunk-YNCDTKAE.cjs} +2 -2
- package/dist/{chunk-35ZGBAA3.cjs → chunk-YSCIMHOI.cjs} +6 -6
- package/dist/{chunk-AWXCSX6J.js → chunk-YSXD344H.js} +5 -5
- package/dist/{chunk-OF3SGLZY.js → chunk-YT5NLCRC.js} +10 -2
- package/dist/{chunk-HZSIUOCN.cjs → chunk-YUKXNWVE.cjs} +1 -1
- package/dist/{chunk-65FIH5A3.js → chunk-YVTLHTG6.js} +2 -2
- package/dist/{chunk-GENABQYA.cjs → chunk-Z4PZ2ZHI.cjs} +2 -2
- package/dist/{chunk-FBVVRTX2.cjs → chunk-ZPKHGKVL.cjs} +4 -4
- package/dist/{chunk-FJNWUELL.js → chunk-ZPP7LTHP.js} +3 -3
- package/dist/{chunk-IZOHYJUQ.cjs → chunk-ZWCDB5PP.cjs} +2 -2
- package/dist/index.cjs +226 -183
- package/dist/index.d.cts +7 -5
- package/dist/index.d.ts +7 -5
- package/dist/index.js +49 -46
- package/dist/styles.css +873 -200
- package/dist/{tokens-BIIUTPKN.css → tokens-EF34LSWI.css} +42 -17
- package/dist/tokens.css +42 -17
- package/docs/llms/alert.md +4 -3
- package/docs/llms/button.md +4 -3
- package/docs/llms/cascader.md +3 -0
- package/docs/llms/image.md +72 -1
- package/docs/llms/input.md +3 -2
- package/docs/llms/select.md +2 -2
- package/docs/llms/surface.md +90 -0
- package/docs/llms/tag.md +3 -2
- package/docs/llms/theme.md +65 -6
- package/docs/llms/themepanel.md +128 -0
- package/docs/llms.md +6 -4
- package/package.json +16 -1
- package/dist/Button-SDQD25AG.css +0 -98
- package/dist/chunk-B2KEZQ6S.cjs +0 -116
- package/dist/chunk-NN25YMOL.js +0 -251
- package/dist/chunk-PH3YECMF.js +0 -90
- package/dist/chunk-RF2EY5JS.cjs +0 -281
package/dist/Icon.cjs
CHANGED
|
@@ -1,190 +1,198 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunk6LARTGLP_cjs = require('./chunk-6LARTGLP.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
Object.defineProperty(exports, "AimOutlined", {
|
|
8
8
|
enumerable: true,
|
|
9
|
-
get: function () { return
|
|
9
|
+
get: function () { return chunk6LARTGLP_cjs.AimOutlined; }
|
|
10
10
|
});
|
|
11
11
|
Object.defineProperty(exports, "AppstoreOutlined", {
|
|
12
12
|
enumerable: true,
|
|
13
|
-
get: function () { return
|
|
13
|
+
get: function () { return chunk6LARTGLP_cjs.AppstoreOutlined; }
|
|
14
14
|
});
|
|
15
15
|
Object.defineProperty(exports, "BarChartOutlined", {
|
|
16
16
|
enumerable: true,
|
|
17
|
-
get: function () { return
|
|
17
|
+
get: function () { return chunk6LARTGLP_cjs.BarChartOutlined; }
|
|
18
18
|
});
|
|
19
19
|
Object.defineProperty(exports, "BlockOutlined", {
|
|
20
20
|
enumerable: true,
|
|
21
|
-
get: function () { return
|
|
21
|
+
get: function () { return chunk6LARTGLP_cjs.BlockOutlined; }
|
|
22
22
|
});
|
|
23
23
|
Object.defineProperty(exports, "BorderOutlined", {
|
|
24
24
|
enumerable: true,
|
|
25
|
-
get: function () { return
|
|
25
|
+
get: function () { return chunk6LARTGLP_cjs.BorderOutlined; }
|
|
26
26
|
});
|
|
27
27
|
Object.defineProperty(exports, "CameraOutlined", {
|
|
28
28
|
enumerable: true,
|
|
29
|
-
get: function () { return
|
|
29
|
+
get: function () { return chunk6LARTGLP_cjs.CameraOutlined; }
|
|
30
30
|
});
|
|
31
31
|
Object.defineProperty(exports, "CaretDownOutlined", {
|
|
32
32
|
enumerable: true,
|
|
33
|
-
get: function () { return
|
|
33
|
+
get: function () { return chunk6LARTGLP_cjs.CaretDownOutlined; }
|
|
34
34
|
});
|
|
35
35
|
Object.defineProperty(exports, "CaretUpOutlined", {
|
|
36
36
|
enumerable: true,
|
|
37
|
-
get: function () { return
|
|
37
|
+
get: function () { return chunk6LARTGLP_cjs.CaretUpOutlined; }
|
|
38
38
|
});
|
|
39
39
|
Object.defineProperty(exports, "CheckCircleFilled", {
|
|
40
40
|
enumerable: true,
|
|
41
|
-
get: function () { return
|
|
41
|
+
get: function () { return chunk6LARTGLP_cjs.CheckCircleFilled; }
|
|
42
42
|
});
|
|
43
43
|
Object.defineProperty(exports, "CheckCircleOutlined", {
|
|
44
44
|
enumerable: true,
|
|
45
|
-
get: function () { return
|
|
45
|
+
get: function () { return chunk6LARTGLP_cjs.CheckCircleOutlined; }
|
|
46
46
|
});
|
|
47
47
|
Object.defineProperty(exports, "CheckOutlined", {
|
|
48
48
|
enumerable: true,
|
|
49
|
-
get: function () { return
|
|
49
|
+
get: function () { return chunk6LARTGLP_cjs.CheckOutlined; }
|
|
50
50
|
});
|
|
51
51
|
Object.defineProperty(exports, "ClockCircleFilled", {
|
|
52
52
|
enumerable: true,
|
|
53
|
-
get: function () { return
|
|
53
|
+
get: function () { return chunk6LARTGLP_cjs.ClockCircleFilled; }
|
|
54
54
|
});
|
|
55
55
|
Object.defineProperty(exports, "CloseCircleOutlined", {
|
|
56
56
|
enumerable: true,
|
|
57
|
-
get: function () { return
|
|
57
|
+
get: function () { return chunk6LARTGLP_cjs.CloseCircleOutlined; }
|
|
58
58
|
});
|
|
59
59
|
Object.defineProperty(exports, "CloseOutlined", {
|
|
60
60
|
enumerable: true,
|
|
61
|
-
get: function () { return
|
|
61
|
+
get: function () { return chunk6LARTGLP_cjs.CloseOutlined; }
|
|
62
62
|
});
|
|
63
63
|
Object.defineProperty(exports, "CopyOutlined", {
|
|
64
64
|
enumerable: true,
|
|
65
|
-
get: function () { return
|
|
65
|
+
get: function () { return chunk6LARTGLP_cjs.CopyOutlined; }
|
|
66
66
|
});
|
|
67
67
|
Object.defineProperty(exports, "DashboardOutlined", {
|
|
68
68
|
enumerable: true,
|
|
69
|
-
get: function () { return
|
|
69
|
+
get: function () { return chunk6LARTGLP_cjs.DashboardOutlined; }
|
|
70
70
|
});
|
|
71
71
|
Object.defineProperty(exports, "DeleteOutlined", {
|
|
72
72
|
enumerable: true,
|
|
73
|
-
get: function () { return
|
|
73
|
+
get: function () { return chunk6LARTGLP_cjs.DeleteOutlined; }
|
|
74
74
|
});
|
|
75
75
|
Object.defineProperty(exports, "DownOutlined", {
|
|
76
76
|
enumerable: true,
|
|
77
|
-
get: function () { return
|
|
77
|
+
get: function () { return chunk6LARTGLP_cjs.DownOutlined; }
|
|
78
78
|
});
|
|
79
79
|
Object.defineProperty(exports, "EnvironmentOutlined", {
|
|
80
80
|
enumerable: true,
|
|
81
|
-
get: function () { return
|
|
81
|
+
get: function () { return chunk6LARTGLP_cjs.EnvironmentOutlined; }
|
|
82
82
|
});
|
|
83
83
|
Object.defineProperty(exports, "ExclamationCircleOutlined", {
|
|
84
84
|
enumerable: true,
|
|
85
|
-
get: function () { return
|
|
85
|
+
get: function () { return chunk6LARTGLP_cjs.ExclamationCircleOutlined; }
|
|
86
86
|
});
|
|
87
87
|
Object.defineProperty(exports, "FolderOpenOutlined", {
|
|
88
88
|
enumerable: true,
|
|
89
|
-
get: function () { return
|
|
89
|
+
get: function () { return chunk6LARTGLP_cjs.FolderOpenOutlined; }
|
|
90
90
|
});
|
|
91
91
|
Object.defineProperty(exports, "ICON_NAMES", {
|
|
92
92
|
enumerable: true,
|
|
93
|
-
get: function () { return
|
|
93
|
+
get: function () { return chunk6LARTGLP_cjs.ICON_NAMES; }
|
|
94
94
|
});
|
|
95
95
|
Object.defineProperty(exports, "Icon", {
|
|
96
96
|
enumerable: true,
|
|
97
|
-
get: function () { return
|
|
97
|
+
get: function () { return chunk6LARTGLP_cjs.Icon; }
|
|
98
98
|
});
|
|
99
99
|
Object.defineProperty(exports, "LeftOutlined", {
|
|
100
100
|
enumerable: true,
|
|
101
|
-
get: function () { return
|
|
101
|
+
get: function () { return chunk6LARTGLP_cjs.LeftOutlined; }
|
|
102
102
|
});
|
|
103
103
|
Object.defineProperty(exports, "LoadingOutlined", {
|
|
104
104
|
enumerable: true,
|
|
105
|
-
get: function () { return
|
|
105
|
+
get: function () { return chunk6LARTGLP_cjs.LoadingOutlined; }
|
|
106
106
|
});
|
|
107
107
|
Object.defineProperty(exports, "MinusCircleOutlined", {
|
|
108
108
|
enumerable: true,
|
|
109
|
-
get: function () { return
|
|
109
|
+
get: function () { return chunk6LARTGLP_cjs.MinusCircleOutlined; }
|
|
110
110
|
});
|
|
111
111
|
Object.defineProperty(exports, "MinusOutlined", {
|
|
112
112
|
enumerable: true,
|
|
113
|
-
get: function () { return
|
|
113
|
+
get: function () { return chunk6LARTGLP_cjs.MinusOutlined; }
|
|
114
114
|
});
|
|
115
115
|
Object.defineProperty(exports, "NAMED_ICON_MAP", {
|
|
116
116
|
enumerable: true,
|
|
117
|
-
get: function () { return
|
|
117
|
+
get: function () { return chunk6LARTGLP_cjs.NAMED_ICON_MAP; }
|
|
118
118
|
});
|
|
119
119
|
Object.defineProperty(exports, "PictureOutlined", {
|
|
120
120
|
enumerable: true,
|
|
121
|
-
get: function () { return
|
|
121
|
+
get: function () { return chunk6LARTGLP_cjs.PictureOutlined; }
|
|
122
122
|
});
|
|
123
123
|
Object.defineProperty(exports, "PlusOutlined", {
|
|
124
124
|
enumerable: true,
|
|
125
|
-
get: function () { return
|
|
125
|
+
get: function () { return chunk6LARTGLP_cjs.PlusOutlined; }
|
|
126
126
|
});
|
|
127
127
|
Object.defineProperty(exports, "QqOutlined", {
|
|
128
128
|
enumerable: true,
|
|
129
|
-
get: function () { return
|
|
129
|
+
get: function () { return chunk6LARTGLP_cjs.QqOutlined; }
|
|
130
130
|
});
|
|
131
131
|
Object.defineProperty(exports, "ReloadOutlined", {
|
|
132
132
|
enumerable: true,
|
|
133
|
-
get: function () { return
|
|
133
|
+
get: function () { return chunk6LARTGLP_cjs.ReloadOutlined; }
|
|
134
134
|
});
|
|
135
135
|
Object.defineProperty(exports, "RightOutlined", {
|
|
136
136
|
enumerable: true,
|
|
137
|
-
get: function () { return
|
|
137
|
+
get: function () { return chunk6LARTGLP_cjs.RightOutlined; }
|
|
138
138
|
});
|
|
139
139
|
Object.defineProperty(exports, "RobotOutlined", {
|
|
140
140
|
enumerable: true,
|
|
141
|
-
get: function () { return
|
|
141
|
+
get: function () { return chunk6LARTGLP_cjs.RobotOutlined; }
|
|
142
142
|
});
|
|
143
143
|
Object.defineProperty(exports, "SearchOutlined", {
|
|
144
144
|
enumerable: true,
|
|
145
|
-
get: function () { return
|
|
145
|
+
get: function () { return chunk6LARTGLP_cjs.SearchOutlined; }
|
|
146
146
|
});
|
|
147
147
|
Object.defineProperty(exports, "SettingOutlined", {
|
|
148
148
|
enumerable: true,
|
|
149
|
-
get: function () { return
|
|
149
|
+
get: function () { return chunk6LARTGLP_cjs.SettingOutlined; }
|
|
150
150
|
});
|
|
151
151
|
Object.defineProperty(exports, "StarFilled", {
|
|
152
152
|
enumerable: true,
|
|
153
|
-
get: function () { return
|
|
153
|
+
get: function () { return chunk6LARTGLP_cjs.StarFilled; }
|
|
154
154
|
});
|
|
155
155
|
Object.defineProperty(exports, "StarOutlined", {
|
|
156
156
|
enumerable: true,
|
|
157
|
-
get: function () { return
|
|
157
|
+
get: function () { return chunk6LARTGLP_cjs.StarOutlined; }
|
|
158
158
|
});
|
|
159
159
|
Object.defineProperty(exports, "SwapOutlined", {
|
|
160
160
|
enumerable: true,
|
|
161
|
-
get: function () { return
|
|
161
|
+
get: function () { return chunk6LARTGLP_cjs.SwapOutlined; }
|
|
162
162
|
});
|
|
163
163
|
Object.defineProperty(exports, "SwapRightOutlined", {
|
|
164
164
|
enumerable: true,
|
|
165
|
-
get: function () { return
|
|
165
|
+
get: function () { return chunk6LARTGLP_cjs.SwapRightOutlined; }
|
|
166
166
|
});
|
|
167
167
|
Object.defineProperty(exports, "SyncOutlined", {
|
|
168
168
|
enumerable: true,
|
|
169
|
-
get: function () { return
|
|
169
|
+
get: function () { return chunk6LARTGLP_cjs.SyncOutlined; }
|
|
170
170
|
});
|
|
171
171
|
Object.defineProperty(exports, "ThunderboltOutlined", {
|
|
172
172
|
enumerable: true,
|
|
173
|
-
get: function () { return
|
|
173
|
+
get: function () { return chunk6LARTGLP_cjs.ThunderboltOutlined; }
|
|
174
174
|
});
|
|
175
175
|
Object.defineProperty(exports, "TranslationOutlined", {
|
|
176
176
|
enumerable: true,
|
|
177
|
-
get: function () { return
|
|
177
|
+
get: function () { return chunk6LARTGLP_cjs.TranslationOutlined; }
|
|
178
178
|
});
|
|
179
179
|
Object.defineProperty(exports, "UnorderedListOutlined", {
|
|
180
180
|
enumerable: true,
|
|
181
|
-
get: function () { return
|
|
181
|
+
get: function () { return chunk6LARTGLP_cjs.UnorderedListOutlined; }
|
|
182
182
|
});
|
|
183
183
|
Object.defineProperty(exports, "UserOutlined", {
|
|
184
184
|
enumerable: true,
|
|
185
|
-
get: function () { return
|
|
185
|
+
get: function () { return chunk6LARTGLP_cjs.UserOutlined; }
|
|
186
|
+
});
|
|
187
|
+
Object.defineProperty(exports, "isIconName", {
|
|
188
|
+
enumerable: true,
|
|
189
|
+
get: function () { return chunk6LARTGLP_cjs.isIconName; }
|
|
190
|
+
});
|
|
191
|
+
Object.defineProperty(exports, "renderIconSlot", {
|
|
192
|
+
enumerable: true,
|
|
193
|
+
get: function () { return chunk6LARTGLP_cjs.renderIconSlot; }
|
|
186
194
|
});
|
|
187
195
|
Object.defineProperty(exports, "resolveIconName", {
|
|
188
196
|
enumerable: true,
|
|
189
|
-
get: function () { return
|
|
197
|
+
get: function () { return chunk6LARTGLP_cjs.resolveIconName; }
|
|
190
198
|
});
|
package/dist/Icon.d.cts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
1
2
|
import * as React from 'react';
|
|
2
3
|
|
|
3
4
|
/**
|
|
@@ -9,6 +10,7 @@ interface IconProps extends Omit<React.SVGAttributes<SVGSVGElement>, "stroke"> {
|
|
|
9
10
|
size?: number | string;
|
|
10
11
|
stroke?: number;
|
|
11
12
|
}
|
|
13
|
+
type IconSlot = IconName | React.ReactNode;
|
|
12
14
|
/**
|
|
13
15
|
* `Icon` — stroked line icon set, sized in pixels, inherits `currentColor`.
|
|
14
16
|
*
|
|
@@ -16,6 +18,12 @@ interface IconProps extends Omit<React.SVGAttributes<SVGSVGElement>, "stroke"> {
|
|
|
16
18
|
* <Icon name="plus" size={18} />
|
|
17
19
|
*/
|
|
18
20
|
declare const Icon: React.ForwardRefExoticComponent<IconProps & React.RefAttributes<SVGSVGElement>>;
|
|
21
|
+
declare const isIconName: (value: IconSlot) => value is IconName;
|
|
22
|
+
interface RenderIconSlotOptions {
|
|
23
|
+
size?: number | string;
|
|
24
|
+
className?: string;
|
|
25
|
+
}
|
|
26
|
+
declare const renderIconSlot: (icon: IconSlot, { size, className }?: RenderIconSlotOptions) => react_jsx_runtime.JSX.Element | null;
|
|
19
27
|
declare const ICON_NAMES: IconName[];
|
|
20
28
|
declare const NAMED_ICON_MAP: {
|
|
21
29
|
readonly AimOutlined: "aim";
|
|
@@ -111,4 +119,4 @@ declare const TranslationOutlined: React.ForwardRefExoticComponent<NamedIconProp
|
|
|
111
119
|
declare const UnorderedListOutlined: React.ForwardRefExoticComponent<NamedIconProps & React.RefAttributes<HTMLSpanElement>>;
|
|
112
120
|
declare const UserOutlined: React.ForwardRefExoticComponent<NamedIconProps & React.RefAttributes<HTMLSpanElement>>;
|
|
113
121
|
|
|
114
|
-
export { AimOutlined, AppstoreOutlined, BarChartOutlined, BlockOutlined, BorderOutlined, CameraOutlined, CaretDownOutlined, CaretUpOutlined, CheckCircleFilled, CheckCircleOutlined, CheckOutlined, ClockCircleFilled, CloseCircleOutlined, CloseOutlined, CopyOutlined, DashboardOutlined, DeleteOutlined, DownOutlined, EnvironmentOutlined, ExclamationCircleOutlined, FolderOpenOutlined, ICON_NAMES, Icon, type IconName, type IconProps, LeftOutlined, LoadingOutlined, MinusCircleOutlined, MinusOutlined, NAMED_ICON_MAP, type NamedIconComponentName, type NamedIconProps, PictureOutlined, PlusOutlined, QqOutlined, ReloadOutlined, RightOutlined, RobotOutlined, SearchOutlined, SettingOutlined, StarFilled, StarOutlined, SwapOutlined, SwapRightOutlined, SyncOutlined, ThunderboltOutlined, TranslationOutlined, UnorderedListOutlined, UserOutlined, resolveIconName };
|
|
122
|
+
export { AimOutlined, AppstoreOutlined, BarChartOutlined, BlockOutlined, BorderOutlined, CameraOutlined, CaretDownOutlined, CaretUpOutlined, CheckCircleFilled, CheckCircleOutlined, CheckOutlined, ClockCircleFilled, CloseCircleOutlined, CloseOutlined, CopyOutlined, DashboardOutlined, DeleteOutlined, DownOutlined, EnvironmentOutlined, ExclamationCircleOutlined, FolderOpenOutlined, ICON_NAMES, Icon, type IconName, type IconProps, type IconSlot, LeftOutlined, LoadingOutlined, MinusCircleOutlined, MinusOutlined, NAMED_ICON_MAP, type NamedIconComponentName, type NamedIconProps, PictureOutlined, PlusOutlined, QqOutlined, ReloadOutlined, type RenderIconSlotOptions, RightOutlined, RobotOutlined, SearchOutlined, SettingOutlined, StarFilled, StarOutlined, SwapOutlined, SwapRightOutlined, SyncOutlined, ThunderboltOutlined, TranslationOutlined, UnorderedListOutlined, UserOutlined, isIconName, renderIconSlot, resolveIconName };
|
package/dist/Icon.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
1
2
|
import * as React from 'react';
|
|
2
3
|
|
|
3
4
|
/**
|
|
@@ -9,6 +10,7 @@ interface IconProps extends Omit<React.SVGAttributes<SVGSVGElement>, "stroke"> {
|
|
|
9
10
|
size?: number | string;
|
|
10
11
|
stroke?: number;
|
|
11
12
|
}
|
|
13
|
+
type IconSlot = IconName | React.ReactNode;
|
|
12
14
|
/**
|
|
13
15
|
* `Icon` — stroked line icon set, sized in pixels, inherits `currentColor`.
|
|
14
16
|
*
|
|
@@ -16,6 +18,12 @@ interface IconProps extends Omit<React.SVGAttributes<SVGSVGElement>, "stroke"> {
|
|
|
16
18
|
* <Icon name="plus" size={18} />
|
|
17
19
|
*/
|
|
18
20
|
declare const Icon: React.ForwardRefExoticComponent<IconProps & React.RefAttributes<SVGSVGElement>>;
|
|
21
|
+
declare const isIconName: (value: IconSlot) => value is IconName;
|
|
22
|
+
interface RenderIconSlotOptions {
|
|
23
|
+
size?: number | string;
|
|
24
|
+
className?: string;
|
|
25
|
+
}
|
|
26
|
+
declare const renderIconSlot: (icon: IconSlot, { size, className }?: RenderIconSlotOptions) => react_jsx_runtime.JSX.Element | null;
|
|
19
27
|
declare const ICON_NAMES: IconName[];
|
|
20
28
|
declare const NAMED_ICON_MAP: {
|
|
21
29
|
readonly AimOutlined: "aim";
|
|
@@ -111,4 +119,4 @@ declare const TranslationOutlined: React.ForwardRefExoticComponent<NamedIconProp
|
|
|
111
119
|
declare const UnorderedListOutlined: React.ForwardRefExoticComponent<NamedIconProps & React.RefAttributes<HTMLSpanElement>>;
|
|
112
120
|
declare const UserOutlined: React.ForwardRefExoticComponent<NamedIconProps & React.RefAttributes<HTMLSpanElement>>;
|
|
113
121
|
|
|
114
|
-
export { AimOutlined, AppstoreOutlined, BarChartOutlined, BlockOutlined, BorderOutlined, CameraOutlined, CaretDownOutlined, CaretUpOutlined, CheckCircleFilled, CheckCircleOutlined, CheckOutlined, ClockCircleFilled, CloseCircleOutlined, CloseOutlined, CopyOutlined, DashboardOutlined, DeleteOutlined, DownOutlined, EnvironmentOutlined, ExclamationCircleOutlined, FolderOpenOutlined, ICON_NAMES, Icon, type IconName, type IconProps, LeftOutlined, LoadingOutlined, MinusCircleOutlined, MinusOutlined, NAMED_ICON_MAP, type NamedIconComponentName, type NamedIconProps, PictureOutlined, PlusOutlined, QqOutlined, ReloadOutlined, RightOutlined, RobotOutlined, SearchOutlined, SettingOutlined, StarFilled, StarOutlined, SwapOutlined, SwapRightOutlined, SyncOutlined, ThunderboltOutlined, TranslationOutlined, UnorderedListOutlined, UserOutlined, resolveIconName };
|
|
122
|
+
export { AimOutlined, AppstoreOutlined, BarChartOutlined, BlockOutlined, BorderOutlined, CameraOutlined, CaretDownOutlined, CaretUpOutlined, CheckCircleFilled, CheckCircleOutlined, CheckOutlined, ClockCircleFilled, CloseCircleOutlined, CloseOutlined, CopyOutlined, DashboardOutlined, DeleteOutlined, DownOutlined, EnvironmentOutlined, ExclamationCircleOutlined, FolderOpenOutlined, ICON_NAMES, Icon, type IconName, type IconProps, type IconSlot, LeftOutlined, LoadingOutlined, MinusCircleOutlined, MinusOutlined, NAMED_ICON_MAP, type NamedIconComponentName, type NamedIconProps, PictureOutlined, PlusOutlined, QqOutlined, ReloadOutlined, type RenderIconSlotOptions, RightOutlined, RobotOutlined, SearchOutlined, SettingOutlined, StarFilled, StarOutlined, SwapOutlined, SwapRightOutlined, SyncOutlined, ThunderboltOutlined, TranslationOutlined, UnorderedListOutlined, UserOutlined, isIconName, renderIconSlot, resolveIconName };
|
package/dist/Icon.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { AimOutlined, AppstoreOutlined, BarChartOutlined, BlockOutlined, BorderOutlined, CameraOutlined, CaretDownOutlined, CaretUpOutlined, CheckCircleFilled, CheckCircleOutlined, CheckOutlined, ClockCircleFilled, CloseCircleOutlined, CloseOutlined, CopyOutlined, DashboardOutlined, DeleteOutlined, DownOutlined, EnvironmentOutlined, ExclamationCircleOutlined, FolderOpenOutlined, ICON_NAMES, Icon, LeftOutlined, LoadingOutlined, MinusCircleOutlined, MinusOutlined, NAMED_ICON_MAP, PictureOutlined, PlusOutlined, QqOutlined, ReloadOutlined, RightOutlined, RobotOutlined, SearchOutlined, SettingOutlined, StarFilled, StarOutlined, SwapOutlined, SwapRightOutlined, SyncOutlined, ThunderboltOutlined, TranslationOutlined, UnorderedListOutlined, UserOutlined, resolveIconName } from './chunk-
|
|
1
|
+
export { AimOutlined, AppstoreOutlined, BarChartOutlined, BlockOutlined, BorderOutlined, CameraOutlined, CaretDownOutlined, CaretUpOutlined, CheckCircleFilled, CheckCircleOutlined, CheckOutlined, ClockCircleFilled, CloseCircleOutlined, CloseOutlined, CopyOutlined, DashboardOutlined, DeleteOutlined, DownOutlined, EnvironmentOutlined, ExclamationCircleOutlined, FolderOpenOutlined, ICON_NAMES, Icon, LeftOutlined, LoadingOutlined, MinusCircleOutlined, MinusOutlined, NAMED_ICON_MAP, PictureOutlined, PlusOutlined, QqOutlined, ReloadOutlined, RightOutlined, RobotOutlined, SearchOutlined, SettingOutlined, StarFilled, StarOutlined, SwapOutlined, SwapRightOutlined, SyncOutlined, ThunderboltOutlined, TranslationOutlined, UnorderedListOutlined, UserOutlined, isIconName, renderIconSlot, resolveIconName } from './chunk-YT5NLCRC.js';
|
|
@@ -5,17 +5,39 @@
|
|
|
5
5
|
border-radius: var(--r-md);
|
|
6
6
|
background: var(--bg);
|
|
7
7
|
padding: 6px;
|
|
8
|
-
box-shadow: var(--neu-
|
|
8
|
+
box-shadow: var(--neu-shadow-control);
|
|
9
9
|
overflow: hidden;
|
|
10
10
|
line-height: 0;
|
|
11
11
|
}
|
|
12
|
+
.n-image.raw {
|
|
13
|
+
border-radius: 0;
|
|
14
|
+
background: transparent;
|
|
15
|
+
box-shadow: none;
|
|
16
|
+
}
|
|
17
|
+
.n-image.icon {
|
|
18
|
+
border-radius: var(--r-sm);
|
|
19
|
+
}
|
|
20
|
+
.n-image.unframed {
|
|
21
|
+
background: transparent;
|
|
22
|
+
box-shadow: none;
|
|
23
|
+
}
|
|
12
24
|
.n-image-frame {
|
|
13
25
|
position: relative;
|
|
14
26
|
overflow: hidden;
|
|
15
27
|
border-radius: calc(var(--r-md) - 4px);
|
|
16
|
-
box-shadow: var(--neu-
|
|
28
|
+
box-shadow: var(--neu-shadow-inset);
|
|
17
29
|
background: var(--bg-sunken);
|
|
18
30
|
}
|
|
31
|
+
.n-image.raw .n-image-frame {
|
|
32
|
+
border-radius: 0;
|
|
33
|
+
}
|
|
34
|
+
.n-image.icon .n-image-frame {
|
|
35
|
+
border-radius: var(--r-sm);
|
|
36
|
+
}
|
|
37
|
+
.n-image.unframed .n-image-frame {
|
|
38
|
+
background: transparent;
|
|
39
|
+
box-shadow: none;
|
|
40
|
+
}
|
|
19
41
|
.n-image img {
|
|
20
42
|
display: block;
|
|
21
43
|
width: 100%;
|
|
@@ -102,5 +124,61 @@
|
|
|
102
124
|
max-width: 80vw;
|
|
103
125
|
max-height: 80vh;
|
|
104
126
|
border-radius: var(--r-lg);
|
|
105
|
-
box-shadow: var(--neu-float);
|
|
127
|
+
box-shadow: var(--neu-shadow-float);
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
/* ============ SpriteImage / LayeredImage ============ */
|
|
131
|
+
.n-sprite-image,
|
|
132
|
+
.n-layered-image {
|
|
133
|
+
display: inline-block;
|
|
134
|
+
position: relative;
|
|
135
|
+
border-radius: var(--r-sm);
|
|
136
|
+
background: var(--bg);
|
|
137
|
+
padding: 6px;
|
|
138
|
+
box-shadow: var(--neu-shadow-control);
|
|
139
|
+
overflow: hidden;
|
|
140
|
+
line-height: 0;
|
|
141
|
+
}
|
|
142
|
+
.n-sprite-image.raw,
|
|
143
|
+
.n-layered-image.raw {
|
|
144
|
+
border-radius: 0;
|
|
145
|
+
background: transparent;
|
|
146
|
+
box-shadow: none;
|
|
147
|
+
}
|
|
148
|
+
.n-sprite-image.unframed,
|
|
149
|
+
.n-layered-image.unframed {
|
|
150
|
+
background: transparent;
|
|
151
|
+
box-shadow: none;
|
|
152
|
+
}
|
|
153
|
+
.n-sprite-image-frame,
|
|
154
|
+
.n-layered-image-frame {
|
|
155
|
+
position: relative;
|
|
156
|
+
width: 100%;
|
|
157
|
+
overflow: hidden;
|
|
158
|
+
border-radius: var(--r-sm);
|
|
159
|
+
background: var(--bg-sunken);
|
|
160
|
+
box-shadow: var(--neu-shadow-inset);
|
|
161
|
+
}
|
|
162
|
+
.n-sprite-image.raw .n-sprite-image-frame,
|
|
163
|
+
.n-layered-image.raw .n-layered-image-frame {
|
|
164
|
+
border-radius: 0;
|
|
165
|
+
}
|
|
166
|
+
.n-sprite-image.unframed .n-sprite-image-frame,
|
|
167
|
+
.n-layered-image.unframed .n-layered-image-frame {
|
|
168
|
+
background: transparent;
|
|
169
|
+
box-shadow: none;
|
|
170
|
+
}
|
|
171
|
+
.n-sprite-image-sprite {
|
|
172
|
+
display: block;
|
|
173
|
+
background-repeat: no-repeat;
|
|
174
|
+
transform-origin: top left;
|
|
175
|
+
}
|
|
176
|
+
.n-layered-image-layer {
|
|
177
|
+
position: absolute;
|
|
178
|
+
display: block;
|
|
179
|
+
}
|
|
180
|
+
.n-layered-image img {
|
|
181
|
+
display: block;
|
|
182
|
+
width: 100%;
|
|
183
|
+
height: 100%;
|
|
106
184
|
}
|
package/dist/Image.cjs
CHANGED
|
@@ -1,15 +1,23 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('./chunk-
|
|
3
|
+
var chunkDYHNOYRC_cjs = require('./chunk-DYHNOYRC.cjs');
|
|
4
|
+
require('./chunk-6LARTGLP.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
Object.defineProperty(exports, "Image", {
|
|
9
9
|
enumerable: true,
|
|
10
|
-
get: function () { return
|
|
10
|
+
get: function () { return chunkDYHNOYRC_cjs.Image; }
|
|
11
11
|
});
|
|
12
12
|
Object.defineProperty(exports, "ImageGrid", {
|
|
13
13
|
enumerable: true,
|
|
14
|
-
get: function () { return
|
|
14
|
+
get: function () { return chunkDYHNOYRC_cjs.ImageGrid; }
|
|
15
|
+
});
|
|
16
|
+
Object.defineProperty(exports, "LayeredImage", {
|
|
17
|
+
enumerable: true,
|
|
18
|
+
get: function () { return chunkDYHNOYRC_cjs.LayeredImage; }
|
|
19
|
+
});
|
|
20
|
+
Object.defineProperty(exports, "SpriteImage", {
|
|
21
|
+
enumerable: true,
|
|
22
|
+
get: function () { return chunkDYHNOYRC_cjs.SpriteImage; }
|
|
15
23
|
});
|
package/dist/Image.d.cts
CHANGED
|
@@ -1,30 +1,103 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
|
|
3
|
+
type ImageVariant = "framed" | "raw" | "icon";
|
|
3
4
|
interface ImageProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
4
5
|
src?: string;
|
|
5
6
|
alt?: string;
|
|
6
7
|
width?: number | string;
|
|
7
8
|
height?: number | string;
|
|
9
|
+
/** Visual treatment. `framed` keeps the neumorphic shell; `raw`/`icon` remove padding by default. */
|
|
10
|
+
variant?: ImageVariant;
|
|
11
|
+
/** Whether to render the inner neumorphic frame. Defaults to true only for `framed`. */
|
|
12
|
+
frame?: boolean;
|
|
13
|
+
/** Outer padding. Defaults to 6px for framed images and 0 for raw/icon images. */
|
|
14
|
+
padding?: number | string;
|
|
15
|
+
/** CSS object-fit applied to the underlying img. */
|
|
16
|
+
objectFit?: React.CSSProperties["objectFit"];
|
|
17
|
+
/** CSS object-position applied to the underlying img. */
|
|
18
|
+
objectPosition?: React.CSSProperties["objectPosition"];
|
|
8
19
|
/** Allow click-to-zoom preview overlay. */
|
|
9
20
|
preview?: boolean;
|
|
10
21
|
/** Hover scale-up. */
|
|
11
22
|
hover?: boolean;
|
|
12
23
|
/** Custom placeholder while loading or on error. */
|
|
13
24
|
placeholder?: React.ReactNode;
|
|
25
|
+
/** Extra props forwarded to the underlying img. */
|
|
26
|
+
imgProps?: Omit<React.ImgHTMLAttributes<HTMLImageElement>, "src" | "alt" | "width" | "height">;
|
|
14
27
|
className?: string;
|
|
15
28
|
}
|
|
16
|
-
/**
|
|
29
|
+
/**
|
|
30
|
+
* `Image` — image surface with framed, raw and icon-oriented variants.
|
|
31
|
+
*
|
|
32
|
+
* @example
|
|
33
|
+
* <Image src={url} width={240} height={160} />
|
|
34
|
+
* <Image variant="icon" src={iconUrl} width={48} height={48} preview={false} />
|
|
35
|
+
*/
|
|
17
36
|
declare const Image: React.ForwardRefExoticComponent<ImageProps & React.RefAttributes<HTMLDivElement>>;
|
|
37
|
+
interface ImageGridItem extends Omit<ImageProps, "children"> {
|
|
38
|
+
src: string;
|
|
39
|
+
alt?: string;
|
|
40
|
+
}
|
|
18
41
|
interface ImageGridProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
19
|
-
images:
|
|
20
|
-
src: string;
|
|
21
|
-
alt?: string;
|
|
22
|
-
}[];
|
|
42
|
+
images: ImageGridItem[];
|
|
23
43
|
columns?: number;
|
|
24
44
|
itemHeight?: number;
|
|
45
|
+
minItemWidth?: number | string;
|
|
46
|
+
gap?: number | string;
|
|
47
|
+
imageProps?: Omit<ImageProps, "src" | "alt" | "width" | "height">;
|
|
25
48
|
className?: string;
|
|
26
49
|
}
|
|
27
50
|
/** `ImageGrid` — auto-fit grid of `Image` items. */
|
|
28
51
|
declare const ImageGrid: React.ForwardRefExoticComponent<ImageGridProps & React.RefAttributes<HTMLDivElement>>;
|
|
52
|
+
interface SpriteRect {
|
|
53
|
+
x: number;
|
|
54
|
+
y: number;
|
|
55
|
+
width: number;
|
|
56
|
+
height: number;
|
|
57
|
+
}
|
|
58
|
+
interface SpriteImageProps extends Omit<React.HTMLAttributes<HTMLDivElement>, "children"> {
|
|
59
|
+
src: string;
|
|
60
|
+
sprite: SpriteRect;
|
|
61
|
+
alt?: string;
|
|
62
|
+
width?: number | string;
|
|
63
|
+
height?: number | string;
|
|
64
|
+
scale?: number;
|
|
65
|
+
backgroundSize?: string;
|
|
66
|
+
variant?: ImageVariant;
|
|
67
|
+
frame?: boolean;
|
|
68
|
+
padding?: number | string;
|
|
69
|
+
className?: string;
|
|
70
|
+
}
|
|
71
|
+
/**
|
|
72
|
+
* `SpriteImage` — crops one rectangle from a sprite sheet.
|
|
73
|
+
*
|
|
74
|
+
* @example
|
|
75
|
+
* <SpriteImage src={sheetUrl} sprite={{ x: 64, y: 32, width: 32, height: 32 }} />
|
|
76
|
+
*/
|
|
77
|
+
declare const SpriteImage: React.ForwardRefExoticComponent<SpriteImageProps & React.RefAttributes<HTMLDivElement>>;
|
|
78
|
+
type LayeredImageInset = number | string | Partial<Record<"top" | "right" | "bottom" | "left", number | string>>;
|
|
79
|
+
interface LayeredImageLayer extends Omit<React.ImgHTMLAttributes<HTMLImageElement>, "src" | "alt" | "width" | "height"> {
|
|
80
|
+
src: string;
|
|
81
|
+
alt?: string;
|
|
82
|
+
fit?: React.CSSProperties["objectFit"];
|
|
83
|
+
inset?: LayeredImageInset;
|
|
84
|
+
zIndex?: number;
|
|
85
|
+
}
|
|
86
|
+
interface LayeredImageProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
87
|
+
layers: LayeredImageLayer[];
|
|
88
|
+
width?: number | string;
|
|
89
|
+
height?: number | string;
|
|
90
|
+
variant?: ImageVariant;
|
|
91
|
+
frame?: boolean;
|
|
92
|
+
padding?: number | string;
|
|
93
|
+
className?: string;
|
|
94
|
+
}
|
|
95
|
+
/**
|
|
96
|
+
* `LayeredImage` — stacks several images in the same box, useful for avatar + frame assets.
|
|
97
|
+
*
|
|
98
|
+
* @example
|
|
99
|
+
* <LayeredImage layers={[{ src: headUrl }, { src: frameUrl }]} width={48} height={48} />
|
|
100
|
+
*/
|
|
101
|
+
declare const LayeredImage: React.ForwardRefExoticComponent<LayeredImageProps & React.RefAttributes<HTMLDivElement>>;
|
|
29
102
|
|
|
30
|
-
export { Image, ImageGrid, type ImageGridProps, type ImageProps };
|
|
103
|
+
export { Image, ImageGrid, type ImageGridItem, type ImageGridProps, type ImageProps, type ImageVariant, LayeredImage, type LayeredImageInset, type LayeredImageLayer, type LayeredImageProps, SpriteImage, type SpriteImageProps, type SpriteRect };
|
package/dist/Image.d.ts
CHANGED
|
@@ -1,30 +1,103 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
|
|
3
|
+
type ImageVariant = "framed" | "raw" | "icon";
|
|
3
4
|
interface ImageProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
4
5
|
src?: string;
|
|
5
6
|
alt?: string;
|
|
6
7
|
width?: number | string;
|
|
7
8
|
height?: number | string;
|
|
9
|
+
/** Visual treatment. `framed` keeps the neumorphic shell; `raw`/`icon` remove padding by default. */
|
|
10
|
+
variant?: ImageVariant;
|
|
11
|
+
/** Whether to render the inner neumorphic frame. Defaults to true only for `framed`. */
|
|
12
|
+
frame?: boolean;
|
|
13
|
+
/** Outer padding. Defaults to 6px for framed images and 0 for raw/icon images. */
|
|
14
|
+
padding?: number | string;
|
|
15
|
+
/** CSS object-fit applied to the underlying img. */
|
|
16
|
+
objectFit?: React.CSSProperties["objectFit"];
|
|
17
|
+
/** CSS object-position applied to the underlying img. */
|
|
18
|
+
objectPosition?: React.CSSProperties["objectPosition"];
|
|
8
19
|
/** Allow click-to-zoom preview overlay. */
|
|
9
20
|
preview?: boolean;
|
|
10
21
|
/** Hover scale-up. */
|
|
11
22
|
hover?: boolean;
|
|
12
23
|
/** Custom placeholder while loading or on error. */
|
|
13
24
|
placeholder?: React.ReactNode;
|
|
25
|
+
/** Extra props forwarded to the underlying img. */
|
|
26
|
+
imgProps?: Omit<React.ImgHTMLAttributes<HTMLImageElement>, "src" | "alt" | "width" | "height">;
|
|
14
27
|
className?: string;
|
|
15
28
|
}
|
|
16
|
-
/**
|
|
29
|
+
/**
|
|
30
|
+
* `Image` — image surface with framed, raw and icon-oriented variants.
|
|
31
|
+
*
|
|
32
|
+
* @example
|
|
33
|
+
* <Image src={url} width={240} height={160} />
|
|
34
|
+
* <Image variant="icon" src={iconUrl} width={48} height={48} preview={false} />
|
|
35
|
+
*/
|
|
17
36
|
declare const Image: React.ForwardRefExoticComponent<ImageProps & React.RefAttributes<HTMLDivElement>>;
|
|
37
|
+
interface ImageGridItem extends Omit<ImageProps, "children"> {
|
|
38
|
+
src: string;
|
|
39
|
+
alt?: string;
|
|
40
|
+
}
|
|
18
41
|
interface ImageGridProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
19
|
-
images:
|
|
20
|
-
src: string;
|
|
21
|
-
alt?: string;
|
|
22
|
-
}[];
|
|
42
|
+
images: ImageGridItem[];
|
|
23
43
|
columns?: number;
|
|
24
44
|
itemHeight?: number;
|
|
45
|
+
minItemWidth?: number | string;
|
|
46
|
+
gap?: number | string;
|
|
47
|
+
imageProps?: Omit<ImageProps, "src" | "alt" | "width" | "height">;
|
|
25
48
|
className?: string;
|
|
26
49
|
}
|
|
27
50
|
/** `ImageGrid` — auto-fit grid of `Image` items. */
|
|
28
51
|
declare const ImageGrid: React.ForwardRefExoticComponent<ImageGridProps & React.RefAttributes<HTMLDivElement>>;
|
|
52
|
+
interface SpriteRect {
|
|
53
|
+
x: number;
|
|
54
|
+
y: number;
|
|
55
|
+
width: number;
|
|
56
|
+
height: number;
|
|
57
|
+
}
|
|
58
|
+
interface SpriteImageProps extends Omit<React.HTMLAttributes<HTMLDivElement>, "children"> {
|
|
59
|
+
src: string;
|
|
60
|
+
sprite: SpriteRect;
|
|
61
|
+
alt?: string;
|
|
62
|
+
width?: number | string;
|
|
63
|
+
height?: number | string;
|
|
64
|
+
scale?: number;
|
|
65
|
+
backgroundSize?: string;
|
|
66
|
+
variant?: ImageVariant;
|
|
67
|
+
frame?: boolean;
|
|
68
|
+
padding?: number | string;
|
|
69
|
+
className?: string;
|
|
70
|
+
}
|
|
71
|
+
/**
|
|
72
|
+
* `SpriteImage` — crops one rectangle from a sprite sheet.
|
|
73
|
+
*
|
|
74
|
+
* @example
|
|
75
|
+
* <SpriteImage src={sheetUrl} sprite={{ x: 64, y: 32, width: 32, height: 32 }} />
|
|
76
|
+
*/
|
|
77
|
+
declare const SpriteImage: React.ForwardRefExoticComponent<SpriteImageProps & React.RefAttributes<HTMLDivElement>>;
|
|
78
|
+
type LayeredImageInset = number | string | Partial<Record<"top" | "right" | "bottom" | "left", number | string>>;
|
|
79
|
+
interface LayeredImageLayer extends Omit<React.ImgHTMLAttributes<HTMLImageElement>, "src" | "alt" | "width" | "height"> {
|
|
80
|
+
src: string;
|
|
81
|
+
alt?: string;
|
|
82
|
+
fit?: React.CSSProperties["objectFit"];
|
|
83
|
+
inset?: LayeredImageInset;
|
|
84
|
+
zIndex?: number;
|
|
85
|
+
}
|
|
86
|
+
interface LayeredImageProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
87
|
+
layers: LayeredImageLayer[];
|
|
88
|
+
width?: number | string;
|
|
89
|
+
height?: number | string;
|
|
90
|
+
variant?: ImageVariant;
|
|
91
|
+
frame?: boolean;
|
|
92
|
+
padding?: number | string;
|
|
93
|
+
className?: string;
|
|
94
|
+
}
|
|
95
|
+
/**
|
|
96
|
+
* `LayeredImage` — stacks several images in the same box, useful for avatar + frame assets.
|
|
97
|
+
*
|
|
98
|
+
* @example
|
|
99
|
+
* <LayeredImage layers={[{ src: headUrl }, { src: frameUrl }]} width={48} height={48} />
|
|
100
|
+
*/
|
|
101
|
+
declare const LayeredImage: React.ForwardRefExoticComponent<LayeredImageProps & React.RefAttributes<HTMLDivElement>>;
|
|
29
102
|
|
|
30
|
-
export { Image, ImageGrid, type ImageGridProps, type ImageProps };
|
|
103
|
+
export { Image, ImageGrid, type ImageGridItem, type ImageGridProps, type ImageProps, type ImageVariant, LayeredImage, type LayeredImageInset, type LayeredImageLayer, type LayeredImageProps, SpriteImage, type SpriteImageProps, type SpriteRect };
|