elseware-ui 2.17.3 → 2.18.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.
@@ -1,4 +1,5 @@
1
1
  import React from "react";
2
+ import { Shape } from "../../../data/enums";
2
3
  export type TableColumnConfig<T> = {
3
4
  key: keyof T;
4
5
  header: string;
@@ -11,6 +12,7 @@ type TableContentProps<T> = {
11
12
  data: T[];
12
13
  defaultPageSize?: number;
13
14
  pageSizeOptions?: (number | "All")[];
15
+ shape?: keyof typeof Shape;
14
16
  };
15
- export declare function TableContent<T extends Record<string, any>>({ title, columns, data, defaultPageSize, pageSizeOptions, }: TableContentProps<T>): import("react/jsx-runtime").JSX.Element;
17
+ export declare function TableContent<T extends Record<string, any>>({ title, columns, data, defaultPageSize, pageSizeOptions, shape, }: TableContentProps<T>): import("react/jsx-runtime").JSX.Element;
16
18
  export {};
@@ -1,7 +1,10 @@
1
1
  import { FieldHookConfig } from "formik";
2
- interface DateSelectorProps {
2
+ import { Shape } from "../../../data/enums";
3
+ interface DateSelectorProps extends FieldHookConfig<string> {
4
+ name: string;
3
5
  placeholder: string;
4
6
  styles?: string;
7
+ shape?: keyof typeof Shape;
5
8
  }
6
- export declare const DateSelector: ({ placeholder, styles, ...props }: FieldHookConfig<string> & DateSelectorProps) => import("react/jsx-runtime").JSX.Element;
9
+ export declare const DateSelector: ({ placeholder, styles, shape, ...props }: DateSelectorProps) => import("react/jsx-runtime").JSX.Element;
7
10
  export default DateSelector;
@@ -1,6 +1,8 @@
1
+ import { Shape } from "../../../../data/enums";
1
2
  interface InputListProps {
2
3
  name: string;
3
4
  placeholder?: string;
5
+ shape?: keyof typeof Shape;
4
6
  }
5
- export declare const InputList: ({ name, placeholder }: InputListProps) => import("react/jsx-runtime").JSX.Element;
7
+ export declare const InputList: ({ name, placeholder, shape }: InputListProps) => import("react/jsx-runtime").JSX.Element;
6
8
  export {};
@@ -1,6 +1,8 @@
1
+ import { Shape } from "../../../../data/enums";
1
2
  interface InputListGroupProps {
2
3
  name: string;
3
4
  placeholder?: string;
5
+ shape?: keyof typeof Shape;
4
6
  }
5
- export declare const InputListGroup: ({ name, placeholder }: InputListGroupProps) => import("react/jsx-runtime").JSX.Element;
7
+ export declare const InputListGroup: ({ name, placeholder, shape, }: InputListGroupProps) => import("react/jsx-runtime").JSX.Element;
6
8
  export {};
@@ -1,8 +1,11 @@
1
1
  import { FieldHookConfig } from "formik";
2
- export interface SelectProps {
2
+ import { Shape } from "../../../data/enums";
3
+ export interface SelectProps extends FieldHookConfig<string> {
4
+ name: string;
3
5
  placeholder: string;
4
6
  options: any[];
5
7
  styles?: string;
8
+ shape?: keyof typeof Shape;
6
9
  }
7
- declare function Select({ placeholder, options, styles, ...props }: FieldHookConfig<string> & SelectProps): import("react/jsx-runtime").JSX.Element;
10
+ declare function Select({ placeholder, options, styles, shape, ...props }: SelectProps): import("react/jsx-runtime").JSX.Element;
8
11
  export default Select;
@@ -1,8 +1,11 @@
1
1
  import { FieldHookConfig } from "formik";
2
- export interface TextAreaProps {
2
+ import { Shape } from "../../../data/enums";
3
+ export interface TextAreaProps extends FieldHookConfig<string> {
4
+ name: string;
3
5
  placeholder: string;
4
6
  limit: number;
5
7
  styles?: string;
8
+ shape?: keyof typeof Shape;
6
9
  }
7
- declare function TextArea({ placeholder, limit, styles, ...props }: FieldHookConfig<string> & TextAreaProps): import("react/jsx-runtime").JSX.Element;
10
+ declare function TextArea({ placeholder, limit, styles, shape, ...props }: TextAreaProps): import("react/jsx-runtime").JSX.Element;
8
11
  export default TextArea;
@@ -0,0 +1,7 @@
1
+ import React from "react";
2
+ import { EUIConfigs } from "./EUITypes";
3
+ export declare const EUIProvider: ({ config, children, }: {
4
+ config: EUIConfigs;
5
+ children: React.ReactNode;
6
+ }) => import("react/jsx-runtime").JSX.Element;
7
+ export declare const useEUIConfig: () => EUIConfigs | null;
@@ -0,0 +1,10 @@
1
+ import { Variant, Shape, Size } from "../../data/enums";
2
+ export interface EUIComponentDefaults {
3
+ variant?: keyof typeof Variant;
4
+ size?: keyof typeof Size;
5
+ shape?: keyof typeof Shape;
6
+ styles?: string;
7
+ }
8
+ export interface EUIConfigs {
9
+ global?: EUIComponentDefaults;
10
+ }
@@ -0,0 +1,3 @@
1
+ export * from "./EUIProvider";
2
+ export * from "./EUITypes";
3
+ export * from "./resolveGlobalConfigs";
@@ -0,0 +1,2 @@
1
+ import { EUIConfigs } from "./EUITypes";
2
+ export declare function resolveWithGlobal<T>(config: EUIConfigs | null, props: T, defaults: Partial<T>): T;
@@ -1,5 +1,6 @@
1
1
  export * from "./data-display";
2
2
  export * from "./data-entry";
3
+ export * from "./eui";
3
4
  export * from "./feedback";
4
5
  export * from "./general";
5
6
  export * from "./layout";
@@ -1,4 +1,5 @@
1
1
  import React from "react";
2
+ import { Shape } from "../../../data/enums";
2
3
  export interface ModalProps {
3
4
  title: string;
4
5
  show: boolean;
@@ -10,6 +11,7 @@ export interface ModalProps {
10
11
  isError?: boolean;
11
12
  error?: unknown;
12
13
  styles?: string;
14
+ shape?: keyof typeof Shape;
13
15
  }
14
- declare function Modal({ title, show, handleOnClose, children, isLoading, isSuccess, isError, error, styles, enableCloseOnClickOutside, }: ModalProps): import("react/jsx-runtime").JSX.Element;
16
+ declare function Modal({ title, show, handleOnClose, children, isLoading, isSuccess, isError, error, styles, enableCloseOnClickOutside, shape, }: ModalProps): import("react/jsx-runtime").JSX.Element;
15
17
  export default Modal;