dynamic-mui 2.5.3 → 2.6.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 (252) hide show
  1. package/dist/accordion-DB151BNT.mjs +22 -0
  2. package/dist/accordion-YWjUldL8.js +1 -0
  3. package/dist/addressfield-CpvOajVo.mjs +242 -0
  4. package/dist/addressfield-CwKjfnTq.js +1 -0
  5. package/dist/ai/index.cjs +1 -1
  6. package/dist/ai/index.mjs +1 -14
  7. package/dist/ai/react/AIForm.d.ts +2 -1
  8. package/dist/ai/react/AIFormGenerator.d.ts +1 -1
  9. package/dist/ai/react/AISchemaReview.d.ts +1 -1
  10. package/dist/ai/react/AITextAssist.d.ts +1 -1
  11. package/dist/ai/react/AIVisionImport.d.ts +2 -1
  12. package/dist/ai-BFpA3uHx.js +29 -0
  13. package/dist/ai-UvDYQ30b.mjs +4533 -0
  14. package/dist/asyncautocomplete-DQLDdmVl.js +1 -0
  15. package/dist/asyncautocomplete-mwra2KKJ.mjs +72 -0
  16. package/dist/bar-CgYZxXHl.js +1 -0
  17. package/dist/bar-LVtZP6Ui.mjs +4 -0
  18. package/dist/cascadeselect-BJzHZA9-.js +1 -0
  19. package/dist/cascadeselect-Cl4OHq-L.mjs +66 -0
  20. package/dist/chartControl-IQafKpDk.mjs +29 -0
  21. package/dist/chartControl-ifHiG3nr.js +1 -0
  22. package/dist/collection-DPJTrAiB.mjs +1692 -0
  23. package/dist/collection-Dd_Ojgwl.js +1 -0
  24. package/dist/colorpicker-9AUe21p1.mjs +110 -0
  25. package/dist/colorpicker-DgKTLBmU.js +1 -0
  26. package/dist/components/DynamicComponent.d.ts +2 -1
  27. package/dist/components/FormGenerator.d.ts +1 -1
  28. package/dist/components/charts/Bar/bar.d.ts +6 -2
  29. package/dist/components/charts/Line/line.d.ts +6 -2
  30. package/dist/components/charts/Mixchart/mixChart.d.ts +2 -1
  31. package/dist/components/charts/Pie/pie.d.ts +6 -2
  32. package/dist/components/charts/chartControl.d.ts +15 -0
  33. package/dist/components/controls/Accordion/accordion.d.ts +2 -1
  34. package/dist/components/controls/AddressField/addressfield.d.ts +2 -1
  35. package/dist/components/controls/Alert/alert.d.ts +1 -1
  36. package/dist/components/controls/AsyncAutocomplete/asyncautocomplete.d.ts +1 -1
  37. package/dist/components/controls/Autocomplete/autocomplete.d.ts +1 -1
  38. package/dist/components/controls/Button/button.d.ts +1 -1
  39. package/dist/components/controls/CascadeSelect/cascadeselect.d.ts +2 -1
  40. package/dist/components/controls/CheckBox/checkbox.d.ts +2 -2
  41. package/dist/components/controls/CheckBox/toggleInput.d.ts +25 -0
  42. package/dist/components/controls/Chip/chip.d.ts +1 -1
  43. package/dist/components/controls/ChipSelect/chipselect.d.ts +2 -1
  44. package/dist/components/controls/Collection/CollectionList.d.ts +1 -1
  45. package/dist/components/controls/Collection/ItemDialog.d.ts +1 -1
  46. package/dist/components/controls/Collection/collection.d.ts +1 -1
  47. package/dist/components/controls/Collection/parts.d.ts +6 -6
  48. package/dist/components/controls/ColorPicker/colorpicker.d.ts +2 -1
  49. package/dist/components/controls/Computed/computed.d.ts +1 -1
  50. package/dist/components/controls/ConsentField/consentfield.d.ts +2 -1
  51. package/dist/components/controls/CurrencyField/currencyfield.d.ts +1 -1
  52. package/dist/components/controls/DataTable/datatable.d.ts +2 -1
  53. package/dist/components/controls/DateRangePicker/daterangepicker.d.ts +1 -1
  54. package/dist/components/controls/DateTime/datetime.d.ts +15 -1
  55. package/dist/components/controls/DateTimePicker/datetimepicker.d.ts +6 -2
  56. package/dist/components/controls/Divider/divider.d.ts +1 -1
  57. package/dist/components/controls/EditableTable/editabletable.d.ts +1 -1
  58. package/dist/components/controls/FileUpload/fileupload.d.ts +1 -1
  59. package/dist/components/controls/FormRepeater/formrepeater.d.ts +1 -1
  60. package/dist/components/controls/FormWizard/formwizard.d.ts +1 -1
  61. package/dist/components/controls/GeoField/geofield.d.ts +1 -1
  62. package/dist/components/controls/Group/group.d.ts +2 -1
  63. package/dist/components/controls/Hyperlink/hyperlink.d.ts +1 -1
  64. package/dist/components/controls/ImageList/imagelist.d.ts +1 -1
  65. package/dist/components/controls/IntlPhone/intlphone.d.ts +2 -1
  66. package/dist/components/controls/KeyValueField/keyvaluefield.d.ts +2 -1
  67. package/dist/components/controls/LineItemList/lineitemlist.d.ts +1 -1
  68. package/dist/components/controls/List/list.d.ts +1 -1
  69. package/dist/components/controls/LocationField/locationfield.d.ts +1 -1
  70. package/dist/components/controls/MarkdownEditor/markdowneditor.d.ts +2 -1
  71. package/dist/components/controls/MatrixField/matrixfield.d.ts +2 -1
  72. package/dist/components/controls/MultiTextbox/multitextbox.d.ts +1 -1
  73. package/dist/components/controls/NpsScale/npsscale.d.ts +2 -1
  74. package/dist/components/controls/NumberField/numberfield.d.ts +2 -1
  75. package/dist/components/controls/NumberStepper/numberstepper.d.ts +1 -1
  76. package/dist/components/controls/OtpField/otpfield.d.ts +2 -1
  77. package/dist/components/controls/PasswordField/passwordfield.d.ts +2 -1
  78. package/dist/components/controls/PhoneField/phonefield.d.ts +1 -1
  79. package/dist/components/controls/Radio/radio.d.ts +2 -1
  80. package/dist/components/controls/Rating/rating.d.ts +2 -1
  81. package/dist/components/controls/RichTextEditor/richtexteditor.d.ts +2 -1
  82. package/dist/components/controls/Select/select.d.ts +2 -1
  83. package/dist/components/controls/Signature/signature.d.ts +1 -1
  84. package/dist/components/controls/Slider/slider.d.ts +1 -1
  85. package/dist/components/controls/Stepper/stepper.d.ts +1 -1
  86. package/dist/components/controls/SummaryField/summaryfield.d.ts +2 -1
  87. package/dist/components/controls/Switch/switch.d.ts +1 -1
  88. package/dist/components/controls/Tabs/tabs.d.ts +2 -1
  89. package/dist/components/controls/TagsInput/tagsinput.d.ts +1 -1
  90. package/dist/components/controls/TextField/textfield.d.ts +1 -1
  91. package/dist/components/controls/TextField/useTextInput.d.ts +18 -0
  92. package/dist/components/controls/TimePicker/timepicker.d.ts +6 -2
  93. package/dist/components/controls/ToggleButtons/togglebuttons.d.ts +1 -1
  94. package/dist/components/controls/Typography/typography.d.ts +1 -1
  95. package/dist/components/controls/index.d.ts +24 -9
  96. package/dist/consentfield-CFm1IDa5.mjs +68 -0
  97. package/dist/consentfield-z8W0Yfx8.js +1 -0
  98. package/dist/datatable-CMjaTDPM.js +1 -0
  99. package/dist/datatable-lZIwHx6a.mjs +29 -0
  100. package/dist/dynamic-mui.cjs +1 -1
  101. package/dist/dynamic-mui.d.ts +1 -1
  102. package/dist/dynamic-mui.mjs +264 -204
  103. package/dist/editabletable-B3Df4Jys.mjs +117 -0
  104. package/dist/editabletable-r0RwM1rO.js +1 -0
  105. package/dist/fileupload-Cr-Mz7oH.js +1 -0
  106. package/dist/fileupload-D2fXyMIu.mjs +191 -0
  107. package/dist/formrepeater-BP-RBrQv.js +1 -0
  108. package/dist/formrepeater-BrYTYCzc.mjs +82 -0
  109. package/dist/formwizard-CQ2z6fUX.mjs +82 -0
  110. package/dist/formwizard-DR7fa59M.js +1 -0
  111. package/dist/geofield-CxVFA0og.mjs +116 -0
  112. package/dist/geofield-DtN-d2Bq.js +1 -0
  113. package/dist/group-CiohorzN.mjs +30 -0
  114. package/dist/group-HQL7UqHt.js +1 -0
  115. package/dist/imagelist-CNe1Dp_M.mjs +23 -0
  116. package/dist/imagelist-Wm5Qa6wA.js +1 -0
  117. package/dist/index.d.ts +1 -0
  118. package/dist/intlphone-DwsiSfSt.js +1 -0
  119. package/dist/intlphone-LGE-cB6X.mjs +341 -0
  120. package/dist/keyvaluefield-B7NlE0AT.js +1 -0
  121. package/dist/keyvaluefield-Cd4NQf6d.mjs +128 -0
  122. package/dist/line-BGSi1tvf.js +1 -0
  123. package/dist/line-cK6taoCA.mjs +4 -0
  124. package/dist/lineitemlist-bmk7fEf9.mjs +169 -0
  125. package/dist/lineitemlist-mulPt3cO.js +1 -0
  126. package/dist/list-D5qW-7Xg.js +1 -0
  127. package/dist/list-xPNiijgm.mjs +20 -0
  128. package/dist/locationfield-DtWkxnX-.js +1 -0
  129. package/dist/locationfield-SPonkbMU.mjs +90 -0
  130. package/dist/markdowneditor-6lJQ5cEn.mjs +82 -0
  131. package/dist/markdowneditor-nPP0t2eK.js +2 -0
  132. package/dist/matrixfield-CUYoJCwi.js +1 -0
  133. package/dist/matrixfield-Jm9Yx0EP.mjs +119 -0
  134. package/dist/mixChart-CSq7pQqJ.mjs +49 -0
  135. package/dist/mixChart-DoehYa8V.js +1 -0
  136. package/dist/muiX-BHOKpogF.mjs +12 -0
  137. package/dist/muiX-CG_D1XQ2.js +1 -0
  138. package/dist/multitextbox-D-JUSnT7.js +1 -0
  139. package/dist/multitextbox-gUt8BmfQ.mjs +96 -0
  140. package/dist/npsscale-D_VtbpJi.js +1 -0
  141. package/dist/npsscale-LWe7yCxB.mjs +111 -0
  142. package/dist/numberstepper-BXXlSKT_.js +1 -0
  143. package/dist/numberstepper-K_JfJJtg.mjs +111 -0
  144. package/dist/pie-CueMspFX.js +1 -0
  145. package/dist/pie-DFO89j-z.mjs +4 -0
  146. package/dist/richtexteditor-BHM-8xe3.js +1 -0
  147. package/dist/richtexteditor-gmObNHZ7.mjs +178 -0
  148. package/dist/rolldown-runtime-5iZMYShA.js +1 -0
  149. package/dist/s3Upload-C3-wcrua.js +1 -0
  150. package/dist/s3Upload-HtE088XA.mjs +39 -0
  151. package/dist/signature-DjYfiNzq.js +3 -0
  152. package/dist/signature-HiL8FJ6C.mjs +1116 -0
  153. package/dist/stepper-cpOj2wWz.mjs +166 -0
  154. package/dist/stepper-zEfhqmbA.js +1 -0
  155. package/dist/summaryfield-BzrdvTVy.js +1 -0
  156. package/dist/summaryfield-DIQfJjjo.mjs +65 -0
  157. package/dist/tabs-DvPu-zDC.mjs +50 -0
  158. package/dist/tabs-xdkLXUCp.js +1 -0
  159. package/dist/tagsinput-B33m6GJ_.js +1 -0
  160. package/dist/tagsinput-CTBGuv0M.mjs +49 -0
  161. package/dist/useSyncedState-CzAO4D1o.mjs +17 -0
  162. package/dist/useSyncedState-DYNKkpDv.js +1 -0
  163. package/dist/useTextInput-Cm0_Ps2V.js +1 -0
  164. package/dist/useTextInput-Dr-ncTE8.mjs +1683 -0
  165. package/dist/useUpdateEffect-CNBo9hj8.js +1 -0
  166. package/dist/useUpdateEffect-CXAhttj7.mjs +14 -0
  167. package/dist/util/helper.d.ts +18 -1
  168. package/dist/util/muiVersion.d.ts +13 -0
  169. package/dist/util/stepperComponents.d.ts +1 -1
  170. package/dist/util/useSyncedState.d.ts +22 -0
  171. package/dist/util/validation.d.ts +40 -0
  172. package/dist/v4-Dyp-SQ1c.js +1 -0
  173. package/dist/v4-YCkfo8OR.mjs +27 -0
  174. package/dist/validation-B7DPZ218.js +7 -0
  175. package/dist/validation-BRcYhhsT.mjs +4991 -0
  176. package/package.json +35 -35
  177. package/dist/AIForm-D204ogdw.js +0 -44
  178. package/dist/AIForm-IafSvW2_.mjs +0 -12281
  179. package/dist/accordion-DA8VpkJ_.mjs +0 -23
  180. package/dist/accordion-yIxiSIl4.js +0 -1
  181. package/dist/addressfield-DCzPapIx.mjs +0 -164
  182. package/dist/addressfield-EFiWgeWB.js +0 -1
  183. package/dist/asyncautocomplete-5-8SXotM.mjs +0 -92
  184. package/dist/asyncautocomplete-BmHm-S4u.js +0 -1
  185. package/dist/bar-BvwjqB4v.mjs +0 -21
  186. package/dist/bar-DRjoPCtv.js +0 -1
  187. package/dist/cascadeselect-BEaoupK6.js +0 -1
  188. package/dist/cascadeselect-CzSf78Pg.mjs +0 -66
  189. package/dist/collection-CthMZ0Go.js +0 -1
  190. package/dist/collection-n9eBOioi.mjs +0 -1157
  191. package/dist/colorpicker-Bm9M38_c.mjs +0 -111
  192. package/dist/colorpicker-DHkdM8Q2.js +0 -1
  193. package/dist/consentfield-B2-UFm5n.mjs +0 -80
  194. package/dist/consentfield-DV8Gz0k9.js +0 -1
  195. package/dist/datatable-BVZFBd-8.mjs +0 -21
  196. package/dist/datatable-DnnyVWJm.js +0 -1
  197. package/dist/editabletable-B_JS4UZ9.js +0 -1
  198. package/dist/editabletable-BwvIvAt7.mjs +0 -128
  199. package/dist/fileupload-BHT7K0YT.mjs +0 -185
  200. package/dist/fileupload-CugVG3o3.js +0 -1
  201. package/dist/formrepeater-CaJMPo3Q.mjs +0 -75
  202. package/dist/formrepeater-DiKPaOfi.js +0 -1
  203. package/dist/formwizard-BzvdbvBY.js +0 -1
  204. package/dist/formwizard-C9fOIHQv.mjs +0 -83
  205. package/dist/geofield-BM4b5Zwx.js +0 -1
  206. package/dist/geofield-DYXx9K9o.mjs +0 -108
  207. package/dist/group-D5fMqJTx.mjs +0 -23
  208. package/dist/group-mwS8FSGJ.js +0 -1
  209. package/dist/imagelist-Bn9QhIv7.js +0 -1
  210. package/dist/imagelist-rqmJajHt.mjs +0 -18
  211. package/dist/intlphone-BQYytFWy.js +0 -1
  212. package/dist/intlphone-DHDwdBbm.mjs +0 -144
  213. package/dist/keyvaluefield-DM0eSfPF.mjs +0 -127
  214. package/dist/keyvaluefield-DXyuqDba.js +0 -1
  215. package/dist/line-Dst2QjuI.mjs +0 -21
  216. package/dist/line-hM3OgPH7.js +0 -1
  217. package/dist/lineitemlist-89hrdS0p.mjs +0 -170
  218. package/dist/lineitemlist-DfEjbNCH.js +0 -1
  219. package/dist/list-B8S2MrOx.js +0 -1
  220. package/dist/list-C97cCc78.mjs +0 -20
  221. package/dist/locationfield-BEMe22_x.mjs +0 -118
  222. package/dist/locationfield-DlgLvvdU.js +0 -1
  223. package/dist/markdowneditor-JoiWE-qO.js +0 -2
  224. package/dist/markdowneditor-K4TAKJ3s.mjs +0 -94
  225. package/dist/matrixfield-D4sHu6rU.mjs +0 -121
  226. package/dist/matrixfield-szah6uOP.js +0 -1
  227. package/dist/mixChart-Doq4lt7Z.mjs +0 -75
  228. package/dist/mixChart-rgyMCdnp.js +0 -1
  229. package/dist/multitextbox-CBChuyw9.js +0 -1
  230. package/dist/multitextbox-Cnrwie5U.mjs +0 -78
  231. package/dist/npsscale-Cc2eD9Nk.js +0 -1
  232. package/dist/npsscale-DgQPa1eH.mjs +0 -91
  233. package/dist/numberstepper-BcuSZHwZ.js +0 -1
  234. package/dist/numberstepper-BqINnIm7.mjs +0 -132
  235. package/dist/pie-B6dXjc4o.mjs +0 -21
  236. package/dist/pie-a_dhmBUq.js +0 -1
  237. package/dist/richtexteditor-Bs5-VQj3.js +0 -1
  238. package/dist/richtexteditor-CveBdsmJ.mjs +0 -143
  239. package/dist/s3Upload-B0JeoLkS.js +0 -1
  240. package/dist/s3Upload-dpioZ2c8.mjs +0 -51
  241. package/dist/signature-BRWAWqeA.mjs +0 -1227
  242. package/dist/signature-Bj9GDrvy.js +0 -2
  243. package/dist/stepper-B9sSsbQD.js +0 -1
  244. package/dist/stepper-DTMAP67o.mjs +0 -140
  245. package/dist/summaryfield-JKL3ZLl2.js +0 -1
  246. package/dist/summaryfield-xhr0Q4RL.mjs +0 -96
  247. package/dist/tabs-ClkmKlV8.mjs +0 -39
  248. package/dist/tabs-DmEP_QW0.js +0 -1
  249. package/dist/tagsinput-B0yVrYgB.mjs +0 -58
  250. package/dist/tagsinput-COKkxIxg.js +0 -1
  251. package/dist/v4-BysszJq8.mjs +0 -30
  252. package/dist/v4-CqdK_b8Y.js +0 -1
