@data-c/ui 0.2.81 → 0.2.82

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
@@ -2350,7 +2350,7 @@ function Editable(props) {
2350
2350
  error
2351
2351
  } = props;
2352
2352
  const {
2353
- InputProps: _5,
2353
+ InputProps: _,
2354
2354
  value: __,
2355
2355
  onKeyDown: ___,
2356
2356
  onChange: ____,
@@ -2453,11 +2453,11 @@ function Editable(props) {
2453
2453
  // src/SearchTextField/index.tsx
2454
2454
  import Search from "@mui/icons-material/Search";
2455
2455
  import { InputAdornment as InputAdornment2, TextField as TextField2 } from "@mui/material";
2456
- import _ from "lodash";
2456
+ import debounce from "lodash/debounce";
2457
2457
  import { jsx as jsx13 } from "react/jsx-runtime";
2458
2458
  function SearchTextField(props) {
2459
2459
  const { onSearch, ...rest } = props;
2460
- const debouncedHandleChange = _.debounce((query) => onSearch(query), 500);
2460
+ const debouncedHandleChange = debounce((query) => onSearch(query), 500);
2461
2461
  function handleChange(event) {
2462
2462
  const value = event.target.value;
2463
2463
  debouncedHandleChange(value);
@@ -2741,7 +2741,7 @@ var ValidationError = class extends Error {
2741
2741
  originalPath: params.path
2742
2742
  });
2743
2743
  if (typeof message === "string")
2744
- return message.replace(strReg, (_5, key2) => printValue(params[key2]));
2744
+ return message.replace(strReg, (_, key2) => printValue(params[key2]));
2745
2745
  if (typeof message === "function")
2746
2746
  return message(params);
2747
2747
  return message;
@@ -3505,7 +3505,7 @@ attempted value: ${formattedValue}
3505
3505
  [isIndex ? "index" : "key"]: k,
3506
3506
  path: isIndex || k.includes(".") ? `${parentPath || ""}[${isIndex ? k : `"${k}"`}]` : (parentPath ? `${parentPath}.` : "") + key2
3507
3507
  });
3508
- return (_5, panic, next) => this.resolve(testOptions)._validate(value, testOptions, panic, next);
3508
+ return (_, panic, next) => this.resolve(testOptions)._validate(value, testOptions, panic, next);
3509
3509
  }
3510
3510
  validate(value, options) {
3511
3511
  var _options$disableStack2;
@@ -4434,7 +4434,7 @@ function sortByKeyOrder(keys) {
4434
4434
  return findIndex(keys, a) - findIndex(keys, b);
4435
4435
  };
4436
4436
  }
