@fangxinyan/lumina 0.6.12 → 0.6.14
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 +3 -3
- package/dist/Alert.js +2 -2
- package/dist/AppShell.cjs +5 -5
- package/dist/AppShell.js +1 -1
- package/dist/AutoComplete.cjs +5 -5
- package/dist/AutoComplete.js +4 -4
- package/dist/Avatar.cjs +2 -2
- package/dist/Avatar.js +1 -1
- package/dist/Badge.cjs +2 -2
- package/dist/Badge.js +1 -1
- package/dist/Button.cjs +4 -4
- package/dist/Button.js +2 -2
- package/dist/Calendar.cjs +3 -3
- package/dist/Calendar.js +2 -2
- package/dist/Card.cjs +3 -3
- package/dist/Card.js +2 -2
- package/dist/Cascader.cjs +5 -5
- package/dist/Cascader.js +4 -4
- package/dist/Checkbox.cjs +3 -3
- package/dist/Checkbox.js +2 -2
- package/dist/Collapse.cjs +3 -3
- package/dist/Collapse.js +2 -2
- package/dist/ColorPicker.cjs +2 -2
- package/dist/ColorPicker.js +1 -1
- package/dist/CommandPalette.cjs +5 -5
- package/dist/CommandPalette.js +4 -4
- package/dist/ContextMenu.cjs +2 -2
- package/dist/ContextMenu.js +1 -1
- package/dist/Divider.cjs +2 -2
- package/dist/Divider.js +1 -1
- package/dist/{Drawer-7N3URAJ6.css → Drawer-7KICRM4L.css} +1 -1
- package/dist/Drawer.cjs +3 -3
- package/dist/Drawer.d.cts +4 -0
- package/dist/Drawer.d.ts +4 -0
- package/dist/Drawer.js +2 -2
- package/dist/Empty.cjs +2 -2
- package/dist/Empty.js +1 -1
- package/dist/Form.cjs +4 -4
- package/dist/Form.js +1 -1
- package/dist/Icon.cjs +49 -49
- package/dist/Icon.js +1 -1
- package/dist/{Image-SGSRTHQX.css → Image-TDCXJISG.css} +1 -1
- package/dist/Image.cjs +6 -6
- package/dist/Image.d.cts +4 -0
- package/dist/Image.d.ts +4 -0
- package/dist/Image.js +2 -2
- package/dist/Input.cjs +5 -5
- package/dist/Input.js +3 -3
- package/dist/InputNumber.cjs +5 -5
- package/dist/InputNumber.js +4 -4
- package/dist/List.cjs +2 -2
- package/dist/List.js +1 -1
- package/dist/Message.cjs +6 -6
- package/dist/Message.js +2 -2
- package/dist/{Modal-MCFDYVUQ.css → Modal-ZFWNFEA5.css} +1 -1
- package/dist/Modal.cjs +4 -4
- package/dist/Modal.d.cts +4 -0
- package/dist/Modal.d.ts +4 -0
- package/dist/Modal.js +3 -3
- package/dist/Pagination.cjs +7 -7
- package/dist/Pagination.js +6 -6
- package/dist/Popover.cjs +2 -2
- package/dist/Popover.js +1 -1
- package/dist/Progress.cjs +2 -2
- package/dist/Progress.js +1 -1
- package/dist/Radio.cjs +3 -3
- package/dist/Radio.js +1 -1
- package/dist/Select.cjs +6 -6
- package/dist/Select.js +5 -5
- package/dist/Skeleton.cjs +2 -2
- package/dist/Skeleton.js +1 -1
- package/dist/Slider.cjs +2 -2
- package/dist/Slider.js +1 -1
- package/dist/Spin.cjs +2 -2
- package/dist/Spin.js +1 -1
- package/dist/Splitter.cjs +2 -2
- package/dist/Splitter.js +1 -1
- package/dist/StatusBar.cjs +3 -3
- package/dist/StatusBar.js +1 -1
- package/dist/Surface.cjs +4 -4
- package/dist/Surface.js +2 -2
- package/dist/Switch.cjs +2 -2
- package/dist/Switch.js +1 -1
- package/dist/Table.cjs +9 -9
- package/dist/Table.js +8 -8
- package/dist/TablePro.cjs +10 -10
- package/dist/TablePro.js +9 -9
- package/dist/Tabs.cjs +2 -2
- package/dist/Tabs.js +1 -1
- package/dist/Tag.cjs +3 -3
- package/dist/Tag.js +2 -2
- package/dist/Textarea.cjs +4 -4
- package/dist/Textarea.js +2 -2
- package/dist/Theme.cjs +11 -11
- package/dist/Theme.d.cts +1 -1
- package/dist/Theme.d.ts +1 -1
- package/dist/Theme.js +1 -1
- package/dist/ThemePanel.cjs +13 -13
- package/dist/ThemePanel.js +10 -10
- package/dist/Timeline.cjs +3 -3
- package/dist/Timeline.js +2 -2
- package/dist/Tooltip.cjs +2 -2
- package/dist/Tooltip.js +1 -1
- package/dist/Typography.cjs +7 -7
- package/dist/Typography.js +2 -2
- package/dist/{chunk-KZZ5Y56R.cjs → chunk-262ED6WQ.cjs} +3 -3
- package/dist/{chunk-ZTIECMCF.js → chunk-3VSHGM54.js} +84 -28
- package/dist/{chunk-3VXBSLPT.js → chunk-3VXGZ3SJ.js} +3 -3
- package/dist/{chunk-FPII6I52.js → chunk-4HJBF4GY.js} +3 -3
- package/dist/{chunk-3HPHQV2L.cjs → chunk-4TTRHEGM.cjs} +3 -3
- package/dist/{chunk-5JNRCBTF.js → chunk-4YSGGZDB.js} +4 -4
- package/dist/{chunk-2LM5UYNU.cjs → chunk-5A6KSYWA.cjs} +1 -1
- package/dist/{chunk-76OH42CM.cjs → chunk-5ERD3W24.cjs} +4 -4
- package/dist/{chunk-64ZQHLHL.js → chunk-5MOYKVB7.js} +2 -2
- package/dist/{chunk-PEFIXNAV.cjs → chunk-5QEI7GGA.cjs} +6 -6
- package/dist/{chunk-NUF3EA7T.js → chunk-6HF6UF73.js} +2 -2
- package/dist/{chunk-I5XCHN67.js → chunk-6K5YI4ZE.js} +2 -2
- package/dist/{chunk-5CWTC3I2.js → chunk-6LC4QROE.js} +3 -3
- package/dist/{chunk-OVTB7FQQ.js → chunk-6LN4VVX7.js} +2 -2
- package/dist/{chunk-RYRBNMCC.js → chunk-6MEOLYNQ.js} +1 -1
- package/dist/{chunk-MOLKLUSQ.js → chunk-6PHPRZTT.js} +4 -4
- package/dist/{chunk-GT34KAMX.cjs → chunk-6Q76VLCE.cjs} +3 -3
- package/dist/{chunk-FL25IGIG.cjs → chunk-7IO3EOHN.cjs} +3 -3
- package/dist/{chunk-4LOOWTRX.cjs → chunk-7QXP6DXC.cjs} +4 -4
- package/dist/{chunk-HXQWVPT3.cjs → chunk-7YJV45U6.cjs} +11 -11
- package/dist/{chunk-F3DN2JGE.cjs → chunk-A4Z7PLHV.cjs} +129 -73
- package/dist/{chunk-762NV3E4.js → chunk-A6O25EP2.js} +2 -2
- package/dist/{chunk-XN52S7PT.js → chunk-AAPZLBHQ.js} +1 -1
- package/dist/{chunk-RBDBEXUU.js → chunk-ARUPS7JH.js} +2 -2
- package/dist/{chunk-5KGGB3EH.cjs → chunk-ATUPFAPZ.cjs} +3 -3
- package/dist/{chunk-D56CNYUP.cjs → chunk-BNY2NVTL.cjs} +3 -3
- package/dist/{chunk-ZGDAYWWC.cjs → chunk-BT2RXFT4.cjs} +15 -13
- package/dist/{chunk-SGNDIRZC.js → chunk-BVQOJKRX.js} +8 -6
- package/dist/{chunk-MZCKPLHQ.cjs → chunk-BW76ENTW.cjs} +1 -1
- package/dist/{chunk-ZCMFLRZS.js → chunk-CFZVWY5N.js} +2 -2
- package/dist/{chunk-Q5KHJ32P.js → chunk-D7GK6H6V.js} +1 -1
- package/dist/{chunk-BY2YW5XN.js → chunk-DSLYWX4O.js} +1 -1
- package/dist/{chunk-GEANNF4T.js → chunk-EQ4FPOQQ.js} +14 -4
- package/dist/{chunk-J2R3BEEH.cjs → chunk-ES7AWMNH.cjs} +1 -1
- package/dist/{chunk-N4JH6HHA.cjs → chunk-FDUQPAQE.cjs} +1 -1
- package/dist/{chunk-SNX4FZYB.js → chunk-FDZG27IG.js} +1 -1
- package/dist/{chunk-VM6CJYP6.cjs → chunk-FQJY4D3T.cjs} +1 -1
- package/dist/{chunk-3GJZRYTD.js → chunk-FYSXJXNW.js} +1 -1
- package/dist/{chunk-7ZCTEIOW.js → chunk-GNV6W4BN.js} +1 -1
- package/dist/{chunk-PWPL3DRN.js → chunk-HBO7ZDEQ.js} +1 -1
- package/dist/{chunk-QKWRN2JL.js → chunk-I777JTTG.js} +1 -1
- package/dist/{chunk-QDXBI3PV.js → chunk-IOAOG5L7.js} +3 -3
- package/dist/{chunk-JWZ6HJIF.cjs → chunk-IOUAZYK2.cjs} +1 -1
- package/dist/{chunk-VRA4CQCJ.js → chunk-IPSNC5VZ.js} +2 -2
- package/dist/{chunk-F65KYGPX.cjs → chunk-IVFVLRWJ.cjs} +14 -14
- package/dist/{chunk-R53WIZY5.js → chunk-IZHH6CVY.js} +1 -1
- package/dist/{chunk-WIZVOZNO.js → chunk-JFL2WMJZ.js} +2 -2
- package/dist/{chunk-DDCAHAAE.cjs → chunk-JMFHL7GN.cjs} +1 -1
- package/dist/{chunk-44WHEN76.js → chunk-KMPFESEV.js} +1 -1
- package/dist/{chunk-P434GBHP.js → chunk-KYV75JPQ.js} +1 -1
- package/dist/{chunk-AYZ4BWHG.cjs → chunk-LEMMFFEY.cjs} +4 -4
- package/dist/{chunk-MLOT2AGK.cjs → chunk-M4NJTJKV.cjs} +1 -1
- package/dist/{chunk-TWJAYAK2.js → chunk-MOZ52KN6.js} +1 -1
- package/dist/{chunk-XWRQ7ZLT.cjs → chunk-MPOO5VPW.cjs} +1 -1
- package/dist/{chunk-HFM4YKM5.cjs → chunk-MYW7LNB2.cjs} +1 -1
- package/dist/{chunk-IMAGOTLP.cjs → chunk-N7OQNSII.cjs} +1 -1
- package/dist/{chunk-7IWYBQAE.js → chunk-OTSDPQPV.js} +2 -2
- package/dist/{chunk-LF3ATJFY.cjs → chunk-P2OQTJZP.cjs} +1 -1
- package/dist/{chunk-62RPBEAW.js → chunk-P64NPZBG.js} +2 -2
- package/dist/{chunk-73T32MII.cjs → chunk-PBT4UKPL.cjs} +3 -3
- package/dist/{chunk-DGB6KVU3.cjs → chunk-PKNRTFNE.cjs} +1 -1
- package/dist/{chunk-5C3ZSOKF.cjs → chunk-POU3W5J3.cjs} +1 -1
- package/dist/{chunk-ZC5VDX4W.cjs → chunk-PSQ3HNZP.cjs} +1 -1
- package/dist/{chunk-6VSNO7IH.js → chunk-PU7VXDAS.js} +1 -1
- package/dist/{chunk-GJAEGIPM.cjs → chunk-QMX67CVT.cjs} +1 -1
- package/dist/{chunk-CBZJ4UL4.js → chunk-QNN3YV2P.js} +2 -2
- package/dist/{chunk-JPAYPF6H.js → chunk-R3DTXVP2.js} +1 -1
- package/dist/{chunk-Z35Q432P.cjs → chunk-RFI5R42I.cjs} +4 -4
- package/dist/{chunk-3NSBPQBT.cjs → chunk-RMFSX7DO.cjs} +18 -8
- package/dist/{chunk-TJB7U72Z.js → chunk-RR2BKV65.js} +1 -1
- package/dist/{chunk-AA2FRQUQ.cjs → chunk-RSSOX4RQ.cjs} +8 -8
- package/dist/{chunk-LW6Z2WDZ.cjs → chunk-RZEFKXL3.cjs} +3 -3
- package/dist/{chunk-XPV672EI.cjs → chunk-S2ZGXBUH.cjs} +1 -1
- package/dist/{chunk-7DNK5JB2.js → chunk-S7IHWY24.js} +2 -2
- package/dist/{chunk-4N64ZL5M.cjs → chunk-SOQ56ZI2.cjs} +1 -1
- package/dist/{chunk-S4CZ3VO6.cjs → chunk-SW2HMNCA.cjs} +4 -4
- package/dist/{chunk-KOY7GNP3.cjs → chunk-TBNPJPYG.cjs} +1 -1
- package/dist/{chunk-AHS2AFTD.js → chunk-TJECLLN4.js} +1 -1
- package/dist/{chunk-HR5QBBIS.js → chunk-TYLDISRK.js} +1 -1
- package/dist/{chunk-7UCXY4T5.cjs → chunk-ULUD3FED.cjs} +9 -6
- package/dist/{chunk-FJHFUES7.cjs → chunk-V5KUC5VH.cjs} +1 -1
- package/dist/{chunk-XOYMBL5R.cjs → chunk-VA2I7ZAL.cjs} +1 -1
- package/dist/{chunk-7OYMY22O.cjs → chunk-VS3I5OKA.cjs} +8 -8
- package/dist/{chunk-EXN64ADJ.js → chunk-WMGMIE2D.js} +8 -5
- package/dist/{chunk-VUTCNATX.cjs → chunk-X5MYHDEQ.cjs} +6 -6
- package/dist/{chunk-2EY34PPA.cjs → chunk-X7XP6GEI.cjs} +1 -1
- package/dist/{chunk-WIBAYFBB.js → chunk-XCXUGHDF.js} +1 -1
- package/dist/{chunk-W72IIGOV.js → chunk-XG5D777V.js} +2 -2
- package/dist/{chunk-Q77BWQNG.js → chunk-YAFDVNXT.js} +1 -1
- package/dist/{chunk-HTW62OMX.cjs → chunk-ZBTGYTQE.cjs} +4 -4
- package/dist/{chunk-XVDD6JEU.cjs → chunk-ZBWUIR2J.cjs} +6 -6
- package/dist/{chunk-PHONNUK2.js → chunk-ZD3L4V3H.js} +2 -2
- package/dist/{chunk-ACZA7HHP.js → chunk-ZR4IMROK.js} +1 -1
- package/dist/{chunk-GVPGJXZT.js → chunk-ZTCRD2FL.js} +1 -1
- package/dist/index.cjs +174 -174
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +48 -48
- package/dist/styles.css +7 -4
- package/dist/{tokens-RGFJKRC7.css → tokens-RYJ3DFTU.css} +4 -1
- package/dist/tokens.css +4 -1
- package/docs/llms/drawer.md +13 -0
- package/docs/llms/image.md +14 -0
- package/docs/llms/modal.md +13 -0
- package/docs/llms/theme.md +3 -3
- package/docs/llms.md +1 -1
- package/package.json +1 -1
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { Slider } from './chunk-
|
|
1
|
+
import { Slider } from './chunk-D7GK6H6V.js';
|
|
2
2
|
import { pickLuminaThemePresets } from './chunk-6SPMHY54.js';
|
|
3
|
-
import { useTheme, ACCENT_PRESETS, FONT_STACKS } from './chunk-
|
|
4
|
-
import { Switch } from './chunk-
|
|
5
|
-
import { RadioGroup } from './chunk-
|
|
6
|
-
import { ColorPicker } from './chunk-
|
|
7
|
-
import { Input } from './chunk-
|
|
8
|
-
import { Button } from './chunk-
|
|
9
|
-
import { Icon } from './chunk-
|
|
10
|
-
import './tokens-
|
|
3
|
+
import { useTheme, ACCENT_PRESETS, FONT_STACKS } from './chunk-GNV6W4BN.js';
|
|
4
|
+
import { Switch } from './chunk-PU7VXDAS.js';
|
|
5
|
+
import { RadioGroup } from './chunk-KYV75JPQ.js';
|
|
6
|
+
import { ColorPicker } from './chunk-TJECLLN4.js';
|
|
7
|
+
import { Input } from './chunk-IOAOG5L7.js';
|
|
8
|
+
import { Button } from './chunk-IPSNC5VZ.js';
|
|
9
|
+
import { Icon } from './chunk-FDZG27IG.js';
|
|
10
|
+
import './tokens-RYJ3DFTU.css';
|
|
11
11
|
import './shared-NJHRNLRH.css';
|
|
12
12
|
import './ThemePanel-TEHB2JCQ.css';
|
|
13
13
|
import * as React from 'react';
|
|
@@ -99,6 +99,13 @@ var ACCENT_PALETTE_FIELDS = [
|
|
|
99
99
|
{ key: "soft", label: "\u67D4\u548C\u5E95" },
|
|
100
100
|
{ key: "glow", label: "\u5149\u6655" }
|
|
101
101
|
];
|
|
102
|
+
var THEME_PANEL_RANGES = {
|
|
103
|
+
intensity: { min: 0, max: 20, step: 1 },
|
|
104
|
+
radius: { min: 0, max: 64, step: 2 },
|
|
105
|
+
shadowScale: { min: 0.2, max: 3, step: 0.05 },
|
|
106
|
+
shadowFloatScale: { min: 0.2, max: 4, step: 0.05 }
|
|
107
|
+
};
|
|
108
|
+
var getShadowScaleRange = (key) => key === "shadow-float-scale" ? THEME_PANEL_RANGES.shadowFloatScale : THEME_PANEL_RANGES.shadowScale;
|
|
102
109
|
function accentFromPreset(preset) {
|
|
103
110
|
const accent = preset?.accent ?? "sky";
|
|
104
111
|
if (typeof accent === "string") {
|
|
@@ -296,9 +303,9 @@ function fontToStack(font) {
|
|
|
296
303
|
function tokenPickerValue(value, fallback) {
|
|
297
304
|
return cssColorToHex(value ?? fallback, fallback);
|
|
298
305
|
}
|
|
299
|
-
function parseScaleToken(value, fallback = 1) {
|
|
306
|
+
function parseScaleToken(value, fallback = 1, range = THEME_PANEL_RANGES.shadowScale) {
|
|
300
307
|
const parsed = Number.parseFloat(value ?? "");
|
|
301
|
-
return Number.isFinite(parsed) ? Math.min(
|
|
308
|
+
return Number.isFinite(parsed) ? Math.min(range.max, Math.max(range.min, parsed)) : fallback;
|
|
302
309
|
}
|
|
303
310
|
function formatScaleToken(value) {
|
|
304
311
|
return value.toFixed(2).replace(/\.?0+$/, "");
|
|
@@ -769,10 +776,14 @@ var ThemePanel = React.forwardRef(
|
|
|
769
776
|
};
|
|
770
777
|
const rootClass = ["theme-panel", compact && "compact", className].filter(Boolean).join(" ");
|
|
771
778
|
const shadowScale = parseScaleToken(
|
|
772
|
-
theme.tokens["shadow-scale"] ?? readCssVar(rootRef.current, "--shadow-scale", "1")
|
|
779
|
+
theme.tokens["shadow-scale"] ?? readCssVar(rootRef.current, "--shadow-scale", "1"),
|
|
780
|
+
1,
|
|
781
|
+
THEME_PANEL_RANGES.shadowScale
|
|
773
782
|
);
|
|
774
783
|
const shadowFloatScale = parseScaleToken(
|
|
775
|
-
theme.tokens["shadow-float-scale"] ?? readCssVar(rootRef.current, "--shadow-float-scale", "1")
|
|
784
|
+
theme.tokens["shadow-float-scale"] ?? readCssVar(rootRef.current, "--shadow-float-scale", "1"),
|
|
785
|
+
1,
|
|
786
|
+
THEME_PANEL_RANGES.shadowFloatScale
|
|
776
787
|
);
|
|
777
788
|
const updateThemeToken = (key, value) => {
|
|
778
789
|
theme.setTokens({ ...theme.tokens, [key]: value });
|
|
@@ -915,11 +926,11 @@ var ThemePanel = React.forwardRef(
|
|
|
915
926
|
/* @__PURE__ */ jsx(
|
|
916
927
|
Slider,
|
|
917
928
|
{
|
|
918
|
-
value: parseScaleToken(tokens[field.key]),
|
|
929
|
+
value: parseScaleToken(tokens[field.key], 1, getShadowScaleRange(field.key)),
|
|
919
930
|
onChange: (value) => onTokenChange(field.key, formatScaleToken(value)),
|
|
920
|
-
min:
|
|
921
|
-
max: field.key
|
|
922
|
-
step:
|
|
931
|
+
min: getShadowScaleRange(field.key).min,
|
|
932
|
+
max: getShadowScaleRange(field.key).max,
|
|
933
|
+
step: getShadowScaleRange(field.key).step
|
|
923
934
|
}
|
|
924
935
|
)
|
|
925
936
|
] })
|
|
@@ -1111,7 +1122,16 @@ var ThemePanel = React.forwardRef(
|
|
|
1111
1122
|
/* @__PURE__ */ jsx("span", { children: "\u9634\u5F71\u5F3A\u5EA6" }),
|
|
1112
1123
|
/* @__PURE__ */ jsx("span", { children: draftIntensity })
|
|
1113
1124
|
] }),
|
|
1114
|
-
/* @__PURE__ */ jsx(
|
|
1125
|
+
/* @__PURE__ */ jsx(
|
|
1126
|
+
Slider,
|
|
1127
|
+
{
|
|
1128
|
+
value: draftIntensity,
|
|
1129
|
+
onChange: setDraftIntensity,
|
|
1130
|
+
min: THEME_PANEL_RANGES.intensity.min,
|
|
1131
|
+
max: THEME_PANEL_RANGES.intensity.max,
|
|
1132
|
+
step: THEME_PANEL_RANGES.intensity.step
|
|
1133
|
+
}
|
|
1134
|
+
),
|
|
1115
1135
|
/* @__PURE__ */ jsxs("div", { className: "theme-panel-label", children: [
|
|
1116
1136
|
/* @__PURE__ */ jsx("span", { children: "\u5706\u89D2" }),
|
|
1117
1137
|
/* @__PURE__ */ jsxs("span", { children: [
|
|
@@ -1119,7 +1139,16 @@ var ThemePanel = React.forwardRef(
|
|
|
1119
1139
|
"px"
|
|
1120
1140
|
] })
|
|
1121
1141
|
] }),
|
|
1122
|
-
/* @__PURE__ */ jsx(
|
|
1142
|
+
/* @__PURE__ */ jsx(
|
|
1143
|
+
Slider,
|
|
1144
|
+
{
|
|
1145
|
+
value: draftRadius,
|
|
1146
|
+
onChange: setDraftRadius,
|
|
1147
|
+
min: THEME_PANEL_RANGES.radius.min,
|
|
1148
|
+
max: THEME_PANEL_RANGES.radius.max,
|
|
1149
|
+
step: THEME_PANEL_RANGES.radius.step
|
|
1150
|
+
}
|
|
1151
|
+
)
|
|
1123
1152
|
] }),
|
|
1124
1153
|
/* @__PURE__ */ jsxs("div", { className: "theme-panel-create-field", children: [
|
|
1125
1154
|
/* @__PURE__ */ jsx("span", { children: "\u5BC6\u5EA6" }),
|
|
@@ -1236,7 +1265,16 @@ var ThemePanel = React.forwardRef(
|
|
|
1236
1265
|
/* @__PURE__ */ jsx("span", { children: "\u9634\u5F71\u5F3A\u5EA6" }),
|
|
1237
1266
|
/* @__PURE__ */ jsx("span", { children: theme.intensity })
|
|
1238
1267
|
] }),
|
|
1239
|
-
/* @__PURE__ */ jsx(
|
|
1268
|
+
/* @__PURE__ */ jsx(
|
|
1269
|
+
Slider,
|
|
1270
|
+
{
|
|
1271
|
+
value: theme.intensity,
|
|
1272
|
+
onChange: theme.setIntensity,
|
|
1273
|
+
min: THEME_PANEL_RANGES.intensity.min,
|
|
1274
|
+
max: THEME_PANEL_RANGES.intensity.max,
|
|
1275
|
+
step: THEME_PANEL_RANGES.intensity.step
|
|
1276
|
+
}
|
|
1277
|
+
),
|
|
1240
1278
|
/* @__PURE__ */ jsxs("div", { className: "theme-panel-label", children: [
|
|
1241
1279
|
/* @__PURE__ */ jsx("span", { children: "\u9634\u5F71\u6269\u6563" }),
|
|
1242
1280
|
/* @__PURE__ */ jsxs("span", { children: [
|
|
@@ -1249,9 +1287,9 @@ var ThemePanel = React.forwardRef(
|
|
|
1249
1287
|
{
|
|
1250
1288
|
value: shadowScale,
|
|
1251
1289
|
onChange: (value) => updateThemeToken("shadow-scale", formatScaleToken(value)),
|
|
1252
|
-
min:
|
|
1253
|
-
max:
|
|
1254
|
-
step:
|
|
1290
|
+
min: THEME_PANEL_RANGES.shadowScale.min,
|
|
1291
|
+
max: THEME_PANEL_RANGES.shadowScale.max,
|
|
1292
|
+
step: THEME_PANEL_RANGES.shadowScale.step
|
|
1255
1293
|
}
|
|
1256
1294
|
),
|
|
1257
1295
|
/* @__PURE__ */ jsxs("div", { className: "theme-panel-label", children: [
|
|
@@ -1266,9 +1304,9 @@ var ThemePanel = React.forwardRef(
|
|
|
1266
1304
|
{
|
|
1267
1305
|
value: shadowFloatScale,
|
|
1268
1306
|
onChange: (value) => updateThemeToken("shadow-float-scale", formatScaleToken(value)),
|
|
1269
|
-
min:
|
|
1270
|
-
max:
|
|
1271
|
-
step:
|
|
1307
|
+
min: THEME_PANEL_RANGES.shadowFloatScale.min,
|
|
1308
|
+
max: THEME_PANEL_RANGES.shadowFloatScale.max,
|
|
1309
|
+
step: THEME_PANEL_RANGES.shadowFloatScale.step
|
|
1272
1310
|
}
|
|
1273
1311
|
)
|
|
1274
1312
|
] }),
|
|
@@ -1277,7 +1315,16 @@ var ThemePanel = React.forwardRef(
|
|
|
1277
1315
|
/* @__PURE__ */ jsx("span", { children: "\u9634\u5F71" }),
|
|
1278
1316
|
/* @__PURE__ */ jsx("span", { children: theme.intensity })
|
|
1279
1317
|
] }),
|
|
1280
|
-
/* @__PURE__ */ jsx(
|
|
1318
|
+
/* @__PURE__ */ jsx(
|
|
1319
|
+
Slider,
|
|
1320
|
+
{
|
|
1321
|
+
value: theme.intensity,
|
|
1322
|
+
onChange: theme.setIntensity,
|
|
1323
|
+
min: THEME_PANEL_RANGES.intensity.min,
|
|
1324
|
+
max: THEME_PANEL_RANGES.intensity.max,
|
|
1325
|
+
step: THEME_PANEL_RANGES.intensity.step
|
|
1326
|
+
}
|
|
1327
|
+
)
|
|
1281
1328
|
] }),
|
|
1282
1329
|
sections.includes("radius") && /* @__PURE__ */ jsxs("div", { className: "theme-panel-row", children: [
|
|
1283
1330
|
/* @__PURE__ */ jsxs("div", { className: "theme-panel-label", children: [
|
|
@@ -1287,7 +1334,16 @@ var ThemePanel = React.forwardRef(
|
|
|
1287
1334
|
"px"
|
|
1288
1335
|
] })
|
|
1289
1336
|
] }),
|
|
1290
|
-
/* @__PURE__ */ jsx(
|
|
1337
|
+
/* @__PURE__ */ jsx(
|
|
1338
|
+
Slider,
|
|
1339
|
+
{
|
|
1340
|
+
value: theme.radius,
|
|
1341
|
+
onChange: theme.setRadius,
|
|
1342
|
+
min: THEME_PANEL_RANGES.radius.min,
|
|
1343
|
+
max: THEME_PANEL_RANGES.radius.max,
|
|
1344
|
+
step: THEME_PANEL_RANGES.radius.step
|
|
1345
|
+
}
|
|
1346
|
+
)
|
|
1291
1347
|
] }),
|
|
1292
1348
|
sections.includes("font") && /* @__PURE__ */ jsxs("div", { className: "theme-panel-row", children: [
|
|
1293
1349
|
/* @__PURE__ */ jsx("div", { className: "theme-panel-label", children: /* @__PURE__ */ jsx("span", { children: "\u5B57\u4F53" }) }),
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Input } from './chunk-
|
|
2
|
-
import { Icon } from './chunk-
|
|
3
|
-
import './tokens-
|
|
1
|
+
import { Input } from './chunk-IOAOG5L7.js';
|
|
2
|
+
import { Icon } from './chunk-FDZG27IG.js';
|
|
3
|
+
import './tokens-RYJ3DFTU.css';
|
|
4
4
|
import './shared-NJHRNLRH.css';
|
|
5
5
|
import './InputNumber-VXQIWLQC.css';
|
|
6
6
|
import * as React from 'react';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { useFloating } from './chunk-DUFRASGO.js';
|
|
2
|
-
import { Input } from './chunk-
|
|
3
|
-
import { Icon, renderIconSlot } from './chunk-
|
|
4
|
-
import './tokens-
|
|
2
|
+
import { Input } from './chunk-IOAOG5L7.js';
|
|
3
|
+
import { Icon, renderIconSlot } from './chunk-FDZG27IG.js';
|
|
4
|
+
import './tokens-RYJ3DFTU.css';
|
|
5
5
|
import './shared-NJHRNLRH.css';
|
|
6
6
|
import './Cascader-ANEQUPMI.css';
|
|
7
7
|
import * as React from 'react';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('./tokens-
|
|
3
|
+
var chunkVS3I5OKA_cjs = require('./chunk-VS3I5OKA.cjs');
|
|
4
|
+
require('./tokens-RYJ3DFTU.css');
|
|
5
5
|
require('./shared-NJHRNLRH.css');
|
|
6
6
|
require('./CommandPalette-RTKWNH2D.css');
|
|
7
7
|
var React = require('react');
|
|
@@ -149,7 +149,7 @@ var CommandPalette = React__namespace.forwardRef(({
|
|
|
149
149
|
...rest,
|
|
150
150
|
children: [
|
|
151
151
|
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "cmdp-search", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
152
|
-
|
|
152
|
+
chunkVS3I5OKA_cjs.Input,
|
|
153
153
|
{
|
|
154
154
|
ref: inputRef,
|
|
155
155
|
size: "lg",
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { Pagination } from './chunk-
|
|
2
|
-
import { Checkbox } from './chunk-
|
|
1
|
+
import { Pagination } from './chunk-6LC4QROE.js';
|
|
2
|
+
import { Checkbox } from './chunk-ZD3L4V3H.js';
|
|
3
3
|
import { useFloating } from './chunk-DUFRASGO.js';
|
|
4
|
-
import { Icon } from './chunk-
|
|
5
|
-
import './tokens-
|
|
4
|
+
import { Icon } from './chunk-FDZG27IG.js';
|
|
5
|
+
import './tokens-RYJ3DFTU.css';
|
|
6
6
|
import './shared-NJHRNLRH.css';
|
|
7
7
|
import './Table-IWHIIGRJ.css';
|
|
8
8
|
import * as React from 'react';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('./tokens-
|
|
3
|
+
var chunkQMX67CVT_cjs = require('./chunk-QMX67CVT.cjs');
|
|
4
|
+
require('./tokens-RYJ3DFTU.css');
|
|
5
5
|
require('./shared-NJHRNLRH.css');
|
|
6
6
|
require('./Tag-G2XWAL7A.css');
|
|
7
7
|
var React = require('react');
|
|
@@ -48,7 +48,7 @@ var Tag = React__namespace.forwardRef(({
|
|
|
48
48
|
].filter(Boolean).join(" ");
|
|
49
49
|
return /* @__PURE__ */ jsxRuntime.jsxs("span", { ref, className: cls, ...rest, children: [
|
|
50
50
|
dot && /* @__PURE__ */ jsxRuntime.jsx("span", { className: "dot" }),
|
|
51
|
-
|
|
51
|
+
chunkQMX67CVT_cjs.renderIconSlot(icon, { size: 11, className: "tag-ico" }),
|
|
52
52
|
children,
|
|
53
53
|
removable && /* @__PURE__ */ jsxRuntime.jsx(
|
|
54
54
|
"span",
|
|
@@ -60,7 +60,7 @@ var Tag = React__namespace.forwardRef(({
|
|
|
60
60
|
e.stopPropagation();
|
|
61
61
|
onRemove?.();
|
|
62
62
|
},
|
|
63
|
-
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
63
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(chunkQMX67CVT_cjs.Icon, { name: "x", size: 11 })
|
|
64
64
|
}
|
|
65
65
|
)
|
|
66
66
|
] });
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Input } from './chunk-
|
|
2
|
-
import './tokens-
|
|
1
|
+
import { Input } from './chunk-IOAOG5L7.js';
|
|
2
|
+
import './tokens-RYJ3DFTU.css';
|
|
3
3
|
import './shared-NJHRNLRH.css';
|
|
4
4
|
import './CommandPalette-RTKWNH2D.css';
|
|
5
5
|
import * as React from 'react';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
require('./tokens-
|
|
3
|
+
var chunkVS3I5OKA_cjs = require('./chunk-VS3I5OKA.cjs');
|
|
4
|
+
var chunkQMX67CVT_cjs = require('./chunk-QMX67CVT.cjs');
|
|
5
|
+
require('./tokens-RYJ3DFTU.css');
|
|
6
6
|
require('./shared-NJHRNLRH.css');
|
|
7
7
|
require('./InputNumber-VXQIWLQC.css');
|
|
8
8
|
var React = require('react');
|
|
@@ -117,7 +117,7 @@ var InputNumber = React__namespace.forwardRef(
|
|
|
117
117
|
disabled: upDisabled,
|
|
118
118
|
onMouseDown: (e) => e.preventDefault(),
|
|
119
119
|
onClick: () => increment(step),
|
|
120
|
-
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
120
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(chunkQMX67CVT_cjs.Icon, { name: "chevUp", size: 10, stroke: 2.5 })
|
|
121
121
|
}
|
|
122
122
|
),
|
|
123
123
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -129,7 +129,7 @@ var InputNumber = React__namespace.forwardRef(
|
|
|
129
129
|
disabled: downDisabled,
|
|
130
130
|
onMouseDown: (e) => e.preventDefault(),
|
|
131
131
|
onClick: () => increment(-step),
|
|
132
|
-
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
132
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(chunkQMX67CVT_cjs.Icon, { name: "chevDown", size: 10, stroke: 2.5 })
|
|
133
133
|
}
|
|
134
134
|
)
|
|
135
135
|
] }) : null;
|
|
@@ -138,7 +138,7 @@ var InputNumber = React__namespace.forwardRef(
|
|
|
138
138
|
stepperSuffix
|
|
139
139
|
] }) : stepperSuffix ?? suffix;
|
|
140
140
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
141
|
-
|
|
141
|
+
chunkVS3I5OKA_cjs.Input,
|
|
142
142
|
{
|
|
143
143
|
ref,
|
|
144
144
|
id,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useFloating } from './chunk-DUFRASGO.js';
|
|
2
|
-
import { Icon } from './chunk-
|
|
3
|
-
import './tokens-
|
|
2
|
+
import { Icon } from './chunk-FDZG27IG.js';
|
|
3
|
+
import './tokens-RYJ3DFTU.css';
|
|
4
4
|
import './shared-NJHRNLRH.css';
|
|
5
5
|
import './Typography-32QQLD4F.css';
|
|
6
6
|
import * as React from 'react';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { renderIconSlot, Icon } from './chunk-
|
|
2
|
-
import './tokens-
|
|
1
|
+
import { renderIconSlot, Icon } from './chunk-FDZG27IG.js';
|
|
2
|
+
import './tokens-RYJ3DFTU.css';
|
|
3
3
|
import './shared-NJHRNLRH.css';
|
|
4
4
|
import './Tag-G2XWAL7A.css';
|
|
5
5
|
import * as React from 'react';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Select } from './chunk-
|
|
2
|
-
import { Icon } from './chunk-
|
|
3
|
-
import './tokens-
|
|
1
|
+
import { Select } from './chunk-6PHPRZTT.js';
|
|
2
|
+
import { Icon } from './chunk-FDZG27IG.js';
|
|
3
|
+
import './tokens-RYJ3DFTU.css';
|
|
4
4
|
import './shared-NJHRNLRH.css';
|
|
5
5
|
import './Pagination-YSZSNFHG.css';
|
|
6
6
|
import * as React from 'react';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { Tag } from './chunk-
|
|
1
|
+
import { Tag } from './chunk-6K5YI4ZE.js';
|
|
2
2
|
import { useFloating } from './chunk-DUFRASGO.js';
|
|
3
|
-
import { Input } from './chunk-
|
|
4
|
-
import { Icon, renderIconSlot } from './chunk-
|
|
5
|
-
import './tokens-
|
|
3
|
+
import { Input } from './chunk-IOAOG5L7.js';
|
|
4
|
+
import { Icon, renderIconSlot } from './chunk-FDZG27IG.js';
|
|
5
|
+
import './tokens-RYJ3DFTU.css';
|
|
6
6
|
import './shared-NJHRNLRH.css';
|
|
7
7
|
import './Select-YZ2NUJSX.css';
|
|
8
8
|
import * as React from 'react';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('./tokens-
|
|
3
|
+
var chunkBW76ENTW_cjs = require('./chunk-BW76ENTW.cjs');
|
|
4
|
+
require('./tokens-RYJ3DFTU.css');
|
|
5
5
|
require('./shared-NJHRNLRH.css');
|
|
6
6
|
require('./Timeline-CRFZ3I2W.css');
|
|
7
7
|
var React = require('react');
|
|
@@ -153,7 +153,7 @@ var TimelineItem = ({
|
|
|
153
153
|
}
|
|
154
154
|
),
|
|
155
155
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "timeline-item-head", children: [
|
|
156
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className: dotCls, style: { ...dotAlignStyle, ...dotStyle, ...item.dotStyle }, children: item.dot ?? (isPending && /* @__PURE__ */ jsxRuntime.jsx(
|
|
156
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: dotCls, style: { ...dotAlignStyle, ...dotStyle, ...item.dotStyle }, children: item.dot ?? (isPending && /* @__PURE__ */ jsxRuntime.jsx(chunkBW76ENTW_cjs.Spin, { size: 14 })) }),
|
|
157
157
|
!isLast && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "timeline-item-tail" })
|
|
158
158
|
] }),
|
|
159
159
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var chunkYB3IWIOJ_cjs = require('./chunk-YB3IWIOJ.cjs');
|
|
4
|
-
var
|
|
5
|
-
require('./tokens-
|
|
4
|
+
var chunkVS3I5OKA_cjs = require('./chunk-VS3I5OKA.cjs');
|
|
5
|
+
require('./tokens-RYJ3DFTU.css');
|
|
6
6
|
require('./shared-NJHRNLRH.css');
|
|
7
7
|
require('./AutoComplete-4YZBMW4E.css');
|
|
8
8
|
var React = require('react');
|
|
@@ -168,7 +168,7 @@ var AutoComplete = React__namespace.forwardRef(
|
|
|
168
168
|
) : null;
|
|
169
169
|
return /* @__PURE__ */ jsxRuntime.jsxs("div", { ref: triggerRef, className: `autocomplete ${className}`, children: [
|
|
170
170
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
171
|
-
|
|
171
|
+
chunkVS3I5OKA_cjs.Input,
|
|
172
172
|
{
|
|
173
173
|
ref,
|
|
174
174
|
...rest,
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var chunk6EOSMK34_cjs = require('./chunk-6EOSMK34.cjs');
|
|
4
|
-
var
|
|
5
|
-
require('./tokens-
|
|
4
|
+
var chunkPKNRTFNE_cjs = require('./chunk-PKNRTFNE.cjs');
|
|
5
|
+
require('./tokens-RYJ3DFTU.css');
|
|
6
6
|
require('./shared-NJHRNLRH.css');
|
|
7
7
|
require('./Surface-UDDN3DGL.css');
|
|
8
8
|
var React = require('react');
|
|
@@ -71,7 +71,7 @@ var Surface = React__namespace.forwardRef(
|
|
|
71
71
|
children,
|
|
72
72
|
...rest
|
|
73
73
|
}, ref) => {
|
|
74
|
-
const inherited =
|
|
74
|
+
const inherited = chunkPKNRTFNE_cjs.useThemeOptional();
|
|
75
75
|
const presetConfig = preset === "inherit" ? void 0 : surfacePresetMap[preset];
|
|
76
76
|
const usesLocalTheme = preset !== "inherit" || isDefined(mode) || isDefined(colorScheme) || isDefined(accent) || isDefined(density) || isDefined(intensity) || isDefined(themeRadius) || isDefined(font) || isDefined(tokens) || isDefined(themes);
|
|
77
77
|
const cls = [
|
|
@@ -98,7 +98,7 @@ var Surface = React__namespace.forwardRef(
|
|
|
98
98
|
);
|
|
99
99
|
if (!usesLocalTheme) return surfaceNode;
|
|
100
100
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
101
|
-
|
|
101
|
+
chunkPKNRTFNE_cjs.ThemeProvider,
|
|
102
102
|
{
|
|
103
103
|
target: "scope",
|
|
104
104
|
as: "div",
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
var
|
|
3
|
+
var chunkZBWUIR2J_cjs = require('./chunk-ZBWUIR2J.cjs');
|
|
4
|
+
var chunkATUPFAPZ_cjs = require('./chunk-ATUPFAPZ.cjs');
|
|
5
5
|
var chunkYB3IWIOJ_cjs = require('./chunk-YB3IWIOJ.cjs');
|
|
6
|
-
var
|
|
7
|
-
require('./tokens-
|
|
6
|
+
var chunkQMX67CVT_cjs = require('./chunk-QMX67CVT.cjs');
|
|
7
|
+
require('./tokens-RYJ3DFTU.css');
|
|
8
8
|
require('./shared-NJHRNLRH.css');
|
|
9
9
|
require('./Table-IWHIIGRJ.css');
|
|
10
10
|
var React = require('react');
|
|
@@ -262,7 +262,7 @@ var TableInner = ({
|
|
|
262
262
|
/* @__PURE__ */ jsxRuntime.jsx("thead", { children: /* @__PURE__ */ jsxRuntime.jsxs("tr", { children: [
|
|
263
263
|
showExpandCol && /* @__PURE__ */ jsxRuntime.jsx("th", { className: "row-expand", style: { width: 40 } }),
|
|
264
264
|
showSelCol && /* @__PURE__ */ jsxRuntime.jsx("th", { className: "row-check", style: { width: 44 }, children: selectionType === "checkbox" && /* @__PURE__ */ jsxRuntime.jsx(
|
|
265
|
-
|
|
265
|
+
chunkATUPFAPZ_cjs.Checkbox,
|
|
266
266
|
{
|
|
267
267
|
checked: allSelectedOnPage,
|
|
268
268
|
indeterminate: someSelectedOnPage,
|
|
@@ -282,7 +282,7 @@ var TableInner = ({
|
|
|
282
282
|
children: [
|
|
283
283
|
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "th-label", children: c.title }),
|
|
284
284
|
c.sortable && /* @__PURE__ */ jsxRuntime.jsx("span", { className: "sort-ind", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
285
|
-
|
|
285
|
+
chunkQMX67CVT_cjs.Icon,
|
|
286
286
|
{
|
|
287
287
|
name: sorted ? sortDir === "asc" ? "chevUp" : "chevDown" : "chevDown",
|
|
288
288
|
size: 10
|
|
@@ -339,7 +339,7 @@ var TableInner = ({
|
|
|
339
339
|
e.stopPropagation();
|
|
340
340
|
toggleExpand(row, k);
|
|
341
341
|
},
|
|
342
|
-
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
342
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(chunkQMX67CVT_cjs.Icon, { name: "chevRight", size: 12 })
|
|
343
343
|
}
|
|
344
344
|
)
|
|
345
345
|
]
|
|
@@ -369,7 +369,7 @@ var TableInner = ({
|
|
|
369
369
|
}
|
|
370
370
|
}
|
|
371
371
|
) : /* @__PURE__ */ jsxRuntime.jsx(
|
|
372
|
-
|
|
372
|
+
chunkATUPFAPZ_cjs.Checkbox,
|
|
373
373
|
{
|
|
374
374
|
checked: isSel,
|
|
375
375
|
disabled: selProps?.disabled,
|
|
@@ -398,7 +398,7 @@ var TableInner = ({
|
|
|
398
398
|
}
|
|
399
399
|
),
|
|
400
400
|
pagEnabled && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "table-pagination", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
401
|
-
|
|
401
|
+
chunkZBWUIR2J_cjs.Pagination,
|
|
402
402
|
{
|
|
403
403
|
total: totalCount,
|
|
404
404
|
pageSize: curPageSize,
|
|
@@ -457,7 +457,7 @@ function ColumnFilterButton({
|
|
|
457
457
|
e.stopPropagation();
|
|
458
458
|
setOpen((o) => !o);
|
|
459
459
|
},
|
|
460
|
-
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
460
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(chunkQMX67CVT_cjs.Icon, { name: "filter", size: 10 })
|
|
461
461
|
}
|
|
462
462
|
),
|
|
463
463
|
open && typeof document !== "undefined" && reactDom.createPortal(
|
|
@@ -471,7 +471,7 @@ function ColumnFilterButton({
|
|
|
471
471
|
children: [
|
|
472
472
|
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "table-filter-options", children: (column.filters ?? []).map((f) => /* @__PURE__ */ jsxRuntime.jsxs("label", { className: "table-filter-item", children: [
|
|
473
473
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
474
|
-
|
|
474
|
+
chunkATUPFAPZ_cjs.Checkbox,
|
|
475
475
|
{
|
|
476
476
|
checked: draft.includes(f.value),
|
|
477
477
|
onChange: () => toggle(f.value)
|