am-shared-assets 1.0.9 → 1.0.10

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.
@@ -11,7 +11,7 @@ interface IAutocompleteProps {
11
11
  variant?: "flat" | "faded" | "bordered";
12
12
  options: {
13
13
  data: any;
14
- element: ReactNode;
14
+ itemElement: ReactNode;
15
15
  }[];
16
16
  iconOnClick?: () => void;
17
17
  endIconOnClick?: () => void;
@@ -203,7 +203,7 @@ const X = {
203
203
  success: "border-base-success",
204
204
  warning: "border-base-warning",
205
205
  danger: "border-base-danger"
206
- }, j = {
206
+ }, E = {
207
207
  default: "bg-default-100",
208
208
  primary: "bg-primary-100",
209
209
  secondary: "bg-secondary-100",
@@ -229,10 +229,10 @@ const X = {
229
229
  e = y[r];
230
230
  break;
231
231
  case "flat":
232
- e = `${j[r]} ${y[r]}`;
232
+ e = `${E[r]} ${y[r]}`;
233
233
  break;
234
234
  case "faded":
235
- e = `border-2 ${P.default} ${j.default} ${y[r]}`;
235
+ e = `border-2 ${P.default} ${E.default} ${y[r]}`;
236
236
  break;
237
237
  case "shadow":
238
238
  e = `shadow-lg ${I[r]} ${y[s]}`;
@@ -283,7 +283,7 @@ const X = {
283
283
  md: "rounded-md",
284
284
  lg: "rounded-lg",
285
285
  full: "rounded-full"
286
- }, D = {
286
+ }, j = {
287
287
  default: "bg-default-200",
288
288
  primary: "bg-base-primary",
289
289
  secondary: "bg-base-secondary",
@@ -324,7 +324,7 @@ const X = {
324
324
  let e = "";
325
325
  switch (t) {
326
326
  case "solid":
327
- e = `${D[r]} ${w[s]}`;
327
+ e = `${j[r]} ${w[s]}`;
328
328
  break;
329
329
  case "bordered":
330
330
  e = `border-2 ${C[r]} ${w[r]}`;
@@ -339,7 +339,7 @@ const X = {
339
339
  e = `border-2 ${C.default} bg-default-100 ${w[r]}`;
340
340
  break;
341
341
  case "shadow":
342
- e = `shadow-lg ${D[r]} ${w[s]}`;
342
+ e = `shadow-lg ${j[r]} ${w[s]}`;
343
343
  break;
344
344
  case "dot":
345
345
  e = `border-2 ${C.default} ${w.black}`;
@@ -550,7 +550,7 @@ const X = {
550
550
  sm: "min-h-6 text-xs",
551
551
  md: "min-h-7 text-sm",
552
552
  lg: "min-h-8 text-base"
553
- }, R = {
553
+ }, D = {
554
554
  default: "bg-content-1",
555
555
  primary: "bg-layout-focus",
556
556
  secondary: "bg-base-secondary",
@@ -603,7 +603,7 @@ const X = {
603
603
  }) => {
604
604
  const i = f(
605
605
  _e[e],
606
- R[r],
606
+ D[r],
607
607
  Se[s],
608
608
  ze[n]
609
609
  );
@@ -618,11 +618,11 @@ const X = {
618
618
  /* @__PURE__ */ a(
619
619
  "div",
620
620
  {
621
- className: `absolute size-2.5 rotate-45 rounded-[2px] shadow-[0px_0px_1px_0px_#0000004D,0px_2px_10px_0px_#0000000F,0px_0px_5px_0px_#00000005] ${Ae(d, o)} ${R[r]}`
621
+ className: `absolute size-2.5 rotate-45 rounded-[2px] shadow-[0px_0px_1px_0px_#0000004D,0px_2px_10px_0px_#0000000F,0px_0px_5px_0px_#00000005] ${Ae(d, o)} ${D[r]}`
622
622
  }
623
623
  )
624
624
  ] });
625
- }, E = {
625
+ }, R = {
626
626
  foreground: "#000000",
627
627
  primary: "#112E62",
628
628
  secondary: "#C59C4E",
@@ -675,7 +675,7 @@ const X = {
675
675
  width: "16px",
676
676
  height: "16px",
677
677
  border: "2px solid",
678
- borderColor: E[d],
678
+ borderColor: R[d],
679
679
  color: "#fff"
680
680
  },
681
681
  "& .MuiSlider-thumb.Mui-focusVisible": {
@@ -688,7 +688,7 @@ const X = {
688
688
  boxShadow: `0 0 0 4px ${N[d]}`
689
689
  },
690
690
  "& .MuiSlider-track": {
691
- color: E[d]
691
+ color: R[d]
692
692
  },
693
693
  "& .MuiSlider-valueLabel": {
694
694
  backgroundColor: "transparent"
@@ -821,14 +821,14 @@ const X = {
821
821
  ),
822
822
  s && /* @__PURE__ */ a("p", { className: `text-default-600 ${n === "sm" && "text-sm"}`, children: s })
823
823
  ] });
824
- }, je = {
824
+ }, Ee = {
825
825
  sm: "h-8 py-1",
826
826
  lg: "h-10 py-2"
827
- }, De = {
827
+ }, je = {
828
828
  flat: "bg-default-100 hover:bg-default-200 focus:bg-transparent focus:border-2 border-[#11181C]",
829
829
  faded: "bg-default-100 hover:bg-default-200 focus:bg-transparent border-2 border-default-200 hover:border-default-400 focus:border-[#11181C]",
830
830
  bordered: "bg-transparent border-2 border-default-200 hover:border-default-400 focus:border-[#11181C]"
831
- }, Re = ({
831
+ }, De = ({
832
832
  value: t,
833
833
  onInputChange: r,
834
834
  placeHolder: s,
@@ -857,7 +857,7 @@ const X = {
857
857
  value: t,
858
858
  onChange: (m) => r && r(m.target.value),
859
859
  placeholder: s,
860
- className: `${De[c]} ${je[i]} transition-all duration-300 w-full px-3 text-sm outline-none rounded-sm ${n && "pl-[30px]"} ${e && "pr-[30px]"}`
860
+ className: `${je[c]} ${Ee[i]} transition-all duration-300 w-full px-3 text-sm outline-none rounded-sm ${n && "pl-[30px]"} ${e && "pr-[30px]"}`
861
861
  }
862
862
  ),
863
863
  n && /* @__PURE__ */ a(
@@ -882,7 +882,7 @@ const X = {
882
882
  iconOnClick: p,
883
883
  endIconOnClick: m
884
884
  }) => {
885
- const x = l.map((u, g) => ({ ...u, optionIndex: g })), h = l.map((u, g) => (delete u.element, { ...u, optionIndex: g }));
885
+ const x = l.map((u, g) => ({ ...u, optionIndex: g })), h = l.map((u, g) => (delete u.itemElement, { ...u, optionIndex: g }));
886
886
  return /* @__PURE__ */ a(
887
887
  U,
888
888
  {
@@ -906,11 +906,11 @@ const X = {
906
906
  getOptionLabel: () => "",
907
907
  renderOption: (u, g) => /* @__PURE__ */ a("li", { ...u, children: x.find(
908
908
  ({ optionIndex: v }) => v === g.optionIndex
909
- )?.element }),
909
+ )?.itemElement }),
910
910
  renderInput: (u) => /* @__PURE__ */ b("div", { children: [
911
911
  t && /* @__PURE__ */ a("div", { className: "h-4 text-xs mb-2 text-default-600", children: t }),
912
912
  /* @__PURE__ */ a(
913
- Re,
913
+ De,
914
914
  {
915
915
  value: n,
916
916
  onInputChange: d,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "am-shared-assets",
3
- "version": "1.0.9",
3
+ "version": "1.0.10",
4
4
  "type": "module",
5
5
  "license": "MIT",
6
6
  "description": "",