@@ -0,0 +1,341 @@
1
+ import { r as e } from "./validation-BRcYhhsT.mjs";
2
+ import { B as t, R as n, U as r } from "./ai-UvDYQ30b.mjs";
3
+ import { n as i } from "./useSyncedState-CzAO4D1o.mjs";
4
+ import "react";
5
+ import { jsx as a, jsxs as o } from "react/jsx-runtime";
6
+ import s from "@mui/material/TextField";
7
+ import c from "@mui/material/FormControl";
8
+ import l from "@mui/material/FormLabel";
9
+ import u from "@mui/material/Stack";
10
+ import d from "@mui/material/MenuItem";
11
+ // src/components/controls/IntlPhone/intlphone.tsx
12
+ var f = [
13
+ {
14
+ code: "US",
15
+ name: "United States",
16
+ dial: "+1",
17
+ flag: "🇺🇸"
18
+ },
19
+ {
20
+ code: "GB",
21
+ name: "United Kingdom",
22
+ dial: "+44",
23
+ flag: "🇬🇧"
24
+ },
25
+ {
26
+ code: "IN",
27
+ name: "India",
28
+ dial: "+91",
29
+ flag: "🇮🇳"
30
+ },
31
+ {
32
+ code: "CA",
33
+ name: "Canada",
34
+ dial: "+1",
35
+ flag: "🇨🇦"
36
+ },
37
+ {
38
+ code: "AU",
39
+ name: "Australia",
40
+ dial: "+61",
41
+ flag: "🇦🇺"
42
+ },
43
+ {
44
+ code: "DE",
45
+ name: "Germany",
46
+ dial: "+49",
47
+ flag: "🇩🇪"
48
+ },
49
+ {
50
+ code: "FR",
51
+ name: "France",
52
+ dial: "+33",
53
+ flag: "🇫🇷"
54
+ },
55
+ {
56
+ code: "IT",
57
+ name: "Italy",
58
+ dial: "+39",
59
+ flag: "🇮🇹"
60
+ },
61
+ {
62
+ code: "ES",
63
+ name: "Spain",
64
+ dial: "+34",
65
+ flag: "🇪🇸"
66
+ },
67
+ {
68
+ code: "BR",
69
+ name: "Brazil",
70
+ dial: "+55",
71
+ flag: "🇧🇷"
72
+ },
73
+ {
74
+ code: "MX",
75
+ name: "Mexico",
76
+ dial: "+52",
77
+ flag: "🇲🇽"
78
+ },
79
+ {
80
+ code: "JP",
81
+ name: "Japan",
82
+ dial: "+81",
83
+ flag: "🇯🇵"
84
+ },
85
+ {
86
+ code: "CN",
87
+ name: "China",
88
+ dial: "+86",
89
+ flag: "🇨🇳"
90
+ },
91
+ {
92
+ code: "RU",
93
+ name: "Russia",
94
+ dial: "+7",
95
+ flag: "🇷🇺"
96
+ },
97
+ {
98
+ code: "ZA",
99
+ name: "South Africa",
100
+ dial: "+27",
101
+ flag: "🇿🇦"
102
+ },
103
+ {
104
+ code: "NG",
105
+ name: "Nigeria",
106
+ dial: "+234",
107
+ flag: "🇳🇬"
108
+ },
109
+ {
110
+ code: "KE",
111
+ name: "Kenya",
112
+ dial: "+254",
113
+ flag: "🇰🇪"
114
+ },
115
+ {
116
+ code: "AE",
117
+ name: "United Arab Emirates",
118
+ dial: "+971",
119
+ flag: "🇦🇪"
120
+ },
121
+ {
122
+ code: "SA",
123
+ name: "Saudi Arabia",
124
+ dial: "+966",
125
+ flag: "🇸🇦"
126
+ },
127
+ {
128
+ code: "SG",
129
+ name: "Singapore",
130
+ dial: "+65",
131
+ flag: "🇸🇬"
132
+ },
133
+ {
134
+ code: "MY",
135
+ name: "Malaysia",
136
+ dial: "+60",
137
+ flag: "🇲🇾"
138
+ },
139
+ {
140
+ code: "ID",
141
+ name: "Indonesia",
142
+ dial: "+62",
143
+ flag: "🇮🇩"
144
+ },
145
+ {
146
+ code: "PH",
147
+ name: "Philippines",
148
+ dial: "+63",
149
+ flag: "🇵🇭"
150
+ },
151
+ {
152
+ code: "TH",
153
+ name: "Thailand",
154
+ dial: "+66",
155
+ flag: "🇹🇭"
156
+ },
157
+ {
158
+ code: "VN",
159
+ name: "Vietnam",
160
+ dial: "+84",
161
+ flag: "🇻🇳"
162
+ },
163
+ {
164
+ code: "KR",
165
+ name: "South Korea",
166
+ dial: "+82",
167
+ flag: "🇰🇷"
168
+ },
169
+ {
170
+ code: "NZ",
171
+ name: "New Zealand",
172
+ dial: "+64",
173
+ flag: "🇳🇿"
174
+ },
175
+ {
176
+ code: "IE",
177
+ name: "Ireland",
178
+ dial: "+353",
179
+ flag: "🇮🇪"
180
+ },
181
+ {
182
+ code: "NL",
183
+ name: "Netherlands",
184
+ dial: "+31",
185
+ flag: "🇳🇱"
186
+ },
187
+ {
188
+ code: "SE",
189
+ name: "Sweden",
190
+ dial: "+46",
191
+ flag: "🇸🇪"
192
+ },
193
+ {
194
+ code: "NO",
195
+ name: "Norway",
196
+ dial: "+47",
197
+ flag: "🇳🇴"
198
+ },
199
+ {
200
+ code: "DK",
201
+ name: "Denmark",
202
+ dial: "+45",
203
+ flag: "🇩🇰"
204
+ },
205
+ {
206
+ code: "CH",
207
+ name: "Switzerland",
208
+ dial: "+41",
209
+ flag: "🇨🇭"
210
+ },
211
+ {
212
+ code: "PL",
213
+ name: "Poland",
214
+ dial: "+48",
215
+ flag: "🇵🇱"
216
+ },
217
+ {
218
+ code: "PT",
219
+ name: "Portugal",
220
+ dial: "+351",
221
+ flag: "🇵🇹"
222
+ },
223
+ {
224
+ code: "GR",
225
+ name: "Greece",
226
+ dial: "+30",
227
+ flag: "🇬🇷"
228
+ },
229
+ {
230
+ code: "TR",
231
+ name: "Turkey",
232
+ dial: "+90",
233
+ flag: "🇹🇷"
234
+ },
235
+ {
236
+ code: "EG",
237
+ name: "Egypt",
238
+ dial: "+20",
239
+ flag: "🇪🇬"
240
+ },
241
+ {
242
+ code: "AR",
243
+ name: "Argentina",
244
+ dial: "+54",
245
+ flag: "🇦🇷"
246
+ },
247
+ {
248
+ code: "CL",
249
+ name: "Chile",
250
+ dial: "+56",
251
+ flag: "🇨🇱"
252
+ }
253
+ ];
254
+ function p(e, t) {
255
+ if (typeof e == "string" && e.trim()) {
256
+ let t = [...f].sort((e, t) => t.dial.length - e.dial.length).find((t) => e.startsWith(t.dial));
257
+ if (t) return {
258
+ code: t.code,
259
+ number: e.slice(t.dial.length).trim()
260
+ };
261
+ }
262
+ return {
263
+ code: t,
264
+ number: ""
265
+ };
266
+ }
267
+ function m({ attributes: m = {}, rules: h = {}, onChange: g }) {
268
+ let { id: _ = "", defaultCountry: v = "US", label: y, MuiAttributes: b = {} } = m, { sx: x, ...S } = b, C = f.some((e) => e.code === v) ? v : "US", [w, T] = i(() => p(m.value, C).code, [m.value]), [E, D] = i(() => p(m.value, C).number, [m.value]), O = e(h), k = (e, t) => {
269
+ let n = f.find((t) => t.code === e) || f[0];
270
+ g?.({
271
+ id: _,
272
+ value: `${n.dial} ${t}`.trim(),
273
+ option: {
274
+ country: n.code,
275
+ dial: n.dial,
276
+ number: t
277
+ }
278
+ });
279
+ }, A = (e) => {
280
+ let t = e.target.value;
281
+ T(t), k(t, E);
282
+ }, j = (e) => {
283
+ D(e.value), k(w, e.value);
284
+ };
285
+ return /* @__PURE__ */ o(c, {
286
+ component: "fieldset",
287
+ fullWidth: !0,
288
+ children: [y && /* @__PURE__ */ a(l, {
289
+ component: "legend",
290
+ required: O,
291
+ sx: { mb: 1 },
292
+ children: y
293
+ }), /* @__PURE__ */ o(u, {
294
+ direction: "row",
295
+ spacing: 1,
296
+ sx: { alignItems: "flex-start" },
297
+ children: [/* @__PURE__ */ a(s, {
298
+ select: !0,
299
+ value: w,
300
+ onChange: A,
301
+ size: "small",
302
+ label: "Country",
303
+ "aria-label": "Country dial code",
304
+ sx: t(r, {
305
+ minWidth: 120,
306
+ flexShrink: 0,
307
+ ...x
308
+ }),
309
+ slotProps: { select: { renderValue: (e) => {
310
+ let t = f.find((t) => t.code === e) || f[0];
311
+ return `${t.flag} ${t.dial}`;
312
+ } } },
313
+ children: f.map((e) => /* @__PURE__ */ o(d, {
314
+ value: e.code,
315
+ children: [
316
+ e.flag,
317
+ " ",
318
+ e.name,
319
+ " (",
320
+ e.dial,
321
+ ")"
322
+ ]
323
+ }, e.code))
324
+ }), /* @__PURE__ */ a(n, {
325
+ customInput: s,
326
+ format: "### ### ####",
327
+ mask: "_",
328
+ value: E,
329
+ onValueChange: j,
330
+ fullWidth: !0,
331
+ required: O,
332
+ label: "Phone number",
333
+ id: _,
334
+ name: "intlphone",
335
+ ...S,
336
+ sx: t(r, x)
337
+ })]
338
+ })]
339
+ });
340
+ }
341
+ export { m as default };
@@ -0,0 +1 @@
1
+ const e=require("./rolldown-runtime-5iZMYShA.js"),t=require("./ai-BFpA3uHx.js"),n=require("./validation-B7DPZ218.js"),r=require("./useUpdateEffect-CNBo9hj8.js");let i=require("react");i=e.n(i);let a=require("react/jsx-runtime"),o=require("@mui/material/TextField");o=e.n(o);let s=require("@mui/material/FormControl");s=e.n(s);let c=require("@mui/material/FormHelperText");c=e.n(c);let l=require("@mui/material/FormLabel");l=e.n(l);let u=require("@mui/material/Button");u=e.n(u);let d=require("@mui/material/Stack");d=e.n(d);let f=require("@mui/material/IconButton");f=e.n(f);let p=require("@mui/icons-material/Add");p=e.n(p);let m=require("@mui/icons-material/Close");m=e.n(m);function h(e){return Array.isArray(e)?e.map(e=>({key:e?.key??``,value:e?.value??``})):e&&typeof e==`object`?Object.keys(e).map(t=>({key:t,value:String(e[t]??``)})):[]}function g(e){let t={};return e.forEach(e=>{e.key!==``&&(t[e.key]=e.value)}),t}function _({attributes:e={},rules:_={},onChange:v}){let{MuiAttributes:y={},id:b=``,keyLabel:x=`Key`,valueLabel:S=`Value`,label:C}=e,{sx:w,...T}=y,[E,D]=i.default.useState(()=>h(e.value)),O=n.r(_),k=i.default.useRef(JSON.stringify(g(h(e.value))));r.t(()=>{let t=JSON.stringify(g(h(e.value)));t!==k.current&&(k.current=t,D(h(e.value)))},[e.value]);let A=e=>{let t=g(e);k.current=JSON.stringify(t),v?.({id:b,value:t,option:e})},j=(e,t,n)=>{let r=E.map((r,i)=>i===e?{...r,[t]:n}:r);D(r),A(r)},M=()=>{let e=[...E,{key:``,value:``}];D(e),A(e)},N=e=>{let t=E.filter((t,n)=>n!==e);D(t),A(t)},P=O&&E.filter(e=>e.key!==``).length===0;return(0,a.jsxs)(s.default,{component:`fieldset`,error:P,fullWidth:!0,children:[C&&(0,a.jsx)(l.default,{component:`legend`,required:O,sx:{mb:1},children:C}),(0,a.jsx)(d.default,{spacing:1.25,children:E.map((e,n)=>(0,a.jsxs)(d.default,{direction:`row`,spacing:1,sx:{alignItems:`center`},children:[(0,a.jsx)(o.default,{...T,label:x,value:e.key,onChange:e=>j(n,`key`,e.target.value),size:`small`,fullWidth:!0,sx:t.B(t.U,w)}),(0,a.jsx)(o.default,{...T,label:S,value:e.value,onChange:e=>j(n,`value`,e.target.value),size:`small`,fullWidth:!0,sx:t.B(t.U,w)}),(0,a.jsx)(f.default,{"aria-label":`Remove ${e.key||`row`}`,onClick:()=>N(n),size:`small`,sx:{borderRadius:2,color:`text.secondary`,"&:hover":{color:`error.main`}},children:(0,a.jsx)(m.default,{fontSize:`small`})})]},n))}),(0,a.jsx)(u.default,{onClick:M,startIcon:(0,a.jsx)(p.default,{}),size:`small`,variant:`text`,sx:{alignSelf:`flex-start`,mt:1,borderRadius:2,textTransform:`none`,fontWeight:600},children:`Add`}),P&&(0,a.jsx)(c.default,{children:_?.validation?.find(e=>e.rule===`mandatory`||e.rule===`mandatoryselect`)?.message||`At least one entry is required`})]})}exports.default=_;
@@ -0,0 +1,128 @@
1
+ import { r as e } from "./validation-BRcYhhsT.mjs";
2
+ import { B as t, U as n } from "./ai-UvDYQ30b.mjs";
3
+ import { t as r } from "./useUpdateEffect-CXAhttj7.mjs";
4
+ import i from "react";
5
+ import { jsx as a, jsxs as o } from "react/jsx-runtime";
6
+ import s from "@mui/material/TextField";
7
+ import c from "@mui/material/FormControl";
8
+ import l from "@mui/material/FormHelperText";
9
+ import u from "@mui/material/FormLabel";
10
+ import d from "@mui/material/Button";
11
+ import f from "@mui/material/Stack";
12
+ import p from "@mui/material/IconButton";
13
+ import m from "@mui/icons-material/Add";
14
+ import h from "@mui/icons-material/Close";
15
+ // src/components/controls/KeyValueField/keyvaluefield.tsx
16
+ function g(e) {
17
+ return Array.isArray(e) ? e.map((e) => ({
18
+ key: e?.key ?? "",
19
+ value: e?.value ?? ""
20
+ })) : e && typeof e == "object" ? Object.keys(e).map((t) => ({
21
+ key: t,
22
+ value: String(e[t] ?? "")
23
+ })) : [];
24
+ }
25
+ function _(e) {
26
+ let t = {};
27
+ return e.forEach((e) => {
28
+ e.key !== "" && (t[e.key] = e.value);
29
+ }), t;
30
+ }
31
+ function v({ attributes: v = {}, rules: y = {}, onChange: b }) {
32
+ let { MuiAttributes: x = {}, id: S = "", keyLabel: C = "Key", valueLabel: w = "Value", label: T } = v, { sx: E, ...D } = x, [O, k] = i.useState(() => g(v.value)), A = e(y), j = i.useRef(JSON.stringify(_(g(v.value))));
33
+ r(() => {
34
+ let e = JSON.stringify(_(g(v.value)));
35
+ e !== j.current && (j.current = e, k(g(v.value)));
36
+ }, [v.value]);
37
+ let M = (e) => {
38
+ let t = _(e);
39
+ j.current = JSON.stringify(t), b?.({
40
+ id: S,
41
+ value: t,
42
+ option: e
43
+ });
44
+ }, N = (e, t, n) => {
45
+ let r = O.map((r, i) => i === e ? {
46
+ ...r,
47
+ [t]: n
48
+ } : r);
49
+ k(r), M(r);
50
+ }, P = () => {
51
+ let e = [...O, {
52
+ key: "",
53
+ value: ""
54
+ }];
55
+ k(e), M(e);
56
+ }, F = (e) => {
57
+ let t = O.filter((t, n) => n !== e);
58
+ k(t), M(t);
59
+ }, I = A && O.filter((e) => e.key !== "").length === 0;
60
+ return /* @__PURE__ */ o(c, {
61
+ component: "fieldset",
62
+ error: I,
63
+ fullWidth: !0,
64
+ children: [
65
+ T && /* @__PURE__ */ a(u, {
66
+ component: "legend",
67
+ required: A,
68
+ sx: { mb: 1 },
69
+ children: T
70
+ }),
71
+ /* @__PURE__ */ a(f, {
72
+ spacing: 1.25,
73
+ children: O.map((e, r) => /* @__PURE__ */ o(f, {
74
+ direction: "row",
75
+ spacing: 1,
76
+ sx: { alignItems: "center" },
77
+ children: [
78
+ /* @__PURE__ */ a(s, {
79
+ ...D,
80
+ label: C,
81
+ value: e.key,
82
+ onChange: (e) => N(r, "key", e.target.value),
83
+ size: "small",
84
+ fullWidth: !0,
85
+ sx: t(n, E)
86
+ }),
87
+ /* @__PURE__ */ a(s, {
88
+ ...D,
89
+ label: w,
90
+ value: e.value,
91
+ onChange: (e) => N(r, "value", e.target.value),
92
+ size: "small",
93
+ fullWidth: !0,
94
+ sx: t(n, E)
95
+ }),
96
+ /* @__PURE__ */ a(p, {
97
+ "aria-label": `Remove ${e.key || "row"}`,
98
+ onClick: () => F(r),
99
+ size: "small",
100
+ sx: {
101
+ borderRadius: 2,
102
+ color: "text.secondary",
103
+ "&:hover": { color: "error.main" }
104
+ },
105
+ children: /* @__PURE__ */ a(h, { fontSize: "small" })
106
+ })
107
+ ]
108
+ }, r))
109
+ }),
110
+ /* @__PURE__ */ a(d, {
111
+ onClick: P,
112
+ startIcon: /* @__PURE__ */ a(m, {}),
113
+ size: "small",
114
+ variant: "text",
115
+ sx: {
116
+ alignSelf: "flex-start",
117
+ mt: 1,
118
+ borderRadius: 2,
119
+ textTransform: "none",
120
+ fontWeight: 600
121
+ },
122
+ children: "Add"
123
+ }),
124
+ I && /* @__PURE__ */ a(l, { children: y?.validation?.find((e) => e.rule === "mandatory" || e.rule === "mandatoryselect")?.message || "At least one entry is required" })
125
+ ]
126
+ });
127
+ }
128
+ export { v as default };
@@ -0,0 +1 @@
1
+ var e=require("./chartControl-ifHiG3nr.js").n(`LineChart`,()=>import(`@mui/x-charts/LineChart`).then(e=>({default:e.LineChart})),`Line`);exports.default=e;
@@ -0,0 +1,4 @@
1
+ import { n as e } from "./chartControl-IQafKpDk.mjs";
2
+ // src/components/charts/Line/line.tsx
3
+ var t = e("LineChart", () => import("@mui/x-charts/LineChart").then((e) => ({ default: e.LineChart })), "Line");
4
+ export { t as default };
@@ -0,0 +1,169 @@
1
+ import { r as e } from "./validation-BRcYhhsT.mjs";
2
+ import { n as t, t as n } from "./useSyncedState-CzAO4D1o.mjs";
3
+ import { useEffect as r } from "react";
4
+ import { Box as i, Button as a, Icon as o, IconButton as s, InputAdornment as c, Stack as l, TextField as u, Typography as d } from "@mui/material";
5
+ import { jsx as f, jsxs as p } from "react/jsx-runtime";
6
+ // src/components/controls/LineItemList/lineitemlist.tsx
7
+ function m(e, t) {
8
+ if (Array.isArray(e) && e.length > 0) {
9
+ let t = e[0], n = Object.keys(t).find((e) => e !== "fee");
10
+ if (n) return n.replace(/\d+$/, "");
11
+ }
12
+ return t;
13
+ }
14
+ function h(e, t) {
15
+ return Array.isArray(e) && e.length > 0 ? e.map((e, n) => {
16
+ let { fee: r = 0, ...i } = e, a = Object.keys(i)[0] || `${t}${n + 1}`;
17
+ return {
18
+ key: a,
19
+ description: String(i[a] ?? ""),
20
+ fee: Number(r) || 0
21
+ };
22
+ }) : [{
23
+ key: `${t}1`,
24
+ description: "",
25
+ fee: 0
26
+ }];
27
+ }
28
+ function g(e) {
29
+ return e.map((e) => ({
30
+ fee: e.fee,
31
+ [e.key]: e.description
32
+ }));
33
+ }
34
+ function _({ attributes: _ = {}, rules: v = {}, onChange: y }) {
35
+ let { id: b = "", keyPrefix: x = "item", showRowBadge: S = !0, readOnly: C = !1, showActions: w = !0, MuiAttributes: T = {} } = _, E = w && !C, { row: D = {}, rowBadge: O = {}, description: k = {}, fee: A = {}, addButton: j = {}, removeButton: M = {} } = T, N = e(v), P = m(_.value, x), [F, I] = t((e) => {
36
+ let t = h(_.value, m(_.value, x));
37
+ return JSON.stringify(t) === JSON.stringify(e) ? n : t;
38
+ }, [_.value], () => h(_.value, P));
39
+ r(() => {
40
+ y && y({
41
+ id: b,
42
+ value: g(F)
43
+ });
44
+ }, [F, b]);
45
+ let L = () => {
46
+ let e = F.length + 1;
47
+ I([...F, {
48
+ key: `${P}${e}`,
49
+ description: "",
50
+ fee: 0
51
+ }]);
52
+ }, R = (e) => {
53
+ let t = F.filter((t, n) => n !== e).map((e, t) => ({
54
+ ...e,
55
+ key: `${P}${t + 1}`
56
+ }));
57
+ I(t);
58
+ }, z = (e, t) => {
59
+ let n = [...F];
60
+ n[e] = {
61
+ ...n[e],
62
+ description: t
63
+ }, I(n);
64
+ }, B = (e, t) => {
65
+ let n = [...F];
66
+ n[e] = {
67
+ ...n[e],
68
+ fee: Number(t) || 0
69
+ }, I(n);
70
+ };
71
+ return /* @__PURE__ */ f(l, {
72
+ spacing: 1.5,
73
+ sx: { width: "100%" },
74
+ children: F.map((e, t) => /* @__PURE__ */ p(i, {
75
+ sx: {
76
+ display: "flex",
77
+ gap: 1,
78
+ alignItems: "flex-start",
79
+ p: 1.5,
80
+ border: "1px solid",
81
+ borderColor: "divider",
82
+ borderRadius: 1,
83
+ backgroundColor: "background.paper"
84
+ },
85
+ ...D,
86
+ children: [
87
+ S && /* @__PURE__ */ f(d, {
88
+ variant: "caption",
89
+ sx: {
90
+ minWidth: 24,
91
+ height: 24,
92
+ borderRadius: "50%",
93
+ backgroundColor: "primary.main",
94
+ color: "primary.contrastText",
95
+ display: "flex",
96
+ alignItems: "center",
97
+ justifyContent: "center",
98
+ fontWeight: 700,
99
+ flexShrink: 0,
100
+ mt: .75
101
+ },
102
+ ...O,
103
+ children: t + 1
104
+ }),
105
+ /* @__PURE__ */ f(u, {
106
+ fullWidth: !0,
107
+ size: "small",
108
+ label: "Description",
109
+ required: N,
110
+ error: N && !e.description,
111
+ helperText: N && !e.description ? "Required" : "",
112
+ value: e.description,
113
+ onChange: (e) => z(t, e.target.value),
114
+ ...k,
115
+ slotProps: { input: { readOnly: C } }
116
+ }),
117
+ /* @__PURE__ */ f(u, {
118
+ size: "small",
119
+ label: "Fee",
120
+ type: "number",
121
+ sx: { minWidth: 120 },
122
+ required: N,
123
+ value: e.fee,
124
+ onChange: (e) => B(t, e.target.value),
125
+ onWheel: (e) => e.target.blur(),
126
+ ...A,
127
+ slotProps: {
128
+ input: {
129
+ readOnly: C,
130
+ startAdornment: /* @__PURE__ */ f(c, {
131
+ position: "start",
132
+ children: "$"
133
+ })
134
+ },
135
+ htmlInput: {
136
+ min: 0,
137
+ step: .01
138
+ }
139
+ }
140
+ }),
141
+ E && (t === F.length - 1 ? /* @__PURE__ */ f(a, {
142
+ variant: "contained",
143
+ color: "primary",
144
+ onClick: L,
145
+ sx: {
146
+ minWidth: 40,
147
+ px: 1,
148
+ height: 40,
149
+ flexShrink: 0
150
+ },
151
+ title: "Add row",
152
+ ...j,
153
+ children: /* @__PURE__ */ f(o, { children: "add" })
154
+ }) : /* @__PURE__ */ f(s, {
155
+ color: "error",
156
+ onClick: () => R(t),
157
+ sx: {
158
+ height: 40,
159
+ flexShrink: 0
160
+ },
161
+ title: "Remove row",
162
+ ...M,
163
+ children: /* @__PURE__ */ f(o, { children: "delete" })
164
+ }))
165
+ ]
166
+ }, e.key))
167
+ });
168
+ }
169
+ export { _ as default };
@@ -0,0 +1 @@
1
+ const e=require("./validation-B7DPZ218.js"),t=require("./useSyncedState-DYNKkpDv.js");let n=require("react"),r=require("@mui/material"),i=require("react/jsx-runtime");function a(e,t){if(Array.isArray(e)&&e.length>0){let t=e[0],n=Object.keys(t).find(e=>e!==`fee`);if(n)return n.replace(/\d+$/,``)}return t}function o(e,t){return Array.isArray(e)&&e.length>0?e.map((e,n)=>{let{fee:r=0,...i}=e,a=Object.keys(i)[0]||`${t}${n+1}`;return{key:a,description:String(i[a]??``),fee:Number(r)||0}}):[{key:`${t}1`,description:``,fee:0}]}function s(e){return e.map(e=>({fee:e.fee,[e.key]:e.description}))}function c({attributes:c={},rules:l={},onChange:u}){let{id:d=``,keyPrefix:f=`item`,showRowBadge:p=!0,readOnly:m=!1,showActions:h=!0,MuiAttributes:g={}}=c,_=h&&!m,{row:v={},rowBadge:y={},description:b={},fee:x={},addButton:S={},removeButton:C={}}=g,w=e.r(l),T=a(c.value,f),[E,D]=t.n(e=>{let n=o(c.value,a(c.value,f));return JSON.stringify(n)===JSON.stringify(e)?t.t:n},[c.value],()=>o(c.value,T));(0,n.useEffect)(()=>{u&&u({id:d,value:s(E)})},[E,d]);let O=()=>{let e=E.length+1;D([...E,{key:`${T}${e}`,description:``,fee:0}])},k=e=>{let t=E.filter((t,n)=>n!==e).map((e,t)=>({...e,key:`${T}${t+1}`}));D(t)},A=(e,t)=>{let n=[...E];n[e]={...n[e],description:t},D(n)},j=(e,t)=>{let n=[...E];n[e]={...n[e],fee:Number(t)||0},D(n)};return(0,i.jsx)(r.Stack,{spacing:1.5,sx:{width:`100%`},children:E.map((e,t)=>(0,i.jsxs)(r.Box,{sx:{display:`flex`,gap:1,alignItems:`flex-start`,p:1.5,border:`1px solid`,borderColor:`divider`,borderRadius:1,backgroundColor:`background.paper`},...v,children:[p&&(0,i.jsx)(r.Typography,{variant:`caption`,sx:{minWidth:24,height:24,borderRadius:`50%`,backgroundColor:`primary.main`,color:`primary.contrastText`,display:`flex`,alignItems:`center`,justifyContent:`center`,fontWeight:700,flexShrink:0,mt:.75},...y,children:t+1}),(0,i.jsx)(r.TextField,{fullWidth:!0,size:`small`,label:`Description`,required:w,error:w&&!e.description,helperText:w&&!e.description?`Required`:``,value:e.description,onChange:e=>A(t,e.target.value),...b,slotProps:{input:{readOnly:m}}}),(0,i.jsx)(r.TextField,{size:`small`,label:`Fee`,type:`number`,sx:{minWidth:120},required:w,value:e.fee,onChange:e=>j(t,e.target.value),onWheel:e=>e.target.blur(),...x,slotProps:{input:{readOnly:m,startAdornment:(0,i.jsx)(r.InputAdornment,{position:`start`,children:`$`})},htmlInput:{min:0,step:.01}}}),_&&(t===E.length-1?(0,i.jsx)(r.Button,{variant:`contained`,color:`primary`,onClick:O,sx:{minWidth:40,px:1,height:40,flexShrink:0},title:`Add row`,...S,children:(0,i.jsx)(r.Icon,{children:`add`})}):(0,i.jsx)(r.IconButton,{color:`error`,onClick:()=>k(t),sx:{height:40,flexShrink:0},title:`Remove row`,...C,children:(0,i.jsx)(r.Icon,{children:`delete`})}))]},e.key))})}exports.default=c;
@@ -0,0 +1 @@
1
+ const e=require("./ai-BFpA3uHx.js");let t=require("@mui/material"),n=require("react/jsx-runtime");function r({attributes:r={}}){let{MuiAttributes:i={},items:a=[]}=r,{sx:o,...s}=i;return(0,n.jsx)(t.List,{...s,sx:e.B(e.W,o),children:(Array.isArray(a)?a:[]).map((e,r)=>(0,n.jsxs)(t.ListItem,{...e.MuiListItemAttributes,children:[e.icon&&(0,n.jsx)(t.ListItemIcon,{children:(0,n.jsx)(t.Icon,{children:e.icon})}),(0,n.jsx)(t.ListItemText,{primary:e.primary,secondary:e.secondary,...e.MuiListItemTextAttributes})]},r))})}exports.default=r;
@@ -0,0 +1,20 @@
1
+ import { B as e, W as t } from "./ai-UvDYQ30b.mjs";
2
+ import { Icon as n, List as r, ListItem as i, ListItemIcon as a, ListItemText as o } from "@mui/material";
3
+ import { jsx as s, jsxs as c } from "react/jsx-runtime";
4
+ // src/components/controls/List/list.tsx
5
+ function l({ attributes: l = {} }) {
6
+ let { MuiAttributes: u = {}, items: d = [] } = l, { sx: f, ...p } = u;
7
+ return /* @__PURE__ */ s(r, {
8
+ ...p,
9
+ sx: e(t, f),
10
+ children: (Array.isArray(d) ? d : []).map((e, t) => /* @__PURE__ */ c(i, {
11
+ ...e.MuiListItemAttributes,
12
+ children: [e.icon && /* @__PURE__ */ s(a, { children: /* @__PURE__ */ s(n, { children: e.icon }) }), /* @__PURE__ */ s(o, {
13
+ primary: e.primary,
14
+ secondary: e.secondary,
15
+ ...e.MuiListItemTextAttributes
16
+ })]
17
+ }, t))
18
+ });
19
+ }
20
+ export { l as default };
@@ -0,0 +1 @@
1
+ const e=require("./rolldown-runtime-5iZMYShA.js"),t=require("./useTextInput-Cm0_Ps2V.js"),n=require("./validation-B7DPZ218.js");let r=require("@mui/material"),i=require("react/jsx-runtime"),a=require("@mui/material/TextField");a=e.n(a);let o=require("@mui/material/Box");o=e.n(o);let s=require("@mui/material/Button");s=e.n(s);function c({attributes:e={},rules:c={},onChange:l,submitTick:u,messages:d}){let{id:f=``,MuiAttributes:p={},InputProps:m={},buttonText:h=`Update Location`,buttonIcon:g=`location_on`,buttonDisplay:_=`both`,MuiButtonAttributes:v={},disabled:y=!1}=e,{textData:b,handleOnChange:x,handleOnBlur:S}=t.t({attributes:e,rules:c,onChange:l,submitTick:u,messages:d}),C=()=>{l&&l({id:f,value:b.value,option:`location_update_request`})},w=()=>{let e=_,t=(0,i.jsx)(r.Icon,{children:g});switch(e){case`icon`:return t;case`text`:return(0,i.jsx)(i.Fragment,{children:h});default:return(0,i.jsxs)(i.Fragment,{children:[t,(0,i.jsx)(o.default,{component:`span`,sx:{ml:.5},children:h})]})}},T=n.r(c),E={...p},D=p.inputProps||p.slotProps?.htmlInput||{},O={...p.InputProps||p.slotProps?.input||{},...t.s(m)},k={...p.slotProps||{},input:O,htmlInput:D};delete E.slotProps,delete E.inputProps,delete E.InputProps;let A=p.variant||`outlined`,j=p.size||`medium`,M=j===`small`?A===`outlined`?40:48:56;return(0,i.jsxs)(o.default,{sx:{display:`flex`,gap:1,alignItems:`flex-start`,width:`100%`},children:[(0,i.jsx)(o.default,{sx:{flex:1,minWidth:0},children:(0,i.jsx)(a.default,{fullWidth:!0,...E,id:f,required:T,slotProps:k,...t.r?{inputProps:D,InputProps:O}:{},onChange:x,onBlur:S,value:b.value,error:b.error,helperText:b.helperText,disabled:y})}),(0,i.jsx)(s.default,{variant:`outlined`,color:`primary`,size:j===`small`?`small`:`medium`,onClick:C,disabled:y,...v,sx:{whiteSpace:`nowrap`,minWidth:`auto`,height:M,flexShrink:0,...v?.sx},children:w()})]})}exports.default=c;