@dalshenekuda/candy-ui 2.0.0 → 2.0.1
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/build/style.css +1 -1
- package/build/ui-kit.js +21 -39
- package/build/ui-kit.js.map +1 -1
- package/package.json +3 -2
- package/types/index.d.ts +0 -1
- package/types/components/Chart/Chart.d.ts +0 -62
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dalshenekuda/candy-ui",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.1",
|
|
4
4
|
"description": "A React UI components library with Tailwind CSS",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./build/ui-kit.js",
|
|
@@ -22,6 +22,7 @@
|
|
|
22
22
|
"tailwind.preset.js"
|
|
23
23
|
],
|
|
24
24
|
"scripts": {
|
|
25
|
+
"all": "concurrently -n build,dev -c blue,green \"npm run build:watch\" \"npm run dev\"",
|
|
25
26
|
"dev": "vite",
|
|
26
27
|
"build": "vite build",
|
|
27
28
|
"preview": "vite preview",
|
|
@@ -77,6 +78,7 @@
|
|
|
77
78
|
"@vitejs/plugin-react": "^6.0.1",
|
|
78
79
|
"@vitest/ui": "^4.0.14",
|
|
79
80
|
"autoprefixer": "^10.4.22",
|
|
81
|
+
"concurrently": "^9.2.1",
|
|
80
82
|
"eslint": "^10.0.2",
|
|
81
83
|
"eslint-config-prettier": "^10.1.0",
|
|
82
84
|
"jsdom": "^27.2.0",
|
|
@@ -105,7 +107,6 @@
|
|
|
105
107
|
"lucide-react": "^1.14.0",
|
|
106
108
|
"react": ">=18.0.0",
|
|
107
109
|
"react-dom": ">=18.0.0",
|
|
108
|
-
"recharts": "^2.15.4",
|
|
109
110
|
"tailwind-merge": "^3.5.0"
|
|
110
111
|
}
|
|
111
112
|
}
|
package/types/index.d.ts
CHANGED
|
@@ -3,6 +3,5 @@ export * from './components/Button/Button';
|
|
|
3
3
|
export * from './components/Badge/Badge';
|
|
4
4
|
export * from './components/Card/Card';
|
|
5
5
|
export * from './components/Dialog/Dialog';
|
|
6
|
-
export * from './components/Chart/Chart';
|
|
7
6
|
/** Alias for Button — consumed by my-account-proxy and other apps as ActionButton */
|
|
8
7
|
export { Button as ActionButton } from './components/Button/Button';
|
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import * as RechartsPrimitive from 'recharts';
|
|
3
|
-
declare const THEMES: {
|
|
4
|
-
readonly light: "";
|
|
5
|
-
readonly dark: ".dark";
|
|
6
|
-
};
|
|
7
|
-
export type ChartConfig = {
|
|
8
|
-
[k in string]: {
|
|
9
|
-
label?: React.ReactNode;
|
|
10
|
-
icon?: React.ComponentType;
|
|
11
|
-
} & ({
|
|
12
|
-
color?: string;
|
|
13
|
-
theme?: never;
|
|
14
|
-
} | {
|
|
15
|
-
color?: never;
|
|
16
|
-
theme: Record<keyof typeof THEMES, string>;
|
|
17
|
-
});
|
|
18
|
-
};
|
|
19
|
-
declare const ChartContainer: React.ForwardRefExoticComponent<Omit<React.ClassAttributes<HTMLDivElement> & React.HTMLAttributes<HTMLDivElement> & {
|
|
20
|
-
config: ChartConfig;
|
|
21
|
-
children: React.ComponentProps<typeof RechartsPrimitive.ResponsiveContainer>["children"];
|
|
22
|
-
}, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
23
|
-
declare const ChartStyle: ({ id, config }: {
|
|
24
|
-
id: string;
|
|
25
|
-
config: ChartConfig;
|
|
26
|
-
}) => import("react/jsx-runtime").JSX.Element | null;
|
|
27
|
-
declare const ChartTooltip: typeof RechartsPrimitive.Tooltip;
|
|
28
|
-
declare const ChartTooltipContent: React.ForwardRefExoticComponent<Omit<RechartsPrimitive.DefaultTooltipContentProps<import('recharts/types/component/DefaultTooltipContent').ValueType, import('recharts/types/component/DefaultTooltipContent').NameType> & {
|
|
29
|
-
accessibilityLayer?: boolean;
|
|
30
|
-
active?: boolean | undefined;
|
|
31
|
-
includeHidden?: boolean | undefined;
|
|
32
|
-
allowEscapeViewBox?: import('recharts/types/util/types').AllowInDimension;
|
|
33
|
-
animationDuration?: import('recharts/types/util/types').AnimationDuration;
|
|
34
|
-
animationEasing?: import('recharts/types/util/types').AnimationTiming;
|
|
35
|
-
content?: import('recharts/types/component/Tooltip').ContentType<import('recharts/types/component/DefaultTooltipContent').ValueType, import('recharts/types/component/DefaultTooltipContent').NameType> | undefined;
|
|
36
|
-
coordinate?: Partial<import('recharts/types/util/types').Coordinate>;
|
|
37
|
-
cursor?: boolean | React.ReactElement | React.SVGProps<SVGElement>;
|
|
38
|
-
filterNull?: boolean;
|
|
39
|
-
defaultIndex?: number;
|
|
40
|
-
isAnimationActive?: boolean;
|
|
41
|
-
offset?: number;
|
|
42
|
-
payloadUniqBy?: import('recharts/types/util/payload/getUniqPayload').UniqueOption<import('recharts/types/component/DefaultTooltipContent').Payload<import('recharts/types/component/DefaultTooltipContent').ValueType, import('recharts/types/component/DefaultTooltipContent').NameType>> | undefined;
|
|
43
|
-
position?: Partial<import('recharts/types/util/types').Coordinate>;
|
|
44
|
-
reverseDirection?: import('recharts/types/util/types').AllowInDimension;
|
|
45
|
-
shared?: boolean;
|
|
46
|
-
trigger?: "hover" | "click";
|
|
47
|
-
useTranslate3d?: boolean;
|
|
48
|
-
viewBox?: import('recharts/types/util/types').CartesianViewBox;
|
|
49
|
-
wrapperStyle?: React.CSSProperties;
|
|
50
|
-
} & React.ClassAttributes<HTMLDivElement> & React.HTMLAttributes<HTMLDivElement> & {
|
|
51
|
-
hideLabel?: boolean;
|
|
52
|
-
hideIndicator?: boolean;
|
|
53
|
-
indicator?: "line" | "dot" | "dashed";
|
|
54
|
-
nameKey?: string;
|
|
55
|
-
labelKey?: string;
|
|
56
|
-
}, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
57
|
-
declare const ChartLegend: typeof RechartsPrimitive.Legend;
|
|
58
|
-
declare const ChartLegendContent: React.ForwardRefExoticComponent<Omit<React.ClassAttributes<HTMLDivElement> & React.HTMLAttributes<HTMLDivElement> & Pick<RechartsPrimitive.LegendProps, "payload" | "verticalAlign"> & {
|
|
59
|
-
hideIcon?: boolean;
|
|
60
|
-
nameKey?: string;
|
|
61
|
-
}, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
62
|
-
export { ChartContainer, ChartTooltip, ChartTooltipContent, ChartLegend, ChartLegendContent, ChartStyle, };
|