@m4l/components 1.1.2 → 2.0.0

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.
Files changed (145) hide show
  1. package/@types/export.d.ts +269 -269
  2. package/@types/types.d.ts +34 -34
  3. package/components/AccountPopover/{index.84049a50.js → index.493dbab5.js} +3 -3
  4. package/components/AppBar/{index.22ed1a0e.js → index.4b2c02da.js} +4 -4
  5. package/components/BaseModule/{index.0fc648c5.js → index.dba0d174.js} +1 -1
  6. package/components/CommonActions/components/ActionCancel/{index.33cf608e.js → index.ce196f96.js} +2 -2
  7. package/components/CommonActions/components/ActionFormCancel/{index.d1359a38.js → index.d63f6a23.js} +4 -4
  8. package/components/CommonActions/components/ActionFormIntro/{index.415de2bb.js → index.0daa98b8.js} +2 -2
  9. package/components/CommonActions/components/ActionIntro/{index.0893587b.js → index.1c40d33b.js} +2 -2
  10. package/components/CommonActions/components/Actions/{index.2342a37e.js → index.434f4824.js} +2 -2
  11. package/components/DataGrid/assets/icons/datagrid.svg +4 -4
  12. package/components/DataGrid/formatters/ColumnBooleanFormatter/{index.9d6f8597.js → index.0a3660c0.js} +1 -1
  13. package/components/DataGrid/formatters/ColumnConcatenatedValueFormatter/{index.9bcaba12.js → index.4b1df4ab.js} +1 -1
  14. package/components/DataGrid/formatters/ColumnInteractiveCheckFormatter/{index.a58a8712.js → index.37f4f359.js} +1 -1
  15. package/components/DataGrid/formatters/{index.6698b419.js → index.91129d5e.js} +2 -2
  16. package/components/DataGrid/{index.b1cac6af.js → index.d538cef8.js} +4 -4
  17. package/components/DataGrid/subcomponents/Actions/{index.a60b17d5.js → index.8d2e96e7.js} +11 -11
  18. package/components/DragResizeWindow/DragResizeWindow.d.ts +1 -1
  19. package/components/DragResizeWindow/{index.46048367.js → index.17e7059d.js} +3 -3
  20. package/components/DynamicFilter/{dictionary.da256925.js → dictionary.f471309f.js} +2 -2
  21. package/components/DynamicFilter/{index.08abfc2c.js → index.a7e772f7.js} +4 -4
  22. package/components/DynamicFilter/slots/{dynamicFilterSlots.b02bff6a.js → dynamicFilterSlots.1e2dc145.js} +6 -6
  23. package/components/DynamicFilter/store/{index.1e4af8b4.js → index.3733c18e.js} +1 -1
  24. package/components/DynamicFilter/subcomponents/AppliedFilterChip/{index.37bcd016.js → index.5b952ba7.js} +3 -3
  25. package/components/DynamicFilter/subcomponents/AppliedFilters/{index.2740f285.js → index.e38ed08e.js} +4 -4
  26. package/components/DynamicFilter/subcomponents/DynamicFilterBase/{index.63102514.js → index.bbc1b1c0.js} +6 -6
  27. package/components/DynamicFilter/subcomponents/FieldTypes/BooleanFilter/{index.3824d701.js → index.b0a2c96e.js} +4 -2
  28. package/components/DynamicFilter/subcomponents/FieldTypes/DateTimeFilter/{index.57ddf344.js → index.2036b257.js} +5 -4
  29. package/components/DynamicFilter/subcomponents/FieldTypes/NumberFilter/{index.7beac9f0.js → index.d7559fb2.js} +4 -3
  30. package/components/DynamicFilter/subcomponents/FieldTypes/SelectFilter/{index.e9e1af93.js → index.d628de04.js} +5 -4
  31. package/components/DynamicFilter/subcomponents/FieldTypes/StringFilter/{index.d27a8bcc.js → index.804bb474.js} +4 -3
  32. package/components/DynamicFilter/subcomponents/FieldTypes/{index.e8f1d8e5.js → index.de33ba0a.js} +5 -5
  33. package/components/DynamicFilter/subcomponents/FilterActions/{index.35014c15.js → index.c8c90968.js} +3 -3
  34. package/components/DynamicFilter/subcomponents/InputFilter/{index.f42e9571.js → index.1b95c167.js} +4 -4
  35. package/components/DynamicFilter/subcomponents/PopoverFilter/{index.ada7eb0c.js → index.fd8a2421.js} +6 -6
  36. package/components/DynamicFilter/subcomponents/PopoverMenuFields/{index.144885cf.js → index.9f07285e.js} +2 -2
  37. package/components/DynamicFilter/types.d.ts +1 -1
  38. package/components/FieldLabel/{index.59b9b63a.js → index.44f3e099.js} +4 -4
  39. package/components/GridLayout/{index.56c3f4fa.js → index.a9f419d8.js} +2 -2
  40. package/components/GridLayout/subcomponents/Griditem/{index.02bcb3b3.js → index.c9f8165b.js} +3 -3
  41. package/components/GridLayout/subcomponents/Responsive/{index.65aeef5e.js → index.ad80dae3.js} +1 -1
  42. package/components/GridLayout/subcomponents/SizeProvider/{index.0aad6f90.js → index.6ebe8790.js} +1 -1
  43. package/components/HelperText/{index.5c72277a.js → index.e9eddfe4.js} +2 -2
  44. package/components/Icon/{index.13aaae3c.js → index.2b591dd6.js} +3 -3
  45. package/components/Image/{index.4b51d4ba.js → index.fb9e71ba.js} +2 -2
  46. package/components/LanguagePopover/{index.7605fda8.js → index.f495b317.js} +4 -4
  47. package/components/LinearProgressIndeterminate/{index.292a4af8.js → index.8a0b3615.js} +2 -2
  48. package/components/LoadingError/{index.b129b573.js → index.2675dde0.js} +5 -5
  49. package/components/MFIsolationApp/{index.9f718621.js → index.359ce9ec.js} +2 -2
  50. package/components/MFLoader/{index.5d340e32.js → index.49a6bd2c.js} +2 -2
  51. package/components/ModalDialog/{index.ff275011.js → index.3571068b.js} +4 -4
  52. package/components/NavLink/{index.506c7827.js → index.82f5f2f4.js} +2 -2
  53. package/components/NoItemSelected/{index.1d7d5a9d.js → index.437fb106.js} +1 -1
  54. package/components/ObjectLogs/{index.473ebd65.js → index.5d260f34.js} +9 -9
  55. package/components/PDFViewer/{index.4e7ffac8.js → index.9f1d12c4.js} +2 -2
  56. package/components/Page/{index.b75c74e3.js → index.4e1e1b9b.js} +1 -1
  57. package/components/PaperForm/{index.8289409f.js → index.d6293e64.js} +2 -2
  58. package/components/Period/{index.13e4c351.js → index.f0095a0a.js} +4 -4
  59. package/components/PrintingSystem/{index.e1535b80.js → index.88fbf9ec.js} +14 -14
  60. package/components/PrintingSystem/subcomponents/BodyNode/{index.6b36842d.js → index.79cb87c7.js} +1 -1
  61. package/components/PrintingSystem/subcomponents/ChartNode/{index.4aab9d2c.js → index.a5d910d6.js} +1 -1
  62. package/components/PrintingSystem/subcomponents/DividerNode/{index.23a9dc95.js → index.350c25de.js} +1 -1
  63. package/components/PrintingSystem/subcomponents/FooterNode/{index.d0e8fd15.js → index.8c2f7536.js} +1 -1
  64. package/components/PrintingSystem/subcomponents/GridNode/{index.35ff7dab.js → index.b02b56db.js} +1 -1
  65. package/components/PrintingSystem/subcomponents/HeaderNode/{index.9547c826.js → index.462d6322.js} +1 -1
  66. package/components/PrintingSystem/subcomponents/PaperNode/{index.71afe03e.js → index.a5e25147.js} +1 -1
  67. package/components/PrintingSystem/subcomponents/PropertyValueNode/{index.abbb154c.js → index.430bd242.js} +1 -1
  68. package/components/PrintingSystem/subcomponents/SectionNode/{index.b3f2ba6c.js → index.d76d27d3.js} +1 -1
  69. package/components/PrintingSystem/subcomponents/TextBoxNode/{index.809aaad2.js → index.2dcd8991.js} +1 -1
  70. package/components/PropertyValue/{index.36555931.js → index.5d847b88.js} +3 -3
  71. package/components/Resizeable/{index.57363836.js → index.f22bccb6.js} +1 -1
  72. package/components/ScrollBar/{index.236e2aa3.js → index.3f1ca3da.js} +1 -1
  73. package/components/SideBar/{index.bb6c2c7b.js → index.f15b9904.js} +6 -6
  74. package/components/SplitLayout/{index.75953afb.js → index.4b247e0c.js} +1 -1
  75. package/components/ToastContainer/{index.bb972338.js → index.dec47e74.js} +3 -3
  76. package/components/animate/LoadingScreen/{index.09915798.js → index.db36f970.js} +1 -1
  77. package/components/animate/{index.5c545243.js → index.14aa2d3c.js} +1 -1
  78. package/components/areas/components/AreasAdmin/{index.42d40964.js → index.55c40f0c.js} +15 -15
  79. package/components/areas/components/AreasViewer/{index.266a3815.js → index.8a568629.js} +15 -15
  80. package/components/areas/contexts/AreasContext/{index.c2289888.js → index.c677ccfa.js} +4 -4
  81. package/components/areas/hooks/useAreas/{index.509c1703.js → index.2d10f64c.js} +1 -1
  82. package/components/areas/types.d.ts +1 -1
  83. package/components/commercial/AppBarCommercial/{index.3fd10868.js → index.85de55bb.js} +2 -2
  84. package/components/commercial/SectionCommercial/{index.bd45c64e.js → index.47c0cb0c.js} +2 -2
  85. package/components/commercial/TopBar/{index.4e55cffa.js → index.ec7a6cc6.js} +6 -6
  86. package/components/commercial/{index.4bdbb8fe.js → index.90e72726.js} +3 -3
  87. package/components/formatters/BooleanFormatter/{index.ac870381.js → index.5243a181.js} +2 -2
  88. package/components/formatters/{index.53ad2f51.js → index.1b738709.js} +2 -2
  89. package/components/hook-form/HelperError/{index.9f93c627.js → index.c6f8f840.js} +1 -1
  90. package/components/hook-form/RHFAutocomplete/RHFAutocomplete.d.ts +1 -1
  91. package/components/hook-form/RHFAutocomplete/classes/index.d.ts +1 -2
  92. package/components/hook-form/RHFAutocomplete/classes/types.d.ts +0 -1
  93. package/components/hook-form/RHFAutocomplete/{index.b8347185.js → index.c8bcfed8.js} +302 -70
  94. package/components/hook-form/RHFAutocomplete/subcomponents/ComponentTypeImage/index.d.ts +2 -0
  95. package/components/hook-form/RHFAutocomplete/subcomponents/ComponentTypeText/index.d.ts +2 -0
  96. package/components/hook-form/RHFAutocomplete/subcomponents/RenderOption/index.d.ts +1 -1
  97. package/components/hook-form/RHFAutocomplete/subcomponents/Skeleton/types.d.ts +1 -1
  98. package/components/hook-form/RHFAutocomplete/types.d.ts +17 -9
  99. package/components/hook-form/RHFAutocompleteAsync/{index.aeb3bf66.js → index.2b2ff592.js} +102 -5
  100. package/components/hook-form/RHFAutocompleteAsync/subcomponents/ComponentTypeImage/index.d.ts +3 -0
  101. package/components/hook-form/RHFAutocompleteAsync/subcomponents/ComponentTypeText/index.d.ts +2 -0
  102. package/components/hook-form/RHFAutocompleteAsync/types.d.ts +6 -3
  103. package/components/hook-form/RHFCheckbox/{index.c3b7ce0f.js → index.06c0b776.js} +3 -3
  104. package/components/hook-form/RHFColorPicker/{index.c259b8ac.js → index.f606dce6.js} +6 -6
  105. package/components/hook-form/RHFDateTime/{index.4efe48ce.js → index.fb4867fa.js} +4 -4
  106. package/components/hook-form/RHFPeriod/{index.0f912e3e.js → index.75e07583.js} +4 -4
  107. package/components/hook-form/RHFRadioGroup/{index.96c94958.js → index.a0a28a48.js} +1 -1
  108. package/components/hook-form/RHFTextField/{index.828b30f5.js → index.257c6486.js} +5 -5
  109. package/components/hook-form/RHFUpload/{index.b664c68b.js → index.a6954d0d.js} +5 -5
  110. package/components/maps/components/GpsTools/{index.e759163d.js → index.30fe41d1.js} +27 -24
  111. package/components/maps/components/Map/external/googleMutant/index.d.ts +159 -159
  112. package/components/maps/components/Map/{index.c568e68d.js → index.14f082d4.js} +14 -13
  113. package/components/maps/leaflet-geoman.d.ts +1476 -1476
  114. package/components/modal/{WindowBase.58f9e2b0.js → WindowBase.0dc3b3ea.js} +3 -3
  115. package/components/modal/{WindowConfirm.60955735.js → WindowConfirm.b8a431dd.js} +6 -6
  116. package/components/mui_extended/Accordion/{index.e6971e30.js → index.bb0cd2ab.js} +4 -4
  117. package/components/mui_extended/Avatar/{index.8cc99f13.js → index.bcf4d669.js} +1 -1
  118. package/components/mui_extended/Badge/{index.07fb40c0.js → index.89ca5b23.js} +1 -1
  119. package/components/mui_extended/Button/{index.111f830e.js → index.24b9496b.js} +3 -3
  120. package/components/mui_extended/{CheckBox.a8958eb8.js → CheckBox.4d930bed.js} +2 -2
  121. package/components/mui_extended/IconButton/{index.9425bdc5.js → index.f5dcf537.js} +2 -2
  122. package/components/mui_extended/MenuActions/{index.8b0d69b7.js → index.540d82fd.js} +5 -5
  123. package/components/mui_extended/Pager/classes/index.d.ts +1 -1
  124. package/components/mui_extended/Pager/{index.cb749e65.js → index.f3a6c94b.js} +4 -4
  125. package/components/mui_extended/Popover/{index.5e78a637.js → index.6d8fe229.js} +1 -1
  126. package/components/mui_extended/Stack/{index.3674daf7.js → index.9d6ed8c2.js} +1 -1
  127. package/components/mui_extended/Tab/{index.a94a92c1.js → index.0941bb3a.js} +1 -1
  128. package/components/mui_extended/ToggleButton/{index.a55def3b.js → index.d45c7a60.js} +1 -1
  129. package/components/mui_extended/ToggleIconButton/{index.cd20de81.js → index.c51670d1.js} +1 -1
  130. package/components/mui_extended/Typography/{index.45e97bdd.js → index.dbc44e77.js} +1 -1
  131. package/components/popups/PopupsViewer/{index.8fe4aa5d.js → index.6a175b73.js} +4 -4
  132. package/components/popups/PopupsViewer/slots/{popupsViewerSlots.aaf546e2.js → popupsViewerSlots.be9219c7.js} +2 -2
  133. package/contexts/ModalContext/{index.a5c622d6.js → index.26017754.js} +1 -1
  134. package/contexts/RHFormContext/{index.40a9547e.js → index.54d30cb2.js} +1 -1
  135. package/hooks/useFormAddEdit/{index.b6a3cf63.js → index.bd4ae2a5.js} +2 -2
  136. package/hooks/useModal/{index.3ad1e014.js → index.d3c18b29.js} +1 -1
  137. package/hooks/useTab/{index.4081b113.js → index.da9b5a24.js} +1 -1
  138. package/index.js +123 -123
  139. package/package.json +1 -1
  140. package/{react-draggable.310e3387.js → react-draggable.1c1ba224.js} +1 -1
  141. package/{react-resizable.3755959b.js → react-resizable.a59c14f4.js} +2 -2
  142. package/styles/{DynamicFilter.557ee3a7.js → DynamicFilter.27c16026.js} +1 -1
  143. package/styles/{index.239f949e.js → index.d972f170.js} +11 -11
  144. package/vite-env.d.ts +4 -4
  145. /package/utils/{index.78d1638f.js → index.14912462.js} +0 -0
