@dev-blinq/ui-systems 1.0.85 → 1.0.86

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.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  import * as we from "react";
2
- import Fe, { useRef as Qa, useState as Ae, useEffect as Qr, forwardRef as ei, useContext as ni, useLayoutEffect as ti } from "react";
2
+ import Fe, { useRef as Qa, useState as Ee, useEffect as Qr, forwardRef as ei, useContext as ni, useLayoutEffect as ti } from "react";
3
3
  import { Typography as ze, Tooltip as ea, IconButton as Je, Tabs as ri, Tab as ai, Box as ue, Menu as ii, MenuItem as Dt, Divider as oi, LinearProgress as si, Card as or, Dialog as ci, CircularProgress as ui, styled as na, Button as li, TextField as di, InputAdornment as sr, Select as fi, FormControl as pi, Checkbox as gi, FormControlLabel as hi, createTheme as mi } from "@mui/material";
4
4
  import { createSpacing as yi, unstable_createGetCssVar as vi } from "@mui/system";
5
5
  import bi, { internal_serializeStyles as en, internal_mutateStyles as Si } from "@mui/styled-engine";
@@ -239,29 +239,29 @@ function xi() {
239
239
  }), typeof Reflect == "object" && Reflect.construct) {
240
240
  try {
241
241
  Reflect.construct(H, []);
242
- } catch (Ee) {
243
- $ = Ee;
242
+ } catch (Ae) {
243
+ $ = Ae;
244
244
  }
245
245
  Reflect.construct(l, [], H);
246
246
  } else {
247
247
  try {
248
248
  H.call();
249
- } catch (Ee) {
250
- $ = Ee;
249
+ } catch (Ae) {
250
+ $ = Ae;
251
251
  }
252
252
  l.call(H.prototype);
253
253
  }
254
254
  } else {
255
255
  try {
256
256
  throw Error();
257
- } catch (Ee) {
258
- $ = Ee;
257
+ } catch (Ae) {
258
+ $ = Ae;
259
259
  }
260
260
  l();
261
261
  }
