@oliasoft-open-source/react-ui-library 10.8.0-beta-1 → 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
@@ -732,6 +732,7 @@ export declare interface IInputGroupAddonProps {
732
732
  children: ReactNode;
733
733
  groupOrder?: TGroupOrder;
734
734
  small?: boolean;
735
+ borderless?: boolean;
735
736
  }
736
737
 
737
738
  export declare interface IInputGroupProps {
@@ -748,6 +749,8 @@ export declare interface IInputProps {
748
749
  name?: string;
749
750
  type?: string;
750
751
  icon?: ReactNode;
752
+ leftSlot?: ReactNode;
753
+ rightSlot?: ReactNode;
751
754
  onChange?: TChangeEventHandler;
752
755
  onKeyPress?: KeyboardEventHandler<HTMLInputElement>;
753
756
  onFocus?: (evt: FocusEvent_2<HTMLInputElement>) => void;
@@ -956,11 +959,27 @@ export declare interface IMentionsConfig {
956
959
 
957
960
  /** Top-level `menu` prop. `sections` may be custom ReactNode. */
958
961
  export declare interface IMenuMenu {
959
- 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;
960
969
  title?: string;
961
970
  colored?: boolean | string;
971
+ basic?: boolean;
962
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
+ */
963
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;
964
983
  component?: ReactNode;
965
984
  sections?: ReactNode | IMenuSection[];
966
985
  placement?: string;
@@ -988,12 +1007,10 @@ export declare interface IMenuProps {
988
1007
  tabIndex?: number;
989
1008
  offset?: number;
990
1009
  /**
991
- * Replaces the trigger with a Select-style search input that filters options (structure is
992
- * preserved: submenus stay visible when any descendant matches). `menu.label` is shown in the
993
- * input when closed. Not supported for custom `sections` content.
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.
994
1012
  */
995
- searchable?: boolean;
996
- searchNoResultsText?: string;
1013
+ isInTable?: boolean;
997
1014
  }
998
1015
 
999
1016
  export declare interface IMenuSection {
@@ -1118,7 +1135,7 @@ export declare const Input: default_2.ForwardRefExoticComponent<IInputProps & de
1118
1135
 
1119
1136
  export declare const InputGroup: ({ children, small, width, isInTable: isInTableProp, }: IInputGroupProps) => ReactElement;
1120
1137
 
1121
- export declare const InputGroupAddon: ({ children, groupOrder, small }: IInputGroupAddonProps) => default_2.ReactElement;
1138
+ export declare const InputGroupAddon: ({ children, groupOrder, small, borderless, }: IInputGroupAddonProps) => default_2.ReactElement;
1122
1139
 
1123
1140
  export declare enum InputReaderMethods {
1124
1141
  READ_AS_TEXT = "readAsText",
@@ -1185,6 +1202,8 @@ export declare interface INumberInputProps {
1185
1202
  roundDisplayValue?: (args: TStringOrNumber) => TStringOrNumber;
1186
1203
  disableInternalErrorValidationMessages?: boolean;
1187
1204
  disableValidationOnFocus?: boolean;
1205
+ leftSlot?: ReactNode;
1206
+ rightSlot?: ReactNode;
1188
1207
  }
1189
1208
 
1190
1209
  declare interface IOnRowClickFunction {
@@ -2133,7 +2152,7 @@ export declare const Mention: ({ children }: {
2133
2152
  children: ReactNode;
2134
2153
  }) => JSX.Element;
2135
2154
 
2136
- export declare const Menu: ({ menu, width, disabled, badgeTitle, badgeDot, loading, closeOnOptionClick, maxHeight, testId, open: openProp, setOpen: setOpenProp, tooltip, error, warning, tabIndex, active, groupOrder, offset, searchable, searchNoResultsText, }: 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;
2137
2156
 
2138
2157
  export declare enum MenuCarat {
2139
2158
  FALSE = "false",
@@ -2141,6 +2160,15 @@ export declare enum MenuCarat {
2141
2160
  DOWN = "down"
2142
2161
  }
2143
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
+
2144
2172
  export declare enum MenuType {
2145
2173
  HEADING = "Heading",
2146
2174
  DIVIDER = "Divider",
@@ -2168,7 +2196,7 @@ declare interface NavigationEventArgs {
2168
2196
  endTime: number;
2169
2197
  }
2170
2198
 
2171
- export declare const NumberInput: ({ name, placeholder, disabled, error, left, small, width, value, onChange, onFocus, onBlur, selectOnFocus, tabIndex, testId, tooltip, warning, validationCallback, allowEmpty, isInTable, groupOrder, enableCosmeticRounding, enableDisplayRounding, roundDisplayValue, disableInternalErrorValidationMessages, disableValidationOnFocus, }: INumberInputProps) => JSX.Element;
2199
+ export declare const NumberInput: ({ name, placeholder, disabled, error, left, small, width, value, onChange, onFocus, onBlur, selectOnFocus, tabIndex, testId, tooltip, warning, validationCallback, allowEmpty, isInTable, groupOrder, enableCosmeticRounding, enableDisplayRounding, roundDisplayValue, disableInternalErrorValidationMessages, disableValidationOnFocus, leftSlot, rightSlot, }: INumberInputProps) => JSX.Element;
2172
2200
 
2173
2201
  export declare const OptionDropdown: ({ name, disabled, label, options, onChange, small, showHeader, maxHeight, testId, }: IOptionDropdownProps) => ReactElement;
2174
2202
 
@@ -2352,6 +2380,8 @@ declare type TMenuElement = TBaseElementProps & {
2352
2380
  sections?: any[] | ReactNode;
2353
2381
  };
2354
2382
 
2383
+ export declare type TMenuTriggerType = 'Text' | 'Button' | 'DropDownButton' | 'Component' | 'Search';
2384
+
2355
2385
  export declare type TMenuType = 'Heading' | 'Divider' | 'Option' | 'Menu';
2356
2386
 
2357
2387
  export declare type TMessageType = 'Info' | 'Success' | 'Warning' | 'Error';