@kingsimba/nc-ui 0.1.29 → 0.1.31

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
@@ -622,7 +622,7 @@ declare interface HyperlinkProps {
622
622
  size?: 'small' | 'default';
623
623
  }
624
624
 
625
- export declare function Input({ value: controlledValue, defaultValue, onChange, onEnter, onClear, placeholder, disabled, label, clearable, type, className, size, appearance, style, leadingIcon, showPasswordToggle, multiline, rows, validator, showErrorMessage, }: InputProps): JSX_2.Element;
625
+ export declare function Input({ value: controlledValue, defaultValue, onChange, onChangeConfirmed, onEnter, onClear, placeholder, disabled, label, clearable, type, className, size, appearance, style, leadingIcon, showPasswordToggle, multiline, rows, validator, showErrorMessage, }: InputProps): JSX_2.Element;
626
626
 
627
627
  export declare interface InputProps {
628
628
  /** Current value of the input (controlled mode) */
@@ -631,8 +631,10 @@ export declare interface InputProps {
631
631
  defaultValue?: string;
632
632
  /** Callback when value changes */
633
633
  onChange?: (value: string) => void;
634
- /** Callback when Enter key is pressed */
635
- onEnter?: () => void;
634
+ /** Callback when a plain-mode edit is confirmed with a changed value */
635
+ onChangeConfirmed?: (value: string) => void;
636
+ /** Callback when Enter key confirms the current value */
637
+ onEnter?: (value: string) => void;
636
638
  /** Callback when input is cleared */
637
639
  onClear?: () => void;
638
640
  /** Placeholder text */