plainframe-ui 0.1.74 → 0.1.76
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/dist/index.d.ts +7 -6
- package/dist/index.js +8 -8
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1036,17 +1036,18 @@ declare const Rotate: React.FC<RotateProps>;
|
|
|
1036
1036
|
|
|
1037
1037
|
type Align$1 = "left" | "center" | "right";
|
|
1038
1038
|
type Variant$4 = "subtle" | "outlined" | "ghost";
|
|
1039
|
-
/** DEAD SIMPLE OPTION */
|
|
1040
1039
|
type SelectItemProps<T = unknown> = {
|
|
1041
1040
|
value: T;
|
|
1041
|
+
label?: React.ReactNode;
|
|
1042
|
+
textValue?: string;
|
|
1042
1043
|
startIcon?: React.ReactNode;
|
|
1043
1044
|
endIcon?: React.ReactNode;
|
|
1045
|
+
disabled?: boolean;
|
|
1046
|
+
optionCss?: Interpolation<Theme>;
|
|
1047
|
+
css?: Interpolation<Theme>;
|
|
1048
|
+
className?: string;
|
|
1044
1049
|
children?: React.ReactNode;
|
|
1045
1050
|
};
|
|
1046
|
-
/**
|
|
1047
|
-
* Declarative option: Select reads these props and renders MenuItem internally.
|
|
1048
|
-
* This component itself renders nothing.
|
|
1049
|
-
*/
|
|
1050
1051
|
declare const SelectItem: {
|
|
1051
1052
|
<T>(props: SelectItemProps<T>): JSX.Element | null;
|
|
1052
1053
|
displayName: string;
|
|
@@ -1076,7 +1077,7 @@ type SelectProps<T = unknown> = {
|
|
|
1076
1077
|
children: React.ReactNode;
|
|
1077
1078
|
className?: string;
|
|
1078
1079
|
menuSize?: "sm" | "md";
|
|
1079
|
-
triggerRender?: (selected:
|
|
1080
|
+
triggerRender?: (selected: string | string[] | undefined) => React.ReactNode;
|
|
1080
1081
|
};
|
|
1081
1082
|
declare const Select: {
|
|
1082
1083
|
<T>({ value, defaultValue, onChange, label, placeholder, startIcon, endIcon, multiple, disabled, size, variant, fullWidth, width, menuAlign, menuWidth, menuMaxHeight, wrapperCss, labelCss, triggerCss, menuCss, optionCss, children, className, menuSize, triggerRender, }: SelectProps<T>): JSX.Element;
|