@gusto/embedded-react-sdk 0.38.0-rc.1 → 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 (485) hide show
  1. package/dist/UNSTABLE_Hooks.d.ts +1 -1
  2. package/dist/UNSTABLE_Hooks.js +64 -42
  3. package/dist/UNSTABLE_Hooks.js.map +1 -1
  4. package/dist/assets/icons/percent-circle.svg.js +10 -0
  5. package/dist/assets/icons/percent-circle.svg.js.map +1 -0
  6. package/dist/assets/icons/plus-circle.svg.js +1 -1
  7. package/dist/assets/icons/plus-circle.svg.js.map +1 -1
  8. package/dist/components/Common/DataView/DataCards/DataCards.d.ts +5 -3
  9. package/dist/components/Common/DataView/DataCards/DataCards.js +59 -46
  10. package/dist/components/Common/DataView/DataCards/DataCards.js.map +1 -1
  11. package/dist/components/Common/DataView/DataCards/DataCards.module.scss.js +9 -7
  12. package/dist/components/Common/DataView/DataCards/DataCards.module.scss.js.map +1 -1
  13. package/dist/components/Common/DataView/DataTable/DataTable.d.ts +4 -3
  14. package/dist/components/Common/DataView/DataTable/DataTable.js +67 -57
  15. package/dist/components/Common/DataView/DataTable/DataTable.js.map +1 -1
  16. package/dist/components/Common/DataView/DataView.d.ts +4 -3
  17. package/dist/components/Common/DataView/DataView.js +24 -22
  18. package/dist/components/Common/DataView/DataView.js.map +1 -1
  19. package/dist/components/Common/DataView/useDataView.d.ts +33 -6
  20. package/dist/components/Common/DataView/useDataView.js +23 -20
  21. package/dist/components/Common/DataView/useDataView.js.map +1 -1
  22. package/dist/components/Common/DataView/useSelectionState.d.ts +5 -0
  23. package/dist/components/Common/DataView/useSelectionState.js +8 -0
  24. package/dist/components/Common/DataView/useSelectionState.js.map +1 -0
  25. package/dist/components/Common/DateRangeFilter/DateRangeFilter.d.ts +3 -1
  26. package/dist/components/Common/DateRangeFilter/DateRangeFilter.js +65 -71
  27. package/dist/components/Common/DateRangeFilter/DateRangeFilter.js.map +1 -1
  28. package/dist/components/Common/DateRangeFilter/DateRangeFilter.module.scss.js +10 -6
  29. package/dist/components/Common/DateRangeFilter/DateRangeFilter.module.scss.js.map +1 -1
  30. package/dist/components/Common/Fields/hooks/useStringifyGenericFieldValue.d.ts +2 -2
  31. package/dist/components/Common/Fields/hooks/useStringifyGenericFieldValue.js +2 -2
  32. package/dist/components/Common/Fields/hooks/useStringifyGenericFieldValue.js.map +1 -1
  33. package/dist/components/Common/SignatureForm/SignatureFormActions.js +8 -7
  34. package/dist/components/Common/SignatureForm/SignatureFormActions.js.map +1 -1
  35. package/dist/components/Common/SignatureForm/SignatureFormFields.js +5 -4
  36. package/dist/components/Common/SignatureForm/SignatureFormFields.js.map +1 -1
  37. package/dist/components/Common/UI/Box/Box.d.ts +1 -1
  38. package/dist/components/Common/UI/Box/Box.js +9 -8
  39. package/dist/components/Common/UI/Box/Box.js.map +1 -1
  40. package/dist/components/Common/UI/Box/Box.module.scss.js +12 -8
  41. package/dist/components/Common/UI/Box/Box.module.scss.js.map +1 -1
  42. package/dist/components/Common/UI/Box/BoxTypes.d.ts +2 -9
  43. package/dist/components/Common/UI/BoxHeader/BoxHeader.d.ts +2 -0
  44. package/dist/components/Common/UI/BoxHeader/BoxHeader.js +23 -0
  45. package/dist/components/Common/UI/BoxHeader/BoxHeader.js.map +1 -0
  46. package/dist/components/Common/UI/BoxHeader/BoxHeader.module.scss.js +8 -0
  47. package/dist/components/Common/UI/BoxHeader/BoxHeader.module.scss.js.map +1 -0
  48. package/dist/components/Common/UI/BoxHeader/BoxHeaderTypes.d.ts +10 -0
  49. package/dist/components/Common/UI/BoxHeader/BoxHeaderTypes.js +7 -0
  50. package/dist/components/Common/UI/BoxHeader/BoxHeaderTypes.js.map +1 -0
  51. package/dist/components/Common/UI/BoxHeader/index.d.ts +2 -0
  52. package/dist/components/Common/UI/Button/Button.module.scss.js +2 -2
  53. package/dist/components/Common/UI/Checkbox/Checkbox.js +60 -49
  54. package/dist/components/Common/UI/Checkbox/Checkbox.js.map +1 -1
  55. package/dist/components/Common/UI/Checkbox/Checkbox.module.scss.js +10 -6
  56. package/dist/components/Common/UI/Checkbox/Checkbox.module.scss.js.map +1 -1
  57. package/dist/components/Common/UI/ComboBox/ComboBox.js +1 -1
  58. package/dist/components/Common/UI/ComboBox/ComboBox.js.map +1 -1
  59. package/dist/components/Common/UI/ComboBox/ComboBoxTypes.d.ts +1 -1
  60. package/dist/components/Common/UI/DateRangePicker/DateRangePicker.js +34 -36
  61. package/dist/components/Common/UI/DateRangePicker/DateRangePicker.js.map +1 -1
  62. package/dist/components/Common/UI/DateRangePicker/DateRangePicker.module.scss.js +12 -12
  63. package/dist/components/Common/UI/DescriptionList/DescriptionList.js +19 -12
  64. package/dist/components/Common/UI/DescriptionList/DescriptionList.js.map +1 -1
  65. package/dist/components/Common/UI/DescriptionList/DescriptionList.module.scss.js +6 -4
  66. package/dist/components/Common/UI/DescriptionList/DescriptionList.module.scss.js.map +1 -1
  67. package/dist/components/Common/UI/DescriptionList/DescriptionListTypes.d.ts +6 -1
  68. package/dist/components/Common/UI/DescriptionList/DescriptionListTypes.js +4 -1
  69. package/dist/components/Common/UI/DescriptionList/DescriptionListTypes.js.map +1 -1
  70. package/dist/components/Common/UI/Heading/Heading.module.scss.js +15 -15
  71. package/dist/components/Common/UI/Input/Input.js.map +1 -1
  72. package/dist/components/Common/UI/RadioGroup/RadioGroupTypes.d.ts +1 -1
  73. package/dist/components/Common/UI/RadioGroup/RadioGroupTypes.js.map +1 -1
  74. package/dist/components/Common/UI/Select/Select.js +22 -22
  75. package/dist/components/Common/UI/Select/Select.js.map +1 -1
  76. package/dist/components/Common/UI/Select/SelectTypes.d.ts +1 -1
  77. package/dist/components/Common/UI/Table/Table.js +12 -12
  78. package/dist/components/Common/UI/Table/Table.js.map +1 -1
  79. package/dist/components/Common/UI/Table/Table.module.scss.js +1 -1
  80. package/dist/components/Common/UI/Table/TableTypes.d.ts +3 -3
  81. package/dist/components/Common/UI/Table/TableTypes.js +3 -3
  82. package/dist/components/Common/UI/Table/TableTypes.js.map +1 -1
  83. package/dist/components/Common/UI/TextArea/TextArea.js +1 -1
  84. package/dist/components/Common/UI/TextArea/TextArea.js.map +1 -1
  85. package/dist/components/Common/UI/TextInput/TextInput.js +13 -13
  86. package/dist/components/Common/UI/TextInput/TextInput.js.map +1 -1
  87. package/dist/components/Company/AssignSignatory/AssignSignatorySelection.js +7 -6
  88. package/dist/components/Company/AssignSignatory/AssignSignatorySelection.js.map +1 -1
  89. package/dist/components/Company/AssignSignatory/CreateSignatory/Actions.js +9 -8
  90. package/dist/components/Company/AssignSignatory/CreateSignatory/Actions.js.map +1 -1
  91. package/dist/components/Company/AssignSignatory/CreateSignatory/useCreateSignatory.js +4 -3
  92. package/dist/components/Company/AssignSignatory/CreateSignatory/useCreateSignatory.js.map +1 -1
  93. package/dist/components/Company/AssignSignatory/InviteSignatory/Actions.js +7 -6
  94. package/dist/components/Company/AssignSignatory/InviteSignatory/Actions.js.map +1 -1
  95. package/dist/components/Company/AssignSignatory/InviteSignatory/useInviteSignatory.js +4 -3
  96. package/dist/components/Company/AssignSignatory/InviteSignatory/useInviteSignatory.js.map +1 -1
  97. package/dist/components/Company/AssignSignatory/useAssignSignatory.js +6 -5
  98. package/dist/components/Company/AssignSignatory/useAssignSignatory.js.map +1 -1
  99. package/dist/components/Company/BankAccount/BankAccountForm/Actions.js +6 -6
  100. package/dist/components/Company/BankAccount/BankAccountForm/context.js +4 -3
  101. package/dist/components/Company/BankAccount/BankAccountForm/context.js.map +1 -1
  102. package/dist/components/Company/BankAccount/BankAccountList/Actions.js +7 -6
  103. package/dist/components/Company/BankAccount/BankAccountList/Actions.js.map +1 -1
  104. package/dist/components/Company/BankAccount/BankAccountVerify/Actions.js +8 -7
  105. package/dist/components/Company/BankAccount/BankAccountVerify/Actions.js.map +1 -1
  106. package/dist/components/Company/DocumentSigner/DocumentList/Actions.js +6 -5
  107. package/dist/components/Company/DocumentSigner/DocumentList/Actions.js.map +1 -1
  108. package/dist/components/Company/DocumentSigner/DocumentList/useDocumentList.js +4 -3
  109. package/dist/components/Company/DocumentSigner/DocumentList/useDocumentList.js.map +1 -1
  110. package/dist/components/Company/DocumentSigner/SignatureForm/useSignatureForm.js +4 -3
  111. package/dist/components/Company/DocumentSigner/SignatureForm/useSignatureForm.js.map +1 -1
  112. package/dist/components/Company/FederalTaxes/Actions.js +7 -6
  113. package/dist/components/Company/FederalTaxes/Actions.js.map +1 -1
  114. package/dist/components/Company/FederalTaxes/FederalTaxes.js +13 -13
  115. package/dist/components/Company/FederalTaxes/FederalTaxes.js.map +1 -1
  116. package/dist/components/Company/FederalTaxes/Form.js +1 -1
  117. package/dist/components/Company/FederalTaxes/Form.js.map +1 -1
  118. package/dist/components/Company/FederalTaxes/useFederalTaxes.js +7 -6
  119. package/dist/components/Company/FederalTaxes/useFederalTaxes.js.map +1 -1
  120. package/dist/components/Company/Industry/Actions.js +6 -5
  121. package/dist/components/Company/Industry/Actions.js.map +1 -1
  122. package/dist/components/Company/Industry/Context.js +7 -6
  123. package/dist/components/Company/Industry/Context.js.map +1 -1
  124. package/dist/components/Company/Industry/Edit.js +11 -10
  125. package/dist/components/Company/Industry/Edit.js.map +1 -1
  126. package/dist/components/Company/Locations/LocationForm/Actions.js +3 -2
  127. package/dist/components/Company/Locations/LocationForm/Actions.js.map +1 -1
  128. package/dist/components/Company/Locations/LocationForm/useLocationForm.js +4 -3
  129. package/dist/components/Company/Locations/LocationForm/useLocationForm.js.map +1 -1
  130. package/dist/components/Company/Locations/LocationsList/Actions.js +3 -2
  131. package/dist/components/Company/Locations/LocationsList/Actions.js.map +1 -1
  132. package/dist/components/Company/Locations/LocationsList/List.js +7 -6
  133. package/dist/components/Company/Locations/LocationsList/List.js.map +1 -1
  134. package/dist/components/Company/Locations/LocationsList/useLocationsList.js +4 -3
  135. package/dist/components/Company/Locations/LocationsList/useLocationsList.js.map +1 -1
  136. package/dist/components/Company/OnboardingOverview/context.js +4 -3
  137. package/dist/components/Company/OnboardingOverview/context.js.map +1 -1
  138. package/dist/components/Company/PaySchedule/PaySchedule.js +88 -85
  139. package/dist/components/Company/PaySchedule/PaySchedule.js.map +1 -1
  140. package/dist/components/Company/PaySchedule/_parts/Actions.js +3 -2
  141. package/dist/components/Company/PaySchedule/_parts/Actions.js.map +1 -1
  142. package/dist/components/Company/PaySchedule/_parts/Edit.js +21 -16
  143. package/dist/components/Company/PaySchedule/_parts/Edit.js.map +1 -1
  144. package/dist/components/Company/PaySchedule/usePaySchedule.d.ts +4 -5
  145. package/dist/components/Company/PaySchedule/usePaySchedule.js +6 -5
  146. package/dist/components/Company/PaySchedule/usePaySchedule.js.map +1 -1
  147. package/dist/components/Company/StateTaxes/StateTaxesForm/Actions.js +6 -5
  148. package/dist/components/Company/StateTaxes/StateTaxesForm/Actions.js.map +1 -1
  149. package/dist/components/Company/StateTaxes/StateTaxesForm/StateTaxesForm.js +33 -33
  150. package/dist/components/Company/StateTaxes/StateTaxesForm/StateTaxesForm.js.map +1 -1
  151. package/dist/components/Company/StateTaxes/StateTaxesForm/context.js +4 -3
  152. package/dist/components/Company/StateTaxes/StateTaxesForm/context.js.map +1 -1
  153. package/dist/components/Company/StateTaxes/StateTaxesList/Actions.js +7 -6
  154. package/dist/components/Company/StateTaxes/StateTaxesList/Actions.js.map +1 -1
  155. package/dist/components/Company/StateTaxes/StateTaxesList/List.js +4 -3
  156. package/dist/components/Company/StateTaxes/StateTaxesList/List.js.map +1 -1
  157. package/dist/components/Company/StateTaxes/StateTaxesList/StateTaxesList.js +14 -14
  158. package/dist/components/Company/StateTaxes/StateTaxesList/StateTaxesList.js.map +1 -1
  159. package/dist/components/Company/StateTaxes/StateTaxesList/context.d.ts +2 -2
  160. package/dist/components/Company/StateTaxes/StateTaxesList/context.js +4 -3
  161. package/dist/components/Company/StateTaxes/StateTaxesList/context.js.map +1 -1
  162. package/dist/components/Contractor/Address/Form.js +4 -4
  163. package/dist/components/Contractor/Address/useAddress.js +6 -5
  164. package/dist/components/Contractor/Address/useAddress.js.map +1 -1
  165. package/dist/components/Contractor/PaymentMethod/BankAccountForm.js +3 -2
  166. package/dist/components/Contractor/PaymentMethod/BankAccountForm.js.map +1 -1
  167. package/dist/components/Contractor/Payments/CreatePayment/CreatePaymentPresentation.js +65 -65
  168. package/dist/components/Contractor/Payments/CreatePayment/CreatePaymentPresentation.js.map +1 -1
  169. package/dist/components/Contractor/Payments/CreatePayment/PreviewPresentation.js +80 -80
  170. package/dist/components/Contractor/Payments/CreatePayment/PreviewPresentation.js.map +1 -1
  171. package/dist/components/Contractor/Payments/PaymentStatement/PaymentStatement.js +10 -10
  172. package/dist/components/Contractor/Payments/PaymentStatement/PaymentStatement.js.map +1 -1
  173. package/dist/components/Contractor/Payments/PaymentStatement/PaymentStatementPresentation.js +69 -79
  174. package/dist/components/Contractor/Payments/PaymentStatement/PaymentStatementPresentation.js.map +1 -1
  175. package/dist/components/Contractor/Payments/PaymentStatement/PaymentStatementPresentation.module.scss.js +10 -12
  176. package/dist/components/Contractor/Payments/PaymentStatement/PaymentStatementPresentation.module.scss.js.map +1 -1
  177. package/dist/components/Contractor/Payments/PaymentSummary/PaymentSummaryPresentation.js +45 -45
  178. package/dist/components/Contractor/Payments/PaymentSummary/PaymentSummaryPresentation.js.map +1 -1
  179. package/dist/components/Contractor/Payments/PaymentsList/PaymentsListPresentation.js +63 -63
  180. package/dist/components/Contractor/Payments/PaymentsList/PaymentsListPresentation.js.map +1 -1
  181. package/dist/components/Contractor/Payments/PaymentsList/PaymentsListPresentation.module.scss.js +4 -4
  182. package/dist/components/Contractor/Profile/useContractorProfile.js +3 -2
  183. package/dist/components/Contractor/Profile/useContractorProfile.js.map +1 -1
  184. package/dist/components/Employee/Compensation/Actions.js +1 -1
  185. package/dist/components/Employee/Compensation/Compensation.js +79 -76
  186. package/dist/components/Employee/Compensation/Compensation.js.map +1 -1
  187. package/dist/components/Employee/Compensation/List.js +6 -5
  188. package/dist/components/Employee/Compensation/List.js.map +1 -1
  189. package/dist/components/Employee/Dashboard/BasicDetailsView.d.ts +13 -0
  190. package/dist/components/Employee/Dashboard/BasicDetailsView.js +107 -0
  191. package/dist/components/Employee/Dashboard/BasicDetailsView.js.map +1 -0
  192. package/dist/components/Employee/Dashboard/Dashboard.d.ts +5 -0
  193. package/dist/components/Employee/Dashboard/Dashboard.js +146 -0
  194. package/dist/components/Employee/Dashboard/Dashboard.js.map +1 -0
  195. package/dist/components/Employee/Dashboard/DashboardComponents.d.ts +5 -0
  196. package/dist/components/Employee/Dashboard/DashboardComponents.js +12 -0
  197. package/dist/components/Employee/Dashboard/DashboardComponents.js.map +1 -0
  198. package/dist/components/Employee/Dashboard/DashboardFlow.d.ts +5 -0
  199. package/dist/components/Employee/Dashboard/DashboardFlow.js +25 -0
  200. package/dist/components/Employee/Dashboard/DashboardFlow.js.map +1 -0
  201. package/dist/components/Employee/Dashboard/DocumentsView.d.ts +7 -0
  202. package/dist/components/Employee/Dashboard/DocumentsView.js +51 -0
  203. package/dist/components/Employee/Dashboard/DocumentsView.js.map +1 -0
  204. package/dist/components/Employee/Dashboard/JobAndPayView.d.ts +22 -0
  205. package/dist/components/Employee/Dashboard/JobAndPayView.js +211 -0
  206. package/dist/components/Employee/Dashboard/JobAndPayView.js.map +1 -0
  207. package/dist/components/Employee/Dashboard/TaxesView.d.ts +13 -0
  208. package/dist/components/Employee/Dashboard/TaxesView.js +97 -0
  209. package/dist/components/Employee/Dashboard/TaxesView.js.map +1 -0
  210. package/dist/components/Employee/Dashboard/dashboardStateMachine.d.ts +3 -0
  211. package/dist/components/Employee/Dashboard/dashboardStateMachine.js +8 -0
  212. package/dist/components/Employee/Dashboard/dashboardStateMachine.js.map +1 -0
  213. package/dist/components/Employee/Dashboard/hooks/index.d.ts +9 -0
  214. package/dist/components/Employee/Dashboard/hooks/useEmployeeBasicDetails.d.ts +20 -0
  215. package/dist/components/Employee/Dashboard/hooks/useEmployeeBasicDetails.js +29 -0
  216. package/dist/components/Employee/Dashboard/hooks/useEmployeeBasicDetails.js.map +1 -0
  217. package/dist/components/Employee/Dashboard/hooks/useEmployeeCompensation.d.ts +30 -0
  218. package/dist/components/Employee/Dashboard/hooks/useEmployeeCompensation.js +52 -0
  219. package/dist/components/Employee/Dashboard/hooks/useEmployeeCompensation.js.map +1 -0
  220. package/dist/components/Employee/Dashboard/hooks/useEmployeeForms.d.ts +16 -0
  221. package/dist/components/Employee/Dashboard/hooks/useEmployeeForms.js +22 -0
  222. package/dist/components/Employee/Dashboard/hooks/useEmployeeForms.js.map +1 -0
  223. package/dist/components/Employee/Dashboard/hooks/useEmployeeTaxes.d.ts +20 -0
  224. package/dist/components/Employee/Dashboard/hooks/useEmployeeTaxes.js +24 -0
  225. package/dist/components/Employee/Dashboard/hooks/useEmployeeTaxes.js.map +1 -0
  226. package/dist/components/Employee/Dashboard/index.d.ts +14 -0
  227. package/dist/components/Employee/Deductions/DeductionsForm/ChildSupportForm.js +3 -2
  228. package/dist/components/Employee/Deductions/DeductionsForm/ChildSupportForm.js.map +1 -1
  229. package/dist/components/Employee/Deductions/DeductionsForm/CustomDeductionForm.js +3 -2
  230. package/dist/components/Employee/Deductions/DeductionsForm/CustomDeductionForm.js.map +1 -1
  231. package/dist/components/Employee/Deductions/DeductionsForm/GarnishmentForm.js +3 -2
  232. package/dist/components/Employee/Deductions/DeductionsForm/GarnishmentForm.js.map +1 -1
  233. package/dist/components/Employee/DocumentSigner/DocumentList/Actions.js +5 -4
  234. package/dist/components/Employee/DocumentSigner/DocumentList/Actions.js.map +1 -1
  235. package/dist/components/Employee/DocumentSigner/DocumentList/useDocumentList.js +4 -3
  236. package/dist/components/Employee/DocumentSigner/DocumentList/useDocumentList.js.map +1 -1
  237. package/dist/components/Employee/DocumentSigner/EmploymentEligibility/EmploymentEligibility.js +22 -22
  238. package/dist/components/Employee/DocumentSigner/EmploymentEligibility/EmploymentEligibility.js.map +1 -1
  239. package/dist/components/Employee/DocumentSigner/I9SignatureForm/I9SignatureForm.js +8 -8
  240. package/dist/components/Employee/DocumentSigner/SignatureForm/useSignatureForm.js +4 -3
  241. package/dist/components/Employee/DocumentSigner/SignatureForm/useSignatureForm.js.map +1 -1
  242. package/dist/components/Employee/EmployeeList/EmployeeList.d.ts +2 -3
  243. package/dist/components/Employee/EmployeeList/EmployeeList.js.map +1 -1
  244. package/dist/components/Employee/FederalTaxes/Actions.js +3 -2
  245. package/dist/components/Employee/FederalTaxes/Actions.js.map +1 -1
  246. package/dist/components/Employee/FederalTaxes/FederalForm.js +5 -4
  247. package/dist/components/Employee/FederalTaxes/FederalForm.js.map +1 -1
  248. package/dist/components/Employee/FederalTaxes/useFederalTaxes.js +4 -3
  249. package/dist/components/Employee/FederalTaxes/useFederalTaxes.js.map +1 -1
  250. package/dist/components/Employee/PaymentMethod/Actions.js +6 -5
  251. package/dist/components/Employee/PaymentMethod/Actions.js.map +1 -1
  252. package/dist/components/Employee/PaymentMethod/BankAccountsList.js +4 -4
  253. package/dist/components/Employee/PaymentMethod/Split.js +1 -1
  254. package/dist/components/Employee/PaymentMethod/usePaymentMethod.js +6 -5
  255. package/dist/components/Employee/PaymentMethod/usePaymentMethod.js.map +1 -1
  256. package/dist/components/Employee/Profile/Actions.js +7 -6
  257. package/dist/components/Employee/Profile/Actions.js.map +1 -1
  258. package/dist/components/Employee/Profile/AdminPersonalDetails.js +5 -4
  259. package/dist/components/Employee/Profile/AdminPersonalDetails.js.map +1 -1
  260. package/dist/components/Employee/Profile/PersonalDetailsInputs.js +9 -8
  261. package/dist/components/Employee/Profile/PersonalDetailsInputs.js.map +1 -1
  262. package/dist/components/Employee/Profile/useProfile.js +4 -3
  263. package/dist/components/Employee/Profile/useProfile.js.map +1 -1
  264. package/dist/components/Employee/StateTaxes/Actions.js +7 -6
  265. package/dist/components/Employee/StateTaxes/Actions.js.map +1 -1
  266. package/dist/components/Employee/StateTaxes/useStateTaxes.js +4 -3
  267. package/dist/components/Employee/StateTaxes/useStateTaxes.js.map +1 -1
  268. package/dist/components/Employee/Taxes/Actions.js +8 -7
  269. package/dist/components/Employee/Taxes/Actions.js.map +1 -1
  270. package/dist/components/Employee/Taxes/FederalForm.js +5 -4
  271. package/dist/components/Employee/Taxes/FederalForm.js.map +1 -1
  272. package/dist/components/Employee/Taxes/useTaxes.js +4 -3
  273. package/dist/components/Employee/Taxes/useTaxes.js.map +1 -1
  274. package/dist/components/Employee/index.d.ts +2 -0
  275. package/dist/components/Employee/index.js +28 -26
  276. package/dist/components/Employee/index.js.map +1 -1
  277. package/dist/components/Payroll/GrossUpModal/GrossUpModal.js +3 -2
  278. package/dist/components/Payroll/GrossUpModal/GrossUpModal.js.map +1 -1
  279. package/dist/components/Payroll/OffCyclePayPeriodDateForm/OffCyclePayPeriodDateFormPresentation.js +11 -10
  280. package/dist/components/Payroll/OffCyclePayPeriodDateForm/OffCyclePayPeriodDateFormPresentation.js.map +1 -1
  281. package/dist/components/Payroll/OffCycleReasonSelection/OffCycleReasonSelectionPresentation.js +1 -0
  282. package/dist/components/Payroll/OffCycleReasonSelection/OffCycleReasonSelectionPresentation.js.map +1 -1
  283. package/dist/components/Payroll/OffCycleTaxWithholdingModal/OffCycleTaxWithholdingModal.js +3 -2
  284. package/dist/components/Payroll/OffCycleTaxWithholdingModal/OffCycleTaxWithholdingModal.js.map +1 -1
  285. package/dist/components/Payroll/PayrollConfiguration/PayrollConfigurationPresentation.d.ts +1 -1
  286. package/dist/components/Payroll/PayrollConfiguration/PayrollConfigurationPresentation.js.map +1 -1
  287. package/dist/components/Payroll/PayrollConfiguration/usePayrollConfigurationData.d.ts +2 -2
  288. package/dist/components/Payroll/PayrollConfiguration/usePayrollConfigurationData.js +16 -16
  289. package/dist/components/Payroll/PayrollConfiguration/usePayrollConfigurationData.js.map +1 -1
  290. package/dist/components/Payroll/PayrollEditEmployee/PayrollEditEmployeePresentation.d.ts +1 -1
  291. package/dist/components/Payroll/PayrollEditEmployee/PayrollEditEmployeePresentation.js.map +1 -1
  292. package/dist/components/Payroll/PayrollHistory/PayrollHistoryPresentation.js +78 -77
  293. package/dist/components/Payroll/PayrollHistory/PayrollHistoryPresentation.js.map +1 -1
  294. package/dist/components/Payroll/PayrollList/PayrollList.js +1 -1
  295. package/dist/components/Payroll/PayrollList/PayrollList.js.map +1 -1
  296. package/dist/components/Payroll/PayrollList/PayrollListPresentation.d.ts +2 -2
  297. package/dist/components/Payroll/PayrollList/PayrollListPresentation.js +72 -70
  298. package/dist/components/Payroll/PayrollList/PayrollListPresentation.js.map +1 -1
  299. package/dist/components/Payroll/PayrollList/PayrollListPresentation.module.scss.js +7 -9
  300. package/dist/components/Payroll/PayrollList/PayrollListPresentation.module.scss.js.map +1 -1
  301. package/dist/components/Payroll/PayrollOverview/PayrollOverviewPresentation.js +18 -18
  302. package/dist/components/Payroll/PayrollOverview/PayrollOverviewPresentation.js.map +1 -1
  303. package/dist/components/Payroll/PayrollReceipts/PayrollReceiptsPresentation.js +105 -115
  304. package/dist/components/Payroll/PayrollReceipts/PayrollReceiptsPresentation.js.map +1 -1
  305. package/dist/components/Payroll/PayrollReceipts/PayrollReceiptsPresentation.module.scss.js +16 -18
  306. package/dist/components/Payroll/PayrollReceipts/PayrollReceiptsPresentation.module.scss.js.map +1 -1
  307. package/dist/components/Payroll/TransitionCreation/TransitionCreation.js +7 -7
  308. package/dist/components/Payroll/TransitionCreation/TransitionCreation.js.map +1 -1
  309. package/dist/components/Payroll/TransitionPayrollAlert/TransitionPayrollAlert.js +13 -13
  310. package/dist/components/Payroll/TransitionPayrollAlert/TransitionPayrollAlert.js.map +1 -1
  311. package/dist/components/Payroll/helpers.d.ts +1 -1
  312. package/dist/components/Payroll/helpers.js.map +1 -1
  313. package/dist/components/Payroll/usePreparedPayrollData.d.ts +2 -2
  314. package/dist/components/Payroll/usePreparedPayrollData.js +8 -7
  315. package/dist/components/Payroll/usePreparedPayrollData.js.map +1 -1
  316. package/dist/components/UNSTABLE_Hooks/form/fields/CheckboxHookField.js +9 -8
  317. package/dist/components/UNSTABLE_Hooks/form/fields/CheckboxHookField.js.map +1 -1
  318. package/dist/components/UNSTABLE_Hooks/form/fields/NumberInputHookField.js +12 -11
  319. package/dist/components/UNSTABLE_Hooks/form/fields/NumberInputHookField.js.map +1 -1
  320. package/dist/components/UNSTABLE_Hooks/form/fields/RadioGroupHookField.js +3 -2
  321. package/dist/components/UNSTABLE_Hooks/form/fields/RadioGroupHookField.js.map +1 -1
  322. package/dist/components/UNSTABLE_Hooks/form/fields/SelectHookField.js +8 -7
  323. package/dist/components/UNSTABLE_Hooks/form/fields/SelectHookField.js.map +1 -1
  324. package/dist/components/UNSTABLE_Hooks/form/fields/SwitchHookField.js +9 -8
  325. package/dist/components/UNSTABLE_Hooks/form/fields/SwitchHookField.js.map +1 -1
  326. package/dist/components/UNSTABLE_Hooks/form/fields/TextInputHookField.js +13 -12
  327. package/dist/components/UNSTABLE_Hooks/form/fields/TextInputHookField.js.map +1 -1
  328. package/dist/components/UNSTABLE_Hooks/form/index.d.ts +0 -3
  329. package/dist/components/UNSTABLE_Hooks/form/resolveFieldError.js +8 -7
  330. package/dist/components/UNSTABLE_Hooks/form/resolveFieldError.js.map +1 -1
  331. package/dist/components/UNSTABLE_Hooks/form/useFieldErrorMessage.js +7 -7
  332. package/dist/components/UNSTABLE_Hooks/form/useFieldErrorMessage.js.map +1 -1
  333. package/dist/components/UNSTABLE_Hooks/hooks/useCompensationForm/CompensationForm.js +4 -4
  334. package/dist/components/UNSTABLE_Hooks/hooks/useCompensationForm/compensationSchema.js +1 -1
  335. package/dist/components/UNSTABLE_Hooks/hooks/useCompensationForm/useCompensationForm.js +20 -20
  336. package/dist/components/UNSTABLE_Hooks/hooks/useCompensationForm/useCompensationForm.js.map +1 -1
  337. package/dist/components/UNSTABLE_Hooks/hooks/useEmployeeDetailsForm/EmployeeDetailsForm.js +1 -1
  338. package/dist/components/UNSTABLE_Hooks/hooks/usePayScheduleForm/PayScheduleForm.d.ts +5 -0
  339. package/dist/components/UNSTABLE_Hooks/hooks/usePayScheduleForm/PayScheduleForm.js +172 -0
  340. package/dist/components/UNSTABLE_Hooks/hooks/usePayScheduleForm/PayScheduleForm.js.map +1 -0
  341. package/dist/components/UNSTABLE_Hooks/hooks/usePayScheduleForm/PayScheduleForm.module.scss.js +14 -0
  342. package/dist/components/UNSTABLE_Hooks/hooks/usePayScheduleForm/PayScheduleForm.module.scss.js.map +1 -0
  343. package/dist/components/UNSTABLE_Hooks/hooks/usePayScheduleForm/fields.d.ts +23 -0
  344. package/dist/components/UNSTABLE_Hooks/hooks/usePayScheduleForm/fields.js +37 -0
  345. package/dist/components/UNSTABLE_Hooks/hooks/usePayScheduleForm/fields.js.map +1 -0
  346. package/dist/components/UNSTABLE_Hooks/hooks/usePayScheduleForm/index.d.ts +7 -0
  347. package/dist/components/UNSTABLE_Hooks/hooks/usePayScheduleForm/payScheduleSchema.d.ts +55 -0
  348. package/dist/components/UNSTABLE_Hooks/hooks/usePayScheduleForm/payScheduleSchema.js +54 -0
  349. package/dist/components/UNSTABLE_Hooks/hooks/usePayScheduleForm/payScheduleSchema.js.map +1 -0
  350. package/dist/components/UNSTABLE_Hooks/hooks/usePayScheduleForm/usePayScheduleForm.d.ts +69 -0
  351. package/dist/components/UNSTABLE_Hooks/hooks/usePayScheduleForm/usePayScheduleForm.js +180 -0
  352. package/dist/components/UNSTABLE_Hooks/hooks/usePayScheduleForm/usePayScheduleForm.js.map +1 -0
  353. package/dist/components/UNSTABLE_Hooks/hooks/useSignCompanyForm/SignCompanyForm.d.ts +5 -0
  354. package/dist/components/UNSTABLE_Hooks/hooks/useSignCompanyForm/SignCompanyForm.js +69 -0
  355. package/dist/components/UNSTABLE_Hooks/hooks/useSignCompanyForm/SignCompanyForm.js.map +1 -0
  356. package/dist/components/UNSTABLE_Hooks/hooks/useSignCompanyForm/fields.d.ts +9 -0
  357. package/dist/components/UNSTABLE_Hooks/hooks/useSignCompanyForm/fields.js +14 -0
  358. package/dist/components/UNSTABLE_Hooks/hooks/useSignCompanyForm/fields.js.map +1 -0
  359. package/dist/components/UNSTABLE_Hooks/hooks/useSignCompanyForm/index.d.ts +7 -0
  360. package/dist/components/UNSTABLE_Hooks/hooks/useSignCompanyForm/signCompanyFormSchema.d.ts +25 -0
  361. package/dist/components/UNSTABLE_Hooks/hooks/useSignCompanyForm/signCompanyFormSchema.js +24 -0
  362. package/dist/components/UNSTABLE_Hooks/hooks/useSignCompanyForm/signCompanyFormSchema.js.map +1 -0
  363. package/dist/components/UNSTABLE_Hooks/hooks/useSignCompanyForm/useSignCompanyForm.d.ts +57 -0
  364. package/dist/components/UNSTABLE_Hooks/hooks/useSignCompanyForm/useSignCompanyForm.js +101 -0
  365. package/dist/components/UNSTABLE_Hooks/hooks/useSignCompanyForm/useSignCompanyForm.js.map +1 -0
  366. package/dist/components/UNSTABLE_Hooks/hooks/useSignEmployeeForm/SignEmployeeForm.d.ts +5 -0
  367. package/dist/components/UNSTABLE_Hooks/hooks/useSignEmployeeForm/SignEmployeeForm.js +71 -0
  368. package/dist/components/UNSTABLE_Hooks/hooks/useSignEmployeeForm/SignEmployeeForm.js.map +1 -0
  369. package/dist/components/UNSTABLE_Hooks/hooks/useSignEmployeeForm/SignEmployeeI9Form.d.ts +5 -0
  370. package/dist/components/UNSTABLE_Hooks/hooks/useSignEmployeeForm/SignEmployeeI9Form.js +179 -0
  371. package/dist/components/UNSTABLE_Hooks/hooks/useSignEmployeeForm/SignEmployeeI9Form.js.map +1 -0
  372. package/dist/components/UNSTABLE_Hooks/hooks/useSignEmployeeForm/fields.d.ts +53 -0
  373. package/dist/components/UNSTABLE_Hooks/hooks/useSignEmployeeForm/fields.js +164 -0
  374. package/dist/components/UNSTABLE_Hooks/hooks/useSignEmployeeForm/fields.js.map +1 -0
  375. package/dist/components/UNSTABLE_Hooks/hooks/useSignEmployeeForm/index.d.ts +9 -0
  376. package/dist/components/UNSTABLE_Hooks/hooks/useSignEmployeeForm/signEmployeeFormSchema.d.ts +150 -0
  377. package/dist/components/UNSTABLE_Hooks/hooks/useSignEmployeeForm/signEmployeeFormSchema.js +152 -0
  378. package/dist/components/UNSTABLE_Hooks/hooks/useSignEmployeeForm/signEmployeeFormSchema.js.map +1 -0
  379. package/dist/components/UNSTABLE_Hooks/hooks/useSignEmployeeForm/useSignEmployeeForm.d.ts +151 -0
  380. package/dist/components/UNSTABLE_Hooks/hooks/useSignEmployeeForm/useSignEmployeeForm.js +172 -0
  381. package/dist/components/UNSTABLE_Hooks/hooks/useSignEmployeeForm/useSignEmployeeForm.js.map +1 -0
  382. package/dist/components/UNSTABLE_Hooks/hooks/useWorkAddressForm/WorkAddressForm.js +1 -1
  383. package/dist/components/UNSTABLE_Hooks/index.d.ts +4 -1
  384. package/dist/components/UNSTABLE_TimeOff/HolidaySelectionForm/HolidaySelectionForm.js +40 -79
  385. package/dist/components/UNSTABLE_TimeOff/HolidaySelectionForm/HolidaySelectionForm.js.map +1 -1
  386. package/dist/components/UNSTABLE_TimeOff/HolidaySelectionForm/HolidaySelectionFormPresentation.d.ts +2 -0
  387. package/dist/components/UNSTABLE_TimeOff/{TimeOffManagement/SelectHolidays/SelectHolidaysPresentation.js → HolidaySelectionForm/HolidaySelectionFormPresentation.js} +19 -19
  388. package/dist/components/UNSTABLE_TimeOff/HolidaySelectionForm/HolidaySelectionFormPresentation.js.map +1 -0
  389. package/dist/components/UNSTABLE_TimeOff/{TimeOffManagement/SelectHolidays/SelectHolidaysTypes.d.ts → HolidaySelectionForm/HolidaySelectionFormTypes.d.ts} +4 -4
  390. package/dist/components/UNSTABLE_TimeOff/PolicyTypeSelector/PolicyTypeSelector.d.ts +3 -1
  391. package/dist/components/UNSTABLE_TimeOff/PolicyTypeSelector/PolicyTypeSelector.js +29 -0
  392. package/dist/components/UNSTABLE_TimeOff/PolicyTypeSelector/PolicyTypeSelector.js.map +1 -0
  393. package/dist/components/UNSTABLE_TimeOff/PolicyTypeSelector/PolicyTypeSelectorPresentation.d.ts +2 -0
  394. package/dist/components/UNSTABLE_TimeOff/{TimeOffManagement/SelectPolicyType/SelectPolicyTypePresentation.js → PolicyTypeSelector/PolicyTypeSelectorPresentation.js} +8 -8
  395. package/dist/components/UNSTABLE_TimeOff/PolicyTypeSelector/PolicyTypeSelectorPresentation.js.map +1 -0
  396. package/dist/components/UNSTABLE_TimeOff/PolicyTypeSelector/PolicyTypeSelectorTypes.d.ts +6 -0
  397. package/dist/components/UNSTABLE_TimeOff/TimeOffFlow/TimeOffFlowComponents.js +8 -8
  398. package/dist/components/UNSTABLE_TimeOff/TimeOffFlow/TimeOffFlowComponents.js.map +1 -1
  399. package/dist/components/UNSTABLE_TimeOff/TimeOffManagement/PolicyConfigurationForm/PolicyConfigurationForm.d.ts +8 -0
  400. package/dist/components/UNSTABLE_TimeOff/TimeOffManagement/PolicyConfigurationForm/PolicyConfigurationForm.js +71 -0
  401. package/dist/components/UNSTABLE_TimeOff/TimeOffManagement/PolicyConfigurationForm/PolicyConfigurationForm.js.map +1 -0
  402. package/dist/components/UNSTABLE_TimeOff/TimeOffManagement/PolicyConfigurationForm/PolicyConfigurationForm.module.scss.js +12 -0
  403. package/dist/components/UNSTABLE_TimeOff/TimeOffManagement/PolicyConfigurationForm/PolicyConfigurationForm.module.scss.js.map +1 -0
  404. package/dist/components/UNSTABLE_TimeOff/TimeOffManagement/PolicyConfigurationForm/PolicyConfigurationFormPresentation.d.ts +2 -0
  405. package/dist/components/UNSTABLE_TimeOff/TimeOffManagement/PolicyConfigurationForm/PolicyConfigurationFormPresentation.js +206 -0
  406. package/dist/components/UNSTABLE_TimeOff/TimeOffManagement/PolicyConfigurationForm/PolicyConfigurationFormPresentation.js.map +1 -0
  407. package/dist/components/UNSTABLE_TimeOff/TimeOffManagement/PolicyConfigurationForm/PolicyConfigurationFormTypes.d.ts +20 -0
  408. package/dist/components/UNSTABLE_TimeOff/TimeOffManagement/PolicyConfigurationForm/index.d.ts +6 -0
  409. package/dist/components/UNSTABLE_TimeOff/index.d.ts +4 -4
  410. package/dist/components/UNSTABLE_TimeOff/index.js +10 -10
  411. package/dist/components/UNSTABLE_TimeOff/shared/EmployeeTable/EmployeeTable.d.ts +2 -0
  412. package/dist/components/UNSTABLE_TimeOff/{TimeOffManagement/shared → shared}/EmployeeTable/EmployeeTableTypes.d.ts +3 -3
  413. package/dist/components/UNSTABLE_TimeOff/shared/holidayHelpers.d.ts +30 -0
  414. package/dist/components/UNSTABLE_TimeOff/shared/holidayHelpers.js +97 -0
  415. package/dist/components/UNSTABLE_TimeOff/shared/holidayHelpers.js.map +1 -0
  416. package/dist/contexts/ComponentAdapter/adapters/defaultComponentAdapter.js +52 -50
  417. package/dist/contexts/ComponentAdapter/adapters/defaultComponentAdapter.js.map +1 -1
  418. package/dist/contexts/ComponentAdapter/componentAdapterTypes.d.ts +1 -0
  419. package/dist/contexts/ComponentAdapter/createComponentsWithDefaults.d.ts +10 -0
  420. package/dist/contexts/ComponentAdapter/createComponentsWithDefaults.js +28 -21
  421. package/dist/contexts/ComponentAdapter/createComponentsWithDefaults.js.map +1 -1
  422. package/dist/contexts/ComponentAdapter/useComponentContext.d.ts +2 -0
  423. package/dist/contexts/ComponentAdapter/useComponentContext.js.map +1 -1
  424. package/dist/contexts/GustoProvider/GustoProviderCustomUIAdapter.js +3 -2
  425. package/dist/contexts/GustoProvider/GustoProviderCustomUIAdapter.js.map +1 -1
  426. package/dist/contexts/ThemeProvider/theme.d.ts +2 -0
  427. package/dist/contexts/ThemeProvider/theme.js +4 -2
  428. package/dist/contexts/ThemeProvider/theme.js.map +1 -1
  429. package/dist/helpers/buildQueryErrorHandling.d.ts +22 -0
  430. package/dist/helpers/buildQueryErrorHandling.js +11 -0
  431. package/dist/helpers/buildQueryErrorHandling.js.map +1 -0
  432. package/dist/helpers/dateFormatting.d.ts +2 -0
  433. package/dist/helpers/dateFormatting.js +38 -33
  434. package/dist/helpers/dateFormatting.js.map +1 -1
  435. package/dist/helpers/formattedStrings.js +40 -33
  436. package/dist/helpers/formattedStrings.js.map +1 -1
  437. package/dist/i18n/I18n.js +9 -9
  438. package/dist/i18n/I18n.js.map +1 -1
  439. package/dist/i18n/en/Company.TimeOff.CreateTimeOffPolicy.json.js +9 -9
  440. package/dist/i18n/en/Company.TimeOff.HolidayPolicy.json.js +18 -16
  441. package/dist/i18n/en/Company.TimeOff.HolidayPolicy.json.js.map +1 -1
  442. package/dist/i18n/en/Employee.Dashboard.json.js +26 -0
  443. package/dist/i18n/en/Employee.Dashboard.json.js.map +1 -0
  444. package/dist/i18n/en/Payroll.PayrollHistory.json.js +2 -2
  445. package/dist/i18n/en/Payroll.PayrollList.json.js +15 -15
  446. package/dist/i18n/en/UNSTABLE.PayScheduleForm.json.js +24 -0
  447. package/dist/i18n/en/UNSTABLE.PayScheduleForm.json.js.map +1 -0
  448. package/dist/i18n/en/UNSTABLE.SignCompanyForm.json.js +20 -0
  449. package/dist/i18n/en/UNSTABLE.SignCompanyForm.json.js.map +1 -0
  450. package/dist/i18n/en/UNSTABLE.SignEmployeeForm.json.js +22 -0
  451. package/dist/i18n/en/UNSTABLE.SignEmployeeForm.json.js.map +1 -0
  452. package/dist/i18n/en/UNSTABLE.SignEmployeeI9Form.json.js +70 -0
  453. package/dist/i18n/en/UNSTABLE.SignEmployeeI9Form.json.js.map +1 -0
  454. package/dist/i18n/en/common.json.d.ts +3 -1
  455. package/dist/i18n/en/common.json.js +5 -5
  456. package/dist/shared/constants.d.ts +10 -0
  457. package/dist/shared/constants.js +15 -10
  458. package/dist/shared/constants.js.map +1 -1
  459. package/dist/style.css +1 -1
  460. package/dist/types/i18next.d.ts +319 -10
  461. package/dist/types/sdkHooks.d.ts +1 -3
  462. package/docs/reference/endpoint-inventory.json +80 -2
  463. package/package.json +14 -14
  464. package/dist/components/UNSTABLE_Hooks/form/composeFormSchema.d.ts +0 -26
  465. package/dist/components/UNSTABLE_Hooks/form/deriveFieldsMetadata.d.ts +0 -3
  466. package/dist/components/UNSTABLE_Hooks/form/deriveFieldsMetadata.js +0 -14
  467. package/dist/components/UNSTABLE_Hooks/form/deriveFieldsMetadata.js.map +0 -1
  468. package/dist/components/UNSTABLE_Hooks/form/resolveRequiredFields.d.ts +0 -6
  469. package/dist/components/UNSTABLE_TimeOff/PolicyDetailsForm/PolicyDetailsForm.d.ts +0 -6
  470. package/dist/components/UNSTABLE_TimeOff/PolicyDetailsForm/PolicyDetailsForm.js +0 -50
  471. package/dist/components/UNSTABLE_TimeOff/PolicyDetailsForm/PolicyDetailsForm.js.map +0 -1
  472. package/dist/components/UNSTABLE_TimeOff/TimeOffManagement/SelectHolidays/SelectHolidaysPresentation.d.ts +0 -2
  473. package/dist/components/UNSTABLE_TimeOff/TimeOffManagement/SelectHolidays/SelectHolidaysPresentation.js.map +0 -1
  474. package/dist/components/UNSTABLE_TimeOff/TimeOffManagement/SelectHolidays/index.d.ts +0 -3
  475. package/dist/components/UNSTABLE_TimeOff/TimeOffManagement/SelectPolicyType/SelectPolicyType.d.ts +0 -7
  476. package/dist/components/UNSTABLE_TimeOff/TimeOffManagement/SelectPolicyType/SelectPolicyType.js +0 -27
  477. package/dist/components/UNSTABLE_TimeOff/TimeOffManagement/SelectPolicyType/SelectPolicyType.js.map +0 -1
  478. package/dist/components/UNSTABLE_TimeOff/TimeOffManagement/SelectPolicyType/SelectPolicyTypePresentation.d.ts +0 -2
  479. package/dist/components/UNSTABLE_TimeOff/TimeOffManagement/SelectPolicyType/SelectPolicyTypePresentation.js.map +0 -1
  480. package/dist/components/UNSTABLE_TimeOff/TimeOffManagement/SelectPolicyType/SelectPolicyTypeTypes.d.ts +0 -6
  481. package/dist/components/UNSTABLE_TimeOff/TimeOffManagement/SelectPolicyType/index.d.ts +0 -5
  482. package/dist/components/UNSTABLE_TimeOff/TimeOffManagement/shared/EmployeeTable/EmployeeTable.d.ts +0 -2
  483. package/dist/helpers/requiredIf.d.ts +0 -13
  484. /package/dist/components/UNSTABLE_TimeOff/{TimeOffManagement/shared → shared}/EmployeeTable/index.d.ts +0 -0
  485. /package/dist/components/{UNSTABLE_Hooks/form/deriveFieldsMetadata.test.d.ts → UNSTABLE_TimeOff/shared/holidayHelpers.test.d.ts} +0 -0
