pollination-react-io 1.0.0 → 1.1.2
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/GetGeometry/GetGeometry.types.d.ts +8 -0
- package/build/GetModel/GetModel.types.d.ts +8 -0
- package/build/SendGeometry/SendGeometry.types.d.ts +12 -1
- package/build/SendModel/SendModel.types.d.ts +12 -1
- package/build/atoms/ConditionalWrapper/index.d.ts +7 -5
- package/build/atoms/Dropdown/Dropdown.d.ts +2 -1
- package/build/atoms/InputLabel/InputLabel.d.ts +4 -0
- package/build/atoms/InputLabel/InputLabel.types.d.ts +3 -0
- package/build/atoms/SettingsButton/index.d.ts +2 -0
- package/build/atoms/index.d.ts +1 -0
- package/build/index.esm.js +459 -214
- package/build/index.esm.js.map +1 -1
- package/build/index.js +459 -214
- package/build/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,3 +1,11 @@
|
|
|
1
|
+
export declare enum GetModelActions {
|
|
2
|
+
selection = "selection",
|
|
3
|
+
subscribe = "subscribe"
|
|
4
|
+
}
|
|
1
5
|
export interface GetGeometryProps {
|
|
2
6
|
setParentState?: (data: any) => void;
|
|
7
|
+
optionsConfig?: {
|
|
8
|
+
[index in GetModelActions]: boolean;
|
|
9
|
+
};
|
|
10
|
+
buttonLabel?: string;
|
|
3
11
|
}
|
|
@@ -1,3 +1,11 @@
|
|
|
1
|
+
export declare enum GetModelActions {
|
|
2
|
+
selection = "selection",
|
|
3
|
+
subscribe = "subscribe"
|
|
4
|
+
}
|
|
1
5
|
export interface GetModelProps {
|
|
2
6
|
setParentState?: (data: any) => any;
|
|
7
|
+
optionsConfig?: {
|
|
8
|
+
[index in GetModelActions]: boolean;
|
|
9
|
+
};
|
|
10
|
+
buttonLabel?: string;
|
|
3
11
|
}
|
|
@@ -1,5 +1,16 @@
|
|
|
1
|
+
export declare enum Action {
|
|
2
|
+
add = "add",
|
|
3
|
+
delete = "delete",
|
|
4
|
+
preview = "preview",
|
|
5
|
+
clear = "clear",
|
|
6
|
+
subscribePreview = "subscribe-preview"
|
|
7
|
+
}
|
|
1
8
|
export interface SendGeometryProps {
|
|
2
9
|
geometry?: string[];
|
|
3
|
-
defaultAction?:
|
|
10
|
+
defaultAction?: Action;
|
|
4
11
|
defaultKey?: string;
|
|
12
|
+
optionsConfig?: {
|
|
13
|
+
[index in Action]: boolean;
|
|
14
|
+
};
|
|
15
|
+
buttonLabel?: string;
|
|
5
16
|
}
|
|
@@ -1,5 +1,16 @@
|
|
|
1
|
+
export declare enum Action {
|
|
2
|
+
add = "add",
|
|
3
|
+
delete = "delete",
|
|
4
|
+
preview = "preview",
|
|
5
|
+
clear = "clear",
|
|
6
|
+
subscribePreview = "subscribe-preview"
|
|
7
|
+
}
|
|
1
8
|
export interface SendModelProps {
|
|
2
9
|
hbjson?: object;
|
|
3
|
-
defaultAction?:
|
|
10
|
+
defaultAction?: Action;
|
|
4
11
|
defaultKey?: string;
|
|
12
|
+
optionsConfig?: {
|
|
13
|
+
[index in Action]: boolean;
|
|
14
|
+
};
|
|
15
|
+
buttonLabel?: string;
|
|
5
16
|
}
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
children: any;
|
|
5
|
-
}
|
|
1
|
+
import { FC, ReactNode } from 'react';
|
|
2
|
+
interface ConditionalWrapperProps {
|
|
3
|
+
condition: boolean;
|
|
4
|
+
wrapper: (children: ReactNode) => any;
|
|
5
|
+
}
|
|
6
|
+
export declare const ConditionalWrapper: FC<ConditionalWrapperProps>;
|
|
7
|
+
export {};
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import React, { FC } from 'react';
|
|
1
|
+
import React, { FC, ReactNode } from 'react';
|
|
2
2
|
import * as DropdownMenu from '@radix-ui/react-dropdown-menu';
|
|
3
3
|
import './Dropdown.scss';
|
|
4
4
|
export declare type Option = {
|
|
5
5
|
type: 'checkbox' | 'radio' | 'button' | 'label' | 'link';
|
|
6
6
|
id: string;
|
|
7
7
|
label: string;
|
|
8
|
+
icon?: ReactNode;
|
|
8
9
|
checked?: boolean;
|
|
9
10
|
disabled?: boolean;
|
|
10
11
|
onSelect?: (option: Option) => void;
|
|
@@ -5,7 +5,9 @@ export interface SettingsButtonProps {
|
|
|
5
5
|
onClick: () => void;
|
|
6
6
|
label: string | ReactNode;
|
|
7
7
|
options?: OptionGroup[];
|
|
8
|
+
asButtons?: boolean;
|
|
8
9
|
disabled?: boolean;
|
|
9
10
|
triggerIcon?: React.ReactNode;
|
|
11
|
+
helpText?: string;
|
|
10
12
|
}
|
|
11
13
|
export declare const SettingsButton: FC<SettingsButtonProps>;
|
package/build/atoms/index.d.ts
CHANGED
|
@@ -3,6 +3,7 @@ export * from './ConditionalWrapper';
|
|
|
3
3
|
export * from './ComboBox/ComboBox';
|
|
4
4
|
export * from './Dropdown/Dropdown';
|
|
5
5
|
export * from './FileInput/FileInput';
|
|
6
|
+
export * from './InputLabel/InputLabel';
|
|
6
7
|
export * from './Label/Label';
|
|
7
8
|
export * from './Logo';
|
|
8
9
|
export * from './SettingsButton';
|