plainframe-ui 0.1.75 → 0.1.77
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 +4 -21
- package/dist/index.js +10 -10
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1036,30 +1036,15 @@ 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;
|
|
1042
|
-
|
|
1043
|
-
label?: React.ReactNode;
|
|
1044
|
-
/**
|
|
1045
|
-
* String label used for trigger title, multi join, etc.
|
|
1046
|
-
* If omitted, we’ll try:
|
|
1047
|
-
* - label if it's a string
|
|
1048
|
-
* - firstText(children)
|
|
1049
|
-
*/
|
|
1050
|
-
textValue?: string;
|
|
1041
|
+
label?: string;
|
|
1051
1042
|
startIcon?: React.ReactNode;
|
|
1052
1043
|
endIcon?: React.ReactNode;
|
|
1053
|
-
|
|
1054
|
-
/** Style for the option row (MenuItem), not for trigger. */
|
|
1044
|
+
children?: React.ReactNode;
|
|
1055
1045
|
css?: Interpolation<Theme>;
|
|
1056
1046
|
className?: string;
|
|
1057
|
-
children?: React.ReactNode;
|
|
1058
1047
|
};
|
|
1059
|
-
/**
|
|
1060
|
-
* Declarative option: Select reads these props and renders MenuItem internally.
|
|
1061
|
-
* This component itself renders nothing.
|
|
1062
|
-
*/
|
|
1063
1048
|
declare const SelectItem: {
|
|
1064
1049
|
<T>(props: SelectItemProps<T>): JSX.Element | null;
|
|
1065
1050
|
displayName: string;
|
|
@@ -1081,8 +1066,6 @@ type SelectProps<T = unknown> = {
|
|
|
1081
1066
|
menuAlign?: Align$1;
|
|
1082
1067
|
menuWidth?: number | string;
|
|
1083
1068
|
menuMaxHeight?: number | string;
|
|
1084
|
-
/** alias for wrapperCss (so <Select css={...} /> works) */
|
|
1085
|
-
css?: Interpolation<Theme>;
|
|
1086
1069
|
wrapperCss?: Interpolation<Theme>;
|
|
1087
1070
|
labelCss?: Interpolation<Theme>;
|
|
1088
1071
|
triggerCss?: Interpolation<Theme>;
|
|
@@ -1091,10 +1074,10 @@ type SelectProps<T = unknown> = {
|
|
|
1091
1074
|
children: React.ReactNode;
|
|
1092
1075
|
className?: string;
|
|
1093
1076
|
menuSize?: "sm" | "md";
|
|
1094
|
-
triggerRender?: (selected:
|
|
1077
|
+
triggerRender?: (selected: React.ReactNode | React.ReactNode[] | undefined) => React.ReactNode;
|
|
1095
1078
|
};
|
|
1096
1079
|
declare const Select: {
|
|
1097
|
-
<T>({ value, defaultValue, onChange, label, placeholder, startIcon, endIcon, multiple, disabled, size, variant, fullWidth, width, menuAlign, menuWidth, menuMaxHeight,
|
|
1080
|
+
<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;
|
|
1098
1081
|
displayName: string;
|
|
1099
1082
|
};
|
|
1100
1083
|
|