digitinary-ui 1.0.80 → 1.0.81
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/components/DonutChart/DonutChart.d.ts +1 -1
- package/dist/components/PhoneNumber/DropDown/DropDown.d.ts +8 -1
- package/dist/components/PhoneNumber/PhoneNumber.d.ts +2 -3
- package/dist/components/PhoneNumber/usePhoneNumber.d.ts +4 -0
- package/dist/components/SectionHead/SectionHead.d.ts +1 -1
- package/dist/components/SimpleLabelValue/SimpleLabelValue.d.ts +2 -2
- package/dist/components/StackedBarChart/StackedBarChart.d.ts +1 -1
- package/dist/index.js +1 -1
- package/package.json +2 -1
|
@@ -1,8 +1,14 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import './style.scss';
|
|
3
3
|
import { SizeType } from 'types';
|
|
4
|
+
interface PhoneNumberValue {
|
|
5
|
+
countryCodePhone?: string | null;
|
|
6
|
+
item: {
|
|
7
|
+
countryCode: string;
|
|
8
|
+
};
|
|
9
|
+
}
|
|
4
10
|
type Option = {
|
|
5
|
-
value:
|
|
11
|
+
value: PhoneNumberValue;
|
|
6
12
|
view: React.ReactNode;
|
|
7
13
|
};
|
|
8
14
|
export type countryType = {
|
|
@@ -31,6 +37,7 @@ type DropDownProps = {
|
|
|
31
37
|
defaultIcon?: React.ReactNode;
|
|
32
38
|
className?: string;
|
|
33
39
|
filterFunc?: (value: string) => void;
|
|
40
|
+
selectedCountryCode?: string | number;
|
|
34
41
|
};
|
|
35
42
|
declare const DropDown: React.FC<DropDownProps>;
|
|
36
43
|
export default DropDown;
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
1
|
import './style.scss';
|
|
3
2
|
import { SizeType } from 'types';
|
|
4
3
|
interface Props {
|
|
5
|
-
phoneNumPlaceholder
|
|
4
|
+
phoneNumPlaceholder?: string;
|
|
6
5
|
size?: SizeType;
|
|
7
6
|
clearable?: boolean;
|
|
8
7
|
required?: boolean;
|
|
@@ -17,5 +16,5 @@ interface Props {
|
|
|
17
16
|
errorMessage?: string;
|
|
18
17
|
className?: string;
|
|
19
18
|
}
|
|
20
|
-
declare const PhoneNumber:
|
|
19
|
+
declare const PhoneNumber: ({ phoneNumPlaceholder, defaultIconTitle, size, clearable, required, label, optional, disabled, countryCodeValue, phoneNumberValue, onCountryCodeChange, onPhoneNumberChange, errorMessage, className, }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
21
20
|
export default PhoneNumber;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import './style.scss';
|
|
3
3
|
type SimpleLabelValueProps = {
|
|
4
|
-
label
|
|
5
|
-
value
|
|
4
|
+
label?: string | JSX.Element;
|
|
5
|
+
value?: string | number | JSX.Element | JSX.Element[];
|
|
6
6
|
color?: string;
|
|
7
7
|
className?: string;
|
|
8
8
|
dataId?: string;
|