@gusto/embedded-react-sdk 0.37.0 → 0.38.0-rc.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (969) hide show
  1. package/CHANGELOG.md +45 -0
  2. package/README.md +3 -0
  3. package/dist/UNSTABLE_Hooks.d.ts +1 -1
  4. package/dist/UNSTABLE_Hooks.js +65 -47
  5. package/dist/UNSTABLE_Hooks.js.map +1 -1
  6. package/dist/assets/icons/filter-funnel.svg.js +10 -0
  7. package/dist/assets/icons/filter-funnel.svg.js.map +1 -0
  8. package/dist/assets/icons/percent-circle.svg.js +10 -0
  9. package/dist/assets/icons/percent-circle.svg.js.map +1 -0
  10. package/dist/assets/icons/plus-circle.svg.js +1 -1
  11. package/dist/assets/icons/plus-circle.svg.js.map +1 -1
  12. package/dist/components/Base/Base.js +2 -3
  13. package/dist/components/Base/Base.js.map +1 -1
  14. package/dist/components/Base/createCompoundContext.js.map +1 -1
  15. package/dist/components/Common/DataView/DataCards/DataCards.d.ts +5 -3
  16. package/dist/components/Common/DataView/DataCards/DataCards.js +58 -39
  17. package/dist/components/Common/DataView/DataCards/DataCards.js.map +1 -1
  18. package/dist/components/Common/DataView/DataCards/DataCards.module.scss.js +9 -7
  19. package/dist/components/Common/DataView/DataCards/DataCards.module.scss.js.map +1 -1
  20. package/dist/components/Common/DataView/DataTable/DataTable.d.ts +4 -2
  21. package/dist/components/Common/DataView/DataTable/DataTable.js +95 -76
  22. package/dist/components/Common/DataView/DataTable/DataTable.js.map +1 -1
  23. package/dist/components/Common/DataView/DataView.d.ts +4 -3
  24. package/dist/components/Common/DataView/DataView.js +24 -22
  25. package/dist/components/Common/DataView/DataView.js.map +1 -1
  26. package/dist/components/Common/DataView/useDataView.d.ts +33 -6
  27. package/dist/components/Common/DataView/useDataView.js +23 -20
  28. package/dist/components/Common/DataView/useDataView.js.map +1 -1
  29. package/dist/components/Common/DataView/useSelectionState.d.ts +5 -0
  30. package/dist/components/Common/DataView/useSelectionState.js +8 -0
  31. package/dist/components/Common/DataView/useSelectionState.js.map +1 -0
  32. package/dist/components/Common/DateRangeFilter/DateRangeFilter.d.ts +19 -0
  33. package/dist/components/Common/DateRangeFilter/DateRangeFilter.js +94 -0
  34. package/dist/components/Common/DateRangeFilter/DateRangeFilter.js.map +1 -0
  35. package/dist/components/Common/DateRangeFilter/DateRangeFilter.module.scss.js +14 -0
  36. package/dist/components/Common/DateRangeFilter/DateRangeFilter.module.scss.js.map +1 -0
  37. package/dist/components/Common/DetailViewLayout/DetailViewLayout.d.ts +2 -0
  38. package/dist/components/Common/DetailViewLayout/DetailViewLayoutTypes.d.ts +40 -0
  39. package/dist/components/Common/DetailViewLayout/index.d.ts +3 -0
  40. package/dist/components/Common/EmptyData/EmptyData.d.ts +2 -1
  41. package/dist/components/Common/EmptyData/EmptyData.js +15 -13
  42. package/dist/components/Common/EmptyData/EmptyData.js.map +1 -1
  43. package/dist/components/Common/EmptyData/EmptyData.module.scss.js +6 -4
  44. package/dist/components/Common/EmptyData/EmptyData.module.scss.js.map +1 -1
  45. package/dist/components/Common/Fields/CheckboxField/CheckboxField.js +26 -24
  46. package/dist/components/Common/Fields/CheckboxField/CheckboxField.js.map +1 -1
  47. package/dist/components/Common/Fields/CheckboxGroupField/CheckboxGroupField.d.ts +1 -1
  48. package/dist/components/Common/Fields/CheckboxGroupField/CheckboxGroupField.js +32 -30
  49. package/dist/components/Common/Fields/CheckboxGroupField/CheckboxGroupField.js.map +1 -1
  50. package/dist/components/Common/Fields/ComboBoxField/ComboBoxField.d.ts +1 -1
  51. package/dist/components/Common/Fields/ComboBoxField/ComboBoxField.js +36 -34
  52. package/dist/components/Common/Fields/ComboBoxField/ComboBoxField.js.map +1 -1
  53. package/dist/components/Common/Fields/DatePickerField/DatePickerField.d.ts +1 -1
  54. package/dist/components/Common/Fields/DatePickerField/DatePickerField.js +40 -38
  55. package/dist/components/Common/Fields/DatePickerField/DatePickerField.js.map +1 -1
  56. package/dist/components/Common/Fields/FileInputField/FileInputField.js +24 -22
  57. package/dist/components/Common/Fields/FileInputField/FileInputField.js.map +1 -1
  58. package/dist/components/Common/Fields/MultiSelectComboBoxField/MultiSelectComboBoxField.js +24 -22
  59. package/dist/components/Common/Fields/MultiSelectComboBoxField/MultiSelectComboBoxField.js.map +1 -1
  60. package/dist/components/Common/Fields/NumberInputField/NumberInputField.js +27 -25
  61. package/dist/components/Common/Fields/NumberInputField/NumberInputField.js.map +1 -1
  62. package/dist/components/Common/Fields/RadioGroupField/RadioGroupField.d.ts +1 -1
  63. package/dist/components/Common/Fields/RadioGroupField/RadioGroupField.js +34 -32
  64. package/dist/components/Common/Fields/RadioGroupField/RadioGroupField.js.map +1 -1
  65. package/dist/components/Common/Fields/SelectField/SelectField.d.ts +1 -1
  66. package/dist/components/Common/Fields/SelectField/SelectField.js +34 -32
  67. package/dist/components/Common/Fields/SelectField/SelectField.js.map +1 -1
  68. package/dist/components/Common/Fields/SwitchField/SwitchField.js +26 -24
  69. package/dist/components/Common/Fields/SwitchField/SwitchField.js.map +1 -1
  70. package/dist/components/Common/Fields/TextAreaField/TextAreaField.js +24 -22
  71. package/dist/components/Common/Fields/TextAreaField/TextAreaField.js.map +1 -1
  72. package/dist/components/Common/Fields/TextInputField/TextInputField.js +26 -24
  73. package/dist/components/Common/Fields/TextInputField/TextInputField.js.map +1 -1
  74. package/dist/components/Common/Fields/hooks/useField.d.ts +3 -2
  75. package/dist/components/Common/Fields/hooks/useField.js +37 -33
  76. package/dist/components/Common/Fields/hooks/useField.js.map +1 -1
  77. package/dist/components/Common/Fields/hooks/useStringifyGenericFieldValue.d.ts +2 -2
  78. package/dist/components/Common/Fields/hooks/useStringifyGenericFieldValue.js +2 -2
  79. package/dist/components/Common/Fields/hooks/useStringifyGenericFieldValue.js.map +1 -1
  80. package/dist/components/Common/FlowBreadcrumbs/FlowBreadcrumbs.js +21 -20
  81. package/dist/components/Common/FlowBreadcrumbs/FlowBreadcrumbs.js.map +1 -1
  82. package/dist/components/Common/FlowBreadcrumbs/FlowBreadcrumbsTypes.d.ts +5 -0
  83. package/dist/components/Common/FlowBreadcrumbs/breadcrumbTransitionHelpers.d.ts +1 -1
  84. package/dist/components/Common/FlowBreadcrumbs/breadcrumbTransitionHelpers.js +10 -8
  85. package/dist/components/Common/FlowBreadcrumbs/breadcrumbTransitionHelpers.js.map +1 -1
  86. package/dist/components/Common/ReorderableList/ReorderableList.js.map +1 -1
  87. package/dist/components/Common/SignatureForm/SignatureForm.js +10 -15
  88. package/dist/components/Common/SignatureForm/SignatureForm.js.map +1 -1
  89. package/dist/components/Common/SignatureForm/SignatureFormActions.js +9 -12
  90. package/dist/components/Common/SignatureForm/SignatureFormActions.js.map +1 -1
  91. package/dist/components/Common/SignatureForm/SignatureFormFields.js +14 -18
  92. package/dist/components/Common/SignatureForm/SignatureFormFields.js.map +1 -1
  93. package/dist/components/Common/UI/Box/Box.d.ts +1 -1
  94. package/dist/components/Common/UI/Box/Box.js +9 -8
  95. package/dist/components/Common/UI/Box/Box.js.map +1 -1
  96. package/dist/components/Common/UI/Box/Box.module.scss.js +12 -8
  97. package/dist/components/Common/UI/Box/Box.module.scss.js.map +1 -1
  98. package/dist/components/Common/UI/Box/BoxTypes.d.ts +2 -9
  99. package/dist/components/Common/UI/BoxHeader/BoxHeader.d.ts +2 -0
  100. package/dist/components/Common/UI/BoxHeader/BoxHeader.js +23 -0
  101. package/dist/components/Common/UI/BoxHeader/BoxHeader.js.map +1 -0
  102. package/dist/components/Common/UI/BoxHeader/BoxHeader.module.scss.js +8 -0
  103. package/dist/components/Common/UI/BoxHeader/BoxHeader.module.scss.js.map +1 -0
  104. package/dist/components/Common/UI/BoxHeader/BoxHeaderTypes.d.ts +10 -0
  105. package/dist/components/Common/UI/BoxHeader/BoxHeaderTypes.js +7 -0
  106. package/dist/components/Common/UI/BoxHeader/BoxHeaderTypes.js.map +1 -0
  107. package/dist/components/Common/UI/BoxHeader/index.d.ts +2 -0
  108. package/dist/components/Common/UI/Breadcrumbs/Breadcrumbs.js +17 -17
  109. package/dist/components/Common/UI/Breadcrumbs/Breadcrumbs.js.map +1 -1
  110. package/dist/components/Common/UI/Breadcrumbs/BreadcrumbsTypes.d.ts +5 -0
  111. package/dist/components/Common/UI/Breadcrumbs/BreadcrumbsTypes.js.map +1 -1
  112. package/dist/components/Common/UI/Button/Button.js +33 -29
  113. package/dist/components/Common/UI/Button/Button.js.map +1 -1
  114. package/dist/components/Common/UI/Button/Button.module.scss.js +5 -3
  115. package/dist/components/Common/UI/Button/Button.module.scss.js.map +1 -1
  116. package/dist/components/Common/UI/Button/ButtonTypes.d.ts +4 -0
  117. package/dist/components/Common/UI/Button/ButtonTypes.js.map +1 -1
  118. package/dist/components/Common/UI/Checkbox/Checkbox.js +60 -49
  119. package/dist/components/Common/UI/Checkbox/Checkbox.js.map +1 -1
  120. package/dist/components/Common/UI/Checkbox/Checkbox.module.scss.js +10 -6
  121. package/dist/components/Common/UI/Checkbox/Checkbox.module.scss.js.map +1 -1
  122. package/dist/components/Common/UI/ComboBox/ComboBox.js +1 -1
  123. package/dist/components/Common/UI/ComboBox/ComboBox.js.map +1 -1
  124. package/dist/components/Common/UI/ComboBox/ComboBoxTypes.d.ts +1 -1
  125. package/dist/components/Common/UI/DatePicker/DatePicker.d.ts +1 -1
  126. package/dist/components/Common/UI/DatePicker/DatePicker.js +88 -69
  127. package/dist/components/Common/UI/DatePicker/DatePicker.js.map +1 -1
  128. package/dist/components/Common/UI/DatePicker/DatePickerTypes.d.ts +13 -0
  129. package/dist/components/Common/UI/DateRangePicker/DateRangePicker.d.ts +2 -0
  130. package/dist/components/Common/UI/DateRangePicker/DateRangePicker.js +72 -0
  131. package/dist/components/Common/UI/DateRangePicker/DateRangePicker.js.map +1 -0
  132. package/dist/components/Common/UI/DateRangePicker/DateRangePicker.module.scss.js +30 -0
  133. package/dist/components/Common/UI/DateRangePicker/DateRangePicker.module.scss.js.map +1 -0
  134. package/dist/components/Common/UI/DateRangePicker/DateRangePickerTypes.d.ts +14 -0
  135. package/dist/components/Common/UI/DateRangePicker/index.d.ts +2 -0
  136. package/dist/components/Common/UI/DescriptionList/DescriptionList.js +19 -12
  137. package/dist/components/Common/UI/DescriptionList/DescriptionList.js.map +1 -1
  138. package/dist/components/Common/UI/DescriptionList/DescriptionList.module.scss.js +6 -4
  139. package/dist/components/Common/UI/DescriptionList/DescriptionList.module.scss.js.map +1 -1
  140. package/dist/components/Common/UI/DescriptionList/DescriptionListTypes.d.ts +6 -1
  141. package/dist/components/Common/UI/DescriptionList/DescriptionListTypes.js +4 -1
  142. package/dist/components/Common/UI/DescriptionList/DescriptionListTypes.js.map +1 -1
  143. package/dist/components/Common/UI/Heading/Heading.d.ts +1 -1
  144. package/dist/components/Common/UI/Heading/Heading.js +11 -9
  145. package/dist/components/Common/UI/Heading/Heading.js.map +1 -1
  146. package/dist/components/Common/UI/Heading/Heading.module.scss.js +15 -15
  147. package/dist/components/Common/UI/Heading/HeadingTypes.d.ts +1 -1
  148. package/dist/components/Common/UI/Input/Input.js.map +1 -1
  149. package/dist/components/Common/UI/Menu/Menu.module.scss.js +5 -5
  150. package/dist/components/Common/UI/MultiSelectComboBox/MultiSelectComboBox.js +94 -80
  151. package/dist/components/Common/UI/MultiSelectComboBox/MultiSelectComboBox.js.map +1 -1
  152. package/dist/components/Common/UI/NumberInput/NumberInput.js +1 -1
  153. package/dist/components/Common/UI/NumberInput/NumberInput.js.map +1 -1
  154. package/dist/components/Common/UI/RadioGroup/RadioGroupTypes.d.ts +1 -1
  155. package/dist/components/Common/UI/RadioGroup/RadioGroupTypes.js.map +1 -1
  156. package/dist/components/Common/UI/Select/Select.js +22 -22
  157. package/dist/components/Common/UI/Select/Select.js.map +1 -1
  158. package/dist/components/Common/UI/Select/SelectTypes.d.ts +1 -1
  159. package/dist/components/Common/UI/Table/Table.js +12 -12
  160. package/dist/components/Common/UI/Table/Table.js.map +1 -1
  161. package/dist/components/Common/UI/Table/Table.module.scss.js +1 -1
  162. package/dist/components/Common/UI/Table/TableTypes.d.ts +3 -3
  163. package/dist/components/Common/UI/Table/TableTypes.js +3 -3
  164. package/dist/components/Common/UI/Table/TableTypes.js.map +1 -1
  165. package/dist/components/Common/UI/TextArea/TextArea.js +1 -1
  166. package/dist/components/Common/UI/TextArea/TextArea.js.map +1 -1
  167. package/dist/components/Common/UI/TextInput/TextInput.js +13 -13
  168. package/dist/components/Common/UI/TextInput/TextInput.js.map +1 -1
  169. package/dist/components/Common/index.d.ts +2 -0
  170. package/dist/components/Company/AssignSignatory/AssignSignatory.js +7 -11
  171. package/dist/components/Company/AssignSignatory/AssignSignatory.js.map +1 -1
  172. package/dist/components/Company/AssignSignatory/AssignSignatorySelection.js +2 -5
  173. package/dist/components/Company/AssignSignatory/AssignSignatorySelection.js.map +1 -1
  174. package/dist/components/Company/AssignSignatory/CreateSignatory/Actions.js +2 -4
  175. package/dist/components/Company/AssignSignatory/CreateSignatory/Actions.js.map +1 -1
  176. package/dist/components/Company/AssignSignatory/CreateSignatory/CreateSignatory.js +6 -9
  177. package/dist/components/Company/AssignSignatory/CreateSignatory/CreateSignatory.js.map +1 -1
  178. package/dist/components/Company/AssignSignatory/CreateSignatory/CreateSignatoryForm.js +13 -14
  179. package/dist/components/Company/AssignSignatory/CreateSignatory/CreateSignatoryForm.js.map +1 -1
  180. package/dist/components/Company/AssignSignatory/CreateSignatory/useCreateSignatory.js +3 -4
  181. package/dist/components/Company/AssignSignatory/CreateSignatory/useCreateSignatory.js.map +1 -1
  182. package/dist/components/Company/AssignSignatory/InviteSignatory/Actions.js +2 -4
  183. package/dist/components/Company/AssignSignatory/InviteSignatory/Actions.js.map +1 -1
  184. package/dist/components/Company/AssignSignatory/InviteSignatory/InviteSignatory.js +5 -8
  185. package/dist/components/Company/AssignSignatory/InviteSignatory/InviteSignatory.js.map +1 -1
  186. package/dist/components/Company/AssignSignatory/InviteSignatory/InviteSignatoryForm.js +13 -14
  187. package/dist/components/Company/AssignSignatory/InviteSignatory/InviteSignatoryForm.js.map +1 -1
  188. package/dist/components/Company/AssignSignatory/InviteSignatory/useInviteSignatory.js +3 -4
  189. package/dist/components/Company/AssignSignatory/InviteSignatory/useInviteSignatory.js.map +1 -1
  190. package/dist/components/Company/AssignSignatory/TitleSelect.js +2 -5
  191. package/dist/components/Company/AssignSignatory/TitleSelect.js.map +1 -1
  192. package/dist/components/Company/AssignSignatory/useAssignSignatory.js +5 -6
  193. package/dist/components/Company/AssignSignatory/useAssignSignatory.js.map +1 -1
  194. package/dist/components/Company/BankAccount/BankAccountForm/Actions.js +8 -10
  195. package/dist/components/Company/BankAccount/BankAccountForm/Actions.js.map +1 -1
  196. package/dist/components/Company/BankAccount/BankAccountForm/Form.js +9 -13
  197. package/dist/components/Company/BankAccount/BankAccountForm/Form.js.map +1 -1
  198. package/dist/components/Company/BankAccount/BankAccountForm/context.js +3 -4
  199. package/dist/components/Company/BankAccount/BankAccountForm/context.js.map +1 -1
  200. package/dist/components/Company/BankAccount/BankAccountList/Actions.js +8 -10
  201. package/dist/components/Company/BankAccount/BankAccountList/Actions.js.map +1 -1
  202. package/dist/components/Company/BankAccount/BankAccountVerify/Actions.js +8 -10
  203. package/dist/components/Company/BankAccount/BankAccountVerify/Actions.js.map +1 -1
  204. package/dist/components/Company/BankAccount/BankAccountVerify/Form.js +4 -8
  205. package/dist/components/Company/BankAccount/BankAccountVerify/Form.js.map +1 -1
  206. package/dist/components/Company/DocumentSigner/DocumentList/Actions.js +2 -4
  207. package/dist/components/Company/DocumentSigner/DocumentList/Actions.js.map +1 -1
  208. package/dist/components/Company/DocumentSigner/DocumentList/DocumentList.js +11 -15
  209. package/dist/components/Company/DocumentSigner/DocumentList/DocumentList.js.map +1 -1
  210. package/dist/components/Company/DocumentSigner/DocumentList/useDocumentList.js +3 -4
  211. package/dist/components/Company/DocumentSigner/DocumentList/useDocumentList.js.map +1 -1
  212. package/dist/components/Company/DocumentSigner/SignatureForm/SignatureForm.js +11 -15
  213. package/dist/components/Company/DocumentSigner/SignatureForm/SignatureForm.js.map +1 -1
  214. package/dist/components/Company/DocumentSigner/SignatureForm/useSignatureForm.js +3 -4
  215. package/dist/components/Company/DocumentSigner/SignatureForm/useSignatureForm.js.map +1 -1
  216. package/dist/components/Company/FederalTaxes/Actions.js +7 -9
  217. package/dist/components/Company/FederalTaxes/Actions.js.map +1 -1
  218. package/dist/components/Company/FederalTaxes/FederalTaxes.js +22 -26
  219. package/dist/components/Company/FederalTaxes/FederalTaxes.js.map +1 -1
  220. package/dist/components/Company/FederalTaxes/Form.js +7 -9
  221. package/dist/components/Company/FederalTaxes/Form.js.map +1 -1
  222. package/dist/components/Company/FederalTaxes/useFederalTaxes.js +8 -9
  223. package/dist/components/Company/FederalTaxes/useFederalTaxes.js.map +1 -1
  224. package/dist/components/Company/Industry/Actions.js +7 -9
  225. package/dist/components/Company/Industry/Actions.js.map +1 -1
  226. package/dist/components/Company/Industry/Context.js +6 -7
  227. package/dist/components/Company/Industry/Context.js.map +1 -1
  228. package/dist/components/Company/Industry/Edit.js +4 -7
  229. package/dist/components/Company/Industry/Edit.js.map +1 -1
  230. package/dist/components/Company/Locations/LocationForm/Actions.js +8 -10
  231. package/dist/components/Company/Locations/LocationForm/Actions.js.map +1 -1
  232. package/dist/components/Company/Locations/LocationForm/Form.js +5 -7
  233. package/dist/components/Company/Locations/LocationForm/Form.js.map +1 -1
  234. package/dist/components/Company/Locations/LocationForm/LocationForm.js +15 -19
  235. package/dist/components/Company/Locations/LocationForm/LocationForm.js.map +1 -1
  236. package/dist/components/Company/Locations/LocationForm/useLocationForm.js +3 -4
  237. package/dist/components/Company/Locations/LocationForm/useLocationForm.js.map +1 -1
  238. package/dist/components/Company/Locations/LocationsList/Actions.js +6 -8
  239. package/dist/components/Company/Locations/LocationsList/Actions.js.map +1 -1
  240. package/dist/components/Company/Locations/LocationsList/List.js +15 -16
  241. package/dist/components/Company/Locations/LocationsList/List.js.map +1 -1
  242. package/dist/components/Company/Locations/LocationsList/LocationsList.js +6 -10
  243. package/dist/components/Company/Locations/LocationsList/LocationsList.js.map +1 -1
  244. package/dist/components/Company/Locations/LocationsList/useLocationsList.js +3 -4
  245. package/dist/components/Company/Locations/LocationsList/useLocationsList.js.map +1 -1
  246. package/dist/components/Company/OnboardingOverview/Completed.js +12 -15
  247. package/dist/components/Company/OnboardingOverview/Completed.js.map +1 -1
  248. package/dist/components/Company/OnboardingOverview/MissingRequirements.js +9 -12
  249. package/dist/components/Company/OnboardingOverview/MissingRequirements.js.map +1 -1
  250. package/dist/components/Company/OnboardingOverview/OnboardingOverview.js +6 -10
  251. package/dist/components/Company/OnboardingOverview/OnboardingOverview.js.map +1 -1
  252. package/dist/components/Company/OnboardingOverview/context.js +3 -4
  253. package/dist/components/Company/OnboardingOverview/context.js.map +1 -1
  254. package/dist/components/Company/PaySchedule/PaySchedule.js +94 -91
  255. package/dist/components/Company/PaySchedule/PaySchedule.js.map +1 -1
  256. package/dist/components/Company/PaySchedule/_parts/Actions.js +16 -18
  257. package/dist/components/Company/PaySchedule/_parts/Actions.js.map +1 -1
  258. package/dist/components/Company/PaySchedule/_parts/Edit.js +47 -39
  259. package/dist/components/Company/PaySchedule/_parts/Edit.js.map +1 -1
  260. package/dist/components/Company/PaySchedule/_parts/Head.js +11 -14
  261. package/dist/components/Company/PaySchedule/_parts/Head.js.map +1 -1
  262. package/dist/components/Company/PaySchedule/_parts/List.js +19 -21
  263. package/dist/components/Company/PaySchedule/_parts/List.js.map +1 -1
  264. package/dist/components/Company/PaySchedule/usePaySchedule.d.ts +6 -5
  265. package/dist/components/Company/PaySchedule/usePaySchedule.js +5 -6
  266. package/dist/components/Company/PaySchedule/usePaySchedule.js.map +1 -1
  267. package/dist/components/Company/StateTaxes/StateTaxesForm/Actions.js +2 -4
  268. package/dist/components/Company/StateTaxes/StateTaxesForm/Actions.js.map +1 -1
  269. package/dist/components/Company/StateTaxes/StateTaxesForm/StateTaxesForm.js +33 -33
  270. package/dist/components/Company/StateTaxes/StateTaxesForm/StateTaxesForm.js.map +1 -1
  271. package/dist/components/Company/StateTaxes/StateTaxesForm/context.js +3 -4
  272. package/dist/components/Company/StateTaxes/StateTaxesForm/context.js.map +1 -1
  273. package/dist/components/Company/StateTaxes/StateTaxesList/Actions.js +2 -4
  274. package/dist/components/Company/StateTaxes/StateTaxesList/Actions.js.map +1 -1
  275. package/dist/components/Company/StateTaxes/StateTaxesList/List.js +5 -7
  276. package/dist/components/Company/StateTaxes/StateTaxesList/List.js.map +1 -1
  277. package/dist/components/Company/StateTaxes/StateTaxesList/StateTaxesList.js +14 -14
  278. package/dist/components/Company/StateTaxes/StateTaxesList/StateTaxesList.js.map +1 -1
  279. package/dist/components/Company/StateTaxes/StateTaxesList/context.d.ts +2 -2
  280. package/dist/components/Company/StateTaxes/StateTaxesList/context.js +3 -4
  281. package/dist/components/Company/StateTaxes/StateTaxesList/context.js.map +1 -1
  282. package/dist/components/Contractor/Address/Address.js +3 -7
  283. package/dist/components/Contractor/Address/Address.js.map +1 -1
  284. package/dist/components/Contractor/Address/Form.js +2 -4
  285. package/dist/components/Contractor/Address/Form.js.map +1 -1
  286. package/dist/components/Contractor/Address/useAddress.js +5 -6
  287. package/dist/components/Contractor/Address/useAddress.js.map +1 -1
  288. package/dist/components/Contractor/ContractorList/index.js +33 -34
  289. package/dist/components/Contractor/ContractorList/index.js.map +1 -1
  290. package/dist/components/Contractor/NewHireReport/NewHireReport.js +2 -3
  291. package/dist/components/Contractor/NewHireReport/NewHireReport.js.map +1 -1
  292. package/dist/components/Contractor/PaymentMethod/BankAccountForm.js +10 -13
  293. package/dist/components/Contractor/PaymentMethod/BankAccountForm.js.map +1 -1
  294. package/dist/components/Contractor/PaymentMethod/PaymentMethod.js +2 -3
  295. package/dist/components/Contractor/PaymentMethod/PaymentMethod.js.map +1 -1
  296. package/dist/components/Contractor/PaymentMethod/PaymentTypeForm.js +2 -5
  297. package/dist/components/Contractor/PaymentMethod/PaymentTypeForm.js.map +1 -1
  298. package/dist/components/Contractor/Payments/CreatePayment/CreatePayment.js +135 -126
  299. package/dist/components/Contractor/Payments/CreatePayment/CreatePayment.js.map +1 -1
  300. package/dist/components/Contractor/Payments/CreatePayment/CreatePaymentPresentation.d.ts +2 -1
  301. package/dist/components/Contractor/Payments/CreatePayment/CreatePaymentPresentation.js +72 -71
  302. package/dist/components/Contractor/Payments/CreatePayment/CreatePaymentPresentation.js.map +1 -1
  303. package/dist/components/Contractor/Payments/CreatePayment/EditContractorPaymentPresentation.js +10 -10
  304. package/dist/components/Contractor/Payments/CreatePayment/FastAchSubmissionBlockerBanner.d.ts +2 -1
  305. package/dist/components/Contractor/Payments/CreatePayment/FastAchSubmissionBlockerBanner.js +18 -21
  306. package/dist/components/Contractor/Payments/CreatePayment/FastAchSubmissionBlockerBanner.js.map +1 -1
  307. package/dist/components/Contractor/Payments/CreatePayment/PreviewPresentation.d.ts +2 -1
  308. package/dist/components/Contractor/Payments/CreatePayment/PreviewPresentation.js +83 -84
  309. package/dist/components/Contractor/Payments/CreatePayment/PreviewPresentation.js.map +1 -1
  310. package/dist/components/Contractor/Payments/PaymentHistory/PaymentHistoryPresentation.js +17 -19
  311. package/dist/components/Contractor/Payments/PaymentHistory/PaymentHistoryPresentation.js.map +1 -1
  312. package/dist/components/Contractor/Payments/PaymentStatement/PaymentStatement.js +10 -10
  313. package/dist/components/Contractor/Payments/PaymentStatement/PaymentStatement.js.map +1 -1
  314. package/dist/components/Contractor/Payments/PaymentStatement/PaymentStatementPresentation.js +67 -79
  315. package/dist/components/Contractor/Payments/PaymentStatement/PaymentStatementPresentation.js.map +1 -1
  316. package/dist/components/Contractor/Payments/PaymentStatement/PaymentStatementPresentation.module.scss.js +10 -12
  317. package/dist/components/Contractor/Payments/PaymentStatement/PaymentStatementPresentation.module.scss.js.map +1 -1
  318. package/dist/components/Contractor/Payments/PaymentSummary/PaymentSummaryPresentation.js +47 -49
  319. package/dist/components/Contractor/Payments/PaymentSummary/PaymentSummaryPresentation.js.map +1 -1
  320. package/dist/components/Contractor/Payments/PaymentsList/PaymentsListPresentation.js +63 -66
  321. package/dist/components/Contractor/Payments/PaymentsList/PaymentsListPresentation.js.map +1 -1
  322. package/dist/components/Contractor/Payments/PaymentsList/PaymentsListPresentation.module.scss.js +4 -4
  323. package/dist/components/Contractor/Profile/ContractorProfileForm.js +13 -13
  324. package/dist/components/Contractor/Profile/useContractorProfile.js +31 -30
  325. package/dist/components/Contractor/Profile/useContractorProfile.js.map +1 -1
  326. package/dist/components/Contractor/Submit/Submit.d.ts +2 -2
  327. package/dist/components/Contractor/Submit/Submit.js +44 -46
  328. package/dist/components/Contractor/Submit/Submit.js.map +1 -1
  329. package/dist/components/Employee/Compensation/Actions.js +12 -14
  330. package/dist/components/Employee/Compensation/Actions.js.map +1 -1
  331. package/dist/components/Employee/Compensation/Compensation.js +80 -77
  332. package/dist/components/Employee/Compensation/Compensation.js.map +1 -1
  333. package/dist/components/Employee/Compensation/Edit.js +27 -28
  334. package/dist/components/Employee/Compensation/Edit.js.map +1 -1
  335. package/dist/components/Employee/Compensation/List.js +22 -23
  336. package/dist/components/Employee/Compensation/List.js.map +1 -1
  337. package/dist/components/Employee/Dashboard/BasicDetailsView.d.ts +13 -0
  338. package/dist/components/Employee/Dashboard/BasicDetailsView.js +107 -0
  339. package/dist/components/Employee/Dashboard/BasicDetailsView.js.map +1 -0
  340. package/dist/components/Employee/Dashboard/Dashboard.d.ts +5 -0
  341. package/dist/components/Employee/Dashboard/Dashboard.js +146 -0
  342. package/dist/components/Employee/Dashboard/Dashboard.js.map +1 -0
  343. package/dist/components/Employee/Dashboard/DashboardComponents.d.ts +5 -0
  344. package/dist/components/Employee/Dashboard/DashboardComponents.js +12 -0
  345. package/dist/components/Employee/Dashboard/DashboardComponents.js.map +1 -0
  346. package/dist/components/Employee/Dashboard/DashboardFlow.d.ts +5 -0
  347. package/dist/components/Employee/Dashboard/DashboardFlow.js +25 -0
  348. package/dist/components/Employee/Dashboard/DashboardFlow.js.map +1 -0
  349. package/dist/components/Employee/Dashboard/DocumentsView.d.ts +7 -0
  350. package/dist/components/Employee/Dashboard/DocumentsView.js +51 -0
  351. package/dist/components/Employee/Dashboard/DocumentsView.js.map +1 -0
  352. package/dist/components/Employee/Dashboard/JobAndPayView.d.ts +22 -0
  353. package/dist/components/Employee/Dashboard/JobAndPayView.js +211 -0
  354. package/dist/components/Employee/Dashboard/JobAndPayView.js.map +1 -0
  355. package/dist/components/Employee/Dashboard/TaxesView.d.ts +13 -0
  356. package/dist/components/Employee/Dashboard/TaxesView.js +97 -0
  357. package/dist/components/Employee/Dashboard/TaxesView.js.map +1 -0
  358. package/dist/components/Employee/Dashboard/dashboardStateMachine.d.ts +3 -0
  359. package/dist/components/Employee/Dashboard/dashboardStateMachine.js +8 -0
  360. package/dist/components/Employee/Dashboard/dashboardStateMachine.js.map +1 -0
  361. package/dist/components/Employee/Dashboard/hooks/index.d.ts +9 -0
  362. package/dist/components/Employee/Dashboard/hooks/useEmployeeBasicDetails.d.ts +20 -0
  363. package/dist/components/Employee/Dashboard/hooks/useEmployeeBasicDetails.js +29 -0
  364. package/dist/components/Employee/Dashboard/hooks/useEmployeeBasicDetails.js.map +1 -0
  365. package/dist/components/Employee/Dashboard/hooks/useEmployeeCompensation.d.ts +30 -0
  366. package/dist/components/Employee/Dashboard/hooks/useEmployeeCompensation.js +52 -0
  367. package/dist/components/Employee/Dashboard/hooks/useEmployeeCompensation.js.map +1 -0
  368. package/dist/components/Employee/Dashboard/hooks/useEmployeeForms.d.ts +16 -0
  369. package/dist/components/Employee/Dashboard/hooks/useEmployeeForms.js +22 -0
  370. package/dist/components/Employee/Dashboard/hooks/useEmployeeForms.js.map +1 -0
  371. package/dist/components/Employee/Dashboard/hooks/useEmployeeTaxes.d.ts +20 -0
  372. package/dist/components/Employee/Dashboard/hooks/useEmployeeTaxes.js +24 -0
  373. package/dist/components/Employee/Dashboard/hooks/useEmployeeTaxes.js.map +1 -0
  374. package/dist/components/Employee/Dashboard/index.d.ts +14 -0
  375. package/dist/components/Employee/Deductions/DeductionsForm/ChildSupportForm.js +57 -53
  376. package/dist/components/Employee/Deductions/DeductionsForm/ChildSupportForm.js.map +1 -1
  377. package/dist/components/Employee/Deductions/DeductionsForm/CustomDeductionForm.js +17 -18
  378. package/dist/components/Employee/Deductions/DeductionsForm/CustomDeductionForm.js.map +1 -1
  379. package/dist/components/Employee/Deductions/DeductionsForm/DeductionsForm.js.map +1 -1
  380. package/dist/components/Employee/Deductions/DeductionsForm/GarnishmentForm.js +11 -12
  381. package/dist/components/Employee/Deductions/DeductionsForm/GarnishmentForm.js.map +1 -1
  382. package/dist/components/Employee/Deductions/DeductionsList/DeductionsList.js +18 -19
  383. package/dist/components/Employee/Deductions/DeductionsList/DeductionsList.js.map +1 -1
  384. package/dist/components/Employee/Deductions/IncludeDeductions/IncludeDeductions.js +6 -7
  385. package/dist/components/Employee/Deductions/IncludeDeductions/IncludeDeductions.js.map +1 -1
  386. package/dist/components/Employee/DocumentSigner/DocumentList/Actions.js +6 -8
  387. package/dist/components/Employee/DocumentSigner/DocumentList/Actions.js.map +1 -1
  388. package/dist/components/Employee/DocumentSigner/DocumentList/DocumentList.js +10 -14
  389. package/dist/components/Employee/DocumentSigner/DocumentList/DocumentList.js.map +1 -1
  390. package/dist/components/Employee/DocumentSigner/DocumentList/List.js +2 -6
  391. package/dist/components/Employee/DocumentSigner/DocumentList/List.js.map +1 -1
  392. package/dist/components/Employee/DocumentSigner/DocumentList/useDocumentList.js +3 -4
  393. package/dist/components/Employee/DocumentSigner/DocumentList/useDocumentList.js.map +1 -1
  394. package/dist/components/Employee/DocumentSigner/EmploymentEligibility/EmploymentEligibility.js +22 -22
  395. package/dist/components/Employee/DocumentSigner/EmploymentEligibility/EmploymentEligibility.js.map +1 -1
  396. package/dist/components/Employee/DocumentSigner/EmploymentEligibility/EmploymentEligibilityPresentation.js +24 -26
  397. package/dist/components/Employee/DocumentSigner/EmploymentEligibility/EmploymentEligibilityPresentation.js.map +1 -1
  398. package/dist/components/Employee/DocumentSigner/I9SignatureForm/I9SignatureForm.js +12 -14
  399. package/dist/components/Employee/DocumentSigner/I9SignatureForm/I9SignatureForm.js.map +1 -1
  400. package/dist/components/Employee/DocumentSigner/SignatureForm/SignatureForm.js +11 -15
  401. package/dist/components/Employee/DocumentSigner/SignatureForm/SignatureForm.js.map +1 -1
  402. package/dist/components/Employee/DocumentSigner/SignatureForm/useSignatureForm.js +3 -4
  403. package/dist/components/Employee/DocumentSigner/SignatureForm/useSignatureForm.js.map +1 -1
  404. package/dist/components/Employee/EmployeeDocuments/EmployeeDocumentsPresentation.js +6 -9
  405. package/dist/components/Employee/EmployeeDocuments/EmployeeDocumentsPresentation.js.map +1 -1
  406. package/dist/components/Employee/EmployeeList/EmployeeList.d.ts +3 -7
  407. package/dist/components/Employee/EmployeeList/EmployeeList.js +45 -95
  408. package/dist/components/Employee/EmployeeList/EmployeeList.js.map +1 -1
  409. package/dist/components/Employee/EmployeeList/EmployeeListView.d.ts +15 -0
  410. package/dist/components/Employee/EmployeeList/EmployeeListView.js +130 -0
  411. package/dist/components/Employee/EmployeeList/EmployeeListView.js.map +1 -0
  412. package/dist/components/Employee/EmployeeList/ManagementEmployeeList.d.ts +9 -0
  413. package/dist/components/Employee/EmployeeList/ManagementEmployeeList.js +81 -0
  414. package/dist/components/Employee/EmployeeList/ManagementEmployeeList.js.map +1 -0
  415. package/dist/components/Employee/EmployeeList/ManagementEmployeeListView.d.ts +17 -0
  416. package/dist/components/Employee/EmployeeList/ManagementEmployeeListView.js +193 -0
  417. package/dist/components/Employee/EmployeeList/ManagementEmployeeListView.js.map +1 -0
  418. package/dist/components/Employee/EmployeeList/index.d.ts +3 -0
  419. package/dist/components/Employee/EmployeeList/useEmployeeList.d.ts +36 -23
  420. package/dist/components/Employee/EmployeeList/useEmployeeList.js +114 -19
  421. package/dist/components/Employee/EmployeeList/useEmployeeList.js.map +1 -1
  422. package/dist/components/Employee/FederalTaxes/Actions.js +7 -9
  423. package/dist/components/Employee/FederalTaxes/Actions.js.map +1 -1
  424. package/dist/components/Employee/FederalTaxes/FederalForm.js +10 -12
  425. package/dist/components/Employee/FederalTaxes/FederalForm.js.map +1 -1
  426. package/dist/components/Employee/FederalTaxes/useFederalTaxes.js +3 -4
  427. package/dist/components/Employee/FederalTaxes/useFederalTaxes.js.map +1 -1
  428. package/dist/components/Employee/Landing/Landing.js +14 -15
  429. package/dist/components/Employee/Landing/Landing.js.map +1 -1
  430. package/dist/components/Employee/OnboardingFlow/OnboardingFlow.js +4 -4
  431. package/dist/components/Employee/OnboardingFlow/OnboardingFlow.js.map +1 -1
  432. package/dist/components/Employee/OnboardingFlow/OnboardingFlowComponents.d.ts +1 -0
  433. package/dist/components/Employee/OnboardingFlow/OnboardingFlowComponents.js +14 -8
  434. package/dist/components/Employee/OnboardingFlow/OnboardingFlowComponents.js.map +1 -1
  435. package/dist/components/Employee/OnboardingFlow/onboardingStateMachine.js +10 -11
  436. package/dist/components/Employee/OnboardingFlow/onboardingStateMachine.js.map +1 -1
  437. package/dist/components/Employee/OnboardingSummary/OnboardingSummary.js +7 -7
  438. package/dist/components/Employee/PaymentMethod/Actions.js +6 -8
  439. package/dist/components/Employee/PaymentMethod/Actions.js.map +1 -1
  440. package/dist/components/Employee/PaymentMethod/BankAccountEdit.js +5 -8
  441. package/dist/components/Employee/PaymentMethod/BankAccountEdit.js.map +1 -1
  442. package/dist/components/Employee/PaymentMethod/BankAccountsList.js +12 -13
  443. package/dist/components/Employee/PaymentMethod/BankAccountsList.js.map +1 -1
  444. package/dist/components/Employee/PaymentMethod/PaymentMethod.js +44 -43
  445. package/dist/components/Employee/PaymentMethod/PaymentMethod.js.map +1 -1
  446. package/dist/components/Employee/PaymentMethod/PaymentTypeForm.js +7 -10
  447. package/dist/components/Employee/PaymentMethod/PaymentTypeForm.js.map +1 -1
  448. package/dist/components/Employee/PaymentMethod/Split.js +9 -10
  449. package/dist/components/Employee/PaymentMethod/Split.js.map +1 -1
  450. package/dist/components/Employee/PaymentMethod/usePaymentMethod.d.ts +1 -0
  451. package/dist/components/Employee/PaymentMethod/usePaymentMethod.js +5 -6
  452. package/dist/components/Employee/PaymentMethod/usePaymentMethod.js.map +1 -1
  453. package/dist/components/Employee/Profile/Actions.js +7 -9
  454. package/dist/components/Employee/Profile/Actions.js.map +1 -1
  455. package/dist/components/Employee/Profile/AdminPersonalDetails.js +14 -16
  456. package/dist/components/Employee/Profile/AdminPersonalDetails.js.map +1 -1
  457. package/dist/components/Employee/Profile/HomeAddress.js +9 -10
  458. package/dist/components/Employee/Profile/HomeAddress.js.map +1 -1
  459. package/dist/components/Employee/Profile/PersonalDetailsInputs.js +10 -12
  460. package/dist/components/Employee/Profile/PersonalDetailsInputs.js.map +1 -1
  461. package/dist/components/Employee/Profile/Profile.js.map +1 -1
  462. package/dist/components/Employee/Profile/useProfile.js +3 -4
  463. package/dist/components/Employee/Profile/useProfile.js.map +1 -1
  464. package/dist/components/Employee/StateTaxes/Actions.js +8 -10
  465. package/dist/components/Employee/StateTaxes/Actions.js.map +1 -1
  466. package/dist/components/Employee/StateTaxes/useStateTaxes.js +3 -4
  467. package/dist/components/Employee/StateTaxes/useStateTaxes.js.map +1 -1
  468. package/dist/components/Employee/Taxes/Actions.js +8 -10
  469. package/dist/components/Employee/Taxes/Actions.js.map +1 -1
  470. package/dist/components/Employee/Taxes/FederalForm.js +10 -12
  471. package/dist/components/Employee/Taxes/FederalForm.js.map +1 -1
  472. package/dist/components/Employee/Taxes/useTaxes.js +3 -4
  473. package/dist/components/Employee/Taxes/useTaxes.js.map +1 -1
  474. package/dist/components/Employee/Terminations/TerminateEmployee/TerminateEmployee.js +48 -48
  475. package/dist/components/Employee/Terminations/TerminateEmployee/TerminateEmployee.js.map +1 -1
  476. package/dist/components/Employee/Terminations/TerminateEmployee/TerminateEmployeePresentation.js +14 -17
  477. package/dist/components/Employee/Terminations/TerminateEmployee/TerminateEmployeePresentation.js.map +1 -1
  478. package/dist/components/Employee/Terminations/TerminationFlow/TerminationFlowComponents.d.ts +1 -0
  479. package/dist/components/Employee/Terminations/TerminationFlow/TerminationFlowComponents.js +37 -33
  480. package/dist/components/Employee/Terminations/TerminationFlow/TerminationFlowComponents.js.map +1 -1
  481. package/dist/components/Employee/Terminations/TerminationFlow/terminationStateMachine.d.ts +1 -0
  482. package/dist/components/Employee/Terminations/TerminationFlow/terminationStateMachine.js +57 -45
  483. package/dist/components/Employee/Terminations/TerminationFlow/terminationStateMachine.js.map +1 -1
  484. package/dist/components/Employee/Terminations/TerminationSummary/TerminationSummaryPresentation.js +8 -11
  485. package/dist/components/Employee/Terminations/TerminationSummary/TerminationSummaryPresentation.js.map +1 -1
  486. package/dist/components/Employee/index.d.ts +3 -0
  487. package/dist/components/Employee/index.js +38 -34
  488. package/dist/components/Employee/index.js.map +1 -1
  489. package/dist/components/Flow/Flow.js +20 -23
  490. package/dist/components/Flow/Flow.js.map +1 -1
  491. package/dist/components/InformationRequests/InformationRequestForm/InformationRequestForm.js +16 -18
  492. package/dist/components/InformationRequests/InformationRequestForm/InformationRequestForm.js.map +1 -1
  493. package/dist/components/InformationRequests/InformationRequestList/InformationRequestList.js +18 -20
  494. package/dist/components/InformationRequests/InformationRequestList/InformationRequestList.js.map +1 -1
  495. package/dist/components/InformationRequests/InformationRequests.js +3 -4
  496. package/dist/components/InformationRequests/InformationRequests.js.map +1 -1
  497. package/dist/components/Payroll/ConfirmWireDetails/ConfirmWireDetailsBanner/ConfirmWireDetailsBanner.js.map +1 -1
  498. package/dist/components/Payroll/ConfirmWireDetails/ConfirmWireDetailsForm/ConfirmWireDetailsForm.js +8 -10
  499. package/dist/components/Payroll/ConfirmWireDetails/ConfirmWireDetailsForm/ConfirmWireDetailsForm.js.map +1 -1
  500. package/dist/components/Payroll/Dismissal/DismissalFlow.js +14 -14
  501. package/dist/components/Payroll/Dismissal/DismissalFlow.js.map +1 -1
  502. package/dist/components/Payroll/Dismissal/DismissalFlowComponents.d.ts +2 -2
  503. package/dist/components/Payroll/Dismissal/DismissalFlowComponents.js +21 -20
  504. package/dist/components/Payroll/Dismissal/DismissalFlowComponents.js.map +1 -1
  505. package/dist/components/Payroll/Dismissal/DismissalPayPeriodSelection/DismissalPayPeriodSelection.d.ts +2 -1
  506. package/dist/components/Payroll/Dismissal/DismissalPayPeriodSelection/DismissalPayPeriodSelection.js +57 -55
  507. package/dist/components/Payroll/Dismissal/DismissalPayPeriodSelection/DismissalPayPeriodSelection.js.map +1 -1
  508. package/dist/components/Payroll/Dismissal/DismissalPayPeriodSelection/DismissalPayPeriodSelectionPresentation.js +8 -11
  509. package/dist/components/Payroll/Dismissal/DismissalPayPeriodSelection/DismissalPayPeriodSelectionPresentation.js.map +1 -1
  510. package/dist/components/Payroll/GrossUpModal/GrossUpModal.d.ts +1 -1
  511. package/dist/components/Payroll/GrossUpModal/GrossUpModal.js +85 -74
  512. package/dist/components/Payroll/GrossUpModal/GrossUpModal.js.map +1 -1
  513. package/dist/components/Payroll/GrossUpModal/GrossUpModal.module.scss.js +7 -7
  514. package/dist/components/Payroll/GrossUpModal/GrossUpModalTypes.d.ts +0 -1
  515. package/dist/components/Payroll/OffCycle/OffCycleFlow.d.ts +1 -1
  516. package/dist/components/Payroll/OffCycle/OffCycleFlow.js +24 -18
  517. package/dist/components/Payroll/OffCycle/OffCycleFlow.js.map +1 -1
  518. package/dist/components/Payroll/OffCycle/OffCycleFlowComponents.d.ts +2 -0
  519. package/dist/components/Payroll/OffCycle/OffCycleFlowComponents.js +28 -22
  520. package/dist/components/Payroll/OffCycle/OffCycleFlowComponents.js.map +1 -1
  521. package/dist/components/Payroll/OffCycleCreation/OffCycleCreation.js +92 -84
  522. package/dist/components/Payroll/OffCycleCreation/OffCycleCreation.js.map +1 -1
  523. package/dist/components/Payroll/OffCycleCreation/OffCycleCreationPresentation.js +30 -32
  524. package/dist/components/Payroll/OffCycleCreation/OffCycleCreationPresentation.js.map +1 -1
  525. package/dist/components/Payroll/OffCyclePayPeriodDateForm/OffCyclePayPeriodDateFormPresentation.js +17 -24
  526. package/dist/components/Payroll/OffCyclePayPeriodDateForm/OffCyclePayPeriodDateFormPresentation.js.map +1 -1
  527. package/dist/components/Payroll/OffCyclePayPeriodDateForm/OffCyclePayPeriodDateFormTypes.d.ts +1 -1
  528. package/dist/components/Payroll/OffCyclePayPeriodDateForm/OffCyclePayPeriodDateFormTypes.js +21 -21
  529. package/dist/components/Payroll/OffCyclePayPeriodDateForm/OffCyclePayPeriodDateFormTypes.js.map +1 -1
  530. package/dist/components/Payroll/OffCyclePayPeriodDateForm/useOffCyclePayPeriodDateValidation.d.ts +3 -3
  531. package/dist/components/Payroll/OffCyclePayPeriodDateForm/useOffCyclePayPeriodDateValidation.js +13 -13
  532. package/dist/components/Payroll/OffCyclePayPeriodDateForm/useOffCyclePayPeriodDateValidation.js.map +1 -1
  533. package/dist/components/Payroll/OffCycleReasonSelection/OffCycleReasonSelectionPresentation.js +6 -8
  534. package/dist/components/Payroll/OffCycleReasonSelection/OffCycleReasonSelectionPresentation.js.map +1 -1
  535. package/dist/components/Payroll/OffCycleTaxWithholdingModal/OffCycleTaxWithholdingModal.js +12 -13
  536. package/dist/components/Payroll/OffCycleTaxWithholdingModal/OffCycleTaxWithholdingModal.js.map +1 -1
  537. package/dist/components/Payroll/PayrollBlocker/components/PayrollBlockerAlerts.js +11 -14
  538. package/dist/components/Payroll/PayrollBlocker/components/PayrollBlockerAlerts.js.map +1 -1
  539. package/dist/components/Payroll/PayrollBlocker/components/PayrollBlockerList.js +12 -12
  540. package/dist/components/Payroll/PayrollConfiguration/PayrollConfiguration.js +194 -190
  541. package/dist/components/Payroll/PayrollConfiguration/PayrollConfiguration.js.map +1 -1
  542. package/dist/components/Payroll/PayrollConfiguration/PayrollConfigurationPresentation.d.ts +1 -1
  543. package/dist/components/Payroll/PayrollConfiguration/PayrollConfigurationPresentation.js +69 -69
  544. package/dist/components/Payroll/PayrollConfiguration/PayrollConfigurationPresentation.js.map +1 -1
  545. package/dist/components/Payroll/PayrollConfiguration/usePayrollConfigurationData.d.ts +4 -3
  546. package/dist/components/Payroll/PayrollConfiguration/usePayrollConfigurationData.js +102 -76
  547. package/dist/components/Payroll/PayrollConfiguration/usePayrollConfigurationData.js.map +1 -1
  548. package/dist/components/Payroll/PayrollEditEmployee/PayrollEditEmployeePresentation.d.ts +2 -2
  549. package/dist/components/Payroll/PayrollEditEmployee/PayrollEditEmployeePresentation.js +235 -238
  550. package/dist/components/Payroll/PayrollEditEmployee/PayrollEditEmployeePresentation.js.map +1 -1
  551. package/dist/components/Payroll/PayrollEditEmployee/PayrollEditEmployeePresentation.module.scss.js +7 -7
  552. package/dist/components/Payroll/PayrollEditEmployee/TimeOffField.d.ts +11 -0
  553. package/dist/components/Payroll/PayrollEditEmployee/TimeOffField.js +63 -30
  554. package/dist/components/Payroll/PayrollEditEmployee/TimeOffField.js.map +1 -1
  555. package/dist/components/Payroll/PayrollExecutionFlow/PayrollExecutionFlow.d.ts +2 -1
  556. package/dist/components/Payroll/PayrollExecutionFlow/PayrollExecutionFlow.js +43 -41
  557. package/dist/components/Payroll/PayrollExecutionFlow/PayrollExecutionFlow.js.map +1 -1
  558. package/dist/components/Payroll/PayrollExecutionFlow/index.d.ts +1 -1
  559. package/dist/components/Payroll/PayrollExecutionFlow/payrollExecutionMachine.d.ts +1 -1
  560. package/dist/components/Payroll/PayrollExecutionFlow/payrollExecutionMachine.js +62 -51
  561. package/dist/components/Payroll/PayrollExecutionFlow/payrollExecutionMachine.js.map +1 -1
  562. package/dist/components/Payroll/PayrollFlow/OffCycleFlowContextual.js +13 -6
  563. package/dist/components/Payroll/PayrollFlow/OffCycleFlowContextual.js.map +1 -1
  564. package/dist/components/Payroll/PayrollFlow/PayrollExecutionFlowContextual.js +22 -20
  565. package/dist/components/Payroll/PayrollFlow/PayrollExecutionFlowContextual.js.map +1 -1
  566. package/dist/components/Payroll/PayrollFlow/PayrollFlowComponents.d.ts +1 -0
  567. package/dist/components/Payroll/PayrollFlow/PayrollFlowComponents.js.map +1 -1
  568. package/dist/components/Payroll/PayrollFlow/TransitionFlowContextual.js +35 -14
  569. package/dist/components/Payroll/PayrollFlow/TransitionFlowContextual.js.map +1 -1
  570. package/dist/components/Payroll/PayrollFlow/payrollStateMachine.js +80 -69
  571. package/dist/components/Payroll/PayrollFlow/payrollStateMachine.js.map +1 -1
  572. package/dist/components/Payroll/PayrollHistory/PayrollHistory.d.ts +0 -1
  573. package/dist/components/Payroll/PayrollHistory/PayrollHistory.js +59 -66
  574. package/dist/components/Payroll/PayrollHistory/PayrollHistory.js.map +1 -1
  575. package/dist/components/Payroll/PayrollHistory/PayrollHistoryPresentation.d.ts +5 -4
  576. package/dist/components/Payroll/PayrollHistory/PayrollHistoryPresentation.js +97 -105
  577. package/dist/components/Payroll/PayrollHistory/PayrollHistoryPresentation.js.map +1 -1
  578. package/dist/components/Payroll/PayrollList/PayrollList.js +98 -64
  579. package/dist/components/Payroll/PayrollList/PayrollList.js.map +1 -1
  580. package/dist/components/Payroll/PayrollList/PayrollListPresentation.d.ts +11 -3
  581. package/dist/components/Payroll/PayrollList/PayrollListPresentation.js +225 -123
  582. package/dist/components/Payroll/PayrollList/PayrollListPresentation.js.map +1 -1
  583. package/dist/components/Payroll/PayrollList/PayrollListPresentation.module.scss.js +10 -8
  584. package/dist/components/Payroll/PayrollList/PayrollListPresentation.module.scss.js.map +1 -1
  585. package/dist/components/Payroll/PayrollOverview/PayrollOverview.js +106 -105
  586. package/dist/components/Payroll/PayrollOverview/PayrollOverview.js.map +1 -1
  587. package/dist/components/Payroll/PayrollOverview/PayrollOverviewPresentation.d.ts +2 -1
  588. package/dist/components/Payroll/PayrollOverview/PayrollOverviewPresentation.js +222 -213
  589. package/dist/components/Payroll/PayrollOverview/PayrollOverviewPresentation.js.map +1 -1
  590. package/dist/components/Payroll/PayrollOverview/SubmissionBlockers/FastAchSubmissionBlockerBanner.d.ts +2 -1
  591. package/dist/components/Payroll/PayrollOverview/SubmissionBlockers/FastAchSubmissionBlockerBanner.js +7 -10
  592. package/dist/components/Payroll/PayrollOverview/SubmissionBlockers/FastAchSubmissionBlockerBanner.js.map +1 -1
  593. package/dist/components/Payroll/PayrollReceipts/PayrollReceiptsPresentation.js +103 -114
  594. package/dist/components/Payroll/PayrollReceipts/PayrollReceiptsPresentation.js.map +1 -1
  595. package/dist/components/Payroll/PayrollReceipts/PayrollReceiptsPresentation.module.scss.js +16 -18
  596. package/dist/components/Payroll/PayrollReceipts/PayrollReceiptsPresentation.module.scss.js.map +1 -1
  597. package/dist/components/Payroll/RecoveryCases/RecoveryCasesList/RecoveryCasesList.js +2 -4
  598. package/dist/components/Payroll/RecoveryCases/RecoveryCasesList/RecoveryCasesList.js.map +1 -1
  599. package/dist/components/Payroll/RecoveryCases/RecoveryCasesResubmit/RecoveryCasesResubmit.js +11 -13
  600. package/dist/components/Payroll/RecoveryCases/RecoveryCasesResubmit/RecoveryCasesResubmit.js.map +1 -1
  601. package/dist/components/Payroll/RecoveryCases/useRecoveryCaseErrorCode.js +2 -5
  602. package/dist/components/Payroll/RecoveryCases/useRecoveryCaseErrorCode.js.map +1 -1
  603. package/dist/components/Payroll/Transition/TransitionFlow.d.ts +1 -1
  604. package/dist/components/Payroll/Transition/TransitionFlow.js +29 -27
  605. package/dist/components/Payroll/Transition/TransitionFlow.js.map +1 -1
  606. package/dist/components/Payroll/Transition/TransitionFlowComponents.d.ts +1 -0
  607. package/dist/components/Payroll/Transition/TransitionFlowComponents.js.map +1 -1
  608. package/dist/components/Payroll/TransitionCreation/TransitionCreation.js +67 -63
  609. package/dist/components/Payroll/TransitionCreation/TransitionCreation.js.map +1 -1
  610. package/dist/components/Payroll/TransitionCreation/TransitionCreationPresentation.js +12 -14
  611. package/dist/components/Payroll/TransitionCreation/TransitionCreationPresentation.js.map +1 -1
  612. package/dist/components/Payroll/TransitionCreation/TransitionCreationTypes.d.ts +1 -1
  613. package/dist/components/Payroll/TransitionCreation/TransitionCreationTypes.js +5 -5
  614. package/dist/components/Payroll/TransitionCreation/TransitionCreationTypes.js.map +1 -1
  615. package/dist/components/Payroll/TransitionPayrollAlert/TransitionPayrollAlert.js +13 -13
  616. package/dist/components/Payroll/TransitionPayrollAlert/TransitionPayrollAlert.js.map +1 -1
  617. package/dist/components/Payroll/TransitionPayrollAlert/TransitionPayrollAlertPresentation.js +44 -55
  618. package/dist/components/Payroll/TransitionPayrollAlert/TransitionPayrollAlertPresentation.js.map +1 -1
  619. package/dist/components/Payroll/helpers.d.ts +6 -1
  620. package/dist/components/Payroll/helpers.js +81 -74
  621. package/dist/components/Payroll/helpers.js.map +1 -1
  622. package/dist/components/Payroll/usePreparedPayrollData.d.ts +2 -2
  623. package/dist/components/Payroll/usePreparedPayrollData.js +7 -8
  624. package/dist/components/Payroll/usePreparedPayrollData.js.map +1 -1
  625. package/dist/components/UNSTABLE_Hooks/form/FormFieldsMetadataContext.d.ts +2 -2
  626. package/dist/components/UNSTABLE_Hooks/form/FormFieldsMetadataContext.js +6 -9
  627. package/dist/components/UNSTABLE_Hooks/form/FormFieldsMetadataContext.js.map +1 -1
  628. package/dist/components/UNSTABLE_Hooks/form/FormFieldsMetadataProvider.d.ts +1 -1
  629. package/dist/components/UNSTABLE_Hooks/form/FormFieldsMetadataProvider.js.map +1 -1
  630. package/dist/components/UNSTABLE_Hooks/form/SDKFormProvider.d.ts +1 -2
  631. package/dist/components/UNSTABLE_Hooks/form/SDKFormProvider.js.map +1 -1
  632. package/dist/components/UNSTABLE_Hooks/form/buildFormSchema.d.ts +48 -0
  633. package/dist/components/UNSTABLE_Hooks/form/buildFormSchema.js +94 -0
  634. package/dist/components/UNSTABLE_Hooks/form/buildFormSchema.js.map +1 -0
  635. package/dist/components/UNSTABLE_Hooks/form/fields/CheckboxHookField.d.ts +3 -2
  636. package/dist/components/UNSTABLE_Hooks/form/fields/CheckboxHookField.js +24 -23
  637. package/dist/components/UNSTABLE_Hooks/form/fields/CheckboxHookField.js.map +1 -1
  638. package/dist/components/UNSTABLE_Hooks/form/fields/DatePickerHookField.d.ts +3 -2
  639. package/dist/components/UNSTABLE_Hooks/form/fields/DatePickerHookField.js +22 -17
  640. package/dist/components/UNSTABLE_Hooks/form/fields/DatePickerHookField.js.map +1 -1
  641. package/dist/components/UNSTABLE_Hooks/form/fields/NumberInputHookField.d.ts +3 -2
  642. package/dist/components/UNSTABLE_Hooks/form/fields/NumberInputHookField.js +31 -30
  643. package/dist/components/UNSTABLE_Hooks/form/fields/NumberInputHookField.js.map +1 -1
  644. package/dist/components/UNSTABLE_Hooks/form/fields/RadioGroupHookField.d.ts +3 -2
  645. package/dist/components/UNSTABLE_Hooks/form/fields/RadioGroupHookField.js +27 -26
  646. package/dist/components/UNSTABLE_Hooks/form/fields/RadioGroupHookField.js.map +1 -1
  647. package/dist/components/UNSTABLE_Hooks/form/fields/SelectHookField.d.ts +3 -2
  648. package/dist/components/UNSTABLE_Hooks/form/fields/SelectHookField.js +28 -27
  649. package/dist/components/UNSTABLE_Hooks/form/fields/SelectHookField.js.map +1 -1
  650. package/dist/components/UNSTABLE_Hooks/form/fields/SwitchHookField.d.ts +3 -2
  651. package/dist/components/UNSTABLE_Hooks/form/fields/SwitchHookField.js +24 -23
  652. package/dist/components/UNSTABLE_Hooks/form/fields/SwitchHookField.js.map +1 -1
  653. package/dist/components/UNSTABLE_Hooks/form/fields/TextInputHookField.d.ts +5 -4
  654. package/dist/components/UNSTABLE_Hooks/form/fields/TextInputHookField.js +28 -27
  655. package/dist/components/UNSTABLE_Hooks/form/fields/TextInputHookField.js.map +1 -1
  656. package/dist/components/UNSTABLE_Hooks/form/getFieldWithOptions.d.ts +1 -1
  657. package/dist/components/UNSTABLE_Hooks/form/getFieldWithOptions.js.map +1 -1
  658. package/dist/components/UNSTABLE_Hooks/form/index.d.ts +5 -5
  659. package/dist/components/UNSTABLE_Hooks/form/preprocessors.d.ts +3 -0
  660. package/dist/components/UNSTABLE_Hooks/form/preprocessors.js +15 -0
  661. package/dist/components/UNSTABLE_Hooks/form/preprocessors.js.map +1 -0
  662. package/dist/components/UNSTABLE_Hooks/form/resolveFieldError.d.ts +4 -0
  663. package/dist/components/UNSTABLE_Hooks/form/resolveFieldError.js +14 -0
  664. package/dist/components/UNSTABLE_Hooks/form/resolveFieldError.js.map +1 -0
  665. package/dist/components/UNSTABLE_Hooks/form/useDeriveFieldsMetadata.d.ts +17 -0
  666. package/dist/components/UNSTABLE_Hooks/form/useDeriveFieldsMetadata.js +21 -0
  667. package/dist/components/UNSTABLE_Hooks/form/useDeriveFieldsMetadata.js.map +1 -0
  668. package/dist/components/UNSTABLE_Hooks/form/useFieldErrorMessage.d.ts +1 -1
  669. package/dist/components/UNSTABLE_Hooks/form/useFieldErrorMessage.js +8 -8
  670. package/dist/components/UNSTABLE_Hooks/form/useFieldErrorMessage.js.map +1 -1
  671. package/dist/components/UNSTABLE_Hooks/form/useHookFieldResolution.d.ts +22 -0
  672. package/dist/components/UNSTABLE_Hooks/form/useHookFieldResolution.js +11 -0
  673. package/dist/components/UNSTABLE_Hooks/form/useHookFieldResolution.js.map +1 -0
  674. package/dist/components/UNSTABLE_Hooks/form/withOptions.d.ts +1 -1
  675. package/dist/components/UNSTABLE_Hooks/form/withOptions.js.map +1 -1
  676. package/dist/components/UNSTABLE_Hooks/hooks/useCompensationForm/CompensationForm.js +3 -5
  677. package/dist/components/UNSTABLE_Hooks/hooks/useCompensationForm/CompensationForm.js.map +1 -1
  678. package/dist/components/UNSTABLE_Hooks/hooks/useCompensationForm/compensationSchema.d.ts +48 -42
  679. package/dist/components/UNSTABLE_Hooks/hooks/useCompensationForm/compensationSchema.js +48 -79
  680. package/dist/components/UNSTABLE_Hooks/hooks/useCompensationForm/compensationSchema.js.map +1 -1
  681. package/dist/components/UNSTABLE_Hooks/hooks/useCompensationForm/fields.d.ts +2 -2
  682. package/dist/components/UNSTABLE_Hooks/hooks/useCompensationForm/fields.js.map +1 -1
  683. package/dist/components/UNSTABLE_Hooks/hooks/useCompensationForm/index.d.ts +2 -2
  684. package/dist/components/UNSTABLE_Hooks/hooks/useCompensationForm/useCompensationForm.d.ts +13 -15
  685. package/dist/components/UNSTABLE_Hooks/hooks/useCompensationForm/useCompensationForm.js +109 -110
  686. package/dist/components/UNSTABLE_Hooks/hooks/useCompensationForm/useCompensationForm.js.map +1 -1
  687. package/dist/components/UNSTABLE_Hooks/hooks/useEmployeeDetailsForm/EmployeeDetailsForm.js +16 -18
  688. package/dist/components/UNSTABLE_Hooks/hooks/useEmployeeDetailsForm/EmployeeDetailsForm.js.map +1 -1
  689. package/dist/components/UNSTABLE_Hooks/hooks/useEmployeeDetailsForm/employeeDetailsSchema.d.ts +13 -4
  690. package/dist/components/UNSTABLE_Hooks/hooks/useEmployeeDetailsForm/employeeDetailsSchema.js +31 -25
  691. package/dist/components/UNSTABLE_Hooks/hooks/useEmployeeDetailsForm/employeeDetailsSchema.js.map +1 -1
  692. package/dist/components/UNSTABLE_Hooks/hooks/useEmployeeDetailsForm/fields.d.ts +5 -4
  693. package/dist/components/UNSTABLE_Hooks/hooks/useEmployeeDetailsForm/fields.js +27 -27
  694. package/dist/components/UNSTABLE_Hooks/hooks/useEmployeeDetailsForm/fields.js.map +1 -1
  695. package/dist/components/UNSTABLE_Hooks/hooks/useEmployeeDetailsForm/index.d.ts +1 -1
  696. package/dist/components/UNSTABLE_Hooks/hooks/useEmployeeDetailsForm/useEmployeeDetailsForm.d.ts +8 -22
  697. package/dist/components/UNSTABLE_Hooks/hooks/useEmployeeDetailsForm/useEmployeeDetailsForm.js +81 -84
  698. package/dist/components/UNSTABLE_Hooks/hooks/useEmployeeDetailsForm/useEmployeeDetailsForm.js.map +1 -1
  699. package/dist/components/UNSTABLE_Hooks/hooks/usePayScheduleForm/PayScheduleForm.d.ts +5 -0
  700. package/dist/components/UNSTABLE_Hooks/hooks/usePayScheduleForm/PayScheduleForm.js +172 -0
  701. package/dist/components/UNSTABLE_Hooks/hooks/usePayScheduleForm/PayScheduleForm.js.map +1 -0
  702. package/dist/components/UNSTABLE_Hooks/hooks/usePayScheduleForm/PayScheduleForm.module.scss.js +14 -0
  703. package/dist/components/UNSTABLE_Hooks/hooks/usePayScheduleForm/PayScheduleForm.module.scss.js.map +1 -0
  704. package/dist/components/UNSTABLE_Hooks/hooks/usePayScheduleForm/fields.d.ts +23 -0
  705. package/dist/components/UNSTABLE_Hooks/hooks/usePayScheduleForm/fields.js +37 -0
  706. package/dist/components/UNSTABLE_Hooks/hooks/usePayScheduleForm/fields.js.map +1 -0
  707. package/dist/components/UNSTABLE_Hooks/hooks/usePayScheduleForm/index.d.ts +7 -0
  708. package/dist/components/UNSTABLE_Hooks/hooks/usePayScheduleForm/payScheduleSchema.d.ts +55 -0
  709. package/dist/components/UNSTABLE_Hooks/hooks/usePayScheduleForm/payScheduleSchema.js +54 -0
  710. package/dist/components/UNSTABLE_Hooks/hooks/usePayScheduleForm/payScheduleSchema.js.map +1 -0
  711. package/dist/components/UNSTABLE_Hooks/hooks/usePayScheduleForm/usePayScheduleForm.d.ts +69 -0
  712. package/dist/components/UNSTABLE_Hooks/hooks/usePayScheduleForm/usePayScheduleForm.js +180 -0
  713. package/dist/components/UNSTABLE_Hooks/hooks/usePayScheduleForm/usePayScheduleForm.js.map +1 -0
  714. package/dist/components/UNSTABLE_Hooks/hooks/useSignCompanyForm/SignCompanyForm.d.ts +5 -0
  715. package/dist/components/UNSTABLE_Hooks/hooks/useSignCompanyForm/SignCompanyForm.js +69 -0
  716. package/dist/components/UNSTABLE_Hooks/hooks/useSignCompanyForm/SignCompanyForm.js.map +1 -0
  717. package/dist/components/UNSTABLE_Hooks/hooks/useSignCompanyForm/fields.d.ts +9 -0
  718. package/dist/components/UNSTABLE_Hooks/hooks/useSignCompanyForm/fields.js +14 -0
  719. package/dist/components/UNSTABLE_Hooks/hooks/useSignCompanyForm/fields.js.map +1 -0
  720. package/dist/components/UNSTABLE_Hooks/hooks/useSignCompanyForm/index.d.ts +7 -0
  721. package/dist/components/UNSTABLE_Hooks/hooks/useSignCompanyForm/signCompanyFormSchema.d.ts +25 -0
  722. package/dist/components/UNSTABLE_Hooks/hooks/useSignCompanyForm/signCompanyFormSchema.js +24 -0
  723. package/dist/components/UNSTABLE_Hooks/hooks/useSignCompanyForm/signCompanyFormSchema.js.map +1 -0
  724. package/dist/components/UNSTABLE_Hooks/hooks/useSignCompanyForm/useSignCompanyForm.d.ts +57 -0
  725. package/dist/components/UNSTABLE_Hooks/hooks/useSignCompanyForm/useSignCompanyForm.js +101 -0
  726. package/dist/components/UNSTABLE_Hooks/hooks/useSignCompanyForm/useSignCompanyForm.js.map +1 -0
  727. package/dist/components/UNSTABLE_Hooks/hooks/useSignEmployeeForm/SignEmployeeForm.d.ts +5 -0
  728. package/dist/components/UNSTABLE_Hooks/hooks/useSignEmployeeForm/SignEmployeeForm.js +71 -0
  729. package/dist/components/UNSTABLE_Hooks/hooks/useSignEmployeeForm/SignEmployeeForm.js.map +1 -0
  730. package/dist/components/UNSTABLE_Hooks/hooks/useSignEmployeeForm/SignEmployeeI9Form.d.ts +5 -0
  731. package/dist/components/UNSTABLE_Hooks/hooks/useSignEmployeeForm/SignEmployeeI9Form.js +179 -0
  732. package/dist/components/UNSTABLE_Hooks/hooks/useSignEmployeeForm/SignEmployeeI9Form.js.map +1 -0
  733. package/dist/components/UNSTABLE_Hooks/hooks/useSignEmployeeForm/fields.d.ts +53 -0
  734. package/dist/components/UNSTABLE_Hooks/hooks/useSignEmployeeForm/fields.js +164 -0
  735. package/dist/components/UNSTABLE_Hooks/hooks/useSignEmployeeForm/fields.js.map +1 -0
  736. package/dist/components/UNSTABLE_Hooks/hooks/useSignEmployeeForm/index.d.ts +9 -0
  737. package/dist/components/UNSTABLE_Hooks/hooks/useSignEmployeeForm/signEmployeeFormSchema.d.ts +150 -0
  738. package/dist/components/UNSTABLE_Hooks/hooks/useSignEmployeeForm/signEmployeeFormSchema.js +152 -0
  739. package/dist/components/UNSTABLE_Hooks/hooks/useSignEmployeeForm/signEmployeeFormSchema.js.map +1 -0
  740. package/dist/components/UNSTABLE_Hooks/hooks/useSignEmployeeForm/useSignEmployeeForm.d.ts +151 -0
  741. package/dist/components/UNSTABLE_Hooks/hooks/useSignEmployeeForm/useSignEmployeeForm.js +172 -0
  742. package/dist/components/UNSTABLE_Hooks/hooks/useSignEmployeeForm/useSignEmployeeForm.js.map +1 -0
  743. package/dist/components/UNSTABLE_Hooks/hooks/useWorkAddressForm/WorkAddressForm.js +15 -17
  744. package/dist/components/UNSTABLE_Hooks/hooks/useWorkAddressForm/WorkAddressForm.js.map +1 -1
  745. package/dist/components/UNSTABLE_Hooks/hooks/useWorkAddressForm/fields.d.ts +1 -1
  746. package/dist/components/UNSTABLE_Hooks/hooks/useWorkAddressForm/fields.js.map +1 -1
  747. package/dist/components/UNSTABLE_Hooks/hooks/useWorkAddressForm/index.d.ts +1 -1
  748. package/dist/components/UNSTABLE_Hooks/hooks/useWorkAddressForm/useWorkAddressForm.d.ts +9 -10
  749. package/dist/components/UNSTABLE_Hooks/hooks/useWorkAddressForm/useWorkAddressForm.js +85 -83
  750. package/dist/components/UNSTABLE_Hooks/hooks/useWorkAddressForm/useWorkAddressForm.js.map +1 -1
  751. package/dist/components/UNSTABLE_Hooks/hooks/useWorkAddressForm/workAddressSchema.d.ts +8 -4
  752. package/dist/components/UNSTABLE_Hooks/hooks/useWorkAddressForm/workAddressSchema.js +18 -17
  753. package/dist/components/UNSTABLE_Hooks/hooks/useWorkAddressForm/workAddressSchema.js.map +1 -1
  754. package/dist/components/UNSTABLE_Hooks/index.d.ts +10 -7
  755. package/dist/components/UNSTABLE_TimeOff/AddEmployeesHoliday/AddEmployeesHoliday.d.ts +5 -0
  756. package/dist/components/UNSTABLE_TimeOff/AddEmployeesHoliday/AddEmployeesHoliday.js +46 -0
  757. package/dist/components/UNSTABLE_TimeOff/AddEmployeesHoliday/AddEmployeesHoliday.js.map +1 -0
  758. package/dist/components/UNSTABLE_TimeOff/AddEmployeesToPolicy/AddEmployeesToPolicy.d.ts +5 -0
  759. package/dist/components/UNSTABLE_TimeOff/AddEmployeesToPolicy/AddEmployeesToPolicy.js +46 -0
  760. package/dist/components/UNSTABLE_TimeOff/AddEmployeesToPolicy/AddEmployeesToPolicy.js.map +1 -0
  761. package/dist/components/UNSTABLE_TimeOff/HolidaySelectionForm/HolidaySelectionForm.d.ts +5 -0
  762. package/dist/components/UNSTABLE_TimeOff/HolidaySelectionForm/HolidaySelectionForm.js +49 -0
  763. package/dist/components/UNSTABLE_TimeOff/HolidaySelectionForm/HolidaySelectionForm.js.map +1 -0
  764. package/dist/components/UNSTABLE_TimeOff/HolidaySelectionForm/HolidaySelectionFormPresentation.d.ts +2 -0
  765. package/dist/components/UNSTABLE_TimeOff/HolidaySelectionForm/HolidaySelectionFormPresentation.js +55 -0
  766. package/dist/components/UNSTABLE_TimeOff/HolidaySelectionForm/HolidaySelectionFormPresentation.js.map +1 -0
  767. package/dist/components/UNSTABLE_TimeOff/HolidaySelectionForm/HolidaySelectionFormTypes.d.ts +25 -0
  768. package/dist/components/UNSTABLE_TimeOff/PolicyList/PolicyList.d.ts +5 -0
  769. package/dist/components/UNSTABLE_TimeOff/PolicyList/PolicyList.js +73 -0
  770. package/dist/components/UNSTABLE_TimeOff/PolicyList/PolicyList.js.map +1 -0
  771. package/dist/components/UNSTABLE_TimeOff/PolicyList/PolicyListPresentation.d.ts +2 -0
  772. package/dist/components/UNSTABLE_TimeOff/PolicyList/PolicyListPresentation.js +122 -0
  773. package/dist/components/UNSTABLE_TimeOff/PolicyList/PolicyListPresentation.js.map +1 -0
  774. package/dist/components/UNSTABLE_TimeOff/PolicyList/PolicyListPresentation.module.scss.js +8 -0
  775. package/dist/components/UNSTABLE_TimeOff/PolicyList/PolicyListPresentation.module.scss.js.map +1 -0
  776. package/dist/components/UNSTABLE_TimeOff/PolicyList/PolicyListTypes.d.ts +17 -0
  777. package/dist/components/UNSTABLE_TimeOff/PolicySettings/PolicySettings.d.ts +5 -0
  778. package/dist/components/UNSTABLE_TimeOff/PolicySettings/PolicySettings.js +46 -0
  779. package/dist/components/UNSTABLE_TimeOff/PolicySettings/PolicySettings.js.map +1 -0
  780. package/dist/components/UNSTABLE_TimeOff/PolicyTypeSelector/PolicyTypeSelector.d.ts +7 -0
  781. package/dist/components/UNSTABLE_TimeOff/PolicyTypeSelector/PolicyTypeSelector.js +29 -0
  782. package/dist/components/UNSTABLE_TimeOff/PolicyTypeSelector/PolicyTypeSelector.js.map +1 -0
  783. package/dist/components/UNSTABLE_TimeOff/PolicyTypeSelector/PolicyTypeSelectorPresentation.d.ts +2 -0
  784. package/dist/components/UNSTABLE_TimeOff/PolicyTypeSelector/PolicyTypeSelectorPresentation.js +66 -0
  785. package/dist/components/UNSTABLE_TimeOff/PolicyTypeSelector/PolicyTypeSelectorPresentation.js.map +1 -0
  786. package/dist/components/UNSTABLE_TimeOff/PolicyTypeSelector/PolicyTypeSelectorTypes.d.ts +6 -0
  787. package/dist/components/UNSTABLE_TimeOff/TimeOffFlow/TimeOffFlow.d.ts +2 -0
  788. package/dist/components/UNSTABLE_TimeOff/TimeOffFlow/TimeOffFlow.js +25 -0
  789. package/dist/components/UNSTABLE_TimeOff/TimeOffFlow/TimeOffFlow.js.map +1 -0
  790. package/dist/components/UNSTABLE_TimeOff/TimeOffFlow/TimeOffFlowComponents.d.ts +29 -0
  791. package/dist/components/UNSTABLE_TimeOff/TimeOffFlow/TimeOffFlowComponents.js +103 -0
  792. package/dist/components/UNSTABLE_TimeOff/TimeOffFlow/TimeOffFlowComponents.js.map +1 -0
  793. package/dist/components/UNSTABLE_TimeOff/TimeOffFlow/index.d.ts +3 -0
  794. package/dist/components/UNSTABLE_TimeOff/TimeOffFlow/timeOffStateMachine.d.ts +14 -0
  795. package/dist/components/UNSTABLE_TimeOff/TimeOffFlow/timeOffStateMachine.js +290 -0
  796. package/dist/components/UNSTABLE_TimeOff/TimeOffFlow/timeOffStateMachine.js.map +1 -0
  797. package/dist/components/UNSTABLE_TimeOff/TimeOffFlow/timeOffStateMachine.test.d.ts +1 -0
  798. package/dist/components/UNSTABLE_TimeOff/TimeOffManagement/PolicyConfigurationForm/PolicyConfigurationForm.d.ts +8 -0
  799. package/dist/components/UNSTABLE_TimeOff/TimeOffManagement/PolicyConfigurationForm/PolicyConfigurationForm.js +71 -0
  800. package/dist/components/UNSTABLE_TimeOff/TimeOffManagement/PolicyConfigurationForm/PolicyConfigurationForm.js.map +1 -0
  801. package/dist/components/UNSTABLE_TimeOff/TimeOffManagement/PolicyConfigurationForm/PolicyConfigurationForm.module.scss.js +12 -0
  802. package/dist/components/UNSTABLE_TimeOff/TimeOffManagement/PolicyConfigurationForm/PolicyConfigurationForm.module.scss.js.map +1 -0
  803. package/dist/components/UNSTABLE_TimeOff/TimeOffManagement/PolicyConfigurationForm/PolicyConfigurationFormPresentation.d.ts +2 -0
  804. package/dist/components/UNSTABLE_TimeOff/TimeOffManagement/PolicyConfigurationForm/PolicyConfigurationFormPresentation.js +206 -0
  805. package/dist/components/UNSTABLE_TimeOff/TimeOffManagement/PolicyConfigurationForm/PolicyConfigurationFormPresentation.js.map +1 -0
  806. package/dist/components/UNSTABLE_TimeOff/TimeOffManagement/PolicyConfigurationForm/PolicyConfigurationFormTypes.d.ts +20 -0
  807. package/dist/components/UNSTABLE_TimeOff/TimeOffManagement/PolicyConfigurationForm/index.d.ts +6 -0
  808. package/dist/components/UNSTABLE_TimeOff/ViewHolidayEmployees/ViewHolidayEmployees.d.ts +5 -0
  809. package/dist/components/UNSTABLE_TimeOff/ViewHolidayEmployees/ViewHolidayEmployees.js +35 -0
  810. package/dist/components/UNSTABLE_TimeOff/ViewHolidayEmployees/ViewHolidayEmployees.js.map +1 -0
  811. package/dist/components/UNSTABLE_TimeOff/ViewHolidaySchedule/ViewHolidaySchedule.d.ts +5 -0
  812. package/dist/components/UNSTABLE_TimeOff/ViewHolidaySchedule/ViewHolidaySchedule.js +35 -0
  813. package/dist/components/UNSTABLE_TimeOff/ViewHolidaySchedule/ViewHolidaySchedule.js.map +1 -0
  814. package/dist/components/UNSTABLE_TimeOff/ViewPolicyDetails/ViewPolicyDetails.d.ts +5 -0
  815. package/dist/components/UNSTABLE_TimeOff/ViewPolicyDetails/ViewPolicyDetails.js +35 -0
  816. package/dist/components/UNSTABLE_TimeOff/ViewPolicyDetails/ViewPolicyDetails.js.map +1 -0
  817. package/dist/components/UNSTABLE_TimeOff/ViewPolicyEmployees/ViewPolicyEmployees.d.ts +5 -0
  818. package/dist/components/UNSTABLE_TimeOff/ViewPolicyEmployees/ViewPolicyEmployees.js +35 -0
  819. package/dist/components/UNSTABLE_TimeOff/ViewPolicyEmployees/ViewPolicyEmployees.js.map +1 -0
  820. package/dist/components/UNSTABLE_TimeOff/index.d.ts +25 -0
  821. package/dist/components/UNSTABLE_TimeOff/index.js +27 -0
  822. package/dist/components/UNSTABLE_TimeOff/index.js.map +1 -0
  823. package/dist/components/UNSTABLE_TimeOff/shared/EmployeeTable/EmployeeTable.d.ts +2 -0
  824. package/dist/components/UNSTABLE_TimeOff/shared/EmployeeTable/EmployeeTableTypes.d.ts +26 -0
  825. package/dist/components/UNSTABLE_TimeOff/shared/EmployeeTable/index.d.ts +4 -0
  826. package/dist/components/UNSTABLE_TimeOff/shared/holidayHelpers.d.ts +30 -0
  827. package/dist/components/UNSTABLE_TimeOff/shared/holidayHelpers.js +97 -0
  828. package/dist/components/UNSTABLE_TimeOff/shared/holidayHelpers.js.map +1 -0
  829. package/dist/components/UNSTABLE_TimeOff/shared/holidayHelpers.test.d.ts +1 -0
  830. package/dist/components/index.d.ts +1 -0
  831. package/dist/contexts/ComponentAdapter/adapters/defaultComponentAdapter.js +66 -62
  832. package/dist/contexts/ComponentAdapter/adapters/defaultComponentAdapter.js.map +1 -1
  833. package/dist/contexts/ComponentAdapter/componentAdapterTypes.d.ts +1 -0
  834. package/dist/contexts/ComponentAdapter/createComponentsWithDefaults.d.ts +10 -0
  835. package/dist/contexts/ComponentAdapter/createComponentsWithDefaults.js +28 -21
  836. package/dist/contexts/ComponentAdapter/createComponentsWithDefaults.js.map +1 -1
  837. package/dist/contexts/ComponentAdapter/useComponentContext.d.ts +4 -0
  838. package/dist/contexts/ComponentAdapter/useComponentContext.js.map +1 -1
  839. package/dist/contexts/GustoProvider/GustoProviderCustomUIAdapter.js +10 -12
  840. package/dist/contexts/GustoProvider/GustoProviderCustomUIAdapter.js.map +1 -1
  841. package/dist/contexts/LoadingIndicatorProvider/useLoadingIndicator.d.ts +10 -2
  842. package/dist/contexts/LoadingIndicatorProvider/useLoadingIndicator.js.map +1 -1
  843. package/dist/contexts/ThemeProvider/theme.d.ts +2 -0
  844. package/dist/contexts/ThemeProvider/theme.js +4 -2
  845. package/dist/contexts/ThemeProvider/theme.js.map +1 -1
  846. package/dist/contexts/ThemeProvider/useTheme.js.map +1 -1
  847. package/dist/helpers/breadcrumbHelpers.d.ts +14 -0
  848. package/dist/helpers/breadcrumbHelpers.js +35 -26
  849. package/dist/helpers/breadcrumbHelpers.js.map +1 -1
  850. package/dist/helpers/buildQueryErrorHandling.d.ts +22 -0
  851. package/dist/helpers/buildQueryErrorHandling.js +11 -0
  852. package/dist/helpers/buildQueryErrorHandling.js.map +1 -0
  853. package/dist/{components/UNSTABLE_Hooks → helpers}/collectErrors.d.ts +1 -1
  854. package/dist/{components/UNSTABLE_Hooks → helpers}/collectErrors.js +1 -1
  855. package/dist/helpers/collectErrors.js.map +1 -0
  856. package/dist/helpers/dateFormatting.d.ts +2 -0
  857. package/dist/helpers/dateFormatting.js +38 -33
  858. package/dist/helpers/dateFormatting.js.map +1 -1
  859. package/dist/helpers/formattedStrings.js +40 -33
  860. package/dist/helpers/formattedStrings.js.map +1 -1
  861. package/dist/hooks/useCompanyPaymentSpeed.d.ts +6 -0
  862. package/dist/hooks/useCompanyPaymentSpeed.js +19 -0
  863. package/dist/hooks/useCompanyPaymentSpeed.js.map +1 -0
  864. package/dist/hooks/useCompanyPaymentSpeed.test.d.ts +1 -0
  865. package/dist/hooks/useDateRangeFilter/useDateRangeFilter.d.ts +20 -0
  866. package/dist/hooks/useDateRangeFilter/useDateRangeFilter.js +38 -0
  867. package/dist/hooks/useDateRangeFilter/useDateRangeFilter.js.map +1 -0
  868. package/dist/hooks/useDateRangeFilter/useDateRangeFilter.test.d.ts +1 -0
  869. package/dist/{components/UNSTABLE_Hooks → hooks}/useErrorHandling.d.ts +2 -2
  870. package/dist/{components/UNSTABLE_Hooks → hooks}/useErrorHandling.js +1 -1
  871. package/dist/hooks/useErrorHandling.js.map +1 -0
  872. package/dist/hooks/useErrorHandling.test.d.ts +1 -0
  873. package/dist/hooks/usePagination/usePagination.d.ts +2 -0
  874. package/dist/hooks/usePagination/usePagination.js +32 -29
  875. package/dist/hooks/usePagination/usePagination.js.map +1 -1
  876. package/dist/i18n/I18n.js +21 -21
  877. package/dist/i18n/I18n.js.map +1 -1
  878. package/dist/i18n/en/Company.PaySchedule.json.js +6 -6
  879. package/dist/i18n/en/Company.TimeOff.CreateTimeOffPolicy.json.js +24 -0
  880. package/dist/i18n/en/Company.TimeOff.CreateTimeOffPolicy.json.js.map +1 -0
  881. package/dist/i18n/en/Company.TimeOff.EmployeeTable.json.js +32 -0
  882. package/dist/i18n/en/Company.TimeOff.EmployeeTable.json.js.map +1 -0
  883. package/dist/i18n/en/Company.TimeOff.HolidayPolicy.json.js +28 -0
  884. package/dist/i18n/en/Company.TimeOff.HolidayPolicy.json.js.map +1 -0
  885. package/dist/i18n/en/Company.TimeOff.SelectPolicyType.json.js +28 -0
  886. package/dist/i18n/en/Company.TimeOff.SelectPolicyType.json.js.map +1 -0
  887. package/dist/i18n/en/Company.TimeOff.TimeOffPolicies.json.js +38 -0
  888. package/dist/i18n/en/Company.TimeOff.TimeOffPolicies.json.js.map +1 -0
  889. package/dist/i18n/en/Company.TimeOff.TimeOffPolicyDetails.json.js +52 -0
  890. package/dist/i18n/en/Company.TimeOff.TimeOffPolicyDetails.json.js.map +1 -0
  891. package/dist/i18n/en/Company.TimeOff.TimeOffRequests.json.js +21 -0
  892. package/dist/i18n/en/Company.TimeOff.TimeOffRequests.json.js.map +1 -0
  893. package/dist/i18n/en/Contractor.Payments.CreatePayment.json.js +36 -34
  894. package/dist/i18n/en/Contractor.Payments.CreatePayment.json.js.map +1 -1
  895. package/dist/i18n/en/Employee.Dashboard.json.js +26 -0
  896. package/dist/i18n/en/Employee.Dashboard.json.js.map +1 -0
  897. package/dist/i18n/en/Employee.EmployeeList.json.js +22 -20
  898. package/dist/i18n/en/Employee.EmployeeList.json.js.map +1 -1
  899. package/dist/i18n/en/Employee.ManagementEmployeeList.json.js +40 -0
  900. package/dist/i18n/en/Employee.ManagementEmployeeList.json.js.map +1 -0
  901. package/dist/i18n/en/Payroll.GrossUpModal.json.js +16 -14
  902. package/dist/i18n/en/Payroll.GrossUpModal.json.js.map +1 -1
  903. package/dist/i18n/en/Payroll.OffCycle.json.js +1 -1
  904. package/dist/i18n/en/Payroll.OffCyclePayPeriodDateForm.json.js +5 -5
  905. package/dist/i18n/en/Payroll.OffCycleTaxWithholding.json.js +5 -5
  906. package/dist/i18n/en/Payroll.PayrollConfiguration.json.js +38 -34
  907. package/dist/i18n/en/Payroll.PayrollConfiguration.json.js.map +1 -1
  908. package/dist/i18n/en/Payroll.PayrollEditEmployee.json.js +29 -25
  909. package/dist/i18n/en/Payroll.PayrollEditEmployee.json.js.map +1 -1
  910. package/dist/i18n/en/Payroll.PayrollHistory.json.js +12 -12
  911. package/dist/i18n/en/Payroll.PayrollList.json.js +30 -22
  912. package/dist/i18n/en/Payroll.PayrollList.json.js.map +1 -1
  913. package/dist/i18n/en/Payroll.PayrollOverview.json.js +64 -58
  914. package/dist/i18n/en/Payroll.PayrollOverview.json.js.map +1 -1
  915. package/dist/i18n/en/Payroll.TransitionCreation.json.js +9 -9
  916. package/dist/i18n/en/Payroll.TransitionPayrollAlert.json.js +8 -8
  917. package/dist/i18n/en/UNSTABLE.PayScheduleForm.json.js +24 -0
  918. package/dist/i18n/en/UNSTABLE.PayScheduleForm.json.js.map +1 -0
  919. package/dist/i18n/en/UNSTABLE.SignCompanyForm.json.js +20 -0
  920. package/dist/i18n/en/UNSTABLE.SignCompanyForm.json.js.map +1 -0
  921. package/dist/i18n/en/UNSTABLE.SignEmployeeForm.json.js +22 -0
  922. package/dist/i18n/en/UNSTABLE.SignEmployeeForm.json.js.map +1 -0
  923. package/dist/i18n/en/UNSTABLE.SignEmployeeI9Form.json.js +70 -0
  924. package/dist/i18n/en/UNSTABLE.SignEmployeeI9Form.json.js.map +1 -0
  925. package/dist/i18n/en/common.json.d.ts +3 -1
  926. package/dist/i18n/en/common.json.js +5 -5
  927. package/dist/index.js +18 -16
  928. package/dist/index.js.map +1 -1
  929. package/dist/shared/constants.d.ts +56 -0
  930. package/dist/shared/constants.js +100 -70
  931. package/dist/shared/constants.js.map +1 -1
  932. package/dist/style.css +1 -1
  933. package/dist/types/i18next.d.ts +817 -12
  934. package/dist/{components/UNSTABLE_Hooks/types.d.ts → types/sdkHooks.d.ts} +29 -5
  935. package/docs/reference/endpoint-inventory.json +659 -391
  936. package/package.json +33 -24
  937. package/dist/components/Employee/EmployeeList/Actions.d.ts +0 -1
  938. package/dist/components/Employee/EmployeeList/Actions.js +0 -16
  939. package/dist/components/Employee/EmployeeList/Actions.js.map +0 -1
  940. package/dist/components/Employee/EmployeeList/Head.d.ts +0 -1
  941. package/dist/components/Employee/EmployeeList/Head.js +0 -15
  942. package/dist/components/Employee/EmployeeList/Head.js.map +0 -1
  943. package/dist/components/Employee/EmployeeList/List.d.ts +0 -2
  944. package/dist/components/Employee/EmployeeList/List.js +0 -125
  945. package/dist/components/Employee/EmployeeList/List.js.map +0 -1
  946. package/dist/components/Employee/EmployeeList/List.module.scss.js +0 -8
  947. package/dist/components/Employee/EmployeeList/List.module.scss.js.map +0 -1
  948. package/dist/components/Payroll/PayrollHistory/PayrollHistoryPresentation.module.scss.js +0 -8
  949. package/dist/components/Payroll/PayrollHistory/PayrollHistoryPresentation.module.scss.js.map +0 -1
  950. package/dist/components/UNSTABLE_Hooks/collectErrors.js.map +0 -1
  951. package/dist/components/UNSTABLE_Hooks/form/composeFormSchema.d.ts +0 -26
  952. package/dist/components/UNSTABLE_Hooks/form/composeFormSchema.js +0 -24
  953. package/dist/components/UNSTABLE_Hooks/form/composeFormSchema.js.map +0 -1
  954. package/dist/components/UNSTABLE_Hooks/form/deriveFieldsMetadata.d.ts +0 -3
  955. package/dist/components/UNSTABLE_Hooks/form/deriveFieldsMetadata.js +0 -14
  956. package/dist/components/UNSTABLE_Hooks/form/deriveFieldsMetadata.js.map +0 -1
  957. package/dist/components/UNSTABLE_Hooks/form/resolveRequiredFields.d.ts +0 -6
  958. package/dist/components/UNSTABLE_Hooks/form/resolveRequiredFields.js +0 -14
  959. package/dist/components/UNSTABLE_Hooks/form/resolveRequiredFields.js.map +0 -1
  960. package/dist/components/UNSTABLE_Hooks/form/types.d.ts +0 -27
  961. package/dist/components/UNSTABLE_Hooks/form/useFieldsMetadata.d.ts +0 -4
  962. package/dist/components/UNSTABLE_Hooks/form/useFieldsMetadata.js +0 -9
  963. package/dist/components/UNSTABLE_Hooks/form/useFieldsMetadata.js.map +0 -1
  964. package/dist/components/UNSTABLE_Hooks/useErrorHandling.js.map +0 -1
  965. package/dist/helpers/requiredIf.d.ts +0 -13
  966. package/dist/helpers/requiredIf.js +0 -8
  967. package/dist/helpers/requiredIf.js.map +0 -1
  968. /package/dist/components/UNSTABLE_Hooks/form/{deriveFieldsMetadata.test.d.ts → buildFormSchema.test.d.ts} +0 -0
  969. /package/dist/components/UNSTABLE_Hooks/{useErrorHandling.test.d.ts → hooks/useCompensationForm/compensationSchemaParity.test.d.ts} +0 -0
