pollination-react-io 1.74.3 → 1.75.0
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/build/SendGeometry/SendGeometry.types.d.ts +0 -3
- package/build/SendModel/SendModel.types.d.ts +0 -3
- package/build/SendResults/SendResults.types.d.ts +0 -3
- package/build/atoms/BaseDropdown/BaseDropdown.d.ts +22 -0
- package/build/index.esm.js +7066 -968
- package/build/index.esm.js.map +1 -1
- package/build/index.js +7062 -963
- package/build/index.js.map +1 -1
- package/package.json +2 -1
@@ -1,4 +1,3 @@
|
|
1
|
-
import { CSSProperties } from "react";
|
2
1
|
export declare enum Action {
|
3
2
|
add = "add",
|
4
3
|
delete = "delete",
|
@@ -16,8 +15,6 @@ export interface SendGeometryProps {
|
|
16
15
|
optionsConfig?: {
|
17
16
|
[index in Action]: boolean;
|
18
17
|
};
|
19
|
-
buttonLabel?: string;
|
20
18
|
geometryOptions?: GeometryOptions;
|
21
|
-
style?: CSSProperties;
|
22
19
|
}
|
23
20
|
export {};
|
@@ -1,4 +1,3 @@
|
|
1
|
-
import { CSSProperties } from "react";
|
2
1
|
export declare enum Action {
|
3
2
|
add = "add",
|
4
3
|
delete = "delete",
|
@@ -14,6 +13,4 @@ export interface SendModelProps {
|
|
14
13
|
optionsConfig?: {
|
15
14
|
[index in Action]: boolean;
|
16
15
|
};
|
17
|
-
buttonLabel?: string;
|
18
|
-
style?: CSSProperties;
|
19
16
|
}
|
@@ -1,4 +1,3 @@
|
|
1
|
-
import { CSSProperties } from 'react';
|
2
1
|
import { XOR } from '../ts-utils';
|
3
2
|
export declare enum Action {
|
4
3
|
add = "add",
|
@@ -17,8 +16,6 @@ export interface SendResultsProps {
|
|
17
16
|
optionsConfig?: {
|
18
17
|
[index in Action]: boolean;
|
19
18
|
};
|
20
|
-
buttonLabel?: string;
|
21
19
|
geometryOptions?: ResultsOptions;
|
22
|
-
style?: CSSProperties;
|
23
20
|
}
|
24
21
|
export {};
|
@@ -0,0 +1,22 @@
|
|
1
|
+
import 'rc-dropdown/assets/index.css';
|
2
|
+
import React, { CSSProperties, FC, ReactNode } from 'react';
|
3
|
+
export declare type Option = {
|
4
|
+
type: 'button' | 'label' | 'link';
|
5
|
+
id: string;
|
6
|
+
label: string;
|
7
|
+
icon?: ReactNode;
|
8
|
+
to?: string;
|
9
|
+
};
|
10
|
+
export interface BaseDropdownProps {
|
11
|
+
options: Option[];
|
12
|
+
children?: any;
|
13
|
+
baseTrigger?: React.ReactNode;
|
14
|
+
overlayStyle?: CSSProperties;
|
15
|
+
childOverlayStyle?: CSSProperties;
|
16
|
+
triggerStyle?: CSSProperties;
|
17
|
+
placement?: 'bottomCenter' | 'bottomRight' | 'bottomLeft';
|
18
|
+
icon?: React.ReactNode;
|
19
|
+
onSelect?: (option: Option) => any;
|
20
|
+
disabled?: boolean;
|
21
|
+
}
|
22
|
+
export declare const BaseDropdown: FC<BaseDropdownProps>;
|