@gamecrafters/base-ui 0.0.13 → 0.0.14

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,11 @@
1
+ import * as React from "react";
2
+ import type { CaretLocation } from "./Caret.types";
3
+ declare const _default: (props: Omit<React.SVGProps<SVGSVGElement>, "ref"> & {
4
+ location?: CaretLocation;
5
+ size?: number;
6
+ background?: string;
7
+ borderColor?: string;
8
+ borderWidth?: string | number;
9
+ className?: string;
10
+ } & React.RefAttributes<any>) => React.ReactNode;
11
+ export default _default;
@@ -0,0 +1,11 @@
1
+ import type * as React from "react";
2
+ export type CaretLocation = "top" | "bottom" | "left" | "right" | "top-left" | "top-right" | "bottom-left" | "bottom-right" | "left-top" | "left-bottom" | "right-top" | "right-bottom";
3
+ export type CaretEdge = "top" | "right" | "bottom" | "left";
4
+ export type CaretProps = React.ComponentPropsWithoutRef<"svg"> & {
5
+ location?: CaretLocation;
6
+ size?: number;
7
+ background?: string;
8
+ borderColor?: string;
9
+ borderWidth?: string | number;
10
+ className?: string;
11
+ };
@@ -0,0 +1,2 @@
1
+ export { default as Caret } from "./Caret";
2
+ export * from "./Caret.types";
@@ -0,0 +1,7 @@
1
+ import * as React from "react";
2
+ declare const _default: <As extends React.ElementType = "header">(props: import("../../utilities/polymorphic").DistributiveOmit<React.ComponentPropsWithRef<React.ElementType extends As ? "header" : As> & {
3
+ className?: string;
4
+ }, "as"> & {
5
+ as?: As | undefined;
6
+ } & React.RefAttributes<any>) => React.ReactNode;
7
+ export default _default;
@@ -0,0 +1,12 @@
1
+ import type * as React from "react";
2
+ import type { PolymorphicProps } from "../../utilities/polymorphic";
3
+ export type HeaderProps<As extends React.ElementType = "header"> = PolymorphicProps<As, "header", {
4
+ className?: string;
5
+ }>;
6
+ export type HeaderItemProps = React.ComponentPropsWithoutRef<"div"> & {
7
+ full?: boolean;
8
+ className?: string;
9
+ };
10
+ export type HeaderLinkProps<As extends React.ElementType = "a"> = PolymorphicProps<As, "a", {
11
+ className?: string;
12
+ }>;
@@ -0,0 +1,6 @@
1
+ import * as React from "react";
2
+ declare const _default: (props: Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
3
+ full?: boolean;
4
+ className?: string;
5
+ } & React.RefAttributes<any>) => React.ReactNode;
6
+ export default _default;
@@ -0,0 +1,7 @@
1
+ import * as React from "react";
2
+ declare const _default: <As extends React.ElementType = "a">(props: import("../../utilities/polymorphic").DistributiveOmit<React.ComponentPropsWithRef<React.ElementType extends As ? "a" : As> & {
3
+ className?: string;
4
+ }, "as"> & {
5
+ as?: As | undefined;
6
+ } & React.RefAttributes<any>) => React.ReactNode;
7
+ export default _default;
@@ -0,0 +1,19 @@
1
+ import HeaderItem from "./HeaderItem";
2
+ import HeaderLink from "./HeaderLink";
3
+ export declare const Header: (<As extends React.ElementType = "header">(props: import("../../utilities/polymorphic").DistributiveOmit<import("react").ComponentPropsWithRef<import("react").ElementType extends As ? "header" : As> & {
4
+ className?: string;
5
+ }, "as"> & {
6
+ as?: As | undefined;
7
+ } & import("react").RefAttributes<any>) => React.ReactNode) & {
8
+ Item: (props: Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
9
+ full?: boolean;
10
+ className?: string;
11
+ } & import("react").RefAttributes<any>) => React.ReactNode;
12
+ Link: <As extends React.ElementType = "a">(props: import("../../utilities/polymorphic").DistributiveOmit<import("react").ComponentPropsWithRef<import("react").ElementType extends As ? "a" : As> & {
13
+ className?: string;
14
+ }, "as"> & {
15
+ as?: As | undefined;
16
+ } & import("react").RefAttributes<any>) => React.ReactNode;
17
+ };
18
+ export { HeaderItem, HeaderLink };
19
+ export * from "./Header.types";
@@ -19,6 +19,7 @@ export * from "./button";
19
19
  export * from "./button-group";
20
20
  export * from "./calendar";
21
21
  export * from "./card";
22
+ export * from "./caret";
22
23
  export * from "./carousel";
23
24
  export * from "./chart";
24
25
  export * from "./checkbox";
@@ -42,6 +43,7 @@ export * from "./file-upload";
42
43
  export * from "./filtered-action-list";
43
44
  export * from "./flow";
44
45
  export * from "./form-control";
46
+ export * from "./header";
45
47
  export * from "./heading";
46
48
  export * from "./hidden";
47
49
  export * from "./highlight";
@@ -1,7 +1,7 @@
1
1
  import type * as React from "react";
2
2
  export type IsClippedOptions = {
3
3
  ref: React.RefObject<HTMLElement | null>;
4
- rootRef: React.RefObject<HTMLElement | null>;
4
+ rootRef?: React.RefObject<HTMLElement | null>;
5
5
  disabled?: boolean;
6
6
  };
7
7
  export declare const useIsClipped: ({ ref, rootRef, disabled }: IsClippedOptions) => boolean;