@fangxinyan/lumina 0.6.2 → 0.6.3

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.
Files changed (141) hide show
  1. package/README.md +2 -1
  2. package/dist/{Alert-JJ7GB3UU.css → Alert-QBKIDY5H.css} +7 -0
  3. package/dist/Alert.cjs +3 -3
  4. package/dist/Alert.d.cts +3 -2
  5. package/dist/Alert.d.ts +3 -2
  6. package/dist/Alert.js +2 -2
  7. package/dist/AutoComplete.cjs +5 -5
  8. package/dist/AutoComplete.js +4 -4
  9. package/dist/Badge.d.cts +1 -0
  10. package/dist/Badge.d.ts +1 -0
  11. package/dist/{Button-SDQD25AG.css → Button-4Z3Q6KII.css} +56 -36
  12. package/dist/Button.cjs +3 -3
  13. package/dist/Button.d.cts +6 -5
  14. package/dist/Button.d.ts +6 -5
  15. package/dist/Button.js +2 -2
  16. package/dist/Calendar.cjs +3 -3
  17. package/dist/Calendar.js +2 -2
  18. package/dist/{Cascader-C2DFSMKJ.css → Cascader-3BLLA7EN.css} +13 -0
  19. package/dist/Cascader.cjs +5 -5
  20. package/dist/Cascader.d.cts +4 -2
  21. package/dist/Cascader.d.ts +4 -2
  22. package/dist/Cascader.js +4 -4
  23. package/dist/Checkbox.cjs +3 -3
  24. package/dist/Checkbox.js +2 -2
  25. package/dist/Collapse.cjs +3 -3
  26. package/dist/Collapse.js +2 -2
  27. package/dist/CommandPalette.cjs +5 -5
  28. package/dist/CommandPalette.js +4 -4
  29. package/dist/Drawer.cjs +3 -3
  30. package/dist/Drawer.js +2 -2
  31. package/dist/Icon.cjs +55 -47
  32. package/dist/Icon.d.cts +9 -1
  33. package/dist/Icon.d.ts +9 -1
  34. package/dist/Icon.js +1 -1
  35. package/dist/{Image-4MN34O6P.css → Image-MRYQCRQ5.css} +78 -0
  36. package/dist/Image.cjs +12 -4
  37. package/dist/Image.d.cts +79 -6
  38. package/dist/Image.d.ts +79 -6
  39. package/dist/Image.js +2 -2
  40. package/dist/{Input-3G4ONWNU.css → Input-HUBJ55OH.css} +10 -0
  41. package/dist/Input.cjs +5 -5
  42. package/dist/Input.d.cts +4 -3
  43. package/dist/Input.d.ts +4 -3
  44. package/dist/Input.js +3 -3
  45. package/dist/InputNumber.cjs +5 -5
  46. package/dist/InputNumber.js +4 -4
  47. package/dist/Message.cjs +6 -6
  48. package/dist/Message.js +2 -2
  49. package/dist/Modal.cjs +4 -4
  50. package/dist/Modal.d.cts +1 -0
  51. package/dist/Modal.d.ts +1 -0
  52. package/dist/Modal.js +3 -3
  53. package/dist/Pagination.cjs +7 -7
  54. package/dist/Pagination.js +6 -6
  55. package/dist/{Select-JVBQAZBG.css → Select-Z5VYPEEY.css} +26 -1
  56. package/dist/Select.cjs +6 -6
  57. package/dist/Select.d.cts +4 -3
  58. package/dist/Select.d.ts +4 -3
  59. package/dist/Select.js +5 -5
  60. package/dist/Table.cjs +9 -9
  61. package/dist/Table.js +8 -8
  62. package/dist/TablePro.cjs +10 -10
  63. package/dist/TablePro.js +9 -9
  64. package/dist/{Tag-LB3OOJAO.css → Tag-HDYCDPFS.css} +14 -1
  65. package/dist/Tag.cjs +3 -3
  66. package/dist/Tag.d.cts +4 -3
  67. package/dist/Tag.d.ts +4 -3
  68. package/dist/Tag.js +2 -2
  69. package/dist/Textarea.cjs +4 -4
  70. package/dist/Textarea.js +2 -2
  71. package/dist/Theme.cjs +14 -10
  72. package/dist/Theme.d.cts +29 -6
  73. package/dist/Theme.d.ts +29 -6
  74. package/dist/Theme.js +1 -1
  75. package/dist/Typography.cjs +7 -7
  76. package/dist/Typography.d.cts +1 -0
  77. package/dist/Typography.d.ts +1 -0
  78. package/dist/Typography.js +2 -2
  79. package/dist/{chunk-MT7UWY6T.cjs → chunk-2HQCUBA7.cjs} +2 -2
  80. package/dist/{chunk-OF3SGLZY.js → chunk-47VG2P34.js} +9 -1
  81. package/dist/{chunk-ZIP7F4UF.cjs → chunk-5DKRY67M.cjs} +4 -4
  82. package/dist/{chunk-DQTSTJ6O.js → chunk-5H5YP2TB.js} +3 -3
  83. package/dist/{chunk-QGHYQCF3.cjs → chunk-5MN3PMF4.cjs} +8 -8
  84. package/dist/{chunk-FBVVRTX2.cjs → chunk-6HMTV6P4.cjs} +2 -2
  85. package/dist/{chunk-RF2EY5JS.cjs → chunk-6ZXQJRAT.cjs} +153 -34
  86. package/dist/{chunk-4WTU5P3O.cjs → chunk-7AG524YZ.cjs} +3 -3
  87. package/dist/{chunk-CEJ7VBR6.js → chunk-7IYKKLV3.js} +2 -2
  88. package/dist/{chunk-FJNWUELL.js → chunk-AAGF7K3L.js} +1 -1
  89. package/dist/{chunk-AWXCSX6J.js → chunk-BPOOVO5T.js} +3 -3
  90. package/dist/{chunk-EJBHR2P5.js → chunk-BVQ77VRY.js} +2 -2
  91. package/dist/{chunk-7NGMQIST.js → chunk-CETNCRZ4.js} +2 -2
  92. package/dist/{chunk-K2KYM7LW.cjs → chunk-DG5VQ6BO.cjs} +2 -2
  93. package/dist/chunk-DWAN57G4.js +243 -0
  94. package/dist/{chunk-CXWEOAVU.js → chunk-ET6DYQVZ.js} +1 -1
  95. package/dist/{chunk-WKKSAGYH.js → chunk-FBYUZOZP.js} +7 -7
  96. package/dist/{chunk-EIY7KEJ3.cjs → chunk-FGW5GJ22.cjs} +2 -2
  97. package/dist/{chunk-33NCTOEB.js → chunk-FWPBORRB.js} +1 -1
  98. package/dist/{chunk-EQEJTN3V.js → chunk-GIZU3H6H.js} +1 -1
  99. package/dist/{chunk-HPFQXYKG.cjs → chunk-H4LGWZMH.cjs} +9 -9
  100. package/dist/{chunk-6LZ54NPO.cjs → chunk-HKF2V5MM.cjs} +33 -23
  101. package/dist/{chunk-WGZ2KJTZ.js → chunk-HLFH5HWR.js} +1 -1
  102. package/dist/{chunk-UMDGS4BP.js → chunk-I5WTQ5Y3.js} +4 -4
  103. package/dist/{chunk-MUXP7ASL.js → chunk-J2HZTJO6.js} +1 -1
  104. package/dist/{chunk-NN25YMOL.js → chunk-J5ZGYQZK.js} +153 -35
  105. package/dist/{chunk-CHMCL7AV.js → chunk-JCEHZ336.js} +1 -1
  106. package/dist/{chunk-FFZ6OMZI.js → chunk-JVUVOR6S.js} +1 -1
  107. package/dist/{chunk-ON4DEDMI.js → chunk-K5IGFBDR.js} +1 -1
  108. package/dist/{chunk-35ZGBAA3.cjs → chunk-K7FV7W6U.cjs} +5 -5
  109. package/dist/{chunk-XD3JGL5O.js → chunk-ME5BZ2WA.js} +1 -1
  110. package/dist/{chunk-OQBDU5I2.cjs → chunk-MPVCYU2K.cjs} +2 -2
  111. package/dist/{chunk-CUXV6QNN.cjs → chunk-P6EZG2R7.cjs} +5 -5
  112. package/dist/{chunk-SKMP2A5O.cjs → chunk-P6P4DGLF.cjs} +2 -2
  113. package/dist/{chunk-TEG7NJHS.cjs → chunk-PULGVK2I.cjs} +2 -2
  114. package/dist/{chunk-TZJH5HBT.cjs → chunk-QP3VCSRY.cjs} +5 -5
  115. package/dist/{chunk-MQV2XN4B.cjs → chunk-R2TEDH2F.cjs} +5 -5
  116. package/dist/{chunk-JD7A6VM3.js → chunk-SQGPSMSK.js} +5 -5
  117. package/dist/{chunk-GNEZQMKH.js → chunk-TGL5BGMR.js} +4 -4
  118. package/dist/{chunk-5WAXZJG5.cjs → chunk-TP567B3L.cjs} +5 -5
  119. package/dist/{chunk-XTIN5545.js → chunk-UKS23N3L.js} +31 -21
  120. package/dist/{chunk-TJII7BQ2.cjs → chunk-V272XR3F.cjs} +10 -0
  121. package/dist/chunk-VFFIE2VO.cjs +271 -0
  122. package/dist/{chunk-OYMJVU66.cjs → chunk-X5GCOMC3.cjs} +15 -15
  123. package/dist/{chunk-3AS5B7MQ.cjs → chunk-XSN4TLN5.cjs} +10 -10
  124. package/dist/{chunk-6ACKL3WH.cjs → chunk-ZKE73UQF.cjs} +3 -3
  125. package/dist/index.cjs +130 -110
  126. package/dist/index.d.cts +5 -5
  127. package/dist/index.d.ts +5 -5
  128. package/dist/index.js +24 -24
  129. package/dist/styles.css +202 -38
  130. package/docs/llms/alert.md +4 -3
  131. package/docs/llms/button.md +4 -3
  132. package/docs/llms/cascader.md +3 -0
  133. package/docs/llms/image.md +72 -1
  134. package/docs/llms/input.md +3 -2
  135. package/docs/llms/select.md +2 -2
  136. package/docs/llms/tag.md +3 -2
  137. package/docs/llms/theme.md +41 -4
  138. package/docs/llms.md +4 -4
  139. package/package.json +16 -1
  140. package/dist/chunk-B2KEZQ6S.cjs +0 -116
  141. package/dist/chunk-PH3YECMF.js +0 -90
