@gusto/embedded-react-sdk 0.16.0 → 0.17.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (179) hide show
  1. package/CHANGELOG.md +19 -0
  2. package/dist/components/Common/EmptyData/EmptyData.js +10 -10
  3. package/dist/components/Common/EmptyData/EmptyData.js.map +1 -1
  4. package/dist/components/Common/EmptyData/EmptyData.module.scss.js +5 -3
  5. package/dist/components/Common/EmptyData/EmptyData.module.scss.js.map +1 -1
  6. package/dist/components/Common/FieldDescription/FieldDescription.module.scss.js +1 -1
  7. package/dist/components/Common/FlowBreadcrumbs/FlowBreadcrumbs.js +21 -19
  8. package/dist/components/Common/FlowBreadcrumbs/FlowBreadcrumbs.js.map +1 -1
  9. package/dist/components/Common/SignatureForm/SignatureForm.js +4 -3
  10. package/dist/components/Common/SignatureForm/SignatureForm.js.map +1 -1
  11. package/dist/components/Common/SignatureForm/SignatureFormActions.js +8 -7
  12. package/dist/components/Common/SignatureForm/SignatureFormActions.js.map +1 -1
  13. package/dist/components/Common/SignatureForm/SignatureFormFields.js +9 -8
  14. package/dist/components/Common/SignatureForm/SignatureFormFields.js.map +1 -1
  15. package/dist/components/Common/UI/Breadcrumbs/Breadcrumbs.d.ts +1 -1
  16. package/dist/components/Common/UI/Breadcrumbs/Breadcrumbs.js +32 -18
  17. package/dist/components/Common/UI/Breadcrumbs/Breadcrumbs.js.map +1 -1
  18. package/dist/components/Common/UI/Breadcrumbs/Breadcrumbs.module.scss.js +12 -12
  19. package/dist/components/Common/UI/Breadcrumbs/BreadcrumbsTypes.d.ts +14 -0
  20. package/dist/components/Common/UI/Breadcrumbs/BreadcrumbsTypes.js +8 -0
  21. package/dist/components/Common/UI/Breadcrumbs/BreadcrumbsTypes.js.map +1 -0
  22. package/dist/components/Common/UI/DescriptionList/DescriptionList.d.ts +2 -0
  23. package/dist/components/Common/UI/DescriptionList/DescriptionList.js +16 -0
  24. package/dist/components/Common/UI/DescriptionList/DescriptionList.js.map +1 -0
  25. package/dist/components/Common/UI/DescriptionList/DescriptionList.module.scss.js +10 -0
  26. package/dist/components/Common/UI/DescriptionList/DescriptionList.module.scss.js.map +1 -0
  27. package/dist/components/Common/UI/DescriptionList/DescriptionListTypes.d.ts +10 -0
  28. package/dist/components/Common/UI/DescriptionList/DescriptionListTypes.js +5 -0
  29. package/dist/components/Common/UI/DescriptionList/DescriptionListTypes.js.map +1 -0
  30. package/dist/components/Common/UI/DescriptionList/index.d.ts +3 -0
  31. package/dist/components/Company/AssignSignatory/AssignSignatory.js +1 -1
  32. package/dist/components/Company/AssignSignatory/AssignSignatorySelection.js +3 -2
  33. package/dist/components/Company/AssignSignatory/AssignSignatorySelection.js.map +1 -1
  34. package/dist/components/Company/AssignSignatory/CreateSignatory/Actions.js +3 -2
  35. package/dist/components/Company/AssignSignatory/CreateSignatory/Actions.js.map +1 -1
  36. package/dist/components/Company/AssignSignatory/CreateSignatory/CreateSignatory.js +1 -1
  37. package/dist/components/Company/AssignSignatory/InviteSignatory/Actions.js +3 -2
  38. package/dist/components/Company/AssignSignatory/InviteSignatory/Actions.js.map +1 -1
  39. package/dist/components/Company/AssignSignatory/InviteSignatory/InviteSignatory.js +1 -1
  40. package/dist/components/Company/BankAccount/BankAccountForm/Actions.js +6 -6
  41. package/dist/components/Company/BankAccount/BankAccountForm/Form.js +9 -8
  42. package/dist/components/Company/BankAccount/BankAccountForm/Form.js.map +1 -1
  43. package/dist/components/Company/BankAccount/BankAccountList/AccountView.js +22 -17
  44. package/dist/components/Company/BankAccount/BankAccountList/AccountView.js.map +1 -1
  45. package/dist/components/Company/BankAccount/BankAccountList/Actions.js +9 -8
  46. package/dist/components/Company/BankAccount/BankAccountList/Actions.js.map +1 -1
  47. package/dist/components/Company/BankAccount/BankAccountVerify/Actions.js +8 -7
  48. package/dist/components/Company/BankAccount/BankAccountVerify/Actions.js.map +1 -1
  49. package/dist/components/Company/BankAccount/BankAccountVerify/Form.js +5 -4
  50. package/dist/components/Company/BankAccount/BankAccountVerify/Form.js.map +1 -1
  51. package/dist/components/Company/DocumentSigner/DocumentList/Actions.js +3 -2
  52. package/dist/components/Company/DocumentSigner/DocumentList/Actions.js.map +1 -1
  53. package/dist/components/Company/DocumentSigner/DocumentList/DocumentList.js +1 -1
  54. package/dist/components/Company/DocumentSigner/SignatureForm/SignatureForm.js +1 -1
  55. package/dist/components/Company/FederalTaxes/Actions.js +6 -5
  56. package/dist/components/Company/FederalTaxes/Actions.js.map +1 -1
  57. package/dist/components/Company/FederalTaxes/FederalTaxes.js +1 -1
  58. package/dist/components/Company/FederalTaxes/Form.js +3 -2
  59. package/dist/components/Company/FederalTaxes/Form.js.map +1 -1
  60. package/dist/components/Company/Industry/Actions.js +3 -2
  61. package/dist/components/Company/Industry/Actions.js.map +1 -1
  62. package/dist/components/Company/Industry/Edit.js +5 -4
  63. package/dist/components/Company/Industry/Edit.js.map +1 -1
  64. package/dist/components/Company/Locations/LocationForm/Actions.js +7 -6
  65. package/dist/components/Company/Locations/LocationForm/Actions.js.map +1 -1
  66. package/dist/components/Company/Locations/LocationForm/LocationForm.js +2 -2
  67. package/dist/components/Company/Locations/LocationsList/Actions.js +7 -6
  68. package/dist/components/Company/Locations/LocationsList/Actions.js.map +1 -1
  69. package/dist/components/Company/Locations/LocationsList/List.js +7 -6
  70. package/dist/components/Company/Locations/LocationsList/List.js.map +1 -1
  71. package/dist/components/Company/Locations/LocationsList/LocationsList.js +1 -1
  72. package/dist/components/Company/OnboardingOverview/Completed.js +11 -10
  73. package/dist/components/Company/OnboardingOverview/Completed.js.map +1 -1
  74. package/dist/components/Company/OnboardingOverview/MissingRequirements.js +7 -6
  75. package/dist/components/Company/OnboardingOverview/MissingRequirements.js.map +1 -1
  76. package/dist/components/Company/OnboardingOverview/OnboardingOverview.js +1 -1
  77. package/dist/components/Company/PaySchedule/PaySchedule.js +2 -2
  78. package/dist/components/Company/PaySchedule/_parts/Actions.js +10 -9
  79. package/dist/components/Company/PaySchedule/_parts/Actions.js.map +1 -1
  80. package/dist/components/Company/PaySchedule/_parts/Head.js +7 -6
  81. package/dist/components/Company/PaySchedule/_parts/Head.js.map +1 -1
  82. package/dist/components/Company/PaySchedule/_parts/List.js +12 -11
  83. package/dist/components/Company/PaySchedule/_parts/List.js.map +1 -1
  84. package/dist/components/Company/StateTaxes/StateTaxesForm/Actions.js +3 -2
  85. package/dist/components/Company/StateTaxes/StateTaxesForm/Actions.js.map +1 -1
  86. package/dist/components/Company/StateTaxes/StateTaxesList/Actions.js +3 -2
  87. package/dist/components/Company/StateTaxes/StateTaxesList/Actions.js.map +1 -1
  88. package/dist/components/Company/StateTaxes/StateTaxesList/List.js +3 -2
  89. package/dist/components/Company/StateTaxes/StateTaxesList/List.js.map +1 -1
  90. package/dist/components/Contractor/Address/Address.js +2 -2
  91. package/dist/components/Contractor/ContractorList/index.js +17 -17
  92. package/dist/components/Contractor/PaymentMethod/BankAccountForm.js +5 -4
  93. package/dist/components/Contractor/PaymentMethod/BankAccountForm.js.map +1 -1
  94. package/dist/components/Contractor/Submit/Submit.js +1 -1
  95. package/dist/components/Employee/Compensation/Actions.js +1 -1
  96. package/dist/components/Employee/Compensation/List.js +23 -22
  97. package/dist/components/Employee/Compensation/List.js.map +1 -1
  98. package/dist/components/Employee/Deductions/DeductionsForm/ChildSupportForm.js +1 -1
  99. package/dist/components/Employee/Deductions/DeductionsForm/CustomDeductionForm.js +1 -1
  100. package/dist/components/Employee/Deductions/DeductionsForm/DeductionsForm.js +1 -1
  101. package/dist/components/Employee/Deductions/DeductionsList/DeductionsList.js +1 -1
  102. package/dist/components/Employee/Deductions/IncludeDeductionsForm/IncludeDeductionsForm.js +1 -1
  103. package/dist/components/Employee/DocumentSigner/DocumentList/Actions.js +7 -6
  104. package/dist/components/Employee/DocumentSigner/DocumentList/Actions.js.map +1 -1
  105. package/dist/components/Employee/DocumentSigner/DocumentList/DocumentList.js +1 -1
  106. package/dist/components/Employee/DocumentSigner/DocumentList/List.js +3 -2
  107. package/dist/components/Employee/DocumentSigner/DocumentList/List.js.map +1 -1
  108. package/dist/components/Employee/DocumentSigner/SignatureForm/SignatureForm.js +1 -1
  109. package/dist/components/Employee/EmployeeList/Actions.js +3 -2
  110. package/dist/components/Employee/EmployeeList/Actions.js.map +1 -1
  111. package/dist/components/Employee/EmployeeList/EmployeeList.js +4 -3
  112. package/dist/components/Employee/EmployeeList/EmployeeList.js.map +1 -1
  113. package/dist/components/Employee/EmployeeList/Head.js +6 -5
  114. package/dist/components/Employee/EmployeeList/Head.js.map +1 -1
  115. package/dist/components/Employee/EmployeeList/List.js +10 -10
  116. package/dist/components/Employee/FederalTaxes/Actions.js +7 -6
  117. package/dist/components/Employee/FederalTaxes/Actions.js.map +1 -1
  118. package/dist/components/Employee/FederalTaxes/FederalForm.js +11 -10
  119. package/dist/components/Employee/FederalTaxes/FederalForm.js.map +1 -1
  120. package/dist/components/Employee/Landing/Landing.js +8 -8
  121. package/dist/components/Employee/OnboardingSummary/OnboardingSummary.js +7 -7
  122. package/dist/components/Employee/PaymentMethod/Actions.js +6 -5
  123. package/dist/components/Employee/PaymentMethod/Actions.js.map +1 -1
  124. package/dist/components/Employee/PaymentMethod/BankAccountsList.js +9 -8
  125. package/dist/components/Employee/PaymentMethod/BankAccountsList.js.map +1 -1
  126. package/dist/components/Employee/PaymentMethod/PaymentMethod.d.ts +1 -0
  127. package/dist/components/Employee/PaymentMethod/PaymentMethod.js +79 -78
  128. package/dist/components/Employee/PaymentMethod/PaymentMethod.js.map +1 -1
  129. package/dist/components/Employee/PaymentMethod/PaymentTypeForm.js +11 -11
  130. package/dist/components/Employee/PaymentMethod/PaymentTypeForm.js.map +1 -1
  131. package/dist/components/Employee/PaymentMethod/Split.js +1 -1
  132. package/dist/components/Employee/PaymentMethod/usePaymentMethod.d.ts +1 -0
  133. package/dist/components/Employee/PaymentMethod/usePaymentMethod.js.map +1 -1
  134. package/dist/components/Employee/Profile/Actions.js +7 -6
  135. package/dist/components/Employee/Profile/Actions.js.map +1 -1
  136. package/dist/components/Employee/StateTaxes/Actions.js +8 -7
  137. package/dist/components/Employee/StateTaxes/Actions.js.map +1 -1
  138. package/dist/components/Employee/Taxes/Actions.js +9 -8
  139. package/dist/components/Employee/Taxes/Actions.js.map +1 -1
  140. package/dist/components/Employee/Taxes/FederalForm.js +9 -8
  141. package/dist/components/Employee/Taxes/FederalForm.js.map +1 -1
  142. package/dist/components/Flow/Flow.js +11 -10
  143. package/dist/components/Flow/Flow.js.map +1 -1
  144. package/dist/components/Payroll/PayrollBlocker/components/PayrollBlockerAlerts.js +3 -2
  145. package/dist/components/Payroll/PayrollBlocker/components/PayrollBlockerAlerts.js.map +1 -1
  146. package/dist/components/Payroll/PayrollBlocker/components/PayrollBlockerList.js +7 -6
  147. package/dist/components/Payroll/PayrollBlocker/components/PayrollBlockerList.js.map +1 -1
  148. package/dist/components/Payroll/PayrollConfiguration/PayrollConfiguration.js +88 -77
  149. package/dist/components/Payroll/PayrollConfiguration/PayrollConfiguration.js.map +1 -1
  150. package/dist/components/Payroll/PayrollConfiguration/PayrollConfigurationPresentation.d.ts +5 -1
  151. package/dist/components/Payroll/PayrollConfiguration/PayrollConfigurationPresentation.js +88 -84
  152. package/dist/components/Payroll/PayrollConfiguration/PayrollConfigurationPresentation.js.map +1 -1
  153. package/dist/components/Payroll/PayrollEditEmployee/TimeOffField.js +3 -2
  154. package/dist/components/Payroll/PayrollEditEmployee/TimeOffField.js.map +1 -1
  155. package/dist/components/Payroll/PayrollHistory/PayrollHistoryPresentation.js +3 -2
  156. package/dist/components/Payroll/PayrollHistory/PayrollHistoryPresentation.js.map +1 -1
  157. package/dist/components/Payroll/PayrollList/PayrollListPresentation.js +3 -2
  158. package/dist/components/Payroll/PayrollList/PayrollListPresentation.js.map +1 -1
  159. package/dist/components/Payroll/PayrollOverview/PayrollOverviewPresentation.js +34 -34
  160. package/dist/components/Payroll/PayrollOverview/PayrollOverviewPresentation.js.map +1 -1
  161. package/dist/components/Payroll/PayrollReceipts/PayrollReceiptsPresentation.js +3 -2
  162. package/dist/components/Payroll/PayrollReceipts/PayrollReceiptsPresentation.js.map +1 -1
  163. package/dist/contexts/ComponentAdapter/adapters/defaultComponentAdapter.js +29 -27
  164. package/dist/contexts/ComponentAdapter/adapters/defaultComponentAdapter.js.map +1 -1
  165. package/dist/contexts/ComponentAdapter/componentAdapterTypes.d.ts +1 -0
  166. package/dist/contexts/ComponentAdapter/useComponentContext.d.ts +2 -0
  167. package/dist/contexts/ComponentAdapter/useComponentContext.js.map +1 -1
  168. package/dist/contexts/GustoProvider/GustoProviderCustomUIAdapter.js +3 -2
  169. package/dist/contexts/GustoProvider/GustoProviderCustomUIAdapter.js.map +1 -1
  170. package/dist/helpers/dateFormatting.d.ts +4 -0
  171. package/dist/helpers/dateFormatting.js +30 -14
  172. package/dist/helpers/dateFormatting.js.map +1 -1
  173. package/dist/i18n/en/Employee.PaymentMethod.json.js +70 -66
  174. package/dist/i18n/en/Employee.PaymentMethod.json.js.map +1 -1
  175. package/dist/i18n/en/Payroll.PayrollConfiguration.json.js +17 -17
  176. package/dist/i18n/en/Payroll.PayrollOverview.json.js +1 -1
  177. package/dist/style.css +1 -1
  178. package/dist/types/i18next.d.ts +4 -0
  179. package/package.json +3 -3
