@chatbi-v/xcml 2.1.2 → 2.1.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/dist/index.cjs +13 -13
- package/dist/index.css +0 -190
- package/dist/index.d.cts +4 -4
- package/dist/index.d.ts +4 -4
- package/dist/index.js +14 -14
- package/package.json +1 -1
package/dist/index.css
CHANGED
|
@@ -191,196 +191,6 @@
|
|
|
191
191
|
--chart-5: 55 95% 80%;
|
|
192
192
|
}
|
|
193
193
|
|
|
194
|
-
/* 3. Lavender (Purple/Indigo) */
|
|
195
|
-
|
|
196
|
-
[data-theme="lavender"] .xcml-scope,
|
|
197
|
-
.xcml-scope [data-theme="lavender"],
|
|
198
|
-
.xcml-scope[data-theme="lavender"] {
|
|
199
|
-
--primary: 262 83% 58%;
|
|
200
|
-
/* Violet 600 */
|
|
201
|
-
--accent: 262 83% 95%;
|
|
202
|
-
--accent-foreground: 262 83% 58%;
|
|
203
|
-
--ring: 262 83% 58%;
|
|
204
|
-
--card: 262 83% 98%;
|
|
205
|
-
/* Very light purple background */
|
|
206
|
-
--border: 262 83% 90%;
|
|
207
|
-
--chart-1: 262 83% 58%;
|
|
208
|
-
--chart-2: 255 91% 65%;
|
|
209
|
-
--chart-3: 250 95% 75%;
|
|
210
|
-
--chart-4: 245 95% 85%;
|
|
211
|
-
--chart-5: 240 95% 92%;
|
|
212
|
-
}
|
|
213
|
-
|
|
214
|
-
/* 4. Rose (Pink) */
|
|
215
|
-
|
|
216
|
-
[data-theme="rose"] .xcml-scope,
|
|
217
|
-
.xcml-scope [data-theme="rose"],
|
|
218
|
-
.xcml-scope[data-theme="rose"] {
|
|
219
|
-
--primary: 346 84% 50%;
|
|
220
|
-
/* Rose 600 */
|
|
221
|
-
--accent: 346 84% 95%;
|
|
222
|
-
--accent-foreground: 346 84% 50%;
|
|
223
|
-
--ring: 346 84% 50%;
|
|
224
|
-
--card: 346 84% 98%;
|
|
225
|
-
/* Very light pink background */
|
|
226
|
-
--border: 346 84% 90%;
|
|
227
|
-
--chart-1: 346 84% 50%;
|
|
228
|
-
--chart-2: 340 85% 60%;
|
|
229
|
-
--chart-3: 330 90% 70%;
|
|
230
|
-
--chart-4: 320 95% 80%;
|
|
231
|
-
--chart-5: 310 95% 90%;
|
|
232
|
-
}
|
|
233
|
-
|
|
234
|
-
/* 5. Amber (Yellow/Gold) */
|
|
235
|
-
|
|
236
|
-
[data-theme="amber"] .xcml-scope,
|
|
237
|
-
.xcml-scope [data-theme="amber"],
|
|
238
|
-
.xcml-scope[data-theme="amber"] {
|
|
239
|
-
--primary: 38 92% 50%;
|
|
240
|
-
/* Amber 500 */
|
|
241
|
-
--accent: 38 92% 95%;
|
|
242
|
-
--accent-foreground: 38 92% 50%;
|
|
243
|
-
--ring: 38 92% 50%;
|
|
244
|
-
--card: 38 92% 98%;
|
|
245
|
-
/* Very light amber background */
|
|
246
|
-
--border: 38 92% 90%;
|
|
247
|
-
--chart-1: 38 92% 50%;
|
|
248
|
-
--chart-2: 45 95% 55%;
|
|
249
|
-
--chart-3: 52 95% 65%;
|
|
250
|
-
--chart-4: 58 95% 75%;
|
|
251
|
-
--chart-5: 65 95% 85%;
|
|
252
|
-
}
|
|
253
|
-
|
|
254
|
-
/* 6. Midnight (Deep Indigo/Dark) */
|
|
255
|
-
|
|
256
|
-
[data-theme="midnight"] .xcml-scope,
|
|
257
|
-
.xcml-scope [data-theme="midnight"],
|
|
258
|
-
.xcml-scope[data-theme="midnight"] {
|
|
259
|
-
--primary: 224 71% 45%;
|
|
260
|
-
/* Blue 600ish */
|
|
261
|
-
--accent: 224 71% 25%;
|
|
262
|
-
--accent-foreground: 0 0% 100%;
|
|
263
|
-
--ring: 224 71% 45%;
|
|
264
|
-
--card: 224 71% 10%;
|
|
265
|
-
/* Deep dark blue background */
|
|
266
|
-
--card-foreground: 0 0% 98%;
|
|
267
|
-
--border: 224 71% 20%;
|
|
268
|
-
--chart-1: 224 71% 45%;
|
|
269
|
-
--chart-2: 220 60% 55%;
|
|
270
|
-
--chart-3: 215 50% 65%;
|
|
271
|
-
--chart-4: 210 40% 75%;
|
|
272
|
-
--chart-5: 205 30% 85%;
|
|
273
|
-
}
|
|
274
|
-
|
|
275
|
-
/* 7. Forest (Deep Green) */
|
|
276
|
-
|
|
277
|
-
[data-theme="forest"] .xcml-scope,
|
|
278
|
-
.xcml-scope [data-theme="forest"],
|
|
279
|
-
.xcml-scope[data-theme="forest"] {
|
|
280
|
-
--primary: 142 76% 45%;
|
|
281
|
-
/* Green 600ish */
|
|
282
|
-
--accent: 142 76% 25%;
|
|
283
|
-
--accent-foreground: 0 0% 100%;
|
|
284
|
-
--ring: 142 76% 45%;
|
|
285
|
-
--card: 142 76% 10%;
|
|
286
|
-
/* Deep dark green background */
|
|
287
|
-
--card-foreground: 0 0% 98%;
|
|
288
|
-
--border: 142 76% 20%;
|
|
289
|
-
--chart-1: 142 76% 45%;
|
|
290
|
-
--chart-2: 145 60% 55%;
|
|
291
|
-
--chart-3: 150 50% 65%;
|
|
292
|
-
--chart-4: 155 40% 75%;
|
|
293
|
-
--chart-5: 160 30% 85%;
|
|
294
|
-
}
|
|
295
|
-
|
|
296
|
-
/* 8. Slate (Professional Gray) */
|
|
297
|
-
|
|
298
|
-
[data-theme="slate"] .xcml-scope,
|
|
299
|
-
.xcml-scope [data-theme="slate"],
|
|
300
|
-
.xcml-scope[data-theme="slate"] {
|
|
301
|
-
--primary: 215 25% 27%;
|
|
302
|
-
/* Slate 800 */
|
|
303
|
-
--accent: 215 25% 92%;
|
|
304
|
-
--accent-foreground: 215 25% 27%;
|
|
305
|
-
--ring: 215 25% 27%;
|
|
306
|
-
--card: 215 25% 98%;
|
|
307
|
-
--border: 215 25% 90%;
|
|
308
|
-
--chart-1: 215 25% 27%;
|
|
309
|
-
--chart-2: 215 20% 40%;
|
|
310
|
-
--chart-3: 215 15% 55%;
|
|
311
|
-
--chart-4: 215 10% 70%;
|
|
312
|
-
--chart-5: 215 5% 85%;
|
|
313
|
-
}
|
|
314
|
-
|
|
315
|
-
/* 9. Crimson (Wine Red) */
|
|
316
|
-
|
|
317
|
-
[data-theme="crimson"] .xcml-scope,
|
|
318
|
-
.xcml-scope [data-theme="crimson"],
|
|
319
|
-
.xcml-scope[data-theme="crimson"] {
|
|
320
|
-
--primary: 347 77% 35%;
|
|
321
|
-
/* Crimson 900ish */
|
|
322
|
-
--accent: 347 77% 92%;
|
|
323
|
-
--accent-foreground: 347 77% 35%;
|
|
324
|
-
--ring: 347 77% 35%;
|
|
325
|
-
--card: 347 77% 98%;
|
|
326
|
-
--border: 347 77% 90%;
|
|
327
|
-
--chart-1: 347 77% 35%;
|
|
328
|
-
--chart-2: 350 60% 45%;
|
|
329
|
-
--chart-3: 355 50% 55%;
|
|
330
|
-
--chart-4: 0 40% 65%;
|
|
331
|
-
--chart-5: 5 30% 75%;
|
|
332
|
-
}
|
|
333
|
-
|
|
334
|
-
/* 10. Cyan (Teal/Cyan) */
|
|
335
|
-
|
|
336
|
-
[data-theme="cyan"] .xcml-scope,
|
|
337
|
-
.xcml-scope [data-theme="cyan"],
|
|
338
|
-
.xcml-scope[data-theme="cyan"] {
|
|
339
|
-
--primary: 188 86% 40%;
|
|
340
|
-
/* Cyan 600 */
|
|
341
|
-
--accent: 188 86% 95%;
|
|
342
|
-
--accent-foreground: 188 86% 40%;
|
|
343
|
-
--ring: 188 86% 40%;
|
|
344
|
-
--card: 188 86% 98%;
|
|
345
|
-
--border: 188 86% 90%;
|
|
346
|
-
--chart-1: 188 86% 40%;
|
|
347
|
-
--chart-2: 185 75% 50%;
|
|
348
|
-
--chart-3: 180 65% 60%;
|
|
349
|
-
--chart-4: 175 55% 70%;
|
|
350
|
-
--chart-5: 170 45% 80%;
|
|
351
|
-
}
|
|
352
|
-
|
|
353
|
-
/* 11. Brand (Primary Background) */
|
|
354
|
-
|
|
355
|
-
[data-theme="brand"] .xcml-scope,
|
|
356
|
-
.xcml-scope [data-theme="brand"],
|
|
357
|
-
.xcml-scope[data-theme="brand"] {
|
|
358
|
-
--card: 161 94% 30%;
|
|
359
|
-
/* Emerald 600 */
|
|
360
|
-
--card-foreground: 0 0% 100%;
|
|
361
|
-
--primary: 0 0% 100%;
|
|
362
|
-
--primary-foreground: 161 94% 30%;
|
|
363
|
-
--border: 161 94% 25%;
|
|
364
|
-
--muted: 161 94% 25%;
|
|
365
|
-
--muted-foreground: 161 94% 80%;
|
|
366
|
-
--accent: 161 94% 40%;
|
|
367
|
-
--accent-foreground: 0 0% 100%;
|
|
368
|
-
}
|
|
369
|
-
|
|
370
|
-
/* 12. Deep (Very Dark) */
|
|
371
|
-
|
|
372
|
-
[data-theme="deep"] .xcml-scope,
|
|
373
|
-
.xcml-scope [data-theme="deep"],
|
|
374
|
-
.xcml-scope[data-theme="deep"] {
|
|
375
|
-
--card: 224 71% 4%;
|
|
376
|
-
/* Slate 950 */
|
|
377
|
-
--card-foreground: 210 20% 98%;
|
|
378
|
-
--primary: 161 94% 30%;
|
|
379
|
-
--border: 224 71% 12%;
|
|
380
|
-
--muted: 224 71% 12%;
|
|
381
|
-
--muted-foreground: 215 20% 65%;
|
|
382
|
-
}
|
|
383
|
-
|
|
384
194
|
.xcml-scope :is( *) {
|
|
385
195
|
border-color: hsl(var(--border));
|
|
386
196
|
}
|
package/dist/index.d.cts
CHANGED
|
@@ -1034,7 +1034,7 @@ interface ExtendedRenderersOptions {
|
|
|
1034
1034
|
}
|
|
1035
1035
|
declare function createExtendedRenderers(options?: ExtendedRenderersOptions): Record<string, (node: any, key: string | number) => any>;
|
|
1036
1036
|
|
|
1037
|
-
type Theme = "dark" | "light" | "system" | "ocean" | "sunset" | "
|
|
1037
|
+
type Theme = "dark" | "light" | "system" | "ocean" | "sunset" | "inherit";
|
|
1038
1038
|
type ThemeProviderProps = {
|
|
1039
1039
|
children: React.ReactNode;
|
|
1040
1040
|
defaultTheme?: Theme;
|
|
@@ -1056,11 +1056,11 @@ type ThemeProviderProps = {
|
|
|
1056
1056
|
style?: React.CSSProperties;
|
|
1057
1057
|
};
|
|
1058
1058
|
type ThemeProviderState = {
|
|
1059
|
-
theme: Theme;
|
|
1059
|
+
theme: Theme | undefined;
|
|
1060
1060
|
setTheme: (theme: Theme) => void;
|
|
1061
|
+
primaryColor: string;
|
|
1061
1062
|
};
|
|
1062
|
-
declare function ThemeProvider({ children, defaultTheme, theme: controlledTheme, primaryColor,
|
|
1063
|
-
storageKey, scoped, className, style, ...props }: ThemeProviderProps): react_jsx_runtime.JSX.Element;
|
|
1063
|
+
declare function ThemeProvider({ children, defaultTheme, theme: controlledTheme, primaryColor: propsPrimaryColor, storageKey, scoped, className, style, ...props }: ThemeProviderProps): react_jsx_runtime.JSX.Element;
|
|
1064
1064
|
declare const useTheme: () => ThemeProviderState;
|
|
1065
1065
|
|
|
1066
1066
|
export { AntVChartLoader, type AntVRendererOptions, type BaseChartProps, type BasicRenderersOptions, COMMON_PROPS, type ChartAxisConfig, type ChartComponent, type ChartLabelConfig, type ChartLegendConfig, type ChartProps, type ChartStrategy, type ColumnChartProps, DefaultEmptyPlaceholder, DefaultErrorPlaceholder, type DualAxesChartProps, type DualAxesChildConfig, type ExtendedRenderersOptions, type FunnelChartProps, type LineChartProps, type PieChartProps, type Theme, ThemeProvider, type XCMLBaseComponent, type XCMLBaseProps, XCMLCardWrapper, XCMLChart, type XCMLComponentSchema, type XCMLContext, XCMLEventBus, XCMLLayoutProvider, XCMLMarkdown, type XCMLPlugin, type XCMLPropertyCategory, type XCMLPropertyDefinition, type XCMLPropertyType, type XCMLProps, type XCMLRenderer, XCML_SCHEMAS, type XTagPluginOptions, buildConfig, chartSchema, cleanPropsBySchema, columnChartSchema, columnStrategy, createAntVRenderers, createBasicRenderers, createExtendedRenderers, createRenderersWithAliases, deepMerge, dualAxesChartSchema, dualAxesStrategy, extractBaseStyles, funnelChartSchema, funnelStrategy, getChartStrategy, getTheme, lineChartSchema, lineStrategy, mergePropsAndBody, normalizeNodeData, normalizeTagName, parseArrayProp, parseInlineData, parseXCML, pieChartSchema, pieStrategy, preprocessXCML, renderXCML, strategies, stringifyToXCML, themeDark, themeLight, themeMap, toXCMLNodeFromElement, toXCMLTag, toXTag, useTheme, useXCMLComponent, useXCMLLayout, useXCMLNode, validateDataSchema, validateXCMLNode, withXCMLCard, xTagPlugin, xcmlBus };
|
package/dist/index.d.ts
CHANGED
|
@@ -1034,7 +1034,7 @@ interface ExtendedRenderersOptions {
|
|
|
1034
1034
|
}
|
|
1035
1035
|
declare function createExtendedRenderers(options?: ExtendedRenderersOptions): Record<string, (node: any, key: string | number) => any>;
|
|
1036
1036
|
|
|
1037
|
-
type Theme = "dark" | "light" | "system" | "ocean" | "sunset" | "
|
|
1037
|
+
type Theme = "dark" | "light" | "system" | "ocean" | "sunset" | "inherit";
|
|
1038
1038
|
type ThemeProviderProps = {
|
|
1039
1039
|
children: React.ReactNode;
|
|
1040
1040
|
defaultTheme?: Theme;
|
|
@@ -1056,11 +1056,11 @@ type ThemeProviderProps = {
|
|
|
1056
1056
|
style?: React.CSSProperties;
|
|
1057
1057
|
};
|
|
1058
1058
|
type ThemeProviderState = {
|
|
1059
|
-
theme: Theme;
|
|
1059
|
+
theme: Theme | undefined;
|
|
1060
1060
|
setTheme: (theme: Theme) => void;
|
|
1061
|
+
primaryColor: string;
|
|
1061
1062
|
};
|
|
1062
|
-
declare function ThemeProvider({ children, defaultTheme, theme: controlledTheme, primaryColor,
|
|
1063
|
-
storageKey, scoped, className, style, ...props }: ThemeProviderProps): react_jsx_runtime.JSX.Element;
|
|
1063
|
+
declare function ThemeProvider({ children, defaultTheme, theme: controlledTheme, primaryColor: propsPrimaryColor, storageKey, scoped, className, style, ...props }: ThemeProviderProps): react_jsx_runtime.JSX.Element;
|
|
1064
1064
|
declare const useTheme: () => ThemeProviderState;
|
|
1065
1065
|
|
|
1066
1066
|
export { AntVChartLoader, type AntVRendererOptions, type BaseChartProps, type BasicRenderersOptions, COMMON_PROPS, type ChartAxisConfig, type ChartComponent, type ChartLabelConfig, type ChartLegendConfig, type ChartProps, type ChartStrategy, type ColumnChartProps, DefaultEmptyPlaceholder, DefaultErrorPlaceholder, type DualAxesChartProps, type DualAxesChildConfig, type ExtendedRenderersOptions, type FunnelChartProps, type LineChartProps, type PieChartProps, type Theme, ThemeProvider, type XCMLBaseComponent, type XCMLBaseProps, XCMLCardWrapper, XCMLChart, type XCMLComponentSchema, type XCMLContext, XCMLEventBus, XCMLLayoutProvider, XCMLMarkdown, type XCMLPlugin, type XCMLPropertyCategory, type XCMLPropertyDefinition, type XCMLPropertyType, type XCMLProps, type XCMLRenderer, XCML_SCHEMAS, type XTagPluginOptions, buildConfig, chartSchema, cleanPropsBySchema, columnChartSchema, columnStrategy, createAntVRenderers, createBasicRenderers, createExtendedRenderers, createRenderersWithAliases, deepMerge, dualAxesChartSchema, dualAxesStrategy, extractBaseStyles, funnelChartSchema, funnelStrategy, getChartStrategy, getTheme, lineChartSchema, lineStrategy, mergePropsAndBody, normalizeNodeData, normalizeTagName, parseArrayProp, parseInlineData, parseXCML, pieChartSchema, pieStrategy, preprocessXCML, renderXCML, strategies, stringifyToXCML, themeDark, themeLight, themeMap, toXCMLNodeFromElement, toXCMLTag, toXTag, useTheme, useXCMLComponent, useXCMLLayout, useXCMLNode, validateDataSchema, validateXCMLNode, withXCMLCard, xTagPlugin, xcmlBus };
|