@@ -6,13 +6,13 @@ import { useResponsiveDesktop, useFirstRender } from "@m4l/graphics";
6
6
  import { useHostTools, useModuleDictionary, useNetwork, useModuleSkeleton, EmitEvents } from "@m4l/core";
7
7
  import { devtools } from "zustand/middleware";
8
8
  import { immer } from "zustand/middleware/immer";
9
- import { u as useAreasViewerUtilityClasses } from "../../components/AreasViewer/index.266a3815.js";
10
- import { u as useAreasAdminUtilityClasses } from "../../components/AreasAdmin/index.42d40964.js";
9
+ import { u as useAreasViewerUtilityClasses } from "../../components/AreasViewer/index.8a568629.js";
10
+ import { u as useAreasAdminUtilityClasses } from "../../components/AreasAdmin/index.55c40f0c.js";
11
11
  import { c as createDynamicMFStore } from "../DynamicMFParmsContext/index.3d9ad0ad.js";
12
12
  import { g as getAreasDictionary, D as DICCTIONARY } from "../../dictionary.08cfc4c9.js";
13
- import { a as addLayoutItemToBreakPointIfNoExists, b as addLayoutItemToBreakPoints, c as cloneLayouts } from "../../../GridLayout/subcomponents/Responsive/index.65aeef5e.js";
13
+ import { a as addLayoutItemToBreakPointIfNoExists, b as addLayoutItemToBreakPoints, c as cloneLayouts } from "../../../GridLayout/subcomponents/Responsive/index.ad80dae3.js";
14
14
  import { debounce, cloneDeep } from "lodash";