@@ -5,59 +5,61 @@ import { CheckboxGroup as i } from "../../../components/Common/UI/CheckboxGroup/
5
5
  import { ComboBox as e } from "../../../components/Common/UI/ComboBox/ComboBox.js";
6
6
  import { Checkbox as p } from "../../../components/Common/UI/Checkbox/Checkbox.js";
7
7
  import { DatePicker as f } from "../../../components/Common/UI/DatePicker/DatePicker.js";
8
- import { Radio as a } from "../../../components/Common/UI/Radio/Radio.js";
9
- import { RadioGroup as n } from "../../../components/Common/UI/RadioGroup/RadioGroup.js";
8
+ import { Radio as n } from "../../../components/Common/UI/Radio/Radio.js";
9
+ import { RadioGroup as a } from "../../../components/Common/UI/RadioGroup/RadioGroup.js";
10
10
  import { Select as d } from "../../../components/Common/UI/Select/Select.js";
11
- import { Switch as u } from "../../../components/Common/UI/Switch/Switch.js";
12
- import { Button as c } from "../../../components/Common/UI/Button/Button.js";
13
- import { ButtonIcon as s } from "../../../components/Common/UI/Button/ButtonIcon.js";
11
+ import { Switch as s } from "../../../components/Common/UI/Switch/Switch.js";
12
+ import { Button as u } from "../../../components/Common/UI/Button/Button.js";
13
+ import { ButtonIcon as c } from "../../../components/Common/UI/Button/ButtonIcon.js";
14
14
  import { Alert as b } from "../../../components/Common/UI/Alert/Alert.js";
15
15
  import { Card as x } from "../../../components/Common/UI/Card/Card.js";
16
16
  import { Badge as B } from "../../../components/Common/UI/Badge/Badge.js";
17
17
  import { Link as l } from "../../../components/Common/UI/Link/Link.js";
18
18
  import { Menu as C } from "../../../components/Common/UI/Menu/Menu.js";
19
19
  import { Table as g } from "../../../components/Common/UI/Table/Table.js";
20
- import { OrderedList as k } from "../../../components/Common/UI/List/OrderedList.js";
21
- import { UnorderedList as L } from "../../../components/Common/UI/List/UnorderedList.js";
20
+ import { OrderedList as L } from "../../../components/Common/UI/List/OrderedList.js";
21
+ import { UnorderedList as k } from "../../../components/Common/UI/List/UnorderedList.js";
22
22
  import { Heading as T } from "../../../components/Common/UI/Heading/Heading.js";
23
23
  import { Text as h } from "../../../components/Common/UI/Text/Text.js";
24
- import { CalendarPreview as I } from "../../../components/Common/UI/CalendarPreview/CalendarPreview.js";
25
- import { ProgressBar as P } from "../../../components/Common/UI/ProgressBar/ProgressBar.js";
26
- import { Breadcrumbs as S } from "../../../components/Common/UI/Breadcrumbs/Breadcrumbs.js";
27
- import { Tabs as w } from "../../../components/Common/UI/Tabs/Tabs.js";
28
- import { Dialog as D } from "../../../components/Common/UI/Dialog/Dialog.js";
24
+ import { CalendarPreview as D } from "../../../components/Common/UI/CalendarPreview/CalendarPreview.js";
25
+ import { ProgressBar as I } from "../../../components/Common/UI/ProgressBar/ProgressBar.js";
26
+ import { Breadcrumbs as P } from "../../../components/Common/UI/Breadcrumbs/Breadcrumbs.js";
27
+ import { Tabs as S } from "../../../components/Common/UI/Tabs/Tabs.js";
28
+ import { Dialog as w } from "../../../components/Common/UI/Dialog/Dialog.js";
29
29
  import { LoadingSpinner as G } from "../../../components/Common/UI/LoadingSpinner/LoadingSpinner.js";
