@codezee/sixtify-brahma 0.2.249 → 0.2.251

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@codezee/sixtify-brahma",
3
- "version": "0.2.249",
3
+ "version": "0.2.251",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/hardikranpariya/sixtify-brahma.git"
@@ -1,3 +1,4 @@
1
+ import { type Dimension } from "./helper";
1
2
  import type { OnAction } from "../../utils/types";
2
3
  export type ImageUploadProps = Readonly<{
3
4
  onDelete: OnAction;
@@ -10,6 +11,7 @@ export type ImageUploadProps = Readonly<{
10
11
  isCapture?: boolean;
11
12
  loading?: boolean;
12
13
  size?: number;
14
+ dimension?: Dimension;
13
15
  }>;
14
- export declare function ImageUpload({ variant, isUploading, defaultValue, onDelete, onChange, label, isCapture, loading, size, subTitle, }: ImageUploadProps): import("react/jsx-runtime").JSX.Element;
16
+ export declare function ImageUpload({ variant, isUploading, defaultValue, onDelete, onChange, label, isCapture, loading, size, subTitle, dimension, }: ImageUploadProps): import("react/jsx-runtime").JSX.Element;
15
17
  //# sourceMappingURL=ImageUpload.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ImageUpload.d.ts","sourceRoot":"","sources":["../../../src/FormFields/ImageUpload/ImageUpload.tsx"],"names":[],"mappings":"AA4BA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAElD,MAAM,MAAM,gBAAgB,GAAG,QAAQ,CAAC;IACtC,QAAQ,EAAE,QAAQ,CAAC;IACnB,QAAQ,EAAE,CAAC,IAAI,EAAE,IAAI,EAAE,KAAK,IAAI,CAAC;IACjC,OAAO,CAAC,EAAE,QAAQ,GAAG,QAAQ,CAAC;IAC9B,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC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SAAmB,GACpB,EAAE,gBAAgB,2CAgXlB"}
@@ -1,4 +1,8 @@
1
1
  import { type BoxProps } from "@mui/material/Box";
2
2
  import type { ComponentType } from "react";
3
- export declare const DarkBackgroundContainer: ComponentType<BoxProps>;
3
+ type DarkBackgroundContainerProps = BoxProps & {
4
+ variant?: "square" | "circle";
5
+ };
6
+ export declare const DarkBackgroundContainer: ComponentType<DarkBackgroundContainerProps>;
7
+ export {};
4
8
  //# sourceMappingURL=ImageUpload.styled.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ImageUpload.styled.d.ts","sourceRoot":"","sources":["../../../src/FormFields/ImageUpload/ImageUpload.styled.tsx"],"names":[],"mappings":"AAAA,OAAY,EAAE,KAAK,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAGvD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAE3C,eAAO,MAAM,uBAAuB,EAAE,aAAa,CAAC,QAAQ,CAgB1D,CAAC"}
1
+ {"version":3,"file":"ImageUpload.styled.d.ts","sourceRoot":"","sources":["../../../src/FormFields/ImageUpload/ImageUpload.styled.tsx"],"names":[],"mappings":"AAAA,OAAY,EAAE,KAAK,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAGvD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAE3C,KAAK,4BAA4B,GAAG,QAAQ,GAAG;IAC7C,OAAO,CAAC,EAAE,QAAQ,GAAG,QAAQ,CAAC;CAC/B,CAAC;AAEF,eAAO,MAAM,uBAAuB,EAAE,aAAa,CAAC,4BAA4B,CAiB5E,CAAC"}
@@ -0,0 +1,14 @@
1
+ import { type OnAction, type SupportedFileType } from "../../utils";
2
+ import type { SxProps } from "@mui/material";
3
+ type ImageFileType = Extract<SupportedFileType, "image/png" | "image/jpeg" | "image/jpg">;
4
+ export declare const imageFileType: ImageFileType[];
5
+ export type Dimension = "small" | "medium" | "large";
6
+ export declare const imageDimension: Record<Dimension, SxProps>;
7
+ export declare const commonImageDimensionStyles: SxProps;
8
+ export declare const imageDimensionStyles: Record<Dimension, SxProps>;
9
+ export declare const getDragBackgroundOpacity: (dimension: Dimension) => number;
10
+ export declare const getDragIconSize: (dimension: Dimension) => string;
11
+ export declare const getBorderStyle: (isDragging: boolean, hasDefaultValue: boolean, butterflyBlue900: string, grey400: string) => string;
12
+ export declare const validateAndProcessFiles: (files: File[], size: number, onChange: OnAction<File[]>) => boolean;
13
+ export {};
14
+ //# sourceMappingURL=helper.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"helper.d.ts","sourceRoot":"","sources":["../../../src/FormFields/ImageUpload/helper.ts"],"names":[],"mappings":"AAGA,OAAO,EAGL,KAAK,QAAQ,EACb,KAAK,iBAAiB,EACvB,MAAM,aAAa,CAAC;AAErB,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AAE7C,KAAK,aAAa,GAAG,OAAO,CAC1B,iBAAiB,EACjB,WAAW,GAAG,YAAY,GAAG,WAAW,CACzC,CAAC;AAEF,eAAO,MAAM,aAAa,EAAE,aAAa,EAIxC,CAAC;AAEF,MAAM,MAAM,SAAS,GAAG,OAAO,GAAG,QAAQ,GAAG,OAAO,CAAC;AAErD,eAAO,MAAM,cAAc,EAAE,MAAM,CAAC,SAAS,EAAE,OAAO,CAmBrD,CAAC;AAEF,eAAO,MAAM,0BAA0B,EAAE,OAKxC,CAAC;AAEF,eAAO,MAAM,oBAAoB,EAAE,MAAM,CAAC,SAAS,EAAE,OAAO,CAS3D,CAAC;AAEF,eAAO,MAAM,wBAAwB,GAAI,WAAW,SAAS,KAAG,MAU/D,CAAC;AAEF,eAAO,MAAM,eAAe,GAAI,WAAW,SAAS,KAAG,MAUtD,CAAC;AAEF,eAAO,MAAM,cAAc,GACzB,YAAY,OAAO,EACnB,iBAAiB,OAAO,EACxB,kBAAkB,MAAM,EACxB,SAAS,MAAM,KACd,MAUF,CAAC;AAEF,eAAO,MAAM,uBAAuB,GAClC,OAAO,IAAI,EAAE,EACb,MAAM,MAAM,EACZ,UAAU,QAAQ,CAAC,IAAI,EAAE,CAAC,KACzB,OA4BF,CAAC"}
@@ -1,3 +1,9 @@
1
+ import type { SxProps } from "@mui/material/styles";
1
2
  import type { PropsWithChildren } from "react";
2
- export declare const FormContainer: ({ children }: PropsWithChildren) => import("react/jsx-runtime").JSX.Element;
3
+ type FormContainerProps = PropsWithChildren & {
4
+ gap?: number | string;
5
+ sx?: SxProps;
6
+ };
7
+ export declare const FormContainer: ({ children, gap, sx, }: FormContainerProps) => import("react/jsx-runtime").JSX.Element;
8
+ export {};
3
9
  //# sourceMappingURL=FormContainer.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"FormContainer.d.ts","sourceRoot":"","sources":["../../src/Layouts/FormContainer.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAE/C,eAAO,MAAM,aAAa,GAAI,cAAc,iBAAiB,4CAE5D,CAAC"}
1
+ {"version":3,"file":"FormContainer.d.ts","sourceRoot":"","sources":["../../src/Layouts/FormContainer.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAC;AACpD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAE/C,KAAK,kBAAkB,GAAG,iBAAiB,GAAG;IAC5C,GAAG,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACtB,EAAE,CAAC,EAAE,OAAO,CAAC;CACd,CAAC;AAEF,eAAO,MAAM,aAAa,GAAI,wBAI3B,kBAAkB,4CAMpB,CAAC"}
@@ -1,5 +1,12 @@
1
+ import type { SxProps } from "@mui/material/styles";
1
2
  import type { PropsWithChildren } from "react";
2
- export declare const FormSection: ({ title, children, }: PropsWithChildren<{
3
+ type FormSectionProps = PropsWithChildren & {
3
4
  title?: string;
4
- }>) => import("react/jsx-runtime").JSX.Element;
5
+ containerSx?: SxProps;
6
+ padBoxSx?: SxProps;
7
+ sx?: SxProps;
8
+ gap?: number | string;
9
+ };
10
+ export declare const FormSection: ({ title, children, containerSx, padBoxSx, gap, sx, }: PropsWithChildren<FormSectionProps>) => import("react/jsx-runtime").JSX.Element;
11
+ export {};
5
12
  //# sourceMappingURL=FormSection.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"FormSection.d.ts","sourceRoot":"","sources":["../../src/Layouts/FormSection.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAE/C,eAAO,MAAM,WAAW,GAAI,sBAGzB,iBAAiB,CAAC;IAAE,KAAK,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC,4CAgBvC,CAAC"}
1
+ {"version":3,"file":"FormSection.d.ts","sourceRoot":"","sources":["../../src/Layouts/FormSection.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAC;AACpD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAE/C,KAAK,gBAAgB,GAAG,iBAAiB,GAAG;IAC1C,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,EAAE,CAAC,EAAE,OAAO,CAAC;IACb,GAAG,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;CACvB,CAAC;AAEF,eAAO,MAAM,WAAW,GAAI,sDASzB,iBAAiB,CAAC,gBAAgB,CAAC,4CAgBrC,CAAC"}