@sellgar/kit 0.0.46 → 0.0.47

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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "type": "module",
3
3
  "name": "@sellgar/kit",
4
- "version": "0.0.46",
4
+ "version": "0.0.47",
5
5
  "description": "Sellgar storybook",
6
6
  "main": "./dist/index.cjs",
7
7
  "module": "./dist/index.js",
@@ -1,5 +1,5 @@
1
1
  import { default as React } from 'react';
2
- export interface IProps<T extends Record<string, any>, K extends keyof T> extends Omit<React.InputHTMLAttributes<HTMLInputElement>, 'size' | 'className' | 'children'> {
2
+ export interface IProps<T extends Record<string, any>, K extends keyof T> {
3
3
  leadicon?: React.ReactNode;
4
4
  tailicon?: React.ReactNode;
5
5
  badge?: string | number;
@@ -11,5 +11,8 @@ export interface IProps<T extends Record<string, any>, K extends keyof T> extend
11
11
  value?: T[K];
12
12
  templateValue?(option?: T): React.ReactNode;
13
13
  templateOption?(option: T): React.ReactNode;
14
+ onChange?: (value: T[K] | undefined) => void;
15
+ onFocus?: () => void;
16
+ onBlur?: () => void;
14
17
  }
15
- export declare const Select: <T extends Record<string, any>, K extends keyof T>({ value, options, optionKey, optionValue, templateValue, templateOption, ...props }: IProps<T, K>) => React.JSX.Element;
18
+ export declare const Select: <T extends Record<string, any>, K extends keyof T>({ value, options, optionKey, optionValue, templateValue, templateOption, onBlur, onFocus, onChange, ...props }: IProps<T, K>) => React.JSX.Element;