ingeniuscliq-core 0.3.19 → 0.3.21
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.
|
@@ -7,6 +7,7 @@ interface FormSelectProps<T extends FieldValues = FieldValues> extends BaseStyle
|
|
|
7
7
|
readonly placeholder?: string;
|
|
8
8
|
readonly options: CustomSelectProps['options'];
|
|
9
9
|
readonly className: string;
|
|
10
|
+
readonly selectProps?: Omit<CustomSelectProps, 'options' | 'placeholder'>;
|
|
10
11
|
}
|
|
11
|
-
export declare function FormSelect<T extends FieldValues = FieldValues>({ control, name, placeholder, className, options }: FormSelectProps<T>): import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
export declare function FormSelect<T extends FieldValues = FieldValues>({ control, name, placeholder, className, options, selectProps }: FormSelectProps<T>): import("react/jsx-runtime").JSX.Element;
|
|
12
13
|
export {};
|
package/dist/index.js
CHANGED
|
@@ -8736,15 +8736,15 @@ function j1({ options: e, placeholder: t, className: n = "" }) {
|
|
|
8736
8736
|
/* @__PURE__ */ f(H1, { children: e.map((r) => /* @__PURE__ */ f(z1, { value: r.value, children: r.label }, r.value)) })
|
|
8737
8737
|
] });
|
|
8738
8738
|
}
|
|
8739
|
-
function m4({ control: e, name: t, placeholder: n, className: r = "", options: o }) {
|
|
8740
|
-
const { t:
|
|
8739
|
+
function m4({ control: e, name: t, placeholder: n, className: r = "", options: o, selectProps: a }) {
|
|
8740
|
+
const { t: s } = Zn(), i = () => n || (t ? s(`fields.${t}`) : "");
|
|
8741
8741
|
return /* @__PURE__ */ f(
|
|
8742
8742
|
Yo,
|
|
8743
8743
|
{
|
|
8744
8744
|
control: e,
|
|
8745
8745
|
className: r,
|
|
8746
8746
|
name: t,
|
|
8747
|
-
render: (
|
|
8747
|
+
render: (c) => /* @__PURE__ */ f(j1, { ...c, ...a, options: o, placeholder: i() })
|
|
8748
8748
|
}
|
|
8749
8749
|
);
|
|
8750
8750
|
}
|