globalfy-design-system 0.87.0 → 0.89.0
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.
|
@@ -1,9 +1,14 @@
|
|
|
1
|
-
|
|
1
|
+
import { ParsedCountry } from 'react-international-phone';
|
|
2
|
+
|
|
2
3
|
export type PhoneNumberInputProps = Omit<React.InputHTMLAttributes<HTMLInputElement>, "onChange" | "value"> & {
|
|
3
4
|
value?: string;
|
|
4
|
-
onChange?: (
|
|
5
|
+
onChange?: (data: {
|
|
6
|
+
phone: string;
|
|
7
|
+
inputValue: string;
|
|
8
|
+
country: ParsedCountry;
|
|
9
|
+
}) => void;
|
|
5
10
|
error?: boolean;
|
|
6
|
-
|
|
11
|
+
errorMessage?: string;
|
|
7
12
|
isValid?: boolean;
|
|
8
13
|
searchMessage: string;
|
|
9
14
|
noResultsFoundMessage: string;
|
|
@@ -17544,7 +17544,7 @@ const pD = ({ icons: e, className: t }) => {
|
|
|
17544
17544
|
{
|
|
17545
17545
|
disabled: !0,
|
|
17546
17546
|
isLoading: !1,
|
|
17547
|
-
class: "
|
|
17547
|
+
class: "pointer-events-none border-transparent !bg-primary-grey-500 font-medium !text-primary-grey-700"
|
|
17548
17548
|
},
|
|
17549
17549
|
// IS LOADING AS TRUE
|
|
17550
17550
|
{
|
|
@@ -17603,11 +17603,36 @@ const pD = ({ icons: e, className: t }) => {
|
|
|
17603
17603
|
disabled: !0,
|
|
17604
17604
|
class: "!border !border-primary-grey-700 !bg-transparent"
|
|
17605
17605
|
},
|
|
17606
|
+
{
|
|
17607
|
+
variant: "tertiary",
|
|
17608
|
+
disabled: !0,
|
|
17609
|
+
class: "!bg-transparent"
|
|
17610
|
+
},
|
|
17611
|
+
{
|
|
17612
|
+
variant: "tertiaryDark",
|
|
17613
|
+
disabled: !0,
|
|
17614
|
+
class: "!bg-transparent"
|
|
17615
|
+
},
|
|
17616
|
+
{
|
|
17617
|
+
variant: "tertiaryLight",
|
|
17618
|
+
disabled: !0,
|
|
17619
|
+
class: "!bg-transparent"
|
|
17620
|
+
},
|
|
17621
|
+
{
|
|
17622
|
+
variant: "icon",
|
|
17623
|
+
disabled: !0,
|
|
17624
|
+
class: "!bg-transparent !text-primary-grey-900"
|
|
17625
|
+
},
|
|
17606
17626
|
// VARIANT DIRECTION CIRCLE
|
|
17607
17627
|
{
|
|
17608
17628
|
variant: "directionCircle",
|
|
17609
17629
|
hasIcon: !0,
|
|
17610
17630
|
class: "!min-w-unit-10 !px-0"
|
|
17631
|
+
},
|
|
17632
|
+
{
|
|
17633
|
+
variant: "icon",
|
|
17634
|
+
hasIcon: !0,
|
|
17635
|
+
class: "!min-w-unit-10 !px-0"
|
|
17611
17636
|
}
|
|
17612
17637
|
]
|
|
17613
17638
|
});
|
|
@@ -26089,7 +26114,7 @@ const TD = ({
|
|
|
26089
26114
|
disabled: n,
|
|
26090
26115
|
placeholder: r,
|
|
26091
26116
|
error: o,
|
|
26092
|
-
|
|
26117
|
+
errorMessage: a,
|
|
26093
26118
|
isValid: i,
|
|
26094
26119
|
searchMessage: s,
|
|
26095
26120
|
noResultsFoundMessage: l,
|
|
@@ -26144,7 +26169,7 @@ const TD = ({
|
|
|
26144
26169
|
disableDialCodeAndPrefix: !0,
|
|
26145
26170
|
countries: _n,
|
|
26146
26171
|
onChange: (N) => {
|
|
26147
|
-
t == null || t(N
|
|
26172
|
+
t == null || t(N);
|
|
26148
26173
|
}
|
|
26149
26174
|
}), T = (N) => {
|
|
26150
26175
|
d(!u), S(N);
|