vrfi-design-system 1.2.5 → 1.2.6
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/index.d.ts +7 -1
- package/dist/main.es.js +19 -17
- package/dist/main.umd.js +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -195,6 +195,11 @@ declare interface AgencyJobCardProps extends HTMLAttributes<HTMLDivElement> {
|
|
|
195
195
|
|
|
196
196
|
export { Align }
|
|
197
197
|
|
|
198
|
+
declare enum AllowedCountries {
|
|
199
|
+
CANADA = "CA",
|
|
200
|
+
UNITED_STATES = "US"
|
|
201
|
+
}
|
|
202
|
+
|
|
198
203
|
export { AntdRadioProps }
|
|
199
204
|
|
|
200
205
|
export declare const ApplicationHeader: default_2.FC<ApplicationHeaderProps>;
|
|
@@ -670,11 +675,12 @@ export { InputRef }
|
|
|
670
675
|
|
|
671
676
|
export { InputTypes }
|
|
672
677
|
|
|
673
|
-
export declare const InputWithCountry: ({ label, type, required, isdCodeName, customInput, ...rest }: Omit<InputWithCountryFlagProps & InputProps_2, "icon">) => default_2.JSX.Element;
|
|
678
|
+
export declare const InputWithCountry: ({ label, type, required, isdCodeName, customInput, onlyCountries, ...rest }: Omit<InputWithCountryFlagProps & InputProps_2, "icon">) => default_2.JSX.Element;
|
|
674
679
|
|
|
675
680
|
declare interface InputWithCountryFlagProps extends Omit<CustomInputProps, "customOnChange"> {
|
|
676
681
|
isdCodeName: string;
|
|
677
682
|
onChange?: (value: MobileInputValue_2) => void;
|
|
683
|
+
onlyCountries?: AllowedCountries[];
|
|
678
684
|
}
|
|
679
685
|
|
|
680
686
|
export declare const JobCard: FC<JobCardProps>;
|
package/dist/main.es.js
CHANGED
|
@@ -56196,17 +56196,18 @@ const HDe = ({
|
|
|
56196
56196
|
required: n,
|
|
56197
56197
|
isdCodeName: r,
|
|
56198
56198
|
customInput: o,
|
|
56199
|
-
|
|
56199
|
+
onlyCountries: a,
|
|
56200
|
+
...i
|
|
56200
56201
|
}) => {
|
|
56201
56202
|
const {
|
|
56202
|
-
field: { onChange:
|
|
56203
|
-
fieldState:
|
|
56204
|
-
} = Co({ name:
|
|
56205
|
-
if (
|
|
56206
|
-
|
|
56203
|
+
field: { onChange: l, value: s, ...d },
|
|
56204
|
+
fieldState: u
|
|
56205
|
+
} = Co({ name: i.name }), { field: A } = Co({ name: r }), f = (g) => {
|
|
56206
|
+
if (i.onChange)
|
|
56207
|
+
i.onChange(g);
|
|
56207
56208
|
else {
|
|
56208
|
-
const { code:
|
|
56209
|
-
|
|
56209
|
+
const { code: v, phone: p } = g;
|
|
56210
|
+
l(p), A.onChange(v);
|
|
56210
56211
|
}
|
|
56211
56212
|
};
|
|
56212
56213
|
return /* @__PURE__ */ B.jsx("div", { className: "inputContainer", children: /* @__PURE__ */ B.jsx(_se, { locale: Qse, children: /* @__PURE__ */ B.jsxs(
|
|
@@ -56222,7 +56223,7 @@ const HDe = ({
|
|
|
56222
56223
|
{
|
|
56223
56224
|
customInput: o,
|
|
56224
56225
|
label: e,
|
|
56225
|
-
value:
|
|
56226
|
+
value: s,
|
|
56226
56227
|
required: n,
|
|
56227
56228
|
className: ut({ customCountryInput: o }),
|
|
56228
56229
|
children: /* @__PURE__ */ B.jsxs("div", { className: ut(Gf.countryInputWrapper), children: [
|
|
@@ -56234,23 +56235,24 @@ const HDe = ({
|
|
|
56234
56235
|
defaultValue: { short: rC.CANADA },
|
|
56235
56236
|
value: {
|
|
56236
56237
|
short: rC.CANADA,
|
|
56237
|
-
phone:
|
|
56238
|
-
code:
|
|
56238
|
+
phone: s,
|
|
56239
|
+
code: A == null ? void 0 : A.value
|
|
56239
56240
|
},
|
|
56240
|
-
onChange:
|
|
56241
|
+
onChange: f,
|
|
56241
56242
|
placeholder: "",
|
|
56242
56243
|
selectProps: { filterOption: Vse },
|
|
56243
56244
|
type: t,
|
|
56244
|
-
status:
|
|
56245
|
-
onWheel: (
|
|
56246
|
-
|
|
56247
|
-
...
|
|
56245
|
+
status: u.invalid ? "error" : void 0,
|
|
56246
|
+
onWheel: (g) => W5(g, dl.NUMBER),
|
|
56247
|
+
onlyCountries: a,
|
|
56248
|
+
...i,
|
|
56249
|
+
...d
|
|
56248
56250
|
}
|
|
56249
56251
|
)
|
|
56250
56252
|
] })
|
|
56251
56253
|
}
|
|
56252
56254
|
),
|
|
56253
|
-
/* @__PURE__ */ B.jsx(Uo, { fieldName:
|
|
56255
|
+
/* @__PURE__ */ B.jsx(Uo, { fieldName: i.name })
|
|
56254
56256
|
]
|
|
56255
56257
|
}
|
|
56256
56258
|
) }) });
|