4437
- var parseJson = (value, _5, schema6) => {
4437
+ var parseJson = (value, _, schema6) => {
4438
4438
  if (typeof value !== "string") {
4439
4439
  return value;
4440
4440
  }
@@ -5533,7 +5533,7 @@ function AlterarSenha(props) {
5533
5533
  }
5534
5534
  return false;
5535
5535
  }
5536
- return /* @__PURE__ */ jsxs14(Dialog_default.Root, { open: isOpen, onClose: (_5) => onClose(), maxWidth: "md", children: [
5536
+ return /* @__PURE__ */ jsxs14(Dialog_default.Root, { open: isOpen, onClose: (_) => onClose(), maxWidth: "md", children: [
5537
5537
  /* @__PURE__ */ jsxs14(Dialog_default.Header, { children: [
5538
5538
  /* @__PURE__ */ jsx32(Dialog_default.Title, { children: "Alterar Senha" }),
5539
5539
  /* @__PURE__ */ jsx32(Dialog_default.ActionClose, { onClose })
@@ -6050,7 +6050,7 @@ function VerificationCodeInput({
6050
6050
  inputsRef.current[index - 1]?.focus();
6051
6051
  }
6052
6052
  };
6053
- return /* @__PURE__ */ jsx37(Box12, { display: "flex", gap: 1, children: Array.from({ length }).map((_5, i) => /* @__PURE__ */ jsx37(
6053
+ return /* @__PURE__ */ jsx37(Box12, { display: "flex", gap: 1, children: Array.from({ length }).map((_, i) => /* @__PURE__ */ jsx37(
6054
6054
  TextField8,
6055
6055
  {
6056
6056
  autoFocus: i === 0,
@@ -6107,7 +6107,7 @@ function DialogVerificarOtp(props) {
6107
6107
  setLoading(false);
6108
6108
  }
6109
6109
  }
6110
- return /* @__PURE__ */ jsxs18(Dialog_default.Root, { open, onClose: (_5) => onClose(), maxWidth: "xs", children: [
6110
+ return /* @__PURE__ */ jsxs18(Dialog_default.Root, { open, onClose: (_) => onClose(), maxWidth: "xs", children: [
6111
6111
  /* @__PURE__ */ jsxs18(Dialog_default.Header, { children: [
6112
6112
  /* @__PURE__ */ jsx38(Dialog_default.Title, { children: "Entrar com senha tempor\xE1ria" }),
6113
6113
  /* @__PURE__ */ jsx38(Dialog_default.ActionClose, { onClose })
@@ -6282,7 +6282,7 @@ function OtpForm(props) {
6282
6282
  {
6283
6283
  onLoginSuccess,
6284
6284
  open: isOpenVerificar,
6285
- onClose: async (_5) => {
6285
+ onClose: async (_) => {
6286
6286
  setOpenVerificar(false);
6287
6287
  },
6288
6288
  payload: {
@@ -7831,7 +7831,7 @@ import {
7831
7831
  Popper,
7832
7832
  styled as styled5
7833
7833
  } from "@mui/material";
7834
- import _2 from "lodash";
7834
+ import truncate from "lodash/truncate";
7835
7835
  import React6, { useState as useState13 } from "react";
7836
7836
 
7837
7837
  // src/Surface/index.tsx
@@ -7953,7 +7953,7 @@ function MinMenuItem(props) {
7953
7953
  },
7954
7954
  children: [
7955
7955
  /* @__PURE__ */ jsx89(ListItemIcon2, { children: renderIcon(icon) }),
7956
- /* @__PURE__ */ jsx89(ListItemText2, { primary: _2.truncate(label, { length: 12 }) }),
7956
+ /* @__PURE__ */ jsx89(ListItemText2, { primary: truncate(label, { length: 12 }) }),
7957
7957
  opened?.id === id && /* @__PURE__ */ jsx89(
7958
7958
  Popper,
7959
7959
  {
@@ -8341,7 +8341,7 @@ function reducer(state, action) {
8341
8341
  case "toggleIsOpen":
8342
8342
  return { ...state, isOpen: !state.isOpen };
8343
8343
  case "deleteAppliedValue":
8344
- const { [action.filterName]: _5, ...rest } = state.appliedValues || {};
8344
+ const { [action.filterName]: _, ...rest } = state.appliedValues || {};
8345
8345
  const { [action.filterName]: __, ...restFilterValues } = state.filterValues || {};
8346
8346
  if (action?.storagePath) {
8347
8347
  const storage = JSON.parse(
@@ -8598,7 +8598,7 @@ function FilterChips({
8598
8598
  if (!containsInAppliedValues)
8599
8599
  return null;
8600
8600
  return React9.cloneElement(child, {
8601
- onDelete: !child.props.disabledDelete ? (_5) => {
8601
+ onDelete: !child.props.disabledDelete ? (_) => {
8602
8602
  if (deleteFilterValue)
8603
8603
  deleteFilterValue(child.props.name || "");
8604
8604
  close();
@@ -8774,11 +8774,11 @@ function FilterRoot(props) {
8774
8774
 
8775
8775
  // src/v2/Filter/FilterSearchTextField.tsx
8776
8776
  import { InputBase } from "@mui/material";
8777
- import _3 from "lodash";
8777
+ import debounce2 from "lodash/debounce";
8778
8778
  import { jsx as jsx107 } from "react/jsx-runtime";
8779
8779
  function FilterSearchTextField(props) {
8780
8780
  const { onChange, ...rest } = props;
8781
- const debouncedHandleChange = _3.debounce((query) => onChange(query), 500);
8781
+ const debouncedHandleChange = debounce2((query) => onChange(query), 500);
8782
8782
  function handleChange(event) {
8783
8783
  const value = event.target.value;
8784
8784
  debouncedHandleChange(value);
@@ -9048,7 +9048,7 @@ function Table(props) {
9048
9048
  break;
9049
9049
  }
9050
9050
  }
9051
- function handleRowDoubleClick(params, _5, details) {
9051
+ function handleRowDoubleClick(params, _, details) {
9052
9052
  if (onRowDoubleClick)
9053
9053
  onRowDoubleClick("edit", params.id);
9054
9054
  }
@@ -9596,7 +9596,7 @@ function Pagination(props) {
9596
9596
  count: pages || 0,
9597
9597
  showFirstButton: true,
9598
9598
  showLastButton: true,
9599
- onChange: (_5, _page) => {
9599
+ onChange: (_, _page) => {
9600
9600
  if (onChangePage)
9601
9601
  onChangePage(_page);
9602
9602
  },
@@ -10250,7 +10250,7 @@ import {
10250
10250
  TextField as TextField11,
10251
10251
  Typography as Typography24
10252
10252
  } from "@mui/material";
10253
- import _4 from "lodash";
10253
+ import debounce3 from "lodash/debounce";
10254
10254
  import React12, { useCallback as useCallback3 } from "react";
10255
10255
  import { jsx as jsx151, jsxs as jsxs71 } from "react/jsx-runtime";
10256
10256
  function Loading() {
@@ -10325,14 +10325,14 @@ function Autocomplete(props) {
10325
10325
  }
10326
10326
  return endAdornment;
10327
10327
  }
10328
- const debouncedHandleSearch = _4.debounce((query, reason) => {
10328
+ const debouncedHandleSearch = debounce3((query, reason) => {
10329
10329
  if (reason === "selectOption")
10330
10330
  return;
10331
10331
  if (onSearchChange)
10332
10332
  onSearchChange(query, reason);
10333
10333
  }, 500);
10334
10334
  const handleSearch = useCallback3(
10335
- (_5, v, reason) => {
10335
+ (_, v, reason) => {
10336
10336
  debouncedHandleSearch(v, reason);
10337
10337
  },
10338
10338
  [debouncedHandleSearch]
@@ -10353,7 +10353,7 @@ function Autocomplete(props) {
10353
10353
  loading: isLoading,
10354
10354
  loadingText: /* @__PURE__ */ jsx151(Loading, {}),
10355
10355
  value,
10356
- onChange: (_5, v) => handleChange(v),
10356
+ onChange: (_, v) => handleChange(v),
10357
10357
  options,
10358
10358
  onInputChange: handleSearch,
10359
10359
  getOptionLabel: renderValue,
@@ -11907,7 +11907,7 @@ var AvatarUploader = ({ onSave, src }) => {
11907
11907
  const [zoom, setZoom] = useState28(1);
11908
11908
  const [croppedAreaPixels, setCroppedAreaPixels] = useState28(null);
11909
11909
  const [open, setOpen] = useState28(false);
11910
- const onCropComplete = useCallback5((_5, croppedAreaPixels2) => {
11910
+ const onCropComplete = useCallback5((_, croppedAreaPixels2) => {
11911
11911
  setCroppedAreaPixels(croppedAreaPixels2);
11912
11912
  }, []);
11913
11913
  const handleSave = async () => {
@@ -11988,7 +11988,7 @@ var AvatarUploader = ({ onSave, src }) => {
11988
11988
  min: 1,
11989
11989
  max: 3,
11990
11990
  step: 0.1,
11991
- onChange: (_5, value) => setZoom(value)
11991
+ onChange: (_, value) => setZoom(value)
11992
11992
  }
11993
11993
  ),
11994
11994
  /* @__PURE__ */ jsx174(ButtonContainer, { children: /* @__PURE__ */ jsx174(Button13, { variant: "contained", onClick: handleSave, children: "Salvar" }) })
@@ -12155,7 +12155,7 @@ function DialogVerificarWhastapp(props) {
12155
12155
  setLoading(false);
12156
12156
  }
12157
12157
  }
12158
- return /* @__PURE__ */ jsxs82(Dialog_default.Root, { open, onClose: (_5) => onClose(), maxWidth: "xs", children: [
12158
+ return /* @__PURE__ */ jsxs82(Dialog_default.Root, { open, onClose: (_) => onClose(), maxWidth: "xs", children: [
12159
12159
  /* @__PURE__ */ jsxs82(Dialog_default.Header, { children: [
12160
12160
  /* @__PURE__ */ jsx176(Dialog_default.Title, { children: "Verifica\xE7\xE3o do seu n\xFAmero de WhatsApp" }),
12161
12161
  /* @__PURE__ */ jsx176(Dialog_default.ActionClose, { onClose })
@@ -12323,7 +12323,7 @@ function LoginSeguranca(props) {
12323
12323
  DialogVerificarWhastapp,
12324
12324
  {
12325
12325
  open: isOpenVerificarWhastapp,
12326
- onClose: async (_5) => {
12326
+ onClose: async (_) => {
12327
12327
  setOpenVerificarWhatsapp(false);
12328
12328
  },
12329
12329
  payload: usuario,
@@ -12353,7 +12353,7 @@ function Profile(props) {
12353
12353
  {
12354
12354
  orientation: "vertical",
12355
12355
  value: tabValue,
12356
- onChange: (_5, value) => {
12356
+ onChange: (_, value) => {
12357
12357
  setTabValue(value);
12358
12358
  },
12359
12359
  sx: {