@gusto/embedded-react-sdk 0.14.1 → 0.16.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 (143) hide show
  1. package/CHANGELOG.md +51 -0
  2. package/dist/assets/icons/feature-icon-check.svg.js +10 -0
  3. package/dist/assets/icons/feature-icon-check.svg.js.map +1 -0
  4. package/dist/components/Common/DataView/DataView.d.ts +2 -1
  5. package/dist/components/Common/DataView/DataView.js +19 -18
  6. package/dist/components/Common/DataView/DataView.js.map +1 -1
  7. package/dist/components/Common/FlowBreadcrumbs/FlowBreadcrumbs.d.ts +2 -0
  8. package/dist/components/Common/FlowBreadcrumbs/FlowBreadcrumbs.js +52 -0
  9. package/dist/components/Common/FlowBreadcrumbs/FlowBreadcrumbs.js.map +1 -0
  10. package/dist/components/Common/FlowBreadcrumbs/FlowBreadcrumbsTypes.d.ts +44 -0
  11. package/dist/components/Common/FlowBreadcrumbs/index.d.ts +3 -0
  12. package/dist/components/Common/PaginationControl/PaginationControl.js +36 -36
  13. package/dist/components/Common/PaginationControl/PaginationControl.js.map +1 -1
  14. package/dist/components/Common/PaginationControl/PaginationControlTypes.d.ts +3 -1
  15. package/dist/components/Common/UI/Breadcrumbs/Breadcrumbs.d.ts +2 -0
  16. package/dist/components/Common/UI/Breadcrumbs/Breadcrumbs.js +38 -0
  17. package/dist/components/Common/UI/Breadcrumbs/Breadcrumbs.js.map +1 -0
  18. package/dist/components/Common/UI/Breadcrumbs/Breadcrumbs.module.scss.js +16 -0
  19. package/dist/components/Common/UI/Breadcrumbs/Breadcrumbs.module.scss.js.map +1 -0
  20. package/dist/components/Common/UI/Breadcrumbs/BreadcrumbsTypes.d.ts +27 -0
  21. package/dist/components/Common/UI/Breadcrumbs/index.d.ts +3 -0
  22. package/dist/components/Common/UI/ProgressBar/ProgressBar.js +4 -4
  23. package/dist/components/Company/Locations/LocationsList/List.js +28 -26
  24. package/dist/components/Company/Locations/LocationsList/List.js.map +1 -1
  25. package/dist/components/Company/Locations/LocationsList/LocationsList.js +7 -6
  26. package/dist/components/Company/Locations/LocationsList/LocationsList.js.map +1 -1
  27. package/dist/components/Company/Locations/LocationsList/useLocationsList.d.ts +3 -1
  28. package/dist/components/Company/Locations/LocationsList/useLocationsList.js.map +1 -1
  29. package/dist/components/Company/OnboardingFlow/OnboardingFlow.js +10 -10
  30. package/dist/components/Company/OnboardingFlow/OnboardingFlow.js.map +1 -1
  31. package/dist/components/Company/OnboardingFlow/onboardingStateMachine.js +16 -10
  32. package/dist/components/Company/OnboardingFlow/onboardingStateMachine.js.map +1 -1
  33. package/dist/components/Company/PaySchedule/_parts/Edit.js +6 -6
  34. package/dist/components/Company/PaySchedule/_parts/Edit.js.map +1 -1
  35. package/dist/components/Contractor/ContractorList/index.js +59 -57
  36. package/dist/components/Contractor/ContractorList/index.js.map +1 -1
  37. package/dist/components/Contractor/ContractorList/useContractorList.d.ts +3 -1
  38. package/dist/components/Contractor/ContractorList/useContractorList.js +7 -6
  39. package/dist/components/Contractor/ContractorList/useContractorList.js.map +1 -1
  40. package/dist/components/Contractor/OnboardingFlow/onboardingStateMachine.js +37 -37
  41. package/dist/components/Contractor/OnboardingFlow/onboardingStateMachine.js.map +1 -1
  42. package/dist/components/Contractor/Profile/ContractorProfileForm.js +11 -11
  43. package/dist/components/Employee/EmployeeList/EmployeeList.js +11 -10
  44. package/dist/components/Employee/EmployeeList/EmployeeList.js.map +1 -1
  45. package/dist/components/Employee/EmployeeList/List.js +45 -43
  46. package/dist/components/Employee/EmployeeList/List.js.map +1 -1
  47. package/dist/components/Employee/EmployeeList/useEmployeeList.d.ts +3 -1
  48. package/dist/components/Employee/EmployeeList/useEmployeeList.js.map +1 -1
  49. package/dist/components/Flow/Flow.js +44 -24
  50. package/dist/components/Flow/Flow.js.map +1 -1
  51. package/dist/components/Flow/useFlow.d.ts +10 -1
  52. package/dist/components/Flow/useFlow.js.map +1 -1
  53. package/dist/components/Payroll/PayrollBlocker/PayrollBlocker.d.ts +1 -1
  54. package/dist/components/Payroll/PayrollBlocker/PayrollBlocker.js +16 -16
  55. package/dist/components/Payroll/PayrollBlocker/PayrollBlocker.js.map +1 -1
  56. package/dist/components/Payroll/PayrollBlocker/components/PayrollBlockerAlerts.js +20 -20
  57. package/dist/components/Payroll/PayrollBlocker/components/PayrollBlockerAlerts.js.map +1 -1
  58. package/dist/components/Payroll/PayrollBlocker/components/PayrollBlockerList.js +9 -9
  59. package/dist/components/Payroll/PayrollBlocker/components/PayrollBlockerList.js.map +1 -1
  60. package/dist/components/Payroll/PayrollConfiguration/PayrollConfiguration.js +128 -94
  61. package/dist/components/Payroll/PayrollConfiguration/PayrollConfiguration.js.map +1 -1
  62. package/dist/components/Payroll/PayrollConfiguration/PayrollConfigurationPresentation.d.ts +3 -1
  63. package/dist/components/Payroll/PayrollConfiguration/PayrollConfigurationPresentation.js +72 -76
  64. package/dist/components/Payroll/PayrollConfiguration/PayrollConfigurationPresentation.js.map +1 -1
  65. package/dist/components/Payroll/PayrollEditEmployee/PayrollEditEmployee.js +42 -42
  66. package/dist/components/Payroll/PayrollEditEmployee/PayrollEditEmployee.js.map +1 -1
  67. package/dist/components/Payroll/PayrollFlow/PayrollFlow.d.ts +1 -1
  68. package/dist/components/Payroll/PayrollFlow/PayrollFlow.js +20 -19
  69. package/dist/components/Payroll/PayrollFlow/PayrollFlow.js.map +1 -1
  70. package/dist/components/Payroll/PayrollFlow/PayrollFlowComponents.d.ts +5 -3
  71. package/dist/components/Payroll/PayrollFlow/PayrollFlowComponents.js +65 -45
  72. package/dist/components/Payroll/PayrollFlow/PayrollFlowComponents.js.map +1 -1
  73. package/dist/components/Payroll/PayrollFlow/index.d.ts +1 -1
  74. package/dist/components/Payroll/PayrollFlow/payrollStateMachine.d.ts +2 -0
  75. package/dist/components/Payroll/PayrollFlow/payrollStateMachine.js +233 -96
  76. package/dist/components/Payroll/PayrollFlow/payrollStateMachine.js.map +1 -1
  77. package/dist/components/Payroll/PayrollHistory/PayrollHistory.js +21 -20
  78. package/dist/components/Payroll/PayrollHistory/PayrollHistory.js.map +1 -1
  79. package/dist/components/Payroll/PayrollHistory/PayrollHistoryPresentation.js +12 -12
  80. package/dist/components/Payroll/PayrollHistory/PayrollHistoryPresentation.js.map +1 -1
  81. package/dist/components/Payroll/PayrollLanding/PayrollLandingFlowComponents.js +8 -9
  82. package/dist/components/Payroll/PayrollLanding/PayrollLandingFlowComponents.js.map +1 -1
  83. package/dist/components/Payroll/PayrollList/PayrollListPresentation.js +83 -78
  84. package/dist/components/Payroll/PayrollList/PayrollListPresentation.js.map +1 -1
  85. package/dist/components/Payroll/PayrollOverview/PayrollOverview.d.ts +1 -2
  86. package/dist/components/Payroll/PayrollOverview/PayrollOverview.js +41 -45
  87. package/dist/components/Payroll/PayrollOverview/PayrollOverview.js.map +1 -1
  88. package/dist/components/Payroll/PayrollOverview/PayrollOverviewPresentation.d.ts +1 -2
  89. package/dist/components/Payroll/PayrollOverview/PayrollOverviewPresentation.js +118 -119
  90. package/dist/components/Payroll/PayrollOverview/PayrollOverviewPresentation.js.map +1 -1
  91. package/dist/components/Payroll/PayrollReceipts/PayrollReceipts.d.ts +1 -2
  92. package/dist/components/Payroll/PayrollReceipts/PayrollReceipts.js +12 -26
  93. package/dist/components/Payroll/PayrollReceipts/PayrollReceipts.js.map +1 -1
  94. package/dist/components/Payroll/PayrollReceipts/PayrollReceiptsPresentation.d.ts +1 -2
  95. package/dist/components/Payroll/PayrollReceipts/PayrollReceiptsPresentation.js +40 -44
  96. package/dist/components/Payroll/PayrollReceipts/PayrollReceiptsPresentation.js.map +1 -1
  97. package/dist/components/Payroll/helpers.d.ts +2 -0
  98. package/dist/components/Payroll/helpers.js +38 -37
  99. package/dist/components/Payroll/helpers.js.map +1 -1
  100. package/dist/components/Payroll/usePreparedPayrollData.d.ts +4 -1
  101. package/dist/components/Payroll/usePreparedPayrollData.js +24 -18
  102. package/dist/components/Payroll/usePreparedPayrollData.js.map +1 -1
  103. package/dist/components/index.d.ts +1 -1
  104. package/dist/contexts/ComponentAdapter/adapters/defaultComponentAdapter.js +41 -39
  105. package/dist/contexts/ComponentAdapter/adapters/defaultComponentAdapter.js.map +1 -1
  106. package/dist/contexts/ComponentAdapter/componentAdapterTypes.d.ts +1 -0
  107. package/dist/contexts/ComponentAdapter/useComponentContext.d.ts +2 -0
  108. package/dist/contexts/ComponentAdapter/useComponentContext.js.map +1 -1
  109. package/dist/helpers/breadcrumbHelpers.d.ts +33 -0
  110. package/dist/helpers/breadcrumbHelpers.js +46 -0
  111. package/dist/helpers/breadcrumbHelpers.js.map +1 -0
  112. package/dist/helpers/breadcrumbHelpers.test.d.ts +1 -0
  113. package/dist/i18n/I18n.d.ts +1 -1
  114. package/dist/i18n/I18n.js +32 -23
  115. package/dist/i18n/I18n.js.map +1 -1
  116. package/dist/i18n/en/Company.PaySchedule.json.js +2 -2
  117. package/dist/i18n/en/Payroll.PayrollBlocker.json.js +28 -0
  118. package/dist/i18n/en/Payroll.PayrollBlocker.json.js.map +1 -0
  119. package/dist/i18n/en/Payroll.PayrollConfiguration.json.js +28 -24
  120. package/dist/i18n/en/Payroll.PayrollConfiguration.json.js.map +1 -1
  121. package/dist/i18n/en/Payroll.PayrollEditEmployee.json.js +28 -26
  122. package/dist/i18n/en/Payroll.PayrollEditEmployee.json.js.map +1 -1
  123. package/dist/i18n/en/Payroll.PayrollFlow.json.js +8 -0
  124. package/dist/i18n/en/Payroll.PayrollFlow.json.js.map +1 -0
  125. package/dist/i18n/en/Payroll.PayrollHistory.json.js +9 -9
  126. package/dist/i18n/en/Payroll.PayrollLanding.json.js +2 -2
  127. package/dist/i18n/en/Payroll.PayrollOverview.json.js +60 -56
  128. package/dist/i18n/en/Payroll.PayrollOverview.json.js.map +1 -1
  129. package/dist/i18n/en/Payroll.PayrollReceipts.json.js +16 -12
  130. package/dist/i18n/en/Payroll.PayrollReceipts.json.js.map +1 -1
  131. package/dist/index.js +1 -1
  132. package/dist/shared/constants.d.ts +3 -0
  133. package/dist/shared/constants.js +11 -9
  134. package/dist/shared/constants.js.map +1 -1
  135. package/dist/style.css +1 -1
  136. package/dist/types/i18next.d.ts +157 -150
  137. package/package.json +12 -12
  138. package/dist/components/Payroll/RunPayrollFlow/RunPayroll.d.ts +0 -23
  139. package/dist/components/Payroll/RunPayrollFlow/RunPayrollFlow.d.ts +0 -6
  140. package/dist/i18n/en/Payroll.RunPayroll.json.js +0 -8
  141. package/dist/i18n/en/Payroll.RunPayroll.json.js.map +0 -1
  142. package/dist/i18n/en/PayrollBlocker.json.js +0 -24
  143. package/dist/i18n/en/PayrollBlocker.json.js.map +0 -1
