ingeniuscliq-core 0.4.7 → 0.4.9

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.
@@ -8,8 +8,9 @@ interface FormInputProps<T extends FieldValues = FieldValues> extends BaseStyleP
8
8
  readonly customLabel?: React.ReactNode;
9
9
  readonly placeholder?: string;
10
10
  readonly required?: boolean;
11
+ readonly withinLabel?: boolean;
11
12
  readonly withoutPlaceholder?: boolean;
12
13
  readonly textAreaProps?: React.ComponentProps<typeof Textarea>;
13
14
  }
14
- export declare function FormTextArea<T extends FieldValues = FieldValues>({ control, name, label, customLabel, placeholder, className, required, withoutPlaceholder, textAreaProps }: FormInputProps<T>): import("react/jsx-runtime").JSX.Element;
15
+ export declare function FormTextArea<T extends FieldValues = FieldValues>({ control, name, label, customLabel, placeholder, className, required, withinLabel, withoutPlaceholder, textAreaProps }: FormInputProps<T>): import("react/jsx-runtime").JSX.Element;
15
16
  export {};
package/dist/index.js CHANGED
@@ -2559,7 +2559,7 @@ class py extends Nn {
2559
2559
  constructor() {
2560
2560
  super("product");
2561
2561
  ve(this, "getAllCategories", (n) => this.api.get(`${this.apiPrefix}/shop/categories`, { params: n }));
2562
- this.setCrudResourceProperty("getAll", "shop/products"), this.setCrudResourceProperty("get", "products");
2562
+ this.setCrudResourceProperty("getAll", "shop/products"), this.setCrudResourceProperty("get", "shop/products");
2563
2563
  }
2564
2564
  }
2565
2565
  class v4 {
@@ -5222,11 +5222,11 @@ function Gw({ className: e, outlined: t = !1, ...n }) {
5222
5222
  }
5223
5223
  );
5224
5224
  }
5225
- function R4({ control: e, name: t, label: n, customLabel: r, placeholder: o, className: a = "", required: s = !1, withoutPlaceholder: i = !1, textAreaProps: c }) {
5226
- const { t: u } = Qt(), d = () => {
5227
- if (o && !i) return o;
5228
- let l = "";
5229
- return t && s && !i ? l = u(`fields.${t}`) : !s && !i && (l = `${u(`fields.${t}`)} (${u("fields.fieldLabel.optional")})`), l;
5225
+ function R4({ control: e, name: t, label: n, customLabel: r, placeholder: o, className: a = "", required: s = !1, withinLabel: i = !1, withoutPlaceholder: c = !1, textAreaProps: u }) {
5226
+ const { t: d } = Qt(), l = () => {
5227
+ if (o && !c) return o;
5228
+ let p = "";
5229
+ return t && s && !c ? p = d(`fields.${t}`) : !s && !c && (p = `${d(`fields.${t}`)} (${d("fields.fieldLabel.optional")})`), p;
5230
5230
  };
5231
5231
  return /* @__PURE__ */ f(
5232
5232
  Yo,
@@ -5235,8 +5235,9 @@ function R4({ control: e, name: t, label: n, customLabel: r, placeholder: o, cla
5235
5235
  className: a,
5236
5236
  name: t,
5237
5237
  label: n,
5238
+ withinLabel: i,
5238
5239
  customLabel: r,
5239
- render: (l) => /* @__PURE__ */ f(Gw, { placeholder: d(), required: s, ...l, ...c })
5240
+ render: (p) => /* @__PURE__ */ f(Gw, { placeholder: l(), required: s, ...p, ...u })
5240
5241
  }
5241
5242
  );
5242
5243
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ingeniuscliq-core",
3
- "version": "0.4.7",
3
+ "version": "0.4.9",
4
4
  "description": "IngeniusCliq Core UI y lógica compartida",
5
5
  "license": "MIT",
6
6
  "type": "module",