@fangxinyan/lumina 0.8.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 +12 -1
- package/dist/Select.d.ts +12 -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.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.cjs +12 -12
- package/dist/Table.js +11 -11
- package/dist/TablePro.cjs +13 -13
- package/dist/TablePro.js +12 -12
- package/dist/Tabs.cjs +4 -4
- 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-63RSKQID.js → chunk-2NECDEAJ.js} +3 -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-IJDM2U3B.js → chunk-4JANYBXO.js} +2 -2
- 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-PNKNZREC.cjs → chunk-7KA5D37Z.cjs} +27 -27
- 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-RR7KWH26.cjs → chunk-AEY76EAH.cjs} +3 -3
- package/dist/{chunk-DURKCGEM.js → chunk-AL2PYVVP.js} +74 -38
- 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-WHBKQZU5.cjs → chunk-HMN65CDW.cjs} +6 -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-J5UEQ3ZQ.js → chunk-J7D5CQDK.js} +2 -2
- package/dist/{chunk-WMISXERU.js → chunk-JMYUO7V7.js} +7 -7
- package/dist/{chunk-SF7BPXDJ.cjs → chunk-K3KHQ77L.cjs} +86 -50
- 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-JBS353O4.cjs → chunk-MV56FOAD.cjs} +3 -3
- 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-HQNDVNTQ.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-PJFYIXBX.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 +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +52 -52
- package/dist/styles.css +58 -19
- 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/select.md +31 -0
- package/docs/llms/switch.md +22 -5
- package/docs/llms.md +1 -1
- package/package.json +1 -1
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkZBRFGD3I_cjs = require('./chunk-ZBRFGD3I.cjs');
|
|
4
4
|
var chunkG5LCOBOT_cjs = require('./chunk-G5LCOBOT.cjs');
|
|
5
|
-
var
|
|
6
|
-
var
|
|
7
|
-
var
|
|
8
|
-
var
|
|
9
|
-
var
|
|
10
|
-
var
|
|
11
|
-
var
|
|
12
|
-
var
|
|
13
|
-
require('./tokens-
|
|
5
|
+
var chunkUQF7E32V_cjs = require('./chunk-UQF7E32V.cjs');
|
|
6
|
+
var chunkQTMI4ZA4_cjs = require('./chunk-QTMI4ZA4.cjs');
|
|
7
|
+
var chunkHJGPUE67_cjs = require('./chunk-HJGPUE67.cjs');
|
|
8
|
+
var chunkGFGMGJ5A_cjs = require('./chunk-GFGMGJ5A.cjs');
|
|
9
|
+
var chunkM3JYP3V4_cjs = require('./chunk-M3JYP3V4.cjs');
|
|
10
|
+
var chunkVDVKY2IX_cjs = require('./chunk-VDVKY2IX.cjs');
|
|
11
|
+
var chunkV6BLBIY6_cjs = require('./chunk-V6BLBIY6.cjs');
|
|
12
|
+
var chunkI4GJZLJU_cjs = require('./chunk-I4GJZLJU.cjs');
|
|
13
|
+
require('./tokens-223RYVVS.css');
|
|
14
14
|
require('./shared-NJHRNLRH.css');
|
|
15
15
|
require('./ThemePanel-EHNAS4RN.css');
|
|
16
16
|
var React = require('react');
|
|
@@ -36,12 +36,12 @@ function _interopNamespace(e) {
|
|
|
36
36
|
|
|
37
37
|
var React__namespace = /*#__PURE__*/_interopNamespace(React);
|
|
38
38
|
|
|
39
|
-
var Button2 =
|
|
40
|
-
var ColorPicker2 =
|
|
41
|
-
var Input2 =
|
|
42
|
-
var RadioGroup2 =
|
|
43
|
-
var Slider2 =
|
|
44
|
-
var Switch2 =
|
|
39
|
+
var Button2 = chunkV6BLBIY6_cjs.withInternalComponentThemePart(chunkM3JYP3V4_cjs.Button, "Button");
|
|
40
|
+
var ColorPicker2 = chunkV6BLBIY6_cjs.withInternalComponentThemePart(chunkHJGPUE67_cjs.ColorPicker, "ColorPicker");
|
|
41
|
+
var Input2 = chunkV6BLBIY6_cjs.withInternalComponentThemePart(chunkGFGMGJ5A_cjs.Input, "Input");
|
|
42
|
+
var RadioGroup2 = chunkV6BLBIY6_cjs.withInternalComponentThemePart(chunkQTMI4ZA4_cjs.RadioGroup, ["RadioGroup", "Radio"]);
|
|
43
|
+
var Slider2 = chunkV6BLBIY6_cjs.withInternalComponentThemePart(chunkZBRFGD3I_cjs.Slider, "Slider");
|
|
44
|
+
var Switch2 = chunkV6BLBIY6_cjs.withInternalComponentThemePart(chunkUQF7E32V_cjs.Switch, "Switch");
|
|
45
45
|
var THEME_PANEL_DEFAULT_THEME_PRESETS = chunkG5LCOBOT_cjs.pickLuminaThemePresets(["light", "dark", "porcelain", "assistant", "assistantDark"]);
|
|
46
46
|
var THEME_PANEL_DEFAULT_PRESET_OPTIONS = [
|
|
47
47
|
{ key: "light", label: "\u6D45\u8272", description: "\u9ED8\u8BA4", preset: THEME_PANEL_DEFAULT_THEME_PRESETS.light },
|
|
@@ -138,7 +138,7 @@ var getShadowScaleRange = (key) => key === "shadow-float-scale" ? THEME_PANEL_RA
|
|
|
138
138
|
function accentFromPreset(preset) {
|
|
139
139
|
const accent = preset?.accent ?? "sky";
|
|
140
140
|
if (typeof accent === "string") {
|
|
141
|
-
return
|
|
141
|
+
return chunkI4GJZLJU_cjs.ACCENT_PRESETS[accent]?.accent ?? accent;
|
|
142
142
|
}
|
|
143
143
|
return accent.accent;
|
|
144
144
|
}
|
|
@@ -326,8 +326,8 @@ function fontConfigToText(font) {
|
|
|
326
326
|
return typeof font === "string" ? font : JSON.stringify(font);
|
|
327
327
|
}
|
|
328
328
|
function fontToStack(font) {
|
|
329
|
-
if (typeof font === "string") return
|
|
330
|
-
return font.sans ?? font.display ??
|
|
329
|
+
if (typeof font === "string") return chunkI4GJZLJU_cjs.FONT_STACKS[font] ?? font;
|
|
330
|
+
return font.sans ?? font.display ?? chunkI4GJZLJU_cjs.FONT_STACKS.system;
|
|
331
331
|
}
|
|
332
332
|
function tokenPickerValue(value, fallback) {
|
|
333
333
|
return cssColorToHex(value ?? fallback, fallback);
|
|
@@ -360,7 +360,7 @@ var ThemePanelBase = React__namespace.forwardRef(
|
|
|
360
360
|
className = "",
|
|
361
361
|
...rest
|
|
362
362
|
}, ref) => {
|
|
363
|
-
const theme =
|
|
363
|
+
const theme = chunkI4GJZLJU_cjs.useTheme();
|
|
364
364
|
const rootRef = React__namespace.useRef(null);
|
|
365
365
|
const previewSnapshotRef = React__namespace.useRef(null);
|
|
366
366
|
const updateThemeRef = React__namespace.useRef(theme.update);
|
|
@@ -540,7 +540,7 @@ var ThemePanelBase = React__namespace.forwardRef(
|
|
|
540
540
|
font: preset.font ?? theme.font,
|
|
541
541
|
colors: { ...preset.colors ?? {} },
|
|
542
542
|
tokens: preset.tokens ?? {},
|
|
543
|
-
components:
|
|
543
|
+
components: chunkI4GJZLJU_cjs.mergeComponentThemeOverrides(void 0, preset.components)
|
|
544
544
|
});
|
|
545
545
|
};
|
|
546
546
|
const deletePreset = (option) => {
|
|
@@ -563,7 +563,7 @@ var ThemePanelBase = React__namespace.forwardRef(
|
|
|
563
563
|
font: fallbackPreset.font,
|
|
564
564
|
colors: { ...fallbackPreset.colors ?? {} },
|
|
565
565
|
tokens: fallbackPreset.tokens,
|
|
566
|
-
components:
|
|
566
|
+
components: chunkI4GJZLJU_cjs.mergeComponentThemeOverrides(void 0, fallbackPreset.components)
|
|
567
567
|
} : {};
|
|
568
568
|
theme.update({
|
|
569
569
|
...nextConfig,
|
|
@@ -632,7 +632,7 @@ var ThemePanelBase = React__namespace.forwardRef(
|
|
|
632
632
|
font: theme.font,
|
|
633
633
|
colors: { ...theme.colors },
|
|
634
634
|
tokens: { ...tokens },
|
|
635
|
-
components:
|
|
635
|
+
components: chunkI4GJZLJU_cjs.mergeComponentThemeOverrides(void 0, theme.components)
|
|
636
636
|
});
|
|
637
637
|
const updateLiveBase = (base) => {
|
|
638
638
|
clearCreateState();
|
|
@@ -730,7 +730,7 @@ var ThemePanelBase = React__namespace.forwardRef(
|
|
|
730
730
|
font: theme.font,
|
|
731
731
|
colors: { ...theme.colors },
|
|
732
732
|
tokens: currentTokens,
|
|
733
|
-
components:
|
|
733
|
+
components: chunkI4GJZLJU_cjs.mergeComponentThemeOverrides(void 0, theme.components)
|
|
734
734
|
};
|
|
735
735
|
const basePresets = {
|
|
736
736
|
light: base === "light" ? currentPreset : THEME_PANEL_DEFAULT_THEME_PRESETS.light,
|
|
@@ -765,7 +765,7 @@ var ThemePanelBase = React__namespace.forwardRef(
|
|
|
765
765
|
setDraftIntensity(theme.intensity);
|
|
766
766
|
setDraftRadius(theme.radius);
|
|
767
767
|
setDraftFont(theme.font ?? "sf");
|
|
768
|
-
setDraftComponents(
|
|
768
|
+
setDraftComponents(chunkI4GJZLJU_cjs.mergeComponentThemeOverrides(void 0, theme.components));
|
|
769
769
|
setAdvancedFontMode(toFontKey(theme.font) === theme.font ? "preset" : "custom");
|
|
770
770
|
setCreateMode("simple");
|
|
771
771
|
setCustomAccent(accent);
|
|
@@ -1052,7 +1052,7 @@ var ThemePanelBase = React__namespace.forwardRef(
|
|
|
1052
1052
|
return /* @__PURE__ */ jsxRuntime.jsxs("div", { ref: setRootRef, className: rootClass, ...rest, children: [
|
|
1053
1053
|
(title || description) && /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "theme-panel-head", children: [
|
|
1054
1054
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "theme-panel-title", children: [
|
|
1055
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1055
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkVDVKY2IX_cjs.Icon, { name: "sliders", size: 14 }),
|
|
1056
1056
|
title && /* @__PURE__ */ jsxRuntime.jsx("span", { children: title })
|
|
1057
1057
|
] }),
|
|
1058
1058
|
description && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "theme-panel-desc", children: description })
|
|
@@ -1280,7 +1280,7 @@ var ThemePanelBase = React__namespace.forwardRef(
|
|
|
1280
1280
|
},
|
|
1281
1281
|
children: [
|
|
1282
1282
|
/* @__PURE__ */ jsxRuntime.jsxs("span", { className: "theme-panel-create-preview-label", children: [
|
|
1283
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1283
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkVDVKY2IX_cjs.Icon, { name: "palette", size: 13 }),
|
|
1284
1284
|
/* @__PURE__ */ jsxRuntime.jsx("span", { children: draftName.trim() || "\u81EA\u5B9A\u4E49\u4E3B\u9898" })
|
|
1285
1285
|
] }),
|
|
1286
1286
|
/* @__PURE__ */ jsxRuntime.jsx("i", { "aria-hidden": true })
|
|
@@ -1310,14 +1310,14 @@ var ThemePanelBase = React__namespace.forwardRef(
|
|
|
1310
1310
|
/* @__PURE__ */ jsxRuntime.jsx("span", { children: theme.accent === "custom" ? customAccent : theme.accent })
|
|
1311
1311
|
] }),
|
|
1312
1312
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "theme-panel-swatches", children: [
|
|
1313
|
-
Object.keys(
|
|
1313
|
+
Object.keys(chunkI4GJZLJU_cjs.ACCENT_PRESETS).map((key) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
1314
1314
|
Button2,
|
|
1315
1315
|
{
|
|
1316
1316
|
type: "button",
|
|
1317
1317
|
size: "sm",
|
|
1318
1318
|
"aria-label": key,
|
|
1319
1319
|
className: `theme-panel-swatch ${theme.accent === key ? "active" : ""}`,
|
|
1320
|
-
style: { background:
|
|
1320
|
+
style: { background: chunkI4GJZLJU_cjs.ACCENT_PRESETS[key].accent },
|
|
1321
1321
|
onClick: () => theme.setAccent(key)
|
|
1322
1322
|
},
|
|
1323
1323
|
key
|
|
@@ -1548,7 +1548,7 @@ var ThemePanelBase = React__namespace.forwardRef(
|
|
|
1548
1548
|
}
|
|
1549
1549
|
);
|
|
1550
1550
|
ThemePanelBase.displayName = "ThemePanel";
|
|
1551
|
-
var ThemePanel =
|
|
1551
|
+
var ThemePanel = chunkV6BLBIY6_cjs.withComponentTheme(
|
|
1552
1552
|
ThemePanelBase,
|
|
1553
1553
|
"ThemePanel",
|
|
1554
1554
|
["theme-panel", "button", "color-picker", "input", "radio", "slider", "switch"]
|
|
@@ -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('./AutoComplete-PNCYHU2T.css');
|
|
11
11
|
var React = require('react');
|
|
@@ -70,7 +70,7 @@ var AutoComplete = React__namespace.forwardRef(
|
|
|
70
70
|
const [innerOpen, setInnerOpen] = React__namespace.useState(false);
|
|
71
71
|
const open = innerOpen && !disabled;
|
|
72
72
|
const [active, setActive] = React__namespace.useState(0);
|
|
73
|
-
const portalContainer =
|
|
73
|
+
const portalContainer = chunkI4GJZLJU_cjs.usePortalContainer();
|
|
74
74
|
const listboxId = React__namespace.useId();
|
|
75
75
|
const filtered = React__namespace.useMemo(() => {
|
|
76
76
|
const nonEmptyOptions = options.filter((option) => option.value !== "");
|
|
@@ -84,7 +84,7 @@ var AutoComplete = React__namespace.forwardRef(
|
|
|
84
84
|
matchTriggerWidth,
|
|
85
85
|
panelHeight: Math.min(filtered.length * 36 + 12, 280)
|
|
86
86
|
});
|
|
87
|
-
const [themeRootElement, themeRootRef] =
|
|
87
|
+
const [themeRootElement, themeRootRef] = chunkV6BLBIY6_cjs.useComponentThemeRootRef(
|
|
88
88
|
triggerRef,
|
|
89
89
|
{ component: "AutoComplete", theme }
|
|
90
90
|
);
|
|
@@ -169,7 +169,7 @@ var AutoComplete = React__namespace.forwardRef(
|
|
|
169
169
|
}
|
|
170
170
|
};
|
|
171
171
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
172
|
-
|
|
172
|
+
chunkV6BLBIY6_cjs.ComponentThemeBoundary,
|
|
173
173
|
{
|
|
174
174
|
component: "AutoComplete",
|
|
175
175
|
cssPrefix: ["auto-complete", "input"],
|
|
@@ -181,10 +181,10 @@ var AutoComplete = React__namespace.forwardRef(
|
|
|
181
181
|
ref: themeRootRef,
|
|
182
182
|
className: `autocomplete ${className}`,
|
|
183
183
|
...themeState.rootDataAttributes,
|
|
184
|
-
style:
|
|
184
|
+
style: chunkV6BLBIY6_cjs.mergeComponentRootStyleWithInstanceStyle(themeState.rootStyle, style),
|
|
185
185
|
children: [
|
|
186
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
187
|
-
|
|
186
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkV6BLBIY6_cjs.InternalComponentThemePart, { components: "Input", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
187
|
+
chunkGFGMGJ5A_cjs.Input,
|
|
188
188
|
{
|
|
189
189
|
ref,
|
|
190
190
|
...rest,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Icon } from './chunk-
|
|
2
|
-
import { useComponentThemeRootRef, ComponentThemeBoundary, mergeComponentRootStyleWithInstanceStyle } from './chunk-
|
|
3
|
-
import './tokens-
|
|
1
|
+
import { Icon } from './chunk-2BM65ITV.js';
|
|
2
|
+
import { useComponentThemeRootRef, ComponentThemeBoundary, mergeComponentRootStyleWithInstanceStyle } from './chunk-5HLNFDV4.js';
|
|
3
|
+
import './tokens-223RYVVS.css';
|
|
4
4
|
import './shared-NJHRNLRH.css';
|
|
5
5
|
import './Textarea-ZGHBZNLX.css';
|
|
6
6
|
import * as React from 'react';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { useOverlayZIndex, useOverlayLayer, OverlayZIndexProvider } 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 './Drawer-VCXAXWV6.css';
|
|
8
8
|
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 './Progress-33WE2NI7.css';
|
|
5
5
|
import * as React from 'react';
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { useFloating } from './chunk-3QXP2ZNP.js';
|
|
2
|
-
import { Input } from './chunk-
|
|
2
|
+
import { Input } from './chunk-TUXF2G2O.js';
|
|
3
3
|
import { useOverlayLayer } from './chunk-2A4GYSN4.js';
|
|
4
|
-
import { Icon, renderIconSlot } from './chunk-
|
|
5
|
-
import { useComponentPortalTheme, InternalComponentThemePart, withComponentTheme } from './chunk-
|
|
6
|
-
import { usePortalContainer } from './chunk-
|
|
7
|
-
import './tokens-
|
|
4
|
+
import { Icon, renderIconSlot } from './chunk-2BM65ITV.js';
|
|
5
|
+
import { useComponentPortalTheme, InternalComponentThemePart, withComponentTheme } from './chunk-5HLNFDV4.js';
|
|
6
|
+
import { usePortalContainer } from './chunk-CPVUDSIY.js';
|
|
7
|
+
import './tokens-223RYVVS.css';
|
|
8
8
|
import './shared-NJHRNLRH.css';
|
|
9
9
|
import './Cascader-YBVDK6DC.css';
|
|
10
10
|
import * as React from 'react';
|
|
@@ -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('./StatusBar-TCGR3LXP.css');
|
|
7
7
|
var React = require('react');
|
|
@@ -56,7 +56,7 @@ var StatusBarItemBase = React__namespace.forwardRef(({
|
|
|
56
56
|
return /* @__PURE__ */ jsxRuntime.jsx("div", { ref, className: cls, ...rest, children: content });
|
|
57
57
|
});
|
|
58
58
|
StatusBarItemBase.displayName = "StatusBarItem";
|
|
59
|
-
var StatusBarItem =
|
|
59
|
+
var StatusBarItem = chunkV6BLBIY6_cjs.withComponentTheme(
|
|
60
60
|
StatusBarItemBase,
|
|
61
61
|
"StatusBarItem",
|
|
62
62
|
"status-bar"
|
|
@@ -75,7 +75,7 @@ var StatusBarBase = React__namespace.forwardRef(({
|
|
|
75
75
|
right != null && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "statusbar-section right", children: right })
|
|
76
76
|
] }));
|
|
77
77
|
StatusBarBase.displayName = "StatusBar";
|
|
78
|
-
var ThemedStatusBar =
|
|
78
|
+
var ThemedStatusBar = chunkV6BLBIY6_cjs.withComponentTheme(StatusBarBase, "StatusBar", "status-bar");
|
|
79
79
|
var StatusBar = ThemedStatusBar;
|
|
80
80
|
StatusBar.Item = StatusBarItem;
|
|
81
81
|
|
|
@@ -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('./Textarea-ZGHBZNLX.css');
|
|
8
8
|
var React = require('react');
|
|
@@ -55,7 +55,7 @@ var TextareaBase = React__namespace.forwardRef(
|
|
|
55
55
|
...rest
|
|
56
56
|
}, ref) => {
|
|
57
57
|
const [inner, setInner] = React__namespace.useState(defaultValue ?? "");
|
|
58
|
-
const [themeRootElement, themeRootRef] =
|
|
58
|
+
const [themeRootElement, themeRootRef] = chunkV6BLBIY6_cjs.useComponentThemeRootRef(
|
|
59
59
|
void 0,
|
|
60
60
|
{ component: "Textarea", theme }
|
|
61
61
|
);
|
|
@@ -92,14 +92,14 @@ var TextareaBase = React__namespace.forwardRef(
|
|
|
92
92
|
const showClear = !!allowClear && !!currentValue && !disabled;
|
|
93
93
|
const count = currentValue ? currentValue.length : 0;
|
|
94
94
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
95
|
-
|
|
95
|
+
chunkV6BLBIY6_cjs.ComponentThemeBoundary,
|
|
96
96
|
{
|
|
97
97
|
component: "Textarea",
|
|
98
98
|
cssPrefix: "textarea",
|
|
99
99
|
theme,
|
|
100
100
|
rootElement: themeRootElement,
|
|
101
101
|
children: (themeState) => {
|
|
102
|
-
const mergedRootStyle =
|
|
102
|
+
const mergedRootStyle = chunkV6BLBIY6_cjs.mergeComponentRootStyleWithInstanceStyle(
|
|
103
103
|
themeState.rootStyle,
|
|
104
104
|
style
|
|
105
105
|
);
|
|
@@ -133,7 +133,7 @@ var TextareaBase = React__namespace.forwardRef(
|
|
|
133
133
|
"aria-label": "Clear",
|
|
134
134
|
onMouseDown: (e) => e.preventDefault(),
|
|
135
135
|
onClick: handleClear,
|
|
136
|
-
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
136
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(chunkVDVKY2IX_cjs.Icon, { name: "x", size: 12 })
|
|
137
137
|
}
|
|
138
138
|
)
|
|
139
139
|
]
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import './tokens-
|
|
1
|
+
import './tokens-223RYVVS.css';
|
|
2
2
|
import * as React3 from 'react';
|
|
3
3
|
import { jsx } from 'react/jsx-runtime';
|
|
4
4
|
|
|
@@ -415,16 +415,16 @@ function visualThemeToStyle(snapshot, prefix = "") {
|
|
|
415
415
|
const d = 0.4 + snapshot.intensity * 0.12;
|
|
416
416
|
const dark = snapshot.colorScheme === "dark";
|
|
417
417
|
style[variable("d")] = String(d);
|
|
418
|
-
style[variable("shadow-offset")] = `calc(${dark ?
|
|
419
|
-
style[variable("shadow-blur")] = `calc(${dark ?
|
|
420
|
-
style[variable("shadow-inset-offset")] = `calc(${dark ?
|
|
421
|
-
style[variable("shadow-inset-blur")] = `calc(${dark ?
|
|
418
|
+
style[variable("shadow-offset")] = `calc(${dark ? 3 : 5}px * ${reference("d")} * ${inheritedReference("shadow-scale")})`;
|
|
419
|
+
style[variable("shadow-blur")] = `calc(${dark ? 8 : 12}px * ${reference("d")} * ${inheritedReference("shadow-scale")})`;
|
|
420
|
+
style[variable("shadow-inset-offset")] = `calc(${dark ? 2 : 3}px * ${reference("d")} * ${inheritedReference("shadow-scale")})`;
|
|
421
|
+
style[variable("shadow-inset-blur")] = `calc(${dark ? 5 : 8}px * ${reference("d")} * ${inheritedReference("shadow-scale")})`;
|
|
422
422
|
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")}`;
|
|
423
423
|
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")}`;
|
|
424
424
|
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")}`;
|
|
425
425
|
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")}`;
|
|
426
426
|
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")}`;
|
|
427
|
-
style[variable("neu-shadow-subtle")] =
|
|
427
|
+
style[variable("neu-shadow-subtle")] = `.75px .75px 1.5px ${reference("shadow-dark")}, -.75px -.75px 1.5px ${reference("shadow-light")}`;
|
|
428
428
|
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")}`;
|
|
429
429
|
style[variable("neu-out")] = reference("neu-shadow-panel");
|
|
430
430
|
style[variable("neu-out-sm")] = reference("neu-shadow-control");
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { withComponentTheme, withInternalComponentThemePart } from './chunk-
|
|
2
|
-
import './tokens-
|
|
1
|
+
import { withComponentTheme, withInternalComponentThemePart } from './chunk-5HLNFDV4.js';
|
|
2
|
+
import './tokens-223RYVVS.css';
|
|
3
3
|
import './shared-NJHRNLRH.css';
|
|
4
4
|
import './Radio-RL7232MZ.css';
|
|
5
5
|
import * as React from 'react';
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { useInputTriggerToggle } from './chunk-RC6ULCQP.js';
|
|
2
2
|
import { useFloating } from './chunk-3QXP2ZNP.js';
|
|
3
|
-
import { Input } from './chunk-
|
|
3
|
+
import { Input } from './chunk-TUXF2G2O.js';
|
|
4
4
|
import { useOverlayLayer } from './chunk-2A4GYSN4.js';
|
|
5
|
-
import { Button } from './chunk-
|
|
6
|
-
import { Calendar } from './chunk-
|
|
7
|
-
import { useComponentPortalTheme, InternalComponentThemePart, withComponentTheme } from './chunk-
|
|
8
|
-
import { usePortalContainer } from './chunk-
|
|
9
|
-
import './tokens-
|
|
5
|
+
import { Button } from './chunk-563SQXH7.js';
|
|
6
|
+
import { Calendar } from './chunk-TY5LOU3A.js';
|
|
7
|
+
import { useComponentPortalTheme, InternalComponentThemePart, withComponentTheme } from './chunk-5HLNFDV4.js';
|
|
8
|
+
import { usePortalContainer } from './chunk-CPVUDSIY.js';
|
|
9
|
+
import './tokens-223RYVVS.css';
|
|
10
10
|
import './shared-NJHRNLRH.css';
|
|
11
11
|
import './DatePicker-ZSFDXAYD.css';
|
|
12
12
|
import * as React from 'react';
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var
|
|
6
|
-
require('./tokens-
|
|
3
|
+
var chunkCNV7R2OZ_cjs = require('./chunk-CNV7R2OZ.cjs');
|
|
4
|
+
var chunkVDVKY2IX_cjs = require('./chunk-VDVKY2IX.cjs');
|
|
5
|
+
var chunkV6BLBIY6_cjs = require('./chunk-V6BLBIY6.cjs');
|
|
6
|
+
require('./tokens-223RYVVS.css');
|
|
7
7
|
require('./shared-NJHRNLRH.css');
|
|
8
8
|
require('./Input-ZUASNDXM.css');
|
|
9
9
|
var React2 = require('react');
|
|
@@ -67,7 +67,7 @@ var InputBase = React2__namespace.forwardRef(
|
|
|
67
67
|
const themeIdentity = useInputThemeIdentity();
|
|
68
68
|
const themeComponent = themeIdentity?.component ?? "Input";
|
|
69
69
|
const themeCssPrefix = themeIdentity?.cssPrefix ?? "input";
|
|
70
|
-
const [themeRootElement, themeRootRef] =
|
|
70
|
+
const [themeRootElement, themeRootRef] = chunkV6BLBIY6_cjs.useComponentThemeRootRef(
|
|
71
71
|
void 0,
|
|
72
72
|
{ component: themeComponent, theme }
|
|
73
73
|
);
|
|
@@ -96,9 +96,9 @@ var InputBase = React2__namespace.forwardRef(
|
|
|
96
96
|
const renderAffixIcon = (icon, side, handler) => {
|
|
97
97
|
if (icon == null || icon === false) return null;
|
|
98
98
|
const className2 = `${side}${handler ? " interactive" : ""}`;
|
|
99
|
-
if (
|
|
99
|
+
if (chunkVDVKY2IX_cjs.isIconName(icon)) {
|
|
100
100
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
101
|
-
|
|
101
|
+
chunkVDVKY2IX_cjs.Icon,
|
|
102
102
|
{
|
|
103
103
|
name: icon,
|
|
104
104
|
size: 14,
|
|
@@ -133,7 +133,7 @@ var InputBase = React2__namespace.forwardRef(
|
|
|
133
133
|
handler(event);
|
|
134
134
|
}
|
|
135
135
|
} : void 0,
|
|
136
|
-
children:
|
|
136
|
+
children: chunkVDVKY2IX_cjs.renderIconSlot(icon)
|
|
137
137
|
}
|
|
138
138
|
);
|
|
139
139
|
};
|
|
@@ -147,7 +147,7 @@ var InputBase = React2__namespace.forwardRef(
|
|
|
147
147
|
if (disabled) return;
|
|
148
148
|
if (!isControlled) setInner("");
|
|
149
149
|
if (!isControlled && inputRef.current) inputRef.current.value = "";
|
|
150
|
-
const clearedTarget =
|
|
150
|
+
const clearedTarget = chunkCNV7R2OZ_cjs.createValueOverrideTarget(inputRef.current, "");
|
|
151
151
|
const synthetic = {
|
|
152
152
|
...e,
|
|
153
153
|
type: "change",
|
|
@@ -160,14 +160,14 @@ var InputBase = React2__namespace.forwardRef(
|
|
|
160
160
|
const showClear = !!allowClear && !!currentValue && !disabled;
|
|
161
161
|
const count = currentValue ? currentValue.length : 0;
|
|
162
162
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
163
|
-
|
|
163
|
+
chunkV6BLBIY6_cjs.ComponentThemeBoundary,
|
|
164
164
|
{
|
|
165
165
|
component: themeComponent,
|
|
166
166
|
cssPrefix: themeCssPrefix,
|
|
167
167
|
theme,
|
|
168
168
|
rootElement: themeRootElement,
|
|
169
169
|
children: (themeState) => {
|
|
170
|
-
const mergedRootStyle =
|
|
170
|
+
const mergedRootStyle = chunkV6BLBIY6_cjs.mergeComponentRootStyleWithInstanceStyle(
|
|
171
171
|
themeState.rootStyle,
|
|
172
172
|
style
|
|
173
173
|
);
|
|
@@ -206,7 +206,7 @@ var InputBase = React2__namespace.forwardRef(
|
|
|
206
206
|
"aria-label": "Clear",
|
|
207
207
|
onMouseDown: (e) => e.preventDefault(),
|
|
208
208
|
onClick: handleClear,
|
|
209
|
-
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
209
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(chunkVDVKY2IX_cjs.Icon, { name: "x", size: 12 })
|
|
210
210
|
}
|
|
211
211
|
),
|
|
212
212
|
renderAffixIcon(trailingIcon, "trail", onTrailingIconClick)
|
|
@@ -281,7 +281,7 @@ var InputPassword = React2__namespace.forwardRef(
|
|
|
281
281
|
InputPassword.displayName = "Input.Password";
|
|
282
282
|
var Input = InputBase;
|
|
283
283
|
Input.Password = InputPassword;
|
|
284
|
-
Input.TextArea =
|
|
284
|
+
Input.TextArea = chunkCNV7R2OZ_cjs.Textarea;
|
|
285
285
|
|
|
286
286
|
exports.Input = Input;
|
|
287
287
|
exports.InputPassword = InputPassword;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { useOverlayZIndex, useOverlayLayer, OverlayZIndexProvider } from './chunk-2A4GYSN4.js';
|
|
2
|
-
import { Button } from './chunk-
|
|
3
|
-
import { Icon } from './chunk-
|
|
4
|
-
import { useComponentPortalTheme, InternalComponentThemePart, withComponentTheme } from './chunk-
|
|
5
|
-
import { usePortalContainer } from './chunk-
|
|
6
|
-
import './tokens-
|
|
2
|
+
import { Button } from './chunk-563SQXH7.js';
|
|
3
|
+
import { Icon } from './chunk-2BM65ITV.js';
|
|
4
|
+
import { useComponentPortalTheme, InternalComponentThemePart, 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 './Modal-UI2FXNDR.css';
|
|
9
9
|
import * as React from 'react';
|
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
|
|
3
3
|
var chunk35RCCUGO_cjs = require('./chunk-35RCCUGO.cjs');
|
|
4
4
|
var chunkFJB3243S_cjs = require('./chunk-FJB3243S.cjs');
|
|
5
|
-
var
|
|
5
|
+
var chunkGFGMGJ5A_cjs = require('./chunk-GFGMGJ5A.cjs');
|
|
6
6
|
var chunkHSDMJUB6_cjs = require('./chunk-HSDMJUB6.cjs');
|
|
7
|
-
var
|
|
8
|
-
var
|
|
9
|
-
var
|
|
10
|
-
var
|
|
11
|
-
require('./tokens-
|
|
7
|
+
var chunkM3JYP3V4_cjs = require('./chunk-M3JYP3V4.cjs');
|
|
8
|
+
var chunkYU4LBDBD_cjs = require('./chunk-YU4LBDBD.cjs');
|
|
9
|
+
var chunkV6BLBIY6_cjs = require('./chunk-V6BLBIY6.cjs');
|
|
10
|
+
var chunkI4GJZLJU_cjs = require('./chunk-I4GJZLJU.cjs');
|
|
11
|
+
require('./tokens-223RYVVS.css');
|
|
12
12
|
require('./shared-NJHRNLRH.css');
|
|
13
13
|
require('./DatePicker-ZSFDXAYD.css');
|
|
14
14
|
var React = require('react');
|
|
@@ -127,8 +127,8 @@ var DatePickerBase = React__namespace.forwardRef(
|
|
|
127
127
|
});
|
|
128
128
|
const rootRef = React__namespace.useRef(null);
|
|
129
129
|
const panelId = React__namespace.useId();
|
|
130
|
-
const portalContainer =
|
|
131
|
-
const portalTheme =
|
|
130
|
+
const portalContainer = chunkI4GJZLJU_cjs.usePortalContainer();
|
|
131
|
+
const portalTheme = chunkV6BLBIY6_cjs.useComponentPortalTheme("DatePicker");
|
|
132
132
|
const { triggerRef, floatingRef: panelRef, floatingStyle, zIndex: panelZIndex } = chunkFJB3243S_cjs.useFloating({
|
|
133
133
|
open,
|
|
134
134
|
placement,
|
|
@@ -235,9 +235,9 @@ var DatePickerBase = React__namespace.forwardRef(
|
|
|
235
235
|
invalid && "invalid",
|
|
236
236
|
className
|
|
237
237
|
].filter(Boolean).join(" ");
|
|
238
|
-
return /* @__PURE__ */ jsxRuntime.jsx("div", { ref: setRootRef, className: rootClassName, onKeyDown: handleRootKeyDown, ...rest, children: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
238
|
+
return /* @__PURE__ */ jsxRuntime.jsx("div", { ref: setRootRef, className: rootClassName, onKeyDown: handleRootKeyDown, ...rest, children: /* @__PURE__ */ jsxRuntime.jsxs(chunkV6BLBIY6_cjs.InternalComponentThemePart, { components: ["Input", "Calendar", "Button"], children: [
|
|
239
239
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
240
|
-
|
|
240
|
+
chunkGFGMGJ5A_cjs.Input,
|
|
241
241
|
{
|
|
242
242
|
id: fieldId,
|
|
243
243
|
"aria-label": ariaLabel,
|
|
@@ -275,7 +275,7 @@ var DatePickerBase = React__namespace.forwardRef(
|
|
|
275
275
|
style: { ...floatingStyle, ...portalTheme.style, ...portalTheme.styles.popup },
|
|
276
276
|
children: [
|
|
277
277
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
278
|
-
|
|
278
|
+
chunkYU4LBDBD_cjs.Calendar,
|
|
279
279
|
{
|
|
280
280
|
value: calendarValue,
|
|
281
281
|
min: normalizedMin,
|
|
@@ -286,7 +286,7 @@ var DatePickerBase = React__namespace.forwardRef(
|
|
|
286
286
|
),
|
|
287
287
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "date-picker-footer", children: [
|
|
288
288
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
289
|
-
|
|
289
|
+
chunkM3JYP3V4_cjs.Button,
|
|
290
290
|
{
|
|
291
291
|
size: "sm",
|
|
292
292
|
variant: "ghost",
|
|
@@ -297,7 +297,7 @@ var DatePickerBase = React__namespace.forwardRef(
|
|
|
297
297
|
),
|
|
298
298
|
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "date-picker-footer-spacer" }),
|
|
299
299
|
allowClear && /* @__PURE__ */ jsxRuntime.jsx(
|
|
300
|
-
|
|
300
|
+
chunkM3JYP3V4_cjs.Button,
|
|
301
301
|
{
|
|
302
302
|
size: "sm",
|
|
303
303
|
variant: "ghost",
|
|
@@ -305,7 +305,7 @@ var DatePickerBase = React__namespace.forwardRef(
|
|
|
305
305
|
children: "\u6E05\u7A7A"
|
|
306
306
|
}
|
|
307
307
|
),
|
|
308
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
308
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkM3JYP3V4_cjs.Button, { size: "sm", variant: "primary", onClick: () => setOpen(false), children: "\u786E\u5B9A" })
|
|
309
309
|
] })
|
|
310
310
|
]
|
|
311
311
|
}
|
|
@@ -316,7 +316,7 @@ var DatePickerBase = React__namespace.forwardRef(
|
|
|
316
316
|
}
|
|
317
317
|
);
|
|
318
318
|
DatePickerBase.displayName = "DatePicker";
|
|
319
|
-
var DatePicker =
|
|
319
|
+
var DatePicker = chunkV6BLBIY6_cjs.withComponentTheme(
|
|
320
320
|
DatePickerBase,
|
|
321
321
|
"DatePicker",
|
|
322
322
|
["date-picker", "calendar", "input", "button"]
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { cloneLuminaThemePreset } from './chunk-TSL3F2K3.js';
|
|
2
|
-
import { normalizeComponentThemeInput, useComponentThemeRootRef, ComponentThemeBoundary } from './chunk-
|
|
3
|
-
import { useThemeOptional, mergeComponentThemeOverrides, ComponentOverridesProvider, ThemeProvider } from './chunk-
|
|
4
|
-
import './tokens-
|
|
2
|
+
import { normalizeComponentThemeInput, useComponentThemeRootRef, ComponentThemeBoundary } from './chunk-5HLNFDV4.js';
|
|
3
|
+
import { useThemeOptional, mergeComponentThemeOverrides, ComponentOverridesProvider, ThemeProvider } from './chunk-CPVUDSIY.js';
|
|
4
|
+
import './tokens-223RYVVS.css';
|
|
5
5
|
import './shared-NJHRNLRH.css';
|
|
6
6
|
import './Surface-CTN775GD.css';
|
|
7
7
|
import * as React from 'react';
|