@fangxinyan/lumina 0.6.17 → 0.7.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/dist/{Alert-HVPI6L4V.css → Alert-DJ3K7N7L.css} +9 -9
- package/dist/Alert.cjs +5 -3
- package/dist/Alert.d.cts +2 -2
- package/dist/Alert.d.ts +2 -2
- package/dist/Alert.js +4 -2
- package/dist/{AppShell-FZCD4C56.css → AppShell-OWJRJ4ZD.css} +57 -22
- package/dist/AppShell.cjs +8 -5
- package/dist/AppShell.d.cts +19 -16
- package/dist/AppShell.d.ts +19 -16
- package/dist/AppShell.js +4 -1
- package/dist/{AutoComplete-4YZBMW4E.css → AutoComplete-PNCYHU2T.css} +8 -8
- package/dist/AutoComplete.cjs +9 -6
- package/dist/AutoComplete.d.cts +2 -1
- package/dist/AutoComplete.d.ts +2 -1
- package/dist/AutoComplete.js +8 -5
- package/dist/Avatar-YBU2YZTW.css +48 -0
- package/dist/Avatar.cjs +4 -2
- package/dist/Avatar.d.cts +6 -2
- package/dist/Avatar.d.ts +6 -2
- package/dist/Avatar.js +3 -1
- package/dist/Badge-DBWJEV4C.css +22 -0
- package/dist/Badge.cjs +4 -2
- package/dist/Badge.d.cts +6 -2
- package/dist/Badge.d.ts +6 -2
- package/dist/Badge.js +3 -1
- package/dist/{Button-TUMZUQLI.css → Button-ILNZUX2N.css} +28 -21
- package/dist/Button.cjs +6 -4
- package/dist/Button.d.cts +2 -14
- package/dist/Button.d.ts +2 -14
- package/dist/Button.js +4 -2
- package/dist/{Calendar-I6NHCXIB.css → Calendar-QJ5HWEJQ.css} +26 -26
- package/dist/Calendar.cjs +5 -3
- package/dist/Calendar.d.cts +8 -4
- package/dist/Calendar.d.ts +8 -4
- package/dist/Calendar.js +4 -2
- package/dist/Card-VPMTWAWZ.css +98 -0
- package/dist/Card.cjs +7 -3
- package/dist/Card.d.cts +8 -4
- package/dist/Card.d.ts +8 -4
- package/dist/Card.js +6 -2
- package/dist/Cascader-YBVDK6DC.css +168 -0
- package/dist/Cascader.cjs +9 -6
- package/dist/Cascader.d.cts +21 -3
- package/dist/Cascader.d.ts +21 -3
- package/dist/Cascader.js +8 -5
- package/dist/Checkbox-IHFML4FV.css +50 -0
- package/dist/Checkbox.cjs +5 -3
- package/dist/Checkbox.d.cts +10 -2
- package/dist/Checkbox.d.ts +10 -2
- package/dist/Checkbox.js +4 -2
- package/dist/{Collapse-UNBHEPYP.css → Collapse-BTSBHBSY.css} +12 -7
- package/dist/Collapse.cjs +5 -3
- package/dist/Collapse.d.cts +2 -2
- package/dist/Collapse.d.ts +2 -2
- package/dist/Collapse.js +4 -2
- package/dist/{ColorPicker-LPG6QPYF.css → ColorPicker-GRZOKR5O.css} +17 -32
- package/dist/ColorPicker.cjs +9 -3
- package/dist/ColorPicker.d.cts +7 -11
- package/dist/ColorPicker.d.ts +7 -11
- package/dist/ColorPicker.js +8 -2
- package/dist/{CommandPalette-RTKWNH2D.css → CommandPalette-GHTX7AAA.css} +22 -23
- package/dist/CommandPalette.cjs +8 -5
- package/dist/CommandPalette.d.cts +5 -28
- package/dist/CommandPalette.d.ts +5 -28
- package/dist/CommandPalette.js +7 -4
- package/dist/{ContextMenu-WRR2SSWL.css → ContextMenu-NG524Y2P.css} +17 -17
- package/dist/ContextMenu.cjs +5 -2
- package/dist/ContextMenu.d.cts +2 -19
- package/dist/ContextMenu.d.ts +2 -19
- package/dist/ContextMenu.js +4 -1
- package/dist/{DatePicker-VDVSIARF.css → DatePicker-ZSFDXAYD.css} +4 -4
- package/dist/DatePicker.cjs +11 -8
- package/dist/DatePicker.d.cts +4 -7
- package/dist/DatePicker.d.ts +4 -7
- package/dist/DatePicker.js +10 -7
- package/dist/{DateTimePicker-DRX7XA74.css → DateTimePicker-EWSISVIF.css} +17 -17
- package/dist/DateTimePicker.cjs +11 -8
- package/dist/DateTimePicker.d.cts +4 -8
- package/dist/DateTimePicker.d.ts +4 -8
- package/dist/DateTimePicker.js +10 -7
- package/dist/{Divider-RPQCVH3J.css → Divider-OI2BXPBU.css} +10 -10
- package/dist/Divider.cjs +4 -2
- package/dist/Divider.d.cts +2 -2
- package/dist/Divider.d.ts +2 -2
- package/dist/Divider.js +3 -1
- package/dist/{Drawer-7KICRM4L.css → Drawer-VCXAXWV6.css} +30 -17
- package/dist/Drawer.cjs +6 -3
- package/dist/Drawer.d.cts +25 -3
- package/dist/Drawer.d.ts +25 -3
- package/dist/Drawer.js +5 -2
- package/dist/{Empty-CZTRZMZQ.css → Empty-U5CBLCAL.css} +5 -5
- package/dist/Empty.cjs +4 -2
- package/dist/Empty.d.cts +2 -2
- package/dist/Empty.d.ts +2 -2
- package/dist/Empty.js +3 -1
- package/dist/{Form-NGCQWTMZ.css → Form-DNEDZRJA.css} +7 -7
- package/dist/Form.cjs +7 -4
- package/dist/Form.d.cts +4 -3
- package/dist/Form.d.ts +4 -3
- package/dist/Form.js +4 -1
- package/dist/Icon-HJSUVW4O.css +12 -0
- package/dist/Icon.cjs +51 -49
- package/dist/Icon.d.cts +8 -8
- package/dist/Icon.d.ts +8 -8
- package/dist/Icon.js +3 -1
- package/dist/{Image-TDCXJISG.css → Image-CZJPPURT.css} +95 -14
- package/dist/Image.cjs +10 -6
- package/dist/Image.d.cts +23 -25
- package/dist/Image.d.ts +23 -25
- package/dist/Image.js +6 -2
- package/dist/{Input-7GDPGP3E.css → Input-ZUASNDXM.css} +15 -15
- package/dist/Input.cjs +7 -5
- package/dist/Input.d.cts +2 -1
- package/dist/Input.d.ts +2 -1
- package/dist/Input.js +5 -3
- package/dist/{InputNumber-VXQIWLQC.css → InputNumber-6NHBMRT4.css} +7 -7
- package/dist/InputNumber.cjs +7 -5
- package/dist/InputNumber.d.cts +2 -1
- package/dist/InputNumber.d.ts +2 -1
- package/dist/InputNumber.js +6 -4
- package/dist/List-6BQIFAIT.css +42 -0
- package/dist/List.cjs +4 -2
- package/dist/List.d.cts +2 -2
- package/dist/List.d.ts +2 -2
- package/dist/List.js +3 -1
- package/dist/{Message-H222YGR6.css → Message-OTZWQTQ5.css} +13 -13
- package/dist/Message.cjs +9 -6
- package/dist/Message.d.cts +18 -2
- package/dist/Message.d.ts +18 -2
- package/dist/Message.js +5 -2
- package/dist/{Modal-ZFWNFEA5.css → Modal-UI2FXNDR.css} +29 -18
- package/dist/Modal.cjs +7 -4
- package/dist/Modal.d.cts +13 -2
- package/dist/Modal.d.ts +13 -2
- package/dist/Modal.js +6 -3
- package/dist/Pagination-POJTWMYR.css +70 -0
- package/dist/Pagination.cjs +11 -8
- package/dist/Pagination.d.cts +2 -2
- package/dist/Pagination.d.ts +2 -2
- package/dist/Pagination.js +10 -7
- package/dist/{Popover-Y3LDCJPW.css → Popover-LCXLR3EU.css} +13 -14
- package/dist/Popover.cjs +6 -3
- package/dist/Popover.d.cts +3 -10
- package/dist/Popover.d.ts +3 -10
- package/dist/Popover.js +5 -2
- package/dist/Progress-33WE2NI7.css +90 -0
- package/dist/Progress.cjs +4 -2
- package/dist/Progress.d.cts +4 -2
- package/dist/Progress.d.ts +4 -2
- package/dist/Progress.js +3 -1
- package/dist/{Radio-IQKASYDF.css → Radio-RL7232MZ.css} +21 -13
- package/dist/Radio.cjs +5 -3
- package/dist/Radio.d.cts +18 -5
- package/dist/Radio.d.ts +18 -5
- package/dist/Radio.js +3 -1
- package/dist/{Select-YZ2NUJSX.css → Select-TU37MAHZ.css} +64 -40
- package/dist/Select.cjs +10 -7
- package/dist/Select.d.cts +24 -3
- package/dist/Select.d.ts +24 -3
- package/dist/Select.js +9 -6
- package/dist/{Skeleton-CVWH2VWN.css → Skeleton-FMFE3BRI.css} +9 -4
- package/dist/Skeleton.cjs +4 -2
- package/dist/Skeleton.d.cts +2 -4
- package/dist/Skeleton.d.ts +2 -4
- package/dist/Skeleton.js +3 -1
- package/dist/Slider-FZ5MI4X2.css +145 -0
- package/dist/Slider.cjs +4 -2
- package/dist/Slider.d.cts +6 -5
- package/dist/Slider.d.ts +6 -5
- package/dist/Slider.js +3 -1
- package/dist/{Spin-GONGPV4Q.css → Spin-F5YIEENO.css} +15 -9
- package/dist/Spin.cjs +4 -2
- package/dist/Spin.d.cts +2 -2
- package/dist/Spin.d.ts +2 -2
- package/dist/Spin.js +3 -1
- package/dist/{Splitter-DHNOY4NC.css → Splitter-IQ3PFIKK.css} +4 -4
- package/dist/Splitter.cjs +4 -2
- package/dist/Splitter.d.cts +8 -12
- package/dist/Splitter.d.ts +8 -12
- package/dist/Splitter.js +3 -1
- package/dist/{StatusBar-FJKEEPXU.css → StatusBar-TCGR3LXP.css} +23 -9
- package/dist/StatusBar.cjs +5 -3
- package/dist/StatusBar.d.cts +5 -17
- package/dist/StatusBar.d.ts +5 -17
- package/dist/StatusBar.js +3 -1
- package/dist/{Surface-UDDN3DGL.css → Surface-CTN775GD.css} +10 -10
- package/dist/Surface.cjs +6 -5
- package/dist/Surface.d.cts +10 -1
- package/dist/Surface.d.ts +10 -1
- package/dist/Surface.js +4 -3
- package/dist/{Switch-COAQIOMH.css → Switch-TATU3LPB.css} +16 -8
- package/dist/Switch.cjs +4 -2
- package/dist/Switch.d.cts +10 -4
- package/dist/Switch.d.ts +10 -4
- package/dist/Switch.js +3 -1
- package/dist/{Table-IWHIIGRJ.css → Table-W4HPZ7MZ.css} +78 -53
- package/dist/Table.cjs +14 -10
- package/dist/Table.d.cts +32 -3
- package/dist/Table.d.ts +32 -3
- package/dist/Table.js +13 -9
- package/dist/{TablePro-3NGWERWT.css → TablePro-WYE6TXWJ.css} +5 -5
- package/dist/TablePro.cjs +15 -11
- package/dist/TablePro.d.cts +1 -0
- package/dist/TablePro.d.ts +1 -0
- package/dist/TablePro.js +14 -10
- package/dist/{Tabs-X5U5PCPV.css → Tabs-A3IG6UZ6.css} +10 -10
- package/dist/Tabs.cjs +4 -2
- package/dist/Tabs.d.cts +2 -2
- package/dist/Tabs.d.ts +2 -2
- package/dist/Tabs.js +3 -1
- package/dist/Tag-5GIZLRAH.css +42 -0
- package/dist/Tag.cjs +5 -3
- package/dist/Tag.d.cts +2 -2
- package/dist/Tag.d.ts +2 -2
- package/dist/Tag.js +4 -2
- package/dist/{Textarea-YHWKHIFE.css → Textarea-ZGHBZNLX.css} +10 -10
- package/dist/Textarea.cjs +6 -4
- package/dist/Textarea.d.cts +2 -4
- package/dist/Textarea.d.ts +2 -4
- package/dist/Textarea.js +4 -2
- package/dist/Theme-CLedeJ_C.d.ts +193 -0
- package/dist/Theme-uQq2B0Yk.d.cts +193 -0
- package/dist/Theme.cjs +57 -11
- package/dist/Theme.d.cts +26 -145
- package/dist/Theme.d.ts +26 -145
- package/dist/Theme.js +3 -1
- package/dist/{ThemePanel-TEHB2JCQ.css → ThemePanel-EHNAS4RN.css} +52 -52
- package/dist/ThemePanel.cjs +17 -15
- package/dist/ThemePanel.d.cts +3 -13
- package/dist/ThemePanel.d.ts +3 -13
- package/dist/ThemePanel.js +14 -12
- package/dist/{TimePicker-ZBJOXH3U.css → TimePicker-WJ3FSK6A.css} +17 -17
- package/dist/TimePicker.cjs +10 -7
- package/dist/TimePicker.d.cts +2 -8
- package/dist/TimePicker.d.ts +2 -8
- package/dist/TimePicker.js +9 -6
- package/dist/{Timeline-CRFZ3I2W.css → Timeline-FUFO2UGY.css} +28 -13
- package/dist/Timeline.cjs +5 -3
- package/dist/Timeline.d.cts +2 -7
- package/dist/Timeline.d.ts +2 -7
- package/dist/Timeline.js +4 -2
- package/dist/{Tooltip-5FSPJWLX.css → Tooltip-2EUNTOTW.css} +3 -3
- package/dist/Tooltip.cjs +6 -3
- package/dist/Tooltip.d.cts +2 -2
- package/dist/Tooltip.d.ts +2 -2
- package/dist/Tooltip.js +5 -2
- package/dist/{Typography-32QQLD4F.css → Typography-CQ2OZXQH.css} +105 -42
- package/dist/Typography.cjs +11 -8
- package/dist/Typography.d.cts +12 -36
- package/dist/Typography.d.ts +12 -36
- package/dist/Typography.js +6 -3
- package/dist/chunk-2A4GYSN4.js +294 -0
- package/dist/{chunk-QMX67CVT.cjs → chunk-2AUXUZ3Z.cjs} +56 -31
- package/dist/chunk-2BIOTRQC.js +40 -0
- package/dist/{chunk-A6O25EP2.js → chunk-2HIN5NFM.js} +14 -6
- package/dist/{chunk-I7TOBKJO.js → chunk-3DKFS44V.js} +84 -23
- package/dist/{chunk-E22OIVYP.js → chunk-3EHJ5QI3.js} +202 -69
- package/dist/{chunk-X5MYHDEQ.cjs → chunk-3EMWDDWK.cjs} +372 -117
- package/dist/chunk-3F424R5P.js +143 -0
- package/dist/chunk-3IZZBM56.js +269 -0
- package/dist/{chunk-DUFRASGO.js → chunk-3QXP2ZNP.js} +18 -23
- package/dist/{chunk-5QEI7GGA.cjs → chunk-434Y2JVW.cjs} +60 -27
- package/dist/{chunk-SOCYOUGM.js → chunk-4SKHRPDH.js} +168 -64
- package/dist/{chunk-L6GIV5DQ.cjs → chunk-56I6ZKGU.cjs} +40 -22
- package/dist/{chunk-R3DTXVP2.js → chunk-5AXNUX3J.js} +8 -5
- package/dist/chunk-5CZA33BK.cjs +229 -0
- package/dist/{chunk-6K5YI4ZE.js → chunk-62VV5COT.js} +16 -6
- package/dist/chunk-6DKPJ5LV.cjs +294 -0
- package/dist/{chunk-OTSDPQPV.js → chunk-6RQJXSWN.js} +50 -30
- package/dist/{chunk-V5KUC5VH.cjs → chunk-77HU7JWK.cjs} +40 -13
- package/dist/chunk-7QAVPVMW.js +180 -0
- package/dist/chunk-7VLAHOA7.cjs +191 -0
- package/dist/chunk-ALAG4ZUH.js +72 -0
- package/dist/chunk-ARUN2DMD.js +39 -0
- package/dist/chunk-AUO2YYHB.js +248 -0
- package/dist/{chunk-6MEOLYNQ.js → chunk-AURYNA6G.js} +6 -5
- package/dist/chunk-BIPOXOHP.cjs +287 -0
- package/dist/{chunk-V5SQOZPF.js → chunk-BJDQVVCG.js} +38 -20
- package/dist/{chunk-BVQOJKRX.js → chunk-BKW5PXEO.js} +115 -72
- package/dist/{chunk-UW57F3UO.cjs → chunk-D7YSY5RZ.cjs} +208 -75
- package/dist/chunk-DRDDQCDD.js +322 -0
- package/dist/chunk-DU2DSERH.js +190 -0
- package/dist/{chunk-PSQ3HNZP.cjs → chunk-E66PSVBU.cjs} +106 -19
- package/dist/{chunk-UGAN4BBW.js → chunk-EA3NZBCZ.js} +251 -125
- package/dist/chunk-EAUB6FEN.js +262 -0
- package/dist/chunk-EE5KXDRK.cjs +1223 -0
- package/dist/chunk-EE7IJ3MB.js +1 -0
- package/dist/{chunk-NXBFEIUX.cjs → chunk-ENFLP7SN.cjs} +255 -129
- package/dist/chunk-EUTK2ZRJ.cjs +61 -0
- package/dist/chunk-F7WUCOBP.cjs +828 -0
- package/dist/{chunk-YB3IWIOJ.cjs → chunk-FJB3243S.cjs} +18 -23
- package/dist/chunk-FKCPSVC4.cjs +188 -0
- package/dist/chunk-FMUHLIHB.cjs +94 -0
- package/dist/chunk-FY73C7JK.js +520 -0
- package/dist/{chunk-6EOSMK34.cjs → chunk-G5LCOBOT.cjs} +20 -1
- package/dist/{chunk-5ERD3W24.cjs → chunk-GFKWSDD6.cjs} +18 -8
- package/dist/{chunk-T2O4DTDE.cjs → chunk-GTFP7HA3.cjs} +58 -32
- package/dist/chunk-HQFKXTX6.js +60 -0
- package/dist/chunk-HSDMJUB6.cjs +319 -0
- package/dist/chunk-HVPUGYBY.js +166 -0
- package/dist/chunk-HYHBCHFM.cjs +167 -0
- package/dist/chunk-HYJSMFZA.cjs +2 -0
- package/dist/chunk-I4YPBAQ5.js +163 -0
- package/dist/{chunk-IPSNC5VZ.js → chunk-JHM7MN3G.js} +15 -7
- package/dist/{chunk-4ACCOYBY.cjs → chunk-JINKQT6H.cjs} +20 -8
- package/dist/{chunk-6Q76VLCE.cjs → chunk-JKUXA3U6.cjs} +50 -30
- package/dist/{chunk-D7GK6H6V.js → chunk-K5HGHOG7.js} +50 -21
- package/dist/chunk-KATJAJUU.js +78 -0
- package/dist/chunk-KCDOC3HS.cjs +100 -0
- package/dist/{chunk-M4NJTJKV.cjs → chunk-LDX6Q6RK.cjs} +8 -5
- package/dist/chunk-LEDESWNL.js +83 -0
- package/dist/chunk-LG62MPMU.cjs +213 -0
- package/dist/{chunk-7NTTRKNT.js → chunk-LJVQQEME.js} +54 -28
- package/dist/chunk-LOWTSOWT.js +199 -0
- package/dist/{chunk-FDZG27IG.js → chunk-LQMOYVQF.js} +57 -32
- package/dist/{chunk-P2OQTJZP.cjs → chunk-MCDW3VKZ.cjs} +17 -6
- package/dist/{chunk-BT2RXFT4.cjs → chunk-MUZQWIMR.cjs} +121 -78
- package/dist/chunk-NRJXZPZR.cjs +351 -0
- package/dist/chunk-O6G3F5L4.js +311 -0
- package/dist/{chunk-3VSHGM54.js → chunk-OLYSSZHP.js} +126 -68
- package/dist/{chunk-A4Z7PLHV.cjs → chunk-PIJV2FHO.cjs} +135 -77
- package/dist/{chunk-FYSXJXNW.js → chunk-PQOBBASY.js} +10 -9
- package/dist/chunk-Q565GDVK.cjs +205 -0
- package/dist/{chunk-FDUQPAQE.cjs → chunk-Q5HLC56A.cjs} +122 -28
- package/dist/chunk-QDCPVI3S.cjs +333 -0
- package/dist/{chunk-ZR4IMROK.js → chunk-QDMFXRPI.js} +122 -28
- package/dist/chunk-QDY56GGO.js +234 -0
- package/dist/{chunk-4KDABJSY.cjs → chunk-QNQSNVCU.cjs} +86 -25
- package/dist/chunk-QYPA77OI.cjs +55 -0
- package/dist/chunk-RAK6CENJ.js +83 -0
- package/dist/{chunk-BW76ENTW.cjs → chunk-RERMZNF3.cjs} +10 -9
- package/dist/chunk-RMGFRAZ2.cjs +270 -0
- package/dist/chunk-RPO7657K.js +228 -0
- package/dist/chunk-STQDKMS5.cjs +288 -0
- package/dist/{chunk-HG6YS4I7.js → chunk-SXLRWYQQ.js} +71 -24
- package/dist/{chunk-SW2HMNCA.cjs → chunk-T4RR6NVU.cjs} +17 -9
- package/dist/{chunk-6SPMHY54.js → chunk-TSL3F2K3.js} +20 -2
- package/dist/{chunk-BNY2NVTL.cjs → chunk-TYZ6L7E6.cjs} +48 -28
- package/dist/{chunk-MOZ52KN6.js → chunk-U3SG2YT2.js} +39 -12
- package/dist/{chunk-POU3W5J3.cjs → chunk-U5YYOOLC.cjs} +13 -6
- package/dist/chunk-U7VEPMCX.cjs +221 -0
- package/dist/chunk-UE4HFGJ6.js +264 -0
- package/dist/chunk-ULTDRMGN.js +1175 -0
- package/dist/{chunk-6HF6UF73.js → chunk-UQI4R32R.js} +368 -113
- package/dist/{chunk-MWEHU7YO.cjs → chunk-VA3JWOAB.cjs} +172 -68
- package/dist/chunk-VQEMMJHC.js +33 -0
- package/dist/{chunk-S2ZGXBUH.cjs → chunk-VVRXNGYL.cjs} +218 -42
- package/dist/{chunk-JMFHL7GN.cjs → chunk-VX6MZO4K.cjs} +100 -22
- package/dist/{chunk-2FOC3D6X.js → chunk-WMZV7PNO.js} +19 -7
- package/dist/{chunk-MYW7LNB2.cjs → chunk-WROF2PVG.cjs} +40 -21
- package/dist/chunk-XZXY3XCL.cjs +105 -0
- package/dist/chunk-Y22PTPA7.js +800 -0
- package/dist/chunk-Y2MT6PI6.js +207 -0
- package/dist/chunk-YAYSXZZZ.cjs +82 -0
- package/dist/{chunk-6LN4VVX7.js → chunk-YBGMTQ2V.js} +48 -28
- package/dist/{chunk-TYLDISRK.js → chunk-YKHIIC7M.js} +13 -6
- package/dist/{chunk-3VXGZ3SJ.js → chunk-YPMQC5HX.js} +57 -24
- package/dist/{chunk-UWL6DRZW.cjs → chunk-YUJ7Z6N2.cjs} +74 -27
- package/dist/{chunk-LEMMFFEY.cjs → chunk-ZEYK37VW.cjs} +15 -7
- package/dist/{chunk-ES7AWMNH.cjs → chunk-ZHVR4YPB.cjs} +6 -5
- package/dist/{chunk-MPOO5VPW.cjs → chunk-ZYIE3BH7.cjs} +50 -21
- package/dist/componentThemeTypes-Jt4B5aU8.d.cts +77 -0
- package/dist/componentThemeTypes-Jt4B5aU8.d.ts +77 -0
- package/dist/index.cjs +253 -206
- package/dist/index.d.cts +12 -10
- package/dist/index.d.ts +12 -10
- package/dist/index.js +56 -53
- package/dist/styles.css +1697 -692
- package/dist/{tokens-RYJ3DFTU.css → tokens-CEJVVA3G.css} +10 -0
- package/dist/tokens.css +10 -0
- package/docs/llms/appshell.md +9 -6
- package/docs/llms/autocomplete.md +8 -2
- package/docs/llms/avatar.md +2 -0
- package/docs/llms/badge.md +2 -0
- package/docs/llms/calendar.md +7 -2
- package/docs/llms/card.md +20 -1
- package/docs/llms/cascader.md +27 -5
- package/docs/llms/checkbox.md +13 -0
- package/docs/llms/collapse.md +13 -5
- package/docs/llms/colorpicker.md +4 -3
- package/docs/llms/commandpalette.md +10 -2
- package/docs/llms/contextmenu.md +14 -2
- package/docs/llms/datepicker.md +7 -0
- package/docs/llms/datetimepicker.md +7 -0
- package/docs/llms/drawer.md +20 -4
- package/docs/llms/form.md +5 -2
- package/docs/llms/icon.md +25 -1
- package/docs/llms/image.md +22 -1
- package/docs/llms/list.md +11 -0
- package/docs/llms/message.md +31 -8
- package/docs/llms/modal.md +20 -8
- package/docs/llms/pagination.md +12 -4
- package/docs/llms/popover.md +11 -1
- package/docs/llms/progress.md +1 -0
- package/docs/llms/radio.md +13 -0
- package/docs/llms/select.md +29 -2
- package/docs/llms/sidebar.md +24 -0
- package/docs/llms/slider.md +5 -2
- package/docs/llms/splitter.md +5 -2
- package/docs/llms/switch.md +13 -0
- package/docs/llms/table.md +7 -8
- package/docs/llms/theme.md +83 -28
- package/docs/llms/themepanel.md +1 -0
- package/docs/llms/titlebar.md +1 -0
- package/docs/llms/tooltip.md +7 -2
- package/docs/llms/typography.md +27 -3
- package/docs/llms/windowcontrols.md +11 -3
- package/docs/llms.md +2 -2
- package/package.json +212 -2
- package/dist/Avatar-TNPOHVY5.css +0 -40
- package/dist/Badge-DPGLV3D3.css +0 -22
- package/dist/Card-W3ATFUJW.css +0 -77
- package/dist/Cascader-ANEQUPMI.css +0 -150
- package/dist/Checkbox-EDNPZRIP.css +0 -42
- package/dist/List-LSMU5QAC.css +0 -26
- package/dist/Pagination-YSZSNFHG.css +0 -68
- package/dist/Progress-CZNXCYGW.css +0 -80
- package/dist/Slider-UM2IZZBH.css +0 -127
- package/dist/Tag-G2XWAL7A.css +0 -42
- package/dist/chunk-262ED6WQ.cjs +0 -88
- package/dist/chunk-4HJBF4GY.js +0 -218
- package/dist/chunk-4TTRHEGM.cjs +0 -217
- package/dist/chunk-5A6KSYWA.cjs +0 -67
- package/dist/chunk-5MOYKVB7.js +0 -192
- package/dist/chunk-7IO3EOHN.cjs +0 -200
- package/dist/chunk-7QXP6DXC.cjs +0 -129
- package/dist/chunk-AAPZLBHQ.js +0 -165
- package/dist/chunk-ARUPS7JH.js +0 -66
- package/dist/chunk-ATUPFAPZ.cjs +0 -76
- package/dist/chunk-CFZVWY5N.js +0 -178
- package/dist/chunk-DSLYWX4O.js +0 -25
- package/dist/chunk-EQ4FPOQQ.js +0 -253
- package/dist/chunk-FQJY4D3T.cjs +0 -47
- package/dist/chunk-GNV6W4BN.js +0 -495
- package/dist/chunk-HBO7ZDEQ.js +0 -29
- package/dist/chunk-I777JTTG.js +0 -150
- package/dist/chunk-IOAOG5L7.js +0 -191
- package/dist/chunk-IOUAZYK2.cjs +0 -116
- package/dist/chunk-IZHH6CVY.js +0 -123
- package/dist/chunk-JFL2WMJZ.js +0 -106
- package/dist/chunk-KMPFESEV.js +0 -41
- package/dist/chunk-KYV75JPQ.js +0 -147
- package/dist/chunk-N7OQNSII.cjs +0 -145
- package/dist/chunk-P64NPZBG.js +0 -113
- package/dist/chunk-PKNRTFNE.cjs +0 -526
- package/dist/chunk-PU7VXDAS.js +0 -64
- package/dist/chunk-RFI5R42I.cjs +0 -138
- package/dist/chunk-RMFSX7DO.cjs +0 -281
- package/dist/chunk-RR2BKV65.js +0 -39
- package/dist/chunk-RSSOX4RQ.cjs +0 -240
- package/dist/chunk-RZEFKXL3.cjs +0 -104
- package/dist/chunk-S7IHWY24.js +0 -81
- package/dist/chunk-SOQ56ZI2.cjs +0 -49
- package/dist/chunk-TBNPJPYG.cjs +0 -61
- package/dist/chunk-TJECLLN4.js +0 -344
- package/dist/chunk-ULUD3FED.cjs +0 -138
- package/dist/chunk-VA2I7ZAL.cjs +0 -190
- package/dist/chunk-VS3I5OKA.cjs +0 -214
- package/dist/chunk-WMGMIE2D.js +0 -113
- package/dist/chunk-X7XP6GEI.cjs +0 -63
- package/dist/chunk-XCXUGHDF.js +0 -91
- package/dist/chunk-YAFDVNXT.js +0 -27
- package/dist/chunk-ZD3L4V3H.js +0 -54
- package/dist/chunk-ZTCRD2FL.js +0 -45
|
@@ -0,0 +1,207 @@
|
|
|
1
|
+
import { Spin } from './chunk-PQOBBASY.js';
|
|
2
|
+
import { Button } from './chunk-JHM7MN3G.js';
|
|
3
|
+
import { InternalComponentThemePart, withComponentTheme } from './chunk-DRDDQCDD.js';
|
|
4
|
+
import './tokens-CEJVVA3G.css';
|
|
5
|
+
import './shared-NJHRNLRH.css';
|
|
6
|
+
import './Card-VPMTWAWZ.css';
|
|
7
|
+
import * as React from 'react';
|
|
8
|
+
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
9
|
+
|
|
10
|
+
var CARD_INTERACTIVE_SELECTOR = [
|
|
11
|
+
"a[href]",
|
|
12
|
+
"button",
|
|
13
|
+
"input",
|
|
14
|
+
"select",
|
|
15
|
+
"textarea",
|
|
16
|
+
"[role='button']",
|
|
17
|
+
"[role='link']",
|
|
18
|
+
"[contenteditable='true']"
|
|
19
|
+
].join(",");
|
|
20
|
+
function isNestedCardControl(target, currentTarget) {
|
|
21
|
+
if (!(target instanceof Element)) return false;
|
|
22
|
+
const control = target.closest(CARD_INTERACTIVE_SELECTOR);
|
|
23
|
+
return !!control && !control.classList.contains("card-interactive-control") && control !== currentTarget && currentTarget.contains(control);
|
|
24
|
+
}
|
|
25
|
+
function getCardText(node) {
|
|
26
|
+
return React.Children.toArray(node).map((child) => {
|
|
27
|
+
if (typeof child === "string" || typeof child === "number") return String(child);
|
|
28
|
+
if (React.isValidElement(child)) {
|
|
29
|
+
return getCardText(child.props.children);
|
|
30
|
+
}
|
|
31
|
+
return "";
|
|
32
|
+
}).filter(Boolean).join(" ").trim();
|
|
33
|
+
}
|
|
34
|
+
function hasCardControlNode(node) {
|
|
35
|
+
return React.Children.toArray(node).some((child) => {
|
|
36
|
+
if (!React.isValidElement(child)) return false;
|
|
37
|
+
const type = child.type;
|
|
38
|
+
const displayName = typeof type !== "string" && type != null ? type.displayName : void 0;
|
|
39
|
+
const interactiveType = typeof type === "string" && ["a", "button", "input", "select", "textarea"].includes(type);
|
|
40
|
+
if (interactiveType || displayName === "Button" || displayName === "IconButton") return true;
|
|
41
|
+
if (child.props.role === "button" || child.props.role === "link") return true;
|
|
42
|
+
return hasCardControlNode(child.props.children);
|
|
43
|
+
});
|
|
44
|
+
}
|
|
45
|
+
function handleCardControlKeyDown(event) {
|
|
46
|
+
if (event.key !== "Enter" && event.key !== " ") return;
|
|
47
|
+
event.preventDefault();
|
|
48
|
+
event.currentTarget.click();
|
|
49
|
+
}
|
|
50
|
+
var CardBase = React.forwardRef(
|
|
51
|
+
({
|
|
52
|
+
variant = "raised",
|
|
53
|
+
padding = "md",
|
|
54
|
+
hoverable,
|
|
55
|
+
interactive,
|
|
56
|
+
disabled = false,
|
|
57
|
+
title,
|
|
58
|
+
description,
|
|
59
|
+
actions,
|
|
60
|
+
background,
|
|
61
|
+
fill = false,
|
|
62
|
+
bodyLayout,
|
|
63
|
+
bodyClassName = "",
|
|
64
|
+
bodyStyle,
|
|
65
|
+
bodyProps,
|
|
66
|
+
loading = false,
|
|
67
|
+
loadingOverlay,
|
|
68
|
+
className = "",
|
|
69
|
+
style,
|
|
70
|
+
children,
|
|
71
|
+
onClick,
|
|
72
|
+
onKeyDown,
|
|
73
|
+
onClickCapture,
|
|
74
|
+
onKeyDownCapture,
|
|
75
|
+
role,
|
|
76
|
+
tabIndex,
|
|
77
|
+
"aria-label": ariaLabel,
|
|
78
|
+
"aria-labelledby": ariaLabelledBy,
|
|
79
|
+
...rest
|
|
80
|
+
}, ref) => {
|
|
81
|
+
const contentRef = React.useRef(null);
|
|
82
|
+
const headRef = React.useRef(null);
|
|
83
|
+
const actionsRef = React.useRef(null);
|
|
84
|
+
const isInteractive = interactive ?? !!onClick;
|
|
85
|
+
React.useEffect(() => {
|
|
86
|
+
const isolated = disabled || loading;
|
|
87
|
+
if (contentRef.current) contentRef.current.inert = isolated;
|
|
88
|
+
if (headRef.current) headRef.current.inert = isolated;
|
|
89
|
+
if (actionsRef.current) actionsRef.current.inert = isolated;
|
|
90
|
+
}, [disabled, loading]);
|
|
91
|
+
const resolvedBodyLayout = bodyLayout ?? (fill ? "fill" : "block");
|
|
92
|
+
const cls = [
|
|
93
|
+
"card",
|
|
94
|
+
variant,
|
|
95
|
+
padding !== "md" && `pad-${padding}`,
|
|
96
|
+
fill && "fill",
|
|
97
|
+
hoverable && !disabled && !loading && "hoverable",
|
|
98
|
+
isInteractive && "interactive",
|
|
99
|
+
disabled && "disabled",
|
|
100
|
+
loading && "loading",
|
|
101
|
+
className
|
|
102
|
+
].filter(Boolean).join(" ");
|
|
103
|
+
const bodyCls = [
|
|
104
|
+
"card-body",
|
|
105
|
+
resolvedBodyLayout !== "block" && `body-${resolvedBodyLayout}`,
|
|
106
|
+
loading && "loading",
|
|
107
|
+
bodyClassName
|
|
108
|
+
].filter(Boolean).join(" ");
|
|
109
|
+
const cardStyle = background ? {
|
|
110
|
+
"--card-bg": background,
|
|
111
|
+
...style
|
|
112
|
+
} : style;
|
|
113
|
+
const bodyLabel = hasCardControlNode(children) ? "" : getCardText(children);
|
|
114
|
+
const interactiveLabel = ariaLabel ?? (getCardText(title ?? description) || bodyLabel || "\u53EF\u64CD\u4F5C\u5361\u7247");
|
|
115
|
+
return /* @__PURE__ */ jsxs(
|
|
116
|
+
"div",
|
|
117
|
+
{
|
|
118
|
+
ref: (node) => {
|
|
119
|
+
if (typeof ref === "function") ref(node);
|
|
120
|
+
else if (ref) ref.current = node;
|
|
121
|
+
},
|
|
122
|
+
className: cls,
|
|
123
|
+
style: cardStyle,
|
|
124
|
+
role,
|
|
125
|
+
tabIndex: isInteractive ? void 0 : tabIndex,
|
|
126
|
+
"aria-label": role ? ariaLabel : void 0,
|
|
127
|
+
"aria-labelledby": role ? ariaLabelledBy : void 0,
|
|
128
|
+
"aria-disabled": isInteractive && (disabled || loading) ? true : void 0,
|
|
129
|
+
"aria-busy": loading || void 0,
|
|
130
|
+
onClickCapture: (event) => {
|
|
131
|
+
if (disabled || loading) {
|
|
132
|
+
event.preventDefault();
|
|
133
|
+
event.stopPropagation();
|
|
134
|
+
return;
|
|
135
|
+
}
|
|
136
|
+
onClickCapture?.(event);
|
|
137
|
+
},
|
|
138
|
+
onKeyDownCapture: (event) => {
|
|
139
|
+
if (disabled || loading) {
|
|
140
|
+
event.preventDefault();
|
|
141
|
+
event.stopPropagation();
|
|
142
|
+
return;
|
|
143
|
+
}
|
|
144
|
+
onKeyDownCapture?.(event);
|
|
145
|
+
},
|
|
146
|
+
onClick: (event) => {
|
|
147
|
+
if (disabled || loading) {
|
|
148
|
+
event.preventDefault();
|
|
149
|
+
return;
|
|
150
|
+
}
|
|
151
|
+
if (isNestedCardControl(event.target, event.currentTarget)) return;
|
|
152
|
+
onClick?.(event);
|
|
153
|
+
},
|
|
154
|
+
onKeyDown: (event) => {
|
|
155
|
+
onKeyDown?.(event);
|
|
156
|
+
if (isInteractive && !disabled && !loading && !event.defaultPrevented && event.target === event.currentTarget && (event.key === "Enter" || event.key === " ")) {
|
|
157
|
+
event.preventDefault();
|
|
158
|
+
event.currentTarget.click();
|
|
159
|
+
}
|
|
160
|
+
},
|
|
161
|
+
...rest,
|
|
162
|
+
children: [
|
|
163
|
+
isInteractive && /* @__PURE__ */ jsx(InternalComponentThemePart, { components: "Button", children: /* @__PURE__ */ jsx(
|
|
164
|
+
Button,
|
|
165
|
+
{
|
|
166
|
+
type: "button",
|
|
167
|
+
variant: "ghost",
|
|
168
|
+
className: "card-interactive-control",
|
|
169
|
+
"aria-label": interactiveLabel,
|
|
170
|
+
"aria-labelledby": ariaLabelledBy,
|
|
171
|
+
tabIndex: disabled || loading ? -1 : tabIndex ?? 0,
|
|
172
|
+
disabled: disabled || loading,
|
|
173
|
+
onKeyDown: handleCardControlKeyDown
|
|
174
|
+
}
|
|
175
|
+
) }),
|
|
176
|
+
(title || description || actions) && /* @__PURE__ */ jsxs("div", { ref: headRef, className: "card-head", children: [
|
|
177
|
+
/* @__PURE__ */ jsxs("div", { className: "card-titles", children: [
|
|
178
|
+
title && /* @__PURE__ */ jsx("div", { className: "card-title", children: title }),
|
|
179
|
+
description && /* @__PURE__ */ jsx("div", { className: "card-desc", children: description })
|
|
180
|
+
] }),
|
|
181
|
+
actions && /* @__PURE__ */ jsx("div", { ref: actionsRef, className: "card-actions", children: actions })
|
|
182
|
+
] }),
|
|
183
|
+
/* @__PURE__ */ jsxs("div", { ...bodyProps, className: bodyCls, style: bodyStyle, children: [
|
|
184
|
+
/* @__PURE__ */ jsx(
|
|
185
|
+
"div",
|
|
186
|
+
{
|
|
187
|
+
ref: contentRef,
|
|
188
|
+
className: "card-body-content",
|
|
189
|
+
"aria-hidden": loading || void 0,
|
|
190
|
+
children
|
|
191
|
+
}
|
|
192
|
+
),
|
|
193
|
+
loading && /* @__PURE__ */ jsx("div", { className: "card-loading-overlay", "aria-live": "polite", children: loadingOverlay ?? /* @__PURE__ */ jsx(InternalComponentThemePart, { components: "Spin", children: /* @__PURE__ */ jsx(Spin, { tip: "\u52A0\u8F7D\u4E2D..." }) }) })
|
|
194
|
+
] })
|
|
195
|
+
]
|
|
196
|
+
}
|
|
197
|
+
);
|
|
198
|
+
}
|
|
199
|
+
);
|
|
200
|
+
CardBase.displayName = "Card";
|
|
201
|
+
var Card = withComponentTheme(
|
|
202
|
+
CardBase,
|
|
203
|
+
"Card",
|
|
204
|
+
["card", "button", "spin"]
|
|
205
|
+
);
|
|
206
|
+
|
|
207
|
+
export { Card };
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var chunkNRJXZPZR_cjs = require('./chunk-NRJXZPZR.cjs');
|
|
4
|
+
require('./tokens-CEJVVA3G.css');
|
|
5
|
+
require('./shared-NJHRNLRH.css');
|
|
6
|
+
require('./Progress-33WE2NI7.css');
|
|
7
|
+
var React = require('react');
|
|
8
|
+
var jsxRuntime = require('react/jsx-runtime');
|
|
9
|
+
|
|
10
|
+
function _interopNamespace(e) {
|
|
11
|
+
if (e && e.__esModule) return e;
|
|
12
|
+
var n = Object.create(null);
|
|
13
|
+
if (e) {
|
|
14
|
+
Object.keys(e).forEach(function (k) {
|
|
15
|
+
if (k !== 'default') {
|
|
16
|
+
var d = Object.getOwnPropertyDescriptor(e, k);
|
|
17
|
+
Object.defineProperty(n, k, d.get ? d : {
|
|
18
|
+
enumerable: true,
|
|
19
|
+
get: function () { return e[k]; }
|
|
20
|
+
});
|
|
21
|
+
}
|
|
22
|
+
});
|
|
23
|
+
}
|
|
24
|
+
n.default = e;
|
|
25
|
+
return Object.freeze(n);
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
var React__namespace = /*#__PURE__*/_interopNamespace(React);
|
|
29
|
+
|
|
30
|
+
var ProgressBase = React__namespace.forwardRef(({
|
|
31
|
+
value,
|
|
32
|
+
max = 100,
|
|
33
|
+
label,
|
|
34
|
+
showValue,
|
|
35
|
+
tone = "accent",
|
|
36
|
+
color,
|
|
37
|
+
size = "md",
|
|
38
|
+
indeterminate = false,
|
|
39
|
+
className = "",
|
|
40
|
+
style,
|
|
41
|
+
...rest
|
|
42
|
+
}, ref) => {
|
|
43
|
+
const safeMax = Number.isFinite(max) && max > 0 ? max : 100;
|
|
44
|
+
const safeValue = Number.isFinite(value) ? value : 0;
|
|
45
|
+
const normalizedValue = Math.max(0, Math.min(safeMax, safeValue));
|
|
46
|
+
const pct = normalizedValue / safeMax * 100;
|
|
47
|
+
const rootStyle = {
|
|
48
|
+
...color ? {
|
|
49
|
+
["--progress-fill"]: color,
|
|
50
|
+
["--progress-fill-glow"]: `color-mix(in oklch, ${color} 35%, transparent)`
|
|
51
|
+
} : null,
|
|
52
|
+
...style
|
|
53
|
+
};
|
|
54
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
55
|
+
"div",
|
|
56
|
+
{
|
|
57
|
+
ref,
|
|
58
|
+
className: `progress ${size} ${tone} ${indeterminate ? "indeterminate" : ""} ${className}`,
|
|
59
|
+
style: rootStyle,
|
|
60
|
+
role: "progressbar",
|
|
61
|
+
"aria-valuemin": 0,
|
|
62
|
+
"aria-valuemax": safeMax,
|
|
63
|
+
"aria-valuenow": indeterminate ? void 0 : normalizedValue,
|
|
64
|
+
"aria-valuetext": indeterminate ? "\u52A0\u8F7D\u4E2D" : void 0,
|
|
65
|
+
...rest,
|
|
66
|
+
children: [
|
|
67
|
+
(label || showValue) && /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "progress-label", children: [
|
|
68
|
+
label ? /* @__PURE__ */ jsxRuntime.jsx("span", { children: label }) : /* @__PURE__ */ jsxRuntime.jsx("span", {}),
|
|
69
|
+
showValue && !indeterminate && /* @__PURE__ */ jsxRuntime.jsxs("span", { className: "v", children: [
|
|
70
|
+
Math.round(pct),
|
|
71
|
+
"%"
|
|
72
|
+
] })
|
|
73
|
+
] }),
|
|
74
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "progress-track", children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "progress-bar", style: { width: indeterminate ? "35%" : `${pct}%` } }) })
|
|
75
|
+
]
|
|
76
|
+
}
|
|
77
|
+
);
|
|
78
|
+
});
|
|
79
|
+
ProgressBase.displayName = "Progress";
|
|
80
|
+
var Progress = chunkNRJXZPZR_cjs.withComponentTheme(ProgressBase, "Progress", "progress");
|
|
81
|
+
|
|
82
|
+
exports.Progress = Progress;
|
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
import { Icon } from './chunk-
|
|
2
|
-
import './
|
|
1
|
+
import { Icon } from './chunk-LQMOYVQF.js';
|
|
2
|
+
import { withComponentTheme } from './chunk-DRDDQCDD.js';
|
|
3
|
+
import './tokens-CEJVVA3G.css';
|
|
3
4
|
import './shared-NJHRNLRH.css';
|
|
4
|
-
import './Collapse-
|
|
5
|
+
import './Collapse-BTSBHBSY.css';
|
|
5
6
|
import * as React from 'react';
|
|
6
7
|
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
7
8
|
|
|
8
|
-
var CollapsePanel = ({ open, children }) => {
|
|
9
|
+
var CollapsePanel = ({ open, id, labelledBy, children }) => {
|
|
9
10
|
const innerRef = React.useRef(null);
|
|
10
11
|
const [h, setH] = React.useState(0);
|
|
11
12
|
const [animated, setAnimated] = React.useState(false);
|
|
@@ -18,21 +19,28 @@ var CollapsePanel = ({ open, children }) => {
|
|
|
18
19
|
return () => ro.disconnect();
|
|
19
20
|
}, []);
|
|
20
21
|
React.useEffect(() => {
|
|
21
|
-
const
|
|
22
|
-
return () => cancelAnimationFrame(
|
|
22
|
+
const id2 = requestAnimationFrame(() => setAnimated(true));
|
|
23
|
+
return () => cancelAnimationFrame(id2);
|
|
23
24
|
}, []);
|
|
24
25
|
return /* @__PURE__ */ jsx(
|
|
25
26
|
"div",
|
|
26
27
|
{
|
|
28
|
+
id,
|
|
27
29
|
className: "collapse-body",
|
|
28
30
|
style: { maxHeight: open ? h : 0, transition: animated ? void 0 : "none" },
|
|
29
31
|
"aria-hidden": !open,
|
|
32
|
+
"aria-labelledby": labelledBy,
|
|
33
|
+
role: "region",
|
|
34
|
+
...!open ? { inert: "" } : {},
|
|
30
35
|
children: /* @__PURE__ */ jsx("div", { ref: innerRef, className: "collapse-body-inner", children })
|
|
31
36
|
}
|
|
32
37
|
);
|
|
33
38
|
};
|
|
34
|
-
var normalizeKeys = (value
|
|
35
|
-
|
|
39
|
+
var normalizeKeys = (value, singleOpen = false) => {
|
|
40
|
+
const keys = value == null ? [] : Array.isArray(value) ? value : [value];
|
|
41
|
+
return singleOpen ? keys.slice(0, 1) : keys;
|
|
42
|
+
};
|
|
43
|
+
var CollapseBase = React.forwardRef(({
|
|
36
44
|
items,
|
|
37
45
|
accordion = false,
|
|
38
46
|
multiple = true,
|
|
@@ -45,10 +53,14 @@ var Collapse = React.forwardRef(({
|
|
|
45
53
|
className = "",
|
|
46
54
|
...rest
|
|
47
55
|
}, ref) => {
|
|
48
|
-
const
|
|
49
|
-
const isControlled = activeKey !== void 0;
|
|
50
|
-
const keys = isControlled ? normalizeKeys(activeKey) : inner;
|
|
56
|
+
const baseId = React.useId();
|
|
51
57
|
const singleOpen = accordion || !multiple;
|
|
58
|
+
const [inner, setInner] = React.useState(() => normalizeKeys(defaultActiveKey, singleOpen));
|
|
59
|
+
const isControlled = activeKey !== void 0;
|
|
60
|
+
const keys = normalizeKeys(isControlled ? activeKey : inner, singleOpen);
|
|
61
|
+
React.useEffect(() => {
|
|
62
|
+
if (!isControlled && singleOpen && inner.length > 1) setInner(inner.slice(0, 1));
|
|
63
|
+
}, [inner, isControlled, singleOpen]);
|
|
52
64
|
const toggle = (k, itemDisabled) => {
|
|
53
65
|
if (collapsible === "disabled" || itemDisabled) return;
|
|
54
66
|
const next = keys.includes(k) ? keys.filter((x) => x !== k) : singleOpen ? [k] : [...keys, k];
|
|
@@ -61,42 +73,49 @@ var Collapse = React.forwardRef(({
|
|
|
61
73
|
ref,
|
|
62
74
|
className: `collapse ${ghost ? "ghost" : ""} ${size} ${className}`,
|
|
63
75
|
...rest,
|
|
64
|
-
children: items.map((it) => {
|
|
76
|
+
children: items.map((it, index) => {
|
|
65
77
|
const open = keys.includes(it.key);
|
|
66
78
|
const isDisabled = it.disabled || collapsible === "disabled";
|
|
67
79
|
const headerClickable = collapsible === "header" && !isDisabled;
|
|
80
|
+
const headerId = `${baseId}-header-${index}`;
|
|
81
|
+
const panelId = `${baseId}-panel-${index}`;
|
|
68
82
|
return /* @__PURE__ */ jsxs(
|
|
69
83
|
"div",
|
|
70
84
|
{
|
|
71
85
|
className: `collapse-item ${open ? "open" : ""} ${isDisabled ? "disabled" : ""} ${collapsible === "icon" ? "icon-only" : ""}`,
|
|
72
86
|
children: [
|
|
73
|
-
/* @__PURE__ */ jsxs(
|
|
87
|
+
collapsible === "icon" ? /* @__PURE__ */ jsxs("div", { id: headerId, className: "collapse-head", children: [
|
|
88
|
+
/* @__PURE__ */ jsx("span", { children: it.label }),
|
|
89
|
+
/* @__PURE__ */ jsx(
|
|
90
|
+
"button",
|
|
91
|
+
{
|
|
92
|
+
type: "button",
|
|
93
|
+
className: "collapse-chev clickable",
|
|
94
|
+
disabled: isDisabled,
|
|
95
|
+
onClick: () => toggle(it.key, it.disabled),
|
|
96
|
+
"aria-expanded": open,
|
|
97
|
+
"aria-controls": panelId,
|
|
98
|
+
"aria-label": open ? "\u6536\u8D77\u9762\u677F" : "\u5C55\u5F00\u9762\u677F",
|
|
99
|
+
children: /* @__PURE__ */ jsx(Icon, { name: "chevDown", size: 16, "aria-hidden": true })
|
|
100
|
+
}
|
|
101
|
+
)
|
|
102
|
+
] }) : /* @__PURE__ */ jsxs(
|
|
74
103
|
"button",
|
|
75
104
|
{
|
|
105
|
+
id: headerId,
|
|
76
106
|
type: "button",
|
|
77
107
|
className: "collapse-head",
|
|
78
108
|
disabled: isDisabled,
|
|
79
109
|
onClick: () => headerClickable && toggle(it.key, it.disabled),
|
|
80
110
|
"aria-expanded": open,
|
|
111
|
+
"aria-controls": panelId,
|
|
81
112
|
children: [
|
|
82
113
|
/* @__PURE__ */ jsx("span", { children: it.label }),
|
|
83
|
-
/* @__PURE__ */ jsx(
|
|
84
|
-
"span",
|
|
85
|
-
{
|
|
86
|
-
className: `collapse-chev${collapsible === "icon" ? " clickable" : ""}`,
|
|
87
|
-
onClick: (e) => {
|
|
88
|
-
if (collapsible === "icon" && !isDisabled) {
|
|
89
|
-
e.stopPropagation();
|
|
90
|
-
toggle(it.key, it.disabled);
|
|
91
|
-
}
|
|
92
|
-
},
|
|
93
|
-
children: /* @__PURE__ */ jsx(Icon, { name: "chevDown", size: 16 })
|
|
94
|
-
}
|
|
95
|
-
)
|
|
114
|
+
/* @__PURE__ */ jsx("span", { className: "collapse-chev", "aria-hidden": true, children: /* @__PURE__ */ jsx(Icon, { name: "chevDown", size: 16 }) })
|
|
96
115
|
]
|
|
97
116
|
}
|
|
98
117
|
),
|
|
99
|
-
/* @__PURE__ */ jsx(CollapsePanel, { open, children: it.children })
|
|
118
|
+
/* @__PURE__ */ jsx(CollapsePanel, { open, id: panelId, labelledBy: headerId, children: it.children })
|
|
100
119
|
]
|
|
101
120
|
},
|
|
102
121
|
it.key
|
|
@@ -105,6 +124,7 @@ var Collapse = React.forwardRef(({
|
|
|
105
124
|
}
|
|
106
125
|
);
|
|
107
126
|
});
|
|
108
|
-
|
|
127
|
+
CollapseBase.displayName = "Collapse";
|
|
128
|
+
var Collapse = withComponentTheme(CollapseBase, "Collapse", "collapse");
|
|
109
129
|
|
|
110
130
|
export { Collapse };
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import './
|
|
1
|
+
import { withComponentTheme } from './chunk-DRDDQCDD.js';
|
|
2
|
+
import './tokens-CEJVVA3G.css';
|
|
2
3
|
import './shared-NJHRNLRH.css';
|
|
3
|
-
import './StatusBar-
|
|
4
|
+
import './StatusBar-TCGR3LXP.css';
|
|
4
5
|
import * as React from 'react';
|
|
5
6
|
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
6
7
|
|
|
7
|
-
|
|
8
|
-
var StatusBarItem = React.forwardRef(({
|
|
8
|
+
var StatusBarItemBase = React.forwardRef(({
|
|
9
9
|
icon,
|
|
10
10
|
tone = "default",
|
|
11
11
|
onClick,
|
|
@@ -26,13 +26,19 @@ var StatusBarItem = React.forwardRef(({
|
|
|
26
26
|
type: "button",
|
|
27
27
|
className: cls,
|
|
28
28
|
onClick,
|
|
29
|
+
...rest,
|
|
29
30
|
children: content
|
|
30
31
|
}
|
|
31
32
|
);
|
|
32
33
|
}
|
|
33
34
|
return /* @__PURE__ */ jsx("div", { ref, className: cls, ...rest, children: content });
|
|
34
35
|
});
|
|
35
|
-
|
|
36
|
+
StatusBarItemBase.displayName = "StatusBarItem";
|
|
37
|
+
var StatusBarItem = withComponentTheme(
|
|
38
|
+
StatusBarItemBase,
|
|
39
|
+
"StatusBarItem",
|
|
40
|
+
"status-bar"
|
|
41
|
+
);
|
|
36
42
|
var StatusBarBase = React.forwardRef(({
|
|
37
43
|
left,
|
|
38
44
|
center,
|
|
@@ -47,7 +53,8 @@ var StatusBarBase = React.forwardRef(({
|
|
|
47
53
|
right != null && /* @__PURE__ */ jsx("div", { className: "statusbar-section right", children: right })
|
|
48
54
|
] }));
|
|
49
55
|
StatusBarBase.displayName = "StatusBar";
|
|
50
|
-
var
|
|
56
|
+
var ThemedStatusBar = withComponentTheme(StatusBarBase, "StatusBar", "status-bar");
|
|
57
|
+
var StatusBar = ThemedStatusBar;
|
|
51
58
|
StatusBar.Item = StatusBarItem;
|
|
52
59
|
|
|
53
60
|
export { StatusBar, StatusBarItem };
|
|
@@ -1,11 +1,16 @@
|
|
|
1
|
-
import { Input } from './chunk-
|
|
2
|
-
import { Icon } from './chunk-
|
|
3
|
-
import './tokens-
|
|
1
|
+
import { InputThemeIdentityProvider, Input } from './chunk-UE4HFGJ6.js';
|
|
2
|
+
import { Icon } from './chunk-LQMOYVQF.js';
|
|
3
|
+
import './tokens-CEJVVA3G.css';
|
|
4
4
|
import './shared-NJHRNLRH.css';
|
|
5
|
-
import './InputNumber-
|
|
5
|
+
import './InputNumber-6NHBMRT4.css';
|
|
6
6
|
import * as React from 'react';
|
|
7
7
|
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
8
8
|
|
|
9
|
+
var normalizeNumber = (value, min, max, precision) => {
|
|
10
|
+
const clamped = Math.max(min, Math.min(max, value));
|
|
11
|
+
return precision != null ? Number(clamped.toFixed(precision)) : clamped;
|
|
12
|
+
};
|
|
13
|
+
var normalizePrecision = (precision) => precision != null && Number.isFinite(precision) ? Math.max(0, Math.min(100, Math.trunc(precision))) : void 0;
|
|
9
14
|
var InputNumber = React.forwardRef(
|
|
10
15
|
({
|
|
11
16
|
value,
|
|
@@ -13,6 +18,8 @@ var InputNumber = React.forwardRef(
|
|
|
13
18
|
onChange,
|
|
14
19
|
onBlur,
|
|
15
20
|
onFocus,
|
|
21
|
+
onWheel,
|
|
22
|
+
onKeyDown,
|
|
16
23
|
onPressEnter,
|
|
17
24
|
min = -Infinity,
|
|
18
25
|
max = Infinity,
|
|
@@ -29,22 +36,31 @@ var InputNumber = React.forwardRef(
|
|
|
29
36
|
suffix,
|
|
30
37
|
autoFocus,
|
|
31
38
|
id,
|
|
32
|
-
name
|
|
39
|
+
name,
|
|
40
|
+
theme,
|
|
41
|
+
...rest
|
|
33
42
|
}, ref) => {
|
|
34
|
-
const
|
|
43
|
+
const normalizedMin = Number.isFinite(min) ? min : -Infinity;
|
|
44
|
+
const normalizedMaxCandidate = Number.isFinite(max) ? max : Infinity;
|
|
45
|
+
const normalizedMax = Math.max(normalizedMin, normalizedMaxCandidate);
|
|
46
|
+
const normalizedStep = Number.isFinite(step) && step > 0 ? step : 1;
|
|
47
|
+
const normalizedPrecision = normalizePrecision(precision);
|
|
48
|
+
const [inner, setInner] = React.useState(
|
|
49
|
+
() => defaultValue == null || !Number.isFinite(defaultValue) ? null : normalizeNumber(defaultValue, normalizedMin, normalizedMax, normalizedPrecision)
|
|
50
|
+
);
|
|
35
51
|
const isControlled = value !== void 0;
|
|
36
|
-
const current = isControlled ? value : inner;
|
|
52
|
+
const current = isControlled ? typeof value === "number" && Number.isFinite(value) ? normalizeNumber(value, normalizedMin, normalizedMax, normalizedPrecision) : null : inner;
|
|
37
53
|
const [text, setText] = React.useState(current == null ? "" : String(current));
|
|
38
54
|
React.useEffect(() => {
|
|
39
|
-
if (isControlled) setText(
|
|
40
|
-
}, [
|
|
55
|
+
if (isControlled) setText(current == null ? "" : String(current));
|
|
56
|
+
}, [current, isControlled]);
|
|
41
57
|
const clamp = React.useCallback(
|
|
42
|
-
(n) => Math.max(
|
|
43
|
-
[
|
|
58
|
+
(n) => Math.max(normalizedMin, Math.min(normalizedMax, n)),
|
|
59
|
+
[normalizedMax, normalizedMin]
|
|
44
60
|
);
|
|
45
61
|
const round = React.useCallback(
|
|
46
|
-
(n) =>
|
|
47
|
-
[
|
|
62
|
+
(n) => normalizedPrecision != null ? Number(n.toFixed(normalizedPrecision)) : n,
|
|
63
|
+
[normalizedPrecision]
|
|
48
64
|
);
|
|
49
65
|
const commit = (next) => {
|
|
50
66
|
if (!isControlled) setInner(next);
|
|
@@ -57,7 +73,7 @@ var InputNumber = React.forwardRef(
|
|
|
57
73
|
return;
|
|
58
74
|
}
|
|
59
75
|
const parsed = Number(v);
|
|
60
|
-
if (
|
|
76
|
+
if (Number.isFinite(parsed)) commit(clamp(round(parsed)));
|
|
61
77
|
};
|
|
62
78
|
const handleBlur = (e) => {
|
|
63
79
|
if (current == null) setText("");
|
|
@@ -73,19 +89,27 @@ var InputNumber = React.forwardRef(
|
|
|
73
89
|
onChange?.(next);
|
|
74
90
|
};
|
|
75
91
|
const handleKeyDown = (e) => {
|
|
92
|
+
onKeyDown?.(e);
|
|
93
|
+
if (e.defaultPrevented) return;
|
|
76
94
|
if (e.key === "ArrowUp") {
|
|
77
95
|
e.preventDefault();
|
|
78
|
-
increment(
|
|
96
|
+
increment(normalizedStep);
|
|
79
97
|
}
|
|
80
98
|
if (e.key === "ArrowDown") {
|
|
81
99
|
e.preventDefault();
|
|
82
|
-
increment(-
|
|
100
|
+
increment(-normalizedStep);
|
|
83
101
|
}
|
|
84
102
|
if (e.key === "Enter") onPressEnter?.(e);
|
|
85
103
|
};
|
|
86
|
-
const
|
|
87
|
-
|
|
88
|
-
|
|
104
|
+
const handleWheel = (event) => {
|
|
105
|
+
onWheel?.(event);
|
|
106
|
+
if (event.defaultPrevented || document.activeElement !== event.currentTarget || disabled || readOnly) return;
|
|
107
|
+
event.preventDefault();
|
|
108
|
+
increment(event.deltaY < 0 ? normalizedStep : -normalizedStep);
|
|
109
|
+
};
|
|
110
|
+
const upDisabled = disabled || readOnly || current != null && current >= normalizedMax;
|
|
111
|
+
const downDisabled = disabled || readOnly || current != null && current <= normalizedMin;
|
|
112
|
+
const stepperSuffix = controls ? /* @__PURE__ */ jsxs("span", { className: "ipn-steppers", children: [
|
|
89
113
|
/* @__PURE__ */ jsx(
|
|
90
114
|
"button",
|
|
91
115
|
{
|
|
@@ -94,7 +118,8 @@ var InputNumber = React.forwardRef(
|
|
|
94
118
|
tabIndex: -1,
|
|
95
119
|
disabled: upDisabled,
|
|
96
120
|
onMouseDown: (e) => e.preventDefault(),
|
|
97
|
-
onClick: () => increment(
|
|
121
|
+
onClick: () => increment(normalizedStep),
|
|
122
|
+
"aria-label": "\u589E\u52A0\u6570\u503C",
|
|
98
123
|
children: /* @__PURE__ */ jsx(Icon, { name: "chevUp", size: 10, stroke: 2.5 })
|
|
99
124
|
}
|
|
100
125
|
),
|
|
@@ -106,7 +131,8 @@ var InputNumber = React.forwardRef(
|
|
|
106
131
|
tabIndex: -1,
|
|
107
132
|
disabled: downDisabled,
|
|
108
133
|
onMouseDown: (e) => e.preventDefault(),
|
|
109
|
-
onClick: () => increment(-
|
|
134
|
+
onClick: () => increment(-normalizedStep),
|
|
135
|
+
"aria-label": "\u51CF\u5C11\u6570\u503C",
|
|
110
136
|
children: /* @__PURE__ */ jsx(Icon, { name: "chevDown", size: 10, stroke: 2.5 })
|
|
111
137
|
}
|
|
112
138
|
)
|
|
@@ -115,10 +141,11 @@ var InputNumber = React.forwardRef(
|
|
|
115
141
|
suffix,
|
|
116
142
|
stepperSuffix
|
|
117
143
|
] }) : stepperSuffix ?? suffix;
|
|
118
|
-
return /* @__PURE__ */ jsx(
|
|
144
|
+
return /* @__PURE__ */ jsx(InputThemeIdentityProvider, { value: { component: "InputNumber", cssPrefix: "input" }, children: /* @__PURE__ */ jsx(
|
|
119
145
|
Input,
|
|
120
146
|
{
|
|
121
147
|
ref,
|
|
148
|
+
...rest,
|
|
122
149
|
id,
|
|
123
150
|
name,
|
|
124
151
|
size,
|
|
@@ -132,12 +159,18 @@ var InputNumber = React.forwardRef(
|
|
|
132
159
|
suffix: finalSuffix,
|
|
133
160
|
className: `input-number ${className}`,
|
|
134
161
|
inputMode: "decimal",
|
|
162
|
+
role: "spinbutton",
|
|
163
|
+
"aria-valuemin": Number.isFinite(normalizedMin) ? normalizedMin : void 0,
|
|
164
|
+
"aria-valuemax": Number.isFinite(normalizedMax) ? normalizedMax : void 0,
|
|
165
|
+
"aria-valuenow": current ?? void 0,
|
|
135
166
|
onValueChange: handleInput,
|
|
136
167
|
onKeyDown: handleKeyDown,
|
|
168
|
+
onWheel: handleWheel,
|
|
137
169
|
onBlur: handleBlur,
|
|
138
|
-
onFocus
|
|
170
|
+
onFocus,
|
|
171
|
+
theme
|
|
139
172
|
}
|
|
140
|
-
);
|
|
173
|
+
) });
|
|
141
174
|
}
|
|
142
175
|
);
|
|
143
176
|
InputNumber.displayName = "InputNumber";
|