@@ -1,70 +1,81 @@
1
- import { jsx as e, jsxs as D } from "react/jsx-runtime";
2
- import { useFieldIds as F } from "../hooks/useFieldIds.js";
3
- import r from "./Checkbox.module.scss.js";
4
- import { CheckboxDefaults as M } from "./CheckboxTypes.js";
5
- import { applyMissingDefaults as j } from "../../../../helpers/applyMissingDefaults.js";
6
- import { HorizontalFieldLayout as B } from "../../HorizontalFieldLayout/HorizontalFieldLayout.js";
7
- import H from "../../../../assets/icons/checkbox.svg.js";
8
- const W = (a) => {
9
- const c = j(a, M), {
10
- name: d,
11
- label: t,
12
- description: s,
1
+ import { jsx as s, jsxs as D } from "react/jsx-runtime";
2
+ import F from "classnames";
3
+ import { useFieldIds as M } from "../hooks/useFieldIds.js";
4
+ import e from "./Checkbox.module.scss.js";
5
+ import { CheckboxDefaults as j } from "./CheckboxTypes.js";
6
+ import { applyMissingDefaults as B } from "../../../../helpers/applyMissingDefaults.js";
7
+ import { HorizontalFieldLayout as H } from "../../HorizontalFieldLayout/HorizontalFieldLayout.js";
8
+ import L from "../../../../assets/icons/checkbox.svg.js";
9
+ const A = (d) => {
10
+ const l = B(d, j), {
11
+ name: t,
12
+ label: n,
13
+ description: r,
13
14
  errorMessage: i,
14
- isRequired: l,
15
- inputRef: n,
16
- value: p,
17
- isInvalid: m,
18
- isDisabled: h,
19
- id: u,
20
- onChange: b,
15
+ isRequired: m,
16
+ inputRef: p,
17
+ value: o,
18
+ isInvalid: h,
19
+ isDisabled: a,
20
+ id: b,
21
+ onChange: u,
21
22
  onBlur: f,
22
23
  className: k,
23
24
  shouldVisuallyHideLabel: x,
24
25
  ...g
25
- } = c, { inputId: o, errorMessageId: v, descriptionId: y, ariaDescribedBy: I } = F({
26
- inputId: u,
26
+ } = l, { inputId: c, errorMessageId: v, descriptionId: y, ariaDescribedBy: I } = M({
27
+ inputId: b,
27
28
  errorMessage: i,
28
- description: s
29
+ description: r
29
30
  }), C = (N) => {
30
- b?.(N.target.checked);
31
+ u?.(N.target.checked);
31
32
  };
32
- return /* @__PURE__ */ e(
33
- B,
33
+ return /* @__PURE__ */ s(
34
+ H,
34
35
  {
35
- label: t,
36
- description: s,
36
+ label: n,
37
+ description: r,
37
38
  errorMessage: i,
38
- isRequired: l,
39
- htmlFor: o,
39
+ isRequired: m,
40
+ htmlFor: c,
40
41
  errorMessageId: v,
41
42
  descriptionId: y,
42
43
  shouldVisuallyHideLabel: x,
43
44
  className: k,
44
45
  ...g,
45
- children: /* @__PURE__ */ D("div", { className: r.checkboxWrapper, children: [
46
- /* @__PURE__ */ e(
47
- "input",
48
- {
49
- type: "checkbox",
50
- name: d,
51
- disabled: h,
52
- "aria-invalid": m,
53
- "aria-describedby": I,
54
- checked: p,
55
- id: o,
56
- ref: n,
57
- onBlur: f,
58
- onChange: C,
59
- className: r.checkboxInput
60
- }
61
- ),
62
- /* @__PURE__ */ e("div", { className: r.checkbox, children: /* @__PURE__ */ e(H, { className: r.check }) })
63
- ] })
46
+ children: /* @__PURE__ */ D(
47
+ "div",
48
+ {
49
+ className: F(
50
+ e.checkboxWrapper,
51
+ o && e.checked,
52
+ a && e.disabled
53
+ ),
54
+ children: [
55
+ /* @__PURE__ */ s(
56
+ "input",
57
+ {
58
+ type: "checkbox",
59
+ name: t,
60
+ disabled: a,
61
+ "aria-invalid": h,
62
+ "aria-describedby": I,
63
+ checked: o,
64
+ id: c,
65
+ ref: p,
66
+ onBlur: f,
67
+ onChange: C,
68
+ className: e.checkboxInput
69
+ }
70
+ ),
71
+ /* @__PURE__ */ s("div", { className: e.checkbox, children: /* @__PURE__ */ s(L, { className: e.check }) })
72
+ ]
73
+ }
74
+ )
64
75
  }
65
76
  );
66
77
  };
67
78
  export {
68
- W as Checkbox
79
+ A as Checkbox
69
80
  };
70
81
  //# sourceMappingURL=Checkbox.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Checkbox.js","sources":["../../../../../src/components/Common/UI/Checkbox/Checkbox.tsx"],"sourcesContent":["import type { ChangeEvent } from 'react'\nimport { useFieldIds } from '../hooks/useFieldIds'\nimport styles from './Checkbox.module.scss'\nimport type { CheckboxProps } from './CheckboxTypes'\nimport { CheckboxDefaults } from './CheckboxTypes'\nimport { applyMissingDefaults } from '@/helpers/applyMissingDefaults'\nimport { HorizontalFieldLayout } from '@/components/Common/HorizontalFieldLayout'\nimport IconChecked from '@/assets/icons/checkbox.svg?react'\n\nexport const Checkbox = (rawProps: CheckboxProps) => {\n const resolvedProps = applyMissingDefaults(rawProps, CheckboxDefaults)\n const {\n name,\n label,\n description,\n errorMessage,\n isRequired,\n inputRef,\n value,\n isInvalid,\n isDisabled,\n id,\n onChange,\n onBlur,\n className,\n shouldVisuallyHideLabel,\n ...otherProps\n } = resolvedProps\n const { inputId, errorMessageId, descriptionId, ariaDescribedBy } = useFieldIds({\n inputId: id,\n errorMessage,\n description,\n })\n\n const handleChange = (event: ChangeEvent<HTMLInputElement>) => {\n onChange?.(event.target.checked)\n }\n\n return (\n <HorizontalFieldLayout\n label={label}\n description={description}\n errorMessage={errorMessage}\n isRequired={isRequired}\n htmlFor={inputId}\n errorMessageId={errorMessageId}\n descriptionId={descriptionId}\n shouldVisuallyHideLabel={shouldVisuallyHideLabel}\n className={className}\n {...otherProps}\n >\n <div className={styles.checkboxWrapper}>\n <input\n type=\"checkbox\"\n name={name}\n disabled={isDisabled}\n aria-invalid={isInvalid}\n aria-describedby={ariaDescribedBy}\n checked={value}\n id={inputId}\n ref={inputRef}\n onBlur={onBlur}\n onChange={handleChange}\n className={styles.checkboxInput}\n />\n <div className={styles.checkbox}>\n <IconChecked className={styles.check} />\n </div>\n </div>\n </HorizontalFieldLayout>\n )\n}\n"],"names":["Checkbox","rawProps","resolvedProps","applyMissingDefaults","CheckboxDefaults","name","label","description","errorMessage","isRequired","inputRef","value","isInvalid","isDisabled","id","onChange","onBlur","className","shouldVisuallyHideLabel","otherProps","inputId","errorMessageId","descriptionId","ariaDescribedBy","useFieldIds","handleChange","event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AAA,QAAA;AAAA,QAEpB,gBAAAH,EAAC,OAAA,EAAI,WAAWG,EAAO,UACrB,4BAACC,GAAA,EAAY,WAAWD,EAAO,MAAA,CAAO,EAAA,CACxC;AAAA,MAAA,EAAA,CACF;AAAA,IAAA;AAAA,EAAA;AAGN;"}
1
+ {"version":3,"file":"Checkbox.js","sources":["../../../../../src/components/Common/UI/Checkbox/Checkbox.tsx"],"sourcesContent":["import type { ChangeEvent } from 'react'\nimport classNames from 'classnames'\nimport { useFieldIds } from '../hooks/useFieldIds'\nimport styles from './Checkbox.module.scss'\nimport type { CheckboxProps } from './CheckboxTypes'\nimport { CheckboxDefaults } from './CheckboxTypes'\nimport { applyMissingDefaults } from '@/helpers/applyMissingDefaults'\nimport { HorizontalFieldLayout } from '@/components/Common/HorizontalFieldLayout'\nimport IconChecked from '@/assets/icons/checkbox.svg?react'\n\nexport const Checkbox = (rawProps: CheckboxProps) => {\n const resolvedProps = applyMissingDefaults(rawProps, CheckboxDefaults)\n const {\n name,\n label,\n description,\n errorMessage,\n isRequired,\n inputRef,\n value,\n isInvalid,\n isDisabled,\n id,\n onChange,\n onBlur,\n className,\n shouldVisuallyHideLabel,\n ...otherProps\n } = resolvedProps\n const { inputId, errorMessageId, descriptionId, ariaDescribedBy } = useFieldIds({\n inputId: id,\n errorMessage,\n description,\n })\n\n const handleChange = (event: ChangeEvent<HTMLInputElement>) => {\n onChange?.(event.target.checked)\n }\n\n return (\n <HorizontalFieldLayout\n label={label}\n description={description}\n errorMessage={errorMessage}\n isRequired={isRequired}\n htmlFor={inputId}\n errorMessageId={errorMessageId}\n descriptionId={descriptionId}\n shouldVisuallyHideLabel={shouldVisuallyHideLabel}\n className={className}\n {...otherProps}\n >\n <div\n className={classNames(\n styles.checkboxWrapper,\n value && styles.checked,\n isDisabled && styles.disabled,\n )}\n >\n <input\n type=\"checkbox\"\n name={name}\n disabled={isDisabled}\n aria-invalid={isInvalid}\n aria-describedby={ariaDescribedBy}\n checked={value}\n id={inputId}\n ref={inputRef}\n onBlur={onBlur}\n onChange={handleChange}\n className={styles.checkboxInput}\n />\n <div className={styles.checkbox}>\n <IconChecked className={styles.check} />\n </div>\n </div>\n </HorizontalFieldLayout>\n )\n}\n"],"names":["Checkbox","rawProps","resolvedProps","applyMissingDefaults","CheckboxDefaults","name","label","description","errorMessage","isRequired","inputRef","value","isInvalid","isDisabled","id","onChange","onBlur","className","shouldVisuallyHideLabel","otherProps","inputId","errorMessageId","descriptionId","ariaDescribedBy","useFieldIds","handleChange","event","jsx","HorizontalFieldLayout","jsxs","classNames","styles","IconChecked"],"mappings":";;;;;;;;AAUO,MAAMA,IAAW,CAACC,MAA4B;AACnD,QAAMC,IAAgBC,EAAqBF,GAAUG,CAAgB,GAC/D;AAAA,IACJ,MAAAC;AAAA,IACA,OAAAC;AAAA,IACA,aAAAC;AAAA,IACA,cAAAC;AAAA,IACA,YAAAC;AAAA,IACA,UAAAC;AAAA,IACA,OAAAC;AAAA,IACA,WAAAC;AAAA,IACA,YAAAC;AAAA,IACA,IAAAC;AAAA,IACA,UAAAC;AAAA,IACA,QAAAC;AAAA,IACA,WAAAC;AAAA,IACA,yBAAAC;AAAA,IACA,GAAGC;AAAA,EAAA,IACDjB,GACE,EAAE,SAAAkB,GAAS,gBAAAC,GAAgB,eAAAC,GAAe,iBAAAC,EAAA,IAAoBC,EAAY;AAAA,IAC9E,SAASV;AAAA,IACT,cAAAN;AAAA,IACA,aAAAD;AAAA,EAAA,CACD,GAEKkB,IAAe,CAACC,MAAyC;AAC7D,IAAAX,IAAWW,EAAM,OAAO,OAAO;AAAA,EACjC;AAEA,SACE,gBAAAC;AAAA,IAACC;AAAA,IAAA;AAAA,MACC,OAAAtB;AAAA,MACA,aAAAC;AAAA,MACA,cAAAC;AAAA,MACA,YAAAC;AAAA,MACA,SAASW;AAAA,MACT,gBAAAC;AAAA,MACA,eAAAC;AAAA,MACA,yBAAAJ;AAAA,MACA,WAAAD;AAAA,MACC,GAAGE;AAAA,MAEJ,UAAA,gBAAAU;AAAA,QAAC;AAAA,QAAA;AAAA,UACC,WAAWC;AAAA,YACTC,EAAO;AAAA,YACPpB,KAASoB,EAAO;AAAA,YAChBlB,KAAckB,EAAO;AAAA,UAAA;AAAA,UAGvB,UAAA;AAAA,YAAA,gBAAAJ;AAAA,cAAC;AAAA,cAAA;AAAA,gBACC,MAAK;AAAA,gBACL,MAAAtB;AAAA,gBACA,UAAUQ;AAAA,gBACV,gBAAcD;AAAA,gBACd,oBAAkBW;AAAA,gBAClB,SAASZ;AAAA,gBACT,IAAIS;AAAA,gBACJ,KAAKV;AAAA,gBACL,QAAAM;AAAA,gBACA,UAAUS;AAAA,gBACV,WAAWM,EAAO;AAAA,cAAA;AAAA,YAAA;AAAA,YAEpB,gBAAAJ,EAAC,OAAA,EAAI,WAAWI,EAAO,UACrB,4BAACC,GAAA,EAAY,WAAWD,EAAO,MAAA,CAAO,EAAA,CACxC;AAAA,UAAA;AAAA,QAAA;AAAA,MAAA;AAAA,IACF;AAAA,EAAA;AAGN;"}
@@ -1,14 +1,18 @@
1
- const c = "_checkboxWrapper_19uv2_1", e = "_checkbox_19uv2_1", o = "_check_19uv2_1", h = "_checkboxInput_19uv2_29", k = {
1
+ const c = "_checkboxWrapper_87qmz_1", e = "_checkbox_87qmz_1", _ = "_check_87qmz_1", o = "_checkboxInput_87qmz_29", h = "_checked_87qmz_45", k = "_disabled_87qmz_61", s = {
2
2
  checkboxWrapper: c,
3
3
  checkbox: e,
4
- check: o,
5
- checkboxInput: h
4
+ check: _,
5
+ checkboxInput: o,
6
+ checked: h,
7
+ disabled: k
6
8
  };
7
9
  export {
8
- o as check,
10
+ _ as check,
9
11
  e as checkbox,
10
- h as checkboxInput,
12
+ o as checkboxInput,
11
13
  c as checkboxWrapper,
12
- k as default
14
+ h as checked,
15
+ s as default,
16
+ k as disabled
13
17
  };
14
18
  //# sourceMappingURL=Checkbox.module.scss.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Checkbox.module.scss.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;"}
1
+ {"version":3,"file":"Checkbox.module.scss.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;"}
@@ -62,7 +62,7 @@ const tr = ({
62
62
  inputValue: e ?? "",
63
63
  onInputChange: (r) => c?.(r)
64
64
  } : {
65
- selectedKey: e || void 0,
65
+ selectedKey: e || null,
66
66
  onSelectionChange: (r) => {
67
67
  r && c?.(r.toString());
68
68
  }
@@ -1 +1 @@
1
- {"version":3,"file":"ComboBox.js","sources":["../../../../../src/components/Common/UI/ComboBox/ComboBox.tsx"],"sourcesContent":["import type { Key } from 'react-aria-components'\nimport {\n ComboBox as AriaComboBox,\n Button,\n Input,\n ListBox,\n ListBoxItem,\n ListLayout,\n Popover,\n Virtualizer,\n} from 'react-aria-components'\nimport { useTranslation } from 'react-i18next'\nimport { useMemo } from 'react'\nimport classNames from 'classnames'\nimport { useFieldIds } from '../hooks/useFieldIds'\nimport styles from './ComboBox.module.scss'\nimport type { ComboBoxProps } from './ComboBoxTypes'\nimport { FieldLayout } from '@/components/Common/FieldLayout'\nimport { useTheme } from '@/contexts/ThemeProvider'\nimport AlertCircle from '@/assets/icons/alert-circle.svg?react'\nimport CaretDown from '@/assets/icons/caret-down.svg?react'\n\nexport const ComboBox = ({\n allowsCustomValue,\n className,\n description,\n errorMessage,\n id,\n isDisabled,\n isInvalid,\n isRequired,\n label,\n onChange,\n onBlur,\n options,\n placeholder,\n value,\n inputRef,\n shouldVisuallyHideLabel,\n name,\n ...props\n}: ComboBoxProps) => {\n const { t } = useTranslation()\n const { inputId, errorMessageId, descriptionId, ariaDescribedBy } = useFieldIds({\n inputId: id,\n errorMessage,\n description,\n })\n const { container } = useTheme()\n\n const items = useMemo(() => {\n return options.map(option => ({ name: option.label, id: option.value }))\n }, [options])\n\n return (\n <FieldLayout\n label={label}\n htmlFor={inputId}\n errorMessage={errorMessage}\n errorMessageId={errorMessageId}\n descriptionId={descriptionId}\n isRequired={isRequired}\n description={description}\n shouldVisuallyHideLabel={shouldVisuallyHideLabel}\n className={classNames(styles.root, className)}\n withErrorIcon={false}\n >\n <AriaComboBox\n aria-label={label}\n aria-describedby={ariaDescribedBy}\n className={'react-aria-ComboBox-root'}\n isDisabled={isDisabled}\n isInvalid={isInvalid}\n menuTrigger=\"focus\"\n allowsCustomValue={allowsCustomValue}\n {...(allowsCustomValue\n ? {\n inputValue: value ?? '',\n onInputChange: (inputVal: string) => onChange?.(inputVal),\n }\n : {\n selectedKey: value ? (value as Key) : undefined,\n onSelectionChange: (key: Key | null) => {\n if (key) onChange?.(key.toString())\n },\n })}\n id={inputId}\n name={name}\n >\n <Input ref={inputRef} placeholder={placeholder} onBlur={onBlur} {...props} />\n <Button>\n <div aria-hidden=\"true\" className={styles.icons}>\n {isInvalid && <AlertCircle fontSize={16} />}\n <CaretDown title={t('icons.selectArrow')} />\n </div>\n </Button>\n\n <Popover\n className={classNames(styles.popover, 'react-aria-Popover')}\n UNSTABLE_portalContainer={container.current}\n maxHeight={320}\n >\n <Virtualizer layout={ListLayout}>\n <ListBox items={items}>\n {item => <ListBoxItem key={item.id}>{item.name}</ListBoxItem>}\n </ListBox>\n </Virtualizer>\n </Popover>\n </AriaComboBox>\n </FieldLayout>\n )\n}\n"],"names":["ComboBox","allowsCustomValue","className","description","errorMessage","id","isDisabled","isInvalid","isRequired","label","onChange","onBlur","options","placeholder","value","inputRef","shouldVisuallyHideLabel","name","props","t","useTranslation","inputId","errorMessageId","descriptionId","ariaDescribedBy","useFieldIds","container","useTheme","items","useMemo","option","jsx","FieldLayout","classNames","styles","jsxs","AriaComboBox","inputVal","key","Input","Button","AlertCircle","CaretDown","Popover","Virtualizer","ListLayout","ListBox","item","ListBoxItem"],"mappings":";;;;;;;;;;;;AAsBO,MAAMA,KAAW,CAAC;AAAA,EACvB,mBAAAC;AAAA,EACA,WAAAC;AAAA,EACA,aAAAC;AAAA,EACA,cAAAC;AAAA,EACA,IAAAC;AAAA,EACA,YAAAC;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,cAAIA,KAAK5B,IAAW4B,EAAI,SAAA,CAAU;AAAA,YACpC;AAAA,UAAA;AAAA,UAEN,IAAIjB;AAAA,UACJ,MAAAJ;AAAA,UAEA,UAAA;AAAA,YAAA,gBAAAc,EAACQ,KAAM,KAAKxB,GAAU,aAAAF,GAA0B,QAAAF,GAAiB,GAAGO,GAAO;AAAA,YAC3E,gBAAAa,EAACS,KACC,UAAA,gBAAAL,EAAC,OAAA,EAAI,eAAY,QAAO,WAAWD,EAAO,OACvC,UAAA;AAAA,cAAA3B,KAAa,gBAAAwB,EAACU,GAAA,EAAY,UAAU,GAAA,CAAI;AAAA,cACzC,gBAAAV,EAACW,GAAA,EAAU,OAAOvB,EAAE,mBAAmB,EAAA,CAAG;AAAA,YAAA,EAAA,CAC5C,EAAA,CACF;AAAA,YAEA,gBAAAY;AAAA,cAACY;AAAA,cAAA;AAAA,gBACC,WAAWV,EAAWC,EAAO,SAAS,oBAAoB;AAAA,gBAC1D,0BAA0BR,EAAU;AAAA,gBACpC,WAAW;AAAA,gBAEX,UAAA,gBAAAK,EAACa,GAAA,EAAY,QAAQC,GACnB,4BAACC,GAAA,EAAQ,OAAAlB,GACN,UAAA,CAAAmB,MAAQ,gBAAAhB,EAACiB,KAA2B,UAAAD,EAAK,KAAA,GAAfA,EAAK,EAAe,GACjD,EAAA,CACF;AAAA,cAAA;AAAA,YAAA;AAAA,UACF;AAAA,QAAA;AAAA,MAAA;AAAA,IACF;AAAA,EAAA;AAGN;"}
1
+ {"version":3,"file":"ComboBox.js","sources":["../../../../../src/components/Common/UI/ComboBox/ComboBox.tsx"],"sourcesContent":["import type { Key } from 'react-aria-components'\nimport {\n ComboBox as AriaComboBox,\n Button,\n Input,\n ListBox,\n ListBoxItem,\n ListLayout,\n Popover,\n Virtualizer,\n} from 'react-aria-components'\nimport { useTranslation } from 'react-i18next'\nimport { useMemo } from 'react'\nimport classNames from 'classnames'\nimport { useFieldIds } from '../hooks/useFieldIds'\nimport styles from './ComboBox.module.scss'\nimport type { ComboBoxProps } from './ComboBoxTypes'\nimport { FieldLayout } from '@/components/Common/FieldLayout'\nimport { useTheme } from '@/contexts/ThemeProvider'\nimport AlertCircle from '@/assets/icons/alert-circle.svg?react'\nimport CaretDown from '@/assets/icons/caret-down.svg?react'\n\nexport const ComboBox = ({\n allowsCustomValue,\n className,\n description,\n errorMessage,\n id,\n isDisabled,\n isInvalid,\n isRequired,\n label,\n onChange,\n onBlur,\n options,\n placeholder,\n value,\n inputRef,\n shouldVisuallyHideLabel,\n name,\n ...props\n}: ComboBoxProps) => {\n const { t } = useTranslation()\n const { inputId, errorMessageId, descriptionId, ariaDescribedBy } = useFieldIds({\n inputId: id,\n errorMessage,\n description,\n })\n const { container } = useTheme()\n\n const items = useMemo(() => {\n return options.map(option => ({ name: option.label, id: option.value }))\n }, [options])\n\n return (\n <FieldLayout\n label={label}\n htmlFor={inputId}\n errorMessage={errorMessage}\n errorMessageId={errorMessageId}\n descriptionId={descriptionId}\n isRequired={isRequired}\n description={description}\n shouldVisuallyHideLabel={shouldVisuallyHideLabel}\n className={classNames(styles.root, className)}\n withErrorIcon={false}\n >\n <AriaComboBox\n aria-label={label}\n aria-describedby={ariaDescribedBy}\n className={'react-aria-ComboBox-root'}\n isDisabled={isDisabled}\n isInvalid={isInvalid}\n menuTrigger=\"focus\"\n allowsCustomValue={allowsCustomValue}\n {...(allowsCustomValue\n ? {\n inputValue: value ?? '',\n onInputChange: (inputVal: string) => onChange?.(inputVal),\n }\n : {\n selectedKey: value ? (value as Key) : null,\n onSelectionChange: (key: Key | null) => {\n if (key) onChange?.(key.toString())\n },\n })}\n id={inputId}\n name={name}\n >\n <Input ref={inputRef} placeholder={placeholder} onBlur={onBlur} {...props} />\n <Button>\n <div aria-hidden=\"true\" className={styles.icons}>\n {isInvalid && <AlertCircle fontSize={16} />}\n <CaretDown title={t('icons.selectArrow')} />\n </div>\n </Button>\n\n <Popover\n className={classNames(styles.popover, 'react-aria-Popover')}\n UNSTABLE_portalContainer={container.current}\n maxHeight={320}\n >\n <Virtualizer layout={ListLayout}>\n <ListBox items={items}>\n {item => <ListBoxItem key={item.id}>{item.name}</ListBoxItem>}\n </ListBox>\n </Virtualizer>\n </Popover>\n </AriaComboBox>\n </FieldLayout>\n )\n}\n"],"names":["ComboBox","allowsCustomValue","className","description","errorMessage","id","isDisabled","isInvalid","isRequired","label","onChange","onBlur","options","placeholder","value","inputRef","shouldVisuallyHideLabel","name","props","t","useTranslation","inputId","errorMessageId","descriptionId","ariaDescribedBy","useFieldIds","container","useTheme","items","useMemo","option","jsx","FieldLayout","classNames","styles","jsxs","AriaComboBox","inputVal","key","Input","Button","AlertCircle","CaretDown","Popover","Virtualizer","ListLayout","ListBox","item","ListBoxItem"],"mappings":";;;;;;;;;;;;AAsBO,MAAMA,KAAW,CAAC;AAAA,EACvB,mBAAAC;AAAA,EACA,WAAAC;AAAA,EACA,aAAAC;AAAA,EACA,cAAAC;AAAA,EACA,IAAAC;AAAA,EACA,YAAAC;AAAA,EACA,WAAAC;AAAA,EACA,YAAAC;AAAA,EACA,OAAAC;AAAA,EACA,UAAAC;AAAA,EACA,QAAAC;AAAA,EACA,SAAAC;AAAA,EACA,aAAAC;AAAA,EACA,OAAAC;AAAA,EACA,UAAAC;AAAA,EACA,yBAAAC;AAAA,EACA,MAAAC;AAAA,EACA,GAAGC;AACL,MAAqB;AACnB,QAAM,EAAE,GAAAC,EAAA,IAAMC,EAAA,GACR,EAAE,SAAAC,GAAS,gBAAAC,GAAgB,eAAAC,GAAe,iBAAAC,EAAA,IAAoBC,EAAY;AAAA,IAC9E,SAASpB;AAAA,IACT,cAAAD;AAAA,IACA,aAAAD;AAAA,EAAA,CACD,GACK,EAAE,WAAAuB,EAAA,IAAcC,EAAA,GAEhBC,IAAQC,EAAQ,MACbjB,EAAQ,IAAI,CAAAkB,OAAW,EAAE,MAAMA,EAAO,OAAO,IAAIA,EAAO,MAAA,EAAQ,GACtE,CAAClB,CAAO,CAAC;AAEZ,SACE,gB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AAA,gBACpC,WAAW;AAAA,gBAEX,UAAA,gBAAAK,EAACa,GAAA,EAAY,QAAQC,GACnB,4BAACC,GAAA,EAAQ,OAAAlB,GACN,UAAA,CAAAmB,MAAQ,gBAAAhB,EAACiB,KAA2B,UAAAD,EAAK,KAAA,GAAfA,EAAK,EAAe,GACjD,EAAA,CACF;AAAA,cAAA;AAAA,YAAA;AAAA,UACF;AAAA,QAAA;AAAA,MAAA;AAAA,IACF;AAAA,EAAA;AAGN;"}
@@ -38,7 +38,7 @@ export interface ComboBoxProps extends SharedFieldLayoutProps, Pick<InputHTMLAtt
38
38
  /**
39
39
  * Currently selected value
40
40
  */
41
- value?: string;
41
+ value?: string | null;
42
42
  /**
43
43
  * React ref for the combo box input element
44
44
  */
@@ -1,40 +1,40 @@
1
- import { jsxs as s, jsx as e } from "react/jsx-runtime";
2
- import { DateRangePicker as I, Group as R, DateInput as p, DateSegment as u, RangeCalendar as x, Button as h, Heading as y, CalendarGrid as G, CalendarCell as j } from "react-aria-components";
1
+ import { jsx as e, jsxs as l } from "react/jsx-runtime";
2
+ import { DateRangePicker as I, RangeCalendar as R, Button as h, Heading as x, Group as y, DateInput as g, DateSegment as N, CalendarGrid as G, CalendarCell as j } from "react-aria-components";
3
3
  import { parseDate as k } from "@internationalized/date";
4
4
  import a from "./DateRangePicker.module.scss.js";
5
5
  import B from "../../../../assets/icons/caret-left.svg.js";
6
6
  import H from "../../../../assets/icons/caret-right.svg.js";
7
- function l(n) {
7
+ function s(n) {
8
8
  if (!(n instanceof Date) || isNaN(n.getTime())) return;
9
- const r = [
9
+ const t = [
10
10
  String(n.getFullYear()).padStart(4, "0"),
11
11
  String(n.getMonth() + 1).padStart(2, "0"),
12
12
  String(n.getDate()).padStart(2, "0")
13
13
  ].join("-");
14
- return k(r);
14
+ return k(t);
15
15
  }
16
- function g(n) {
16
+ function f(n) {
17
17
  return new Date(n.year, n.month - 1, n.day);
18
18
  }
19
- const F = ({
19
+ const J = ({
20
20
  label: n,
21
- value: r,
21
+ value: t,
22
22
  onChange: d,
23
- startDateLabel: N,
24
- endDateLabel: f,
25
- minValue: i,
26
- maxValue: c
23
+ startDateLabel: i,
24
+ endDateLabel: c,
25
+ minValue: o,
26
+ maxValue: m
27
27
  }) => {
28
- const o = r ? l(r.start) : void 0, m = r ? l(r.end) : void 0, C = o && m ? { start: o, end: m } : null, v = i ? l(i) : void 0, S = c ? l(c) : void 0;
29
- return /* @__PURE__ */ s(
28
+ const p = t ? s(t.start) : void 0, u = t ? s(t.end) : void 0, C = p && u ? { start: p, end: u } : null, v = o ? s(o) : void 0, S = m ? s(m) : void 0;
29
+ return /* @__PURE__ */ e(
30
30
  I,
31
31
  {
32
32
  value: C,
33
- onChange: (t) => {
34
- if (t) {
33
+ onChange: (r) => {
34
+ if (r) {
35
35
  const D = {
36
- start: g(t.start),
37
- end: g(t.end)
36
+ start: f(r.start),
37
+ end: f(r.end)
38
38
  };
39
39
  d(D);
40
40
  } else
@@ -44,31 +44,29 @@ const F = ({
44
44
  maxValue: S,
45
45
  "aria-label": typeof n == "string" ? n : void 0,
46
46
  className: a.root,
47
- children: [
48
- /* @__PURE__ */ s(R, { className: a.dateInputGroup, children: [
49
- /* @__PURE__ */ s("div", { className: a.dateInputWrapper, children: [
50
- /* @__PURE__ */ e("span", { className: a.dateInputLabel, children: N }),
51
- /* @__PURE__ */ e(p, { slot: "start", className: a.dateInput, children: (t) => /* @__PURE__ */ e(u, { segment: t }) })
47
+ children: /* @__PURE__ */ l(R, { className: a.rangeCalendar, children: [
48
+ /* @__PURE__ */ l("header", { className: a.calendarHeader, children: [
49
+ /* @__PURE__ */ e(h, { slot: "previous", className: a.calendarNavButton, children: /* @__PURE__ */ e(B, { "aria-hidden": !0 }) }),
50
+ /* @__PURE__ */ e(x, { className: a.calendarHeading }),
51
+ /* @__PURE__ */ e(h, { slot: "next", className: a.calendarNavButton, children: /* @__PURE__ */ e(H, { "aria-hidden": !0 }) })
52
+ ] }),
53
+ /* @__PURE__ */ l(y, { className: a.dateInputGroup, children: [
54
+ /* @__PURE__ */ l("div", { className: a.dateInputWrapper, children: [
55
+ /* @__PURE__ */ e("span", { className: a.dateInputLabel, children: i }),
56
+ /* @__PURE__ */ e(g, { slot: "start", className: a.dateInput, "aria-label": i, children: (r) => /* @__PURE__ */ e(N, { segment: r }) })
52
57
  ] }),
53
58
  /* @__PURE__ */ e("span", { className: a.rangeSeparator, "aria-hidden": "true", children: "–" }),
54
- /* @__PURE__ */ s("div", { className: a.dateInputWrapper, children: [
55
- /* @__PURE__ */ e("span", { className: a.dateInputLabel, children: f }),
56
- /* @__PURE__ */ e(p, { slot: "end", className: a.dateInput, children: (t) => /* @__PURE__ */ e(u, { segment: t }) })
59
+ /* @__PURE__ */ l("div", { className: a.dateInputWrapper, children: [
60
+ /* @__PURE__ */ e("span", { className: a.dateInputLabel, children: c }),
61
+ /* @__PURE__ */ e(g, { slot: "end", className: a.dateInput, "aria-label": c, children: (r) => /* @__PURE__ */ e(N, { segment: r }) })
57
62
  ] })
58
63
  ] }),
59
- /* @__PURE__ */ s(x, { className: a.rangeCalendar, children: [
60
- /* @__PURE__ */ s("header", { className: a.calendarHeader, children: [
61
- /* @__PURE__ */ e(h, { slot: "previous", className: a.calendarNavButton, children: /* @__PURE__ */ e(B, { "aria-hidden": !0 }) }),
62
- /* @__PURE__ */ e(y, { className: a.calendarHeading }),
63
- /* @__PURE__ */ e(h, { slot: "next", className: a.calendarNavButton, children: /* @__PURE__ */ e(H, { "aria-hidden": !0 }) })
64
- ] }),
65
- /* @__PURE__ */ e(G, { className: a.calendarGrid, children: (t) => /* @__PURE__ */ e(j, { date: t, className: a.calendarCell }) })
66
- ] })
67
- ]
64
+ /* @__PURE__ */ e(G, { className: a.calendarGrid, children: (r) => /* @__PURE__ */ e(j, { date: r, className: a.calendarCell }) })
65
+ ] })
68
66
  }
69
67
  );
70
68
  };
71
69
  export {
72
- F as DateRangePicker
70
+ J as DateRangePicker
73
71
  };
74
72
  //# sourceMappingURL=DateRangePicker.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"DateRangePicker.js","sources":["../../../../../src/components/Common/UI/DateRangePicker/DateRangePicker.tsx"],"sourcesContent":["import {\n DateRangePicker as AriaDateRangePicker,\n Button as AriaButton,\n CalendarCell,\n CalendarGrid,\n DateInput,\n DateSegment,\n Group,\n Heading,\n RangeCalendar,\n type DateValue,\n} from 'react-aria-components'\nimport { parseDate, type CalendarDate } from '@internationalized/date'\nimport type { DateRange, DateRangePickerProps } from './DateRangePickerTypes'\nimport styles from './DateRangePicker.module.scss'\nimport CaretLeft from '@/assets/icons/caret-left.svg?react'\nimport CaretRight from '@/assets/icons/caret-right.svg?react'\n\nfunction dateToCalendarDate(date: Date): CalendarDate | undefined {\n if (!(date instanceof Date) || isNaN(date.getTime())) return undefined\n\n const dateString = [\n String(date.getFullYear()).padStart(4, '0'),\n String(date.getMonth() + 1).padStart(2, '0'),\n String(date.getDate()).padStart(2, '0'),\n ].join('-')\n\n return parseDate(dateString)\n}\n\nfunction calendarDateToJsDate(dateValue: DateValue): Date {\n return new Date(dateValue.year, dateValue.month - 1, dateValue.day)\n}\n\nexport const DateRangePicker = ({\n label,\n value,\n onChange,\n startDateLabel,\n endDateLabel,\n minValue: minDate,\n maxValue: maxDate,\n}: DateRangePickerProps) => {\n const startCalendar = value ? dateToCalendarDate(value.start) : undefined\n const endCalendar = value ? dateToCalendarDate(value.end) : undefined\n\n const ariaValue = startCalendar && endCalendar ? { start: startCalendar, end: endCalendar } : null\n\n const minValue = minDate ? dateToCalendarDate(minDate) : undefined\n const maxValue = maxDate ? dateToCalendarDate(maxDate) : undefined\n\n const handleRangeChange = (range: { start: DateValue; end: DateValue } | null) => {\n if (range) {\n const newRange: DateRange = {\n start: calendarDateToJsDate(range.start),\n end: calendarDateToJsDate(range.end),\n }\n onChange(newRange)\n } else {\n onChange(null)\n }\n }\n\n return (\n <AriaDateRangePicker\n value={ariaValue}\n onChange={handleRangeChange}\n minValue={minValue}\n maxValue={maxValue}\n aria-label={typeof label === 'string' ? label : undefined}\n className={styles.root}\n >\n <Group className={styles.dateInputGroup}>\n <div className={styles.dateInputWrapper}>\n <span className={styles.dateInputLabel}>{startDateLabel}</span>\n <DateInput slot=\"start\" className={styles.dateInput}>\n {segment => <DateSegment segment={segment} />}\n </DateInput>\n </div>\n <span className={styles.rangeSeparator} aria-hidden=\"true\">\n –\n </span>\n <div className={styles.dateInputWrapper}>\n <span className={styles.dateInputLabel}>{endDateLabel}</span>\n <DateInput slot=\"end\" className={styles.dateInput}>\n {segment => <DateSegment segment={segment} />}\n </DateInput>\n </div>\n </Group>\n\n <RangeCalendar className={styles.rangeCalendar}>\n <header className={styles.calendarHeader}>\n <AriaButton slot=\"previous\" className={styles.calendarNavButton}>\n <CaretLeft aria-hidden />\n </AriaButton>\n <Heading className={styles.calendarHeading} />\n <AriaButton slot=\"next\" className={styles.calendarNavButton}>\n <CaretRight aria-hidden />\n </AriaButton>\n </header>\n <CalendarGrid className={styles.calendarGrid}>\n {date => <CalendarCell date={date} className={styles.calendarCell} />}\n </CalendarGrid>\n </RangeCalendar>\n </AriaDateRangePicker>\n )\n}\n"],"names":["dateToCalendarDate","date","dateString","parseDate","calendarDateToJsDate","dateValue","DateRangePicker","label","value","onChange","startDateLabel","endDateLabel","minDate","maxDate","startCalendar","endCalendar","ariaValue","minValue","maxValue","jsxs","AriaDateRangePicker","range","newRange","styles","Group","jsx","DateInput","segment","DateSegment","RangeCalendar","AriaButton","CaretLeft","Heading","CaretRight","CalendarGrid","CalendarCell"],"mappings":";;;;;;AAkBA,SAASA,EAAmBC,GAAsC;AAChE,MAAI,EAAEA,aAAgB,SAAS,MAAMA,EAAK,QAAA,CAAS,EAAG;AAEtD,QAAMC,IAAa;AAAA,IACjB,OAAOD,EAAK,YAAA,CAAa,EAAE,SAAS,GAAG,GAAG;AAAA,IAC1C,OAAOA,EAAK,SAAA,IAAa,CAAC,EAAE,SAAS,GAAG,GAAG;AAAA,IAC3C,OAAOA,EAAK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O,aAAA,CAAc,EAAA,CACrE;AAAA,QAAA,EAAA,CACF;AAAA,MAAA;AAAA,IAAA;AAAA,EAAA;AAGN;"}
1
+ {"version":3,"file":"DateRangePicker.js","sources":["../../../../../src/components/Common/UI/DateRangePicker/DateRangePicker.tsx"],"sourcesContent":["import {\n DateRangePicker as AriaDateRangePicker,\n Button as AriaButton,\n CalendarCell,\n CalendarGrid,\n DateInput,\n DateSegment,\n Group,\n Heading,\n RangeCalendar,\n type DateValue,\n} from 'react-aria-components'\nimport { parseDate, type CalendarDate } from '@internationalized/date'\nimport type { DateRange, DateRangePickerProps } from './DateRangePickerTypes'\nimport styles from './DateRangePicker.module.scss'\nimport CaretLeft from '@/assets/icons/caret-left.svg?react'\nimport CaretRight from '@/assets/icons/caret-right.svg?react'\n\nfunction dateToCalendarDate(date: Date): CalendarDate | undefined {\n if (!(date instanceof Date) || isNaN(date.getTime())) return undefined\n\n const dateString = [\n String(date.getFullYear()).padStart(4, '0'),\n String(date.getMonth() + 1).padStart(2, '0'),\n String(date.getDate()).padStart(2, '0'),\n ].join('-')\n\n return parseDate(dateString)\n}\n\nfunction calendarDateToJsDate(dateValue: DateValue): Date {\n return new Date(dateValue.year, dateValue.month - 1, dateValue.day)\n}\n\nexport const DateRangePicker = ({\n label,\n value,\n onChange,\n startDateLabel,\n endDateLabel,\n minValue: minDate,\n maxValue: maxDate,\n}: DateRangePickerProps) => {\n const startCalendar = value ? dateToCalendarDate(value.start) : undefined\n const endCalendar = value ? dateToCalendarDate(value.end) : undefined\n\n const ariaValue = startCalendar && endCalendar ? { start: startCalendar, end: endCalendar } : null\n\n const minValue = minDate ? dateToCalendarDate(minDate) : undefined\n const maxValue = maxDate ? dateToCalendarDate(maxDate) : undefined\n\n const handleRangeChange = (range: { start: DateValue; end: DateValue } | null) => {\n if (range) {\n const newRange: DateRange = {\n start: calendarDateToJsDate(range.start),\n end: calendarDateToJsDate(range.end),\n }\n onChange(newRange)\n } else {\n onChange(null)\n }\n }\n\n return (\n <AriaDateRangePicker\n value={ariaValue}\n onChange={handleRangeChange}\n minValue={minValue}\n maxValue={maxValue}\n aria-label={typeof label === 'string' ? label : undefined}\n className={styles.root}\n >\n <RangeCalendar className={styles.rangeCalendar}>\n <header className={styles.calendarHeader}>\n <AriaButton slot=\"previous\" className={styles.calendarNavButton}>\n <CaretLeft aria-hidden />\n </AriaButton>\n <Heading className={styles.calendarHeading} />\n <AriaButton slot=\"next\" className={styles.calendarNavButton}>\n <CaretRight aria-hidden />\n </AriaButton>\n </header>\n <Group className={styles.dateInputGroup}>\n <div className={styles.dateInputWrapper}>\n <span className={styles.dateInputLabel}>{startDateLabel}</span>\n <DateInput slot=\"start\" className={styles.dateInput} aria-label={startDateLabel}>\n {segment => <DateSegment segment={segment} />}\n </DateInput>\n </div>\n <span className={styles.rangeSeparator} aria-hidden=\"true\">\n –\n </span>\n <div className={styles.dateInputWrapper}>\n <span className={styles.dateInputLabel}>{endDateLabel}</span>\n <DateInput slot=\"end\" className={styles.dateInput} aria-label={endDateLabel}>\n {segment => <DateSegment segment={segment} />}\n </DateInput>\n </div>\n </Group>\n <CalendarGrid className={styles.calendarGrid}>\n {date => <CalendarCell date={date} className={styles.calendarCell} />}\n </CalendarGrid>\n </RangeCalendar>\n </AriaDateRangePicker>\n )\n}\n"],"names":["dateToCalendarDate","date","dateString","parseDate","calendarDateToJsDate","dateValue","DateRangePicker","label","value","onChange","startDateLabel","endDateLabel","minDate","maxDate","startCalendar","endCalendar","ariaValue","minValue","maxValue","jsx","AriaDateRangePicker","range","newRange","styles","jsxs","RangeCalendar","AriaButton","CaretLeft","Heading","CaretRight","Group","DateInput","segment","DateSegment","CalendarGrid","CalendarCell"],"mappings":";;;;;;AAkBA,SAASA,EAAmBC,GAAsC;AAChE,MAAI,EAAEA,aAAgB,SAAS,MAAMA,EAAK,QAAA,CAAS,EAAG;AAEtD,QAAMC,IAAa;AAAA,IACjB,OAAOD,EAAK,YAAA,CAAa,EAAE,SAAS,GAAG,GAAG;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,EAAa,WAAWX,EAAO,cAC7B,UAAA,CAAAtB,MAAQ,gBAAAkB,EAACgB,GAAA,EAAa,MAAAlC,GAAY,WAAWsB,EAAO,aAAA,CAAc,EAAA,CACrE;AAAA,MAAA,EAAA,CACF;AAAA,IAAA;AAAA,EAAA;AAGN;"}
@@ -1,30 +1,30 @@
1
- const a = "_root_1ijh5_1", e = "_dateInputGroup_1ijh5_5", n = "_dateInputWrapper_1ijh5_11", t = "_dateInputLabel_1ijh5_18", r = "_dateInput_1ijh5_5", d = "_rangeSeparator_1ijh5_64", _ = "_rangeCalendar_1ijh5_69", l = "_calendarHeader_1ijh5_78", o = "_calendarHeading_1ijh5_84", c = "_calendarNavButton_1ijh5_91", p = "_calendarGrid_1ijh5_112", u = "_calendarCell_1ijh5_156", i = {
1
+ const a = "_root_16oec_1", e = "_dateInputGroup_16oec_5", n = "_dateInputWrapper_16oec_13", t = "_dateInputLabel_16oec_20", r = "_dateInput_16oec_5", o = "_rangeSeparator_16oec_68", c = "_rangeCalendar_16oec_73", d = "_calendarHeader_16oec_83", _ = "_calendarHeading_16oec_88", l = "_calendarNavButton_16oec_96", p = "_calendarGrid_16oec_121", u = "_calendarCell_16oec_163", s = {
2
2
  root: a,
3
3
  dateInputGroup: e,
4
4
  dateInputWrapper: n,
5
5
  dateInputLabel: t,
6
6
  dateInput: r,
7
- rangeSeparator: d,
8
- rangeCalendar: _,
9
- calendarHeader: l,
10
- calendarHeading: o,
11
- calendarNavButton: c,
7
+ rangeSeparator: o,
8
+ rangeCalendar: c,
9
+ calendarHeader: d,
10
+ calendarHeading: _,
11
+ calendarNavButton: l,
12
12
  calendarGrid: p,
13
13
  calendarCell: u
14
14
  };
15
15
  export {
16
16
  u as calendarCell,
17
17
  p as calendarGrid,
18
- l as calendarHeader,
19
- o as calendarHeading,
20
- c as calendarNavButton,
18
+ d as calendarHeader,
19
+ _ as calendarHeading,
20
+ l as calendarNavButton,
21
21
  r as dateInput,
22
22
  e as dateInputGroup,
23
23
  t as dateInputLabel,
24
24
  n as dateInputWrapper,
25
- i as default,
26
- _ as rangeCalendar,
27
- d as rangeSeparator,
25
+ s as default,
26
+ c as rangeCalendar,
27
+ o as rangeSeparator,
28
28
  a as root
29
29
  };
30
30
  //# sourceMappingURL=DateRangePicker.module.scss.js.map
@@ -1,16 +1,23 @@
1
- import { jsx as i, jsxs as d } from "react/jsx-runtime";
2
- import f from "classnames";
3
- import { DescriptionListDefaults as u } from "./DescriptionListTypes.js";
4
- import o from "./DescriptionList.module.scss.js";
5
- import { applyMissingDefaults as y } from "../../../../helpers/applyMissingDefaults.js";
6
- function j(n) {
7
- const m = y(n, u), { items: c, className: a } = m, p = (r) => (Array.isArray(r) ? r : [r]).map((t, e) => /* @__PURE__ */ i("dt", { children: t }, e)), l = (r) => (Array.isArray(r) ? r : [r]).map((t, e) => /* @__PURE__ */ i("dd", { children: t }, e));
8
- return /* @__PURE__ */ i("dl", { className: f(o.root, a), children: c.map((r, s) => /* @__PURE__ */ d("div", { className: o.item, children: [
9
- p(r.term),
10
- l(r.description)
11
- ] }, s)) });
1
+ import { jsx as e, jsxs as u } from "react/jsx-runtime";
2
+ import y from "classnames";
3
+ import { DescriptionListDefaults as h } from "./DescriptionListTypes.js";
4
+ import i from "./DescriptionList.module.scss.js";
5
+ import { applyMissingDefaults as D } from "../../../../helpers/applyMissingDefaults.js";
6
+ function w(a) {
7
+ const n = D(a, h), { items: m, layout: c, showSeparators: p, className: l } = n, d = (r) => (Array.isArray(r) ? r : [r]).map((t, o) => /* @__PURE__ */ e("dt", { children: t }, o)), f = (r) => (Array.isArray(r) ? r : [r]).map((t, o) => /* @__PURE__ */ e("dd", { children: t }, o));
8
+ return /* @__PURE__ */ e(
9
+ "dl",
10
+ {
11
+ className: y(i.root, p && i.withSeparators, l),
12
+ "data-layout": c,
13
+ children: m.map((r, s) => /* @__PURE__ */ u("div", { className: i.item, children: [
14
+ d(r.term),
15
+ f(r.description)
16
+ ] }, s))
17
+ }
18
+ );
12
19
  }
13
20
  export {
14
- j as DescriptionList
21
+ w as DescriptionList
15
22
  };
16
23
  //# sourceMappingURL=DescriptionList.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"DescriptionList.js","sources":["../../../../../src/components/Common/UI/DescriptionList/DescriptionList.tsx"],"sourcesContent":["import classNames from 'classnames'\nimport type { ReactNode } from 'react'\nimport { type DescriptionListProps, DescriptionListDefaults } from './DescriptionListTypes'\nimport styles from './DescriptionList.module.scss'\nimport { applyMissingDefaults } from '@/helpers/applyMissingDefaults'\n\nexport function DescriptionList(rawProps: DescriptionListProps) {\n const resolvedProps = applyMissingDefaults(rawProps, DescriptionListDefaults)\n const { items, className } = resolvedProps\n\n const renderTerms = (term: ReactNode | ReactNode[]) => {\n const terms = Array.isArray(term) ? term : [term]\n return terms.map((t, i) => <dt key={i}>{t}</dt>)\n }\n\n const renderDescriptions = (description: ReactNode | ReactNode[]) => {\n const descriptions = Array.isArray(description) ? description : [description]\n return descriptions.map((d, i) => <dd key={i}>{d}</dd>)\n }\n\n return (\n <dl className={classNames(styles.root, className)}>\n {items.map((item, index) => (\n <div key={index} className={styles.item}>\n {renderTerms(item.term)}\n {renderDescriptions(item.description)}\n </div>\n ))}\n </dl>\n )\n}\n"],"names":["DescriptionList","rawProps","resolvedProps","applyMissingDefaults","DescriptionListDefaults","items","className","renderTerms","term","i","jsx","renderDescriptions","description","d","classNames","styles","item","index"],"mappings":";;;;;AAMO,SAASA,EAAgBC,GAAgC;AAC9D,QAAMC,IAAgBC,EAAqBF,GAAUG,CAAuB,GACtE,EAAE,OAAAC,GAAO,WAAAC,EAAA,IAAcJ,GAEvBK,IAAc,CAACC,OACL,MAAM,QAAQA,CAAI,IAAIA,IAAO,CAACA,CAAI,GACnC,IAAI,CAAC,GAAGC,MAAM,gBAAAC,EAAC,MAAA,EAAY,UAAA,EAAA,GAAJD,CAAM,CAAK,GAG3CE,IAAqB,CAACC,OACL,MAAM,QAAQA,CAAW,IAAIA,IAAc,CAACA,CAAW,GACxD,IAAI,CAACC,GAAGJ,MAAM,gBAAAC,EAAC,MAAA,EAAY,UAAAG,EAAA,GAAJJ,CAAM,CAAK;AAGxD,2BACG,MAAA,EAAG,WAAWK,EAAWC,EAAO,MAAMT,CAAS,GAC7C,UAAAD,EAAM,IAAI,CAACW,GAAMC,wBACf,OAAA,EAAgB,WAAWF,EAAO,MAChC,UAAA;AAAA,IAAAR,EAAYS,EAAK,IAAI;AAAA,IACrBL,EAAmBK,EAAK,WAAW;AAAA,EAAA,KAF5BC,CAGV,CACD,GACH;AAEJ;"}
1
+ {"version":3,"file":"DescriptionList.js","sources":["../../../../../src/components/Common/UI/DescriptionList/DescriptionList.tsx"],"sourcesContent":["import classNames from 'classnames'\nimport type { ReactNode } from 'react'\nimport { type DescriptionListProps, DescriptionListDefaults } from './DescriptionListTypes'\nimport styles from './DescriptionList.module.scss'\nimport { applyMissingDefaults } from '@/helpers/applyMissingDefaults'\n\nexport function DescriptionList(rawProps: DescriptionListProps) {\n const resolvedProps = applyMissingDefaults(rawProps, DescriptionListDefaults)\n const { items, layout, showSeparators, className } = resolvedProps\n\n const renderTerms = (term: ReactNode | ReactNode[]) => {\n const terms = Array.isArray(term) ? term : [term]\n return terms.map((t, i) => <dt key={i}>{t}</dt>)\n }\n\n const renderDescriptions = (description: ReactNode | ReactNode[]) => {\n const descriptions = Array.isArray(description) ? description : [description]\n return descriptions.map((d, i) => <dd key={i}>{d}</dd>)\n }\n\n return (\n <dl\n className={classNames(styles.root, showSeparators && styles.withSeparators, className)}\n data-layout={layout}\n >\n {items.map((item, index) => (\n <div key={index} className={styles.item}>\n {renderTerms(item.term)}\n {renderDescriptions(item.description)}\n </div>\n ))}\n </dl>\n )\n}\n"],"names":["DescriptionList","rawProps","resolvedProps","applyMissingDefaults","DescriptionListDefaults","items","layout","showSeparators","className","renderTerms","term","i","jsx","renderDescriptions","description","d","classNames","styles","item","index","jsxs"],"mappings":";;;;;AAMO,SAASA,EAAgBC,GAAgC;AAC9D,QAAMC,IAAgBC,EAAqBF,GAAUG,CAAuB,GACtE,EAAE,OAAAC,GAAO,QAAAC,GAAQ,gBAAAC,GAAgB,WAAAC,MAAcN,GAE/CO,IAAc,CAACC,OACL,MAAM,QAAQA,CAAI,IAAIA,IAAO,CAACA,CAAI,GACnC,IAAI,CAAC,GAAGC,MAAM,gBAAAC,EAAC,MAAA,EAAY,UAAA,EAAA,GAAJD,CAAM,CAAK,GAG3CE,IAAqB,CAACC,OACL,MAAM,QAAQA,CAAW,IAAIA,IAAc,CAACA,CAAW,GACxD,IAAI,CAACC,GAAGJ,MAAM,gBAAAC,EAAC,MAAA,EAAY,UAAAG,EAAA,GAAJJ,CAAM,CAAK;AAGxD,SACE,gBAAAC;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,WAAWI,EAAWC,EAAO,MAAMV,KAAkBU,EAAO,gBAAgBT,CAAS;AAAA,MACrF,eAAaF;AAAA,MAEZ,UAAAD,EAAM,IAAI,CAACa,GAAMC,MAChB,gBAAAC,EAAC,OAAA,EAAgB,WAAWH,EAAO,MAChC,UAAA;AAAA,QAAAR,EAAYS,EAAK,IAAI;AAAA,QACrBL,EAAmBK,EAAK,WAAW;AAAA,MAAA,EAAA,GAF5BC,CAGV,CACD;AAAA,IAAA;AAAA,EAAA;AAGP;"}
@@ -1,10 +1,12 @@
1
- const t = "_root_znlj6_1", o = "_item_znlj6_13", e = {
1
+ const t = "_root_vzxpv_1", o = "_item_vzxpv_13", r = "_withSeparators_vzxpv_26", s = {
2
2
  root: t,
3
- item: o
3
+ item: o,
4
+ withSeparators: r
4
5
  };
5
6
  export {
6
- e as default,
7
+ s as default,
7
8
  o as item,
8
- t as root
9
+ t as root,
10
+ r as withSeparators
9
11
  };
10
12
  //# sourceMappingURL=DescriptionList.module.scss.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"DescriptionList.module.scss.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"}
1
+ {"version":3,"file":"DescriptionList.module.scss.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;"}
@@ -5,6 +5,11 @@ export interface DescriptionListItem {
5
5
  }
6
6
  export interface DescriptionListProps {
7
7
  items: DescriptionListItem[];
8
+ layout?: 'stacked' | 'horizontal';
9
+ showSeparators?: boolean;
8
10
  className?: string;
9
11
  }
10
- export declare const DescriptionListDefaults: {};
12
+ export declare const DescriptionListDefaults: {
13
+ readonly layout: "stacked";
14
+ readonly showSeparators: true;
15
+ };
@@ -1,4 +1,7 @@
1
- const t = {};
1
+ const t = {
2
+ layout: "stacked",
3
+ showSeparators: !0
4
+ };
2
5
  export {
3
6
  t as DescriptionListDefaults
4
7
  };
@@ -1 +1 @@
1
- {"version":3,"file":"DescriptionListTypes.js","sources":["../../../../../src/components/Common/UI/DescriptionList/DescriptionListTypes.ts"],"sourcesContent":["import type { ReactNode } from 'react'\n\nexport interface DescriptionListItem {\n term: ReactNode | ReactNode[]\n description: ReactNode | ReactNode[]\n}\n\nexport interface DescriptionListProps {\n items: DescriptionListItem[]\n className?: string\n}\n\nexport const DescriptionListDefaults = {} as const satisfies Partial<DescriptionListProps>\n"],"names":["DescriptionListDefaults"],"mappings":"AAYO,MAAMA,IAA0B,CAAA;"}
1
+ {"version":3,"file":"DescriptionListTypes.js","sources":["../../../../../src/components/Common/UI/DescriptionList/DescriptionListTypes.ts"],"sourcesContent":["import type { ReactNode } from 'react'\n\nexport interface DescriptionListItem {\n term: ReactNode | ReactNode[]\n description: ReactNode | ReactNode[]\n}\n\nexport interface DescriptionListProps {\n items: DescriptionListItem[]\n layout?: 'stacked' | 'horizontal'\n showSeparators?: boolean\n className?: string\n}\n\nexport const DescriptionListDefaults = {\n layout: 'stacked',\n showSeparators: true,\n} as const satisfies Partial<DescriptionListProps>\n"],"names":["DescriptionListDefaults"],"mappings":"AAcO,MAAMA,IAA0B;AAAA,EACrC,QAAQ;AAAA,EACR,gBAAgB;AAClB;"}
@@ -1,23 +1,23 @@
1
- const t = "_root_8h5ym_1", _ = "_h1_8h5ym_7", h = "_h2_8h5ym_11", n = "_h3_8h5ym_14", e = "_h4_8h5ym_17", o = "_h5_8h5ym_20", s = "_h6_8h5ym_23", y = {
1
+ const t = "_root_1as7b_1", _ = "_h1_1as7b_7", s = "_h2_1as7b_11", h = "_h3_1as7b_14", n = "_h4_1as7b_17", e = "_h5_1as7b_20", o = "_h6_1as7b_23", a = {
2
2
  root: t,
3
3
  h1: _,
4
- h2: h,
5
- h3: n,
6
- h4: e,
7
- h5: o,
8
- h6: s,
9
- "textAlign-start": "_textAlign-start_8h5ym_26",
10
- "textAlign-center": "_textAlign-center_8h5ym_29",
11
- "textAlign-end": "_textAlign-end_8h5ym_32"
4
+ h2: s,
5
+ h3: h,
6
+ h4: n,
7
+ h5: e,
8
+ h6: o,
9
+ "textAlign-start": "_textAlign-start_1as7b_26",
10
+ "textAlign-center": "_textAlign-center_1as7b_29",
11
+ "textAlign-end": "_textAlign-end_1as7b_32"
12
12
  };
13
13
  export {
14
- y as default,
14
+ a as default,
15
15
  _ as h1,
16
- h as h2,
17
- n as h3,
18
- e as h4,
19
- o as h5,
20
- s as h6,
16
+ s as h2,
17
+ h as h3,
18
+ n as h4,
19
+ e as h5,
20
+ o as h6,
21
21
  t as root
22
22
  };
23
23
  //# sourceMappingURL=Heading.module.scss.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Input.js","sources":["../../../../../src/components/Common/UI/Input/Input.tsx"],"sourcesContent":["import { Input as AriaInput } from 'react-aria-components'\nimport classNames from 'classnames'\nimport styles from './Input.module.scss'\nimport type { InputProps } from './InputTypes'\nimport { InputDefaults } from './InputTypes'\nimport { applyMissingDefaults } from '@/helpers/applyMissingDefaults'\nimport AlertCircle from '@/assets/icons/alert-circle.svg?react'\n\nexport function Input(rawProps: InputProps) {\n const resolvedProps = applyMissingDefaults(rawProps, InputDefaults)\n const {\n className,\n adornmentStart,\n adornmentEnd,\n inputRef,\n isDisabled,\n 'aria-invalid': ariaInvalid,\n ...otherProps\n } = resolvedProps\n return (\n <div\n className={classNames(\n styles.container,\n {\n [styles.hasAdornmentStart as string]: !!adornmentStart,\n [styles.hasAdornmentEnd as string]: !!adornmentEnd,\n },\n className,\n )}\n data-disabled={isDisabled}\n >\n {adornmentStart && <div className={styles.adornmentStart}>{adornmentStart}</div>}\n <div className={styles.inputContainer}>\n <AriaInput\n ref={inputRef}\n disabled={isDisabled}\n aria-invalid={ariaInvalid}\n {...otherProps}\n />\n <div className={styles.invalidIcon}>\n <AlertCircle fontSize={16} />\n </div>\n </div>\n {adornmentEnd && <div className={styles.adornmentEnd}>{adornmentEnd}</div>}\n </div>\n )\n}\n"],"names":["Input","rawProps","resolvedProps","applyMissingDefaults","InputDefaults","className","adornmentStart","adornmentEnd","inputRef","isDisabled","ariaInvalid","otherProps","jsxs","classNames","styles","jsx","AriaInput","AlertCircle"],"mappings":";;;;;;;AAQO,SAASA,EAAMC,GAAsB;AAC1C,QAAMC,IAAgBC,EAAqBF,GAAUG,CAAa,GAC5D;AAAA,IACJ,WAAAC;AAAA,IACA,gBAAAC;AAAA,IACA,cAAAC;AAAA,IACA,UAAAC;AAAA,IACA,YAAAC;AAAA,IACA,gBAAgBC;AAAA,IAChB,GAAGC;AAAA,EAAA,IACDT;AACJ,SACE,gBAAAU;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,WAAWC;AAAA,QACTC,EAAO;AAAA,QACP;AAAA,UACE,CAACA,EAAO,iBAA2B,GAAG,CAAC,CAACR;AAAA,UACxC,CAACQ,EAAO,eAAyB,GAAG,CAAC,CAACP;AAAA,QAAA;AAAA,QAExCF;AAAA,MAAA;AAAA,MAEF,iBAAeI;AAAA,MAEd,UAAA;AAAA,QAAAH,KAAkB,gBAAAS,EAAC,OAAA,EAAI,WAAWD,EAAO,gBAAiB,UAAAR,GAAe;AAAA,QAC1E,gBAAAM,EAAC,OAAA,EAAI,WAAWE,EAAO,gBACrB,UAAA;AAAA,UAAA,gBAAAC;AAAA,YAACC;AAAAA,YAAA;AAAA,cACC,KAAKR;AAAA,cACL,UAAUC;AAAA,cACV,gBAAcC;AAAA,cACb,GAAGC;AAAA,YAAA;AAAA,UAAA;AAAA,UAEN,gBAAAI,EAAC,SAAI,WAAWD,EAAO,aACrB,UAAA,gBAAAC,EAACE,GAAA,EAAY,UAAU,GAAA,CAAI,EAAA,CAC7B;AAAA,QAAA,GACF;AAAA,QACCV,KAAgB,gBAAAQ,EAAC,OAAA,EAAI,WAAWD,EAAO,cAAe,UAAAP,EAAA,CAAa;AAAA,MAAA;AAAA,IAAA;AAAA,EAAA;AAG1E;"}
1
+ {"version":3,"file":"Input.js","sources":["../../../../../src/components/Common/UI/Input/Input.tsx"],"sourcesContent":["import { Input as AriaInput } from 'react-aria-components'\nimport classNames from 'classnames'\nimport styles from './Input.module.scss'\nimport type { InputProps } from './InputTypes'\nimport { InputDefaults } from './InputTypes'\nimport { applyMissingDefaults } from '@/helpers/applyMissingDefaults'\nimport AlertCircle from '@/assets/icons/alert-circle.svg?react'\n\nexport function Input(rawProps: InputProps) {\n const resolvedProps = applyMissingDefaults(rawProps, InputDefaults)\n const {\n className,\n adornmentStart,\n adornmentEnd,\n inputRef,\n isDisabled,\n 'aria-invalid': ariaInvalid,\n ...otherProps\n } = resolvedProps\n\n return (\n <div\n className={classNames(\n styles.container,\n {\n [styles.hasAdornmentStart as string]: !!adornmentStart,\n [styles.hasAdornmentEnd as string]: !!adornmentEnd,\n },\n className,\n )}\n data-disabled={isDisabled}\n >\n {adornmentStart && <div className={styles.adornmentStart}>{adornmentStart}</div>}\n <div className={styles.inputContainer}>\n <AriaInput\n ref={inputRef}\n disabled={isDisabled}\n aria-invalid={ariaInvalid}\n {...otherProps}\n />\n <div className={styles.invalidIcon}>\n <AlertCircle fontSize={16} />\n </div>\n </div>\n {adornmentEnd && <div className={styles.adornmentEnd}>{adornmentEnd}</div>}\n </div>\n )\n}\n"],"names":["Input","rawProps","resolvedProps","applyMissingDefaults","InputDefaults","className","adornmentStart","adornmentEnd","inputRef","isDisabled","ariaInvalid","otherProps","jsxs","classNames","styles","jsx","AriaInput","AlertCircle"],"mappings":";;;;;;;AAQO,SAASA,EAAMC,GAAsB;AAC1C,QAAMC,IAAgBC,EAAqBF,GAAUG,CAAa,GAC5D;AAAA,IACJ,WAAAC;AAAA,IACA,gBAAAC;AAAA,IACA,cAAAC;AAAA,IACA,UAAAC;AAAA,IACA,YAAAC;AAAA,IACA,gBAAgBC;AAAA,IAChB,GAAGC;AAAA,EAAA,IACDT;AAEJ,SACE,gBAAAU;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,WAAWC;AAAA,QACTC,EAAO;AAAA,QACP;AAAA,UACE,CAACA,EAAO,iBAA2B,GAAG,CAAC,CAACR;AAAA,UACxC,CAACQ,EAAO,eAAyB,GAAG,CAAC,CAACP;AAAA,QAAA;AAAA,QAExCF;AAAA,MAAA;AAAA,MAEF,iBAAeI;AAAA,MAEd,UAAA;AAAA,QAAAH,KAAkB,gBAAAS,EAAC,OAAA,EAAI,WAAWD,EAAO,gBAAiB,UAAAR,GAAe;AAAA,QAC1E,gBAAAM,EAAC,OAAA,EAAI,WAAWE,EAAO,gBACrB,UAAA;AAAA,UAAA,gBAAAC;AAAA,YAACC;AAAAA,YAAA;AAAA,cACC,KAAKR;AAAA,cACL,UAAUC;AAAA,cACV,gBAAcC;AAAA,cACb,GAAGC;AAAA,YAAA;AAAA,UAAA;AAAA,UAEN,gBAAAI,EAAC,SAAI,WAAWD,EAAO,aACrB,UAAA,gBAAAC,EAACE,GAAA,EAAY,UAAU,GAAA,CAAI,EAAA,CAC7B;AAAA,QAAA,GACF;AAAA,QACCV,KAAgB,gBAAAQ,EAAC,OAAA,EAAI,WAAWD,EAAO,cAAe,UAAAP,EAAA,CAAa;AAAA,MAAA;AAAA,IAAA;AAAA,EAAA;AAG1E;"}
@@ -34,7 +34,7 @@ export interface RadioGroupProps extends SharedFieldLayoutProps, Pick<FieldsetHT
34
34
  /**
35
35
  * Currently selected value
36
36
  */
37
- value?: string;
37
+ value?: string | null;
38
38
  /**
39
39
  * Initially selected value
40
40
  */