@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
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var chunkFJB3243S_cjs = require('./chunk-FJB3243S.cjs');
|
|
4
|
-
var
|
|
4
|
+
var chunkGFGMGJ5A_cjs = require('./chunk-GFGMGJ5A.cjs');
|
|
5
5
|
var chunkHSDMJUB6_cjs = require('./chunk-HSDMJUB6.cjs');
|
|
6
|
-
var
|
|
7
|
-
var
|
|
8
|
-
require('./tokens-
|
|
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('./ColorPicker-GRZOKR5O.css');
|
|
11
11
|
var React = require('react');
|
|
@@ -295,8 +295,8 @@ var ColorPickerBase = React__namespace.forwardRef(
|
|
|
295
295
|
panelWidth: 256,
|
|
296
296
|
panelHeight: 300
|
|
297
297
|
});
|
|
298
|
-
const portalContainer =
|
|
299
|
-
const portalTheme =
|
|
298
|
+
const portalContainer = chunkI4GJZLJU_cjs.usePortalContainer();
|
|
299
|
+
const portalTheme = chunkV6BLBIY6_cjs.useComponentPortalTheme(["ColorPicker", "ThemePanel"]);
|
|
300
300
|
const panelId = React__namespace.useId();
|
|
301
301
|
chunkHSDMJUB6_cjs.useOverlayLayer({
|
|
302
302
|
open: open && !disabled && portalContainer != null,
|
|
@@ -497,8 +497,8 @@ var ColorPickerBase = React__namespace.forwardRef(
|
|
|
497
497
|
/* @__PURE__ */ jsxRuntime.jsx(HueSlider, { hue: h, onChange: handleHue }),
|
|
498
498
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "cp-row", children: [
|
|
499
499
|
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "cp-swatch sm", style: { background: current } }),
|
|
500
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
501
|
-
|
|
500
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkV6BLBIY6_cjs.InternalComponentThemePart, { components: "Input", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
501
|
+
chunkGFGMGJ5A_cjs.Input,
|
|
502
502
|
{
|
|
503
503
|
className: "cp-input",
|
|
504
504
|
size: "sm",
|
|
@@ -533,7 +533,7 @@ var ColorPickerBase = React__namespace.forwardRef(
|
|
|
533
533
|
}
|
|
534
534
|
);
|
|
535
535
|
ColorPickerBase.displayName = "ColorPicker";
|
|
536
|
-
var ColorPicker =
|
|
536
|
+
var ColorPicker = chunkV6BLBIY6_cjs.withComponentTheme(
|
|
537
537
|
ColorPickerBase,
|
|
538
538
|
"ColorPicker",
|
|
539
539
|
["color-picker", "input"]
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
require('./tokens-
|
|
3
|
+
var chunk7KA5D37Z_cjs = require('./chunk-7KA5D37Z.cjs');
|
|
4
|
+
var chunkV6BLBIY6_cjs = require('./chunk-V6BLBIY6.cjs');
|
|
5
|
+
require('./tokens-223RYVVS.css');
|
|
6
6
|
require('./shared-NJHRNLRH.css');
|
|
7
7
|
require('./TablePro-WYE6TXWJ.css');
|
|
8
8
|
var React = require('react');
|
|
@@ -57,6 +57,8 @@ var TableProInner = ({
|
|
|
57
57
|
tableProps,
|
|
58
58
|
caption,
|
|
59
59
|
onRowClick,
|
|
60
|
+
activeRowKey,
|
|
61
|
+
rowClassName,
|
|
60
62
|
empty,
|
|
61
63
|
...rootProps
|
|
62
64
|
}, ref) => {
|
|
@@ -74,8 +76,8 @@ var TableProInner = ({
|
|
|
74
76
|
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "table-toolbar-main", children: toolbar }),
|
|
75
77
|
actions && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "table-toolbar-actions", children: actions })
|
|
76
78
|
] }),
|
|
77
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
78
|
-
|
|
79
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkV6BLBIY6_cjs.InternalComponentThemePart, { components: "Table", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
80
|
+
chunk7KA5D37Z_cjs.Table,
|
|
79
81
|
{
|
|
80
82
|
columns,
|
|
81
83
|
data,
|
|
@@ -97,6 +99,8 @@ var TableProInner = ({
|
|
|
97
99
|
tableProps,
|
|
98
100
|
caption,
|
|
99
101
|
onRowClick,
|
|
102
|
+
activeRowKey,
|
|
103
|
+
rowClassName,
|
|
100
104
|
empty,
|
|
101
105
|
className: innerTableClassName,
|
|
102
106
|
style: tableStyle
|
|
@@ -109,7 +113,7 @@ var TableProInner = ({
|
|
|
109
113
|
};
|
|
110
114
|
var TableProBase = React__namespace.forwardRef(TableProInner);
|
|
111
115
|
TableProBase.displayName = "TablePro";
|
|
112
|
-
var TablePro =
|
|
116
|
+
var TablePro = chunkV6BLBIY6_cjs.withComponentTheme(
|
|
113
117
|
TableProBase,
|
|
114
118
|
"TablePro",
|
|
115
119
|
["table-pro", "table", "button", "checkbox", "pagination", "select", "input"]
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var chunkHSDMJUB6_cjs = require('./chunk-HSDMJUB6.cjs');
|
|
4
|
-
var
|
|
5
|
-
var
|
|
6
|
-
var
|
|
7
|
-
var
|
|
8
|
-
require('./tokens-
|
|
4
|
+
var chunkM3JYP3V4_cjs = require('./chunk-M3JYP3V4.cjs');
|
|
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('./Modal-UI2FXNDR.css');
|
|
11
11
|
var React = require('react');
|
|
@@ -73,8 +73,8 @@ var ModalBase = React__namespace.forwardRef((props, ref) => {
|
|
|
73
73
|
onClick,
|
|
74
74
|
...rest
|
|
75
75
|
} = props;
|
|
76
|
-
const portalContainer =
|
|
77
|
-
const portalTheme =
|
|
76
|
+
const portalContainer = chunkI4GJZLJU_cjs.usePortalContainer();
|
|
77
|
+
const portalTheme = chunkV6BLBIY6_cjs.useComponentPortalTheme("Modal");
|
|
78
78
|
const panelRef = React__namespace.useRef(null);
|
|
79
79
|
const titleId = React__namespace.useId();
|
|
80
80
|
const descriptionId = React__namespace.useId();
|
|
@@ -129,10 +129,10 @@ var ModalBase = React__namespace.forwardRef((props, ref) => {
|
|
|
129
129
|
...hasExplicitWidth ? { width } : null,
|
|
130
130
|
...style
|
|
131
131
|
};
|
|
132
|
-
const defaultFooter = /* @__PURE__ */ jsxRuntime.jsxs(
|
|
133
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
132
|
+
const defaultFooter = /* @__PURE__ */ jsxRuntime.jsxs(chunkV6BLBIY6_cjs.InternalComponentThemePart, { components: "Button", children: [
|
|
133
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkM3JYP3V4_cjs.Button, { variant: "ghost", onClick: handleCancel, ...cancelButtonProps, children: cancelText }),
|
|
134
134
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
135
|
-
|
|
135
|
+
chunkM3JYP3V4_cjs.Button,
|
|
136
136
|
{
|
|
137
137
|
variant: "primary",
|
|
138
138
|
loading: confirmLoading,
|
|
@@ -182,7 +182,7 @@ var ModalBase = React__namespace.forwardRef((props, ref) => {
|
|
|
182
182
|
className: "modal-close",
|
|
183
183
|
onClick: handleCancel,
|
|
184
184
|
"aria-label": "Close",
|
|
185
|
-
children: closeIcon ?? /* @__PURE__ */ jsxRuntime.jsx(
|
|
185
|
+
children: closeIcon ?? /* @__PURE__ */ jsxRuntime.jsx(chunkVDVKY2IX_cjs.Icon, { name: "x", size: 16 })
|
|
186
186
|
}
|
|
187
187
|
)
|
|
188
188
|
] }),
|
|
@@ -205,7 +205,7 @@ var ModalBase = React__namespace.forwardRef((props, ref) => {
|
|
|
205
205
|
);
|
|
206
206
|
});
|
|
207
207
|
ModalBase.displayName = "Modal";
|
|
208
|
-
var ThemedModalBase =
|
|
208
|
+
var ThemedModalBase = chunkV6BLBIY6_cjs.withComponentTheme(
|
|
209
209
|
ModalBase,
|
|
210
210
|
"Modal",
|
|
211
211
|
["modal", "button"],
|
|
@@ -262,10 +262,10 @@ var StaticModalHost = ({
|
|
|
262
262
|
destroy();
|
|
263
263
|
}, [destroy, onOk]);
|
|
264
264
|
const okVariant = kind === "error" ? "danger" : "primary";
|
|
265
|
-
const mergedFooter = footer !== void 0 ? footer : okCancel ? /* @__PURE__ */ jsxRuntime.jsxs(
|
|
266
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
265
|
+
const mergedFooter = footer !== void 0 ? footer : okCancel ? /* @__PURE__ */ jsxRuntime.jsxs(chunkV6BLBIY6_cjs.InternalComponentThemePart, { components: "Button", children: [
|
|
266
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkM3JYP3V4_cjs.Button, { variant: "ghost", onClick: close, ...cancelButtonProps, children: cancelText }),
|
|
267
267
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
268
|
-
|
|
268
|
+
chunkM3JYP3V4_cjs.Button,
|
|
269
269
|
{
|
|
270
270
|
variant: okVariant,
|
|
271
271
|
loading: loading || confirmLoading,
|
|
@@ -274,8 +274,8 @@ var StaticModalHost = ({
|
|
|
274
274
|
children: okText
|
|
275
275
|
}
|
|
276
276
|
)
|
|
277
|
-
] }) : /* @__PURE__ */ jsxRuntime.jsx(
|
|
278
|
-
|
|
277
|
+
] }) : /* @__PURE__ */ jsxRuntime.jsx(chunkV6BLBIY6_cjs.InternalComponentThemePart, { components: "Button", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
278
|
+
chunkM3JYP3V4_cjs.Button,
|
|
279
279
|
{
|
|
280
280
|
variant: okVariant,
|
|
281
281
|
loading: loading || confirmLoading,
|
|
@@ -297,7 +297,7 @@ var StaticModalHost = ({
|
|
|
297
297
|
className,
|
|
298
298
|
maskClassName: ["modal-static-overlay", config.maskClassName].filter(Boolean).join(" "),
|
|
299
299
|
children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "modal-static-body", children: [
|
|
300
|
-
icon !== false && /* @__PURE__ */ jsxRuntime.jsx("span", { className: `modal-static-icon ${kind}`, children: icon ?? /* @__PURE__ */ jsxRuntime.jsx(
|
|
300
|
+
icon !== false && /* @__PURE__ */ jsxRuntime.jsx("span", { className: `modal-static-icon ${kind}`, children: icon ?? /* @__PURE__ */ jsxRuntime.jsx(chunkVDVKY2IX_cjs.Icon, { name: staticIconName[kind], size: 20 }) }),
|
|
301
301
|
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "modal-static-content", children: content ?? children })
|
|
302
302
|
] })
|
|
303
303
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
require('./tokens-
|
|
3
|
+
require('./tokens-223RYVVS.css');
|
|
4
4
|
var React3 = require('react');
|
|
5
5
|
var jsxRuntime = require('react/jsx-runtime');
|
|
6
6
|
|
|
@@ -437,16 +437,16 @@ function visualThemeToStyle(snapshot, prefix = "") {
|
|
|
437
437
|
const d = 0.4 + snapshot.intensity * 0.12;
|
|
438
438
|
const dark = snapshot.colorScheme === "dark";
|
|
439
439
|
style[variable("d")] = String(d);
|
|
440
|
-
style[variable("shadow-offset")] = `calc(${dark ?
|
|
441
|
-
style[variable("shadow-blur")] = `calc(${dark ?
|
|
442
|
-
style[variable("shadow-inset-offset")] = `calc(${dark ?
|
|
443
|
-
style[variable("shadow-inset-blur")] = `calc(${dark ?
|
|
440
|
+
style[variable("shadow-offset")] = `calc(${dark ? 3 : 5}px * ${reference("d")} * ${inheritedReference("shadow-scale")})`;
|
|
441
|
+
style[variable("shadow-blur")] = `calc(${dark ? 8 : 12}px * ${reference("d")} * ${inheritedReference("shadow-scale")})`;
|
|
442
|
+
style[variable("shadow-inset-offset")] = `calc(${dark ? 2 : 3}px * ${reference("d")} * ${inheritedReference("shadow-scale")})`;
|
|
443
|
+
style[variable("shadow-inset-blur")] = `calc(${dark ? 5 : 8}px * ${reference("d")} * ${inheritedReference("shadow-scale")})`;
|
|
444
444
|
style[variable("neu-shadow-panel")] = `${reference("shadow-offset")} ${reference("shadow-offset")} ${reference("shadow-blur")} ${reference("shadow-dark")}, calc(${reference("shadow-offset")} * -1) calc(${reference("shadow-offset")} * -1) ${reference("shadow-blur")} ${reference("shadow-light")}`;
|
|
445
445
|
style[variable("neu-shadow-control")] = `calc(${reference("shadow-offset")} * .5) calc(${reference("shadow-offset")} * .5) calc(${reference("shadow-blur")} * .6) ${reference("shadow-dark")}, calc(${reference("shadow-offset")} * -.5) calc(${reference("shadow-offset")} * -.5) calc(${reference("shadow-blur")} * .6) ${reference("shadow-light")}`;
|
|
446
446
|
style[variable("neu-shadow-lift")] = `calc(${reference("shadow-offset")} * 1.6) calc(${reference("shadow-offset")} * 1.6) calc(${reference("shadow-blur")} * 1.4) ${reference("shadow-dark")}, calc(${reference("shadow-offset")} * -1.6) calc(${reference("shadow-offset")} * -1.6) calc(${reference("shadow-blur")} * 1.4) ${reference("shadow-light")}`;
|
|
447
447
|
style[variable("neu-shadow-inset-strong")] = `inset ${reference("shadow-inset-offset")} ${reference("shadow-inset-offset")} ${reference("shadow-inset-blur")} ${reference("shadow-dark")}, inset calc(${reference("shadow-inset-offset")} * -1) calc(${reference("shadow-inset-offset")} * -1) ${reference("shadow-inset-blur")} ${reference("shadow-light")}`;
|
|
448
448
|
style[variable("neu-shadow-inset")] = `inset calc(${reference("shadow-inset-offset")} * .6) calc(${reference("shadow-inset-offset")} * .6) calc(${reference("shadow-inset-blur")} * .6) ${reference("shadow-dark")}, inset calc(${reference("shadow-inset-offset")} * -.6) calc(${reference("shadow-inset-offset")} * -.6) calc(${reference("shadow-inset-blur")} * .6) ${reference("shadow-light")}`;
|
|
449
|
-
style[variable("neu-shadow-subtle")] =
|
|
449
|
+
style[variable("neu-shadow-subtle")] = `.75px .75px 1.5px ${reference("shadow-dark")}, -.75px -.75px 1.5px ${reference("shadow-light")}`;
|
|
450
450
|
style[variable("neu-shadow-float")] = `0 calc(${reference("shadow-offset")} * 1.8 * ${inheritedReference("shadow-float-scale")}) calc(${reference("shadow-blur")} * 2.2 * ${inheritedReference("shadow-float-scale")}) ${reference("shadow-dark")}, 0 calc(${reference("shadow-offset")} * .4 * ${inheritedReference("shadow-float-scale")}) calc(${reference("shadow-blur")} * .7 * ${inheritedReference("shadow-float-scale")}) ${reference("shadow-dark")}`;
|
|
451
451
|
style[variable("neu-out")] = reference("neu-shadow-panel");
|
|
452
452
|
style[variable("neu-out-sm")] = reference("neu-shadow-control");
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { isTargetWithinOverlayScope } from './chunk-2A4GYSN4.js';
|
|
2
|
-
import { withComponentTheme } from './chunk-
|
|
3
|
-
import './tokens-
|
|
2
|
+
import { withComponentTheme } from './chunk-5HLNFDV4.js';
|
|
3
|
+
import './tokens-223RYVVS.css';
|
|
4
4
|
import './shared-NJHRNLRH.css';
|
|
5
5
|
import './Form-DNEDZRJA.css';
|
|
6
6
|
import * as React from 'react';
|
|
@@ -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 './Divider-OI2BXPBU.css';
|
|
5
5
|
import * as React from 'react';
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { Slider } from './chunk-
|
|
1
|
+
import { Slider } from './chunk-Y3WFWA52.js';
|
|
2
2
|
import { pickLuminaThemePresets } from './chunk-TSL3F2K3.js';
|
|
3
|
-
import { Switch } from './chunk-
|
|
4
|
-
import { RadioGroup } from './chunk-
|
|
5
|
-
import { ColorPicker } from './chunk-
|
|
6
|
-
import { Input } from './chunk-
|
|
7
|
-
import { Button } from './chunk-
|
|
8
|
-
import { Icon } from './chunk-
|
|
9
|
-
import { withInternalComponentThemePart, withComponentTheme } from './chunk-
|
|
10
|
-
import { useTheme, ACCENT_PRESETS, mergeComponentThemeOverrides, FONT_STACKS } from './chunk-
|
|
11
|
-
import './tokens-
|
|
3
|
+
import { Switch } from './chunk-O6PRE6MZ.js';
|
|
4
|
+
import { RadioGroup } from './chunk-D2N7OXMK.js';
|
|
5
|
+
import { ColorPicker } from './chunk-MEBAE7DB.js';
|
|
6
|
+
import { Input } from './chunk-TUXF2G2O.js';
|
|
7
|
+
import { Button } from './chunk-563SQXH7.js';
|
|
8
|
+
import { Icon } from './chunk-2BM65ITV.js';
|
|
9
|
+
import { withInternalComponentThemePart, withComponentTheme } from './chunk-5HLNFDV4.js';
|
|
10
|
+
import { useTheme, ACCENT_PRESETS, mergeComponentThemeOverrides, FONT_STACKS } from './chunk-CPVUDSIY.js';
|
|
11
|
+
import './tokens-223RYVVS.css';
|
|
12
12
|
import './shared-NJHRNLRH.css';
|
|
13
13
|
import './ThemePanel-EHNAS4RN.css';
|
|
14
14
|
import * as React from 'react';
|
|
@@ -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 './Splitter-IQ3PFIKK.css';
|
|
5
5
|
import * as React from 'react';
|
|
@@ -33,6 +33,11 @@ var SplitterBase = React.forwardRef(({
|
|
|
33
33
|
className = "",
|
|
34
34
|
handleClassName = "",
|
|
35
35
|
handleProps,
|
|
36
|
+
firstPaneClassName = "",
|
|
37
|
+
firstPaneStyle,
|
|
38
|
+
secondPaneClassName = "",
|
|
39
|
+
secondPaneStyle,
|
|
40
|
+
handle,
|
|
36
41
|
secondMin = 24,
|
|
37
42
|
storageKey,
|
|
38
43
|
...rest
|
|
@@ -156,6 +161,13 @@ var SplitterBase = React.forwardRef(({
|
|
|
156
161
|
}
|
|
157
162
|
};
|
|
158
163
|
const firstStyle = direction === "horizontal" ? { width: current } : { height: current };
|
|
164
|
+
const {
|
|
165
|
+
className: nativeHandleClassName = "",
|
|
166
|
+
style: nativeHandleStyle,
|
|
167
|
+
children: nativeHandleChildren,
|
|
168
|
+
...nativeHandleProps
|
|
169
|
+
} = handleProps ?? {};
|
|
170
|
+
const handleContent = handle !== void 0 ? handle : nativeHandleChildren !== void 0 ? nativeHandleChildren : /* @__PURE__ */ jsx("span", { className: "splitter-handle-grip", "aria-hidden": true });
|
|
159
171
|
return /* @__PURE__ */ jsxs(
|
|
160
172
|
"div",
|
|
161
173
|
{
|
|
@@ -167,11 +179,18 @@ var SplitterBase = React.forwardRef(({
|
|
|
167
179
|
className: `splitter ${direction} ${dragging ? "dragging" : ""} ${className}`,
|
|
168
180
|
...rest,
|
|
169
181
|
children: [
|
|
170
|
-
/* @__PURE__ */ jsx("div", { className: "splitter-panel first", style: firstStyle, children: children[0] }),
|
|
171
182
|
/* @__PURE__ */ jsx(
|
|
172
183
|
"div",
|
|
173
184
|
{
|
|
174
|
-
|
|
185
|
+
className: ["splitter-panel", "first", firstPaneClassName].filter(Boolean).join(" "),
|
|
186
|
+
style: { ...firstStyle, ...firstPaneStyle },
|
|
187
|
+
children: children[0]
|
|
188
|
+
}
|
|
189
|
+
),
|
|
190
|
+
/* @__PURE__ */ jsx(
|
|
191
|
+
"div",
|
|
192
|
+
{
|
|
193
|
+
...nativeHandleProps,
|
|
175
194
|
role: "separator",
|
|
176
195
|
tabIndex: 0,
|
|
177
196
|
"aria-label": handleProps?.["aria-label"] ?? "\u8C03\u6574\u5206\u680F\u5C3A\u5BF8",
|
|
@@ -179,16 +198,24 @@ var SplitterBase = React.forwardRef(({
|
|
|
179
198
|
"aria-valuenow": current,
|
|
180
199
|
"aria-valuemin": min,
|
|
181
200
|
"aria-valuemax": Number.isFinite(max) ? clamp(max) : void 0,
|
|
182
|
-
className:
|
|
201
|
+
className: ["splitter-handle", handleClassName, nativeHandleClassName].filter(Boolean).join(" "),
|
|
202
|
+
style: nativeHandleStyle,
|
|
183
203
|
onPointerDown,
|
|
184
204
|
onKeyDown: (event) => {
|
|
185
205
|
handleProps?.onKeyDown?.(event);
|
|
186
206
|
if (!event.defaultPrevented) onKeyDown(event);
|
|
187
207
|
},
|
|
188
|
-
children:
|
|
208
|
+
children: handleContent
|
|
189
209
|
}
|
|
190
210
|
),
|
|
191
|
-
/* @__PURE__ */ jsx(
|
|
211
|
+
/* @__PURE__ */ jsx(
|
|
212
|
+
"div",
|
|
213
|
+
{
|
|
214
|
+
className: ["splitter-panel", "second", secondPaneClassName].filter(Boolean).join(" "),
|
|
215
|
+
style: secondPaneStyle,
|
|
216
|
+
children: children[1]
|
|
217
|
+
}
|
|
218
|
+
)
|
|
192
219
|
]
|
|
193
220
|
}
|
|
194
221
|
);
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { Pagination } from './chunk-
|
|
2
|
-
import { Checkbox } from './chunk-
|
|
1
|
+
import { Pagination } from './chunk-UCE53RYR.js';
|
|
2
|
+
import { Checkbox } from './chunk-QSLXUNLM.js';
|
|
3
3
|
import { useFloating } from './chunk-3QXP2ZNP.js';
|
|
4
4
|
import { useOverlayLayer } from './chunk-2A4GYSN4.js';
|
|
5
|
-
import { Button, IconButton } from './chunk-
|
|
6
|
-
import { Icon } from './chunk-
|
|
7
|
-
import { withComponentTheme, InternalComponentThemePart, useComponentPortalTheme } from './chunk-
|
|
8
|
-
import { usePortalContainer } from './chunk-
|
|
9
|
-
import './tokens-
|
|
5
|
+
import { Button, IconButton } from './chunk-563SQXH7.js';
|
|
6
|
+
import { Icon } from './chunk-2BM65ITV.js';
|
|
7
|
+
import { withComponentTheme, InternalComponentThemePart, useComponentPortalTheme } from './chunk-5HLNFDV4.js';
|
|
8
|
+
import { usePortalContainer } from './chunk-CPVUDSIY.js';
|
|
9
|
+
import './tokens-223RYVVS.css';
|
|
10
10
|
import './shared-NJHRNLRH.css';
|
|
11
|
-
import './Table-
|
|
11
|
+
import './Table-KB6EEBDJ.css';
|
|
12
12
|
import * as React from 'react';
|
|
13
13
|
import { createPortal } from 'react-dom';
|
|
14
14
|
import { jsxs, Fragment, jsx } from 'react/jsx-runtime';
|
|
@@ -52,6 +52,8 @@ var TableInner = ({
|
|
|
52
52
|
tableProps,
|
|
53
53
|
caption,
|
|
54
54
|
onRowClick,
|
|
55
|
+
activeRowKey,
|
|
56
|
+
rowClassName,
|
|
55
57
|
empty = "\u6682\u65E0\u6570\u636E",
|
|
56
58
|
className = "",
|
|
57
59
|
style,
|
|
@@ -365,8 +367,10 @@ var TableInner = ({
|
|
|
365
367
|
);
|
|
366
368
|
})
|
|
367
369
|
] }) }),
|
|
368
|
-
/* @__PURE__ */ jsx("tbody", { children: rowsToRender.length === 0 ? /* @__PURE__ */ jsx("tr", { children: /* @__PURE__ */ jsx("td", { colSpan: totalColCount, className: "table-empty", children: empty }) }) : rowsToRender.map(({ row, key: k }, i) => {
|
|
370
|
+
/* @__PURE__ */ jsx("tbody", { children: rowsToRender.length === 0 ? /* @__PURE__ */ jsx("tr", { children: /* @__PURE__ */ jsx("td", { colSpan: totalColCount, className: "table-empty", children: /* @__PURE__ */ jsx("div", { className: "table-empty-content", children: empty }) }) }) : rowsToRender.map(({ row, key: k }, i) => {
|
|
369
371
|
const isSel = selectedKeySet.has(k);
|
|
372
|
+
const isActive = activeRowKey !== void 0 && activeRowKey === k;
|
|
373
|
+
const resolvedRowClassName = typeof rowClassName === "function" ? rowClassName(row, i) : rowClassName;
|
|
370
374
|
const selProps = rowSelection?.getCheckboxProps?.(row);
|
|
371
375
|
const canExpand = hasExpandable && (expandable?.rowExpandable?.(row) ?? true);
|
|
372
376
|
const isExpanded = canExpand && expandedKeySet.has(k);
|
|
@@ -376,10 +380,16 @@ var TableInner = ({
|
|
|
376
380
|
/* @__PURE__ */ jsxs(
|
|
377
381
|
"tr",
|
|
378
382
|
{
|
|
379
|
-
className:
|
|
383
|
+
className: [
|
|
384
|
+
onRowClick ? "clickable" : "",
|
|
385
|
+
isSel ? "selected" : "",
|
|
386
|
+
isActive ? "active-row" : "",
|
|
387
|
+
resolvedRowClassName
|
|
388
|
+
].filter(Boolean).join(" "),
|
|
380
389
|
onClick: onRowClick ? () => onRowClick(row, i) : void 0,
|
|
381
390
|
tabIndex: onRowClick ? 0 : void 0,
|
|
382
391
|
"aria-selected": selectionMode !== "off" ? isSel : void 0,
|
|
392
|
+
"aria-current": isActive ? "true" : void 0,
|
|
383
393
|
onKeyDown: onRowClick ? (event) => {
|
|
384
394
|
if (event.currentTarget !== event.target) return;
|
|
385
395
|
if (event.key === "Enter" || event.key === " ") {
|