@raystack/apsara 0.10.8 → 0.10.10

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,7 @@
1
1
  import * as AvatarPrimitive from "@radix-ui/react-avatar";
2
2
  import { VariantProps } from "class-variance-authority";
3
- import { ComponentPropsWithoutRef } from "react";
3
+ import { ComponentPropsWithoutRef, CSSProperties } from "react";
4
4
  declare const avatar: (props?: ({
5
- size?: "small" | "medium" | "large" | "extra-large" | null | undefined;
6
5
  shape?: "circle" | "square" | null | undefined;
7
6
  disabled?: boolean | null | undefined;
8
7
  } & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
@@ -11,15 +10,14 @@ export interface AvatarProps extends ComponentPropsWithoutRef<typeof AvatarPrimi
11
10
  }
12
11
  export interface AvatarImageProps extends ComponentPropsWithoutRef<typeof AvatarPrimitive.Image>, VariantProps<typeof image> {
13
12
  }
14
- declare const fallback: (props?: ({
15
- size?: "small" | "medium" | "large" | "extra-large" | null | undefined;
16
- } & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
13
+ declare const fallback: (props?: import("class-variance-authority/dist/types").ClassProp | undefined) => string;
17
14
  export interface FallbackProps extends ComponentPropsWithoutRef<typeof AvatarPrimitive.Fallback>, VariantProps<typeof fallback> {
18
15
  }
19
16
  export declare const Avatar: import("react").ForwardRefExoticComponent<AvatarProps & {
20
17
  alt?: string | undefined;
21
18
  src?: string | undefined;
22
19
  fallback?: React.ReactNode;
20
+ imageProps?: CSSProperties | undefined;
23
21
  } & import("react").RefAttributes<HTMLSpanElement>> & {
24
22
  Image: import("react").ForwardRefExoticComponent<AvatarImageProps & import("react").RefAttributes<HTMLImageElement>>;
25
23
  Fallback: import("react").ForwardRefExoticComponent<FallbackProps & import("react").RefAttributes<HTMLSpanElement>>;
@@ -1 +1 @@
1
- {"version":3,"file":"avatar.d.ts","sourceRoot":"","sources":["../../avatar/avatar.tsx"],"names":[],"mappings":"AAAA,OA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AAC;CAAG;AAcjC,QAAA,MAAM,QAAQ,yFAAuB,CAAC;AAEtC,MAAM,WAAW,aACf,SAAQ,wBAAwB,CAAC,OAAO,eAAe,CAAC,QAAQ,CAAC,EAC/D,YAAY,CAAC,OAAO,QAAQ,CAAC;CAAG;AAepC,eAAO,MAAM,MAAM;;;eA3DJ,MAAM,SAAS;;;;;CA8D5B,CAAC"}
@@ -0,0 +1,11 @@
1
+ import { VariantProps } from "class-variance-authority";
2
+ import { HTMLAttributes, PropsWithChildren } from "react";
3
+ declare type Status = "404" | "NOT_FOUND" | "UNDER_MAINTENANCE" | "SOMETHING_WENT_WRONG" | string;
4
+ declare const errorstate: (props?: import("class-variance-authority/dist/types").ClassProp | undefined) => string;
5
+ declare type ErrorStateProps = PropsWithChildren<VariantProps<typeof errorstate>> & HTMLAttributes<HTMLElement> & {
6
+ icon?: React.ReactElement;
7
+ status?: Status;
8
+ };
9
+ export declare function ErrorState({ children, className, status, icon, ...props }: ErrorStateProps): import("react/jsx-runtime").JSX.Element;
10
+ export {};
11
+ //# sourceMappingURL=errorstate.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"errorstate.d.ts","sourceRoot":"","sources":["../../errorstate/errorstate.tsx"],"names":[],"mappings":"AAKA,OAAO,EAAE,YAAY,EAAO,MAAM,0BAA0B,CAAC;AAC7D,OAAO,EAAE,cAAc,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAM1D,aAAK,MAAM,GACP,KAAK,GACL,WAAW,GACX,mBAAmB,GACnB,sBAAsB,GACtB,MAAM,CAAC;AAiDX,QAAA,MAAM,UAAU,yFAAyB,CAAC;AAC1C,aAAK,eAAe,GAAG,iBAAiB,CAAC,YAAY,CAAC,OAAO,UAAU,CAAC,CAAC,GACvE,cAAc,CAAC,WAAW,CAAC,GAAG;IAC5B,IAAI,CAAC,EAAE,KAAK,CAAC,YAAY,CAAC;IAC1B,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB,CAAC;AAEJ,wBAAgB,UAAU,CAAC,EACzB,QAAQ,EACR,SAAS,EACT,MAAM,EACN,IAAI,EACJ,GAAG,KAAK,EACT,EAAE,eAAe,2CAoBjB"}
@@ -0,0 +1,2 @@
1
+ export { ErrorState } from "./errorstate";
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../errorstate/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC"}
@@ -5,7 +5,7 @@ declare const flex: (props?: ({
5
5
  align?: "center" | "start" | "end" | "stretch" | "baseline" | null | undefined;
6
6
  justify?: "center" | "start" | "end" | "between" | null | undefined;
7
7
  wrap?: "wrap" | "noWrap" | "wrapReverse" | null | undefined;
8
- gap?: "small" | "medium" | "large" | "extra-large" | "extra-small" | null | undefined;
8
+ gap?: "small" | "medium" | "large" | "extra-small" | "extra-large" | null | undefined;
9
9
  } & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
10
10
  declare type BoxProps = PropsWithChildren<VariantProps<typeof flex>> & HTMLAttributes<HTMLDivElement>;
11
11
  export declare function Flex({ children, direction, align, justify, wrap, gap, className, ...props }: BoxProps): import("react/jsx-runtime").JSX.Element;
@@ -5,9 +5,9 @@ declare const grid: (props?: ({
5
5
  justify?: "center" | "start" | "end" | "between" | null | undefined;
6
6
  flow?: "row" | "column" | "dense" | "rowDense" | "columnDense" | null | undefined;
7
7
  columns?: 1 | 4 | 3 | 2 | null | undefined;
8
- gap?: "small" | "medium" | "large" | "extra-large" | "extra-small" | null | undefined;
9
- gapX?: "small" | "medium" | "large" | "extra-large" | "extra-small" | null | undefined;
10
- gapY?: "small" | "medium" | "large" | "extra-large" | "extra-small" | null | undefined;
8
+ gap?: "small" | "medium" | "large" | "extra-small" | "extra-large" | null | undefined;
9
+ gapX?: "small" | "medium" | "large" | "extra-small" | "extra-large" | null | undefined;
10
+ gapY?: "small" | "medium" | "large" | "extra-small" | "extra-large" | null | undefined;
11
11
  } & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
12
12
  declare type BoxProps = PropsWithChildren<VariantProps<typeof grid>> & HTMLAttributes<HTMLElement>;
13
13
  export declare function Grid({ children, align, justify, flow, columns, gap, gapX, gapY, className, ...props }: BoxProps): import("react/jsx-runtime").JSX.Element;
@@ -2,6 +2,6 @@ import { VariantProps } from "class-variance-authority";
2
2
  import { ImgHTMLAttributes, PropsWithChildren } from "react";
3
3
  declare const image: (props?: import("class-variance-authority/dist/types").ClassProp | undefined) => string;
4
4
  declare type ImageProps = PropsWithChildren<VariantProps<typeof image>> & ImgHTMLAttributes<HTMLImageElement>;
5
- export declare function Image({ children, className, ...props }: ImageProps): import("react/jsx-runtime").JSX.Element;
5
+ export declare function Image({ alt, children, className, ...props }: ImageProps): import("react/jsx-runtime").JSX.Element;
6
6
  export {};
7
7
  //# sourceMappingURL=image.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"image.d.ts","sourceRoot":"","sources":["../../image/image.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAO,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAC7D,OAAO,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAG7D,QAAA,MAAM,KAAK,yFAAoB,CAAC;AAEhC,aAAK,UAAU,GAAG,iBAAiB,CAAC,YAAY,CAAC,OAAO,KAAK,CAAC,CAAC,GAC7D,iBAAiB,CAAC,gBAAgB,CAAC,CAAC;AAEtC,wBAAgB,KAAK,CAAC,EAAE,QAAQ,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,UAAU,2CAElE"}
1
+ {"version":3,"file":"image.d.ts","sourceRoot":"","sources":["../../image/image.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAO,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAC7D,OAAO,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAG7D,QAAA,MAAM,KAAK,yFAAoB,CAAC;AAEhC,aAAK,UAAU,GAAG,iBAAiB,CAAC,YAAY,CAAC,OAAO,KAAK,CAAC,CAAC,GAC7D,iBAAiB,CAAC,gBAAgB,CAAC,CAAC;AAEtC,wBAAgB,KAAK,CAAC,EAAE,GAAG,EAAE,QAAQ,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,UAAU,2CAEvE"}