@@ -1,10 +1,11 @@
1
1
  import { ComponentType } from 'react';
2
- import { BaseFieldProps, ValidationMessages } from '../types';
2
+ import { BaseFieldProps, ValidationMessages, BaseFormHookReady } from '../../../../types/sdkHooks';
3
3
  import { SelectProps } from '../../../Common/UI/Select/SelectTypes';
4
4
  export interface SelectHookFieldProps<TErrorCode extends string = never, TEntry = unknown> extends BaseFieldProps {
5
5
  name: string;
6
+ formHookResult?: BaseFormHookReady;
6
7
  validationMessages?: ValidationMessages<TErrorCode>;
7
8
  getOptionLabel?: (entry: TEntry) => string;
8
9
  FieldComponent?: ComponentType<SelectProps>;
9
10
  }
10
- export declare function SelectHookField<TErrorCode extends string, TEntry = unknown>({ name, label, description, validationMessages, getOptionLabel, FieldComponent, }: SelectHookFieldProps<TErrorCode, TEntry>): import("react/jsx-runtime").JSX.Element;
11
+ export declare function SelectHookField<TErrorCode extends string, TEntry = unknown>({ name, formHookResult, label, description, validationMessages, getOptionLabel, FieldComponent, }: SelectHookFieldProps<TErrorCode, TEntry>): import("react/jsx-runtime").JSX.Element;
@@ -1,40 +1,41 @@
1
- import { jsx as c } from "react/jsx-runtime";
2
- import { useFieldsMetadata as f } from "../useFieldsMetadata.js";
3
- import { useFieldErrorMessage as F } from "../useFieldErrorMessage.js";
4
- import { getFieldWithOptions as M } from "../getFieldWithOptions.js";
1
+ import { jsx as F } from "react/jsx-runtime";
2
+ import { useHookFieldResolution as R } from "../useHookFieldResolution.js";
3
+ import { getFieldWithOptions as b } from "../getFieldWithOptions.js";
5
4
  import "../../../../shared/constants.js";
