@gamecrafters/base-ui 0.0.2 → 0.0.4

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.
@@ -1,8 +1,9 @@
1
1
  import * as React from "react";
2
- import type { DividerOrientation, DividerVariant } from "./Divider.types";
2
+ import type { AspectRatioRatio } from "./AspectRatio.types";
3
3
  declare const _default: <As extends React.ElementType = "div">(props: import("../../utilities/polymorphic").DistributiveOmit<React.ComponentPropsWithRef<React.ElementType extends As ? "div" : As> & {
4
- orientation?: DividerOrientation;
5
- variant?: DividerVariant;
4
+ ratio?: AspectRatioRatio;
5
+ width?: number;
6
+ height?: number;
6
7
  className?: string;
7
8
  }, "as"> & {
8
9
  as?: As | undefined;
@@ -0,0 +1,9 @@
1
+ import type * as React from "react";
2
+ import type { PolymorphicProps } from "../../utilities/polymorphic";
3
+ export type AspectRatioRatio = "1:1" | "16:9" | "4:3" | "custom";
4
+ export type AspectRatioProps<As extends React.ElementType = "div"> = PolymorphicProps<As, "div", {
5
+ ratio?: AspectRatioRatio;
6
+ width?: number;
7
+ height?: number;
8
+ className?: string;
9
+ }>;
@@ -0,0 +1,2 @@
1
+ export { default as AspectRatio } from "./AspectRatio";
2
+ export * from "./AspectRatio.types";
@@ -4,6 +4,7 @@ export * from "./action-list";
4
4
  export * from "./action-menu";
5
5
  export * from "./alert";
6
6
  export * from "./anchored-overlay";
7
+ export * from "./aspect-ratio";
7
8
  export * from "./autocomplete";
8
9
  export * from "./avatar";
9
10
  export * from "./avatar-stack";
@@ -26,7 +27,6 @@ export * from "./data-table";
26
27
  export * from "./date-picker";
27
28
  export * from "./details";
28
29
  export * from "./dialog";
29
- export * from "./divider";
30
30
  export * from "./drawer";
31
31
  export * from "./empty-state";
32
32
  export * from "./filtered-action-list";
@@ -56,6 +56,7 @@ export * from "./scrollable-region";
56
56
  export * from "./segmented-control";
57
57
  export * from "./select";
58
58
  export * from "./select-panel";
59
+ export * from "./separator";
59
60
  export * from "./skeleton-avatar";
60
61
  export * from "./skeleton-box";
61
62
  export * from "./skeleton-text";
@@ -0,0 +1,10 @@
1
+ import * as React from "react";
2
+ import type { SeparatorOrientation, SeparatorVariant } from "./Separator.types";
3
+ declare const _default: <As extends React.ElementType = "div">(props: import("../../utilities/polymorphic").DistributiveOmit<React.ComponentPropsWithRef<React.ElementType extends As ? "div" : As> & {
4
+ orientation?: SeparatorOrientation;
5
+ variant?: SeparatorVariant;
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 SeparatorOrientation = "horizontal" | "vertical";
4
+ export type SeparatorVariant = "subtle" | "default" | "emphasis";
5
+ export type SeparatorProps<As extends React.ElementType = "div"> = PolymorphicProps<As, "div", {
6
+ orientation?: SeparatorOrientation;
7
+ variant?: SeparatorVariant;
8
+ className?: string;
9
+ }>;
@@ -0,0 +1,2 @@
1
+ export { default as Separator } from "./Separator";
2
+ export * from "./Separator.types";