dfh-ui-library 1.13.141 → 1.13.144

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.
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ declare const FilterButtonGroupExample: React.FC;
3
+ export default FilterButtonGroupExample;
@@ -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 "intl-tel-input/build/css/intlTelInput.css";
4
- import "./phoneInput.css";
5
- declare const PhoneNumberInput4: React.FC<PhoneNumberInputProps>;
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;
@@ -534,6 +534,11 @@ export interface ButtonGroupProps extends InputGroupProps {
534
534
  setSelectedUserValues?: (users: OptionProps[]) => void;
535
535
  isDischarged?: boolean;
536
536
  secondaryVisible?: boolean;
537
+ countData?: {
538
+ my?: number;
539
+ assigned?: number;
540
+ unassigned?: number;
541
+ };
537
542
  }
538
543
  export interface ButtonGroupWithInputsProps extends Omit<ButtonGroupProps, 'selected' | 'onSelect'> {
539
544
  options: {
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;
@@ -500,6 +500,11 @@ interface ButtonGroupProps extends InputGroupProps {
500
500
  setSelectedUserValues?: (users: OptionProps[]) => void;
501
501
  isDischarged?: boolean;
502
502
  secondaryVisible?: boolean;
503
+ countData?: {
504
+ my?: number;
505
+ assigned?: number;
506
+ unassigned?: number;
507
+ };
503
508
  }
504
509
  interface ButtonGroupMultiProps extends InputGroupProps {
505
510
  options: {
@@ -1622,7 +1627,43 @@ declare const PhoneNumberInput2: React__default.FC<PhoneNumberInputProps>;
1622
1627
 
1623
1628
  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
1629
 
1625
- declare const PhoneNumberInput4: React__default.FC<PhoneNumberInputProps>;
1630
+ interface ExtendedPhoneNumberInputProps extends PhoneNumberInputProps {
1631
+ countryCallingCodeEditable?: boolean;
1632
+ disabled?: boolean;
1633
+ onBlur?: (event: React__default.FocusEvent<HTMLInputElement>) => void;
1634
+ onFocus?: (event: React__default.FocusEvent<HTMLInputElement>) => void;
1635
+ onKeyDown?: (event: React__default.KeyboardEvent<HTMLInputElement>) => void;
1636
+ onKeyUp?: (event: React__default.KeyboardEvent<HTMLInputElement>) => void;
1637
+ onKeyPress?: (event: React__default.KeyboardEvent<HTMLInputElement>) => void;
1638
+ maxLength?: number;
1639
+ minLength?: number;
1640
+ autoComplete?: string;
1641
+ autoFocus?: boolean;
1642
+ id?: string;
1643
+ tabIndex?: number;
1644
+ ariaLabel?: string;
1645
+ ariaDescribedBy?: string;
1646
+ ariaInvalid?: boolean;
1647
+ spellCheck?: boolean;
1648
+ dir?: string;
1649
+ lang?: string;
1650
+ title?: string;
1651
+ pattern?: string;
1652
+ required?: boolean;
1653
+ size?: number;
1654
+ step?: number;
1655
+ list?: string;
1656
+ multiple?: boolean;
1657
+ accept?: string;
1658
+ capture?: string;
1659
+ form?: string;
1660
+ formAction?: string;
1661
+ formEncType?: string;
1662
+ formMethod?: string;
1663
+ formNoValidate?: boolean;
1664
+ formTarget?: string;
1665
+ }
1666
+ declare const PhoneNumberInput4: React__default.FC<ExtendedPhoneNumberInputProps>;
1626
1667
 
1627
1668
  /**
1628
1669
  * 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.141",
3
+ "version": "1.13.144",
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";