@kanda-libs/ks-component-ts 0.3.25 → 0.3.27
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/index.d.ts +13145 -13145
- package/dist/index.esm.js +4 -4
- package/dist/index.esm.js.map +3 -3
- package/package.json +1 -1
- package/src/field/components/PhoneNumberInput/PhoneNumberInputUncontrolled/PhoneNumberInputUncontrolled.tsx +2 -0
- package/src/field/components/PhoneNumberInput/PhoneNumberInputUncontrolled/usePhoneNumberInputUncontrolled.ts +3 -0
- package/src/field/components/PhoneNumberInput/types.d.ts +5 -1
- package/src/generated/components/schemas/EnterpriseUserType.ts +2 -1
- package/src/generated/widget/index.tsx +61747 -61746
package/package.json
CHANGED
|
@@ -17,6 +17,7 @@ const PhoneNumberInputUncontrolled: FunctionComponent<PhoneNumberInputUncontroll
|
|
|
17
17
|
isLoading,
|
|
18
18
|
phoneNumberProps,
|
|
19
19
|
countryCodeName,
|
|
20
|
+
...rest
|
|
20
21
|
}) {
|
|
21
22
|
const { classNames, skeletonClasses, code } =
|
|
22
23
|
usePhoneNumberInputUncontrolled({
|
|
@@ -48,6 +49,7 @@ const PhoneNumberInputUncontrolled: FunctionComponent<PhoneNumberInputUncontroll
|
|
|
48
49
|
name={name}
|
|
49
50
|
placeholder={placeholder as string}
|
|
50
51
|
{...phoneNumberProps}
|
|
52
|
+
{...rest}
|
|
51
53
|
/>
|
|
52
54
|
</>
|
|
53
55
|
)}
|
|
@@ -6,7 +6,11 @@ export interface PhoneNumberInputOption {
|
|
|
6
6
|
value: string;
|
|
7
7
|
}
|
|
8
8
|
|
|
9
|
-
export interface PhoneNumberInputUncontrolledProps
|
|
9
|
+
export interface PhoneNumberInputUncontrolledProps
|
|
10
|
+
extends Pick<
|
|
11
|
+
InputHTMLAttributes<HTMLInputElement>,
|
|
12
|
+
"autoComplete" | "autoFocus" | "disabled"
|
|
13
|
+
> {
|
|
10
14
|
/**
|
|
11
15
|
* Name of the input required for form to work
|
|
12
16
|
*/
|
|
@@ -6,6 +6,7 @@ export const EnterpriseUserType = t.intersection([
|
|
|
6
6
|
role: t.union([
|
|
7
7
|
t.literal("enterprise-admin"),
|
|
8
8
|
t.literal("enterprise-user"),
|
|
9
|
+
t.literal("enterprise-trainee"),
|
|
9
10
|
]),
|
|
10
11
|
name: t.string,
|
|
11
12
|
email: t.string,
|
|
@@ -19,7 +20,7 @@ export const EnterpriseUserType = t.intersection([
|
|
|
19
20
|
|
|
20
21
|
export interface EnterpriseUserType {
|
|
21
22
|
uid?: string;
|
|
22
|
-
role: "enterprise-admin" | "enterprise-user";
|
|
23
|
+
role: "enterprise-admin" | "enterprise-user" | "enterprise-trainee";
|
|
23
24
|
name: string;
|
|
24
25
|
email: string;
|
|
25
26
|
mobile?: string;
|