@gamecrafters/base-ui 0.0.5 → 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.
@@ -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
+ }>;
@@ -0,0 +1,2 @@
1
+ export { default as Blockquote } from "./Blockquote";
2
+ export * from "./Blockquote.types";
@@ -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,2 @@
1
+ export { default as Em } from "./Em";
2
+ export * from "./Em.types";
@@ -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
+ }>;
@@ -0,0 +1,2 @@
1
+ export { default as Image } from "./Image";
2
+ export * from "./Image.types";
@@ -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";