@gusto/embedded-react-sdk 0.13.0 → 0.13.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +21 -0
- package/dist/_virtual/_commonjsHelpers.js +7 -0
- package/dist/_virtual/_commonjsHelpers.js.map +1 -0
- package/dist/_virtual/dynamic-import-helper.js +8 -1
- package/dist/_virtual/dynamic-import-helper.js.map +1 -1
- package/dist/_virtual/index.js +8 -0
- package/dist/_virtual/index.js.map +1 -0
- package/dist/assets/icons/close.svg.js +10 -0
- package/dist/assets/icons/close.svg.js.map +1 -0
- package/dist/components/Base/Base.js +6 -7
- package/dist/components/Base/Base.js.map +1 -1
- package/dist/components/Common/DataView/DataCards/DataCards.d.ts +2 -1
- package/dist/components/Common/DataView/DataCards/DataCards.js +29 -24
- package/dist/components/Common/DataView/DataCards/DataCards.js.map +1 -1
- package/dist/components/Common/DataView/DataTable/DataTable.d.ts +2 -1
- package/dist/components/Common/DataView/DataTable/DataTable.js +67 -49
- package/dist/components/Common/DataView/DataTable/DataTable.js.map +1 -1
- package/dist/components/Common/DataView/DataView.d.ts +2 -1
- package/dist/components/Common/DataView/DataView.js +19 -18
- package/dist/components/Common/DataView/DataView.js.map +1 -1
- package/dist/components/Common/DataView/useDataView.d.ts +4 -1
- package/dist/components/Common/DataView/useDataView.js +15 -13
- package/dist/components/Common/DataView/useDataView.js.map +1 -1
- package/dist/components/Common/FieldDescription/FieldDescription.js +7 -14
- package/dist/components/Common/FieldDescription/FieldDescription.js.map +1 -1
- package/dist/components/Common/Fields/hooks/useField.d.ts +4 -1
- package/dist/components/Common/Fields/hooks/useField.js +31 -24
- package/dist/components/Common/Fields/hooks/useField.js.map +1 -1
- package/dist/components/Common/ReorderableList/DropZone.js +5 -5
- package/dist/components/Common/ReorderableList/ReorderableItem.js +8 -8
- package/dist/components/Common/ReorderableList/ReorderableList.js +5 -5
- package/dist/components/Common/SignatureForm/SignatureForm.js +5 -8
- package/dist/components/Common/SignatureForm/SignatureForm.js.map +1 -1
- package/dist/components/Common/SignatureForm/SignatureFormActions.js +10 -13
- package/dist/components/Common/SignatureForm/SignatureFormActions.js.map +1 -1
- package/dist/components/Common/SignatureForm/SignatureFormFields.js +10 -13
- package/dist/components/Common/SignatureForm/SignatureFormFields.js.map +1 -1
- package/dist/components/Common/UI/Alert/Alert.d.ts +1 -1
- package/dist/components/Common/UI/Alert/Alert.js +28 -21
- package/dist/components/Common/UI/Alert/Alert.js.map +1 -1
- package/dist/components/Common/UI/Alert/Alert.module.scss.js +7 -3
- package/dist/components/Common/UI/Alert/Alert.module.scss.js.map +1 -1
- package/dist/components/Common/UI/Alert/AlertTypes.d.ts +10 -0
- package/dist/components/Common/UI/Alert/AlertTypes.js +7 -0
- package/dist/components/Common/UI/Alert/AlertTypes.js.map +1 -0
- package/dist/components/Common/UI/Badge/Badge.js +10 -10
- package/dist/components/Common/UI/Badge/Badge.js.map +1 -1
- package/dist/components/Common/UI/Badge/BadgeTypes.d.ts +6 -0
- package/dist/components/Common/UI/Badge/BadgeTypes.js +7 -0
- package/dist/components/Common/UI/Badge/BadgeTypes.js.map +1 -0
- package/dist/components/Common/UI/Button/Button.d.ts +1 -1
- package/dist/components/Common/UI/Button/Button.js +30 -27
- package/dist/components/Common/UI/Button/Button.js.map +1 -1
- package/dist/components/Common/UI/Button/ButtonIcon.js +6 -6
- package/dist/components/Common/UI/Button/ButtonIcon.js.map +1 -1
- package/dist/components/Common/UI/Button/ButtonTypes.d.ts +17 -0
- package/dist/components/Common/UI/Button/ButtonTypes.js +14 -0
- package/dist/components/Common/UI/Button/ButtonTypes.js.map +1 -0
- package/dist/components/Common/UI/CalendarPreview/CalendarPreview.js +1 -1
- package/dist/components/Common/UI/Checkbox/Checkbox.d.ts +1 -1
- package/dist/components/Common/UI/Checkbox/Checkbox.js +51 -49
- package/dist/components/Common/UI/Checkbox/Checkbox.js.map +1 -1
- package/dist/components/Common/UI/Checkbox/CheckboxTypes.d.ts +7 -0
- package/dist/components/Common/UI/Checkbox/CheckboxTypes.js +8 -0
- package/dist/components/Common/UI/Checkbox/CheckboxTypes.js.map +1 -0
- package/dist/components/Common/UI/CheckboxGroup/CheckboxGroup.d.ts +1 -1
- package/dist/components/Common/UI/CheckboxGroup/CheckboxGroup.js +72 -69
- package/dist/components/Common/UI/CheckboxGroup/CheckboxGroup.js.map +1 -1
- package/dist/components/Common/UI/CheckboxGroup/CheckboxGroupTypes.d.ts +9 -0
- package/dist/components/Common/UI/CheckboxGroup/CheckboxGroupTypes.js +10 -0
- package/dist/components/Common/UI/CheckboxGroup/CheckboxGroupTypes.js.map +1 -0
- package/dist/components/Common/UI/DatePicker/DatePicker.js +1 -1
- package/dist/components/Common/UI/Input/Input.d.ts +1 -1
- package/dist/components/Common/UI/Input/Input.js +38 -27
- package/dist/components/Common/UI/Input/Input.js.map +1 -1
- package/dist/components/Common/UI/Input/InputTypes.d.ts +7 -0
- package/dist/components/Common/UI/Input/InputTypes.js +7 -0
- package/dist/components/Common/UI/Input/InputTypes.js.map +1 -0
- package/dist/components/Common/UI/Menu/Menu.d.ts +1 -1
- package/dist/components/Common/UI/Menu/Menu.js +32 -30
- package/dist/components/Common/UI/Menu/Menu.js.map +1 -1
- package/dist/components/Common/UI/Menu/MenuTypes.d.ts +6 -0
- package/dist/components/Common/UI/Menu/MenuTypes.js +7 -0
- package/dist/components/Common/UI/Menu/MenuTypes.js.map +1 -0
- package/dist/components/Common/UI/Radio/Radio.d.ts +1 -1
- package/dist/components/Common/UI/Radio/Radio.js +50 -48
- package/dist/components/Common/UI/Radio/Radio.js.map +1 -1
- package/dist/components/Common/UI/Radio/RadioTypes.d.ts +7 -0
- package/dist/components/Common/UI/Radio/RadioTypes.js +8 -0
- package/dist/components/Common/UI/Radio/RadioTypes.js.map +1 -0
- package/dist/components/Common/UI/RadioGroup/RadioGroup.d.ts +1 -1
- package/dist/components/Common/UI/RadioGroup/RadioGroup.js +61 -58
- package/dist/components/Common/UI/RadioGroup/RadioGroup.js.map +1 -1
- package/dist/components/Common/UI/RadioGroup/RadioGroupTypes.d.ts +9 -0
- package/dist/components/Common/UI/RadioGroup/RadioGroupTypes.js +10 -0
- package/dist/components/Common/UI/RadioGroup/RadioGroupTypes.js.map +1 -0
- package/dist/components/Common/UI/Switch/Switch.d.ts +1 -1
- package/dist/components/Common/UI/Switch/Switch.js +48 -46
- package/dist/components/Common/UI/Switch/Switch.js.map +1 -1
- package/dist/components/Common/UI/Switch/SwitchTypes.d.ts +7 -0
- package/dist/components/Common/UI/Switch/SwitchTypes.js +8 -0
- package/dist/components/Common/UI/Switch/SwitchTypes.js.map +1 -0
- package/dist/components/Common/UI/Table/Table.d.ts +1 -1
- package/dist/components/Common/UI/Table/Table.js +10 -7
- package/dist/components/Common/UI/Table/Table.js.map +1 -1
- package/dist/components/Common/UI/Table/Table.module.scss.js +1 -1
- package/dist/components/Common/UI/Table/TableTypes.d.ts +4 -0
- package/dist/components/Common/UI/Tabs/Tabs.d.ts +7 -0
- package/dist/components/Common/UI/Tabs/Tabs.js +25 -0
- package/dist/components/Common/UI/Tabs/Tabs.js.map +1 -0
- package/dist/components/Common/UI/Tabs/Tabs.module.scss.js +8 -0
- package/dist/components/Common/UI/Tabs/Tabs.module.scss.js.map +1 -0
- package/dist/components/Common/UI/Tabs/TabsTypes.d.ts +51 -0
- package/dist/components/Common/UI/Tabs/index.d.ts +3 -0
- package/dist/components/Common/UI/Text/Text.d.ts +1 -1
- package/dist/components/Common/UI/Text/Text.js +22 -25
- package/dist/components/Common/UI/Text/Text.js.map +1 -1
- package/dist/components/Common/UI/Text/TextTypes.d.ts +7 -0
- package/dist/components/Common/UI/Text/TextTypes.js +8 -0
- package/dist/components/Common/UI/Text/TextTypes.js.map +1 -0
- package/dist/components/Common/UI/TextInput/TextInput.d.ts +1 -1
- package/dist/components/Common/UI/TextInput/TextInput.js +53 -51
- package/dist/components/Common/UI/TextInput/TextInput.js.map +1 -1
- package/dist/components/Common/UI/TextInput/TextInputTypes.d.ts +9 -0
- package/dist/components/Common/UI/TextInput/TextInputTypes.js +9 -0
- package/dist/components/Common/UI/TextInput/TextInputTypes.js.map +1 -0
- package/dist/components/Common/hooks/useNumberFormatter.js +1 -1
- package/dist/components/Company/AssignSignatory/AssignSignatory.js +6 -8
- package/dist/components/Company/AssignSignatory/AssignSignatory.js.map +1 -1
- package/dist/components/Company/AssignSignatory/AssignSignatorySelection.js +6 -8
- package/dist/components/Company/AssignSignatory/AssignSignatorySelection.js.map +1 -1
- package/dist/components/Company/AssignSignatory/CreateSignatory/Actions.js +8 -10
- package/dist/components/Company/AssignSignatory/CreateSignatory/Actions.js.map +1 -1
- package/dist/components/Company/AssignSignatory/CreateSignatory/CreateSignatory.js +7 -8
- package/dist/components/Company/AssignSignatory/CreateSignatory/CreateSignatory.js.map +1 -1
- package/dist/components/Company/AssignSignatory/CreateSignatory/CreateSignatoryForm.js +13 -14
- package/dist/components/Company/AssignSignatory/CreateSignatory/CreateSignatoryForm.js.map +1 -1
- package/dist/components/Company/AssignSignatory/CreateSignatory/useCreateSignatory.js +7 -5
- package/dist/components/Company/AssignSignatory/CreateSignatory/useCreateSignatory.js.map +1 -1
- package/dist/components/Company/AssignSignatory/InviteSignatory/Actions.js +6 -8
- package/dist/components/Company/AssignSignatory/InviteSignatory/Actions.js.map +1 -1
- package/dist/components/Company/AssignSignatory/InviteSignatory/InviteSignatory.js +9 -10
- package/dist/components/Company/AssignSignatory/InviteSignatory/InviteSignatory.js.map +1 -1
- package/dist/components/Company/AssignSignatory/InviteSignatory/InviteSignatoryForm.js +10 -11
- package/dist/components/Company/AssignSignatory/InviteSignatory/InviteSignatoryForm.js.map +1 -1
- package/dist/components/Company/AssignSignatory/InviteSignatory/useInviteSignatory.js +7 -5
- package/dist/components/Company/AssignSignatory/InviteSignatory/useInviteSignatory.js.map +1 -1
- package/dist/components/Company/AssignSignatory/TitleSelect.js +7 -8
- package/dist/components/Company/AssignSignatory/TitleSelect.js.map +1 -1
- package/dist/components/Company/AssignSignatory/useAssignSignatory.js +9 -7
- package/dist/components/Company/AssignSignatory/useAssignSignatory.js.map +1 -1
- package/dist/components/Company/BankAccount/BankAccount.js +1 -1
- package/dist/components/Company/BankAccount/BankAccountForm/Actions.js +8 -9
- package/dist/components/Company/BankAccount/BankAccountForm/Actions.js.map +1 -1
- package/dist/components/Company/BankAccount/BankAccountForm/BankAccountForm.js +2 -2
- package/dist/components/Company/BankAccount/BankAccountForm/Form.js +9 -11
- package/dist/components/Company/BankAccount/BankAccountForm/Form.js.map +1 -1
- package/dist/components/Company/BankAccount/BankAccountForm/context.js +7 -5
- package/dist/components/Company/BankAccount/BankAccountForm/context.js.map +1 -1
- package/dist/components/Company/BankAccount/BankAccountList/Actions.js +10 -12
- package/dist/components/Company/BankAccount/BankAccountList/Actions.js.map +1 -1
- package/dist/components/Company/BankAccount/BankAccountList/BankAccountList.js +1 -1
- package/dist/components/Company/BankAccount/BankAccountVerify/Actions.js +11 -13
- package/dist/components/Company/BankAccount/BankAccountVerify/Actions.js.map +1 -1
- package/dist/components/Company/BankAccount/BankAccountVerify/BankAccountVerify.js +2 -2
- package/dist/components/Company/BankAccount/BankAccountVerify/Form.js +4 -6
- package/dist/components/Company/BankAccount/BankAccountVerify/Form.js.map +1 -1
- package/dist/components/Company/DocumentSigner/DocumentList/Actions.js +5 -7
- package/dist/components/Company/DocumentSigner/DocumentList/Actions.js.map +1 -1
- package/dist/components/Company/DocumentSigner/DocumentList/DocumentList.js +12 -14
- package/dist/components/Company/DocumentSigner/DocumentList/DocumentList.js.map +1 -1
- package/dist/components/Company/DocumentSigner/DocumentList/useDocumentList.js +7 -5
- package/dist/components/Company/DocumentSigner/DocumentList/useDocumentList.js.map +1 -1
- package/dist/components/Company/DocumentSigner/DocumentSigner.js +1 -1
- package/dist/components/Company/DocumentSigner/SignatureForm/SignatureForm.js +9 -11
- package/dist/components/Company/DocumentSigner/SignatureForm/SignatureForm.js.map +1 -1
- package/dist/components/Company/DocumentSigner/SignatureForm/useSignatureForm.js +7 -5
- package/dist/components/Company/DocumentSigner/SignatureForm/useSignatureForm.js.map +1 -1
- package/dist/components/Company/FederalTaxes/Actions.js +7 -9
- package/dist/components/Company/FederalTaxes/Actions.js.map +1 -1
- package/dist/components/Company/FederalTaxes/FederalTaxes.js +18 -20
- package/dist/components/Company/FederalTaxes/FederalTaxes.js.map +1 -1
- package/dist/components/Company/FederalTaxes/Form.js +4 -6
- package/dist/components/Company/FederalTaxes/Form.js.map +1 -1
- package/dist/components/Company/FederalTaxes/useFederalTaxes.js +10 -8
- package/dist/components/Company/FederalTaxes/useFederalTaxes.js.map +1 -1
- package/dist/components/Company/Industry/Actions.js +5 -7
- package/dist/components/Company/Industry/Actions.js.map +1 -1
- package/dist/components/Company/Industry/Context.js +10 -8
- package/dist/components/Company/Industry/Context.js.map +1 -1
- package/dist/components/Company/Industry/Edit.js +10 -12
- package/dist/components/Company/Industry/Edit.js.map +1 -1
- package/dist/components/Company/Industry/Industry.js +2 -2
- package/dist/components/Company/Locations/LocationForm/Actions.js +6 -8
- package/dist/components/Company/Locations/LocationForm/Actions.js.map +1 -1
- package/dist/components/Company/Locations/LocationForm/Form.js +5 -6
- package/dist/components/Company/Locations/LocationForm/Form.js.map +1 -1
- package/dist/components/Company/Locations/LocationForm/LocationForm.js +14 -16
- package/dist/components/Company/Locations/LocationForm/LocationForm.js.map +1 -1
- package/dist/components/Company/Locations/LocationForm/useLocationForm.js +7 -5
- package/dist/components/Company/Locations/LocationForm/useLocationForm.js.map +1 -1
- package/dist/components/Company/Locations/LocationsList/Actions.js +6 -8
- package/dist/components/Company/Locations/LocationsList/Actions.js.map +1 -1
- package/dist/components/Company/Locations/LocationsList/List.js +2 -4
- package/dist/components/Company/Locations/LocationsList/List.js.map +1 -1
- package/dist/components/Company/Locations/LocationsList/LocationsList.js +13 -15
- package/dist/components/Company/Locations/LocationsList/LocationsList.js.map +1 -1
- package/dist/components/Company/Locations/LocationsList/useLocationsList.js +7 -5
- package/dist/components/Company/Locations/LocationsList/useLocationsList.js.map +1 -1
- package/dist/components/Company/OnboardingOverview/Completed.js +12 -14
- package/dist/components/Company/OnboardingOverview/Completed.js.map +1 -1
- package/dist/components/Company/OnboardingOverview/MissingRequirements.js +6 -8
- package/dist/components/Company/OnboardingOverview/MissingRequirements.js.map +1 -1
- package/dist/components/Company/OnboardingOverview/OnboardingOverview.js +3 -5
- package/dist/components/Company/OnboardingOverview/OnboardingOverview.js.map +1 -1
- package/dist/components/Company/OnboardingOverview/context.js +7 -5
- package/dist/components/Company/OnboardingOverview/context.js.map +1 -1
- package/dist/components/Company/PaySchedule/PaySchedule.js +38 -40
- package/dist/components/Company/PaySchedule/PaySchedule.js.map +1 -1
- package/dist/components/Company/PaySchedule/_parts/Actions.js +10 -12
- package/dist/components/Company/PaySchedule/_parts/Actions.js.map +1 -1
- package/dist/components/Company/PaySchedule/_parts/Edit.js +16 -17
- package/dist/components/Company/PaySchedule/_parts/Edit.js.map +1 -1
- package/dist/components/Company/PaySchedule/_parts/Head.js +6 -8
- package/dist/components/Company/PaySchedule/_parts/Head.js.map +1 -1
- package/dist/components/Company/PaySchedule/_parts/List.js +13 -15
- package/dist/components/Company/PaySchedule/_parts/List.js.map +1 -1
- package/dist/components/Company/PaySchedule/usePaySchedule.js +10 -8
- package/dist/components/Company/PaySchedule/usePaySchedule.js.map +1 -1
- package/dist/components/Company/StateTaxes/StateTaxesForm/Actions.js +5 -7
- package/dist/components/Company/StateTaxes/StateTaxesForm/Actions.js.map +1 -1
- package/dist/components/Company/StateTaxes/StateTaxesForm/StateTaxesForm.js +3 -3
- package/dist/components/Company/StateTaxes/StateTaxesForm/context.js +7 -5
- package/dist/components/Company/StateTaxes/StateTaxesForm/context.js.map +1 -1
- package/dist/components/Company/StateTaxes/StateTaxesList/Actions.js +6 -8
- package/dist/components/Company/StateTaxes/StateTaxesList/Actions.js.map +1 -1
- package/dist/components/Company/StateTaxes/StateTaxesList/List.js +5 -7
- package/dist/components/Company/StateTaxes/StateTaxesList/List.js.map +1 -1
- package/dist/components/Company/StateTaxes/StateTaxesList/StateTaxesList.js +1 -1
- package/dist/components/Company/StateTaxes/StateTaxesList/context.js +7 -5
- package/dist/components/Company/StateTaxes/StateTaxesList/context.js.map +1 -1
- package/dist/components/Contractor/Address/Address.js +8 -10
- package/dist/components/Contractor/Address/Address.js.map +1 -1
- package/dist/components/Contractor/Address/Form.js +3 -4
- package/dist/components/Contractor/Address/Form.js.map +1 -1
- package/dist/components/Contractor/Address/useAddress.js +9 -7
- package/dist/components/Contractor/Address/useAddress.js.map +1 -1
- package/dist/components/Contractor/ContractorList/index.js +25 -26
- package/dist/components/Contractor/ContractorList/index.js.map +1 -1
- package/dist/components/Contractor/ContractorList/useContractorList.js +1 -1
- package/dist/components/Contractor/NewHireReport/NewHireReport.js +16 -17
- package/dist/components/Contractor/NewHireReport/NewHireReport.js.map +1 -1
- package/dist/components/Contractor/PaymentMethod/BankAccountForm.js +5 -7
- package/dist/components/Contractor/PaymentMethod/BankAccountForm.js.map +1 -1
- package/dist/components/Contractor/PaymentMethod/PaymentMethod.js +9 -10
- package/dist/components/Contractor/PaymentMethod/PaymentMethod.js.map +1 -1
- package/dist/components/Contractor/PaymentMethod/PaymentTypeForm.js +2 -3
- package/dist/components/Contractor/PaymentMethod/PaymentTypeForm.js.map +1 -1
- package/dist/components/Contractor/Profile/ContractorProfile.js +1 -1
- package/dist/components/Contractor/Profile/ContractorProfileForm.js +13 -13
- package/dist/components/Contractor/Profile/useContractorProfile.js +38 -35
- package/dist/components/Contractor/Profile/useContractorProfile.js.map +1 -1
- package/dist/components/Contractor/Submit/Submit.js +6 -7
- package/dist/components/Contractor/Submit/Submit.js.map +1 -1
- package/dist/components/Employee/Compensation/Actions.js +5 -6
- package/dist/components/Employee/Compensation/Actions.js.map +1 -1
- package/dist/components/Employee/Compensation/Compensation.js +10 -10
- package/dist/components/Employee/Compensation/Edit.js +14 -15
- package/dist/components/Employee/Compensation/Edit.js.map +1 -1
- package/dist/components/Employee/Compensation/List.js +23 -25
- package/dist/components/Employee/Compensation/List.js.map +1 -1
- package/dist/components/Employee/Deductions/Deductions.js +1 -1
- package/dist/components/Employee/Deductions/DeductionsForm/DeductionsForm.js +14 -15
- package/dist/components/Employee/Deductions/DeductionsForm/DeductionsForm.js.map +1 -1
- package/dist/components/Employee/Deductions/DeductionsList/DeductionsList.js +9 -10
- package/dist/components/Employee/Deductions/DeductionsList/DeductionsList.js.map +1 -1
- package/dist/components/Employee/Deductions/EmptyState/EmptyState.d.ts +6 -0
- package/dist/components/Employee/Deductions/IncludeDeductionsForm/IncludeDeductionsForm.js +11 -12
- package/dist/components/Employee/Deductions/IncludeDeductionsForm/IncludeDeductionsForm.js.map +1 -1
- package/dist/components/Employee/DocumentSigner/DocumentList/Actions.js +6 -8
- package/dist/components/Employee/DocumentSigner/DocumentList/Actions.js.map +1 -1
- package/dist/components/Employee/DocumentSigner/DocumentList/DocumentList.js +10 -12
- package/dist/components/Employee/DocumentSigner/DocumentList/DocumentList.js.map +1 -1
- package/dist/components/Employee/DocumentSigner/DocumentList/List.js +2 -4
- package/dist/components/Employee/DocumentSigner/DocumentList/List.js.map +1 -1
- package/dist/components/Employee/DocumentSigner/DocumentList/useDocumentList.js +7 -5
- package/dist/components/Employee/DocumentSigner/DocumentList/useDocumentList.js.map +1 -1
- package/dist/components/Employee/DocumentSigner/SignatureForm/SignatureForm.js +14 -16
- package/dist/components/Employee/DocumentSigner/SignatureForm/SignatureForm.js.map +1 -1
- package/dist/components/Employee/DocumentSigner/SignatureForm/useSignatureForm.js +7 -5
- package/dist/components/Employee/DocumentSigner/SignatureForm/useSignatureForm.js.map +1 -1
- package/dist/components/Employee/EmployeeList/Actions.js +4 -6
- package/dist/components/Employee/EmployeeList/Actions.js.map +1 -1
- package/dist/components/Employee/EmployeeList/EmployeeList.js +7 -8
- package/dist/components/Employee/EmployeeList/EmployeeList.js.map +1 -1
- package/dist/components/Employee/EmployeeList/Head.js +5 -7
- package/dist/components/Employee/EmployeeList/Head.js.map +1 -1
- package/dist/components/Employee/EmployeeList/List.js +14 -15
- package/dist/components/Employee/EmployeeList/List.js.map +1 -1
- package/dist/components/Employee/EmployeeList/useEmployeeList.js +7 -5
- package/dist/components/Employee/EmployeeList/useEmployeeList.js.map +1 -1
- package/dist/components/Employee/FederalTaxes/Actions.js +6 -8
- package/dist/components/Employee/FederalTaxes/Actions.js.map +1 -1
- package/dist/components/Employee/FederalTaxes/FederalForm.js +11 -13
- package/dist/components/Employee/FederalTaxes/FederalForm.js.map +1 -1
- package/dist/components/Employee/FederalTaxes/FederalTaxes.js +3 -3
- package/dist/components/Employee/FederalTaxes/useFederalTaxes.js +7 -5
- package/dist/components/Employee/FederalTaxes/useFederalTaxes.js.map +1 -1
- package/dist/components/Employee/Landing/Landing.js +14 -15
- package/dist/components/Employee/Landing/Landing.js.map +1 -1
- package/dist/components/Employee/OnboardingSummary/OnboardingSummary.js +9 -9
- package/dist/components/Employee/PaymentMethod/Actions.js +7 -9
- package/dist/components/Employee/PaymentMethod/Actions.js.map +1 -1
- package/dist/components/Employee/PaymentMethod/BankAccountEdit.js +5 -6
- package/dist/components/Employee/PaymentMethod/BankAccountEdit.js.map +1 -1
- package/dist/components/Employee/PaymentMethod/BankAccountsList.js +8 -10
- package/dist/components/Employee/PaymentMethod/BankAccountsList.js.map +1 -1
- package/dist/components/Employee/PaymentMethod/PaymentMethod.js +8 -8
- package/dist/components/Employee/PaymentMethod/PaymentTypeForm.js +2 -3
- package/dist/components/Employee/PaymentMethod/PaymentTypeForm.js.map +1 -1
- package/dist/components/Employee/PaymentMethod/Split.js +11 -12
- package/dist/components/Employee/PaymentMethod/Split.js.map +1 -1
- package/dist/components/Employee/PaymentMethod/usePaymentMethod.js +13 -11
- package/dist/components/Employee/PaymentMethod/usePaymentMethod.js.map +1 -1
- package/dist/components/Employee/Profile/Actions.js +7 -9
- package/dist/components/Employee/Profile/Actions.js.map +1 -1
- package/dist/components/Employee/Profile/AdminPersonalDetails.js +9 -10
- package/dist/components/Employee/Profile/AdminPersonalDetails.js.map +1 -1
- package/dist/components/Employee/Profile/HomeAddress.js +5 -6
- package/dist/components/Employee/Profile/HomeAddress.js.map +1 -1
- package/dist/components/Employee/Profile/PersonalDetailsInputs.js +21 -22
- package/dist/components/Employee/Profile/PersonalDetailsInputs.js.map +1 -1
- package/dist/components/Employee/Profile/Profile.js +13 -13
- package/dist/components/Employee/Profile/useProfile.js +7 -5
- package/dist/components/Employee/Profile/useProfile.js.map +1 -1
- package/dist/components/Employee/StateTaxes/Actions.js +8 -10
- package/dist/components/Employee/StateTaxes/Actions.js.map +1 -1
- package/dist/components/Employee/StateTaxes/StateTaxes.js +3 -3
- package/dist/components/Employee/StateTaxes/useStateTaxes.js +7 -5
- package/dist/components/Employee/StateTaxes/useStateTaxes.js.map +1 -1
- package/dist/components/Employee/Taxes/Actions.js +8 -10
- package/dist/components/Employee/Taxes/Actions.js.map +1 -1
- package/dist/components/Employee/Taxes/FederalForm.js +12 -14
- package/dist/components/Employee/Taxes/FederalForm.js.map +1 -1
- package/dist/components/Employee/Taxes/Taxes.js +5 -5
- package/dist/components/Employee/Taxes/useTaxes.js +7 -5
- package/dist/components/Employee/Taxes/useTaxes.js.map +1 -1
- package/dist/components/Payroll/PayrollConfiguration/PayrollConfiguration.d.ts +3 -1
- package/dist/components/Payroll/PayrollConfiguration/PayrollConfiguration.js +57 -67
- package/dist/components/Payroll/PayrollConfiguration/PayrollConfiguration.js.map +1 -1
- package/dist/components/Payroll/PayrollConfiguration/PayrollConfigurationPresentation.d.ts +3 -1
- package/dist/components/Payroll/PayrollConfiguration/PayrollConfigurationPresentation.js +85 -88
- package/dist/components/Payroll/PayrollConfiguration/PayrollConfigurationPresentation.js.map +1 -1
- package/dist/components/Payroll/PayrollEditEmployee/PayrollEditEmployee.d.ts +5 -2
- package/dist/components/Payroll/PayrollEditEmployee/PayrollEditEmployee.js +67 -13
- package/dist/components/Payroll/PayrollEditEmployee/PayrollEditEmployee.js.map +1 -1
- package/dist/components/Payroll/PayrollEditEmployee/PayrollEditEmployeePresentation.d.ts +18 -2
- package/dist/components/Payroll/PayrollEditEmployee/PayrollEditEmployeePresentation.js +117 -19
- package/dist/components/Payroll/PayrollEditEmployee/PayrollEditEmployeePresentation.js.map +1 -1
- package/dist/components/Payroll/PayrollHistory/PayrollHistoryPresentation.d.ts +18 -0
- package/dist/components/Payroll/PayrollList/PayrollList.js +25 -19
- package/dist/components/Payroll/PayrollList/PayrollList.js.map +1 -1
- package/dist/components/Payroll/PayrollList/PayrollListPresentation.d.ts +5 -1
- package/dist/components/Payroll/PayrollList/PayrollListPresentation.js +67 -33
- package/dist/components/Payroll/PayrollList/PayrollListPresentation.js.map +1 -1
- package/dist/components/Payroll/PayrollList/types.d.ts +1 -0
- package/dist/components/Payroll/PayrollOverview/PayrollOverview.d.ts +3 -2
- package/dist/components/Payroll/PayrollOverview/PayrollOverview.js +50 -26
- package/dist/components/Payroll/PayrollOverview/PayrollOverview.js.map +1 -1
- package/dist/components/Payroll/PayrollOverview/PayrollOverviewPresentation.d.ts +7 -1
- package/dist/components/Payroll/PayrollOverview/PayrollOverviewPresentation.js +269 -49
- package/dist/components/Payroll/PayrollOverview/PayrollOverviewPresentation.js.map +1 -1
- package/dist/components/Payroll/RunPayrollFlow/RunPayroll.d.ts +8 -2
- package/dist/components/Payroll/RunPayrollFlow/RunPayroll.js +78 -22
- package/dist/components/Payroll/RunPayrollFlow/RunPayroll.js.map +1 -1
- package/dist/components/Payroll/RunPayrollFlow/RunPayrollFlow.js +11 -9
- package/dist/components/Payroll/RunPayrollFlow/RunPayrollFlow.js.map +1 -1
- package/dist/components/Payroll/helpers.d.ts +7 -6
- package/dist/components/Payroll/helpers.js +44 -43
- package/dist/components/Payroll/helpers.js.map +1 -1
- package/dist/components/Payroll/usePreparedPayrollData.d.ts +14 -0
- package/dist/components/Payroll/usePreparedPayrollData.js +39 -0
- package/dist/components/Payroll/usePreparedPayrollData.js.map +1 -0
- package/dist/contexts/ApiProvider/ApiProvider.js +4 -4
- package/dist/contexts/ComponentAdapter/adapters/defaultComponentAdapter.js +28 -26
- package/dist/contexts/ComponentAdapter/adapters/defaultComponentAdapter.js.map +1 -1
- package/dist/contexts/ComponentAdapter/createComponentsWithDefaults.d.ts +68 -0
- package/dist/contexts/ComponentAdapter/createComponentsWithDefaults.js +53 -0
- package/dist/contexts/ComponentAdapter/createComponentsWithDefaults.js.map +1 -0
- package/dist/contexts/ComponentAdapter/useComponentContext.d.ts +2 -0
- package/dist/contexts/ComponentAdapter/useComponentContext.js.map +1 -1
- package/dist/contexts/GustoProvider/GustoProvider.js +17 -12
- package/dist/contexts/GustoProvider/GustoProvider.js.map +1 -1
- package/dist/contexts/GustoProvider/GustoProviderCustomUIAdapter.js +8 -10
- package/dist/contexts/GustoProvider/GustoProviderCustomUIAdapter.js.map +1 -1
- package/dist/helpers/applyMissingDefaults.d.ts +5 -0
- package/dist/helpers/applyMissingDefaults.js +10 -0
- package/dist/helpers/applyMissingDefaults.js.map +1 -0
- package/dist/helpers/formattedStrings.js +11 -12
- package/dist/helpers/formattedStrings.js.map +1 -1
- package/dist/i18n/I18n.js +5 -5
- package/dist/i18n/I18n.js.map +1 -1
- package/dist/i18n/en/Employee.Deductions.json.js +68 -60
- package/dist/i18n/en/Employee.Deductions.json.js.map +1 -1
- package/dist/i18n/en/Payroll.PayrollConfiguration.json.js +20 -18
- package/dist/i18n/en/Payroll.PayrollConfiguration.json.js.map +1 -1
- package/dist/i18n/en/Payroll.PayrollEditEmployee.json.js +20 -0
- package/dist/i18n/en/Payroll.PayrollEditEmployee.json.js.map +1 -0
- package/dist/i18n/en/Payroll.PayrollList.json.js +12 -10
- package/dist/i18n/en/Payroll.PayrollList.json.js.map +1 -1
- package/dist/i18n/en/Payroll.PayrollOverview.json.js +26 -0
- package/dist/i18n/en/Payroll.PayrollOverview.json.js.map +1 -0
- package/dist/i18n/en/Payroll.RunPayroll.json.js +8 -0
- package/dist/i18n/en/Payroll.RunPayroll.json.js.map +1 -0
- package/dist/i18n/en/payroll.payrollhistory.json.js +20 -0
- package/dist/i18n/en/payroll.payrollhistory.json.js.map +1 -0
- package/dist/node_modules/@react-dnd/asap/dist/AsapQueue.js +40 -0
- package/dist/node_modules/@react-dnd/asap/dist/AsapQueue.js.map +1 -0
- package/dist/node_modules/@react-dnd/asap/dist/RawTask.js +18 -0
- package/dist/node_modules/@react-dnd/asap/dist/RawTask.js.map +1 -0
- package/dist/node_modules/@react-dnd/asap/dist/TaskFactory.js +17 -0
- package/dist/node_modules/@react-dnd/asap/dist/TaskFactory.js.map +1 -0
- package/dist/node_modules/@react-dnd/asap/dist/asap.js +10 -0
- package/dist/node_modules/@react-dnd/asap/dist/asap.js.map +1 -0
- package/dist/node_modules/@react-dnd/asap/dist/makeRequestCall.js +63 -0
- package/dist/node_modules/@react-dnd/asap/dist/makeRequestCall.js.map +1 -0
- package/dist/node_modules/@react-dnd/invariant/dist/index.js +23 -0
- package/dist/node_modules/@react-dnd/invariant/dist/index.js.map +1 -0
- package/dist/node_modules/@react-dnd/shallowequal/dist/index.js +26 -0
- package/dist/node_modules/@react-dnd/shallowequal/dist/index.js.map +1 -0
- package/dist/node_modules/dnd-core/dist/actions/dragDrop/beginDrag.js +71 -0
- package/dist/node_modules/dnd-core/dist/actions/dragDrop/beginDrag.js.map +1 -0
- package/dist/node_modules/dnd-core/dist/actions/dragDrop/drop.js +55 -0
- package/dist/node_modules/dnd-core/dist/actions/dragDrop/drop.js.map +1 -0
- package/dist/node_modules/dnd-core/dist/actions/dragDrop/endDrag.js +19 -0
- package/dist/node_modules/dnd-core/dist/actions/dragDrop/endDrag.js.map +1 -0
- package/dist/node_modules/dnd-core/dist/actions/dragDrop/hover.js +43 -0
- package/dist/node_modules/dnd-core/dist/actions/dragDrop/hover.js.map +1 -0
- package/dist/node_modules/dnd-core/dist/actions/dragDrop/index.js +18 -0
- package/dist/node_modules/dnd-core/dist/actions/dragDrop/index.js.map +1 -0
- package/dist/node_modules/dnd-core/dist/actions/dragDrop/local/setClientOffset.js +14 -0
- package/dist/node_modules/dnd-core/dist/actions/dragDrop/local/setClientOffset.js.map +1 -0
- package/dist/node_modules/dnd-core/dist/actions/dragDrop/publishDragSource.js +13 -0
- package/dist/node_modules/dnd-core/dist/actions/dragDrop/publishDragSource.js.map +1 -0
- package/dist/node_modules/dnd-core/dist/actions/dragDrop/types.js +10 -0
- package/dist/node_modules/dnd-core/dist/actions/dragDrop/types.js.map +1 -0
- package/dist/node_modules/dnd-core/dist/actions/registry.js +44 -0
- package/dist/node_modules/dnd-core/dist/actions/registry.js.map +1 -0
- package/dist/node_modules/dnd-core/dist/classes/DragDropManagerImpl.js +42 -0
- package/dist/node_modules/dnd-core/dist/classes/DragDropManagerImpl.js.map +1 -0
- package/dist/node_modules/dnd-core/dist/classes/DragDropMonitorImpl.js +116 -0
- package/dist/node_modules/dnd-core/dist/classes/DragDropMonitorImpl.js.map +1 -0
- package/dist/node_modules/dnd-core/dist/classes/HandlerRegistryImpl.js +97 -0
- package/dist/node_modules/dnd-core/dist/classes/HandlerRegistryImpl.js.map +1 -0
- package/dist/node_modules/dnd-core/dist/contracts.js +22 -0
- package/dist/node_modules/dnd-core/dist/contracts.js.map +1 -0
- package/dist/node_modules/dnd-core/dist/createDragDropManager.js +20 -0
- package/dist/node_modules/dnd-core/dist/createDragDropManager.js.map +1 -0
- package/dist/node_modules/dnd-core/dist/interfaces.js +8 -0
- package/dist/node_modules/dnd-core/dist/interfaces.js.map +1 -0
- package/dist/node_modules/dnd-core/dist/reducers/dirtyHandlerIds.js +31 -0
- package/dist/node_modules/dnd-core/dist/reducers/dirtyHandlerIds.js.map +1 -0
- package/dist/node_modules/dnd-core/dist/reducers/dragOffset.js +51 -0
- package/dist/node_modules/dnd-core/dist/reducers/dragOffset.js.map +1 -0
- package/dist/node_modules/dnd-core/dist/reducers/dragOperation.js +79 -0
- package/dist/node_modules/dnd-core/dist/reducers/dragOperation.js.map +1 -0
- package/dist/node_modules/dnd-core/dist/reducers/index.js +43 -0
- package/dist/node_modules/dnd-core/dist/reducers/index.js.map +1 -0
- package/dist/node_modules/dnd-core/dist/reducers/refCount.js +17 -0
- package/dist/node_modules/dnd-core/dist/reducers/refCount.js.map +1 -0
- package/dist/node_modules/dnd-core/dist/reducers/stateId.js +7 -0
- package/dist/node_modules/dnd-core/dist/reducers/stateId.js.map +1 -0
- package/dist/node_modules/dnd-core/dist/utils/coords.js +27 -0
- package/dist/node_modules/dnd-core/dist/utils/coords.js.map +1 -0
- package/dist/node_modules/dnd-core/dist/utils/dirtiness.js +13 -0
- package/dist/node_modules/dnd-core/dist/utils/dirtiness.js.map +1 -0
- package/dist/node_modules/dnd-core/dist/utils/equality.js +18 -0
- package/dist/node_modules/dnd-core/dist/utils/equality.js.map +1 -0
- package/dist/node_modules/dnd-core/dist/utils/getNextUniqueId.js +8 -0
- package/dist/node_modules/dnd-core/dist/utils/getNextUniqueId.js.map +1 -0
- package/dist/node_modules/dnd-core/dist/utils/js_utils.js +37 -0
- package/dist/node_modules/dnd-core/dist/utils/js_utils.js.map +1 -0
- package/dist/node_modules/dnd-core/dist/utils/matchesType.js +9 -0
- package/dist/node_modules/dnd-core/dist/utils/matchesType.js.map +1 -0
- package/dist/node_modules/fast-deep-equal/index.js +32 -0
- package/dist/node_modules/fast-deep-equal/index.js.map +1 -0
- package/dist/node_modules/react-dnd/dist/core/DndContext.js +8 -0
- package/dist/node_modules/react-dnd/dist/core/DndContext.js.map +1 -0
- package/dist/node_modules/react-dnd/dist/core/DndProvider.js +67 -0
- package/dist/node_modules/react-dnd/dist/core/DndProvider.js.map +1 -0
- package/dist/node_modules/react-dnd/dist/hooks/useCollectedProps.js +12 -0
- package/dist/node_modules/react-dnd/dist/hooks/useCollectedProps.js.map +1 -0
- package/dist/node_modules/react-dnd/dist/hooks/useCollector.js +23 -0
- package/dist/node_modules/react-dnd/dist/hooks/useCollector.js.map +1 -0
- package/dist/node_modules/react-dnd/dist/hooks/useDrag/DragSourceImpl.js +26 -0
- package/dist/node_modules/react-dnd/dist/hooks/useDrag/DragSourceImpl.js.map +1 -0
- package/dist/node_modules/react-dnd/dist/hooks/useDrag/connectors.js +22 -0
- package/dist/node_modules/react-dnd/dist/hooks/useDrag/connectors.js.map +1 -0
- package/dist/node_modules/react-dnd/dist/hooks/useDrag/useDrag.js +21 -0
- package/dist/node_modules/react-dnd/dist/hooks/useDrag/useDrag.js.map +1 -0
- package/dist/node_modules/react-dnd/dist/hooks/useDrag/useDragSource.js +20 -0
- package/dist/node_modules/react-dnd/dist/hooks/useDrag/useDragSource.js.map +1 -0
- package/dist/node_modules/react-dnd/dist/hooks/useDrag/useDragSourceConnector.js +23 -0
- package/dist/node_modules/react-dnd/dist/hooks/useDrag/useDragSourceConnector.js.map +1 -0
- package/dist/node_modules/react-dnd/dist/hooks/useDrag/useDragSourceMonitor.js +16 -0
- package/dist/node_modules/react-dnd/dist/hooks/useDrag/useDragSourceMonitor.js.map +1 -0
- package/dist/node_modules/react-dnd/dist/hooks/useDrag/useDragType.js +14 -0
- package/dist/node_modules/react-dnd/dist/hooks/useDrag/useDragType.js.map +1 -0
- package/dist/node_modules/react-dnd/dist/hooks/useDrag/useRegisteredDragSource.js +24 -0
- package/dist/node_modules/react-dnd/dist/hooks/useDrag/useRegisteredDragSource.js.map +1 -0
- package/dist/node_modules/react-dnd/dist/hooks/useDragDropManager.js +11 -0
- package/dist/node_modules/react-dnd/dist/hooks/useDragDropManager.js.map +1 -0
- package/dist/node_modules/react-dnd/dist/hooks/useDrop/DropTargetImpl.js +22 -0
- package/dist/node_modules/react-dnd/dist/hooks/useDrop/DropTargetImpl.js.map +1 -0
- package/dist/node_modules/react-dnd/dist/hooks/useDrop/connectors.js +13 -0
- package/dist/node_modules/react-dnd/dist/hooks/useDrop/connectors.js.map +1 -0
- package/dist/node_modules/react-dnd/dist/hooks/useDrop/useAccept.js +14 -0
- package/dist/node_modules/react-dnd/dist/hooks/useDrop/useAccept.js.map +1 -0
- package/dist/node_modules/react-dnd/dist/hooks/useDrop/useDrop.js +17 -0
- package/dist/node_modules/react-dnd/dist/hooks/useDrop/useDrop.js.map +1 -0
- package/dist/node_modules/react-dnd/dist/hooks/useDrop/useDropTarget.js +19 -0
- package/dist/node_modules/react-dnd/dist/hooks/useDrop/useDropTarget.js.map +1 -0
- package/dist/node_modules/react-dnd/dist/hooks/useDrop/useDropTargetConnector.js +19 -0
- package/dist/node_modules/react-dnd/dist/hooks/useDrop/useDropTargetConnector.js.map +1 -0
- package/dist/node_modules/react-dnd/dist/hooks/useDrop/useDropTargetMonitor.js +16 -0
- package/dist/node_modules/react-dnd/dist/hooks/useDrop/useDropTargetMonitor.js.map +1 -0
- package/dist/node_modules/react-dnd/dist/hooks/useDrop/useRegisteredDropTarget.js +24 -0
- package/dist/node_modules/react-dnd/dist/hooks/useDrop/useRegisteredDropTarget.js.map +1 -0
- package/dist/node_modules/react-dnd/dist/hooks/useIsomorphicLayoutEffect.js +6 -0
- package/dist/node_modules/react-dnd/dist/hooks/useIsomorphicLayoutEffect.js.map +1 -0
- package/dist/node_modules/react-dnd/dist/hooks/useMonitorOutput.js +21 -0
- package/dist/node_modules/react-dnd/dist/hooks/useMonitorOutput.js.map +1 -0
- package/dist/node_modules/react-dnd/dist/hooks/useOptionalFactory.js +11 -0
- package/dist/node_modules/react-dnd/dist/hooks/useOptionalFactory.js.map +1 -0
- package/dist/node_modules/react-dnd/dist/internals/DragSourceMonitorImpl.js +89 -0
- package/dist/node_modules/react-dnd/dist/internals/DragSourceMonitorImpl.js.map +1 -0
- package/dist/node_modules/react-dnd/dist/internals/DropTargetMonitorImpl.js +60 -0
- package/dist/node_modules/react-dnd/dist/internals/DropTargetMonitorImpl.js.map +1 -0
- package/dist/node_modules/react-dnd/dist/internals/SourceConnector.js +88 -0
- package/dist/node_modules/react-dnd/dist/internals/SourceConnector.js.map +1 -0
- package/dist/node_modules/react-dnd/dist/internals/TargetConnector.js +58 -0
- package/dist/node_modules/react-dnd/dist/internals/TargetConnector.js.map +1 -0
- package/dist/node_modules/react-dnd/dist/internals/isRef.js +10 -0
- package/dist/node_modules/react-dnd/dist/internals/isRef.js.map +1 -0
- package/dist/node_modules/react-dnd/dist/internals/registration.js +19 -0
- package/dist/node_modules/react-dnd/dist/internals/registration.js.map +1 -0
- package/dist/node_modules/react-dnd/dist/internals/wrapConnectorHooks.js +47 -0
- package/dist/node_modules/react-dnd/dist/internals/wrapConnectorHooks.js.map +1 -0
- package/dist/node_modules/react-dnd-html5-backend/dist/BrowserDetector.js +11 -0
- package/dist/node_modules/react-dnd-html5-backend/dist/BrowserDetector.js.map +1 -0
- package/dist/node_modules/react-dnd-html5-backend/dist/EnterLeaveCounter.js +23 -0
- package/dist/node_modules/react-dnd-html5-backend/dist/EnterLeaveCounter.js.map +1 -0
- package/dist/node_modules/react-dnd-html5-backend/dist/HTML5BackendImpl.js +275 -0
- package/dist/node_modules/react-dnd-html5-backend/dist/HTML5BackendImpl.js.map +1 -0
- package/dist/node_modules/react-dnd-html5-backend/dist/MonotonicInterpolant.js +60 -0
- package/dist/node_modules/react-dnd-html5-backend/dist/MonotonicInterpolant.js.map +1 -0
- package/dist/node_modules/react-dnd-html5-backend/dist/NativeDragSources/NativeDragSource.js +44 -0
- package/dist/node_modules/react-dnd-html5-backend/dist/NativeDragSources/NativeDragSource.js.map +1 -0
- package/dist/node_modules/react-dnd-html5-backend/dist/NativeDragSources/getDataFromDataTransfer.js +11 -0
- package/dist/node_modules/react-dnd-html5-backend/dist/NativeDragSources/getDataFromDataTransfer.js.map +1 -0
- package/dist/node_modules/react-dnd-html5-backend/dist/NativeDragSources/index.js +25 -0
- package/dist/node_modules/react-dnd-html5-backend/dist/NativeDragSources/index.js.map +1 -0
- package/dist/node_modules/react-dnd-html5-backend/dist/NativeDragSources/nativeTypesConfig.js +49 -0
- package/dist/node_modules/react-dnd-html5-backend/dist/NativeDragSources/nativeTypesConfig.js.map +1 -0
- package/dist/node_modules/react-dnd-html5-backend/dist/NativeTypes.js +8 -0
- package/dist/node_modules/react-dnd-html5-backend/dist/NativeTypes.js.map +1 -0
- package/dist/node_modules/react-dnd-html5-backend/dist/OffsetUtils.js +71 -0
- package/dist/node_modules/react-dnd-html5-backend/dist/OffsetUtils.js.map +1 -0
- package/dist/node_modules/react-dnd-html5-backend/dist/OptionsReader.js +23 -0
- package/dist/node_modules/react-dnd-html5-backend/dist/OptionsReader.js.map +1 -0
- package/dist/node_modules/react-dnd-html5-backend/dist/index.js +8 -0
- package/dist/node_modules/react-dnd-html5-backend/dist/index.js.map +1 -0
- package/dist/node_modules/react-dnd-html5-backend/dist/utils/js_utils.js +23 -0
- package/dist/node_modules/react-dnd-html5-backend/dist/utils/js_utils.js.map +1 -0
- package/dist/node_modules/redux/es/redux.js +159 -0
- package/dist/node_modules/redux/es/redux.js.map +1 -0
- package/dist/shared/constants.d.ts +15 -0
- package/dist/shared/constants.js +49 -34
- package/dist/shared/constants.js.map +1 -1
- package/dist/style.css +1 -1
- package/dist/types/i18next.d.ts +129 -1
- package/package.json +17 -15
|
@@ -1,22 +1,24 @@
|
|
|
1
|
-
import { useMemo as
|
|
2
|
-
const
|
|
1
|
+
import { useMemo as a } from "react";
|
|
2
|
+
const x = ({
|
|
3
3
|
columns: r,
|
|
4
|
-
data:
|
|
5
|
-
itemMenu:
|
|
4
|
+
data: s,
|
|
5
|
+
itemMenu: o,
|
|
6
6
|
onSelect: w,
|
|
7
7
|
pagination: V,
|
|
8
|
-
emptyState:
|
|
9
|
-
|
|
10
|
-
|
|
8
|
+
emptyState: p,
|
|
9
|
+
footer: u,
|
|
10
|
+
isFetching: P
|
|
11
|
+
}) => a(() => ({
|
|
11
12
|
pagination: V,
|
|
12
|
-
data:
|
|
13
|
+
data: s,
|
|
13
14
|
columns: r,
|
|
14
|
-
itemMenu:
|
|
15
|
+
itemMenu: o,
|
|
15
16
|
onSelect: w,
|
|
16
|
-
emptyState:
|
|
17
|
-
|
|
18
|
-
|
|
17
|
+
emptyState: p,
|
|
18
|
+
footer: u,
|
|
19
|
+
isFetching: P
|
|
20
|
+
}), [V, s, r, o, w, p, u, P]);
|
|
19
21
|
export {
|
|
20
|
-
|
|
22
|
+
x as useDataView
|
|
21
23
|
};
|
|
22
24
|
//# sourceMappingURL=useDataView.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useDataView.js","sources":["../../../../src/components/Common/DataView/useDataView.ts"],"sourcesContent":["import { useMemo } from 'react'\nimport type { PaginationControlProps } from '@/components/Common/PaginationControl/PaginationControlTypes'\n\ntype DataViewColumn<T> =\n | {\n key: keyof T\n title: string | React.ReactNode\n render?: (item: T) => React.ReactNode\n }\n | {\n key?: string\n title: string | React.ReactNode\n render: (item: T) => React.ReactNode\n }\n\nexport type useDataViewProp<T> = {\n columns: DataViewColumn<T>[]\n data: T[]\n pagination?: PaginationControlProps\n itemMenu?: (item: T) => React.ReactNode\n onSelect?: (item: T, checked: boolean) => void\n emptyState?: () => React.ReactNode\n isFetching?: boolean\n}\n\nexport type useDataViewPropReturn<T> = {\n pagination?: PaginationControlProps\n data: T[]\n columns: DataViewColumn<T>[]\n itemMenu?: (item: T) => React.ReactNode\n onSelect?: (item: T, checked: boolean) => void\n emptyState?: () => React.ReactNode\n isFetching?: boolean\n}\n\nexport const useDataView = <T>({\n columns,\n data,\n itemMenu,\n onSelect,\n pagination,\n emptyState,\n isFetching,\n}: useDataViewProp<T>): useDataViewPropReturn<T> => {\n const dataViewProps = useMemo(() => {\n return {\n pagination,\n data,\n columns,\n itemMenu,\n onSelect,\n emptyState,\n isFetching,\n }\n }, [pagination, data, columns, itemMenu, onSelect, emptyState, isFetching])\n\n return dataViewProps\n}\n"],"names":["useDataView","columns","data","itemMenu","onSelect","pagination","emptyState","isFetching","useMemo"],"mappings":";
|
|
1
|
+
{"version":3,"file":"useDataView.js","sources":["../../../../src/components/Common/DataView/useDataView.ts"],"sourcesContent":["import { useMemo } from 'react'\nimport type { PaginationControlProps } from '@/components/Common/PaginationControl/PaginationControlTypes'\n\ntype DataViewColumn<T> =\n | {\n key: keyof T\n title: string | React.ReactNode\n render?: (item: T) => React.ReactNode\n }\n | {\n key?: string\n title: string | React.ReactNode\n render: (item: T) => React.ReactNode\n }\n\n// Type for footer object keys - allows data keys and custom string keys\ntype FooterKeys<T> = keyof T | string\n\nexport type useDataViewProp<T> = {\n columns: DataViewColumn<T>[]\n data: T[]\n pagination?: PaginationControlProps\n itemMenu?: (item: T) => React.ReactNode\n onSelect?: (item: T, checked: boolean) => void\n emptyState?: () => React.ReactNode\n footer?: () => Partial<Record<FooterKeys<T>, React.ReactNode>>\n isFetching?: boolean\n}\n\nexport type useDataViewPropReturn<T> = {\n pagination?: PaginationControlProps\n data: T[]\n columns: DataViewColumn<T>[]\n itemMenu?: (item: T) => React.ReactNode\n onSelect?: (item: T, checked: boolean) => void\n emptyState?: () => React.ReactNode\n footer?: () => Partial<Record<FooterKeys<T>, React.ReactNode>>\n isFetching?: boolean\n}\n\nexport const useDataView = <T>({\n columns,\n data,\n itemMenu,\n onSelect,\n pagination,\n emptyState,\n footer,\n isFetching,\n}: useDataViewProp<T>): useDataViewPropReturn<T> => {\n const dataViewProps = useMemo(() => {\n return {\n pagination,\n data,\n columns,\n itemMenu,\n onSelect,\n emptyState,\n footer,\n isFetching,\n }\n }, [pagination, data, columns, itemMenu, onSelect, emptyState, footer, isFetching])\n\n return dataViewProps\n}\n"],"names":["useDataView","columns","data","itemMenu","onSelect","pagination","emptyState","footer","isFetching","useMemo"],"mappings":";AAwCO,MAAMA,IAAc,CAAI;AAAA,EAC7B,SAAAC;AAAA,EACA,MAAAC;AAAA,EACA,UAAAC;AAAA,EACA,UAAAC;AAAA,EACA,YAAAC;AAAA,EACA,YAAAC;AAAA,EACA,QAAAC;AAAA,EACA,YAAAC;AACF,MACwBC,EAAQ,OACrB;AAAA,EACL,YAAAJ;AAAA,EACA,MAAAH;AAAA,EACA,SAAAD;AAAA,EACA,UAAAE;AAAA,EACA,UAAAC;AAAA,EACA,YAAAE;AAAA,EACA,QAAAC;AAAA,EACA,YAAAC;AAAA,IAED,CAACH,GAAYH,GAAMD,GAASE,GAAUC,GAAUE,GAAYC,GAAQC,CAAU,CAAC;"}
|
|
@@ -1,19 +1,12 @@
|
|
|
1
1
|
import { jsx as t } from "react/jsx-runtime";
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
const u = ({
|
|
2
|
+
import m from "classnames";
|
|
3
|
+
import e from "./FieldDescription.module.scss.js";
|
|
4
|
+
const c = ({
|
|
6
5
|
children: o,
|
|
7
|
-
className:
|
|
8
|
-
|
|
9
|
-
}) => {
|
|
10
|
-
const r = {
|
|
11
|
-
className: e(p.root, s),
|
|
12
|
-
id: m
|
|
13
|
-
};
|
|
14
|
-
return o && (typeof o == "string" ? /* @__PURE__ */ t("div", { ...r, dangerouslySetInnerHTML: a(o) }) : /* @__PURE__ */ t("div", { ...r, children: o }));
|
|
15
|
-
};
|
|
6
|
+
className: r,
|
|
7
|
+
...s
|
|
8
|
+
}) => o && /* @__PURE__ */ t("div", { ...s, className: m(e.root, r), children: o });
|
|
16
9
|
export {
|
|
17
|
-
|
|
10
|
+
c as FieldDescription
|
|
18
11
|
};
|
|
19
12
|
//# sourceMappingURL=FieldDescription.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FieldDescription.js","sources":["../../../../src/components/Common/FieldDescription/FieldDescription.tsx"],"sourcesContent":["import classNames from 'classnames'\nimport styles from './FieldDescription.module.scss'\
|
|
1
|
+
{"version":3,"file":"FieldDescription.js","sources":["../../../../src/components/Common/FieldDescription/FieldDescription.tsx"],"sourcesContent":["import classNames from 'classnames'\nimport styles from './FieldDescription.module.scss'\n\ninterface FieldDescriptionProps {\n children: React.ReactNode\n className?: string\n id?: string\n}\n\nexport const FieldDescription: React.FC<FieldDescriptionProps> = ({\n children,\n className,\n ...props\n}: FieldDescriptionProps) => {\n return (\n children && (\n <div {...props} className={classNames(styles.root, className)}>\n {children}\n </div>\n )\n )\n}\n"],"names":["FieldDescription","children","className","props","jsx","classNames","styles"],"mappings":";;;AASO,MAAMA,IAAoD,CAAC;AAAA,EAChE,UAAAC;AAAA,EACA,WAAAC;AAAA,EACA,GAAGC;AACL,MAEIF,KACE,gBAAAG,EAAC,OAAA,EAAK,GAAGD,GAAO,WAAWE,EAAWC,EAAO,MAAMJ,CAAS,GACzD,UAAAD,EAAA,CACH;"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { RegisterOptions } from 'react-hook-form';
|
|
2
|
+
import { default as React } from 'react';
|
|
2
3
|
export type Transform<TValue> = (value: TValue) => TValue;
|
|
3
4
|
export interface UseFieldProps<TValue = string> {
|
|
4
5
|
name: string;
|
|
@@ -8,14 +9,16 @@ export interface UseFieldProps<TValue = string> {
|
|
|
8
9
|
isRequired?: boolean;
|
|
9
10
|
onChange?: (value: TValue) => void;
|
|
10
11
|
transform?: Transform<TValue>;
|
|
12
|
+
description?: React.ReactNode;
|
|
11
13
|
}
|
|
12
|
-
export declare function useField<TValue = string>({ name, rules, defaultValue, errorMessage, isRequired, onChange, transform, }: UseFieldProps<TValue>): {
|
|
14
|
+
export declare function useField<TValue = string>({ name, rules, defaultValue, errorMessage, isRequired, onChange, transform, description, }: UseFieldProps<TValue>): {
|
|
13
15
|
value: TValue;
|
|
14
16
|
inputRef: import('react-hook-form').RefCallBack;
|
|
15
17
|
isInvalid: boolean;
|
|
16
18
|
errorMessage: string | undefined;
|
|
17
19
|
onChange: (updatedValue: TValue) => void;
|
|
18
20
|
isRequired: boolean;
|
|
21
|
+
description: React.ReactNode;
|
|
19
22
|
onBlur: import('react-hook-form').Noop;
|
|
20
23
|
disabled?: boolean;
|
|
21
24
|
name: string;
|
|
@@ -1,36 +1,43 @@
|
|
|
1
|
-
import { useFormContext as h, useController as
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
import { useFormContext as h, useController as M } from "react-hook-form";
|
|
2
|
+
import F, { useMemo as x } from "react";
|
|
3
|
+
import { createMarkup as y } from "../../../../helpers/formattedStrings.js";
|
|
4
|
+
const D = (e) => !e || typeof e != "string" ? e : F.createElement("div", {
|
|
5
|
+
dangerouslySetInnerHTML: y(e)
|
|
6
|
+
});
|
|
7
|
+
function k({
|
|
8
|
+
name: e,
|
|
9
|
+
rules: u = {},
|
|
10
|
+
defaultValue: i,
|
|
11
|
+
errorMessage: f,
|
|
7
12
|
isRequired: o = !1,
|
|
8
|
-
onChange:
|
|
9
|
-
transform:
|
|
13
|
+
onChange: m,
|
|
14
|
+
transform: t,
|
|
15
|
+
description: n
|
|
10
16
|
}) {
|
|
11
|
-
const { control:
|
|
12
|
-
name:
|
|
13
|
-
control:
|
|
17
|
+
const { control: p } = h(), { field: r, fieldState: s } = M({
|
|
18
|
+
name: e,
|
|
19
|
+
control: p,
|
|
14
20
|
rules: {
|
|
15
21
|
required: o,
|
|
16
|
-
...
|
|
22
|
+
...u
|
|
17
23
|
},
|
|
18
|
-
defaultValue:
|
|
19
|
-
}), { ref: g, ...
|
|
20
|
-
const
|
|
21
|
-
|
|
22
|
-
},
|
|
24
|
+
defaultValue: i
|
|
25
|
+
}), { ref: g, ...d } = r, v = (a) => {
|
|
26
|
+
const c = t ? t(a) : a;
|
|
27
|
+
r.onChange(c), m?.(c);
|
|
28
|
+
}, l = !!s.error, C = x(() => D(n), [n]);
|
|
23
29
|
return {
|
|
24
|
-
...
|
|
25
|
-
value:
|
|
30
|
+
...d,
|
|
31
|
+
value: r.value,
|
|
26
32
|
inputRef: g,
|
|
27
|
-
isInvalid:
|
|
28
|
-
errorMessage:
|
|
29
|
-
onChange:
|
|
30
|
-
isRequired: o
|
|
33
|
+
isInvalid: l,
|
|
34
|
+
errorMessage: l ? f ?? s.error?.message : void 0,
|
|
35
|
+
onChange: v,
|
|
36
|
+
isRequired: o,
|
|
37
|
+
description: C
|
|
31
38
|
};
|
|
32
39
|
}
|
|
33
40
|
export {
|
|
34
|
-
|
|
41
|
+
k as useField
|
|
35
42
|
};
|
|
36
43
|
//# sourceMappingURL=useField.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useField.js","sources":["../../../../../src/components/Common/Fields/hooks/useField.ts"],"sourcesContent":["import type { RegisterOptions } from 'react-hook-form'\nimport { useController, useFormContext } from 'react-hook-form'\n\nexport type Transform<TValue> = (value: TValue) => TValue\n\nexport interface UseFieldProps<TValue = string> {\n name: string\n rules?: RegisterOptions\n defaultValue?: TValue\n errorMessage?: string\n isRequired?: boolean\n onChange?: (value: TValue) => void\n transform?: Transform<TValue>\n}\n\nexport function useField<TValue = string>({\n name,\n rules = {},\n defaultValue,\n errorMessage,\n isRequired = false,\n onChange,\n transform,\n}: UseFieldProps<TValue>) {\n const { control } = useFormContext()\n const { field, fieldState } = useController({\n name,\n control,\n rules: {\n required: isRequired,\n ...rules,\n },\n defaultValue,\n })\n\n const { ref, ...restFieldProps } = field\n\n const handleChange = (updatedValue: TValue) => {\n const value = transform ? transform(updatedValue) : updatedValue\n field.onChange(value)\n onChange?.(value)\n }\n\n const isInvalid = !!fieldState.error\n\n return {\n ...restFieldProps,\n value: field.value as TValue,\n inputRef: ref,\n isInvalid,\n errorMessage: isInvalid ? (errorMessage ?? fieldState.error?.message) : undefined,\n onChange: handleChange,\n isRequired,\n }\n}\n"],"names":["useField","name","rules","defaultValue","errorMessage","isRequired","onChange","transform","control","useFormContext","field","fieldState","useController","ref","restFieldProps","handleChange","updatedValue","value","isInvalid"],"mappings":";
|
|
1
|
+
{"version":3,"file":"useField.js","sources":["../../../../../src/components/Common/Fields/hooks/useField.ts"],"sourcesContent":["import type { RegisterOptions } from 'react-hook-form'\nimport { useController, useFormContext } from 'react-hook-form'\nimport React, { useMemo } from 'react'\nimport { createMarkup } from '@/helpers/formattedStrings'\n\nexport type Transform<TValue> = (value: TValue) => TValue\n\nexport interface UseFieldProps<TValue = string> {\n name: string\n rules?: RegisterOptions\n defaultValue?: TValue\n errorMessage?: string\n isRequired?: boolean\n onChange?: (value: TValue) => void\n transform?: Transform<TValue>\n description?: React.ReactNode\n}\n\nconst processDescription = (description: React.ReactNode): React.ReactNode => {\n if (!description || typeof description !== 'string') {\n return description\n }\n\n // Use DOMPurify to sanitize the string and return a React element\n return React.createElement('div', {\n dangerouslySetInnerHTML: createMarkup(description),\n })\n}\n\nexport function useField<TValue = string>({\n name,\n rules = {},\n defaultValue,\n errorMessage,\n isRequired = false,\n onChange,\n transform,\n description,\n}: UseFieldProps<TValue>) {\n const { control } = useFormContext()\n const { field, fieldState } = useController({\n name,\n control,\n rules: {\n required: isRequired,\n ...rules,\n },\n defaultValue,\n })\n\n const { ref, ...restFieldProps } = field\n\n const handleChange = (updatedValue: TValue) => {\n const value = transform ? transform(updatedValue) : updatedValue\n field.onChange(value)\n onChange?.(value)\n }\n\n const isInvalid = !!fieldState.error\n\n const processedDescription = useMemo(() => processDescription(description), [description])\n\n return {\n ...restFieldProps,\n value: field.value as TValue,\n inputRef: ref,\n isInvalid,\n errorMessage: isInvalid ? (errorMessage ?? fieldState.error?.message) : undefined,\n onChange: handleChange,\n isRequired,\n description: processedDescription,\n }\n}\n"],"names":["processDescription","description","React","createMarkup","useField","name","rules","defaultValue","errorMessage","isRequired","onChange","transform","control","useFormContext","field","fieldState","useController","ref","restFieldProps","handleChange","updatedValue","value","isInvalid","processedDescription","useMemo"],"mappings":";;;AAkBA,MAAMA,IAAqB,CAACC,MACtB,CAACA,KAAe,OAAOA,KAAgB,WAClCA,IAIFC,EAAM,cAAc,OAAO;AAAA,EAChC,yBAAyBC,EAAaF,CAAW;AAAA,CAClD;AAGI,SAASG,EAA0B;AAAA,EACxC,MAAAC;AAAA,EACA,OAAAC,IAAQ,CAAA;AAAA,EACR,cAAAC;AAAA,EACA,cAAAC;AAAA,EACA,YAAAC,IAAa;AAAA,EACb,UAAAC;AAAA,EACA,WAAAC;AAAA,EACA,aAAAV;AACF,GAA0B;AACxB,QAAM,EAAE,SAAAW,EAAA,IAAYC,EAAA,GACd,EAAE,OAAAC,GAAO,YAAAC,EAAA,IAAeC,EAAc;AAAA,IAC1C,MAAAX;AAAA,IACA,SAAAO;AAAA,IACA,OAAO;AAAA,MACL,UAAUH;AAAA,MACV,GAAGH;AAAA,IAAA;AAAA,IAEL,cAAAC;AAAA,EAAA,CACD,GAEK,EAAE,KAAAU,GAAK,GAAGC,EAAA,IAAmBJ,GAE7BK,IAAe,CAACC,MAAyB;AAC7C,UAAMC,IAAQV,IAAYA,EAAUS,CAAY,IAAIA;AACpD,IAAAN,EAAM,SAASO,CAAK,GACpBX,IAAWW,CAAK;AAAA,EAClB,GAEMC,IAAY,CAAC,CAACP,EAAW,OAEzBQ,IAAuBC,EAAQ,MAAMxB,EAAmBC,CAAW,GAAG,CAACA,CAAW,CAAC;AAEzF,SAAO;AAAA,IACL,GAAGiB;AAAA,IACH,OAAOJ,EAAM;AAAA,IACb,UAAUG;AAAA,IACV,WAAAK;AAAA,IACA,cAAcA,IAAad,KAAgBO,EAAW,OAAO,UAAW;AAAA,IACxE,UAAUI;AAAA,IACV,YAAAV;AAAA,IACA,aAAac;AAAA,EAAA;AAEjB;"}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { jsx as p } from "react/jsx-runtime";
|
|
2
2
|
import { memo as H, useRef as l, useEffect as T } from "react";
|
|
3
3
|
import b from "classnames";
|
|
4
|
-
import {
|
|
5
|
-
import { useTranslation as E } from "react-i18next";
|
|
4
|
+
import { useTranslation as C } from "react-i18next";
|
|
6
5
|
import i from "./ReorderableList.module.scss.js";
|
|
7
|
-
import { ITEM_TYPE as
|
|
6
|
+
import { ITEM_TYPE as E } from "./constants.js";
|
|
7
|
+
import { useDrop as N } from "../../../node_modules/react-dnd/dist/hooks/useDrop/useDrop.js";
|
|
8
8
|
const Y = H(function({
|
|
9
9
|
position: n,
|
|
10
10
|
isActive: o,
|
|
@@ -14,9 +14,9 @@ const Y = H(function({
|
|
|
14
14
|
listId: t,
|
|
15
15
|
className: h
|
|
16
16
|
}) {
|
|
17
|
-
const s = l(null), { t: g } =
|
|
17
|
+
const s = l(null), { t: g } = C(), e = l(null), f = l(!1), [{ isOver: c }, m] = N(
|
|
18
18
|
() => ({
|
|
19
|
-
accept:
|
|
19
|
+
accept: E,
|
|
20
20
|
hover: (r, x) => {
|
|
21
21
|
r.listId !== t || !x.getClientOffset() || !s.current || f.current || (f.current = !0, e.current && clearTimeout(e.current), a());
|
|
22
22
|
},
|
|
@@ -2,11 +2,11 @@ import { jsxs as K, jsx as o } from "react/jsx-runtime";
|
|
|
2
2
|
import { memo as z, useRef as h, useEffect as N, useCallback as F } from "react";
|
|
3
3
|
import H from "classnames";
|
|
4
4
|
import { useTranslation as M } from "react-i18next";
|
|
5
|
-
import { useDrag as U } from "react-dnd";
|
|
6
5
|
import s from "./ReorderableList.module.scss.js";
|
|
7
|
-
import { ITEM_TYPE as
|
|
8
|
-
import
|
|
9
|
-
import { useComponentContext as
|
|
6
|
+
import { ITEM_TYPE as U } from "./constants.js";
|
|
7
|
+
import V from "../../../assets/icons/list.svg.js";
|
|
8
|
+
import { useComponentContext as Y } from "../../../contexts/ComponentAdapter/useComponentContext.js";
|
|
9
|
+
import { useDrag as _ } from "../../../node_modules/react-dnd/dist/hooks/useDrag/useDrag.js";
|
|
10
10
|
import { VisuallyHidden as $ } from "../VisuallyHidden/VisuallyHidden.js";
|
|
11
11
|
const I = z(function({
|
|
12
12
|
item: m,
|
|
@@ -24,13 +24,13 @@ const I = z(function({
|
|
|
24
24
|
renderDragHandle: T,
|
|
25
25
|
className: S
|
|
26
26
|
}) {
|
|
27
|
-
const g = h(null), l = h(null), { t: f } = M("common"), B =
|
|
27
|
+
const g = h(null), l = h(null), { t: f } = M("common"), B = Y(), n = m.label, k = h(!1);
|
|
28
28
|
N(() => {
|
|
29
29
|
y && l.current && l.current.focus();
|
|
30
30
|
}, [y]);
|
|
31
|
-
const [{ isDragging: b }, P, E] =
|
|
31
|
+
const [{ isDragging: b }, P, E] = _(
|
|
32
32
|
() => ({
|
|
33
|
-
type:
|
|
33
|
+
type: U,
|
|
34
34
|
item: () => (k.current = !0, d(!0), { index: a, listId: p }),
|
|
35
35
|
collect: (r) => ({
|
|
36
36
|
isDragging: r.isDragging()
|
|
@@ -125,7 +125,7 @@ const I = z(function({
|
|
|
125
125
|
buttonRef: (r) => {
|
|
126
126
|
r && (l.current = r, P(r));
|
|
127
127
|
},
|
|
128
|
-
children: /* @__PURE__ */ o(
|
|
128
|
+
children: /* @__PURE__ */ o(V, {})
|
|
129
129
|
}
|
|
130
130
|
) }),
|
|
131
131
|
/* @__PURE__ */ o("div", { className: s.contentContainer, children: m.content })
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { jsx as s, jsxs as M } from "react/jsx-runtime";
|
|
2
2
|
import { useRef as $, useState as p, useMemo as U, useEffect as G, useCallback as R } from "react";
|
|
3
3
|
import T from "classnames";
|
|
4
|
-
import {
|
|
5
|
-
import { HTML5Backend as J } from "react-dnd-html5-backend";
|
|
4
|
+
import { HTML5Backend as z } from "../../../node_modules/react-dnd-html5-backend/dist/index.js";
|
|
6
5
|
import g from "./ReorderableList.module.scss.js";
|
|
7
|
-
import { ReorderableItem as
|
|
6
|
+
import { ReorderableItem as J } from "./ReorderableItem.js";
|
|
8
7
|
import { DropZone as O } from "./DropZone.js";
|
|
8
|
+
import { DndProvider as K } from "../../../node_modules/react-dnd/dist/core/DndProvider.js";
|
|
9
9
|
function Q(t = "reorderable-list") {
|
|
10
10
|
return `${t}-${Math.random().toString(36).slice(2, 9)}`;
|
|
11
11
|
}
|
|
@@ -106,7 +106,7 @@ function ce({
|
|
|
106
106
|
) : null;
|
|
107
107
|
})
|
|
108
108
|
}
|
|
109
|
-
) : /* @__PURE__ */ s(
|
|
109
|
+
) : /* @__PURE__ */ s(K, { backend: z, children: /* @__PURE__ */ M(
|
|
110
110
|
"div",
|
|
111
111
|
{
|
|
112
112
|
role: "list",
|
|
@@ -143,7 +143,7 @@ function ce({
|
|
|
143
143
|
const l = t[r];
|
|
144
144
|
return l ? /* @__PURE__ */ M("div", { children: [
|
|
145
145
|
/* @__PURE__ */ s(
|
|
146
|
-
|
|
146
|
+
J,
|
|
147
147
|
{
|
|
148
148
|
item: l,
|
|
149
149
|
index: e,
|
|
@@ -1,29 +1,26 @@
|
|
|
1
1
|
import { jsx as r } from "react/jsx-runtime";
|
|
2
2
|
import { z as o } from "zod";
|
|
3
3
|
import { useForm as s, FormProvider as a } from "react-hook-form";
|
|
4
|
-
import { zodResolver as l } from "
|
|
4
|
+
import { zodResolver as l } from "@hookform/resolvers/zod";
|
|
5
5
|
import t from "./SignatureForm.module.scss.js";
|
|
6
6
|
import { Form as u } from "../Form/Form.js";
|
|
7
7
|
import { Flex as c } from "../Flex/Flex.js";
|
|
8
|
-
import "classnames";
|
|
9
|
-
import "../../../shared/constants.js";
|
|
10
|
-
import "react-i18next";
|
|
11
8
|
const f = o.object({
|
|
12
9
|
signature: o.string().min(1),
|
|
13
10
|
confirmSignature: o.literal(!0)
|
|
14
|
-
}),
|
|
11
|
+
}), d = {
|
|
15
12
|
signature: ""
|
|
16
13
|
};
|
|
17
|
-
function
|
|
14
|
+
function b({ onSubmit: m, children: i, formProps: n }) {
|
|
18
15
|
const e = s({
|
|
19
16
|
resolver: l(f),
|
|
20
|
-
defaultValues:
|
|
17
|
+
defaultValues: d,
|
|
21
18
|
...n
|
|
22
19
|
});
|
|
23
20
|
return /* @__PURE__ */ r(a, { ...e, children: /* @__PURE__ */ r(u, { onSubmit: e.handleSubmit(m), className: t.container, children: /* @__PURE__ */ r("div", { className: t.formFields, children: /* @__PURE__ */ r(c, { flexDirection: "column", gap: 20, children: i }) }) }) });
|
|
24
21
|
}
|
|
25
22
|
export {
|
|
26
|
-
|
|
23
|
+
b as SignatureForm,
|
|
27
24
|
f as SignatureFormSchema
|
|
28
25
|
};
|
|
29
26
|
//# sourceMappingURL=SignatureForm.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SignatureForm.js","sources":["../../../../src/components/Common/SignatureForm/SignatureForm.tsx"],"sourcesContent":["import { z } from 'zod'\nimport { FormProvider, useForm, type UseFormProps } from 'react-hook-form'\nimport { zodResolver } from '@hookform/resolvers/zod'\nimport styles from './SignatureForm.module.scss'\nimport { Form } from '@/components/Common/Form'\nimport { Flex } from '@/components/Common'\n\nexport const SignatureFormSchema = z.object({\n signature: z.string().min(1),\n confirmSignature: z.literal(true),\n})\n\nconst signatureFormDefaultValues = {\n signature: '',\n}\n\nexport type SignatureFormInputs = z.infer<typeof SignatureFormSchema>\n\ninterface SignatureFormProps {\n onSubmit: (data: SignatureFormInputs) => void | Promise<void>\n children?: React.ReactNode\n formProps?: Partial<UseFormProps<SignatureFormInputs>>\n}\n\nexport function SignatureForm({ onSubmit, children, formProps }: SignatureFormProps) {\n const methods = useForm<SignatureFormInputs>({\n resolver: zodResolver(SignatureFormSchema),\n defaultValues: signatureFormDefaultValues,\n ...formProps,\n })\n\n return (\n <FormProvider {...methods}>\n <Form onSubmit={methods.handleSubmit(onSubmit)} className={styles.container}>\n <div className={styles.formFields}>\n <Flex flexDirection=\"column\" gap={20}>\n {children}\n </Flex>\n </div>\n </Form>\n </FormProvider>\n )\n}\n"],"names":["SignatureFormSchema","z","signatureFormDefaultValues","SignatureForm","onSubmit","children","formProps","methods","useForm","zodResolver","jsx","FormProvider","Form","styles","Flex"],"mappings":"
|
|
1
|
+
{"version":3,"file":"SignatureForm.js","sources":["../../../../src/components/Common/SignatureForm/SignatureForm.tsx"],"sourcesContent":["import { z } from 'zod'\nimport { FormProvider, useForm, type UseFormProps } from 'react-hook-form'\nimport { zodResolver } from '@hookform/resolvers/zod'\nimport styles from './SignatureForm.module.scss'\nimport { Form } from '@/components/Common/Form'\nimport { Flex } from '@/components/Common'\n\nexport const SignatureFormSchema = z.object({\n signature: z.string().min(1),\n confirmSignature: z.literal(true),\n})\n\nconst signatureFormDefaultValues = {\n signature: '',\n}\n\nexport type SignatureFormInputs = z.infer<typeof SignatureFormSchema>\n\ninterface SignatureFormProps {\n onSubmit: (data: SignatureFormInputs) => void | Promise<void>\n children?: React.ReactNode\n formProps?: Partial<UseFormProps<SignatureFormInputs>>\n}\n\nexport function SignatureForm({ onSubmit, children, formProps }: SignatureFormProps) {\n const methods = useForm<SignatureFormInputs>({\n resolver: zodResolver(SignatureFormSchema),\n defaultValues: signatureFormDefaultValues,\n ...formProps,\n })\n\n return (\n <FormProvider {...methods}>\n <Form onSubmit={methods.handleSubmit(onSubmit)} className={styles.container}>\n <div className={styles.formFields}>\n <Flex flexDirection=\"column\" gap={20}>\n {children}\n </Flex>\n </div>\n </Form>\n </FormProvider>\n )\n}\n"],"names":["SignatureFormSchema","z","signatureFormDefaultValues","SignatureForm","onSubmit","children","formProps","methods","useForm","zodResolver","jsx","FormProvider","Form","styles","Flex"],"mappings":";;;;;;;AAOO,MAAMA,IAAsBC,EAAE,OAAO;AAAA,EAC1C,WAAWA,EAAE,SAAS,IAAI,CAAC;AAAA,EAC3B,kBAAkBA,EAAE,QAAQ,EAAI;AAClC,CAAC,GAEKC,IAA6B;AAAA,EACjC,WAAW;AACb;AAUO,SAASC,EAAc,EAAE,UAAAC,GAAU,UAAAC,GAAU,WAAAC,KAAiC;AACnF,QAAMC,IAAUC,EAA6B;AAAA,IAC3C,UAAUC,EAAYT,CAAmB;AAAA,IACzC,eAAeE;AAAA,IACf,GAAGI;AAAA,EAAA,CACJ;AAED,SACE,gBAAAI,EAACC,GAAA,EAAc,GAAGJ,GAChB,UAAA,gBAAAG,EAACE,GAAA,EAAK,UAAUL,EAAQ,aAAaH,CAAQ,GAAG,WAAWS,EAAO,WAChE,UAAA,gBAAAH,EAAC,OAAA,EAAI,WAAWG,EAAO,YACrB,UAAA,gBAAAH,EAACI,GAAA,EAAK,eAAc,UAAS,KAAK,IAC/B,UAAAT,EAAA,CACH,EAAA,CACF,EAAA,CACF,GACF;AAEJ;"}
|
|
@@ -1,22 +1,19 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import "
|
|
3
|
-
import "../../../
|
|
4
|
-
|
|
5
|
-
import { ActionsLayout as p } from "../ActionsLayout/ActionsLayout.js";
|
|
6
|
-
import { useComponentContext as s } from "../../../contexts/ComponentAdapter/useComponentContext.js";
|
|
7
|
-
function x({
|
|
1
|
+
import { jsxs as s, jsx as n } from "react/jsx-runtime";
|
|
2
|
+
import { ActionsLayout as m } from "../ActionsLayout/ActionsLayout.js";
|
|
3
|
+
import { useComponentContext as u } from "../../../contexts/ComponentAdapter/useComponentContext.js";
|
|
4
|
+
function f({
|
|
8
5
|
onBack: t,
|
|
9
6
|
backLabel: r,
|
|
10
|
-
submitLabel:
|
|
11
|
-
isLoading:
|
|
7
|
+
submitLabel: e,
|
|
8
|
+
isLoading: i = !1
|
|
12
9
|
}) {
|
|
13
|
-
const o =
|
|
14
|
-
return /* @__PURE__ */ m
|
|
10
|
+
const o = u();
|
|
11
|
+
return /* @__PURE__ */ s(m, { children: [
|
|
15
12
|
t && /* @__PURE__ */ n(o.Button, { variant: "secondary", type: "button", onClick: t, children: r }),
|
|
16
|
-
/* @__PURE__ */ n(o.Button, { type: "submit", isLoading:
|
|
13
|
+
/* @__PURE__ */ n(o.Button, { type: "submit", isLoading: i, children: e })
|
|
17
14
|
] });
|
|
18
15
|
}
|
|
19
16
|
export {
|
|
20
|
-
|
|
17
|
+
f as SignatureFormActions
|
|
21
18
|
};
|
|
22
19
|
//# sourceMappingURL=SignatureFormActions.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SignatureFormActions.js","sources":["../../../../src/components/Common/SignatureForm/SignatureFormActions.tsx"],"sourcesContent":["import { ActionsLayout } from '@/components/Common'\nimport { useComponentContext } from '@/contexts/ComponentAdapter/useComponentContext'\n\ninterface SignatureFormActionsProps {\n onBack?: () => void\n backLabel: string\n submitLabel: string\n isLoading?: boolean\n}\n\nexport function SignatureFormActions({\n onBack,\n backLabel,\n submitLabel,\n isLoading = false,\n}: SignatureFormActionsProps) {\n const Components = useComponentContext()\n\n return (\n <ActionsLayout>\n {onBack && (\n <Components.Button variant=\"secondary\" type=\"button\" onClick={onBack}>\n {backLabel}\n </Components.Button>\n )}\n <Components.Button type=\"submit\" isLoading={isLoading}>\n {submitLabel}\n </Components.Button>\n </ActionsLayout>\n )\n}\n"],"names":["SignatureFormActions","onBack","backLabel","submitLabel","isLoading","Components","useComponentContext","ActionsLayout","jsx"],"mappings":"
|
|
1
|
+
{"version":3,"file":"SignatureFormActions.js","sources":["../../../../src/components/Common/SignatureForm/SignatureFormActions.tsx"],"sourcesContent":["import { ActionsLayout } from '@/components/Common'\nimport { useComponentContext } from '@/contexts/ComponentAdapter/useComponentContext'\n\ninterface SignatureFormActionsProps {\n onBack?: () => void\n backLabel: string\n submitLabel: string\n isLoading?: boolean\n}\n\nexport function SignatureFormActions({\n onBack,\n backLabel,\n submitLabel,\n isLoading = false,\n}: SignatureFormActionsProps) {\n const Components = useComponentContext()\n\n return (\n <ActionsLayout>\n {onBack && (\n <Components.Button variant=\"secondary\" type=\"button\" onClick={onBack}>\n {backLabel}\n </Components.Button>\n )}\n <Components.Button type=\"submit\" isLoading={isLoading}>\n {submitLabel}\n </Components.Button>\n </ActionsLayout>\n )\n}\n"],"names":["SignatureFormActions","onBack","backLabel","submitLabel","isLoading","Components","useComponentContext","ActionsLayout","jsx"],"mappings":";;;AAUO,SAASA,EAAqB;AAAA,EACnC,QAAAC;AAAA,EACA,WAAAC;AAAA,EACA,aAAAC;AAAA,EACA,WAAAC,IAAY;AACd,GAA8B;AAC5B,QAAMC,IAAaC,EAAA;AAEnB,2BACGC,GAAA,EACE,UAAA;AAAA,IAAAN,KACC,gBAAAO,EAACH,EAAW,QAAX,EAAkB,SAAQ,aAAY,MAAK,UAAS,SAASJ,GAC3D,UAAAC,EAAA,CACH;AAAA,sBAEDG,EAAW,QAAX,EAAkB,MAAK,UAAS,WAAAD,GAC9B,UAAAD,EAAA,CACH;AAAA,EAAA,GACF;AAEJ;"}
|
|
@@ -1,39 +1,36 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import "classnames";
|
|
3
|
-
import "../../../shared/constants.js";
|
|
4
|
-
import "react-i18next";
|
|
1
|
+
import { jsxs as s, Fragment as m, jsx as e } from "react/jsx-runtime";
|
|
5
2
|
import { TextInputField as a } from "../Fields/TextInputField/TextInputField.js";
|
|
6
3
|
import { CheckboxField as u } from "../Fields/CheckboxField/CheckboxField.js";
|
|
7
|
-
function
|
|
8
|
-
signatureLabel:
|
|
4
|
+
function p({
|
|
5
|
+
signatureLabel: r,
|
|
9
6
|
signatureDescription: i = "",
|
|
10
7
|
signatureError: t = "",
|
|
11
8
|
confirmationLabel: o,
|
|
12
|
-
confirmationError:
|
|
9
|
+
confirmationError: n = ""
|
|
13
10
|
}) {
|
|
14
|
-
return /* @__PURE__ */
|
|
15
|
-
/* @__PURE__ */
|
|
11
|
+
return /* @__PURE__ */ s(m, { children: [
|
|
12
|
+
/* @__PURE__ */ e(
|
|
16
13
|
a,
|
|
17
14
|
{
|
|
18
15
|
name: "signature",
|
|
19
|
-
label:
|
|
16
|
+
label: r,
|
|
20
17
|
description: i,
|
|
21
18
|
errorMessage: t,
|
|
22
19
|
isRequired: !0
|
|
23
20
|
}
|
|
24
21
|
),
|
|
25
|
-
/* @__PURE__ */
|
|
22
|
+
/* @__PURE__ */ e(
|
|
26
23
|
u,
|
|
27
24
|
{
|
|
28
25
|
name: "confirmSignature",
|
|
29
26
|
isRequired: !0,
|
|
30
27
|
label: o,
|
|
31
|
-
errorMessage:
|
|
28
|
+
errorMessage: n
|
|
32
29
|
}
|
|
33
30
|
)
|
|
34
31
|
] });
|
|
35
32
|
}
|
|
36
33
|
export {
|
|
37
|
-
|
|
34
|
+
p as SignatureFormFields
|
|
38
35
|
};
|
|
39
36
|
//# sourceMappingURL=SignatureFormFields.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SignatureFormFields.js","sources":["../../../../src/components/Common/SignatureForm/SignatureFormFields.tsx"],"sourcesContent":["import { TextInputField, CheckboxField } from '@/components/Common'\n\ninterface SignatureFormFieldsProps {\n signatureLabel: string\n signatureDescription?: string\n signatureError?: string\n confirmationLabel: string\n confirmationError?: string\n}\n\nexport function SignatureFormFields({\n signatureLabel,\n signatureDescription = '',\n signatureError = '',\n confirmationLabel,\n confirmationError = '',\n}: SignatureFormFieldsProps) {\n return (\n <>\n <TextInputField\n name=\"signature\"\n label={signatureLabel}\n description={signatureDescription}\n errorMessage={signatureError}\n isRequired\n />\n <CheckboxField\n name=\"confirmSignature\"\n isRequired\n label={confirmationLabel}\n errorMessage={confirmationError}\n />\n </>\n )\n}\n"],"names":["SignatureFormFields","signatureLabel","signatureDescription","signatureError","confirmationLabel","confirmationError","jsxs","Fragment","jsx","TextInputField","CheckboxField"],"mappings":"
|
|
1
|
+
{"version":3,"file":"SignatureFormFields.js","sources":["../../../../src/components/Common/SignatureForm/SignatureFormFields.tsx"],"sourcesContent":["import { TextInputField, CheckboxField } from '@/components/Common'\n\ninterface SignatureFormFieldsProps {\n signatureLabel: string\n signatureDescription?: string\n signatureError?: string\n confirmationLabel: string\n confirmationError?: string\n}\n\nexport function SignatureFormFields({\n signatureLabel,\n signatureDescription = '',\n signatureError = '',\n confirmationLabel,\n confirmationError = '',\n}: SignatureFormFieldsProps) {\n return (\n <>\n <TextInputField\n name=\"signature\"\n label={signatureLabel}\n description={signatureDescription}\n errorMessage={signatureError}\n isRequired\n />\n <CheckboxField\n name=\"confirmSignature\"\n isRequired\n label={confirmationLabel}\n errorMessage={confirmationError}\n />\n </>\n )\n}\n"],"names":["SignatureFormFields","signatureLabel","signatureDescription","signatureError","confirmationLabel","confirmationError","jsxs","Fragment","jsx","TextInputField","CheckboxField"],"mappings":";;;AAUO,SAASA,EAAoB;AAAA,EAClC,gBAAAC;AAAA,EACA,sBAAAC,IAAuB;AAAA,EACvB,gBAAAC,IAAiB;AAAA,EACjB,mBAAAC;AAAA,EACA,mBAAAC,IAAoB;AACtB,GAA6B;AAC3B,SACE,gBAAAC,EAAAC,GAAA,EACE,UAAA;AAAA,IAAA,gBAAAC;AAAA,MAACC;AAAA,MAAA;AAAA,QACC,MAAK;AAAA,QACL,OAAOR;AAAA,QACP,aAAaC;AAAA,QACb,cAAcC;AAAA,QACd,YAAU;AAAA,MAAA;AAAA,IAAA;AAAA,IAEZ,gBAAAK;AAAA,MAACE;AAAA,MAAA;AAAA,QACC,MAAK;AAAA,QACL,YAAU;AAAA,QACV,OAAON;AAAA,QACP,cAAcC;AAAA,MAAA;AAAA,IAAA;AAAA,EAChB,GACF;AAEJ;"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { AlertProps } from './AlertTypes';
|
|
2
|
-
export declare function Alert(
|
|
2
|
+
export declare function Alert(rawProps: AlertProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,32 +1,39 @@
|
|
|
1
|
-
import { jsx as r, jsxs as
|
|
2
|
-
import { useId as
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
1
|
+
import { jsx as r, jsxs as a } from "react/jsx-runtime";
|
|
2
|
+
import { useId as u, useRef as p, useEffect as v } from "react";
|
|
3
|
+
import g from "classnames";
|
|
4
|
+
import { ButtonIcon as N } from "../Button/ButtonIcon.js";
|
|
5
|
+
import { AlertDefaults as S } from "./AlertTypes.js";
|
|
6
|
+
import e from "./Alert.module.scss.js";
|
|
7
|
+
import { applyMissingDefaults as b } from "../../../../helpers/applyMissingDefaults.js";
|
|
8
|
+
import I from "../../../../assets/icons/info.svg.js";
|
|
9
|
+
import y from "../../../../assets/icons/success_check.svg.js";
|
|
10
|
+
import D from "../../../../assets/icons/warning.svg.js";
|
|
11
|
+
import w from "../../../../assets/icons/error.svg.js";
|
|
12
|
+
import x from "../../../../assets/icons/close.svg.js";
|
|
13
|
+
function z(n) {
|
|
14
|
+
const l = b(n, S), { label: c, children: m, status: i, icon: d, className: f, onDismiss: t } = l, o = u(), s = p(null), h = i === "info" ? /* @__PURE__ */ r(I, { "aria-hidden": !0 }) : i === "success" ? /* @__PURE__ */ r(y, { "aria-hidden": !0 }) : i === "warning" ? /* @__PURE__ */ r(D, { "aria-hidden": !0 }) : /* @__PURE__ */ r(w, { "aria-hidden": !0 });
|
|
15
|
+
return v(() => {
|
|
16
|
+
s.current && s.current.scrollIntoView({ behavior: "smooth" });
|
|
17
|
+
}, []), /* @__PURE__ */ r("div", { className: g(e.root, f), children: /* @__PURE__ */ a(
|
|
14
18
|
"div",
|
|
15
19
|
{
|
|
16
|
-
className:
|
|
20
|
+
className: e.alert,
|
|
17
21
|
role: "alert",
|
|
18
|
-
"aria-labelledby":
|
|
19
|
-
"data-variant":
|
|
20
|
-
ref:
|
|
22
|
+
"aria-labelledby": o,
|
|
23
|
+
"data-variant": i,
|
|
24
|
+
ref: s,
|
|
21
25
|
children: [
|
|
22
|
-
/* @__PURE__ */ r("div", { className:
|
|
23
|
-
/* @__PURE__ */
|
|
24
|
-
|
|
26
|
+
/* @__PURE__ */ r("div", { className: e.icon, children: d || h }),
|
|
27
|
+
/* @__PURE__ */ a("div", { className: e.contentWrapper, children: [
|
|
28
|
+
/* @__PURE__ */ r("h6", { id: o, children: c }),
|
|
29
|
+
/* @__PURE__ */ r("div", { className: e.content, children: m })
|
|
30
|
+
] }),
|
|
31
|
+
t && /* @__PURE__ */ r("div", { className: e.dismiss, children: /* @__PURE__ */ r(N, { variant: "tertiary", onClick: t, "aria-label": "Dismiss alert", children: /* @__PURE__ */ r(x, { width: 36, height: 36 }) }) })
|
|
25
32
|
]
|
|
26
33
|
}
|
|
27
34
|
) });
|
|
28
35
|
}
|
|
29
36
|
export {
|
|
30
|
-
|
|
37
|
+
z as Alert
|
|
31
38
|
};
|
|
32
39
|
//# sourceMappingURL=Alert.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Alert.js","sources":["../../../../../src/components/Common/UI/Alert/Alert.tsx"],"sourcesContent":["import { useEffect, useId, useRef } from 'react'\nimport classNames from 'classnames'\nimport { type AlertProps } from './AlertTypes'\nimport styles from './Alert.module.scss'\nimport InfoIcon from '@/assets/icons/info.svg?react'\nimport SuccessIcon from '@/assets/icons/success_check.svg?react'\nimport WarningIcon from '@/assets/icons/warning.svg?react'\nimport ErrorIcon from '@/assets/icons/error.svg?react'\n\nexport function Alert({ label, children, status
|
|
1
|
+
{"version":3,"file":"Alert.js","sources":["../../../../../src/components/Common/UI/Alert/Alert.tsx"],"sourcesContent":["import { useEffect, useId, useRef } from 'react'\nimport classNames from 'classnames'\nimport { ButtonIcon } from '../Button/ButtonIcon'\nimport { type AlertProps, AlertDefaults } from './AlertTypes'\nimport styles from './Alert.module.scss'\nimport { applyMissingDefaults } from '@/helpers/applyMissingDefaults'\nimport InfoIcon from '@/assets/icons/info.svg?react'\nimport SuccessIcon from '@/assets/icons/success_check.svg?react'\nimport WarningIcon from '@/assets/icons/warning.svg?react'\nimport ErrorIcon from '@/assets/icons/error.svg?react'\nimport CloseIcon from '@/assets/icons/close.svg?react'\n\nexport function Alert(rawProps: AlertProps) {\n const resolvedProps = applyMissingDefaults(rawProps, AlertDefaults)\n const { label, children, status, icon, className, onDismiss } = resolvedProps\n const id = useId()\n const alertRef = useRef<HTMLDivElement>(null)\n const defaultIcon =\n status === 'info' ? (\n <InfoIcon aria-hidden />\n ) : status === 'success' ? (\n <SuccessIcon aria-hidden />\n ) : status === 'warning' ? (\n <WarningIcon aria-hidden />\n ) : (\n <ErrorIcon aria-hidden />\n )\n\n useEffect(() => {\n if (alertRef.current) alertRef.current.scrollIntoView({ behavior: 'smooth' })\n }, [])\n\n return (\n <div className={classNames(styles.root, className)}>\n <div\n className={styles.alert}\n role=\"alert\"\n aria-labelledby={id}\n data-variant={status}\n ref={alertRef}\n >\n <div className={styles.icon}>{icon || defaultIcon}</div>\n <div className={styles.contentWrapper}>\n <h6 id={id}>{label}</h6>\n <div className={styles.content}>{children}</div>\n </div>\n {onDismiss && (\n <div className={styles.dismiss}>\n <ButtonIcon variant=\"tertiary\" onClick={onDismiss} aria-label=\"Dismiss alert\">\n <CloseIcon width={36} height={36} />\n </ButtonIcon>\n </div>\n )}\n </div>\n </div>\n )\n}\n"],"names":["Alert","rawProps","resolvedProps","applyMissingDefaults","AlertDefaults","label","children","status","icon","className","onDismiss","id","useId","alertRef","useRef","defaultIcon","jsx","InfoIcon","SuccessIcon","WarningIcon","ErrorIcon","useEffect","classNames","styles","jsxs","ButtonIcon","CloseIcon"],"mappings":";;;;;;;;;;;;AAYO,SAASA,EAAMC,GAAsB;AAC1C,QAAMC,IAAgBC,EAAqBF,GAAUG,CAAa,GAC5D,EAAE,OAAAC,GAAO,UAAAC,GAAU,QAAAC,GAAQ,MAAAC,GAAM,WAAAC,GAAW,WAAAC,MAAcR,GAC1DS,IAAKC,EAAA,GACLC,IAAWC,EAAuB,IAAI,GACtCC,IACJR,MAAW,SACT,gBAAAS,EAACC,GAAA,EAAS,eAAW,GAAA,CAAC,IACpBV,MAAW,YACb,gBAAAS,EAACE,GAAA,EAAY,eAAW,GAAA,CAAC,IACvBX,MAAW,YACb,gBAAAS,EAACG,GAAA,EAAY,eAAW,GAAA,CAAC,IAEzB,gBAAAH,EAACI,GAAA,EAAU,eAAW,GAAA,CAAC;AAG3B,SAAAC,EAAU,MAAM;AACd,IAAIR,EAAS,WAASA,EAAS,QAAQ,eAAe,EAAE,UAAU,UAAU;AAAA,EAC9E,GAAG,CAAA,CAAE,qBAGF,OAAA,EAAI,WAAWS,EAAWC,EAAO,MAAMd,CAAS,GAC/C,UAAA,gBAAAe;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,WAAWD,EAAO;AAAA,MAClB,MAAK;AAAA,MACL,mBAAiBZ;AAAA,MACjB,gBAAcJ;AAAA,MACd,KAAKM;AAAA,MAEL,UAAA;AAAA,QAAA,gBAAAG,EAAC,OAAA,EAAI,WAAWO,EAAO,MAAO,eAAQR,GAAY;AAAA,QAClD,gBAAAS,EAAC,OAAA,EAAI,WAAWD,EAAO,gBACrB,UAAA;AAAA,UAAA,gBAAAP,EAAC,MAAA,EAAG,IAAAL,GAAS,UAAAN,EAAA,CAAM;AAAA,UACnB,gBAAAW,EAAC,OAAA,EAAI,WAAWO,EAAO,SAAU,UAAAjB,EAAA,CAAS;AAAA,QAAA,GAC5C;AAAA,QACCI,uBACE,OAAA,EAAI,WAAWa,EAAO,SACrB,UAAA,gBAAAP,EAACS,KAAW,SAAQ,YAAW,SAASf,GAAW,cAAW,iBAC5D,UAAA,gBAAAM,EAACU,GAAA,EAAU,OAAO,IAAI,QAAQ,GAAA,CAAI,EAAA,CACpC,EAAA,CACF;AAAA,MAAA;AAAA,IAAA;AAAA,EAAA,GAGN;AAEJ;"}
|
|
@@ -1,13 +1,17 @@
|
|
|
1
|
-
const t = "
|
|
1
|
+
const t = "_root_bw473_1", o = "_alert_bw473_1", n = "_icon_bw473_15", s = "_contentWrapper_bw473_23", _ = "_content_bw473_23", c = "_dismiss_bw473_41", e = {
|
|
2
2
|
root: t,
|
|
3
3
|
alert: o,
|
|
4
4
|
icon: n,
|
|
5
|
-
|
|
5
|
+
contentWrapper: s,
|
|
6
|
+
content: _,
|
|
7
|
+
dismiss: c
|
|
6
8
|
};
|
|
7
9
|
export {
|
|
8
10
|
o as alert,
|
|
9
11
|
_ as content,
|
|
10
|
-
|
|
12
|
+
s as contentWrapper,
|
|
13
|
+
e as default,
|
|
14
|
+
c as dismiss,
|
|
11
15
|
n as icon,
|
|
12
16
|
t as root
|
|
13
17
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Alert.module.scss.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Alert.module.scss.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;"}
|
|
@@ -20,4 +20,14 @@ export interface AlertProps {
|
|
|
20
20
|
* CSS className to be applied
|
|
21
21
|
*/
|
|
22
22
|
className?: string;
|
|
23
|
+
/**
|
|
24
|
+
* Optional callback function called when the dismiss button is clicked
|
|
25
|
+
*/
|
|
26
|
+
onDismiss?: () => void;
|
|
23
27
|
}
|
|
28
|
+
/**
|
|
29
|
+
* Default prop values for Alert component.
|
|
30
|
+
*/
|
|
31
|
+
export declare const AlertDefaults: {
|
|
32
|
+
readonly status: "info";
|
|
33
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AlertTypes.js","sources":["../../../../../src/components/Common/UI/Alert/AlertTypes.ts"],"sourcesContent":["import type { ReactNode } from 'react'\n\nexport interface AlertProps {\n /**\n * The visual status that the alert should convey\n */\n status?: 'info' | 'success' | 'warning' | 'error'\n /**\n * The label text for the alert\n */\n label: string\n /**\n * Optional children to be rendered inside the alert\n */\n children?: ReactNode\n /**\n * Optional custom icon component to override the default icon\n */\n icon?: ReactNode\n /**\n * CSS className to be applied\n */\n className?: string\n /**\n * Optional callback function called when the dismiss button is clicked\n */\n onDismiss?: () => void\n}\n\n/**\n * Default prop values for Alert component.\n */\nexport const AlertDefaults = {\n status: 'info',\n} as const satisfies Partial<AlertProps>\n"],"names":["AlertDefaults"],"mappings":"AAgCO,MAAMA,IAAgB;AAAA,EAC3B,QAAQ;AACV;"}
|