@helsenorge/designsystem-react 5.4.0 → 6.0.0-beta.10

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 (1838) hide show
  1. package/CHANGELOG.md +73 -0
  2. package/__mocks__/IntersectionObserver.js +14 -1
  3. package/__mocks__/IntersectionObserver.js.map +1 -1
  4. package/__mocks__/MutationObserver.js +12 -1
  5. package/__mocks__/MutationObserver.js.map +1 -1
  6. package/__mocks__/ResizeObserver.js +14 -1
  7. package/__mocks__/ResizeObserver.js.map +1 -1
  8. package/__mocks__/matchMedia.js +12 -1
  9. package/__mocks__/matchMedia.js.map +1 -1
  10. package/__mocks__/useHover.js +3 -1
  11. package/__mocks__/useHover.js.map +1 -1
  12. package/__mocks__/useLayoutEvent.js +3 -1
  13. package/__mocks__/useLayoutEvent.js.map +1 -1
  14. package/__mocks__/useOutsideEvent.js +3 -1
  15. package/__mocks__/useOutsideEvent.js.map +1 -1
  16. package/__mocks__/useSize.js +3 -1
  17. package/__mocks__/useSize.js.map +1 -1
  18. package/__mocks__/uuid.js +5 -1
  19. package/__mocks__/uuid.js.map +1 -1
  20. package/_virtual/dynamic-import-helper.js +10 -0
  21. package/_virtual/dynamic-import-helper.js.map +1 -0
  22. package/components/AnchorLink/AnchorLink.js +53 -0
  23. package/components/AnchorLink/AnchorLink.js.map +1 -0
  24. package/components/AnchorLink/index.js +4 -1
  25. package/components/AnchorLink/index.js.map +1 -1
  26. package/components/Avatar/Avatar.js +33 -0
  27. package/components/Avatar/Avatar.js.map +1 -0
  28. package/components/Avatar/index.js +6 -1
  29. package/components/Avatar/index.js.map +1 -1
  30. package/components/Badge/Badge.js +25 -0
  31. package/components/Badge/Badge.js.map +1 -0
  32. package/components/Badge/index.js +4 -1
  33. package/components/Badge/index.js.map +1 -1
  34. package/components/Button/Button.d.ts.map +1 -1
  35. package/components/Button/Button.js +113 -0
  36. package/components/Button/Button.js.map +1 -0
  37. package/components/Button/index.js +4 -1
  38. package/components/Button/index.js.map +1 -1
  39. package/components/ButtonWithModal/ButtonWithModal.js +11 -0
  40. package/components/ButtonWithModal/ButtonWithModal.js.map +1 -0
  41. package/components/ButtonWithModal/index.js +4 -1
  42. package/components/ButtonWithModal/index.js.map +1 -1
  43. package/components/Checkbox/Checkbox.d.ts +3 -3
  44. package/components/Checkbox/Checkbox.d.ts.map +1 -1
  45. package/components/Checkbox/Checkbox.js +108 -0
  46. package/components/Checkbox/Checkbox.js.map +1 -0
  47. package/components/Checkbox/index.js +6 -1
  48. package/components/Checkbox/index.js.map +1 -1
  49. package/components/Checkbox/styles.module.scss +9 -9
  50. package/components/Checkbox/styles.module.scss.d.ts +18 -18
  51. package/components/Close/Close.js +30 -0
  52. package/components/Close/Close.js.map +1 -0
  53. package/components/Close/index.js +4 -1
  54. package/components/Close/index.js.map +1 -1
  55. package/components/DictionaryTrigger/DictionaryTrigger.js +28 -0
  56. package/components/DictionaryTrigger/DictionaryTrigger.js.map +1 -0
  57. package/components/DictionaryTrigger/index.js +4 -1
  58. package/components/DictionaryTrigger/index.js.map +1 -1
  59. package/components/Dropdown/Dropdown.js +119 -0
  60. package/components/Dropdown/Dropdown.js.map +1 -0
  61. package/components/Dropdown/index.js +6 -1
  62. package/components/Dropdown/index.js.map +1 -1
  63. package/components/Duolist/Duolist.js +55 -0
  64. package/components/Duolist/Duolist.js.map +1 -0
  65. package/components/Duolist/index.js +7 -1
  66. package/components/Duolist/index.js.map +1 -1
  67. package/components/ErrorWrapper/ErrorWrapper.js +12 -0
  68. package/components/ErrorWrapper/ErrorWrapper.js.map +1 -0
  69. package/components/ErrorWrapper/index.js +6 -1
  70. package/components/ErrorWrapper/index.js.map +1 -1
  71. package/components/Expander/Expander.d.ts +3 -2
  72. package/components/Expander/Expander.d.ts.map +1 -1
  73. package/components/Expander/Expander.js +100 -0
  74. package/components/Expander/Expander.js.map +1 -0
  75. package/components/Expander/index.js +6 -1
  76. package/components/Expander/index.js.map +1 -1
  77. package/components/ExpanderHierarchy/Expander.js +31 -0
  78. package/components/ExpanderHierarchy/Expander.js.map +1 -0
  79. package/components/ExpanderHierarchy/ExpanderButton.js +46 -0
  80. package/components/ExpanderHierarchy/ExpanderButton.js.map +1 -0
  81. package/components/ExpanderHierarchy/ExpanderHierarchy.js +29 -0
  82. package/components/ExpanderHierarchy/ExpanderHierarchy.js.map +1 -0
  83. package/components/ExpanderHierarchy/index.js +4 -1
  84. package/components/ExpanderHierarchy/index.js.map +1 -1
  85. package/components/ExpanderHierarchy/utils.js +20 -0
  86. package/components/ExpanderHierarchy/utils.js.map +1 -0
  87. package/components/ExpanderList/ExpanderList.js +147 -0
  88. package/components/ExpanderList/ExpanderList.js.map +1 -0
  89. package/components/ExpanderList/index.js +6 -1
  90. package/components/ExpanderList/index.js.map +1 -1
  91. package/components/FormExample/FormExample.d.ts +2 -2
  92. package/components/FormExample/FormExample.d.ts.map +1 -1
  93. package/components/FormExample/FormExample.js +249 -0
  94. package/components/FormExample/FormExample.js.map +1 -0
  95. package/components/FormExample/index.js +7 -11
  96. package/components/FormExample/index.js.map +1 -1
  97. package/components/FormGroup/FormGroup.d.ts +2 -2
  98. package/components/FormGroup/FormGroup.d.ts.map +1 -1
  99. package/components/FormGroup/FormGroup.js +97 -0
  100. package/components/FormGroup/FormGroup.js.map +1 -0
  101. package/components/FormGroup/index.js +6 -1
  102. package/components/FormGroup/index.js.map +1 -1
  103. package/components/FormLayout/FormLayout.d.ts +3 -3
  104. package/components/FormLayout/FormLayout.d.ts.map +1 -1
  105. package/components/FormLayout/FormLayout.js +39 -0
  106. package/components/FormLayout/FormLayout.js.map +1 -0
  107. package/components/FormLayout/index.js +7 -1
  108. package/components/FormLayout/index.js.map +1 -1
  109. package/components/FormLayout/styles.module.scss +1 -1
  110. package/components/FormLayout/styles.module.scss.d.ts +1 -1
  111. package/components/GridExample/GridExample.js +7 -0
  112. package/components/GridExample/GridExample.js.map +1 -0
  113. package/components/GridExample/index.js +6 -1
  114. package/components/GridExample/index.js.map +1 -1
  115. package/components/HelpBubble/HelpBubble.js +62 -0
  116. package/components/HelpBubble/HelpBubble.js.map +1 -0
  117. package/components/HelpBubble/index.js +6 -1
  118. package/components/HelpBubble/index.js.map +1 -1
  119. package/components/HelpBubbleExample/HelpBubbleExample.js +20 -0
  120. package/components/HelpBubbleExample/HelpBubbleExample.js.map +1 -0
  121. package/components/HelpBubbleExample/index.js +4 -1
  122. package/components/HelpBubbleExample/index.js.map +1 -1
  123. package/components/HelpPanel/HelpPanel.js +24 -0
  124. package/components/HelpPanel/HelpPanel.js.map +1 -0
  125. package/components/HelpPanel/index.js +4 -1
  126. package/components/HelpPanel/index.js.map +1 -1
  127. package/components/HelpQuestion/HelpQuestion.js +32 -0
  128. package/components/HelpQuestion/HelpQuestion.js.map +1 -0
  129. package/components/HelpQuestion/index.js +4 -1
  130. package/components/HelpQuestion/index.js.map +1 -1
  131. package/components/HighlightBox/HighlightBox.d.ts +3 -2
  132. package/components/HighlightBox/HighlightBox.d.ts.map +1 -1
  133. package/components/HighlightBox/HighlightBox.js +62 -0
  134. package/components/HighlightBox/HighlightBox.js.map +1 -0
  135. package/components/HighlightBox/index.js +6 -1
  136. package/components/HighlightBox/index.js.map +1 -1
  137. package/components/HorizontalScroll/HorizontalScroll.js +32 -0
  138. package/components/HorizontalScroll/HorizontalScroll.js.map +1 -0
  139. package/components/HorizontalScroll/index.js +6 -1
  140. package/components/HorizontalScroll/index.js.map +1 -1
  141. package/components/{Icons → Icon}/Icon.d.ts +4 -3
  142. package/components/Icon/Icon.d.ts.map +1 -0
  143. package/components/Icon/Icon.js +57 -0
  144. package/components/Icon/Icon.js.map +1 -0
  145. package/components/Icon/index.d.ts.map +1 -0
  146. package/components/Icon/index.js +10 -0
  147. package/components/Icon/index.js.map +1 -0
  148. package/components/Icons/ActiveMonitoring.d.ts +1 -1
  149. package/components/Icons/ActiveMonitoring.d.ts.map +1 -1
  150. package/components/Icons/ActiveMonitoring.js +17 -1
  151. package/components/Icons/ActiveMonitoring.js.map +1 -1
  152. package/components/Icons/AcupunctureBack.d.ts +1 -1
  153. package/components/Icons/AcupunctureBack.d.ts.map +1 -1
  154. package/components/Icons/AcupunctureBack.js +22 -1
  155. package/components/Icons/AcupunctureBack.js.map +1 -1
  156. package/components/Icons/AdditionalIconInformation.d.ts +1188 -0
  157. package/components/Icons/AdditionalIconInformation.d.ts.map +1 -0
  158. package/components/Icons/AdditionalIconInformation.js +301 -297
  159. package/components/Icons/AdditionalIconInformation.js.map +1 -0
  160. package/components/Icons/AlarmClock.d.ts +1 -1
  161. package/components/Icons/AlarmClock.d.ts.map +1 -1
  162. package/components/Icons/AlarmClock.js +18 -1
  163. package/components/Icons/AlarmClock.js.map +1 -1
  164. package/components/Icons/AlertSignFill.d.ts +1 -1
  165. package/components/Icons/AlertSignFill.d.ts.map +1 -1
  166. package/components/Icons/AlertSignFill.js +6 -1
  167. package/components/Icons/AlertSignFill.js.map +1 -1
  168. package/components/Icons/AlertSignStroke.d.ts +1 -1
  169. package/components/Icons/AlertSignStroke.d.ts.map +1 -1
  170. package/components/Icons/AlertSignStroke.js +6 -1
  171. package/components/Icons/AlertSignStroke.js.map +1 -1
  172. package/components/Icons/Amputation.d.ts +1 -1
  173. package/components/Icons/Amputation.d.ts.map +1 -1
  174. package/components/Icons/Amputation.js +5 -1
  175. package/components/Icons/Amputation.js.map +1 -1
  176. package/components/Icons/Anxiety.d.ts +1 -1
  177. package/components/Icons/Anxiety.d.ts.map +1 -1
  178. package/components/Icons/Anxiety.js +5 -1
  179. package/components/Icons/Anxiety.js.map +1 -1
  180. package/components/Icons/Apple.d.ts +1 -1
  181. package/components/Icons/Apple.d.ts.map +1 -1
  182. package/components/Icons/Apple.js +5 -1
  183. package/components/Icons/Apple.js.map +1 -1
  184. package/components/Icons/Archive.d.ts +1 -1
  185. package/components/Icons/Archive.d.ts.map +1 -1
  186. package/components/Icons/Archive.js +30 -1
  187. package/components/Icons/Archive.js.map +1 -1
  188. package/components/Icons/ArmFlexing.d.ts +1 -1
  189. package/components/Icons/ArmFlexing.d.ts.map +1 -1
  190. package/components/Icons/ArmFlexing.js +5 -1
  191. package/components/Icons/ArmFlexing.js.map +1 -1
  192. package/components/Icons/ArrowDown.d.ts +1 -1
  193. package/components/Icons/ArrowDown.d.ts.map +1 -1
  194. package/components/Icons/ArrowDown.js +30 -1
  195. package/components/Icons/ArrowDown.js.map +1 -1
  196. package/components/Icons/ArrowLeft.d.ts +1 -1
  197. package/components/Icons/ArrowLeft.d.ts.map +1 -1
  198. package/components/Icons/ArrowLeft.js +6 -1
  199. package/components/Icons/ArrowLeft.js.map +1 -1
  200. package/components/Icons/ArrowRight.d.ts +1 -1
  201. package/components/Icons/ArrowRight.d.ts.map +1 -1
  202. package/components/Icons/ArrowRight.js +6 -1
  203. package/components/Icons/ArrowRight.js.map +1 -1
  204. package/components/Icons/ArrowUp.d.ts +1 -1
  205. package/components/Icons/ArrowUp.d.ts.map +1 -1
  206. package/components/Icons/ArrowUp.js +30 -1
  207. package/components/Icons/ArrowUp.js.map +1 -1
  208. package/components/Icons/ArrowUpRight.d.ts +1 -1
  209. package/components/Icons/ArrowUpRight.d.ts.map +1 -1
  210. package/components/Icons/ArrowUpRight.js +6 -1
  211. package/components/Icons/ArrowUpRight.js.map +1 -1
  212. package/components/Icons/Attachment.d.ts +1 -1
  213. package/components/Icons/Attachment.d.ts.map +1 -1
  214. package/components/Icons/Attachment.js +6 -1
  215. package/components/Icons/Attachment.js.map +1 -1
  216. package/components/Icons/Atv.d.ts +1 -1
  217. package/components/Icons/Atv.d.ts.map +1 -1
  218. package/components/Icons/Atv.js +5 -1
  219. package/components/Icons/Atv.js.map +1 -1
  220. package/components/Icons/Avatar.d.ts +1 -1
  221. package/components/Icons/Avatar.d.ts.map +1 -1
  222. package/components/Icons/Avatar.js +6 -1
  223. package/components/Icons/Avatar.js.map +1 -1
  224. package/components/Icons/AwakePersonOnPillow.d.ts +1 -1
  225. package/components/Icons/AwakePersonOnPillow.d.ts.map +1 -1
  226. package/components/Icons/AwakePersonOnPillow.js +5 -1
  227. package/components/Icons/AwakePersonOnPillow.js.map +1 -1
  228. package/components/Icons/Baby.d.ts +1 -1
  229. package/components/Icons/Baby.d.ts.map +1 -1
  230. package/components/Icons/Baby.js +5 -1
  231. package/components/Icons/Baby.js.map +1 -1
  232. package/components/Icons/BandAid.d.ts +1 -1
  233. package/components/Icons/BandAid.d.ts.map +1 -1
  234. package/components/Icons/BandAid.js +5 -1
  235. package/components/Icons/BandAid.js.map +1 -1
  236. package/components/Icons/BeerAndPills.d.ts +1 -1
  237. package/components/Icons/BeerAndPills.d.ts.map +1 -1
  238. package/components/Icons/BeerAndPills.js +17 -1
  239. package/components/Icons/BeerAndPills.js.map +1 -1
  240. package/components/Icons/Bell.d.ts +1 -1
  241. package/components/Icons/Bell.d.ts.map +1 -1
  242. package/components/Icons/Bell.js +5 -1
  243. package/components/Icons/Bell.js.map +1 -1
  244. package/components/Icons/Bike.d.ts +1 -1
  245. package/components/Icons/Bike.d.ts.map +1 -1
  246. package/components/Icons/Bike.js +5 -1
  247. package/components/Icons/Bike.js.map +1 -1
  248. package/components/Icons/BirthControl.d.ts +1 -1
  249. package/components/Icons/BirthControl.d.ts.map +1 -1
  250. package/components/Icons/BirthControl.js +17 -1
  251. package/components/Icons/BirthControl.js.map +1 -1
  252. package/components/Icons/BirthdayCake.d.ts +1 -1
  253. package/components/Icons/BirthdayCake.d.ts.map +1 -1
  254. package/components/Icons/BirthdayCake.js +5 -1
  255. package/components/Icons/BirthdayCake.js.map +1 -1
  256. package/components/Icons/Boat.d.ts +1 -1
  257. package/components/Icons/Boat.d.ts.map +1 -1
  258. package/components/Icons/Boat.js +5 -1
  259. package/components/Icons/Boat.js.map +1 -1
  260. package/components/Icons/Body.d.ts +1 -1
  261. package/components/Icons/Body.d.ts.map +1 -1
  262. package/components/Icons/Body.js +17 -1
  263. package/components/Icons/Body.js.map +1 -1
  264. package/components/Icons/Braille.d.ts +1 -1
  265. package/components/Icons/Braille.d.ts.map +1 -1
  266. package/components/Icons/Braille.js +5 -1
  267. package/components/Icons/Braille.js.map +1 -1
  268. package/components/Icons/Brain.d.ts +1 -1
  269. package/components/Icons/Brain.d.ts.map +1 -1
  270. package/components/Icons/Brain.js +5 -1
  271. package/components/Icons/Brain.js.map +1 -1
  272. package/components/Icons/BreastReconstruction.d.ts +1 -1
  273. package/components/Icons/BreastReconstruction.d.ts.map +1 -1
  274. package/components/Icons/BreastReconstruction.js +17 -1
  275. package/components/Icons/BreastReconstruction.js.map +1 -1
  276. package/components/Icons/BreastRemoval.d.ts +1 -1
  277. package/components/Icons/BreastRemoval.d.ts.map +1 -1
  278. package/components/Icons/BreastRemoval.js +17 -1
  279. package/components/Icons/BreastRemoval.js.map +1 -1
  280. package/components/Icons/Breasts.d.ts +1 -1
  281. package/components/Icons/Breasts.d.ts.map +1 -1
  282. package/components/Icons/Breasts.js +5 -1
  283. package/components/Icons/Breasts.js.map +1 -1
  284. package/components/Icons/BrokenHeart.d.ts +1 -1
  285. package/components/Icons/BrokenHeart.d.ts.map +1 -1
  286. package/components/Icons/BrokenHeart.js +5 -1
  287. package/components/Icons/BrokenHeart.js.map +1 -1
  288. package/components/Icons/BrokenPuzzle.d.ts +1 -1
  289. package/components/Icons/BrokenPuzzle.d.ts.map +1 -1
  290. package/components/Icons/BrokenPuzzle.js +5 -1
  291. package/components/Icons/BrokenPuzzle.js.map +1 -1
  292. package/components/Icons/Bus.d.ts +1 -1
  293. package/components/Icons/Bus.d.ts.map +1 -1
  294. package/components/Icons/Bus.js +18 -1
  295. package/components/Icons/Bus.js.map +1 -1
  296. package/components/Icons/Calendar.d.ts +1 -1
  297. package/components/Icons/Calendar.d.ts.map +1 -1
  298. package/components/Icons/Calendar.js +30 -1
  299. package/components/Icons/Calendar.js.map +1 -1
  300. package/components/Icons/CalendarChange.d.ts +1 -1
  301. package/components/Icons/CalendarChange.d.ts.map +1 -1
  302. package/components/Icons/CalendarChange.js +30 -1
  303. package/components/Icons/CalendarChange.js.map +1 -1
  304. package/components/Icons/CalendarCheck.d.ts +1 -1
  305. package/components/Icons/CalendarCheck.d.ts.map +1 -1
  306. package/components/Icons/CalendarCheck.js +30 -1
  307. package/components/Icons/CalendarCheck.js.map +1 -1
  308. package/components/Icons/CalendarEvent.d.ts +1 -1
  309. package/components/Icons/CalendarEvent.d.ts.map +1 -1
  310. package/components/Icons/CalendarEvent.js +5 -1
  311. package/components/Icons/CalendarEvent.js.map +1 -1
  312. package/components/Icons/CalendarSave.d.ts +1 -1
  313. package/components/Icons/CalendarSave.d.ts.map +1 -1
  314. package/components/Icons/CalendarSave.js +6 -1
  315. package/components/Icons/CalendarSave.js.map +1 -1
  316. package/components/Icons/Cancer.d.ts +1 -1
  317. package/components/Icons/Cancer.d.ts.map +1 -1
  318. package/components/Icons/Cancer.js +5 -1
  319. package/components/Icons/Cancer.js.map +1 -1
  320. package/components/Icons/Candle.d.ts +1 -1
  321. package/components/Icons/Candle.d.ts.map +1 -1
  322. package/components/Icons/Candle.js +18 -1
  323. package/components/Icons/Candle.js.map +1 -1
  324. package/components/Icons/Car.d.ts +1 -1
  325. package/components/Icons/Car.d.ts.map +1 -1
  326. package/components/Icons/Car.js +5 -1
  327. package/components/Icons/Car.js.map +1 -1
  328. package/components/Icons/Change.d.ts +1 -1
  329. package/components/Icons/Change.d.ts.map +1 -1
  330. package/components/Icons/Change.js +39 -1
  331. package/components/Icons/Change.js.map +1 -1
  332. package/components/Icons/Check.d.ts +1 -1
  333. package/components/Icons/Check.d.ts.map +1 -1
  334. package/components/Icons/Check.js +6 -1
  335. package/components/Icons/Check.js.map +1 -1
  336. package/components/Icons/CheckFill.d.ts +1 -1
  337. package/components/Icons/CheckFill.d.ts.map +1 -1
  338. package/components/Icons/CheckFill.js +30 -1
  339. package/components/Icons/CheckFill.js.map +1 -1
  340. package/components/Icons/CheckOutline.d.ts +1 -1
  341. package/components/Icons/CheckOutline.d.ts.map +1 -1
  342. package/components/Icons/CheckOutline.js +17 -1
  343. package/components/Icons/CheckOutline.js.map +1 -1
  344. package/components/Icons/Chest.d.ts +1 -1
  345. package/components/Icons/Chest.d.ts.map +1 -1
  346. package/components/Icons/Chest.js +5 -1
  347. package/components/Icons/Chest.js.map +1 -1
  348. package/components/Icons/ChevronDown.d.ts +1 -1
  349. package/components/Icons/ChevronDown.d.ts.map +1 -1
  350. package/components/Icons/ChevronDown.js +6 -1
  351. package/components/Icons/ChevronDown.js.map +1 -1
  352. package/components/Icons/ChevronLeft.d.ts +1 -1
  353. package/components/Icons/ChevronLeft.d.ts.map +1 -1
  354. package/components/Icons/ChevronLeft.js +6 -1
  355. package/components/Icons/ChevronLeft.js.map +1 -1
  356. package/components/Icons/ChevronRight.d.ts +1 -1
  357. package/components/Icons/ChevronRight.d.ts.map +1 -1
  358. package/components/Icons/ChevronRight.js +6 -1
  359. package/components/Icons/ChevronRight.js.map +1 -1
  360. package/components/Icons/ChevronUp.d.ts +1 -1
  361. package/components/Icons/ChevronUp.d.ts.map +1 -1
  362. package/components/Icons/ChevronUp.js +6 -1
  363. package/components/Icons/ChevronUp.js.map +1 -1
  364. package/components/Icons/ChevronsDown.d.ts +1 -1
  365. package/components/Icons/ChevronsDown.d.ts.map +1 -1
  366. package/components/Icons/ChevronsDown.js +30 -1
  367. package/components/Icons/ChevronsDown.js.map +1 -1
  368. package/components/Icons/ChevronsUp.d.ts +1 -1
  369. package/components/Icons/ChevronsUp.d.ts.map +1 -1
  370. package/components/Icons/ChevronsUp.js +30 -1
  371. package/components/Icons/ChevronsUp.js.map +1 -1
  372. package/components/Icons/ChildPlaying.d.ts +1 -1
  373. package/components/Icons/ChildPlaying.d.ts.map +1 -1
  374. package/components/Icons/ChildPlaying.js +5 -1
  375. package/components/Icons/ChildPlaying.js.map +1 -1
  376. package/components/Icons/Cigarette.d.ts +1 -1
  377. package/components/Icons/Cigarette.d.ts.map +1 -1
  378. package/components/Icons/Cigarette.js +5 -1
  379. package/components/Icons/Cigarette.js.map +1 -1
  380. package/components/Icons/Coins.d.ts +1 -1
  381. package/components/Icons/Coins.d.ts.map +1 -1
  382. package/components/Icons/Coins.js +17 -1
  383. package/components/Icons/Coins.js.map +1 -1
  384. package/components/Icons/Contacts.d.ts +1 -1
  385. package/components/Icons/Contacts.d.ts.map +1 -1
  386. package/components/Icons/Contacts.js +6 -1
  387. package/components/Icons/Contacts.js.map +1 -1
  388. package/components/Icons/Copy.d.ts +1 -1
  389. package/components/Icons/Copy.d.ts.map +1 -1
  390. package/components/Icons/Copy.js +6 -1
  391. package/components/Icons/Copy.js.map +1 -1
  392. package/components/Icons/CoronaCertificate.d.ts +1 -1
  393. package/components/Icons/CoronaCertificate.d.ts.map +1 -1
  394. package/components/Icons/CoronaCertificate.js +17 -1
  395. package/components/Icons/CoronaCertificate.js.map +1 -1
  396. package/components/Icons/Coronavirus.d.ts +1 -1
  397. package/components/Icons/Coronavirus.d.ts.map +1 -1
  398. package/components/Icons/Coronavirus.js +5 -1
  399. package/components/Icons/Coronavirus.js.map +1 -1
  400. package/components/Icons/Cough.d.ts +1 -1
  401. package/components/Icons/Cough.d.ts.map +1 -1
  402. package/components/Icons/Cough.js +5 -1
  403. package/components/Icons/Cough.js.map +1 -1
  404. package/components/Icons/CriticalHealthInfo.d.ts +1 -1
  405. package/components/Icons/CriticalHealthInfo.d.ts.map +1 -1
  406. package/components/Icons/CriticalHealthInfo.js +5 -1
  407. package/components/Icons/CriticalHealthInfo.js.map +1 -1
  408. package/components/Icons/Cross.d.ts +1 -1
  409. package/components/Icons/Cross.d.ts.map +1 -1
  410. package/components/Icons/Cross.js +5 -1
  411. package/components/Icons/Cross.js.map +1 -1
  412. package/components/Icons/DataExchange.d.ts +1 -1
  413. package/components/Icons/DataExchange.d.ts.map +1 -1
  414. package/components/Icons/DataExchange.js +17 -1
  415. package/components/Icons/DataExchange.js.map +1 -1
  416. package/components/Icons/DataReceived.d.ts +1 -1
  417. package/components/Icons/DataReceived.d.ts.map +1 -1
  418. package/components/Icons/DataReceived.js +17 -1
  419. package/components/Icons/DataReceived.js.map +1 -1
  420. package/components/Icons/DataSent.d.ts +1 -1
  421. package/components/Icons/DataSent.d.ts.map +1 -1
  422. package/components/Icons/DataSent.js +17 -1
  423. package/components/Icons/DataSent.js.map +1 -1
  424. package/components/Icons/Depression.d.ts +1 -1
  425. package/components/Icons/Depression.d.ts.map +1 -1
  426. package/components/Icons/Depression.js +5 -1
  427. package/components/Icons/Depression.js.map +1 -1
  428. package/components/Icons/DigestiveSystem.d.ts +1 -1
  429. package/components/Icons/DigestiveSystem.d.ts.map +1 -1
  430. package/components/Icons/DigestiveSystem.js +5 -1
  431. package/components/Icons/DigestiveSystem.js.map +1 -1
  432. package/components/Icons/Dizzy.d.ts +1 -1
  433. package/components/Icons/Dizzy.d.ts.map +1 -1
  434. package/components/Icons/Dizzy.js +5 -1
  435. package/components/Icons/Dizzy.js.map +1 -1
  436. package/components/Icons/Documents.d.ts +1 -1
  437. package/components/Icons/Documents.d.ts.map +1 -1
  438. package/components/Icons/Documents.js +5 -1
  439. package/components/Icons/Documents.js.map +1 -1
  440. package/components/Icons/Dog.d.ts +1 -1
  441. package/components/Icons/Dog.d.ts.map +1 -1
  442. package/components/Icons/Dog.js +5 -1
  443. package/components/Icons/Dog.js.map +1 -1
  444. package/components/Icons/DonorCard.d.ts +1 -1
  445. package/components/Icons/DonorCard.d.ts.map +1 -1
  446. package/components/Icons/DonorCard.js +5 -1
  447. package/components/Icons/DonorCard.js.map +1 -1
  448. package/components/Icons/Download.d.ts +1 -1
  449. package/components/Icons/Download.d.ts.map +1 -1
  450. package/components/Icons/Download.js +30 -1
  451. package/components/Icons/Download.js.map +1 -1
  452. package/components/Icons/Draft.d.ts +1 -1
  453. package/components/Icons/Draft.d.ts.map +1 -1
  454. package/components/Icons/Draft.js +5 -1
  455. package/components/Icons/Draft.js.map +1 -1
  456. package/components/Icons/EChat.d.ts +1 -1
  457. package/components/Icons/EChat.d.ts.map +1 -1
  458. package/components/Icons/EChat.js +6 -1
  459. package/components/Icons/EChat.js.map +1 -1
  460. package/components/Icons/Ear.d.ts +1 -1
  461. package/components/Icons/Ear.d.ts.map +1 -1
  462. package/components/Icons/Ear.js +8 -1
  463. package/components/Icons/Ear.js.map +1 -1
  464. package/components/Icons/EarDeaf.d.ts +1 -1
  465. package/components/Icons/EarDeaf.d.ts.map +1 -1
  466. package/components/Icons/EarDeaf.js +5 -1
  467. package/components/Icons/EarDeaf.js.map +1 -1
  468. package/components/Icons/EarHearingAid.d.ts +1 -1
  469. package/components/Icons/EarHearingAid.d.ts.map +1 -1
  470. package/components/Icons/EarHearingAid.js +8 -1
  471. package/components/Icons/EarHearingAid.js.map +1 -1
  472. package/components/Icons/EarNoseThroat.d.ts +1 -1
  473. package/components/Icons/EarNoseThroat.d.ts.map +1 -1
  474. package/components/Icons/EarNoseThroat.js +5 -1
  475. package/components/Icons/EarNoseThroat.js.map +1 -1
  476. package/components/Icons/EarVolume.d.ts +1 -1
  477. package/components/Icons/EarVolume.d.ts.map +1 -1
  478. package/components/Icons/EarVolume.js +15 -1
  479. package/components/Icons/EarVolume.js.map +1 -1
  480. package/components/Icons/ElderlyPerson.d.ts +1 -1
  481. package/components/Icons/ElderlyPerson.d.ts.map +1 -1
  482. package/components/Icons/ElderlyPerson.js +5 -1
  483. package/components/Icons/ElderlyPerson.js.map +1 -1
  484. package/components/Icons/Embolization.d.ts +1 -1
  485. package/components/Icons/Embolization.d.ts.map +1 -1
  486. package/components/Icons/Embolization.js +17 -1
  487. package/components/Icons/Embolization.js.map +1 -1
  488. package/components/Icons/EmergencyCall.d.ts +1 -1
  489. package/components/Icons/EmergencyCall.d.ts.map +1 -1
  490. package/components/Icons/EmergencyCall.js +19 -1
  491. package/components/Icons/EmergencyCall.js.map +1 -1
  492. package/components/Icons/EmoticonAnnoyed.d.ts +1 -1
  493. package/components/Icons/EmoticonAnnoyed.d.ts.map +1 -1
  494. package/components/Icons/EmoticonAnnoyed.js +15 -1
  495. package/components/Icons/EmoticonAnnoyed.js.map +1 -1
  496. package/components/Icons/EmoticonDelighted.d.ts +1 -1
  497. package/components/Icons/EmoticonDelighted.d.ts.map +1 -1
  498. package/components/Icons/EmoticonDelighted.js +9 -1
  499. package/components/Icons/EmoticonDelighted.js.map +1 -1
  500. package/components/Icons/EmoticonDisappointed.d.ts +1 -1
  501. package/components/Icons/EmoticonDisappointed.d.ts.map +1 -1
  502. package/components/Icons/EmoticonDisappointed.js +9 -1
  503. package/components/Icons/EmoticonDisappointed.js.map +1 -1
  504. package/components/Icons/EmoticonHappy.d.ts +1 -1
  505. package/components/Icons/EmoticonHappy.d.ts.map +1 -1
  506. package/components/Icons/EmoticonHappy.js +9 -1
  507. package/components/Icons/EmoticonHappy.js.map +1 -1
  508. package/components/Icons/EmoticonMeh.d.ts +1 -1
  509. package/components/Icons/EmoticonMeh.d.ts.map +1 -1
  510. package/components/Icons/EmoticonMeh.js +9 -1
  511. package/components/Icons/EmoticonMeh.js.map +1 -1
  512. package/components/Icons/EnterFullScreen.d.ts +1 -1
  513. package/components/Icons/EnterFullScreen.d.ts.map +1 -1
  514. package/components/Icons/EnterFullScreen.js +6 -1
  515. package/components/Icons/EnterFullScreen.js.map +1 -1
  516. package/components/Icons/Envelope.d.ts +1 -1
  517. package/components/Icons/Envelope.d.ts.map +1 -1
  518. package/components/Icons/Envelope.js +6 -1
  519. package/components/Icons/Envelope.js.map +1 -1
  520. package/components/Icons/Epilepsy.d.ts +1 -1
  521. package/components/Icons/Epilepsy.d.ts.map +1 -1
  522. package/components/Icons/Epilepsy.js +5 -1
  523. package/components/Icons/Epilepsy.js.map +1 -1
  524. package/components/Icons/Eraser.d.ts +1 -1
  525. package/components/Icons/Eraser.d.ts.map +1 -1
  526. package/components/Icons/Eraser.js +6 -1
  527. package/components/Icons/Eraser.js.map +1 -1
  528. package/components/Icons/ErrorSignFill.d.ts +1 -1
  529. package/components/Icons/ErrorSignFill.d.ts.map +1 -1
  530. package/components/Icons/ErrorSignFill.js +6 -1
  531. package/components/Icons/ErrorSignFill.js.map +1 -1
  532. package/components/Icons/ErrorSignStroke.d.ts +1 -1
  533. package/components/Icons/ErrorSignStroke.d.ts.map +1 -1
  534. package/components/Icons/ErrorSignStroke.js +6 -1
  535. package/components/Icons/ErrorSignStroke.js.map +1 -1
  536. package/components/Icons/EuropeanHealthCard.d.ts +1 -1
  537. package/components/Icons/EuropeanHealthCard.d.ts.map +1 -1
  538. package/components/Icons/EuropeanHealthCard.js +5 -1
  539. package/components/Icons/EuropeanHealthCard.js.map +1 -1
  540. package/components/Icons/ExitFullScreen.d.ts +1 -1
  541. package/components/Icons/ExitFullScreen.d.ts.map +1 -1
  542. package/components/Icons/ExitFullScreen.js +6 -1
  543. package/components/Icons/ExitFullScreen.js.map +1 -1
  544. package/components/Icons/Eye.d.ts +1 -1
  545. package/components/Icons/Eye.d.ts.map +1 -1
  546. package/components/Icons/Eye.js +6 -1
  547. package/components/Icons/Eye.js.map +1 -1
  548. package/components/Icons/Facebook.d.ts +1 -1
  549. package/components/Icons/Facebook.d.ts.map +1 -1
  550. package/components/Icons/Facebook.js +5 -1
  551. package/components/Icons/Facebook.js.map +1 -1
  552. package/components/Icons/FallingLeaf.d.ts +1 -1
  553. package/components/Icons/FallingLeaf.d.ts.map +1 -1
  554. package/components/Icons/FallingLeaf.js +21 -1
  555. package/components/Icons/FallingLeaf.js.map +1 -1
  556. package/components/Icons/Female.d.ts +1 -1
  557. package/components/Icons/Female.d.ts.map +1 -1
  558. package/components/Icons/Female.js +5 -1
  559. package/components/Icons/Female.js.map +1 -1
  560. package/components/Icons/FemaleDoctor.d.ts +1 -1
  561. package/components/Icons/FemaleDoctor.d.ts.map +1 -1
  562. package/components/Icons/FemaleDoctor.js +5 -1
  563. package/components/Icons/FemaleDoctor.js.map +1 -1
  564. package/components/Icons/Ferry.d.ts +1 -1
  565. package/components/Icons/Ferry.d.ts.map +1 -1
  566. package/components/Icons/Ferry.js +5 -1
  567. package/components/Icons/Ferry.js.map +1 -1
  568. package/components/Icons/File.d.ts +1 -1
  569. package/components/Icons/File.d.ts.map +1 -1
  570. package/components/Icons/File.js +30 -1
  571. package/components/Icons/File.js.map +1 -1
  572. package/components/Icons/Filter.d.ts +1 -1
  573. package/components/Icons/Filter.d.ts.map +1 -1
  574. package/components/Icons/Filter.js +25 -1
  575. package/components/Icons/Filter.js.map +1 -1
  576. package/components/Icons/FingerBleed.d.ts +1 -1
  577. package/components/Icons/FingerBleed.d.ts.map +1 -1
  578. package/components/Icons/FingerBleed.js +5 -1
  579. package/components/Icons/FingerBleed.js.map +1 -1
  580. package/components/Icons/FirstAidKit.d.ts +1 -1
  581. package/components/Icons/FirstAidKit.d.ts.map +1 -1
  582. package/components/Icons/FirstAidKit.js +5 -1
  583. package/components/Icons/FirstAidKit.js.map +1 -1
  584. package/components/Icons/FloppyDisk.d.ts +1 -1
  585. package/components/Icons/FloppyDisk.d.ts.map +1 -1
  586. package/components/Icons/FloppyDisk.js +17 -1
  587. package/components/Icons/FloppyDisk.js.map +1 -1
  588. package/components/Icons/Football.d.ts +1 -1
  589. package/components/Icons/Football.d.ts.map +1 -1
  590. package/components/Icons/Football.js +5 -1
  591. package/components/Icons/Football.js.map +1 -1
  592. package/components/Icons/Form.d.ts +1 -1
  593. package/components/Icons/Form.d.ts.map +1 -1
  594. package/components/Icons/Form.js +6 -1
  595. package/components/Icons/Form.js.map +1 -1
  596. package/components/Icons/Forward.d.ts +1 -1
  597. package/components/Icons/Forward.d.ts.map +1 -1
  598. package/components/Icons/Forward.js +6 -1
  599. package/components/Icons/Forward.js.map +1 -1
  600. package/components/Icons/Gallery.d.ts +1 -1
  601. package/components/Icons/Gallery.d.ts.map +1 -1
  602. package/components/Icons/Gallery.js +30 -1
  603. package/components/Icons/Gallery.js.map +1 -1
  604. package/components/Icons/Garden.d.ts +1 -1
  605. package/components/Icons/Garden.d.ts.map +1 -1
  606. package/components/Icons/Garden.js +5 -1
  607. package/components/Icons/Garden.js.map +1 -1
  608. package/components/Icons/GasCan.d.ts +1 -1
  609. package/components/Icons/GasCan.d.ts.map +1 -1
  610. package/components/Icons/GasCan.js +5 -1
  611. package/components/Icons/GasCan.js.map +1 -1
  612. package/components/Icons/GenderIdentity.d.ts +1 -1
  613. package/components/Icons/GenderIdentity.d.ts.map +1 -1
  614. package/components/Icons/GenderIdentity.js +17 -1
  615. package/components/Icons/GenderIdentity.js.map +1 -1
  616. package/components/Icons/Glasses.d.ts +1 -1
  617. package/components/Icons/Glasses.d.ts.map +1 -1
  618. package/components/Icons/Glasses.js +19 -1
  619. package/components/Icons/Glasses.js.map +1 -1
  620. package/components/Icons/Globe.d.ts +1 -1
  621. package/components/Icons/Globe.d.ts.map +1 -1
  622. package/components/Icons/Globe.js +6 -1
  623. package/components/Icons/Globe.js.map +1 -1
  624. package/components/Icons/Graph.d.ts +1 -1
  625. package/components/Icons/Graph.d.ts.map +1 -1
  626. package/components/Icons/Graph.js +21 -1
  627. package/components/Icons/Graph.js.map +1 -1
  628. package/components/Icons/Group.d.ts +1 -1
  629. package/components/Icons/Group.d.ts.map +1 -1
  630. package/components/Icons/Group.js +28 -1
  631. package/components/Icons/Group.js.map +1 -1
  632. package/components/Icons/GroupTwins.d.ts +1 -1
  633. package/components/Icons/GroupTwins.d.ts.map +1 -1
  634. package/components/Icons/GroupTwins.js +63 -1
  635. package/components/Icons/GroupTwins.js.map +1 -1
  636. package/components/Icons/HTMLFile.d.ts +1 -1
  637. package/components/Icons/HTMLFile.d.ts.map +1 -1
  638. package/components/Icons/HTMLFile.js +8 -1
  639. package/components/Icons/HTMLFile.js.map +1 -1
  640. package/components/Icons/HandWaving.d.ts +1 -1
  641. package/components/Icons/HandWaving.d.ts.map +1 -1
  642. package/components/Icons/HandWaving.js +5 -1
  643. package/components/Icons/HandWaving.js.map +1 -1
  644. package/components/Icons/HandWithDisease.d.ts +1 -1
  645. package/components/Icons/HandWithDisease.d.ts.map +1 -1
  646. package/components/Icons/HandWithDisease.js +5 -1
  647. package/components/Icons/HandWithDisease.js.map +1 -1
  648. package/components/Icons/HandsAndHeart.d.ts +1 -1
  649. package/components/Icons/HandsAndHeart.d.ts.map +1 -1
  650. package/components/Icons/HandsAndHeart.js +18 -1
  651. package/components/Icons/HandsAndHeart.js.map +1 -1
  652. package/components/Icons/HealthClinic.d.ts +1 -1
  653. package/components/Icons/HealthClinic.d.ts.map +1 -1
  654. package/components/Icons/HealthClinic.js +17 -1
  655. package/components/Icons/HealthClinic.js.map +1 -1
  656. package/components/Icons/HealthWarning.d.ts +1 -1
  657. package/components/Icons/HealthWarning.d.ts.map +1 -1
  658. package/components/Icons/HealthWarning.js +17 -1
  659. package/components/Icons/HealthWarning.js.map +1 -1
  660. package/components/Icons/HealthcarePerson.d.ts +1 -1
  661. package/components/Icons/HealthcarePerson.d.ts.map +1 -1
  662. package/components/Icons/HealthcarePerson.js +57 -1
  663. package/components/Icons/HealthcarePerson.js.map +1 -1
  664. package/components/Icons/HealthcarePersonell.d.ts +1 -1
  665. package/components/Icons/HealthcarePersonell.d.ts.map +1 -1
  666. package/components/Icons/HealthcarePersonell.js +75 -1
  667. package/components/Icons/HealthcarePersonell.js.map +1 -1
  668. package/components/Icons/HearingProtection.d.ts +1 -1
  669. package/components/Icons/HearingProtection.d.ts.map +1 -1
  670. package/components/Icons/HearingProtection.js +22 -1
  671. package/components/Icons/HearingProtection.js.map +1 -1
  672. package/components/Icons/Heart.d.ts +1 -1
  673. package/components/Icons/Heart.d.ts.map +1 -1
  674. package/components/Icons/Heart.js +6 -1
  675. package/components/Icons/Heart.js.map +1 -1
  676. package/components/Icons/HeartHands.d.ts +1 -1
  677. package/components/Icons/HeartHands.d.ts.map +1 -1
  678. package/components/Icons/HeartHands.js +64 -1
  679. package/components/Icons/HeartHands.js.map +1 -1
  680. package/components/Icons/HelpSign.d.ts +1 -1
  681. package/components/Icons/HelpSign.d.ts.map +1 -1
  682. package/components/Icons/HelpSign.js +6 -1
  683. package/components/Icons/HelpSign.js.map +1 -1
  684. package/components/Icons/HelpingHand.d.ts +1 -1
  685. package/components/Icons/HelpingHand.d.ts.map +1 -1
  686. package/components/Icons/HelpingHand.js +17 -1
  687. package/components/Icons/HelpingHand.js.map +1 -1
  688. package/components/Icons/Hemodialysis.d.ts +1 -1
  689. package/components/Icons/Hemodialysis.d.ts.map +1 -1
  690. package/components/Icons/Hemodialysis.js +17 -1
  691. package/components/Icons/Hemodialysis.js.map +1 -1
  692. package/components/Icons/Hiker.d.ts +1 -1
  693. package/components/Icons/Hiker.d.ts.map +1 -1
  694. package/components/Icons/Hiker.js +5 -1
  695. package/components/Icons/Hiker.js.map +1 -1
  696. package/components/Icons/Hipprosthesis.d.ts +1 -1
  697. package/components/Icons/Hipprosthesis.d.ts.map +1 -1
  698. package/components/Icons/Hipprosthesis.js +17 -1
  699. package/components/Icons/Hipprosthesis.js.map +1 -1
  700. package/components/Icons/History.d.ts +1 -1
  701. package/components/Icons/History.d.ts.map +1 -1
  702. package/components/Icons/History.js +6 -1
  703. package/components/Icons/History.js.map +1 -1
  704. package/components/Icons/HivAndAids.d.ts +1 -1
  705. package/components/Icons/HivAndAids.d.ts.map +1 -1
  706. package/components/Icons/HivAndAids.js +5 -1
  707. package/components/Icons/HivAndAids.js.map +1 -1
  708. package/components/Icons/Home.d.ts +1 -1
  709. package/components/Icons/Home.d.ts.map +1 -1
  710. package/components/Icons/Home.js +30 -1
  711. package/components/Icons/Home.js.map +1 -1
  712. package/components/Icons/Hormone.d.ts +1 -1
  713. package/components/Icons/Hormone.d.ts.map +1 -1
  714. package/components/Icons/Hormone.js +5 -1
  715. package/components/Icons/Hormone.js.map +1 -1
  716. package/components/Icons/Hospital.d.ts +1 -1
  717. package/components/Icons/Hospital.d.ts.map +1 -1
  718. package/components/Icons/Hospital.js +30 -1
  719. package/components/Icons/Hospital.js.map +1 -1
  720. package/components/Icons/Hourglass.d.ts +1 -1
  721. package/components/Icons/Hourglass.d.ts.map +1 -1
  722. package/components/Icons/Hourglass.js +30 -1
  723. package/components/Icons/Hourglass.js.map +1 -1
  724. package/components/Icons/IconNames.d.ts +3 -0
  725. package/components/Icons/IconNames.d.ts.map +1 -0
  726. package/components/Icons/IconNames.js +308 -0
  727. package/components/Icons/IconNames.js.map +1 -0
  728. package/components/Icons/ImgFile.d.ts +1 -1
  729. package/components/Icons/ImgFile.d.ts.map +1 -1
  730. package/components/Icons/ImgFile.js +17 -1
  731. package/components/Icons/ImgFile.js.map +1 -1
  732. package/components/Icons/Inbox.d.ts +1 -1
  733. package/components/Icons/Inbox.d.ts.map +1 -1
  734. package/components/Icons/Inbox.js +11 -1
  735. package/components/Icons/Inbox.js.map +1 -1
  736. package/components/Icons/InfoSignFill.d.ts +1 -1
  737. package/components/Icons/InfoSignFill.d.ts.map +1 -1
  738. package/components/Icons/InfoSignFill.js +6 -1
  739. package/components/Icons/InfoSignFill.js.map +1 -1
  740. package/components/Icons/InfoSignStroke.d.ts +1 -1
  741. package/components/Icons/InfoSignStroke.d.ts.map +1 -1
  742. package/components/Icons/InfoSignStroke.js +6 -1
  743. package/components/Icons/InfoSignStroke.js.map +1 -1
  744. package/components/Icons/Instagram.d.ts +1 -1
  745. package/components/Icons/Instagram.d.ts.map +1 -1
  746. package/components/Icons/Instagram.js +5 -1
  747. package/components/Icons/Instagram.js.map +1 -1
  748. package/components/Icons/Intravenous.d.ts +1 -1
  749. package/components/Icons/Intravenous.d.ts.map +1 -1
  750. package/components/Icons/Intravenous.js +17 -1
  751. package/components/Icons/Intravenous.js.map +1 -1
  752. package/components/Icons/JointPain.d.ts +1 -1
  753. package/components/Icons/JointPain.d.ts.map +1 -1
  754. package/components/Icons/JointPain.js +5 -1
  755. package/components/Icons/JointPain.js.map +1 -1
  756. package/components/Icons/Journal.d.ts +1 -1
  757. package/components/Icons/Journal.d.ts.map +1 -1
  758. package/components/Icons/Journal.js +6 -1
  759. package/components/Icons/Journal.js.map +1 -1
  760. package/components/Icons/JpgFile.d.ts +1 -1
  761. package/components/Icons/JpgFile.d.ts.map +1 -1
  762. package/components/Icons/JpgFile.js +17 -1
  763. package/components/Icons/JpgFile.js.map +1 -1
  764. package/components/Icons/Kidney.d.ts +1 -1
  765. package/components/Icons/Kidney.d.ts.map +1 -1
  766. package/components/Icons/Kidney.js +5 -1
  767. package/components/Icons/Kidney.js.map +1 -1
  768. package/components/Icons/KitchenScale.d.ts +1 -1
  769. package/components/Icons/KitchenScale.d.ts.map +1 -1
  770. package/components/Icons/KitchenScale.js +17 -1
  771. package/components/Icons/KitchenScale.js.map +1 -1
  772. package/components/Icons/Kjernejournal.d.ts +1 -1
  773. package/components/Icons/Kjernejournal.d.ts.map +1 -1
  774. package/components/Icons/Kjernejournal.js +5 -1
  775. package/components/Icons/Kjernejournal.js.map +1 -1
  776. package/components/Icons/Laboratory.d.ts +1 -1
  777. package/components/Icons/Laboratory.d.ts.map +1 -1
  778. package/components/Icons/Laboratory.js +17 -1
  779. package/components/Icons/Laboratory.js.map +1 -1
  780. package/components/Icons/LaptopBlog.d.ts +1 -1
  781. package/components/Icons/LaptopBlog.d.ts.map +1 -1
  782. package/components/Icons/LaptopBlog.js +5 -1
  783. package/components/Icons/LaptopBlog.js.map +1 -1
  784. package/components/Icons/LawBook.d.ts +1 -1
  785. package/components/Icons/LawBook.d.ts.map +1 -1
  786. package/components/Icons/LawBook.js +5 -1
  787. package/components/Icons/LawBook.js.map +1 -1
  788. package/components/Icons/LegalDocument.d.ts +1 -1
  789. package/components/Icons/LegalDocument.d.ts.map +1 -1
  790. package/components/Icons/LegalDocument.js +27 -1
  791. package/components/Icons/LegalDocument.js.map +1 -1
  792. package/components/Icons/LightBulb.d.ts +1 -1
  793. package/components/Icons/LightBulb.d.ts.map +1 -1
  794. package/components/Icons/LightBulb.js +5 -1
  795. package/components/Icons/LightBulb.js.map +1 -1
  796. package/components/Icons/List.d.ts +1 -1
  797. package/components/Icons/List.d.ts.map +1 -1
  798. package/components/Icons/List.js +30 -1
  799. package/components/Icons/List.js.map +1 -1
  800. package/components/Icons/Location.d.ts +1 -1
  801. package/components/Icons/Location.d.ts.map +1 -1
  802. package/components/Icons/Location.js +6 -1
  803. package/components/Icons/Location.js.map +1 -1
  804. package/components/Icons/Lock.d.ts +1 -1
  805. package/components/Icons/Lock.d.ts.map +1 -1
  806. package/components/Icons/Lock.js +18 -1
  807. package/components/Icons/Lock.js.map +1 -1
  808. package/components/Icons/Login.d.ts +1 -1
  809. package/components/Icons/Login.d.ts.map +1 -1
  810. package/components/Icons/Login.js +37 -1
  811. package/components/Icons/Login.js.map +1 -1
  812. package/components/Icons/Logout.d.ts +1 -1
  813. package/components/Icons/Logout.d.ts.map +1 -1
  814. package/components/Icons/Logout.js +37 -1
  815. package/components/Icons/Logout.js.map +1 -1
  816. package/components/Icons/Lungs.d.ts +1 -1
  817. package/components/Icons/Lungs.d.ts.map +1 -1
  818. package/components/Icons/Lungs.js +5 -1
  819. package/components/Icons/Lungs.js.map +1 -1
  820. package/components/Icons/Makeup.d.ts +1 -1
  821. package/components/Icons/Makeup.d.ts.map +1 -1
  822. package/components/Icons/Makeup.js +5 -1
  823. package/components/Icons/Makeup.js.map +1 -1
  824. package/components/Icons/MaleDoctor.d.ts +1 -1
  825. package/components/Icons/MaleDoctor.d.ts.map +1 -1
  826. package/components/Icons/MaleDoctor.js +5 -1
  827. package/components/Icons/MaleDoctor.js.map +1 -1
  828. package/components/Icons/MaleDoctorAndPerson.d.ts +1 -1
  829. package/components/Icons/MaleDoctorAndPerson.d.ts.map +1 -1
  830. package/components/Icons/MaleDoctorAndPerson.js +5 -1
  831. package/components/Icons/MaleDoctorAndPerson.js.map +1 -1
  832. package/components/Icons/MaleGenitalia.d.ts +1 -1
  833. package/components/Icons/MaleGenitalia.d.ts.map +1 -1
  834. package/components/Icons/MaleGenitalia.js +5 -1
  835. package/components/Icons/MaleGenitalia.js.map +1 -1
  836. package/components/Icons/Medicine.d.ts +1 -1
  837. package/components/Icons/Medicine.d.ts.map +1 -1
  838. package/components/Icons/Medicine.js +30 -1
  839. package/components/Icons/Medicine.js.map +1 -1
  840. package/components/Icons/MedicineWarning.d.ts +1 -1
  841. package/components/Icons/MedicineWarning.d.ts.map +1 -1
  842. package/components/Icons/MedicineWarning.js +17 -1
  843. package/components/Icons/MedicineWarning.js.map +1 -1
  844. package/components/Icons/MentalHealthAdult.d.ts +1 -1
  845. package/components/Icons/MentalHealthAdult.d.ts.map +1 -1
  846. package/components/Icons/MentalHealthAdult.js +5 -1
  847. package/components/Icons/MentalHealthAdult.js.map +1 -1
  848. package/components/Icons/MentalHealthChild.d.ts +1 -1
  849. package/components/Icons/MentalHealthChild.d.ts.map +1 -1
  850. package/components/Icons/MentalHealthChild.js +5 -1
  851. package/components/Icons/MentalHealthChild.js.map +1 -1
  852. package/components/Icons/Menu.d.ts +1 -1
  853. package/components/Icons/Menu.d.ts.map +1 -1
  854. package/components/Icons/Menu.js +6 -1
  855. package/components/Icons/Menu.js.map +1 -1
  856. package/components/Icons/Microscope.d.ts +1 -1
  857. package/components/Icons/Microscope.d.ts.map +1 -1
  858. package/components/Icons/Microscope.js +17 -1
  859. package/components/Icons/Microscope.js.map +1 -1
  860. package/components/Icons/Minus.d.ts +1 -1
  861. package/components/Icons/Minus.d.ts.map +1 -1
  862. package/components/Icons/Minus.js +6 -1
  863. package/components/Icons/Minus.js.map +1 -1
  864. package/components/Icons/Mirror.d.ts +1 -1
  865. package/components/Icons/Mirror.d.ts.map +1 -1
  866. package/components/Icons/Mirror.js +5 -1
  867. package/components/Icons/Mirror.js.map +1 -1
  868. package/components/Icons/MobilePhone.d.ts +1 -1
  869. package/components/Icons/MobilePhone.d.ts.map +1 -1
  870. package/components/Icons/MobilePhone.js +6 -1
  871. package/components/Icons/MobilePhone.js.map +1 -1
  872. package/components/Icons/MotherHoldingBaby.d.ts +1 -1
  873. package/components/Icons/MotherHoldingBaby.d.ts.map +1 -1
  874. package/components/Icons/MotherHoldingBaby.js +5 -1
  875. package/components/Icons/MotherHoldingBaby.js.map +1 -1
  876. package/components/Icons/MuscleBack.d.ts +1 -1
  877. package/components/Icons/MuscleBack.d.ts.map +1 -1
  878. package/components/Icons/MuscleBack.js +5 -1
  879. package/components/Icons/MuscleBack.js.map +1 -1
  880. package/components/Icons/MuscleLeg.d.ts +1 -1
  881. package/components/Icons/MuscleLeg.d.ts.map +1 -1
  882. package/components/Icons/MuscleLeg.js +5 -1
  883. package/components/Icons/MuscleLeg.js.map +1 -1
  884. package/components/Icons/Mushroom.d.ts +1 -1
  885. package/components/Icons/Mushroom.d.ts.map +1 -1
  886. package/components/Icons/Mushroom.js +5 -1
  887. package/components/Icons/Mushroom.js.map +1 -1
  888. package/components/Icons/Music.d.ts +1 -1
  889. package/components/Icons/Music.d.ts.map +1 -1
  890. package/components/Icons/Music.js +17 -1
  891. package/components/Icons/Music.js.map +1 -1
  892. package/components/Icons/MusselsAndSalt.d.ts +1 -1
  893. package/components/Icons/MusselsAndSalt.d.ts.map +1 -1
  894. package/components/Icons/MusselsAndSalt.js +5 -1
  895. package/components/Icons/MusselsAndSalt.js.map +1 -1
  896. package/components/Icons/NoAccess.d.ts +1 -1
  897. package/components/Icons/NoAccess.d.ts.map +1 -1
  898. package/components/Icons/NoAccess.js +39 -1
  899. package/components/Icons/NoAccess.js.map +1 -1
  900. package/components/Icons/NoEye.d.ts +1 -1
  901. package/components/Icons/NoEye.d.ts.map +1 -1
  902. package/components/Icons/NoEye.js +30 -1
  903. package/components/Icons/NoEye.js.map +1 -1
  904. package/components/Icons/NoFilter.d.ts +1 -1
  905. package/components/Icons/NoFilter.d.ts.map +1 -1
  906. package/components/Icons/NoFilter.js +6 -1
  907. package/components/Icons/NoFilter.js.map +1 -1
  908. package/components/Icons/Notepad.d.ts +1 -1
  909. package/components/Icons/Notepad.d.ts.map +1 -1
  910. package/components/Icons/Notepad.js +5 -1
  911. package/components/Icons/Notepad.js.map +1 -1
  912. package/components/Icons/Osteotomy.d.ts +1 -1
  913. package/components/Icons/Osteotomy.d.ts.map +1 -1
  914. package/components/Icons/Osteotomy.js +17 -1
  915. package/components/Icons/Osteotomy.js.map +1 -1
  916. package/components/Icons/PaintRoller.d.ts +1 -1
  917. package/components/Icons/PaintRoller.d.ts.map +1 -1
  918. package/components/Icons/PaintRoller.js +5 -1
  919. package/components/Icons/PaintRoller.js.map +1 -1
  920. package/components/Icons/PaperPlane.d.ts +1 -1
  921. package/components/Icons/PaperPlane.d.ts.map +1 -1
  922. package/components/Icons/PaperPlane.js +6 -1
  923. package/components/Icons/PaperPlane.js.map +1 -1
  924. package/components/Icons/PatientAndPerson.d.ts +1 -1
  925. package/components/Icons/PatientAndPerson.d.ts.map +1 -1
  926. package/components/Icons/PatientAndPerson.js +5 -1
  927. package/components/Icons/PatientAndPerson.js.map +1 -1
  928. package/components/Icons/Pause.d.ts +1 -1
  929. package/components/Icons/Pause.d.ts.map +1 -1
  930. package/components/Icons/Pause.js +6 -1
  931. package/components/Icons/Pause.js.map +1 -1
  932. package/components/Icons/PdfFile.d.ts +1 -1
  933. package/components/Icons/PdfFile.d.ts.map +1 -1
  934. package/components/Icons/PdfFile.js +17 -1
  935. package/components/Icons/PdfFile.js.map +1 -1
  936. package/components/Icons/Pencil.d.ts +1 -1
  937. package/components/Icons/Pencil.d.ts.map +1 -1
  938. package/components/Icons/Pencil.js +6 -1
  939. package/components/Icons/Pencil.js.map +1 -1
  940. package/components/Icons/PeopleTalking.d.ts +1 -1
  941. package/components/Icons/PeopleTalking.d.ts.map +1 -1
  942. package/components/Icons/PeopleTalking.js +17 -1
  943. package/components/Icons/PeopleTalking.js.map +1 -1
  944. package/components/Icons/Peritonealdialysis.d.ts +1 -1
  945. package/components/Icons/Peritonealdialysis.d.ts.map +1 -1
  946. package/components/Icons/Peritonealdialysis.js +17 -1
  947. package/components/Icons/Peritonealdialysis.js.map +1 -1
  948. package/components/Icons/Person.d.ts +1 -1
  949. package/components/Icons/Person.d.ts.map +1 -1
  950. package/components/Icons/Person.js +5 -1
  951. package/components/Icons/Person.js.map +1 -1
  952. package/components/Icons/PersonAndPatient.d.ts +1 -1
  953. package/components/Icons/PersonAndPatient.d.ts.map +1 -1
  954. package/components/Icons/PersonAndPatient.js +5 -1
  955. package/components/Icons/PersonAndPatient.js.map +1 -1
  956. package/components/Icons/PersonCancel.d.ts +1 -1
  957. package/components/Icons/PersonCancel.d.ts.map +1 -1
  958. package/components/Icons/PersonCancel.js +57 -1
  959. package/components/Icons/PersonCancel.js.map +1 -1
  960. package/components/Icons/PersonInXRayMachine.d.ts +1 -1
  961. package/components/Icons/PersonInXRayMachine.d.ts.map +1 -1
  962. package/components/Icons/PersonInXRayMachine.js +17 -1
  963. package/components/Icons/PersonInXRayMachine.js.map +1 -1
  964. package/components/Icons/PersonOverweight.d.ts +1 -1
  965. package/components/Icons/PersonOverweight.d.ts.map +1 -1
  966. package/components/Icons/PersonOverweight.js +5 -1
  967. package/components/Icons/PersonOverweight.js.map +1 -1
  968. package/components/Icons/PersonRelaxing.d.ts +1 -1
  969. package/components/Icons/PersonRelaxing.d.ts.map +1 -1
  970. package/components/Icons/PersonRelaxing.js +5 -1
  971. package/components/Icons/PersonRelaxing.js.map +1 -1
  972. package/components/Icons/PersonWithBrain.d.ts +1 -1
  973. package/components/Icons/PersonWithBrain.d.ts.map +1 -1
  974. package/components/Icons/PersonWithBrain.js +5 -1
  975. package/components/Icons/PersonWithBrain.js.map +1 -1
  976. package/components/Icons/PersonWithBrokenArm.d.ts +1 -1
  977. package/components/Icons/PersonWithBrokenArm.d.ts.map +1 -1
  978. package/components/Icons/PersonWithBrokenArm.js +5 -1
  979. package/components/Icons/PersonWithBrokenArm.js.map +1 -1
  980. package/components/Icons/PersonWithCrutches.d.ts +1 -1
  981. package/components/Icons/PersonWithCrutches.d.ts.map +1 -1
  982. package/components/Icons/PersonWithCrutches.js +5 -1
  983. package/components/Icons/PersonWithCrutches.js.map +1 -1
  984. package/components/Icons/PersonWithJaw.d.ts +1 -1
  985. package/components/Icons/PersonWithJaw.d.ts.map +1 -1
  986. package/components/Icons/PersonWithJaw.js +5 -1
  987. package/components/Icons/PersonWithJaw.js.map +1 -1
  988. package/components/Icons/PersonWithMagnifyingGlass.d.ts +1 -1
  989. package/components/Icons/PersonWithMagnifyingGlass.d.ts.map +1 -1
  990. package/components/Icons/PersonWithMagnifyingGlass.js +5 -1
  991. package/components/Icons/PersonWithMagnifyingGlass.js.map +1 -1
  992. package/components/Icons/PersonWithSenses.d.ts +1 -1
  993. package/components/Icons/PersonWithSenses.d.ts.map +1 -1
  994. package/components/Icons/PersonWithSenses.js +5 -1
  995. package/components/Icons/PersonWithSenses.js.map +1 -1
  996. package/components/Icons/PersonWorking.d.ts +1 -1
  997. package/components/Icons/PersonWorking.d.ts.map +1 -1
  998. package/components/Icons/PersonWorking.js +5 -1
  999. package/components/Icons/PersonWorking.js.map +1 -1
  1000. package/components/Icons/PersonalPlan.d.ts +1 -1
  1001. package/components/Icons/PersonalPlan.d.ts.map +1 -1
  1002. package/components/Icons/PersonalPlan.js +33 -1
  1003. package/components/Icons/PersonalPlan.js.map +1 -1
  1004. package/components/Icons/PizzaSlice.d.ts +1 -1
  1005. package/components/Icons/PizzaSlice.d.ts.map +1 -1
  1006. package/components/Icons/PizzaSlice.js +5 -1
  1007. package/components/Icons/PizzaSlice.js.map +1 -1
  1008. package/components/Icons/Plane.d.ts +1 -1
  1009. package/components/Icons/Plane.d.ts.map +1 -1
  1010. package/components/Icons/Plane.js +5 -1
  1011. package/components/Icons/Plane.js.map +1 -1
  1012. package/components/Icons/Plant.d.ts +1 -1
  1013. package/components/Icons/Plant.d.ts.map +1 -1
  1014. package/components/Icons/Plant.js +5 -1
  1015. package/components/Icons/Plant.js.map +1 -1
  1016. package/components/Icons/Play.d.ts +1 -1
  1017. package/components/Icons/Play.d.ts.map +1 -1
  1018. package/components/Icons/Play.js +6 -1
  1019. package/components/Icons/Play.js.map +1 -1
  1020. package/components/Icons/PlusLarge.d.ts +1 -1
  1021. package/components/Icons/PlusLarge.d.ts.map +1 -1
  1022. package/components/Icons/PlusLarge.js +6 -1
  1023. package/components/Icons/PlusLarge.js.map +1 -1
  1024. package/components/Icons/PlusSmall.d.ts +1 -1
  1025. package/components/Icons/PlusSmall.d.ts.map +1 -1
  1026. package/components/Icons/PlusSmall.js +6 -1
  1027. package/components/Icons/PlusSmall.js.map +1 -1
  1028. package/components/Icons/PngFile.d.ts +1 -1
  1029. package/components/Icons/PngFile.d.ts.map +1 -1
  1030. package/components/Icons/PngFile.js +17 -1
  1031. package/components/Icons/PngFile.js.map +1 -1
  1032. package/components/Icons/Podcast.d.ts +1 -1
  1033. package/components/Icons/Podcast.d.ts.map +1 -1
  1034. package/components/Icons/Podcast.js +17 -1
  1035. package/components/Icons/Podcast.js.map +1 -1
  1036. package/components/Icons/PoisonInformation.d.ts +1 -1
  1037. package/components/Icons/PoisonInformation.d.ts.map +1 -1
  1038. package/components/Icons/PoisonInformation.js +5 -1
  1039. package/components/Icons/PoisonInformation.js.map +1 -1
  1040. package/components/Icons/Pregnant.d.ts +1 -1
  1041. package/components/Icons/Pregnant.d.ts.map +1 -1
  1042. package/components/Icons/Pregnant.js +5 -1
  1043. package/components/Icons/Pregnant.js.map +1 -1
  1044. package/components/Icons/Printer.d.ts +1 -1
  1045. package/components/Icons/Printer.d.ts.map +1 -1
  1046. package/components/Icons/Printer.js +30 -1
  1047. package/components/Icons/Printer.js.map +1 -1
  1048. package/components/Icons/Psychosis.d.ts +1 -1
  1049. package/components/Icons/Psychosis.d.ts.map +1 -1
  1050. package/components/Icons/Psychosis.js +5 -1
  1051. package/components/Icons/Psychosis.js.map +1 -1
  1052. package/components/Icons/Publication.d.ts +1 -1
  1053. package/components/Icons/Publication.d.ts.map +1 -1
  1054. package/components/Icons/Publication.js +17 -1
  1055. package/components/Icons/Publication.js.map +1 -1
  1056. package/components/Icons/Puzzle.d.ts +1 -1
  1057. package/components/Icons/Puzzle.d.ts.map +1 -1
  1058. package/components/Icons/Puzzle.js +5 -1
  1059. package/components/Icons/Puzzle.js.map +1 -1
  1060. package/components/Icons/QrCode.d.ts +1 -1
  1061. package/components/Icons/QrCode.d.ts.map +1 -1
  1062. package/components/Icons/QrCode.js +30 -1
  1063. package/components/Icons/QrCode.js.map +1 -1
  1064. package/components/Icons/Quarrel.d.ts +1 -1
  1065. package/components/Icons/Quarrel.d.ts.map +1 -1
  1066. package/components/Icons/Quarrel.js +17 -1
  1067. package/components/Icons/Quarrel.js.map +1 -1
  1068. package/components/Icons/RadioTherapy.d.ts +1 -1
  1069. package/components/Icons/RadioTherapy.d.ts.map +1 -1
  1070. package/components/Icons/RadioTherapy.js +17 -1
  1071. package/components/Icons/RadioTherapy.js.map +1 -1
  1072. package/components/Icons/RadioactiveTreatment.d.ts +1 -1
  1073. package/components/Icons/RadioactiveTreatment.d.ts.map +1 -1
  1074. package/components/Icons/RadioactiveTreatment.js +17 -1
  1075. package/components/Icons/RadioactiveTreatment.js.map +1 -1
  1076. package/components/Icons/Radioiodine.d.ts +1 -1
  1077. package/components/Icons/Radioiodine.d.ts.map +1 -1
  1078. package/components/Icons/Radioiodine.js +17 -1
  1079. package/components/Icons/Radioiodine.js.map +1 -1
  1080. package/components/Icons/Receipt.d.ts +1 -1
  1081. package/components/Icons/Receipt.d.ts.map +1 -1
  1082. package/components/Icons/Receipt.js +5 -1
  1083. package/components/Icons/Receipt.js.map +1 -1
  1084. package/components/Icons/Receptionist.d.ts +1 -1
  1085. package/components/Icons/Receptionist.d.ts.map +1 -1
  1086. package/components/Icons/Receptionist.js +6 -1
  1087. package/components/Icons/Receptionist.js.map +1 -1
  1088. package/components/Icons/Recovery.d.ts +1 -1
  1089. package/components/Icons/Recovery.d.ts.map +1 -1
  1090. package/components/Icons/Recovery.js +17 -1
  1091. package/components/Icons/Recovery.js.map +1 -1
  1092. package/components/Icons/Referral.d.ts +1 -1
  1093. package/components/Icons/Referral.d.ts.map +1 -1
  1094. package/components/Icons/Referral.js +6 -1
  1095. package/components/Icons/Referral.js.map +1 -1
  1096. package/components/Icons/Refresh.d.ts +1 -1
  1097. package/components/Icons/Refresh.d.ts.map +1 -1
  1098. package/components/Icons/Refresh.js +6 -1
  1099. package/components/Icons/Refresh.js.map +1 -1
  1100. package/components/Icons/Refund.d.ts +1 -1
  1101. package/components/Icons/Refund.d.ts.map +1 -1
  1102. package/components/Icons/Refund.js +5 -1
  1103. package/components/Icons/Refund.js.map +1 -1
  1104. package/components/Icons/Reply.d.ts +1 -1
  1105. package/components/Icons/Reply.d.ts.map +1 -1
  1106. package/components/Icons/Reply.js +6 -1
  1107. package/components/Icons/Reply.js.map +1 -1
  1108. package/components/Icons/Rocket.d.ts +1 -1
  1109. package/components/Icons/Rocket.d.ts.map +1 -1
  1110. package/components/Icons/Rocket.js +5 -1
  1111. package/components/Icons/Rocket.js.map +1 -1
  1112. package/components/Icons/RtfFile.d.ts +1 -1
  1113. package/components/Icons/RtfFile.d.ts.map +1 -1
  1114. package/components/Icons/RtfFile.js +17 -1
  1115. package/components/Icons/RtfFile.js.map +1 -1
  1116. package/components/Icons/STDs.d.ts +1 -1
  1117. package/components/Icons/STDs.d.ts.map +1 -1
  1118. package/components/Icons/STDs.js +17 -1
  1119. package/components/Icons/STDs.js.map +1 -1
  1120. package/components/Icons/Save.d.ts +1 -1
  1121. package/components/Icons/Save.d.ts.map +1 -1
  1122. package/components/Icons/Save.js +6 -1
  1123. package/components/Icons/Save.js.map +1 -1
  1124. package/components/Icons/Scale.d.ts +1 -1
  1125. package/components/Icons/Scale.d.ts.map +1 -1
  1126. package/components/Icons/Scale.js +5 -1
  1127. package/components/Icons/Scale.js.map +1 -1
  1128. package/components/Icons/ScreenReader.d.ts +1 -1
  1129. package/components/Icons/ScreenReader.d.ts.map +1 -1
  1130. package/components/Icons/ScreenReader.js +36 -1
  1131. package/components/Icons/ScreenReader.js.map +1 -1
  1132. package/components/Icons/Search.d.ts +1 -1
  1133. package/components/Icons/Search.d.ts.map +1 -1
  1134. package/components/Icons/Search.js +6 -1
  1135. package/components/Icons/Search.js.map +1 -1
  1136. package/components/Icons/SectionSign.d.ts +1 -1
  1137. package/components/Icons/SectionSign.d.ts.map +1 -1
  1138. package/components/Icons/SectionSign.js +30 -1
  1139. package/components/Icons/SectionSign.js.map +1 -1
  1140. package/components/Icons/Settings.d.ts +1 -1
  1141. package/components/Icons/Settings.d.ts.map +1 -1
  1142. package/components/Icons/Settings.js +30 -1
  1143. package/components/Icons/Settings.js.map +1 -1
  1144. package/components/Icons/Sexualorientation.d.ts +1 -1
  1145. package/components/Icons/Sexualorientation.d.ts.map +1 -1
  1146. package/components/Icons/Sexualorientation.js +17 -1
  1147. package/components/Icons/Sexualorientation.js.map +1 -1
  1148. package/components/Icons/ShakingHand.d.ts +1 -1
  1149. package/components/Icons/ShakingHand.d.ts.map +1 -1
  1150. package/components/Icons/ShakingHand.js +11 -1
  1151. package/components/Icons/ShakingHand.js.map +1 -1
  1152. package/components/Icons/Share.d.ts +1 -1
  1153. package/components/Icons/Share.d.ts.map +1 -1
  1154. package/components/Icons/Share.js +6 -1
  1155. package/components/Icons/Share.js.map +1 -1
  1156. package/components/Icons/Shield.d.ts +1 -1
  1157. package/components/Icons/Shield.d.ts.map +1 -1
  1158. package/components/Icons/Shield.js +17 -1
  1159. package/components/Icons/Shield.js.map +1 -1
  1160. package/components/Icons/ShuntOperation.d.ts +1 -1
  1161. package/components/Icons/ShuntOperation.d.ts.map +1 -1
  1162. package/components/Icons/ShuntOperation.js +17 -1
  1163. package/components/Icons/ShuntOperation.js.map +1 -1
  1164. package/components/Icons/Skeleton.d.ts +1 -1
  1165. package/components/Icons/Skeleton.d.ts.map +1 -1
  1166. package/components/Icons/Skeleton.js +5 -1
  1167. package/components/Icons/Skeleton.js.map +1 -1
  1168. package/components/Icons/Skin.d.ts +1 -1
  1169. package/components/Icons/Skin.d.ts.map +1 -1
  1170. package/components/Icons/Skin.js +5 -1
  1171. package/components/Icons/Skin.js.map +1 -1
  1172. package/components/Icons/Snake.d.ts +1 -1
  1173. package/components/Icons/Snake.d.ts.map +1 -1
  1174. package/components/Icons/Snake.js +5 -1
  1175. package/components/Icons/Snake.js.map +1 -1
  1176. package/components/Icons/Snapchat.d.ts +1 -1
  1177. package/components/Icons/Snapchat.d.ts.map +1 -1
  1178. package/components/Icons/Snapchat.js +5 -1
  1179. package/components/Icons/Snapchat.js.map +1 -1
  1180. package/components/Icons/SortDown.d.ts +1 -1
  1181. package/components/Icons/SortDown.d.ts.map +1 -1
  1182. package/components/Icons/SortDown.js +9 -1
  1183. package/components/Icons/SortDown.js.map +1 -1
  1184. package/components/Icons/SortUp.d.ts +1 -1
  1185. package/components/Icons/SortUp.d.ts.map +1 -1
  1186. package/components/Icons/SortUp.js +9 -1
  1187. package/components/Icons/SortUp.js.map +1 -1
  1188. package/components/Icons/SpeechBubble.d.ts +1 -1
  1189. package/components/Icons/SpeechBubble.d.ts.map +1 -1
  1190. package/components/Icons/SpeechBubble.js +30 -1
  1191. package/components/Icons/SpeechBubble.js.map +1 -1
  1192. package/components/Icons/Spray.d.ts +1 -1
  1193. package/components/Icons/Spray.d.ts.map +1 -1
  1194. package/components/Icons/Spray.js +5 -1
  1195. package/components/Icons/Spray.js.map +1 -1
  1196. package/components/Icons/Stopwatch.d.ts +1 -1
  1197. package/components/Icons/Stopwatch.d.ts.map +1 -1
  1198. package/components/Icons/Stopwatch.js +30 -1
  1199. package/components/Icons/Stopwatch.js.map +1 -1
  1200. package/components/Icons/Sun.d.ts +1 -1
  1201. package/components/Icons/Sun.d.ts.map +1 -1
  1202. package/components/Icons/Sun.js +22 -1
  1203. package/components/Icons/Sun.js.map +1 -1
  1204. package/components/Icons/SupportingPerson.d.ts +1 -1
  1205. package/components/Icons/SupportingPerson.d.ts.map +1 -1
  1206. package/components/Icons/SupportingPerson.js +41 -1
  1207. package/components/Icons/SupportingPerson.js.map +1 -1
  1208. package/components/Icons/Surgery.d.ts +1 -1
  1209. package/components/Icons/Surgery.d.ts.map +1 -1
  1210. package/components/Icons/Surgery.js +17 -1
  1211. package/components/Icons/Surgery.js.map +1 -1
  1212. package/components/Icons/Syringe.d.ts +1 -1
  1213. package/components/Icons/Syringe.d.ts.map +1 -1
  1214. package/components/Icons/Syringe.js +22 -1
  1215. package/components/Icons/Syringe.js.map +1 -1
  1216. package/components/Icons/Taxi.d.ts +1 -1
  1217. package/components/Icons/Taxi.d.ts.map +1 -1
  1218. package/components/Icons/Taxi.js +5 -1
  1219. package/components/Icons/Taxi.js.map +1 -1
  1220. package/components/Icons/TeddyBear.d.ts +1 -1
  1221. package/components/Icons/TeddyBear.d.ts.map +1 -1
  1222. package/components/Icons/TeddyBear.js +5 -1
  1223. package/components/Icons/TeddyBear.js.map +1 -1
  1224. package/components/Icons/Teenagers.d.ts +1 -1
  1225. package/components/Icons/Teenagers.d.ts.map +1 -1
  1226. package/components/Icons/Teenagers.js +17 -1
  1227. package/components/Icons/Teenagers.js.map +1 -1
  1228. package/components/Icons/ThinkingAboutBaby.d.ts +1 -1
  1229. package/components/Icons/ThinkingAboutBaby.d.ts.map +1 -1
  1230. package/components/Icons/ThinkingAboutBaby.js +5 -1
  1231. package/components/Icons/ThinkingAboutBaby.js.map +1 -1
  1232. package/components/Icons/Ticket.d.ts +1 -1
  1233. package/components/Icons/Ticket.d.ts.map +1 -1
  1234. package/components/Icons/Ticket.js +5 -1
  1235. package/components/Icons/Ticket.js.map +1 -1
  1236. package/components/Icons/TimePassing.d.ts +1 -1
  1237. package/components/Icons/TimePassing.d.ts.map +1 -1
  1238. package/components/Icons/TimePassing.js +30 -1
  1239. package/components/Icons/TimePassing.js.map +1 -1
  1240. package/components/Icons/Tombstone.d.ts +1 -1
  1241. package/components/Icons/Tombstone.d.ts.map +1 -1
  1242. package/components/Icons/Tombstone.js +21 -1
  1243. package/components/Icons/Tombstone.js.map +1 -1
  1244. package/components/Icons/Toolbox.d.ts +1 -1
  1245. package/components/Icons/Toolbox.d.ts.map +1 -1
  1246. package/components/Icons/Toolbox.js +42 -1
  1247. package/components/Icons/Toolbox.js.map +1 -1
  1248. package/components/Icons/Tooth.d.ts +1 -1
  1249. package/components/Icons/Tooth.d.ts.map +1 -1
  1250. package/components/Icons/Tooth.js +5 -1
  1251. package/components/Icons/Tooth.js.map +1 -1
  1252. package/components/Icons/TotalKneeProsthesis.d.ts +1 -1
  1253. package/components/Icons/TotalKneeProsthesis.d.ts.map +1 -1
  1254. package/components/Icons/TotalKneeProsthesis.js +17 -1
  1255. package/components/Icons/TotalKneeProsthesis.js.map +1 -1
  1256. package/components/Icons/Train.d.ts +1 -1
  1257. package/components/Icons/Train.d.ts.map +1 -1
  1258. package/components/Icons/Train.js +5 -1
  1259. package/components/Icons/Train.js.map +1 -1
  1260. package/components/Icons/Transplantation.d.ts +1 -1
  1261. package/components/Icons/Transplantation.d.ts.map +1 -1
  1262. package/components/Icons/Transplantation.js +17 -1
  1263. package/components/Icons/Transplantation.js.map +1 -1
  1264. package/components/Icons/TrashCan.d.ts +1 -1
  1265. package/components/Icons/TrashCan.d.ts.map +1 -1
  1266. package/components/Icons/TrashCan.js +30 -1
  1267. package/components/Icons/TrashCan.js.map +1 -1
  1268. package/components/Icons/TravelRoute.d.ts +1 -1
  1269. package/components/Icons/TravelRoute.d.ts.map +1 -1
  1270. package/components/Icons/TravelRoute.js +50 -1
  1271. package/components/Icons/TravelRoute.js.map +1 -1
  1272. package/components/Icons/TriangleX.d.ts +1 -1
  1273. package/components/Icons/TriangleX.d.ts.map +1 -1
  1274. package/components/Icons/TriangleX.js +37 -1
  1275. package/components/Icons/TriangleX.js.map +1 -1
  1276. package/components/Icons/Twitter.d.ts +1 -1
  1277. package/components/Icons/Twitter.d.ts.map +1 -1
  1278. package/components/Icons/Twitter.js +5 -1
  1279. package/components/Icons/Twitter.js.map +1 -1
  1280. package/components/Icons/Undo.d.ts +1 -1
  1281. package/components/Icons/Undo.d.ts.map +1 -1
  1282. package/components/Icons/Undo.js +42 -1
  1283. package/components/Icons/Undo.js.map +1 -1
  1284. package/components/Icons/UniProsthesis.d.ts +1 -1
  1285. package/components/Icons/UniProsthesis.d.ts.map +1 -1
  1286. package/components/Icons/UniProsthesis.js +17 -1
  1287. package/components/Icons/UniProsthesis.js.map +1 -1
  1288. package/components/Icons/Upload.d.ts +1 -1
  1289. package/components/Icons/Upload.d.ts.map +1 -1
  1290. package/components/Icons/Upload.js +6 -1
  1291. package/components/Icons/Upload.js.map +1 -1
  1292. package/components/Icons/UserOrganization.d.ts +1 -1
  1293. package/components/Icons/UserOrganization.d.ts.map +1 -1
  1294. package/components/Icons/UserOrganization.js +5 -1
  1295. package/components/Icons/UserOrganization.js.map +1 -1
  1296. package/components/Icons/Vaccine.d.ts +1 -1
  1297. package/components/Icons/Vaccine.d.ts.map +1 -1
  1298. package/components/Icons/Vaccine.js +30 -1
  1299. package/components/Icons/Vaccine.js.map +1 -1
  1300. package/components/Icons/VerticalDots.d.ts +1 -1
  1301. package/components/Icons/VerticalDots.d.ts.map +1 -1
  1302. package/components/Icons/VerticalDots.js +6 -1
  1303. package/components/Icons/VerticalDots.js.map +1 -1
  1304. package/components/Icons/VideoCamera.d.ts +1 -1
  1305. package/components/Icons/VideoCamera.d.ts.map +1 -1
  1306. package/components/Icons/VideoCamera.js +30 -1
  1307. package/components/Icons/VideoCamera.js.map +1 -1
  1308. package/components/Icons/VideoChat.d.ts +1 -1
  1309. package/components/Icons/VideoChat.d.ts.map +1 -1
  1310. package/components/Icons/VideoChat.js +6 -1
  1311. package/components/Icons/VideoChat.js.map +1 -1
  1312. package/components/Icons/Wallet.d.ts +1 -1
  1313. package/components/Icons/Wallet.d.ts.map +1 -1
  1314. package/components/Icons/Wallet.js +6 -1
  1315. package/components/Icons/Wallet.js.map +1 -1
  1316. package/components/Icons/Watch.d.ts +1 -1
  1317. package/components/Icons/Watch.d.ts.map +1 -1
  1318. package/components/Icons/Watch.js +30 -1
  1319. package/components/Icons/Watch.js.map +1 -1
  1320. package/components/Icons/Website.d.ts +1 -1
  1321. package/components/Icons/Website.d.ts.map +1 -1
  1322. package/components/Icons/Website.js +17 -1
  1323. package/components/Icons/Website.js.map +1 -1
  1324. package/components/Icons/Wheelchair.d.ts +1 -1
  1325. package/components/Icons/Wheelchair.d.ts.map +1 -1
  1326. package/components/Icons/Wheelchair.js +17 -1
  1327. package/components/Icons/Wheelchair.js.map +1 -1
  1328. package/components/Icons/WheelchairActive.d.ts +1 -1
  1329. package/components/Icons/WheelchairActive.d.ts.map +1 -1
  1330. package/components/Icons/WheelchairActive.js +17 -1
  1331. package/components/Icons/WheelchairActive.js.map +1 -1
  1332. package/components/Icons/Window.d.ts +1 -1
  1333. package/components/Icons/Window.d.ts.map +1 -1
  1334. package/components/Icons/Window.js +5 -1
  1335. package/components/Icons/Window.js.map +1 -1
  1336. package/components/Icons/WordDocument.d.ts +1 -1
  1337. package/components/Icons/WordDocument.d.ts.map +1 -1
  1338. package/components/Icons/WordDocument.js +11 -1
  1339. package/components/Icons/WordDocument.js.map +1 -1
  1340. package/components/Icons/WorkSuitcase.d.ts +1 -1
  1341. package/components/Icons/WorkSuitcase.d.ts.map +1 -1
  1342. package/components/Icons/WorkSuitcase.js +11 -1
  1343. package/components/Icons/WorkSuitcase.js.map +1 -1
  1344. package/components/Icons/X.d.ts +1 -1
  1345. package/components/Icons/X.d.ts.map +1 -1
  1346. package/components/Icons/X.js +6 -1
  1347. package/components/Icons/X.js.map +1 -1
  1348. package/components/Icons/XOutline.d.ts +1 -1
  1349. package/components/Icons/XOutline.d.ts.map +1 -1
  1350. package/components/Icons/XOutline.js +17 -1
  1351. package/components/Icons/XOutline.js.map +1 -1
  1352. package/components/Icons/XmlFile.d.ts +1 -1
  1353. package/components/Icons/XmlFile.d.ts.map +1 -1
  1354. package/components/Icons/XmlFile.js +17 -1
  1355. package/components/Icons/XmlFile.js.map +1 -1
  1356. package/components/Icons/YouTube.d.ts +1 -1
  1357. package/components/Icons/YouTube.d.ts.map +1 -1
  1358. package/components/Icons/YouTube.js +5 -1
  1359. package/components/Icons/YouTube.js.map +1 -1
  1360. package/components/Icons/Zoom.d.ts +1 -1
  1361. package/components/Icons/Zoom.d.ts.map +1 -1
  1362. package/components/Icons/Zoom.js +30 -1
  1363. package/components/Icons/Zoom.js.map +1 -1
  1364. package/components/Input/Input.d.ts +5 -4
  1365. package/components/Input/Input.d.ts.map +1 -1
  1366. package/components/Input/Input.js +112 -0
  1367. package/components/Input/Input.js.map +1 -0
  1368. package/components/Input/index.js +6 -1
  1369. package/components/Input/index.js.map +1 -1
  1370. package/components/Input/styles.module.scss +3 -3
  1371. package/components/Input/styles.module.scss.d.ts +2 -2
  1372. package/components/Label/Label.d.ts +1 -1
  1373. package/components/Label/Label.d.ts.map +1 -1
  1374. package/components/Label/Label.js +84 -0
  1375. package/components/Label/Label.js.map +1 -0
  1376. package/components/Label/SubLabel.js +19 -0
  1377. package/components/Label/SubLabel.js.map +1 -0
  1378. package/components/Label/index.js +10 -1
  1379. package/components/Label/index.js.map +1 -1
  1380. package/components/LazyIcon/ErrorBoundary.d.ts +17 -0
  1381. package/components/LazyIcon/ErrorBoundary.d.ts.map +1 -0
  1382. package/components/LazyIcon/ErrorBoundary.js +22 -0
  1383. package/components/LazyIcon/ErrorBoundary.js.map +1 -0
  1384. package/components/LazyIcon/LazyIcon.d.ts +10 -0
  1385. package/components/LazyIcon/LazyIcon.d.ts.map +1 -0
  1386. package/components/LazyIcon/LazyIcon.js +29 -0
  1387. package/components/LazyIcon/LazyIcon.js.map +1 -0
  1388. package/components/LazyIcon/index.d.ts +4 -0
  1389. package/components/LazyIcon/index.d.ts.map +1 -0
  1390. package/components/LazyIcon/index.js +8 -0
  1391. package/components/{Icons → LazyIcon}/index.js.map +1 -1
  1392. package/components/LinkList/LinkList.js +60 -0
  1393. package/components/LinkList/LinkList.js.map +1 -0
  1394. package/components/LinkList/index.js +6 -1
  1395. package/components/LinkList/index.js.map +1 -1
  1396. package/components/List/List.js +14 -0
  1397. package/components/List/List.js.map +1 -0
  1398. package/components/List/index.js +4 -1
  1399. package/components/List/index.js.map +1 -1
  1400. package/components/ListHeader/ListHeader.d.ts +1 -1
  1401. package/components/ListHeader/ListHeader.d.ts.map +1 -1
  1402. package/components/ListHeader/ListHeader.js +73 -0
  1403. package/components/ListHeader/ListHeader.js.map +1 -0
  1404. package/components/ListHeader/ListHeaderText/ListHeaderText.js +31 -0
  1405. package/components/ListHeader/ListHeaderText/ListHeaderText.js.map +1 -0
  1406. package/components/ListHeader/ListHeaderText/index.js +6 -1
  1407. package/components/ListHeader/ListHeaderText/index.js.map +1 -1
  1408. package/components/ListHeader/index.js +10 -1
  1409. package/components/ListHeader/index.js.map +1 -1
  1410. package/components/Loader/Loader.js +68 -0
  1411. package/components/Loader/Loader.js.map +1 -0
  1412. package/components/Loader/index.js +6 -1
  1413. package/components/Loader/index.js.map +1 -1
  1414. package/components/Logo/Logo.js +40 -0
  1415. package/components/Logo/Logo.js.map +1 -0
  1416. package/components/Logo/index.js +4 -1
  1417. package/components/Logo/index.js.map +1 -1
  1418. package/components/MaxCharacters/MaxCharacters.js +15 -0
  1419. package/components/MaxCharacters/MaxCharacters.js.map +1 -0
  1420. package/components/Modal/Modal.js +143 -0
  1421. package/components/Modal/Modal.js.map +1 -0
  1422. package/components/Modal/index.js +7 -1
  1423. package/components/Modal/index.js.map +1 -1
  1424. package/components/NotificationPanel/DetailButton/DetailButton.js +28 -0
  1425. package/components/NotificationPanel/DetailButton/DetailButton.js.map +1 -0
  1426. package/components/NotificationPanel/NotificationPanel.js +126 -0
  1427. package/components/NotificationPanel/NotificationPanel.js.map +1 -0
  1428. package/components/NotificationPanel/index.js +4 -1
  1429. package/components/NotificationPanel/index.js.map +1 -1
  1430. package/components/Panel/Panel.js +191 -0
  1431. package/components/Panel/Panel.js.map +1 -0
  1432. package/components/Panel/index.js +8 -1
  1433. package/components/Panel/index.js.map +1 -1
  1434. package/components/PanelList/PanelList.js +17 -0
  1435. package/components/PanelList/PanelList.js.map +1 -0
  1436. package/components/PanelList/index.js +4 -1
  1437. package/components/PanelList/index.js.map +1 -1
  1438. package/components/PopMenu/PopMenu.js +77 -0
  1439. package/components/PopMenu/PopMenu.js.map +1 -0
  1440. package/components/PopMenu/index.js +7 -1
  1441. package/components/PopMenu/index.js.map +1 -1
  1442. package/components/PopOver/PopOver.js +56 -0
  1443. package/components/PopOver/PopOver.js.map +1 -0
  1444. package/components/PopOver/index.js +6 -1
  1445. package/components/PopOver/index.js.map +1 -1
  1446. package/components/PopOver/utils.js +33 -0
  1447. package/components/PopOver/utils.js.map +1 -0
  1448. package/components/Portal/index.js +15 -1
  1449. package/components/Portal/index.js.map +1 -1
  1450. package/components/RadioButton/RadioButton.d.ts +4 -4
  1451. package/components/RadioButton/RadioButton.d.ts.map +1 -1
  1452. package/components/RadioButton/RadioButton.js +102 -0
  1453. package/components/RadioButton/RadioButton.js.map +1 -0
  1454. package/components/RadioButton/index.js +7 -1
  1455. package/components/RadioButton/index.js.map +1 -1
  1456. package/components/RadioButton/styles.module.scss +12 -12
  1457. package/components/RadioButton/styles.module.scss.d.ts +14 -14
  1458. package/components/Select/Select.js +69 -0
  1459. package/components/Select/Select.js.map +1 -0
  1460. package/components/Select/index.js +6 -1
  1461. package/components/Select/index.js.map +1 -1
  1462. package/components/ServiceMessage/ServiceMessage.js +106 -0
  1463. package/components/ServiceMessage/ServiceMessage.js.map +1 -0
  1464. package/components/ServiceMessage/index.js +4 -1
  1465. package/components/ServiceMessage/index.js.map +1 -1
  1466. package/components/Slider/Slider.js +125 -0
  1467. package/components/Slider/Slider.js.map +1 -0
  1468. package/components/Slider/index.js +6 -1
  1469. package/components/Slider/index.js.map +1 -1
  1470. package/components/Spacer/Spacer.js +30 -0
  1471. package/components/Spacer/Spacer.js.map +1 -0
  1472. package/components/Spacer/index.js +4 -1
  1473. package/components/Spacer/index.js.map +1 -1
  1474. package/components/StatusDot/StatusDot.js +27 -0
  1475. package/{StatusDot.js.map → components/StatusDot/StatusDot.js.map} +1 -1
  1476. package/components/StatusDot/index.js +7 -1
  1477. package/components/StatusDot/index.js.map +1 -1
  1478. package/components/StatusDot/styles.module.scss +12 -3
  1479. package/components/Step/Step.js +30 -0
  1480. package/components/Step/Step.js.map +1 -0
  1481. package/components/Step/index.js +4 -1
  1482. package/components/Step/index.js.map +1 -1
  1483. package/components/StepButtons/StepButtons.js +21 -0
  1484. package/components/StepButtons/StepButtons.js.map +1 -0
  1485. package/components/StepButtons/index.js +6 -1
  1486. package/components/StepButtons/index.js.map +1 -1
  1487. package/components/Stepper/Dot.js +16 -0
  1488. package/components/Stepper/Dot.js.map +1 -0
  1489. package/components/Stepper/DotList.js +7 -0
  1490. package/components/Stepper/DotList.js.map +1 -0
  1491. package/components/Stepper/Stepper.js +35 -0
  1492. package/components/Stepper/Stepper.js.map +1 -0
  1493. package/components/Stepper/index.js +4 -1
  1494. package/components/Stepper/index.js.map +1 -1
  1495. package/components/Stepper/utils.js +16 -0
  1496. package/components/Stepper/utils.js.map +1 -0
  1497. package/components/Table/Table.js +57 -0
  1498. package/components/Table/Table.js.map +1 -0
  1499. package/components/Table/TableBody/TableBody.js +13 -0
  1500. package/components/Table/TableBody/TableBody.js.map +1 -0
  1501. package/components/Table/TableBody/index.js +6 -1
  1502. package/components/Table/TableBody/index.js.map +1 -1
  1503. package/components/Table/TableCell/TableCell.js +30 -0
  1504. package/components/Table/TableCell/TableCell.js.map +1 -0
  1505. package/components/Table/TableCell/index.js +7 -1
  1506. package/components/Table/TableCell/index.js.map +1 -1
  1507. package/components/Table/TableExpandedRow/TableExpandedRow.js +33 -0
  1508. package/components/Table/TableExpandedRow/TableExpandedRow.js.map +1 -0
  1509. package/components/Table/TableExpandedRow/index.js +6 -1
  1510. package/components/Table/TableExpandedRow/index.js.map +1 -1
  1511. package/components/Table/TableExpanderCell/TableExpanderCell.js +35 -0
  1512. package/components/Table/TableExpanderCell/TableExpanderCell.js.map +1 -0
  1513. package/components/Table/TableExpanderCell/TableExpanderCellMobile.js +25 -0
  1514. package/components/Table/TableExpanderCell/TableExpanderCellMobile.js.map +1 -0
  1515. package/components/Table/TableExpanderCell/index.js +6 -1
  1516. package/components/Table/TableExpanderCell/index.js.map +1 -1
  1517. package/components/Table/TableHead/TableHead.js +24 -0
  1518. package/components/Table/TableHead/TableHead.js.map +1 -0
  1519. package/components/Table/TableHead/index.js +7 -1
  1520. package/components/Table/TableHead/index.js.map +1 -1
  1521. package/components/Table/TableHeadCell/TableHeadCell.js +36 -0
  1522. package/components/Table/TableHeadCell/TableHeadCell.js.map +1 -0
  1523. package/components/Table/TableHeadCell/index.js +7 -1
  1524. package/components/Table/TableHeadCell/index.js.map +1 -1
  1525. package/components/Table/TableRow/TableRow.js +40 -0
  1526. package/components/Table/TableRow/TableRow.js.map +1 -0
  1527. package/components/Table/TableRow/index.js +6 -1
  1528. package/components/Table/TableRow/index.js.map +1 -1
  1529. package/components/Table/index.js +27 -1
  1530. package/components/Table/index.js.map +1 -1
  1531. package/components/Table/utils.js +37 -0
  1532. package/components/Table/utils.js.map +1 -0
  1533. package/components/Tag/Tag.d.ts +3 -2
  1534. package/components/Tag/Tag.d.ts.map +1 -1
  1535. package/components/Tag/Tag.js +48 -0
  1536. package/components/Tag/Tag.js.map +1 -0
  1537. package/components/Tag/index.js +8 -1
  1538. package/components/Tag/index.js.map +1 -1
  1539. package/components/TagList/TagList.js +8 -0
  1540. package/components/TagList/TagList.js.map +1 -0
  1541. package/components/TagList/index.js +4 -1
  1542. package/components/TagList/index.js.map +1 -1
  1543. package/components/Textarea/Textarea.js +101 -0
  1544. package/components/Textarea/Textarea.js.map +1 -0
  1545. package/components/Textarea/index.js +4 -1
  1546. package/components/Textarea/index.js.map +1 -1
  1547. package/components/Textarea/styles.module.scss.d.ts +1 -1
  1548. package/components/Tile/Tile.js +54 -0
  1549. package/components/Tile/Tile.js.map +1 -0
  1550. package/components/Tile/index.js +6 -1
  1551. package/components/Tile/index.js.map +1 -1
  1552. package/components/Title/Title.js +25 -0
  1553. package/components/Title/Title.js.map +1 -0
  1554. package/components/Title/index.js +7 -1
  1555. package/components/Title/index.js.map +1 -1
  1556. package/components/Tooltip/Tooltip.js +55 -0
  1557. package/components/Tooltip/Tooltip.js.map +1 -0
  1558. package/components/Tooltip/TooltipWord/TooltipWord.js +28 -0
  1559. package/components/Tooltip/TooltipWord/TooltipWord.js.map +1 -0
  1560. package/components/Tooltip/TooltipWord/index.js +4 -1
  1561. package/components/Tooltip/TooltipWord/index.js.map +1 -1
  1562. package/components/Tooltip/index.js +7 -1
  1563. package/components/Tooltip/index.js.map +1 -1
  1564. package/components/TooltipExample/TooltipExample.js +8 -0
  1565. package/components/TooltipExample/TooltipExample.js.map +1 -0
  1566. package/components/TooltipExample/index.js +4 -1
  1567. package/components/TooltipExample/index.js.map +1 -1
  1568. package/components/Trigger/HelpSign.d.ts +1 -1
  1569. package/components/Trigger/HelpSign.d.ts.map +1 -1
  1570. package/components/Trigger/HelpSign.js +7 -0
  1571. package/components/Trigger/HelpSign.js.map +1 -0
  1572. package/components/Trigger/InfoSignStroke.d.ts +1 -1
  1573. package/components/Trigger/InfoSignStroke.d.ts.map +1 -1
  1574. package/components/Trigger/Trigger.js +74 -0
  1575. package/components/Trigger/Trigger.js.map +1 -0
  1576. package/components/Trigger/index.js +4 -1
  1577. package/components/Trigger/index.js.map +1 -1
  1578. package/components/Validation/Validation.d.ts +3 -3
  1579. package/components/Validation/Validation.d.ts.map +1 -1
  1580. package/components/Validation/Validation.js +18 -0
  1581. package/components/Validation/Validation.js.map +1 -0
  1582. package/components/Validation/index.js +6 -1
  1583. package/components/Validation/index.js.map +1 -1
  1584. package/constants.d.ts +3 -3
  1585. package/constants.d.ts.map +1 -1
  1586. package/constants.js +12 -1
  1587. package/constants.js.map +1 -1
  1588. package/hoc/withBreakpoint/index.js +5 -1
  1589. package/hoc/withBreakpoint/index.js.map +1 -1
  1590. package/hoc/withBreakpoint/withBreakpoint.js +12 -1
  1591. package/hoc/withBreakpoint/withBreakpoint.js.map +1 -1
  1592. package/hooks/useBreakpoint.js +44 -1
  1593. package/hooks/useBreakpoint.js.map +1 -1
  1594. package/hooks/useDelayedState.js +14 -1
  1595. package/hooks/useDelayedState.js.map +1 -1
  1596. package/hooks/useElementList.js +17 -1
  1597. package/hooks/useElementList.js.map +1 -1
  1598. package/hooks/useEventListenerState.js +10 -1
  1599. package/hooks/useEventListenerState.js.map +1 -1
  1600. package/hooks/useExpand.js +13 -1
  1601. package/hooks/useExpand.js.map +1 -1
  1602. package/hooks/useFocusToggle.js +18 -1
  1603. package/hooks/useFocusToggle.js.map +1 -1
  1604. package/hooks/useFocusTrap.js +22 -1
  1605. package/hooks/useFocusTrap.js.map +1 -1
  1606. package/hooks/useFocusableElements.js +19 -1
  1607. package/hooks/useFocusableElements.js.map +1 -1
  1608. package/hooks/useHover.js +8 -1
  1609. package/hooks/useHover.js.map +1 -1
  1610. package/hooks/useIcons.d.ts +4 -2
  1611. package/hooks/useIcons.d.ts.map +1 -1
  1612. package/hooks/useIcons.js +15 -1
  1613. package/hooks/useIcons.js.map +1 -1
  1614. package/hooks/useIntersectionObserver.js +12 -1
  1615. package/hooks/useIntersectionObserver.js.map +1 -1
  1616. package/hooks/useInterval.js +12 -1
  1617. package/hooks/useInterval.js.map +1 -1
  1618. package/hooks/useIsVisible.js +11 -1
  1619. package/hooks/useIsVisible.js.map +1 -1
  1620. package/hooks/useKeyboardEvent.js +20 -1
  1621. package/hooks/useKeyboardEvent.js.map +1 -1
  1622. package/hooks/useLayoutEvent.js +15 -1
  1623. package/hooks/useLayoutEvent.js.map +1 -1
  1624. package/hooks/useOutsideEvent.js +12 -1
  1625. package/hooks/useOutsideEvent.js.map +1 -1
  1626. package/hooks/usePrevious.js +10 -1
  1627. package/hooks/usePrevious.js.map +1 -1
  1628. package/hooks/usePseudoClasses.js +15 -1
  1629. package/hooks/usePseudoClasses.js.map +1 -1
  1630. package/hooks/useResizeObserver.js +17 -1
  1631. package/hooks/useResizeObserver.js.map +1 -1
  1632. package/hooks/useSize.js +27 -1
  1633. package/hooks/useSize.js.map +1 -1
  1634. package/hooks/useSticky.js +17 -1
  1635. package/hooks/useSticky.js.map +1 -1
  1636. package/hooks/useToggle.js +15 -1
  1637. package/hooks/useToggle.js.map +1 -1
  1638. package/hooks/useUuid.js +9 -1
  1639. package/hooks/useUuid.js.map +1 -1
  1640. package/index.js +47 -1
  1641. package/index.js.map +1 -1
  1642. package/package.json +1 -1
  1643. package/scss/_input.scss +1 -1
  1644. package/theme/currys/color.js +6 -1
  1645. package/theme/currys/color.js.map +1 -1
  1646. package/theme/currys/index.js +8 -1
  1647. package/theme/currys/index.js.map +1 -1
  1648. package/theme/currys/spacing.js +37 -1
  1649. package/theme/currys/spacing.js.map +1 -1
  1650. package/theme/grid.js +24 -1
  1651. package/theme/grid.js.map +1 -1
  1652. package/theme/index.js +13 -1
  1653. package/theme/index.js.map +1 -1
  1654. package/theme/palette.js +79 -1
  1655. package/theme/palette.js.map +1 -1
  1656. package/theme/spacers.js +20 -1
  1657. package/theme/spacers.js.map +1 -1
  1658. package/utils/accessibility.js +18 -1
  1659. package/utils/accessibility.js.map +1 -1
  1660. package/utils/component.js +6 -1
  1661. package/utils/component.js.map +1 -1
  1662. package/utils/debounce.js +13 -1
  1663. package/utils/debounce.js.map +1 -1
  1664. package/utils/device.js +4 -1
  1665. package/utils/device.js.map +1 -1
  1666. package/utils/environment.js +11 -1
  1667. package/utils/environment.js.map +1 -1
  1668. package/utils/focus.js +10 -1
  1669. package/utils/focus.js.map +1 -1
  1670. package/utils/loremtext.js +7 -1
  1671. package/utils/loremtext.js.map +1 -1
  1672. package/utils/mobile.js +10 -1
  1673. package/utils/mobile.js.map +1 -1
  1674. package/utils/refs.js +9 -1
  1675. package/utils/refs.js.map +1 -1
  1676. package/utils/uuid.js +9 -1
  1677. package/utils/uuid.js.map +1 -1
  1678. package/utils/viewport.js +7 -1
  1679. package/utils/viewport.js.map +1 -1
  1680. package/AnchorLink.js +0 -2
  1681. package/AnchorLink.js.map +0 -1
  1682. package/Avatar.js +0 -2
  1683. package/Avatar.js.map +0 -1
  1684. package/Badge.js +0 -2
  1685. package/Badge.js.map +0 -1
  1686. package/Button.js +0 -2
  1687. package/Button.js.map +0 -1
  1688. package/Checkbox.js +0 -2
  1689. package/Checkbox.js.map +0 -1
  1690. package/Close.js +0 -2
  1691. package/Close.js.map +0 -1
  1692. package/ErrorWrapper.js +0 -2
  1693. package/ErrorWrapper.js.map +0 -1
  1694. package/FormGroup.js +0 -2
  1695. package/FormGroup.js.map +0 -1
  1696. package/FormLayout.js +0 -2
  1697. package/FormLayout.js.map +0 -1
  1698. package/HelpBubble.js +0 -2
  1699. package/HelpBubble.js.map +0 -1
  1700. package/HighlightBox.js +0 -2
  1701. package/HighlightBox.js.map +0 -1
  1702. package/HorizontalScroll.js +0 -2
  1703. package/HorizontalScroll.js.map +0 -1
  1704. package/Input.js +0 -2
  1705. package/Input.js.map +0 -1
  1706. package/Label.js +0 -2
  1707. package/Label.js.map +0 -1
  1708. package/LinkList.js +0 -2
  1709. package/LinkList.js.map +0 -1
  1710. package/ListHeader.js +0 -2
  1711. package/ListHeader.js.map +0 -1
  1712. package/ListHeaderText.js +0 -2
  1713. package/ListHeaderText.js.map +0 -1
  1714. package/MaxCharacters.js +0 -2
  1715. package/MaxCharacters.js.map +0 -1
  1716. package/Modal.js +0 -2
  1717. package/Modal.js.map +0 -1
  1718. package/Panel.js +0 -2
  1719. package/Panel.js.map +0 -1
  1720. package/PopOver.js +0 -2
  1721. package/PopOver.js.map +0 -1
  1722. package/RadioButton.js +0 -2
  1723. package/RadioButton.js.map +0 -1
  1724. package/Select.js +0 -2
  1725. package/Select.js.map +0 -1
  1726. package/Spacer.js +0 -2
  1727. package/Spacer.js.map +0 -1
  1728. package/StatusDot.js +0 -2
  1729. package/StepButtons.js +0 -2
  1730. package/StepButtons.js.map +0 -1
  1731. package/Table.js +0 -2
  1732. package/Table.js.map +0 -1
  1733. package/TableBody.js +0 -2
  1734. package/TableBody.js.map +0 -1
  1735. package/TableCell.js +0 -2
  1736. package/TableCell.js.map +0 -1
  1737. package/TableExpandedRow.js +0 -2
  1738. package/TableExpandedRow.js.map +0 -1
  1739. package/TableExpanderCell.js +0 -2
  1740. package/TableExpanderCell.js.map +0 -1
  1741. package/TableHead.js +0 -2
  1742. package/TableHead.js.map +0 -1
  1743. package/TableHeadCell.js +0 -2
  1744. package/TableHeadCell.js.map +0 -1
  1745. package/TableRow.js +0 -2
  1746. package/TableRow.js.map +0 -1
  1747. package/Textarea.js +0 -2
  1748. package/Textarea.js.map +0 -1
  1749. package/Title.js +0 -2
  1750. package/Title.js.map +0 -1
  1751. package/Tooltip.js +0 -2
  1752. package/Tooltip.js.map +0 -1
  1753. package/TooltipWord.js +0 -2
  1754. package/TooltipWord.js.map +0 -1
  1755. package/Trigger.js +0 -2
  1756. package/Trigger.js.map +0 -1
  1757. package/Validation.js +0 -2
  1758. package/Validation.js.map +0 -1
  1759. package/components/AnchorLink/componentdata.json +0 -1
  1760. package/components/Avatar/componentdata.json +0 -1
  1761. package/components/Badge/componentdata.json +0 -1
  1762. package/components/Button/componentdata.json +0 -1
  1763. package/components/ButtonWithModal/componentdata.json +0 -1
  1764. package/components/Checkbox/componentdata.json +0 -1
  1765. package/components/Close/componentdata.json +0 -1
  1766. package/components/DictionaryTrigger/componentdata.json +0 -1
  1767. package/components/Dropdown/componentdata.json +0 -1
  1768. package/components/Duolist/componentdata.json +0 -1
  1769. package/components/ErrorWrapper/componentdata.json +0 -1
  1770. package/components/Expander/componentdata.json +0 -1
  1771. package/components/ExpanderHierarchy/componentdata.json +0 -1
  1772. package/components/ExpanderList/componentdata.json +0 -1
  1773. package/components/FormExample/componentdata.json +0 -1
  1774. package/components/FormGroup/componentdata.json +0 -1
  1775. package/components/FormLayout/componentdata.json +0 -1
  1776. package/components/GridExample/componentdata.json +0 -1
  1777. package/components/HelpBubble/componentdata.json +0 -1
  1778. package/components/HelpBubbleExample/componentdata.json +0 -1
  1779. package/components/HelpPanel/componentdata.json +0 -1
  1780. package/components/HelpQuestion/componentdata.json +0 -1
  1781. package/components/HighlightBox/componentdata.json +0 -1
  1782. package/components/HorizontalScroll/componentdata.json +0 -1
  1783. package/components/Icons/Icon.d.ts.map +0 -1
  1784. package/components/Icons/Icon.js +0 -2
  1785. package/components/Icons/Icon.js.map +0 -1
  1786. package/components/Icons/IconWall.d.ts +0 -8
  1787. package/components/Icons/IconWall.d.ts.map +0 -1
  1788. package/components/Icons/IconWall.js +0 -2
  1789. package/components/Icons/IconWall.js.map +0 -1
  1790. package/components/Icons/componentdata.json +0 -1
  1791. package/components/Icons/index.d.ts.map +0 -1
  1792. package/components/Icons/index.js +0 -2
  1793. package/components/Input/componentdata.json +0 -1
  1794. package/components/Label/componentdata.json +0 -1
  1795. package/components/LinkList/componentdata.json +0 -1
  1796. package/components/List/componentdata.json +0 -1
  1797. package/components/ListHeader/ListHeaderText/componentdata.json +0 -1
  1798. package/components/ListHeader/componentdata.json +0 -1
  1799. package/components/Loader/componentdata.json +0 -1
  1800. package/components/Logo/componentdata.json +0 -1
  1801. package/components/MaxCharacters/componentdata.json +0 -1
  1802. package/components/Modal/componentdata.json +0 -1
  1803. package/components/NotificationPanel/DetailButton/componentdata.json +0 -1
  1804. package/components/NotificationPanel/componentdata.json +0 -1
  1805. package/components/Panel/componentdata.json +0 -1
  1806. package/components/PanelList/componentdata.json +0 -1
  1807. package/components/PopMenu/componentdata.json +0 -1
  1808. package/components/PopOver/componentdata.json +0 -1
  1809. package/components/RadioButton/componentdata.json +0 -1
  1810. package/components/Select/componentdata.json +0 -1
  1811. package/components/ServiceMessage/componentdata.json +0 -1
  1812. package/components/Slider/componentdata.json +0 -1
  1813. package/components/Spacer/componentdata.json +0 -1
  1814. package/components/StatusDot/componentdata.json +0 -1
  1815. package/components/Step/componentdata.json +0 -1
  1816. package/components/StepButtons/componentdata.json +0 -1
  1817. package/components/Stepper/componentdata.json +0 -1
  1818. package/components/Table/TableBody/componentdata.json +0 -1
  1819. package/components/Table/TableCell/componentdata.json +0 -1
  1820. package/components/Table/TableExpandedRow/componentdata.json +0 -1
  1821. package/components/Table/TableExpanderCell/componentdata.json +0 -1
  1822. package/components/Table/TableHead/componentdata.json +0 -1
  1823. package/components/Table/TableHeadCell/componentdata.json +0 -1
  1824. package/components/Table/TableRow/componentdata.json +0 -1
  1825. package/components/Table/componentdata.json +0 -1
  1826. package/components/Tag/componentdata.json +0 -1
  1827. package/components/TagList/componentdata.json +0 -1
  1828. package/components/Textarea/componentdata.json +0 -1
  1829. package/components/Tile/componentdata.json +0 -1
  1830. package/components/Title/componentdata.json +0 -1
  1831. package/components/Tooltip/TooltipWord/componentdata.json +0 -1
  1832. package/components/Tooltip/componentdata.json +0 -1
  1833. package/components/TooltipExample/componentdata.json +0 -1
  1834. package/components/Trigger/componentdata.json +0 -1
  1835. package/components/Validation/componentdata.json +0 -1
  1836. package/uuid.js +0 -2
  1837. package/uuid.js.map +0 -1
  1838. /package/components/{Icons → Icon}/index.d.ts +0 -0
