@itcase/ui-web 1.9.91 → 1.9.92
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/types/components/Code/Code.interface.d.ts +3 -3
- package/dist/types/components/Input/Input.d.ts +5 -4
- package/dist/types/components/Input/Input.interface.d.ts +7 -5
- package/dist/types/components/Input/stories/Input.stories.d.ts +6 -5
- package/dist/types/components/Input/stories/InputDefault.stories.d.ts +6 -5
- package/dist/types/components/Input/stories/InputDisabled.stories.d.ts +6 -5
- package/dist/types/components/Input/stories/InputError.stories.d.ts +6 -5
- package/dist/types/components/Input/stories/InputRequire.stories.d.ts +6 -5
- package/dist/types/components/Input/stories/InputSize.stories.d.ts +6 -5
- package/dist/types/components/Input/stories/InputStyle.stories.d.ts +6 -5
- package/dist/types/components/Input/stories/InputSuccess.stories.d.ts +6 -5
- package/dist/types/components/InputNumber/InputNumber.interfaces.d.ts +5 -2
- package/dist/types/components/InputPassword/InputPassword.interface.d.ts +6 -4
- package/dist/types/components/Switch/Switch.d.ts +4 -1
- package/dist/types/components/Switch/Switch.interface.d.ts +5 -1
- package/dist/types/components/Switch/stories/Switch.stories.d.ts +4 -1
- package/dist/types/components/Switch/stories/SwitchDefault.stories.d.ts +4 -1
- package/dist/types/components/Switch/stories/SwitchDemo.stories.d.ts +4 -1
- package/dist/types/components/Switch/stories/SwitchDisabled.stories.d.ts +4 -1
- package/dist/types/components/Switch/stories/SwitchError.stories.d.ts +4 -1
- package/dist/types/components/Switch/stories/SwitchRequire.stories.d.ts +4 -1
- package/dist/types/components/Switch/stories/SwitchSize.stories.d.ts +4 -1
- package/dist/types/components/Switch/stories/SwitchSuccess.stories.d.ts +4 -1
- package/dist/types/components/Switch/stories/SwitchTitleDescSwitch.stories.d.ts +4 -1
- package/dist/types/components/Switch/stories/SwitchTitleSwitch.stories.d.ts +4 -1
- package/dist/types/components/Textarea/Textarea.interface.d.ts +6 -4
- package/package.json +6 -3
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { FocusEventHandler, ReactNode } from 'react';
|
|
2
2
|
import { AllowedInputTypes } from 'react-otp-input';
|
|
3
3
|
import { AppearanceConfig, AppearanceKeysState, AppearanceShapeKey, AppearanceSizeKey, AppearanceStyleKey, BorderColorHoverProps, BorderColorProps, BorderWidthProps, CompositeAppearanceStateDefault, FillHoverProps, FillProps, ItemFillProps, ShapeProps, SizeProps, WidthProps } from '@itcase/types-ui';
|
|
4
4
|
import type { AppearancePartialRecord, AppearanceRecord } from '@itcase/types-ui';
|
|
@@ -42,9 +42,9 @@ type CodeProps = CodeAppearanceProps & StyleAttributes & {
|
|
|
42
42
|
inputType?: AllowedInputTypes;
|
|
43
43
|
isDisabled?: boolean;
|
|
44
44
|
isSkeleton?: boolean;
|
|
45
|
-
onBlur?:
|
|
45
|
+
onBlur?: FocusEventHandler<HTMLInputElement>;
|
|
46
46
|
onChange?: (otp: string) => void;
|
|
47
|
-
onFocus?:
|
|
47
|
+
onFocus?: FocusEventHandler<HTMLInputElement>;
|
|
48
48
|
separatorComponent?: ReactNode;
|
|
49
49
|
};
|
|
50
50
|
type CodeConfig = AppearanceConfig<AppearanceKeysState, CodeAppearanceProps>;
|
|
@@ -5,6 +5,7 @@ declare const Input: React.ForwardRefExoticComponent<import("./Input.interface")
|
|
|
5
5
|
id?: string;
|
|
6
6
|
appearance?: import("@itcase/types-ui").CompositeAppearanceStateDefault;
|
|
7
7
|
autocomplete?: string;
|
|
8
|
+
autoComplete?: string;
|
|
8
9
|
className?: string;
|
|
9
10
|
dataTestId?: string;
|
|
10
11
|
dataTour?: string;
|
|
@@ -12,11 +13,11 @@ declare const Input: React.ForwardRefExoticComponent<import("./Input.interface")
|
|
|
12
13
|
isDisabled?: boolean;
|
|
13
14
|
isReadOnly?: boolean;
|
|
14
15
|
name?: string;
|
|
15
|
-
onBlur?:
|
|
16
|
-
onChange?:
|
|
16
|
+
onBlur?: React.FocusEventHandler<HTMLInputElement>;
|
|
17
|
+
onChange?: React.ChangeEventHandler<HTMLInputElement>;
|
|
17
18
|
onClick?: (event?: React.MouseEvent<HTMLElement>) => void;
|
|
18
|
-
onFocus?:
|
|
19
|
-
onKeyDown?:
|
|
19
|
+
onFocus?: React.FocusEventHandler<HTMLInputElement>;
|
|
20
|
+
onKeyDown?: React.KeyboardEventHandler<HTMLInputElement>;
|
|
20
21
|
placeholder?: string;
|
|
21
22
|
type?: string;
|
|
22
23
|
value?: string;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { ChangeEventHandler, FocusEventHandler, KeyboardEventHandler, MouseEvent } from 'react';
|
|
1
2
|
import { AppearanceConfig, AppearanceKeysState, AppearanceShapeKey, AppearanceSizeKey, AppearanceStyleKey, BorderColorHoverProps, BorderColorProps, BorderWidthProps, CompositeAppearanceStateDefault, FillHoverProps, FillProps, ShapeProps, SizeProps, WidthProps } from '@itcase/types-ui';
|
|
2
3
|
import type { AppearancePartialRecord, AppearanceRecord } from '@itcase/types-ui';
|
|
3
4
|
import type { StyleAttributes } from '@itcase/ui-core/hooks';
|
|
@@ -26,6 +27,7 @@ type InputProps = InputAppearanceProps & StyleAttributes & {
|
|
|
26
27
|
id?: string;
|
|
27
28
|
appearance?: CompositeAppearanceStateDefault;
|
|
28
29
|
autocomplete?: string;
|
|
30
|
+
autoComplete?: string;
|
|
29
31
|
className?: string;
|
|
30
32
|
dataTestId?: string;
|
|
31
33
|
dataTour?: string;
|
|
@@ -33,11 +35,11 @@ type InputProps = InputAppearanceProps & StyleAttributes & {
|
|
|
33
35
|
isDisabled?: boolean;
|
|
34
36
|
isReadOnly?: boolean;
|
|
35
37
|
name?: string;
|
|
36
|
-
onBlur?:
|
|
37
|
-
onChange?:
|
|
38
|
-
onClick?: (event?:
|
|
39
|
-
onFocus?:
|
|
40
|
-
onKeyDown?:
|
|
38
|
+
onBlur?: FocusEventHandler<HTMLInputElement>;
|
|
39
|
+
onChange?: ChangeEventHandler<HTMLInputElement>;
|
|
40
|
+
onClick?: (event?: MouseEvent<HTMLElement>) => void;
|
|
41
|
+
onFocus?: FocusEventHandler<HTMLInputElement>;
|
|
42
|
+
onKeyDown?: KeyboardEventHandler<HTMLInputElement>;
|
|
41
43
|
placeholder?: string;
|
|
42
44
|
type?: string;
|
|
43
45
|
value?: string;
|
|
@@ -5,6 +5,7 @@ declare const meta: {
|
|
|
5
5
|
id?: string;
|
|
6
6
|
appearance?: import("@itcase/types-ui").CompositeAppearanceStateDefault;
|
|
7
7
|
autocomplete?: string;
|
|
8
|
+
autoComplete?: string;
|
|
8
9
|
className?: string;
|
|
9
10
|
dataTestId?: string;
|
|
10
11
|
dataTour?: string;
|
|
@@ -12,11 +13,11 @@ declare const meta: {
|
|
|
12
13
|
isDisabled?: boolean;
|
|
13
14
|
isReadOnly?: boolean;
|
|
14
15
|
name?: string;
|
|
15
|
-
onBlur?: (
|
|
16
|
-
onChange?: (
|
|
17
|
-
onClick?: (event?:
|
|
18
|
-
onFocus?: (
|
|
19
|
-
onKeyDown?: (
|
|
16
|
+
onBlur?: import("react").FocusEventHandler<HTMLInputElement>;
|
|
17
|
+
onChange?: import("react").ChangeEventHandler<HTMLInputElement>;
|
|
18
|
+
onClick?: (event?: import("react").MouseEvent<HTMLElement>) => void;
|
|
19
|
+
onFocus?: import("react").FocusEventHandler<HTMLInputElement>;
|
|
20
|
+
onKeyDown?: import("react").KeyboardEventHandler<HTMLInputElement>;
|
|
20
21
|
placeholder?: string;
|
|
21
22
|
type?: string;
|
|
22
23
|
value?: string;
|
|
@@ -5,6 +5,7 @@ declare const meta: {
|
|
|
5
5
|
id?: string;
|
|
6
6
|
appearance?: import("@itcase/types-ui").CompositeAppearanceStateDefault;
|
|
7
7
|
autocomplete?: string;
|
|
8
|
+
autoComplete?: string;
|
|
8
9
|
className?: string;
|
|
9
10
|
dataTestId?: string;
|
|
10
11
|
dataTour?: string;
|
|
@@ -12,11 +13,11 @@ declare const meta: {
|
|
|
12
13
|
isDisabled?: boolean;
|
|
13
14
|
isReadOnly?: boolean;
|
|
14
15
|
name?: string;
|
|
15
|
-
onBlur?: (
|
|
16
|
-
onChange?: (
|
|
17
|
-
onClick?: (event?:
|
|
18
|
-
onFocus?: (
|
|
19
|
-
onKeyDown?: (
|
|
16
|
+
onBlur?: import("react").FocusEventHandler<HTMLInputElement>;
|
|
17
|
+
onChange?: import("react").ChangeEventHandler<HTMLInputElement>;
|
|
18
|
+
onClick?: (event?: import("react").MouseEvent<HTMLElement>) => void;
|
|
19
|
+
onFocus?: import("react").FocusEventHandler<HTMLInputElement>;
|
|
20
|
+
onKeyDown?: import("react").KeyboardEventHandler<HTMLInputElement>;
|
|
20
21
|
placeholder?: string;
|
|
21
22
|
type?: string;
|
|
22
23
|
value?: string;
|
|
@@ -5,6 +5,7 @@ declare const meta: {
|
|
|
5
5
|
id?: string;
|
|
6
6
|
appearance?: import("@itcase/types-ui").CompositeAppearanceStateDefault;
|
|
7
7
|
autocomplete?: string;
|
|
8
|
+
autoComplete?: string;
|
|
8
9
|
className?: string;
|
|
9
10
|
dataTestId?: string;
|
|
10
11
|
dataTour?: string;
|
|
@@ -12,11 +13,11 @@ declare const meta: {
|
|
|
12
13
|
isDisabled?: boolean;
|
|
13
14
|
isReadOnly?: boolean;
|
|
14
15
|
name?: string;
|
|
15
|
-
onBlur?: (
|
|
16
|
-
onChange?: (
|
|
17
|
-
onClick?: (event?:
|
|
18
|
-
onFocus?: (
|
|
19
|
-
onKeyDown?: (
|
|
16
|
+
onBlur?: import("react").FocusEventHandler<HTMLInputElement>;
|
|
17
|
+
onChange?: import("react").ChangeEventHandler<HTMLInputElement>;
|
|
18
|
+
onClick?: (event?: import("react").MouseEvent<HTMLElement>) => void;
|
|
19
|
+
onFocus?: import("react").FocusEventHandler<HTMLInputElement>;
|
|
20
|
+
onKeyDown?: import("react").KeyboardEventHandler<HTMLInputElement>;
|
|
20
21
|
placeholder?: string;
|
|
21
22
|
type?: string;
|
|
22
23
|
value?: string;
|
|
@@ -5,6 +5,7 @@ declare const meta: {
|
|
|
5
5
|
id?: string;
|
|
6
6
|
appearance?: import("@itcase/types-ui").CompositeAppearanceStateDefault;
|
|
7
7
|
autocomplete?: string;
|
|
8
|
+
autoComplete?: string;
|
|
8
9
|
className?: string;
|
|
9
10
|
dataTestId?: string;
|
|
10
11
|
dataTour?: string;
|
|
@@ -12,11 +13,11 @@ declare const meta: {
|
|
|
12
13
|
isDisabled?: boolean;
|
|
13
14
|
isReadOnly?: boolean;
|
|
14
15
|
name?: string;
|
|
15
|
-
onBlur?: (
|
|
16
|
-
onChange?: (
|
|
17
|
-
onClick?: (event?:
|
|
18
|
-
onFocus?: (
|
|
19
|
-
onKeyDown?: (
|
|
16
|
+
onBlur?: import("react").FocusEventHandler<HTMLInputElement>;
|
|
17
|
+
onChange?: import("react").ChangeEventHandler<HTMLInputElement>;
|
|
18
|
+
onClick?: (event?: import("react").MouseEvent<HTMLElement>) => void;
|
|
19
|
+
onFocus?: import("react").FocusEventHandler<HTMLInputElement>;
|
|
20
|
+
onKeyDown?: import("react").KeyboardEventHandler<HTMLInputElement>;
|
|
20
21
|
placeholder?: string;
|
|
21
22
|
type?: string;
|
|
22
23
|
value?: string;
|
|
@@ -5,6 +5,7 @@ declare const meta: {
|
|
|
5
5
|
id?: string;
|
|
6
6
|
appearance?: import("@itcase/types-ui").CompositeAppearanceStateDefault;
|
|
7
7
|
autocomplete?: string;
|
|
8
|
+
autoComplete?: string;
|
|
8
9
|
className?: string;
|
|
9
10
|
dataTestId?: string;
|
|
10
11
|
dataTour?: string;
|
|
@@ -12,11 +13,11 @@ declare const meta: {
|
|
|
12
13
|
isDisabled?: boolean;
|
|
13
14
|
isReadOnly?: boolean;
|
|
14
15
|
name?: string;
|
|
15
|
-
onBlur?: (
|
|
16
|
-
onChange?: (
|
|
17
|
-
onClick?: (event?:
|
|
18
|
-
onFocus?: (
|
|
19
|
-
onKeyDown?: (
|
|
16
|
+
onBlur?: import("react").FocusEventHandler<HTMLInputElement>;
|
|
17
|
+
onChange?: import("react").ChangeEventHandler<HTMLInputElement>;
|
|
18
|
+
onClick?: (event?: import("react").MouseEvent<HTMLElement>) => void;
|
|
19
|
+
onFocus?: import("react").FocusEventHandler<HTMLInputElement>;
|
|
20
|
+
onKeyDown?: import("react").KeyboardEventHandler<HTMLInputElement>;
|
|
20
21
|
placeholder?: string;
|
|
21
22
|
type?: string;
|
|
22
23
|
value?: string;
|
|
@@ -5,6 +5,7 @@ declare const meta: {
|
|
|
5
5
|
id?: string;
|
|
6
6
|
appearance?: import("@itcase/types-ui").CompositeAppearanceStateDefault;
|
|
7
7
|
autocomplete?: string;
|
|
8
|
+
autoComplete?: string;
|
|
8
9
|
className?: string;
|
|
9
10
|
dataTestId?: string;
|
|
10
11
|
dataTour?: string;
|
|
@@ -12,11 +13,11 @@ declare const meta: {
|
|
|
12
13
|
isDisabled?: boolean;
|
|
13
14
|
isReadOnly?: boolean;
|
|
14
15
|
name?: string;
|
|
15
|
-
onBlur?: (
|
|
16
|
-
onChange?: (
|
|
17
|
-
onClick?: (event?:
|
|
18
|
-
onFocus?: (
|
|
19
|
-
onKeyDown?: (
|
|
16
|
+
onBlur?: import("react").FocusEventHandler<HTMLInputElement>;
|
|
17
|
+
onChange?: import("react").ChangeEventHandler<HTMLInputElement>;
|
|
18
|
+
onClick?: (event?: import("react").MouseEvent<HTMLElement>) => void;
|
|
19
|
+
onFocus?: import("react").FocusEventHandler<HTMLInputElement>;
|
|
20
|
+
onKeyDown?: import("react").KeyboardEventHandler<HTMLInputElement>;
|
|
20
21
|
placeholder?: string;
|
|
21
22
|
type?: string;
|
|
22
23
|
value?: string;
|
|
@@ -5,6 +5,7 @@ declare const meta: {
|
|
|
5
5
|
id?: string;
|
|
6
6
|
appearance?: import("@itcase/types-ui").CompositeAppearanceStateDefault;
|
|
7
7
|
autocomplete?: string;
|
|
8
|
+
autoComplete?: string;
|
|
8
9
|
className?: string;
|
|
9
10
|
dataTestId?: string;
|
|
10
11
|
dataTour?: string;
|
|
@@ -12,11 +13,11 @@ declare const meta: {
|
|
|
12
13
|
isDisabled?: boolean;
|
|
13
14
|
isReadOnly?: boolean;
|
|
14
15
|
name?: string;
|
|
15
|
-
onBlur?: (
|
|
16
|
-
onChange?: (
|
|
17
|
-
onClick?: (event?:
|
|
18
|
-
onFocus?: (
|
|
19
|
-
onKeyDown?: (
|
|
16
|
+
onBlur?: import("react").FocusEventHandler<HTMLInputElement>;
|
|
17
|
+
onChange?: import("react").ChangeEventHandler<HTMLInputElement>;
|
|
18
|
+
onClick?: (event?: import("react").MouseEvent<HTMLElement>) => void;
|
|
19
|
+
onFocus?: import("react").FocusEventHandler<HTMLInputElement>;
|
|
20
|
+
onKeyDown?: import("react").KeyboardEventHandler<HTMLInputElement>;
|
|
20
21
|
placeholder?: string;
|
|
21
22
|
type?: string;
|
|
22
23
|
value?: string;
|
|
@@ -5,6 +5,7 @@ declare const meta: {
|
|
|
5
5
|
id?: string;
|
|
6
6
|
appearance?: import("@itcase/types-ui").CompositeAppearanceStateDefault;
|
|
7
7
|
autocomplete?: string;
|
|
8
|
+
autoComplete?: string;
|
|
8
9
|
className?: string;
|
|
9
10
|
dataTestId?: string;
|
|
10
11
|
dataTour?: string;
|
|
@@ -12,11 +13,11 @@ declare const meta: {
|
|
|
12
13
|
isDisabled?: boolean;
|
|
13
14
|
isReadOnly?: boolean;
|
|
14
15
|
name?: string;
|
|
15
|
-
onBlur?: (
|
|
16
|
-
onChange?: (
|
|
17
|
-
onClick?: (event?:
|
|
18
|
-
onFocus?: (
|
|
19
|
-
onKeyDown?: (
|
|
16
|
+
onBlur?: import("react").FocusEventHandler<HTMLInputElement>;
|
|
17
|
+
onChange?: import("react").ChangeEventHandler<HTMLInputElement>;
|
|
18
|
+
onClick?: (event?: import("react").MouseEvent<HTMLElement>) => void;
|
|
19
|
+
onFocus?: import("react").FocusEventHandler<HTMLInputElement>;
|
|
20
|
+
onKeyDown?: import("react").KeyboardEventHandler<HTMLInputElement>;
|
|
20
21
|
placeholder?: string;
|
|
21
22
|
type?: string;
|
|
22
23
|
value?: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ChangeEvent, CSSProperties } from 'react';
|
|
1
|
+
import { ChangeEvent, CSSProperties, FocusEventHandler, KeyboardEventHandler } from 'react';
|
|
2
2
|
import { AppearanceConfig, AppearanceKeysState, BorderColorHoverProps, BorderColorProps, BorderWidthProps, CompositeAppearanceStateDefault, FillHoverProps, FillProps, ShapeProps, SizeProps, SvgFillHoverProps, SvgFillProps } from '@itcase/types-ui';
|
|
3
3
|
import { StyleAttributes } from '@itcase/ui-core/hooks';
|
|
4
4
|
import { ButtonProps } from 'src/components/Button/Button.interface';
|
|
@@ -36,7 +36,10 @@ type InputNumberProps = InputNumberAppearanceProps & StyleAttributes & {
|
|
|
36
36
|
max?: number;
|
|
37
37
|
min?: number;
|
|
38
38
|
name?: string;
|
|
39
|
-
|
|
39
|
+
onBlur?: FocusEventHandler<HTMLInputElement>;
|
|
40
|
+
onChange?: (value: number) => void;
|
|
41
|
+
onFocus?: FocusEventHandler<HTMLInputElement>;
|
|
42
|
+
onKeyDown?: KeyboardEventHandler<HTMLInputElement>;
|
|
40
43
|
step?: number;
|
|
41
44
|
style?: CSSProperties;
|
|
42
45
|
type?: 'custom' | 'native';
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { ChangeEventHandler, FocusEventHandler, KeyboardEventHandler } from 'react';
|
|
1
2
|
import { AppearanceConfig, AppearanceKeysState, AppearanceShapeKey, AppearanceSizeKey, AppearanceStyleKey, BorderColorHoverProps, BorderColorProps, BorderWidthProps, CompositeAppearanceStateDefault, FillHoverProps, FillProps, ItemFillProps, ShapeProps, SizeProps, WidthProps } from '@itcase/types-ui';
|
|
2
3
|
import type { AppearancePartialRecord, AppearanceRecord } from '@itcase/types-ui';
|
|
3
4
|
import { StyleAttributes } from '@itcase/ui-core/hooks';
|
|
@@ -30,15 +31,16 @@ type InputAppearanceProps = {
|
|
|
30
31
|
type InputPasswordProps = InputAppearanceProps & StyleAttributes & {
|
|
31
32
|
id?: string;
|
|
32
33
|
appearance?: CompositeAppearanceStateDefault;
|
|
34
|
+
autoComplete?: string;
|
|
33
35
|
className?: string;
|
|
34
36
|
dataTestId?: string;
|
|
35
37
|
dataTour?: string;
|
|
36
38
|
isDisabled?: boolean;
|
|
37
39
|
name?: string;
|
|
38
|
-
onBlur?:
|
|
39
|
-
onChange?:
|
|
40
|
-
onFocus?:
|
|
41
|
-
onKeyDown?:
|
|
40
|
+
onBlur?: FocusEventHandler<HTMLInputElement>;
|
|
41
|
+
onChange?: ChangeEventHandler<HTMLInputElement>;
|
|
42
|
+
onFocus?: FocusEventHandler<HTMLInputElement>;
|
|
43
|
+
onKeyDown?: KeyboardEventHandler<HTMLInputElement>;
|
|
42
44
|
placeholder?: string;
|
|
43
45
|
value?: string;
|
|
44
46
|
};
|
|
@@ -28,7 +28,10 @@ declare const Switch: React.ForwardRefExoticComponent<import("@itcase/ui-core/ho
|
|
|
28
28
|
isActive?: boolean;
|
|
29
29
|
isDisabled?: boolean;
|
|
30
30
|
isSkeleton?: boolean;
|
|
31
|
-
|
|
31
|
+
onBlur?: React.FocusEventHandler<HTMLInputElement>;
|
|
32
|
+
onChange?: React.ChangeEventHandler<HTMLInputElement>;
|
|
33
|
+
onFocus?: React.FocusEventHandler<HTMLInputElement>;
|
|
32
34
|
title?: string;
|
|
35
|
+
type?: "checkbox";
|
|
33
36
|
} & React.RefAttributes<HTMLInputElement>>;
|
|
34
37
|
export { Switch, switchConfig };
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { ChangeEventHandler, FocusEventHandler } from 'react';
|
|
1
2
|
import { AppearanceConfig, AppearanceKeysState, AppearanceSizeKey, AppearanceStyleKey, BorderColorProps, CompositeAppearanceStateDefault, FillActiveHoverProps, FillActiveProps, FillHoverProps, FillProps } from '@itcase/types-ui';
|
|
2
3
|
import type { AppearancePartialRecord, AppearanceRecord } from '@itcase/types-ui';
|
|
3
4
|
import { StyleAttributes } from '@itcase/ui-core/hooks';
|
|
@@ -30,8 +31,11 @@ type SwitchProps = StyleAttributes & SwitchAppearanceProps & {
|
|
|
30
31
|
isActive?: boolean;
|
|
31
32
|
isDisabled?: boolean;
|
|
32
33
|
isSkeleton?: boolean;
|
|
33
|
-
|
|
34
|
+
onBlur?: FocusEventHandler<HTMLInputElement>;
|
|
35
|
+
onChange?: ChangeEventHandler<HTMLInputElement>;
|
|
36
|
+
onFocus?: FocusEventHandler<HTMLInputElement>;
|
|
34
37
|
title?: string;
|
|
38
|
+
type?: 'checkbox';
|
|
35
39
|
};
|
|
36
40
|
type SwitchConfig = AppearanceConfig<AppearanceKeysState, SwitchAppearanceProps>;
|
|
37
41
|
type SwitchAppearance = SwitchConfig['appearance'];
|
|
@@ -28,8 +28,11 @@ declare const meta: {
|
|
|
28
28
|
isActive?: boolean;
|
|
29
29
|
isDisabled?: boolean;
|
|
30
30
|
isSkeleton?: boolean;
|
|
31
|
-
|
|
31
|
+
onBlur?: import("react").FocusEventHandler<HTMLInputElement>;
|
|
32
|
+
onChange?: import("react").ChangeEventHandler<HTMLInputElement>;
|
|
33
|
+
onFocus?: import("react").FocusEventHandler<HTMLInputElement>;
|
|
32
34
|
title?: string;
|
|
35
|
+
type?: "checkbox";
|
|
33
36
|
} & import("react").RefAttributes<HTMLInputElement>>;
|
|
34
37
|
args: {
|
|
35
38
|
isActive: true;
|
|
@@ -28,8 +28,11 @@ declare const meta: {
|
|
|
28
28
|
isActive?: boolean;
|
|
29
29
|
isDisabled?: boolean;
|
|
30
30
|
isSkeleton?: boolean;
|
|
31
|
-
|
|
31
|
+
onBlur?: import("react").FocusEventHandler<HTMLInputElement>;
|
|
32
|
+
onChange?: import("react").ChangeEventHandler<HTMLInputElement>;
|
|
33
|
+
onFocus?: import("react").FocusEventHandler<HTMLInputElement>;
|
|
32
34
|
title?: string;
|
|
35
|
+
type?: "checkbox";
|
|
33
36
|
} & import("react").RefAttributes<HTMLInputElement>>;
|
|
34
37
|
args: {
|
|
35
38
|
title: string;
|
|
@@ -28,8 +28,11 @@ declare const meta: {
|
|
|
28
28
|
isActive?: boolean;
|
|
29
29
|
isDisabled?: boolean;
|
|
30
30
|
isSkeleton?: boolean;
|
|
31
|
-
|
|
31
|
+
onBlur?: import("react").FocusEventHandler<HTMLInputElement>;
|
|
32
|
+
onChange?: import("react").ChangeEventHandler<HTMLInputElement>;
|
|
33
|
+
onFocus?: import("react").FocusEventHandler<HTMLInputElement>;
|
|
32
34
|
title?: string;
|
|
35
|
+
type?: "checkbox";
|
|
33
36
|
} & import("react").RefAttributes<HTMLInputElement>>;
|
|
34
37
|
args: {
|
|
35
38
|
appearance: "defaultPrimary sizeL";
|
|
@@ -28,8 +28,11 @@ declare const meta: {
|
|
|
28
28
|
isActive?: boolean;
|
|
29
29
|
isDisabled?: boolean;
|
|
30
30
|
isSkeleton?: boolean;
|
|
31
|
-
|
|
31
|
+
onBlur?: import("react").FocusEventHandler<HTMLInputElement>;
|
|
32
|
+
onChange?: import("react").ChangeEventHandler<HTMLInputElement>;
|
|
33
|
+
onFocus?: import("react").FocusEventHandler<HTMLInputElement>;
|
|
32
34
|
title?: string;
|
|
35
|
+
type?: "checkbox";
|
|
33
36
|
} & import("react").RefAttributes<HTMLInputElement>>;
|
|
34
37
|
args: {
|
|
35
38
|
title: string;
|
|
@@ -28,8 +28,11 @@ declare const meta: {
|
|
|
28
28
|
isActive?: boolean;
|
|
29
29
|
isDisabled?: boolean;
|
|
30
30
|
isSkeleton?: boolean;
|
|
31
|
-
|
|
31
|
+
onBlur?: import("react").FocusEventHandler<HTMLInputElement>;
|
|
32
|
+
onChange?: import("react").ChangeEventHandler<HTMLInputElement>;
|
|
33
|
+
onFocus?: import("react").FocusEventHandler<HTMLInputElement>;
|
|
32
34
|
title?: string;
|
|
35
|
+
type?: "checkbox";
|
|
33
36
|
} & import("react").RefAttributes<HTMLInputElement>>;
|
|
34
37
|
args: {
|
|
35
38
|
title: string;
|
|
@@ -28,8 +28,11 @@ declare const meta: {
|
|
|
28
28
|
isActive?: boolean;
|
|
29
29
|
isDisabled?: boolean;
|
|
30
30
|
isSkeleton?: boolean;
|
|
31
|
-
|
|
31
|
+
onBlur?: import("react").FocusEventHandler<HTMLInputElement>;
|
|
32
|
+
onChange?: import("react").ChangeEventHandler<HTMLInputElement>;
|
|
33
|
+
onFocus?: import("react").FocusEventHandler<HTMLInputElement>;
|
|
32
34
|
title?: string;
|
|
35
|
+
type?: "checkbox";
|
|
33
36
|
} & import("react").RefAttributes<HTMLInputElement>>;
|
|
34
37
|
args: {
|
|
35
38
|
title: string;
|
|
@@ -28,8 +28,11 @@ declare const meta: {
|
|
|
28
28
|
isActive?: boolean;
|
|
29
29
|
isDisabled?: boolean;
|
|
30
30
|
isSkeleton?: boolean;
|
|
31
|
-
|
|
31
|
+
onBlur?: import("react").FocusEventHandler<HTMLInputElement>;
|
|
32
|
+
onChange?: import("react").ChangeEventHandler<HTMLInputElement>;
|
|
33
|
+
onFocus?: import("react").FocusEventHandler<HTMLInputElement>;
|
|
32
34
|
title?: string;
|
|
35
|
+
type?: "checkbox";
|
|
33
36
|
} & import("react").RefAttributes<HTMLInputElement>>;
|
|
34
37
|
args: {
|
|
35
38
|
title: string;
|
|
@@ -28,8 +28,11 @@ declare const meta: {
|
|
|
28
28
|
isActive?: boolean;
|
|
29
29
|
isDisabled?: boolean;
|
|
30
30
|
isSkeleton?: boolean;
|
|
31
|
-
|
|
31
|
+
onBlur?: import("react").FocusEventHandler<HTMLInputElement>;
|
|
32
|
+
onChange?: import("react").ChangeEventHandler<HTMLInputElement>;
|
|
33
|
+
onFocus?: import("react").FocusEventHandler<HTMLInputElement>;
|
|
32
34
|
title?: string;
|
|
35
|
+
type?: "checkbox";
|
|
33
36
|
} & import("react").RefAttributes<HTMLInputElement>>;
|
|
34
37
|
args: {
|
|
35
38
|
title: string;
|
|
@@ -28,8 +28,11 @@ declare const meta: {
|
|
|
28
28
|
isActive?: boolean;
|
|
29
29
|
isDisabled?: boolean;
|
|
30
30
|
isSkeleton?: boolean;
|
|
31
|
-
|
|
31
|
+
onBlur?: import("react").FocusEventHandler<HTMLInputElement>;
|
|
32
|
+
onChange?: import("react").ChangeEventHandler<HTMLInputElement>;
|
|
33
|
+
onFocus?: import("react").FocusEventHandler<HTMLInputElement>;
|
|
32
34
|
title?: string;
|
|
35
|
+
type?: "checkbox";
|
|
33
36
|
} & import("react").RefAttributes<HTMLInputElement>>;
|
|
34
37
|
args: {
|
|
35
38
|
title: string;
|
|
@@ -28,8 +28,11 @@ declare const meta: {
|
|
|
28
28
|
isActive?: boolean;
|
|
29
29
|
isDisabled?: boolean;
|
|
30
30
|
isSkeleton?: boolean;
|
|
31
|
-
|
|
31
|
+
onBlur?: import("react").FocusEventHandler<HTMLInputElement>;
|
|
32
|
+
onChange?: import("react").ChangeEventHandler<HTMLInputElement>;
|
|
33
|
+
onFocus?: import("react").FocusEventHandler<HTMLInputElement>;
|
|
32
34
|
title?: string;
|
|
35
|
+
type?: "checkbox";
|
|
33
36
|
} & import("react").RefAttributes<HTMLInputElement>>;
|
|
34
37
|
args: {
|
|
35
38
|
title: string;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { ChangeEventHandler, FocusEventHandler, KeyboardEventHandler } from 'react';
|
|
1
2
|
import { AppearanceConfig, AppearanceKeysState, AppearanceShapeKey, AppearanceSizeKey, AppearanceStyleKey, BorderColorHoverProps, BorderColorProps, BorderWidthProps, CompositeAppearanceStateDefault, FillHoverProps, FillProps, ShapeProps, SizeProps, WidthProps } from '@itcase/types-ui';
|
|
2
3
|
import type { AppearancePartialRecord, AppearanceRecord } from '@itcase/types-ui';
|
|
3
4
|
import { StyleAttributes } from '@itcase/ui-core/hooks';
|
|
@@ -23,6 +24,7 @@ type TextareaAppearanceProps = {
|
|
|
23
24
|
type TextareaProps = StyleAttributes & TextareaAppearanceProps & {
|
|
24
25
|
id?: string;
|
|
25
26
|
appearance?: CompositeAppearanceStateDefault;
|
|
27
|
+
autoComplete?: string;
|
|
26
28
|
className?: string;
|
|
27
29
|
dataTestId?: string;
|
|
28
30
|
dataTour?: string;
|
|
@@ -30,10 +32,10 @@ type TextareaProps = StyleAttributes & TextareaAppearanceProps & {
|
|
|
30
32
|
isDisabled?: boolean;
|
|
31
33
|
isSkeleton?: boolean;
|
|
32
34
|
name?: string;
|
|
33
|
-
onBlur?:
|
|
34
|
-
onChange?:
|
|
35
|
-
onFocus?:
|
|
36
|
-
onKeyDown?:
|
|
35
|
+
onBlur?: FocusEventHandler<HTMLTextAreaElement>;
|
|
36
|
+
onChange?: ChangeEventHandler<HTMLTextAreaElement>;
|
|
37
|
+
onFocus?: FocusEventHandler<HTMLTextAreaElement>;
|
|
38
|
+
onKeyDown?: KeyboardEventHandler<HTMLTextAreaElement>;
|
|
37
39
|
placeholder?: string;
|
|
38
40
|
value?: string;
|
|
39
41
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@itcase/ui-web",
|
|
3
|
-
"version": "1.9.
|
|
3
|
+
"version": "1.9.92",
|
|
4
4
|
"description": "UI components",
|
|
5
5
|
"keywords": "",
|
|
6
6
|
"license": "MIT",
|
|
@@ -11,7 +11,10 @@
|
|
|
11
11
|
"import": "./dist/components/*.js",
|
|
12
12
|
"require": "./dist/cjs/components/*.js"
|
|
13
13
|
},
|
|
14
|
-
"./stories/*": "./dist/stories/*.js"
|
|
14
|
+
"./stories/*": "./dist/stories/*.js",
|
|
15
|
+
"./dist/css/styles/*": "./dist/css/styles/*",
|
|
16
|
+
"./dist/css/mixins/*": "./dist/css/mixins/*",
|
|
17
|
+
"./dist/css/mediaqueries/*": "./dist/css/mediaqueries/*"
|
|
15
18
|
},
|
|
16
19
|
"types": "./dist/types/types/index.d.ts",
|
|
17
20
|
"scripts": {
|
|
@@ -111,5 +114,5 @@
|
|
|
111
114
|
"storybook": "^10.3.5",
|
|
112
115
|
"typescript": "^6.0.3"
|
|
113
116
|
},
|
|
114
|
-
"gitHead": "
|
|
117
|
+
"gitHead": "4c19cae23b8c429e72989da00394cd2ea73298f4"
|
|
115
118
|
}
|