@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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kanda-libs/ks-component-ts",
3
- "version": "0.3.25",
3
+ "version": "0.3.27",
4
4
  "description": "Kanda form component library",
5
5
  "main": "dist/index.esm.js",
6
6
  "module": "dist/index.esm.js",
@@ -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
  )}
@@ -13,6 +13,9 @@ export type PhoneNumberInputUncontrolledArgs = Omit<
13
13
  | "phoneNumberProps"
14
14
  | "forwardRef"
15
15
  | "options"
16
+ | "autoComplete"
17
+ | "autoFocus"
18
+ | "disabled"
16
19
  >;
17
20
 
18
21
  export interface PhoneNumberInputUncontrolledHook {
@@ -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;