@@ -1,12 +1,8 @@
1
- import m from"react";import{isTest as xt}from"../../utils/environment.js";import{B as pt}from"../../Button.js";import{C as te}from"../../Checkbox.js";import{F as ae}from"../../FormGroup.js";import{F as kt,a as Et}from"../../FormLayout.js";import Ke from"../Icons/Hospital.js";import{I as je}from"../../Input.js";import{L as T}from"../../Label.js";import{R as ve}from"../../RadioButton.js";import{S as ze}from"../../Select.js";import{T as Je}from"../../Textarea.js";import{V as _t}from"../../Validation.js";import"classnames";import"../Icons/Icon.js";import"../../constants.js";import"../../hooks/useUuid.js";import"../../uuid.js";import"../../hooks/useBreakpoint.js";import"../../theme/grid.js";import"../../hooks/useHover.js";import"../../hooks/usePseudoClasses.js";import"../../hooks/useIcons.js";import"../../hooks/useSize.js";import"../../utils/debounce.js";import"../../theme/currys/color.js";import"../../theme/index.js";import"../../theme/palette.js";import"../../theme/spacers.js";import"../Icons/ArrowRight.js";import"../Button/styles.module.scss";import"../../utils/refs.js";import"../Icons/Check.js";import"../Checkbox/styles.module.scss";import"../../utils/component.js";import"../../ErrorWrapper.js";import"../ErrorWrapper/styles.module.scss";import"../../Title.js";import"../Title/styles.module.scss";import"../FormGroup/styles.module.scss";import"../FormLayout/styles.module.scss";import"../../MaxCharacters.js";import"../MaxCharacters/styles.module.scss";import"../Input/styles.module.scss";import"../../Spacer.js";import"../Spacer/styles.module.scss";import"../Label/styles.module.scss";import"../../StatusDot.js";import"../Icons/Attachment.js";import"../Icons/Group.js";import"../Icons/NoAccess.js";import"../Icons/Undo.js";import"../StatusDot/styles.module.scss";import"../RadioButton/styles.module.scss";import"../Icons/ChevronDown.js";import"../Select/styles.module.scss";import"../Textarea/styles.module.scss";import"../Validation/styles.module.scss";var me=e=>e.type==="checkbox",ue=e=>e instanceof Date,L=e=>e==null;const nt=e=>typeof e=="object";var F=e=>!L(e)&&!Array.isArray(e)&&nt(e)&&!ue(e),Vt=e=>F(e)&&e.target?me(e.target)?e.target.checked:e.target.value:e,At=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,Dt=(e,i)=>e.has(At(i)),St=e=>{const i=e.constructor&&e.constructor.prototype;return F(i)&&i.hasOwnProperty("isPrototypeOf")},Ce=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function Q(e){let i;const s=Array.isArray(e);if(e instanceof Date)i=new Date(e);else if(e instanceof Set)i=new Set(e);else if(!(Ce&&(e instanceof Blob||e instanceof FileList))&&(s||F(e)))if(i=s?[]:{},!s&&!St(e))i=e;else for(const r in e)e.hasOwnProperty(r)&&(i[r]=Q(e[r]));else return e;return i}var ge=e=>Array.isArray(e)?e.filter(Boolean):[],w=e=>e===void 0,d=(e,i,s)=>{if(!i||!F(e))return s;const r=ge(i.split(/[,[\].]+?/)).reduce((l,o)=>L(l)?l:l[o],e);return w(r)||r===e?w(e[i])?s:e[i]:r},re=e=>typeof e=="boolean";const Qe={BLUR:"blur",FOCUS_OUT:"focusout",CHANGE:"change"},W={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},J={max:"max",min:"min",maxLength:"maxLength",minLength:"minLength",pattern:"pattern",required:"required",validate:"validate"};m.createContext(null);var wt=(e,i,s,r=!0)=>{const l={defaultValues:i._defaultValues};for(const o in e)Object.defineProperty(l,o,{get:()=>{const f=o;return i._proxyFormState[f]!==W.all&&(i._proxyFormState[f]=!r||W.all),s&&(s[f]=!0),e[f]}});return l},P=e=>F(e)&&!Object.keys(e).length,Ft=(e,i,s,r)=>{s(e);const{name:l,...o}=e;return P(o)||Object.keys(o).length>=Object.keys(i).length||Object.keys(o).find(f=>i[f]===(!r||W.all))},De=e=>Array.isArray(e)?e:[e];function Tt(e){const i=m.useRef(e);i.current=e,m.useEffect(()=>{const s=!e.disabled&&i.current.subject&&i.current.subject.subscribe({next:i.current.next});return()=>{s&&s.unsubscribe()}},[e.disabled])}var j=e=>typeof e=="string",Ot=(e,i,s,r,l)=>j(e)?(r&&i.watch.add(e),d(s,e,l)):Array.isArray(e)?e.map(o=>(r&&i.watch.add(o),d(s,o))):(r&&(i.watchAll=!0),s),Le=e=>/^\w*$/.test(e),lt=e=>ge(e.replace(/["|']|\]/g,"").split(/\.|\[/));function E(e,i,s){let r=-1;const l=Le(i)?[i]:lt(i),o=l.length,f=o-1;for(;++r<o;){const x=l[r];let p=s;if(r!==f){const C=e[x];p=F(C)||Array.isArray(C)?C:isNaN(+l[r+1])?{}:[]}e[x]=p,e=e[x]}return e}var Ct=(e,i,s,r,l)=>i?{...s[e],types:{...s[e]&&s[e].types?s[e].types:{},[r]:l||!0}}:{};const Oe=(e,i,s)=>{for(const r of s||Object.keys(e)){const l=d(e,r);if(l){const{_f:o,...f}=l;if(o&&i(o.name)){if(o.ref.focus){o.ref.focus();break}else if(o.refs&&o.refs[0].focus){o.refs[0].focus();break}}else F(f)&&Oe(f,i)}}};var Xe=e=>({isOnSubmit:!e||e===W.onSubmit,isOnBlur:e===W.onBlur,isOnChange:e===W.onChange,isOnAll:e===W.all,isOnTouch:e===W.onTouched}),Ye=(e,i,s)=>!s&&(i.watchAll||i.watch.has(e)||[...i.watch].some(r=>e.startsWith(r)&&/^\.\w+/.test(e.slice(r.length)))),Lt=(e,i,s)=>{const r=ge(d(e,s));return E(r,"root",i[s]),E(e,s,r),e},Re=e=>e.type==="file",X=e=>typeof e=="function",be=e=>{if(!Ce)return!1;const i=e?e.ownerDocument:0;return e instanceof(i&&i.defaultView?i.defaultView.HTMLElement:HTMLElement)},he=e=>j(e),Ie=e=>e.type==="radio",xe=e=>e instanceof RegExp;const Ze={value:!1,isValid:!1},et={value:!0,isValid:!0};var at=e=>{if(Array.isArray(e)){if(e.length>1){const i=e.filter(s=>s&&s.checked&&!s.disabled).map(s=>s.value);return{value:i,isValid:!!i.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!w(e[0].attributes.value)?w(e[0].value)||e[0].value===""?et:{value:e[0].value,isValid:!0}:et:Ze}return Ze};const tt={isValid:!1,value:null};var ot=e=>Array.isArray(e)?e.reduce((i,s)=>s&&s.checked&&!s.disabled?{isValid:!0,value:s.value}:i,tt):tt;function rt(e,i,s="validate"){if(he(e)||Array.isArray(e)&&e.every(he)||re(e)&&!e)return{type:s,message:he(e)?e:"",ref:i}}var oe=e=>F(e)&&!xe(e)?e:{value:e,message:""},st=async(e,i,s,r,l)=>{const{ref:o,refs:f,required:x,maxLength:p,minLength:C,min:H,max:_,pattern:h,validate:$,name:R,valueAsNumber:N,mount:ie,disabled:ne}=e._f,v=d(i,R);if(!ie||ne)return{};const U=f?f[0]:o,B=k=>{r&&U.reportValidity&&(U.setCustomValidity(re(k)?"":k||""),U.reportValidity())},A={},Y=Ie(o),I=me(o),ce=Y||I,G=(N||Re(o))&&w(o.value)&&w(v)||be(o)&&o.value===""||v===""||Array.isArray(v)&&!v.length,Z=Ct.bind(null,R,s,A),z=(k,b,D,M=J.maxLength,q=J.minLength)=>{const K=k?b:D;A[R]={type:k?M:q,message:K,ref:o,...Z(k?M:q,K)}};if(l?!Array.isArray(v)||!v.length:x&&(!ce&&(G||L(v))||re(v)&&!v||I&&!at(f).isValid||Y&&!ot(f).isValid)){const{value:k,message:b}=he(x)?{value:!!x,message:x}:oe(x);if(k&&(A[R]={type:J.required,message:b,ref:U,...Z(J.required,b)},!s))return B(b),A}if(!G&&(!L(H)||!L(_))){let k,b;const D=oe(_),M=oe(H);if(!L(v)&&!isNaN(v)){const q=o.valueAsNumber||v&&+v;L(D.value)||(k=q>D.value),L(M.value)||(b=q<M.value)}else{const q=o.valueAsDate||new Date(v),K=de=>new Date(new Date().toDateString()+" "+de),ee=o.type=="time",fe=o.type=="week";j(D.value)&&v&&(k=ee?K(v)>K(D.value):fe?v>D.value:q>new Date(D.value)),j(M.value)&&v&&(b=ee?K(v)<K(M.value):fe?v<M.value:q<new Date(M.value))}if((k||b)&&(z(!!k,D.message,M.message,J.max,J.min),!s))return B(A[R].message),A}if((p||C)&&!G&&(j(v)||l&&Array.isArray(v))){const k=oe(p),b=oe(C),D=!L(k.value)&&v.length>+k.value,M=!L(b.value)&&v.length<+b.value;if((D||M)&&(z(D,k.message,b.message),!s))return B(A[R].message),A}if(h&&!G&&j(v)){const{value:k,message:b}=oe(h);if(xe(k)&&!v.match(k)&&(A[R]={type:J.pattern,message:b,ref:o,...Z(J.pattern,b)},!s))return B(b),A}if($){if(X($)){const k=await $(v,i),b=rt(k,U);if(b&&(A[R]={...b,...Z(J.validate,b.message)},!s))return B(b.message),A}else if(F($)){let k={};for(const b in $){if(!P(k)&&!s)break;const D=rt(await $[b](v,i),U,b);D&&(k={...D,...Z(b,D.message)},B(D.message),s&&(A[R]=k))}if(!P(k)&&(A[R]={ref:U,...k},!s))return A}}return B(!0),A};function Rt(e,i){const s=i.slice(0,-1).length;let r=0;for(;r<s;)e=w(e)?r++:e[i[r++]];return e}function It(e){for(const i in e)if(e.hasOwnProperty(i)&&!w(e[i]))return!1;return!0}function O(e,i){const s=Array.isArray(i)?i:Le(i)?[i]:lt(i),r=s.length===1?e:Rt(e,s),l=s.length-1,o=s[l];return r&&delete r[o],l!==0&&(F(r)&&P(r)||Array.isArray(r)&&It(r))&&O(e,s.slice(0,-1)),e}function Se(){let e=[];return{get observers(){return e},next:l=>{for(const o of e)o.next&&o.next(l)},subscribe:l=>(e.push(l),{unsubscribe:()=>{e=e.filter(o=>o!==l)}}),unsubscribe:()=>{e=[]}}}var pe=e=>L(e)||!nt(e);function se(e,i){if(pe(e)||pe(i))return e===i;if(ue(e)&&ue(i))return e.getTime()===i.getTime();const s=Object.keys(e),r=Object.keys(i);if(s.length!==r.length)return!1;for(const l of s){const o=e[l];if(!r.includes(l))return!1;if(l!=="ref"){const f=i[l];if(ue(o)&&ue(f)||F(o)&&F(f)||Array.isArray(o)&&Array.isArray(f)?!se(o,f):o!==f)return!1}}return!0}var ut=e=>e.type==="select-multiple",Mt=e=>Ie(e)||me(e),we=e=>be(e)&&e.isConnected,ct=e=>{for(const i in e)if(X(e[i]))return!0;return!1};function ke(e,i={}){const s=Array.isArray(e);if(F(e)||s)for(const r in e)Array.isArray(e[r])||F(e[r])&&!ct(e[r])?(i[r]=Array.isArray(e[r])?[]:{},ke(e[r],i[r])):L(e[r])||(i[r]=!0);return i}function ft(e,i,s){const r=Array.isArray(e);if(F(e)||r)for(const l in e)Array.isArray(e[l])||F(e[l])&&!ct(e[l])?w(i)||pe(s[l])?s[l]=Array.isArray(e[l])?ke(e[l],[]):{...ke(e[l])}:ft(e[l],L(i)?{}:i[l],s[l]):s[l]=!se(e[l],i[l]);return s}var Fe=(e,i)=>ft(e,i,ke(i)),dt=(e,{valueAsNumber:i,valueAsDate:s,setValueAs:r})=>w(e)?e:i?e===""?NaN:e&&+e:s&&j(e)?new Date(e):r?r(e):e;function Te(e){const i=e.ref;if(!(e.refs?e.refs.every(s=>s.disabled):i.disabled))return Re(i)?i.files:Ie(i)?ot(e.refs).value:ut(i)?[...i.selectedOptions].map(({value:s})=>s):me(i)?at(e.refs).value:dt(w(i.value)?e.ref.value:i.value,e)}var Ut=(e,i,s,r)=>{const l={};for(const o of e){const f=d(i,o);f&&E(l,o,f._f)}return{criteriaMode:s,names:[...e],fields:l,shouldUseNativeValidation:r}},ye=e=>w(e)?e:xe(e)?e.source:F(e)?xe(e.value)?e.value.source:e.value:e,Bt=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate);function it(e,i,s){const r=d(e,s);if(r||Le(s))return{error:r,name:s};const l=s.split(".");for(;l.length;){const o=l.join("."),f=d(i,o),x=d(e,o);if(f&&!Array.isArray(f)&&s!==o)return{name:s};if(x&&x.type)return{name:o,error:x};l.pop()}return{name:s}}var Nt=(e,i,s,r,l)=>l.isOnAll?!1:!s&&l.isOnTouch?!(i||e):(s?r.isOnBlur:l.isOnBlur)?!e:(s?r.isOnChange:l.isOnChange)?e:!0,qt=(e,i)=>!ge(d(e,i)).length&&O(e,i);const Pt={mode:W.onSubmit,reValidateMode:W.onChange,shouldFocusError:!0};function Ht(e={},i){let s={...Pt,...e},r={submitCount:0,isDirty:!1,isLoading:X(s.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},errors:{}},l={},o=F(s.defaultValues)||F(s.values)?Q(s.defaultValues||s.values)||{}:{},f=s.shouldUnregister?{}:Q(o),x={action:!1,mount:!1,watch:!1},p={mount:new Set,unMount:new Set,array:new Set,watch:new Set},C,H=0;const _={isDirty:!1,dirtyFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},h={values:Se(),array:Se(),state:Se()},$=e.resetOptions&&e.resetOptions.keepDirtyValues,R=Xe(s.mode),N=Xe(s.reValidateMode),ie=s.criteriaMode===W.all,ne=t=>n=>{clearTimeout(H),H=setTimeout(t,n)},v=async t=>{if(_.isValid||t){const n=s.resolver?P((await G()).errors):await z(l,!0);n!==r.isValid&&h.state.next({isValid:n})}},U=t=>_.isValidating&&h.state.next({isValidating:t}),B=(t,n=[],a,y,c=!0,u=!0)=>{if(y&&a){if(x.action=!0,u&&Array.isArray(d(l,t))){const g=a(d(l,t),y.argA,y.argB);c&&E(l,t,g)}if(u&&Array.isArray(d(r.errors,t))){const g=a(d(r.errors,t),y.argA,y.argB);c&&E(r.errors,t,g),qt(r.errors,t)}if(_.touchedFields&&u&&Array.isArray(d(r.touchedFields,t))){const g=a(d(r.touchedFields,t),y.argA,y.argB);c&&E(r.touchedFields,t,g)}_.dirtyFields&&(r.dirtyFields=Fe(o,f)),h.state.next({name:t,isDirty:b(t,n),dirtyFields:r.dirtyFields,errors:r.errors,isValid:r.isValid})}else E(f,t,n)},A=(t,n)=>{E(r.errors,t,n),h.state.next({errors:r.errors})},Y=(t,n,a,y)=>{const c=d(l,t);if(c){const u=d(f,t,w(a)?d(o,t):a);w(u)||y&&y.defaultChecked||n?E(f,t,n?u:Te(c._f)):q(t,u),x.mount&&v()}},I=(t,n,a,y,c)=>{let u=!1,g=!1;const V={name:t};if(!a||y){_.isDirty&&(g=r.isDirty,r.isDirty=V.isDirty=b(),u=g!==V.isDirty);const S=se(d(o,t),n);g=d(r.dirtyFields,t),S?O(r.dirtyFields,t):E(r.dirtyFields,t,!0),V.dirtyFields=r.dirtyFields,u=u||_.dirtyFields&&g!==!S}if(a){const S=d(r.touchedFields,t);S||(E(r.touchedFields,t,a),V.touchedFields=r.touchedFields,u=u||_.touchedFields&&S!==a)}return u&&c&&h.state.next(V),u?V:{}},ce=(t,n,a,y)=>{const c=d(r.errors,t),u=_.isValid&&re(n)&&r.isValid!==n;if(e.delayError&&a?(C=ne(()=>A(t,a)),C(e.delayError)):(clearTimeout(H),C=null,a?E(r.errors,t,a):O(r.errors,t)),(a?!se(c,a):c)||!P(y)||u){const g={...y,...u&&re(n)?{isValid:n}:{},errors:r.errors,name:t};r={...r,...g},h.state.next(g)}U(!1)},G=async t=>s.resolver(f,s.context,Ut(t||p.mount,l,s.criteriaMode,s.shouldUseNativeValidation)),Z=async t=>{const{errors:n}=await G(t);if(t)for(const a of t){const y=d(n,a);y?E(r.errors,a,y):O(r.errors,a)}else r.errors=n;return n},z=async(t,n,a={valid:!0})=>{for(const y in t){const c=t[y];if(c){const{_f:u,...g}=c;if(u){const V=p.array.has(u.name),S=await st(c,f,ie,s.shouldUseNativeValidation&&!n,V);if(S[u.name]&&(a.valid=!1,n))break;!n&&(d(S,u.name)?V?Lt(r.errors,S,u.name):E(r.errors,u.name,S[u.name]):O(r.errors,u.name))}g&&await z(g,n,a)}}return a.valid},k=()=>{for(const t of p.unMount){const n=d(l,t);n&&(n._f.refs?n._f.refs.every(a=>!we(a)):!we(n._f.ref))&&Ee(t)}p.unMount=new Set},b=(t,n)=>(t&&n&&E(f,t,n),!se(Me(),o)),D=(t,n,a)=>Ot(t,p,{...x.mount?f:w(n)?o:j(t)?{[t]:n}:n},a,n),M=t=>ge(d(x.mount?f:o,t,e.shouldUnregister?d(o,t,[]):[])),q=(t,n,a={})=>{const y=d(l,t);let c=n;if(y){const u=y._f;u&&(!u.disabled&&E(f,t,dt(n,u)),c=be(u.ref)&&L(n)?"":n,ut(u.ref)?[...u.ref.options].forEach(g=>g.selected=c.includes(g.value)):u.refs?me(u.ref)?u.refs.length>1?u.refs.forEach(g=>(!g.defaultChecked||!g.disabled)&&(g.checked=Array.isArray(c)?!!c.find(V=>V===g.value):c===g.value)):u.refs[0]&&(u.refs[0].checked=!!c):u.refs.forEach(g=>g.checked=g.value===c):Re(u.ref)?u.ref.value="":(u.ref.value=c,u.ref.type||h.values.next({name:t,values:{...f}})))}(a.shouldDirty||a.shouldTouch)&&I(t,c,a.shouldTouch,a.shouldDirty,!0),a.shouldValidate&&de(t)},K=(t,n,a)=>{for(const y in n){const c=n[y],u=`${t}.${y}`,g=d(l,u);(p.array.has(t)||!pe(c)||g&&!g._f)&&!ue(c)?K(u,c,a):q(u,c,a)}},ee=(t,n,a={})=>{const y=d(l,t),c=p.array.has(t),u=Q(n);E(f,t,u),c?(h.array.next({name:t,values:{...f}}),(_.isDirty||_.dirtyFields)&&a.shouldDirty&&h.state.next({name:t,dirtyFields:Fe(o,f),isDirty:b(t,u)})):y&&!y._f&&!L(u)?K(t,u,a):q(t,u,a),Ye(t,p)&&h.state.next({...r}),h.values.next({name:t,values:{...f}}),!x.mount&&i()},fe=async t=>{const n=t.target;let a=n.name,y=!0;const c=d(l,a),u=()=>n.type?Te(c._f):Vt(t);if(c){let g,V;const S=u(),le=t.type===Qe.BLUR||t.type===Qe.FOCUS_OUT,vt=!Bt(c._f)&&!s.resolver&&!d(r.errors,a)&&!c._f.deps||Nt(le,d(r.touchedFields,a),r.isSubmitted,N,R),Ve=Ye(a,p,le);E(f,a,S),le?(c._f.onBlur&&c._f.onBlur(t),C&&C(0)):c._f.onChange&&c._f.onChange(t);const Ae=I(a,S,le,!1),ht=!P(Ae)||Ve;if(!le&&h.values.next({name:a,type:t.type,values:{...f}}),vt)return _.isValid&&v(),ht&&h.state.next({name:a,...Ve?{}:Ae});if(!le&&Ve&&h.state.next({...r}),U(!0),s.resolver){const{errors:We}=await G([a]),bt=it(r.errors,l,a),Ge=it(We,l,bt.name||a);g=Ge.error,a=Ge.name,V=P(We)}else g=(await st(c,f,ie,s.shouldUseNativeValidation))[a],y=Number.isNaN(S)||S===d(f,a,S),y&&(g?V=!1:_.isValid&&(V=await z(l,!0)));y&&(c._f.deps&&de(c._f.deps),ce(a,V,g,Ae))}},de=async(t,n={})=>{let a,y;const c=De(t);if(U(!0),s.resolver){const u=await Z(w(t)?t:c);a=P(u),y=t?!c.some(g=>d(u,g)):a}else t?(y=(await Promise.all(c.map(async u=>{const g=d(l,u);return await z(g&&g._f?{[u]:g}:g)}))).every(Boolean),!(!y&&!r.isValid)&&v()):y=a=await z(l);return h.state.next({...!j(t)||_.isValid&&a!==r.isValid?{}:{name:t},...s.resolver||!t?{isValid:a}:{},errors:r.errors,isValidating:!1}),n.shouldFocus&&!y&&Oe(l,u=>u&&d(r.errors,u),t?c:p.mount),y},Me=t=>{const n={...o,...x.mount?f:{}};return w(t)?n:j(t)?d(n,t):t.map(a=>d(n,a))},Ue=(t,n)=>({invalid:!!d((n||r).errors,t),isDirty:!!d((n||r).dirtyFields,t),isTouched:!!d((n||r).touchedFields,t),error:d((n||r).errors,t)}),yt=t=>{t&&De(t).forEach(n=>O(r.errors,n)),h.state.next({errors:t?r.errors:{}})},Be=(t,n,a)=>{const y=(d(l,t,{_f:{}})._f||{}).ref;E(r.errors,t,{...n,ref:y}),h.state.next({name:t,errors:r.errors,isValid:!1}),a&&a.shouldFocus&&y&&y.focus&&y.focus()},mt=(t,n)=>X(t)?h.values.subscribe({next:a=>t(D(void 0,n),a)}):D(t,n,!0),Ee=(t,n={})=>{for(const a of t?De(t):p.mount)p.mount.delete(a),p.array.delete(a),n.keepValue||(O(l,a),O(f,a)),!n.keepError&&O(r.errors,a),!n.keepDirty&&O(r.dirtyFields,a),!n.keepTouched&&O(r.touchedFields,a),!s.shouldUnregister&&!n.keepDefaultValue&&O(o,a);h.values.next({values:{...f}}),h.state.next({...r,...n.keepDirty?{isDirty:b()}:{}}),!n.keepIsValid&&v()},Ne=({disabled:t,name:n,field:a,fields:y})=>{if(re(t)){const c=t?void 0:d(f,n,Te(a?a._f:d(y,n)._f));E(f,n,c),I(n,c,!1,!1,!0)}},_e=(t,n={})=>{let a=d(l,t);const y=re(n.disabled);return E(l,t,{...a||{},_f:{...a&&a._f?a._f:{ref:{name:t}},name:t,mount:!0,...n}}),p.mount.add(t),a?Ne({field:a,disabled:n.disabled,name:t}):Y(t,!0,n.value),{...y?{disabled:n.disabled}:{},...s.progressive?{required:!!n.required,min:ye(n.min),max:ye(n.max),minLength:ye(n.minLength),maxLength:ye(n.maxLength),pattern:ye(n.pattern)}:{},name:t,onChange:fe,onBlur:fe,ref:c=>{if(c){_e(t,n),a=d(l,t);const u=w(c.value)&&c.querySelectorAll&&c.querySelectorAll("input,select,textarea")[0]||c,g=Mt(u),V=a._f.refs||[];if(g?V.find(S=>S===u):u===a._f.ref)return;E(l,t,{_f:{...a._f,...g?{refs:[...V.filter(we),u,...Array.isArray(d(o,t))?[{}]:[]],ref:{type:u.type,name:t}}:{ref:u}}}),Y(t,!1,void 0,u)}else a=d(l,t,{}),a._f&&(a._f.mount=!1),(s.shouldUnregister||n.shouldUnregister)&&!(Dt(p.array,t)&&x.action)&&p.unMount.add(t)}}},qe=()=>s.shouldFocusError&&Oe(l,t=>t&&d(r.errors,t),p.mount),Pe=(t,n)=>async a=>{a&&(a.preventDefault&&a.preventDefault(),a.persist&&a.persist());let y=Q(f);if(h.state.next({isSubmitting:!0}),s.resolver){const{errors:c,values:u}=await G();r.errors=c,y=u}else await z(l);O(r.errors,"root"),P(r.errors)?(h.state.next({errors:{}}),await t(y,a)):(n&&await n({...r.errors},a),qe(),setTimeout(qe)),h.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:P(r.errors),submitCount:r.submitCount+1,errors:r.errors})},gt=(t,n={})=>{d(l,t)&&(w(n.defaultValue)?ee(t,d(o,t)):(ee(t,n.defaultValue),E(o,t,n.defaultValue)),n.keepTouched||O(r.touchedFields,t),n.keepDirty||(O(r.dirtyFields,t),r.isDirty=n.defaultValue?b(t,d(o,t)):b()),n.keepError||(O(r.errors,t),_.isValid&&v()),h.state.next({...r}))},He=(t,n={})=>{const a=t?Q(t):o,y=Q(a),c=t&&!P(t)?y:o;if(n.keepDefaultValues||(o=a),!n.keepValues){if(n.keepDirtyValues||$)for(const u of p.mount)d(r.dirtyFields,u)?E(c,u,d(f,u)):ee(u,d(c,u));else{if(Ce&&w(t))for(const u of p.mount){const g=d(l,u);if(g&&g._f){const V=Array.isArray(g._f.refs)?g._f.refs[0]:g._f.ref;if(be(V)){const S=V.closest("form");if(S){S.reset();break}}}}l={}}f=e.shouldUnregister?n.keepDefaultValues?Q(o):{}:Q(c),h.array.next({values:{...c}}),h.values.next({values:{...c}})}p={mount:new Set,unMount:new Set,array:new Set,watch:new Set,watchAll:!1,focus:""},!x.mount&&i(),x.mount=!_.isValid||!!n.keepIsValid,x.watch=!!e.shouldUnregister,h.state.next({submitCount:n.keepSubmitCount?r.submitCount:0,isDirty:n.keepDirty?r.isDirty:!!(n.keepDefaultValues&&!se(t,o)),isSubmitted:n.keepIsSubmitted?r.isSubmitted:!1,dirtyFields:n.keepDirtyValues?r.dirtyFields:n.keepDefaultValues&&t?Fe(o,t):{},touchedFields:n.keepTouched?r.touchedFields:{},errors:n.keepErrors?r.errors:{},isSubmitSuccessful:n.keepIsSubmitSuccessful?r.isSubmitSuccessful:!1,isSubmitting:!1})},$e=(t,n)=>He(X(t)?t(f):t,n);return{control:{register:_e,unregister:Ee,getFieldState:Ue,handleSubmit:Pe,setError:Be,_executeSchema:G,_getWatch:D,_getDirty:b,_updateValid:v,_removeUnmounted:k,_updateFieldArray:B,_updateDisabledField:Ne,_getFieldArray:M,_reset:He,_resetDefaultValues:()=>X(s.defaultValues)&&s.defaultValues().then(t=>{$e(t,s.resetOptions),h.state.next({isLoading:!1})}),_updateFormState:t=>{r={...r,...t}},_subjects:h,_proxyFormState:_,get _fields(){return l},get _formValues(){return f},get _state(){return x},set _state(t){x=t},get _defaultValues(){return o},get _names(){return p},set _names(t){p=t},get _formState(){return r},set _formState(t){r=t},get _options(){return s},set _options(t){s={...s,...t}}},trigger:de,register:_e,handleSubmit:Pe,watch:mt,setValue:ee,getValues:Me,reset:$e,resetField:gt,clearErrors:yt,unregister:Ee,setError:Be,setFocus:(t,n={})=>{const a=d(l,t),y=a&&a._f;if(y){const c=y.refs?y.refs[0]:y.ref;c.focus&&(c.focus(),n.shouldSelect&&c.select())}},getFieldState:Ue}}function $t(e={}){const i=m.useRef(),s=m.useRef(),[r,l]=m.useState({isDirty:!1,isValidating:!1,isLoading:X(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},errors:{},defaultValues:X(e.defaultValues)?void 0:e.defaultValues});i.current||(i.current={...Ht(e,()=>l(f=>({...f}))),formState:r});const o=i.current.control;return o._options=e,Tt({subject:o._subjects.state,next:f=>{Ft(f,o._proxyFormState,o._updateFormState,!0)&&l({...o._formState})}}),m.useEffect(()=>{e.values&&!se(e.values,s.current)?(o._reset(e.values,o._options.resetOptions),s.current=e.values):o._resetDefaultValues()},[e.values,o]),m.useEffect(()=>{o._state.mount||(o._updateValid(),o._state.mount=!0),o._state.watch&&(o._state.watch=!1,o._subjects.state.next({...o._formState})),o._removeUnmounted()}),i.current.formState=wt(r,o),i.current}var Wt=(e=>(e.formgroup="formgroup",e.checkbox="checkbox",e.radiobutton="radiobutton",e.textarea="textarea",e.input="input",e.select="select",e))(Wt||{});const Gt=e=>{const{exampleType:i="formgroup"}=e,{register:s,handleSubmit:r,formState:{errors:l}}=$t(),o=new Date;o.setHours(0),o.setMinutes(0),o.setSeconds(0);const f=new Date;f.setDate(o.getDate()-5),f.setHours(6),f.setMinutes(10),f.setSeconds(0);const x=new Date;x.setDate(o.getDate()+5),x.setHours(22),x.setMinutes(0),x.setSeconds(0);const p="field1",C="field2",H="field3",_="field4",h="field5",$="field6",R=l.field1||l.field2||l.field3||l.field4||l.field5||l.field6||l.field7||l.field8||l.field9,N="Du må velge et alternativ",ie="Du må velge to alternativ",ne="Det kan ikke legges inn mer enn 40 tegn",v="Du må skrive noe her",U='Du må velge "Option 2"';`${f.toLocaleDateString("nb")}${x.toLocaleDateString("nb")}`,`${f.toLocaleTimeString("nb",{hour:"2-digit",minute:"2-digit"})}${x.toLocaleTimeString("nb",{hour:"2-digit",minute:"2-digit"})}`;const B=I=>I.length>=2||ie,A=I=>I.toString()==="Option 2"||U,Y=()=>{if(i==="formgroup"){const I=[m.createElement(te,{key:0,inputId:"checkbox1",label:m.createElement(T,{labelTexts:[{text:"Checkbox 1"}]}),...s(p,{required:N})}),m.createElement(te,{key:1,inputId:"checkbox2",label:m.createElement(T,{labelTexts:[{text:"Checkbox 2"}]}),...s(p,{required:N})}),m.createElement(te,{key:2,inputId:"checkbox3",label:m.createElement(T,{labelTexts:[{text:"Checkbox 3"}]}),...s(p,{required:N})})];return[m.createElement(ae,{key:0,title:"Gruppe tittel",legend:"Velg minst en",error:l.field1?l.field1.message:void 0,variant:e.variant},m.createElement(kt,{maxColumns:Et.two},I.map(ce=>ce))),m.createElement(ae,{key:1,legend:"Velg minst to",error:l.field2?l.field2.message:void 0,variant:e.variant},m.createElement(te,{inputId:"checkbox4",label:m.createElement(T,{labelTexts:[{text:"Checkbox 4"}]}),...s(C,{validate:B})}),m.createElement(te,{inputId:"checkbox5",label:m.createElement(T,{labelTexts:[{text:"Checkbox 5"}]}),...s(C,{validate:B})}),m.createElement(te,{inputId:"checkbox6",label:m.createElement(T,{labelTexts:[{text:"Checkbox 6"}]}),...s(C,{validate:B})})),m.createElement(ae,{key:2,legend:"Velg en",error:l.field3?l.field3.message:void 0,variant:e.variant},m.createElement(ve,{inputId:"radiobutton1",label:m.createElement(T,{labelTexts:[{text:"Radiobutton 1"}]}),...s(H,{required:N})}),m.createElement(ve,{inputId:"radiobutton2",label:m.createElement(T,{labelTexts:[{text:"Radiobutton 2"}]}),...s(H,{required:N})}),m.createElement(ve,{inputId:"radiobutton3",label:m.createElement(T,{labelTexts:[{text:"Radiobutton 3"}]}),...s(H,{required:N})})),m.createElement(ae,{key:3,error:l.field4?l.field4.message:void 0},m.createElement(Je,{defaultValue:`Dette er en test
2
-
3
- Hello
4
-
5
- test
6
-
7
- test test`,grow:!0,maxCharacters:40,minRows:5,label:m.createElement(T,{labelTexts:[{text:"Skriv din historie her",type:"semibold"}]}),textareaId:"textarea1",...s(_,{maxLength:{value:40,message:ne}})})),m.createElement(ae,{key:4,variant:e.variant,error:l.field5?l.field5.message:void 0},m.createElement(je,{label:m.createElement(T,{labelTexts:[{text:"Skriv inn din tekst",type:"semibold"}]}),placeholder:"Skriv noe!",icon:Ke,...s(h,{required:v})})),m.createElement(ae,{key:5,variant:e.variant,error:l.field6?l.field6.message:void 0},m.createElement(ze,{label:m.createElement(T,{labelTexts:[{text:"Skriv inn din tekst",type:"semibold"}]}),...s($,{validate:A})},m.createElement("option",{value:"Option 1"},"Option 1"),m.createElement("option",{value:"Option 2"},"Option 2"),m.createElement("option",{value:"Option 3"},"Option 3")))]}else{if(i==="checkbox")return m.createElement(te,{inputId:"checkbox1",label:m.createElement(T,{labelTexts:[{text:"Checkbox 1"}]}),errorText:l.field1?l.field1.message:void 0,variant:e.variant,...s(p,{required:N})});if(i==="radiobutton")return m.createElement(ve,{inputId:"radiobutton1",label:m.createElement(T,{labelTexts:[{text:"Radiobutton 1"}]}),errorText:l.field3?l.field3.message:void 0,variant:e.variant,...s(H,{required:N})});if(i==="textarea")return m.createElement(Je,{defaultValue:`Dette er min historie
8
-
9
- Hello
10
-
11
- test`,grow:!0,maxCharacters:40,minRows:5,errorText:l.field4?l.field4.message:void 0,label:m.createElement(T,{labelTexts:[{text:"Skriv din historie her",type:"semibold"}]}),textareaId:"textarea1",...s(_,{maxLength:{value:40,message:ne}})});if(i==="input")return m.createElement(je,{inputId:"input1",label:m.createElement(T,{labelTexts:[{text:"Skriv inn din tekst",type:"semibold"}]}),placeholder:"Skriv noe!",errorText:l.field5?l.field5.message:void 0,icon:Ke,...s(h,{required:v})});if(i==="select")return m.createElement(ze,{errorText:l.field6?l.field6.message:void 0,label:m.createElement(T,{labelTexts:[{text:"Skriv inn din tekst",type:"semibold"}]}),...s($,{validate:A})},m.createElement("option",{value:"Option 1"},"Option 1"),m.createElement("option",{value:"Option 2"},"Option 2"),m.createElement("option",{value:"Option 3"},"Option 3"))}};return m.createElement("form",{noValidate:!0,onSubmit:r(I=>{!xt()&&console.log(I)})},m.createElement(_t,{variant:e.variant,errorSummary:R?"Sjekk at alt er riktig utfylt":void 0},Y()),m.createElement(pt,{type:"submit"},"Send inn"))},Zr=Gt;export{Gt as FormExample,Wt as FormExampleVariants,Zr as default};
1
+ import r from "./FormExample.js";
2
+ import { FormExample as e, FormExampleVariants as p } from "./FormExample.js";
3
+ export {
4
+ e as FormExample,
5
+ p as FormExampleVariants,
6
+ r as default
7
+ };
12
8
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":["../../../../../node_modules/react-hook-form/dist/index.esm.mjs","../../../src/components/FormExample/FormExample.tsx"],"sourcesContent":["import React from 'react';\n\nvar isCheckBoxInput = (element) => element.type === 'checkbox';\n\nvar isDateObject = (value) => value instanceof Date;\n\nvar isNullOrUndefined = (value) => value == null;\n\nconst isObjectType = (value) => typeof value === 'object';\nvar isObject = (value) => !isNullOrUndefined(value) &&\n !Array.isArray(value) &&\n isObjectType(value) &&\n !isDateObject(value);\n\nvar getEventValue = (event) => isObject(event) && event.target\n ? isCheckBoxInput(event.target)\n ? event.target.checked\n : event.target.value\n : event;\n\nvar getNodeParentName = (name) => name.substring(0, name.search(/\\.\\d+(\\.|$)/)) || name;\n\nvar isNameInFieldArray = (names, name) => names.has(getNodeParentName(name));\n\nvar isPlainObject = (tempObject) => {\n const prototypeCopy = tempObject.constructor && tempObject.constructor.prototype;\n return (isObject(prototypeCopy) && prototypeCopy.hasOwnProperty('isPrototypeOf'));\n};\n\nvar isWeb = typeof window !== 'undefined' &&\n typeof window.HTMLElement !== 'undefined' &&\n typeof document !== 'undefined';\n\nfunction cloneObject(data) {\n let copy;\n const isArray = Array.isArray(data);\n if (data instanceof Date) {\n copy = new Date(data);\n }\n else if (data instanceof Set) {\n copy = new Set(data);\n }\n else if (!(isWeb && (data instanceof Blob || data instanceof FileList)) &&\n (isArray || isObject(data))) {\n copy = isArray ? [] : {};\n if (!isArray && !isPlainObject(data)) {\n copy = data;\n }\n else {\n for (const key in data) {\n if (data.hasOwnProperty(key)) {\n copy[key] = cloneObject(data[key]);\n }\n }\n }\n }\n else {\n return data;\n }\n return copy;\n}\n\nvar compact = (value) => Array.isArray(value) ? value.filter(Boolean) : [];\n\nvar isUndefined = (val) => val === undefined;\n\nvar get = (obj, path, defaultValue) => {\n if (!path || !isObject(obj)) {\n return defaultValue;\n }\n const result = compact(path.split(/[,[\\].]+?/)).reduce((result, key) => isNullOrUndefined(result) ? result : result[key], obj);\n return isUndefined(result) || result === obj\n ? isUndefined(obj[path])\n ? defaultValue\n : obj[path]\n : result;\n};\n\nvar isBoolean = (value) => typeof value === 'boolean';\n\nconst EVENTS = {\n BLUR: 'blur',\n FOCUS_OUT: 'focusout',\n CHANGE: 'change',\n};\nconst VALIDATION_MODE = {\n onBlur: 'onBlur',\n onChange: 'onChange',\n onSubmit: 'onSubmit',\n onTouched: 'onTouched',\n all: 'all',\n};\nconst INPUT_VALIDATION_RULES = {\n max: 'max',\n min: 'min',\n maxLength: 'maxLength',\n minLength: 'minLength',\n pattern: 'pattern',\n required: 'required',\n validate: 'validate',\n};\n\nconst HookFormContext = React.createContext(null);\n/**\n * This custom hook allows you to access the form context. useFormContext is intended to be used in deeply nested structures, where it would become inconvenient to pass the context as a prop. To be used with {@link FormProvider}.\n *\n * @remarks\n * [API](https://react-hook-form.com/docs/useformcontext) • [Demo](https://codesandbox.io/s/react-hook-form-v7-form-context-ytudi)\n *\n * @returns return all useForm methods\n *\n * @example\n * ```tsx\n * function App() {\n * const methods = useForm();\n * const onSubmit = data => console.log(data);\n *\n * return (\n * <FormProvider {...methods} >\n * <form onSubmit={methods.handleSubmit(onSubmit)}>\n * <NestedInput />\n * <input type=\"submit\" />\n * </form>\n * </FormProvider>\n * );\n * }\n *\n * function NestedInput() {\n * const { register } = useFormContext(); // retrieve all hook methods\n * return <input {...register(\"test\")} />;\n * }\n * ```\n */\nconst useFormContext = () => React.useContext(HookFormContext);\n/**\n * A provider component that propagates the `useForm` methods to all children components via [React Context](https://reactjs.org/docs/context.html) API. To be used with {@link useFormContext}.\n *\n * @remarks\n * [API](https://react-hook-form.com/docs/useformcontext) • [Demo](https://codesandbox.io/s/react-hook-form-v7-form-context-ytudi)\n *\n * @param props - all useFrom methods\n *\n * @example\n * ```tsx\n * function App() {\n * const methods = useForm();\n * const onSubmit = data => console.log(data);\n *\n * return (\n * <FormProvider {...methods} >\n * <form onSubmit={methods.handleSubmit(onSubmit)}>\n * <NestedInput />\n * <input type=\"submit\" />\n * </form>\n * </FormProvider>\n * );\n * }\n *\n * function NestedInput() {\n * const { register } = useFormContext(); // retrieve all hook methods\n * return <input {...register(\"test\")} />;\n * }\n * ```\n */\nconst FormProvider = (props) => {\n const { children, ...data } = props;\n return (React.createElement(HookFormContext.Provider, { value: data }, children));\n};\n\nvar getProxyFormState = (formState, control, localProxyFormState, isRoot = true) => {\n const result = {\n defaultValues: control._defaultValues,\n };\n for (const key in formState) {\n Object.defineProperty(result, key, {\n get: () => {\n const _key = key;\n if (control._proxyFormState[_key] !== VALIDATION_MODE.all) {\n control._proxyFormState[_key] = !isRoot || VALIDATION_MODE.all;\n }\n localProxyFormState && (localProxyFormState[_key] = true);\n return formState[_key];\n },\n });\n }\n return result;\n};\n\nvar isEmptyObject = (value) => isObject(value) && !Object.keys(value).length;\n\nvar shouldRenderFormState = (formStateData, _proxyFormState, updateFormState, isRoot) => {\n updateFormState(formStateData);\n const { name, ...formState } = formStateData;\n return (isEmptyObject(formState) ||\n Object.keys(formState).length >= Object.keys(_proxyFormState).length ||\n Object.keys(formState).find((key) => _proxyFormState[key] ===\n (!isRoot || VALIDATION_MODE.all)));\n};\n\nvar convertToArrayPayload = (value) => (Array.isArray(value) ? value : [value]);\n\nvar shouldSubscribeByName = (name, signalName, exact) => !name ||\n !signalName ||\n name === signalName ||\n convertToArrayPayload(name).some((currentName) => currentName &&\n (exact\n ? currentName === signalName\n : currentName.startsWith(signalName) ||\n signalName.startsWith(currentName)));\n\nfunction useSubscribe(props) {\n const _props = React.useRef(props);\n _props.current = props;\n React.useEffect(() => {\n const subscription = !props.disabled &&\n _props.current.subject &&\n _props.current.subject.subscribe({\n next: _props.current.next,\n });\n return () => {\n subscription && subscription.unsubscribe();\n };\n }, [props.disabled]);\n}\n\n/**\n * This custom hook allows you to subscribe to each form state, and isolate the re-render at the custom hook level. It has its scope in terms of form state subscription, so it would not affect other useFormState and useForm. Using this hook can reduce the re-render impact on large and complex form application.\n *\n * @remarks\n * [API](https://react-hook-form.com/docs/useformstate) • [Demo](https://codesandbox.io/s/useformstate-75xly)\n *\n * @param props - include options on specify fields to subscribe. {@link UseFormStateReturn}\n *\n * @example\n * ```tsx\n * function App() {\n * const { register, handleSubmit, control } = useForm({\n * defaultValues: {\n * firstName: \"firstName\"\n * }});\n * const { dirtyFields } = useFormState({\n * control\n * });\n * const onSubmit = (data) => console.log(data);\n *\n * return (\n * <form onSubmit={handleSubmit(onSubmit)}>\n * <input {...register(\"firstName\")} placeholder=\"First Name\" />\n * {dirtyFields.firstName && <p>Field is dirty.</p>}\n * <input type=\"submit\" />\n * </form>\n * );\n * }\n * ```\n */\nfunction useFormState(props) {\n const methods = useFormContext();\n const { control = methods.control, disabled, name, exact } = props || {};\n const [formState, updateFormState] = React.useState(control._formState);\n const _mounted = React.useRef(true);\n const _localProxyFormState = React.useRef({\n isDirty: false,\n isLoading: false,\n dirtyFields: false,\n touchedFields: false,\n isValidating: false,\n isValid: false,\n errors: false,\n });\n const _name = React.useRef(name);\n _name.current = name;\n useSubscribe({\n disabled,\n next: (value) => _mounted.current &&\n shouldSubscribeByName(_name.current, value.name, exact) &&\n shouldRenderFormState(value, _localProxyFormState.current, control._updateFormState) &&\n updateFormState({\n ...control._formState,\n ...value,\n }),\n subject: control._subjects.state,\n });\n React.useEffect(() => {\n _mounted.current = true;\n _localProxyFormState.current.isValid && control._updateValid(true);\n return () => {\n _mounted.current = false;\n };\n }, [control]);\n return getProxyFormState(formState, control, _localProxyFormState.current, false);\n}\n\nvar isString = (value) => typeof value === 'string';\n\nvar generateWatchOutput = (names, _names, formValues, isGlobal, defaultValue) => {\n if (isString(names)) {\n isGlobal && _names.watch.add(names);\n return get(formValues, names, defaultValue);\n }\n if (Array.isArray(names)) {\n return names.map((fieldName) => (isGlobal && _names.watch.add(fieldName), get(formValues, fieldName)));\n }\n isGlobal && (_names.watchAll = true);\n return formValues;\n};\n\n/**\n * Custom hook to subscribe to field change and isolate re-rendering at the component level.\n *\n * @remarks\n *\n * [API](https://react-hook-form.com/docs/usewatch) • [Demo](https://codesandbox.io/s/react-hook-form-v7-ts-usewatch-h9i5e)\n *\n * @example\n * ```tsx\n * const { watch } = useForm();\n * const values = useWatch({\n * name: \"fieldName\"\n * control,\n * })\n * ```\n */\nfunction useWatch(props) {\n const methods = useFormContext();\n const { control = methods.control, name, defaultValue, disabled, exact, } = props || {};\n const _name = React.useRef(name);\n _name.current = name;\n useSubscribe({\n disabled,\n subject: control._subjects.values,\n next: (formState) => {\n if (shouldSubscribeByName(_name.current, formState.name, exact)) {\n updateValue(cloneObject(generateWatchOutput(_name.current, control._names, formState.values || control._formValues, false, defaultValue)));\n }\n },\n });\n const [value, updateValue] = React.useState(control._getWatch(name, defaultValue));\n React.useEffect(() => control._removeUnmounted());\n return value;\n}\n\nvar isKey = (value) => /^\\w*$/.test(value);\n\nvar stringToPath = (input) => compact(input.replace(/[\"|']|\\]/g, '').split(/\\.|\\[/));\n\nfunction set(object, path, value) {\n let index = -1;\n const tempPath = isKey(path) ? [path] : stringToPath(path);\n const length = tempPath.length;\n const lastIndex = length - 1;\n while (++index < length) {\n const key = tempPath[index];\n let newValue = value;\n if (index !== lastIndex) {\n const objValue = object[key];\n newValue =\n isObject(objValue) || Array.isArray(objValue)\n ? objValue\n : !isNaN(+tempPath[index + 1])\n ? []\n : {};\n }\n object[key] = newValue;\n object = object[key];\n }\n return object;\n}\n\n/**\n * Custom hook to work with controlled component, this function provide you with both form and field level state. Re-render is isolated at the hook level.\n *\n * @remarks\n * [API](https://react-hook-form.com/docs/usecontroller) • [Demo](https://codesandbox.io/s/usecontroller-0o8px)\n *\n * @param props - the path name to the form field value, and validation rules.\n *\n * @returns field properties, field and form state. {@link UseControllerReturn}\n *\n * @example\n * ```tsx\n * function Input(props) {\n * const { field, fieldState, formState } = useController(props);\n * return (\n * <div>\n * <input {...field} placeholder={props.name} />\n * <p>{fieldState.isTouched && \"Touched\"}</p>\n * <p>{formState.isSubmitted ? \"submitted\" : \"\"}</p>\n * </div>\n * );\n * }\n * ```\n */\nfunction useController(props) {\n const methods = useFormContext();\n const { name, disabled, control = methods.control, shouldUnregister } = props;\n const isArrayField = isNameInFieldArray(control._names.array, name);\n const value = useWatch({\n control,\n name,\n defaultValue: get(control._formValues, name, get(control._defaultValues, name, props.defaultValue)),\n exact: true,\n });\n const formState = useFormState({\n control,\n name,\n });\n const _registerProps = React.useRef(control.register(name, {\n ...props.rules,\n value,\n }));\n _registerProps.current = control.register(name, props.rules);\n React.useEffect(() => {\n const _shouldUnregisterField = control._options.shouldUnregister || shouldUnregister;\n const updateMounted = (name, value) => {\n const field = get(control._fields, name);\n if (field) {\n field._f.mount = value;\n }\n };\n updateMounted(name, true);\n if (_shouldUnregisterField) {\n const value = cloneObject(get(control._options.defaultValues, name));\n set(control._defaultValues, name, value);\n if (isUndefined(get(control._formValues, name))) {\n set(control._formValues, name, value);\n }\n }\n return () => {\n (isArrayField\n ? _shouldUnregisterField && !control._state.action\n : _shouldUnregisterField)\n ? control.unregister(name)\n : updateMounted(name, false);\n };\n }, [name, control, isArrayField, shouldUnregister]);\n React.useEffect(() => {\n if (get(control._fields, name)) {\n control._updateDisabledField({\n disabled,\n fields: control._fields,\n name,\n });\n }\n }, [disabled, name, control]);\n return {\n field: {\n name,\n value,\n ...(isBoolean(disabled) ? { disabled } : {}),\n onChange: React.useCallback((event) => _registerProps.current.onChange({\n target: {\n value: getEventValue(event),\n name: name,\n },\n type: EVENTS.CHANGE,\n }), [name]),\n onBlur: React.useCallback(() => _registerProps.current.onBlur({\n target: {\n value: get(control._formValues, name),\n name: name,\n },\n type: EVENTS.BLUR,\n }), [name, control]),\n ref: (elm) => {\n const field = get(control._fields, name);\n if (field && elm) {\n field._f.ref = {\n focus: () => elm.focus(),\n select: () => elm.select(),\n setCustomValidity: (message) => elm.setCustomValidity(message),\n reportValidity: () => elm.reportValidity(),\n };\n }\n },\n },\n formState,\n fieldState: Object.defineProperties({}, {\n invalid: {\n enumerable: true,\n get: () => !!get(formState.errors, name),\n },\n isDirty: {\n enumerable: true,\n get: () => !!get(formState.dirtyFields, name),\n },\n isTouched: {\n enumerable: true,\n get: () => !!get(formState.touchedFields, name),\n },\n error: {\n enumerable: true,\n get: () => get(formState.errors, name),\n },\n }),\n };\n}\n\n/**\n * Component based on `useController` hook to work with controlled component.\n *\n * @remarks\n * [API](https://react-hook-form.com/docs/usecontroller/controller) • [Demo](https://codesandbox.io/s/react-hook-form-v6-controller-ts-jwyzw) • [Video](https://www.youtube.com/watch?v=N2UNk_UCVyA)\n *\n * @param props - the path name to the form field value, and validation rules.\n *\n * @returns provide field handler functions, field and form state.\n *\n * @example\n * ```tsx\n * function App() {\n * const { control } = useForm<FormValues>({\n * defaultValues: {\n * test: \"\"\n * }\n * });\n *\n * return (\n * <form>\n * <Controller\n * control={control}\n * name=\"test\"\n * render={({ field: { onChange, onBlur, value, ref }, formState, fieldState }) => (\n * <>\n * <input\n * onChange={onChange} // send value to hook form\n * onBlur={onBlur} // notify when input is touched\n * value={value} // return updated value\n * ref={ref} // set ref for focus management\n * />\n * <p>{formState.isSubmitted ? \"submitted\" : \"\"}</p>\n * <p>{fieldState.isTouched ? \"touched\" : \"\"}</p>\n * </>\n * )}\n * />\n * </form>\n * );\n * }\n * ```\n */\nconst Controller = (props) => props.render(useController(props));\n\nconst POST_REQUEST = 'post';\n/**\n * Form component to manage submission.\n *\n * @param props - to setup submission detail. {@link FormProps}\n *\n * @returns form component or headless render prop.\n *\n * @example\n * ```tsx\n * function App() {\n * const { control, formState: { errors } } = useForm();\n *\n * return (\n * <Form action=\"/api\" control={control}>\n * <input {...register(\"name\")} />\n * <p>{errors?.root?.server && 'Server error'}</p>\n * <button>Submit</button>\n * </Form>\n * );\n * }\n * ```\n */\nfunction Form(props) {\n const methods = useFormContext();\n const [mounted, setMounted] = React.useState(false);\n const { control = methods.control, onSubmit, children, action, method = POST_REQUEST, headers, encType, onError, render, onSuccess, validateStatus, ...rest } = props;\n const submit = async (event) => {\n let hasError = false;\n let type = '';\n await control.handleSubmit(async (data) => {\n const formData = new FormData();\n let formDataJson = '';\n try {\n formDataJson = JSON.stringify(data);\n }\n catch (_a) { }\n for (const name of control._names.mount) {\n formData.append(name, get(data, name));\n }\n if (onSubmit) {\n await onSubmit({\n data,\n event,\n method,\n formData,\n formDataJson,\n });\n }\n if (action) {\n try {\n const shouldStringifySubmissionData = [\n headers && headers['Content-Type'],\n encType,\n ].some((value) => value && value.includes('json'));\n const response = await fetch(action, {\n method,\n headers: {\n ...headers,\n ...(encType ? { 'Content-Type': encType } : {}),\n },\n body: shouldStringifySubmissionData ? formDataJson : formData,\n });\n if (response &&\n (validateStatus\n ? !validateStatus(response.status)\n : response.status < 200 || response.status >= 300)) {\n hasError = true;\n onError && onError({ response });\n type = String(response.status);\n }\n else {\n onSuccess && onSuccess({ response });\n }\n }\n catch (error) {\n hasError = true;\n onError && onError({ error });\n }\n }\n })(event);\n if (hasError && props.control) {\n props.control._subjects.state.next({\n isSubmitSuccessful: false,\n });\n props.control.setError('root.server', {\n type,\n });\n }\n };\n React.useEffect(() => {\n setMounted(true);\n }, []);\n return render ? (React.createElement(React.Fragment, null, render({\n submit,\n }))) : (React.createElement(\"form\", { noValidate: mounted, action: action, method: method, encType: encType, onSubmit: submit, ...rest }, children));\n}\n\nvar appendErrors = (name, validateAllFieldCriteria, errors, type, message) => validateAllFieldCriteria\n ? {\n ...errors[name],\n types: {\n ...(errors[name] && errors[name].types ? errors[name].types : {}),\n [type]: message || true,\n },\n }\n : {};\n\nconst focusFieldBy = (fields, callback, fieldsNames) => {\n for (const key of fieldsNames || Object.keys(fields)) {\n const field = get(fields, key);\n if (field) {\n const { _f, ...currentField } = field;\n if (_f && callback(_f.name)) {\n if (_f.ref.focus) {\n _f.ref.focus();\n break;\n }\n else if (_f.refs && _f.refs[0].focus) {\n _f.refs[0].focus();\n break;\n }\n }\n else if (isObject(currentField)) {\n focusFieldBy(currentField, callback);\n }\n }\n }\n};\n\nvar generateId = () => {\n const d = typeof performance === 'undefined' ? Date.now() : performance.now() * 1000;\n return 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, (c) => {\n const r = (Math.random() * 16 + d) % 16 | 0;\n return (c == 'x' ? r : (r & 0x3) | 0x8).toString(16);\n });\n};\n\nvar getFocusFieldName = (name, index, options = {}) => options.shouldFocus || isUndefined(options.shouldFocus)\n ? options.focusName ||\n `${name}.${isUndefined(options.focusIndex) ? index : options.focusIndex}.`\n : '';\n\nvar getValidationModes = (mode) => ({\n isOnSubmit: !mode || mode === VALIDATION_MODE.onSubmit,\n isOnBlur: mode === VALIDATION_MODE.onBlur,\n isOnChange: mode === VALIDATION_MODE.onChange,\n isOnAll: mode === VALIDATION_MODE.all,\n isOnTouch: mode === VALIDATION_MODE.onTouched,\n});\n\nvar isWatched = (name, _names, isBlurEvent) => !isBlurEvent &&\n (_names.watchAll ||\n _names.watch.has(name) ||\n [..._names.watch].some((watchName) => name.startsWith(watchName) &&\n /^\\.\\w+/.test(name.slice(watchName.length))));\n\nvar updateFieldArrayRootError = (errors, error, name) => {\n const fieldArrayErrors = compact(get(errors, name));\n set(fieldArrayErrors, 'root', error[name]);\n set(errors, name, fieldArrayErrors);\n return errors;\n};\n\nvar isFileInput = (element) => element.type === 'file';\n\nvar isFunction = (value) => typeof value === 'function';\n\nvar isHTMLElement = (value) => {\n if (!isWeb) {\n return false;\n }\n const owner = value ? value.ownerDocument : 0;\n return (value instanceof\n (owner && owner.defaultView ? owner.defaultView.HTMLElement : HTMLElement));\n};\n\nvar isMessage = (value) => isString(value);\n\nvar isRadioInput = (element) => element.type === 'radio';\n\nvar isRegex = (value) => value instanceof RegExp;\n\nconst defaultResult = {\n value: false,\n isValid: false,\n};\nconst validResult = { value: true, isValid: true };\nvar getCheckboxValue = (options) => {\n if (Array.isArray(options)) {\n if (options.length > 1) {\n const values = options\n .filter((option) => option && option.checked && !option.disabled)\n .map((option) => option.value);\n return { value: values, isValid: !!values.length };\n }\n return options[0].checked && !options[0].disabled\n ? // @ts-expect-error expected to work in the browser\n options[0].attributes && !isUndefined(options[0].attributes.value)\n ? isUndefined(options[0].value) || options[0].value === ''\n ? validResult\n : { value: options[0].value, isValid: true }\n : validResult\n : defaultResult;\n }\n return defaultResult;\n};\n\nconst defaultReturn = {\n isValid: false,\n value: null,\n};\nvar getRadioValue = (options) => Array.isArray(options)\n ? options.reduce((previous, option) => option && option.checked && !option.disabled\n ? {\n isValid: true,\n value: option.value,\n }\n : previous, defaultReturn)\n : defaultReturn;\n\nfunction getValidateError(result, ref, type = 'validate') {\n if (isMessage(result) ||\n (Array.isArray(result) && result.every(isMessage)) ||\n (isBoolean(result) && !result)) {\n return {\n type,\n message: isMessage(result) ? result : '',\n ref,\n };\n }\n}\n\nvar getValueAndMessage = (validationData) => isObject(validationData) && !isRegex(validationData)\n ? validationData\n : {\n value: validationData,\n message: '',\n };\n\nvar validateField = async (field, formValues, validateAllFieldCriteria, shouldUseNativeValidation, isFieldArray) => {\n const { ref, refs, required, maxLength, minLength, min, max, pattern, validate, name, valueAsNumber, mount, disabled, } = field._f;\n const inputValue = get(formValues, name);\n if (!mount || disabled) {\n return {};\n }\n const inputRef = refs ? refs[0] : ref;\n const setCustomValidity = (message) => {\n if (shouldUseNativeValidation && inputRef.reportValidity) {\n inputRef.setCustomValidity(isBoolean(message) ? '' : message || '');\n inputRef.reportValidity();\n }\n };\n const error = {};\n const isRadio = isRadioInput(ref);\n const isCheckBox = isCheckBoxInput(ref);\n const isRadioOrCheckbox = isRadio || isCheckBox;\n const isEmpty = ((valueAsNumber || isFileInput(ref)) &&\n isUndefined(ref.value) &&\n isUndefined(inputValue)) ||\n (isHTMLElement(ref) && ref.value === '') ||\n inputValue === '' ||\n (Array.isArray(inputValue) && !inputValue.length);\n const appendErrorsCurry = appendErrors.bind(null, name, validateAllFieldCriteria, error);\n const getMinMaxMessage = (exceedMax, maxLengthMessage, minLengthMessage, maxType = INPUT_VALIDATION_RULES.maxLength, minType = INPUT_VALIDATION_RULES.minLength) => {\n const message = exceedMax ? maxLengthMessage : minLengthMessage;\n error[name] = {\n type: exceedMax ? maxType : minType,\n message,\n ref,\n ...appendErrorsCurry(exceedMax ? maxType : minType, message),\n };\n };\n if (isFieldArray\n ? !Array.isArray(inputValue) || !inputValue.length\n : required &&\n ((!isRadioOrCheckbox && (isEmpty || isNullOrUndefined(inputValue))) ||\n (isBoolean(inputValue) && !inputValue) ||\n (isCheckBox && !getCheckboxValue(refs).isValid) ||\n (isRadio && !getRadioValue(refs).isValid))) {\n const { value, message } = isMessage(required)\n ? { value: !!required, message: required }\n : getValueAndMessage(required);\n if (value) {\n error[name] = {\n type: INPUT_VALIDATION_RULES.required,\n message,\n ref: inputRef,\n ...appendErrorsCurry(INPUT_VALIDATION_RULES.required, message),\n };\n if (!validateAllFieldCriteria) {\n setCustomValidity(message);\n return error;\n }\n }\n }\n if (!isEmpty && (!isNullOrUndefined(min) || !isNullOrUndefined(max))) {\n let exceedMax;\n let exceedMin;\n const maxOutput = getValueAndMessage(max);\n const minOutput = getValueAndMessage(min);\n if (!isNullOrUndefined(inputValue) && !isNaN(inputValue)) {\n const valueNumber = ref.valueAsNumber ||\n (inputValue ? +inputValue : inputValue);\n if (!isNullOrUndefined(maxOutput.value)) {\n exceedMax = valueNumber > maxOutput.value;\n }\n if (!isNullOrUndefined(minOutput.value)) {\n exceedMin = valueNumber < minOutput.value;\n }\n }\n else {\n const valueDate = ref.valueAsDate || new Date(inputValue);\n const convertTimeToDate = (time) => new Date(new Date().toDateString() + ' ' + time);\n const isTime = ref.type == 'time';\n const isWeek = ref.type == 'week';\n if (isString(maxOutput.value) && inputValue) {\n exceedMax = isTime\n ? convertTimeToDate(inputValue) > convertTimeToDate(maxOutput.value)\n : isWeek\n ? inputValue > maxOutput.value\n : valueDate > new Date(maxOutput.value);\n }\n if (isString(minOutput.value) && inputValue) {\n exceedMin = isTime\n ? convertTimeToDate(inputValue) < convertTimeToDate(minOutput.value)\n : isWeek\n ? inputValue < minOutput.value\n : valueDate < new Date(minOutput.value);\n }\n }\n if (exceedMax || exceedMin) {\n getMinMaxMessage(!!exceedMax, maxOutput.message, minOutput.message, INPUT_VALIDATION_RULES.max, INPUT_VALIDATION_RULES.min);\n if (!validateAllFieldCriteria) {\n setCustomValidity(error[name].message);\n return error;\n }\n }\n }\n if ((maxLength || minLength) &&\n !isEmpty &&\n (isString(inputValue) || (isFieldArray && Array.isArray(inputValue)))) {\n const maxLengthOutput = getValueAndMessage(maxLength);\n const minLengthOutput = getValueAndMessage(minLength);\n const exceedMax = !isNullOrUndefined(maxLengthOutput.value) &&\n inputValue.length > +maxLengthOutput.value;\n const exceedMin = !isNullOrUndefined(minLengthOutput.value) &&\n inputValue.length < +minLengthOutput.value;\n if (exceedMax || exceedMin) {\n getMinMaxMessage(exceedMax, maxLengthOutput.message, minLengthOutput.message);\n if (!validateAllFieldCriteria) {\n setCustomValidity(error[name].message);\n return error;\n }\n }\n }\n if (pattern && !isEmpty && isString(inputValue)) {\n const { value: patternValue, message } = getValueAndMessage(pattern);\n if (isRegex(patternValue) && !inputValue.match(patternValue)) {\n error[name] = {\n type: INPUT_VALIDATION_RULES.pattern,\n message,\n ref,\n ...appendErrorsCurry(INPUT_VALIDATION_RULES.pattern, message),\n };\n if (!validateAllFieldCriteria) {\n setCustomValidity(message);\n return error;\n }\n }\n }\n if (validate) {\n if (isFunction(validate)) {\n const result = await validate(inputValue, formValues);\n const validateError = getValidateError(result, inputRef);\n if (validateError) {\n error[name] = {\n ...validateError,\n ...appendErrorsCurry(INPUT_VALIDATION_RULES.validate, validateError.message),\n };\n if (!validateAllFieldCriteria) {\n setCustomValidity(validateError.message);\n return error;\n }\n }\n }\n else if (isObject(validate)) {\n let validationResult = {};\n for (const key in validate) {\n if (!isEmptyObject(validationResult) && !validateAllFieldCriteria) {\n break;\n }\n const validateError = getValidateError(await validate[key](inputValue, formValues), inputRef, key);\n if (validateError) {\n validationResult = {\n ...validateError,\n ...appendErrorsCurry(key, validateError.message),\n };\n setCustomValidity(validateError.message);\n if (validateAllFieldCriteria) {\n error[name] = validationResult;\n }\n }\n }\n if (!isEmptyObject(validationResult)) {\n error[name] = {\n ref: inputRef,\n ...validationResult,\n };\n if (!validateAllFieldCriteria) {\n return error;\n }\n }\n }\n }\n setCustomValidity(true);\n return error;\n};\n\nfunction append(data, value) {\n return [...data, ...convertToArrayPayload(value)];\n}\n\nvar fillEmptyArray = (value) => Array.isArray(value) ? value.map(() => undefined) : undefined;\n\nfunction insert(data, index, value) {\n return [\n ...data.slice(0, index),\n ...convertToArrayPayload(value),\n ...data.slice(index),\n ];\n}\n\nvar moveArrayAt = (data, from, to) => {\n if (!Array.isArray(data)) {\n return [];\n }\n if (isUndefined(data[to])) {\n data[to] = undefined;\n }\n data.splice(to, 0, data.splice(from, 1)[0]);\n return data;\n};\n\nfunction prepend(data, value) {\n return [...convertToArrayPayload(value), ...convertToArrayPayload(data)];\n}\n\nfunction removeAtIndexes(data, indexes) {\n let i = 0;\n const temp = [...data];\n for (const index of indexes) {\n temp.splice(index - i, 1);\n i++;\n }\n return compact(temp).length ? temp : [];\n}\nvar removeArrayAt = (data, index) => isUndefined(index)\n ? []\n : removeAtIndexes(data, convertToArrayPayload(index).sort((a, b) => a - b));\n\nvar swapArrayAt = (data, indexA, indexB) => {\n data[indexA] = [data[indexB], (data[indexB] = data[indexA])][0];\n};\n\nfunction baseGet(object, updatePath) {\n const length = updatePath.slice(0, -1).length;\n let index = 0;\n while (index < length) {\n object = isUndefined(object) ? index++ : object[updatePath[index++]];\n }\n return object;\n}\nfunction isEmptyArray(obj) {\n for (const key in obj) {\n if (obj.hasOwnProperty(key) && !isUndefined(obj[key])) {\n return false;\n }\n }\n return true;\n}\nfunction unset(object, path) {\n const paths = Array.isArray(path)\n ? path\n : isKey(path)\n ? [path]\n : stringToPath(path);\n const childObject = paths.length === 1 ? object : baseGet(object, paths);\n const index = paths.length - 1;\n const key = paths[index];\n if (childObject) {\n delete childObject[key];\n }\n if (index !== 0 &&\n ((isObject(childObject) && isEmptyObject(childObject)) ||\n (Array.isArray(childObject) && isEmptyArray(childObject)))) {\n unset(object, paths.slice(0, -1));\n }\n return object;\n}\n\nvar updateAt = (fieldValues, index, value) => {\n fieldValues[index] = value;\n return fieldValues;\n};\n\n/**\n * A custom hook that exposes convenient methods to perform operations with a list of dynamic inputs that need to be appended, updated, removed etc. • [Demo](https://codesandbox.io/s/react-hook-form-usefieldarray-ssugn) • [Video](https://youtu.be/4MrbfGSFY2A)\n *\n * @remarks\n * [API](https://react-hook-form.com/docs/usefieldarray) • [Demo](https://codesandbox.io/s/react-hook-form-usefieldarray-ssugn)\n *\n * @param props - useFieldArray props\n *\n * @returns methods - functions to manipulate with the Field Arrays (dynamic inputs) {@link UseFieldArrayReturn}\n *\n * @example\n * ```tsx\n * function App() {\n * const { register, control, handleSubmit, reset, trigger, setError } = useForm({\n * defaultValues: {\n * test: []\n * }\n * });\n * const { fields, append } = useFieldArray({\n * control,\n * name: \"test\"\n * });\n *\n * return (\n * <form onSubmit={handleSubmit(data => console.log(data))}>\n * {fields.map((item, index) => (\n * <input key={item.id} {...register(`test.${index}.firstName`)} />\n * ))}\n * <button type=\"button\" onClick={() => append({ firstName: \"bill\" })}>\n * append\n * </button>\n * <input type=\"submit\" />\n * </form>\n * );\n * }\n * ```\n */\nfunction useFieldArray(props) {\n const methods = useFormContext();\n const { control = methods.control, name, keyName = 'id', shouldUnregister, } = props;\n const [fields, setFields] = React.useState(control._getFieldArray(name));\n const ids = React.useRef(control._getFieldArray(name).map(generateId));\n const _fieldIds = React.useRef(fields);\n const _name = React.useRef(name);\n const _actioned = React.useRef(false);\n _name.current = name;\n _fieldIds.current = fields;\n control._names.array.add(name);\n props.rules &&\n control.register(name, props.rules);\n useSubscribe({\n next: ({ values, name: fieldArrayName, }) => {\n if (fieldArrayName === _name.current || !fieldArrayName) {\n const fieldValues = get(values, _name.current);\n if (Array.isArray(fieldValues)) {\n setFields(fieldValues);\n ids.current = fieldValues.map(generateId);\n }\n }\n },\n subject: control._subjects.array,\n });\n const updateValues = React.useCallback((updatedFieldArrayValues) => {\n _actioned.current = true;\n control._updateFieldArray(name, updatedFieldArrayValues);\n }, [control, name]);\n const append$1 = (value, options) => {\n const appendValue = convertToArrayPayload(cloneObject(value));\n const updatedFieldArrayValues = append(control._getFieldArray(name), appendValue);\n control._names.focus = getFocusFieldName(name, updatedFieldArrayValues.length - 1, options);\n ids.current = append(ids.current, appendValue.map(generateId));\n updateValues(updatedFieldArrayValues);\n setFields(updatedFieldArrayValues);\n control._updateFieldArray(name, updatedFieldArrayValues, append, {\n argA: fillEmptyArray(value),\n });\n };\n const prepend$1 = (value, options) => {\n const prependValue = convertToArrayPayload(cloneObject(value));\n const updatedFieldArrayValues = prepend(control._getFieldArray(name), prependValue);\n control._names.focus = getFocusFieldName(name, 0, options);\n ids.current = prepend(ids.current, prependValue.map(generateId));\n updateValues(updatedFieldArrayValues);\n setFields(updatedFieldArrayValues);\n control._updateFieldArray(name, updatedFieldArrayValues, prepend, {\n argA: fillEmptyArray(value),\n });\n };\n const remove = (index) => {\n const updatedFieldArrayValues = removeArrayAt(control._getFieldArray(name), index);\n ids.current = removeArrayAt(ids.current, index);\n updateValues(updatedFieldArrayValues);\n setFields(updatedFieldArrayValues);\n control._updateFieldArray(name, updatedFieldArrayValues, removeArrayAt, {\n argA: index,\n });\n };\n const insert$1 = (index, value, options) => {\n const insertValue = convertToArrayPayload(cloneObject(value));\n const updatedFieldArrayValues = insert(control._getFieldArray(name), index, insertValue);\n control._names.focus = getFocusFieldName(name, index, options);\n ids.current = insert(ids.current, index, insertValue.map(generateId));\n updateValues(updatedFieldArrayValues);\n setFields(updatedFieldArrayValues);\n control._updateFieldArray(name, updatedFieldArrayValues, insert, {\n argA: index,\n argB: fillEmptyArray(value),\n });\n };\n const swap = (indexA, indexB) => {\n const updatedFieldArrayValues = control._getFieldArray(name);\n swapArrayAt(updatedFieldArrayValues, indexA, indexB);\n swapArrayAt(ids.current, indexA, indexB);\n updateValues(updatedFieldArrayValues);\n setFields(updatedFieldArrayValues);\n control._updateFieldArray(name, updatedFieldArrayValues, swapArrayAt, {\n argA: indexA,\n argB: indexB,\n }, false);\n };\n const move = (from, to) => {\n const updatedFieldArrayValues = control._getFieldArray(name);\n moveArrayAt(updatedFieldArrayValues, from, to);\n moveArrayAt(ids.current, from, to);\n updateValues(updatedFieldArrayValues);\n setFields(updatedFieldArrayValues);\n control._updateFieldArray(name, updatedFieldArrayValues, moveArrayAt, {\n argA: from,\n argB: to,\n }, false);\n };\n const update = (index, value) => {\n const updateValue = cloneObject(value);\n const updatedFieldArrayValues = updateAt(control._getFieldArray(name), index, updateValue);\n ids.current = [...updatedFieldArrayValues].map((item, i) => !item || i === index ? generateId() : ids.current[i]);\n updateValues(updatedFieldArrayValues);\n setFields([...updatedFieldArrayValues]);\n control._updateFieldArray(name, updatedFieldArrayValues, updateAt, {\n argA: index,\n argB: updateValue,\n }, true, false);\n };\n const replace = (value) => {\n const updatedFieldArrayValues = convertToArrayPayload(cloneObject(value));\n ids.current = updatedFieldArrayValues.map(generateId);\n updateValues([...updatedFieldArrayValues]);\n setFields([...updatedFieldArrayValues]);\n control._updateFieldArray(name, [...updatedFieldArrayValues], (data) => data, {}, true, false);\n };\n React.useEffect(() => {\n control._state.action = false;\n isWatched(name, control._names) &&\n control._subjects.state.next({\n ...control._formState,\n });\n if (_actioned.current &&\n (!getValidationModes(control._options.mode).isOnSubmit ||\n control._formState.isSubmitted)) {\n if (control._options.resolver) {\n control._executeSchema([name]).then((result) => {\n const error = get(result.errors, name);\n const existingError = get(control._formState.errors, name);\n if (existingError\n ? (!error && existingError.type) ||\n (error &&\n (existingError.type !== error.type ||\n existingError.message !== error.message))\n : error && error.type) {\n error\n ? set(control._formState.errors, name, error)\n : unset(control._formState.errors, name);\n control._subjects.state.next({\n errors: control._formState.errors,\n });\n }\n });\n }\n else {\n const field = get(control._fields, name);\n if (field && field._f) {\n validateField(field, control._formValues, control._options.criteriaMode === VALIDATION_MODE.all, control._options.shouldUseNativeValidation, true).then((error) => !isEmptyObject(error) &&\n control._subjects.state.next({\n errors: updateFieldArrayRootError(control._formState.errors, error, name),\n }));\n }\n }\n }\n control._subjects.values.next({\n name,\n values: { ...control._formValues },\n });\n control._names.focus &&\n focusFieldBy(control._fields, (key) => !!key && key.startsWith(control._names.focus || ''));\n control._names.focus = '';\n control._updateValid();\n _actioned.current = false;\n }, [fields, name, control]);\n React.useEffect(() => {\n !get(control._formValues, name) && control._updateFieldArray(name);\n return () => {\n (control._options.shouldUnregister || shouldUnregister) &&\n control.unregister(name);\n };\n }, [name, control, keyName, shouldUnregister]);\n return {\n swap: React.useCallback(swap, [updateValues, name, control]),\n move: React.useCallback(move, [updateValues, name, control]),\n prepend: React.useCallback(prepend$1, [updateValues, name, control]),\n append: React.useCallback(append$1, [updateValues, name, control]),\n remove: React.useCallback(remove, [updateValues, name, control]),\n insert: React.useCallback(insert$1, [updateValues, name, control]),\n update: React.useCallback(update, [updateValues, name, control]),\n replace: React.useCallback(replace, [updateValues, name, control]),\n fields: React.useMemo(() => fields.map((field, index) => ({\n ...field,\n [keyName]: ids.current[index] || generateId(),\n })), [fields, keyName]),\n };\n}\n\nfunction createSubject() {\n let _observers = [];\n const next = (value) => {\n for (const observer of _observers) {\n observer.next && observer.next(value);\n }\n };\n const subscribe = (observer) => {\n _observers.push(observer);\n return {\n unsubscribe: () => {\n _observers = _observers.filter((o) => o !== observer);\n },\n };\n };\n const unsubscribe = () => {\n _observers = [];\n };\n return {\n get observers() {\n return _observers;\n },\n next,\n subscribe,\n unsubscribe,\n };\n}\n\nvar isPrimitive = (value) => isNullOrUndefined(value) || !isObjectType(value);\n\nfunction deepEqual(object1, object2) {\n if (isPrimitive(object1) || isPrimitive(object2)) {\n return object1 === object2;\n }\n if (isDateObject(object1) && isDateObject(object2)) {\n return object1.getTime() === object2.getTime();\n }\n const keys1 = Object.keys(object1);\n const keys2 = Object.keys(object2);\n if (keys1.length !== keys2.length) {\n return false;\n }\n for (const key of keys1) {\n const val1 = object1[key];\n if (!keys2.includes(key)) {\n return false;\n }\n if (key !== 'ref') {\n const val2 = object2[key];\n if ((isDateObject(val1) && isDateObject(val2)) ||\n (isObject(val1) && isObject(val2)) ||\n (Array.isArray(val1) && Array.isArray(val2))\n ? !deepEqual(val1, val2)\n : val1 !== val2) {\n return false;\n }\n }\n }\n return true;\n}\n\nvar isMultipleSelect = (element) => element.type === `select-multiple`;\n\nvar isRadioOrCheckbox = (ref) => isRadioInput(ref) || isCheckBoxInput(ref);\n\nvar live = (ref) => isHTMLElement(ref) && ref.isConnected;\n\nvar objectHasFunction = (data) => {\n for (const key in data) {\n if (isFunction(data[key])) {\n return true;\n }\n }\n return false;\n};\n\nfunction markFieldsDirty(data, fields = {}) {\n const isParentNodeArray = Array.isArray(data);\n if (isObject(data) || isParentNodeArray) {\n for (const key in data) {\n if (Array.isArray(data[key]) ||\n (isObject(data[key]) && !objectHasFunction(data[key]))) {\n fields[key] = Array.isArray(data[key]) ? [] : {};\n markFieldsDirty(data[key], fields[key]);\n }\n else if (!isNullOrUndefined(data[key])) {\n fields[key] = true;\n }\n }\n }\n return fields;\n}\nfunction getDirtyFieldsFromDefaultValues(data, formValues, dirtyFieldsFromValues) {\n const isParentNodeArray = Array.isArray(data);\n if (isObject(data) || isParentNodeArray) {\n for (const key in data) {\n if (Array.isArray(data[key]) ||\n (isObject(data[key]) && !objectHasFunction(data[key]))) {\n if (isUndefined(formValues) ||\n isPrimitive(dirtyFieldsFromValues[key])) {\n dirtyFieldsFromValues[key] = Array.isArray(data[key])\n ? markFieldsDirty(data[key], [])\n : { ...markFieldsDirty(data[key]) };\n }\n else {\n getDirtyFieldsFromDefaultValues(data[key], isNullOrUndefined(formValues) ? {} : formValues[key], dirtyFieldsFromValues[key]);\n }\n }\n else {\n dirtyFieldsFromValues[key] = !deepEqual(data[key], formValues[key]);\n }\n }\n }\n return dirtyFieldsFromValues;\n}\nvar getDirtyFields = (defaultValues, formValues) => getDirtyFieldsFromDefaultValues(defaultValues, formValues, markFieldsDirty(formValues));\n\nvar getFieldValueAs = (value, { valueAsNumber, valueAsDate, setValueAs }) => isUndefined(value)\n ? value\n : valueAsNumber\n ? value === ''\n ? NaN\n : value\n ? +value\n : value\n : valueAsDate && isString(value)\n ? new Date(value)\n : setValueAs\n ? setValueAs(value)\n : value;\n\nfunction getFieldValue(_f) {\n const ref = _f.ref;\n if (_f.refs ? _f.refs.every((ref) => ref.disabled) : ref.disabled) {\n return;\n }\n if (isFileInput(ref)) {\n return ref.files;\n }\n if (isRadioInput(ref)) {\n return getRadioValue(_f.refs).value;\n }\n if (isMultipleSelect(ref)) {\n return [...ref.selectedOptions].map(({ value }) => value);\n }\n if (isCheckBoxInput(ref)) {\n return getCheckboxValue(_f.refs).value;\n }\n return getFieldValueAs(isUndefined(ref.value) ? _f.ref.value : ref.value, _f);\n}\n\nvar getResolverOptions = (fieldsNames, _fields, criteriaMode, shouldUseNativeValidation) => {\n const fields = {};\n for (const name of fieldsNames) {\n const field = get(_fields, name);\n field && set(fields, name, field._f);\n }\n return {\n criteriaMode,\n names: [...fieldsNames],\n fields,\n shouldUseNativeValidation,\n };\n};\n\nvar getRuleValue = (rule) => isUndefined(rule)\n ? rule\n : isRegex(rule)\n ? rule.source\n : isObject(rule)\n ? isRegex(rule.value)\n ? rule.value.source\n : rule.value\n : rule;\n\nvar hasValidation = (options) => options.mount &&\n (options.required ||\n options.min ||\n options.max ||\n options.maxLength ||\n options.minLength ||\n options.pattern ||\n options.validate);\n\nfunction schemaErrorLookup(errors, _fields, name) {\n const error = get(errors, name);\n if (error || isKey(name)) {\n return {\n error,\n name,\n };\n }\n const names = name.split('.');\n while (names.length) {\n const fieldName = names.join('.');\n const field = get(_fields, fieldName);\n const foundError = get(errors, fieldName);\n if (field && !Array.isArray(field) && name !== fieldName) {\n return { name };\n }\n if (foundError && foundError.type) {\n return {\n name: fieldName,\n error: foundError,\n };\n }\n names.pop();\n }\n return {\n name,\n };\n}\n\nvar skipValidation = (isBlurEvent, isTouched, isSubmitted, reValidateMode, mode) => {\n if (mode.isOnAll) {\n return false;\n }\n else if (!isSubmitted && mode.isOnTouch) {\n return !(isTouched || isBlurEvent);\n }\n else if (isSubmitted ? reValidateMode.isOnBlur : mode.isOnBlur) {\n return !isBlurEvent;\n }\n else if (isSubmitted ? reValidateMode.isOnChange : mode.isOnChange) {\n return isBlurEvent;\n }\n return true;\n};\n\nvar unsetEmptyArray = (ref, name) => !compact(get(ref, name)).length && unset(ref, name);\n\nconst defaultOptions = {\n mode: VALIDATION_MODE.onSubmit,\n reValidateMode: VALIDATION_MODE.onChange,\n shouldFocusError: true,\n};\nfunction createFormControl(props = {}, flushRootRender) {\n let _options = {\n ...defaultOptions,\n ...props,\n };\n let _formState = {\n submitCount: 0,\n isDirty: false,\n isLoading: isFunction(_options.defaultValues),\n isValidating: false,\n isSubmitted: false,\n isSubmitting: false,\n isSubmitSuccessful: false,\n isValid: false,\n touchedFields: {},\n dirtyFields: {},\n errors: {},\n };\n let _fields = {};\n let _defaultValues = isObject(_options.defaultValues) || isObject(_options.values)\n ? cloneObject(_options.defaultValues || _options.values) || {}\n : {};\n let _formValues = _options.shouldUnregister\n ? {}\n : cloneObject(_defaultValues);\n let _state = {\n action: false,\n mount: false,\n watch: false,\n };\n let _names = {\n mount: new Set(),\n unMount: new Set(),\n array: new Set(),\n watch: new Set(),\n };\n let delayErrorCallback;\n let timer = 0;\n const _proxyFormState = {\n isDirty: false,\n dirtyFields: false,\n touchedFields: false,\n isValidating: false,\n isValid: false,\n errors: false,\n };\n const _subjects = {\n values: createSubject(),\n array: createSubject(),\n state: createSubject(),\n };\n const shouldCaptureDirtyFields = props.resetOptions && props.resetOptions.keepDirtyValues;\n const validationModeBeforeSubmit = getValidationModes(_options.mode);\n const validationModeAfterSubmit = getValidationModes(_options.reValidateMode);\n const shouldDisplayAllAssociatedErrors = _options.criteriaMode === VALIDATION_MODE.all;\n const debounce = (callback) => (wait) => {\n clearTimeout(timer);\n timer = setTimeout(callback, wait);\n };\n const _updateValid = async (shouldUpdateValid) => {\n if (_proxyFormState.isValid || shouldUpdateValid) {\n const isValid = _options.resolver\n ? isEmptyObject((await _executeSchema()).errors)\n : await executeBuiltInValidation(_fields, true);\n if (isValid !== _formState.isValid) {\n _subjects.state.next({\n isValid,\n });\n }\n }\n };\n const _updateIsValidating = (value) => _proxyFormState.isValidating &&\n _subjects.state.next({\n isValidating: value,\n });\n const _updateFieldArray = (name, values = [], method, args, shouldSetValues = true, shouldUpdateFieldsAndState = true) => {\n if (args && method) {\n _state.action = true;\n if (shouldUpdateFieldsAndState && Array.isArray(get(_fields, name))) {\n const fieldValues = method(get(_fields, name), args.argA, args.argB);\n shouldSetValues && set(_fields, name, fieldValues);\n }\n if (shouldUpdateFieldsAndState &&\n Array.isArray(get(_formState.errors, name))) {\n const errors = method(get(_formState.errors, name), args.argA, args.argB);\n shouldSetValues && set(_formState.errors, name, errors);\n unsetEmptyArray(_formState.errors, name);\n }\n if (_proxyFormState.touchedFields &&\n shouldUpdateFieldsAndState &&\n Array.isArray(get(_formState.touchedFields, name))) {\n const touchedFields = method(get(_formState.touchedFields, name), args.argA, args.argB);\n shouldSetValues && set(_formState.touchedFields, name, touchedFields);\n }\n if (_proxyFormState.dirtyFields) {\n _formState.dirtyFields = getDirtyFields(_defaultValues, _formValues);\n }\n _subjects.state.next({\n name,\n isDirty: _getDirty(name, values),\n dirtyFields: _formState.dirtyFields,\n errors: _formState.errors,\n isValid: _formState.isValid,\n });\n }\n else {\n set(_formValues, name, values);\n }\n };\n const updateErrors = (name, error) => {\n set(_formState.errors, name, error);\n _subjects.state.next({\n errors: _formState.errors,\n });\n };\n const updateValidAndValue = (name, shouldSkipSetValueAs, value, ref) => {\n const field = get(_fields, name);\n if (field) {\n const defaultValue = get(_formValues, name, isUndefined(value) ? get(_defaultValues, name) : value);\n isUndefined(defaultValue) ||\n (ref && ref.defaultChecked) ||\n shouldSkipSetValueAs\n ? set(_formValues, name, shouldSkipSetValueAs ? defaultValue : getFieldValue(field._f))\n : setFieldValue(name, defaultValue);\n _state.mount && _updateValid();\n }\n };\n const updateTouchAndDirty = (name, fieldValue, isBlurEvent, shouldDirty, shouldRender) => {\n let shouldUpdateField = false;\n let isPreviousDirty = false;\n const output = {\n name,\n };\n if (!isBlurEvent || shouldDirty) {\n if (_proxyFormState.isDirty) {\n isPreviousDirty = _formState.isDirty;\n _formState.isDirty = output.isDirty = _getDirty();\n shouldUpdateField = isPreviousDirty !== output.isDirty;\n }\n const isCurrentFieldPristine = deepEqual(get(_defaultValues, name), fieldValue);\n isPreviousDirty = get(_formState.dirtyFields, name);\n isCurrentFieldPristine\n ? unset(_formState.dirtyFields, name)\n : set(_formState.dirtyFields, name, true);\n output.dirtyFields = _formState.dirtyFields;\n shouldUpdateField =\n shouldUpdateField ||\n (_proxyFormState.dirtyFields &&\n isPreviousDirty !== !isCurrentFieldPristine);\n }\n if (isBlurEvent) {\n const isPreviousFieldTouched = get(_formState.touchedFields, name);\n if (!isPreviousFieldTouched) {\n set(_formState.touchedFields, name, isBlurEvent);\n output.touchedFields = _formState.touchedFields;\n shouldUpdateField =\n shouldUpdateField ||\n (_proxyFormState.touchedFields &&\n isPreviousFieldTouched !== isBlurEvent);\n }\n }\n shouldUpdateField && shouldRender && _subjects.state.next(output);\n return shouldUpdateField ? output : {};\n };\n const shouldRenderByError = (name, isValid, error, fieldState) => {\n const previousFieldError = get(_formState.errors, name);\n const shouldUpdateValid = _proxyFormState.isValid &&\n isBoolean(isValid) &&\n _formState.isValid !== isValid;\n if (props.delayError && error) {\n delayErrorCallback = debounce(() => updateErrors(name, error));\n delayErrorCallback(props.delayError);\n }\n else {\n clearTimeout(timer);\n delayErrorCallback = null;\n error\n ? set(_formState.errors, name, error)\n : unset(_formState.errors, name);\n }\n if ((error ? !deepEqual(previousFieldError, error) : previousFieldError) ||\n !isEmptyObject(fieldState) ||\n shouldUpdateValid) {\n const updatedFormState = {\n ...fieldState,\n ...(shouldUpdateValid && isBoolean(isValid) ? { isValid } : {}),\n errors: _formState.errors,\n name,\n };\n _formState = {\n ..._formState,\n ...updatedFormState,\n };\n _subjects.state.next(updatedFormState);\n }\n _updateIsValidating(false);\n };\n const _executeSchema = async (name) => _options.resolver(_formValues, _options.context, getResolverOptions(name || _names.mount, _fields, _options.criteriaMode, _options.shouldUseNativeValidation));\n const executeSchemaAndUpdateState = async (names) => {\n const { errors } = await _executeSchema(names);\n if (names) {\n for (const name of names) {\n const error = get(errors, name);\n error\n ? set(_formState.errors, name, error)\n : unset(_formState.errors, name);\n }\n }\n else {\n _formState.errors = errors;\n }\n return errors;\n };\n const executeBuiltInValidation = async (fields, shouldOnlyCheckValid, context = {\n valid: true,\n }) => {\n for (const name in fields) {\n const field = fields[name];\n if (field) {\n const { _f, ...fieldValue } = field;\n if (_f) {\n const isFieldArrayRoot = _names.array.has(_f.name);\n const fieldError = await validateField(field, _formValues, shouldDisplayAllAssociatedErrors, _options.shouldUseNativeValidation && !shouldOnlyCheckValid, isFieldArrayRoot);\n if (fieldError[_f.name]) {\n context.valid = false;\n if (shouldOnlyCheckValid) {\n break;\n }\n }\n !shouldOnlyCheckValid &&\n (get(fieldError, _f.name)\n ? isFieldArrayRoot\n ? updateFieldArrayRootError(_formState.errors, fieldError, _f.name)\n : set(_formState.errors, _f.name, fieldError[_f.name])\n : unset(_formState.errors, _f.name));\n }\n fieldValue &&\n (await executeBuiltInValidation(fieldValue, shouldOnlyCheckValid, context));\n }\n }\n return context.valid;\n };\n const _removeUnmounted = () => {\n for (const name of _names.unMount) {\n const field = get(_fields, name);\n field &&\n (field._f.refs\n ? field._f.refs.every((ref) => !live(ref))\n : !live(field._f.ref)) &&\n unregister(name);\n }\n _names.unMount = new Set();\n };\n const _getDirty = (name, data) => (name && data && set(_formValues, name, data),\n !deepEqual(getValues(), _defaultValues));\n const _getWatch = (names, defaultValue, isGlobal) => generateWatchOutput(names, _names, {\n ...(_state.mount\n ? _formValues\n : isUndefined(defaultValue)\n ? _defaultValues\n : isString(names)\n ? { [names]: defaultValue }\n : defaultValue),\n }, isGlobal, defaultValue);\n const _getFieldArray = (name) => compact(get(_state.mount ? _formValues : _defaultValues, name, props.shouldUnregister ? get(_defaultValues, name, []) : []));\n const setFieldValue = (name, value, options = {}) => {\n const field = get(_fields, name);\n let fieldValue = value;\n if (field) {\n const fieldReference = field._f;\n if (fieldReference) {\n !fieldReference.disabled &&\n set(_formValues, name, getFieldValueAs(value, fieldReference));\n fieldValue =\n isHTMLElement(fieldReference.ref) && isNullOrUndefined(value)\n ? ''\n : value;\n if (isMultipleSelect(fieldReference.ref)) {\n [...fieldReference.ref.options].forEach((optionRef) => (optionRef.selected = fieldValue.includes(optionRef.value)));\n }\n else if (fieldReference.refs) {\n if (isCheckBoxInput(fieldReference.ref)) {\n fieldReference.refs.length > 1\n ? fieldReference.refs.forEach((checkboxRef) => (!checkboxRef.defaultChecked || !checkboxRef.disabled) &&\n (checkboxRef.checked = Array.isArray(fieldValue)\n ? !!fieldValue.find((data) => data === checkboxRef.value)\n : fieldValue === checkboxRef.value))\n : fieldReference.refs[0] &&\n (fieldReference.refs[0].checked = !!fieldValue);\n }\n else {\n fieldReference.refs.forEach((radioRef) => (radioRef.checked = radioRef.value === fieldValue));\n }\n }\n else if (isFileInput(fieldReference.ref)) {\n fieldReference.ref.value = '';\n }\n else {\n fieldReference.ref.value = fieldValue;\n if (!fieldReference.ref.type) {\n _subjects.values.next({\n name,\n values: { ..._formValues },\n });\n }\n }\n }\n }\n (options.shouldDirty || options.shouldTouch) &&\n updateTouchAndDirty(name, fieldValue, options.shouldTouch, options.shouldDirty, true);\n options.shouldValidate && trigger(name);\n };\n const setValues = (name, value, options) => {\n for (const fieldKey in value) {\n const fieldValue = value[fieldKey];\n const fieldName = `${name}.${fieldKey}`;\n const field = get(_fields, fieldName);\n (_names.array.has(name) ||\n !isPrimitive(fieldValue) ||\n (field && !field._f)) &&\n !isDateObject(fieldValue)\n ? setValues(fieldName, fieldValue, options)\n : setFieldValue(fieldName, fieldValue, options);\n }\n };\n const setValue = (name, value, options = {}) => {\n const field = get(_fields, name);\n const isFieldArray = _names.array.has(name);\n const cloneValue = cloneObject(value);\n set(_formValues, name, cloneValue);\n if (isFieldArray) {\n _subjects.array.next({\n name,\n values: { ..._formValues },\n });\n if ((_proxyFormState.isDirty || _proxyFormState.dirtyFields) &&\n options.shouldDirty) {\n _subjects.state.next({\n name,\n dirtyFields: getDirtyFields(_defaultValues, _formValues),\n isDirty: _getDirty(name, cloneValue),\n });\n }\n }\n else {\n field && !field._f && !isNullOrUndefined(cloneValue)\n ? setValues(name, cloneValue, options)\n : setFieldValue(name, cloneValue, options);\n }\n isWatched(name, _names) && _subjects.state.next({ ..._formState });\n _subjects.values.next({\n name,\n values: { ..._formValues },\n });\n !_state.mount && flushRootRender();\n };\n const onChange = async (event) => {\n const target = event.target;\n let name = target.name;\n let isFieldValueUpdated = true;\n const field = get(_fields, name);\n const getCurrentFieldValue = () => target.type ? getFieldValue(field._f) : getEventValue(event);\n if (field) {\n let error;\n let isValid;\n const fieldValue = getCurrentFieldValue();\n const isBlurEvent = event.type === EVENTS.BLUR || event.type === EVENTS.FOCUS_OUT;\n const shouldSkipValidation = (!hasValidation(field._f) &&\n !_options.resolver &&\n !get(_formState.errors, name) &&\n !field._f.deps) ||\n skipValidation(isBlurEvent, get(_formState.touchedFields, name), _formState.isSubmitted, validationModeAfterSubmit, validationModeBeforeSubmit);\n const watched = isWatched(name, _names, isBlurEvent);\n set(_formValues, name, fieldValue);\n if (isBlurEvent) {\n field._f.onBlur && field._f.onBlur(event);\n delayErrorCallback && delayErrorCallback(0);\n }\n else if (field._f.onChange) {\n field._f.onChange(event);\n }\n const fieldState = updateTouchAndDirty(name, fieldValue, isBlurEvent, false);\n const shouldRender = !isEmptyObject(fieldState) || watched;\n !isBlurEvent &&\n _subjects.values.next({\n name,\n type: event.type,\n values: { ..._formValues },\n });\n if (shouldSkipValidation) {\n _proxyFormState.isValid && _updateValid();\n return (shouldRender &&\n _subjects.state.next({ name, ...(watched ? {} : fieldState) }));\n }\n !isBlurEvent && watched && _subjects.state.next({ ..._formState });\n _updateIsValidating(true);\n if (_options.resolver) {\n const { errors } = await _executeSchema([name]);\n const previousErrorLookupResult = schemaErrorLookup(_formState.errors, _fields, name);\n const errorLookupResult = schemaErrorLookup(errors, _fields, previousErrorLookupResult.name || name);\n error = errorLookupResult.error;\n name = errorLookupResult.name;\n isValid = isEmptyObject(errors);\n }\n else {\n error = (await validateField(field, _formValues, shouldDisplayAllAssociatedErrors, _options.shouldUseNativeValidation))[name];\n isFieldValueUpdated =\n Number.isNaN(fieldValue) ||\n fieldValue === get(_formValues, name, fieldValue);\n if (isFieldValueUpdated) {\n if (error) {\n isValid = false;\n }\n else if (_proxyFormState.isValid) {\n isValid = await executeBuiltInValidation(_fields, true);\n }\n }\n }\n if (isFieldValueUpdated) {\n field._f.deps &&\n trigger(field._f.deps);\n shouldRenderByError(name, isValid, error, fieldState);\n }\n }\n };\n const trigger = async (name, options = {}) => {\n let isValid;\n let validationResult;\n const fieldNames = convertToArrayPayload(name);\n _updateIsValidating(true);\n if (_options.resolver) {\n const errors = await executeSchemaAndUpdateState(isUndefined(name) ? name : fieldNames);\n isValid = isEmptyObject(errors);\n validationResult = name\n ? !fieldNames.some((name) => get(errors, name))\n : isValid;\n }\n else if (name) {\n validationResult = (await Promise.all(fieldNames.map(async (fieldName) => {\n const field = get(_fields, fieldName);\n return await executeBuiltInValidation(field && field._f ? { [fieldName]: field } : field);\n }))).every(Boolean);\n !(!validationResult && !_formState.isValid) && _updateValid();\n }\n else {\n validationResult = isValid = await executeBuiltInValidation(_fields);\n }\n _subjects.state.next({\n ...(!isString(name) ||\n (_proxyFormState.isValid && isValid !== _formState.isValid)\n ? {}\n : { name }),\n ...(_options.resolver || !name ? { isValid } : {}),\n errors: _formState.errors,\n isValidating: false,\n });\n options.shouldFocus &&\n !validationResult &&\n focusFieldBy(_fields, (key) => key && get(_formState.errors, key), name ? fieldNames : _names.mount);\n return validationResult;\n };\n const getValues = (fieldNames) => {\n const values = {\n ..._defaultValues,\n ...(_state.mount ? _formValues : {}),\n };\n return isUndefined(fieldNames)\n ? values\n : isString(fieldNames)\n ? get(values, fieldNames)\n : fieldNames.map((name) => get(values, name));\n };\n const getFieldState = (name, formState) => ({\n invalid: !!get((formState || _formState).errors, name),\n isDirty: !!get((formState || _formState).dirtyFields, name),\n isTouched: !!get((formState || _formState).touchedFields, name),\n error: get((formState || _formState).errors, name),\n });\n const clearErrors = (name) => {\n name &&\n convertToArrayPayload(name).forEach((inputName) => unset(_formState.errors, inputName));\n _subjects.state.next({\n errors: name ? _formState.errors : {},\n });\n };\n const setError = (name, error, options) => {\n const ref = (get(_fields, name, { _f: {} })._f || {}).ref;\n set(_formState.errors, name, {\n ...error,\n ref,\n });\n _subjects.state.next({\n name,\n errors: _formState.errors,\n isValid: false,\n });\n options && options.shouldFocus && ref && ref.focus && ref.focus();\n };\n const watch = (name, defaultValue) => isFunction(name)\n ? _subjects.values.subscribe({\n next: (payload) => name(_getWatch(undefined, defaultValue), payload),\n })\n : _getWatch(name, defaultValue, true);\n const unregister = (name, options = {}) => {\n for (const fieldName of name ? convertToArrayPayload(name) : _names.mount) {\n _names.mount.delete(fieldName);\n _names.array.delete(fieldName);\n if (!options.keepValue) {\n unset(_fields, fieldName);\n unset(_formValues, fieldName);\n }\n !options.keepError && unset(_formState.errors, fieldName);\n !options.keepDirty && unset(_formState.dirtyFields, fieldName);\n !options.keepTouched && unset(_formState.touchedFields, fieldName);\n !_options.shouldUnregister &&\n !options.keepDefaultValue &&\n unset(_defaultValues, fieldName);\n }\n _subjects.values.next({\n values: { ..._formValues },\n });\n _subjects.state.next({\n ..._formState,\n ...(!options.keepDirty ? {} : { isDirty: _getDirty() }),\n });\n !options.keepIsValid && _updateValid();\n };\n const _updateDisabledField = ({ disabled, name, field, fields, }) => {\n if (isBoolean(disabled)) {\n const value = disabled\n ? undefined\n : get(_formValues, name, getFieldValue(field ? field._f : get(fields, name)._f));\n set(_formValues, name, value);\n updateTouchAndDirty(name, value, false, false, true);\n }\n };\n const register = (name, options = {}) => {\n let field = get(_fields, name);\n const disabledIsDefined = isBoolean(options.disabled);\n set(_fields, name, {\n ...(field || {}),\n _f: {\n ...(field && field._f ? field._f : { ref: { name } }),\n name,\n mount: true,\n ...options,\n },\n });\n _names.mount.add(name);\n if (field) {\n _updateDisabledField({\n field,\n disabled: options.disabled,\n name,\n });\n }\n else {\n updateValidAndValue(name, true, options.value);\n }\n return {\n ...(disabledIsDefined ? { disabled: options.disabled } : {}),\n ...(_options.progressive\n ? {\n required: !!options.required,\n min: getRuleValue(options.min),\n max: getRuleValue(options.max),\n minLength: getRuleValue(options.minLength),\n maxLength: getRuleValue(options.maxLength),\n pattern: getRuleValue(options.pattern),\n }\n : {}),\n name,\n onChange,\n onBlur: onChange,\n ref: (ref) => {\n if (ref) {\n register(name, options);\n field = get(_fields, name);\n const fieldRef = isUndefined(ref.value)\n ? ref.querySelectorAll\n ? ref.querySelectorAll('input,select,textarea')[0] || ref\n : ref\n : ref;\n const radioOrCheckbox = isRadioOrCheckbox(fieldRef);\n const refs = field._f.refs || [];\n if (radioOrCheckbox\n ? refs.find((option) => option === fieldRef)\n : fieldRef === field._f.ref) {\n return;\n }\n set(_fields, name, {\n _f: {\n ...field._f,\n ...(radioOrCheckbox\n ? {\n refs: [\n ...refs.filter(live),\n fieldRef,\n ...(Array.isArray(get(_defaultValues, name)) ? [{}] : []),\n ],\n ref: { type: fieldRef.type, name },\n }\n : { ref: fieldRef }),\n },\n });\n updateValidAndValue(name, false, undefined, fieldRef);\n }\n else {\n field = get(_fields, name, {});\n if (field._f) {\n field._f.mount = false;\n }\n (_options.shouldUnregister || options.shouldUnregister) &&\n !(isNameInFieldArray(_names.array, name) && _state.action) &&\n _names.unMount.add(name);\n }\n },\n };\n };\n const _focusError = () => _options.shouldFocusError &&\n focusFieldBy(_fields, (key) => key && get(_formState.errors, key), _names.mount);\n const handleSubmit = (onValid, onInvalid) => async (e) => {\n if (e) {\n e.preventDefault && e.preventDefault();\n e.persist && e.persist();\n }\n let fieldValues = cloneObject(_formValues);\n _subjects.state.next({\n isSubmitting: true,\n });\n if (_options.resolver) {\n const { errors, values } = await _executeSchema();\n _formState.errors = errors;\n fieldValues = values;\n }\n else {\n await executeBuiltInValidation(_fields);\n }\n unset(_formState.errors, 'root');\n if (isEmptyObject(_formState.errors)) {\n _subjects.state.next({\n errors: {},\n });\n await onValid(fieldValues, e);\n }\n else {\n if (onInvalid) {\n await onInvalid({ ..._formState.errors }, e);\n }\n _focusError();\n setTimeout(_focusError);\n }\n _subjects.state.next({\n isSubmitted: true,\n isSubmitting: false,\n isSubmitSuccessful: isEmptyObject(_formState.errors),\n submitCount: _formState.submitCount + 1,\n errors: _formState.errors,\n });\n };\n const resetField = (name, options = {}) => {\n if (get(_fields, name)) {\n if (isUndefined(options.defaultValue)) {\n setValue(name, get(_defaultValues, name));\n }\n else {\n setValue(name, options.defaultValue);\n set(_defaultValues, name, options.defaultValue);\n }\n if (!options.keepTouched) {\n unset(_formState.touchedFields, name);\n }\n if (!options.keepDirty) {\n unset(_formState.dirtyFields, name);\n _formState.isDirty = options.defaultValue\n ? _getDirty(name, get(_defaultValues, name))\n : _getDirty();\n }\n if (!options.keepError) {\n unset(_formState.errors, name);\n _proxyFormState.isValid && _updateValid();\n }\n _subjects.state.next({ ..._formState });\n }\n };\n const _reset = (formValues, keepStateOptions = {}) => {\n const updatedValues = formValues ? cloneObject(formValues) : _defaultValues;\n const cloneUpdatedValues = cloneObject(updatedValues);\n const values = formValues && !isEmptyObject(formValues)\n ? cloneUpdatedValues\n : _defaultValues;\n if (!keepStateOptions.keepDefaultValues) {\n _defaultValues = updatedValues;\n }\n if (!keepStateOptions.keepValues) {\n if (keepStateOptions.keepDirtyValues || shouldCaptureDirtyFields) {\n for (const fieldName of _names.mount) {\n get(_formState.dirtyFields, fieldName)\n ? set(values, fieldName, get(_formValues, fieldName))\n : setValue(fieldName, get(values, fieldName));\n }\n }\n else {\n if (isWeb && isUndefined(formValues)) {\n for (const name of _names.mount) {\n const field = get(_fields, name);\n if (field && field._f) {\n const fieldReference = Array.isArray(field._f.refs)\n ? field._f.refs[0]\n : field._f.ref;\n if (isHTMLElement(fieldReference)) {\n const form = fieldReference.closest('form');\n if (form) {\n form.reset();\n break;\n }\n }\n }\n }\n }\n _fields = {};\n }\n _formValues = props.shouldUnregister\n ? keepStateOptions.keepDefaultValues\n ? cloneObject(_defaultValues)\n : {}\n : cloneObject(values);\n _subjects.array.next({\n values: { ...values },\n });\n _subjects.values.next({\n values: { ...values },\n });\n }\n _names = {\n mount: new Set(),\n unMount: new Set(),\n array: new Set(),\n watch: new Set(),\n watchAll: false,\n focus: '',\n };\n !_state.mount && flushRootRender();\n _state.mount = !_proxyFormState.isValid || !!keepStateOptions.keepIsValid;\n _state.watch = !!props.shouldUnregister;\n _subjects.state.next({\n submitCount: keepStateOptions.keepSubmitCount\n ? _formState.submitCount\n : 0,\n isDirty: keepStateOptions.keepDirty\n ? _formState.isDirty\n : !!(keepStateOptions.keepDefaultValues &&\n !deepEqual(formValues, _defaultValues)),\n isSubmitted: keepStateOptions.keepIsSubmitted\n ? _formState.isSubmitted\n : false,\n dirtyFields: keepStateOptions.keepDirtyValues\n ? _formState.dirtyFields\n : keepStateOptions.keepDefaultValues && formValues\n ? getDirtyFields(_defaultValues, formValues)\n : {},\n touchedFields: keepStateOptions.keepTouched\n ? _formState.touchedFields\n : {},\n errors: keepStateOptions.keepErrors ? _formState.errors : {},\n isSubmitSuccessful: keepStateOptions.keepIsSubmitSuccessful\n ? _formState.isSubmitSuccessful\n : false,\n isSubmitting: false,\n });\n };\n const reset = (formValues, keepStateOptions) => _reset(isFunction(formValues)\n ? formValues(_formValues)\n : formValues, keepStateOptions);\n const setFocus = (name, options = {}) => {\n const field = get(_fields, name);\n const fieldReference = field && field._f;\n if (fieldReference) {\n const fieldRef = fieldReference.refs\n ? fieldReference.refs[0]\n : fieldReference.ref;\n if (fieldRef.focus) {\n fieldRef.focus();\n options.shouldSelect && fieldRef.select();\n }\n }\n };\n const _updateFormState = (updatedFormState) => {\n _formState = {\n ..._formState,\n ...updatedFormState,\n };\n };\n const _resetDefaultValues = () => isFunction(_options.defaultValues) &&\n _options.defaultValues().then((values) => {\n reset(values, _options.resetOptions);\n _subjects.state.next({\n isLoading: false,\n });\n });\n return {\n control: {\n register,\n unregister,\n getFieldState,\n handleSubmit,\n setError,\n _executeSchema,\n _getWatch,\n _getDirty,\n _updateValid,\n _removeUnmounted,\n _updateFieldArray,\n _updateDisabledField,\n _getFieldArray,\n _reset,\n _resetDefaultValues,\n _updateFormState,\n _subjects,\n _proxyFormState,\n get _fields() {\n return _fields;\n },\n get _formValues() {\n return _formValues;\n },\n get _state() {\n return _state;\n },\n set _state(value) {\n _state = value;\n },\n get _defaultValues() {\n return _defaultValues;\n },\n get _names() {\n return _names;\n },\n set _names(value) {\n _names = value;\n },\n get _formState() {\n return _formState;\n },\n set _formState(value) {\n _formState = value;\n },\n get _options() {\n return _options;\n },\n set _options(value) {\n _options = {\n ..._options,\n ...value,\n };\n },\n },\n trigger,\n register,\n handleSubmit,\n watch,\n setValue,\n getValues,\n reset,\n resetField,\n clearErrors,\n unregister,\n setError,\n setFocus,\n getFieldState,\n };\n}\n\n/**\n * Custom hook to manage the entire form.\n *\n * @remarks\n * [API](https://react-hook-form.com/docs/useform) • [Demo](https://codesandbox.io/s/react-hook-form-get-started-ts-5ksmm) • [Video](https://www.youtube.com/watch?v=RkXv4AXXC_4)\n *\n * @param props - form configuration and validation parameters.\n *\n * @returns methods - individual functions to manage the form state. {@link UseFormReturn}\n *\n * @example\n * ```tsx\n * function App() {\n * const { register, handleSubmit, watch, formState: { errors } } = useForm();\n * const onSubmit = data => console.log(data);\n *\n * console.log(watch(\"example\"));\n *\n * return (\n * <form onSubmit={handleSubmit(onSubmit)}>\n * <input defaultValue=\"test\" {...register(\"example\")} />\n * <input {...register(\"exampleRequired\", { required: true })} />\n * {errors.exampleRequired && <span>This field is required</span>}\n * <button>Submit</button>\n * </form>\n * );\n * }\n * ```\n */\nfunction useForm(props = {}) {\n const _formControl = React.useRef();\n const _values = React.useRef();\n const [formState, updateFormState] = React.useState({\n isDirty: false,\n isValidating: false,\n isLoading: isFunction(props.defaultValues),\n isSubmitted: false,\n isSubmitting: false,\n isSubmitSuccessful: false,\n isValid: false,\n submitCount: 0,\n dirtyFields: {},\n touchedFields: {},\n errors: {},\n defaultValues: isFunction(props.defaultValues)\n ? undefined\n : props.defaultValues,\n });\n if (!_formControl.current) {\n _formControl.current = {\n ...createFormControl(props, () => updateFormState((formState) => ({ ...formState }))),\n formState,\n };\n }\n const control = _formControl.current.control;\n control._options = props;\n useSubscribe({\n subject: control._subjects.state,\n next: (value) => {\n if (shouldRenderFormState(value, control._proxyFormState, control._updateFormState, true)) {\n updateFormState({ ...control._formState });\n }\n },\n });\n React.useEffect(() => {\n if (props.values && !deepEqual(props.values, _values.current)) {\n control._reset(props.values, control._options.resetOptions);\n _values.current = props.values;\n }\n else {\n control._resetDefaultValues();\n }\n }, [props.values, control]);\n React.useEffect(() => {\n if (!control._state.mount) {\n control._updateValid();\n control._state.mount = true;\n }\n if (control._state.watch) {\n control._state.watch = false;\n control._subjects.state.next({ ...control._formState });\n }\n control._removeUnmounted();\n });\n _formControl.current.formState = getProxyFormState(formState, control);\n return _formControl.current;\n}\n\nexport { Controller, Form, FormProvider, appendErrors, get, set, useController, useFieldArray, useForm, useFormContext, useFormState, useWatch };\n//# sourceMappingURL=index.esm.mjs.map\n","import React from 'react';\n\nimport { useForm } from 'react-hook-form';\n\nimport { FormVariant } from '../../constants';\nimport { isTest } from '../../utils/environment';\nimport Button from '../Button';\nimport Checkbox from '../Checkbox';\nimport FormGroup from '../FormGroup/FormGroup';\nimport FormLayout, { FormLayoutColumns } from '../FormLayout';\nimport Hospital from '../Icons/Hospital';\nimport Input from '../Input';\nimport Label from '../Label';\nimport RadioButton from '../RadioButton';\nimport Select from '../Select';\nimport Textarea from '../Textarea';\nimport Validation from '../Validation';\n\ninterface FormExampleProps {\n exampleType: FormExampleVariants;\n variant?: keyof typeof FormVariant;\n}\n\nexport enum FormExampleVariants {\n formgroup = 'formgroup',\n checkbox = 'checkbox',\n radiobutton = 'radiobutton',\n textarea = 'textarea',\n input = 'input',\n select = 'select',\n}\n\nexport const FormExample = (props: FormExampleProps): JSX.Element => {\n const { exampleType = FormExampleVariants.formgroup } = props;\n const {\n register,\n handleSubmit,\n formState: { errors },\n } = useForm();\n\n const defaultDate = new Date();\n defaultDate.setHours(0);\n defaultDate.setMinutes(0);\n defaultDate.setSeconds(0);\n const minDate = new Date();\n minDate.setDate(defaultDate.getDate() - 5);\n minDate.setHours(6);\n minDate.setMinutes(10);\n minDate.setSeconds(0);\n const maxDate = new Date();\n maxDate.setDate(defaultDate.getDate() + 5);\n maxDate.setHours(22);\n maxDate.setMinutes(0);\n maxDate.setSeconds(0);\n\n const field1 = 'field1';\n const field2 = 'field2';\n const field3 = 'field3';\n const field4 = 'field4';\n const field5 = 'field5';\n const field6 = 'field6';\n const allErrors =\n errors.field1 ||\n errors.field2 ||\n errors.field3 ||\n errors.field4 ||\n errors.field5 ||\n errors.field6 ||\n errors.field7 ||\n errors.field8 ||\n errors.field9;\n const errorMessage = 'Du må velge et alternativ';\n const errorMessage2 = 'Du må velge to alternativ';\n const errorMessage3 = 'Det kan ikke legges inn mer enn 40 tegn';\n const errorMessage4 = 'Du må skrive noe her';\n const errorMessage5 = 'Du må velge \"Option 2\"';\n const errorMessage6 = `Du må velge dato mellom ${minDate.toLocaleDateString('nb')} og ${maxDate.toLocaleDateString('nb')}`;\n const errorMessage7 = `Du må skrive inn tidspunkt mellom ${minDate.toLocaleTimeString('nb', {\n hour: '2-digit',\n minute: '2-digit',\n })} og ${maxDate.toLocaleTimeString('nb', {\n hour: '2-digit',\n minute: '2-digit',\n })}`;\n\n const requireTwo = (value: Array<string>): true | string => {\n return value.length >= 2 || errorMessage2;\n };\n const requireSelect = (value: Array<string>): true | string => {\n return value.toString() === 'Option 2' || errorMessage5;\n };\n\n const getFormExample = () => {\n if (exampleType === FormExampleVariants.formgroup) {\n const allCheckBoxes = [\n <Checkbox\n key={0}\n inputId=\"checkbox1\"\n label={<Label labelTexts={[{ text: 'Checkbox 1' }]} />}\n {...register(field1, { required: errorMessage })}\n />,\n <Checkbox\n key={1}\n inputId=\"checkbox2\"\n label={<Label labelTexts={[{ text: 'Checkbox 2' }]} />}\n {...register(field1, { required: errorMessage })}\n />,\n <Checkbox\n key={2}\n inputId=\"checkbox3\"\n label={<Label labelTexts={[{ text: 'Checkbox 3' }]} />}\n {...register(field1, { required: errorMessage })}\n />,\n ];\n\n return [\n <FormGroup\n key={0}\n title={'Gruppe tittel'}\n legend={'Velg minst en'}\n error={errors.field1 ? (errors.field1.message as string) : undefined}\n variant={props.variant}\n >\n <FormLayout maxColumns={FormLayoutColumns.two}>\n {allCheckBoxes.map(check => {\n return check;\n })}\n </FormLayout>\n </FormGroup>,\n <FormGroup\n key={1}\n legend={'Velg minst to'}\n error={errors.field2 ? (errors.field2.message as string) : undefined}\n variant={props.variant}\n >\n <Checkbox\n inputId=\"checkbox4\"\n label={<Label labelTexts={[{ text: 'Checkbox 4' }]} />}\n {...register(field2, { validate: requireTwo })}\n />\n <Checkbox\n inputId=\"checkbox5\"\n label={<Label labelTexts={[{ text: 'Checkbox 5' }]} />}\n {...register(field2, { validate: requireTwo })}\n />\n <Checkbox\n inputId=\"checkbox6\"\n label={<Label labelTexts={[{ text: 'Checkbox 6' }]} />}\n {...register(field2, { validate: requireTwo })}\n />\n </FormGroup>,\n <FormGroup key={2} legend={'Velg en'} error={errors.field3 ? (errors.field3.message as string) : undefined} variant={props.variant}>\n <RadioButton\n inputId=\"radiobutton1\"\n label={<Label labelTexts={[{ text: 'Radiobutton 1' }]} />}\n {...register(field3, { required: errorMessage })}\n />\n <RadioButton\n inputId=\"radiobutton2\"\n label={<Label labelTexts={[{ text: 'Radiobutton 2' }]} />}\n {...register(field3, { required: errorMessage })}\n />\n <RadioButton\n inputId=\"radiobutton3\"\n label={<Label labelTexts={[{ text: 'Radiobutton 3' }]} />}\n {...register(field3, { required: errorMessage })}\n />\n </FormGroup>,\n <FormGroup key={3} error={errors.field4 ? (errors.field4.message as string) : undefined}>\n <Textarea\n defaultValue={`Dette er en test \\n\\n Hello \\n\\n test \\n\\n test test`}\n grow\n maxCharacters={40}\n minRows={5}\n label={<Label labelTexts={[{ text: 'Skriv din historie her', type: 'semibold' }]} />}\n textareaId=\"textarea1\"\n {...register(field4, { maxLength: { value: 40, message: errorMessage3 } })}\n />\n </FormGroup>,\n <FormGroup key={4} variant={props.variant} error={errors.field5 ? (errors.field5.message as string) : undefined}>\n <Input\n label={<Label labelTexts={[{ text: 'Skriv inn din tekst', type: 'semibold' }]} />}\n placeholder={'Skriv noe!'}\n icon={Hospital}\n {...register(field5, { required: errorMessage4 })}\n />\n </FormGroup>,\n <FormGroup key={5} variant={props.variant} error={errors.field6 ? (errors.field6.message as string) : undefined}>\n <Select\n label={<Label labelTexts={[{ text: 'Skriv inn din tekst', type: 'semibold' }]} />}\n {...register(field6, { validate: requireSelect })}\n >\n <option value={'Option 1'}>{'Option 1'}</option>\n <option value={'Option 2'}>{'Option 2'}</option>\n <option value={'Option 3'}>{'Option 3'}</option>\n </Select>\n </FormGroup>,\n ];\n } else if (exampleType === FormExampleVariants.checkbox) {\n return (\n <Checkbox\n inputId=\"checkbox1\"\n label={<Label labelTexts={[{ text: 'Checkbox 1' }]} />}\n errorText={errors.field1 ? (errors.field1.message as string) : undefined}\n variant={props.variant}\n {...register(field1, { required: errorMessage })}\n />\n );\n } else if (exampleType === FormExampleVariants.radiobutton) {\n return (\n <RadioButton\n inputId=\"radiobutton1\"\n label={<Label labelTexts={[{ text: 'Radiobutton 1' }]} />}\n errorText={errors.field3 ? (errors.field3.message as string) : undefined}\n variant={props.variant}\n {...register(field3, { required: errorMessage })}\n />\n );\n } else if (exampleType === FormExampleVariants.textarea) {\n return (\n <Textarea\n defaultValue={`Dette er min historie \\n\\n Hello \\n\\n test`}\n grow\n maxCharacters={40}\n minRows={5}\n errorText={errors.field4 ? (errors.field4.message as string) : undefined}\n label={<Label labelTexts={[{ text: 'Skriv din historie her', type: 'semibold' }]} />}\n textareaId=\"textarea1\"\n {...register(field4, { maxLength: { value: 40, message: errorMessage3 } })}\n />\n );\n } else if (exampleType === FormExampleVariants.input) {\n return (\n <Input\n inputId={'input1'}\n label={<Label labelTexts={[{ text: 'Skriv inn din tekst', type: 'semibold' }]} />}\n placeholder={'Skriv noe!'}\n errorText={errors.field5 ? (errors.field5.message as string) : undefined}\n icon={Hospital}\n {...register(field5, { required: errorMessage4 })}\n />\n );\n } else if (exampleType === FormExampleVariants.select) {\n return (\n <Select\n errorText={errors.field6 ? (errors.field6.message as string) : undefined}\n label={<Label labelTexts={[{ text: 'Skriv inn din tekst', type: 'semibold' }]} />}\n {...register(field6, { validate: requireSelect })}\n >\n <option value={'Option 1'}>{'Option 1'}</option>\n <option value={'Option 2'}>{'Option 2'}</option>\n <option value={'Option 3'}>{'Option 3'}</option>\n </Select>\n );\n }\n };\n\n return (\n <form\n noValidate\n onSubmit={handleSubmit(data => {\n // eslint-disable-next-line no-console\n !isTest() && console.log(data);\n })}\n >\n <Validation variant={props.variant} errorSummary={allErrors ? 'Sjekk at alt er riktig utfylt' : undefined}>\n {getFormExample()}\n </Validation>\n <Button type=\"submit\">{'Send inn'}</Button>\n </form>\n );\n};\n\nexport default FormExample;\n"],"names":["isCheckBoxInput","element","isDateObject","value","isNullOrUndefined","isObjectType","isObject","getEventValue","event","getNodeParentName","name","isNameInFieldArray","names","isPlainObject","tempObject","prototypeCopy","isWeb","cloneObject","data","copy","isArray","key","compact","isUndefined","val","get","obj","path","defaultValue","result","isBoolean","EVENTS","VALIDATION_MODE","INPUT_VALIDATION_RULES","React","getProxyFormState","formState","control","localProxyFormState","isRoot","_key","isEmptyObject","shouldRenderFormState","formStateData","_proxyFormState","updateFormState","convertToArrayPayload","useSubscribe","props","_props","subscription","isString","generateWatchOutput","_names","formValues","isGlobal","fieldName","isKey","stringToPath","input","set","object","index","tempPath","length","lastIndex","newValue","objValue","appendErrors","validateAllFieldCriteria","errors","type","message","focusFieldBy","fields","callback","fieldsNames","field","_f","currentField","getValidationModes","mode","isWatched","isBlurEvent","watchName","updateFieldArrayRootError","error","fieldArrayErrors","isFileInput","isFunction","isHTMLElement","owner","isMessage","isRadioInput","isRegex","defaultResult","validResult","getCheckboxValue","options","values","option","defaultReturn","getRadioValue","previous","getValidateError","ref","getValueAndMessage","validationData","validateField","shouldUseNativeValidation","isFieldArray","refs","required","maxLength","minLength","min","max","pattern","validate","valueAsNumber","mount","disabled","inputValue","inputRef","setCustomValidity","isRadio","isCheckBox","isRadioOrCheckbox","isEmpty","appendErrorsCurry","getMinMaxMessage","exceedMax","maxLengthMessage","minLengthMessage","maxType","minType","exceedMin","maxOutput","minOutput","valueNumber","valueDate","convertTimeToDate","time","isTime","isWeek","maxLengthOutput","minLengthOutput","patternValue","validateError","validationResult","baseGet","updatePath","isEmptyArray","unset","paths","childObject","createSubject","_observers","observer","isPrimitive","deepEqual","object1","object2","keys1","keys2","val1","val2","isMultipleSelect","live","objectHasFunction","markFieldsDirty","isParentNodeArray","getDirtyFieldsFromDefaultValues","dirtyFieldsFromValues","getDirtyFields","defaultValues","getFieldValueAs","valueAsDate","setValueAs","getFieldValue","getResolverOptions","_fields","criteriaMode","getRuleValue","rule","hasValidation","schemaErrorLookup","foundError","skipValidation","isTouched","isSubmitted","reValidateMode","unsetEmptyArray","defaultOptions","createFormControl","flushRootRender","_options","_formState","_defaultValues","_formValues","_state","delayErrorCallback","timer","_subjects","shouldCaptureDirtyFields","validationModeBeforeSubmit","validationModeAfterSubmit","shouldDisplayAllAssociatedErrors","debounce","wait","_updateValid","shouldUpdateValid","isValid","_executeSchema","executeBuiltInValidation","_updateIsValidating","_updateFieldArray","method","args","shouldSetValues","shouldUpdateFieldsAndState","fieldValues","touchedFields","_getDirty","updateErrors","updateValidAndValue","shouldSkipSetValueAs","setFieldValue","updateTouchAndDirty","fieldValue","shouldDirty","shouldRender","shouldUpdateField","isPreviousDirty","output","isCurrentFieldPristine","isPreviousFieldTouched","shouldRenderByError","fieldState","previousFieldError","updatedFormState","executeSchemaAndUpdateState","shouldOnlyCheckValid","context","isFieldArrayRoot","fieldError","_removeUnmounted","unregister","getValues","_getWatch","_getFieldArray","fieldReference","optionRef","checkboxRef","radioRef","trigger","setValues","fieldKey","setValue","cloneValue","onChange","target","isFieldValueUpdated","getCurrentFieldValue","shouldSkipValidation","watched","previousErrorLookupResult","errorLookupResult","fieldNames","getFieldState","clearErrors","inputName","setError","watch","payload","_updateDisabledField","register","disabledIsDefined","fieldRef","radioOrCheckbox","_focusError","handleSubmit","onValid","onInvalid","e","resetField","_reset","keepStateOptions","updatedValues","cloneUpdatedValues","form","reset","useForm","_formControl","_values","FormExampleVariants","FormExample","exampleType","defaultDate","minDate","maxDate","field1","field2","field3","field4","field5","field6","allErrors","errorMessage","errorMessage2","errorMessage3","errorMessage4","errorMessage5","requireTwo","requireSelect","getFormExample","allCheckBoxes","Checkbox","Label","FormGroup","FormLayout","FormLayoutColumns","check","RadioButton","Textarea","Input","Hospital","Select","isTest","Validation","Button","FormExample$1"],"mappings":"q7DAEA,IAAIA,GAAmBC,GAAYA,EAAQ,OAAS,WAEhDC,GAAgBC,GAAUA,aAAiB,KAE3CC,EAAqBD,GAAUA,GAAS,KAE5C,MAAME,GAAgBF,GAAU,OAAOA,GAAU,SACjD,IAAIG,EAAYH,GAAU,CAACC,EAAkBD,CAAK,GAC9C,CAAC,MAAM,QAAQA,CAAK,GACpBE,GAAaF,CAAK,GAClB,CAACD,GAAaC,CAAK,EAEnBI,GAAiBC,GAAUF,EAASE,CAAK,GAAKA,EAAM,OAClDR,GAAgBQ,EAAM,MAAM,EACxBA,EAAM,OAAO,QACbA,EAAM,OAAO,MACjBA,EAEFC,GAAqBC,GAASA,EAAK,UAAU,EAAGA,EAAK,OAAO,aAAa,CAAC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,IAAgB,QAEvB,OAAAvQ,EAAA,cAACmS,GAAA,CACC,QAAS,SACT,MAAQnS,EAAA,cAAA4R,EAAA,CAAM,WAAY,CAAC,CAAE,KAAM,sBAAuB,KAAM,UAAW,CAAC,CAAG,CAAA,EAC/E,YAAa,aACb,UAAWxP,EAAO,OAAUA,EAAO,OAAO,QAAqB,OAC/D,KAAMgQ,GACL,GAAGlD,EAAS6B,EAAQ,CAAE,SAAUM,EAAe,CAAA,CAAA,EAGtD,GAAWd,IAAgB,SAEvB,OAAAvQ,EAAA,cAACqS,GAAA,CACC,UAAWjQ,EAAO,OAAUA,EAAO,OAAO,QAAqB,OAC/D,MAAQpC,EAAA,cAAA4R,EAAA,CAAM,WAAY,CAAC,CAAE,KAAM,sBAAuB,KAAM,UAAW,CAAC,CAAG,CAAA,EAC9E,GAAG1C,EAAS8B,EAAQ,CAAE,SAAUQ,EAAe,CAAA,EAE/CxR,EAAA,cAAA,SAAA,CAAO,MAAO,UAAA,EAAa,UAAW,EACtCA,EAAA,cAAA,SAAA,CAAO,MAAO,UAAA,EAAa,UAAW,EACtCA,EAAA,cAAA,SAAA,CAAO,MAAO,UAAA,EAAa,UAAW,CAAA,EAG7C,EAIA,OAAAA,EAAA,cAAC,OAAA,CACC,WAAU,GACV,SAAUuP,EAAqBvQ,GAAA,CAE7B,CAACsT,GAAO,GAAK,QAAQ,IAAItT,CAAI,CAAA,CAC9B,CAAA,EAEDgB,EAAA,cAACuS,GAAW,CAAA,QAASzR,EAAM,QAAS,aAAcmQ,EAAY,gCAAkC,MAC7F,EAAAQ,EAAA,CACH,EACCzR,EAAA,cAAAwS,GAAA,CAAO,KAAK,QAAA,EAAU,UAAW,CAAA,CAGxC,EAEAC,GAAenC","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;"}
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { FormMode, FormVariant } from '../../constants';
2
+ import { FormMode, FormSize } from '../../constants';
3
3
  export type FormGroupTags = 'fieldset' | 'div';
4
4
  export interface FormGroupProps {
5
5
  /** title for the the fieldset */
@@ -17,7 +17,7 @@ export interface FormGroupProps {
17
17
  /** Changes the visuals of the formgroup */
18
18
  mode?: keyof typeof FormMode;
19
19
  /** Changes the visuals of the formgroup */
20
- variant?: keyof typeof FormVariant;
20
+ size?: keyof typeof FormSize;
21
21
  /** Error message */
22
22
  error?: string;
23
23
  /** Sets the data-testid attribute. */
@@ -1 +1 @@
1
- {"version":3,"file":"FormGroup.d.ts","sourceRoot":"","sources":["../../../src/components/FormGroup/FormGroup.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmB,MAAM,OAAO,CAAC;AAIxC,OAAO,EAAe,QAAQ,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAarE,MAAM,MAAM,aAAa,GAAG,UAAU,GAAG,KAAK,CAAC;AAE/C,MAAM,WAAW,cAAc;IAC7B,iCAAiC;IACjC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,oDAAoD;IACpD,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,uCAAuC;IACvC,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,0CAA0C;IAC1C,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,+CAA+C;IAC/C,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAC/B,mDAAmD;IACnD,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,2CAA2C;IAC3C,IAAI,CAAC,EAAE,MAAM,OAAO,QAAQ,CAAC;IAC7B,2CAA2C;IAC3C,OAAO,CAAC,EAAE,MAAM,OAAO,WAAW,CAAC;IACnC,oBAAoB;IACpB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,sCAAsC;IACtC,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,4DAA4D;IAC5D,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,8CAA8C;IAC9C,IAAI,CAAC,EAAE,MAAM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ACvC,UAAU,CAAC,EAAE,aAAa,CAAC;IAC3B,kDAAkD;IAClD,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB;AAED,eAAO,MAAM,SAAS,uFA4HpB,CAAC;AAIH,eAAe,SAAS,CAAC"}
@@ -0,0 +1,97 @@
1
+ import r, { useState as _ } from "react";
2
+ import l from "classnames";
3
+ import { FormMode as k, FormSize as G, AnalyticsId as B } from "../../constants.js";
4
+ import { isComponent as s } from "../../utils/component.js";
5
+ import { uuid as A } from "../../utils/uuid.js";
6
+ import D from "../Checkbox/Checkbox.js";
7
+ import H from "../ErrorWrapper/ErrorWrapper.js";
8
+ import $ from "../FormLayout/FormLayout.js";
9
+ import j from "../Input/Input.js";
10
+ import q, { getRadioLabelClasses as J } from "../RadioButton/RadioButton.js";
11
+ import K from "../Select/Select.js";
12
+ import O from "../Title/Title.js";
13
+ import o from "./styles.module.scss";
14
+ const u = r.forwardRef((t, w) => {
15
+ const {
16
+ className: F,
17
+ fieldsetClassName: y,
18
+ mode: n = k.onwhite,
19
+ size: m = G.medium,
20
+ error: a,
21
+ name: p,
22
+ htmlMarkup: c = "fieldset",
23
+ renderError: R = !0,
24
+ errorWrapperClassName: b,
25
+ errorWrapperTestId: v
26
+ } = t, [x, S] = _(), [T] = _(A()), i = n === k.ondark, d = m === G.large, W = l(
27
+ o["form-group-wrapper"],
28
+ {
29
+ [o["form-group-wrapper--on-dark"]]: i,
30
+ [o["form-group-wrapper--invalid"]]: a
31
+ },
32
+ F
33
+ ), L = l(o["form-group-wrapper__title"], {
34
+ [o["form-group-wrapper__title--on-dark"]]: i && !a,
35
+ [o["form-group-wrapper__title--large"]]: d
36
+ }), M = l(o["form-group"]), g = l(o["field-set__legend"], {
37
+ [o["field-set__legend--on-dark"]]: i && !a,
38
+ [o["field-set__legend--large"]]: d
39
+ }), C = l(o["field-set"], y), f = (e, z) => {
40
+ if (s(e, $))
41
+ return r.cloneElement(e, {
42
+ size: m,
43
+ mapHelper: f
44
+ });
45
+ if (s(e, u))
46
+ return r.cloneElement(e, {
47
+ mode: n,
48
+ size: m,
49
+ error: a,
50
+ renderError: !1
51
+ });
52
+ if (s(e, D))
53
+ return r.cloneElement(e, {
54
+ name: p ?? e.props.name,
55
+ mode: n,
56
+ size: m,
57
+ error: !!a
58
+ });
59
+ if (s(e, q)) {
60
+ const N = typeof e.props.inputId > "u" ? T + z : e.props.inputId;
61
+ return r.cloneElement(e, {
62
+ inputId: N,
63
+ name: p ?? e.props.name,
64
+ mode: n,
65
+ size: m,
66
+ onChange: (I) => {
67
+ S(I.target.id), e.props.onChange && e.props.onChange(I);
68
+ },
69
+ error: !!a,
70
+ labelClassNames: J(N, n, d, x)
71
+ });
72
+ } else {
73
+ if (s(e, j))
74
+ return r.cloneElement(e, {
75
+ name: p ?? e.props.name,
76
+ mode: n,
77
+ size: m,
78
+ error: !!a
79
+ });
80
+ if (s(e, K))
81
+ return r.cloneElement(e, {
82
+ name: p ?? e.props.name,
83
+ mode: n,
84
+ error: !!a
85
+ });
86
+ }
87
+ return e;
88
+ }, E = () => /* @__PURE__ */ r.createElement("div", { className: M }, c === "div" && /* @__PURE__ */ r.createElement("div", { className: C }, t.legend && /* @__PURE__ */ r.createElement("h5", { className: g }, t.legend), r.Children.map(t.children, f)), c === "fieldset" && /* @__PURE__ */ r.createElement("fieldset", { name: t.fieldsetName, className: C }, t.legend && /* @__PURE__ */ r.createElement("legend", { className: g }, t.legend), r.Children.map(t.children, f)));
89
+ return /* @__PURE__ */ r.createElement("div", { "data-testid": t.testId, "data-analyticsid": B.FormGroup, className: W, ref: w, tabIndex: -1 }, t.title && /* @__PURE__ */ r.createElement(O, { className: L, htmlMarkup: "h4", appearance: "title4", margin: { marginTop: 0, marginBottom: a ? 1 : 2 } }, t.title), R ? /* @__PURE__ */ r.createElement(H, { className: b, errorText: a, testId: v }, E()) : E());
90
+ });
91
+ u.displayName = "FormGroup";
92
+ const ne = u;
93
+ export {
94
+ u as FormGroup,
95
+ ne as default
96
+ };
97
+ //# sourceMappingURL=FormGroup.js.map