@edvisor/product-language 0.5.3 → 0.5.5
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/index.js +576 -656
- package/lib/components/card/index.d.ts +1 -0
- package/lib/components/select/types.d.ts +2 -1
- package/lib/helpers/index.d.ts +1 -0
- package/lib/helpers/isReactElementOfType.d.ts +8 -0
- package/lib/helpers/nothing.d.ts +2 -0
- package/lib/helpers/slots.d.ts +0 -6
- package/package.json +1 -1
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { FC } from '@helpers';
|
|
2
|
+
import { CSSProperties } from 'react';
|
|
3
3
|
export interface ISelectProps<T = any> {
|
|
4
4
|
className?: string;
|
|
5
|
+
style?: CSSProperties;
|
|
5
6
|
options?: IOption<T>[];
|
|
6
7
|
value?: T | T[];
|
|
7
8
|
placeholder?: string;
|
package/lib/helpers/index.d.ts
CHANGED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { PureComponent, ReactElement } from 'react';
|
|
2
|
+
import { StyledComponent } from 'styled-components';
|
|
3
|
+
import { FC } from './generic-types';
|
|
4
|
+
export declare const isReactElementOfType: <P extends {
|
|
5
|
+
children?: import("react").ReactNode;
|
|
6
|
+
}>(component: (FC<P, {}> | typeof PureComponent | StyledComponent<FC<P, {}>, any, {}, never>) & {
|
|
7
|
+
target?: any;
|
|
8
|
+
}) => (element?: any) => element is ReactElement<P, string | import("react").JSXElementConstructor<any>>;
|
package/lib/helpers/nothing.d.ts
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
import { FC, PropsWithChildren } from './generic-types';
|
|
2
3
|
export declare const Nothing: FC;
|
|
4
|
+
export declare const isNothing: (element?: any) => element is import("react").ReactElement<{}, string | import("react").JSXElementConstructor<any>>;
|
|
3
5
|
export declare function maybeRender<T>(prop: T, JSX: JSX.Element): JSX.Element;
|
|
4
6
|
interface IIfProps {
|
|
5
7
|
is: unknown;
|
package/lib/helpers/slots.d.ts
CHANGED
|
@@ -1,11 +1,5 @@
|
|
|
1
1
|
import { CSSProperties, PureComponent, ReactElement, ReactNode } from 'react';
|
|
2
|
-
import { StyledComponent } from 'styled-components';
|
|
3
2
|
import { FC, PropsWithChildren } from './generic-types';
|
|
4
|
-
export declare const isReactElementOfType: <P extends {
|
|
5
|
-
children?: ReactNode;
|
|
6
|
-
}>(component: (FC<P, {}> | typeof Slot | StyledComponent<FC<P, {}>, any, {}, never>) & {
|
|
7
|
-
target?: any;
|
|
8
|
-
}) => (element?: any) => element is ReactElement<P, string | import("react").JSXElementConstructor<any>>;
|
|
9
3
|
export declare const isSlotOfType: <T extends typeof Slot>(type: T | FC<{}, {}>) => (obj?: any) => obj is T;
|
|
10
4
|
export declare class Slot<T = unknown> extends PureComponent<PropsWithChildren<T>> {
|
|
11
5
|
render(): PropsWithChildren<T>["children"] | undefined;
|