@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
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type * as React from "react";
|
|
2
|
+
import type { TextInputSize, TextInputValidationStatus } from "../text-input/TextInput.types";
|
|
3
|
+
export type PINInputType = "numeric" | "alphanumeric";
|
|
4
|
+
export type PINInputProps = Omit<React.ComponentPropsWithoutRef<"div">, "onChange" | "defaultValue"> & {
|
|
5
|
+
length?: number;
|
|
6
|
+
value?: string;
|
|
7
|
+
defaultValue?: string;
|
|
8
|
+
type?: PINInputType;
|
|
9
|
+
mask?: boolean;
|
|
10
|
+
size?: TextInputSize;
|
|
11
|
+
disabled?: boolean;
|
|
12
|
+
readOnly?: boolean;
|
|
13
|
+
required?: boolean;
|
|
14
|
+
validationStatus?: TextInputValidationStatus;
|
|
15
|
+
autoFocus?: boolean;
|
|
16
|
+
autoComplete?: string;
|
|
17
|
+
onChange?: (value: string) => void;
|
|
18
|
+
onComplete?: (value: string) => void;
|
|
19
|
+
boxLabel?: string;
|
|
20
|
+
className?: string;
|
|
21
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import type { ProgressCircleSize, ProgressCircleVariant } from "./ProgressCircle.types";
|
|
3
|
+
declare const _default: <As extends React.ElementType = "span">(props: import("../../utilities/polymorphic").DistributiveOmit<React.ComponentPropsWithRef<React.ElementType extends As ? "span" : As> & {
|
|
4
|
+
progress?: number;
|
|
5
|
+
size?: ProgressCircleSize;
|
|
6
|
+
variant?: ProgressCircleVariant;
|
|
7
|
+
className?: string;
|
|
8
|
+
}, "as"> & {
|
|
9
|
+
as?: As | undefined;
|
|
10
|
+
} & React.RefAttributes<any>) => React.ReactNode;
|
|
11
|
+
export default _default;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type * as React from "react";
|
|
2
|
+
import type { PolymorphicProps } from "../../utilities/polymorphic";
|
|
3
|
+
export type ProgressCircleSize = "small" | "medium" | "large";
|
|
4
|
+
export type ProgressCircleVariant = "accent" | "attention" | "danger" | "done" | "neutral" | "severe" | "sponsors" | "success";
|
|
5
|
+
export type ProgressCircleProps<As extends React.ElementType = "span"> = PolymorphicProps<As, "span", {
|
|
6
|
+
progress?: number;
|
|
7
|
+
size?: ProgressCircleSize;
|
|
8
|
+
variant?: ProgressCircleVariant;
|
|
9
|
+
className?: string;
|
|
10
|
+
}>;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
declare const _default: (props: Omit<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref">, "children"> & {
|
|
3
|
+
value: string;
|
|
4
|
+
size?: number;
|
|
5
|
+
margin?: number;
|
|
6
|
+
ecLevel?: import("../../lib/qr-code").ErrorCorrectionLevel;
|
|
7
|
+
version?: number;
|
|
8
|
+
mode?: import("../../lib/qr-code").EncodingMode;
|
|
9
|
+
mask?: import("./QRCode.types").QRCodeMask;
|
|
10
|
+
dotType?: import("./QRCode.types").QRCodeDotType;
|
|
11
|
+
dotSize?: number;
|
|
12
|
+
corners?: import("./QRCode.types").QRCodeCorners;
|
|
13
|
+
color?: string;
|
|
14
|
+
background?: string;
|
|
15
|
+
logo?: React.ReactNode;
|
|
16
|
+
logoSize?: number;
|
|
17
|
+
label?: string;
|
|
18
|
+
fallback?: React.ReactNode;
|
|
19
|
+
className?: string;
|
|
20
|
+
} & React.RefAttributes<any>) => React.ReactNode;
|
|
21
|
+
export default _default;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import type * as React from "react";
|
|
2
|
+
import type { CornerOptions, DotType } from "../../lib/qr-code/types";
|
|
3
|
+
import type { EncodingMode, ErrorCorrectionLevel, QRCodeOptions } from "../../lib/qr-code/core/types";
|
|
4
|
+
export type QRCodeDotType = DotType;
|
|
5
|
+
export type QRCodeMask = NonNullable<QRCodeOptions["mask"]>;
|
|
6
|
+
export type QRCodeCornerOptions = {
|
|
7
|
+
outerShape?: CornerOptions["outerShape"];
|
|
8
|
+
innerShape?: CornerOptions["innerShape"];
|
|
9
|
+
outerColor?: string;
|
|
10
|
+
innerColor?: string;
|
|
11
|
+
};
|
|
12
|
+
export type QRCodeCorners = {
|
|
13
|
+
topLeft?: QRCodeCornerOptions;
|
|
14
|
+
topRight?: QRCodeCornerOptions;
|
|
15
|
+
bottomLeft?: QRCodeCornerOptions;
|
|
16
|
+
};
|
|
17
|
+
export type QRCodeProps = Omit<React.ComponentPropsWithoutRef<"div">, "children"> & {
|
|
18
|
+
value: string;
|
|
19
|
+
size?: number;
|
|
20
|
+
margin?: number;
|
|
21
|
+
ecLevel?: ErrorCorrectionLevel;
|
|
22
|
+
version?: number;
|
|
23
|
+
mode?: EncodingMode;
|
|
24
|
+
mask?: QRCodeMask;
|
|
25
|
+
dotType?: QRCodeDotType;
|
|
26
|
+
dotSize?: number;
|
|
27
|
+
corners?: QRCodeCorners;
|
|
28
|
+
color?: string;
|
|
29
|
+
background?: string;
|
|
30
|
+
logo?: React.ReactNode;
|
|
31
|
+
logoSize?: number;
|
|
32
|
+
label?: string;
|
|
33
|
+
fallback?: React.ReactNode;
|
|
34
|
+
className?: string;
|
|
35
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import type { RadioCardValidationStatus } from "./RadioCard.types";
|
|
3
|
+
declare const _default: (props: Omit<Omit<React.DetailedHTMLProps<React.LabelHTMLAttributes<HTMLLabelElement>, HTMLLabelElement>, "ref">, "onChange"> & {
|
|
4
|
+
value: string;
|
|
5
|
+
name?: string;
|
|
6
|
+
checked?: boolean;
|
|
7
|
+
defaultChecked?: boolean;
|
|
8
|
+
disabled?: boolean;
|
|
9
|
+
required?: boolean;
|
|
10
|
+
validationStatus?: RadioCardValidationStatus;
|
|
11
|
+
onChange?: React.ChangeEventHandler<HTMLInputElement>;
|
|
12
|
+
className?: string;
|
|
13
|
+
} & React.RefAttributes<any>) => React.ReactNode;
|
|
14
|
+
export default _default;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import type * as React from "react";
|
|
2
|
+
export type RadioCardValidationStatus = "error" | "success";
|
|
3
|
+
export type RadioCardProps = Omit<React.ComponentPropsWithoutRef<"label">, "onChange"> & {
|
|
4
|
+
value: string;
|
|
5
|
+
name?: string;
|
|
6
|
+
checked?: boolean;
|
|
7
|
+
defaultChecked?: boolean;
|
|
8
|
+
disabled?: boolean;
|
|
9
|
+
required?: boolean;
|
|
10
|
+
validationStatus?: RadioCardValidationStatus;
|
|
11
|
+
onChange?: React.ChangeEventHandler<HTMLInputElement>;
|
|
12
|
+
className?: string;
|
|
13
|
+
};
|
|
14
|
+
export type RadioCardLabelProps = React.ComponentPropsWithoutRef<"span"> & {
|
|
15
|
+
className?: string;
|
|
16
|
+
};
|
|
17
|
+
export type RadioCardDescriptionProps = React.ComponentPropsWithoutRef<"span"> & {
|
|
18
|
+
className?: string;
|
|
19
|
+
};
|
|
20
|
+
export type RadioCardLeadingVisualProps = React.ComponentPropsWithoutRef<"span"> & {
|
|
21
|
+
className?: string;
|
|
22
|
+
};
|
|
23
|
+
export type RadioCardContextValue = {
|
|
24
|
+
labelId?: string;
|
|
25
|
+
descriptionId?: string;
|
|
26
|
+
};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import RadioCardDescription from "./RadioCardDescription";
|
|
2
|
+
import RadioCardLabel from "./RadioCardLabel";
|
|
3
|
+
import RadioCardLeadingVisual from "./RadioCardLeadingVisual";
|
|
4
|
+
export declare const RadioCard: ((props: Omit<Omit<import("react").DetailedHTMLProps<import("react").LabelHTMLAttributes<HTMLLabelElement>, HTMLLabelElement>, "ref">, "onChange"> & {
|
|
5
|
+
value: string;
|
|
6
|
+
name?: string;
|
|
7
|
+
checked?: boolean;
|
|
8
|
+
defaultChecked?: boolean;
|
|
9
|
+
disabled?: boolean;
|
|
10
|
+
required?: boolean;
|
|
11
|
+
validationStatus?: import("./RadioCard.types").RadioCardValidationStatus;
|
|
12
|
+
onChange?: React.ChangeEventHandler<HTMLInputElement>;
|
|
13
|
+
className?: string;
|
|
14
|
+
} & import("react").RefAttributes<any>) => React.ReactNode) & {
|
|
15
|
+
LeadingVisual: (props: Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref"> & {
|
|
16
|
+
className?: string;
|
|
17
|
+
} & import("react").RefAttributes<any>) => React.ReactNode;
|
|
18
|
+
Label: (props: Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref"> & {
|
|
19
|
+
className?: string;
|
|
20
|
+
} & import("react").RefAttributes<any>) => React.ReactNode;
|
|
21
|
+
Description: (props: Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref"> & {
|
|
22
|
+
className?: string;
|
|
23
|
+
} & import("react").RefAttributes<any>) => React.ReactNode;
|
|
24
|
+
};
|
|
25
|
+
export { RadioCardLeadingVisual, RadioCardLabel, RadioCardDescription };
|
|
26
|
+
export { RadioCardContext } from "./RadioCardContext";
|
|
27
|
+
export * from "./RadioCard.types";
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import type { RatingSize } from "./Rating.types";
|
|
3
|
+
export declare const DEFAULT_RATING_COUNT = 5;
|
|
4
|
+
declare const _default: (props: Omit<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref">, "onChange" | "defaultValue"> & {
|
|
5
|
+
count?: number;
|
|
6
|
+
value?: number;
|
|
7
|
+
defaultValue?: number;
|
|
8
|
+
size?: RatingSize;
|
|
9
|
+
readOnly?: boolean;
|
|
10
|
+
disabled?: boolean;
|
|
11
|
+
clearable?: boolean;
|
|
12
|
+
name?: string;
|
|
13
|
+
onChange?: (value: number) => void;
|
|
14
|
+
itemLabel?: (value: number, count: number) => string;
|
|
15
|
+
valueLabel?: (value: number, count: number) => string;
|
|
16
|
+
className?: string;
|
|
17
|
+
} & React.RefAttributes<any>) => React.ReactNode;
|
|
18
|
+
export default _default;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type * as React from "react";
|
|
2
|
+
export type RatingSize = "small" | "medium" | "large";
|
|
3
|
+
export type RatingProps = Omit<React.ComponentPropsWithoutRef<"span">, "onChange" | "defaultValue"> & {
|
|
4
|
+
count?: number;
|
|
5
|
+
value?: number;
|
|
6
|
+
defaultValue?: number;
|
|
7
|
+
size?: RatingSize;
|
|
8
|
+
readOnly?: boolean;
|
|
9
|
+
disabled?: boolean;
|
|
10
|
+
clearable?: boolean;
|
|
11
|
+
name?: string;
|
|
12
|
+
onChange?: (value: number) => void;
|
|
13
|
+
itemLabel?: (value: number, count: number) => string;
|
|
14
|
+
valueLabel?: (value: number, count: number) => string;
|
|
15
|
+
className?: string;
|
|
16
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import type { LexicalEditor } from "lexical";
|
|
3
|
+
declare const _default: (props: Omit<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref">, "onChange"> & {
|
|
4
|
+
defaultValue?: import("@lexical/react/LexicalComposer").InitialEditorStateType;
|
|
5
|
+
onChange?: (editorState: import("lexical").EditorState, editor: LexicalEditor) => void;
|
|
6
|
+
placeholder?: string;
|
|
7
|
+
readOnly?: boolean;
|
|
8
|
+
nodes?: readonly (import("lexical").Klass<import("lexical").LexicalNode> | import("lexical").LexicalNodeReplacement)[];
|
|
9
|
+
namespace?: string;
|
|
10
|
+
onError?: (error: Error, editor: LexicalEditor) => void;
|
|
11
|
+
minHeight?: number;
|
|
12
|
+
maxHeight?: number;
|
|
13
|
+
className?: string;
|
|
14
|
+
} & React.RefAttributes<any>) => React.ReactNode;
|
|
15
|
+
export default _default;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import type * as React from "react";
|
|
2
|
+
import type { InitialEditorStateType } from "@lexical/react/LexicalComposer";
|
|
3
|
+
import type { EditorState, Klass, LexicalEditor, LexicalNode, LexicalNodeReplacement } from "lexical";
|
|
4
|
+
export type RichTextEditorControl = "history" | "inline" | "block" | "list" | "link";
|
|
5
|
+
export type RichTextEditorBlockType = "paragraph" | "h1" | "h2" | "h3" | "quote" | "bullet" | "number";
|
|
6
|
+
export type RichTextEditorTextFormat = "bold" | "italic" | "underline" | "strikethrough" | "code";
|
|
7
|
+
export type RichTextEditorProps = Omit<React.ComponentPropsWithoutRef<"div">, "onChange"> & {
|
|
8
|
+
defaultValue?: InitialEditorStateType;
|
|
9
|
+
onChange?: (editorState: EditorState, editor: LexicalEditor) => void;
|
|
10
|
+
placeholder?: string;
|
|
11
|
+
readOnly?: boolean;
|
|
12
|
+
nodes?: readonly (Klass<LexicalNode> | LexicalNodeReplacement)[];
|
|
13
|
+
namespace?: string;
|
|
14
|
+
onError?: (error: Error, editor: LexicalEditor) => void;
|
|
15
|
+
minHeight?: number;
|
|
16
|
+
maxHeight?: number;
|
|
17
|
+
className?: string;
|
|
18
|
+
};
|
|
19
|
+
export type RichTextEditorToolbarProps = React.ComponentPropsWithoutRef<"div"> & {
|
|
20
|
+
controls?: readonly RichTextEditorControl[];
|
|
21
|
+
children?: React.ReactNode;
|
|
22
|
+
"aria-label"?: string;
|
|
23
|
+
className?: string;
|
|
24
|
+
};
|
|
25
|
+
export type RichTextEditorContentProps = Omit<React.ComponentPropsWithoutRef<"div">, "children" | "placeholder" | "aria-placeholder"> & {
|
|
26
|
+
className?: string;
|
|
27
|
+
};
|
|
28
|
+
export type RichTextEditorContextValue = {
|
|
29
|
+
readOnly?: boolean;
|
|
30
|
+
placeholder?: string;
|
|
31
|
+
minHeight?: number;
|
|
32
|
+
maxHeight?: number;
|
|
33
|
+
ariaLabel?: string;
|
|
34
|
+
ariaLabelledBy?: string;
|
|
35
|
+
ariaDescribedBy?: string;
|
|
36
|
+
};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
declare const _default: (props: Omit<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref">, "aria-placeholder" | "children" | "placeholder"> & {
|
|
3
|
+
className?: string;
|
|
4
|
+
} & React.RefAttributes<any>) => React.ReactNode;
|
|
5
|
+
export default _default;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import type { RichTextEditorControl, RichTextEditorToolbarProps } from "./RichTextEditor.types";
|
|
3
|
+
export declare const DEFAULT_RICH_TEXT_EDITOR_CONTROLS: readonly RichTextEditorControl[];
|
|
4
|
+
declare function RichTextEditorToolbar(props: RichTextEditorToolbarProps): React.JSX.Element;
|
|
5
|
+
declare namespace RichTextEditorToolbar {
|
|
6
|
+
var displayName: string;
|
|
7
|
+
}
|
|
8
|
+
export default RichTextEditorToolbar;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import RichTextEditorContent from "./RichTextEditorContent";
|
|
2
|
+
import RichTextEditorToolbar from "./RichTextEditorToolbar";
|
|
3
|
+
export declare const RichTextEditor: ((props: Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref">, "onChange"> & {
|
|
4
|
+
defaultValue?: import("@lexical/react/LexicalComposer").InitialEditorStateType;
|
|
5
|
+
onChange?: (editorState: import("lexical").EditorState, editor: import("lexical").LexicalEditor) => void;
|
|
6
|
+
placeholder?: string;
|
|
7
|
+
readOnly?: boolean;
|
|
8
|
+
nodes?: readonly (import("lexical").Klass<import("lexical").LexicalNode> | import("lexical").LexicalNodeReplacement)[];
|
|
9
|
+
namespace?: string;
|
|
10
|
+
onError?: (error: Error, editor: import("lexical").LexicalEditor) => void;
|
|
11
|
+
minHeight?: number;
|
|
12
|
+
maxHeight?: number;
|
|
13
|
+
className?: string;
|
|
14
|
+
} & import("react").RefAttributes<any>) => React.ReactNode) & {
|
|
15
|
+
Toolbar: typeof RichTextEditorToolbar;
|
|
16
|
+
Content: (props: Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref">, "aria-placeholder" | "children" | "placeholder"> & {
|
|
17
|
+
className?: string;
|
|
18
|
+
} & import("react").RefAttributes<any>) => React.ReactNode;
|
|
19
|
+
};
|
|
20
|
+
export { RichTextEditorToolbar, RichTextEditorContent };
|
|
21
|
+
export { DEFAULT_RICH_TEXT_EDITOR_CONTROLS } from "./RichTextEditorToolbar";
|
|
22
|
+
export { DEFAULT_RICH_TEXT_EDITOR_NAMESPACE, RICH_TEXT_EDITOR_NODES, richTextEditorTheme, } from "./richTextEditorTheme";
|
|
23
|
+
export * from "./RichTextEditor.types";
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { EditorThemeClasses, Klass, LexicalNode } from "lexical";
|
|
2
|
+
export declare const DEFAULT_RICH_TEXT_EDITOR_NAMESPACE = "RichTextEditor";
|
|
3
|
+
export declare const RICH_TEXT_EDITOR_NODES: readonly Klass<LexicalNode>[];
|
|
4
|
+
export declare const richTextEditorTheme: EditorThemeClasses;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import type * as React from "react";
|
|
2
|
+
export type StatisticCardTrendDirection = "increase" | "decrease" | "neutral";
|
|
3
|
+
export type StatisticCardTrendSentiment = "positive" | "negative" | "neutral";
|
|
4
|
+
export type StatisticCardProps = React.ComponentPropsWithoutRef<"div"> & {
|
|
5
|
+
className?: string;
|
|
6
|
+
};
|
|
7
|
+
export type StatisticCardLabelProps = React.ComponentPropsWithoutRef<"span"> & {
|
|
8
|
+
className?: string;
|
|
9
|
+
};
|
|
10
|
+
export type StatisticCardValueProps = React.ComponentPropsWithoutRef<"span"> & {
|
|
11
|
+
className?: string;
|
|
12
|
+
};
|
|
13
|
+
export type StatisticCardTrendProps = React.ComponentPropsWithoutRef<"span"> & {
|
|
14
|
+
direction: StatisticCardTrendDirection;
|
|
15
|
+
sentiment?: StatisticCardTrendSentiment;
|
|
16
|
+
className?: string;
|
|
17
|
+
};
|
|
18
|
+
export type StatisticCardDescriptionProps = React.ComponentPropsWithoutRef<"span"> & {
|
|
19
|
+
className?: string;
|
|
20
|
+
};
|
|
21
|
+
export type StatisticCardTrailingVisualProps = React.ComponentPropsWithoutRef<"span"> & {
|
|
22
|
+
className?: string;
|
|
23
|
+
};
|
|
24
|
+
export type StatisticCardContextValue = {
|
|
25
|
+
labelId?: string;
|
|
26
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import type { StatisticCardTrendDirection, StatisticCardTrendSentiment } from "./StatisticCard.types";
|
|
3
|
+
declare const _default: (props: Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref"> & {
|
|
4
|
+
direction: StatisticCardTrendDirection;
|
|
5
|
+
sentiment?: StatisticCardTrendSentiment;
|
|
6
|
+
className?: string;
|
|
7
|
+
} & React.RefAttributes<any>) => React.ReactNode;
|
|
8
|
+
export default _default;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import StatisticCardDescription from "./StatisticCardDescription";
|
|
2
|
+
import StatisticCardLabel from "./StatisticCardLabel";
|
|
3
|
+
import StatisticCardTrailingVisual from "./StatisticCardTrailingVisual";
|
|
4
|
+
import StatisticCardTrend from "./StatisticCardTrend";
|
|
5
|
+
import StatisticCardValue from "./StatisticCardValue";
|
|
6
|
+
export declare const StatisticCard: ((props: Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
7
|
+
className?: string;
|
|
8
|
+
} & import("react").RefAttributes<any>) => React.ReactNode) & {
|
|
9
|
+
Label: (props: Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref"> & {
|
|
10
|
+
className?: string;
|
|
11
|
+
} & import("react").RefAttributes<any>) => React.ReactNode;
|
|
12
|
+
Value: (props: Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref"> & {
|
|
13
|
+
className?: string;
|
|
14
|
+
} & import("react").RefAttributes<any>) => React.ReactNode;
|
|
15
|
+
Trend: (props: Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref"> & {
|
|
16
|
+
direction: import("./StatisticCard.types").StatisticCardTrendDirection;
|
|
17
|
+
sentiment?: import("./StatisticCard.types").StatisticCardTrendSentiment;
|
|
18
|
+
className?: string;
|
|
19
|
+
} & import("react").RefAttributes<any>) => React.ReactNode;
|
|
20
|
+
Description: (props: Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref"> & {
|
|
21
|
+
className?: string;
|
|
22
|
+
} & import("react").RefAttributes<any>) => React.ReactNode;
|
|
23
|
+
TrailingVisual: (props: Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref"> & {
|
|
24
|
+
className?: string;
|
|
25
|
+
} & import("react").RefAttributes<any>) => React.ReactNode;
|
|
26
|
+
};
|
|
27
|
+
export { StatisticCardLabel, StatisticCardValue, StatisticCardTrend, StatisticCardDescription, StatisticCardTrailingVisual, };
|
|
28
|
+
export { StatisticCardContext } from "./StatisticCardContext";
|
|
29
|
+
export * from "./StatisticCard.types";
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import type { StatusSize, StatusVariant } from "./Status.types";
|
|
3
|
+
declare const _default: <As extends React.ElementType = "span">(props: import("../../utilities/polymorphic").DistributiveOmit<React.ComponentPropsWithRef<React.ElementType extends As ? "span" : As> & {
|
|
4
|
+
variant?: StatusVariant;
|
|
5
|
+
size?: StatusSize;
|
|
6
|
+
srText?: string;
|
|
7
|
+
className?: string;
|
|
8
|
+
}, "as"> & {
|
|
9
|
+
as?: As | undefined;
|
|
10
|
+
} & React.RefAttributes<any>) => React.ReactNode;
|
|
11
|
+
export default _default;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type * as React from "react";
|
|
2
|
+
import type { PolymorphicProps } from "../../utilities/polymorphic";
|
|
3
|
+
export type StatusVariant = "accent" | "success" | "attention" | "severe" | "danger" | "done" | "neutral";
|
|
4
|
+
export type StatusSize = "small" | "medium" | "large";
|
|
5
|
+
export type StatusProps<As extends React.ElementType = "span"> = PolymorphicProps<As, "span", {
|
|
6
|
+
variant?: StatusVariant;
|
|
7
|
+
size?: StatusSize;
|
|
8
|
+
srText?: string;
|
|
9
|
+
className?: string;
|
|
10
|
+
}>;
|
|
11
|
+
export type StatusIndicatorProps = React.ComponentPropsWithoutRef<"span"> & {
|
|
12
|
+
variant?: StatusVariant;
|
|
13
|
+
size?: StatusSize;
|
|
14
|
+
className?: string;
|
|
15
|
+
};
|
|
16
|
+
export type StatusContextValue = {
|
|
17
|
+
variant?: StatusVariant;
|
|
18
|
+
size?: StatusSize;
|
|
19
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import type { StatusSize, StatusVariant } from "./Status.types";
|
|
3
|
+
declare const _default: (props: Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref"> & {
|
|
4
|
+
variant?: StatusVariant;
|
|
5
|
+
size?: StatusSize;
|
|
6
|
+
className?: string;
|
|
7
|
+
} & React.RefAttributes<any>) => React.ReactNode;
|
|
8
|
+
export default _default;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import StatusIndicator from "./StatusIndicator";
|
|
2
|
+
export declare const Status: (<As extends React.ElementType = "span">(props: import("../../utilities/polymorphic").DistributiveOmit<import("react").ComponentPropsWithRef<import("react").ElementType extends As ? "span" : As> & {
|
|
3
|
+
variant?: import("./Status.types").StatusVariant;
|
|
4
|
+
size?: import("./Status.types").StatusSize;
|
|
5
|
+
srText?: string;
|
|
6
|
+
className?: string;
|
|
7
|
+
}, "as"> & {
|
|
8
|
+
as?: As | undefined;
|
|
9
|
+
} & import("react").RefAttributes<any>) => React.ReactNode) & {
|
|
10
|
+
Indicator: (props: Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref"> & {
|
|
11
|
+
variant?: import("./Status.types").StatusVariant;
|
|
12
|
+
size?: import("./Status.types").StatusSize;
|
|
13
|
+
className?: string;
|
|
14
|
+
} & import("react").RefAttributes<any>) => React.ReactNode;
|
|
15
|
+
};
|
|
16
|
+
export { StatusIndicator };
|
|
17
|
+
export * from "./Status.types";
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import type { StepsOrientation, StepsSize } from "./Steps.types";
|
|
3
|
+
export declare const DEFAULT_CURRENT_STEP = 1;
|
|
4
|
+
declare const _default: (props: Omit<Omit<React.DetailedHTMLProps<React.OlHTMLAttributes<HTMLOListElement>, HTMLOListElement>, "ref">, "role"> & {
|
|
5
|
+
currentStep?: number;
|
|
6
|
+
orientation?: StepsOrientation;
|
|
7
|
+
size?: StepsSize;
|
|
8
|
+
className?: string;
|
|
9
|
+
} & React.RefAttributes<any>) => React.ReactNode;
|
|
10
|
+
export default _default;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import type * as React from "react";
|
|
2
|
+
export type StepStatus = "complete" | "current" | "incomplete";
|
|
3
|
+
export type StepsOrientation = "horizontal" | "vertical";
|
|
4
|
+
export type StepsSize = "small" | "medium";
|
|
5
|
+
export type StepsProps = Omit<React.ComponentPropsWithoutRef<"ol">, "role"> & {
|
|
6
|
+
currentStep?: number;
|
|
7
|
+
orientation?: StepsOrientation;
|
|
8
|
+
size?: StepsSize;
|
|
9
|
+
className?: string;
|
|
10
|
+
};
|
|
11
|
+
export type StepsItemProps = React.ComponentPropsWithoutRef<"li"> & {
|
|
12
|
+
status?: StepStatus;
|
|
13
|
+
statusLabel?: string;
|
|
14
|
+
className?: string;
|
|
15
|
+
};
|
|
16
|
+
export type StepsIndicatorProps = React.ComponentPropsWithoutRef<"span"> & {
|
|
17
|
+
className?: string;
|
|
18
|
+
};
|
|
19
|
+
export type StepsBodyProps = React.ComponentPropsWithoutRef<"div"> & {
|
|
20
|
+
className?: string;
|
|
21
|
+
};
|
|
22
|
+
export type StepsTitleProps = React.ComponentPropsWithoutRef<"span"> & {
|
|
23
|
+
className?: string;
|
|
24
|
+
};
|
|
25
|
+
export type StepsDescriptionProps = React.ComponentPropsWithoutRef<"span"> & {
|
|
26
|
+
className?: string;
|
|
27
|
+
};
|
|
28
|
+
export type StepsItemContextValue = {
|
|
29
|
+
index: number;
|
|
30
|
+
status: StepStatus;
|
|
31
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import type { StepStatus } from "./Steps.types";
|
|
3
|
+
declare const _default: (props: Omit<React.DetailedHTMLProps<React.LiHTMLAttributes<HTMLLIElement>, HTMLLIElement>, "ref"> & {
|
|
4
|
+
status?: StepStatus;
|
|
5
|
+
statusLabel?: string;
|
|
6
|
+
className?: string;
|
|
7
|
+
} & React.RefAttributes<any>) => React.ReactNode;
|
|
8
|
+
export default _default;
|