package/dist/Theme.d.cts CHANGED
@@ -1,7 +1,9 @@
1
1
  import * as React from 'react';
2
2
 
3
- type ThemeMode = "light" | "dark" | "system";
4
- type ResolvedThemeMode = "light" | "dark";
3
+ type ThemeBaseMode = "light" | "dark";
4
+ type BuiltInThemeMode = ThemeBaseMode | "system";
5
+ type ThemeMode = BuiltInThemeMode | (string & {});
6
+ type ResolvedThemeMode = ThemeBaseMode | (string & {});
5
7
  type AccentKey = "sky" | "coral" | "mint" | "violet" | "amber" | "rose";
6
8
  type DensityMode = "compact" | "comfortable" | "spacious";
7
9
  type FontKey = "system" | "sf" | "serif" | "mono";
@@ -30,8 +32,21 @@ type FontConfig = FontKey | string | {
30
32
  /** Arbitrary CSS variable overrides. Keys may be either a short name
31
33
  * (e.g. `"bg"` → `--bg`) or a full var name (e.g. `"--bg"`). */
32
34
  type ThemeTokens = Record<string, string>;
35
+ /** Named custom theme mode. `base` keeps dark/light specific component rules. */
36
+ interface ThemePreset {
37
+ base?: ThemeBaseMode;
38
+ accent?: AccentKey | CustomAccentInput;
39
+ density?: DensityMode;
40
+ intensity?: number;
41
+ radius?: number;
42
+ font?: FontConfig;
43
+ tokens?: ThemeTokens;
44
+ }
45
+ type ThemePresets = Record<string, ThemePreset>;
33
46
  interface ThemeConfig {
34
47
  mode?: ThemeMode;
48
+ /** Base light/dark color scheme used by custom modes. */
49
+ colorScheme?: ThemeBaseMode;
35
50
  accent?: AccentKey | CustomAccentInput;
36
51
  density?: DensityMode;
37
52
  /** Shadow strength, 1..10. Maps to `--d` (0.4..1.6). */
@@ -40,12 +55,16 @@ interface ThemeConfig {
40
55
  radius?: number;
41
56
  font?: FontConfig;
42
57
  tokens?: ThemeTokens;
58
+ /** Custom named modes addressable through `mode` / `setMode`. */
59
+ themes?: ThemePresets;
43
60
  }
44
61
  interface ThemeValue {
45
62
  /** Requested mode ("system" is preserved here). */
46
63
  mode: ThemeMode;
47
- /** Resolved concrete mode ("system" → "light" | "dark" based on OS). */
64
+ /** Resolved concrete mode ("system" → "light" | "dark"; custom modes keep their name). */
48
65
  resolvedMode: ResolvedThemeMode;
66
+ /** The light/dark base currently used for component-specific selectors. */
67
+ colorScheme: ThemeBaseMode;
49
68
  /** Accent key or "custom" if a palette was supplied. */
50
69
  accent: AccentKey | "custom";
51
70
  /** Resolved palette currently in effect. */
@@ -55,6 +74,8 @@ interface ThemeValue {
55
74
  radius: number;
56
75
  font: FontConfig;
57
76
  tokens: ThemeTokens;
77
+ themes: ThemePresets;
78
+ activeTheme: ThemePreset | null;
58
79
  setMode: (m: ThemeMode) => void;
59
80
  toggleMode: () => void;
60
81
  setAccent: (a: AccentKey | CustomAccentInput) => void;
@@ -63,6 +84,7 @@ interface ThemeValue {
63
84
  setRadius: (n: number) => void;
64
85
  setFont: (f: FontConfig) => void;
65
86
  setTokens: (t: ThemeTokens) => void;
87
+ setThemes: (t: ThemePresets) => void;
66
88
  /** Shallow-merge a partial config. */
67
89
  update: (cfg: Partial<ThemeConfig>) => void;
68
90
  /** Reset to the initial props. */
@@ -75,10 +97,11 @@ declare const ACCENT_PRESETS: Record<AccentKey, AccentPalette>;
75
97
  declare const ACCENT_PRESETS_DARK: Record<AccentKey, Pick<AccentPalette, "ink" | "soft" | "glow">>;
76
98
  /** Built-in font family stacks. */
77
99
  declare const FONT_STACKS: Record<FontKey, string>;
78
- /** Resolve "system" mode against `prefers-color-scheme`. */
100
+ /** Resolve "system" mode against `prefers-color-scheme`; custom modes keep their name. */
79
101
  declare function resolveThemeMode(mode: ThemeMode): ResolvedThemeMode;
102
+ declare function resolveThemeColorScheme(mode: ThemeMode, themes?: ThemePresets, fallback?: ThemeBaseMode): ThemeBaseMode;
80
103
  /** Fill missing slots of a custom accent via color-mix. */
81
- declare function normalizeAccentInput(input: AccentKey | CustomAccentInput, resolvedMode: ResolvedThemeMode): {
104
+ declare function normalizeAccentInput(input: AccentKey | CustomAccentInput, colorScheme: ThemeBaseMode): {
82
105
  key: AccentKey | "custom";
83
106
  palette: AccentPalette;
84
107
  };
@@ -124,4 +147,4 @@ interface ThemeProviderProps extends ThemeConfig {
124
147
  */
125
148
  declare const ThemeProvider: React.FC<ThemeProviderProps>;
126
149
 
127
- export { ACCENT_PRESETS, ACCENT_PRESETS_DARK, type AccentKey, type AccentPalette, type CustomAccentInput, type DensityMode, FONT_STACKS, type FontConfig, type FontKey, type ResolvedThemeMode, type ThemeConfig, type ThemeMode, ThemeProvider, type ThemeProviderProps, type ThemeTokens, type ThemeValue, applyTheme, normalizeAccentInput, resolveThemeMode, useTheme, useThemeOptional };
150
+ export { ACCENT_PRESETS, ACCENT_PRESETS_DARK, type AccentKey, type AccentPalette, type BuiltInThemeMode, type CustomAccentInput, type DensityMode, FONT_STACKS, type FontConfig, type FontKey, type ResolvedThemeMode, type ThemeBaseMode, type ThemeConfig, type ThemeMode, type ThemePreset, type ThemePresets, ThemeProvider, type ThemeProviderProps, type ThemeTokens, type ThemeValue, applyTheme, normalizeAccentInput, resolveThemeColorScheme, resolveThemeMode, useTheme, useThemeOptional };
package/dist/Theme.d.ts CHANGED
@@ -1,7 +1,9 @@
1
1
  import * as React from 'react';
2
2
 
3
- type ThemeMode = "light" | "dark" | "system";
4
- type ResolvedThemeMode = "light" | "dark";
3
+ type ThemeBaseMode = "light" | "dark";
4
+ type BuiltInThemeMode = ThemeBaseMode | "system";
5
+ type ThemeMode = BuiltInThemeMode | (string & {});
6
+ type ResolvedThemeMode = ThemeBaseMode | (string & {});
5
7
  type AccentKey = "sky" | "coral" | "mint" | "violet" | "amber" | "rose";
6
8
  type DensityMode = "compact" | "comfortable" | "spacious";
7
9
  type FontKey = "system" | "sf" | "serif" | "mono";
@@ -30,8 +32,21 @@ type FontConfig = FontKey | string | {
30
32
  /** Arbitrary CSS variable overrides. Keys may be either a short name
31
33
  * (e.g. `"bg"` → `--bg`) or a full var name (e.g. `"--bg"`). */
32
34
  type ThemeTokens = Record<string, string>;
35
+ /** Named custom theme mode. `base` keeps dark/light specific component rules. */
36
+ interface ThemePreset {
37
+ base?: ThemeBaseMode;
38
+ accent?: AccentKey | CustomAccentInput;
39
+ density?: DensityMode;
40
+ intensity?: number;
41
+ radius?: number;
42
+ font?: FontConfig;
43
+ tokens?: ThemeTokens;
44
+ }
45
+ type ThemePresets = Record<string, ThemePreset>;
33
46
  interface ThemeConfig {
34
47
  mode?: ThemeMode;
48
+ /** Base light/dark color scheme used by custom modes. */
49
+ colorScheme?: ThemeBaseMode;
35
50
  accent?: AccentKey | CustomAccentInput;
36
51
  density?: DensityMode;
37
52
  /** Shadow strength, 1..10. Maps to `--d` (0.4..1.6). */
@@ -40,12 +55,16 @@ interface ThemeConfig {
40
55
  radius?: number;
41
56
  font?: FontConfig;
42
57
  tokens?: ThemeTokens;
58
+ /** Custom named modes addressable through `mode` / `setMode`. */
59
+ themes?: ThemePresets;
43
60
  }
44
61
  interface ThemeValue {
45
62
  /** Requested mode ("system" is preserved here). */
46
63
  mode: ThemeMode;
47
- /** Resolved concrete mode ("system" → "light" | "dark" based on OS). */
64
+ /** Resolved concrete mode ("system" → "light" | "dark"; custom modes keep their name). */
48
65
  resolvedMode: ResolvedThemeMode;
66
+ /** The light/dark base currently used for component-specific selectors. */
67
+ colorScheme: ThemeBaseMode;
49
68
  /** Accent key or "custom" if a palette was supplied. */
50
69
  accent: AccentKey | "custom";
51
70
  /** Resolved palette currently in effect. */
@@ -55,6 +74,8 @@ interface ThemeValue {
55
74
  radius: number;
56
75
  font: FontConfig;
57
76
  tokens: ThemeTokens;
77
+ themes: ThemePresets;
78
+ activeTheme: ThemePreset | null;
58
79
  setMode: (m: ThemeMode) => void;
59
80
  toggleMode: () => void;
60
81
  setAccent: (a: AccentKey | CustomAccentInput) => void;
@@ -63,6 +84,7 @@ interface ThemeValue {
63
84
  setRadius: (n: number) => void;
64
85
  setFont: (f: FontConfig) => void;
65
86
  setTokens: (t: ThemeTokens) => void;
87
+ setThemes: (t: ThemePresets) => void;
66
88
  /** Shallow-merge a partial config. */
67
89
  update: (cfg: Partial<ThemeConfig>) => void;
68
90
  /** Reset to the initial props. */
@@ -75,10 +97,11 @@ declare const ACCENT_PRESETS: Record<AccentKey, AccentPalette>;
75
97
  declare const ACCENT_PRESETS_DARK: Record<AccentKey, Pick<AccentPalette, "ink" | "soft" | "glow">>;
76
98
  /** Built-in font family stacks. */
77
99
  declare const FONT_STACKS: Record<FontKey, string>;
78
- /** Resolve "system" mode against `prefers-color-scheme`. */
100
+ /** Resolve "system" mode against `prefers-color-scheme`; custom modes keep their name. */
79
101
  declare function resolveThemeMode(mode: ThemeMode): ResolvedThemeMode;
102
+ declare function resolveThemeColorScheme(mode: ThemeMode, themes?: ThemePresets, fallback?: ThemeBaseMode): ThemeBaseMode;
80
103
  /** Fill missing slots of a custom accent via color-mix. */
81
- declare function normalizeAccentInput(input: AccentKey | CustomAccentInput, resolvedMode: ResolvedThemeMode): {
104
+ declare function normalizeAccentInput(input: AccentKey | CustomAccentInput, colorScheme: ThemeBaseMode): {
82
105
  key: AccentKey | "custom";
83
106
  palette: AccentPalette;
84
107
  };
@@ -124,4 +147,4 @@ interface ThemeProviderProps extends ThemeConfig {
124
147
  */
125
148
  declare const ThemeProvider: React.FC<ThemeProviderProps>;
126
149
 
127
- export { ACCENT_PRESETS, ACCENT_PRESETS_DARK, type AccentKey, type AccentPalette, type CustomAccentInput, type DensityMode, FONT_STACKS, type FontConfig, type FontKey, type ResolvedThemeMode, type ThemeConfig, type ThemeMode, ThemeProvider, type ThemeProviderProps, type ThemeTokens, type ThemeValue, applyTheme, normalizeAccentInput, resolveThemeMode, useTheme, useThemeOptional };
150
+ export { ACCENT_PRESETS, ACCENT_PRESETS_DARK, type AccentKey, type AccentPalette, type BuiltInThemeMode, type CustomAccentInput, type DensityMode, FONT_STACKS, type FontConfig, type FontKey, type ResolvedThemeMode, type ThemeBaseMode, type ThemeConfig, type ThemeMode, type ThemePreset, type ThemePresets, ThemeProvider, type ThemeProviderProps, type ThemeTokens, type ThemeValue, applyTheme, normalizeAccentInput, resolveThemeColorScheme, resolveThemeMode, useTheme, useThemeOptional };
package/dist/Theme.js CHANGED
@@ -1 +1 @@
1
- export { ACCENT_PRESETS, ACCENT_PRESETS_DARK, FONT_STACKS, ThemeProvider, applyTheme, normalizeAccentInput, resolveThemeMode, useTheme, useThemeOptional } from './chunk-NN25YMOL.js';
1
+ export { ACCENT_PRESETS, ACCENT_PRESETS_DARK, FONT_STACKS, ThemeProvider, applyTheme, normalizeAccentInput, resolveThemeColorScheme, resolveThemeMode, useTheme, useThemeOptional } from './chunk-J5ZGYQZK.js';
@@ -1,27 +1,27 @@
1
1
  'use strict';
2
2
 
3
- var chunkMQV2XN4B_cjs = require('./chunk-MQV2XN4B.cjs');
4
- require('./chunk-TJII7BQ2.cjs');
3
+ var chunkR2TEDH2F_cjs = require('./chunk-R2TEDH2F.cjs');
4
+ require('./chunk-V272XR3F.cjs');
5
5
 
6
6
 
7
7
 
8
8
  Object.defineProperty(exports, "Link", {
9
9
  enumerable: true,
10
- get: function () { return chunkMQV2XN4B_cjs.Link; }
10
+ get: function () { return chunkR2TEDH2F_cjs.Link; }
11
11
  });
12
12
  Object.defineProperty(exports, "Paragraph", {
13
13
  enumerable: true,
14
- get: function () { return chunkMQV2XN4B_cjs.Paragraph; }
14
+ get: function () { return chunkR2TEDH2F_cjs.Paragraph; }
15
15
  });
16
16
  Object.defineProperty(exports, "Text", {
17
17
  enumerable: true,
18
- get: function () { return chunkMQV2XN4B_cjs.Text; }
18
+ get: function () { return chunkR2TEDH2F_cjs.Text; }
19
19
  });
20
20
  Object.defineProperty(exports, "Title", {
21
21
  enumerable: true,
22
- get: function () { return chunkMQV2XN4B_cjs.Title; }
22
+ get: function () { return chunkR2TEDH2F_cjs.Title; }
23
23
  });
24
24
  Object.defineProperty(exports, "Typography", {
25
25
  enumerable: true,
26
- get: function () { return chunkMQV2XN4B_cjs.Typography; }
26
+ get: function () { return chunkR2TEDH2F_cjs.Typography; }
27
27
  });
@@ -1,5 +1,6 @@
1
1
  import * as React from 'react';
2
2
  import { IconName } from './Icon.cjs';
3
+ import 'react/jsx-runtime';
3
4
 
4
5
  type TypographyType = "secondary" | "success" | "warning" | "danger";
5
6
  interface CopyableConfig {
@@ -1,5 +1,6 @@
1
1
  import * as React from 'react';
2
2
  import { IconName } from './Icon.js';
3
+ import 'react/jsx-runtime';
3
4
 
4
5
  type TypographyType = "secondary" | "success" | "warning" | "danger";
5
6
  interface CopyableConfig {
@@ -1,2 +1,2 @@
1
- export { Link, Paragraph, Text, Title, Typography } from './chunk-CXWEOAVU.js';
2
- import './chunk-OF3SGLZY.js';
1
+ export { Link, Paragraph, Text, Title, Typography } from './chunk-ET6DYQVZ.js';
2
+ import './chunk-47VG2P34.js';
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var chunkTJII7BQ2_cjs = require('./chunk-TJII7BQ2.cjs');
3
+ var chunkV272XR3F_cjs = require('./chunk-V272XR3F.cjs');
4
4
  require('./tokens-BIIUTPKN.css');
5
5
  require('./shared-NJHRNLRH.css');
6
6
  require('./Drawer-IPGB4CXH.css');
@@ -116,7 +116,7 @@ var Drawer = React__namespace.forwardRef(({
116
116
  className: "drawer-close",
117
117
  onClick: onClose,
118
118
  "aria-label": "Close",
119
- children: closeIcon ?? /* @__PURE__ */ jsxRuntime.jsx(chunkTJII7BQ2_cjs.Icon, { name: "x", size: 16 })
119
+ children: closeIcon ?? /* @__PURE__ */ jsxRuntime.jsx(chunkV272XR3F_cjs.Icon, { name: "x", size: 16 })
120
120
  }
121
121
  )
122
122
  ] })
@@ -255,6 +255,14 @@ var Icon = React.forwardRef(
255
255
  )
256
256
  );
257
257
  Icon.displayName = "Icon";
258
+ var isIconName = (value) => typeof value === "string" && Object.prototype.hasOwnProperty.call(paths, value);
259
+ var renderIconSlot = (icon, { size = 14, className } = {}) => {
260
+ if (icon == null || icon === false) return null;
261
+ if (isIconName(icon)) {
262
+ return /* @__PURE__ */ jsx(Icon, { name: icon, size, className });
263
+ }
264
+ return /* @__PURE__ */ jsx("span", { className, children: icon });
265
+ };
258
266
  var ICON_NAMES = Object.keys(paths);
259
267
  var NAMED_ICON_MAP = {
260
268
  AimOutlined: "aim",
@@ -382,4 +390,4 @@ var TranslationOutlined = createNamedIcon("TranslationOutlined");
382
390
  var UnorderedListOutlined = createNamedIcon("UnorderedListOutlined");
383
391
  var UserOutlined = createNamedIcon("UserOutlined");
384
392
 
385
- export { AimOutlined, AppstoreOutlined, BarChartOutlined, BlockOutlined, BorderOutlined, CameraOutlined, CaretDownOutlined, CaretUpOutlined, CheckCircleFilled, CheckCircleOutlined, CheckOutlined, ClockCircleFilled, CloseCircleOutlined, CloseOutlined, CopyOutlined, DashboardOutlined, DeleteOutlined, DownOutlined, EnvironmentOutlined, ExclamationCircleOutlined, FolderOpenOutlined, ICON_NAMES, Icon, LeftOutlined, LoadingOutlined, MinusCircleOutlined, MinusOutlined, NAMED_ICON_MAP, PictureOutlined, PlusOutlined, QqOutlined, ReloadOutlined, RightOutlined, RobotOutlined, SearchOutlined, SettingOutlined, StarFilled, StarOutlined, SwapOutlined, SwapRightOutlined, SyncOutlined, ThunderboltOutlined, TranslationOutlined, UnorderedListOutlined, UserOutlined, resolveIconName };
393
+ export { AimOutlined, AppstoreOutlined, BarChartOutlined, BlockOutlined, BorderOutlined, CameraOutlined, CaretDownOutlined, CaretUpOutlined, CheckCircleFilled, CheckCircleOutlined, CheckOutlined, ClockCircleFilled, CloseCircleOutlined, CloseOutlined, CopyOutlined, DashboardOutlined, DeleteOutlined, DownOutlined, EnvironmentOutlined, ExclamationCircleOutlined, FolderOpenOutlined, ICON_NAMES, Icon, LeftOutlined, LoadingOutlined, MinusCircleOutlined, MinusOutlined, NAMED_ICON_MAP, PictureOutlined, PlusOutlined, QqOutlined, ReloadOutlined, RightOutlined, RobotOutlined, SearchOutlined, SettingOutlined, StarFilled, StarOutlined, SwapOutlined, SwapRightOutlined, SyncOutlined, ThunderboltOutlined, TranslationOutlined, UnorderedListOutlined, UserOutlined, isIconName, renderIconSlot, resolveIconName };
@@ -1,9 +1,9 @@
1
1
  'use strict';
2
2
 
3
- var chunkTJII7BQ2_cjs = require('./chunk-TJII7BQ2.cjs');
3
+ var chunkV272XR3F_cjs = require('./chunk-V272XR3F.cjs');
4
4
  require('./tokens-BIIUTPKN.css');
5
5
  require('./shared-NJHRNLRH.css');
6
- require('./Tag-LB3OOJAO.css');
6
+ require('./Tag-HDYCDPFS.css');
7
7
  var React = require('react');
8
8
  var jsxRuntime = require('react/jsx-runtime');
9
9
 
@@ -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
- icon && /* @__PURE__ */ jsxRuntime.jsx(chunkTJII7BQ2_cjs.Icon, { name: icon, size: 11, className: "tag-ico" }),
51
+ chunkV272XR3F_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(chunkTJII7BQ2_cjs.Icon, { name: "x", size: 11 })
63
+ children: /* @__PURE__ */ jsxRuntime.jsx(chunkV272XR3F_cjs.Icon, { name: "x", size: 11 })
64
64
  }
65
65
  )
66
66
  ] });
@@ -1,7 +1,7 @@
1
- import { Icon } from './chunk-OF3SGLZY.js';
1
+ import { renderIconSlot, Icon } from './chunk-47VG2P34.js';
2
2
  import './tokens-BIIUTPKN.css';
3
3
  import './shared-NJHRNLRH.css';
4
- import './Tag-LB3OOJAO.css';
4
+ import './Tag-HDYCDPFS.css';
5
5
  import * as React from 'react';
6
6
  import { jsxs, jsx } from 'react/jsx-runtime';
7
7
 
@@ -26,7 +26,7 @@ var Tag = React.forwardRef(({
26
26
  ].filter(Boolean).join(" ");
27
27
  return /* @__PURE__ */ jsxs("span", { ref, className: cls, ...rest, children: [
28
28
  dot && /* @__PURE__ */ jsx("span", { className: "dot" }),
29
- icon && /* @__PURE__ */ jsx(Icon, { name: icon, size: 11, className: "tag-ico" }),
29
+ renderIconSlot(icon, { size: 11, className: "tag-ico" }),
30
30
  children,
31
31
  removable && /* @__PURE__ */ jsx(
32
32
  "span",
@@ -1,11 +1,11 @@
1
1
  'use strict';
2
2
 
3
3
  var chunkYB3IWIOJ_cjs = require('./chunk-YB3IWIOJ.cjs');
4
- var chunk6LZ54NPO_cjs = require('./chunk-6LZ54NPO.cjs');
5
- var chunkTJII7BQ2_cjs = require('./chunk-TJII7BQ2.cjs');
4
+ var chunkHKF2V5MM_cjs = require('./chunk-HKF2V5MM.cjs');
5
+ var chunkV272XR3F_cjs = require('./chunk-V272XR3F.cjs');
6
6
  require('./tokens-BIIUTPKN.css');
7
7
  require('./shared-NJHRNLRH.css');
8
- require('./Cascader-C2DFSMKJ.css');
8
+ require('./Cascader-3BLLA7EN.css');
9
9
  var React = require('react');
10
10
  var reactDom = require('react-dom');
11
11
  var jsxRuntime = require('react/jsx-runtime');
@@ -179,17 +179,17 @@ var Cascader = React__namespace.forwardRef(({
179
179
  role: "button",
180
180
  "aria-label": "Clear",
181
181
  onClick: clear,
182
- children: /* @__PURE__ */ jsxRuntime.jsx(chunkTJII7BQ2_cjs.Icon, { name: "x", size: 12 })
182
+ children: /* @__PURE__ */ jsxRuntime.jsx(chunkV272XR3F_cjs.Icon, { name: "x", size: 12 })
183
183
  }
184
184
  ),
185
- /* @__PURE__ */ jsxRuntime.jsx("span", { style: { position: "absolute", right: 12, color: "var(--fg-subtle)" }, children: /* @__PURE__ */ jsxRuntime.jsx(chunkTJII7BQ2_cjs.Icon, { name: "chevDown", size: 14 }) })
185
+ /* @__PURE__ */ jsxRuntime.jsx("span", { style: { position: "absolute", right: 12, color: "var(--fg-subtle)" }, children: /* @__PURE__ */ jsxRuntime.jsx(chunkV272XR3F_cjs.Icon, { name: "chevDown", size: 14 }) })
186
186
  ]
187
187
  }
188
188
  ),
189
189
  open && typeof document !== "undefined" && reactDom.createPortal(
190
190
  /* @__PURE__ */ jsxRuntime.jsxs("div", { ref: panelRef, className: panelClassName, style: floatingStyle, children: [
191
191
  searchable && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "cascader-search", children: /* @__PURE__ */ jsxRuntime.jsx(
192
- chunk6LZ54NPO_cjs.Input,
192
+ chunkHKF2V5MM_cjs.Input,
193
193
  {
194
194
  ref: searchRef,
195
195
  size: "sm",
@@ -222,9 +222,9 @@ var Cascader = React__namespace.forwardRef(({
222
222
  disabled: o.disabled,
223
223
  onClick: () => pick(depth, o.value, hasChildren),
224
224
  children: [
225
- o.icon && /* @__PURE__ */ jsxRuntime.jsx(chunkTJII7BQ2_cjs.Icon, { name: o.icon, size: 13 }),
225
+ chunkV272XR3F_cjs.renderIconSlot(o.icon, { size: 13, className: "cascader-icon" }),
226
226
  /* @__PURE__ */ jsxRuntime.jsx("span", { children: o.label }),
227
- hasChildren && /* @__PURE__ */ jsxRuntime.jsx("span", { className: "chev", children: /* @__PURE__ */ jsxRuntime.jsx(chunkTJII7BQ2_cjs.Icon, { name: "chevRight", size: 12 }) })
227
+ hasChildren && /* @__PURE__ */ jsxRuntime.jsx("span", { className: "chev", children: /* @__PURE__ */ jsxRuntime.jsx(chunkV272XR3F_cjs.Icon, { name: "chevRight", size: 12 }) })
228
228
  ]
229
229
  },
230
230
  o.value
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var chunkTJII7BQ2_cjs = require('./chunk-TJII7BQ2.cjs');
3
+ var chunkV272XR3F_cjs = require('./chunk-V272XR3F.cjs');
4
4
  require('./tokens-BIIUTPKN.css');
5
5
  require('./shared-NJHRNLRH.css');
6
6
  require('./Checkbox-U5EUDSYS.css');
@@ -65,7 +65,7 @@ var Checkbox = React__namespace.forwardRef(({
65
65
  onClick: toggle,
66
66
  id,
67
67
  className: "checkbox-box",
68
- children: indeterminate ? /* @__PURE__ */ jsxRuntime.jsx(chunkTJII7BQ2_cjs.Icon, { name: "minus", size: 11 }) : value ? /* @__PURE__ */ jsxRuntime.jsx(chunkTJII7BQ2_cjs.Icon, { name: "check", size: 11 }) : null
68
+ children: indeterminate ? /* @__PURE__ */ jsxRuntime.jsx(chunkV272XR3F_cjs.Icon, { name: "minus", size: 11 }) : value ? /* @__PURE__ */ jsxRuntime.jsx(chunkV272XR3F_cjs.Icon, { name: "check", size: 11 }) : null
69
69
  }
70
70
  ),
71
71
  label && /* @__PURE__ */ jsxRuntime.jsx("span", { className: "checkbox-label", children: label })