@codeplex-sac/utils 0.0.1

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,4 @@
1
+ import { ClickAwayListenerProps as MuiClickAwayListenerProps } from '@mui/material';
2
+ export interface CodeplexClickAwayListenerProps extends MuiClickAwayListenerProps {
3
+ }
4
+ export declare const CodeplexClickAwayListener: (props: CodeplexClickAwayListenerProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,11 @@
1
+ import { default as React } from 'react';
2
+ import { ModalProps as MuiModalProps, SxProps, Theme } from '@mui/material';
3
+ export interface CodeplexModalProps extends Omit<MuiModalProps, 'children' | 'title'> {
4
+ children: React.ReactNode;
5
+ title?: React.ReactNode;
6
+ description?: string;
7
+ showCloseIcon?: boolean;
8
+ contentSx?: SxProps<Theme>;
9
+ width?: number | string;
10
+ }
11
+ export declare const CodeplexModal: ({ children, title, description, showCloseIcon, onClose, contentSx, width, ...props }: CodeplexModalProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,9 @@
1
+ import { default as React } from 'react';
2
+ import { PopoverProps as MuiPopoverProps, SxProps, Theme } from '@mui/material';
3
+ export interface CodeplexPopoverProps extends Omit<MuiPopoverProps, 'title'> {
4
+ title?: React.ReactNode;
5
+ showCloseIcon?: boolean;
6
+ contentSx?: SxProps<Theme>;
7
+ onClose?: (event: {}, reason: 'backdropClick' | 'escapeKeyDown' | 'closeIcon') => void;
8
+ }
9
+ export declare const CodeplexPopover: ({ children, title, showCloseIcon, onClose, contentSx, sx, ...props }: CodeplexPopoverProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,12 @@
1
+ import { default as React } from 'react';
2
+ import { PopperProps as MuiPopperProps, SxProps, Theme } from '@mui/material';
3
+ export interface CodeplexPopperProps extends Omit<MuiPopperProps, 'children' | 'title'> {
4
+ children?: React.ReactNode;
5
+ title?: React.ReactNode;
6
+ contentSx?: SxProps<Theme>;
7
+ withPaper?: boolean;
8
+ closeOnClickAway?: boolean;
9
+ onClose?: (event: MouseEvent | TouchEvent) => void;
10
+ transition?: boolean;
11
+ }
12
+ export declare const CodeplexPopper: ({ children, title, contentSx, withPaper, closeOnClickAway, onClose, transition, open, placement, ...props }: CodeplexPopperProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,19 @@
1
+ import { default as React } from 'react';
2
+ import { PortalProps as MuiPortalProps } from '@mui/material';
3
+ export interface CodeplexPortalProps extends Omit<MuiPortalProps, 'container'> {
4
+ /**
5
+ * An HTML element, component instance, or function that returns either.
6
+ * The `container` will have the portal children appended to it.
7
+ *
8
+ * By default, it uses the body of the top-level document object,
9
+ * so it's simply `document.body` most of the time.
10
+ */
11
+ container?: MuiPortalProps['container'];
12
+ /**
13
+ * Convenience prop to specify the ID of the container element.
14
+ * If provided, it overrides the `container` prop.
15
+ */
16
+ containerId?: string;
17
+ children: React.ReactNode;
18
+ }
19
+ export declare const CodeplexPortal: ({ container, containerId, children, ...props }: CodeplexPortalProps) => import("react/jsx-runtime").JSX.Element | null;
@@ -0,0 +1,6 @@
1
+ import { TextareaAutosizeProps as MuiTextareaAutosizeProps } from '@mui/material';
2
+ export interface CodeplexTextareaAutosizeProps extends MuiTextareaAutosizeProps {
3
+ variant?: 'outlined' | 'filled' | 'standard';
4
+ error?: boolean;
5
+ }
6
+ export declare const CodeplexTextareaAutosize: ({ variant, error, minRows, ...props }: CodeplexTextareaAutosizeProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,16 @@
1
+ import { CollapseProps as MuiCollapseProps, FadeProps as MuiFadeProps, GrowProps as MuiGrowProps, SlideProps as MuiSlideProps, ZoomProps as MuiZoomProps } from '@mui/material';
2
+ export interface CodeplexCollapseProps extends MuiCollapseProps {
3
+ }
4
+ export declare const CodeplexCollapse: ({ timeout, ...props }: CodeplexCollapseProps) => import("react/jsx-runtime").JSX.Element;
5
+ export interface CodeplexFadeProps extends MuiFadeProps {
6
+ }
7
+ export declare const CodeplexFade: ({ timeout, ...props }: CodeplexFadeProps) => import("react/jsx-runtime").JSX.Element;
8
+ export interface CodeplexGrowProps extends MuiGrowProps {
9
+ }
10
+ export declare const CodeplexGrow: ({ timeout, ...props }: CodeplexGrowProps) => import("react/jsx-runtime").JSX.Element;
11
+ export interface CodeplexSlideProps extends MuiSlideProps {
12
+ }
13
+ export declare const CodeplexSlide: ({ timeout, direction, ...props }: CodeplexSlideProps) => import("react/jsx-runtime").JSX.Element;
14
+ export interface CodeplexZoomProps extends MuiZoomProps {
15
+ }
16
+ export declare const CodeplexZoom: ({ timeout, ...props }: CodeplexZoomProps) => import("react/jsx-runtime").JSX.Element;
package/package.json ADDED
@@ -0,0 +1,20 @@
1
+ {
2
+ "name": "@codeplex-sac/utils",
3
+ "version": "0.0.1",
4
+ "main": "./index.js",
5
+ "types": "./index.d.ts",
6
+ "exports": {
7
+ ".": {
8
+ "import": "./index.mjs",
9
+ "require": "./index.js"
10
+ }
11
+ },
12
+ "peerDependencies": {
13
+ "react": "^19.0.0",
14
+ "react-dom": "^19.0.0"
15
+ },
16
+ "dependencies": {
17
+ "@mui/material": "^7.3.6",
18
+ "@mui/icons-material": "^7.3.6"
19
+ }
20
+ }