@fangxinyan/lumina 0.7.0 → 0.9.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.cjs +5 -5
- package/dist/Alert.js +4 -4
- package/dist/AppShell.cjs +8 -8
- package/dist/AppShell.js +4 -4
- package/dist/AutoComplete.cjs +7 -7
- package/dist/AutoComplete.js +6 -6
- package/dist/Avatar.cjs +4 -4
- package/dist/Avatar.js +3 -3
- package/dist/Badge.cjs +4 -4
- package/dist/Badge.js +3 -3
- package/dist/Button.cjs +6 -6
- package/dist/Button.js +4 -4
- package/dist/Calendar.cjs +5 -5
- package/dist/Calendar.js +4 -4
- package/dist/Card.cjs +7 -7
- package/dist/Card.js +6 -6
- package/dist/Cascader.cjs +7 -7
- package/dist/Cascader.js +6 -6
- package/dist/{Checkbox-IHFML4FV.css → Checkbox-YQ43GFUI.css} +7 -0
- package/dist/Checkbox.cjs +5 -5
- package/dist/Checkbox.d.cts +2 -0
- package/dist/Checkbox.d.ts +2 -0
- package/dist/Checkbox.js +4 -4
- package/dist/Collapse.cjs +5 -5
- package/dist/Collapse.js +4 -4
- package/dist/ColorPicker.cjs +7 -7
- package/dist/ColorPicker.js +6 -6
- package/dist/CommandPalette.cjs +7 -7
- package/dist/CommandPalette.js +6 -6
- package/dist/ContextMenu.cjs +4 -4
- package/dist/ContextMenu.js +3 -3
- package/dist/DatePicker.cjs +9 -9
- package/dist/DatePicker.js +8 -8
- package/dist/DateTimePicker.cjs +9 -9
- package/dist/DateTimePicker.js +8 -8
- package/dist/Divider.cjs +4 -4
- package/dist/Divider.js +3 -3
- package/dist/Drawer.cjs +5 -5
- package/dist/Drawer.js +4 -4
- package/dist/Empty.cjs +4 -4
- package/dist/Empty.js +3 -3
- package/dist/Form.cjs +6 -6
- package/dist/Form.js +3 -3
- package/dist/Icon.cjs +51 -51
- package/dist/Icon.js +3 -3
- package/dist/Image.cjs +9 -9
- package/dist/Image.js +5 -5
- package/dist/Input.cjs +7 -7
- package/dist/Input.js +5 -5
- package/dist/InputNumber.cjs +7 -7
- package/dist/InputNumber.js +6 -6
- package/dist/List.cjs +4 -4
- package/dist/List.js +3 -3
- package/dist/Message.cjs +8 -8
- package/dist/Message.js +4 -4
- package/dist/Modal.cjs +6 -6
- package/dist/Modal.js +5 -5
- package/dist/Pagination.cjs +9 -9
- package/dist/Pagination.js +8 -8
- package/dist/Popover.cjs +4 -4
- package/dist/Popover.js +3 -3
- package/dist/Progress.cjs +4 -4
- package/dist/Progress.js +3 -3
- package/dist/Radio.cjs +5 -5
- package/dist/Radio.js +3 -3
- package/dist/{Select-TU37MAHZ.css → Select-QPBB73KA.css} +34 -5
- package/dist/Select.cjs +8 -8
- package/dist/Select.d.cts +16 -1
- package/dist/Select.d.ts +16 -1
- package/dist/Select.js +7 -7
- package/dist/Skeleton.cjs +4 -4
- package/dist/Skeleton.js +3 -3
- package/dist/Slider.cjs +4 -4
- package/dist/Slider.js +3 -3
- package/dist/Spin.cjs +4 -4
- package/dist/Spin.js +3 -3
- package/dist/Splitter.cjs +4 -4
- package/dist/Splitter.d.cts +10 -0
- package/dist/Splitter.d.ts +10 -0
- package/dist/Splitter.js +3 -3
- package/dist/StatusBar.cjs +5 -5
- package/dist/StatusBar.js +3 -3
- package/dist/Surface.cjs +5 -5
- package/dist/Surface.js +3 -3
- package/dist/{Switch-TATU3LPB.css → Switch-3JV3LCPX.css} +3 -0
- package/dist/Switch.cjs +4 -4
- package/dist/Switch.d.cts +2 -0
- package/dist/Switch.d.ts +2 -0
- package/dist/Switch.js +3 -3
- package/dist/{Table-W4HPZ7MZ.css → Table-KB6EEBDJ.css} +28 -1
- package/dist/Table.cjs +12 -12
- package/dist/Table.d.cts +7 -1
- package/dist/Table.d.ts +7 -1
- package/dist/Table.js +11 -11
- package/dist/TablePro.cjs +13 -13
- package/dist/TablePro.js +12 -12
- package/dist/{Tabs-A3IG6UZ6.css → Tabs-FB2AMBWL.css} +14 -0
- package/dist/Tabs.cjs +4 -4
- package/dist/Tabs.d.cts +6 -0
- package/dist/Tabs.d.ts +6 -0
- package/dist/Tabs.js +3 -3
- package/dist/Tag.cjs +5 -5
- package/dist/Tag.js +4 -4
- package/dist/Textarea.cjs +6 -6
- package/dist/Textarea.js +4 -4
- package/dist/Theme.cjs +19 -19
- package/dist/Theme.js +1 -1
- package/dist/ThemePanel.cjs +14 -14
- package/dist/ThemePanel.js +11 -11
- package/dist/TimePicker.cjs +8 -8
- package/dist/TimePicker.js +7 -7
- package/dist/Timeline.cjs +5 -5
- package/dist/Timeline.js +4 -4
- package/dist/Tooltip.cjs +4 -4
- package/dist/Tooltip.js +3 -3
- package/dist/Typography.cjs +9 -9
- package/dist/Typography.js +4 -4
- package/dist/{chunk-LQMOYVQF.js → chunk-2BM65ITV.js} +2 -2
- package/dist/{chunk-UQI4R32R.js → chunk-2COQYOVG.js} +4 -4
- package/dist/{chunk-WMZV7PNO.js → chunk-2NECDEAJ.js} +7 -3
- package/dist/{chunk-I4YPBAQ5.js → chunk-2NXLVPF4.js} +3 -3
- package/dist/{chunk-7QAVPVMW.js → chunk-2V6RQQRI.js} +4 -4
- package/dist/{chunk-ZEYK37VW.cjs → chunk-2XDLXAZT.cjs} +6 -6
- package/dist/{chunk-TYZ6L7E6.cjs → chunk-33YRXHVK.cjs} +6 -6
- package/dist/{chunk-3EMWDDWK.cjs → chunk-3D5RJA7R.cjs} +16 -16
- package/dist/{chunk-VX6MZO4K.cjs → chunk-3J7HOTD6.cjs} +6 -6
- package/dist/{chunk-ARUN2DMD.js → chunk-427CDZDU.js} +2 -2
- package/dist/chunk-4JANYBXO.js +100 -0
- package/dist/{chunk-ZHVR4YPB.cjs → chunk-4LYJRFD2.cjs} +3 -3
- package/dist/{chunk-LG62MPMU.cjs → chunk-4MZW2KBN.cjs} +11 -11
- package/dist/{chunk-F7WUCOBP.cjs → chunk-4ZSFMWLF.cjs} +24 -24
- package/dist/{chunk-FMUHLIHB.cjs → chunk-53I3PWRH.cjs} +3 -3
- package/dist/{chunk-JHM7MN3G.js → chunk-563SQXH7.js} +3 -3
- package/dist/{chunk-DRDDQCDD.js → chunk-5HLNFDV4.js} +1 -1
- package/dist/{chunk-2HIN5NFM.js → chunk-5VLANZAJ.js} +3 -3
- package/dist/{chunk-ALAG4ZUH.js → chunk-6OVWY63D.js} +2 -2
- package/dist/{chunk-434Y2JVW.cjs → chunk-6WEXRX7K.cjs} +7 -7
- package/dist/{chunk-MCDW3VKZ.cjs → chunk-76CTKBXD.cjs} +3 -3
- package/dist/{chunk-VA3JWOAB.cjs → chunk-7IWUBBYX.cjs} +15 -15
- package/dist/{chunk-ENFLP7SN.cjs → chunk-7KA5D37Z.cjs} +40 -30
- package/dist/{chunk-Y2MT6PI6.js → chunk-7NKNQRK6.js} +4 -4
- package/dist/{chunk-EAUB6FEN.js → chunk-7PUYEPLK.js} +4 -4
- package/dist/{chunk-7VLAHOA7.cjs → chunk-7ZMUCSCJ.cjs} +8 -8
- package/dist/{chunk-RPO7657K.js → chunk-A34P5CU7.js} +3 -3
- package/dist/{chunk-FKCPSVC4.cjs → chunk-ADPXWCTK.cjs} +9 -9
- package/dist/{chunk-QDCPVI3S.cjs → chunk-AE5XWZ24.cjs} +14 -14
- package/dist/{chunk-XZXY3XCL.cjs → chunk-AEY76EAH.cjs} +55 -38
- package/dist/{chunk-3EHJ5QI3.js → chunk-AL2PYVVP.js} +99 -49
- package/dist/{chunk-PIJV2FHO.cjs → chunk-AQN3PD24.cjs} +30 -30
- package/dist/{chunk-RMGFRAZ2.cjs → chunk-AR3MT2ZT.cjs} +10 -10
- package/dist/{chunk-3F424R5P.js → chunk-AXZNZ2IH.js} +3 -3
- package/dist/{chunk-HVPUGYBY.js → chunk-BDPJ2BPN.js} +4 -4
- package/dist/{chunk-HQFKXTX6.js → chunk-BOBT7JUB.js} +2 -2
- package/dist/{chunk-O6G3F5L4.js → chunk-CFKAKB2B.js} +5 -5
- package/dist/{chunk-U5YYOOLC.cjs → chunk-CLJLBFNU.cjs} +4 -4
- package/dist/{chunk-HYHBCHFM.cjs → chunk-CNV7R2OZ.cjs} +7 -7
- package/dist/{chunk-ULTDRMGN.js → chunk-CPVUDSIY.js} +6 -6
- package/dist/{chunk-QDY56GGO.js → chunk-D2N7OXMK.js} +2 -2
- package/dist/{chunk-LJVQQEME.js → chunk-DQMG4XPX.js} +6 -6
- package/dist/{chunk-STQDKMS5.cjs → chunk-GFGMGJ5A.cjs} +13 -13
- package/dist/{chunk-BKW5PXEO.js → chunk-GMFOY7RD.js} +5 -5
- package/dist/{chunk-GTFP7HA3.cjs → chunk-GW77XQEF.cjs} +15 -15
- package/dist/{chunk-DU2DSERH.js → chunk-HAIWLYLR.js} +3 -3
- package/dist/{chunk-VVRXNGYL.cjs → chunk-HJGPUE67.cjs} +9 -9
- package/dist/{chunk-JINKQT6H.cjs → chunk-HMN65CDW.cjs} +10 -6
- package/dist/{chunk-MUZQWIMR.cjs → chunk-I2YL5XE4.cjs} +18 -18
- package/dist/{chunk-EE5KXDRK.cjs → chunk-I4GJZLJU.cjs} +6 -6
- package/dist/{chunk-QDMFXRPI.js → chunk-INCTDROH.js} +2 -2
- package/dist/{chunk-2BIOTRQC.js → chunk-ISK2RW7F.js} +2 -2
- package/dist/{chunk-OLYSSZHP.js → chunk-IU6PLLEL.js} +10 -10
- package/dist/{chunk-LOWTSOWT.js → chunk-J7D5CQDK.js} +34 -7
- package/dist/{chunk-EA3NZBCZ.js → chunk-JMYUO7V7.js} +20 -10
- package/dist/{chunk-D7YSY5RZ.cjs → chunk-K3KHQ77L.cjs} +111 -61
- package/dist/{chunk-AURYNA6G.js → chunk-KFCWDFBW.js} +2 -2
- package/dist/{chunk-KCDOC3HS.cjs → chunk-KPBZKHCS.cjs} +8 -6
- package/dist/{chunk-PQOBBASY.js → chunk-L2NEYHYG.js} +2 -2
- package/dist/{chunk-VQEMMJHC.js → chunk-LACXN5CI.js} +2 -2
- package/dist/{chunk-T4RR6NVU.cjs → chunk-M3JYP3V4.cjs} +7 -7
- package/dist/{chunk-FY73C7JK.js → chunk-MEBAE7DB.js} +4 -4
- package/dist/{chunk-5AXNUX3J.js → chunk-MFJHI472.js} +2 -2
- package/dist/{chunk-4SKHRPDH.js → chunk-MKVONDTB.js} +6 -6
- package/dist/{chunk-U7VEPMCX.cjs → chunk-MV56FOAD.cjs} +35 -8
- package/dist/{chunk-LEDESWNL.js → chunk-O6PRE6MZ.js} +5 -3
- package/dist/{chunk-EUTK2ZRJ.cjs → chunk-OBNGHJ3N.cjs} +3 -3
- package/dist/{chunk-62VV5COT.js → chunk-OGMI3TO5.js} +3 -3
- package/dist/{chunk-YAYSXZZZ.cjs → chunk-PYCAGTO7.cjs} +3 -3
- package/dist/{chunk-6DKPJ5LV.cjs → chunk-QI6BJJXM.cjs} +6 -6
- package/dist/{chunk-Y22PTPA7.js → chunk-QK3E6FAQ.js} +5 -5
- package/dist/{chunk-KATJAJUU.js → chunk-QSLXUNLM.js} +6 -4
- package/dist/{chunk-E66PSVBU.cjs → chunk-QTMI4ZA4.cjs} +5 -5
- package/dist/{chunk-LDX6Q6RK.cjs → chunk-RA5BULQ3.cjs} +3 -3
- package/dist/{chunk-BIPOXOHP.cjs → chunk-RWM44VCZ.cjs} +9 -9
- package/dist/{chunk-JKUXA3U6.cjs → chunk-RXITGNPX.cjs} +5 -5
- package/dist/{chunk-YPMQC5HX.js → chunk-RYF5ADJW.js} +3 -3
- package/dist/{chunk-SXLRWYQQ.js → chunk-SXT672KF.js} +5 -5
- package/dist/{chunk-U3SG2YT2.js → chunk-TALNKJQ2.js} +3 -3
- package/dist/{chunk-3IZZBM56.js → chunk-TNQJA5JF.js} +3 -3
- package/dist/{chunk-Q565GDVK.cjs → chunk-TPFY5SKB.cjs} +9 -9
- package/dist/{chunk-RERMZNF3.cjs → chunk-TTRU4TLQ.cjs} +3 -3
- package/dist/{chunk-UE4HFGJ6.js → chunk-TUXF2G2O.js} +4 -4
- package/dist/{chunk-3DKFS44V.js → chunk-TY5LOU3A.js} +3 -3
- package/dist/{chunk-6RQJXSWN.js → chunk-U7V2FOIM.js} +3 -3
- package/dist/{chunk-BJDQVVCG.js → chunk-UCE53RYR.js} +5 -5
- package/dist/{chunk-WROF2PVG.cjs → chunk-UQF7E32V.cjs} +6 -4
- package/dist/{chunk-NRJXZPZR.cjs → chunk-V6BLBIY6.cjs} +17 -17
- package/dist/{chunk-2AUXUZ3Z.cjs → chunk-VDVKY2IX.cjs} +4 -4
- package/dist/{chunk-YKHIIC7M.js → chunk-VLQ6XIAL.js} +2 -2
- package/dist/{chunk-GFKWSDD6.cjs → chunk-VNP5WB6M.cjs} +6 -6
- package/dist/{chunk-56I6ZKGU.cjs → chunk-VTN6YLRJ.cjs} +11 -11
- package/dist/{chunk-YBGMTQ2V.js → chunk-XFJTJVWD.js} +3 -3
- package/dist/{chunk-77HU7JWK.cjs → chunk-XHKSUKKL.cjs} +6 -6
- package/dist/{chunk-K5HGHOG7.js → chunk-Y3WFWA52.js} +2 -2
- package/dist/{chunk-QNQSNVCU.cjs → chunk-YU4LBDBD.cjs} +6 -6
- package/dist/{chunk-QYPA77OI.cjs → chunk-Z6AG7O4B.cjs} +3 -3
- package/dist/{chunk-AUO2YYHB.js → chunk-Z7GKR4LL.js} +4 -4
- package/dist/{chunk-ZYIE3BH7.cjs → chunk-ZBRFGD3I.cjs} +3 -3
- package/dist/{chunk-5CZA33BK.cjs → chunk-ZCAYS4KR.cjs} +8 -8
- package/dist/{chunk-Q5HLC56A.cjs → chunk-ZGZLEJKA.cjs} +4 -4
- package/dist/{chunk-YUJ7Z6N2.cjs → chunk-ZT7ZWAF2.cjs} +13 -13
- package/dist/index.cjs +189 -189
- package/dist/index.d.cts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +52 -52
- package/dist/styles.css +100 -20
- package/dist/{tokens-CEJVVA3G.css → tokens-223RYVVS.css} +14 -14
- package/dist/tokens.css +14 -14
- package/docs/llms/checkbox.md +22 -5
- package/docs/llms/drawer.md +8 -1
- package/docs/llms/select.md +50 -0
- package/docs/llms/splitter.md +12 -1
- package/docs/llms/switch.md +22 -5
- package/docs/llms/tablepro.md +23 -1
- package/docs/llms/tabs.md +21 -0
- package/docs/llms.md +1 -1
- package/package.json +1 -1
- package/dist/chunk-RAK6CENJ.js +0 -83
package/dist/Tooltip.cjs
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkXHKSUKKL_cjs = require('./chunk-XHKSUKKL.cjs');
|
|
4
4
|
require('./chunk-FJB3243S.cjs');
|
|
5
5
|
require('./chunk-HSDMJUB6.cjs');
|
|
6
|
-
require('./chunk-
|
|
7
|
-
require('./chunk-
|
|
6
|
+
require('./chunk-V6BLBIY6.cjs');
|
|
7
|
+
require('./chunk-I4GJZLJU.cjs');
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
Object.defineProperty(exports, "Tooltip", {
|
|
12
12
|
enumerable: true,
|
|
13
|
-
get: function () { return
|
|
13
|
+
get: function () { return chunkXHKSUKKL_cjs.Tooltip; }
|
|
14
14
|
});
|
package/dist/Tooltip.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { Tooltip } from './chunk-
|
|
1
|
+
export { Tooltip } from './chunk-TALNKJQ2.js';
|
|
2
2
|
import './chunk-3QXP2ZNP.js';
|
|
3
3
|
import './chunk-2A4GYSN4.js';
|
|
4
|
-
import './chunk-
|
|
5
|
-
import './chunk-
|
|
4
|
+
import './chunk-5HLNFDV4.js';
|
|
5
|
+
import './chunk-CPVUDSIY.js';
|
package/dist/Typography.cjs
CHANGED
|
@@ -1,31 +1,31 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunk3D5RJA7R_cjs = require('./chunk-3D5RJA7R.cjs');
|
|
4
4
|
require('./chunk-FJB3243S.cjs');
|
|
5
5
|
require('./chunk-HSDMJUB6.cjs');
|
|
6
|
-
require('./chunk-
|
|
7
|
-
require('./chunk-
|
|
8
|
-
require('./chunk-
|
|
6
|
+
require('./chunk-VDVKY2IX.cjs');
|
|
7
|
+
require('./chunk-V6BLBIY6.cjs');
|
|
8
|
+
require('./chunk-I4GJZLJU.cjs');
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
Object.defineProperty(exports, "Link", {
|
|
13
13
|
enumerable: true,
|
|
14
|
-
get: function () { return
|
|
14
|
+
get: function () { return chunk3D5RJA7R_cjs.Link; }
|
|
15
15
|
});
|
|
16
16
|
Object.defineProperty(exports, "Paragraph", {
|
|
17
17
|
enumerable: true,
|
|
18
|
-
get: function () { return
|
|
18
|
+
get: function () { return chunk3D5RJA7R_cjs.Paragraph; }
|
|
19
19
|
});
|
|
20
20
|
Object.defineProperty(exports, "Text", {
|
|
21
21
|
enumerable: true,
|
|
22
|
-
get: function () { return
|
|
22
|
+
get: function () { return chunk3D5RJA7R_cjs.Text; }
|
|
23
23
|
});
|
|
24
24
|
Object.defineProperty(exports, "Title", {
|
|
25
25
|
enumerable: true,
|
|
26
|
-
get: function () { return
|
|
26
|
+
get: function () { return chunk3D5RJA7R_cjs.Title; }
|
|
27
27
|
});
|
|
28
28
|
Object.defineProperty(exports, "Typography", {
|
|
29
29
|
enumerable: true,
|
|
30
|
-
get: function () { return
|
|
30
|
+
get: function () { return chunk3D5RJA7R_cjs.Typography; }
|
|
31
31
|
});
|
package/dist/Typography.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export { Link, Paragraph, Text, Title, Typography } from './chunk-
|
|
1
|
+
export { Link, Paragraph, Text, Title, Typography } from './chunk-2COQYOVG.js';
|
|
2
2
|
import './chunk-3QXP2ZNP.js';
|
|
3
3
|
import './chunk-2A4GYSN4.js';
|
|
4
|
-
import './chunk-
|
|
5
|
-
import './chunk-
|
|
6
|
-
import './chunk-
|
|
4
|
+
import './chunk-2BM65ITV.js';
|
|
5
|
+
import './chunk-5HLNFDV4.js';
|
|
6
|
+
import './chunk-CPVUDSIY.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { withComponentTheme } from './chunk-
|
|
2
|
-
import './tokens-
|
|
1
|
+
import { withComponentTheme } from './chunk-5HLNFDV4.js';
|
|
2
|
+
import './tokens-223RYVVS.css';
|
|
3
3
|
import './shared-NJHRNLRH.css';
|
|
4
4
|
import './Icon-HJSUVW4O.css';
|
|
5
5
|
import * as React from 'react';
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { useFloating } from './chunk-3QXP2ZNP.js';
|
|
2
2
|
import { useOverlayLayer } from './chunk-2A4GYSN4.js';
|
|
3
|
-
import { Icon } from './chunk-
|
|
4
|
-
import { useComponentPortalTheme, withComponentTheme } from './chunk-
|
|
5
|
-
import { usePortalContainer } from './chunk-
|
|
6
|
-
import './tokens-
|
|
3
|
+
import { Icon } from './chunk-2BM65ITV.js';
|
|
4
|
+
import { useComponentPortalTheme, withComponentTheme } from './chunk-5HLNFDV4.js';
|
|
5
|
+
import { usePortalContainer } from './chunk-CPVUDSIY.js';
|
|
6
|
+
import './tokens-223RYVVS.css';
|
|
7
7
|
import './shared-NJHRNLRH.css';
|
|
8
8
|
import './Typography-CQ2OZXQH.css';
|
|
9
9
|
import * as React from 'react';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Table } from './chunk-
|
|
2
|
-
import { withComponentTheme, InternalComponentThemePart } from './chunk-
|
|
3
|
-
import './tokens-
|
|
1
|
+
import { Table } from './chunk-JMYUO7V7.js';
|
|
2
|
+
import { withComponentTheme, InternalComponentThemePart } from './chunk-5HLNFDV4.js';
|
|
3
|
+
import './tokens-223RYVVS.css';
|
|
4
4
|
import './shared-NJHRNLRH.css';
|
|
5
5
|
import './TablePro-WYE6TXWJ.css';
|
|
6
6
|
import * as React from 'react';
|
|
@@ -35,6 +35,8 @@ var TableProInner = ({
|
|
|
35
35
|
tableProps,
|
|
36
36
|
caption,
|
|
37
37
|
onRowClick,
|
|
38
|
+
activeRowKey,
|
|
39
|
+
rowClassName,
|
|
38
40
|
empty,
|
|
39
41
|
...rootProps
|
|
40
42
|
}, ref) => {
|
|
@@ -75,6 +77,8 @@ var TableProInner = ({
|
|
|
75
77
|
tableProps,
|
|
76
78
|
caption,
|
|
77
79
|
onRowClick,
|
|
80
|
+
activeRowKey,
|
|
81
|
+
rowClassName,
|
|
78
82
|
empty,
|
|
79
83
|
className: innerTableClassName,
|
|
80
84
|
style: tableStyle
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Icon } from './chunk-
|
|
2
|
-
import { withComponentTheme, withInternalComponentThemePart } from './chunk-
|
|
3
|
-
import './tokens-
|
|
1
|
+
import { Icon } from './chunk-2BM65ITV.js';
|
|
2
|
+
import { withComponentTheme, withInternalComponentThemePart } from './chunk-5HLNFDV4.js';
|
|
3
|
+
import './tokens-223RYVVS.css';
|
|
4
4
|
import './shared-NJHRNLRH.css';
|
|
5
5
|
import './AppShell-OWJRJ4ZD.css';
|
|
6
6
|
import * as React from 'react';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { useOverlayZIndex } from './chunk-2A4GYSN4.js';
|
|
2
|
-
import { Icon } from './chunk-
|
|
3
|
-
import { useComponentPortalTheme, withComponentTheme } from './chunk-
|
|
4
|
-
import { usePortalContainer } from './chunk-
|
|
5
|
-
import './tokens-
|
|
2
|
+
import { Icon } from './chunk-2BM65ITV.js';
|
|
3
|
+
import { useComponentPortalTheme, withComponentTheme } from './chunk-5HLNFDV4.js';
|
|
4
|
+
import { usePortalContainer } from './chunk-CPVUDSIY.js';
|
|
5
|
+
import './tokens-223RYVVS.css';
|
|
6
6
|
import './shared-NJHRNLRH.css';
|
|
7
7
|
import './Message-OTZWQTQ5.css';
|
|
8
8
|
import * as React from 'react';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
require('./tokens-
|
|
3
|
+
var chunkVDVKY2IX_cjs = require('./chunk-VDVKY2IX.cjs');
|
|
4
|
+
var chunkV6BLBIY6_cjs = require('./chunk-V6BLBIY6.cjs');
|
|
5
|
+
require('./tokens-223RYVVS.css');
|
|
6
6
|
require('./shared-NJHRNLRH.css');
|
|
7
7
|
require('./Alert-DJ3K7N7L.css');
|
|
8
8
|
var React = require('react');
|
|
@@ -55,18 +55,18 @@ var AlertBase = React__namespace.forwardRef(({
|
|
|
55
55
|
role: "alert",
|
|
56
56
|
...rest,
|
|
57
57
|
children: [
|
|
58
|
-
showIcon && /* @__PURE__ */ jsxRuntime.jsx("span", { className: "alert-ico", children:
|
|
58
|
+
showIcon && /* @__PURE__ */ jsxRuntime.jsx("span", { className: "alert-ico", children: chunkVDVKY2IX_cjs.renderIconSlot(iconNode, { size: 14 }) }),
|
|
59
59
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "alert-body", children: [
|
|
60
60
|
title && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "alert-title", children: title }),
|
|
61
61
|
children && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "alert-desc", children })
|
|
62
62
|
] }),
|
|
63
63
|
action && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "alert-action", children: action }),
|
|
64
|
-
closable && /* @__PURE__ */ jsxRuntime.jsx("button", { type: "button", className: "alert-close", onClick: handleClose, "aria-label": "\u5173\u95ED\u63D0\u793A", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
64
|
+
closable && /* @__PURE__ */ jsxRuntime.jsx("button", { type: "button", className: "alert-close", onClick: handleClose, "aria-label": "\u5173\u95ED\u63D0\u793A", children: /* @__PURE__ */ jsxRuntime.jsx(chunkVDVKY2IX_cjs.Icon, { name: "x", size: 12 }) })
|
|
65
65
|
]
|
|
66
66
|
}
|
|
67
67
|
);
|
|
68
68
|
});
|
|
69
69
|
AlertBase.displayName = "Alert";
|
|
70
|
-
var Alert =
|
|
70
|
+
var Alert = chunkV6BLBIY6_cjs.withComponentTheme(AlertBase, "Alert", "alert");
|
|
71
71
|
|
|
72
72
|
exports.Alert = Alert;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
require('./tokens-
|
|
3
|
+
var chunkVDVKY2IX_cjs = require('./chunk-VDVKY2IX.cjs');
|
|
4
|
+
var chunkV6BLBIY6_cjs = require('./chunk-V6BLBIY6.cjs');
|
|
5
|
+
require('./tokens-223RYVVS.css');
|
|
6
6
|
require('./shared-NJHRNLRH.css');
|
|
7
7
|
require('./Collapse-BTSBHBSY.css');
|
|
8
8
|
var React = require('react');
|
|
@@ -118,7 +118,7 @@ var CollapseBase = React__namespace.forwardRef(({
|
|
|
118
118
|
"aria-expanded": open,
|
|
119
119
|
"aria-controls": panelId,
|
|
120
120
|
"aria-label": open ? "\u6536\u8D77\u9762\u677F" : "\u5C55\u5F00\u9762\u677F",
|
|
121
|
-
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
121
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(chunkVDVKY2IX_cjs.Icon, { name: "chevDown", size: 16, "aria-hidden": true })
|
|
122
122
|
}
|
|
123
123
|
)
|
|
124
124
|
] }) : /* @__PURE__ */ jsxRuntime.jsxs(
|
|
@@ -133,7 +133,7 @@ var CollapseBase = React__namespace.forwardRef(({
|
|
|
133
133
|
"aria-controls": panelId,
|
|
134
134
|
children: [
|
|
135
135
|
/* @__PURE__ */ jsxRuntime.jsx("span", { children: it.label }),
|
|
136
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "collapse-chev", "aria-hidden": true, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
136
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "collapse-chev", "aria-hidden": true, children: /* @__PURE__ */ jsxRuntime.jsx(chunkVDVKY2IX_cjs.Icon, { name: "chevDown", size: 16 }) })
|
|
137
137
|
]
|
|
138
138
|
}
|
|
139
139
|
),
|
|
@@ -147,6 +147,6 @@ var CollapseBase = React__namespace.forwardRef(({
|
|
|
147
147
|
);
|
|
148
148
|
});
|
|
149
149
|
CollapseBase.displayName = "Collapse";
|
|
150
|
-
var Collapse =
|
|
150
|
+
var Collapse = chunkV6BLBIY6_cjs.withComponentTheme(CollapseBase, "Collapse", "collapse");
|
|
151
151
|
|
|
152
152
|
exports.Collapse = Collapse;
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
var chunkFJB3243S_cjs = require('./chunk-FJB3243S.cjs');
|
|
4
4
|
var chunkHSDMJUB6_cjs = require('./chunk-HSDMJUB6.cjs');
|
|
5
|
-
var
|
|
6
|
-
var
|
|
7
|
-
var
|
|
8
|
-
require('./tokens-
|
|
5
|
+
var chunkVDVKY2IX_cjs = require('./chunk-VDVKY2IX.cjs');
|
|
6
|
+
var chunkV6BLBIY6_cjs = require('./chunk-V6BLBIY6.cjs');
|
|
7
|
+
var chunkI4GJZLJU_cjs = require('./chunk-I4GJZLJU.cjs');
|
|
8
|
+
require('./tokens-223RYVVS.css');
|
|
9
9
|
require('./shared-NJHRNLRH.css');
|
|
10
10
|
require('./Typography-CQ2OZXQH.css');
|
|
11
11
|
var React = require('react');
|
|
@@ -96,8 +96,8 @@ function composeTypographyRef(internalRef, forwardedRef) {
|
|
|
96
96
|
var EllipsisTooltip = React__namespace.forwardRef(({ content, children }, forwardedRef) => {
|
|
97
97
|
const [open, setOpen] = React__namespace.useState(false);
|
|
98
98
|
const tooltipId = React__namespace.useId();
|
|
99
|
-
const portalContainer =
|
|
100
|
-
const portalTheme =
|
|
99
|
+
const portalContainer = chunkI4GJZLJU_cjs.usePortalContainer();
|
|
100
|
+
const portalTheme = chunkV6BLBIY6_cjs.useComponentPortalTheme([
|
|
101
101
|
"Typography",
|
|
102
102
|
"Title",
|
|
103
103
|
"Text",
|
|
@@ -269,8 +269,8 @@ var CopyAction = ({ config, fallbackText }) => {
|
|
|
269
269
|
timerRef.current = window.setTimeout(() => setStatus("idle"), 2400);
|
|
270
270
|
};
|
|
271
271
|
const [defIcon, doneIcon] = config.icon ?? [
|
|
272
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
273
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
272
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkVDVKY2IX_cjs.Icon, { name: "copy", size: 12 }, "def"),
|
|
273
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkVDVKY2IX_cjs.Icon, { name: "check", size: 12 }, "done")
|
|
274
274
|
];
|
|
275
275
|
const tipText = config.tooltips === false ? void 0 : status === "error" ? "\u590D\u5236\u5931\u8D25" : Array.isArray(config.tooltips) ? status === "copied" ? config.tooltips[1] : config.tooltips[0] : status === "copied" ? "\u5DF2\u590D\u5236" : "\u590D\u5236";
|
|
276
276
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -362,7 +362,7 @@ var EditableEditor = ({ initial, multiline, maxLength, autoSize, enterIcon, onCo
|
|
|
362
362
|
onKeyDown: handleKeyDown
|
|
363
363
|
};
|
|
364
364
|
const editor = multiline ? /* @__PURE__ */ jsxRuntime.jsx("textarea", { rows: 1, ...common }) : /* @__PURE__ */ jsxRuntime.jsx("input", { type: "text", ...common });
|
|
365
|
-
const resolvedEnterIcon = enterIcon === void 0 ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
365
|
+
const resolvedEnterIcon = enterIcon === void 0 ? /* @__PURE__ */ jsxRuntime.jsx(chunkVDVKY2IX_cjs.Icon, { name: "check", size: 12 }) : enterIcon;
|
|
366
366
|
const showEnterAction = !multiline && resolvedEnterIcon !== null && resolvedEnterIcon !== false;
|
|
367
367
|
return /* @__PURE__ */ jsxRuntime.jsxs("span", { ref: groupRef, className: "typo-editor-wrap", onBlur: handleGroupBlur, children: [
|
|
368
368
|
editor,
|
|
@@ -459,7 +459,7 @@ function useTypographyBody(props) {
|
|
|
459
459
|
startEdit();
|
|
460
460
|
},
|
|
461
461
|
className: "typo-action typo-edit",
|
|
462
|
-
children: editConf.icon ?? /* @__PURE__ */ jsxRuntime.jsx(
|
|
462
|
+
children: editConf.icon ?? /* @__PURE__ */ jsxRuntime.jsx(chunkVDVKY2IX_cjs.Icon, { name: "edit", size: 12 })
|
|
463
463
|
}
|
|
464
464
|
);
|
|
465
465
|
}
|
|
@@ -598,7 +598,7 @@ var TitleBase = React__namespace.forwardRef((props, ref) => {
|
|
|
598
598
|
return body.tooltipContent ? /* @__PURE__ */ jsxRuntime.jsx(EllipsisTooltip, { content: body.tooltipContent, children: element }) : element;
|
|
599
599
|
});
|
|
600
600
|
TitleBase.displayName = "Typography.Title";
|
|
601
|
-
var Title =
|
|
601
|
+
var Title = chunkV6BLBIY6_cjs.withComponentTheme(TitleBase, "Title", "typography");
|
|
602
602
|
var TextBase = React__namespace.forwardRef((props, ref) => {
|
|
603
603
|
const { as = "span", ...rest } = props;
|
|
604
604
|
const body = useTypographyBody({ ...rest});
|
|
@@ -648,7 +648,7 @@ var TextBase = React__namespace.forwardRef((props, ref) => {
|
|
|
648
648
|
return body.tooltipContent ? /* @__PURE__ */ jsxRuntime.jsx(EllipsisTooltip, { content: body.tooltipContent, children: element }) : element;
|
|
649
649
|
});
|
|
650
650
|
TextBase.displayName = "Typography.Text";
|
|
651
|
-
var Text =
|
|
651
|
+
var Text = chunkV6BLBIY6_cjs.withComponentTheme(TextBase, "Text", "typography");
|
|
652
652
|
var ParagraphBase = React__namespace.forwardRef(
|
|
653
653
|
(props, ref) => {
|
|
654
654
|
const body = useTypographyBody({ ...props});
|
|
@@ -697,7 +697,7 @@ var ParagraphBase = React__namespace.forwardRef(
|
|
|
697
697
|
}
|
|
698
698
|
);
|
|
699
699
|
ParagraphBase.displayName = "Typography.Paragraph";
|
|
700
|
-
var Paragraph =
|
|
700
|
+
var Paragraph = chunkV6BLBIY6_cjs.withComponentTheme(
|
|
701
701
|
ParagraphBase,
|
|
702
702
|
"Paragraph",
|
|
703
703
|
"typography"
|
|
@@ -833,7 +833,7 @@ var LinkBase = React__namespace.forwardRef(
|
|
|
833
833
|
},
|
|
834
834
|
children: [
|
|
835
835
|
body.inner,
|
|
836
|
-
external && /* @__PURE__ */ jsxRuntime.jsx("span", { className: "typo-link-ext", "aria-hidden": true, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
836
|
+
external && /* @__PURE__ */ jsxRuntime.jsx("span", { className: "typo-link-ext", "aria-hidden": true, children: /* @__PURE__ */ jsxRuntime.jsx(chunkVDVKY2IX_cjs.Icon, { name: externalIcon, size: 12 }) })
|
|
837
837
|
]
|
|
838
838
|
}
|
|
839
839
|
);
|
|
@@ -850,7 +850,7 @@ var LinkBase = React__namespace.forwardRef(
|
|
|
850
850
|
}
|
|
851
851
|
);
|
|
852
852
|
LinkBase.displayName = "Typography.Link";
|
|
853
|
-
var Link =
|
|
853
|
+
var Link = chunkV6BLBIY6_cjs.withComponentTheme(LinkBase, "Link", "typography");
|
|
854
854
|
var TypographyRoot = React__namespace.forwardRef(
|
|
855
855
|
({ className = "", children, ...rest }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
856
856
|
"article",
|
|
@@ -863,7 +863,7 @@ var TypographyRoot = React__namespace.forwardRef(
|
|
|
863
863
|
)
|
|
864
864
|
);
|
|
865
865
|
TypographyRoot.displayName = "Typography";
|
|
866
|
-
var ThemedTypography =
|
|
866
|
+
var ThemedTypography = chunkV6BLBIY6_cjs.withComponentTheme(
|
|
867
867
|
TypographyRoot,
|
|
868
868
|
"Typography",
|
|
869
869
|
"typography"
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
|
|
3
3
|
var chunkFJB3243S_cjs = require('./chunk-FJB3243S.cjs');
|
|
4
4
|
var chunkHSDMJUB6_cjs = require('./chunk-HSDMJUB6.cjs');
|
|
5
|
-
var
|
|
6
|
-
var
|
|
7
|
-
require('./tokens-
|
|
5
|
+
var chunkV6BLBIY6_cjs = require('./chunk-V6BLBIY6.cjs');
|
|
6
|
+
var chunkI4GJZLJU_cjs = require('./chunk-I4GJZLJU.cjs');
|
|
7
|
+
require('./tokens-223RYVVS.css');
|
|
8
8
|
require('./shared-NJHRNLRH.css');
|
|
9
9
|
require('./Popover-LCXLR3EU.css');
|
|
10
10
|
var React = require('react');
|
|
@@ -62,8 +62,8 @@ var PopoverBase = React__namespace.forwardRef(({
|
|
|
62
62
|
style,
|
|
63
63
|
...rest
|
|
64
64
|
}, ref) => {
|
|
65
|
-
const portalContainer =
|
|
66
|
-
const portalTheme =
|
|
65
|
+
const portalContainer = chunkI4GJZLJU_cjs.usePortalContainer();
|
|
66
|
+
const portalTheme = chunkV6BLBIY6_cjs.useComponentPortalTheme("Popover");
|
|
67
67
|
const [inner, setInner] = React__namespace.useState(defaultOpen);
|
|
68
68
|
const hoverTimeout = React__namespace.useRef();
|
|
69
69
|
const nestedPointerEvents = React__namespace.useRef(/* @__PURE__ */ new WeakSet());
|
|
@@ -245,6 +245,6 @@ var PopoverBase = React__namespace.forwardRef(({
|
|
|
245
245
|
] });
|
|
246
246
|
});
|
|
247
247
|
PopoverBase.displayName = "Popover";
|
|
248
|
-
var Popover =
|
|
248
|
+
var Popover = chunkV6BLBIY6_cjs.withComponentTheme(PopoverBase, "Popover", "popover");
|
|
249
249
|
|
|
250
250
|
exports.Popover = Popover;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { withComponentTheme } from './chunk-
|
|
2
|
-
import './tokens-
|
|
1
|
+
import { withComponentTheme } from './chunk-5HLNFDV4.js';
|
|
2
|
+
import './tokens-223RYVVS.css';
|
|
3
3
|
import './shared-NJHRNLRH.css';
|
|
4
4
|
import './Badge-DBWJEV4C.css';
|
|
5
5
|
import * as React from 'react';
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
import { withComponentTheme } from './chunk-5HLNFDV4.js';
|
|
2
|
+
import './tokens-223RYVVS.css';
|
|
3
|
+
import './shared-NJHRNLRH.css';
|
|
4
|
+
import './Tabs-FB2AMBWL.css';
|
|
5
|
+
import * as React from 'react';
|
|
6
|
+
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
7
|
+
|
|
8
|
+
var getFirstEnabledKey = (items) => items.find((item) => !item.disabled)?.key;
|
|
9
|
+
var TabsBase = React.forwardRef(({
|
|
10
|
+
items,
|
|
11
|
+
activeKey,
|
|
12
|
+
defaultActiveKey,
|
|
13
|
+
onChange,
|
|
14
|
+
variant = "line",
|
|
15
|
+
centered,
|
|
16
|
+
tabBarClassName = "",
|
|
17
|
+
contentClassName = "",
|
|
18
|
+
fill = false,
|
|
19
|
+
className = "",
|
|
20
|
+
...rest
|
|
21
|
+
}, ref) => {
|
|
22
|
+
const baseId = React.useId();
|
|
23
|
+
const tabRefs = React.useRef(/* @__PURE__ */ new Map());
|
|
24
|
+
const [inner, setInner] = React.useState(defaultActiveKey ?? getFirstEnabledKey(items));
|
|
25
|
+
const isControlled = activeKey !== void 0;
|
|
26
|
+
const requested = isControlled ? activeKey : inner;
|
|
27
|
+
const current = items.some((item) => item.key === requested && !item.disabled) ? requested : getFirstEnabledKey(items);
|
|
28
|
+
const select = (k) => {
|
|
29
|
+
if (items.find((item) => item.key === k)?.disabled) return;
|
|
30
|
+
if (!isControlled) setInner(k);
|
|
31
|
+
onChange?.(k);
|
|
32
|
+
};
|
|
33
|
+
const handleTabKeyDown = (event) => {
|
|
34
|
+
const enabled = items.filter((item) => !item.disabled);
|
|
35
|
+
const index = enabled.findIndex((item) => item.key === current);
|
|
36
|
+
let target;
|
|
37
|
+
if (event.key === "ArrowRight") target = enabled[(index + 1) % enabled.length];
|
|
38
|
+
if (event.key === "ArrowLeft") target = enabled[(index - 1 + enabled.length) % enabled.length];
|
|
39
|
+
if (event.key === "Home") target = enabled[0];
|
|
40
|
+
if (event.key === "End") target = enabled[enabled.length - 1];
|
|
41
|
+
if (!target) return;
|
|
42
|
+
event.preventDefault();
|
|
43
|
+
tabRefs.current.get(target.key)?.focus();
|
|
44
|
+
select(target.key);
|
|
45
|
+
};
|
|
46
|
+
const active = items.find((i) => i.key === current);
|
|
47
|
+
const activeIndex = items.findIndex((item) => item.key === current);
|
|
48
|
+
return /* @__PURE__ */ jsxs(
|
|
49
|
+
"div",
|
|
50
|
+
{
|
|
51
|
+
ref,
|
|
52
|
+
className: [
|
|
53
|
+
"tabs",
|
|
54
|
+
variant,
|
|
55
|
+
centered ? "centered" : "",
|
|
56
|
+
fill ? "fill" : "",
|
|
57
|
+
className
|
|
58
|
+
].filter(Boolean).join(" "),
|
|
59
|
+
...rest,
|
|
60
|
+
children: [
|
|
61
|
+
/* @__PURE__ */ jsx("div", { className: ["tabs-nav", tabBarClassName].filter(Boolean).join(" "), role: "tablist", children: items.map((it, index) => /* @__PURE__ */ jsx(
|
|
62
|
+
"button",
|
|
63
|
+
{
|
|
64
|
+
ref: (node) => {
|
|
65
|
+
if (node) tabRefs.current.set(it.key, node);
|
|
66
|
+
else tabRefs.current.delete(it.key);
|
|
67
|
+
},
|
|
68
|
+
type: "button",
|
|
69
|
+
role: "tab",
|
|
70
|
+
id: `${baseId}-tab-${index}`,
|
|
71
|
+
"aria-selected": current === it.key,
|
|
72
|
+
"aria-controls": it.content !== void 0 ? `${baseId}-panel-${index}` : void 0,
|
|
73
|
+
tabIndex: current === it.key ? 0 : -1,
|
|
74
|
+
disabled: it.disabled,
|
|
75
|
+
className: `tab ${current === it.key ? "active" : ""}`,
|
|
76
|
+
onClick: () => select(it.key),
|
|
77
|
+
onKeyDown: handleTabKeyDown,
|
|
78
|
+
children: it.label
|
|
79
|
+
},
|
|
80
|
+
it.key
|
|
81
|
+
)) }),
|
|
82
|
+
active?.content !== void 0 && /* @__PURE__ */ jsx(
|
|
83
|
+
"div",
|
|
84
|
+
{
|
|
85
|
+
id: `${baseId}-panel-${activeIndex}`,
|
|
86
|
+
className: ["tabs-content", contentClassName].filter(Boolean).join(" "),
|
|
87
|
+
role: "tabpanel",
|
|
88
|
+
"aria-labelledby": `${baseId}-tab-${activeIndex}`,
|
|
89
|
+
tabIndex: 0,
|
|
90
|
+
children: active.content
|
|
91
|
+
}
|
|
92
|
+
)
|
|
93
|
+
]
|
|
94
|
+
}
|
|
95
|
+
);
|
|
96
|
+
});
|
|
97
|
+
TabsBase.displayName = "Tabs";
|
|
98
|
+
var Tabs = withComponentTheme(TabsBase, "Tabs", "tabs");
|
|
99
|
+
|
|
100
|
+
export { Tabs };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('./tokens-
|
|
3
|
+
var chunkV6BLBIY6_cjs = require('./chunk-V6BLBIY6.cjs');
|
|
4
|
+
require('./tokens-223RYVVS.css');
|
|
5
5
|
require('./shared-NJHRNLRH.css');
|
|
6
6
|
require('./Empty-U5CBLCAL.css');
|
|
7
7
|
var React = require('react');
|
|
@@ -43,6 +43,6 @@ var EmptyBase = React__namespace.forwardRef(({
|
|
|
43
43
|
action && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "empty-action", children: action })
|
|
44
44
|
] }));
|
|
45
45
|
EmptyBase.displayName = "Empty";
|
|
46
|
-
var Empty =
|
|
46
|
+
var Empty = chunkV6BLBIY6_cjs.withComponentTheme(EmptyBase, "Empty", "empty");
|
|
47
47
|
|
|
48
48
|
exports.Empty = Empty;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var chunkG5LCOBOT_cjs = require('./chunk-G5LCOBOT.cjs');
|
|
4
|
-
var
|
|
5
|
-
var
|
|
6
|
-
require('./tokens-
|
|
4
|
+
var chunkV6BLBIY6_cjs = require('./chunk-V6BLBIY6.cjs');
|
|
5
|
+
var chunkI4GJZLJU_cjs = require('./chunk-I4GJZLJU.cjs');
|
|
6
|
+
require('./tokens-223RYVVS.css');
|
|
7
7
|
require('./shared-NJHRNLRH.css');
|
|
8
8
|
require('./Surface-CTN775GD.css');
|
|
9
9
|
var React = require('react');
|
|
@@ -73,8 +73,8 @@ var Surface = React__namespace.forwardRef(
|
|
|
73
73
|
style,
|
|
74
74
|
...rest
|
|
75
75
|
}, ref) => {
|
|
76
|
-
const inherited =
|
|
77
|
-
const normalizedTheme =
|
|
76
|
+
const inherited = chunkI4GJZLJU_cjs.useThemeOptional();
|
|
77
|
+
const normalizedTheme = chunkV6BLBIY6_cjs.normalizeComponentThemeInput(theme);
|
|
78
78
|
const presetConfig = preset === "inherit" ? void 0 : surfacePresetMap[preset];
|
|
79
79
|
const effectiveSurfaceMode = mode ?? colorScheme ?? normalizedTheme?.colorScheme ?? presetConfig?.base ?? inherited?.mode ?? "light";
|
|
80
80
|
const [systemDark, setSystemDark] = React__namespace.useState(
|
|
@@ -89,7 +89,7 @@ var Surface = React__namespace.forwardRef(
|
|
|
89
89
|
return () => media.removeEventListener?.("change", handleChange);
|
|
90
90
|
}, [effectiveSurfaceMode]);
|
|
91
91
|
const registeredModePreset = effectiveSurfaceMode != null && effectiveSurfaceMode !== "light" && effectiveSurfaceMode !== "dark" && effectiveSurfaceMode !== "system" ? themes?.[effectiveSurfaceMode] ?? inherited?.themes[effectiveSurfaceMode] : void 0;
|
|
92
|
-
const localComponents =
|
|
92
|
+
const localComponents = chunkI4GJZLJU_cjs.mergeComponentThemeOverrides(
|
|
93
93
|
normalizedTheme?.components,
|
|
94
94
|
components
|
|
95
95
|
);
|
|
@@ -131,7 +131,7 @@ var Surface = React__namespace.forwardRef(
|
|
|
131
131
|
},
|
|
132
132
|
scope: "self"
|
|
133
133
|
} : void 0;
|
|
134
|
-
const [themeRootElement, themeRootRef] =
|
|
134
|
+
const [themeRootElement, themeRootRef] = chunkV6BLBIY6_cjs.useComponentThemeRootRef(
|
|
135
135
|
ref,
|
|
136
136
|
{ component: "Surface", theme: localSurfaceTheme }
|
|
137
137
|
);
|
|
@@ -147,7 +147,7 @@ var Surface = React__namespace.forwardRef(
|
|
|
147
147
|
className
|
|
148
148
|
].filter(Boolean).join(" ");
|
|
149
149
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
150
|
-
|
|
150
|
+
chunkV6BLBIY6_cjs.ComponentThemeBoundary,
|
|
151
151
|
{
|
|
152
152
|
component: "Surface",
|
|
153
153
|
cssPrefix: "surface",
|
|
@@ -167,8 +167,8 @@ var Surface = React__namespace.forwardRef(
|
|
|
167
167
|
children
|
|
168
168
|
}
|
|
169
169
|
);
|
|
170
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
171
|
-
|
|
170
|
+
return /* @__PURE__ */ jsxRuntime.jsx(chunkI4GJZLJU_cjs.ComponentOverridesProvider, { value: localComponents, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
171
|
+
chunkI4GJZLJU_cjs.ThemeProvider,
|
|
172
172
|
{
|
|
173
173
|
enabled: usesLocalTheme,
|
|
174
174
|
target: "scope",
|
|
@@ -191,7 +191,7 @@ var Surface = React__namespace.forwardRef(
|
|
|
191
191
|
...normalizedTheme?.colors ?? {},
|
|
192
192
|
...colors ?? {}
|
|
193
193
|
},
|
|
194
|
-
components:
|
|
194
|
+
components: chunkI4GJZLJU_cjs.mergeComponentThemeOverrides(
|
|
195
195
|
presetConfig?.components,
|
|
196
196
|
localComponents
|
|
197
197
|
),
|