262
- } catch (Ee) {
263
- if (Ee && $ && typeof Ee.stack == "string") {
264
- for (var W = Ee.stack.split(`
262
+ } catch (Ae) {
263
+ if (Ae && $ && typeof Ae.stack == "string") {
264
+ for (var W = Ae.stack.split(`
265
265
  `), xe = $.stack.split(`
266
266
  `), ge = W.length - 1, me = xe.length - 1; ge >= 1 && me >= 0 && W[ge] !== xe[me]; )
267
267
  me--;
@@ -608,11 +608,11 @@ Check the top-level render call using <` + O + ">.");
608
608
  rr(De, l);
609
609
  }
610
610
  if (mn.call(C, "key")) {
611
- var qe = F(l), Ee = Object.keys(C).filter(function(Ja) {
611
+ var qe = F(l), Ae = Object.keys(C).filter(function(Ja) {
612
612
  return Ja !== "key";
613
- }), pt = Ee.length > 0 ? "{key: someKey, " + Ee.join(": ..., ") + ": ...}" : "{key: someKey}";
613
+ }), pt = Ae.length > 0 ? "{key: someKey, " + Ae.join(": ..., ") + ": ...}" : "{key: someKey}";
614
614
  if (!ar[qe + pt]) {
615
- var qa = Ee.length > 0 ? "{" + Ee.join(": ..., ") + ": ...}" : "{}";
615
+ var qa = Ae.length > 0 ? "{" + Ae.join(": ..., ") + ": ...}" : "{}";
616
616
  M(`A props object containing a "key" prop is being spread into JSX:
617
617
  let props = %s;
618
618
  <%s {...props} />
@@ -647,7 +647,7 @@ const Ue = ({ children: e, Size: n, category: t, bold: r, sx: a, ...i }) => /* @
647
647
  ...i,
648
648
  children: e
649
649
  }
650
- ), Bu = ({
650
+ ), Fu = ({
651
651
  size: e = "lg",
652
652
  colorHierarchy: n = "brand/primary",
653
653
  disabled: t = !1,
@@ -969,7 +969,7 @@ It.exports = function(n) {
969
969
  It.exports.currencySymbolMap = Tt;
970
970
  var Pi = It.exports;
971
971
  const Oi = /* @__PURE__ */ ta(Pi), ki = (e) => {
972
- const [n, t] = Ae(""), [r, a] = Ae("USD"), [i, s] = Ae([]), c = Fe.useRef(null);
972
+ const [n, t] = Ee(""), [r, a] = Ee("USD"), [i, s] = Ee([]), c = Fe.useRef(null);
973
973
  Qr(() => {
974
974
  const h = [...new Set(Object.values(Bt).map((d) => d.currency))];
975
975
  s(h);
@@ -1223,7 +1223,7 @@ const Oi = /* @__PURE__ */ ta(Pi), ki = (e) => {
1223
1223
  default:
1224
1224
  return lr(e);
1225
1225
  }
1226
- }, ji = (e) => /* @__PURE__ */ we.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: 16, height: 16, viewBox: "0 0 16 16", fill: "none", ...e }, /* @__PURE__ */ we.createElement("path", { d: "M13.5306 8.53065L8.5306 13.5307C8.46083 13.6004 8.37801 13.6558 8.28686 13.6935C8.19571 13.7313 8.09801 13.7507 7.99935 13.7507C7.90069 13.7507 7.80299 13.7313 7.71184 13.6935C7.62069 13.6558 7.53786 13.6004 7.4681 13.5307C7.39833 13.4609 7.34299 13.3781 7.30524 13.2869C7.26748 13.1958 7.24805 13.0981 7.24805 12.9994C7.24805 12.9007 7.26748 12.803 7.30524 12.7119C7.34299 12.6207 7.39833 12.5379 7.4681 12.4682L12.4681 7.46815C12.5379 7.39839 12.6207 7.34304 12.7118 7.30529C12.803 7.26753 12.9007 7.2481 12.9993 7.2481C13.098 7.2481 13.1957 7.26753 13.2869 7.30529C13.378 7.34304 13.4608 7.39839 13.5306 7.46815C13.6004 7.53791 13.6557 7.62074 13.6935 7.71189C13.7312 7.80304 13.7506 7.90074 13.7506 7.9994C13.7506 8.09806 13.7312 8.19576 13.6935 8.28691C13.6557 8.37806 13.6004 8.46089 13.5306 8.53065ZM12.5306 1.96815C12.4609 1.89823 12.3781 1.84275 12.287 1.8049C12.1958 1.76704 12.0981 1.74756 11.9993 1.74756C11.9006 1.74756 11.8029 1.76704 11.7117 1.8049C11.6206 1.84275 11.5378 1.89823 11.4681 1.96815L1.9681 11.4682C1.8272 11.609 1.74805 11.8001 1.74805 11.9994C1.74805 12.1987 1.8272 12.3898 1.9681 12.5307C2.10899 12.6715 2.30009 12.7507 2.49935 12.7507C2.69861 12.7507 2.8897 12.6715 3.0306 12.5307L12.5306 3.03065C12.6003 2.961 12.6556 2.87828 12.6934 2.78723C12.7311 2.69618 12.7506 2.59859 12.7506 2.50003C12.7506 2.40146 12.7311 2.30387 12.6934 2.21282C12.6556 2.12177 12.6003 2.03905 12.5306 1.9694V1.96815Z", fill: "#717076" })), Iu = ({
1226
+ }, ji = (e) => /* @__PURE__ */ we.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: 16, height: 16, viewBox: "0 0 16 16", fill: "none", ...e }, /* @__PURE__ */ we.createElement("path", { d: "M13.5306 8.53065L8.5306 13.5307C8.46083 13.6004 8.37801 13.6558 8.28686 13.6935C8.19571 13.7313 8.09801 13.7507 7.99935 13.7507C7.90069 13.7507 7.80299 13.7313 7.71184 13.6935C7.62069 13.6558 7.53786 13.6004 7.4681 13.5307C7.39833 13.4609 7.34299 13.3781 7.30524 13.2869C7.26748 13.1958 7.24805 13.0981 7.24805 12.9994C7.24805 12.9007 7.26748 12.803 7.30524 12.7119C7.34299 12.6207 7.39833 12.5379 7.4681 12.4682L12.4681 7.46815C12.5379 7.39839 12.6207 7.34304 12.7118 7.30529C12.803 7.26753 12.9007 7.2481 12.9993 7.2481C13.098 7.2481 13.1957 7.26753 13.2869 7.30529C13.378 7.34304 13.4608 7.39839 13.5306 7.46815C13.6004 7.53791 13.6557 7.62074 13.6935 7.71189C13.7312 7.80304 13.7506 7.90074 13.7506 7.9994C13.7506 8.09806 13.7312 8.19576 13.6935 8.28691C13.6557 8.37806 13.6004 8.46089 13.5306 8.53065ZM12.5306 1.96815C12.4609 1.89823 12.3781 1.84275 12.287 1.8049C12.1958 1.76704 12.0981 1.74756 11.9993 1.74756C11.9006 1.74756 11.8029 1.76704 11.7117 1.8049C11.6206 1.84275 11.5378 1.89823 11.4681 1.96815L1.9681 11.4682C1.8272 11.609 1.74805 11.8001 1.74805 11.9994C1.74805 12.1987 1.8272 12.3898 1.9681 12.5307C2.10899 12.6715 2.30009 12.7507 2.49935 12.7507C2.69861 12.7507 2.8897 12.6715 3.0306 12.5307L12.5306 3.03065C12.6003 2.961 12.6556 2.87828 12.6934 2.78723C12.7311 2.69618 12.7506 2.59859 12.7506 2.50003C12.7506 2.40146 12.7311 2.30387 12.6934 2.21282C12.6556 2.12177 12.6003 2.03905 12.5306 1.9694V1.96815Z", fill: "#717076" })), _u = ({
1227
1227
  size: e = "lg",
1228
1228
  designType: n = "default",
1229
1229
  disabled: t = !1,
@@ -1252,7 +1252,7 @@ const Oi = /* @__PURE__ */ ta(Pi), ki = (e) => {
1252
1252
  r && /* @__PURE__ */ g.jsx(Ue, { category: "text", Size: "sm", bold: "semibold", children: r }),
1253
1253
  /* @__PURE__ */ g.jsx($i, { ...d })
1254
1254
  ] });
1255
- }, Fu = ({
1255
+ }, $u = ({
1256
1256
  placeholder: e,
1257
1257
  disabled: n = !1,
1258
1258
  errExists: t = !1,
@@ -1260,7 +1260,7 @@ const Oi = /* @__PURE__ */ ta(Pi), ki = (e) => {
1260
1260
  counterVisibility: a = !0,
1261
1261
  ...i
1262
1262
  }) => {
1263
- const [s, c] = Fe.useState(""), [f, p] = Ae(i.rows || 8), h = (d) => {
1263
+ const [s, c] = Fe.useState(""), [f, p] = Ee(i.rows || 8), h = (d) => {
1264
1264
  p((m) => {
1265
1265
  const x = d === "down" ? m + 1 : m - 1;
1266
1266
  return x < 2 ? 2 : x;
@@ -1329,13 +1329,13 @@ const Oi = /* @__PURE__ */ ta(Pi), ki = (e) => {
1329
1329
  )
1330
1330
  ] })
1331
1331
  ] });
1332
- }, _u = ({
1332
+ }, ju = ({
1333
1333
  size: e = "md",
1334
1334
  disabled: n = !1,
1335
1335
  children: t,
1336
1336
  ...r
1337
1337
  }) => {
1338
- const [a, i] = Ae(r.defaultChecked || !1), s = () => {
1338
+ const [a, i] = Ee(r.defaultChecked || !1), s = () => {
1339
1339
  i(!a), r.onChange && r.onChange();
1340
1340
  };
1341
1341
  return /* @__PURE__ */ g.jsxs("label", { className: "blinq-checkbox", children: [
@@ -1353,13 +1353,13 @@ const Oi = /* @__PURE__ */ ta(Pi), ki = (e) => {
1353
1353
  /* @__PURE__ */ g.jsx("span", { className: "checkmark" }),
1354
1354
  t
1355
1355
  ] });
1356
- }, $u = ({
1356
+ }, Lu = ({
1357
1357
  size: e = "md",
1358
1358
  disabled: n = !1,
1359
1359
  children: t,
1360
1360
  ...r
1361
1361
  }) => {
1362
- const [a, i] = Ae(r.checked || !1), s = () => {
1362
+ const [a, i] = Ee(r.checked || !1), s = () => {
1363
1363
  i(!a), r.onChange && r.onChange();
1364
1364
  };
1365
1365
  return /* @__PURE__ */ g.jsxs("label", { className: "blinq-radio-button", children: [
@@ -1377,7 +1377,7 @@ const Oi = /* @__PURE__ */ ta(Pi), ki = (e) => {
1377
1377
  /* @__PURE__ */ g.jsx("span", { className: "checkmark" }),
1378
1378
  t
1379
1379
  ] });
1380
- }, ju = ({
1380
+ }, Uu = ({
1381
1381
  left: e,
1382
1382
  right: n,
1383
1383
  onToggle: t,
@@ -1442,7 +1442,7 @@ const Oi = /* @__PURE__ */ ta(Pi), ki = (e) => {
1442
1442
  ))
1443
1443
  ] });
1444
1444
  };
1445
- function Lu({
1445
+ function Gu({
1446
1446
  showFirst: e,
1447
1447
  firstComponent: n,
1448
1448
  secondComponent: t
@@ -2526,7 +2526,7 @@ const Uo = ve(Je)`
2526
2526
  &.Mui-disabled {
2527
2527
  background: var(--color-grey-20);
2528
2528
  }
2529
- `, Uu = ({ size: e = "medium", children: n, sx: t, ...r }) => /* @__PURE__ */ g.jsx(Uo, { size: e, tabIndex: -1, ...r, children: n }), Go = ve(ri)`
2529
+ `, Ku = ({ size: e = "medium", children: n, sx: t, ...r }) => /* @__PURE__ */ g.jsx(Uo, { size: e, tabIndex: -1, ...r, children: n }), Go = ve(ri)`
2530
2530
  display: flex;
2531
2531
  align-items: flex-start;
2532
2532
  border-radius: var(--border-radius-radius-lg);
@@ -2569,7 +2569,7 @@ const Uo = ve(Je)`
2569
2569
  border-radius: 50%;
2570
2570
  background: var(--color-error-100);
2571
2571
  `;
2572
- function Gu({ value: e, onChange: n, tabs: t, variant: r }) {
2572
+ function Vu({ value: e, onChange: n, tabs: t, variant: r }) {
2573
2573
  return /* @__PURE__ */ g.jsx(
2574
2574
  Go,
2575
2575
  {
@@ -2633,7 +2633,7 @@ const zo = ve(ue)`
2633
2633
  function Ho(e) {
2634
2634
  return e === "primary" ? "var(--color-primary-100)" : e === "secondary" ? "var(--color-orange-100)" : e === "success" ? "var(--color-success-100)" : "var(--color-black)";
2635
2635
  }
2636
- function Ku({ title: e, icon: n, bgcolor: t, color: r, type: a = "default" }) {
2636
+ function Wu({ title: e, icon: n, bgcolor: t, color: r, type: a = "default" }) {
2637
2637
  return /* @__PURE__ */ g.jsxs(zo, { type: a, bgcolor: t, children: [
2638
2638
  n && /* @__PURE__ */ g.jsx(g.Fragment, { children: n }),
2639
2639
  /* @__PURE__ */ g.jsx(Le, { value: e, size: "sm", weight: "semi", color: r || Ho(a) })
@@ -2656,8 +2656,8 @@ const Zo = ve(({ className: e, ...n }) => /* @__PURE__ */ g.jsx(ea, { ...n, clas
2656
2656
  wordBreak: "break-all"
2657
2657
  }
2658
2658
  }));
2659
- function Vu(e) {
2660
- const { placement: n = "bottom-start", enterDelay: t = 800, enterNextDelay: r = 800, textId: a, ...i } = e, [s, c] = Ae(!1);
2659
+ function zu(e) {
2660
+ const { placement: n = "bottom-start", enterDelay: t = 800, enterNextDelay: r = 800, textId: a, ...i } = e, [s, c] = Ee(!1);
2661
2661
  return Yo(() => {
2662
2662
  if (a) {
2663
2663
  const p = document.getElementById(a), h = (p == null ? void 0 : p.scrollWidth) || 0, d = (p == null ? void 0 : p.clientWidth) || 0, m = (p == null ? void 0 : p.scrollHeight) || 0, x = (p == null ? void 0 : p.clientHeight) || 0, v = h > d || m > x;
@@ -2828,7 +2828,7 @@ const Xo = ve(ii)`
2828
2828
  height: 14px;
2829
2829
  }
2830
2830
  `;
2831
- function Wu({
2831
+ function Hu({
2832
2832
  items: e,
2833
2833
  anchorEl: n,
2834
2834
  handleClose: t,
@@ -6109,8 +6109,8 @@ const zr = du(si)(({ theme: e }) => ({
6109
6109
  /* @__PURE__ */ g.jsx($n, { size: 16 }),
6110
6110
  /* @__PURE__ */ g.jsx($n, { size: 16 }),
6111
6111
  /* @__PURE__ */ g.jsx($n, { size: 16 })
6112
- ], zu = ({ noDialog: e }) => {
6113
- const [n, t] = Ae(0), [r, a] = Ae(1), i = 4;
6112
+ ], Yu = ({ noDialog: e }) => {
6113
+ const [n, t] = Ee(0), [r, a] = Ee(1), i = 4;
6114
6114
  return Qr(() => {
6115
6115
  const s = setInterval(() => {
6116
6116
  t((c) => {
@@ -6167,7 +6167,7 @@ const zr = du(si)(({ theme: e }) => ({
6167
6167
  "&:focus": {
6168
6168
  outline: "none"
6169
6169
  }
6170
- })), Hu = ({ children: e, ...n }) => /* @__PURE__ */ g.jsx(
6170
+ })), Zu = ({ children: e, ...n }) => /* @__PURE__ */ g.jsx(
6171
6171
  bu,
6172
6172
  {
6173
6173
  ...n,
@@ -6380,7 +6380,7 @@ function Pu(e) {
6380
6380
  function Ou(e) {
6381
6381
  return nn({ tag: "svg", attr: { viewBox: "0 0 1024 1024" }, child: [{ tag: "path", attr: { d: "M360 184h-8c4.4 0 8-3.6 8-8v8h304v-8c0 4.4 3.6 8 8 8h-8v72h72v-80c0-35.3-28.7-64-64-64H352c-35.3 0-64 28.7-64 64v80h72v-72zm504 72H160c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h60.4l24.7 523c1.6 34.1 29.8 61 63.9 61h454c34.2 0 62.3-26.8 63.9-61l24.7-523H888c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM731.3 840H292.7l-24.2-512h487l-24.2 512z" }, child: [] }] })(e);
6382
6382
  }
6383
- function Yu({
6383
+ function Xu({
6384
6384
  value: e,
6385
6385
  onChange: n,
6386
6386
  options: t,
@@ -6402,7 +6402,7 @@ function Yu({
6402
6402
  maxChar: M = 80,
6403
6403
  showWarningForTextLength: w = !1
6404
6404
  }) {
6405
- const [k, b] = Ae(!1), [I, B] = Ae(null), [re, V] = Ae(""), [o, D] = Ae(!1), [j, F] = Ae(""), ee = (E) => {
6405
+ const [k, b] = Ee(!1), [I, B] = Ee(null), [re, V] = Ee(""), [o, D] = Ee(!1), [j, F] = Ee(""), ee = (E) => {
6406
6406
  n(E.target.value);
6407
6407
  }, ae = (E, R, _) => {
6408
6408
  m ? (r == null || r(R, R), S(!1)) : (E.stopPropagation(), B(R), V(_));
@@ -6671,20 +6671,42 @@ function Yu({
6671
6671
  }
6672
6672
  );
6673
6673
  }
6674
- ve(gi)`
6674
+ const ku = ve(gi)`
6675
6675
  padding: 4px;
6676
+
6676
6677
  :not(&.Mui-disabled) {
6677
6678
  .MuiSvgIcon-root {
6678
6679
  fill: var(--color-primary-100);
6679
6680
  }
6680
6681
  }
6681
- `;
6682
- ve(hi)`
6682
+ `, Mu = ve(hi)`
6683
6683
  margin-left: 0px;
6684
6684
  margin-right: 0px;
6685
6685
  gap: 4px;
6686
+ &.Mui-disabled {
6687
+ cursor: no-drop;
6688
+ }
6686
6689
  `;
6687
- const Zu = mi({
6690
+ function qu(e) {
6691
+ const { label: n, onClick: t, ...r } = e, [a, i] = Ee(r.defaultChecked || !1), s = (c) => {
6692
+ i(c), t && t(c);
6693
+ };
6694
+ return /* @__PURE__ */ g.jsx(
6695
+ Mu,
6696
+ {
6697
+ control: /* @__PURE__ */ g.jsx(
6698
+ ku,
6699
+ {
6700
+ ...r,
6701
+ checked: a,
6702
+ onChange: (c) => s(c.target.checked)
6703
+ }
6704
+ ),
6705
+ label: n
6706
+ }
6707
+ );
6708
+ }
6709
+ const Ju = mi({
6688
6710
  typography: {
6689
6711
  fontFamily: '"Plus Jakarta Sans", sans-serif'
6690
6712
  },
@@ -6752,32 +6774,33 @@ const Zu = mi({
6752
6774
  // You can also define other palette colors like warning, info, success, etc.
6753
6775
  }
6754
6776
  });
6755
- function Xu(e, n) {
6777
+ function Qu(e, n) {
6756
6778
  return e.length > n ? e.substring(0, n - 3) + "..." : e;
6757
6779
  }
6758
- function qu(e, n) {
6780
+ function el(e, n) {
6759
6781
  return e.length > n;
6760
6782
  }
6761
6783
  export {
6762
- Bu as Button,
6763
- _u as CustomCheckbox,
6764
- Iu as CustomInput,
6765
- Wu as CustomMenu,
6766
- $u as CustomRadioButton,
6784
+ Fu as Button,
6785
+ ju as CustomCheckbox,
6786
+ _u as CustomInput,
6787
+ Hu as CustomMenu,
6788
+ Lu as CustomRadioButton,
6767
6789
  Le as CustomText,
6768
- Fu as CustomTextArea,
6769
- ju as CustomToggleSwitch,
6770
- Uu as IconButtonCustom,
6771
- zu as LinearProgressBar,
6772
- Hu as MUIButton,
6790
+ $u as CustomTextArea,
6791
+ Uu as CustomToggleSwitch,
6792
+ Ku as IconButtonCustom,
6793
+ Yu as LinearProgressBar,
6794
+ Zu as MUIButton,
6795
+ qu as MUICheckbox,
6773
6796
  Zr as MUIInput,
6774
- Yu as MUISelect,
6775
- Gu as MUITabs,
6776
- Ku as Tag,
6777
- Vu as Tooltip,
6778
- Lu as Transitioner,
6797
+ Xu as MUISelect,
6798
+ Vu as MUITabs,
6799
+ Wu as Tag,
6800
+ zu as Tooltip,
6801
+ Gu as Transitioner,
6779
6802
  Ue as TypographyCustom,
6780
- Zu as defaultTheme,
6781
- qu as isTextLarge,
6782
- Xu as textShortner
6803
+ Ju as defaultTheme,
6804
+ el as isTextLarge,
6805
+ Qu as textShortner
6783
6806
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@dev-blinq/ui-systems",
3
3
  "description": "this package contains all ui components like button, input, checkbox, colors that blinq.io needs",
4
- "version": "1.0.85",
4
+ "version": "1.0.86",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
7
7
  "types": "./dist/index.d.ts",