@oliasoft-open-source/react-ui-library 10.7.0 → 10.8.0-beta-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/dist/index.d.ts CHANGED
@@ -959,12 +959,27 @@ export declare interface IMentionsConfig {
959
959
 
960
960
  /** Top-level `menu` prop. `sections` may be custom ReactNode. */
961
961
  export declare interface IMenuMenu {
962
- trigger: TTriggerType | string;
962
+ /**
963
+ * Trigger appearance. Use `'Search'` for a Select-style search input that filters options
964
+ * (structure is preserved: submenus stay visible when any descendant matches). Not supported
965
+ * for custom `sections` content — when `sections` is a React element, `'Search'` is ignored.
966
+ * With `'Search'`, `component` is unused.
967
+ */
968
+ trigger: TMenuTriggerType | string;
963
969
  title?: string;
964
970
  colored?: boolean | string;
965
971
  basic?: boolean;
966
972
  small?: boolean;
973
+ /**
974
+ * Selected / closed-state value shown in the Search trigger while the input is empty.
975
+ * For other triggers, the button/text label.
976
+ */
967
977
  label?: ReactNode | string;
978
+ /**
979
+ * Fallback text in the Search trigger when `label` is empty and the user has not typed.
980
+ * Styled like Select's placeholder. Unused for other trigger types.
981
+ */
982
+ placeholder?: ReactNode;
968
983
  component?: ReactNode;
969
984
  sections?: ReactNode | IMenuSection[];
970
985
  placement?: string;
@@ -991,6 +1006,11 @@ export declare interface IMenuProps {
991
1006
  warning?: string;
992
1007
  tabIndex?: number;
993
1008
  offset?: number;
1009
+ /**
1010
+ * With the Search trigger, applies Select's in-table input chrome (transparent background,
1011
+ * border only on hover/focus/error/warning). No-op for other trigger types.
1012
+ */
1013
+ isInTable?: boolean;
994
1014
  }
995
1015
 
996
1016
  export declare interface IMenuSection {
@@ -2132,7 +2152,7 @@ export declare const Mention: ({ children }: {
2132
2152
  children: ReactNode;
2133
2153
  }) => JSX.Element;
2134
2154
 
2135
- export declare const Menu: ({ menu, width, disabled, badgeTitle, badgeDot, loading, closeOnOptionClick, maxHeight, testId, open: openProp, setOpen: setOpenProp, tooltip, error, warning, tabIndex, active, groupOrder, offset, }: IMenuProps) => JSX.Element;
2155
+ export declare const Menu: ({ menu, width, disabled, badgeTitle, badgeDot, loading, closeOnOptionClick, maxHeight, testId, open: openProp, setOpen: setOpenProp, tooltip, error, warning, tabIndex, active, groupOrder, offset, isInTable, }: IMenuProps) => JSX.Element;
2136
2156
 
2137
2157
  export declare enum MenuCarat {
2138
2158
  FALSE = "false",
@@ -2140,6 +2160,15 @@ export declare enum MenuCarat {
2140
2160
  DOWN = "down"
2141
2161
  }
2142
2162
 
2163
+ /** Menu trigger variants. Extends shared `TriggerType` with Search. */
2164
+ export declare enum MenuTriggerType {
2165
+ TEXT = "Text",
2166
+ BUTTON = "Button",
2167
+ DROP_DOWN_BUTTON = "DropDownButton",
2168
+ COMPONENT = "Component",
2169
+ SEARCH = "Search"
2170
+ }
2171
+
2143
2172
  export declare enum MenuType {
2144
2173
  HEADING = "Heading",
2145
2174
  DIVIDER = "Divider",
@@ -2351,6 +2380,8 @@ declare type TMenuElement = TBaseElementProps & {
2351
2380
  sections?: any[] | ReactNode;
2352
2381
  };
2353
2382
 
2383
+ export declare type TMenuTriggerType = 'Text' | 'Button' | 'DropDownButton' | 'Component' | 'Search';
2384
+
2354
2385
  export declare type TMenuType = 'Heading' | 'Divider' | 'Option' | 'Menu';
2355
2386
 
2356
2387
  export declare type TMessageType = 'Info' | 'Success' | 'Warning' | 'Error';