@app-studio/web 0.8.80 → 0.8.82
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/components/Button/Button/Button.props.d.ts +1 -2
- package/dist/components/Gradient/Gradient/Gradient.style.d.ts +16 -15
- package/dist/components/OTPInput/OTPInput/OTPInput.props.d.ts +3 -0
- package/dist/components/OTPInput/OTPInput/OTPInput.state.d.ts +2 -1
- package/dist/components/OTPInput/OTPInput/OTPInput.view.d.ts +1 -0
- package/dist/components/Sidebar/Sidebar/Sidebar.view.d.ts +1 -1
- package/dist/web.cjs.development.js +237 -232
- package/dist/web.cjs.development.js.map +1 -1
- package/dist/web.cjs.production.min.js +1 -1
- package/dist/web.cjs.production.min.js.map +1 -1
- package/dist/web.esm.js +237 -232
- package/dist/web.esm.js.map +1 -1
- package/dist/web.umd.development.js +238 -234
- package/dist/web.umd.development.js.map +1 -1
- package/dist/web.umd.production.min.js +1 -1
- package/dist/web.umd.production.min.js.map +1 -1
- package/package.json +1 -1
|
@@ -22,8 +22,7 @@ export interface ButtonProps extends Omit<$ButtonProps, 'size'> {
|
|
|
22
22
|
ariaLabel?: string;
|
|
23
23
|
variant?: Variant;
|
|
24
24
|
effect?: Effects;
|
|
25
|
-
|
|
26
|
-
linkProps?: ViewProps;
|
|
25
|
+
colorScheme?: string;
|
|
27
26
|
views?: {
|
|
28
27
|
container?: ViewProps;
|
|
29
28
|
icon?: ViewProps;
|
|
@@ -27,50 +27,51 @@ export declare const DefaultColorStops: Record<GradientType, ColorStop[]>;
|
|
|
27
27
|
*/
|
|
28
28
|
export declare const generateGradientString: (type: GradientType, colors: ColorStop[], direction?: string | undefined, shape?: "circle" | "ellipse" | undefined, position?: string | undefined) => string;
|
|
29
29
|
/**
|
|
30
|
-
* Animation
|
|
30
|
+
* Animation styles for animated gradients using app-studio's animation system
|
|
31
31
|
*/
|
|
32
32
|
export declare const GradientAnimations: {
|
|
33
33
|
linear: {
|
|
34
|
-
|
|
35
|
-
|
|
34
|
+
backgroundSize: string;
|
|
35
|
+
transition: string;
|
|
36
|
+
animate: {
|
|
37
|
+
from: {
|
|
36
38
|
backgroundPosition: string;
|
|
37
39
|
};
|
|
38
40
|
'50%': {
|
|
39
41
|
backgroundPosition: string;
|
|
40
42
|
};
|
|
41
|
-
|
|
43
|
+
to: {
|
|
42
44
|
backgroundPosition: string;
|
|
43
45
|
};
|
|
44
46
|
};
|
|
45
|
-
animation: string;
|
|
46
|
-
backgroundSize: string;
|
|
47
47
|
};
|
|
48
48
|
radial: {
|
|
49
|
-
|
|
50
|
-
|
|
49
|
+
backgroundSize: string;
|
|
50
|
+
transition: string;
|
|
51
|
+
animate: {
|
|
52
|
+
from: {
|
|
51
53
|
backgroundPosition: string;
|
|
54
|
+
backgroundSize: string;
|
|
52
55
|
};
|
|
53
56
|
'50%': {
|
|
54
57
|
backgroundSize: string;
|
|
55
58
|
};
|
|
56
|
-
|
|
59
|
+
to: {
|
|
57
60
|
backgroundPosition: string;
|
|
58
61
|
backgroundSize: string;
|
|
59
62
|
};
|
|
60
63
|
};
|
|
61
|
-
animation: string;
|
|
62
|
-
backgroundSize: string;
|
|
63
64
|
};
|
|
64
65
|
conic: {
|
|
65
|
-
|
|
66
|
-
|
|
66
|
+
transition: string;
|
|
67
|
+
animate: {
|
|
68
|
+
from: {
|
|
67
69
|
transform: string;
|
|
68
70
|
};
|
|
69
|
-
|
|
71
|
+
to: {
|
|
70
72
|
transform: string;
|
|
71
73
|
};
|
|
72
74
|
};
|
|
73
|
-
animation: string;
|
|
74
75
|
};
|
|
75
76
|
};
|
|
76
77
|
/**
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
import { InputProps, Shadow, ViewProps } from 'app-studio';
|
|
2
3
|
import { Elevation } from '../../../utils/elevation';
|
|
3
4
|
import { Shape, Size, Variant } from '../../Input/Input.type';
|
|
@@ -67,6 +68,8 @@ export interface OTPInputProps extends Omit<InputProps, 'size'> {
|
|
|
67
68
|
* Callback when an input field loses focus
|
|
68
69
|
*/
|
|
69
70
|
onBlur?: (value: any) => void;
|
|
71
|
+
onKeyPress?: (e: React.KeyboardEvent<HTMLInputElement>) => void;
|
|
72
|
+
onKeyDown?: (e: React.KeyboardEvent<HTMLInputElement>) => void;
|
|
70
73
|
/**
|
|
71
74
|
* Callback when an input field is clicked
|
|
72
75
|
*/
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ClipboardEvent, KeyboardEvent, ChangeEvent } from 'react';
|
|
2
2
|
import { OTPInputProps } from './OTPInput.props';
|
|
3
|
-
export declare const useOTPInputState: ({ value: controlledValue, defaultValue, length, onChange, onChangeText, onComplete, pattern, stepValues, pasteTransformer, }: OTPInputProps) => {
|
|
3
|
+
export declare const useOTPInputState: ({ value: controlledValue, defaultValue, length, onChange, onChangeText, onComplete, onKeyDown, onKeyPress, onBlur, onFocus, isReadOnly, isDisabled, pattern, stepValues, pasteTransformer, }: OTPInputProps) => {
|
|
4
4
|
value: string;
|
|
5
5
|
setValue: (newValue: string) => void;
|
|
6
6
|
isFocused: boolean;
|
|
@@ -18,5 +18,6 @@ export declare const useOTPInputState: ({ value: controlledValue, defaultValue,
|
|
|
18
18
|
handleFocus: () => void;
|
|
19
19
|
handleBlur: () => void;
|
|
20
20
|
handleKeyDown: (_: KeyboardEvent<HTMLInputElement>) => void;
|
|
21
|
+
handleKeyPress: (e: KeyboardEvent<HTMLInputElement>) => void;
|
|
21
22
|
handlePaste: (e: ClipboardEvent<HTMLInputElement>) => void;
|
|
22
23
|
};
|
|
@@ -24,5 +24,6 @@ declare const OTPInputView: React.FC<OTPInputViewProps & {
|
|
|
24
24
|
handleBlur: () => void;
|
|
25
25
|
handleKeyDown: (e: React.KeyboardEvent<HTMLInputElement>) => void;
|
|
26
26
|
stepValues?: number[];
|
|
27
|
+
handleKeyPress: (e: React.KeyboardEvent<HTMLInputElement>) => void;
|
|
27
28
|
}>;
|
|
28
29
|
export default OTPInputView;
|
|
@@ -17,5 +17,5 @@ interface SideBarNavItemProps {
|
|
|
17
17
|
ariaLabel?: string;
|
|
18
18
|
badge?: number;
|
|
19
19
|
}
|
|
20
|
-
export declare const SideBarNavItem: ({ icon, label, isActive, badge, views, ...props }: SideBarNavItemProps & any) => React.JSX.Element;
|
|
20
|
+
export declare const SideBarNavItem: ({ icon, label, isActive, badge, views, ariaLabel, ...props }: SideBarNavItemProps & any) => React.JSX.Element;
|
|
21
21
|
export {};
|