@gamecrafters/base-ui 0.0.7 → 0.0.8
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/components/chart/Chart.d.ts +3 -17
- package/build/components/chart/Chart.types.d.ts +107 -51
- package/build/components/chart/ChartContext.d.ts +3 -0
- package/build/components/chart/ChartGradient.d.ts +7 -0
- package/build/components/chart/ChartLegend.d.ts +6 -5
- package/build/components/chart/ChartRadialText.d.ts +7 -0
- package/build/components/chart/ChartTooltip.d.ts +6 -7
- package/build/components/chart/chartPalette.d.ts +13 -0
- package/build/components/chart/index.d.ts +14 -30
- package/build/components/chart/useChart.d.ts +3 -0
- package/build/components/checkbox-card/CheckboxCard.d.ts +14 -0
- package/build/components/checkbox-card/CheckboxCard.types.d.ts +26 -0
- package/build/components/checkbox-card/CheckboxCardContext.d.ts +2 -0
- package/build/components/checkbox-card/CheckboxCardLeadingVisual.d.ts +5 -0
- package/build/components/checkbox-card/index.d.ts +27 -0
- package/build/components/{upload/Upload.d.ts → file-upload/FileUpload.d.ts} +5 -5
- package/build/components/file-upload/FileUpload.types.d.ts +51 -0
- package/build/components/file-upload/FileUploadContext.d.ts +2 -0
- package/build/components/file-upload/FileUploadDescription.d.ts +5 -0
- package/build/components/{upload/UploadItem.d.ts → file-upload/FileUploadItem.d.ts} +1 -1
- package/build/components/file-upload/FileUploadLabel.d.ts +5 -0
- package/build/components/{upload → file-upload}/files.d.ts +2 -2
- package/build/components/{upload → file-upload}/index.d.ts +14 -14
- package/build/components/hover-card/HoverCard.d.ts +7 -0
- package/build/components/hover-card/HoverCard.types.d.ts +33 -0
- package/build/components/hover-card/HoverCardContent.d.ts +5 -0
- package/build/components/hover-card/HoverCardContext.d.ts +2 -0
- package/build/components/hover-card/HoverCardTrigger.d.ts +15 -0
- package/build/components/hover-card/index.d.ts +12 -0
- package/build/components/index.d.ts +12 -1
- package/build/components/list/List.d.ts +10 -0
- package/build/components/list/List.types.d.ts +12 -0
- package/build/components/list/ListItem.d.ts +7 -0
- package/build/components/list/index.d.ts +16 -0
- package/build/components/marquee/Marquee.d.ts +11 -0
- package/build/components/marquee/Marquee.types.d.ts +26 -0
- package/build/components/marquee/index.d.ts +3 -0
- package/build/components/marquee/useMarquee.d.ts +14 -0
- package/build/components/number-input/NumberInput.d.ts +14 -0
- package/build/components/number-input/NumberInput.types.d.ts +14 -0
- package/build/components/number-input/index.d.ts +3 -0
- package/build/components/number-input/numberValue.d.ts +7 -0
- package/build/components/password-input/PasswordInput.d.ts +11 -0
- package/build/components/password-input/PasswordInput.types.d.ts +10 -0
- package/build/components/password-input/index.d.ts +2 -0
- package/build/components/pin-input/PINInput.d.ts +22 -0
- package/build/components/pin-input/PINInput.types.d.ts +21 -0
- package/build/components/pin-input/index.d.ts +2 -0
- package/build/components/qr-code/QRCode.d.ts +21 -0
- package/build/components/qr-code/QRCode.types.d.ts +35 -0
- package/build/components/qr-code/index.d.ts +2 -0
- package/build/components/radio-card/RadioCard.d.ts +14 -0
- package/build/components/radio-card/RadioCard.types.d.ts +26 -0
- package/build/components/radio-card/RadioCardContext.d.ts +2 -0
- package/build/components/radio-card/RadioCardDescription.d.ts +5 -0
- package/build/components/radio-card/RadioCardLabel.d.ts +5 -0
- package/build/components/radio-card/RadioCardLeadingVisual.d.ts +5 -0
- package/build/components/radio-card/index.d.ts +27 -0
- package/build/components/statistic-card/StatisticCard.d.ts +5 -0
- package/build/components/statistic-card/StatisticCard.types.d.ts +26 -0
- package/build/components/statistic-card/StatisticCardContext.d.ts +2 -0
- package/build/components/statistic-card/StatisticCardDescription.d.ts +5 -0
- package/build/components/statistic-card/StatisticCardLabel.d.ts +5 -0
- package/build/components/statistic-card/StatisticCardTrailingVisual.d.ts +5 -0
- package/build/components/statistic-card/StatisticCardTrend.d.ts +8 -0
- package/build/components/statistic-card/StatisticCardValue.d.ts +5 -0
- package/build/components/statistic-card/index.d.ts +29 -0
- package/build/components/steps/Steps.d.ts +10 -0
- package/build/components/steps/Steps.types.d.ts +31 -0
- package/build/components/steps/StepsBody.d.ts +5 -0
- package/build/components/steps/StepsDescription.d.ts +5 -0
- package/build/components/steps/StepsIndicator.d.ts +5 -0
- package/build/components/steps/StepsItem.d.ts +8 -0
- package/build/components/steps/StepsItemContext.d.ts +2 -0
- package/build/components/steps/StepsTitle.d.ts +5 -0
- package/build/components/steps/index.d.ts +35 -0
- package/build/components/steps/useStepsItem.d.ts +2 -0
- package/build/main.cjs.js +2 -2
- package/build/main.esm.js +2 -2
- package/build/styles/main.css +1 -1
- package/package.json +2 -6
- package/build/components/chart/chartScales.d.ts +0 -36
- package/build/components/chart/useChartWidth.d.ts +0 -2
- package/build/components/upload/Upload.types.d.ts +0 -51
- package/build/components/upload/UploadContext.d.ts +0 -2
- /package/build/components/{upload/UploadDescription.d.ts → checkbox-card/CheckboxCardDescription.d.ts} +0 -0
- /package/build/components/{upload/UploadLabel.d.ts → checkbox-card/CheckboxCardLabel.d.ts} +0 -0
- /package/build/components/{upload/UploadIcon.d.ts → file-upload/FileUploadIcon.d.ts} +0 -0
- /package/build/components/{upload/UploadList.d.ts → file-upload/FileUploadList.d.ts} +0 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gamecrafters/base-ui",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.8",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "build/main.cjs.js",
|
|
6
6
|
"module": "build/main.esm.js",
|
|
@@ -71,8 +71,6 @@
|
|
|
71
71
|
"@tailwindcss/postcss": "^4.3.2",
|
|
72
72
|
"@testing-library/jest-dom": "^6.9.1",
|
|
73
73
|
"@testing-library/react": "^16.3.0",
|
|
74
|
-
"@types/d3-scale": "^4.0.9",
|
|
75
|
-
"@types/d3-shape": "^3.1.8",
|
|
76
74
|
"@types/jest": "^30.0.0",
|
|
77
75
|
"@types/jest-axe": "^3.5.9",
|
|
78
76
|
"@types/react-dom": "^19.2.3",
|
|
@@ -116,12 +114,10 @@
|
|
|
116
114
|
"@tanstack/react-virtual": "^3.14.9",
|
|
117
115
|
"class-variance-authority": "^0.7.1",
|
|
118
116
|
"clsx": "^2.1.1",
|
|
119
|
-
"d3-scale": "^4.0.2",
|
|
120
|
-
"d3-shape": "^3.2.0",
|
|
121
117
|
"dayjs": "^1.11.21",
|
|
122
|
-
"echarts": "^6.1.0",
|
|
123
118
|
"lexical": "^0.49.0",
|
|
124
119
|
"react-is": "^19.2.8",
|
|
120
|
+
"recharts": "^3.10.1",
|
|
125
121
|
"shiki": "^4.4.1",
|
|
126
122
|
"tailwind-merge": "^3.6.0"
|
|
127
123
|
}
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import type { ChartDatum, ChartResolvedSeries, ChartType } from "./Chart.types";
|
|
2
|
-
export declare const MAX_BAR_THICKNESS = 24;
|
|
3
|
-
export declare const BAR_RADIUS = 4;
|
|
4
|
-
export declare const MARK_GAP = 2;
|
|
5
|
-
export declare const CHART_PADDING: {
|
|
6
|
-
top: number;
|
|
7
|
-
right: number;
|
|
8
|
-
};
|
|
9
|
-
export declare const readValue: (datum: ChartDatum, key: string) => number | null;
|
|
10
|
-
export declare const readLabel: (datum: ChartDatum, key: string) => string;
|
|
11
|
-
export declare const getStackBounds: (data: ChartDatum[], series: ChartResolvedSeries[], stacked: boolean) => ({
|
|
12
|
-
value: null;
|
|
13
|
-
start: number;
|
|
14
|
-
end: number;
|
|
15
|
-
} | {
|
|
16
|
-
value: number;
|
|
17
|
-
start: number;
|
|
18
|
-
end: number;
|
|
19
|
-
})[][];
|
|
20
|
-
export declare const getValueDomain: (bounds: ReturnType<typeof getStackBounds>, type: ChartType) => [number, number];
|
|
21
|
-
export declare const getValueScale: (domain: [number, number], range: [number, number]) => import("d3-scale").ScaleLinear<number, number, never>;
|
|
22
|
-
export declare const getPointScale: (labels: string[], width: number) => import("d3-scale").ScalePoint<string>;
|
|
23
|
-
export declare const getBandScale: (labels: string[], width: number) => import("d3-scale").ScaleBand<string>;
|
|
24
|
-
export declare const getBarBand: (bandwidth: number, count: number, index: number, grouped: boolean) => {
|
|
25
|
-
offset: number;
|
|
26
|
-
thickness: number;
|
|
27
|
-
};
|
|
28
|
-
export declare const getBarPath: (x: number, y: number, width: number, height: number, end: "top" | "bottom" | "left" | "right") => string;
|
|
29
|
-
type PointReading = {
|
|
30
|
-
x: number;
|
|
31
|
-
value: number | null;
|
|
32
|
-
start: number;
|
|
33
|
-
};
|
|
34
|
-
export declare const getLinePath: (readings: PointReading[], valueScale: (value: number) => number, smooth: boolean) => string;
|
|
35
|
-
export declare const getAreaPath: (readings: PointReading[], valueScale: (value: number) => number, smooth: boolean) => string;
|
|
36
|
-
export {};
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
import type * as React from "react";
|
|
2
|
-
export type UploadSize = "small" | "medium" | "large";
|
|
3
|
-
export type UploadValidationStatus = "error" | "success";
|
|
4
|
-
export type UploadSource = "input" | "drop";
|
|
5
|
-
export type UploadRejectionReason = "type" | "size" | "count";
|
|
6
|
-
export type UploadRejection = {
|
|
7
|
-
file: File;
|
|
8
|
-
reason: UploadRejectionReason;
|
|
9
|
-
};
|
|
10
|
-
export type UploadItemStatus = "pending" | "uploading" | "success" | "error";
|
|
11
|
-
export type UploadProps = Omit<React.ComponentPropsWithoutRef<"div">, "onSelect"> & {
|
|
12
|
-
size?: UploadSize;
|
|
13
|
-
accept?: string;
|
|
14
|
-
multiple?: boolean;
|
|
15
|
-
disabled?: boolean;
|
|
16
|
-
required?: boolean;
|
|
17
|
-
name?: string;
|
|
18
|
-
maxSize?: number;
|
|
19
|
-
validationStatus?: UploadValidationStatus;
|
|
20
|
-
onSelect?: (files: File[], source: UploadSource) => void;
|
|
21
|
-
onReject?: (rejections: UploadRejection[], source: UploadSource) => void;
|
|
22
|
-
className?: string;
|
|
23
|
-
};
|
|
24
|
-
export type UploadIconProps = React.ComponentPropsWithoutRef<"span"> & {
|
|
25
|
-
icon?: React.ElementType;
|
|
26
|
-
className?: string;
|
|
27
|
-
};
|
|
28
|
-
export type UploadLabelProps = React.ComponentPropsWithoutRef<"span"> & {
|
|
29
|
-
className?: string;
|
|
30
|
-
};
|
|
31
|
-
export type UploadDescriptionProps = React.ComponentPropsWithoutRef<"span"> & {
|
|
32
|
-
className?: string;
|
|
33
|
-
};
|
|
34
|
-
export type UploadListProps = React.ComponentPropsWithoutRef<"ul"> & {
|
|
35
|
-
className?: string;
|
|
36
|
-
};
|
|
37
|
-
export type UploadItemProps = React.ComponentPropsWithoutRef<"li"> & {
|
|
38
|
-
name: string;
|
|
39
|
-
fileSize?: number;
|
|
40
|
-
status?: UploadItemStatus;
|
|
41
|
-
progress?: number;
|
|
42
|
-
description?: React.ReactNode;
|
|
43
|
-
icon?: React.ElementType;
|
|
44
|
-
onRemove?: (event: React.MouseEvent<HTMLButtonElement>) => void;
|
|
45
|
-
removeLabel?: string;
|
|
46
|
-
className?: string;
|
|
47
|
-
};
|
|
48
|
-
export type UploadContextValue = {
|
|
49
|
-
labelId?: string;
|
|
50
|
-
descriptionId?: string;
|
|
51
|
-
};
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|