15
- import { A as isEqualLayouts } from "../../../GridLayout/index.56c3f4fa.js";
15
+ import { A as isEqualLayouts } from "../../../GridLayout/index.a9f419d8.js";
16
16
  import { useNavigate } from "react-router-dom";
17
17
  const PADDING_GRIDLAYOUT = 11;
18
18
  const MARGIN_GRIDLAYOUT = 11;
@@ -1,6 +1,6 @@
1
1
  import { useContext } from "react";
2
2
  import { useStore } from "zustand";
3
- import { b as AreasContext } from "../../contexts/AreasContext/index.c2289888.js";
3
+ import { b as AreasContext } from "../../contexts/AreasContext/index.c677ccfa.js";
4
4
  function useAreasStore(selector, equalityFn) {
5
5
  const context = useContext(AreasContext);
6
6
  if (!context)
@@ -119,7 +119,7 @@ export declare type WindowState = {
119
119
  toasties: Toasty[];
120
120
  /**
121
121
  * Hash que mapea el identificador de la tostada con su respectiva información.
122
-
122
+
123
123
  */
124
124
  hashToasties: Record<number, Toasty>;
125
125
  toastyCount: number;
@@ -1,8 +1,8 @@
1
1
  import { jsx } from "react/jsx-runtime";
2
2
  import { generateUtilityClasses } from "@mui/material";
3
3
  import { unstable_composeClasses } from "@mui/base";
4
- import { g as getComponentUtilityClass } from "../../../utils/index.78d1638f.js";
5
- import { ab as AppBarComercialRoot } from "../../../styles/index.239f949e.js";
4
+ import { g as getComponentUtilityClass } from "../../../utils/index.14912462.js";
5
+ import { ab as AppBarComercialRoot } from "../../../styles/index.d972f170.js";
6
6
  const componentName = "M4LAppBarCommercial";
7
7
  generateUtilityClasses(
8
8
  componentName,
@@ -1,8 +1,8 @@
1
1
  import { jsx } from "react/jsx-runtime";
2
2
  import { generateUtilityClasses } from "@mui/material";
3
3
  import { unstable_composeClasses } from "@mui/base";
4
- import { g as getComponentUtilityClass } from "../../../utils/index.78d1638f.js";
5
- import { ac as SectionCommercialRoot } from "../../../styles/index.239f949e.js";
4
+ import { g as getComponentUtilityClass } from "../../../utils/index.14912462.js";
5
+ import { ac as SectionCommercialRoot } from "../../../styles/index.d972f170.js";
6
6
  const componentName = "M4LSectionCommercial";
7
7
  generateUtilityClasses(
8
8
  componentName,
@@ -2,16 +2,16 @@ import { jsx, jsxs } from "react/jsx-runtime";
2
2
  import { T as TEST_PROP_ID } from "../../../test/constants_no_mock.86c553a9.js";
3
3
  import { generateUtilityClasses, useTheme, Box, Grid, styled } from "@mui/material";
4
4
  import { unstable_composeClasses } from "@mui/base";
5
- import { g as getComponentUtilityClass } from "../../../utils/index.78d1638f.js";
5
+ import { g as getComponentUtilityClass } from "../../../utils/index.14912462.js";
6
6
  import { createContext, useContext, useState } from "react";
7
7
  import { useEnvironment } from "@m4l/core";
8
- import { ad as ArrowIconRoot } from "../../../styles/index.239f949e.js";
9
- import { I as Icon } from "../../Icon/index.13aaae3c.js";
8
+ import { ad as ArrowIconRoot } from "../../../styles/index.d972f170.js";
9
+ import { I as Icon } from "../../Icon/index.2b591dd6.js";
10
10
  import clsx from "clsx";
11
11
  import { g as getNameDataTestId } from "../../../test/getNameDataTestId.0faeade8.js";
12
- import { A as Accordion } from "../../mui_extended/Accordion/index.e6971e30.js";
13
- import { B as Button } from "../../mui_extended/Button/index.111f830e.js";
14
- import { P as Popover } from "../../mui_extended/Popover/index.5e78a637.js";
12
+ import { A as Accordion } from "../../mui_extended/Accordion/index.bb0cd2ab.js";
13
+ import { B as Button } from "../../mui_extended/Button/index.24b9496b.js";
14
+ import { P as Popover } from "../../mui_extended/Popover/index.6d8fe229.js";
15
15
  const componentName = "M4LTopBar";
16
16
  const TopBarClasses = generateUtilityClasses(componentName, [
17
17
  "root",
@@ -1,12 +1,12 @@
1
1
  import { jsxs, jsx } from "react/jsx-runtime";
2
2
  import { useState } from "react";
3
- import { ae as HamburgerMenuRoot } from "../../styles/index.239f949e.js";
3
+ import { ae as HamburgerMenuRoot } from "../../styles/index.d972f170.js";
4
4
  import { generateUtilityClasses, generateUtilityClass } from "@mui/material";
5
5
  import { unstable_composeClasses } from "@mui/base";
6
6
  import { T as TEST_PROP_ID } from "../../test/constants_no_mock.86c553a9.js";
7
7
  import { useEnvironment } from "@m4l/core";
8
- import { S as SideBar } from "../SideBar/index.bb6c2c7b.js";
9
- import { I as IconButton } from "../mui_extended/IconButton/index.9425bdc5.js";
8
+ import { S as SideBar } from "../SideBar/index.f15b9904.js";
9
+ import { I as IconButton } from "../mui_extended/IconButton/index.f5dcf537.js";
10
10
  const componentName = "M4LHamburgerMenuCommercial";
11
11
  generateUtilityClasses(componentName, ["root", "ImageLogo"]);
12
12
  function getHamburgerMenuComercialClassesUtilityClass(slot) {
@@ -1,9 +1,9 @@
1
1
  import { jsx } from "react/jsx-runtime";
2
2
  import { useMemo } from "react";
3
3
  import { useModuleDictionary, useEnvironment } from "@m4l/core";
4
- import { I as Icon } from "../../Icon/index.13aaae3c.js";
4
+ import { I as Icon } from "../../Icon/index.2b591dd6.js";
5
5
  import { W as WrapperComponent } from "../../WrapperComponent/index.57964195.js";
6
- import { F as FormatterRoot, f as formatterClasses } from "../index.53ad2f51.js";
6
+ import { F as FormatterRoot, f as formatterClasses } from "../index.1b738709.js";
7
7
  import clsx from "clsx";
8
8
  const BOOLEAN_FORMATTER_DICTIONARY_KEY = `boolean_formatter`;
9
9
  const LABEL_BOOLEAN_YES = `${BOOLEAN_FORMATTER_DICTIONARY_KEY}.boolean_yes`;
@@ -1,10 +1,10 @@
1
1
  import { jsx } from "react/jsx-runtime";
2
2
  import { generateUtilityClasses } from "@mui/material";
3
3
  import "@mui/base";
4
- import { af as FormatterRootContainer } from "../../styles/index.239f949e.js";
4
+ import { af as FormatterRootContainer } from "../../styles/index.d972f170.js";
5
5
  import { W as WrapperComponent } from "../WrapperComponent/index.57964195.js";
6
6
  import { useModuleDictionary } from "@m4l/core";
7
- import { a as BOOLEAN_FORMATTER_DICTIONARY_KEY } from "./BooleanFormatter/index.ac870381.js";
7
+ import { a as BOOLEAN_FORMATTER_DICTIONARY_KEY } from "./BooleanFormatter/index.5243a181.js";
8
8
  const COMPONENT_CLASS_NAME = "M4LFormatter";
9
9
  const formatterClasses = generateUtilityClasses(COMPONENT_CLASS_NAME, [
10
10
  "root",
@@ -1,6 +1,6 @@
1
1
  import { jsx } from "react/jsx-runtime";
2
2
  import { useFormContext, useController } from "react-hook-form";
3
- import { H as HelperText } from "../../HelperText/index.5c72277a.js";
3
+ import { H as HelperText } from "../../HelperText/index.e9eddfe4.js";
4
4
  function HelperError(props) {
5
5
  const { name } = props;
6
6
  const { control } = useFormContext();
@@ -1,2 +1,2 @@
1
- import type { RHFAutocompleteProps } from './types';
1
+ import { RHFAutocompleteProps } from './types';
2
2
  export declare function RHFAutocomplete<T>(props: RHFAutocompleteProps<T>): import("react/jsx-runtime").JSX.Element;
@@ -7,9 +7,8 @@ export declare const useUtilityClasses: (ownerState: OwnerState) => {
7
7
  root: string;
8
8
  skeleton: string;
9
9
  popper: string;
10
- withImage: string;
11
10
  skeletonRoot: string;
11
+ skeletonContainerText: string;
12
12
  iconDown: string;
13
13
  chip: string;
14
- skeletonContainerText: string;
15
14
  };
@@ -9,7 +9,6 @@ export interface RHFAutocompleteClassesType {
9
9
  skeletonContainerText: string;
10
10
  iconDown: string;
11
11
  variantInfo: string;
12
- variantImage: string;
13
12
  isDisabled: string;
14
13
  imageWidthDefined: string;
15
14
  variantSuccess: string;
@@ -1,61 +1,19 @@
1
- import { jsxs, jsx, Fragment } from "react/jsx-runtime";
2
- import { useMemo, useRef, useState, useEffect, createElement } from "react";
1
+ import { jsx, jsxs, Fragment } from "react/jsx-runtime";
2
+ import { createElement, useMemo, useRef, useState, useEffect } from "react";
3
3
  import { useModuleDictionary, useModuleSkeleton, useEnvironment } from "@m4l/core";
4
+ import { useFormFocus } from "../../../index.js";
5
+ import { generateUtilityClasses, generateUtilityClass, Skeleton, useTheme, Autocomplete, Popper, TextField, Chip } from "@mui/material";
6
+ import { useResponsiveDesktop } from "@m4l/graphics";
4
7
  import { useFormContext, Controller } from "react-hook-form";
5
- import { Skeleton, generateUtilityClasses, generateUtilityClass, useTheme, Autocomplete, Popper, TextField, Chip } from "@mui/material";
6
- import { ag as WrapperOption, ah as AutocompleteRoot } from "../../../styles/index.239f949e.js";
7
- import { I as Image } from "../../Image/index.4b51d4ba.js";
8
- import { T as TEST_PROP_ID } from "../../../test/constants_no_mock.86c553a9.js";
9
- import { T as Typography } from "../../mui_extended/Typography/index.45e97bdd.js";
10
8
  import { unstable_composeClasses } from "@mui/base";
11
- import { H as HelperText } from "../../HelperText/index.5c72277a.js";
12
- import { useResponsiveDesktop } from "@m4l/graphics";
13
- import { useFormFocus } from "../../../index.js";
14
- import { F as FieldLabel } from "../../FieldLabel/index.59b9b63a.js";
9
+ import { ag as WrapperOption, ah as AutocompleteRoot } from "../../../styles/index.d972f170.js";
10
+ import { T as TEST_PROP_ID } from "../../../test/constants_no_mock.86c553a9.js";
11
+ import { I as Image } from "../../Image/index.fb9e71ba.js";
12
+ import { T as Typography } from "../../mui_extended/Typography/index.dbc44e77.js";
13
+ import { H as HelperText } from "../../HelperText/index.e9eddfe4.js";
14
+ import { F as FieldLabel } from "../../FieldLabel/index.44f3e099.js";
15
15
  import { C as CircularProgress } from "../../mui_extended/CircularProgress/index.967e70b7.js";
16
- import { I as IconButton } from "../../mui_extended/IconButton/index.9425bdc5.js";
17
- const RHFAUTOCOMPLETE_PREFIX = "RHFAutocomplete";
18
- const RHFTAUTOCOMPLET_ROOT_TEST_ID = "RHFAutocomplete";
19
- const getNameDataTestId = (KEY) => {
20
- return `${RHFAUTOCOMPLETE_PREFIX}-${KEY}`;
21
- };
22
- function withRenderOption(getUrlImage, classes, imageWidth) {
23
- return function RenderOption(optionProps, option) {
24
- return /* @__PURE__ */ jsxs(
25
- WrapperOption,
26
- {
27
- ...optionProps,
28
- className: classes.withImage,
29
- ...process.env.NODE_ENV !== "production" ? { [TEST_PROP_ID]: getNameDataTestId("withImage") } : {},
30
- children: [
31
- /* @__PURE__ */ jsx(Image, { src: getUrlImage(option), width: imageWidth, height: "100%" }),
32
- /* @__PURE__ */ jsx(Typography, { variant: "body", children: optionProps.key })
33
- ]
34
- }
35
- );
36
- };
37
- }
38
- const SkeletonRHFAutocomplete = (props) => {
39
- const { withImage, classes, hasLabel } = props;
40
- return /* @__PURE__ */ jsxs("div", { className: classes.skeletonRoot, children: [
41
- (hasLabel || hasLabel?.length === 0) && /* @__PURE__ */ jsx(Skeleton, { variant: "text", width: "30%", height: "16px" }),
42
- /* @__PURE__ */ jsx(
43
- "div",
44
- {
45
- className: classes.skeleton,
46
- ...process.env.NODE_ENV !== "production" ? { [TEST_PROP_ID]: getNameDataTestId("skeleton") } : {},
47
- children: !withImage ? /* @__PURE__ */ jsxs(Fragment, { children: [
48
- /* @__PURE__ */ jsx("div", { className: classes.skeletonContainerText, children: /* @__PURE__ */ jsx(Skeleton, { variant: "text", width: "50%", height: "14px" }) }),
49
- /* @__PURE__ */ jsx(Skeleton, { variant: "circular", width: 16, height: 16, sx: { minWidth: "16px" } })
50
- ] }) : /* @__PURE__ */ jsxs(Fragment, { children: [
51
- /* @__PURE__ */ jsx(Skeleton, { variant: "circular" }),
52
- /* @__PURE__ */ jsx("div", { className: classes.skeletonContainerText, children: /* @__PURE__ */ jsx(Skeleton, { variant: "text", width: "50%", height: "14px" }) }),
53
- /* @__PURE__ */ jsx(Skeleton, { variant: "circular", width: 16, height: 16, sx: { minWidth: "16px" } })
54
- ] })
55
- }
56
- )
57
- ] });
58
- };
16
+ import { I as IconButton } from "../../mui_extended/IconButton/index.f5dcf537.js";
59
17
  const componentName = "M4LRHFAutocomplete";
60
18
  generateUtilityClasses(
61
19
  componentName,
@@ -69,7 +27,6 @@ generateUtilityClasses(
69
27
  "skeletonContainerText",
70
28
  "iconDown",
71
29
  "variantInfo",
72
- "variantImage",
73
30
  "isDisabled",
74
31
  "imageWidthDefined",
75
32
  "variantSuccess",
@@ -98,17 +55,16 @@ const useUtilityClasses = (ownerState) => {
98
55
  ownerState.semantics === "success" && "variantSuccess",
99
56
  ownerState.semantics === "warning" && "variantWarning",
100
57
  ownerState.semantics === "error" && "variantError",
101
- ownerState.imageWidthDefined && "imageWidthDefined",
102
58
  ownerState.multiple && "multiple"
103
59
  ],
104
- withImage: ["withImage"],
105
60
  skeleton: ["skeleton"],
106
61
  label: ["label"],
107
62
  popper: [
108
63
  "popper",
109
64
  ownerState.size === "small" && "sizeSmall",
110
65
  ownerState.size === "medium" && "sizeMedium",
111
- ownerState.imageWidthDefined && "imageWidthDefined"
66
+ ownerState.imageScale && "imageScale",
67
+ ownerState.imageRepeat && "imageRepeat"
112
68
  ],
113
69
  skeletonRoot: ["skeletonRoot"],
114
70
  skeletonContainerText: ["SkeletonContainerText"],
@@ -124,7 +80,48 @@ const useUtilityClasses = (ownerState) => {
124
80
  ...composedClasses
125
81
  };
126
82
  };
127
- function RHFAutocomplete(props) {
83
+ const RHFAUTOCOMPLETE_PREFIX = "RHFAutocomplete";
84
+ const RHFTAUTOCOMPLET_ROOT_TEST_ID = "RHFAutocomplete";
85
+ const getNameDataTestId = (KEY) => {
86
+ return `${RHFAUTOCOMPLETE_PREFIX}-${KEY}`;
87
+ };
88
+ function withRenderOption(getUrlImage, classes) {
89
+ return function RenderOption(optionProps, option) {
90
+ return /* @__PURE__ */ createElement(
91
+ WrapperOption,
92
+ {
93
+ ...optionProps,
94
+ key: optionProps.key,
95
+ className: classes.withImage,
96
+ ...process.env.NODE_ENV !== "production" ? { [TEST_PROP_ID]: getNameDataTestId("withImage") } : {}
97
+ },
98
+ /* @__PURE__ */ jsx(Image, { src: getUrlImage(option) }),
99
+ /* @__PURE__ */ jsx(Typography, { variant: "body", children: optionProps.key })
100
+ );
101
+ };
102
+ }
103
+ const SkeletonRHFAutocomplete = (props) => {
104
+ const { withImage, classes, hasLabel } = props;
105
+ return /* @__PURE__ */ jsxs("div", { className: classes.skeletonRoot, children: [
106
+ (hasLabel || hasLabel?.length === 0) && /* @__PURE__ */ jsx(Skeleton, { variant: "text", width: "30%", height: "16px" }),
107
+ /* @__PURE__ */ jsx(
108
+ "div",
109
+ {
110
+ className: classes.skeleton,
111
+ ...process.env.NODE_ENV !== "production" ? { [TEST_PROP_ID]: getNameDataTestId("skeleton") } : {},
112
+ children: !withImage ? /* @__PURE__ */ jsxs(Fragment, { children: [
113
+ /* @__PURE__ */ jsx("div", { className: classes.skeletonContainerText, children: /* @__PURE__ */ jsx(Skeleton, { variant: "text", width: "50%", height: "14px" }) }),
114
+ /* @__PURE__ */ jsx(Skeleton, { variant: "circular", width: 16, height: 16, sx: { minWidth: "16px" } })
115
+ ] }) : /* @__PURE__ */ jsxs(Fragment, { children: [
116
+ /* @__PURE__ */ jsx(Skeleton, { variant: "circular" }),
117
+ /* @__PURE__ */ jsx("div", { className: classes.skeletonContainerText, children: /* @__PURE__ */ jsx(Skeleton, { variant: "text", width: "50%", height: "14px" }) }),
118
+ /* @__PURE__ */ jsx(Skeleton, { variant: "circular", width: 16, height: 16, sx: { minWidth: "16px" } })
119
+ ] })
120
+ }
121
+ )
122
+ ] });
123
+ };
124
+ function ComponentTypeImage(props) {
128
125
  const {
129
126
  name: nameRHF,
130
127
  getOptionLabel,
@@ -142,11 +139,11 @@ function RHFAutocomplete(props) {
142
139
  helperMessage,
143
140
  size = "small",
144
141
  onChangeFilterParmsLocal,
145
- imageWidth,
146
- imageHeight,
147
142
  mandatory,
148
143
  mandatoryMessage,
149
144
  multiple,
145
+ imageScale = true,
146
+ imageRepeat,
150
147
  ...other
151
148
  } = props;
152
149
  const { getLabel } = useModuleDictionary();
@@ -207,8 +204,9 @@ function RHFAutocomplete(props) {
207
204
  isTabSelected: !isSkeleton ? isTabSelected : false,
208
205
  semantics: currentVariant,
209
206
  disabled,
210
- imageWidthDefined: Boolean(imageWidth),
211
- multiple: Boolean(multiple)
207
+ multiple: Boolean(multiple),
208
+ imageScale: Boolean(imageScale),
209
+ imageRepeat: Boolean(imageRepeat)
212
210
  };
213
211
  const classes = useUtilityClasses(ownerState);
214
212
  const theme = useTheme();
@@ -266,6 +264,7 @@ function RHFAutocomplete(props) {
266
264
  inputValue,
267
265
  clearOnBlur: false,
268
266
  PopperComponent: (popperProps) => {
267
+ console.log("popper debug");
269
268
  return /* @__PURE__ */ jsx(
270
269
  Popper,
271
270
  {
@@ -306,7 +305,7 @@ function RHFAutocomplete(props) {
306
305
  loadingText: /* @__PURE__ */ jsx(Typography, { variant: "body", children: getLabel("rhf_autocomplete.loading_options") }),
307
306
  disabled,
308
307
  noOptionsText: getLabel("rhf_autocomplete.no_options"),
309
- renderOption: withImage ? withRenderOption(getOptionUrlImageLocal, classes, imageWidth) : void 0,
308
+ renderOption: withRenderOption(getOptionUrlImageLocal, classes),
310
309
  renderInput: (params) => {
311
310
  return /* @__PURE__ */ jsx(
312
311
  TextField,
@@ -325,9 +324,7 @@ function RHFAutocomplete(props) {
325
324
  !multiple && withImage && value ? /* @__PURE__ */ jsx(
326
325
  Image,
327
326
  {
328
- src: getOptionUrlImageLocal(value),
329
- width: imageWidth,
330
- height: "100%"
327
+ src: getOptionUrlImageLocal(value)
331
328
  },
332
329
  "ImageTextField"
333
330
  ) : null,
@@ -365,9 +362,7 @@ function RHFAutocomplete(props) {
365
362
  icon: withImage && option ? /* @__PURE__ */ jsx(
366
363
  Image,
367
364
  {
368
- src: getOptionUrlImageLocal(option),
369
- width: imageWidth,
370
- height: imageHeight ?? "100%"
365
+ src: getOptionUrlImageLocal(option)
371
366
  }
372
367
  ) : void 0,
373
368
  sx: {
@@ -387,6 +382,243 @@ function RHFAutocomplete(props) {
387
382
  }
388
383
  );
389
384
  }
385
+ function ComponentTypeText(props) {
386
+ const {
387
+ name: nameRHF,
388
+ getOptionLabel,
389
+ isOptionEqualToValue,
390
+ label,
391
+ skeletonWidth = 100,
392
+ skeletonHeight = "18px",
393
+ options,
394
+ disabled,
395
+ onOpen,
396
+ onClose,
397
+ loading,
398
+ variant,
399
+ helperMessage,
400
+ size = "small",
401
+ onChangeFilterParmsLocal,
402
+ mandatory,
403
+ mandatoryMessage,
404
+ multiple,
405
+ ...other
406
+ } = props;
407
+ const { getLabel } = useModuleDictionary();
408
+ const isSkeleton = useModuleSkeleton();
409
+ const { host_static_assets, environment_assets } = useEnvironment();
410
+ const { isFocus, isTabSelected, handlerFocus, handlerOnKeyUp, handlerOnBlur } = useFormFocus();
411
+ const autocompleteRef = useRef(null);
412
+ const [open, setOpen] = useState(false);
413
+ const isDesktop = useResponsiveDesktop();
414
+ const onCloseLocal = (event, reason) => {
415
+ setOpen(false);
416
+ if (onClose)
417
+ onClose(event, reason);
418
+ };
419
+ const onOpenLocal = (event) => {
420
+ setOpen(true);
421
+ if (onOpen)
422
+ onOpen(event);
423
+ };
424
+ const getOptionLabelLocal = (option) => {
425
+ if (option === void 0 || option === null) {
426
+ return "";
427
+ }
428
+ return getOptionLabel(option);
429
+ };
430
+ const isOptionEqualToValueLocal = (option, value) => {
431
+ if (value === void 0 || value === null || option === null) {
432
+ return false;
433
+ }
434
+ return isOptionEqualToValue(option, value);
435
+ };
436
+ const {
437
+ control,
438
+ formState: { errors }
439
+ } = useFormContext();
440
+ const [currentVariant, setCurrentVariant] = useState(
441
+ null
442
+ );
443
+ useEffect(() => {
444
+ if (errors[nameRHF]) {
445
+ setCurrentVariant("error");
446
+ } else if (variant) {
447
+ setCurrentVariant(variant);
448
+ } else {
449
+ setCurrentVariant(null);
450
+ }
451
+ }, [errors[nameRHF], variant, control]);
452
+ const ownerState = {
453
+ size: !isDesktop ? "medium" : size,
454
+ isFocus: !isSkeleton ? isFocus : false,
455
+ isTabSelected: !isSkeleton ? isTabSelected : false,
456
+ semantics: currentVariant,
457
+ disabled,
458
+ multiple: Boolean(multiple)
459
+ };
460
+ const classes = useUtilityClasses(ownerState);
461
+ const theme = useTheme();
462
+ return /* @__PURE__ */ jsx(
463
+ AutocompleteRoot,
464
+ {
465
+ className: classes.root,
466
+ tabIndex: 0,
467
+ onFocus: handlerFocus,
468
+ onBlur: handlerOnBlur,
469
+ onKeyUp: handlerOnKeyUp,
470
+ ...process.env.NODE_ENV !== "production" ? { [TEST_PROP_ID]: `${RHFTAUTOCOMPLET_ROOT_TEST_ID}_${nameRHF}` } : {},
471
+ children: !isSkeleton ? /* @__PURE__ */ jsx(
472
+ Controller,
473
+ {
474
+ name: nameRHF,
475
+ control,
476
+ render: ({ field: { onChange, value }, fieldState: { error } }) => {
477
+ const [inputValue, setInputValue] = useState(getOptionLabelLocal(value));
478
+ useEffect(() => {
479
+ if (!open && value === null && inputValue !== "") {
480
+ setInputValue("");
481
+ }
482
+ if (!open && value !== null && options.length === 0) {
483
+ onChangeFilterParmsLocal?.(getOptionLabelLocal(value), "reset");
484
+ }
485
+ }, [value]);
486
+ const checkKeyDown = (e) => {
487
+ if (e.code === "Enter")
488
+ e.preventDefault();
489
+ };
490
+ return /* @__PURE__ */ jsxs(Fragment, { children: [
491
+ label && /* @__PURE__ */ jsx(
492
+ FieldLabel,
493
+ {
494
+ className: classes.label,
495
+ label,
496
+ mandatory,
497
+ mandatoryMessage,
498
+ helperMessage
499
+ }
500
+ ),
501
+ /* @__PURE__ */ jsx(
502
+ Autocomplete,
503
+ {
504
+ autoComplete: true,
505
+ disableClearable: true,
506
+ multiple,
507
+ onKeyDown: checkKeyDown,
508
+ size,
509
+ ref: autocompleteRef,
510
+ autoSelect: false,
511
+ options,
512
+ getOptionLabel: getOptionLabelLocal,
513
+ inputValue,
514
+ clearOnBlur: false,
515
+ PopperComponent: (popperProps) => {
516
+ return /* @__PURE__ */ jsx(
517
+ Popper,
518
+ {
519
+ ...popperProps,
520
+ className: classes.popper,
521
+ placement: "bottom-start",
522
+ sx: {
523
+ ...theme.components?.M4LRHFAutocompletePopover?.styleOverrides
524
+ }
525
+ }
526
+ );
527
+ },
528
+ onInputChange: (_event, newValue, reason) => {
529
+ if (reason === "input") {
530
+ setInputValue(newValue);
531
+ if (onChangeFilterParmsLocal) {
532
+ onChangeFilterParmsLocal(newValue, reason);
533
+ }
534
+ } else {
535
+ onChange(null);
536
+ }
537
+ },
538
+ isOptionEqualToValue: isOptionEqualToValueLocal,
539
+ value: Array.isArray(value) ? value : multiple ? value ? [value] : [] : value || null,
540
+ onOpen: onOpenLocal,
541
+ onClose: onCloseLocal,
542
+ open,
543
+ onChange: (_e, newValue) => {
544
+ if (!multiple && !Array.isArray(newValue)) {
545
+ setInputValue(getOptionLabelLocal(newValue));
546
+ } else {
547
+ setInputValue("");
548
+ }
549
+ onChange(Array.isArray(newValue) ? [...newValue] : newValue);
550
+ },
551
+ filterOptions: onChangeFilterParmsLocal ? (x) => x : void 0,
552
+ loading,
553
+ loadingText: /* @__PURE__ */ jsx(Typography, { variant: "body", children: getLabel("rhf_autocomplete.loading_options") }),
554
+ disabled,
555
+ noOptionsText: getLabel("rhf_autocomplete.no_options"),
556
+ renderOption: void 0,
557
+ renderInput: (params) => {
558
+ return /* @__PURE__ */ jsx(
559
+ TextField,
560
+ {
561
+ ...params,
562
+ InputLabelProps: {
563
+ ...params.InputLabelProps,
564
+ shrink: true
565
+ },
566
+ fullWidth: true,
567
+ size,
568
+ SelectProps: { native: true },
569
+ InputProps: {
570
+ ...params.InputProps,
571
+ startAdornment: /* @__PURE__ */ jsx(Fragment, { children: params.InputProps.startAdornment }),
572
+ endAdornment: loading ? /* @__PURE__ */ jsx(CircularProgress, { color: "inherit", size: 18 }) : /* @__PURE__ */ jsx(
573
+ IconButton,
574
+ {
575
+ className: classes.iconDown,
576
+ src: `${host_static_assets}/${environment_assets}/frontend/components/RHFAutocompletarAsync/assets/icons/chevronDown.svg`,
577
+ onClick: (event) => onOpenLocal(event),
578
+ disabled,
579
+ size
580
+ }
581
+ )
582
+ },
583
+ autoComplete: "off",
584
+ error: !!error,
585
+ ...other
586
+ }
587
+ );
588
+ },
589
+ ...multiple ? {
590
+ renderTags: (tagValue, getTagProps) => tagValue.map((option, index) => {
591
+ const { key, ...restTagProps } = getTagProps({
592
+ index
593
+ });
594
+ return /* @__PURE__ */ createElement(
595
+ Chip,
596
+ {
597
+ ...restTagProps,
598
+ key,
599
+ label: getOptionLabelLocal(option),
600
+ className: classes.chip,
601
+ icon: void 0,
602
+ sx: {
603
+ ...theme.components?.M4LRHFAutocompleteChip?.styleOverrides
604
+ }
605
+ }
606
+ );
607
+ })
608
+ } : {}
609
+ }
610
+ ),
611
+ currentVariant === "error" ? /* @__PURE__ */ jsx(HelperText, { variant: currentVariant, message: error?.message }) : null
612
+ ] });
613
+ }
614
+ }
615
+ ) : /* @__PURE__ */ jsx(SkeletonRHFAutocomplete, { classes, hasLabel: label })
616
+ }
617
+ );
618
+ }
619
+ function RHFAutocomplete(props) {
620
+ return /* @__PURE__ */ jsx(Fragment, { children: props.type === "image" ? /* @__PURE__ */ jsx(ComponentTypeImage, { ...props }) : /* @__PURE__ */ jsx(ComponentTypeText, { ...props }) });
621
+ }
390
622
  function getRHFAutocompleteComponentsDictionary() {
391
623
  return ["rhf_autocomplete"];
392
624
  }
@@ -0,0 +1,2 @@
1
+ import { ImageProps, RHFAutocompleteBaseProps } from "../../types";
2
+ export declare function ComponentTypeImage<T>(props: RHFAutocompleteBaseProps<T> & ImageProps<T>): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,2 @@
1
+ import { RHFAutocompleteBaseProps, RHFAutocompleteTypeTextProps } from "../../types";
2
+ export declare function ComponentTypeText<T>(props: RHFAutocompleteBaseProps<T> & RHFAutocompleteTypeTextProps): import("react/jsx-runtime").JSX.Element;
@@ -1,3 +1,3 @@
1
1
  import { HTMLAttributes } from 'react';
2
2
  import { GetOptionString } from '../../types';
3
- export declare function withRenderOption<T>(getUrlImage: GetOptionString<T>, classes: any, imageWidth: string | number | undefined): (optionProps: HTMLAttributes<HTMLLIElement>, option: T) => import("react/jsx-runtime").JSX.Element;
3
+ export declare function withRenderOption<T>(getUrlImage: GetOptionString<T>, classes: any): (optionProps: HTMLAttributes<HTMLLIElement>, option: T) => import("react/jsx-runtime").JSX.Element;
@@ -1,6 +1,6 @@
1
1
  import { Classes } from '../../classes/types';
2
2
  export interface SkeletonRHFAutocompleteProps {
3
- withImage: boolean;
3
+ withImage?: boolean;
4
4
  classes: Classes;
5
5
  hasLabel?: string;
6
6
  }