dfh-ui-library 1.13.141 → 1.13.143
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/cjs/index.css +1 -1
- package/dist/cjs/index.css.map +1 -1
- package/dist/cjs/index.js +1 -1
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/types/components/Media/Icons/Icons.d.ts +1 -0
- package/dist/cjs/types/components/PhoneNumberInput/PhoneNumberInput4.d.ts +39 -3
- package/dist/cjs/types/shared/models/components/common.model.d.ts +1 -1
- package/dist/esm/index.css +1 -1
- package/dist/esm/index.css.map +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/types/components/Media/Icons/Icons.d.ts +1 -0
- package/dist/esm/types/components/PhoneNumberInput/PhoneNumberInput4.d.ts +39 -3
- package/dist/esm/types/shared/models/components/common.model.d.ts +1 -1
- package/dist/index.d.ts +38 -2
- package/package.json +2 -1
- package/dist/cjs/types/components/PhoneNumberInput/PhoneNumberInput4.test.d.ts +0 -1
- package/dist/esm/types/components/PhoneNumberInput/PhoneNumberInput4.test.d.ts +0 -1
@@ -84,3 +84,4 @@ export declare const ReportingSelected: ({ classes, onClick, ...props }: IconPro
|
|
84
84
|
export declare const DropdownArrowIcon: ({ classes, onClick, ...props }: IconProps) => React.JSX.Element;
|
85
85
|
export declare const WarningCircleIcon: ({ classes, onClick, ...props }: IconProps) => React.JSX.Element;
|
86
86
|
export declare const LightbulbIcon: ({ classes, onClick, ...props }: IconProps) => React.JSX.Element;
|
87
|
+
export declare const LockIcon: ({ classes, onClick, ...props }: IconProps) => React.JSX.Element;
|
@@ -1,6 +1,42 @@
|
|
1
1
|
import React from "react";
|
2
2
|
import { PhoneNumberInputProps } from "../../shared/models/components/common.model";
|
3
|
-
import
|
4
|
-
import
|
5
|
-
|
3
|
+
import 'react-phone-input-2/lib/style.css';
|
4
|
+
import './phoneInput.css';
|
5
|
+
interface ExtendedPhoneNumberInputProps extends PhoneNumberInputProps {
|
6
|
+
countryCallingCodeEditable?: boolean;
|
7
|
+
disabled?: boolean;
|
8
|
+
onBlur?: (event: React.FocusEvent<HTMLInputElement>) => void;
|
9
|
+
onFocus?: (event: React.FocusEvent<HTMLInputElement>) => void;
|
10
|
+
onKeyDown?: (event: React.KeyboardEvent<HTMLInputElement>) => void;
|
11
|
+
onKeyUp?: (event: React.KeyboardEvent<HTMLInputElement>) => void;
|
12
|
+
onKeyPress?: (event: React.KeyboardEvent<HTMLInputElement>) => void;
|
13
|
+
maxLength?: number;
|
14
|
+
minLength?: number;
|
15
|
+
autoComplete?: string;
|
16
|
+
autoFocus?: boolean;
|
17
|
+
id?: string;
|
18
|
+
tabIndex?: number;
|
19
|
+
ariaLabel?: string;
|
20
|
+
ariaDescribedBy?: string;
|
21
|
+
ariaInvalid?: boolean;
|
22
|
+
spellCheck?: boolean;
|
23
|
+
dir?: string;
|
24
|
+
lang?: string;
|
25
|
+
title?: string;
|
26
|
+
pattern?: string;
|
27
|
+
required?: boolean;
|
28
|
+
size?: number;
|
29
|
+
step?: number;
|
30
|
+
list?: string;
|
31
|
+
multiple?: boolean;
|
32
|
+
accept?: string;
|
33
|
+
capture?: string;
|
34
|
+
form?: string;
|
35
|
+
formAction?: string;
|
36
|
+
formEncType?: string;
|
37
|
+
formMethod?: string;
|
38
|
+
formNoValidate?: boolean;
|
39
|
+
formTarget?: string;
|
40
|
+
}
|
41
|
+
declare const PhoneNumberInput4: React.FC<ExtendedPhoneNumberInputProps>;
|
6
42
|
export default PhoneNumberInput4;
|
@@ -268,7 +268,7 @@ export interface CustomDatePickerProps {
|
|
268
268
|
export interface PhoneNumberInputProps {
|
269
269
|
value: string;
|
270
270
|
countryCallingCodeEditable?: boolean;
|
271
|
-
onChange: (value: string) => void;
|
271
|
+
onChange: (value: string, country?: string) => void;
|
272
272
|
placeholder?: string;
|
273
273
|
additionalClasses?: string | undefined;
|
274
274
|
error?: string;
|
package/dist/index.d.ts
CHANGED
@@ -249,7 +249,7 @@ interface CustomDatePickerProps {
|
|
249
249
|
interface PhoneNumberInputProps {
|
250
250
|
value: string;
|
251
251
|
countryCallingCodeEditable?: boolean;
|
252
|
-
onChange: (value: string) => void;
|
252
|
+
onChange: (value: string, country?: string) => void;
|
253
253
|
placeholder?: string;
|
254
254
|
additionalClasses?: string | undefined;
|
255
255
|
error?: string;
|
@@ -1622,7 +1622,43 @@ declare const PhoneNumberInput2: React__default.FC<PhoneNumberInputProps>;
|
|
1622
1622
|
|
1623
1623
|
declare const PhoneNumberInput3: <T extends PhoneNumberInputProps>({ value, onChange, countryCallingCodeEditable, placeholder, additionalClasses, labelType, isBorderedError, inputVariant, error, type, readOnly, label, name, isAdditionalErrorInput, additionalErrorClasses, field, isRequired, ...props }: T) => React__default.JSX.Element;
|
1624
1624
|
|
1625
|
-
|
1625
|
+
interface ExtendedPhoneNumberInputProps extends PhoneNumberInputProps {
|
1626
|
+
countryCallingCodeEditable?: boolean;
|
1627
|
+
disabled?: boolean;
|
1628
|
+
onBlur?: (event: React__default.FocusEvent<HTMLInputElement>) => void;
|
1629
|
+
onFocus?: (event: React__default.FocusEvent<HTMLInputElement>) => void;
|
1630
|
+
onKeyDown?: (event: React__default.KeyboardEvent<HTMLInputElement>) => void;
|
1631
|
+
onKeyUp?: (event: React__default.KeyboardEvent<HTMLInputElement>) => void;
|
1632
|
+
onKeyPress?: (event: React__default.KeyboardEvent<HTMLInputElement>) => void;
|
1633
|
+
maxLength?: number;
|
1634
|
+
minLength?: number;
|
1635
|
+
autoComplete?: string;
|
1636
|
+
autoFocus?: boolean;
|
1637
|
+
id?: string;
|
1638
|
+
tabIndex?: number;
|
1639
|
+
ariaLabel?: string;
|
1640
|
+
ariaDescribedBy?: string;
|
1641
|
+
ariaInvalid?: boolean;
|
1642
|
+
spellCheck?: boolean;
|
1643
|
+
dir?: string;
|
1644
|
+
lang?: string;
|
1645
|
+
title?: string;
|
1646
|
+
pattern?: string;
|
1647
|
+
required?: boolean;
|
1648
|
+
size?: number;
|
1649
|
+
step?: number;
|
1650
|
+
list?: string;
|
1651
|
+
multiple?: boolean;
|
1652
|
+
accept?: string;
|
1653
|
+
capture?: string;
|
1654
|
+
form?: string;
|
1655
|
+
formAction?: string;
|
1656
|
+
formEncType?: string;
|
1657
|
+
formMethod?: string;
|
1658
|
+
formNoValidate?: boolean;
|
1659
|
+
formTarget?: string;
|
1660
|
+
}
|
1661
|
+
declare const PhoneNumberInput4: React__default.FC<ExtendedPhoneNumberInputProps>;
|
1626
1662
|
|
1627
1663
|
/**
|
1628
1664
|
* Primary UI component for Tooltip
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "dfh-ui-library",
|
3
|
-
"version": "1.13.
|
3
|
+
"version": "1.13.143",
|
4
4
|
"description": "",
|
5
5
|
"scripts": {
|
6
6
|
"build": "rollup -c --bundleConfigAsCjs --environment NODE_ENV:production",
|
@@ -37,6 +37,7 @@
|
|
37
37
|
"react-datepicker": "^4.24.0",
|
38
38
|
"react-dom": "^18.2.0",
|
39
39
|
"react-input-mask": "^3.0.0-alpha.2",
|
40
|
+
"react-phone-input-2": "^2.15.1",
|
40
41
|
"react-phone-number-input": "^3.4.11",
|
41
42
|
"react-select": "^5.8.0",
|
42
43
|
"react-tag-input": "^6.10.6",
|
@@ -1 +0,0 @@
|
|
1
|
-
import "@testing-library/jest-dom";
|
@@ -1 +0,0 @@
|
|
1
|
-
import "@testing-library/jest-dom";
|