6
- import "classnames";
7
- import "react-i18next";
8
- import "../../../../contexts/ComponentAdapter/useComponentContext.js";
9
- import "react";
10
- import { SelectField as b } from "../../../Common/Fields/SelectField/SelectField.js";
11
- function E({
12
- name: t,
5
+ import { SelectField as k } from "../../../Common/Fields/SelectField/SelectField.js";
6
+ function M({
7
+ name: o,
8
+ formHookResult: s,
13
9
  label: r,
14
- description: s,
15
- validationMessages: a,
16
- getOptionLabel: i,
17
- FieldComponent: m
10
+ description: l,
11
+ validationMessages: d,
12
+ getOptionLabel: t,
13
+ FieldComponent: n
18
14
  }) {
19
- const p = f(), e = M(p, t), d = F(t, a), o = e?.options ?? [], l = i && e?.entries ? e.entries.map((n, u) => ({
20
- value: o[u]?.value ?? "",
21
- label: i(n)
22
- })) : o;
23
- return /* @__PURE__ */ c(
24
- b,
15
+ const { metadata: a, control: p, errorMessage: m } = R(
16
+ o,
17
+ s,
18
+ d
19
+ ), e = b(a, o), i = e?.options ?? [], u = t && e?.entries ? e.entries.map((c, f) => ({
20
+ value: i[f]?.value ?? "",
21
+ label: t(c)
22
+ })) : i;
23
+ return /* @__PURE__ */ F(
24
+ k,
25
25
  {
26
- name: t,
26
+ name: o,
27
+ control: p,
27
28
  label: r,
28
- description: s,
29
- errorMessage: d,
29
+ description: l,
30
+ errorMessage: m,
30
31
  isRequired: e?.isRequired,
31
32
  isDisabled: e?.isDisabled,
32
- options: l,
33
- FieldComponent: m
33
+ options: u,
34
+ FieldComponent: n
34
35
  }
35
36
  );
36
37
  }
37
38
  export {
38
- E as SelectHookField
39
+ M as SelectHookField
39
40
  };
40
41
  //# sourceMappingURL=SelectHookField.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"SelectHookField.js","sources":["../../../../../src/components/UNSTABLE_Hooks/form/fields/SelectHookField.tsx"],"sourcesContent":["import type { ComponentType } from 'react'\nimport type { BaseFieldProps, ValidationMessages } from '../types'\nimport { useFieldsMetadata } from '../useFieldsMetadata'\nimport { useFieldErrorMessage } from '../useFieldErrorMessage'\nimport { getFieldWithOptions } from '../getFieldWithOptions'\nimport { SelectField } from '@/components/Common'\nimport type { SelectProps } from '@/components/Common/UI/Select/SelectTypes'\n\nexport interface SelectHookFieldProps<\n TErrorCode extends string = never,\n TEntry = unknown,\n> extends BaseFieldProps {\n name: string\n validationMessages?: ValidationMessages<TErrorCode>\n getOptionLabel?: (entry: TEntry) => string\n FieldComponent?: ComponentType<SelectProps>\n}\n\nexport function SelectHookField<TErrorCode extends string, TEntry = unknown>({\n name,\n label,\n description,\n validationMessages,\n getOptionLabel,\n FieldComponent,\n}: SelectHookFieldProps<TErrorCode, TEntry>) {\n const metadata = useFieldsMetadata()\n const fieldMetadata = getFieldWithOptions<TEntry>(metadata, name)\n const errorMessage = useFieldErrorMessage(name, validationMessages)\n\n const defaultOptions = fieldMetadata?.options ?? []\n const options =\n getOptionLabel && fieldMetadata?.entries\n ? fieldMetadata.entries.map((entry, index) => ({\n value: defaultOptions[index]?.value ?? '',\n label: getOptionLabel(entry),\n }))\n : defaultOptions\n\n return (\n <SelectField\n name={name}\n label={label}\n description={description}\n errorMessage={errorMessage}\n isRequired={fieldMetadata?.isRequired}\n isDisabled={fieldMetadata?.isDisabled}\n options={options}\n FieldComponent={FieldComponent}\n />\n )\n}\n"],"names":["SelectHookField","name","label","description","validationMessages","getOptionLabel","FieldComponent","metadata","useFieldsMetadata","fieldMetadata","getFieldWithOptions","errorMessage","useFieldErrorMessage","defaultOptions","options","entry","index","jsx","SelectField"],"mappings":";;;;;;;;;;AAkBO,SAASA,EAA6D;AAAA,EAC3E,MAAAC;AAAA,EACA,OAAAC;AAAA,EACA,aAAAC;AAAA,EACA,oBAAAC;AAAA,EACA,gBAAAC;AAAA,EACA,gBAAAC;AACF,GAA6C;AAC3C,QAAMC,IAAWC,EAAA,GACXC,IAAgBC,EAA4BH,GAAUN,CAAI,GAC1DU,IAAeC,EAAqBX,GAAMG,CAAkB,GAE5DS,IAAiBJ,GAAe,WAAW,CAAA,GAC3CK,IACJT,KAAkBI,GAAe,UAC7BA,EAAc,QAAQ,IAAI,CAACM,GAAOC,OAAW;AAAA,IAC3C,OAAOH,EAAeG,CAAK,GAAG,SAAS;AAAA,IACvC,OAAOX,EAAeU,CAAK;AAAA,EAAA,EAC3B,IACFF;AAEN,SACE,gBAAAI;AAAA,IAACC;AAAA,IAAA;AAAA,MACC,MAAAjB;AAAA,MACA,OAAAC;AAAA,MACA,aAAAC;AAAA,MACA,cAAAQ;AAAA,MACA,YAAYF,GAAe;AAAA,MAC3B,YAAYA,GAAe;AAAA,MAC3B,SAAAK;AAAA,MACA,gBAAAR;AAAA,IAAA;AAAA,EAAA;AAGN;"}
1
+ {"version":3,"file":"SelectHookField.js","sources":["../../../../../src/components/UNSTABLE_Hooks/form/fields/SelectHookField.tsx"],"sourcesContent":["import type { ComponentType } from 'react'\nimport { useHookFieldResolution } from '../useHookFieldResolution'\nimport { getFieldWithOptions } from '../getFieldWithOptions'\nimport type { BaseFieldProps, ValidationMessages } from '@/types/sdkHooks'\nimport type { BaseFormHookReady } from '@/types/sdkHooks'\nimport { SelectField } from '@/components/Common'\nimport type { SelectProps } from '@/components/Common/UI/Select/SelectTypes'\n\nexport interface SelectHookFieldProps<\n TErrorCode extends string = never,\n TEntry = unknown,\n> extends BaseFieldProps {\n name: string\n formHookResult?: BaseFormHookReady\n validationMessages?: ValidationMessages<TErrorCode>\n getOptionLabel?: (entry: TEntry) => string\n FieldComponent?: ComponentType<SelectProps>\n}\n\nexport function SelectHookField<TErrorCode extends string, TEntry = unknown>({\n name,\n formHookResult,\n label,\n description,\n validationMessages,\n getOptionLabel,\n FieldComponent,\n}: SelectHookFieldProps<TErrorCode, TEntry>) {\n const { metadata, control, errorMessage } = useHookFieldResolution(\n name,\n formHookResult,\n validationMessages,\n )\n const fieldMetadata = getFieldWithOptions<TEntry>(metadata, name)\n\n const defaultOptions = fieldMetadata?.options ?? []\n const options =\n getOptionLabel && fieldMetadata?.entries\n ? fieldMetadata.entries.map((entry, index) => ({\n value: defaultOptions[index]?.value ?? '',\n label: getOptionLabel(entry),\n }))\n : defaultOptions\n\n return (\n <SelectField\n name={name}\n control={control}\n label={label}\n description={description}\n errorMessage={errorMessage}\n isRequired={fieldMetadata?.isRequired}\n isDisabled={fieldMetadata?.isDisabled}\n options={options}\n FieldComponent={FieldComponent}\n />\n )\n}\n"],"names":["SelectHookField","name","formHookResult","label","description","validationMessages","getOptionLabel","FieldComponent","metadata","control","errorMessage","useHookFieldResolution","fieldMetadata","getFieldWithOptions","defaultOptions","options","entry","index","jsx","SelectField"],"mappings":";;;;;AAmBO,SAASA,EAA6D;AAAA,EAC3E,MAAAC;AAAA,EACA,gBAAAC;AAAA,EACA,OAAAC;AAAA,EACA,aAAAC;AAAA,EACA,oBAAAC;AAAA,EACA,gBAAAC;AAAA,EACA,gBAAAC;AACF,GAA6C;AAC3C,QAAM,EAAE,UAAAC,GAAU,SAAAC,GAAS,cAAAC,EAAA,IAAiBC;AAAA,IAC1CV;AAAA,IACAC;AAAA,IACAG;AAAA,EAAA,GAEIO,IAAgBC,EAA4BL,GAAUP,CAAI,GAE1Da,IAAiBF,GAAe,WAAW,CAAA,GAC3CG,IACJT,KAAkBM,GAAe,UAC7BA,EAAc,QAAQ,IAAI,CAACI,GAAOC,OAAW;AAAA,IAC3C,OAAOH,EAAeG,CAAK,GAAG,SAAS;AAAA,IACvC,OAAOX,EAAeU,CAAK;AAAA,EAAA,EAC3B,IACFF;AAEN,SACE,gBAAAI;AAAA,IAACC;AAAA,IAAA;AAAA,MACC,MAAAlB;AAAA,MACA,SAAAQ;AAAA,MACA,OAAAN;AAAA,MACA,aAAAC;AAAA,MACA,cAAAM;AAAA,MACA,YAAYE,GAAe;AAAA,MAC3B,YAAYA,GAAe;AAAA,MAC3B,SAAAG;AAAA,MACA,gBAAAR;AAAA,IAAA;AAAA,EAAA;AAGN;"}
@@ -1,9 +1,10 @@
1
1
  import { ComponentType } from 'react';
2
- import { BaseFieldProps, ValidationMessages } from '../types';
2
+ import { BaseFieldProps, ValidationMessages, BaseFormHookReady } from '../../../../types/sdkHooks';
3
3
  import { SwitchProps } from '../../../Common/UI/Switch/SwitchTypes';
4
4
  export interface SwitchHookFieldProps<TErrorCode extends string = never> extends BaseFieldProps {
5
5
  name: string;
6
+ formHookResult?: BaseFormHookReady;
6
7
  validationMessages?: ValidationMessages<TErrorCode>;
7
8
  FieldComponent?: ComponentType<SwitchProps>;
8
9
  }
9
- export declare function SwitchHookField<TErrorCode extends string>({ name, label, description, validationMessages, FieldComponent, }: SwitchHookFieldProps<TErrorCode>): import("react/jsx-runtime").JSX.Element;
10
+ export declare function SwitchHookField<TErrorCode extends string>({ name, formHookResult, label, description, validationMessages, FieldComponent, }: SwitchHookFieldProps<TErrorCode>): import("react/jsx-runtime").JSX.Element;
@@ -1,34 +1,35 @@
1
- import { jsx as d } from "react/jsx-runtime";
2
- import { useFieldsMetadata as m } from "../useFieldsMetadata.js";
3
- import { useFieldErrorMessage as p } from "../useFieldErrorMessage.js";
1
+ import { jsx as m } from "react/jsx-runtime";
2
+ import { useHookFieldResolution as u } from "../useHookFieldResolution.js";
4
3
  import "../../../../shared/constants.js";
5
- import "classnames";
6
- import { SwitchField as l } from "../../../Common/Fields/SwitchField/SwitchField.js";
7
- import "react-i18next";
8
- import "../../../../contexts/ComponentAdapter/useComponentContext.js";
9
- import "react";
10
- function w({
4
+ import { SwitchField as f } from "../../../Common/Fields/SwitchField/SwitchField.js";
5
+ function b({
11
6
  name: i,
12
- label: r,
13
- description: e,
14
- validationMessages: o,
15
- FieldComponent: s
7
+ formHookResult: e,
8
+ label: t,
9
+ description: r,
10
+ validationMessages: s,
11
+ FieldComponent: d
16
12
  }) {
17
- const t = m()[i], a = p(i, o);
18
- return /* @__PURE__ */ d(
19
- l,
13
+ const { metadata: l, control: a, errorMessage: c } = u(
14
+ i,
15
+ e,
16
+ s
17
+ ), o = l[i];
18
+ return /* @__PURE__ */ m(
19
+ f,
20
20
  {
21
21
  name: i,
22
- label: r,
23
- description: e,
24
- errorMessage: a,
25
- isRequired: t?.isRequired,
26
- isDisabled: t?.isDisabled,
27
- FieldComponent: s
22
+ control: a,
23
+ label: t,
24
+ description: r,
25
+ errorMessage: c,
26
+ isRequired: o?.isRequired,
27
+ isDisabled: o?.isDisabled,
28
+ FieldComponent: d
28
29
  }
29
30
  );
30
31
  }
31
32
  export {
32
- w as SwitchHookField
33
+ b as SwitchHookField
33
34
  };
34
35
  //# sourceMappingURL=SwitchHookField.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"SwitchHookField.js","sources":["../../../../../src/components/UNSTABLE_Hooks/form/fields/SwitchHookField.tsx"],"sourcesContent":["import type { ComponentType } from 'react'\nimport type { BaseFieldProps, ValidationMessages } from '../types'\nimport { useFieldsMetadata } from '../useFieldsMetadata'\nimport { useFieldErrorMessage } from '../useFieldErrorMessage'\nimport { SwitchField } from '@/components/Common'\nimport type { SwitchProps } from '@/components/Common/UI/Switch/SwitchTypes'\n\nexport interface SwitchHookFieldProps<TErrorCode extends string = never> extends BaseFieldProps {\n name: string\n validationMessages?: ValidationMessages<TErrorCode>\n FieldComponent?: ComponentType<SwitchProps>\n}\n\nexport function SwitchHookField<TErrorCode extends string>({\n name,\n label,\n description,\n validationMessages,\n FieldComponent,\n}: SwitchHookFieldProps<TErrorCode>) {\n const metadata = useFieldsMetadata()\n const fieldMetadata = metadata[name]\n const errorMessage = useFieldErrorMessage(name, validationMessages)\n\n return (\n <SwitchField\n name={name}\n label={label}\n description={description}\n errorMessage={errorMessage}\n isRequired={fieldMetadata?.isRequired}\n isDisabled={fieldMetadata?.isDisabled}\n FieldComponent={FieldComponent}\n />\n )\n}\n"],"names":["SwitchHookField","name","label","description","validationMessages","FieldComponent","fieldMetadata","useFieldsMetadata","errorMessage","useFieldErrorMessage","jsx","SwitchField"],"mappings":";;;;;;;;;AAaO,SAASA,EAA2C;AAAA,EACzD,MAAAC;AAAA,EACA,OAAAC;AAAA,EACA,aAAAC;AAAA,EACA,oBAAAC;AAAA,EACA,gBAAAC;AACF,GAAqC;AAEnC,QAAMC,IADWC,EAAA,EACcN,CAAI,GAC7BO,IAAeC,EAAqBR,GAAMG,CAAkB;AAElE,SACE,gBAAAM;AAAA,IAACC;AAAA,IAAA;AAAA,MACC,MAAAV;AAAA,MACA,OAAAC;AAAA,MACA,aAAAC;AAAA,MACA,cAAAK;AAAA,MACA,YAAYF,GAAe;AAAA,MAC3B,YAAYA,GAAe;AAAA,MAC3B,gBAAAD;AAAA,IAAA;AAAA,EAAA;AAGN;"}
1
+ {"version":3,"file":"SwitchHookField.js","sources":["../../../../../src/components/UNSTABLE_Hooks/form/fields/SwitchHookField.tsx"],"sourcesContent":["import type { ComponentType } from 'react'\nimport { useHookFieldResolution } from '../useHookFieldResolution'\nimport type { BaseFieldProps, ValidationMessages } from '@/types/sdkHooks'\nimport type { BaseFormHookReady } from '@/types/sdkHooks'\nimport { SwitchField } from '@/components/Common'\nimport type { SwitchProps } from '@/components/Common/UI/Switch/SwitchTypes'\n\nexport interface SwitchHookFieldProps<TErrorCode extends string = never> extends BaseFieldProps {\n name: string\n formHookResult?: BaseFormHookReady\n validationMessages?: ValidationMessages<TErrorCode>\n FieldComponent?: ComponentType<SwitchProps>\n}\n\nexport function SwitchHookField<TErrorCode extends string>({\n name,\n formHookResult,\n label,\n description,\n validationMessages,\n FieldComponent,\n}: SwitchHookFieldProps<TErrorCode>) {\n const { metadata, control, errorMessage } = useHookFieldResolution(\n name,\n formHookResult,\n validationMessages,\n )\n const fieldMetadata = metadata[name]\n\n return (\n <SwitchField\n name={name}\n control={control}\n label={label}\n description={description}\n errorMessage={errorMessage}\n isRequired={fieldMetadata?.isRequired}\n isDisabled={fieldMetadata?.isDisabled}\n FieldComponent={FieldComponent}\n />\n )\n}\n"],"names":["SwitchHookField","name","formHookResult","label","description","validationMessages","FieldComponent","metadata","control","errorMessage","useHookFieldResolution","fieldMetadata","jsx","SwitchField"],"mappings":";;;;AAcO,SAASA,EAA2C;AAAA,EACzD,MAAAC;AAAA,EACA,gBAAAC;AAAA,EACA,OAAAC;AAAA,EACA,aAAAC;AAAA,EACA,oBAAAC;AAAA,EACA,gBAAAC;AACF,GAAqC;AACnC,QAAM,EAAE,UAAAC,GAAU,SAAAC,GAAS,cAAAC,EAAA,IAAiBC;AAAA,IAC1CT;AAAA,IACAC;AAAA,IACAG;AAAA,EAAA,GAEIM,IAAgBJ,EAASN,CAAI;AAEnC,SACE,gBAAAW;AAAA,IAACC;AAAA,IAAA;AAAA,MACC,MAAAZ;AAAA,MACA,SAAAO;AAAA,MACA,OAAAL;AAAA,MACA,aAAAC;AAAA,MACA,cAAAK;AAAA,MACA,YAAYE,GAAe;AAAA,MAC3B,YAAYA,GAAe;AAAA,MAC3B,gBAAAL;AAAA,IAAA;AAAA,EAAA;AAGN;"}
@@ -1,11 +1,12 @@
1
1
  import { ComponentType } from 'react';
2
- import { BaseFieldProps, ValidationMessages } from '../types';
2
+ import { BaseFieldProps, ValidationMessages, BaseFormHookReady } from '../../../../types/sdkHooks';
3
3
  import { TextInputProps } from '../../../Common/UI/TextInput/TextInputTypes';
4
- export interface TextInputHookFieldProps<TErrorCode extends string = never> extends BaseFieldProps {
4
+ export interface TextInputHookFieldProps<TErrorCode extends string = never, TOptionalErrorCode extends string = never> extends BaseFieldProps {
5
5
  name: string;
6
- validationMessages?: ValidationMessages<TErrorCode>;
6
+ formHookResult?: BaseFormHookReady;
7
+ validationMessages?: ValidationMessages<TErrorCode, TOptionalErrorCode>;
7
8
  transform?: (value: string) => string;
8
9
  placeholder?: string;
9
10
  FieldComponent?: ComponentType<TextInputProps>;
10
11
  }
11
- export declare function TextInputHookField<TErrorCode extends string>({ name, label, description, validationMessages, transform, placeholder, FieldComponent, }: TextInputHookFieldProps<TErrorCode>): import("react/jsx-runtime").JSX.Element;
12
+ export declare function TextInputHookField<TErrorCode extends string, TOptionalErrorCode extends string = never>({ name, formHookResult, label, description, validationMessages, transform, placeholder, FieldComponent, }: TextInputHookFieldProps<TErrorCode, TOptionalErrorCode>): import("react/jsx-runtime").JSX.Element;
@@ -1,38 +1,39 @@
1
- import { jsx as p } from "react/jsx-runtime";
2
- import { useFieldsMetadata as u } from "../useFieldsMetadata.js";
3
- import { useFieldErrorMessage as l } from "../useFieldErrorMessage.js";
1
+ import { jsx as m } from "react/jsx-runtime";
2
+ import { useHookFieldResolution as f } from "../useHookFieldResolution.js";
4
3
  import "../../../../shared/constants.js";
5
- import "classnames";
6
- import { TextInputField as f } from "../../../Common/Fields/TextInputField/TextInputField.js";
7
- import "react-i18next";
8
- import "../../../../contexts/ComponentAdapter/useComponentContext.js";
9
- import "react";
10
- function R({
11
- name: t,
12
- label: r,
13
- description: i,
14
- validationMessages: o,
15
- transform: s,
16
- placeholder: a,
17
- FieldComponent: d
4
+ import { TextInputField as c } from "../../../Common/Fields/TextInputField/TextInputField.js";
5
+ function k({
6
+ name: o,
7
+ formHookResult: t,
8
+ label: i,
9
+ description: r,
10
+ validationMessages: s,
11
+ transform: d,
12
+ placeholder: l,
13
+ FieldComponent: u
18
14
  }) {
19
- const e = u()[t], m = l(t, o);
20
- return /* @__PURE__ */ p(
21
- f,
15
+ const { metadata: a, control: n, errorMessage: p } = f(
16
+ o,
17
+ t,
18
+ s
19
+ ), e = a[o];
20
+ return /* @__PURE__ */ m(
21
+ c,
22
22
  {
23
- name: t,
24
- label: r,
25
- description: i,
26
- errorMessage: m,
23
+ name: o,
24
+ control: n,
25
+ label: i,
26
+ description: r,
27
+ errorMessage: p,
27
28
  isRequired: e?.isRequired,
28
29
  isDisabled: e?.isDisabled,
29
- transform: s,
30
- placeholder: a,
31
- FieldComponent: d
30
+ transform: d,
31
+ placeholder: l,
32
+ FieldComponent: u
32
33
  }
33
34
  );
34
35
  }
35
36
  export {
36
- R as TextInputHookField
37
+ k as TextInputHookField
37
38
  };
38
39
  //# sourceMappingURL=TextInputHookField.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"TextInputHookField.js","sources":["../../../../../src/components/UNSTABLE_Hooks/form/fields/TextInputHookField.tsx"],"sourcesContent":["import type { ComponentType } from 'react'\nimport type { BaseFieldProps, ValidationMessages } from '../types'\nimport { useFieldsMetadata } from '../useFieldsMetadata'\nimport { useFieldErrorMessage } from '../useFieldErrorMessage'\nimport { TextInputField } from '@/components/Common'\nimport type { TextInputProps } from '@/components/Common/UI/TextInput/TextInputTypes'\n\nexport interface TextInputHookFieldProps<TErrorCode extends string = never> extends BaseFieldProps {\n name: string\n validationMessages?: ValidationMessages<TErrorCode>\n transform?: (value: string) => string\n placeholder?: string\n FieldComponent?: ComponentType<TextInputProps>\n}\n\nexport function TextInputHookField<TErrorCode extends string>({\n name,\n label,\n description,\n validationMessages,\n transform,\n placeholder,\n FieldComponent,\n}: TextInputHookFieldProps<TErrorCode>) {\n const metadata = useFieldsMetadata()\n const fieldMetadata = metadata[name]\n const errorMessage = useFieldErrorMessage(name, validationMessages)\n\n return (\n <TextInputField\n name={name}\n label={label}\n description={description}\n errorMessage={errorMessage}\n isRequired={fieldMetadata?.isRequired}\n isDisabled={fieldMetadata?.isDisabled}\n transform={transform}\n placeholder={placeholder}\n FieldComponent={FieldComponent}\n />\n )\n}\n"],"names":["TextInputHookField","name","label","description","validationMessages","transform","placeholder","FieldComponent","fieldMetadata","useFieldsMetadata","errorMessage","useFieldErrorMessage","jsx","TextInputField"],"mappings":";;;;;;;;;AAeO,SAASA,EAA8C;AAAA,EAC5D,MAAAC;AAAA,EACA,OAAAC;AAAA,EACA,aAAAC;AAAA,EACA,oBAAAC;AAAA,EACA,WAAAC;AAAA,EACA,aAAAC;AAAA,EACA,gBAAAC;AACF,GAAwC;AAEtC,QAAMC,IADWC,EAAA,EACcR,CAAI,GAC7BS,IAAeC,EAAqBV,GAAMG,CAAkB;AAElE,SACE,gBAAAQ;AAAA,IAACC;AAAA,IAAA;AAAA,MACC,MAAAZ;AAAA,MACA,OAAAC;AAAA,MACA,aAAAC;AAAA,MACA,cAAAO;AAAA,MACA,YAAYF,GAAe;AAAA,MAC3B,YAAYA,GAAe;AAAA,MAC3B,WAAAH;AAAA,MACA,aAAAC;AAAA,MACA,gBAAAC;AAAA,IAAA;AAAA,EAAA;AAGN;"}
1
+ {"version":3,"file":"TextInputHookField.js","sources":["../../../../../src/components/UNSTABLE_Hooks/form/fields/TextInputHookField.tsx"],"sourcesContent":["import type { ComponentType } from 'react'\nimport { useHookFieldResolution } from '../useHookFieldResolution'\nimport type { BaseFieldProps, ValidationMessages } from '@/types/sdkHooks'\nimport type { BaseFormHookReady } from '@/types/sdkHooks'\nimport { TextInputField } from '@/components/Common'\nimport type { TextInputProps } from '@/components/Common/UI/TextInput/TextInputTypes'\n\nexport interface TextInputHookFieldProps<\n TErrorCode extends string = never,\n TOptionalErrorCode extends string = never,\n> extends BaseFieldProps {\n name: string\n formHookResult?: BaseFormHookReady\n validationMessages?: ValidationMessages<TErrorCode, TOptionalErrorCode>\n transform?: (value: string) => string\n placeholder?: string\n FieldComponent?: ComponentType<TextInputProps>\n}\n\nexport function TextInputHookField<\n TErrorCode extends string,\n TOptionalErrorCode extends string = never,\n>({\n name,\n formHookResult,\n label,\n description,\n validationMessages,\n transform,\n placeholder,\n FieldComponent,\n}: TextInputHookFieldProps<TErrorCode, TOptionalErrorCode>) {\n const { metadata, control, errorMessage } = useHookFieldResolution(\n name,\n formHookResult,\n validationMessages,\n )\n const fieldMetadata = metadata[name]\n\n return (\n <TextInputField\n name={name}\n control={control}\n label={label}\n description={description}\n errorMessage={errorMessage}\n isRequired={fieldMetadata?.isRequired}\n isDisabled={fieldMetadata?.isDisabled}\n transform={transform}\n placeholder={placeholder}\n FieldComponent={FieldComponent}\n />\n )\n}\n"],"names":["TextInputHookField","name","formHookResult","label","description","validationMessages","transform","placeholder","FieldComponent","metadata","control","errorMessage","useHookFieldResolution","fieldMetadata","jsx","TextInputField"],"mappings":";;;;AAmBO,SAASA,EAGd;AAAA,EACA,MAAAC;AAAA,EACA,gBAAAC;AAAA,EACA,OAAAC;AAAA,EACA,aAAAC;AAAA,EACA,oBAAAC;AAAA,EACA,WAAAC;AAAA,EACA,aAAAC;AAAA,EACA,gBAAAC;AACF,GAA4D;AAC1D,QAAM,EAAE,UAAAC,GAAU,SAAAC,GAAS,cAAAC,EAAA,IAAiBC;AAAA,IAC1CX;AAAA,IACAC;AAAA,IACAG;AAAA,EAAA,GAEIQ,IAAgBJ,EAASR,CAAI;AAEnC,SACE,gBAAAa;AAAA,IAACC;AAAA,IAAA;AAAA,MACC,MAAAd;AAAA,MACA,SAAAS;AAAA,MACA,OAAAP;AAAA,MACA,aAAAC;AAAA,MACA,cAAAO;AAAA,MACA,YAAYE,GAAe;AAAA,MAC3B,YAAYA,GAAe;AAAA,MAC3B,WAAAP;AAAA,MACA,aAAAC;AAAA,MACA,gBAAAC;AAAA,IAAA;AAAA,EAAA;AAGN;"}
@@ -1,2 +1,2 @@
1
- import { FieldMetadataWithOptions, FieldsMetadata } from './types';
1
+ import { FieldMetadataWithOptions, FieldsMetadata } from '../../../types/sdkHooks';
2
2
  export declare function getFieldWithOptions<TEntry = unknown>(metadata: FieldsMetadata, name: string): FieldMetadataWithOptions<TEntry> | undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"getFieldWithOptions.js","sources":["../../../../src/components/UNSTABLE_Hooks/form/getFieldWithOptions.ts"],"sourcesContent":["import type { FieldMetadataWithOptions, FieldsMetadata } from './types'\n\nexport function getFieldWithOptions<TEntry = unknown>(\n metadata: FieldsMetadata,\n name: string,\n): FieldMetadataWithOptions<TEntry> | undefined {\n const field = metadata[name]\n if (field && 'options' in field) return field as FieldMetadataWithOptions<TEntry>\n return undefined\n}\n"],"names":["getFieldWithOptions","metadata","name","field"],"mappings":"AAEO,SAASA,EACdC,GACAC,GAC8C;AAC9C,QAAMC,IAAQF,EAASC,CAAI;AAC3B,MAAIC,KAAS,aAAaA,EAAO,QAAOA;AAE1C;"}
1
+ {"version":3,"file":"getFieldWithOptions.js","sources":["../../../../src/components/UNSTABLE_Hooks/form/getFieldWithOptions.ts"],"sourcesContent":["import type { FieldMetadataWithOptions, FieldsMetadata } from '@/types/sdkHooks'\n\nexport function getFieldWithOptions<TEntry = unknown>(\n metadata: FieldsMetadata,\n name: string,\n): FieldMetadataWithOptions<TEntry> | undefined {\n const field = metadata[name]\n if (field && 'options' in field) return field as FieldMetadataWithOptions<TEntry>\n return undefined\n}\n"],"names":["getFieldWithOptions","metadata","name","field"],"mappings":"AAEO,SAASA,EACdC,GACAC,GAC8C;AAC9C,QAAMC,IAAQF,EAASC,CAAI;AAC3B,MAAIC,KAAS,aAAaA,EAAO,QAAOA;AAE1C;"}
@@ -1,14 +1,14 @@
1
1
  import "./types/i18next.d.ts"
2
- export type { FieldMetadata, FieldMetadataWithOptions, FieldsMetadata, ValidationMessages, BaseFieldProps, HookFieldProps, } from './types';
2
+ export type { FieldMetadata, FieldMetadataWithOptions, FieldsMetadata, ValidationMessages, BaseFieldProps, HookFieldProps, } from '../../../types/sdkHooks';
3
3
  export { withOptions } from './withOptions';
4
4
  export type { FormFieldsMetadataContextValue } from './FormFieldsMetadataContext';
5
5
  export { FormFieldsMetadataProvider } from './FormFieldsMetadataProvider';
6
6
  export { SDKFormProvider } from './SDKFormProvider';
7
- export { useFieldsMetadata } from './useFieldsMetadata';
7
+ export { useDeriveFieldsMetadata } from './useDeriveFieldsMetadata';
8
8
  export { useFieldErrorMessage } from './useFieldErrorMessage';
9
- export { deriveFieldsMetadata } from './deriveFieldsMetadata';
10
- export { composeFormSchema } from './composeFormSchema';
11
- export { resolveRequiredFields, filterRequiredFields, type RequiredFields, } from './resolveRequiredFields';
9
+ export { resolveFieldError } from './resolveFieldError';
10
+ export { useHookFieldResolution } from './useHookFieldResolution';
11
+ export type { FormMode, RequiredFieldRule, RequiredFieldConfig, OptionalFieldsToRequire, FieldsMetadataConfig, BuildFormSchemaResult, } from './buildFormSchema';
12
12
  export { composeSubmitHandler } from './composeSubmitHandler';
13
13
  export { createGetFormSubmissionValues } from './getFormSubmissionValues';
14
14
  export { TextInputHookField, type TextInputHookFieldProps, SelectHookField, type SelectHookFieldProps, CheckboxHookField, type CheckboxHookFieldProps, NumberInputHookField, type NumberInputHookFieldProps, DatePickerHookField, type DatePickerHookFieldProps, RadioGroupHookField, type RadioGroupHookFieldProps, type TextInputProps, type SelectProps, type SelectOption, type CheckboxProps, type NumberInputProps, type DatePickerProps, type RadioGroupProps, type RadioGroupOption, SwitchHookField, type SwitchHookFieldProps, type SwitchProps, } from './fields';
@@ -0,0 +1,3 @@
1
+ export declare function coerceNaN(fallback: number): (val: unknown) => number;
2
+ export declare function coerceToISODate(val: unknown): string | null;
3
+ export declare function coerceStringBoolean(val: unknown): boolean | undefined;
@@ -0,0 +1,15 @@
1
+ function n(r) {
2
+ return (e) => e == null || typeof e == "number" && Number.isNaN(e) ? r : e;
3
+ }
4
+ function t(r) {
5
+ return r instanceof Date ? r.toISOString().split("T")[0] : r === null || r === "" || r === void 0 ? null : r;
6
+ }
7
+ function u(r) {
8
+ return typeof r == "string" ? r === "true" : r;
9
+ }
10
+ export {
11
+ n as coerceNaN,
12
+ u as coerceStringBoolean,
13
+ t as coerceToISODate
14
+ };
15
+ //# sourceMappingURL=preprocessors.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"preprocessors.js","sources":["../../../../src/components/UNSTABLE_Hooks/form/preprocessors.ts"],"sourcesContent":["export function coerceNaN(fallback: number) {\n return (val: unknown): number => {\n if (val === undefined || val === null) return fallback\n if (typeof val === 'number' && Number.isNaN(val)) return fallback\n return val as number\n }\n}\n\nexport function coerceToISODate(val: unknown): string | null {\n if (val instanceof Date) return val.toISOString().split('T')[0]!\n if (val === null || val === '' || val === undefined) return null\n return val as string\n}\n\nexport function coerceStringBoolean(val: unknown): boolean | undefined {\n if (typeof val === 'string') return val === 'true'\n return val as boolean | undefined\n}\n"],"names":["coerceNaN","fallback","val","coerceToISODate","coerceStringBoolean"],"mappings":"AAAO,SAASA,EAAUC,GAAkB;AAC1C,SAAO,CAACC,MACmBA,KAAQ,QAC7B,OAAOA,KAAQ,YAAY,OAAO,MAAMA,CAAG,IAAUD,IAClDC;AAEX;AAEO,SAASC,EAAgBD,GAA6B;AAC3D,SAAIA,aAAe,OAAaA,EAAI,cAAc,MAAM,GAAG,EAAE,CAAC,IAC1DA,MAAQ,QAAQA,MAAQ,MAAMA,MAAQ,SAAkB,OACrDA;AACT;AAEO,SAASE,EAAoBF,GAAmC;AACrE,SAAI,OAAOA,KAAQ,WAAiBA,MAAQ,SACrCA;AACT;"}
@@ -0,0 +1,4 @@
1
+ import { FieldErrors } from 'react-hook-form';
2
+ import { ValidationMessages } from '../../../types/sdkHooks';
3
+ import { SDKError } from '../../../types/sdkError';
4
+ export declare function resolveFieldError<TErrorCode extends string, TOptionalErrorCode extends string = never>(fieldName: string, formErrors: FieldErrors, sdkErrors: SDKError[], validationMessages?: ValidationMessages<TErrorCode, TOptionalErrorCode>): string | undefined;
@@ -0,0 +1,14 @@
1
+ import { get as n } from "react-hook-form";
2
+ function l(o, f, t, e) {
3
+ const r = n(f, o)?.message;
4
+ if (r && e?.[r])
5
+ return e[r];
6
+ for (const d of t) {
7
+ const s = d.fieldErrors.find((i) => i.field === o);
8
+ if (s?.message) return s.message;
9
+ }
10
+ }
11
+ export {
12
+ l as resolveFieldError
13
+ };
14
+ //# sourceMappingURL=resolveFieldError.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"resolveFieldError.js","sources":["../../../../src/components/UNSTABLE_Hooks/form/resolveFieldError.ts"],"sourcesContent":["import type { FieldErrors } from 'react-hook-form'\nimport { get } from 'react-hook-form'\nimport type { ValidationMessages } from '@/types/sdkHooks'\nimport type { SDKError } from '@/types/sdkError'\n\nexport function resolveFieldError<\n TErrorCode extends string,\n TOptionalErrorCode extends string = never,\n>(\n fieldName: string,\n formErrors: FieldErrors,\n sdkErrors: SDKError[],\n validationMessages?: ValidationMessages<TErrorCode, TOptionalErrorCode>,\n): string | undefined {\n const fieldError = get(formErrors, fieldName) as { message?: string } | undefined\n const errorCode = fieldError?.message as TErrorCode | undefined\n if (errorCode && validationMessages?.[errorCode]) {\n return validationMessages[errorCode]\n }\n\n for (const sdkError of sdkErrors) {\n const sdkFieldError = sdkError.fieldErrors.find(fe => fe.field === fieldName)\n if (sdkFieldError?.message) return sdkFieldError.message\n }\n\n return undefined\n}\n"],"names":["resolveFieldError","fieldName","formErrors","sdkErrors","validationMessages","errorCode","get","sdkError","sdkFieldError","fe"],"mappings":";AAKO,SAASA,EAIdC,GACAC,GACAC,GACAC,GACoB;AAEpB,QAAMC,IADaC,EAAIJ,GAAYD,CAAS,GACd;AAC9B,MAAII,KAAaD,IAAqBC,CAAS;AAC7C,WAAOD,EAAmBC,CAAS;AAGrC,aAAWE,KAAYJ,GAAW;AAChC,UAAMK,IAAgBD,EAAS,YAAY,KAAK,CAAAE,MAAMA,EAAG,UAAUR,CAAS;AAC5E,QAAIO,GAAe,QAAS,QAAOA,EAAc;AAAA,EACnD;AAGF;"}
@@ -0,0 +1,17 @@
1
+ import { Control, FieldValues } from 'react-hook-form';
2
+ import { z } from 'zod';
3
+ import { FieldsMetadataConfig } from './buildFormSchema';
4
+ import { FieldMetadata } from '../../../types/sdkHooks';
5
+ /**
6
+ * Resolves dynamic field metadata (e.g. `isRequired` driven by predicate
7
+ * rules) by watching only the form fields that predicates actually read.
8
+ *
9
+ * `buildFormSchema` auto-detects predicate dependencies via a recording
10
+ * Proxy and exposes them as `predicateDeps`. This hook subscribes to only
11
+ * those fields, so typing into unrelated inputs does not trigger re-renders
12
+ * — preserving react-hook-form's per-field optimization.
13
+ *
14
+ * When no predicates exist (`predicateDeps` is empty), the hook skips
15
+ * `useWatch` entirely and returns static metadata.
16
+ */
17
+ export declare function useDeriveFieldsMetadata<T extends Record<string, z.ZodType>, TFormData extends FieldValues = FieldValues>(metadataConfig: FieldsMetadataConfig<T>, control: Control<TFormData>): Record<keyof T, FieldMetadata>;
@@ -0,0 +1,21 @@
1
+ import { useMemo as o } from "react";
2
+ import { useWatch as c } from "react-hook-form";
3
+ function u(t, n) {
4
+ const { predicateDeps: e } = t, r = e.length > 0, s = c({
5
+ control: n,
6
+ name: r ? e : [],
7
+ disabled: !r
8
+ });
9
+ return o(() => {
10
+ if (!r)
11
+ return t.getFieldsMetadata();
12
+ const i = {};
13
+ for (let a = 0; a < e.length; a++)
14
+ i[e[a]] = Array.isArray(s) ? s[a] : s;
15
+ return t.getFieldsMetadata(i);
16
+ }, [t, r, e, s]);
17
+ }
18
+ export {
19
+ u as useDeriveFieldsMetadata
20
+ };
21
+ //# sourceMappingURL=useDeriveFieldsMetadata.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useDeriveFieldsMetadata.js","sources":["../../../../src/components/UNSTABLE_Hooks/form/useDeriveFieldsMetadata.ts"],"sourcesContent":["import { useMemo } from 'react'\nimport type { Control, FieldPath, FieldValues } from 'react-hook-form'\nimport { useWatch } from 'react-hook-form'\nimport type { z } from 'zod'\nimport type { FieldsMetadataConfig } from './buildFormSchema'\nimport type { FieldMetadata } from '@/types/sdkHooks'\n\n/**\n * Resolves dynamic field metadata (e.g. `isRequired` driven by predicate\n * rules) by watching only the form fields that predicates actually read.\n *\n * `buildFormSchema` auto-detects predicate dependencies via a recording\n * Proxy and exposes them as `predicateDeps`. This hook subscribes to only\n * those fields, so typing into unrelated inputs does not trigger re-renders\n * — preserving react-hook-form's per-field optimization.\n *\n * When no predicates exist (`predicateDeps` is empty), the hook skips\n * `useWatch` entirely and returns static metadata.\n */\nexport function useDeriveFieldsMetadata<\n T extends Record<string, z.ZodType>,\n TFormData extends FieldValues = FieldValues,\n>(\n metadataConfig: FieldsMetadataConfig<T>,\n control: Control<TFormData>,\n): Record<keyof T, FieldMetadata> {\n const { predicateDeps } = metadataConfig\n const hasDeps = predicateDeps.length > 0\n\n const watchedValues = useWatch({\n control,\n name: hasDeps ? (predicateDeps as FieldPath<TFormData>[]) : ([] as never[]),\n disabled: !hasDeps,\n })\n\n return useMemo(() => {\n if (!hasDeps) {\n return metadataConfig.getFieldsMetadata()\n }\n\n const data: Record<string, unknown> = {}\n for (let i = 0; i < predicateDeps.length; i++) {\n data[predicateDeps[i]!] = Array.isArray(watchedValues) ? watchedValues[i] : watchedValues\n }\n return metadataConfig.getFieldsMetadata(data)\n }, [metadataConfig, hasDeps, predicateDeps, watchedValues])\n}\n"],"names":["useDeriveFieldsMetadata","metadataConfig","control","predicateDeps","hasDeps","watchedValues","useWatch","useMemo","data","i"],"mappings":";;AAmBO,SAASA,EAIdC,GACAC,GACgC;AAChC,QAAM,EAAE,eAAAC,MAAkBF,GACpBG,IAAUD,EAAc,SAAS,GAEjCE,IAAgBC,EAAS;AAAA,IAC7B,SAAAJ;AAAA,IACA,MAAME,IAAWD,IAA4C,CAAA;AAAA,IAC7D,UAAU,CAACC;AAAA,EAAA,CACZ;AAED,SAAOG,EAAQ,MAAM;AACnB,QAAI,CAACH;AACH,aAAOH,EAAe,kBAAA;AAGxB,UAAMO,IAAgC,CAAA;AACtC,aAASC,IAAI,GAAGA,IAAIN,EAAc,QAAQM;AACxC,MAAAD,EAAKL,EAAcM,CAAC,CAAE,IAAI,MAAM,QAAQJ,CAAa,IAAIA,EAAcI,CAAC,IAAIJ;AAE9E,WAAOJ,EAAe,kBAAkBO,CAAI;AAAA,EAC9C,GAAG,CAACP,GAAgBG,GAASD,GAAeE,CAAa,CAAC;AAC5D;"}
@@ -1,2 +1,2 @@
1
- import { ValidationMessages } from './types';
1
+ import { ValidationMessages } from '../../../types/sdkHooks';
2
2
  export declare function useFieldErrorMessage<TErrorCode extends string>(fieldName: string, validationMessages?: ValidationMessages<TErrorCode>): string | undefined;
@@ -1,17 +1,17 @@
1
- import { useFormContext as i } from "react-hook-form";
1
+ import { useFormContext as i, get as c } from "react-hook-form";
2
2
  import { useFormFieldsMetadataContext as m } from "./FormFieldsMetadataContext.js";
3
- function E(o, e) {
3
+ function F(o, e) {
4
4
  const {
5
- formState: { errors: t }
6
- } = i(), { errors: n } = m(), r = t[o]?.message;
5
+ formState: { errors: s }
6
+ } = i(), n = m()?.errors ?? [], r = c(s, o)?.message;
7
7
  if (r && e?.[r])
8
8
  return e[r];
9
- for (const f of n) {
10
- const s = f.fieldErrors.find((d) => d.field === o);
11
- if (s?.message) return s.message;
9
+ for (const d of n) {
10
+ const t = d.fieldErrors.find((f) => f.field === o);
11
+ if (t?.message) return t.message;
12
12
  }
13
13
  }
14
14
  export {
15
- E as useFieldErrorMessage
15
+ F as useFieldErrorMessage
16
16
  };
17
17
  //# sourceMappingURL=useFieldErrorMessage.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"useFieldErrorMessage.js","sources":["../../../../src/components/UNSTABLE_Hooks/form/useFieldErrorMessage.ts"],"sourcesContent":["import { useFormContext } from 'react-hook-form'\nimport { useFormFieldsMetadataContext } from './FormFieldsMetadataContext'\nimport type { ValidationMessages } from './types'\n\nexport function useFieldErrorMessage<TErrorCode extends string>(\n fieldName: string,\n validationMessages?: ValidationMessages<TErrorCode>,\n): string | undefined {\n const {\n formState: { errors },\n } = useFormContext()\n const { errors: sdkErrors } = useFormFieldsMetadataContext()\n\n const errorCode = errors[fieldName]?.message as TErrorCode | undefined\n if (errorCode && validationMessages?.[errorCode]) {\n return validationMessages[errorCode]\n }\n\n for (const sdkError of sdkErrors) {\n const fieldError = sdkError.fieldErrors.find(fe => fe.field === fieldName)\n if (fieldError?.message) return fieldError.message\n }\n\n return undefined\n}\n"],"names":["useFieldErrorMessage","fieldName","validationMessages","errors","useFormContext","sdkErrors","useFormFieldsMetadataContext","errorCode","sdkError","fieldError","fe"],"mappings":";;AAIO,SAASA,EACdC,GACAC,GACoB;AACpB,QAAM;AAAA,IACJ,WAAW,EAAE,QAAAC,EAAA;AAAA,EAAO,IAClBC,EAAA,GACE,EAAE,QAAQC,EAAA,IAAcC,EAAA,GAExBC,IAAYJ,EAAOF,CAAS,GAAG;AACrC,MAAIM,KAAaL,IAAqBK,CAAS;AAC7C,WAAOL,EAAmBK,CAAS;AAGrC,aAAWC,KAAYH,GAAW;AAChC,UAAMI,IAAaD,EAAS,YAAY,KAAK,CAAAE,MAAMA,EAAG,UAAUT,CAAS;AACzE,QAAIQ,GAAY,QAAS,QAAOA,EAAW;AAAA,EAC7C;AAGF;"}
1
+ {"version":3,"file":"useFieldErrorMessage.js","sources":["../../../../src/components/UNSTABLE_Hooks/form/useFieldErrorMessage.ts"],"sourcesContent":["import { useFormContext, get } from 'react-hook-form'\nimport { useFormFieldsMetadataContext } from './FormFieldsMetadataContext'\nimport type { ValidationMessages } from '@/types/sdkHooks'\n\nexport function useFieldErrorMessage<TErrorCode extends string>(\n fieldName: string,\n validationMessages?: ValidationMessages<TErrorCode>,\n): string | undefined {\n const {\n formState: { errors },\n } = useFormContext()\n const context = useFormFieldsMetadataContext()\n const sdkErrors = context?.errors ?? []\n\n const fieldError = get(errors, fieldName) as { message?: string } | undefined\n const errorCode = fieldError?.message as TErrorCode | undefined\n if (errorCode && validationMessages?.[errorCode]) {\n return validationMessages[errorCode]\n }\n\n for (const sdkError of sdkErrors) {\n const sdkFieldError = sdkError.fieldErrors.find(fe => fe.field === fieldName)\n if (sdkFieldError?.message) return sdkFieldError.message\n }\n\n return undefined\n}\n"],"names":["useFieldErrorMessage","fieldName","validationMessages","errors","useFormContext","sdkErrors","useFormFieldsMetadataContext","errorCode","get","sdkError","sdkFieldError","fe"],"mappings":";;AAIO,SAASA,EACdC,GACAC,GACoB;AACpB,QAAM;AAAA,IACJ,WAAW,EAAE,QAAAC,EAAA;AAAA,EAAO,IAClBC,EAAA,GAEEC,IADUC,EAAA,GACW,UAAU,CAAA,GAG/BC,IADaC,EAAIL,GAAQF,CAAS,GACV;AAC9B,MAAIM,KAAaL,IAAqBK,CAAS;AAC7C,WAAOL,EAAmBK,CAAS;AAGrC,aAAWE,KAAYJ,GAAW;AAChC,UAAMK,IAAgBD,EAAS,YAAY,KAAK,CAAAE,MAAMA,EAAG,UAAUV,CAAS;AAC5E,QAAIS,GAAe,QAAS,QAAOA,EAAc;AAAA,EACnD;AAGF;"}
@@ -0,0 +1,22 @@
1
+ import { Control } from 'react-hook-form';
2
+ import { FieldsMetadata, ValidationMessages, BaseFormHookReady } from '../../../types/sdkHooks';
3
+ interface HookFieldResolution {
4
+ metadata: FieldsMetadata;
5
+ control: Control | undefined;
6
+ errorMessage: string | undefined;
7
+ }
8
+ /**
9
+ * Resolves all data a HookField needs from either a `formHookResult` prop or
10
+ * the standard context providers (FormProvider + FormFieldsMetadataProvider).
11
+ *
12
+ * When `formHookResult` is provided, metadata/errors/control are read from
13
+ * the prop — no context providers required. When absent, falls back to the
14
+ * existing context-based path.
15
+ *
16
+ * Uses `useFormState` to establish a proper RHF subscription for error updates.
17
+ * When `control` is provided (prop path), useFormState subscribes directly via
18
+ * the control object. When absent (context path), it falls back to useFormContext
19
+ * internally. The `name` parameter scopes the subscription to this field.
20
+ */
21
+ export declare function useHookFieldResolution<TErrorCode extends string, TOptionalErrorCode extends string = never>(name: string, formHookResult: BaseFormHookReady | undefined, validationMessages?: ValidationMessages<TErrorCode, TOptionalErrorCode>): HookFieldResolution;
22
+ export {};
@@ -0,0 +1,11 @@
1
+ import { useFormState as i } from "react-hook-form";
2
+ import { useFormFieldsMetadataContext as c } from "./FormFieldsMetadataContext.js";
3
+ import { resolveFieldError as l } from "./resolveFieldError.js";
4
+ function M(o, r, s) {
5
+ const t = c(), a = r?.form.fieldsMetadata ?? t?.metadata ?? {}, e = r?.form.hookFormInternals.formMethods.control, { errors: n } = i({ control: e, name: o }), d = r ? r.errorHandling.errors : t?.errors ?? [], m = l(o, n, d, s);
6
+ return { metadata: a, control: e, errorMessage: m };
7
+ }
8
+ export {
9
+ M as useHookFieldResolution
10
+ };
11
+ //# sourceMappingURL=useHookFieldResolution.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useHookFieldResolution.js","sources":["../../../../src/components/UNSTABLE_Hooks/form/useHookFieldResolution.ts"],"sourcesContent":["import type { Control } from 'react-hook-form'\nimport { useFormState } from 'react-hook-form'\nimport { useFormFieldsMetadataContext } from './FormFieldsMetadataContext'\nimport { resolveFieldError } from './resolveFieldError'\nimport type { FieldsMetadata, ValidationMessages, BaseFormHookReady } from '@/types/sdkHooks'\n\ninterface HookFieldResolution {\n metadata: FieldsMetadata\n control: Control | undefined\n errorMessage: string | undefined\n}\n\n/**\n * Resolves all data a HookField needs from either a `formHookResult` prop or\n * the standard context providers (FormProvider + FormFieldsMetadataProvider).\n *\n * When `formHookResult` is provided, metadata/errors/control are read from\n * the prop — no context providers required. When absent, falls back to the\n * existing context-based path.\n *\n * Uses `useFormState` to establish a proper RHF subscription for error updates.\n * When `control` is provided (prop path), useFormState subscribes directly via\n * the control object. When absent (context path), it falls back to useFormContext\n * internally. The `name` parameter scopes the subscription to this field.\n */\nexport function useHookFieldResolution<\n TErrorCode extends string,\n TOptionalErrorCode extends string = never,\n>(\n name: string,\n formHookResult: BaseFormHookReady | undefined,\n validationMessages?: ValidationMessages<TErrorCode, TOptionalErrorCode>,\n): HookFieldResolution {\n const metadataContext = useFormFieldsMetadataContext()\n\n const metadata = formHookResult?.form.fieldsMetadata ?? metadataContext?.metadata ?? {}\n\n const control = formHookResult?.form.hookFormInternals.formMethods.control\n\n const { errors: formErrors } = useFormState({ control, name })\n\n const sdkErrors = formHookResult\n ? formHookResult.errorHandling.errors\n : (metadataContext?.errors ?? [])\n\n const errorMessage = resolveFieldError(name, formErrors, sdkErrors, validationMessages)\n\n return { metadata, control, errorMessage }\n}\n"],"names":["useHookFieldResolution","name","formHookResult","validationMessages","metadataContext","useFormFieldsMetadataContext","metadata","control","formErrors","useFormState","sdkErrors","errorMessage","resolveFieldError"],"mappings":";;;AAyBO,SAASA,EAIdC,GACAC,GACAC,GACqB;AACrB,QAAMC,IAAkBC,EAAA,GAElBC,IAAWJ,GAAgB,KAAK,kBAAkBE,GAAiB,YAAY,CAAA,GAE/EG,IAAUL,GAAgB,KAAK,kBAAkB,YAAY,SAE7D,EAAE,QAAQM,EAAA,IAAeC,EAAa,EAAE,SAAAF,GAAS,MAAAN,GAAM,GAEvDS,IAAYR,IACdA,EAAe,cAAc,SAC5BE,GAAiB,UAAU,CAAA,GAE1BO,IAAeC,EAAkBX,GAAMO,GAAYE,GAAWP,CAAkB;AAEtF,SAAO,EAAE,UAAAG,GAAU,SAAAC,GAAS,cAAAI,EAAA;AAC9B;"}
@@ -1,4 +1,4 @@
1
- import { FieldMetadata, FieldMetadataWithOptions } from './types';
1
+ import { FieldMetadata, FieldMetadataWithOptions } from '../../../types/sdkHooks';
2
2
  export declare function withOptions<TEntry = unknown>(base: FieldMetadata, options: Array<{
3
3
  label: string;
4
4
  value: string;
@@ -1 +1 @@
1
- {"version":3,"file":"withOptions.js","sources":["../../../../src/components/UNSTABLE_Hooks/form/withOptions.ts"],"sourcesContent":["import type { FieldMetadata, FieldMetadataWithOptions } from './types'\n\nexport function withOptions<TEntry = unknown>(\n base: FieldMetadata,\n options: Array<{ label: string; value: string }>,\n entries?: TEntry[],\n): FieldMetadataWithOptions<TEntry> {\n if (entries !== undefined) {\n return { ...base, options, entries }\n }\n return { ...base, options }\n}\n"],"names":["withOptions","base","options","entries"],"mappings":"AAEO,SAASA,EACdC,GACAC,GACAC,GACkC;AAClC,SAAIA,MAAY,SACP,EAAE,GAAGF,GAAM,SAAAC,GAAS,SAAAC,EAAA,IAEtB,EAAE,GAAGF,GAAM,SAAAC,EAAA;AACpB;"}
1
+ {"version":3,"file":"withOptions.js","sources":["../../../../src/components/UNSTABLE_Hooks/form/withOptions.ts"],"sourcesContent":["import type { FieldMetadata, FieldMetadataWithOptions } from '@/types/sdkHooks'\n\nexport function withOptions<TEntry = unknown>(\n base: FieldMetadata,\n options: Array<{ label: string; value: string }>,\n entries?: TEntry[],\n): FieldMetadataWithOptions<TEntry> {\n if (entries !== undefined) {\n return { ...base, options, entries }\n }\n return { ...base, options }\n}\n"],"names":["withOptions","base","options","entries"],"mappings":"AAEO,SAASA,EACdC,GACAC,GACAC,GACkC;AAClC,SAAIA,MAAY,SACP,EAAE,GAAGF,GAAM,SAAAC,GAAS,SAAAC,EAAA,IAEtB,EAAE,GAAGF,GAAM,SAAAC,EAAA;AACpB;"}
@@ -7,9 +7,7 @@ import { BaseBoundaries as L, BaseLayout as d } from "../../../Base/Base.js";
7
7
  import "../../../Base/useBase.js";
8
8
  import { Form as M } from "../../../Common/Form/Form.js";
9
9
  import { FLSA_OVERTIME_SALARY_LIMIT as U, componentEvents as r } from "../../../../shared/constants.js";
10
- import "classnames";
11
10
  import { ActionsLayout as T } from "../../../Common/ActionsLayout/ActionsLayout.js";
12
- import "react";
13
11
  import { useI18n as I, useComponentDictionary as S } from "../../../../i18n/I18n.js";
14
12
  import g from "../../../../hooks/useNumberFormatter.js";
15
13
  function W({ onEvent: n, dictionary: l, ...E }) {
@@ -124,7 +122,7 @@ function W({ onEvent: n, dictionary: l, ...E }) {
124
122
  {
125
123
  label: e("stateWcCoveredLabel"),
126
124
  description: e("stateWcCoveredDescription"),
127
- getOptionLabel: (o) => e(o === "yes" ? "stateWcCoveredYes" : "stateWcCoveredNo")
125
+ getOptionLabel: (o) => e(o ? "stateWcCoveredYes" : "stateWcCoveredNo")
128
126
  }
129
127
  ),
130
128
  i.StateWcClassCode && /* @__PURE__ */ t(
@@ -142,10 +140,10 @@ function W({ onEvent: n, dictionary: l, ...E }) {
142
140
  }
143
141
  ) }) });
144
142
  }
145
- function J({ FallbackComponent: n, ...l }) {
143
+ function j({ FallbackComponent: n, ...l }) {
146
144
  return /* @__PURE__ */ t(L, { componentName: "UNSTABLE.CompensationForm", FallbackComponent: n, children: /* @__PURE__ */ t(W, { ...l }) });
147
145
  }
148
146
  export {
149
- J as CompensationForm
147
+ j as CompensationForm
150
148
  };
151
149
  //# sourceMappingURL=CompensationForm.js.map