plainframe-ui 0.1.73 → 0.1.75

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 CHANGED
@@ -1039,8 +1039,21 @@ type Variant$4 = "subtle" | "outlined" | "ghost";
1039
1039
  /** DEAD SIMPLE OPTION */
1040
1040
  type SelectItemProps<T = unknown> = {
1041
1041
  value: T;
1042
+ /** What should appear in the trigger when this is selected. */
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;
1042
1051
  startIcon?: React.ReactNode;
1043
1052
  endIcon?: React.ReactNode;
1053
+ disabled?: boolean;
1054
+ /** Style for the option row (MenuItem), not for trigger. */
1055
+ css?: Interpolation<Theme>;
1056
+ className?: string;
1044
1057
  children?: React.ReactNode;
1045
1058
  };
1046
1059
  /**
@@ -1068,6 +1081,8 @@ type SelectProps<T = unknown> = {
1068
1081
  menuAlign?: Align$1;
1069
1082
  menuWidth?: number | string;
1070
1083
  menuMaxHeight?: number | string;
1084
+ /** alias for wrapperCss (so <Select css={...} /> works) */
1085
+ css?: Interpolation<Theme>;
1071
1086
  wrapperCss?: Interpolation<Theme>;
1072
1087
  labelCss?: Interpolation<Theme>;
1073
1088
  triggerCss?: Interpolation<Theme>;
@@ -1076,10 +1091,10 @@ type SelectProps<T = unknown> = {
1076
1091
  children: React.ReactNode;
1077
1092
  className?: string;
1078
1093
  menuSize?: "sm" | "md";
1079
- triggerRender?: (selected: React.ReactNode | React.ReactNode[] | undefined) => React.ReactNode;
1094
+ triggerRender?: (selected: string | string[] | undefined) => React.ReactNode;
1080
1095
  };
1081
1096
  declare const Select: {
1082
- <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;
1097
+ <T>({ value, defaultValue, onChange, label, placeholder, startIcon, endIcon, multiple, disabled, size, variant, fullWidth, width, menuAlign, menuWidth, menuMaxHeight, css: rootCss, wrapperCss, labelCss, triggerCss, menuCss, optionCss, children, className, menuSize, triggerRender, }: SelectProps<T>): JSX.Element;
1083
1098
  displayName: string;
1084
1099
  };
1085
1100