30
- const er = {
30
+ import { DescriptionList as R } from "../../../components/Common/UI/DescriptionList/DescriptionList.js";
31
+ const fr = {
31
32
  Alert: (r) => /* @__PURE__ */ o(b, { ...r }),
32
33
  Badge: (r) => /* @__PURE__ */ o(B, { ...r }),
33
- Button: (r) => /* @__PURE__ */ o(c, { ...r }),
34
- ButtonIcon: (r) => /* @__PURE__ */ o(s, { ...r }),
34
+ Button: (r) => /* @__PURE__ */ o(u, { ...r }),
35
+ ButtonIcon: (r) => /* @__PURE__ */ o(c, { ...r }),
35
36
  Card: (r) => /* @__PURE__ */ o(x, { ...r }),
36
37
  TextInput: (r) => /* @__PURE__ */ o(m, { ...r }),
37
38
  Checkbox: (r) => /* @__PURE__ */ o(p, { ...r }),
38
39
  CheckboxGroup: (r) => /* @__PURE__ */ o(i, { ...r }),
39
40
  ComboBox: (r) => /* @__PURE__ */ o(e, { ...r }),
40
41
  DatePicker: (r) => /* @__PURE__ */ o(f, { ...r }),
41
- OrderedList: (r) => /* @__PURE__ */ o(k, { ...r }),
42
- UnorderedList: (r) => /* @__PURE__ */ o(L, { ...r }),
42
+ OrderedList: (r) => /* @__PURE__ */ o(L, { ...r }),
43
+ UnorderedList: (r) => /* @__PURE__ */ o(k, { ...r }),
43
44
  NumberInput: (r) => /* @__PURE__ */ o(t, { ...r }),
44
- Radio: (r) => /* @__PURE__ */ o(a, { ...r }),
45
- RadioGroup: (r) => /* @__PURE__ */ o(n, { ...r }),
45
+ Radio: (r) => /* @__PURE__ */ o(n, { ...r }),
46
+ RadioGroup: (r) => /* @__PURE__ */ o(a, { ...r }),
46
47
  Select: (r) => /* @__PURE__ */ o(d, { ...r }),
47
- Switch: (r) => /* @__PURE__ */ o(u, { ...r }),
48
+ Switch: (r) => /* @__PURE__ */ o(s, { ...r }),
48
49
  Link: (r) => /* @__PURE__ */ o(l, { ...r }),
49
50
  Menu: (r) => /* @__PURE__ */ o(C, { ...r }),
50
51
  Table: (r) => /* @__PURE__ */ o(g, { ...r }),
51
52
  Heading: (r) => /* @__PURE__ */ o(T, { ...r }),
52
53
  Text: (r) => /* @__PURE__ */ o(h, { ...r }),
53
- CalendarPreview: (r) => /* @__PURE__ */ o(I, { ...r }),
54
- ProgressBar: (r) => /* @__PURE__ */ o(P, { ...r }),
55
- Breadcrumbs: (r) => /* @__PURE__ */ o(S, { ...r }),
56
- Tabs: (r) => /* @__PURE__ */ o(w, { ...r }),
57
- Dialog: (r) => /* @__PURE__ */ o(D, { ...r }),
58
- LoadingSpinner: (r) => /* @__PURE__ */ o(G, { ...r })
54
+ CalendarPreview: (r) => /* @__PURE__ */ o(D, { ...r }),
55
+ ProgressBar: (r) => /* @__PURE__ */ o(I, { ...r }),
56
+ Breadcrumbs: (r) => /* @__PURE__ */ o(P, { ...r }),
57
+ Tabs: (r) => /* @__PURE__ */ o(S, { ...r }),
58
+ Dialog: (r) => /* @__PURE__ */ o(w, { ...r }),
59
+ LoadingSpinner: (r) => /* @__PURE__ */ o(G, { ...r }),
60
+ DescriptionList: (r) => /* @__PURE__ */ o(R, { ...r })
59
61
  };
60
62
  export {
61
- er as defaultComponents
63
+ fr as defaultComponents
62
64
  };
63
65
  //# sourceMappingURL=defaultComponentAdapter.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"defaultComponentAdapter.js","sources":["../../../../src/contexts/ComponentAdapter/adapters/defaultComponentAdapter.tsx"],"sourcesContent":["// This is used to set the default adapter and can already be ommitted by using the\n// `GustoProviderCustomUIAdapter` component. That means this is a safe file to use\n// non type imports from the UI directory so the lint rule is disabled for this file.\n/* eslint-disable no-restricted-imports */\nimport type { ComponentsContextType } from '../useComponentContext'\nimport type { TextInputProps } from '@/components/Common/UI/TextInput/TextInputTypes'\nimport { TextInput } from '@/components/Common/UI/TextInput'\nimport type { NumberInputProps } from '@/components/Common/UI/NumberInput/NumberInputTypes'\nimport { NumberInput } from '@/components/Common/UI/NumberInput'\nimport type { CheckboxGroupProps } from '@/components/Common/UI/CheckboxGroup/CheckboxGroupTypes'\nimport { CheckboxGroup } from '@/components/Common/UI/CheckboxGroup'\nimport type { ComboBoxProps } from '@/components/Common/UI/ComboBox/ComboBoxTypes'\nimport { ComboBox } from '@/components/Common/UI/ComboBox/ComboBox'\nimport type { CheckboxProps } from '@/components/Common/UI/Checkbox/CheckboxTypes'\nimport { Checkbox } from '@/components/Common/UI/Checkbox'\nimport type { DatePickerProps } from '@/components/Common/UI/DatePicker/DatePickerTypes'\nimport { DatePicker } from '@/components/Common/UI/DatePicker'\nimport type { RadioProps } from '@/components/Common/UI/Radio/RadioTypes'\nimport { Radio } from '@/components/Common/UI/Radio'\nimport type { RadioGroupProps } from '@/components/Common/UI/RadioGroup/RadioGroupTypes'\nimport { RadioGroup } from '@/components/Common/UI/RadioGroup'\nimport type { SelectProps } from '@/components/Common/UI/Select/SelectTypes'\nimport { Select } from '@/components/Common/UI/Select'\nimport type { SwitchProps } from '@/components/Common/UI/Switch/SwitchTypes'\nimport { Switch } from '@/components/Common/UI/Switch'\nimport type { ButtonProps, ButtonIconProps } from '@/components/Common/UI/Button/ButtonTypes'\nimport { Button } from '@/components/Common/UI/Button'\nimport { ButtonIcon } from '@/components/Common/UI/Button/ButtonIcon'\nimport type { AlertProps } from '@/components/Common/UI/Alert/AlertTypes'\nimport { Alert } from '@/components/Common/UI/Alert/Alert'\nimport type { CardProps } from '@/components/Common/UI/Card/CardTypes'\nimport { Card } from '@/components/Common/UI/Card/Card'\nimport { Badge } from '@/components/Common/UI/Badge/Badge'\nimport type { BadgeProps } from '@/components/Common/UI/Badge/BadgeTypes'\nimport type { LinkProps } from '@/components/Common/UI/Link/LinkTypes'\nimport { Link } from '@/components/Common/UI/Link'\nimport type { MenuProps } from '@/components/Common/UI/Menu/MenuTypes'\nimport { Menu } from '@/components/Common/UI/Menu'\nimport type { TableProps } from '@/components/Common/UI/Table'\nimport { Table } from '@/components/Common/UI/Table'\nimport type { OrderedListProps, UnorderedListProps } from '@/components/Common/UI/List'\nimport { OrderedList, UnorderedList } from '@/components/Common/UI/List'\nimport { Heading } from '@/components/Common/UI/Heading'\nimport type { HeadingProps } from '@/components/Common/UI/Heading/HeadingTypes'\nimport { Text } from '@/components/Common/UI/Text'\nimport type { TextProps } from '@/components/Common/UI/Text/TextTypes'\nimport { CalendarPreview } from '@/components/Common/UI/CalendarPreview'\nimport type { CalendarPreviewProps } from '@/components/Common/UI/CalendarPreview/CalendarPreviewTypes'\nimport type { ProgressBarProps } from '@/components/Common/UI/ProgressBar'\nimport { ProgressBar } from '@/components/Common/UI/ProgressBar'\nimport type { BreadcrumbsProps } from '@/components/Common/UI/Breadcrumbs'\nimport { Breadcrumbs } from '@/components/Common/UI/Breadcrumbs'\nimport type { TabsProps } from '@/components/Common/UI/Tabs/TabsTypes'\nimport { Tabs } from '@/components/Common/UI/Tabs'\nimport type { DialogProps } from '@/components/Common/UI/Dialog/DialogTypes'\nimport { Dialog } from '@/components/Common/UI/Dialog'\nimport type { LoadingSpinnerProps } from '@/components/Common/UI/LoadingSpinner/LoadingSpinnerTypes'\nimport { LoadingSpinner } from '@/components/Common/UI/LoadingSpinner'\n\nexport const defaultComponents: ComponentsContextType = {\n Alert: (props: AlertProps) => <Alert {...props} />,\n Badge: (props: BadgeProps) => <Badge {...props} />,\n Button: (props: ButtonProps) => <Button {...props} />,\n ButtonIcon: (props: ButtonIconProps) => <ButtonIcon {...props} />,\n Card: (props: CardProps) => <Card {...props} />,\n TextInput: (props: TextInputProps) => <TextInput {...props} />,\n Checkbox: (props: CheckboxProps) => <Checkbox {...props} />,\n CheckboxGroup: (props: CheckboxGroupProps) => <CheckboxGroup {...props} />,\n ComboBox: (props: ComboBoxProps) => <ComboBox {...props} />,\n DatePicker: (props: DatePickerProps) => <DatePicker {...props} />,\n OrderedList: (props: OrderedListProps) => <OrderedList {...props} />,\n UnorderedList: (props: UnorderedListProps) => <UnorderedList {...props} />,\n NumberInput: (props: NumberInputProps) => <NumberInput {...props} />,\n Radio: (props: RadioProps) => <Radio {...props} />,\n RadioGroup: (props: RadioGroupProps) => <RadioGroup {...props} />,\n Select: (props: SelectProps) => <Select {...props} />,\n Switch: (props: SwitchProps) => <Switch {...props} />,\n Link: (props: LinkProps) => <Link {...props} />,\n Menu: (props: MenuProps) => <Menu {...props} />,\n Table: (props: TableProps) => <Table {...props} />,\n Heading: (props: HeadingProps) => <Heading {...props} />,\n Text: (props: TextProps) => <Text {...props} />,\n CalendarPreview: (props: CalendarPreviewProps) => <CalendarPreview {...props} />,\n ProgressBar: (props: ProgressBarProps) => <ProgressBar {...props} />,\n Breadcrumbs: (props: BreadcrumbsProps) => <Breadcrumbs {...props} />,\n Tabs: (props: TabsProps) => <Tabs {...props} />,\n Dialog: (props: DialogProps) => <Dialog {...props} />,\n LoadingSpinner: (props: LoadingSpinnerProps) => <LoadingSpinner {...props} />,\n}\n"],"names":["defaultComponents","props","jsx","Alert","Badge","Button","ButtonIcon","Card","TextInput","Checkbox","CheckboxGroup","ComboBox","DatePicker","OrderedList","UnorderedList","NumberInput","Radio","RadioGroup","Select","Switch","Link","Menu","Table","Heading","Text","CalendarPreview","ProgressBar","Breadcrumbs","Tabs","Dialog","LoadingSpinner"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA2DO,MAAMA,KAA2C;AAAA,EACtD,OAAO,CAACC,MAAsB,gBAAAC,EAACC,GAAA,EAAO,GAAGF,GAAO;AAAA,EAChD,OAAO,CAACA,MAAsB,gBAAAC,EAACE,GAAA,EAAO,GAAGH,GAAO;AAAA,EAChD,QAAQ,CAACA,MAAuB,gBAAAC,EAACG,GAAA,EAAQ,GAAGJ,GAAO;AAAA,EACnD,YAAY,CAACA,MAA2B,gBAAAC,EAACI,GAAA,EAAY,GAAGL,GAAO;AAAA,EAC/D,MAAM,CAACA,MAAqB,gBAAAC,EAACK,GAAA,EAAM,GAAGN,GAAO;AAAA,EAC7C,WAAW,CAACA,MAA0B,gBAAAC,EAACM,GAAA,EAAW,GAAGP,GAAO;AAAA,EAC5D,UAAU,CAACA,MAAyB,gBAAAC,EAACO,GAAA,EAAU,GAAGR,GAAO;AAAA,EACzD,eAAe,CAACA,MAA8B,gBAAAC,EAACQ,GAAA,EAAe,GAAGT,GAAO;AAAA,EACxE,UAAU,CAACA,MAAyB,gBAAAC,EAACS,GAAA,EAAU,GAAGV,GAAO;AAAA,EACzD,YAAY,CAACA,MAA2B,gBAAAC,EAACU,GAAA,EAAY,GAAGX,GAAO;AAAA,EAC/D,aAAa,CAACA,MAA4B,gBAAAC,EAACW,GAAA,EAAa,GAAGZ,GAAO;AAAA,EAClE,eAAe,CAACA,MAA8B,gBAAAC,EAACY,GAAA,EAAe,GAAGb,GAAO;AAAA,EACxE,aAAa,CAACA,MAA4B,gBAAAC,EAACa,GAAA,EAAa,GAAGd,GAAO;AAAA,EAClE,OAAO,CAACA,MAAsB,gBAAAC,EAACc,GAAA,EAAO,GAAGf,GAAO;AAAA,EAChD,YAAY,CAACA,MAA2B,gBAAAC,EAACe,GAAA,EAAY,GAAGhB,GAAO;AAAA,EAC/D,QAAQ,CAACA,MAAuB,gBAAAC,EAACgB,GAAA,EAAQ,GAAGjB,GAAO;AAAA,EACnD,QAAQ,CAACA,MAAuB,gBAAAC,EAACiB,GAAA,EAAQ,GAAGlB,GAAO;AAAA,EACnD,MAAM,CAACA,MAAqB,gBAAAC,EAACkB,GAAA,EAAM,GAAGnB,GAAO;AAAA,EAC7C,MAAM,CAACA,MAAqB,gBAAAC,EAACmB,GAAA,EAAM,GAAGpB,GAAO;AAAA,EAC7C,OAAO,CAACA,MAAsB,gBAAAC,EAACoB,GAAA,EAAO,GAAGrB,GAAO;AAAA,EAChD,SAAS,CAACA,MAAwB,gBAAAC,EAACqB,GAAA,EAAS,GAAGtB,GAAO;AAAA,EACtD,MAAM,CAACA,MAAqB,gBAAAC,EAACsB,GAAA,EAAM,GAAGvB,GAAO;AAAA,EAC7C,iBAAiB,CAACA,MAAgC,gBAAAC,EAACuB,GAAA,EAAiB,GAAGxB,GAAO;AAAA,EAC9E,aAAa,CAACA,MAA4B,gBAAAC,EAACwB,GAAA,EAAa,GAAGzB,GAAO;AAAA,EAClE,aAAa,CAACA,MAA4B,gBAAAC,EAACyB,GAAA,EAAa,GAAG1B,GAAO;AAAA,EAClE,MAAM,CAACA,MAAqB,gBAAAC,EAAC0B,GAAA,EAAM,GAAG3B,GAAO;AAAA,EAC7C,QAAQ,CAACA,MAAuB,gBAAAC,EAAC2B,GAAA,EAAQ,GAAG5B,GAAO;AAAA,EACnD,gBAAgB,CAACA,MAA+B,gBAAAC,EAAC4B,GAAA,EAAgB,GAAG7B,EAAA,CAAO;AAC7E;"}
1
+ {"version":3,"file":"defaultComponentAdapter.js","sources":["../../../../src/contexts/ComponentAdapter/adapters/defaultComponentAdapter.tsx"],"sourcesContent":["// This is used to set the default adapter and can already be ommitted by using the\n// `GustoProviderCustomUIAdapter` component. That means this is a safe file to use\n// non type imports from the UI directory so the lint rule is disabled for this file.\n/* eslint-disable no-restricted-imports */\nimport type { ComponentsContextType } from '../useComponentContext'\nimport type { TextInputProps } from '@/components/Common/UI/TextInput/TextInputTypes'\nimport { TextInput } from '@/components/Common/UI/TextInput'\nimport type { NumberInputProps } from '@/components/Common/UI/NumberInput/NumberInputTypes'\nimport { NumberInput } from '@/components/Common/UI/NumberInput'\nimport type { CheckboxGroupProps } from '@/components/Common/UI/CheckboxGroup/CheckboxGroupTypes'\nimport { CheckboxGroup } from '@/components/Common/UI/CheckboxGroup'\nimport type { ComboBoxProps } from '@/components/Common/UI/ComboBox/ComboBoxTypes'\nimport { ComboBox } from '@/components/Common/UI/ComboBox/ComboBox'\nimport type { CheckboxProps } from '@/components/Common/UI/Checkbox/CheckboxTypes'\nimport { Checkbox } from '@/components/Common/UI/Checkbox'\nimport type { DatePickerProps } from '@/components/Common/UI/DatePicker/DatePickerTypes'\nimport { DatePicker } from '@/components/Common/UI/DatePicker'\nimport type { RadioProps } from '@/components/Common/UI/Radio/RadioTypes'\nimport { Radio } from '@/components/Common/UI/Radio'\nimport type { RadioGroupProps } from '@/components/Common/UI/RadioGroup/RadioGroupTypes'\nimport { RadioGroup } from '@/components/Common/UI/RadioGroup'\nimport type { SelectProps } from '@/components/Common/UI/Select/SelectTypes'\nimport { Select } from '@/components/Common/UI/Select'\nimport type { SwitchProps } from '@/components/Common/UI/Switch/SwitchTypes'\nimport { Switch } from '@/components/Common/UI/Switch'\nimport type { ButtonProps, ButtonIconProps } from '@/components/Common/UI/Button/ButtonTypes'\nimport { Button } from '@/components/Common/UI/Button'\nimport { ButtonIcon } from '@/components/Common/UI/Button/ButtonIcon'\nimport type { AlertProps } from '@/components/Common/UI/Alert/AlertTypes'\nimport { Alert } from '@/components/Common/UI/Alert/Alert'\nimport type { CardProps } from '@/components/Common/UI/Card/CardTypes'\nimport { Card } from '@/components/Common/UI/Card/Card'\nimport { Badge } from '@/components/Common/UI/Badge/Badge'\nimport type { BadgeProps } from '@/components/Common/UI/Badge/BadgeTypes'\nimport type { LinkProps } from '@/components/Common/UI/Link/LinkTypes'\nimport { Link } from '@/components/Common/UI/Link'\nimport type { MenuProps } from '@/components/Common/UI/Menu/MenuTypes'\nimport { Menu } from '@/components/Common/UI/Menu'\nimport type { TableProps } from '@/components/Common/UI/Table'\nimport { Table } from '@/components/Common/UI/Table'\nimport type { OrderedListProps, UnorderedListProps } from '@/components/Common/UI/List'\nimport { OrderedList, UnorderedList } from '@/components/Common/UI/List'\nimport { Heading } from '@/components/Common/UI/Heading'\nimport type { HeadingProps } from '@/components/Common/UI/Heading/HeadingTypes'\nimport { Text } from '@/components/Common/UI/Text'\nimport type { TextProps } from '@/components/Common/UI/Text/TextTypes'\nimport { CalendarPreview } from '@/components/Common/UI/CalendarPreview'\nimport type { CalendarPreviewProps } from '@/components/Common/UI/CalendarPreview/CalendarPreviewTypes'\nimport type { ProgressBarProps } from '@/components/Common/UI/ProgressBar'\nimport { ProgressBar } from '@/components/Common/UI/ProgressBar'\nimport type { BreadcrumbsProps } from '@/components/Common/UI/Breadcrumbs'\nimport { Breadcrumbs } from '@/components/Common/UI/Breadcrumbs'\nimport type { TabsProps } from '@/components/Common/UI/Tabs/TabsTypes'\nimport { Tabs } from '@/components/Common/UI/Tabs'\nimport type { DialogProps } from '@/components/Common/UI/Dialog/DialogTypes'\nimport { Dialog } from '@/components/Common/UI/Dialog'\nimport type { LoadingSpinnerProps } from '@/components/Common/UI/LoadingSpinner/LoadingSpinnerTypes'\nimport { LoadingSpinner } from '@/components/Common/UI/LoadingSpinner'\nimport type { DescriptionListProps } from '@/components/Common/UI/DescriptionList/DescriptionListTypes'\nimport { DescriptionList } from '@/components/Common/UI/DescriptionList'\n\nexport const defaultComponents: ComponentsContextType = {\n Alert: (props: AlertProps) => <Alert {...props} />,\n Badge: (props: BadgeProps) => <Badge {...props} />,\n Button: (props: ButtonProps) => <Button {...props} />,\n ButtonIcon: (props: ButtonIconProps) => <ButtonIcon {...props} />,\n Card: (props: CardProps) => <Card {...props} />,\n TextInput: (props: TextInputProps) => <TextInput {...props} />,\n Checkbox: (props: CheckboxProps) => <Checkbox {...props} />,\n CheckboxGroup: (props: CheckboxGroupProps) => <CheckboxGroup {...props} />,\n ComboBox: (props: ComboBoxProps) => <ComboBox {...props} />,\n DatePicker: (props: DatePickerProps) => <DatePicker {...props} />,\n OrderedList: (props: OrderedListProps) => <OrderedList {...props} />,\n UnorderedList: (props: UnorderedListProps) => <UnorderedList {...props} />,\n NumberInput: (props: NumberInputProps) => <NumberInput {...props} />,\n Radio: (props: RadioProps) => <Radio {...props} />,\n RadioGroup: (props: RadioGroupProps) => <RadioGroup {...props} />,\n Select: (props: SelectProps) => <Select {...props} />,\n Switch: (props: SwitchProps) => <Switch {...props} />,\n Link: (props: LinkProps) => <Link {...props} />,\n Menu: (props: MenuProps) => <Menu {...props} />,\n Table: (props: TableProps) => <Table {...props} />,\n Heading: (props: HeadingProps) => <Heading {...props} />,\n Text: (props: TextProps) => <Text {...props} />,\n CalendarPreview: (props: CalendarPreviewProps) => <CalendarPreview {...props} />,\n ProgressBar: (props: ProgressBarProps) => <ProgressBar {...props} />,\n Breadcrumbs: (props: BreadcrumbsProps) => <Breadcrumbs {...props} />,\n Tabs: (props: TabsProps) => <Tabs {...props} />,\n Dialog: (props: DialogProps) => <Dialog {...props} />,\n LoadingSpinner: (props: LoadingSpinnerProps) => <LoadingSpinner {...props} />,\n DescriptionList: (props: DescriptionListProps) => <DescriptionList {...props} />,\n}\n"],"names":["defaultComponents","props","jsx","Alert","Badge","Button","ButtonIcon","Card","TextInput","Checkbox","CheckboxGroup","ComboBox","DatePicker","OrderedList","UnorderedList","NumberInput","Radio","RadioGroup","Select","Switch","Link","Menu","Table","Heading","Text","CalendarPreview","ProgressBar","Breadcrumbs","Tabs","Dialog","LoadingSpinner","DescriptionList"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA6DO,MAAMA,KAA2C;AAAA,EACtD,OAAO,CAACC,MAAsB,gBAAAC,EAACC,GAAA,EAAO,GAAGF,GAAO;AAAA,EAChD,OAAO,CAACA,MAAsB,gBAAAC,EAACE,GAAA,EAAO,GAAGH,GAAO;AAAA,EAChD,QAAQ,CAACA,MAAuB,gBAAAC,EAACG,GAAA,EAAQ,GAAGJ,GAAO;AAAA,EACnD,YAAY,CAACA,MAA2B,gBAAAC,EAACI,GAAA,EAAY,GAAGL,GAAO;AAAA,EAC/D,MAAM,CAACA,MAAqB,gBAAAC,EAACK,GAAA,EAAM,GAAGN,GAAO;AAAA,EAC7C,WAAW,CAACA,MAA0B,gBAAAC,EAACM,GAAA,EAAW,GAAGP,GAAO;AAAA,EAC5D,UAAU,CAACA,MAAyB,gBAAAC,EAACO,GAAA,EAAU,GAAGR,GAAO;AAAA,EACzD,eAAe,CAACA,MAA8B,gBAAAC,EAACQ,GAAA,EAAe,GAAGT,GAAO;AAAA,EACxE,UAAU,CAACA,MAAyB,gBAAAC,EAACS,GAAA,EAAU,GAAGV,GAAO;AAAA,EACzD,YAAY,CAACA,MAA2B,gBAAAC,EAACU,GAAA,EAAY,GAAGX,GAAO;AAAA,EAC/D,aAAa,CAACA,MAA4B,gBAAAC,EAACW,GAAA,EAAa,GAAGZ,GAAO;AAAA,EAClE,eAAe,CAACA,MAA8B,gBAAAC,EAACY,GAAA,EAAe,GAAGb,GAAO;AAAA,EACxE,aAAa,CAACA,MAA4B,gBAAAC,EAACa,GAAA,EAAa,GAAGd,GAAO;AAAA,EAClE,OAAO,CAACA,MAAsB,gBAAAC,EAACc,GAAA,EAAO,GAAGf,GAAO;AAAA,EAChD,YAAY,CAACA,MAA2B,gBAAAC,EAACe,GAAA,EAAY,GAAGhB,GAAO;AAAA,EAC/D,QAAQ,CAACA,MAAuB,gBAAAC,EAACgB,GAAA,EAAQ,GAAGjB,GAAO;AAAA,EACnD,QAAQ,CAACA,MAAuB,gBAAAC,EAACiB,GAAA,EAAQ,GAAGlB,GAAO;AAAA,EACnD,MAAM,CAACA,MAAqB,gBAAAC,EAACkB,GAAA,EAAM,GAAGnB,GAAO;AAAA,EAC7C,MAAM,CAACA,MAAqB,gBAAAC,EAACmB,GAAA,EAAM,GAAGpB,GAAO;AAAA,EAC7C,OAAO,CAACA,MAAsB,gBAAAC,EAACoB,GAAA,EAAO,GAAGrB,GAAO;AAAA,EAChD,SAAS,CAACA,MAAwB,gBAAAC,EAACqB,GAAA,EAAS,GAAGtB,GAAO;AAAA,EACtD,MAAM,CAACA,MAAqB,gBAAAC,EAACsB,GAAA,EAAM,GAAGvB,GAAO;AAAA,EAC7C,iBAAiB,CAACA,MAAgC,gBAAAC,EAACuB,GAAA,EAAiB,GAAGxB,GAAO;AAAA,EAC9E,aAAa,CAACA,MAA4B,gBAAAC,EAACwB,GAAA,EAAa,GAAGzB,GAAO;AAAA,EAClE,aAAa,CAACA,MAA4B,gBAAAC,EAACyB,GAAA,EAAa,GAAG1B,GAAO;AAAA,EAClE,MAAM,CAACA,MAAqB,gBAAAC,EAAC0B,GAAA,EAAM,GAAG3B,GAAO;AAAA,EAC7C,QAAQ,CAACA,MAAuB,gBAAAC,EAAC2B,GAAA,EAAQ,GAAG5B,GAAO;AAAA,EACnD,gBAAgB,CAACA,MAA+B,gBAAAC,EAAC4B,GAAA,EAAgB,GAAG7B,GAAO;AAAA,EAC3E,iBAAiB,CAACA,MAAgC,gBAAAC,EAAC6B,GAAA,EAAiB,GAAG9B,EAAA,CAAO;AAChF;"}
@@ -23,3 +23,4 @@ export type { PaginationControlProps } from '../../components/Common/PaginationC
23
23
  export type { TextProps } from '../../components/Common/UI/Text/TextTypes';
24
24
  export type { CalendarPreviewProps } from '../../components/Common/UI/CalendarPreview/CalendarPreviewTypes';
25
25
  export type { DialogProps } from '../../components/Common/UI/Dialog/DialogTypes';
26
+ export type { DescriptionListProps } from '../../components/Common/UI/DescriptionList/DescriptionListTypes';
@@ -26,6 +26,7 @@ import { BreadcrumbsProps } from '../../components/Common/UI/Breadcrumbs/Breadcr
26
26
  import { TabsProps } from '../../components/Common/UI/Tabs/TabsTypes';
27
27
  import { DialogProps } from '../../components/Common/UI/Dialog/DialogTypes';
28
28
  import { LoadingSpinnerProps } from '../../components/Common/UI/LoadingSpinner/LoadingSpinnerTypes';
29
+ import { DescriptionListProps } from '../../components/Common/UI/DescriptionList/DescriptionListTypes';
29
30
  export interface ComponentsContextType {
30
31
  Alert: (props: AlertProps) => JSX.Element | null;
31
32
  Badge: (props: BadgeProps) => JSX.Element | null;
@@ -56,6 +57,7 @@ export interface ComponentsContextType {
56
57
  Tabs: (props: TabsProps) => JSX.Element | null;
57
58
  Dialog: (props: DialogProps) => JSX.Element | null;
58
59
  LoadingSpinner: (props: LoadingSpinnerProps) => JSX.Element | null;
60
+ DescriptionList: (props: DescriptionListProps) => JSX.Element | null;
59
61
  }
60
62
  export declare const ComponentsContext: import('react').Context<ComponentsContextType | null>;
61
63
  export declare const useComponentContext: () => ComponentsContextType;
@@ -1 +1 @@
1
- {"version":3,"file":"useComponentContext.js","sources":["../../../src/contexts/ComponentAdapter/useComponentContext.ts"],"sourcesContent":["import { createContext, useContext } from 'react'\nimport type { JSX } from 'react'\nimport type { TextInputProps } from '@/components/Common/UI/TextInput/TextInputTypes'\nimport type { NumberInputProps } from '@/components/Common/UI/NumberInput/NumberInputTypes'\nimport type { CheckboxGroupProps } from '@/components/Common/UI/CheckboxGroup/CheckboxGroupTypes'\nimport type { ComboBoxProps } from '@/components/Common/UI/ComboBox/ComboBoxTypes'\nimport type { CheckboxProps } from '@/components/Common/UI/Checkbox/CheckboxTypes'\nimport type { DatePickerProps } from '@/components/Common/UI/DatePicker/DatePickerTypes'\nimport type { RadioProps } from '@/components/Common/UI/Radio/RadioTypes'\nimport type { RadioGroupProps } from '@/components/Common/UI/RadioGroup/RadioGroupTypes'\nimport type { SelectProps } from '@/components/Common/UI/Select/SelectTypes'\nimport type { SwitchProps } from '@/components/Common/UI/Switch/SwitchTypes'\nimport type { ButtonIconProps, ButtonProps } from '@/components/Common/UI/Button/ButtonTypes'\nimport type { AlertProps } from '@/components/Common/UI/Alert/AlertTypes'\nimport type { CardProps } from '@/components/Common/UI/Card/CardTypes'\nimport type { LinkProps } from '@/components/Common/UI/Link/LinkTypes'\nimport type { BadgeProps } from '@/components/Common/UI/Badge/BadgeTypes'\nimport type { MenuProps } from '@/components/Common/UI/Menu/MenuTypes'\nimport type { TableProps } from '@/components/Common/UI/Table/TableTypes'\nimport type { OrderedListProps, UnorderedListProps } from '@/components/Common/UI/List/ListTypes'\nimport type { HeadingProps } from '@/components/Common/UI/Heading/HeadingTypes'\nimport type { PaginationControlProps } from '@/components/Common/PaginationControl/PaginationControlTypes'\nimport type { TextProps } from '@/components/Common/UI/Text/TextTypes'\nimport type { CalendarPreviewProps } from '@/components/Common/UI/CalendarPreview/CalendarPreviewTypes'\nimport type { ProgressBarProps } from '@/components/Common/UI/ProgressBar/ProgressBarTypes'\nimport type { BreadcrumbsProps } from '@/components/Common/UI/Breadcrumbs/BreadcrumbsTypes'\nimport type { TabsProps } from '@/components/Common/UI/Tabs/TabsTypes'\nimport type { DialogProps } from '@/components/Common/UI/Dialog/DialogTypes'\nimport type { LoadingSpinnerProps } from '@/components/Common/UI/LoadingSpinner/LoadingSpinnerTypes'\n\nexport interface ComponentsContextType {\n Alert: (props: AlertProps) => JSX.Element | null\n Badge: (props: BadgeProps) => JSX.Element | null\n Button: (props: ButtonProps) => JSX.Element | null\n ButtonIcon: (props: ButtonIconProps) => JSX.Element | null\n Card: (props: CardProps) => JSX.Element | null\n Checkbox: (props: CheckboxProps) => JSX.Element | null\n CheckboxGroup: (props: CheckboxGroupProps) => JSX.Element | null\n ComboBox: (props: ComboBoxProps) => JSX.Element | null\n DatePicker: (props: DatePickerProps) => JSX.Element | null\n OrderedList: (props: OrderedListProps) => JSX.Element | null\n UnorderedList: (props: UnorderedListProps) => JSX.Element | null\n NumberInput: (props: NumberInputProps) => JSX.Element | null\n Radio: (props: RadioProps) => JSX.Element | null\n RadioGroup: (props: RadioGroupProps) => JSX.Element | null\n Select: (props: SelectProps) => JSX.Element | null\n Switch: (props: SwitchProps) => JSX.Element | null\n TextInput: (props: TextInputProps) => JSX.Element | null\n Link: (props: LinkProps) => JSX.Element | null\n Menu: (props: MenuProps) => JSX.Element | null\n Table: (props: TableProps) => JSX.Element | null\n Heading: (props: HeadingProps) => JSX.Element | null\n PaginationControl?: (props: PaginationControlProps) => JSX.Element | null\n Text: (props: TextProps) => JSX.Element | null\n CalendarPreview: (props: CalendarPreviewProps) => JSX.Element | null\n ProgressBar: (props: ProgressBarProps) => JSX.Element | null\n Breadcrumbs: (props: BreadcrumbsProps) => JSX.Element | null\n Tabs: (props: TabsProps) => JSX.Element | null\n Dialog: (props: DialogProps) => JSX.Element | null\n LoadingSpinner: (props: LoadingSpinnerProps) => JSX.Element | null\n}\n\nexport const ComponentsContext = createContext<ComponentsContextType | null>(null)\n\nexport const useComponentContext = () => {\n const context = useContext(ComponentsContext)\n if (!context) {\n throw new Error('useComponentContext must be used within a ComponentsProvider')\n }\n return context\n}\n"],"names":["ComponentsContext","createContext","useComponentContext","context","useContext"],"mappings":";AA8DO,MAAMA,IAAoBC,EAA4C,IAAI,GAEpEC,IAAsB,MAAM;AACvC,QAAMC,IAAUC,EAAWJ,CAAiB;AAC5C,MAAI,CAACG;AACH,UAAM,IAAI,MAAM,8DAA8D;AAEhF,SAAOA;AACT;"}
1
+ {"version":3,"file":"useComponentContext.js","sources":["../../../src/contexts/ComponentAdapter/useComponentContext.ts"],"sourcesContent":["import { createContext, useContext } from 'react'\nimport type { JSX } from 'react'\nimport type { TextInputProps } from '@/components/Common/UI/TextInput/TextInputTypes'\nimport type { NumberInputProps } from '@/components/Common/UI/NumberInput/NumberInputTypes'\nimport type { CheckboxGroupProps } from '@/components/Common/UI/CheckboxGroup/CheckboxGroupTypes'\nimport type { ComboBoxProps } from '@/components/Common/UI/ComboBox/ComboBoxTypes'\nimport type { CheckboxProps } from '@/components/Common/UI/Checkbox/CheckboxTypes'\nimport type { DatePickerProps } from '@/components/Common/UI/DatePicker/DatePickerTypes'\nimport type { RadioProps } from '@/components/Common/UI/Radio/RadioTypes'\nimport type { RadioGroupProps } from '@/components/Common/UI/RadioGroup/RadioGroupTypes'\nimport type { SelectProps } from '@/components/Common/UI/Select/SelectTypes'\nimport type { SwitchProps } from '@/components/Common/UI/Switch/SwitchTypes'\nimport type { ButtonIconProps, ButtonProps } from '@/components/Common/UI/Button/ButtonTypes'\nimport type { AlertProps } from '@/components/Common/UI/Alert/AlertTypes'\nimport type { CardProps } from '@/components/Common/UI/Card/CardTypes'\nimport type { LinkProps } from '@/components/Common/UI/Link/LinkTypes'\nimport type { BadgeProps } from '@/components/Common/UI/Badge/BadgeTypes'\nimport type { MenuProps } from '@/components/Common/UI/Menu/MenuTypes'\nimport type { TableProps } from '@/components/Common/UI/Table/TableTypes'\nimport type { OrderedListProps, UnorderedListProps } from '@/components/Common/UI/List/ListTypes'\nimport type { HeadingProps } from '@/components/Common/UI/Heading/HeadingTypes'\nimport type { PaginationControlProps } from '@/components/Common/PaginationControl/PaginationControlTypes'\nimport type { TextProps } from '@/components/Common/UI/Text/TextTypes'\nimport type { CalendarPreviewProps } from '@/components/Common/UI/CalendarPreview/CalendarPreviewTypes'\nimport type { ProgressBarProps } from '@/components/Common/UI/ProgressBar/ProgressBarTypes'\nimport type { BreadcrumbsProps } from '@/components/Common/UI/Breadcrumbs/BreadcrumbsTypes'\nimport type { TabsProps } from '@/components/Common/UI/Tabs/TabsTypes'\nimport type { DialogProps } from '@/components/Common/UI/Dialog/DialogTypes'\nimport type { LoadingSpinnerProps } from '@/components/Common/UI/LoadingSpinner/LoadingSpinnerTypes'\nimport type { DescriptionListProps } from '@/components/Common/UI/DescriptionList/DescriptionListTypes'\n\nexport interface ComponentsContextType {\n Alert: (props: AlertProps) => JSX.Element | null\n Badge: (props: BadgeProps) => JSX.Element | null\n Button: (props: ButtonProps) => JSX.Element | null\n ButtonIcon: (props: ButtonIconProps) => JSX.Element | null\n Card: (props: CardProps) => JSX.Element | null\n Checkbox: (props: CheckboxProps) => JSX.Element | null\n CheckboxGroup: (props: CheckboxGroupProps) => JSX.Element | null\n ComboBox: (props: ComboBoxProps) => JSX.Element | null\n DatePicker: (props: DatePickerProps) => JSX.Element | null\n OrderedList: (props: OrderedListProps) => JSX.Element | null\n UnorderedList: (props: UnorderedListProps) => JSX.Element | null\n NumberInput: (props: NumberInputProps) => JSX.Element | null\n Radio: (props: RadioProps) => JSX.Element | null\n RadioGroup: (props: RadioGroupProps) => JSX.Element | null\n Select: (props: SelectProps) => JSX.Element | null\n Switch: (props: SwitchProps) => JSX.Element | null\n TextInput: (props: TextInputProps) => JSX.Element | null\n Link: (props: LinkProps) => JSX.Element | null\n Menu: (props: MenuProps) => JSX.Element | null\n Table: (props: TableProps) => JSX.Element | null\n Heading: (props: HeadingProps) => JSX.Element | null\n PaginationControl?: (props: PaginationControlProps) => JSX.Element | null\n Text: (props: TextProps) => JSX.Element | null\n CalendarPreview: (props: CalendarPreviewProps) => JSX.Element | null\n ProgressBar: (props: ProgressBarProps) => JSX.Element | null\n Breadcrumbs: (props: BreadcrumbsProps) => JSX.Element | null\n Tabs: (props: TabsProps) => JSX.Element | null\n Dialog: (props: DialogProps) => JSX.Element | null\n LoadingSpinner: (props: LoadingSpinnerProps) => JSX.Element | null\n DescriptionList: (props: DescriptionListProps) => JSX.Element | null\n}\n\nexport const ComponentsContext = createContext<ComponentsContextType | null>(null)\n\nexport const useComponentContext = () => {\n const context = useContext(ComponentsContext)\n if (!context) {\n throw new Error('useComponentContext must be used within a ComponentsProvider')\n }\n return context\n}\n"],"names":["ComponentsContext","createContext","useComponentContext","context","useContext"],"mappings":";AAgEO,MAAMA,IAAoBC,EAA4C,IAAI,GAEpEC,IAAsB,MAAM;AACvC,QAAMC,IAAUC,EAAWJ,CAAiB;AAC5C,MAAI,CAACG;AACH,UAAM,IAAI,MAAM,8DAA8D;AAEhF,SAAOA;AACT;"}
@@ -8,11 +8,12 @@ import { ApiProvider as I } from "../ApiProvider/ApiProvider.js";
8
8
  import { LoadingIndicatorProvider as x } from "../LoadingIndicatorProvider/LoadingIndicatorProvider.js";
9
9
  import { SDKI18next as t } from "./SDKI18next.js";
10
10
  import "classnames";
11
+ import "../../shared/constants.js";
11
12
  import { InternalError as y } from "../../components/Common/InternalError/InternalError.js";
12
13
  import { LocaleProvider as L } from "../LocaleProvider/LocaleProvider.js";
13
14
  import "../LocaleProvider/useLocale.js";
14
15
  import { ThemeProvider as U } from "../ThemeProvider/ThemeProvider.js";
15
- const q = (a) => {
16
+ const z = (a) => {
16
17
  const {
17
18
  children: c,
18
19
  config: e,
@@ -41,6 +42,6 @@ const q = (a) => {
41
42
  }, [n]), /* @__PURE__ */ r(P, { value: C(s), children: /* @__PURE__ */ r(x, { value: f, children: /* @__PURE__ */ r(h, { FallbackComponent: y, children: /* @__PURE__ */ r(U, { theme: l, children: /* @__PURE__ */ r(L, { locale: d, currency: p, children: /* @__PURE__ */ r(v, { i18n: t, children: /* @__PURE__ */ r(I, { url: e.baseUrl, headers: e.headers, hooks: e.hooks, children: c }) }, n) }) }) }) }) });
42
43
  };
43
44
  export {
44
- q as GustoProviderCustomUIAdapter
45
+ z as GustoProviderCustomUIAdapter
45
46
  };
46
47
  //# sourceMappingURL=GustoProviderCustomUIAdapter.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"GustoProviderCustomUIAdapter.js","sources":["../../../src/contexts/GustoProvider/GustoProviderCustomUIAdapter.tsx"],"sourcesContent":["import type React from 'react'\nimport { ErrorBoundary } from 'react-error-boundary'\nimport { I18nextProvider } from 'react-i18next'\nimport type { QueryClient } from '@tanstack/react-query'\nimport { useEffect } from 'react'\nimport { ComponentsProvider } from '../ComponentAdapter/ComponentsProvider'\nimport type { ComponentsContextType } from '../ComponentAdapter/useComponentContext'\nimport { createComponents } from '../ComponentAdapter/createComponentsWithDefaults'\nimport { ApiProvider } from '../ApiProvider/ApiProvider'\nimport { LoadingIndicatorProvider } from '../LoadingIndicatorProvider/LoadingIndicatorProvider'\nimport type { LoadingIndicatorContextProps } from '../LoadingIndicatorProvider/useLoadingIndicator'\nimport { SDKI18next } from './SDKI18next'\nimport { InternalError } from '@/components/Common'\nimport { LocaleProvider } from '@/contexts/LocaleProvider'\nimport { ThemeProvider } from '@/contexts/ThemeProvider'\nimport type { GustoSDKTheme } from '@/contexts/ThemeProvider/theme'\nimport type { ResourceDictionary, SupportedLanguages } from '@/types/Helpers'\nimport type { SDKHooks } from '@/types/hooks'\n\nexport interface APIConfig {\n baseUrl: string\n headers?: HeadersInit\n hooks?: SDKHooks\n}\n\nexport interface GustoProviderProps {\n config: APIConfig\n dictionary?: ResourceDictionary\n lng?: string\n locale?: string\n currency?: string\n theme?: GustoSDKTheme\n queryClient?: QueryClient\n components: ComponentsContextType\n LoaderComponent?: LoadingIndicatorContextProps['LoadingIndicator']\n}\n\nexport interface GustoProviderCustomUIAdapterProps extends GustoProviderProps {\n children?: React.ReactNode\n}\n\n/**\n * A provider that accepts UI component adapters through the components prop\n */\nconst GustoProviderCustomUIAdapter: React.FC<GustoProviderCustomUIAdapterProps> = props => {\n const {\n children,\n config,\n dictionary,\n lng = 'en',\n locale = 'en-US',\n currency = 'USD',\n theme,\n components,\n LoaderComponent,\n } = props\n\n // Handle dictionary resources\n if (dictionary) {\n for (const language in dictionary) {\n const lang = language as SupportedLanguages\n for (const ns in dictionary[lang]) {\n // Adding resources overrides to i18next instance - initial load will override common namespace and add component specific dictionaries provided by partners\n SDKI18next.addResourceBundle(\n lang,\n ns,\n (dictionary[lang] as Record<string, unknown>)[ns],\n true,\n true,\n )\n }\n }\n }\n\n // Handle language change\n useEffect(() => {\n void (async () => {\n await SDKI18next.changeLanguage(lng)\n })()\n }, [lng])\n\n return (\n <ComponentsProvider value={createComponents(components)}>\n <LoadingIndicatorProvider value={LoaderComponent}>\n <ErrorBoundary FallbackComponent={InternalError}>\n <ThemeProvider theme={theme}>\n <LocaleProvider locale={locale} currency={currency}>\n <I18nextProvider i18n={SDKI18next} key={lng}>\n <ApiProvider url={config.baseUrl} headers={config.headers} hooks={config.hooks}>\n {children}\n </ApiProvider>\n </I18nextProvider>\n </LocaleProvider>\n </ThemeProvider>\n </ErrorBoundary>\n </LoadingIndicatorProvider>\n </ComponentsProvider>\n )\n}\n\nexport { GustoProviderCustomUIAdapter }\n"],"names":["GustoProviderCustomUIAdapter","props","children","config","dictionary","lng","locale","currency","theme","components","LoaderComponent","language","lang","ns","SDKI18next","useEffect","ComponentsProvider","createComponents","LoadingIndicatorProvider","jsx","ErrorBoundary","InternalError","ThemeProvider","LocaleProvider","I18nextProvider","ApiProvider"],"mappings":";;;;;;;;;;;;;;AA4CA,MAAMA,IAA4E,CAAAC,MAAS;AACzF,QAAM;AAAA,IACJ,UAAAC;AAAA,IACA,QAAAC;AAAA,IACA,YAAAC;AAAA,IACA,KAAAC,IAAM;AAAA,IACN,QAAAC,IAAS;AAAA,IACT,UAAAC,IAAW;AAAA,IACX,OAAAC;AAAA,IACA,YAAAC;AAAA,IACA,iBAAAC;AAAA,EAAA,IACET;AAGJ,MAAIG;AACF,eAAWO,KAAYP,GAAY;AACjC,YAAMQ,IAAOD;AACb,iBAAWE,KAAMT,EAAWQ,CAAI;AAE9B,QAAAE,EAAW;AAAA,UACTF;AAAA,UACAC;AAAA,UACCT,EAAWQ,CAAI,EAA8BC,CAAE;AAAA,UAChD;AAAA,UACA;AAAA,QAAA;AAAA,IAGN;AAIF,SAAAE,EAAU,MAAM;AACd,KAAM,YACJ,MAAMD,EAAW,eAAeT,CAAG;AAAA,EAEvC,GAAG,CAACA,CAAG,CAAC,qBAGLW,GAAA,EAAmB,OAAOC,EAAiBR,CAAU,GACpD,4BAACS,GAAA,EAAyB,OAAOR,GAC/B,UAAA,gBAAAS,EAACC,GAAA,EAAc,mBAAmBC,GAChC,UAAA,gBAAAF,EAACG,KAAc,OAAAd,GACb,UAAA,gBAAAW,EAACI,KAAe,QAAAjB,GAAgB,UAAAC,GAC9B,4BAACiB,GAAA,EAAgB,MAAMV,GACrB,UAAA,gBAAAK,EAACM,GAAA,EAAY,KAAKtB,EAAO,SAAS,SAASA,EAAO,SAAS,OAAOA,EAAO,OACtE,UAAAD,GACH,EAAA,GAHsCG,CAIxC,GACF,EAAA,CACF,GACF,GACF,EAAA,CACF;AAEJ;"}
1
+ {"version":3,"file":"GustoProviderCustomUIAdapter.js","sources":["../../../src/contexts/GustoProvider/GustoProviderCustomUIAdapter.tsx"],"sourcesContent":["import type React from 'react'\nimport { ErrorBoundary } from 'react-error-boundary'\nimport { I18nextProvider } from 'react-i18next'\nimport type { QueryClient } from '@tanstack/react-query'\nimport { useEffect } from 'react'\nimport { ComponentsProvider } from '../ComponentAdapter/ComponentsProvider'\nimport type { ComponentsContextType } from '../ComponentAdapter/useComponentContext'\nimport { createComponents } from '../ComponentAdapter/createComponentsWithDefaults'\nimport { ApiProvider } from '../ApiProvider/ApiProvider'\nimport { LoadingIndicatorProvider } from '../LoadingIndicatorProvider/LoadingIndicatorProvider'\nimport type { LoadingIndicatorContextProps } from '../LoadingIndicatorProvider/useLoadingIndicator'\nimport { SDKI18next } from './SDKI18next'\nimport { InternalError } from '@/components/Common'\nimport { LocaleProvider } from '@/contexts/LocaleProvider'\nimport { ThemeProvider } from '@/contexts/ThemeProvider'\nimport type { GustoSDKTheme } from '@/contexts/ThemeProvider/theme'\nimport type { ResourceDictionary, SupportedLanguages } from '@/types/Helpers'\nimport type { SDKHooks } from '@/types/hooks'\n\nexport interface APIConfig {\n baseUrl: string\n headers?: HeadersInit\n hooks?: SDKHooks\n}\n\nexport interface GustoProviderProps {\n config: APIConfig\n dictionary?: ResourceDictionary\n lng?: string\n locale?: string\n currency?: string\n theme?: GustoSDKTheme\n queryClient?: QueryClient\n components: ComponentsContextType\n LoaderComponent?: LoadingIndicatorContextProps['LoadingIndicator']\n}\n\nexport interface GustoProviderCustomUIAdapterProps extends GustoProviderProps {\n children?: React.ReactNode\n}\n\n/**\n * A provider that accepts UI component adapters through the components prop\n */\nconst GustoProviderCustomUIAdapter: React.FC<GustoProviderCustomUIAdapterProps> = props => {\n const {\n children,\n config,\n dictionary,\n lng = 'en',\n locale = 'en-US',\n currency = 'USD',\n theme,\n components,\n LoaderComponent,\n } = props\n\n // Handle dictionary resources\n if (dictionary) {\n for (const language in dictionary) {\n const lang = language as SupportedLanguages\n for (const ns in dictionary[lang]) {\n // Adding resources overrides to i18next instance - initial load will override common namespace and add component specific dictionaries provided by partners\n SDKI18next.addResourceBundle(\n lang,\n ns,\n (dictionary[lang] as Record<string, unknown>)[ns],\n true,\n true,\n )\n }\n }\n }\n\n // Handle language change\n useEffect(() => {\n void (async () => {\n await SDKI18next.changeLanguage(lng)\n })()\n }, [lng])\n\n return (\n <ComponentsProvider value={createComponents(components)}>\n <LoadingIndicatorProvider value={LoaderComponent}>\n <ErrorBoundary FallbackComponent={InternalError}>\n <ThemeProvider theme={theme}>\n <LocaleProvider locale={locale} currency={currency}>\n <I18nextProvider i18n={SDKI18next} key={lng}>\n <ApiProvider url={config.baseUrl} headers={config.headers} hooks={config.hooks}>\n {children}\n </ApiProvider>\n </I18nextProvider>\n </LocaleProvider>\n </ThemeProvider>\n </ErrorBoundary>\n </LoadingIndicatorProvider>\n </ComponentsProvider>\n )\n}\n\nexport { GustoProviderCustomUIAdapter }\n"],"names":["GustoProviderCustomUIAdapter","props","children","config","dictionary","lng","locale","currency","theme","components","LoaderComponent","language","lang","ns","SDKI18next","useEffect","ComponentsProvider","createComponents","LoadingIndicatorProvider","jsx","ErrorBoundary","InternalError","ThemeProvider","LocaleProvider","I18nextProvider","ApiProvider"],"mappings":";;;;;;;;;;;;;;;AA4CA,MAAMA,IAA4E,CAAAC,MAAS;AACzF,QAAM;AAAA,IACJ,UAAAC;AAAA,IACA,QAAAC;AAAA,IACA,YAAAC;AAAA,IACA,KAAAC,IAAM;AAAA,IACN,QAAAC,IAAS;AAAA,IACT,UAAAC,IAAW;AAAA,IACX,OAAAC;AAAA,IACA,YAAAC;AAAA,IACA,iBAAAC;AAAA,EAAA,IACET;AAGJ,MAAIG;AACF,eAAWO,KAAYP,GAAY;AACjC,YAAMQ,IAAOD;AACb,iBAAWE,KAAMT,EAAWQ,CAAI;AAE9B,QAAAE,EAAW;AAAA,UACTF;AAAA,UACAC;AAAA,UACCT,EAAWQ,CAAI,EAA8BC,CAAE;AAAA,UAChD;AAAA,UACA;AAAA,QAAA;AAAA,IAGN;AAIF,SAAAE,EAAU,MAAM;AACd,KAAM,YACJ,MAAMD,EAAW,eAAeT,CAAG;AAAA,EAEvC,GAAG,CAACA,CAAG,CAAC,qBAGLW,GAAA,EAAmB,OAAOC,EAAiBR,CAAU,GACpD,4BAACS,GAAA,EAAyB,OAAOR,GAC/B,UAAA,gBAAAS,EAACC,GAAA,EAAc,mBAAmBC,GAChC,UAAA,gBAAAF,EAACG,KAAc,OAAAd,GACb,UAAA,gBAAAW,EAACI,KAAe,QAAAjB,GAAgB,UAAAC,GAC9B,4BAACiB,GAAA,EAAgB,MAAMV,GACrB,UAAA,gBAAAK,EAACM,GAAA,EAAY,KAAKtB,EAAO,SAAS,SAASA,EAAO,SAAS,OAAOA,EAAO,OACtE,UAAAD,GACH,EAAA,GAHsCG,CAIxC,GACF,EAAA,CACF,GACF,GACF,EAAA,CACF;AAEJ;"}
@@ -1,4 +1,8 @@
1
1
  export declare const formatDateNamedWeekdayShortPlusDate: (date?: string, locale?: string) => string;
2
+ export declare const formatDateTimeWithTimezone: (date?: string | Date, locale?: string) => {
3
+ time: string;
4
+ date: string;
5
+ };
2
6
  export declare const formatDateToStringDate: (date: Date) => string | null | undefined;
3
7
  /**
4
8
  * Parses YYYY-MM-DD string to local Date, avoiding timezone issues from `new Date(dateString)`.
@@ -1,31 +1,47 @@
1
- const l = (t, o) => {
1
+ const m = (t, r) => {
2
2
  if (!t) return "";
3
- const n = u(t);
4
- return n ? n.toLocaleDateString(o, {
3
+ const e = u(t);
4
+ return e ? e.toLocaleDateString(r, {
5
5
  weekday: "short",
6
6
  month: "short",
7
7
  day: "numeric"
8
8
  }) : "";
9
+ }, l = (t, r) => {
10
+ if (!t) return { time: "", date: "" };
11
+ const e = typeof t == "string" ? new Date(t) : t;
12
+ if (isNaN(e.getTime())) return { time: "", date: "" };
13
+ const o = e.toLocaleTimeString(r, {
14
+ hour: "numeric",
15
+ minute: "2-digit",
16
+ hour12: !0,
17
+ timeZoneName: "short"
18
+ }), n = e.toLocaleDateString(r, {
19
+ weekday: "short",
20
+ month: "short",
21
+ day: "numeric"
22
+ });
23
+ return { time: o, date: n };
9
24
  }, c = (t) => isNaN(t.getTime()) ? null : t.toISOString().split("T")[0], u = (t) => {
10
25
  if (!t || !/^\d{4}-\d{2}-\d{2}$/.test(t))
11
26
  return null;
12
- const o = t.split("-");
13
- if (o.length !== 3)
27
+ const r = t.split("-");
28
+ if (r.length !== 3)
14
29
  return null;
15
- const n = o.map(Number), s = n[0], r = n[1], e = n[2];
16
- return s === void 0 || r === void 0 || e === void 0 || isNaN(s) || isNaN(r) || isNaN(e) || r < 1 || r > 12 || e < 1 || e > 31 ? null : new Date(s, r - 1, e);
30
+ const e = r.map(Number), o = e[0], n = e[1], i = e[2];
31
+ return o === void 0 || n === void 0 || i === void 0 || isNaN(o) || isNaN(n) || isNaN(i) || n < 1 || n > 12 || i < 1 || i > 31 ? null : new Date(o, n - 1, i);
17
32
  }, N = (t) => {
18
33
  if (!t || isNaN(t.getTime()))
19
34
  return null;
20
- const o = t.toISOString(), [n] = o.split("T");
21
- if (!n) return null;
22
- const s = n.split("-");
23
- if (s.length !== 3) return null;
24
- const r = s.map(Number), e = r[0], i = r[1], a = r[2];
25
- return isNaN(e) || isNaN(i) || isNaN(a) || i < 1 || i > 12 || a < 1 || a > 31 ? null : new Date(e, i - 1, a);
35
+ const r = t.toISOString(), [e] = r.split("T");
36
+ if (!e) return null;
37
+ const o = e.split("-");
38
+ if (o.length !== 3) return null;
39
+ const n = o.map(Number), i = n[0], s = n[1], a = n[2];
40
+ return isNaN(i) || isNaN(s) || isNaN(a) || s < 1 || s > 12 || a < 1 || a > 31 ? null : new Date(i, s - 1, a);
26
41
  };
27
42
  export {
28
- l as formatDateNamedWeekdayShortPlusDate,
43
+ m as formatDateNamedWeekdayShortPlusDate,
44
+ l as formatDateTimeWithTimezone,
29
45
  c as formatDateToStringDate,
30
46
  N as normalizeDateToLocal,
31
47
  u as parseDateStringToLocal
@@ -1 +1 @@
1
- {"version":3,"file":"dateFormatting.js","sources":["../../src/helpers/dateFormatting.ts"],"sourcesContent":["export const formatDateNamedWeekdayShortPlusDate = (date?: string, locale?: string) => {\n if (!date) return ''\n const parsedDate = parseDateStringToLocal(date)\n if (!parsedDate) return ''\n return parsedDate.toLocaleDateString(locale, {\n weekday: 'short',\n month: 'short',\n day: 'numeric',\n })\n}\n\nexport const formatDateToStringDate = (date: Date) => {\n // Handle invalid dates gracefully\n if (isNaN(date.getTime())) {\n return null\n }\n return date.toISOString().split('T')[0]\n}\n\n/**\n * Parses YYYY-MM-DD string to local Date, avoiding timezone issues from `new Date(dateString)`.\n */\nexport const parseDateStringToLocal = (dateString: string): Date | null => {\n if (!dateString || !/^\\d{4}-\\d{2}-\\d{2}$/.test(dateString)) {\n return null\n }\n\n const parts = dateString.split('-')\n if (parts.length !== 3) {\n return null\n }\n\n const numbers = parts.map(Number)\n const year = numbers[0]\n const month = numbers[1]\n const day = numbers[2]\n if (year === undefined || month === undefined || day === undefined) {\n return null\n }\n\n // Validate date components\n if (isNaN(year) || isNaN(month) || isNaN(day) || month < 1 || month > 12 || day < 1 || day > 31) {\n return null\n }\n\n // Create Date in local timezone (month is 0-indexed)\n return new Date(year, month - 1, day)\n}\n\n/**\n * Normalizes Date to local midnight, handling timezone issues from any adapter.\n */\nexport const normalizeDateToLocal = (date: Date | null): Date | null => {\n if (!date || isNaN(date.getTime())) {\n return null\n }\n\n // Use ISO string to get the intended date, then parse components\n const isoString = date.toISOString()\n const [datePart] = isoString.split('T')\n if (!datePart) return null\n\n const parts = datePart.split('-')\n if (parts.length !== 3) return null\n const numbers = parts.map(Number)\n const year = numbers[0]!\n const month = numbers[1]!\n const day = numbers[2]!\n if (isNaN(year) || isNaN(month) || isNaN(day) || month < 1 || month > 12 || day < 1 || day > 31) {\n return null\n }\n\n return new Date(year, month - 1, day)\n}\n"],"names":["formatDateNamedWeekdayShortPlusDate","date","locale","parsedDate","parseDateStringToLocal","formatDateToStringDate","dateString","parts","numbers","year","month","day","normalizeDateToLocal","isoString","datePart"],"mappings":"AAAO,MAAMA,IAAsC,CAACC,GAAeC,MAAoB;AACrF,MAAI,CAACD,EAAM,QAAO;AAClB,QAAME,IAAaC,EAAuBH,CAAI;AAC9C,SAAKE,IACEA,EAAW,mBAAmBD,GAAQ;AAAA,IAC3C,SAAS;AAAA,IACT,OAAO;AAAA,IACP,KAAK;AAAA,EAAA,CACN,IALuB;AAM1B,GAEaG,IAAyB,CAACJ,MAEjC,MAAMA,EAAK,QAAA,CAAS,IACf,OAEFA,EAAK,YAAA,EAAc,MAAM,GAAG,EAAE,CAAC,GAM3BG,IAAyB,CAACE,MAAoC;AACzE,MAAI,CAACA,KAAc,CAAC,sBAAsB,KAAKA,CAAU;AACvD,WAAO;AAGT,QAAMC,IAAQD,EAAW,MAAM,GAAG;AAClC,MAAIC,EAAM,WAAW;AACnB,WAAO;AAGT,QAAMC,IAAUD,EAAM,IAAI,MAAM,GAC1BE,IAAOD,EAAQ,CAAC,GAChBE,IAAQF,EAAQ,CAAC,GACjBG,IAAMH,EAAQ,CAAC;AAMrB,SALIC,MAAS,UAAaC,MAAU,UAAaC,MAAQ,UAKrD,MAAMF,CAAI,KAAK,MAAMC,CAAK,KAAK,MAAMC,CAAG,KAAKD,IAAQ,KAAKA,IAAQ,MAAMC,IAAM,KAAKA,IAAM,KACpF,OAIF,IAAI,KAAKF,GAAMC,IAAQ,GAAGC,CAAG;AACtC,GAKaC,IAAuB,CAACX,MAAmC;AACtE,MAAI,CAACA,KAAQ,MAAMA,EAAK,QAAA,CAAS;AAC/B,WAAO;AAIT,QAAMY,IAAYZ,EAAK,YAAA,GACjB,CAACa,CAAQ,IAAID,EAAU,MAAM,GAAG;AACtC,MAAI,CAACC,EAAU,QAAO;AAEtB,QAAMP,IAAQO,EAAS,MAAM,GAAG;AAChC,MAAIP,EAAM,WAAW,EAAG,QAAO;AAC/B,QAAMC,IAAUD,EAAM,IAAI,MAAM,GAC1BE,IAAOD,EAAQ,CAAC,GAChBE,IAAQF,EAAQ,CAAC,GACjBG,IAAMH,EAAQ,CAAC;AACrB,SAAI,MAAMC,CAAI,KAAK,MAAMC,CAAK,KAAK,MAAMC,CAAG,KAAKD,IAAQ,KAAKA,IAAQ,MAAMC,IAAM,KAAKA,IAAM,KACpF,OAGF,IAAI,KAAKF,GAAMC,IAAQ,GAAGC,CAAG;AACtC;"}
1
+ {"version":3,"file":"dateFormatting.js","sources":["../../src/helpers/dateFormatting.ts"],"sourcesContent":["export const formatDateNamedWeekdayShortPlusDate = (date?: string, locale?: string) => {\n if (!date) return ''\n const parsedDate = parseDateStringToLocal(date)\n if (!parsedDate) return ''\n return parsedDate.toLocaleDateString(locale, {\n weekday: 'short',\n month: 'short',\n day: 'numeric',\n })\n}\n\nexport const formatDateTimeWithTimezone = (date?: string | Date, locale?: string) => {\n if (!date) return { time: '', date: '' }\n const parsedDate = typeof date === 'string' ? new Date(date) : date\n if (isNaN(parsedDate.getTime())) return { time: '', date: '' }\n\n const time = parsedDate.toLocaleTimeString(locale, {\n hour: 'numeric',\n minute: '2-digit',\n hour12: true,\n timeZoneName: 'short',\n })\n\n const dateString = parsedDate.toLocaleDateString(locale, {\n weekday: 'short',\n month: 'short',\n day: 'numeric',\n })\n\n return { time, date: dateString }\n}\n\nexport const formatDateToStringDate = (date: Date) => {\n // Handle invalid dates gracefully\n if (isNaN(date.getTime())) {\n return null\n }\n return date.toISOString().split('T')[0]\n}\n\n/**\n * Parses YYYY-MM-DD string to local Date, avoiding timezone issues from `new Date(dateString)`.\n */\nexport const parseDateStringToLocal = (dateString: string): Date | null => {\n if (!dateString || !/^\\d{4}-\\d{2}-\\d{2}$/.test(dateString)) {\n return null\n }\n\n const parts = dateString.split('-')\n if (parts.length !== 3) {\n return null\n }\n\n const numbers = parts.map(Number)\n const year = numbers[0]\n const month = numbers[1]\n const day = numbers[2]\n if (year === undefined || month === undefined || day === undefined) {\n return null\n }\n\n // Validate date components\n if (isNaN(year) || isNaN(month) || isNaN(day) || month < 1 || month > 12 || day < 1 || day > 31) {\n return null\n }\n\n // Create Date in local timezone (month is 0-indexed)\n return new Date(year, month - 1, day)\n}\n\n/**\n * Normalizes Date to local midnight, handling timezone issues from any adapter.\n */\nexport const normalizeDateToLocal = (date: Date | null): Date | null => {\n if (!date || isNaN(date.getTime())) {\n return null\n }\n\n // Use ISO string to get the intended date, then parse components\n const isoString = date.toISOString()\n const [datePart] = isoString.split('T')\n if (!datePart) return null\n\n const parts = datePart.split('-')\n if (parts.length !== 3) return null\n const numbers = parts.map(Number)\n const year = numbers[0]!\n const month = numbers[1]!\n const day = numbers[2]!\n if (isNaN(year) || isNaN(month) || isNaN(day) || month < 1 || month > 12 || day < 1 || day > 31) {\n return null\n }\n\n return new Date(year, month - 1, day)\n}\n"],"names":["formatDateNamedWeekdayShortPlusDate","date","locale","parsedDate","parseDateStringToLocal","formatDateTimeWithTimezone","time","dateString","formatDateToStringDate","parts","numbers","year","month","day","normalizeDateToLocal","isoString","datePart"],"mappings":"AAAO,MAAMA,IAAsC,CAACC,GAAeC,MAAoB;AACrF,MAAI,CAACD,EAAM,QAAO;AAClB,QAAME,IAAaC,EAAuBH,CAAI;AAC9C,SAAKE,IACEA,EAAW,mBAAmBD,GAAQ;AAAA,IAC3C,SAAS;AAAA,IACT,OAAO;AAAA,IACP,KAAK;AAAA,EAAA,CACN,IALuB;AAM1B,GAEaG,IAA6B,CAACJ,GAAsBC,MAAoB;AACnF,MAAI,CAACD,EAAM,QAAO,EAAE,MAAM,IAAI,MAAM,GAAA;AACpC,QAAME,IAAa,OAAOF,KAAS,WAAW,IAAI,KAAKA,CAAI,IAAIA;AAC/D,MAAI,MAAME,EAAW,SAAS,UAAU,EAAE,MAAM,IAAI,MAAM,GAAA;AAE1D,QAAMG,IAAOH,EAAW,mBAAmBD,GAAQ;AAAA,IACjD,MAAM;AAAA,IACN,QAAQ;AAAA,IACR,QAAQ;AAAA,IACR,cAAc;AAAA,EAAA,CACf,GAEKK,IAAaJ,EAAW,mBAAmBD,GAAQ;AAAA,IACvD,SAAS;AAAA,IACT,OAAO;AAAA,IACP,KAAK;AAAA,EAAA,CACN;AAED,SAAO,EAAE,MAAAI,GAAM,MAAMC,EAAA;AACvB,GAEaC,IAAyB,CAACP,MAEjC,MAAMA,EAAK,QAAA,CAAS,IACf,OAEFA,EAAK,YAAA,EAAc,MAAM,GAAG,EAAE,CAAC,GAM3BG,IAAyB,CAACG,MAAoC;AACzE,MAAI,CAACA,KAAc,CAAC,sBAAsB,KAAKA,CAAU;AACvD,WAAO;AAGT,QAAME,IAAQF,EAAW,MAAM,GAAG;AAClC,MAAIE,EAAM,WAAW;AACnB,WAAO;AAGT,QAAMC,IAAUD,EAAM,IAAI,MAAM,GAC1BE,IAAOD,EAAQ,CAAC,GAChBE,IAAQF,EAAQ,CAAC,GACjBG,IAAMH,EAAQ,CAAC;AAMrB,SALIC,MAAS,UAAaC,MAAU,UAAaC,MAAQ,UAKrD,MAAMF,CAAI,KAAK,MAAMC,CAAK,KAAK,MAAMC,CAAG,KAAKD,IAAQ,KAAKA,IAAQ,MAAMC,IAAM,KAAKA,IAAM,KACpF,OAIF,IAAI,KAAKF,GAAMC,IAAQ,GAAGC,CAAG;AACtC,GAKaC,IAAuB,CAACb,MAAmC;AACtE,MAAI,CAACA,KAAQ,MAAMA,EAAK,QAAA,CAAS;AAC/B,WAAO;AAIT,QAAMc,IAAYd,EAAK,YAAA,GACjB,CAACe,CAAQ,IAAID,EAAU,MAAM,GAAG;AACtC,MAAI,CAACC,EAAU,QAAO;AAEtB,QAAMP,IAAQO,EAAS,MAAM,GAAG;AAChC,MAAIP,EAAM,WAAW,EAAG,QAAO;AAC/B,QAAMC,IAAUD,EAAM,IAAI,MAAM,GAC1BE,IAAOD,EAAQ,CAAC,GAChBE,IAAQF,EAAQ,CAAC,GACjBG,IAAMH,EAAQ,CAAC;AACrB,SAAI,MAAMC,CAAI,KAAK,MAAMC,CAAK,KAAK,MAAMC,CAAG,KAAKD,IAAQ,KAAKA,IAAQ,MAAMC,IAAM,KAAKA,IAAM,KACpF,OAGF,IAAI,KAAKF,GAAMC,IAAQ,GAAGC,CAAG;AACtC;"}
@@ -1,9 +1,9 @@
1
- const t = "Account number", e = "Account type", n = "Account type", o = "Checking", c = "Savings", a = "Allocation", i = "Bank account actions", s = "+ Add another bank account", r = "Add bank account", l = "List of employee bank accounts", u = "Back", p = "Save", m = "Cancel", d = "If you select check as the payment method, you'll need to write a physical check to this employee each payday.", y = "Check", b = "Delete", h = "We recommend direct deposit — we can deposit paychecks directly into your employees' bank accounts.", g = "Direct Deposit", k = "Bank account actions", C = "Account nickname", L = "Nickname", A = "Select payment method", f = "Routing number", D = "Routing number", T = "(9 digits)", N = "Split paycheck", S = "Continue", v = "Employee payment details", B = "Fixed amount", _ = "<p>You can split your paycheck into different accounts by percentage or flat dollar amounts.</p><p>When splitting by amount, you can reorder the priority of the bank accounts by clicking and dragging the list icon to the left of the bank account field. We’ll pay the amounts in the order specified until your salary has been fully distributed to the last “remainder” account.</p>", E = "Reorderable list of bank accounts", P = "Percentage", R = "{{name}} ({{account_number}})", w = "Split by", W = "Priority", x = "Remainder", q = "Split employee paycheck", F = "{{count}}st", I = "{{count}}nd", M = "{{count}}rd", Y = "{{count}}th", j = { percentageError: "If payment method amount is split by Percentage, all split amounts must add up to exactly 100.", percentageErrorWithTotal: "Splits must total 100%. Currently {{total}}%.", amountError: "Please enter valid amount", accountName: "Account name is required", routingNumber: "Routing number should be a number (9 digits)", accountNumber: "Account number is a required field" }, z = {
1
+ const t = "Account number", e = "Account type", n = "Account type", c = "Checking", o = "Savings", a = "Allocation", i = "Bank account actions", s = "+ Add another bank account", r = "Add bank account", l = "List of employee bank accounts", u = "Back", p = "Save", d = "Cancel", m = "If you select check as the payment method, you'll need to write a physical check to this employee each payday.", y = "If you select check as the payment method, you'll receive a physical check.", b = "Check", h = "Delete", k = "We recommend direct deposit — we can deposit paychecks directly into your employees' bank accounts.", g = "We recommend direct deposit — we can deposit paychecks directly into your account.", f = "Direct Deposit", C = "Bank account actions", L = "Account nickname", A = "Nickname", D = "Select payment method", S = "Routing number", T = "Routing number", N = "(9 digits)", v = "Split paycheck", B = "Continue", _ = "Employee payment details", w = "Fixed amount", E = "<p>You can split your paycheck into different accounts by percentage or flat dollar amounts.</p><p>When splitting by amount, you can reorder the priority of the bank accounts by clicking and dragging the list icon to the left of the bank account field. We’ll pay the amounts in the order specified until your salary has been fully distributed to the last “remainder” account.</p>", P = "Reorderable list of bank accounts", R = "Percentage", W = "{{name}} ({{account_number}})", x = "Split by", I = "Priority", q = "Remainder", F = "Split employee paycheck", M = "{{count}}st", Y = "{{count}}nd", j = "{{count}}rd", z = "{{count}}th", G = { percentageError: "If payment method amount is split by Percentage, all split amounts must add up to exactly 100.", percentageErrorWithTotal: "Splits must total 100%. Currently {{total}}%.", amountError: "Please enter valid amount", accountName: "Account name is required", routingNumber: "Routing number should be a number (9 digits)", accountNumber: "Account number is a required field" }, H = {
2
2
  accountNumberLabel: t,
3
3
  accountTypeColumn: e,
4
4
  accountTypeLabel: n,
5
- accountTypeChecking: o,
6
- accountTypeSavings: c,
5
+ accountTypeChecking: c,
6
+ accountTypeSavings: o,
7
7
  allocationColumn: a,
8
8
  actionColumn: i,
9
9
  addAnotherCta: s,
@@ -11,80 +11,84 @@ const t = "Account number", e = "Account type", n = "Account type", o = "Checkin
11
11
  bankAccountsListLabel: l,
12
12
  cancelCta: u,
13
13
  saveCta: p,
14
- cancelAddCta: m,
15
- checkDescription: d,
16
- checkLabel: y,
17
- deleteBankAccountCTA: b,
18
- directDepositDescription: h,
19
- directDepositLabel: g,
20
- hamburgerTitle: k,
21
- nameLabel: C,
22
- nicknameColumn: L,
23
- paymentFieldsetLegend: A,
24
- routingNumberColumn: f,
25
- routingNumberLabel: D,
26
- routingNumberDescription: T,
27
- splitCta: N,
28
- submitCta: S,
29
- title: v,
30
- amountLabel: B,
31
- splitDescription: _,
32
- draggableListLabel: E,
33
- percentageLabel: P,
34
- splitAmountLabel: R,
35
- splitByLabel: w,
36
- priorityLabel: W,
37
- remainderLabel: x,
38
- splitTitle: q,
39
- priority_one: F,
40
- priority_two: I,
41
- priority_few: M,
42
- priority_other: Y,
43
- validations: j
14
+ cancelAddCta: d,
15
+ checkDescription: m,
16
+ checkDescriptionSelf: y,
17
+ checkLabel: b,
18
+ deleteBankAccountCTA: h,
19
+ directDepositDescription: k,
20
+ directDepositDescriptionSelf: g,
21
+ directDepositLabel: f,
22
+ hamburgerTitle: C,
23
+ nameLabel: L,
24
+ nicknameColumn: A,
25
+ paymentFieldsetLegend: D,
26
+ routingNumberColumn: S,
27
+ routingNumberLabel: T,
28
+ routingNumberDescription: N,
29
+ splitCta: v,
30
+ submitCta: B,
31
+ title: _,
32
+ amountLabel: w,
33
+ splitDescription: E,
34
+ draggableListLabel: P,
35
+ percentageLabel: R,
36
+ splitAmountLabel: W,
37
+ splitByLabel: x,
38
+ priorityLabel: I,
39
+ remainderLabel: q,
40
+ splitTitle: F,
41
+ priority_one: M,
42
+ priority_two: Y,
43
+ priority_few: j,
44
+ priority_other: z,
45
+ validations: G
44
46
  };
45
47
  export {
46
48
  t as accountNumberLabel,
47
- o as accountTypeChecking,
49
+ c as accountTypeChecking,
48
50
  e as accountTypeColumn,
49
51
  n as accountTypeLabel,
50
- c as accountTypeSavings,
52
+ o as accountTypeSavings,
51
53
  i as actionColumn,
52
54
  s as addAnotherCta,
53
55
  r as addBankAccountCTA,
54
56
  a as allocationColumn,
55
- B as amountLabel,
57
+ w as amountLabel,
56
58
  l as bankAccountsListLabel,
57
- m as cancelAddCta,
59
+ d as cancelAddCta,
58
60
  u as cancelCta,
59
- d as checkDescription,
60
- y as checkLabel,
61
- z as default,
62
- b as deleteBankAccountCTA,
63
- h as directDepositDescription,
64
- g as directDepositLabel,
65
- E as draggableListLabel,
66
- k as hamburgerTitle,
67
- C as nameLabel,
68
- L as nicknameColumn,
69
- A as paymentFieldsetLegend,
70
- P as percentageLabel,
71
- W as priorityLabel,
72
- M as priority_few,
73
- F as priority_one,
74
- Y as priority_other,
75
- I as priority_two,
76
- x as remainderLabel,
77
- f as routingNumberColumn,
78
- T as routingNumberDescription,
79
- D as routingNumberLabel,
61
+ m as checkDescription,
62
+ y as checkDescriptionSelf,
63
+ b as checkLabel,
64
+ H as default,
65
+ h as deleteBankAccountCTA,
66
+ k as directDepositDescription,
67
+ g as directDepositDescriptionSelf,
68
+ f as directDepositLabel,
69
+ P as draggableListLabel,
70
+ C as hamburgerTitle,
71
+ L as nameLabel,
72
+ A as nicknameColumn,
73
+ D as paymentFieldsetLegend,
74
+ R as percentageLabel,
75
+ I as priorityLabel,
76
+ j as priority_few,
77
+ M as priority_one,
78
+ z as priority_other,
79
+ Y as priority_two,
80
+ q as remainderLabel,
81
+ S as routingNumberColumn,
82
+ N as routingNumberDescription,
83
+ T as routingNumberLabel,
80
84
  p as saveCta,
81
- R as splitAmountLabel,
82
- w as splitByLabel,
83
- N as splitCta,
84
- _ as splitDescription,
85
- q as splitTitle,
86
- S as submitCta,
87
- v as title,
88
- j as validations
85
+ W as splitAmountLabel,
86
+ x as splitByLabel,
87
+ v as splitCta,
88
+ E as splitDescription,
89
+ F as splitTitle,
90
+ B as submitCta,
91
+ _ as title,
92
+ G as validations
89
93
  };
90
94
  //# sourceMappingURL=Employee.PaymentMethod.json.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Employee.PaymentMethod.json.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"Employee.PaymentMethod.json.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -1,36 +1,36 @@
1
- const e = "Edit Payroll", a = "Regular payroll for <dateWrapper>{{startDate}} - {{endDate}}</dateWrapper>", o = "Configuration", l = "Save and exit", t = "Calculate payroll", s = "Calculate payroll", n = "Hours and additional earnings", i = "Review and update your employee's hours, reimbursements, and additional earnings below.", r = "Employee compensations", p = { employees: "Employees", hours: "Hours", timeOff: "Time off", additionalEarnings: "Additional earnings", reimbursements: "Reimbursements", totalPay: "Total pay" }, d = "Skipped", y = { edit: "Edit", skip: "Skip employee", unskip: "Unskip employee" }, c = { progressSaved: "Your progress has been saved", payrollDeadline: { label: "Payroll Deadline", message: "To pay your employees with direct deposit on the check date, you'll need to run payroll by the deadline." }, skippedEmployees: { label: "Skipped Employees", employeeAddressNotVerified: "Employee address not verified" }, employeeUpdated: { label: "{{employeeName}} updated successfully" } }, u = "Preparing payroll...", m = "This may take a minute or two. You can navigate away while this happens.", g = {
1
+ const e = "Edit Payroll", a = "Regular payroll for <dateWrapper>{{startDate}} - {{endDate}}</dateWrapper>", o = "Configuration", t = "Save and exit", l = "Calculate payroll", s = "Calculate payroll", i = "Hours and additional earnings", n = "Review and update your employee's hours, reimbursements, and additional earnings below.", r = "Employee compensations", d = { employees: "Employees", hours: "Hours", timeOff: "Time off", additionalEarnings: "Additional earnings", reimbursements: "Reimbursements", totalPay: "Total pay" }, p = "Skipped", y = { edit: "Edit", skip: "Skip employee", unskip: "Unskip employee" }, u = { progressSaved: "Your progress has been saved", directDepositDeadline: "To pay your employees with direct deposit on {{payDate}}, you'll need to run payroll by {{time}} on {{date}}.", directDepositDeadlineText: "Make sure to submit before the deadline to ensure timely payments.", payrollDeadline: { label: "Payroll Deadline", message: "To pay your employees with direct deposit on the check date, you'll need to run payroll by the deadline." }, skippedEmployees: { label: "Skipped Employees", employeeAddressNotVerified: "Employee address not verified" }, employeeUpdated: { label: "{{employeeName}} updated successfully" } }, c = "Preparing payroll...", m = "This may take a minute or two. You can navigate away while this happens.", g = {
2
2
  pageTitle: e,
3
3
  description: a,
4
4
  breadcrumbLabel: o,
5
- exitFlowCta: l,
6
- calculatePayroll: t,
5
+ exitFlowCta: t,
6
+ calculatePayroll: l,
7
7
  calculatePayrollTitle: s,
8
- hoursAndEarningsTitle: n,
9
- hoursAndEarningsDescription: i,
8
+ hoursAndEarningsTitle: i,
9
+ hoursAndEarningsDescription: n,
10
10
  employeeCompensationsTitle: r,
11
- tableColumns: p,
12
- skippedBadge: d,
11
+ tableColumns: d,
12
+ skippedBadge: p,
13
13
  editMenu: y,
14
- alerts: c,
15
- loadingTitle: u,
14
+ alerts: u,
15
+ loadingTitle: c,
16
16
  loadingDescription: m
17
17
  };
18
18
  export {
19
- c as alerts,
19
+ u as alerts,
20
20
  o as breadcrumbLabel,
21
- t as calculatePayroll,
21
+ l as calculatePayroll,
22
22
  s as calculatePayrollTitle,
23
23
  g as default,
24
24
  a as description,
25
25
  y as editMenu,
26
26
  r as employeeCompensationsTitle,
27
- l as exitFlowCta,
28
- i as hoursAndEarningsDescription,
29
- n as hoursAndEarningsTitle,
27
+ t as exitFlowCta,
28
+ n as hoursAndEarningsDescription,
29
+ i as hoursAndEarningsTitle,
30
30
  m as loadingDescription,
31
- u as loadingTitle,
31
+ c as loadingTitle,
32
32
  e as pageTitle,
33
- d as skippedBadge,
34
- p as tableColumns
33
+ p as skippedBadge,
34
+ d as tableColumns
35
35
  };
36
36
  //# sourceMappingURL=Payroll.PayrollConfiguration.json.js.map
@@ -1,4 +1,4 @@
1
- const e = "Submit", a = "Back", t = "Save and exit", o = "Review payroll", l = "Payroll summary", s = "Regular payroll for <dateWrapper>{{startDate}} - {{endDate}}</dateWrapper>", n = "Submit", y = "Edit payroll", i = "Cancel payroll", r = "Cancel {{startDate}} - {{endDate}} payroll?", p = "Cancel this payroll now and run it again later. Any information entered will not be saved.", m = "Run this payroll by {{deadline}} to ensure your employees are paid on time.", c = " Yes, cancel payroll", d = "No, go back", b = "Payroll receipt", u = "Download paystub pdf", T = "Submitting payroll...", h = "This may take a minute or two. You can navigate away while this happens.", D = { payrollNotCalculated: "Payroll is not calculated", directDepositDeadline: "To pay your employees with direct deposit on {{payDate}}, you'll need to run payroll by {{deadline}}", paystubPdfError: "There was an issue generating the paystub PDF. Please try again later.", checkPaymentWarning_one: "You noted {{count}} employee who should be paid by check.", checkPaymentWarning_other: "You noted {{count}} employees who should be paid by check.", checkPaymentWarningDescription: "Employees with this payment method will need their checks delivered to them.", payrollProcessedTitle: "Payroll submitted", payrollProcessedMessage: "{{amount}} will be debited on {{date}}. Make sure you have these funds available." }, P = "Payroll Summary", g = "Payroll summary table", w = { label: "Payroll details", companyPaysTab: "Company pays", companyPaysTable: "Company pays by employee", hoursWorkedTab: "Hours worked", hoursWorkedTable: "Hours worked by employee", employeeTakeHomeTab: "Employee take home", employeeTakeHomeTable: "Employee take home by employee", taxesTab: "Taxes and debited", taxesTable: "Taxes breakdown", debitedTable: "Debited totals by company" }, x = { totalPayroll: "Total payroll", debitAmount: "Debit amount", employees: "Employees", grossPay: "Gross Pay", reimbursements: "Reimbursements", debitAccount: "Debit account", debitDate: "Debit date", employeesPayDate: "Employees pay date", companyTaxes: "Company taxes", companyBenefits: "Company benefits", companyPays: "Company pays", compensationType: "Compensation type", regular: "Regular", overtime: "Overtime (1.5x)", doubleOT: "Double overtime (2x)", timeOff: "Paid time off", totalHours: "Total hours", paymentType: "Payment type", employeeTaxes: "Employee taxes", employeeBenefits: "Employee benefits", payment: "Payment", deductions: "Deductions", taxDescription: "Tax description", byYourEmployees: "By your employees", byYourCompany: "By your company", debitedByGusto: "Debited by Gusto", taxesTotal: "Total", paystub: "Paystub", footerTotalsLabel: "Totals", footerTotalsDescription: "All employees in this payroll" }, k = "Totals", C = "Direct deposits", f = "Reimbursements", v = "Garnishments", E = "Taxes (Employees and Employers)", L = { exempt: "Salaried / Exempt", nonexempt: "Hourly / Nonexempt" }, S = {
1
+ const e = "Submit", a = "Back", t = "Save and exit", o = "Review payroll", l = "Payroll summary", s = "Regular payroll for <dateWrapper>{{startDate}} - {{endDate}}</dateWrapper>", n = "Submit", y = "Edit payroll", i = "Cancel payroll", r = "Cancel {{startDate}} - {{endDate}} payroll?", p = "Cancel this payroll now and run it again later. Any information entered will not be saved.", m = "Run this payroll by {{deadline}} to ensure your employees are paid on time.", c = " Yes, cancel payroll", d = "No, go back", b = "Payroll receipt", u = "Download paystub pdf", T = "Submitting payroll...", h = "This may take a minute or two. You can navigate away while this happens.", D = { payrollNotCalculated: "Payroll is not calculated", directDepositDeadline: "To pay your employees with direct deposit on {{payDate}}, you'll need to run payroll by {{time}} on {{date}}", paystubPdfError: "There was an issue generating the paystub PDF. Please try again later.", checkPaymentWarning_one: "You noted {{count}} employee who should be paid by check.", checkPaymentWarning_other: "You noted {{count}} employees who should be paid by check.", checkPaymentWarningDescription: "Employees with this payment method will need their checks delivered to them.", payrollProcessedTitle: "Payroll submitted", payrollProcessedMessage: "{{amount}} will be debited on {{date}}. Make sure you have these funds available." }, P = "Payroll Summary", g = "Payroll summary table", w = { label: "Payroll details", companyPaysTab: "Company pays", companyPaysTable: "Company pays by employee", hoursWorkedTab: "Hours worked", hoursWorkedTable: "Hours worked by employee", employeeTakeHomeTab: "Employee take home", employeeTakeHomeTable: "Employee take home by employee", taxesTab: "Taxes and debited", taxesTable: "Taxes breakdown", debitedTable: "Debited totals by company" }, x = { totalPayroll: "Total payroll", debitAmount: "Debit amount", employees: "Employees", grossPay: "Gross Pay", reimbursements: "Reimbursements", debitAccount: "Debit account", debitDate: "Debit date", employeesPayDate: "Employees pay date", companyTaxes: "Company taxes", companyBenefits: "Company benefits", companyPays: "Company pays", compensationType: "Compensation type", regular: "Regular", overtime: "Overtime (1.5x)", doubleOT: "Double overtime (2x)", timeOff: "Paid time off", totalHours: "Total hours", paymentType: "Payment type", employeeTaxes: "Employee taxes", employeeBenefits: "Employee benefits", payment: "Payment", deductions: "Deductions", taxDescription: "Tax description", byYourEmployees: "By your employees", byYourCompany: "By your company", debitedByGusto: "Debited by Gusto", taxesTotal: "Total", paystub: "Paystub", footerTotalsLabel: "Totals", footerTotalsDescription: "All employees in this payroll" }, k = "Totals", C = "Direct deposits", f = "Reimbursements", v = "Garnishments", E = "Taxes (Employees and Employers)", L = { exempt: "Salaried / Exempt", nonexempt: "Hourly / Nonexempt" }, S = {
2
2
  breadcrumbLabel: e,
3
3
  backButton: a,
4
4
  exitFlowCta: t,