@@ -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 { 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 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","Tabs","Dialog","LoadingSpinner"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAyDO,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,MAAM,CAACA,MAAqB,gBAAAC,EAACyB,GAAA,EAAM,GAAG1B,GAAO;AAAA,EAC7C,QAAQ,CAACA,MAAuB,gBAAAC,EAAC0B,GAAA,EAAQ,GAAG3B,GAAO;AAAA,EACnD,gBAAgB,CAACA,MAA+B,gBAAAC,EAAC2B,GAAA,EAAgB,GAAG5B,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'\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,4 +1,5 @@
1
1
  export type { ProgressBarProps } from '../../components/Common/UI/ProgressBar/ProgressBarTypes';
2
+ export type { BreadcrumbsProps } from '../../components/Common/UI/Breadcrumbs/BreadcrumbsTypes';
2
3
  export type { ButtonProps, ButtonIconProps } from '../../components/Common/UI/Button/ButtonTypes';
3
4
  export type { CardProps } from '../../components/Common/UI/Card/CardTypes';
4
5
  export type { CheckboxProps } from '../../components/Common/UI/Checkbox/CheckboxTypes';
@@ -22,6 +22,7 @@ import { PaginationControlProps } from '../../components/Common/PaginationContro
22
22
  import { TextProps } from '../../components/Common/UI/Text/TextTypes';
23
23
  import { CalendarPreviewProps } from '../../components/Common/UI/CalendarPreview/CalendarPreviewTypes';
24
24
  import { ProgressBarProps } from '../../components/Common/UI/ProgressBar/ProgressBarTypes';
25
+ import { BreadcrumbsProps } from '../../components/Common/UI/Breadcrumbs/BreadcrumbsTypes';
25
26
  import { TabsProps } from '../../components/Common/UI/Tabs/TabsTypes';
26
27
  import { DialogProps } from '../../components/Common/UI/Dialog/DialogTypes';
27
28
  import { LoadingSpinnerProps } from '../../components/Common/UI/LoadingSpinner/LoadingSpinnerTypes';
@@ -51,6 +52,7 @@ export interface ComponentsContextType {
51
52
  Text: (props: TextProps) => JSX.Element | null;
52
53
  CalendarPreview: (props: CalendarPreviewProps) => JSX.Element | null;
53
54
  ProgressBar: (props: ProgressBarProps) => JSX.Element | null;
55
+ Breadcrumbs: (props: BreadcrumbsProps) => JSX.Element | null;
54
56
  Tabs: (props: TabsProps) => JSX.Element | null;
55
57
  Dialog: (props: DialogProps) => JSX.Element | null;
56
58
  LoadingSpinner: (props: LoadingSpinnerProps) => JSX.Element | null;
@@ -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 { 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 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":";AA4DO,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'\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;"}
@@ -0,0 +1,33 @@
1
+ import { BreadcrumbNodes, BreadcrumbTrail } from '../components/Common/FlowBreadcrumbs/FlowBreadcrumbsTypes';
2
+ /**
3
+ * Builds a complete breadcrumb trail map from a hierarchical node structure.
4
+ *
5
+ * Takes a tree structure of breadcrumb nodes and generates a map where each state
6
+ * has its complete breadcrumb trail from root to that state. This is useful for
7
+ * initializing breadcrumb navigation in state machines or multi-step flows.
8
+ */
9
+ export declare const buildBreadcrumbs: (nodes: BreadcrumbNodes) => BreadcrumbTrail;
10
+ /**
11
+ * Resolves template variables in breadcrumb labels using values from a context object.
12
+ *
13
+ * Supports Handlebars-style template syntax ({{variableName}}) for dynamic breadcrumb labels.
14
+ * Variables enclosed in double braces are replaced with their corresponding values from the context.
15
+ * Non-template strings are returned as-is.
16
+ */
17
+ export declare const resolveBreadcrumbVariables: (variables: Record<string, string> | undefined, context: Record<string, unknown>) => Record<string, unknown>;
18
+ /**
19
+ * Updates the breadcrumb trail for a specific state with resolved variables.
20
+ *
21
+ * This function is typically used in state machine transitions to update breadcrumb
22
+ * navigation when moving between states. It preserves all existing breadcrumb trails
23
+ * for other states and only updates the trail for the specified state by resolving
24
+ * any template variables for that state's breadcrumb.
25
+
26
+ */
27
+ export declare const updateBreadcrumbs: <T extends {
28
+ breadcrumbs?: BreadcrumbTrail;
29
+ currentBreadcrumb?: string;
30
+ }>(stateName: string, context: T, variables?: Record<string, string>) => Omit<T, "breadcrumbs" | "currentBreadcrumb"> & {
31
+ breadcrumbs: BreadcrumbTrail;
32
+ currentBreadcrumbId: string;
33
+ };
@@ -0,0 +1,46 @@
1
+ const l = (r) => {
2
+ const e = {};
3
+ for (const [n, s] of Object.entries(r)) {
4
+ const o = [];
5
+ let t = s;
6
+ for (; t; ) {
7
+ o.unshift(t.item);
8
+ const c = t.parent;
9
+ t = c ? r[c] ?? null : null;
10
+ }
11
+ e[n] = o;
12
+ }
13
+ return e;
14
+ }, u = (r, e) => {
15
+ if (!r)
16
+ return {};
17
+ const n = {};
18
+ for (const [s, o] of Object.entries(r)) {
19
+ const t = o.match(/{{(.*?)}}/);
20
+ if (t?.[1]) {
21
+ const c = t[1].trim();
22
+ n[s] = e[c] ?? "";
23
+ } else
24
+ n[s] = o;
25
+ }
26
+ return n;
27
+ }, i = (r, e, n) => {
28
+ const s = e.breadcrumbs ?? {}, t = (s[r] ?? []).map((c) => c.id === r && n ? {
29
+ ...c,
30
+ variables: u(n, e)
31
+ } : c);
32
+ return {
33
+ ...e,
34
+ breadcrumbs: {
35
+ ...s,
36
+ [r]: t
37
+ },
38
+ currentBreadcrumbId: r
39
+ };
40
+ };
41
+ export {
42
+ l as buildBreadcrumbs,
43
+ u as resolveBreadcrumbVariables,
44
+ i as updateBreadcrumbs
45
+ };
46
+ //# sourceMappingURL=breadcrumbHelpers.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"breadcrumbHelpers.js","sources":["../../src/helpers/breadcrumbHelpers.ts"],"sourcesContent":["import type {\n BreadcrumbNode,\n BreadcrumbNodes,\n BreadcrumbTrail,\n FlowBreadcrumb,\n} from '@/components/Common/FlowBreadcrumbs/FlowBreadcrumbsTypes'\n\n/**\n * Builds a complete breadcrumb trail map from a hierarchical node structure.\n *\n * Takes a tree structure of breadcrumb nodes and generates a map where each state\n * has its complete breadcrumb trail from root to that state. This is useful for\n * initializing breadcrumb navigation in state machines or multi-step flows.\n */\nexport const buildBreadcrumbs = (nodes: BreadcrumbNodes): BreadcrumbTrail => {\n const map: Record<string, FlowBreadcrumb[]> = {}\n\n for (const [state, node] of Object.entries(nodes)) {\n const trail: FlowBreadcrumb[] = []\n let current: BreadcrumbNode | null = node\n\n while (current) {\n trail.unshift(current.item)\n const parentKey: string | null = current.parent\n current = parentKey ? (nodes[parentKey] ?? null) : null\n }\n\n map[state] = trail\n }\n\n return map\n}\n\n/**\n * Resolves template variables in breadcrumb labels using values from a context object.\n *\n * Supports Handlebars-style template syntax ({{variableName}}) for dynamic breadcrumb labels.\n * Variables enclosed in double braces are replaced with their corresponding values from the context.\n * Non-template strings are returned as-is.\n */\nexport const resolveBreadcrumbVariables = (\n variables: Record<string, string> | undefined,\n context: Record<string, unknown>,\n): Record<string, unknown> => {\n if (!variables) {\n return {}\n }\n\n const resolved: Record<string, unknown> = {}\n for (const [key, value] of Object.entries(variables)) {\n const match = value.match(/{{(.*?)}}/)\n if (match?.[1]) {\n const ctxKey = match[1].trim()\n resolved[key] = context[ctxKey] ?? ''\n } else {\n resolved[key] = value\n }\n }\n return resolved\n}\n\n/**\n * Updates the breadcrumb trail for a specific state with resolved variables.\n *\n * This function is typically used in state machine transitions to update breadcrumb\n * navigation when moving between states. It preserves all existing breadcrumb trails\n * for other states and only updates the trail for the specified state by resolving\n * any template variables for that state's breadcrumb.\n\n */\nexport const updateBreadcrumbs = <\n T extends { breadcrumbs?: BreadcrumbTrail; currentBreadcrumb?: string },\n>(\n stateName: string,\n context: T,\n variables?: Record<string, string>,\n): Omit<T, 'breadcrumbs' | 'currentBreadcrumb'> & {\n breadcrumbs: BreadcrumbTrail\n currentBreadcrumbId: string\n} => {\n const allBreadcrumbs = context.breadcrumbs ?? {}\n const trail = allBreadcrumbs[stateName] ?? []\n const resolvedTrail = trail.map(breadcrumb => {\n if (breadcrumb.id === stateName && variables) {\n return {\n ...breadcrumb,\n variables: resolveBreadcrumbVariables(variables, context as Record<string, unknown>),\n }\n }\n return breadcrumb\n })\n return {\n ...context,\n breadcrumbs: {\n ...allBreadcrumbs,\n [stateName]: resolvedTrail,\n },\n currentBreadcrumbId: stateName,\n }\n}\n"],"names":["buildBreadcrumbs","nodes","map","state","node","trail","current","parentKey","resolveBreadcrumbVariables","variables","context","resolved","key","value","match","ctxKey","updateBreadcrumbs","stateName","allBreadcrumbs","resolvedTrail","breadcrumb"],"mappings":"AAcO,MAAMA,IAAmB,CAACC,MAA4C;AAC3E,QAAMC,IAAwC,CAAA;AAE9C,aAAW,CAACC,GAAOC,CAAI,KAAK,OAAO,QAAQH,CAAK,GAAG;AACjD,UAAMI,IAA0B,CAAA;AAChC,QAAIC,IAAiCF;AAErC,WAAOE,KAAS;AACd,MAAAD,EAAM,QAAQC,EAAQ,IAAI;AAC1B,YAAMC,IAA2BD,EAAQ;AACzC,MAAAA,IAAUC,IAAaN,EAAMM,CAAS,KAAK,OAAQ;AAAA,IACrD;AAEA,IAAAL,EAAIC,CAAK,IAAIE;AAAA,EACf;AAEA,SAAOH;AACT,GASaM,IAA6B,CACxCC,GACAC,MAC4B;AAC5B,MAAI,CAACD;AACH,WAAO,CAAA;AAGT,QAAME,IAAoC,CAAA;AAC1C,aAAW,CAACC,GAAKC,CAAK,KAAK,OAAO,QAAQJ,CAAS,GAAG;AACpD,UAAMK,IAAQD,EAAM,MAAM,WAAW;AACrC,QAAIC,IAAQ,CAAC,GAAG;AACd,YAAMC,IAASD,EAAM,CAAC,EAAE,KAAA;AACxB,MAAAH,EAASC,CAAG,IAAIF,EAAQK,CAAM,KAAK;AAAA,IACrC;AACE,MAAAJ,EAASC,CAAG,IAAIC;AAAA,EAEpB;AACA,SAAOF;AACT,GAWaK,IAAoB,CAG/BC,GACAP,GACAD,MAIG;AACH,QAAMS,IAAiBR,EAAQ,eAAe,CAAA,GAExCS,KADQD,EAAeD,CAAS,KAAK,CAAA,GACf,IAAI,CAAAG,MAC1BA,EAAW,OAAOH,KAAaR,IAC1B;AAAA,IACL,GAAGW;AAAA,IACH,WAAWZ,EAA2BC,GAAWC,CAAkC;AAAA,EAAA,IAGhFU,CACR;AACD,SAAO;AAAA,IACL,GAAGV;AAAA,IACH,aAAa;AAAA,MACX,GAAGQ;AAAA,MACH,CAACD,CAAS,GAAGE;AAAA,IAAA;AAAA,IAEf,qBAAqBF;AAAA,EAAA;AAEzB;"}
@@ -0,0 +1 @@
1
+ export {};
@@ -5,5 +5,5 @@ export declare const defaultNS = "common";
5
5
  * Hook that allows component to load custom dictionary
6
6
  * @param @private {string} ns - Namespace - should match component name exactly - not exposed to consumers
7
7
  */
8
- export declare const useI18n: (ns: keyof CustomTypeOptions["resources"] | null) => void;
8
+ export declare const useI18n: (namespaces: keyof CustomTypeOptions["resources"] | Array<keyof CustomTypeOptions["resources"]> | null) => void;
9
9
  export declare const useComponentDictionary: <K extends keyof Resources>(ns: keyof CustomTypeOptions["resources"], resource?: ResourceDictionary<K> | null) => void;
package/dist/i18n/I18n.js CHANGED
@@ -1,41 +1,50 @@
1
- import l from "../_virtual/dynamic-import-helper.js";
2
- import { useTranslation as m } from "react-i18next";
3
- import { LRUCache as p } from "../helpers/LRUCache.js";
4
- const P = "common", s = new p(50), y = ({ lng: n = "en", ns: o }) => {
5
- let e = !0, r = !1, t;
1
+ import p from "../_virtual/dynamic-import-helper.js";
2
+ import { useTranslation as a } from "react-i18next";
3
+ import { LRUCache as y } from "../helpers/LRUCache.js";
4
+ const P = "common", m = new y(50), c = ({ lng: e = "en", ns: o }) => {
5
+ let r = !0, n = !1, t;
6
6
  const i = (async () => {
7
7
  try {
8
- t = (await l(/* @__PURE__ */ Object.assign({ "./en/Company.AddBank.json": () => import("./en/Company.AddBank.json.js"), "./en/Company.Addresses.json": () => import("./en/Company.Addresses.json.js"), "./en/Company.AssignSignatory.json": () => import("./en/Company.AssignSignatory.json.js"), "./en/Company.BankAccount.json": () => import("./en/Company.BankAccount.json.js"), "./en/Company.DocumentList.json": () => import("./en/Company.DocumentList.json.js"), "./en/Company.FederalTaxes.json": () => import("./en/Company.FederalTaxes.json.js"), "./en/Company.Industry.json": () => import("./en/Company.Industry.json.js"), "./en/Company.Locations.json": () => import("./en/Company.Locations.json.js"), "./en/Company.OnboardingOverview.json": () => import("./en/Company.OnboardingOverview.json.js"), "./en/Company.PaySchedule.json": () => import("./en/Company.PaySchedule.json.js"), "./en/Company.SignatureForm.json": () => import("./en/Company.SignatureForm.json.js"), "./en/Company.StateTaxes.json": () => import("./en/Company.StateTaxes.json.js"), "./en/Contractor.Address.json": () => import("./en/Contractor.Address.json.js"), "./en/Contractor.ContractorList.json": () => import("./en/Contractor.ContractorList.json.js"), "./en/Contractor.NewHireReport.json": () => import("./en/Contractor.NewHireReport.json.js"), "./en/Contractor.PaymentMethod.json": () => import("./en/Contractor.PaymentMethod.json.js"), "./en/Contractor.Profile.json": () => import("./en/Contractor.Profile.json.js"), "./en/Contractor.Submit.json": () => import("./en/Contractor.Submit.json.js"), "./en/Employee.BankAccount.json": () => import("./en/Employee.BankAccount.json.js"), "./en/Employee.Compensation.json": () => import("./en/Employee.Compensation.json.js"), "./en/Employee.Deductions.json": () => import("./en/Employee.Deductions.json.js"), "./en/Employee.DocumentSigner.json": () => import("./en/Employee.DocumentSigner.json.js"), "./en/Employee.EmployeeList.json": () => import("./en/Employee.EmployeeList.json.js"), "./en/Employee.FederalTaxes.json": () => import("./en/Employee.FederalTaxes.json.js"), "./en/Employee.HomeAddress.json": () => import("./en/Employee.HomeAddress.json.js"), "./en/Employee.Landing.json": () => import("./en/Employee.Landing.json.js"), "./en/Employee.OnboardingSummary.json": () => import("./en/Employee.OnboardingSummary.json.js"), "./en/Employee.PaySchedules.json": () => import("./en/Employee.PaySchedules.json.js"), "./en/Employee.PaymentMethod.json": () => import("./en/Employee.PaymentMethod.json.js"), "./en/Employee.Profile.json": () => import("./en/Employee.Profile.json.js"), "./en/Employee.SplitPaycheck.json": () => import("./en/Employee.SplitPaycheck.json.js"), "./en/Employee.StateTaxes.json": () => import("./en/Employee.StateTaxes.json.js"), "./en/Employee.Taxes.json": () => import("./en/Employee.Taxes.json.js"), "./en/Payroll.PayrollConfiguration.json": () => import("./en/Payroll.PayrollConfiguration.json.js"), "./en/Payroll.PayrollEditEmployee.json": () => import("./en/Payroll.PayrollEditEmployee.json.js"), "./en/Payroll.PayrollHistory.json": () => import("./en/Payroll.PayrollHistory.json.js"), "./en/Payroll.PayrollLanding.json": () => import("./en/Payroll.PayrollLanding.json.js"), "./en/Payroll.PayrollList.json": () => import("./en/Payroll.PayrollList.json.js"), "./en/Payroll.PayrollOverview.json": () => import("./en/Payroll.PayrollOverview.json.js"), "./en/Payroll.PayrollReceipts.json": () => import("./en/Payroll.PayrollReceipts.json.js"), "./en/Payroll.PayrollSchedule.json": () => import("./en/Payroll.PayrollSchedule.json.js"), "./en/Payroll.RunPayroll.json": () => import("./en/Payroll.RunPayroll.json.js"), "./en/PayrollBlocker.json": () => import("./en/PayrollBlocker.json.js"), "./en/common.json": () => import("./en/common.json.js") }), `./${n}/${o}.json`, 3)).default, e = !1;
8
+ t = (await p(/* @__PURE__ */ Object.assign({ "./en/Company.AddBank.json": () => import("./en/Company.AddBank.json.js"), "./en/Company.Addresses.json": () => import("./en/Company.Addresses.json.js"), "./en/Company.AssignSignatory.json": () => import("./en/Company.AssignSignatory.json.js"), "./en/Company.BankAccount.json": () => import("./en/Company.BankAccount.json.js"), "./en/Company.DocumentList.json": () => import("./en/Company.DocumentList.json.js"), "./en/Company.FederalTaxes.json": () => import("./en/Company.FederalTaxes.json.js"), "./en/Company.Industry.json": () => import("./en/Company.Industry.json.js"), "./en/Company.Locations.json": () => import("./en/Company.Locations.json.js"), "./en/Company.OnboardingOverview.json": () => import("./en/Company.OnboardingOverview.json.js"), "./en/Company.PaySchedule.json": () => import("./en/Company.PaySchedule.json.js"), "./en/Company.SignatureForm.json": () => import("./en/Company.SignatureForm.json.js"), "./en/Company.StateTaxes.json": () => import("./en/Company.StateTaxes.json.js"), "./en/Contractor.Address.json": () => import("./en/Contractor.Address.json.js"), "./en/Contractor.ContractorList.json": () => import("./en/Contractor.ContractorList.json.js"), "./en/Contractor.NewHireReport.json": () => import("./en/Contractor.NewHireReport.json.js"), "./en/Contractor.PaymentMethod.json": () => import("./en/Contractor.PaymentMethod.json.js"), "./en/Contractor.Profile.json": () => import("./en/Contractor.Profile.json.js"), "./en/Contractor.Submit.json": () => import("./en/Contractor.Submit.json.js"), "./en/Employee.BankAccount.json": () => import("./en/Employee.BankAccount.json.js"), "./en/Employee.Compensation.json": () => import("./en/Employee.Compensation.json.js"), "./en/Employee.Deductions.json": () => import("./en/Employee.Deductions.json.js"), "./en/Employee.DocumentSigner.json": () => import("./en/Employee.DocumentSigner.json.js"), "./en/Employee.EmployeeList.json": () => import("./en/Employee.EmployeeList.json.js"), "./en/Employee.FederalTaxes.json": () => import("./en/Employee.FederalTaxes.json.js"), "./en/Employee.HomeAddress.json": () => import("./en/Employee.HomeAddress.json.js"), "./en/Employee.Landing.json": () => import("./en/Employee.Landing.json.js"), "./en/Employee.OnboardingSummary.json": () => import("./en/Employee.OnboardingSummary.json.js"), "./en/Employee.PaySchedules.json": () => import("./en/Employee.PaySchedules.json.js"), "./en/Employee.PaymentMethod.json": () => import("./en/Employee.PaymentMethod.json.js"), "./en/Employee.Profile.json": () => import("./en/Employee.Profile.json.js"), "./en/Employee.SplitPaycheck.json": () => import("./en/Employee.SplitPaycheck.json.js"), "./en/Employee.StateTaxes.json": () => import("./en/Employee.StateTaxes.json.js"), "./en/Employee.Taxes.json": () => import("./en/Employee.Taxes.json.js"), "./en/Payroll.PayrollBlocker.json": () => import("./en/Payroll.PayrollBlocker.json.js"), "./en/Payroll.PayrollConfiguration.json": () => import("./en/Payroll.PayrollConfiguration.json.js"), "./en/Payroll.PayrollEditEmployee.json": () => import("./en/Payroll.PayrollEditEmployee.json.js"), "./en/Payroll.PayrollFlow.json": () => import("./en/Payroll.PayrollFlow.json.js"), "./en/Payroll.PayrollHistory.json": () => import("./en/Payroll.PayrollHistory.json.js"), "./en/Payroll.PayrollLanding.json": () => import("./en/Payroll.PayrollLanding.json.js"), "./en/Payroll.PayrollList.json": () => import("./en/Payroll.PayrollList.json.js"), "./en/Payroll.PayrollOverview.json": () => import("./en/Payroll.PayrollOverview.json.js"), "./en/Payroll.PayrollReceipts.json": () => import("./en/Payroll.PayrollReceipts.json.js"), "./en/Payroll.PayrollSchedule.json": () => import("./en/Payroll.PayrollSchedule.json.js"), "./en/common.json": () => import("./en/common.json.js") }), `./${e}/${o}.json`, 3)).default, r = !1;
9
9
  } catch {
10
- r = !0, e = !1;
10
+ n = !0, r = !1;
11
11
  }
12
12
  })();
13
13
  return () => {
14
- if (e)
15
- throw i;
16
14
  if (r)
15
+ throw i;
16
+ if (n)
17
17
  throw new Error(`Error loading translation for component: ${o}`);
18
18
  return t;
19
19
  };
20
- }, C = (n) => {
21
- const { i18n: o } = m();
22
- if (!n) return;
23
- const e = `${o.resolvedLanguage}:${n}`;
24
- s.get(e) === null && s.put(e, y({ lng: o.resolvedLanguage, ns: n }));
25
- const r = s.get(e);
26
- if (r) {
27
- const t = r();
28
- o.addResourceBundle(o.resolvedLanguage ?? "en", n, t, !0, !1);
20
+ }, C = (e) => {
21
+ const { i18n: o } = a();
22
+ if (!e) return;
23
+ const r = Array.isArray(e) ? e : [e];
24
+ for (const n of r) {
25
+ const t = `${o.resolvedLanguage}:${n}`;
26
+ m.get(t) === null && m.put(t, c({ lng: o.resolvedLanguage, ns: n }));
27
+ const s = m.get(t);
28
+ if (s) {
29
+ const i = s();
30
+ o.addResourceBundle(
31
+ o.resolvedLanguage ?? "en",
32
+ n,
33
+ i,
34
+ !0,
35
+ !1
36
+ );
37
+ }
29
38
  }
30
- }, g = (n, o) => {
31
- const { i18n: e } = m();
39
+ }, f = (e, o) => {
40
+ const { i18n: r } = a();
32
41
  if (o)
33
- for (const r in o)
34
- e.addResourceBundle(r, n, o[r], !0, !0);
42
+ for (const n in o)
43
+ r.addResourceBundle(n, e, o[n], !0, !0);
35
44
  };
36
45
  export {
37
46
  P as defaultNS,
38
- g as useComponentDictionary,
47
+ f as useComponentDictionary,
39
48
  C as useI18n
40
49
  };
41
50
  //# sourceMappingURL=I18n.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"I18n.js","sources":["../../src/i18n/I18n.ts"],"sourcesContent":["import { useTranslation } from 'react-i18next'\nimport type { CustomTypeOptions } from 'i18next'\nimport { LRUCache } from '@/helpers/LRUCache'\nimport type { ResourceDictionary, Resources } from '@/types/Helpers'\n\nexport const defaultNS = 'common'\n\n//LRU cache holding requested resources\nconst resourceCache = new LRUCache(50)\n/**\n * Dynamic loading of translation resources - works with Suspence to prevent early access to loadable strings\n * @param lng(string): resource language\n * @param ns(string): Namespace/name of the component/resource\n * @returns Promise<Translation resource>\n */\nconst loadResource = ({ lng = 'en', ns }: { ns: string; lng?: string }) => {\n let isLoading = true\n let isError = false\n let resource: Record<string, string>\n\n const importResources = async () => {\n try {\n const module = await import(`@/i18n/${lng}/${ns}.json`)\n\n resource = module.default\n isLoading = false\n } catch (err) {\n isError = true\n isLoading = false\n }\n }\n const promise = importResources()\n return () => {\n if (isLoading) {\n // eslint-disable-next-line @typescript-eslint/only-throw-error\n throw promise // Throw the promise to indicate Suspense should suspend.\n } else if (isError) {\n throw new Error(`Error loading translation for component: ${ns}`) // Handle error\n } else {\n return resource // Return the resource when loading is complete\n }\n }\n}\n\n/**\n * Hook that allows component to load custom dictionary\n * @param @private {string} ns - Namespace - should match component name exactly - not exposed to consumers\n */\nexport const useI18n = (ns: keyof CustomTypeOptions['resources'] | null) => {\n //Getting our instance of i18n -> supplied by the provider set in GustoApiProvider\n const { i18n: i18nInstance } = useTranslation()\n //Abort when namespace is not provided\n if (!ns) return\n const key = `${i18nInstance.resolvedLanguage}:${ns}`\n //Skip loading default resource if it is already in cache\n if (resourceCache.get(key) === null) {\n //If resource not in cache, initiate loading and add getter to cache\n resourceCache.put(key, loadResource({ lng: i18nInstance.resolvedLanguage, ns: ns }))\n }\n //Get resourceGetter from cache\n const resourceGetter = resourceCache.get(key)\n if (resourceGetter) {\n const resource = resourceGetter()\n i18nInstance.addResourceBundle(i18nInstance.resolvedLanguage ?? 'en', ns, resource, true, false) //Last argument is set to false to prevent override of keys provided by partners on GustoApiProvider level through dictionary prop\n }\n}\n\n//Used by individual components to override their dictionaries with partner provided resources\nexport const useComponentDictionary = <K extends keyof Resources>(\n ns: keyof CustomTypeOptions['resources'],\n resource?: ResourceDictionary<K> | null,\n) => {\n const { i18n: i18nInstance } = useTranslation()\n if (resource) {\n for (const lang in resource) {\n i18nInstance.addResourceBundle(lang, ns, resource[lang], true, true)\n }\n }\n}\n"],"names":["defaultNS","resourceCache","LRUCache","loadResource","lng","ns","isLoading","isError","resource","promise","__variableDynamicImportRuntimeHelper","useI18n","i18nInstance","useTranslation","key","resourceGetter","useComponentDictionary","lang"],"mappings":";;;AAKO,MAAMA,IAAY,UAGnBC,IAAgB,IAAIC,EAAS,EAAE,GAO/BC,IAAe,CAAC,EAAE,KAAAC,IAAM,MAAM,IAAAC,QAAuC;AACzE,MAAIC,IAAY,IACZC,IAAU,IACVC;AAaJ,QAAMC,KAXkB,YAAY;AAClC,QAAI;AAGF,MAAAD,KAFe,MAAME,usHAAA,KAAAN,CAAA,IAAAC,CAAA,SAAA,CAAA,GAEH,SAClBC,IAAY;AAAA,IACd,QAAc;AACZ,MAAAC,IAAU,IACVD,IAAY;AAAA,IACd;AAAA,EACF,GACgB;AAChB,SAAO,MAAM;AACX,QAAIA;AAEF,YAAMG;QACGF;AACT,YAAM,IAAI,MAAM,4CAA4CF,CAAE,EAAE;AAEhE,WAAOG;AAAA,EAEX;AACF,GAMaG,IAAU,CAACN,MAAoD;AAE1E,QAAM,EAAE,MAAMO,EAAA,IAAiBC,EAAA;AAE/B,MAAI,CAACR,EAAI;AACT,QAAMS,IAAM,GAAGF,EAAa,gBAAgB,IAAIP,CAAE;AAElD,EAAIJ,EAAc,IAAIa,CAAG,MAAM,QAE7Bb,EAAc,IAAIa,GAAKX,EAAa,EAAE,KAAKS,EAAa,kBAAkB,IAAAP,EAAA,CAAQ,CAAC;AAGrF,QAAMU,IAAiBd,EAAc,IAAIa,CAAG;AAC5C,MAAIC,GAAgB;AAClB,UAAMP,IAAWO,EAAA;AACjB,IAAAH,EAAa,kBAAkBA,EAAa,oBAAoB,MAAMP,GAAIG,GAAU,IAAM,EAAK;AAAA,EACjG;AACF,GAGaQ,IAAyB,CACpCX,GACAG,MACG;AACH,QAAM,EAAE,MAAMI,EAAA,IAAiBC,EAAA;AAC/B,MAAIL;AACF,eAAWS,KAAQT;AACjB,MAAAI,EAAa,kBAAkBK,GAAMZ,GAAIG,EAASS,CAAI,GAAG,IAAM,EAAI;AAGzE;"}
1
+ {"version":3,"file":"I18n.js","sources":["../../src/i18n/I18n.ts"],"sourcesContent":["import { useTranslation } from 'react-i18next'\nimport type { CustomTypeOptions } from 'i18next'\nimport { LRUCache } from '@/helpers/LRUCache'\nimport type { ResourceDictionary, Resources } from '@/types/Helpers'\n\nexport const defaultNS = 'common'\n\n//LRU cache holding requested resources\nconst resourceCache = new LRUCache(50)\n/**\n * Dynamic loading of translation resources - works with Suspence to prevent early access to loadable strings\n * @param lng(string): resource language\n * @param ns(string): Namespace/name of the component/resource\n * @returns Promise<Translation resource>\n */\nconst loadResource = ({ lng = 'en', ns }: { ns: string; lng?: string }) => {\n let isLoading = true\n let isError = false\n let resource: Record<string, string>\n\n const importResources = async () => {\n try {\n const module = await import(`@/i18n/${lng}/${ns}.json`)\n\n resource = module.default\n isLoading = false\n } catch (err) {\n isError = true\n isLoading = false\n }\n }\n const promise = importResources()\n return () => {\n if (isLoading) {\n // eslint-disable-next-line @typescript-eslint/only-throw-error\n throw promise // Throw the promise to indicate Suspense should suspend.\n } else if (isError) {\n throw new Error(`Error loading translation for component: ${ns}`) // Handle error\n } else {\n return resource // Return the resource when loading is complete\n }\n }\n}\n\n/**\n * Hook that allows component to load custom dictionary\n * @param @private {string} ns - Namespace - should match component name exactly - not exposed to consumers\n */\nexport const useI18n = (\n namespaces:\n | keyof CustomTypeOptions['resources']\n | Array<keyof CustomTypeOptions['resources']>\n | null,\n) => {\n //Getting our instance of i18n -> supplied by the provider set in GustoApiProvider\n const { i18n: i18nInstance } = useTranslation()\n //Abort when namespace is not provided\n if (!namespaces) return\n const nsMap = Array.isArray(namespaces) ? namespaces : [namespaces]\n for (const ns of nsMap) {\n const key = `${i18nInstance.resolvedLanguage}:${ns}`\n //Skip loading default resource if it is already in cache\n if (resourceCache.get(key) === null) {\n //If resource not in cache, initiate loading and add getter to cache\n resourceCache.put(key, loadResource({ lng: i18nInstance.resolvedLanguage, ns: ns }))\n }\n //Get resourceGetter from cache\n const resourceGetter = resourceCache.get(key)\n if (resourceGetter) {\n const resource = resourceGetter()\n i18nInstance.addResourceBundle(\n i18nInstance.resolvedLanguage ?? 'en',\n ns,\n resource,\n true,\n false,\n ) //Last argument is set to false to prevent override of keys provided by partners on GustoApiProvider level through dictionary prop\n }\n }\n}\n\n//Used by individual components to override their dictionaries with partner provided resources\nexport const useComponentDictionary = <K extends keyof Resources>(\n ns: keyof CustomTypeOptions['resources'],\n resource?: ResourceDictionary<K> | null,\n) => {\n const { i18n: i18nInstance } = useTranslation()\n if (resource) {\n for (const lang in resource) {\n i18nInstance.addResourceBundle(lang, ns, resource[lang], true, true)\n }\n }\n}\n"],"names":["defaultNS","resourceCache","LRUCache","loadResource","lng","ns","isLoading","isError","resource","promise","__variableDynamicImportRuntimeHelper","useI18n","namespaces","i18nInstance","useTranslation","nsMap","key","resourceGetter","useComponentDictionary","lang"],"mappings":";;;AAKO,MAAMA,IAAY,UAGnBC,IAAgB,IAAIC,EAAS,EAAE,GAO/BC,IAAe,CAAC,EAAE,KAAAC,IAAM,MAAM,IAAAC,QAAuC;AACzE,MAAIC,IAAY,IACZC,IAAU,IACVC;AAaJ,QAAMC,KAXkB,YAAY;AAClC,QAAI;AAGF,MAAAD,KAFe,MAAME,ytHAAA,KAAAN,CAAA,IAAAC,CAAA,SAAA,CAAA,GAEH,SAClBC,IAAY;AAAA,IACd,QAAc;AACZ,MAAAC,IAAU,IACVD,IAAY;AAAA,IACd;AAAA,EACF,GACgB;AAChB,SAAO,MAAM;AACX,QAAIA;AAEF,YAAMG;QACGF;AACT,YAAM,IAAI,MAAM,4CAA4CF,CAAE,EAAE;AAEhE,WAAOG;AAAA,EAEX;AACF,GAMaG,IAAU,CACrBC,MAIG;AAEH,QAAM,EAAE,MAAMC,EAAA,IAAiBC,EAAA;AAE/B,MAAI,CAACF,EAAY;AACjB,QAAMG,IAAQ,MAAM,QAAQH,CAAU,IAAIA,IAAa,CAACA,CAAU;AAClE,aAAWP,KAAMU,GAAO;AACtB,UAAMC,IAAM,GAAGH,EAAa,gBAAgB,IAAIR,CAAE;AAElD,IAAIJ,EAAc,IAAIe,CAAG,MAAM,QAE7Bf,EAAc,IAAIe,GAAKb,EAAa,EAAE,KAAKU,EAAa,kBAAkB,IAAAR,EAAA,CAAQ,CAAC;AAGrF,UAAMY,IAAiBhB,EAAc,IAAIe,CAAG;AAC5C,QAAIC,GAAgB;AAClB,YAAMT,IAAWS,EAAA;AACjB,MAAAJ,EAAa;AAAA,QACXA,EAAa,oBAAoB;AAAA,QACjCR;AAAA,QACAG;AAAA,QACA;AAAA,QACA;AAAA,MAAA;AAAA,IAEJ;AAAA,EACF;AACF,GAGaU,IAAyB,CACpCb,GACAG,MACG;AACH,QAAM,EAAE,MAAMK,EAAA,IAAiBC,EAAA;AAC/B,MAAIN;AACF,eAAWW,KAAQX;AACjB,MAAAK,EAAa,kBAAkBM,GAAMd,GAAIG,EAASW,CAAI,GAAG,IAAM,EAAI;AAGzE;"}
@@ -1,4 +1,4 @@
1
- const e = 'Pick what frequency you’d like to run payroll. If you need help, you can read more about <how_to_choose_schedule href="https://gusto.com/resources/articles/payroll/best-payroll-schedule-small-business" target="_blank">how to choose a pay schedule.</how_to_choose_schedule>', t = 'Why do we need to ask for this? We need to know when to pay your employees. Some states have <payment_law_doc href="https://www.dol.gov/agencies/whd/state/payday" target="_blank">laws around when you must pay your employees.</payment_law_doc> Please choose pay schedules that are legal for your employees.', a = "+ Add another pay schedule", o = "Save & continue", s = "Continue", n = "Please make sure to verify this information is accurate. If this information isn't correct, it can delay when your team will be paid.", i = { name: "Name", actions: "Actions", active: "Active", inactive: "Inactive", edit: "Edit" }, r = { addPaySchedule: "Add pay schedule", editPaySchedule: "Edit pay schedule", pageTitle: "Set up pay schedule" }, c = { payfrequency: "Pay frequency", frequency: "Frequency", deadline: "Deadline to run payroll", frequencyOptions: "Frequency Options", firstPayDate: "First pay date", firstPayPeriodEndDate: "First pay period end date", firstPayDayOfTheMonth: "First pay day of the month", lastPayDayOfTheMonth: "Last pay day of the month", preview: "Preview", legend: "Legend" }, y = "Loading...", l = { frequencyOptionsDescription: "Select the pay days for the month.", anchorPayDateDescription: "Please account for the 2 days it will take to process payroll.", anchorEndOfPayPeriodDescription: "The last date of the first pay period to help calculate future pay periods. This can be the same date as the first pay date." }, d = { payPeriod: "Pay period", payday: "Payday", payrollDeadline: "Run payroll by 1:00PM (PDT) on " }, h = { cancel: "Cancel", save: "Save" }, p = { everyWeek: "Every week", everyOtherWeek: "Every other week", twicePerMonth: "Twice per month", monthly: "Monthly" }, u = { "15thAndLast": "15th and Last day of the month", custom: "Custom" }, f = { title: "Pay Schedule Preview", description: "Complete all the required fields to see a preview of your pay schedule." }, w = {
1
+ const e = 'Pick what frequency you’d like to run payroll. If you need help, you can read more about <how_to_choose_schedule href="https://gusto.com/resources/articles/payroll/best-payroll-schedule-small-business" target="_blank">how to choose a pay schedule.</how_to_choose_schedule>', t = 'Why do we need to ask for this? We need to know when to pay your employees. Some states have <payment_law_doc href="https://www.dol.gov/agencies/whd/state/payday" target="_blank">laws around when you must pay your employees.</payment_law_doc> Please choose pay schedules that are legal for your employees.', a = "+ Add another pay schedule", o = "Save & continue", s = "Continue", n = "Please make sure to verify this information is accurate. If this information isn't correct, it can delay when your team will be paid.", i = { name: "Name", actions: "Actions", active: "Active", inactive: "Inactive", edit: "Edit" }, r = { addPaySchedule: "Add pay schedule", editPaySchedule: "Edit pay schedule", pageTitle: "Set up pay schedule" }, c = { name: "Name", payfrequency: "Pay frequency", frequency: "Frequency", deadline: "Deadline to run payroll", frequencyOptions: "Frequency Options", firstPayDate: "First pay date", firstPayPeriodEndDate: "First pay period end date", firstPayDayOfTheMonth: "First pay day of the month", lastPayDayOfTheMonth: "Last pay day of the month", preview: "Preview", legend: "Legend" }, y = "Loading...", l = { frequencyOptionsDescription: "Select the pay days for the month.", anchorPayDateDescription: "Please account for the 2 days it will take to process payroll.", anchorEndOfPayPeriodDescription: "The last date of the first pay period to help calculate future pay periods. This can be the same date as the first pay date." }, d = { payPeriod: "Pay period", payday: "Payday", payrollDeadline: "Run payroll by 1:00PM (PDT) on " }, h = { cancel: "Cancel", save: "Save" }, p = { everyWeek: "Every week", everyOtherWeek: "Every other week", twicePerMonth: "Twice per month", monthly: "Monthly" }, u = { "15thAndLast": "15th and Last day of the month", custom: "Custom" }, f = { title: "Pay Schedule Preview", description: "Complete all the required fields to see a preview of your pay schedule." }, m = {
2
2
  listDescription: e,
3
3
  listDescription2: t,
4
4
  addAnotherPayScheduleCta: a,
@@ -20,7 +20,7 @@ export {
20
20
  h as actions,
21
21
  a as addAnotherPayScheduleCta,
22
22
  s as continueCta,
23
- w as default,
23
+ m as default,
24
24
  l as descriptions,
25
25
  p as frequencies,
26
26
  u as frequencyOptions,
@@ -0,0 +1,28 @@
1
+ const e = "Payroll Blockers", t = "Exit", o = "{{count}} issues are preventing you from running payroll", n = "View All Blockers", i = "Payroll blockers", r = "Blocker", a = "The following issues must be resolved before you can run payroll:", s = "Estimated time", l = "Unknown blocker", p = "Please contact support.", d = { geocode_error: { title: "Address Verification Failed", description: "Company or employee address could not be verified.", helpText: "Please ensure all addresses are valid and complete." }, geocode_needed: { title: "Address Verification Missing", description: "Company or employee address verification is missing.", helpText: "Please ensure all addresses are entered correctly." }, missing_signatory: { title: "Signatory Required", description: "A signatory who is authorized to sign documents on behalf of your company is required.", helpText: "Designate an authorized company signatory to continue.", defaultAction: "Set Up Signatory" }, invalid_signatory: { title: "Signatory Verification Failed", description: "Please ensure that the identity verification of the company signatory is successful.", helpText: "The signatory must complete identity verification." }, suspended: { title: "Company Suspended", description: "Company is suspended and cannot run payroll.", helpText: "Contact support if you believe this is an error.", defaultAction: "Contact Support" }, needs_onboarding: { title: "Onboarding Incomplete", description: "Company must complete all onboarding requirements in order to run payroll.", helpText: "Complete all required onboarding steps.", defaultAction: "Complete Onboarding" }, missing_bank_info: { title: "Bank Account Required", description: "Company must have a bank account in order to run payroll.", helpText: "Add and verify a company bank account.", defaultAction: "Add Bank Account" }, missing_bank_verification: { title: "Bank Account Verification Required", description: "Company bank account must be verified in order to run payroll.", helpText: "Complete bank account verification process.", defaultAction: "Verify Account" }, missing_employee_setup: { title: "Employees Required", description: "Company must add employees in order to run payroll.", helpText: "Add at least one employee to continue." }, missing_pay_schedule: { title: "Pay Schedule Required", description: "Company must have a pay schedule in order to run payroll.", helpText: "Set up a pay schedule for your employees." }, pay_schedule_setup_not_complete: { title: "Employee Pay Schedule Missing", description: "Some employees don't have a pay schedule set up yet.", helpText: "Assign all employees to a pay schedule." }, missing_forms: { title: "Forms Require Signature", description: "Company forms must be signed in order to run payroll.", helpText: "Complete and sign all required forms." }, needs_approval: { title: "Pending Approval", description: "Company needs to be approved to run payroll.", helpText: "Your account is under review. Please wait for approval." }, pending_payroll_review: { title: "Payroll Under Review", description: "Payroll is blocked. We are reviewing payroll information in your account.", helpText: "Contact support if you believe this is an error.", defaultAction: "Contact Support" }, contractor_only_company: { title: "Contractor-Only Company", description: "Company is set to contractor_only and cannot run payroll.", helpText: "Update company type and complete additional onboarding." }, eftps_ic_error: { title: "Electronic Federal Tax Payment System Error", description: "We could not make payments to the Electronic Federal Tax Payment System.", helpText: "Please contact support.", defaultAction: "Contact Support" }, wc_pending_approval: { title: "Worker's Compensation Pending Approval", description: "Worker's compensation policy needs to be approved.", helpText: "The worker's compensation process has not been completed and may require more information. Please contact support.", defaultAction: "Contact Support" }, pending_recovery_case: { title: "Recovery Case Pending", description: "Company has an open recovery case that must be resolved in order to unblock payroll.", helpText: "Please contact support.", defaultAction: "Contact Support" }, pending_information_request: { title: "Information Request Pending", description: "Company has an open information request that must be submitted and approved in order to unblock payroll.", helpText: "Please contact support.", defaultAction: "Contact Support" }, missing_addresses: { title: "Company Addresses Missing", description: "Company must add addresses in order to run payroll.", helpText: "Missing company onboarding requirement. Confirm that company addresses have been added.", defaultAction: "Add Addresses" }, missing_federal_tax_setup: { title: "Federal Tax Setup Missing", description: "Company must complete federal tax setup in order to run payroll.", helpText: "Missing company onboarding requirement. Confirm that company federal tax setup has been completed.", defaultAction: "Complete Federal Tax Setup" }, missing_industry_selection: { title: "Industry Selection Missing", description: "Company must complete industry selection in order to run payroll.", helpText: "Missing company onboarding requirement. Confirm that a company industry has been selected.", defaultAction: "Select Industry" }, missing_state_tax_setup: { title: "State Tax Setup Missing", description: "Company must complete state tax setup in order to run payroll.", helpText: "Missing company onboarding requirement. Confirm that the company has completed state tax setup.", defaultAction: "Complete State Tax Setup" } }, c = {
2
+ breadcrumbLabel: e,
3
+ exitFlowCta: t,
4
+ multipleIssuesTitle: o,
5
+ viewAllBlockers: n,
6
+ blockersListTitle: i,
7
+ blockerSectionLabel: r,
8
+ blockersListDescription: a,
9
+ estimatedTime: s,
10
+ defaultBlockerDescription: l,
11
+ defaultBlockerHelpText: p,
12
+ blockers: d
13
+ };
14
+ export {
15
+ r as blockerSectionLabel,
16
+ d as blockers,
17
+ a as blockersListDescription,
18
+ i as blockersListTitle,
19
+ e as breadcrumbLabel,
20
+ c as default,
21
+ l as defaultBlockerDescription,
22
+ p as defaultBlockerHelpText,
23
+ s as estimatedTime,
24
+ t as exitFlowCta,
25
+ o as multipleIssuesTitle,
26
+ n as viewAllBlockers
27
+ };
28
+ //# sourceMappingURL=Payroll.PayrollBlocker.json.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Payroll.PayrollBlocker.json.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;"}
@@ -1,32 +1,36 @@
1
- const e = "Edit Payroll", a = "Regular payroll for <dateWrapper>{{startDate}} - {{endDate}}</dateWrapper>", o = "Calculate payroll", l = "Calculate payroll", s = "Hours and additional earnings", t = "Review and update your employee's hours, reimbursements, and additional earnings below.", n = "Employee compensations", i = { employees: "Employees", hours: "Hours", timeOff: "Time off", additionalEarnings: "Additional earnings", reimbursements: "Reimbursements", totalPay: "Total pay" }, r = "Skipped", p = { edit: "Edit", skip: "Skip employee", unskip: "Unskip employee" }, d = { 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" } }, y = "Preparing payroll...", c = "This may take a minute or two. You can navigate away while this happens.", u = {
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 = {
2
2
  pageTitle: e,
3
3
  description: a,
4
- calculatePayroll: o,
5
- calculatePayrollTitle: l,
6
- hoursAndEarningsTitle: s,
7
- hoursAndEarningsDescription: t,
8
- employeeCompensationsTitle: n,
9
- tableColumns: i,
10
- skippedBadge: r,
11
- editMenu: p,
12
- alerts: d,
13
- loadingTitle: y,
14
- loadingDescription: c
4
+ breadcrumbLabel: o,
5
+ exitFlowCta: l,
6
+ calculatePayroll: t,
7
+ calculatePayrollTitle: s,
8
+ hoursAndEarningsTitle: n,
9
+ hoursAndEarningsDescription: i,
10
+ employeeCompensationsTitle: r,
11
+ tableColumns: p,
12
+ skippedBadge: d,
13
+ editMenu: y,
14
+ alerts: c,
15
+ loadingTitle: u,
16
+ loadingDescription: m
15
17
  };
16
18
  export {
17
- d as alerts,
18
- o as calculatePayroll,
19
- l as calculatePayrollTitle,
20
- u as default,
19
+ c as alerts,
20
+ o as breadcrumbLabel,
21
+ t as calculatePayroll,
22
+ s as calculatePayrollTitle,
23
+ g as default,
21
24
  a as description,
22
- p as editMenu,
23
- n as employeeCompensationsTitle,
24
- t as hoursAndEarningsDescription,
25
- s as hoursAndEarningsTitle,
26
- c as loadingDescription,
27
- y as loadingTitle,
25
+ y as editMenu,
26
+ r as employeeCompensationsTitle,
27
+ l as exitFlowCta,
28
+ i as hoursAndEarningsDescription,
29
+ n as hoursAndEarningsTitle,
30
+ m as loadingDescription,
31
+ u as loadingTitle,
28
32
  e as pageTitle,
29
- r as skippedBadge,
30
- i as tableColumns
33
+ d as skippedBadge,
34
+ p as tableColumns
31
35
  };
32
36
  //# sourceMappingURL=Payroll.PayrollConfiguration.json.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Payroll.PayrollConfiguration.json.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"Payroll.PayrollConfiguration.json.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;"}
@@ -1,40 +1,42 @@
1
- const e = "Edit payroll for {{employeeName}}", t = "Gross pay (excluding reimbursements)", o = "Gross pay: {{grossPay}} (excluding reimbursements)", n = "Regular hours", s = "Hours", i = "Save", a = "Cancel", r = { regularHours: "Regular Hours", overtime: "Overtime", doubleOvertime: "Double overtime" }, m = "Time off", c = { remaining: "{{balance}} remaining" }, l = "Additional earnings", p = "Reimbursement", u = { bonus: "Bonus", paycheckTips: "Paycheck tips", correctionPayment: "Correction payment", commission: "Commission", cashTips: "Cash tips", reimbursement: "Reimbursement" }, y = "Payment", d = "Payment method", h = "Changing the default payment method will only apply to this payroll.", g = { directDeposit: "Direct deposit", check: "Check" }, b = {
1
+ const e = "Edit payroll for {{employeeName}}", t = "{{firstName}} {{lastName}}", o = "Gross pay (excluding reimbursements)", s = "Gross pay: {{grossPay}} (excluding reimbursements)", n = "Regular hours", a = "Hours", i = "Save", r = "Cancel", m = { regularHours: "Regular Hours", overtime: "Overtime", doubleOvertime: "Double overtime" }, c = "Time off", l = { remaining: "{{balance}} remaining" }, p = "Additional earnings", u = "Reimbursement", y = { bonus: "Bonus", paycheckTips: "Paycheck tips", correctionPayment: "Correction payment", commission: "Commission", cashTips: "Cash tips", reimbursement: "Reimbursement" }, d = "Payment", b = "Payment method", h = "Changing the default payment method will only apply to this payroll.", g = { directDeposit: "Direct deposit", check: "Check" }, f = {
2
2
  pageTitle: e,
3
- grossPayLabel: t,
4
- grossPayLabelMobile: o,
3
+ breadcrumbLabel: t,
4
+ grossPayLabel: o,
5
+ grossPayLabelMobile: s,
5
6
  regularHoursTitle: n,
6
- hoursUnit: s,
7
+ hoursUnit: a,
7
8
  saveButton: i,
8
- cancelButton: a,
9
- compensationNames: r,
10
- timeOffTitle: m,
11
- timeOffBalance: c,
12
- additionalEarningsTitle: l,
13
- reimbursementTitle: p,
14
- fixedCompensationNames: u,
15
- paymentMethodTitle: y,
16
- paymentMethodLabel: d,
9
+ cancelButton: r,
10
+ compensationNames: m,
11
+ timeOffTitle: c,
12
+ timeOffBalance: l,
13
+ additionalEarningsTitle: p,
14
+ reimbursementTitle: u,
15
+ fixedCompensationNames: y,
16
+ paymentMethodTitle: d,
17
+ paymentMethodLabel: b,
17
18
  paymentMethodDescription: h,
18
19
  paymentMethodOptions: g
19
20
  };
20
21
  export {
21
- l as additionalEarningsTitle,
22
- a as cancelButton,
23
- r as compensationNames,
24
- b as default,
25
- u as fixedCompensationNames,
26
- t as grossPayLabel,
27
- o as grossPayLabelMobile,
28
- s as hoursUnit,
22
+ p as additionalEarningsTitle,
23
+ t as breadcrumbLabel,
24
+ r as cancelButton,
25
+ m as compensationNames,
26
+ f as default,
27
+ y as fixedCompensationNames,
28
+ o as grossPayLabel,
29
+ s as grossPayLabelMobile,
30
+ a as hoursUnit,
29
31
  e as pageTitle,
30
32
  h as paymentMethodDescription,
31
- d as paymentMethodLabel,
33
+ b as paymentMethodLabel,
32
34
  g as paymentMethodOptions,
33
- y as paymentMethodTitle,
35
+ d as paymentMethodTitle,
34
36
  n as regularHoursTitle,
35
- p as reimbursementTitle,
37
+ u as reimbursementTitle,
36
38
  i as saveButton,
37
- c as timeOffBalance,
38
- m as timeOffTitle
39
+ l as timeOffBalance,
40
+ c as timeOffTitle
39
41
  };
40
42
  //# sourceMappingURL=Payroll.PayrollEditEmployee.json.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Payroll.PayrollEditEmployee.json.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"Payroll.PayrollEditEmployee.json.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;"}
@@ -0,0 +1,8 @@
1
+ const a = "Save and exit", l = {
2
+ exitFlowCta: a
3
+ };
4
+ export {
5
+ l as default,
6
+ a as exitFlowCta
7
+ };
8
+ //# sourceMappingURL=Payroll.PayrollFlow.json.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Payroll.PayrollFlow.json.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;"}
@@ -1,21 +1,21 @@
1
- const e = "Payroll history", o = { placeholder: "Last 3 months", options: { "3months": "3 months", "6months": "6 months", year: "Year" } }, a = { label: "Payroll history" }, t = { payPeriod: "Pay period", type: "Type", payDate: "Pay date", status: "Status", amount: "Amount" }, l = { viewSummary: "View payroll summary", viewReceipt: "View payroll receipt", cancelPayroll: "Cancel payroll" }, n = { title: "No payroll history", description: "When you run payrolls, they'll appear here for easy reference." }, r = { noAmount: "—" }, y = { title: "Cancel {{payPeriod}} payroll?", body: "Cancel this payroll now and run it again later. Any information entered will not be saved.", deadline: "Run this payroll by {{deadline}} to ensure your employees are paid on time.", primaryAction: "Yes, cancel payroll", secondaryAction: "No, go back" }, i = {
1
+ const e = "Payroll history", o = { placeholder: "Last 3 months", options: { "3months": "3 months", "6months": "6 months", year: "Year" } }, a = { label: "Payroll history" }, l = { payPeriod: "Pay period", type: "Type", payDate: "Pay date", status: "Status", totalPayroll: "Total payroll" }, t = { viewSummary: "View payroll summary", viewReceipt: "View payroll receipt", cancelPayroll: "Cancel payroll" }, r = { title: "No payroll history", description: "When you run payrolls, they'll appear here for easy reference." }, n = { noAmount: "—" }, y = { title: "Cancel {{payPeriod}} payroll?", body: "Cancel this payroll now and run it again later. Any information entered will not be saved.", deadline: "Run this payroll by {{deadline}} to ensure your employees are paid on time.", primaryAction: "Yes, cancel payroll", secondaryAction: "No, go back" }, i = {
2
2
  title: e,
3
3
  timeFilter: o,
4
4
  dataView: a,
5
- columns: t,
6
- menu: l,
7
- emptyState: n,
8
- labels: r,
5
+ columns: l,
6
+ menu: t,
7
+ emptyState: r,
8
+ labels: n,
9
9
  cancelDialog: y
10
10
  };
11
11
  export {
12
12
  y as cancelDialog,
13
- t as columns,
13
+ l as columns,
14
14
  a as dataView,
15
15
  i as default,
16
- n as emptyState,
17
- r as labels,
18
- l as menu,
16
+ r as emptyState,
17
+ n as labels,
18
+ t as menu,
19
19
  o as timeFilter,
20
20
  e as title
21
21
  };