@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.
- package/README.md +2 -1
- package/dist/{Alert-JJ7GB3UU.css → Alert-QBKIDY5H.css} +7 -0
- package/dist/Alert.cjs +3 -3
- package/dist/Alert.d.cts +3 -2
- package/dist/Alert.d.ts +3 -2
- package/dist/Alert.js +2 -2
- package/dist/AutoComplete.cjs +5 -5
- package/dist/AutoComplete.js +4 -4
- package/dist/Badge.d.cts +1 -0
- package/dist/Badge.d.ts +1 -0
- package/dist/{Button-SDQD25AG.css → Button-4Z3Q6KII.css} +56 -36
- package/dist/Button.cjs +3 -3
- package/dist/Button.d.cts +6 -5
- package/dist/Button.d.ts +6 -5
- package/dist/Button.js +2 -2
- package/dist/Calendar.cjs +3 -3
- package/dist/Calendar.js +2 -2
- package/dist/{Cascader-C2DFSMKJ.css → Cascader-3BLLA7EN.css} +13 -0
- package/dist/Cascader.cjs +5 -5
- package/dist/Cascader.d.cts +4 -2
- package/dist/Cascader.d.ts +4 -2
- 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/CommandPalette.cjs +5 -5
- package/dist/CommandPalette.js +4 -4
- package/dist/Drawer.cjs +3 -3
- package/dist/Drawer.js +2 -2
- package/dist/Icon.cjs +55 -47
- package/dist/Icon.d.cts +9 -1
- package/dist/Icon.d.ts +9 -1
- package/dist/Icon.js +1 -1
- package/dist/{Image-4MN34O6P.css → Image-MRYQCRQ5.css} +78 -0
- package/dist/Image.cjs +12 -4
- package/dist/Image.d.cts +79 -6
- package/dist/Image.d.ts +79 -6
- package/dist/Image.js +2 -2
- package/dist/{Input-3G4ONWNU.css → Input-HUBJ55OH.css} +10 -0
- package/dist/Input.cjs +5 -5
- package/dist/Input.d.cts +4 -3
- package/dist/Input.d.ts +4 -3
- package/dist/Input.js +3 -3
- package/dist/InputNumber.cjs +5 -5
- package/dist/InputNumber.js +4 -4
- package/dist/Message.cjs +6 -6
- package/dist/Message.js +2 -2
- package/dist/Modal.cjs +4 -4
- package/dist/Modal.d.cts +1 -0
- package/dist/Modal.d.ts +1 -0
- package/dist/Modal.js +3 -3
- package/dist/Pagination.cjs +7 -7
- package/dist/Pagination.js +6 -6
- package/dist/{Select-JVBQAZBG.css → Select-Z5VYPEEY.css} +26 -1
- package/dist/Select.cjs +6 -6
- package/dist/Select.d.cts +4 -3
- package/dist/Select.d.ts +4 -3
- package/dist/Select.js +5 -5
- 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/{Tag-LB3OOJAO.css → Tag-HDYCDPFS.css} +14 -1
- package/dist/Tag.cjs +3 -3
- package/dist/Tag.d.cts +4 -3
- package/dist/Tag.d.ts +4 -3
- package/dist/Tag.js +2 -2
- package/dist/Textarea.cjs +4 -4
- package/dist/Textarea.js +2 -2
- package/dist/Theme.cjs +14 -10
- package/dist/Theme.d.cts +29 -6
- package/dist/Theme.d.ts +29 -6
- package/dist/Theme.js +1 -1
- package/dist/Typography.cjs +7 -7
- package/dist/Typography.d.cts +1 -0
- package/dist/Typography.d.ts +1 -0
- package/dist/Typography.js +2 -2
- package/dist/{chunk-MT7UWY6T.cjs → chunk-2HQCUBA7.cjs} +2 -2
- package/dist/{chunk-OF3SGLZY.js → chunk-47VG2P34.js} +9 -1
- package/dist/{chunk-ZIP7F4UF.cjs → chunk-5DKRY67M.cjs} +4 -4
- package/dist/{chunk-DQTSTJ6O.js → chunk-5H5YP2TB.js} +3 -3
- package/dist/{chunk-QGHYQCF3.cjs → chunk-5MN3PMF4.cjs} +8 -8
- package/dist/{chunk-FBVVRTX2.cjs → chunk-6HMTV6P4.cjs} +2 -2
- package/dist/{chunk-RF2EY5JS.cjs → chunk-6ZXQJRAT.cjs} +153 -34
- package/dist/{chunk-4WTU5P3O.cjs → chunk-7AG524YZ.cjs} +3 -3
- package/dist/{chunk-CEJ7VBR6.js → chunk-7IYKKLV3.js} +2 -2
- package/dist/{chunk-FJNWUELL.js → chunk-AAGF7K3L.js} +1 -1
- package/dist/{chunk-AWXCSX6J.js → chunk-BPOOVO5T.js} +3 -3
- package/dist/{chunk-EJBHR2P5.js → chunk-BVQ77VRY.js} +2 -2
- package/dist/{chunk-7NGMQIST.js → chunk-CETNCRZ4.js} +2 -2
- package/dist/{chunk-K2KYM7LW.cjs → chunk-DG5VQ6BO.cjs} +2 -2
- package/dist/chunk-DWAN57G4.js +243 -0
- package/dist/{chunk-CXWEOAVU.js → chunk-ET6DYQVZ.js} +1 -1
- package/dist/{chunk-WKKSAGYH.js → chunk-FBYUZOZP.js} +7 -7
- package/dist/{chunk-EIY7KEJ3.cjs → chunk-FGW5GJ22.cjs} +2 -2
- package/dist/{chunk-33NCTOEB.js → chunk-FWPBORRB.js} +1 -1
- package/dist/{chunk-EQEJTN3V.js → chunk-GIZU3H6H.js} +1 -1
- package/dist/{chunk-HPFQXYKG.cjs → chunk-H4LGWZMH.cjs} +9 -9
- package/dist/{chunk-6LZ54NPO.cjs → chunk-HKF2V5MM.cjs} +33 -23
- package/dist/{chunk-WGZ2KJTZ.js → chunk-HLFH5HWR.js} +1 -1
- package/dist/{chunk-UMDGS4BP.js → chunk-I5WTQ5Y3.js} +4 -4
- package/dist/{chunk-MUXP7ASL.js → chunk-J2HZTJO6.js} +1 -1
- package/dist/{chunk-NN25YMOL.js → chunk-J5ZGYQZK.js} +153 -35
- package/dist/{chunk-CHMCL7AV.js → chunk-JCEHZ336.js} +1 -1
- package/dist/{chunk-FFZ6OMZI.js → chunk-JVUVOR6S.js} +1 -1
- package/dist/{chunk-ON4DEDMI.js → chunk-K5IGFBDR.js} +1 -1
- package/dist/{chunk-35ZGBAA3.cjs → chunk-K7FV7W6U.cjs} +5 -5
- package/dist/{chunk-XD3JGL5O.js → chunk-ME5BZ2WA.js} +1 -1
- package/dist/{chunk-OQBDU5I2.cjs → chunk-MPVCYU2K.cjs} +2 -2
- package/dist/{chunk-CUXV6QNN.cjs → chunk-P6EZG2R7.cjs} +5 -5
- package/dist/{chunk-SKMP2A5O.cjs → chunk-P6P4DGLF.cjs} +2 -2
- package/dist/{chunk-TEG7NJHS.cjs → chunk-PULGVK2I.cjs} +2 -2
- package/dist/{chunk-TZJH5HBT.cjs → chunk-QP3VCSRY.cjs} +5 -5
- package/dist/{chunk-MQV2XN4B.cjs → chunk-R2TEDH2F.cjs} +5 -5
- package/dist/{chunk-JD7A6VM3.js → chunk-SQGPSMSK.js} +5 -5
- package/dist/{chunk-GNEZQMKH.js → chunk-TGL5BGMR.js} +4 -4
- package/dist/{chunk-5WAXZJG5.cjs → chunk-TP567B3L.cjs} +5 -5
- package/dist/{chunk-XTIN5545.js → chunk-UKS23N3L.js} +31 -21
- package/dist/{chunk-TJII7BQ2.cjs → chunk-V272XR3F.cjs} +10 -0
- package/dist/chunk-VFFIE2VO.cjs +271 -0
- package/dist/{chunk-OYMJVU66.cjs → chunk-X5GCOMC3.cjs} +15 -15
- package/dist/{chunk-3AS5B7MQ.cjs → chunk-XSN4TLN5.cjs} +10 -10
- package/dist/{chunk-6ACKL3WH.cjs → chunk-ZKE73UQF.cjs} +3 -3
- package/dist/index.cjs +130 -110
- package/dist/index.d.cts +5 -5
- package/dist/index.d.ts +5 -5
- package/dist/index.js +24 -24
- package/dist/styles.css +202 -38
- package/docs/llms/alert.md +4 -3
- package/docs/llms/button.md +4 -3
- package/docs/llms/cascader.md +3 -0
- package/docs/llms/image.md +72 -1
- package/docs/llms/input.md +3 -2
- package/docs/llms/select.md +2 -2
- package/docs/llms/tag.md +3 -2
- package/docs/llms/theme.md +41 -4
- package/docs/llms.md +4 -4
- package/package.json +16 -1
- package/dist/chunk-B2KEZQ6S.cjs +0 -116
- 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
|
|
4
|
-
type
|
|
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"
|
|
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,
|
|
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
|
|
4
|
-
type
|
|
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"
|
|
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,
|
|
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-
|
|
1
|
+
export { ACCENT_PRESETS, ACCENT_PRESETS_DARK, FONT_STACKS, ThemeProvider, applyTheme, normalizeAccentInput, resolveThemeColorScheme, resolveThemeMode, useTheme, useThemeOptional } from './chunk-J5ZGYQZK.js';
|
package/dist/Typography.cjs
CHANGED
|
@@ -1,27 +1,27 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('./chunk-
|
|
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
|
|
10
|
+
get: function () { return chunkR2TEDH2F_cjs.Link; }
|
|
11
11
|
});
|
|
12
12
|
Object.defineProperty(exports, "Paragraph", {
|
|
13
13
|
enumerable: true,
|
|
14
|
-
get: function () { return
|
|
14
|
+
get: function () { return chunkR2TEDH2F_cjs.Paragraph; }
|
|
15
15
|
});
|
|
16
16
|
Object.defineProperty(exports, "Text", {
|
|
17
17
|
enumerable: true,
|
|
18
|
-
get: function () { return
|
|
18
|
+
get: function () { return chunkR2TEDH2F_cjs.Text; }
|
|
19
19
|
});
|
|
20
20
|
Object.defineProperty(exports, "Title", {
|
|
21
21
|
enumerable: true,
|
|
22
|
-
get: function () { return
|
|
22
|
+
get: function () { return chunkR2TEDH2F_cjs.Title; }
|
|
23
23
|
});
|
|
24
24
|
Object.defineProperty(exports, "Typography", {
|
|
25
25
|
enumerable: true,
|
|
26
|
-
get: function () { return
|
|
26
|
+
get: function () { return chunkR2TEDH2F_cjs.Typography; }
|
|
27
27
|
});
|
package/dist/Typography.d.cts
CHANGED
package/dist/Typography.d.ts
CHANGED
package/dist/Typography.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { Link, Paragraph, Text, Title, Typography } from './chunk-
|
|
2
|
-
import './chunk-
|
|
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
|
|
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(
|
|
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
|
|
3
|
+
var chunkV272XR3F_cjs = require('./chunk-V272XR3F.cjs');
|
|
4
4
|
require('./tokens-BIIUTPKN.css');
|
|
5
5
|
require('./shared-NJHRNLRH.css');
|
|
6
|
-
require('./Tag-
|
|
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
|
-
|
|
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(
|
|
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-
|
|
1
|
+
import { renderIconSlot, Icon } from './chunk-47VG2P34.js';
|
|
2
2
|
import './tokens-BIIUTPKN.css';
|
|
3
3
|
import './shared-NJHRNLRH.css';
|
|
4
|
-
import './Tag-
|
|
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
|
|
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
|
|
5
|
-
var
|
|
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-
|
|
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(
|
|
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(
|
|
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
|
-
|
|
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
|
|
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(
|
|
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
|
|
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(
|
|
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 })
|