@xsolla/xui-input-time 0.130.0-pr223.1776156979
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/native/index.d.mts +25 -0
- package/native/index.d.ts +25 -0
- package/native/index.js +936 -0
- package/native/index.js.map +1 -0
- package/native/index.mjs +912 -0
- package/native/index.mjs.map +1 -0
- package/package.json +58 -0
- package/web/index.d.mts +25 -0
- package/web/index.d.ts +25 -0
- package/web/index.js +887 -0
- package/web/index.js.map +1 -0
- package/web/index.mjs +856 -0
- package/web/index.mjs.map +1 -0
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import React, { ReactNode } from 'react';
|
|
2
|
+
|
|
3
|
+
interface TimeValue {
|
|
4
|
+
hours: number;
|
|
5
|
+
minutes: number;
|
|
6
|
+
seconds?: number;
|
|
7
|
+
period?: "am" | "pm";
|
|
8
|
+
}
|
|
9
|
+
interface InputTimeProps {
|
|
10
|
+
value?: TimeValue | null;
|
|
11
|
+
onChange?: (value: TimeValue | null) => void;
|
|
12
|
+
showSeconds?: boolean;
|
|
13
|
+
showPeriod?: boolean;
|
|
14
|
+
hourCycle?: 12 | 24;
|
|
15
|
+
icon?: ReactNode;
|
|
16
|
+
size?: "xl" | "lg" | "md" | "sm" | "xs";
|
|
17
|
+
disabled?: boolean;
|
|
18
|
+
error?: string;
|
|
19
|
+
"aria-label"?: string;
|
|
20
|
+
testID?: string;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
declare const InputTime: React.FC<InputTimeProps>;
|
|
24
|
+
|
|
25
|
+
export { InputTime, type InputTimeProps, type TimeValue };
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import React, { ReactNode } from 'react';
|
|
2
|
+
|
|
3
|
+
interface TimeValue {
|
|
4
|
+
hours: number;
|
|
5
|
+
minutes: number;
|
|
6
|
+
seconds?: number;
|
|
7
|
+
period?: "am" | "pm";
|
|
8
|
+
}
|
|
9
|
+
interface InputTimeProps {
|
|
10
|
+
value?: TimeValue | null;
|
|
11
|
+
onChange?: (value: TimeValue | null) => void;
|
|
12
|
+
showSeconds?: boolean;
|
|
13
|
+
showPeriod?: boolean;
|
|
14
|
+
hourCycle?: 12 | 24;
|
|
15
|
+
icon?: ReactNode;
|
|
16
|
+
size?: "xl" | "lg" | "md" | "sm" | "xs";
|
|
17
|
+
disabled?: boolean;
|
|
18
|
+
error?: string;
|
|
19
|
+
"aria-label"?: string;
|
|
20
|
+
testID?: string;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
declare const InputTime: React.FC<InputTimeProps>;
|
|
24
|
+
|
|
25
|
+
export { InputTime, type InputTimeProps, type TimeValue };
|