@gamecrafters/base-ui 0.0.6 → 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/code/Code.d.ts +7 -0
- package/build/components/code/Code.types.d.ts +5 -0
- package/build/components/code/index.d.ts +2 -0
- package/build/components/code-block/CodeBlock.d.ts +12 -0
- package/build/components/code-block/CodeBlock.types.d.ts +40 -0
- package/build/components/code-block/CodeBlockCode.d.ts +7 -0
- package/build/components/code-block/CodeBlockContent.d.ts +7 -0
- package/build/components/code-block/CodeBlockContext.d.ts +2 -0
- package/build/components/code-block/CodeBlockHeader.d.ts +7 -0
- package/build/components/code-block/CodeBlockTitle.d.ts +7 -0
- package/build/components/code-block/highlightCode.d.ts +12 -0
- package/build/components/code-block/index.d.ts +38 -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/highlight/Highlight.d.ts +11 -0
- package/build/components/highlight/Highlight.types.d.ts +15 -0
- package/build/components/highlight/highlightMatches.d.ts +2 -0
- package/build/components/highlight/index.d.ts +3 -0
- 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 +21 -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/mark/Mark.d.ts +11 -0
- package/build/components/mark/Mark.types.d.ts +11 -0
- package/build/components/mark/index.d.ts +2 -0
- package/build/components/markdown/Markdown.d.ts +10 -0
- package/build/components/markdown/Markdown.types.d.ts +17 -0
- package/build/components/markdown/MarkdownProse.d.ts +8 -0
- package/build/components/markdown/index.d.ts +3 -0
- package/build/components/markdown/markdownTheme.d.ts +6 -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/progress-circle/ProgressCircle.d.ts +11 -0
- package/build/components/progress-circle/ProgressCircle.types.d.ts +10 -0
- package/build/components/progress-circle/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/rating/Rating.d.ts +18 -0
- package/build/components/rating/Rating.types.d.ts +16 -0
- package/build/components/rating/index.d.ts +2 -0
- package/build/components/rich-text-editor/RichTextEditor.d.ts +15 -0
- package/build/components/rich-text-editor/RichTextEditor.types.d.ts +36 -0
- package/build/components/rich-text-editor/RichTextEditorContent.d.ts +5 -0
- package/build/components/rich-text-editor/RichTextEditorContext.d.ts +2 -0
- package/build/components/rich-text-editor/RichTextEditorToolbar.d.ts +8 -0
- package/build/components/rich-text-editor/index.d.ts +23 -0
- package/build/components/rich-text-editor/richTextEditorTheme.d.ts +4 -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/status/Status.d.ts +11 -0
- package/build/components/status/Status.types.d.ts +19 -0
- package/build/components/status/StatusContext.d.ts +2 -0
- package/build/components/status/StatusIndicator.d.ts +8 -0
- package/build/components/status/index.d.ts +17 -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/hooks/useSlots.d.ts +1 -4
- package/build/lib/qr-code/core/data.d.ts +13 -0
- package/build/lib/qr-code/core/errors.d.ts +12 -0
- package/build/lib/qr-code/core/format.d.ts +12 -0
- package/build/lib/qr-code/core/index.d.ts +16 -0
- package/build/lib/qr-code/core/mask.d.ts +19 -0
- package/build/lib/qr-code/core/matrix.d.ts +17 -0
- package/build/lib/qr-code/core/micro.d.ts +16 -0
- package/build/lib/qr-code/core/mode.d.ts +31 -0
- package/build/lib/qr-code/core/reed-solomon.d.ts +13 -0
- package/build/lib/qr-code/core/segment.d.ts +8 -0
- package/build/lib/qr-code/core/tables.d.ts +49 -0
- package/build/lib/qr-code/core/types.d.ts +36 -0
- package/build/lib/qr-code/core/version.d.ts +18 -0
- package/build/lib/qr-code/index.d.ts +17 -0
- package/build/lib/qr-code/types/index.d.ts +65 -0
- package/build/lib/qr-code/utilities/adler32.d.ts +4 -0
- package/build/lib/qr-code/utilities/common.d.ts +2 -0
- package/build/lib/qr-code/utilities/crc32.d.ts +4 -0
- package/build/lib/qr-code/utilities/data-uri.d.ts +6 -0
- package/build/lib/qr-code/utilities/deflate.d.ts +6 -0
- package/build/lib/qr-code/utilities/gradient.d.ts +10 -0
- package/build/lib/qr-code/utilities/ico.d.ts +4 -0
- package/build/lib/qr-code/utilities/logo.d.ts +9 -0
- package/build/lib/qr-code/utilities/png-encoder.d.ts +5 -0
- package/build/lib/qr-code/utilities/shapes.d.ts +7 -0
- package/build/lib/qr-code/utilities/svg.d.ts +5 -0
- package/build/lib/qr-code/utilities/text.d.ts +11 -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 +12 -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",
|
|
@@ -104,15 +102,23 @@
|
|
|
104
102
|
},
|
|
105
103
|
"dependencies": {
|
|
106
104
|
"@gamecrafters/base-ui-icons": "^0.0.7",
|
|
105
|
+
"@lexical/code-core": "^0.49.0",
|
|
106
|
+
"@lexical/link": "^0.49.0",
|
|
107
|
+
"@lexical/list": "^0.49.0",
|
|
108
|
+
"@lexical/markdown": "^0.49.0",
|
|
109
|
+
"@lexical/react": "^0.49.0",
|
|
110
|
+
"@lexical/rich-text": "^0.49.0",
|
|
111
|
+
"@lexical/selection": "^0.49.0",
|
|
112
|
+
"@lexical/utils": "^0.49.0",
|
|
107
113
|
"@oddbird/popover-polyfill": "^0.7.1",
|
|
108
114
|
"@tanstack/react-virtual": "^3.14.9",
|
|
109
115
|
"class-variance-authority": "^0.7.1",
|
|
110
116
|
"clsx": "^2.1.1",
|
|
111
|
-
"d3-scale": "^4.0.2",
|
|
112
|
-
"d3-shape": "^3.2.0",
|
|
113
117
|
"dayjs": "^1.11.21",
|
|
114
|
-
"
|
|
118
|
+
"lexical": "^0.49.0",
|
|
115
119
|
"react-is": "^19.2.8",
|
|
120
|
+
"recharts": "^3.10.1",
|
|
121
|
+
"shiki": "^4.4.1",
|
|
116
122
|
"tailwind-merge": "^3.6.0"
|
|
117
123
|
}
|
|
118
124
|
}
|
|
@@ -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
|