@paygreen/pgui 3.0.4 → 3.0.5

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.
@@ -13,7 +13,7 @@ export interface SelectOptionType {
13
13
  /**
14
14
  * Props for single-select mode
15
15
  */
16
- export interface SingleSelectProps extends Omit<ReactSelectProps<SelectOptionType, false>, 'options' | 'isMulti' | 'onChange' | 'value'> {
16
+ export interface SingleSelectProps extends Omit<ReactSelectProps<SelectOptionType, false>, 'options' | 'isMulti' | 'onChange' | 'value' | 'noOptionsMessage'> {
17
17
  /** Array of options to display */
18
18
  options?: SelectOptionType[];
19
19
  /** Enable multi-selection - must be false or undefined */
@@ -35,11 +35,13 @@ export interface SingleSelectProps extends Omit<ReactSelectProps<SelectOptionTyp
35
35
  /** Whether the select is in invalid state */
36
36
  invalid?: boolean;
37
37
  disabled?: boolean;
38
+ /** Custom message to display when no options are available */
39
+ noOptionsMessage?: string;
38
40
  }
39
41
  /**
40
42
  * Props for multi-select mode
41
43
  */
42
- export interface MultiSelectProps extends Omit<ReactSelectProps<SelectOptionType, true>, 'options' | 'isMulti' | 'onChange' | 'value'> {
44
+ export interface MultiSelectProps extends Omit<ReactSelectProps<SelectOptionType, true>, 'options' | 'isMulti' | 'onChange' | 'value' | 'noOptionsMessage'> {
43
45
  /** Array of options to display */
44
46
  options?: SelectOptionType[];
45
47
  /** Enable multi-selection - must be true */
@@ -61,6 +63,8 @@ export interface MultiSelectProps extends Omit<ReactSelectProps<SelectOptionType
61
63
  /** Whether the select is in invalid state */
62
64
  invalid?: boolean;
63
65
  disabled?: boolean;
66
+ /** Custom message to display when no options are available */
67
+ noOptionsMessage?: string;
64
68
  }
65
69
  /**
66
70
  * Union type for Select component props
package/dist/index.d.ts CHANGED
@@ -1,2 +1,3 @@
1
1
  export * from './components';
2
2
  export { default as PGUISystemContext } from './theme';
3
+ export * from './utils';