@gamecrafters/base-ui 0.0.4 → 0.0.6
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/blockquote/Blockquote.d.ts +10 -0
- package/build/components/blockquote/Blockquote.types.d.ts +9 -0
- package/build/components/blockquote/index.d.ts +2 -0
- package/build/components/data-table/tableLayout.d.ts +1 -1
- package/build/components/em/Em.d.ts +10 -0
- package/build/components/em/Em.types.d.ts +9 -0
- package/build/components/em/index.d.ts +2 -0
- package/build/components/image/Image.d.ts +11 -0
- package/build/components/image/Image.types.d.ts +10 -0
- package/build/components/image/index.d.ts +2 -0
- package/build/components/index.d.ts +3 -0
- package/build/components/select/Select.d.ts +1 -1
- package/build/components/select/index.d.ts +1 -1
- package/build/components/slider/Slider.d.ts +1 -1
- package/build/main.cjs.js +2 -2
- package/build/main.esm.js +2 -2
- package/build/styles/main.css +1 -1
- package/build/utilities/classnames.d.ts +1 -0
- package/package.json +2 -1
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import type { BlockquoteSize, BlockquoteVariant } from "./Blockquote.types";
|
|
3
|
+
declare const _default: <As extends React.ElementType = "blockquote">(props: import("../../utilities/polymorphic").DistributiveOmit<React.ComponentPropsWithRef<React.ElementType extends As ? "blockquote" : As> & {
|
|
4
|
+
size?: BlockquoteSize;
|
|
5
|
+
variant?: BlockquoteVariant;
|
|
6
|
+
className?: string;
|
|
7
|
+
}, "as"> & {
|
|
8
|
+
as?: As | undefined;
|
|
9
|
+
} & React.RefAttributes<any>) => React.ReactNode;
|
|
10
|
+
export default _default;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type * as React from "react";
|
|
2
|
+
import type { PolymorphicProps } from "../../utilities/polymorphic";
|
|
3
|
+
export type BlockquoteSize = "large" | "medium" | "small";
|
|
4
|
+
export type BlockquoteVariant = "subtle" | "default" | "emphasis";
|
|
5
|
+
export type BlockquoteProps<As extends React.ElementType = "blockquote"> = PolymorphicProps<As, "blockquote", {
|
|
6
|
+
size?: BlockquoteSize;
|
|
7
|
+
variant?: BlockquoteVariant;
|
|
8
|
+
className?: string;
|
|
9
|
+
}>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type { Column, UniqueRow } from "./DataTable.types";
|
|
2
|
-
export declare const SUBGRID_CLASSES
|
|
2
|
+
export declare const SUBGRID_CLASSES = "data-table-subgrid";
|
|
3
3
|
export declare const getGridTemplateFromColumns: <Data extends UniqueRow>(columns: Column<Data>[]) => string[];
|
|
4
4
|
export declare const getGridTemplate: <Data extends UniqueRow>(columns: Column<Data>[]) => string;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import type { EmSize, EmWeight } from "./Em.types";
|
|
3
|
+
declare const _default: <As extends React.ElementType = "em">(props: import("../../utilities/polymorphic").DistributiveOmit<React.ComponentPropsWithRef<React.ElementType extends As ? "em" : As> & {
|
|
4
|
+
size?: EmSize;
|
|
5
|
+
weight?: EmWeight;
|
|
6
|
+
className?: string;
|
|
7
|
+
}, "as"> & {
|
|
8
|
+
as?: As | undefined;
|
|
9
|
+
} & React.RefAttributes<any>) => React.ReactNode;
|
|
10
|
+
export default _default;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type * as React from "react";
|
|
2
|
+
import type { PolymorphicProps } from "../../utilities/polymorphic";
|
|
3
|
+
export type EmSize = "large" | "medium" | "small";
|
|
4
|
+
export type EmWeight = "light" | "normal" | "medium" | "semibold";
|
|
5
|
+
export type EmProps<As extends React.ElementType = "em"> = PolymorphicProps<As, "em", {
|
|
6
|
+
size?: EmSize;
|
|
7
|
+
weight?: EmWeight;
|
|
8
|
+
className?: string;
|
|
9
|
+
}>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import type { ImageBorderRadius, ImageFit } from "./Image.types";
|
|
3
|
+
declare const _default: <As extends React.ElementType = "img">(props: import("../../utilities/polymorphic").DistributiveOmit<React.ComponentPropsWithRef<React.ElementType extends As ? "img" : As> & {
|
|
4
|
+
fit?: ImageFit;
|
|
5
|
+
borderRadius?: ImageBorderRadius;
|
|
6
|
+
fallbackSrc?: string;
|
|
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 ImageFit = "contain" | "cover" | "fill" | "none" | "scale-down";
|
|
4
|
+
export type ImageBorderRadius = "none" | "small" | "medium" | "large" | "full";
|
|
5
|
+
export type ImageProps<As extends React.ElementType = "img"> = PolymorphicProps<As, "img", {
|
|
6
|
+
fit?: ImageFit;
|
|
7
|
+
borderRadius?: ImageBorderRadius;
|
|
8
|
+
fallbackSrc?: string;
|
|
9
|
+
className?: string;
|
|
10
|
+
}>;
|
|
@@ -10,6 +10,7 @@ export * from "./avatar";
|
|
|
10
10
|
export * from "./avatar-stack";
|
|
11
11
|
export * from "./banner";
|
|
12
12
|
export * from "./blankslate";
|
|
13
|
+
export * from "./blockquote";
|
|
13
14
|
export * from "./breadcrumbs";
|
|
14
15
|
export * from "./button";
|
|
15
16
|
export * from "./button-group";
|
|
@@ -28,12 +29,14 @@ export * from "./date-picker";
|
|
|
28
29
|
export * from "./details";
|
|
29
30
|
export * from "./dialog";
|
|
30
31
|
export * from "./drawer";
|
|
32
|
+
export * from "./em";
|
|
31
33
|
export * from "./empty-state";
|
|
32
34
|
export * from "./filtered-action-list";
|
|
33
35
|
export * from "./form-control";
|
|
34
36
|
export * from "./heading";
|
|
35
37
|
export * from "./hidden";
|
|
36
38
|
export * from "./icon-button";
|
|
39
|
+
export * from "./image";
|
|
37
40
|
export * from "./inline-message";
|
|
38
41
|
export * from "./keybinding-hint";
|
|
39
42
|
export * from "./label";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
2
|
import type { SelectSize, SelectValidationStatus } from "./Select.types";
|
|
3
|
-
declare const _default: (props: Omit<Omit<React.DetailedHTMLProps<React.SelectHTMLAttributes<HTMLSelectElement>, HTMLSelectElement>, "ref">, "
|
|
3
|
+
declare const _default: (props: Omit<Omit<React.DetailedHTMLProps<React.SelectHTMLAttributes<HTMLSelectElement>, HTMLSelectElement>, "ref">, "size" | "multiple"> & {
|
|
4
4
|
size?: SelectSize;
|
|
5
5
|
block?: boolean;
|
|
6
6
|
validationStatus?: SelectValidationStatus;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import SelectOptGroup from "./SelectOptGroup";
|
|
2
2
|
import SelectOption from "./SelectOption";
|
|
3
|
-
export declare const Select: ((props: Omit<Omit<import("react").DetailedHTMLProps<import("react").SelectHTMLAttributes<HTMLSelectElement>, HTMLSelectElement>, "ref">, "
|
|
3
|
+
export declare const Select: ((props: Omit<Omit<import("react").DetailedHTMLProps<import("react").SelectHTMLAttributes<HTMLSelectElement>, HTMLSelectElement>, "ref">, "size" | "multiple"> & {
|
|
4
4
|
size?: import("./Select.types").SelectSize;
|
|
5
5
|
block?: boolean;
|
|
6
6
|
validationStatus?: import("./Select.types").SelectValidationStatus;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
2
|
import type { SliderOrientation, SliderSize } from "./Slider.types";
|
|
3
|
-
declare const _default: (props: Omit<Omit<React.DetailedHTMLProps<React.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "ref">, "onChange" | "value" | "defaultValue" | "type" | "step" | "
|
|
3
|
+
declare const _default: (props: Omit<Omit<React.DetailedHTMLProps<React.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "ref">, "size" | "onChange" | "value" | "defaultValue" | "type" | "step" | "max" | "min"> & {
|
|
4
4
|
min?: number;
|
|
5
5
|
max?: number;
|
|
6
6
|
step?: number;
|