@bluemarble/bm-components 0.2.1 → 0.2.2

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
@@ -1020,7 +1020,7 @@ var require_prop_types = __commonJS({
1020
1020
  });
1021
1021
 
1022
1022
  // src/components/Grid/Grid.tsx
1023
- import React8, {
1023
+ import React6, {
1024
1024
  useEffect,
1025
1025
  useMemo,
1026
1026
  useRef,
@@ -2550,38 +2550,15 @@ function getPropertyValue(obj, property) {
2550
2550
  }
2551
2551
 
2552
2552
  // src/components/Grid/AutoCreatedRows.tsx
2553
- import React7 from "react";
2553
+ import React5 from "react";
2554
2554
 
2555
2555
  // src/components/Grid/Td.tsx
2556
- import React5, { memo } from "react";
2557
2556
  import { TableCell as TableCell2 } from "@mui/material";
2558
- var CustomTableCell = (_a) => {
2559
- var _b = _a, { children } = _b, props = __objRest(_b, ["children"]);
2560
- return /* @__PURE__ */ React5.createElement(TableCell2, __spreadValues({}, props), children);
2561
- };
2562
- var Td = memo(CustomTableCell);
2557
+ var Td = TableCell2;
2563
2558
 
2564
2559
  // src/components/Grid/Tr.tsx
2565
- import React6, { memo as memo2 } from "react";
2566
2560
  import { TableRow as TableRow2 } from "@mui/material";
2567
- var CustomTableRow = (props) => {
2568
- const _a = props, { children, sx, striped = true, bordered = void 0 } = _a, rest = __objRest(_a, ["children", "sx", "striped", "bordered"]);
2569
- return /* @__PURE__ */ React6.createElement(
2570
- TableRow2,
2571
- __spreadValues({
2572
- sx: __spreadValues({
2573
- "&:nth-of-type(even)": { bgcolor: striped ? "action.selected" : "" }
2574
- }, sx)
2575
- }, rest),
2576
- React6.Children.map(
2577
- children,
2578
- (child) => React6.cloneElement(child, {
2579
- bordered
2580
- })
2581
- )
2582
- );
2583
- };
2584
- var Tr = memo2(CustomTableRow);
2561
+ var Tr = TableRow2;
2585
2562
 
2586
2563
  // src/components/Grid/AutoCreatedRows.tsx
2587
2564
  var AutoCreatedRows = ({
@@ -2589,9 +2566,9 @@ var AutoCreatedRows = ({
2589
2566
  columns,
2590
2567
  primaryKey
2591
2568
  }) => {
2592
- return /* @__PURE__ */ React7.createElement(React7.Fragment, null, tableData.map((row) => /* @__PURE__ */ React7.createElement(Tr, { key: row[primaryKey] }, columns.map((column) => {
2569
+ return /* @__PURE__ */ React5.createElement(React5.Fragment, null, tableData.map((row) => /* @__PURE__ */ React5.createElement(Tr, { key: row[primaryKey] }, columns.map((column) => {
2593
2570
  const cellValue = column.transformer ? column.transformer(row[column.name]) : row[column.name];
2594
- return /* @__PURE__ */ React7.createElement(Td, { key: column.name }, cellValue);
2571
+ return /* @__PURE__ */ React5.createElement(Td, { key: column.name }, cellValue);
2595
2572
  }))));
2596
2573
  };
2597
2574
 
@@ -2775,7 +2752,7 @@ var Grid = (props) => {
2775
2752
  useEffect(() => {
2776
2753
  updateFilters(selectedFilters);
2777
2754
  }, [selectedFilters]);
2778
- return /* @__PURE__ */ React8.createElement(Paper, null, isLoading && /* @__PURE__ */ React8.createElement(LinearProgress, null), /* @__PURE__ */ React8.createElement(
2755
+ return /* @__PURE__ */ React6.createElement(Paper, null, isLoading && /* @__PURE__ */ React6.createElement(LinearProgress, null), /* @__PURE__ */ React6.createElement(
2779
2756
  FiltersBar,
2780
2757
  {
2781
2758
  setAnchorEl,
@@ -2787,7 +2764,7 @@ var Grid = (props) => {
2787
2764
  customButtons,
2788
2765
  handleCloseFilter
2789
2766
  }
2790
- ), /* @__PURE__ */ React8.createElement(TableContainer, null, /* @__PURE__ */ React8.createElement(Table, { size: "small" }, /* @__PURE__ */ React8.createElement(
2767
+ ), /* @__PURE__ */ React6.createElement(TableContainer, null, /* @__PURE__ */ React6.createElement(Table, { size: "small" }, /* @__PURE__ */ React6.createElement(
2791
2768
  GridHeader,
2792
2769
  {
2793
2770
  titles: columnTitles,
@@ -2796,14 +2773,14 @@ var Grid = (props) => {
2796
2773
  setOrder,
2797
2774
  setOrderBy
2798
2775
  }
2799
- ), /* @__PURE__ */ React8.createElement(TableBody, null, props.children ? props.children : primaryKey ? /* @__PURE__ */ React8.createElement(
2776
+ ), /* @__PURE__ */ React6.createElement(TableBody, null, props.children ? props.children : primaryKey ? /* @__PURE__ */ React6.createElement(
2800
2777
  AutoCreatedRows,
2801
2778
  {
2802
2779
  tableData,
2803
2780
  columns: columnTitles,
2804
2781
  primaryKey
2805
2782
  }
2806
- ) : null, footer))), !noPagination && /* @__PURE__ */ React8.createElement(
2783
+ ) : null, footer))), !noPagination && /* @__PURE__ */ React6.createElement(
2807
2784
  TablePagination,
2808
2785
  {
2809
2786
  page,
@@ -2818,7 +2795,7 @@ var Grid = (props) => {
2818
2795
  },
2819
2796
  onRowsPerPageChange: handleChangeRowsPerPage
2820
2797
  }
2821
- ), /* @__PURE__ */ React8.createElement(
2798
+ ), /* @__PURE__ */ React6.createElement(
2822
2799
  Popover,
2823
2800
  {
2824
2801
  anchorEl,
@@ -2833,7 +2810,7 @@ var Grid = (props) => {
2833
2810
  horizontal: "right"
2834
2811
  }
2835
2812
  },
2836
- /* @__PURE__ */ React8.createElement(Box2, { sx: { minWidth: 300, padding: 2 } }, /* @__PURE__ */ React8.createElement(Typography, { fontWeight: "bold", variant: "body2" }, "Filtrar por:"), /* @__PURE__ */ React8.createElement(
2813
+ /* @__PURE__ */ React6.createElement(Box2, { sx: { minWidth: 300, padding: 2 } }, /* @__PURE__ */ React6.createElement(Typography, { fontWeight: "bold", variant: "body2" }, "Filtrar por:"), /* @__PURE__ */ React6.createElement(
2837
2814
  Autocomplete,
2838
2815
  {
2839
2816
  value: selectedTitle || "",
@@ -2841,7 +2818,7 @@ var Grid = (props) => {
2841
2818
  !target.innerHTML.includes("path") ? setSelectedTitle(target.innerHTML) : setSelectedTitle(void 0);
2842
2819
  },
2843
2820
  options: columnTitles.map((title) => title.label),
2844
- renderInput: (params) => /* @__PURE__ */ React8.createElement(
2821
+ renderInput: (params) => /* @__PURE__ */ React6.createElement(
2845
2822
  TextField,
2846
2823
  __spreadProps(__spreadValues({
2847
2824
  variant: "standard",
@@ -2851,7 +2828,7 @@ var Grid = (props) => {
2851
2828
  })
2852
2829
  )
2853
2830
  }
2854
- ), /* @__PURE__ */ React8.createElement(
2831
+ ), /* @__PURE__ */ React6.createElement(
2855
2832
  Autocomplete,
2856
2833
  {
2857
2834
  value: selectedFilterValue || "",
@@ -2860,7 +2837,7 @@ var Grid = (props) => {
2860
2837
  },
2861
2838
  disabled: valuesToFilter.length < 1,
2862
2839
  options: valuesToFilter.map((title) => title),
2863
- renderInput: (params) => /* @__PURE__ */ React8.createElement(
2840
+ renderInput: (params) => /* @__PURE__ */ React6.createElement(
2864
2841
  TextField,
2865
2842
  __spreadProps(__spreadValues({
2866
2843
  variant: "standard",
@@ -2870,7 +2847,7 @@ var Grid = (props) => {
2870
2847
  })
2871
2848
  )
2872
2849
  }
2873
- ), /* @__PURE__ */ React8.createElement(Box2, { sx: { py: 1 } }), /* @__PURE__ */ React8.createElement(
2850
+ ), /* @__PURE__ */ React6.createElement(Box2, { sx: { py: 1 } }), /* @__PURE__ */ React6.createElement(
2874
2851
  Button,
2875
2852
  {
2876
2853
  disabled: !selectedFilterValue,
@@ -2879,7 +2856,7 @@ var Grid = (props) => {
2879
2856
  },
2880
2857
  "Adicionar filtro"
2881
2858
  ))
2882
- ), /* @__PURE__ */ React8.createElement(
2859
+ ), /* @__PURE__ */ React6.createElement(
2883
2860
  Popover,
2884
2861
  {
2885
2862
  anchorEl: searchAnchorEl.current,
@@ -2894,7 +2871,7 @@ var Grid = (props) => {
2894
2871
  horizontal: "left"
2895
2872
  }
2896
2873
  },
2897
- /* @__PURE__ */ React8.createElement(
2874
+ /* @__PURE__ */ React6.createElement(
2898
2875
  Box2,
2899
2876
  {
2900
2877
  sx: {
@@ -2906,7 +2883,7 @@ var Grid = (props) => {
2906
2883
  alignItems: "flex-end"
2907
2884
  }
2908
2885
  },
2909
- /* @__PURE__ */ React8.createElement(
2886
+ /* @__PURE__ */ React6.createElement(
2910
2887
  TextField,
2911
2888
  {
2912
2889
  variant: "standard",
@@ -2916,7 +2893,7 @@ var Grid = (props) => {
2916
2893
  onChange: ({ currentTarget }) => setSearchText(currentTarget.value)
2917
2894
  }
2918
2895
  ),
2919
- /* @__PURE__ */ React8.createElement(Box2, null, /* @__PURE__ */ React8.createElement(
2896
+ /* @__PURE__ */ React6.createElement(Box2, null, /* @__PURE__ */ React6.createElement(
2920
2897
  IconButton2,
2921
2898
  {
2922
2899
  onClick: () => {
@@ -2924,7 +2901,7 @@ var Grid = (props) => {
2924
2901
  setOpenSearch(false);
2925
2902
  }
2926
2903
  },
2927
- /* @__PURE__ */ React8.createElement(MdClose, { size: 8 * 3 })
2904
+ /* @__PURE__ */ React6.createElement(MdClose, { size: 8 * 3 })
2928
2905
  ))
2929
2906
  )
2930
2907
  ));
@@ -2933,10 +2910,10 @@ var Grid_default = Grid;
2933
2910
 
2934
2911
  // src/components/Grid/EditableTableCell/index.tsx
2935
2912
  import { TableCell as TableCell3 } from "@mui/material";
2936
- import React11, { useState as useState2 } from "react";
2913
+ import React9, { useState as useState2 } from "react";
2937
2914
 
2938
2915
  // src/components/Grid/EditableTableCell/DefaultInput.tsx
2939
- import React9 from "react";
2916
+ import React7 from "react";
2940
2917
  import { TextField as TextField2 } from "@mui/material";
2941
2918
  import moment from "moment";
2942
2919
  var DefaultInput = (allProps) => {
@@ -2984,7 +2961,7 @@ var DefaultInput = (allProps) => {
2984
2961
  if (ev.code === "Escape")
2985
2962
  handleCancelEditing();
2986
2963
  };
2987
- return /* @__PURE__ */ React9.createElement(
2964
+ return /* @__PURE__ */ React7.createElement(
2988
2965
  TextField2,
2989
2966
  __spreadValues({
2990
2967
  name,
@@ -3016,7 +2993,7 @@ var DefaultInput = (allProps) => {
3016
2993
 
3017
2994
  // src/components/Grid/EditableTableCell/InputMask.tsx
3018
2995
  import { useIMask } from "react-imask";
3019
- import React10, { useEffect as useEffect2 } from "react";
2996
+ import React8, { useEffect as useEffect2 } from "react";
3020
2997
  import { TextField as TextField3 } from "@mui/material";
3021
2998
  var InputMask = (allProps) => {
3022
2999
  var _a;
@@ -3057,7 +3034,7 @@ var InputMask = (allProps) => {
3057
3034
  if (rowData == null ? void 0 : rowData[name])
3058
3035
  setValue(String(rowData == null ? void 0 : rowData[name]));
3059
3036
  }, [rowData == null ? void 0 : rowData[name]]);
3060
- return /* @__PURE__ */ React10.createElement(
3037
+ return /* @__PURE__ */ React8.createElement(
3061
3038
  TextField3,
3062
3039
  __spreadValues({
3063
3040
  inputRef: ref,
@@ -3123,7 +3100,7 @@ var EditableTableCell = (allProps) => {
3123
3100
  if (onCancel)
3124
3101
  onCancel();
3125
3102
  };
3126
- return /* @__PURE__ */ React11.createElement(
3103
+ return /* @__PURE__ */ React9.createElement(
3127
3104
  TableCell3,
3128
3105
  __spreadProps(__spreadValues({}, props), {
3129
3106
  sx: __spreadProps(__spreadValues({}, (props || {}).sx), {
@@ -3133,7 +3110,7 @@ var EditableTableCell = (allProps) => {
3133
3110
  }),
3134
3111
  onDoubleClick: () => setIsEditing(true)
3135
3112
  }),
3136
- isEditing ? /* @__PURE__ */ React11.createElement(React11.Fragment, null, mask ? /* @__PURE__ */ React11.createElement(
3113
+ isEditing ? /* @__PURE__ */ React9.createElement(React9.Fragment, null, mask ? /* @__PURE__ */ React9.createElement(
3137
3114
  InputMask,
3138
3115
  {
3139
3116
  mask,
@@ -3149,7 +3126,7 @@ var EditableTableCell = (allProps) => {
3149
3126
  handleCancelEditing,
3150
3127
  formatInputDefautvalue
3151
3128
  }
3152
- ) : /* @__PURE__ */ React11.createElement(
3129
+ ) : /* @__PURE__ */ React9.createElement(
3153
3130
  DefaultInput,
3154
3131
  {
3155
3132
  onUpdateValue: (newValue) => {
@@ -3164,29 +3141,29 @@ var EditableTableCell = (allProps) => {
3164
3141
  formatInputDefautvalue,
3165
3142
  type
3166
3143
  }
3167
- )) : /* @__PURE__ */ React11.createElement(React11.Fragment, null, formatCellValue(value))
3144
+ )) : /* @__PURE__ */ React9.createElement(React9.Fragment, null, formatCellValue(value))
3168
3145
  );
3169
3146
  };
3170
3147
 
3171
3148
  // src/components/Input/index.tsx
3172
- import React12 from "react";
3149
+ import React10 from "react";
3173
3150
  import { TextField as TextField4 } from "@mui/material";
3174
3151
  import { Field } from "formik";
3175
3152
  var Input = (_a) => {
3176
3153
  var _b = _a, { withFormik = true } = _b, rest = __objRest(_b, ["withFormik"]);
3177
3154
  if (withFormik)
3178
- return /* @__PURE__ */ React12.createElement(FormikInput, __spreadValues({}, rest));
3155
+ return /* @__PURE__ */ React10.createElement(FormikInput, __spreadValues({}, rest));
3179
3156
  else
3180
- return /* @__PURE__ */ React12.createElement(BaseInput, __spreadValues({}, rest));
3157
+ return /* @__PURE__ */ React10.createElement(BaseInput, __spreadValues({}, rest));
3181
3158
  };
3182
3159
  var BaseInput = (props) => {
3183
- return /* @__PURE__ */ React12.createElement(TextField4, __spreadValues({ fullWidth: true }, props));
3160
+ return /* @__PURE__ */ React10.createElement(TextField4, __spreadValues({ fullWidth: true }, props));
3184
3161
  };
3185
3162
  var FormikInput = (_a) => {
3186
3163
  var _b = _a, { name, shrink } = _b, rest = __objRest(_b, ["name", "shrink"]);
3187
- return /* @__PURE__ */ React12.createElement(Field, { name }, (_a2) => {
3164
+ return /* @__PURE__ */ React10.createElement(Field, { name }, (_a2) => {
3188
3165
  var _b2 = _a2, { field: _c } = _b2, _d = _c, { value } = _d, field = __objRest(_d, ["value"]), { meta: { error } } = _b2;
3189
- return /* @__PURE__ */ React12.createElement(
3166
+ return /* @__PURE__ */ React10.createElement(
3190
3167
  BaseInput,
3191
3168
  __spreadProps(__spreadValues(__spreadValues({
3192
3169
  defaultValue: value,
@@ -3200,15 +3177,15 @@ var FormikInput = (_a) => {
3200
3177
  };
3201
3178
 
3202
3179
  // src/components/InputMask/index.tsx
3203
- import React13, { useEffect as useEffect3, useRef as useRef2 } from "react";
3180
+ import React11, { useEffect as useEffect3, useRef as useRef2 } from "react";
3204
3181
  import { useIMask as useIMask2 } from "react-imask";
3205
3182
  import { Field as Field2 } from "formik";
3206
3183
  function InputMask2(_a) {
3207
3184
  var _b = _a, { withFormik = true } = _b, rest = __objRest(_b, ["withFormik"]);
3208
3185
  if (withFormik)
3209
- return /* @__PURE__ */ React13.createElement(FormikInputMask, __spreadValues({}, rest));
3186
+ return /* @__PURE__ */ React11.createElement(FormikInputMask, __spreadValues({}, rest));
3210
3187
  else
3211
- return /* @__PURE__ */ React13.createElement(BaseInputMask, __spreadValues({}, rest));
3188
+ return /* @__PURE__ */ React11.createElement(BaseInputMask, __spreadValues({}, rest));
3212
3189
  }
3213
3190
  var BaseInputMask = (_a) => {
3214
3191
  var _b = _a, {
@@ -3240,7 +3217,7 @@ var BaseInputMask = (_a) => {
3240
3217
  setValue(controlledValue);
3241
3218
  maskRef.current.value = controlledValue;
3242
3219
  }, [controlledValue]);
3243
- return /* @__PURE__ */ React13.createElement(BaseInput, __spreadValues({ inputRef: ref }, rest));
3220
+ return /* @__PURE__ */ React11.createElement(BaseInput, __spreadValues({ inputRef: ref }, rest));
3244
3221
  };
3245
3222
  function FormikInputMask(_a) {
3246
3223
  var _b = _a, {
@@ -3270,7 +3247,7 @@ function FormikInputMask(_a) {
3270
3247
  if (formikSaveFunction.current)
3271
3248
  formikSaveFunction.current(name, unmaskedValue);
3272
3249
  }, [value]);
3273
- return /* @__PURE__ */ React13.createElement(Field2, { name }, (_a2) => {
3250
+ return /* @__PURE__ */ React11.createElement(Field2, { name }, (_a2) => {
3274
3251
  var _b2 = _a2, {
3275
3252
  field: _c
3276
3253
  } = _b2, _d = _c, { value: value2 } = _d, field = __objRest(_d, ["value"]), {
@@ -3279,7 +3256,7 @@ function FormikInputMask(_a) {
3279
3256
  } = _b2;
3280
3257
  initialValue.current = value2;
3281
3258
  formikSaveFunction.current = setFieldValue;
3282
- return /* @__PURE__ */ React13.createElement(
3259
+ return /* @__PURE__ */ React11.createElement(
3283
3260
  BaseInput,
3284
3261
  __spreadProps(__spreadValues(__spreadValues({}, rest), field), {
3285
3262
  inputRef: ref,
@@ -3291,7 +3268,7 @@ function FormikInputMask(_a) {
3291
3268
  }
3292
3269
 
3293
3270
  // src/components/Select/index.tsx
3294
- import React14 from "react";
3271
+ import React12 from "react";
3295
3272
  import {
3296
3273
  FormControl,
3297
3274
  FormHelperText,
@@ -3300,14 +3277,14 @@ import {
3300
3277
  } from "@mui/material";
3301
3278
  import { useField } from "formik";
3302
3279
  var CustomInputLabel = InputLabel;
3303
- var Select = (_a) => {
3280
+ function Select(_a) {
3304
3281
  var _b = _a, { withFormik = true } = _b, rest = __objRest(_b, ["withFormik"]);
3305
3282
  if (withFormik)
3306
- return /* @__PURE__ */ React14.createElement(FormikSelect, __spreadValues({}, rest));
3283
+ return /* @__PURE__ */ React12.createElement(FormikSelect, __spreadValues({}, rest));
3307
3284
  else
3308
- return /* @__PURE__ */ React14.createElement(BaseSelect, __spreadValues({}, rest));
3309
- };
3310
- var BaseSelect = (_a) => {
3285
+ return /* @__PURE__ */ React12.createElement(BaseSelect, __spreadValues({}, rest));
3286
+ }
3287
+ function BaseSelect(_a) {
3311
3288
  var _b = _a, {
3312
3289
  name,
3313
3290
  label,
@@ -3321,7 +3298,7 @@ var BaseSelect = (_a) => {
3321
3298
  "FormControlProps",
3322
3299
  "InputLabelProps"
3323
3300
  ]);
3324
- return /* @__PURE__ */ React14.createElement(FormControl, __spreadValues({ fullWidth: true }, FormControlProps2), /* @__PURE__ */ React14.createElement(CustomInputLabel, __spreadValues({}, InputLabelProps2), label), /* @__PURE__ */ React14.createElement(
3301
+ return /* @__PURE__ */ React12.createElement(FormControl, __spreadValues({ fullWidth: true }, FormControlProps2), /* @__PURE__ */ React12.createElement(CustomInputLabel, __spreadValues({}, InputLabelProps2), label), /* @__PURE__ */ React12.createElement(
3325
3302
  MuiSelect,
3326
3303
  __spreadValues({
3327
3304
  name,
@@ -3332,8 +3309,8 @@ var BaseSelect = (_a) => {
3332
3309
  }, rest),
3333
3310
  children
3334
3311
  ));
3335
- };
3336
- var FormikSelect = (_a) => {
3312
+ }
3313
+ function FormikSelect(_a) {
3337
3314
  var _b = _a, {
3338
3315
  name,
3339
3316
  label,
@@ -3353,7 +3330,7 @@ var FormikSelect = (_a) => {
3353
3330
  const onChange = (_, { props: { value: value2 } }) => {
3354
3331
  setValue(value2);
3355
3332
  };
3356
- return /* @__PURE__ */ React14.createElement(FormControl, __spreadProps(__spreadValues({ fullWidth: true }, FormControlProps2), { error: Boolean(meta == null ? void 0 : meta.error) }), /* @__PURE__ */ React14.createElement(CustomInputLabel, __spreadValues({}, InputLabelProps2), label), /* @__PURE__ */ React14.createElement(
3333
+ return /* @__PURE__ */ React12.createElement(FormControl, __spreadProps(__spreadValues({ fullWidth: true }, FormControlProps2), { error: Boolean(meta == null ? void 0 : meta.error) }), /* @__PURE__ */ React12.createElement(CustomInputLabel, __spreadValues({}, InputLabelProps2), label), /* @__PURE__ */ React12.createElement(
3357
3334
  MuiSelect,
3358
3335
  __spreadProps(__spreadValues(__spreadValues({
3359
3336
  inputProps: {
@@ -3365,11 +3342,11 @@ var FormikSelect = (_a) => {
3365
3342
  onChange
3366
3343
  }),
3367
3344
  children
3368
- ), /* @__PURE__ */ React14.createElement(FormHelperText, null, helperText || (meta == null ? void 0 : meta.error)));
3369
- };
3345
+ ), /* @__PURE__ */ React12.createElement(FormHelperText, null, helperText || (meta == null ? void 0 : meta.error)));
3346
+ }
3370
3347
 
3371
3348
  // src/components/Autocomplete/index.tsx
3372
- import React15, { useMemo as useMemo2 } from "react";
3349
+ import React13, { useMemo as useMemo2 } from "react";
3373
3350
  import { useField as useField2 } from "formik";
3374
3351
  import {
3375
3352
  Autocomplete as MuiAutocomplete,
@@ -3386,7 +3363,7 @@ function Autocomplete2(_a) {
3386
3363
  "getOptionValue"
3387
3364
  ]);
3388
3365
  if (withFormik) {
3389
- return /* @__PURE__ */ React15.createElement(
3366
+ return /* @__PURE__ */ React13.createElement(
3390
3367
  FormikAutocomplete,
3391
3368
  __spreadValues({
3392
3369
  name,
@@ -3394,14 +3371,14 @@ function Autocomplete2(_a) {
3394
3371
  }, rest)
3395
3372
  );
3396
3373
  } else
3397
- return /* @__PURE__ */ React15.createElement(BaseInput2, __spreadValues({}, rest));
3374
+ return /* @__PURE__ */ React13.createElement(BaseInput2, __spreadValues({}, rest));
3398
3375
  }
3399
3376
  function BaseInput2(props) {
3400
- return /* @__PURE__ */ React15.createElement(
3377
+ return /* @__PURE__ */ React13.createElement(
3401
3378
  MuiAutocomplete,
3402
3379
  __spreadValues({
3403
3380
  fullWidth: true,
3404
- renderInput: (params) => /* @__PURE__ */ React15.createElement(TextField5, __spreadValues({ label: props.label }, params))
3381
+ renderInput: (params) => /* @__PURE__ */ React13.createElement(TextField5, __spreadValues({ label: props.label }, params))
3405
3382
  }, props)
3406
3383
  );
3407
3384
  }
@@ -3449,11 +3426,11 @@ function FormikAutocomplete(_a) {
3449
3426
  return a[key] === b[key];
3450
3427
  return Object.values(a)[0] === Object.values(b)[0];
3451
3428
  };
3452
- return /* @__PURE__ */ React15.createElement(
3429
+ return /* @__PURE__ */ React13.createElement(
3453
3430
  MuiAutocomplete,
3454
3431
  __spreadValues({
3455
3432
  getOptionLabel,
3456
- renderInput: (params) => /* @__PURE__ */ React15.createElement(
3433
+ renderInput: (params) => /* @__PURE__ */ React13.createElement(
3457
3434
  TextField5,
3458
3435
  __spreadProps(__spreadValues(__spreadValues({
3459
3436
  error: Boolean(meta == null ? void 0 : meta.error),
@@ -3470,7 +3447,7 @@ function FormikAutocomplete(_a) {
3470
3447
  }
3471
3448
 
3472
3449
  // src/components/Checkbox/index.tsx
3473
- import React16 from "react";
3450
+ import React14 from "react";
3474
3451
  import {
3475
3452
  Checkbox as MuiCheckbox,
3476
3453
  FormControlLabel
@@ -3485,9 +3462,9 @@ var Checkbox = (_a) => {
3485
3462
  "name"
3486
3463
  ]);
3487
3464
  if (withFormik && name)
3488
- return /* @__PURE__ */ React16.createElement(FormikCheckbox, __spreadValues({ name }, props));
3465
+ return /* @__PURE__ */ React14.createElement(FormikCheckbox, __spreadValues({ name }, props));
3489
3466
  else
3490
- return /* @__PURE__ */ React16.createElement(BaseCheckbox, __spreadValues({}, props));
3467
+ return /* @__PURE__ */ React14.createElement(BaseCheckbox, __spreadValues({}, props));
3491
3468
  };
3492
3469
  var BaseCheckbox = (_a) => {
3493
3470
  var _b = _a, {
@@ -3497,11 +3474,11 @@ var BaseCheckbox = (_a) => {
3497
3474
  "label",
3498
3475
  "FormControlLabelProps"
3499
3476
  ]);
3500
- return /* @__PURE__ */ React16.createElement(
3477
+ return /* @__PURE__ */ React14.createElement(
3501
3478
  FormControlLabel,
3502
3479
  __spreadValues({
3503
3480
  label,
3504
- control: /* @__PURE__ */ React16.createElement(MuiCheckbox, __spreadValues({}, props))
3481
+ control: /* @__PURE__ */ React14.createElement(MuiCheckbox, __spreadValues({}, props))
3505
3482
  }, FormControlLabelProps3)
3506
3483
  );
3507
3484
  };
@@ -3521,11 +3498,11 @@ var FormikCheckbox = (_a) => {
3521
3498
  const onChange = (_, value2) => {
3522
3499
  setValue(value2);
3523
3500
  };
3524
- return /* @__PURE__ */ React16.createElement(
3501
+ return /* @__PURE__ */ React14.createElement(
3525
3502
  FormControlLabel,
3526
3503
  __spreadValues(__spreadProps(__spreadValues({
3527
3504
  label,
3528
- control: /* @__PURE__ */ React16.createElement(MuiCheckbox, __spreadProps(__spreadValues({}, props), { defaultChecked: Boolean(value) }))
3505
+ control: /* @__PURE__ */ React14.createElement(MuiCheckbox, __spreadProps(__spreadValues({}, props), { defaultChecked: Boolean(value) }))
3529
3506
  }, field), {
3530
3507
  onChange
3531
3508
  }), FormControlLabelProps3)
@@ -3533,7 +3510,7 @@ var FormikCheckbox = (_a) => {
3533
3510
  };
3534
3511
 
3535
3512
  // src/components/Switch/index.tsx
3536
- import React17 from "react";
3513
+ import React15 from "react";
3537
3514
  import {
3538
3515
  Switch as MuiSwitch,
3539
3516
  FormControlLabel as FormControlLabel2
@@ -3542,9 +3519,9 @@ import { useField as useField4 } from "formik";
3542
3519
  var Switch = (_a) => {
3543
3520
  var _b = _a, { withFormik = true, name } = _b, props = __objRest(_b, ["withFormik", "name"]);
3544
3521
  if (withFormik && name)
3545
- return /* @__PURE__ */ React17.createElement(FormikSwitch, __spreadValues({ name }, props));
3522
+ return /* @__PURE__ */ React15.createElement(FormikSwitch, __spreadValues({ name }, props));
3546
3523
  else
3547
- return /* @__PURE__ */ React17.createElement(BaseSwitch, __spreadValues({}, props));
3524
+ return /* @__PURE__ */ React15.createElement(BaseSwitch, __spreadValues({}, props));
3548
3525
  };
3549
3526
  var BaseSwitch = (_a) => {
3550
3527
  var _b = _a, {
@@ -3554,11 +3531,11 @@ var BaseSwitch = (_a) => {
3554
3531
  "label",
3555
3532
  "FormControlLabelProps"
3556
3533
  ]);
3557
- return /* @__PURE__ */ React17.createElement(
3534
+ return /* @__PURE__ */ React15.createElement(
3558
3535
  FormControlLabel2,
3559
3536
  __spreadValues({
3560
3537
  label,
3561
- control: /* @__PURE__ */ React17.createElement(MuiSwitch, __spreadValues({}, props))
3538
+ control: /* @__PURE__ */ React15.createElement(MuiSwitch, __spreadValues({}, props))
3562
3539
  }, FormControlLabelProps3)
3563
3540
  );
3564
3541
  };
@@ -3578,18 +3555,18 @@ var FormikSwitch = (_a) => {
3578
3555
  const onChange = (_, value2) => {
3579
3556
  setValue(value2);
3580
3557
  };
3581
- return /* @__PURE__ */ React17.createElement(
3558
+ return /* @__PURE__ */ React15.createElement(
3582
3559
  FormControlLabel2,
3583
3560
  __spreadValues(__spreadValues({
3584
3561
  label,
3585
3562
  onChange,
3586
- control: /* @__PURE__ */ React17.createElement(MuiSwitch, __spreadValues({ defaultChecked: value }, props))
3563
+ control: /* @__PURE__ */ React15.createElement(MuiSwitch, __spreadValues({ defaultChecked: value }, props))
3587
3564
  }, field), FormControlLabelProps3)
3588
3565
  );
3589
3566
  };
3590
3567
 
3591
3568
  // src/components/Radio/index.tsx
3592
- import React18 from "react";
3569
+ import React16 from "react";
3593
3570
  import {
3594
3571
  FormControl as FormControl2,
3595
3572
  FormControlLabel as FormControlLabel3,
@@ -3607,9 +3584,9 @@ var Radio = (_a) => {
3607
3584
  "withFormik"
3608
3585
  ]);
3609
3586
  if (withFormik && name)
3610
- return /* @__PURE__ */ React18.createElement(FormikRadio, __spreadValues({ name }, rest));
3587
+ return /* @__PURE__ */ React16.createElement(FormikRadio, __spreadValues({ name }, rest));
3611
3588
  else
3612
- return /* @__PURE__ */ React18.createElement(BaseRadio, __spreadValues({}, rest));
3589
+ return /* @__PURE__ */ React16.createElement(BaseRadio, __spreadValues({}, rest));
3613
3590
  };
3614
3591
  var BaseRadio = (_a) => {
3615
3592
  var _b = _a, {
@@ -3619,13 +3596,13 @@ var BaseRadio = (_a) => {
3619
3596
  "label",
3620
3597
  "options"
3621
3598
  ]);
3622
- return /* @__PURE__ */ React18.createElement(FormControl2, null, label && /* @__PURE__ */ React18.createElement(FormLabel, null, label), /* @__PURE__ */ React18.createElement(RadioGroup, __spreadValues({}, rest), options.map((option) => /* @__PURE__ */ React18.createElement(
3599
+ return /* @__PURE__ */ React16.createElement(FormControl2, null, label && /* @__PURE__ */ React16.createElement(FormLabel, null, label), /* @__PURE__ */ React16.createElement(RadioGroup, __spreadValues({}, rest), options.map((option) => /* @__PURE__ */ React16.createElement(
3623
3600
  FormControlLabel3,
3624
3601
  {
3625
3602
  key: String(option.value),
3626
3603
  value: option.value,
3627
3604
  label: option.label,
3628
- control: /* @__PURE__ */ React18.createElement(MuiRadio, null)
3605
+ control: /* @__PURE__ */ React16.createElement(MuiRadio, null)
3629
3606
  }
3630
3607
  ))));
3631
3608
  };
@@ -3642,26 +3619,26 @@ var FormikRadio = (_a) => {
3642
3619
  const onChange = (setFieldValue, value) => {
3643
3620
  setFieldValue(name, value);
3644
3621
  };
3645
- return /* @__PURE__ */ React18.createElement(Field3, null, ({ field: { value }, form: { setFieldValue } }) => /* @__PURE__ */ React18.createElement(FormControl2, null, label && /* @__PURE__ */ React18.createElement(FormLabel, null, label), /* @__PURE__ */ React18.createElement(
3622
+ return /* @__PURE__ */ React16.createElement(Field3, null, ({ field: { value }, form: { setFieldValue } }) => /* @__PURE__ */ React16.createElement(FormControl2, null, label && /* @__PURE__ */ React16.createElement(FormLabel, null, label), /* @__PURE__ */ React16.createElement(
3646
3623
  RadioGroup,
3647
3624
  __spreadValues({
3648
3625
  defaultValue: value,
3649
3626
  onChange: (_, value2) => onChange(setFieldValue, value2)
3650
3627
  }, rest),
3651
- options.map((option) => /* @__PURE__ */ React18.createElement(
3628
+ options.map((option) => /* @__PURE__ */ React16.createElement(
3652
3629
  FormControlLabel3,
3653
3630
  {
3654
3631
  key: String(option.value),
3655
3632
  value: option.value,
3656
3633
  label: option.label,
3657
- control: /* @__PURE__ */ React18.createElement(MuiRadio, null)
3634
+ control: /* @__PURE__ */ React16.createElement(MuiRadio, null)
3658
3635
  }
3659
3636
  ))
3660
3637
  )));
3661
3638
  };
3662
3639
 
3663
3640
  // src/components/LargeButton/index.tsx
3664
- import React19 from "react";
3641
+ import React17 from "react";
3665
3642
  import {
3666
3643
  Button as Button2,
3667
3644
  CircularProgress
@@ -3678,7 +3655,7 @@ var LargeButton = (_a) => {
3678
3655
  "CircularProgressProps",
3679
3656
  "sx"
3680
3657
  ]);
3681
- return /* @__PURE__ */ React19.createElement(
3658
+ return /* @__PURE__ */ React17.createElement(
3682
3659
  Button2,
3683
3660
  __spreadValues({
3684
3661
  variant: "contained",
@@ -3686,7 +3663,7 @@ var LargeButton = (_a) => {
3686
3663
  sx: __spreadValues({ fontWeight: "bold" }, sx),
3687
3664
  disabled: rest.disabled || loading
3688
3665
  }, rest),
3689
- loading ? /* @__PURE__ */ React19.createElement(
3666
+ loading ? /* @__PURE__ */ React17.createElement(
3690
3667
  CircularProgress,
3691
3668
  __spreadValues({
3692
3669
  size: 25,
@@ -3697,7 +3674,7 @@ var LargeButton = (_a) => {
3697
3674
  };
3698
3675
 
3699
3676
  // src/components/TabPanel/index.tsx
3700
- import React20 from "react";
3677
+ import React18 from "react";
3701
3678
  function getTabProps(index) {
3702
3679
  return {
3703
3680
  id: `tab-${index}`,
@@ -3706,7 +3683,7 @@ function getTabProps(index) {
3706
3683
  }
3707
3684
  var TabPanel = (props) => {
3708
3685
  const _a = props, { children, value, index } = _a, other = __objRest(_a, ["children", "value", "index"]);
3709
- return /* @__PURE__ */ React20.createElement(
3686
+ return /* @__PURE__ */ React18.createElement(
3710
3687
  "div",
3711
3688
  __spreadValues({
3712
3689
  role: "tabpanel",
@@ -3714,12 +3691,12 @@ var TabPanel = (props) => {
3714
3691
  id: `tabpanel-${index}`,
3715
3692
  "aria-labelledby": `tab-${index}`
3716
3693
  }, other),
3717
- value === index && /* @__PURE__ */ React20.createElement(React20.Fragment, null, children)
3694
+ value === index && /* @__PURE__ */ React18.createElement(React18.Fragment, null, children)
3718
3695
  );
3719
3696
  };
3720
3697
 
3721
3698
  // src/components/BaseGrid/index.tsx
3722
- import React22 from "react";
3699
+ import React20 from "react";
3723
3700
  import {
3724
3701
  LinearProgress as LinearProgress2,
3725
3702
  Paper as Paper2,
@@ -3732,7 +3709,7 @@ import {
3732
3709
  } from "@mui/material";
3733
3710
 
3734
3711
  // src/components/BaseGrid/Pagination/index.tsx
3735
- import React21 from "react";
3712
+ import React19 from "react";
3736
3713
  import {
3737
3714
  Box as Box3,
3738
3715
  IconButton as IconButton3,
@@ -3751,7 +3728,7 @@ var GridPagination = ({
3751
3728
  rowsPerPage,
3752
3729
  dense
3753
3730
  }) => {
3754
- return /* @__PURE__ */ React21.createElement(
3731
+ return /* @__PURE__ */ React19.createElement(
3755
3732
  Stack,
3756
3733
  {
3757
3734
  direction: "row",
@@ -3760,8 +3737,8 @@ var GridPagination = ({
3760
3737
  width: "100%",
3761
3738
  py: dense ? 0.5 : 1
3762
3739
  },
3763
- /* @__PURE__ */ React21.createElement(Box3, null),
3764
- /* @__PURE__ */ React21.createElement(Stack, { direction: "row", alignItems: "center" }, /* @__PURE__ */ React21.createElement(
3740
+ /* @__PURE__ */ React19.createElement(Box3, null),
3741
+ /* @__PURE__ */ React19.createElement(Stack, { direction: "row", alignItems: "center" }, /* @__PURE__ */ React19.createElement(
3765
3742
  Select2,
3766
3743
  {
3767
3744
  variant: "standard",
@@ -3771,23 +3748,23 @@ var GridPagination = ({
3771
3748
  value: rowsPerPage,
3772
3749
  onChange: ({ target }) => setRowsPerPage(parseInt(target.value))
3773
3750
  },
3774
- rowsPerPageOptions.map((option) => /* @__PURE__ */ React21.createElement(MenuItem, { key: option, value: option }, option))
3775
- ), /* @__PURE__ */ React21.createElement(Typography2, { variant: "body2" }, currentPage + 1, " de ", totalNumberOfPages + 1), /* @__PURE__ */ React21.createElement(
3751
+ rowsPerPageOptions.map((option) => /* @__PURE__ */ React19.createElement(MenuItem, { key: option, value: option }, option))
3752
+ ), /* @__PURE__ */ React19.createElement(Typography2, { variant: "body2" }, currentPage + 1, " de ", totalNumberOfPages + 1), /* @__PURE__ */ React19.createElement(
3776
3753
  IconButton3,
3777
3754
  {
3778
3755
  size: "small",
3779
3756
  disabled: currentPage === 0,
3780
3757
  onClick: () => onPageChange(currentPage - 1)
3781
3758
  },
3782
- /* @__PURE__ */ React21.createElement(MdArrowBackIosNew, { size: 8 * 2 })
3783
- ), /* @__PURE__ */ React21.createElement(
3759
+ /* @__PURE__ */ React19.createElement(MdArrowBackIosNew, { size: 8 * 2 })
3760
+ ), /* @__PURE__ */ React19.createElement(
3784
3761
  IconButton3,
3785
3762
  {
3786
3763
  size: "small",
3787
3764
  disabled: currentPage === totalNumberOfPages,
3788
3765
  onClick: () => onPageChange(currentPage + 1)
3789
3766
  },
3790
- /* @__PURE__ */ React21.createElement(MdArrowForwardIos, { size: 8 * 2 })
3767
+ /* @__PURE__ */ React19.createElement(MdArrowForwardIos, { size: 8 * 2 })
3791
3768
  ))
3792
3769
  );
3793
3770
  };
@@ -3853,12 +3830,12 @@ function BaseGrid({
3853
3830
  appendColumn,
3854
3831
  isLoading
3855
3832
  }) {
3856
- return /* @__PURE__ */ React22.createElement(
3833
+ return /* @__PURE__ */ React20.createElement(
3857
3834
  Paper2,
3858
3835
  __spreadProps(__spreadValues({}, paperProps), {
3859
3836
  sx: __spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues({}, styles.rowGap(dense)), styles.bordered(bordered)), styles.striped(striped)), styles.lastRowBorder(hideFooter)), paperProps == null ? void 0 : paperProps.sx)
3860
3837
  }),
3861
- /* @__PURE__ */ React22.createElement(
3838
+ /* @__PURE__ */ React20.createElement(
3862
3839
  Table2,
3863
3840
  __spreadProps(__spreadValues({
3864
3841
  size: "small",
@@ -3866,7 +3843,7 @@ function BaseGrid({
3866
3843
  }, tableProps), {
3867
3844
  sx: __spreadValues({}, tableProps == null ? void 0 : tableProps.sx)
3868
3845
  }),
3869
- /* @__PURE__ */ React22.createElement(TableHead2, __spreadValues({}, tableHeadProps), /* @__PURE__ */ React22.createElement(TableRow3, null, prependColumn, columns.map((column) => /* @__PURE__ */ React22.createElement(
3846
+ /* @__PURE__ */ React20.createElement(TableHead2, __spreadValues({}, tableHeadProps), /* @__PURE__ */ React20.createElement(TableRow3, null, prependColumn, columns.map((column) => /* @__PURE__ */ React20.createElement(
3870
3847
  TableCell4,
3871
3848
  {
3872
3849
  key: column.name,
@@ -3875,7 +3852,7 @@ function BaseGrid({
3875
3852
  pl: 2
3876
3853
  }, column == null ? void 0 : column.sx)
3877
3854
  },
3878
- column.children ? column.children : /* @__PURE__ */ React22.createElement(
3855
+ column.children ? column.children : /* @__PURE__ */ React20.createElement(
3879
3856
  TableSortLabel2,
3880
3857
  {
3881
3858
  active: sortedBy === column.name,
@@ -3885,10 +3862,10 @@ function BaseGrid({
3885
3862
  },
3886
3863
  column.label
3887
3864
  )
3888
- )), appendColumn), isLoading && /* @__PURE__ */ React22.createElement(TableRow3, null, /* @__PURE__ */ React22.createElement(TableCell4, { colSpan: columns.length, sx: { p: 0, border: "none" } }, /* @__PURE__ */ React22.createElement(LinearProgress2, null)))),
3889
- /* @__PURE__ */ React22.createElement(TableBody2, __spreadValues({}, tableBodyProps), children)
3865
+ )), appendColumn), isLoading && /* @__PURE__ */ React20.createElement(TableRow3, null, /* @__PURE__ */ React20.createElement(TableCell4, { colSpan: columns.length, sx: { p: 0, border: "none" } }, /* @__PURE__ */ React20.createElement(LinearProgress2, null)))),
3866
+ /* @__PURE__ */ React20.createElement(TableBody2, __spreadValues({}, tableBodyProps), children)
3890
3867
  ),
3891
- !hideFooter && /* @__PURE__ */ React22.createElement(
3868
+ !hideFooter && /* @__PURE__ */ React20.createElement(
3892
3869
  GridPagination,
3893
3870
  {
3894
3871
  rowsPerPageOptions,
@@ -3904,14 +3881,14 @@ function BaseGrid({
3904
3881
  }
3905
3882
 
3906
3883
  // src/components/Modal/index.tsx
3907
- import React23 from "react";
3884
+ import React21 from "react";
3908
3885
  import {
3909
3886
  Box as Box4,
3910
3887
  Modal as MuiModal
3911
3888
  } from "@mui/material";
3912
3889
  var Modal = (_a) => {
3913
3890
  var _b = _a, { open, onClose } = _b, rest = __objRest(_b, ["open", "onClose"]);
3914
- return /* @__PURE__ */ React23.createElement(MuiModal, __spreadValues({ open, onClose, disableEnforceFocus: true }, rest), /* @__PURE__ */ React23.createElement(
3891
+ return /* @__PURE__ */ React21.createElement(MuiModal, __spreadValues({ open, onClose }, rest), /* @__PURE__ */ React21.createElement(
3915
3892
  Box4,
3916
3893
  {
3917
3894
  sx: {
@@ -3924,7 +3901,7 @@ var Modal = (_a) => {
3924
3901
  borderRadius: 1
3925
3902
  }
3926
3903
  },
3927
- /* @__PURE__ */ React23.createElement(React23.Fragment, null, rest.children)
3904
+ /* @__PURE__ */ React21.createElement(React21.Fragment, null, rest.children)
3928
3905
  ));
3929
3906
  };
3930
3907
 
@@ -3937,7 +3914,7 @@ function GetInputLabel(columns) {
3937
3914
  }
3938
3915
 
3939
3916
  // src/components/Dialog/index.tsx
3940
- import React24 from "react";
3917
+ import React22 from "react";
3941
3918
  import {
3942
3919
  Box as Box5,
3943
3920
  Dialog as DefaultDialog,
@@ -3961,8 +3938,8 @@ var Dialog = (_a) => {
3961
3938
  "body",
3962
3939
  "options"
3963
3940
  ]);
3964
- return /* @__PURE__ */ React24.createElement(DefaultDialog, __spreadValues({ open }, rest), /* @__PURE__ */ React24.createElement(Box5, { sx: { p: 2 } }, /* @__PURE__ */ React24.createElement(DialogTitle, { sx: { fontWeight: "bold" } }, title), /* @__PURE__ */ React24.createElement(DialogContentText, { sx: { px: "10px", textAlign: "center", mb: 2 } }, body), /* @__PURE__ */ React24.createElement(DialogActions, null, options.map((option, index) => {
3965
- return /* @__PURE__ */ React24.createElement(
3941
+ return /* @__PURE__ */ React22.createElement(DefaultDialog, __spreadValues({ open }, rest), /* @__PURE__ */ React22.createElement(Box5, { sx: { p: 2 } }, /* @__PURE__ */ React22.createElement(DialogTitle, { sx: { fontWeight: "bold" } }, title), /* @__PURE__ */ React22.createElement(DialogContentText, { sx: { px: "10px", textAlign: "center", mb: 2 } }, body), /* @__PURE__ */ React22.createElement(DialogActions, null, options.map((option, index) => {
3942
+ return /* @__PURE__ */ React22.createElement(
3966
3943
  Button3,
3967
3944
  {
3968
3945
  key: index,
@@ -3975,7 +3952,7 @@ var Dialog = (_a) => {
3975
3952
  disableElevation: true,
3976
3953
  disabled: loading
3977
3954
  },
3978
- loading && option.focus ? /* @__PURE__ */ React24.createElement(CircularProgress2, { size: 25, color: "inherit" }) : /* @__PURE__ */ React24.createElement(React24.Fragment, null, option.label)
3955
+ loading && option.focus ? /* @__PURE__ */ React22.createElement(CircularProgress2, { size: 25, color: "inherit" }) : /* @__PURE__ */ React22.createElement(React22.Fragment, null, option.label)
3979
3956
  );
3980
3957
  }))));
3981
3958
  };
@@ -4065,15 +4042,15 @@ import { useContext as useContext3, useEffect as useEffect4, useRef as useRef3 }
4065
4042
  import { useContext as useContext2 } from "react";
4066
4043
 
4067
4044
  // src/contexts/AlertContext.tsx
4068
- import React26 from "react";
4045
+ import React24 from "react";
4069
4046
  import { createContext, useState as useState3 } from "react";
4070
4047
 
4071
4048
  // src/components/Toast/index.tsx
4072
- import React25 from "react";
4049
+ import React23 from "react";
4073
4050
  import { Alert, IconButton as IconButton4, Snackbar } from "@mui/material";
4074
4051
  import { MdClose as MdClose2 } from "react-icons/md";
4075
4052
  var Toast = ({ open, onClose, severity, message }) => {
4076
- return /* @__PURE__ */ React25.createElement(React25.Fragment, null, /* @__PURE__ */ React25.createElement(
4053
+ return /* @__PURE__ */ React23.createElement(React23.Fragment, null, /* @__PURE__ */ React23.createElement(
4077
4054
  Snackbar,
4078
4055
  {
4079
4056
  open,
@@ -4082,12 +4059,12 @@ var Toast = ({ open, onClose, severity, message }) => {
4082
4059
  anchorOrigin: { vertical: "top", horizontal: "right" },
4083
4060
  sx: { zIndex: 99999999 }
4084
4061
  },
4085
- /* @__PURE__ */ React25.createElement(
4062
+ /* @__PURE__ */ React23.createElement(
4086
4063
  Alert,
4087
4064
  {
4088
4065
  severity,
4089
4066
  elevation: 2,
4090
- action: /* @__PURE__ */ React25.createElement(
4067
+ action: /* @__PURE__ */ React23.createElement(
4091
4068
  IconButton4,
4092
4069
  {
4093
4070
  "aria-label": "close",
@@ -4095,7 +4072,7 @@ var Toast = ({ open, onClose, severity, message }) => {
4095
4072
  size: "small",
4096
4073
  onClick: onClose
4097
4074
  },
4098
- /* @__PURE__ */ React25.createElement(MdClose2, { fontSize: "inherit" })
4075
+ /* @__PURE__ */ React23.createElement(MdClose2, { fontSize: "inherit" })
4099
4076
  )
4100
4077
  },
4101
4078
  message
@@ -4117,7 +4094,7 @@ var AlertProvider = ({ children }) => {
4117
4094
  function onCloseToast() {
4118
4095
  setIsVisible(false);
4119
4096
  }
4120
- return /* @__PURE__ */ React26.createElement(AlertContext.Provider, { value: { createAlert } }, children, /* @__PURE__ */ React26.createElement(
4097
+ return /* @__PURE__ */ React24.createElement(AlertContext.Provider, { value: { createAlert } }, children, /* @__PURE__ */ React24.createElement(
4121
4098
  Toast,
4122
4099
  {
4123
4100
  open: isVisible,
@@ -4148,11 +4125,11 @@ function useLoading() {
4148
4125
  }
4149
4126
 
4150
4127
  // src/contexts/FormHelperProvider.tsx
4151
- import React27 from "react";
4128
+ import React25 from "react";
4152
4129
  import { createContext as createContext2 } from "react";
4153
4130
  var FormHelperContext = createContext2({});
4154
4131
  var FormHelperProvider = ({ formatErrorMessage, api, children }) => {
4155
- return /* @__PURE__ */ React27.createElement(FormHelperContext.Provider, { value: { formatErrorMessage, api } }, children);
4132
+ return /* @__PURE__ */ React25.createElement(FormHelperContext.Provider, { value: { formatErrorMessage, api } }, children);
4156
4133
  };
4157
4134
 
4158
4135
  // src/hooks/useFormHelper.ts