@reltio/dashboard 1.4.2220 → 1.4.2222

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,13 +1,13 @@
1
1
  {
2
2
  "name": "@reltio/dashboard",
3
- "version": "1.4.2220",
3
+ "version": "1.4.2222",
4
4
  "license": "SEE LICENSE IN LICENSE FILE",
5
5
  "main": "bundle.js",
6
6
  "types": "./types/index.d.ts",
7
7
  "dependencies": {
8
- "@reltio/components": "^1.4.2182",
9
- "@reltio/mdm-module": "^1.4.2030",
10
- "@reltio/mdm-sdk": "^1.4.1992",
8
+ "@reltio/components": "^1.4.2184",
9
+ "@reltio/mdm-module": "^1.4.2031",
10
+ "@reltio/mdm-sdk": "^1.4.1993",
11
11
  "object-hash": "^2.1.1"
12
12
  },
13
13
  "peerDependencies": {
@@ -0,0 +1,29 @@
1
+ import React, { ForwardedRef } from 'react';
2
+ import { TextFieldProps } from '@mui/material/TextField';
3
+ import { PrimitiveValue } from '@reltio/mdm-sdk';
4
+ type Props<T> = {
5
+ value?: T;
6
+ label: string;
7
+ options?: T[];
8
+ getOptions?: (inputValue: string) => Promise<void | T[]>;
9
+ onChange?: (value: T) => void;
10
+ onCreate?: (value: PrimitiveValue, group?: string) => void;
11
+ onClear?: () => void;
12
+ createLabel?: string;
13
+ canCreateOption?: (id?: string) => boolean;
14
+ components?: {
15
+ Group?: React.ElementType;
16
+ ClearIndicator?: React.ElementType;
17
+ Option?: React.ElementType;
18
+ GroupHeading?: React.ElementType;
19
+ SingleValue?: React.ElementType;
20
+ [key: string]: React.ElementType;
21
+ };
22
+ textFieldInputRef?: ForwardedRef<HTMLInputElement>;
23
+ TextFieldProps?: TextFieldProps;
24
+ height?: number;
25
+ classes?: Record<string, string>;
26
+ [key: string]: unknown;
27
+ };
28
+ export declare const DropDownSelector: <T>({ value, label, options, getOptions, createLabel, height, onChange, onCreate, canCreateOption, onClear, components, textFieldInputRef, TextFieldProps, classes, ...otherProps }: Props<T>) => React.JSX.Element;
29
+ export {};
@@ -0,0 +1,16 @@
1
+ import React, { ReactNode } from 'react';
2
+ type Props = {
3
+ selectProps: {
4
+ createLabel?: string;
5
+ canCreateOption: () => boolean;
6
+ inputValue: string;
7
+ components?: {
8
+ Group?: React.ElementType;
9
+ [key: string]: React.ElementType;
10
+ };
11
+ onCreate: (inputValue: string) => void;
12
+ };
13
+ children: ReactNode;
14
+ };
15
+ export declare const Menu: (props: Props) => React.JSX.Element;
16
+ export {};
@@ -0,0 +1 @@
1
+ export { Menu } from './Menu';
@@ -0,0 +1 @@
1
+ export declare const useStyles: (props?: any) => import("@mui/styles").ClassNameMap<"addLabel" | "addIcon">;
@@ -0,0 +1,9 @@
1
+ export function SingleValue(props: any): React.JSX.Element;
2
+ export namespace SingleValue {
3
+ namespace propTypes {
4
+ let children: PropTypes.Requireable<PropTypes.ReactNodeLike>;
5
+ let innerProps: PropTypes.Requireable<object>;
6
+ }
7
+ }
8
+ import React from 'react';
9
+ import PropTypes from 'prop-types';
@@ -0,0 +1 @@
1
+ export { SingleValue } from './SingleValue';
@@ -0,0 +1 @@
1
+ export declare const useStyles: (props?: any) => import("@mui/styles").ClassNameMap<"singleValue">;
@@ -0,0 +1,16 @@
1
+ export const useStyles: (props?: any) => import("@mui/styles").ClassNameMap<"control" | "dropdownIndicator" | "formControl" | "inputLabel" | "valueContainer" | "filledInputRoot" | "filledInputUnderline">;
2
+ export namespace customStyles {
3
+ function menu(baseStyles: any): any;
4
+ function menuList(baseStyles: any): any;
5
+ function group(baseStyles: any): any;
6
+ function input(baseStyles: any): any;
7
+ function option(baseStyles: any): any;
8
+ }
9
+ export namespace overloadMenuListStyle {
10
+ export function menuList_1(baseStyles: any): any;
11
+ export { menuList_1 as menuList };
12
+ }
13
+ export namespace withoutLabelInputStyle {
14
+ export function input_1(baseStyles: any): any;
15
+ export { input_1 as input };
16
+ }