globalfy-design-system 0.86.0 → 0.88.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;
|
|
@@ -17467,7 +17467,7 @@ const pD = ({ icons: e, className: t }) => {
|
|
|
17467
17467
|
iconRight: i,
|
|
17468
17468
|
className: s,
|
|
17469
17469
|
isLoadingComplete: l,
|
|
17470
|
-
isLoading: c,
|
|
17470
|
+
isLoading: c = !1,
|
|
17471
17471
|
...u
|
|
17472
17472
|
}) => {
|
|
17473
17473
|
const [d, f] = ue("w-0"), p = te(null);
|
|
@@ -17522,7 +17522,7 @@ const pD = ({ icons: e, className: t }) => {
|
|
|
17522
17522
|
tertiaryLight: "!bg-transparent px-4 font-medium text-primary-green-500 focus:font-bold focus:text-primary-green-500 focus:outline-none",
|
|
17523
17523
|
direction: "h-10 bg-primary-green-500 p-2.5 font-medium hover:bg-secondary-green-500 focus:border-none focus:bg-secondary-green-500 focus:outline-none",
|
|
17524
17524
|
directionCircle: "font:medium !min-w-unit-10 bg-primary-green-500 !px-0 hover:bg-secondary-green-500 focus:border-none focus:bg-secondary-green-500 focus:outline-none",
|
|
17525
|
-
icon: "!min-w-unit-10 bg-transparent !px-0 text-primary-green-500 hover:text-secondary-green-500"
|
|
17525
|
+
icon: "!min-w-unit-10 !border-none bg-transparent !px-0 text-primary-green-500 hover:text-secondary-green-500"
|
|
17526
17526
|
},
|
|
17527
17527
|
full: {
|
|
17528
17528
|
true: "w-full",
|
|
@@ -17544,7 +17544,7 @@ const pD = ({ icons: e, className: t }) => {
|
|
|
17544
17544
|
{
|
|
17545
17545
|
disabled: !0,
|
|
17546
17546
|
isLoading: !1,
|
|
17547
|
-
class: "pointer-events-none border-transparent bg-primary-grey-500 font-medium text-primary-grey-700"
|
|
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
|
{
|
|
@@ -17596,22 +17596,12 @@ const pD = ({ icons: e, className: t }) => {
|
|
|
17596
17596
|
{
|
|
17597
17597
|
variant: "secondaryNegative",
|
|
17598
17598
|
disabled: !0,
|
|
17599
|
-
class: "border border-primary-grey-700 bg-transparent"
|
|
17599
|
+
class: "!border !border-primary-grey-700 !bg-transparent"
|
|
17600
17600
|
},
|
|
17601
17601
|
{
|
|
17602
17602
|
variant: "secondary",
|
|
17603
17603
|
disabled: !0,
|
|
17604
|
-
class: "border border-primary-grey-700 bg-transparent"
|
|
17605
|
-
},
|
|
17606
|
-
{
|
|
17607
|
-
variant: "tertiary",
|
|
17608
|
-
disabled: !0,
|
|
17609
|
-
class: "bg-transparent underline"
|
|
17610
|
-
},
|
|
17611
|
-
{
|
|
17612
|
-
variant: "icon",
|
|
17613
|
-
disabled: !0,
|
|
17614
|
-
class: "bg-transparent"
|
|
17604
|
+
class: "!border !border-primary-grey-700 !bg-transparent"
|
|
17615
17605
|
},
|
|
17616
17606
|
// VARIANT DIRECTION CIRCLE
|
|
17617
17607
|
{
|
|
@@ -26099,7 +26089,7 @@ const TD = ({
|
|
|
26099
26089
|
disabled: n,
|
|
26100
26090
|
placeholder: r,
|
|
26101
26091
|
error: o,
|
|
26102
|
-
|
|
26092
|
+
errorMessage: a,
|
|
26103
26093
|
isValid: i,
|
|
26104
26094
|
searchMessage: s,
|
|
26105
26095
|
noResultsFoundMessage: l,
|
|
@@ -26154,7 +26144,7 @@ const TD = ({
|
|
|
26154
26144
|
disableDialCodeAndPrefix: !0,
|
|
26155
26145
|
countries: _n,
|
|
26156
26146
|
onChange: (N) => {
|
|
26157
|
-
t == null || t(N
|
|
26147
|
+
t == null || t(N);
|
|
26158
26148
|
}
|
|
26159
26149
|
}), T = (N) => {
|
|
26160
26150
|
d(!u), S(N);
|