@ambuj.bhaskar/react-component-library 0.30.8 → 0.30.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.
package/dist/index.d.ts CHANGED
@@ -1304,6 +1304,7 @@ export declare type MultiselectProps = {
1304
1304
  disabled?: boolean;
1305
1305
  id?: string;
1306
1306
  suffixIcon?: ReactNode | boolean;
1307
+ mode?: "multiple" | "tags";
1307
1308
  };
1308
1309
 
1309
1310
  declare type Option_2 = {
package/dist/index.js CHANGED
@@ -86035,7 +86035,8 @@ const GIe = {
86035
86035
  id: E = "",
86036
86036
  className: S = "",
86037
86037
  textColor: _,
86038
- textSize: M = "s"
86038
+ textSize: M = "s",
86039
+ mode: H = "multiple"
86039
86040
  }) => (M = M ?? GIe[x], /* @__PURE__ */ j.jsx(
86040
86041
  Ta,
86041
86042
  {
@@ -86044,7 +86045,7 @@ const GIe = {
86044
86045
  disabled: d,
86045
86046
  showSearch: h,
86046
86047
  className: `multi_select_container ${S} h_${x} text_${M}`,
86047
- mode: "multiple",
86048
+ mode: H,
86048
86049
  style: {
86049
86050
  width: y,
86050
86051
  "--c_trigger_highlight": o,
@@ -86061,18 +86062,18 @@ const GIe = {
86061
86062
  onChange: t,
86062
86063
  popupClassName: `multi_select_dropdown h_${x} text_${M}`,
86063
86064
  value: n,
86064
- filterOption: (H, k) => ((k == null ? void 0 : k.label) ?? "").toLowerCase().includes(H.toLowerCase()),
86065
+ filterOption: (k, B) => ((B == null ? void 0 : B.label) ?? "").toLowerCase().includes(k.toLowerCase()),
86065
86066
  title: p,
86066
86067
  maxCount: m,
86067
86068
  maxTagCount: C,
86068
- maxTagPlaceholder: (H) => /* @__PURE__ */ j.jsx(
86069
+ maxTagPlaceholder: (k) => /* @__PURE__ */ j.jsx(
86069
86070
  Da,
86070
86071
  {
86071
86072
  styles: { root: { pointerEvents: "none" } },
86072
- title: H.map(({ label: k }) => k).join(", "),
86073
+ title: k.map(({ label: B }) => B).join(", "),
86073
86074
  children: /* @__PURE__ */ j.jsxs("span", { children: [
86074
86075
  "+",
86075
- H.length
86076
+ k.length
86076
86077
  ] })
86077
86078
  }
86078
86079
  )
@@ -89151,6 +89152,7 @@ const UPe = (e) => {
89151
89152
  Ir,
89152
89153
  {
89153
89154
  icon: "deleteIcon",
89155
+ title: "Delete field",
89154
89156
  size: "s",
89155
89157
  variant: "secondary",
89156
89158
  onClick: (s) => {
@@ -89186,6 +89188,7 @@ const UPe = (e) => {
89186
89188
  Ir,
89187
89189
  {
89188
89190
  icon: "plus",
89191
+ title: "Add new section",
89189
89192
  size: "s",
89190
89193
  variant: "secondary",
89191
89194
  onClick: (p) => {
@@ -89198,6 +89201,7 @@ const UPe = (e) => {
89198
89201
  Ir,
89199
89202
  {
89200
89203
  icon: "deleteIcon",
89204
+ title: "Delete section",
89201
89205
  size: "s",
89202
89206
  variant: "secondary",
89203
89207
  onClick: (p) => {
@@ -89326,7 +89330,7 @@ const UPe = (e) => {
89326
89330
  maxHeight: n
89327
89331
  },
89328
89332
  children: [
89329
- /* @__PURE__ */ j.jsxs("form", { className: "form-group-form", children: [
89333
+ /* @__PURE__ */ j.jsxs("form", { onSubmit: p(S), className: "form-group-form", children: [
89330
89334
  /* @__PURE__ */ j.jsx("div", { className: "form-group-content", children: M() }),
89331
89335
  (r || a) && /* @__PURE__ */ j.jsxs("div", { className: "form-group-actions", children: [
89332
89336
  a && /* @__PURE__ */ j.jsx(
@@ -89344,10 +89348,7 @@ const UPe = (e) => {
89344
89348
  type: "submit",
89345
89349
  content: o,
89346
89350
  loading: E,
89347
- ...i,
89348
- onClick: (H) => {
89349
- H.preventDefault(), p(S);
89350
- }
89351
+ ...i
89351
89352
  }
89352
89353
  )
89353
89354
  ] })