@inntechcorp/it-design 2.0.255 → 2.0.256

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.
@@ -1,3 +1,3 @@
1
1
  import { SelectToggleProps } from '../../index';
2
- declare const Toggle: ({ id, errorMessage, isOpen, locked, disabled, showSearch, labelType, size, placeholder, value, label, icon, image, onFocus, onBlur, onShow, onFilter }: SelectToggleProps) => import("react/jsx-runtime").JSX.Element;
2
+ declare const Toggle: ({ id, errorMessage, isOpen, locked, disabled, showSearch, labelType, size, placeholder, value, label, prefix, icon, image, onFocus, onBlur, onShow, onFilter }: SelectToggleProps) => import("react/jsx-runtime").JSX.Element;
3
3
  export default Toggle;
@@ -1,12 +1,11 @@
1
1
  import { SelectValue } from 'types/SelectProps';
2
- import { ChildrenProps } from 'types/ChildrenProps';
3
2
  export type SingleLabelRefObject = {
4
3
  setFocus: () => void;
5
4
  };
6
5
  type SingleLabelProps = {
7
6
  id?: string;
8
7
  value?: SelectValue | null;
9
- label?: ChildrenProps;
8
+ label?: string | number;
10
9
  placeholder?: string;
11
10
  size: string;
12
11
  isOpen: boolean;
@@ -5,7 +5,7 @@ export type SelectProps = {
5
5
  id?: string;
6
6
  defaultValue?: SelectValue;
7
7
  value?: SelectValue;
8
- label?: ChildrenProps;
8
+ label?: string | number;
9
9
  position?: SelectPosition;
10
10
  direction?: SelectDirection;
11
11
  multi?: boolean;
@@ -13,6 +13,7 @@ export type SelectProps = {
13
13
  variant?: SelectVariant;
14
14
  className?: string;
15
15
  placeholder?: string;
16
+ prefix?: ChildrenProps;
16
17
  icon?: string;
17
18
  image?: string;
18
19
  disabled?: boolean;
@@ -26,7 +27,7 @@ export type SelectProps = {
26
27
  };
27
28
  export type SelectToggleProps = {
28
29
  id?: string;
29
- label?: ChildrenProps;
30
+ label?: string | number;
30
31
  value?: SelectValue | null;
31
32
  errorMessage: string;
32
33
  multi: boolean;
@@ -37,6 +38,7 @@ export type SelectToggleProps = {
37
38
  labelType: string;
38
39
  placeholder: string;
39
40
  icon?: string;
41
+ prefix?: ChildrenProps;
40
42
  image?: string;
41
43
  size: ITDSize;
42
44
  onFocus: () => void;
@@ -46,7 +48,7 @@ export type SelectToggleProps = {
46
48
  onChange: (open: boolean) => void;
47
49
  };
48
50
  export type SelectOptionProps = {
49
- label: ChildrenProps;
51
+ label: string | number;
50
52
  value: SelectValue;
51
53
  icon?: ChildrenProps;
52
54
  image?: string;
@@ -1,2 +1,2 @@
1
1
  import { ITDSizeSlug } from "../index";
2
- export default function GetSizeBySizeSlug(size: ITDSizeSlug): "large" | "small" | "x-small" | "medium" | "default" | "x-large" | "df";
2
+ export default function GetSizeBySizeSlug(size: ITDSizeSlug): "x-small" | "small" | "medium" | "default" | "large" | "x-large" | "df";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@inntechcorp/it-design",
3
- "version": "2.0.255",
3
+ "version": "2.0.256",
4
4
  "description": "All in one Design library for web applications.",
5
5
  "author": "Inn.Tech",
6
6
  "license": "ISC",