@gusto/embedded-react-sdk 0.13.1 → 0.13.3
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 +37 -0
- package/dist/_virtual/_commonjsHelpers.js +7 -0
- package/dist/_virtual/_commonjsHelpers.js.map +1 -0
- 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/assets/icons/download-cloud.svg.js +10 -0
- package/dist/assets/icons/download-cloud.svg.js.map +1 -0
- package/dist/components/Common/DataView/DataCards/DataCards.d.ts +2 -1
- package/dist/components/Common/DataView/DataCards/DataCards.js +28 -23
- package/dist/components/Common/DataView/DataCards/DataCards.js.map +1 -1
- package/dist/components/Common/DataView/DataCards/DataCards.module.scss.js +6 -4
- package/dist/components/Common/DataView/DataCards/DataCards.module.scss.js.map +1 -1
- package/dist/components/Common/DataView/DataTable/DataTable.d.ts +4 -1
- package/dist/components/Common/DataView/DataTable/DataTable.js +70 -50
- package/dist/components/Common/DataView/DataTable/DataTable.js.map +1 -1
- package/dist/components/Common/DataView/DataView.d.ts +7 -3
- package/dist/components/Common/DataView/DataView.js +23 -19
- 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/Fields/CheckboxField/CheckboxField.d.ts +1 -1
- package/dist/components/Common/Fields/CheckboxField/CheckboxField.js +15 -9
- package/dist/components/Common/Fields/CheckboxField/CheckboxField.js.map +1 -1
- package/dist/components/Common/Fields/CheckboxGroupField/CheckboxGroupField.d.ts +2 -2
- package/dist/components/Common/Fields/CheckboxGroupField/CheckboxGroupField.js +21 -15
- package/dist/components/Common/Fields/CheckboxGroupField/CheckboxGroupField.js.map +1 -1
- package/dist/components/Common/Fields/ComboBoxField/ComboBoxField.d.ts +2 -2
- package/dist/components/Common/Fields/ComboBoxField/ComboBoxField.js +19 -13
- package/dist/components/Common/Fields/ComboBoxField/ComboBoxField.js.map +1 -1
- package/dist/components/Common/Fields/DatePickerField/DatePickerField.d.ts +1 -1
- package/dist/components/Common/Fields/DatePickerField/DatePickerField.js +24 -18
- package/dist/components/Common/Fields/DatePickerField/DatePickerField.js.map +1 -1
- package/dist/components/Common/Fields/NumberInputField/NumberInputField.d.ts +1 -1
- package/dist/components/Common/Fields/NumberInputField/NumberInputField.js +18 -12
- package/dist/components/Common/Fields/NumberInputField/NumberInputField.js.map +1 -1
- package/dist/components/Common/Fields/RadioGroupField/RadioGroupField.d.ts +2 -2
- package/dist/components/Common/Fields/RadioGroupField/RadioGroupField.js +19 -13
- package/dist/components/Common/Fields/RadioGroupField/RadioGroupField.js.map +1 -1
- package/dist/components/Common/Fields/SelectField/SelectField.d.ts +2 -2
- package/dist/components/Common/Fields/SelectField/SelectField.js +19 -13
- package/dist/components/Common/Fields/SelectField/SelectField.js.map +1 -1
- package/dist/components/Common/Fields/SwitchField/SwitchField.d.ts +1 -1
- package/dist/components/Common/Fields/SwitchField/SwitchField.js +15 -9
- package/dist/components/Common/Fields/SwitchField/SwitchField.js.map +1 -1
- package/dist/components/Common/Fields/TextInputField/TextInputField.d.ts +1 -1
- package/dist/components/Common/Fields/TextInputField/TextInputField.js +15 -9
- package/dist/components/Common/Fields/TextInputField/TextInputField.js.map +1 -1
- package/dist/components/Common/Fields/hooks/useField.d.ts +8 -7
- package/dist/components/Common/Fields/hooks/useField.js +33 -27
- 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 +1 -1
- package/dist/components/Common/SignatureForm/SignatureFormActions.js +1 -1
- package/dist/components/Common/SignatureForm/SignatureFormFields.js +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 +13 -7
- 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/Card/Card.module.scss.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 +12 -1
- 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/ComboBox/ComboBoxTypes.d.ts +2 -2
- package/dist/components/Common/UI/DatePicker/DatePickerTypes.d.ts +2 -2
- package/dist/components/Common/UI/Dialog/Dialog.d.ts +2 -0
- package/dist/components/Common/UI/Dialog/Dialog.js +84 -0
- package/dist/components/Common/UI/Dialog/Dialog.js.map +1 -0
- package/dist/components/Common/UI/Dialog/Dialog.module.scss.js +18 -0
- package/dist/components/Common/UI/Dialog/Dialog.module.scss.js.map +1 -0
- package/dist/components/Common/UI/Dialog/DialogTypes.d.ts +52 -0
- package/dist/components/Common/UI/Dialog/DialogTypes.js +10 -0
- package/dist/components/Common/UI/Dialog/DialogTypes.js.map +1 -0
- package/dist/components/Common/UI/Dialog/index.d.ts +4 -0
- 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/Menu.module.scss.js +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/NumberInput/NumberInputTypes.d.ts +2 -2
- 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/Select/SelectTypes.d.ts +2 -2
- 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 +9 -2
- 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 +15 -9
- 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 +14 -0
- package/dist/components/Common/UI/Table/TableTypes.js +7 -0
- package/dist/components/Common/UI/Table/TableTypes.js.map +1 -0
- package/dist/components/Common/UI/Text/Text.d.ts +1 -1
- package/dist/components/Common/UI/Text/Text.js +23 -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 -49
- package/dist/components/Common/UI/TextInput/TextInput.js.map +1 -1
- package/dist/components/Common/UI/TextInput/TextInputTypes.d.ts +14 -1
- 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/UI/hooks/useFieldIds.d.ts +2 -1
- package/dist/components/Common/UI/hooks/useFieldIds.js +11 -6
- package/dist/components/Common/UI/hooks/useFieldIds.js.map +1 -1
- package/dist/components/Company/AssignSignatory/AssignSignatory.js +7 -6
- package/dist/components/Company/AssignSignatory/AssignSignatory.js.map +1 -1
- package/dist/components/Company/AssignSignatory/AssignSignatorySelection.js +2 -3
- package/dist/components/Company/AssignSignatory/AssignSignatorySelection.js.map +1 -1
- package/dist/components/Company/AssignSignatory/CreateSignatory/Actions.js +2 -3
- package/dist/components/Company/AssignSignatory/CreateSignatory/Actions.js.map +1 -1
- package/dist/components/Company/AssignSignatory/CreateSignatory/CreateSignatory.js +3 -2
- package/dist/components/Company/AssignSignatory/CreateSignatory/CreateSignatory.js.map +1 -1
- package/dist/components/Company/AssignSignatory/CreateSignatory/CreateSignatoryForm.js +14 -13
- package/dist/components/Company/AssignSignatory/CreateSignatory/CreateSignatoryForm.js.map +1 -1
- package/dist/components/Company/AssignSignatory/CreateSignatory/useCreateSignatory.js +3 -4
- package/dist/components/Company/AssignSignatory/CreateSignatory/useCreateSignatory.js.map +1 -1
- package/dist/components/Company/AssignSignatory/InviteSignatory/Actions.js +2 -3
- package/dist/components/Company/AssignSignatory/InviteSignatory/Actions.js.map +1 -1
- package/dist/components/Company/AssignSignatory/InviteSignatory/InviteSignatory.js +6 -5
- package/dist/components/Company/AssignSignatory/InviteSignatory/InviteSignatory.js.map +1 -1
- package/dist/components/Company/AssignSignatory/InviteSignatory/InviteSignatoryForm.js +11 -10
- package/dist/components/Company/AssignSignatory/InviteSignatory/InviteSignatoryForm.js.map +1 -1
- package/dist/components/Company/AssignSignatory/InviteSignatory/useInviteSignatory.js +3 -4
- package/dist/components/Company/AssignSignatory/InviteSignatory/useInviteSignatory.js.map +1 -1
- package/dist/components/Company/AssignSignatory/useAssignSignatory.js +5 -6
- package/dist/components/Company/AssignSignatory/useAssignSignatory.js.map +1 -1
- package/dist/components/Company/BankAccount/BankAccountForm/Actions.js +6 -6
- package/dist/components/Company/BankAccount/BankAccountForm/Form.js +8 -9
- package/dist/components/Company/BankAccount/BankAccountForm/Form.js.map +1 -1
- package/dist/components/Company/BankAccount/BankAccountForm/context.js +3 -4
- package/dist/components/Company/BankAccount/BankAccountForm/context.js.map +1 -1
- package/dist/components/Company/BankAccount/BankAccountList/Actions.js +8 -9
- package/dist/components/Company/BankAccount/BankAccountList/Actions.js.map +1 -1
- package/dist/components/Company/BankAccount/BankAccountVerify/Actions.js +7 -8
- package/dist/components/Company/BankAccount/BankAccountVerify/Actions.js.map +1 -1
- package/dist/components/Company/BankAccount/BankAccountVerify/Form.js +4 -5
- package/dist/components/Company/BankAccount/BankAccountVerify/Form.js.map +1 -1
- package/dist/components/Company/BankAccount/stateMachine.d.ts +4 -4
- package/dist/components/Company/BankAccount/stateMachine.js.map +1 -1
- package/dist/components/Company/DocumentSigner/DocumentList/Actions.js +2 -3
- package/dist/components/Company/DocumentSigner/DocumentList/Actions.js.map +1 -1
- package/dist/components/Company/DocumentSigner/DocumentList/DocumentList.js +9 -8
- package/dist/components/Company/DocumentSigner/DocumentList/DocumentList.js.map +1 -1
- package/dist/components/Company/DocumentSigner/DocumentList/useDocumentList.js +3 -4
- package/dist/components/Company/DocumentSigner/DocumentList/useDocumentList.js.map +1 -1
- package/dist/components/Company/DocumentSigner/SignatureForm/SignatureForm.js +7 -6
- package/dist/components/Company/DocumentSigner/SignatureForm/SignatureForm.js.map +1 -1
- package/dist/components/Company/DocumentSigner/SignatureForm/useSignatureForm.js +3 -4
- package/dist/components/Company/DocumentSigner/SignatureForm/useSignatureForm.js.map +1 -1
- package/dist/components/Company/DocumentSigner/assignSignatoryState.d.ts +1 -1
- package/dist/components/Company/DocumentSigner/assignSignatoryState.js.map +1 -1
- package/dist/components/Company/DocumentSigner/stateMachine.d.ts +5 -5
- package/dist/components/Company/DocumentSigner/stateMachine.js.map +1 -1
- package/dist/components/Company/FederalTaxes/Actions.js +5 -6
- package/dist/components/Company/FederalTaxes/Actions.js.map +1 -1
- package/dist/components/Company/FederalTaxes/FederalTaxes.js +13 -12
- package/dist/components/Company/FederalTaxes/FederalTaxes.js.map +1 -1
- package/dist/components/Company/FederalTaxes/Form.js +3 -4
- package/dist/components/Company/FederalTaxes/Form.js.map +1 -1
- package/dist/components/Company/FederalTaxes/useFederalTaxes.js +8 -9
- package/dist/components/Company/FederalTaxes/useFederalTaxes.js.map +1 -1
- package/dist/components/Company/Industry/Actions.js +2 -3
- package/dist/components/Company/Industry/Actions.js.map +1 -1
- package/dist/components/Company/Industry/Context.js +6 -7
- package/dist/components/Company/Industry/Context.js.map +1 -1
- package/dist/components/Company/Industry/Edit.js +4 -5
- package/dist/components/Company/Industry/Edit.js.map +1 -1
- package/dist/components/Company/Locations/LocationForm/Actions.js +6 -7
- package/dist/components/Company/Locations/LocationForm/Actions.js.map +1 -1
- package/dist/components/Company/Locations/LocationForm/Form.js +6 -5
- package/dist/components/Company/Locations/LocationForm/Form.js.map +1 -1
- package/dist/components/Company/Locations/LocationForm/LocationForm.js +11 -10
- package/dist/components/Company/Locations/LocationForm/LocationForm.js.map +1 -1
- package/dist/components/Company/Locations/LocationForm/useLocationForm.js +3 -4
- package/dist/components/Company/Locations/LocationForm/useLocationForm.js.map +1 -1
- package/dist/components/Company/Locations/LocationsList/Actions.js +6 -7
- package/dist/components/Company/Locations/LocationsList/Actions.js.map +1 -1
- package/dist/components/Company/Locations/LocationsList/List.js +2 -3
- package/dist/components/Company/Locations/LocationsList/List.js.map +1 -1
- package/dist/components/Company/Locations/LocationsList/LocationsList.js +7 -6
- package/dist/components/Company/Locations/LocationsList/LocationsList.js.map +1 -1
- package/dist/components/Company/Locations/LocationsList/useLocationsList.js +3 -4
- package/dist/components/Company/Locations/LocationsList/useLocationsList.js.map +1 -1
- package/dist/components/Company/Locations/stateMachine.d.ts +3 -3
- package/dist/components/Company/Locations/stateMachine.js.map +1 -1
- package/dist/components/Company/OnboardingFlow/onboardingStateMachine.d.ts +10 -10
- package/dist/components/Company/OnboardingFlow/onboardingStateMachine.js.map +1 -1
- package/dist/components/Company/OnboardingOverview/Completed.js +10 -11
- package/dist/components/Company/OnboardingOverview/Completed.js.map +1 -1
- package/dist/components/Company/OnboardingOverview/MissingRequirements.js +6 -7
- package/dist/components/Company/OnboardingOverview/MissingRequirements.js.map +1 -1
- package/dist/components/Company/OnboardingOverview/OnboardingOverview.js +3 -2
- package/dist/components/Company/OnboardingOverview/OnboardingOverview.js.map +1 -1
- package/dist/components/Company/OnboardingOverview/context.js +3 -4
- package/dist/components/Company/OnboardingOverview/context.js.map +1 -1
- package/dist/components/Company/PaySchedule/PaySchedule.js +34 -33
- package/dist/components/Company/PaySchedule/PaySchedule.js.map +1 -1
- package/dist/components/Company/PaySchedule/_parts/Actions.js +9 -10
- package/dist/components/Company/PaySchedule/_parts/Actions.js.map +1 -1
- package/dist/components/Company/PaySchedule/_parts/Edit.js +17 -16
- package/dist/components/Company/PaySchedule/_parts/Edit.js.map +1 -1
- package/dist/components/Company/PaySchedule/_parts/Head.js +6 -7
- package/dist/components/Company/PaySchedule/_parts/Head.js.map +1 -1
- package/dist/components/Company/PaySchedule/_parts/List.js +11 -12
- package/dist/components/Company/PaySchedule/_parts/List.js.map +1 -1
- package/dist/components/Company/PaySchedule/usePaySchedule.js +5 -6
- package/dist/components/Company/PaySchedule/usePaySchedule.js.map +1 -1
- package/dist/components/Company/StateTaxes/StateTaxesForm/Actions.js +2 -3
- package/dist/components/Company/StateTaxes/StateTaxesForm/Actions.js.map +1 -1
- package/dist/components/Company/StateTaxes/StateTaxesForm/context.js +3 -4
- package/dist/components/Company/StateTaxes/StateTaxesForm/context.js.map +1 -1
- package/dist/components/Company/StateTaxes/StateTaxesList/Actions.js +2 -3
- package/dist/components/Company/StateTaxes/StateTaxesList/Actions.js.map +1 -1
- package/dist/components/Company/StateTaxes/StateTaxesList/List.js +2 -3
- package/dist/components/Company/StateTaxes/StateTaxesList/List.js.map +1 -1
- package/dist/components/Company/StateTaxes/StateTaxesList/context.js +3 -4
- package/dist/components/Company/StateTaxes/StateTaxesList/context.js.map +1 -1
- package/dist/components/Company/StateTaxes/stateTaxesStateMachine.d.ts +3 -3
- package/dist/components/Company/StateTaxes/stateTaxesStateMachine.js.map +1 -1
- package/dist/components/Contractor/Address/Address.js +5 -4
- package/dist/components/Contractor/Address/Address.js.map +1 -1
- package/dist/components/Contractor/Address/Form.js +4 -3
- package/dist/components/Contractor/Address/Form.js.map +1 -1
- package/dist/components/Contractor/Address/useAddress.js +5 -6
- package/dist/components/Contractor/Address/useAddress.js.map +1 -1
- package/dist/components/Contractor/ContractorList/index.js +17 -17
- package/dist/components/Contractor/OnboardingFlow/onboardingStateMachine.d.ts +7 -7
- package/dist/components/Contractor/OnboardingFlow/onboardingStateMachine.js.map +1 -1
- package/dist/components/Contractor/PaymentMethod/BankAccountForm.js +5 -6
- package/dist/components/Contractor/PaymentMethod/BankAccountForm.js.map +1 -1
- package/dist/components/Contractor/Profile/ContractorProfileForm.d.ts +1 -1
- package/dist/components/Contractor/Profile/ContractorProfileForm.js +59 -56
- package/dist/components/Contractor/Profile/ContractorProfileForm.js.map +1 -1
- package/dist/components/Contractor/Profile/ContractorProfileForm.module.scss.js +8 -0
- package/dist/components/Contractor/Profile/ContractorProfileForm.module.scss.js.map +1 -0
- package/dist/components/Contractor/Profile/useContractorProfile.d.ts +2 -0
- package/dist/components/Contractor/Profile/useContractorProfile.js +94 -93
- package/dist/components/Contractor/Profile/useContractorProfile.js.map +1 -1
- package/dist/components/Contractor/Submit/Submit.js +1 -1
- package/dist/components/Employee/Compensation/Actions.js +1 -1
- package/dist/components/Employee/Compensation/Edit.js +12 -12
- package/dist/components/Employee/Compensation/List.js +22 -23
- package/dist/components/Employee/Compensation/List.js.map +1 -1
- package/dist/components/Employee/Deductions/DeductionsForm/DeductionsForm.js +8 -8
- package/dist/components/Employee/Deductions/DeductionsList/DeductionsList.js +1 -1
- package/dist/components/Employee/Deductions/EmptyState/EmptyState.d.ts +6 -0
- package/dist/components/Employee/Deductions/IncludeDeductionsForm/IncludeDeductionsForm.js +8 -8
- package/dist/components/Employee/Deductions/stateMachine.d.ts +5 -5
- package/dist/components/Employee/Deductions/stateMachine.js.map +1 -1
- package/dist/components/Employee/DocumentSigner/DocumentList/Actions.js +6 -7
- package/dist/components/Employee/DocumentSigner/DocumentList/Actions.js.map +1 -1
- package/dist/components/Employee/DocumentSigner/DocumentList/DocumentList.js +8 -7
- package/dist/components/Employee/DocumentSigner/DocumentList/DocumentList.js.map +1 -1
- package/dist/components/Employee/DocumentSigner/DocumentList/List.js +2 -3
- package/dist/components/Employee/DocumentSigner/DocumentList/List.js.map +1 -1
- package/dist/components/Employee/DocumentSigner/DocumentList/useDocumentList.js +3 -4
- package/dist/components/Employee/DocumentSigner/DocumentList/useDocumentList.js.map +1 -1
- package/dist/components/Employee/DocumentSigner/SignatureForm/SignatureForm.js +10 -9
- package/dist/components/Employee/DocumentSigner/SignatureForm/SignatureForm.js.map +1 -1
- package/dist/components/Employee/DocumentSigner/SignatureForm/useSignatureForm.js +3 -4
- package/dist/components/Employee/DocumentSigner/SignatureForm/useSignatureForm.js.map +1 -1
- package/dist/components/Employee/DocumentSigner/stateMachine.d.ts +3 -3
- package/dist/components/Employee/DocumentSigner/stateMachine.js.map +1 -1
- package/dist/components/Employee/EmployeeList/Actions.js +2 -3
- package/dist/components/Employee/EmployeeList/Actions.js.map +1 -1
- package/dist/components/Employee/EmployeeList/EmployeeList.js +3 -4
- package/dist/components/Employee/EmployeeList/EmployeeList.js.map +1 -1
- package/dist/components/Employee/EmployeeList/Head.js +5 -6
- package/dist/components/Employee/EmployeeList/Head.js.map +1 -1
- package/dist/components/Employee/EmployeeList/List.js +12 -12
- package/dist/components/Employee/EmployeeList/useEmployeeList.js +3 -4
- package/dist/components/Employee/EmployeeList/useEmployeeList.js.map +1 -1
- package/dist/components/Employee/FederalTaxes/Actions.js +6 -7
- package/dist/components/Employee/FederalTaxes/Actions.js.map +1 -1
- package/dist/components/Employee/FederalTaxes/FederalForm.js +11 -12
- package/dist/components/Employee/FederalTaxes/FederalForm.js.map +1 -1
- package/dist/components/Employee/FederalTaxes/useFederalTaxes.js +3 -4
- package/dist/components/Employee/FederalTaxes/useFederalTaxes.js.map +1 -1
- package/dist/components/Employee/Landing/Landing.js +8 -8
- package/dist/components/Employee/OnboardingFlow/onboardingStateMachine.d.ts +9 -9
- package/dist/components/Employee/OnboardingFlow/onboardingStateMachine.js.map +1 -1
- package/dist/components/Employee/OnboardingSummary/OnboardingSummary.js +7 -7
- package/dist/components/Employee/PaymentMethod/Actions.js +5 -6
- package/dist/components/Employee/PaymentMethod/Actions.js.map +1 -1
- package/dist/components/Employee/PaymentMethod/BankAccountEdit.js +1 -1
- package/dist/components/Employee/PaymentMethod/BankAccountsList.js +8 -9
- package/dist/components/Employee/PaymentMethod/BankAccountsList.js.map +1 -1
- package/dist/components/Employee/PaymentMethod/Split.js +8 -8
- package/dist/components/Employee/PaymentMethod/usePaymentMethod.js +5 -6
- package/dist/components/Employee/PaymentMethod/usePaymentMethod.js.map +1 -1
- package/dist/components/Employee/Profile/Actions.js +6 -7
- package/dist/components/Employee/Profile/Actions.js.map +1 -1
- package/dist/components/Employee/Profile/AdminPersonalDetails.js +31 -29
- package/dist/components/Employee/Profile/AdminPersonalDetails.js.map +1 -1
- package/dist/components/Employee/Profile/AdminPersonalDetails.module.scss.js +8 -0
- package/dist/components/Employee/Profile/AdminPersonalDetails.module.scss.js.map +1 -0
- package/dist/components/Employee/Profile/HomeAddress.js +6 -5
- package/dist/components/Employee/Profile/HomeAddress.js.map +1 -1
- package/dist/components/Employee/Profile/PersonalDetailsInputs.js +22 -21
- package/dist/components/Employee/Profile/PersonalDetailsInputs.js.map +1 -1
- package/dist/components/Employee/Profile/Profile.js +66 -63
- package/dist/components/Employee/Profile/Profile.js.map +1 -1
- package/dist/components/Employee/Profile/useProfile.js +3 -4
- package/dist/components/Employee/Profile/useProfile.js.map +1 -1
- package/dist/components/Employee/SelfOnboardingFlow/selfOnboardingMachine.d.ts +5 -5
- package/dist/components/Employee/SelfOnboardingFlow/selfOnboardingMachine.js.map +1 -1
- package/dist/components/Employee/StateTaxes/Actions.js +7 -8
- package/dist/components/Employee/StateTaxes/Actions.js.map +1 -1
- package/dist/components/Employee/StateTaxes/useStateTaxes.js +3 -4
- package/dist/components/Employee/StateTaxes/useStateTaxes.js.map +1 -1
- package/dist/components/Employee/Taxes/Actions.js +8 -9
- package/dist/components/Employee/Taxes/Actions.js.map +1 -1
- package/dist/components/Employee/Taxes/FederalForm.js +12 -13
- package/dist/components/Employee/Taxes/FederalForm.js.map +1 -1
- package/dist/components/Employee/Taxes/useTaxes.js +3 -4
- 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 +55 -60
- 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 -90
- package/dist/components/Payroll/PayrollConfiguration/PayrollConfigurationPresentation.js.map +1 -1
- package/dist/components/Payroll/PayrollEditEmployee/PayrollEditEmployee.js +47 -48
- package/dist/components/Payroll/PayrollEditEmployee/PayrollEditEmployee.js.map +1 -1
- package/dist/components/Payroll/PayrollEditEmployee/PayrollEditEmployeePresentation.d.ts +20 -2
- package/dist/components/Payroll/PayrollEditEmployee/PayrollEditEmployeePresentation.js +309 -101
- package/dist/components/Payroll/PayrollEditEmployee/PayrollEditEmployeePresentation.js.map +1 -1
- package/dist/components/Payroll/PayrollEditEmployee/PayrollEditEmployeePresentation.module.scss.js +16 -0
- package/dist/components/Payroll/PayrollEditEmployee/PayrollEditEmployeePresentation.module.scss.js.map +1 -0
- package/dist/components/Payroll/PayrollEditEmployee/TimeOffField.d.ts +7 -0
- package/dist/components/Payroll/PayrollEditEmployee/TimeOffField.js +58 -0
- package/dist/components/Payroll/PayrollEditEmployee/TimeOffField.js.map +1 -0
- package/dist/components/Payroll/PayrollEditEmployee/index.d.ts +4 -0
- package/dist/components/Payroll/PayrollHistory/PayrollHistory.d.ts +19 -0
- package/dist/components/Payroll/PayrollHistory/PayrollHistory.js +114 -0
- package/dist/components/Payroll/PayrollHistory/PayrollHistory.js.map +1 -0
- package/dist/components/Payroll/PayrollHistory/PayrollHistoryPresentation.d.ts +15 -0
- package/dist/components/Payroll/PayrollHistory/PayrollHistoryPresentation.js +193 -0
- package/dist/components/Payroll/PayrollHistory/PayrollHistoryPresentation.js.map +1 -0
- package/dist/components/Payroll/PayrollHistory/PayrollHistoryPresentation.module.scss.js +8 -0
- package/dist/components/Payroll/PayrollHistory/PayrollHistoryPresentation.module.scss.js.map +1 -0
- package/dist/components/Payroll/PayrollLanding/PayrollLanding.d.ts +7 -0
- package/dist/components/Payroll/PayrollLanding/PayrollLanding.js +41 -0
- package/dist/components/Payroll/PayrollLanding/PayrollLanding.js.map +1 -0
- package/dist/components/Payroll/PayrollList/PayrollList.js +22 -18
- 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 +94 -53
- 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 +103 -27
- package/dist/components/Payroll/PayrollOverview/PayrollOverview.js.map +1 -1
- package/dist/components/Payroll/PayrollOverview/PayrollOverviewPresentation.d.ts +16 -1
- package/dist/components/Payroll/PayrollOverview/PayrollOverviewPresentation.js +408 -54
- package/dist/components/Payroll/PayrollOverview/PayrollOverviewPresentation.js.map +1 -1
- package/dist/components/Payroll/PayrollReceipts/PayrollReceiptsPresentation.d.ts +6 -0
- package/dist/components/Payroll/RunPayrollFlow/RunPayroll.d.ts +9 -3
- package/dist/components/Payroll/RunPayrollFlow/RunPayroll.js +86 -24
- package/dist/components/Payroll/RunPayrollFlow/RunPayroll.js.map +1 -1
- package/dist/components/Payroll/RunPayrollFlow/RunPayrollFlow.js +6 -4
- package/dist/components/Payroll/RunPayrollFlow/RunPayrollFlow.js.map +1 -1
- package/dist/components/Payroll/helpers.d.ts +21 -1
- package/dist/components/Payroll/helpers.js +166 -123
- package/dist/components/Payroll/helpers.js.map +1 -1
- package/dist/components/Payroll/index.d.ts +2 -0
- package/dist/components/Payroll/index.js +10 -6
- package/dist/components/Payroll/index.js.map +1 -1
- package/dist/contexts/ComponentAdapter/adapters/defaultComponentAdapter.js +21 -19
- package/dist/contexts/ComponentAdapter/adapters/defaultComponentAdapter.js.map +1 -1
- package/dist/contexts/ComponentAdapter/componentAdapterTypes.d.ts +1 -0
- package/dist/contexts/ComponentAdapter/createComponentsWithDefaults.d.ts +78 -0
- package/dist/contexts/ComponentAdapter/createComponentsWithDefaults.js +57 -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 +10 -10
- package/dist/contexts/GustoProvider/GustoProviderCustomUIAdapter.js.map +1 -1
- package/dist/contexts/ThemeProvider/theme.d.ts +2 -0
- package/dist/contexts/ThemeProvider/theme.js +10 -8
- package/dist/contexts/ThemeProvider/theme.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/readableStreamToBlob.d.ts +1 -0
- package/dist/helpers/readableStreamToBlob.js +17 -0
- package/dist/helpers/readableStreamToBlob.js.map +1 -0
- package/dist/hooks/useContainerBreakpoints/useContainerBreakpoints.d.ts +2 -4
- package/dist/hooks/useContainerBreakpoints/useContainerBreakpoints.js.map +1 -1
- package/dist/i18n/I18n.js +9 -9
- 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/Employee.Profile.json.js +32 -30
- package/dist/i18n/en/Employee.Profile.json.js.map +1 -1
- package/dist/i18n/en/Payroll.PayrollConfiguration.json.js +13 -13
- package/dist/i18n/en/Payroll.PayrollEditEmployee.json.js +34 -14
- package/dist/i18n/en/Payroll.PayrollEditEmployee.json.js.map +1 -1
- package/dist/i18n/en/Payroll.PayrollHistory.json.js +22 -0
- package/dist/i18n/en/Payroll.PayrollHistory.json.js.map +1 -0
- package/dist/i18n/en/Payroll.PayrollLanding.json.js +12 -0
- package/dist/i18n/en/Payroll.PayrollLanding.json.js.map +1 -0
- package/dist/i18n/en/Payroll.PayrollList.json.js +14 -8
- package/dist/i18n/en/Payroll.PayrollList.json.js.map +1 -1
- package/dist/i18n/en/Payroll.PayrollOverview.json.js +50 -14
- package/dist/i18n/en/Payroll.PayrollOverview.json.js.map +1 -1
- package/dist/i18n/en/Payroll.PayrollReceipts.json.js +16 -0
- package/dist/i18n/en/Payroll.PayrollReceipts.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/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 +38 -0
- package/dist/shared/constants.js +67 -37
- package/dist/shared/constants.js.map +1 -1
- package/dist/style.css +1 -1
- package/dist/types/Helpers.d.ts +7 -0
- package/dist/types/i18next.d.ts +202 -20
- package/package.json +17 -16
- package/dist/i18n/en/Payroll.PayrollHistoryList.json.js +0 -16
- package/dist/i18n/en/Payroll.PayrollHistoryList.json.js.map +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { InputHTMLAttributes, Ref
|
|
1
|
+
import { InputHTMLAttributes, Ref } from 'react';
|
|
2
2
|
import { SharedFieldLayoutProps } from '../../FieldLayout/FieldLayoutTypes';
|
|
3
3
|
export interface DatePickerProps extends SharedFieldLayoutProps, Pick<InputHTMLAttributes<HTMLInputElement>, 'className' | 'id' | 'name'> {
|
|
4
4
|
/**
|
|
@@ -20,7 +20,7 @@ export interface DatePickerProps extends SharedFieldLayoutProps, Pick<InputHTMLA
|
|
|
20
20
|
/**
|
|
21
21
|
* Handler for blur events
|
|
22
22
|
*/
|
|
23
|
-
onBlur?: (
|
|
23
|
+
onBlur?: () => void;
|
|
24
24
|
/**
|
|
25
25
|
* Label text for the date picker field
|
|
26
26
|
*/
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
import { jsx as o, jsxs as p } from "react/jsx-runtime";
|
|
2
|
+
import { useRef as s, useState as B, useLayoutEffect as E } from "react";
|
|
3
|
+
import { Button as g } from "../Button/Button.js";
|
|
4
|
+
import { Grid as P } from "../../Grid/Grid.js";
|
|
5
|
+
import { DialogDefaults as R } from "./DialogTypes.js";
|
|
6
|
+
import r from "./Dialog.module.scss.js";
|
|
7
|
+
import { applyMissingDefaults as j } from "../../../../helpers/applyMissingDefaults.js";
|
|
8
|
+
import { useContainerBreakpoints as K } from "../../../../hooks/useContainerBreakpoints/useContainerBreakpoints.js";
|
|
9
|
+
import { transitionDuration as M } from "../../../../contexts/ThemeProvider/theme.js";
|
|
10
|
+
function Q(h) {
|
|
11
|
+
const k = j(h, R), {
|
|
12
|
+
isOpen: n,
|
|
13
|
+
onClose: t,
|
|
14
|
+
onPrimaryActionClick: a,
|
|
15
|
+
isDestructive: y,
|
|
16
|
+
isPrimaryActionLoading: C,
|
|
17
|
+
primaryActionLabel: v,
|
|
18
|
+
closeActionLabel: b,
|
|
19
|
+
title: l,
|
|
20
|
+
children: c,
|
|
21
|
+
shouldCloseOnBackdropClick: A
|
|
22
|
+
} = k, m = s(null), d = s(null), D = K({
|
|
23
|
+
ref: d
|
|
24
|
+
}), [x, u] = B(!1), i = s(null), N = D.includes("small") ? ["1fr", "1fr"] : "1fr";
|
|
25
|
+
E(() => {
|
|
26
|
+
const e = m.current;
|
|
27
|
+
if (e)
|
|
28
|
+
return i.current && clearTimeout(i.current), n && !e.open ? (e.showModal(), requestAnimationFrame(() => {
|
|
29
|
+
e.setAttribute("data-show", "true");
|
|
30
|
+
})) : !n && e.open && (u(!0), i.current = setTimeout(() => {
|
|
31
|
+
e.close(), e.removeAttribute("data-show"), u(!1);
|
|
32
|
+
}, M)), () => {
|
|
33
|
+
i.current && clearTimeout(i.current);
|
|
34
|
+
};
|
|
35
|
+
}, [n]);
|
|
36
|
+
const T = (e) => {
|
|
37
|
+
e.target === e.currentTarget && A && t?.();
|
|
38
|
+
}, w = (e) => {
|
|
39
|
+
e.key === "Escape" && t?.();
|
|
40
|
+
}, f = () => {
|
|
41
|
+
t && t();
|
|
42
|
+
}, L = () => {
|
|
43
|
+
a && a();
|
|
44
|
+
};
|
|
45
|
+
return /* @__PURE__ */ o(
|
|
46
|
+
"dialog",
|
|
47
|
+
{
|
|
48
|
+
ref: m,
|
|
49
|
+
className: r.dialog,
|
|
50
|
+
onClose: f,
|
|
51
|
+
"data-exiting": x || void 0,
|
|
52
|
+
children: /* @__PURE__ */ o(
|
|
53
|
+
"div",
|
|
54
|
+
{
|
|
55
|
+
ref: d,
|
|
56
|
+
className: r.backdrop,
|
|
57
|
+
onClick: T,
|
|
58
|
+
onKeyDown: w,
|
|
59
|
+
role: "presentation",
|
|
60
|
+
children: /* @__PURE__ */ p("div", { className: r.content, children: [
|
|
61
|
+
l && /* @__PURE__ */ o("div", { className: r.title, children: l }),
|
|
62
|
+
c && /* @__PURE__ */ o("div", { className: r.body, children: c }),
|
|
63
|
+
/* @__PURE__ */ p(P, { gridTemplateColumns: N, gap: 12, className: r.actions, children: [
|
|
64
|
+
/* @__PURE__ */ o(g, { variant: "secondary", onClick: f, children: b }),
|
|
65
|
+
/* @__PURE__ */ o(
|
|
66
|
+
g,
|
|
67
|
+
{
|
|
68
|
+
variant: y ? "error" : "primary",
|
|
69
|
+
onClick: L,
|
|
70
|
+
isLoading: C,
|
|
71
|
+
children: v
|
|
72
|
+
}
|
|
73
|
+
)
|
|
74
|
+
] })
|
|
75
|
+
] })
|
|
76
|
+
}
|
|
77
|
+
)
|
|
78
|
+
}
|
|
79
|
+
);
|
|
80
|
+
}
|
|
81
|
+
export {
|
|
82
|
+
Q as Dialog
|
|
83
|
+
};
|
|
84
|
+
//# sourceMappingURL=Dialog.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Dialog.js","sources":["../../../../../src/components/Common/UI/Dialog/Dialog.tsx"],"sourcesContent":["import { useLayoutEffect, useRef, useState } from 'react'\nimport { Button } from '../Button/Button'\nimport { Grid } from '../../Grid/Grid'\nimport { type DialogProps, DialogDefaults } from './DialogTypes'\nimport styles from './Dialog.module.scss'\nimport { applyMissingDefaults } from '@/helpers/applyMissingDefaults'\nimport { useContainerBreakpoints } from '@/hooks/useContainerBreakpoints/useContainerBreakpoints'\nimport { transitionDuration } from '@/contexts/ThemeProvider/theme'\n\nexport function Dialog(rawProps: DialogProps) {\n const resolvedProps = applyMissingDefaults(rawProps, DialogDefaults)\n const {\n isOpen,\n onClose,\n onPrimaryActionClick,\n isDestructive,\n isPrimaryActionLoading,\n primaryActionLabel,\n closeActionLabel,\n title,\n children,\n shouldCloseOnBackdropClick,\n } = resolvedProps\n\n const dialogRef = useRef<HTMLDialogElement>(null)\n const backdropRef = useRef<HTMLDivElement>(null)\n const breakpoints = useContainerBreakpoints({\n ref: backdropRef,\n })\n\n const [isExiting, setIsExiting] = useState(false)\n const transitionTimeoutRef = useRef<NodeJS.Timeout | null>(null)\n const gridColumns = breakpoints.includes('small') ? ['1fr', '1fr'] : '1fr'\n\n useLayoutEffect(() => {\n const dialog = dialogRef.current\n if (!dialog) return\n\n if (transitionTimeoutRef.current) {\n clearTimeout(transitionTimeoutRef.current)\n }\n\n if (isOpen && !dialog.open) {\n dialog.showModal()\n requestAnimationFrame(() => {\n dialog.setAttribute('data-show', 'true')\n })\n } else if (!isOpen && dialog.open) {\n setIsExiting(true)\n transitionTimeoutRef.current = setTimeout(() => {\n dialog.close()\n dialog.removeAttribute('data-show')\n setIsExiting(false)\n }, transitionDuration)\n }\n\n return () => {\n if (transitionTimeoutRef.current) {\n clearTimeout(transitionTimeoutRef.current)\n }\n }\n }, [isOpen])\n\n const handleBackdropClick = (event: React.MouseEvent<HTMLDivElement>) => {\n if (event.target === event.currentTarget && shouldCloseOnBackdropClick) {\n onClose?.()\n }\n }\n\n const handleKeyDown = (event: React.KeyboardEvent<HTMLDivElement>) => {\n if (event.key === 'Escape') {\n onClose?.()\n }\n }\n\n const handleClose = () => {\n if (onClose) {\n onClose()\n }\n }\n\n const handlePrimaryAction = () => {\n if (onPrimaryActionClick) {\n onPrimaryActionClick()\n }\n }\n\n return (\n <dialog\n ref={dialogRef}\n className={styles.dialog}\n onClose={handleClose}\n data-exiting={isExiting || undefined}\n >\n <div\n ref={backdropRef}\n className={styles.backdrop}\n onClick={handleBackdropClick}\n onKeyDown={handleKeyDown}\n role=\"presentation\"\n >\n <div className={styles.content}>\n {title && <div className={styles.title}>{title}</div>}\n {children && <div className={styles.body}>{children}</div>}\n <Grid gridTemplateColumns={gridColumns} gap={12} className={styles.actions}>\n <Button variant=\"secondary\" onClick={handleClose}>\n {closeActionLabel}\n </Button>\n <Button\n variant={isDestructive ? 'error' : 'primary'}\n onClick={handlePrimaryAction}\n isLoading={isPrimaryActionLoading}\n >\n {primaryActionLabel}\n </Button>\n </Grid>\n </div>\n </div>\n </dialog>\n )\n}\n"],"names":["Dialog","rawProps","resolvedProps","applyMissingDefaults","DialogDefaults","isOpen","onClose","onPrimaryActionClick","isDestructive","isPrimaryActionLoading","primaryActionLabel","closeActionLabel","title","children","shouldCloseOnBackdropClick","dialogRef","useRef","backdropRef","breakpoints","useContainerBreakpoints","isExiting","setIsExiting","useState","transitionTimeoutRef","gridColumns","useLayoutEffect","dialog","transitionDuration","handleBackdropClick","event","handleKeyDown","handleClose","handlePrimaryAction","jsx","styles","jsxs","Grid","Button"],"mappings":";;;;;;;;;AASO,SAASA,EAAOC,GAAuB;AAC5C,QAAMC,IAAgBC,EAAqBF,GAAUG,CAAc,GAC7D;AAAA,IACJ,QAAAC;AAAA,IACA,SAAAC;AAAA,IACA,sBAAAC;AAAA,IACA,eAAAC;AAAA,IACA,wBAAAC;AAAA,IACA,oBAAAC;AAAA,IACA,kBAAAC;AAAA,IACA,OAAAC;AAAA,IACA,UAAAC;AAAA,IACA,4BAAAC;AAAA,EAAA,IACEZ,GAEEa,IAAYC,EAA0B,IAAI,GAC1CC,IAAcD,EAAuB,IAAI,GACzCE,IAAcC,EAAwB;AAAA,IAC1C,KAAKF;AAAA,EAAA,CACN,GAEK,CAACG,GAAWC,CAAY,IAAIC,EAAS,EAAK,GAC1CC,IAAuBP,EAA8B,IAAI,GACzDQ,IAAcN,EAAY,SAAS,OAAO,IAAI,CAAC,OAAO,KAAK,IAAI;AAErE,EAAAO,EAAgB,MAAM;AACpB,UAAMC,IAASX,EAAU;AACzB,QAAKW;AAEL,aAAIH,EAAqB,WACvB,aAAaA,EAAqB,OAAO,GAGvClB,KAAU,CAACqB,EAAO,QACpBA,EAAO,UAAA,GACP,sBAAsB,MAAM;AAC1B,QAAAA,EAAO,aAAa,aAAa,MAAM;AAAA,MACzC,CAAC,KACQ,CAACrB,KAAUqB,EAAO,SAC3BL,EAAa,EAAI,GACjBE,EAAqB,UAAU,WAAW,MAAM;AAC9C,QAAAG,EAAO,MAAA,GACPA,EAAO,gBAAgB,WAAW,GAClCL,EAAa,EAAK;AAAA,MACpB,GAAGM,CAAkB,IAGhB,MAAM;AACX,QAAIJ,EAAqB,WACvB,aAAaA,EAAqB,OAAO;AAAA,MAE7C;AAAA,EACF,GAAG,CAAClB,CAAM,CAAC;AAEX,QAAMuB,IAAsB,CAACC,MAA4C;AACvE,IAAIA,EAAM,WAAWA,EAAM,iBAAiBf,KAC1CR,IAAA;AAAA,EAEJ,GAEMwB,IAAgB,CAACD,MAA+C;AACpE,IAAIA,EAAM,QAAQ,YAChBvB,IAAA;AAAA,EAEJ,GAEMyB,IAAc,MAAM;AACxB,IAAIzB,KACFA,EAAA;AAAA,EAEJ,GAEM0B,IAAsB,MAAM;AAChC,IAAIzB,KACFA,EAAA;AAAA,EAEJ;AAEA,SACE,gBAAA0B;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,KAAKlB;AAAA,MACL,WAAWmB,EAAO;AAAA,MAClB,SAASH;AAAA,MACT,gBAAcX,KAAa;AAAA,MAE3B,UAAA,gBAAAa;AAAA,QAAC;AAAA,QAAA;AAAA,UACC,KAAKhB;AAAA,UACL,WAAWiB,EAAO;AAAA,UAClB,SAASN;AAAA,UACT,WAAWE;AAAA,UACX,MAAK;AAAA,UAEL,UAAA,gBAAAK,EAAC,OAAA,EAAI,WAAWD,EAAO,SACpB,UAAA;AAAA,YAAAtB,KAAS,gBAAAqB,EAAC,OAAA,EAAI,WAAWC,EAAO,OAAQ,UAAAtB,GAAM;AAAA,YAC9CC,KAAY,gBAAAoB,EAAC,OAAA,EAAI,WAAWC,EAAO,MAAO,UAAArB,GAAS;AAAA,YACpD,gBAAAsB,EAACC,KAAK,qBAAqBZ,GAAa,KAAK,IAAI,WAAWU,EAAO,SACjE,UAAA;AAAA,cAAA,gBAAAD,EAACI,GAAA,EAAO,SAAQ,aAAY,SAASN,GAClC,UAAApB,GACH;AAAA,cACA,gBAAAsB;AAAA,gBAACI;AAAA,gBAAA;AAAA,kBACC,SAAS7B,IAAgB,UAAU;AAAA,kBACnC,SAASwB;AAAA,kBACT,WAAWvB;AAAA,kBAEV,UAAAC;AAAA,gBAAA;AAAA,cAAA;AAAA,YACH,EAAA,CACF;AAAA,UAAA,EAAA,CACF;AAAA,QAAA;AAAA,MAAA;AAAA,IACF;AAAA,EAAA;AAGN;"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
const t = "_dialog_kvl1b_1", o = "_backdrop_kvl1b_21", _ = "_content_kvl1b_31", c = "_title_kvl1b_57", n = "_body_kvl1b_65", l = "_actions_kvl1b_71", s = {
|
|
2
|
+
dialog: t,
|
|
3
|
+
backdrop: o,
|
|
4
|
+
content: _,
|
|
5
|
+
title: c,
|
|
6
|
+
body: n,
|
|
7
|
+
actions: l
|
|
8
|
+
};
|
|
9
|
+
export {
|
|
10
|
+
l as actions,
|
|
11
|
+
o as backdrop,
|
|
12
|
+
n as body,
|
|
13
|
+
_ as content,
|
|
14
|
+
s as default,
|
|
15
|
+
t as dialog,
|
|
16
|
+
c as title
|
|
17
|
+
};
|
|
18
|
+
//# sourceMappingURL=Dialog.module.scss.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Dialog.module.scss.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;"}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
export interface DialogProps {
|
|
3
|
+
/**
|
|
4
|
+
* Controls whether the dialog is open or closed
|
|
5
|
+
*/
|
|
6
|
+
isOpen?: boolean;
|
|
7
|
+
/**
|
|
8
|
+
* Callback function called when the dialog should be closed
|
|
9
|
+
*/
|
|
10
|
+
onClose?: () => void;
|
|
11
|
+
/**
|
|
12
|
+
* Callback function called when the primary action button is clicked
|
|
13
|
+
*/
|
|
14
|
+
onPrimaryActionClick?: () => void;
|
|
15
|
+
/**
|
|
16
|
+
* Whether the primary action is destructive (changes button style to error variant)
|
|
17
|
+
*/
|
|
18
|
+
isDestructive?: boolean;
|
|
19
|
+
/**
|
|
20
|
+
* Whether the primary action button is in loading state
|
|
21
|
+
*/
|
|
22
|
+
isPrimaryActionLoading?: boolean;
|
|
23
|
+
/**
|
|
24
|
+
* Text label for the primary action button
|
|
25
|
+
*/
|
|
26
|
+
primaryActionLabel: string;
|
|
27
|
+
/**
|
|
28
|
+
* Text label for the close/cancel action button
|
|
29
|
+
*/
|
|
30
|
+
closeActionLabel: string;
|
|
31
|
+
/**
|
|
32
|
+
* Optional title content to be displayed at the top of the dialog
|
|
33
|
+
*/
|
|
34
|
+
title?: ReactNode;
|
|
35
|
+
/**
|
|
36
|
+
* Optional children content to be rendered in the dialog body
|
|
37
|
+
*/
|
|
38
|
+
children?: ReactNode;
|
|
39
|
+
/**
|
|
40
|
+
* Whether clicking the backdrop should close the dialog
|
|
41
|
+
*/
|
|
42
|
+
shouldCloseOnBackdropClick?: boolean;
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* Default prop values for Dialog component.
|
|
46
|
+
*/
|
|
47
|
+
export declare const DialogDefaults: {
|
|
48
|
+
readonly isOpen: false;
|
|
49
|
+
readonly isDestructive: false;
|
|
50
|
+
readonly isPrimaryActionLoading: false;
|
|
51
|
+
readonly shouldCloseOnBackdropClick: false;
|
|
52
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DialogTypes.js","sources":["../../../../../src/components/Common/UI/Dialog/DialogTypes.ts"],"sourcesContent":["import type { ReactNode } from 'react'\n\nexport interface DialogProps {\n /**\n * Controls whether the dialog is open or closed\n */\n isOpen?: boolean\n /**\n * Callback function called when the dialog should be closed\n */\n onClose?: () => void\n /**\n * Callback function called when the primary action button is clicked\n */\n onPrimaryActionClick?: () => void\n /**\n * Whether the primary action is destructive (changes button style to error variant)\n */\n isDestructive?: boolean\n /**\n * Whether the primary action button is in loading state\n */\n isPrimaryActionLoading?: boolean\n /**\n * Text label for the primary action button\n */\n primaryActionLabel: string\n /**\n * Text label for the close/cancel action button\n */\n closeActionLabel: string\n /**\n * Optional title content to be displayed at the top of the dialog\n */\n title?: ReactNode\n /**\n * Optional children content to be rendered in the dialog body\n */\n children?: ReactNode\n /**\n * Whether clicking the backdrop should close the dialog\n */\n shouldCloseOnBackdropClick?: boolean\n}\n\n/**\n * Default prop values for Dialog component.\n */\nexport const DialogDefaults = {\n isOpen: false,\n isDestructive: false,\n isPrimaryActionLoading: false,\n shouldCloseOnBackdropClick: false,\n} as const satisfies Partial<DialogProps>\n"],"names":["DialogDefaults"],"mappings":"AAgDO,MAAMA,IAAiB;AAAA,EAC5B,QAAQ;AAAA,EACR,eAAe;AAAA,EACf,wBAAwB;AAAA,EACxB,4BAA4B;AAC9B;"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { InputProps } from './InputTypes';
|
|
2
|
-
export declare function Input(
|
|
2
|
+
export declare function Input(rawProps: InputProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,41 +1,52 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { Input as
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
1
|
+
import { jsxs as e, jsx as r } from "react/jsx-runtime";
|
|
2
|
+
import { Input as p } from "react-aria-components";
|
|
3
|
+
import f from "classnames";
|
|
4
|
+
import a from "./Input.module.scss.js";
|
|
5
|
+
import { InputDefaults as v } from "./InputTypes.js";
|
|
6
|
+
import { applyMissingDefaults as u } from "../../../../helpers/applyMissingDefaults.js";
|
|
7
|
+
import h from "../../../../assets/icons/alert-circle.svg.js";
|
|
8
|
+
function E(s) {
|
|
9
|
+
const o = u(s, v), {
|
|
10
|
+
className: d,
|
|
11
|
+
adornmentStart: n,
|
|
12
|
+
adornmentEnd: i,
|
|
13
|
+
inputRef: m,
|
|
14
|
+
isDisabled: t,
|
|
15
|
+
"aria-invalid": l,
|
|
16
|
+
...c
|
|
17
|
+
} = o;
|
|
18
|
+
return /* @__PURE__ */ e(
|
|
16
19
|
"div",
|
|
17
20
|
{
|
|
18
|
-
className:
|
|
19
|
-
|
|
21
|
+
className: f(
|
|
22
|
+
a.container,
|
|
20
23
|
{
|
|
21
|
-
[
|
|
22
|
-
[
|
|
24
|
+
[a.hasAdornmentStart]: !!n,
|
|
25
|
+
[a.hasAdornmentEnd]: !!i
|
|
23
26
|
},
|
|
24
|
-
|
|
27
|
+
d
|
|
25
28
|
),
|
|
26
|
-
"data-disabled":
|
|
29
|
+
"data-disabled": t,
|
|
27
30
|
children: [
|
|
28
|
-
|
|
29
|
-
/* @__PURE__ */
|
|
30
|
-
/* @__PURE__ */
|
|
31
|
-
|
|
31
|
+
n && /* @__PURE__ */ r("div", { className: a.adornmentStart, children: n }),
|
|
32
|
+
/* @__PURE__ */ e("div", { className: a.inputContainer, children: [
|
|
33
|
+
/* @__PURE__ */ r(
|
|
34
|
+
p,
|
|
35
|
+
{
|
|
36
|
+
ref: m,
|
|
37
|
+
disabled: t,
|
|
38
|
+
"aria-invalid": l,
|
|
39
|
+
...c
|
|
40
|
+
}
|
|
41
|
+
),
|
|
42
|
+
/* @__PURE__ */ r("div", { className: a.invalidIcon, children: /* @__PURE__ */ r(h, { fontSize: 16 }) })
|
|
32
43
|
] }),
|
|
33
|
-
|
|
44
|
+
i && /* @__PURE__ */ r("div", { className: a.adornmentEnd, children: i })
|
|
34
45
|
]
|
|
35
46
|
}
|
|
36
47
|
);
|
|
37
48
|
}
|
|
38
49
|
export {
|
|
39
|
-
|
|
50
|
+
E as Input
|
|
40
51
|
};
|
|
41
52
|
//# sourceMappingURL=Input.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Input.js","sources":["../../../../../src/components/Common/UI/Input/Input.tsx"],"sourcesContent":["import { Input as AriaInput } from 'react-aria-components'\nimport classNames from 'classnames'\nimport styles from './Input.module.scss'\nimport type { InputProps } from './InputTypes'\nimport AlertCircle from '@/assets/icons/alert-circle.svg?react'\n\nexport function Input({\n className,\n
|
|
1
|
+
{"version":3,"file":"Input.js","sources":["../../../../../src/components/Common/UI/Input/Input.tsx"],"sourcesContent":["import { Input as AriaInput } from 'react-aria-components'\nimport classNames from 'classnames'\nimport styles from './Input.module.scss'\nimport type { InputProps } from './InputTypes'\nimport { InputDefaults } from './InputTypes'\nimport { applyMissingDefaults } from '@/helpers/applyMissingDefaults'\nimport AlertCircle from '@/assets/icons/alert-circle.svg?react'\n\nexport function Input(rawProps: InputProps) {\n const resolvedProps = applyMissingDefaults(rawProps, InputDefaults)\n const {\n className,\n adornmentStart,\n adornmentEnd,\n inputRef,\n isDisabled,\n 'aria-invalid': ariaInvalid,\n ...otherProps\n } = resolvedProps\n return (\n <div\n className={classNames(\n styles.container,\n {\n [styles.hasAdornmentStart as string]: !!adornmentStart,\n [styles.hasAdornmentEnd as string]: !!adornmentEnd,\n },\n className,\n )}\n data-disabled={isDisabled}\n >\n {adornmentStart && <div className={styles.adornmentStart}>{adornmentStart}</div>}\n <div className={styles.inputContainer}>\n <AriaInput\n ref={inputRef}\n disabled={isDisabled}\n aria-invalid={ariaInvalid}\n {...otherProps}\n />\n <div className={styles.invalidIcon}>\n <AlertCircle fontSize={16} />\n </div>\n </div>\n {adornmentEnd && <div className={styles.adornmentEnd}>{adornmentEnd}</div>}\n </div>\n )\n}\n"],"names":["Input","rawProps","resolvedProps","applyMissingDefaults","InputDefaults","className","adornmentStart","adornmentEnd","inputRef","isDisabled","ariaInvalid","otherProps","jsxs","classNames","styles","jsx","AriaInput","AlertCircle"],"mappings":";;;;;;;AAQO,SAASA,EAAMC,GAAsB;AAC1C,QAAMC,IAAgBC,EAAqBF,GAAUG,CAAa,GAC5D;AAAA,IACJ,WAAAC;AAAA,IACA,gBAAAC;AAAA,IACA,cAAAC;AAAA,IACA,UAAAC;AAAA,IACA,YAAAC;AAAA,IACA,gBAAgBC;AAAA,IAChB,GAAGC;AAAA,EAAA,IACDT;AACJ,SACE,gBAAAU;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,WAAWC;AAAA,QACTC,EAAO;AAAA,QACP;AAAA,UACE,CAACA,EAAO,iBAA2B,GAAG,CAAC,CAACR;AAAA,UACxC,CAACQ,EAAO,eAAyB,GAAG,CAAC,CAACP;AAAA,QAAA;AAAA,QAExCF;AAAA,MAAA;AAAA,MAEF,iBAAeI;AAAA,MAEd,UAAA;AAAA,QAAAH,KAAkB,gBAAAS,EAAC,OAAA,EAAI,WAAWD,EAAO,gBAAiB,UAAAR,GAAe;AAAA,QAC1E,gBAAAM,EAAC,OAAA,EAAI,WAAWE,EAAO,gBACrB,UAAA;AAAA,UAAA,gBAAAC;AAAA,YAACC;AAAAA,YAAA;AAAA,cACC,KAAKR;AAAA,cACL,UAAUC;AAAA,cACV,gBAAcC;AAAA,cACb,GAAGC;AAAA,YAAA;AAAA,UAAA;AAAA,UAEN,gBAAAI,EAAC,SAAI,WAAWD,EAAO,aACrB,UAAA,gBAAAC,EAACE,GAAA,EAAY,UAAU,GAAA,CAAI,EAAA,CAC7B;AAAA,QAAA,GACF;AAAA,QACCV,KAAgB,gBAAAQ,EAAC,OAAA,EAAI,WAAWD,EAAO,cAAe,UAAAP,EAAA,CAAa;AAAA,MAAA;AAAA,IAAA;AAAA,EAAA;AAG1E;"}
|
|
@@ -17,3 +17,10 @@ export interface InputProps extends Pick<InputHTMLAttributes<HTMLInputElement>,
|
|
|
17
17
|
*/
|
|
18
18
|
isDisabled?: boolean;
|
|
19
19
|
}
|
|
20
|
+
/**
|
|
21
|
+
* Default prop values for Input component.
|
|
22
|
+
* These are used by the component adapter to automatically provide defaults.
|
|
23
|
+
*/
|
|
24
|
+
export declare const InputDefaults: {
|
|
25
|
+
readonly isDisabled: false;
|
|
26
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"InputTypes.js","sources":["../../../../../src/components/Common/UI/Input/InputTypes.ts"],"sourcesContent":["import type { InputHTMLAttributes, ReactNode, Ref } from 'react'\n\nexport interface InputProps\n extends Pick<\n InputHTMLAttributes<HTMLInputElement>,\n | 'className'\n | 'id'\n | 'name'\n | 'placeholder'\n | 'type'\n | 'value'\n | 'onChange'\n | 'onBlur'\n | 'aria-describedby'\n | 'aria-invalid'\n | 'min'\n | 'max'\n > {\n /**\n * Ref for the input element\n */\n inputRef?: Ref<HTMLInputElement>\n\n /**\n * Content to display at the start of the input\n */\n adornmentStart?: ReactNode\n\n /**\n * Content to display at the end of the input\n */\n adornmentEnd?: ReactNode\n\n /**\n * Whether the input is disabled\n */\n isDisabled?: boolean\n}\n\n/**\n * Default prop values for Input component.\n * These are used by the component adapter to automatically provide defaults.\n */\nexport const InputDefaults = {\n isDisabled: false,\n} as const satisfies Partial<InputProps>\n"],"names":["InputDefaults"],"mappings":"AA2CO,MAAMA,IAAgB;AAAA,EAC3B,YAAY;AACd;"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { MenuProps } from './MenuTypes';
|
|
2
|
-
export declare function Menu(
|
|
2
|
+
export declare function Menu(rawProps: MenuProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,52 +1,54 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { Popover as
|
|
3
|
-
import
|
|
1
|
+
import { jsx as o, jsxs as C } from "react/jsx-runtime";
|
|
2
|
+
import { Popover as N, Menu as P, MenuItem as v } from "react-aria-components";
|
|
3
|
+
import r from "./Menu.module.scss.js";
|
|
4
|
+
import { MenuDefaults as x } from "./MenuTypes.js";
|
|
5
|
+
import { applyMissingDefaults as I } from "../../../../helpers/applyMissingDefaults.js";
|
|
4
6
|
import "react";
|
|
5
7
|
import "react-i18next";
|
|
6
|
-
import { useTheme as
|
|
8
|
+
import { useTheme as O } from "../../../../contexts/ThemeProvider/useTheme.js";
|
|
7
9
|
/* empty css */
|
|
8
|
-
function
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
e ||
|
|
10
|
+
function R(s) {
|
|
11
|
+
const a = I(s, x), {
|
|
12
|
+
triggerRef: i,
|
|
13
|
+
items: m,
|
|
14
|
+
isOpen: l,
|
|
15
|
+
onClose: t,
|
|
16
|
+
"aria-label": p,
|
|
17
|
+
...c
|
|
18
|
+
} = a, { container: u } = O(), f = (e) => {
|
|
19
|
+
e || t?.();
|
|
18
20
|
};
|
|
19
|
-
return /* @__PURE__ */
|
|
20
|
-
|
|
21
|
+
return /* @__PURE__ */ o(
|
|
22
|
+
N,
|
|
21
23
|
{
|
|
22
|
-
UNSTABLE_portalContainer:
|
|
23
|
-
onOpenChange:
|
|
24
|
-
isOpen:
|
|
25
|
-
triggerRef:
|
|
24
|
+
UNSTABLE_portalContainer: u.current,
|
|
25
|
+
onOpenChange: f,
|
|
26
|
+
isOpen: l,
|
|
27
|
+
triggerRef: i,
|
|
26
28
|
placement: "bottom start",
|
|
27
29
|
offset: 8,
|
|
28
30
|
shouldUpdatePosition: !0,
|
|
29
|
-
children: /* @__PURE__ */
|
|
30
|
-
|
|
31
|
+
children: /* @__PURE__ */ o(P, { onClose: t, "aria-label": p, className: r.root, ...c, children: m?.map(({ onClick: e, isDisabled: h, href: d, icon: n, label: M, ...g }, b) => /* @__PURE__ */ C(
|
|
32
|
+
v,
|
|
31
33
|
{
|
|
32
34
|
onAction: () => {
|
|
33
35
|
e();
|
|
34
36
|
},
|
|
35
|
-
isDisabled:
|
|
36
|
-
href:
|
|
37
|
-
className:
|
|
38
|
-
...
|
|
37
|
+
isDisabled: h,
|
|
38
|
+
href: d,
|
|
39
|
+
className: r.menuItem,
|
|
40
|
+
...g,
|
|
39
41
|
children: [
|
|
40
|
-
|
|
41
|
-
|
|
42
|
+
n && /* @__PURE__ */ o("div", { className: r.menuIcon, children: n }),
|
|
43
|
+
M
|
|
42
44
|
]
|
|
43
45
|
},
|
|
44
|
-
|
|
46
|
+
b
|
|
45
47
|
)) })
|
|
46
48
|
}
|
|
47
49
|
);
|
|
48
50
|
}
|
|
49
51
|
export {
|
|
50
|
-
|
|
52
|
+
R as Menu
|
|
51
53
|
};
|
|
52
54
|
//# sourceMappingURL=Menu.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Menu.js","sources":["../../../../../src/components/Common/UI/Menu/Menu.tsx"],"sourcesContent":["import { Menu as AriaMenu, MenuItem as AriaMenuItem, Popover } from 'react-aria-components'\nimport styles from './Menu.module.scss'\nimport { type MenuProps } from './MenuTypes'\nimport { useTheme } from '@/contexts/ThemeProvider'\n\nexport function Menu({\n triggerRef,\n
|
|
1
|
+
{"version":3,"file":"Menu.js","sources":["../../../../../src/components/Common/UI/Menu/Menu.tsx"],"sourcesContent":["import { Menu as AriaMenu, MenuItem as AriaMenuItem, Popover } from 'react-aria-components'\nimport styles from './Menu.module.scss'\nimport { type MenuProps, MenuDefaults } from './MenuTypes'\nimport { applyMissingDefaults } from '@/helpers/applyMissingDefaults'\nimport { useTheme } from '@/contexts/ThemeProvider'\n\nexport function Menu(rawProps: MenuProps) {\n const resolvedProps = applyMissingDefaults(rawProps, MenuDefaults)\n const {\n triggerRef,\n items,\n isOpen,\n onClose,\n 'aria-label': ariaLabel,\n ...otherProps\n } = resolvedProps\n const { container } = useTheme()\n\n const handleOpenChange = (isOpen: boolean) => {\n if (!isOpen) {\n onClose?.()\n }\n }\n\n return (\n <Popover\n UNSTABLE_portalContainer={container.current}\n onOpenChange={handleOpenChange}\n isOpen={isOpen}\n triggerRef={triggerRef}\n placement=\"bottom start\"\n offset={8}\n shouldUpdatePosition={true}\n >\n <AriaMenu onClose={onClose} aria-label={ariaLabel} className={styles.root} {...otherProps}>\n {items?.map(({ onClick, isDisabled, href, icon, label, ...itemProps }, index) => (\n <AriaMenuItem\n key={index}\n onAction={() => {\n onClick()\n }}\n isDisabled={isDisabled}\n href={href}\n className={styles.menuItem}\n {...itemProps}\n >\n {icon && <div className={styles.menuIcon}>{icon}</div>}\n {label}\n </AriaMenuItem>\n ))}\n </AriaMenu>\n </Popover>\n )\n}\n"],"names":["Menu","rawProps","resolvedProps","applyMissingDefaults","MenuDefaults","triggerRef","items","isOpen","onClose","ariaLabel","otherProps","container","useTheme","handleOpenChange","jsx","Popover","AriaMenu","styles","onClick","isDisabled","href","icon","label","itemProps","index","jsxs","AriaMenuItem"],"mappings":";;;;;;;;;AAMO,SAASA,EAAKC,GAAqB;AACxC,QAAMC,IAAgBC,EAAqBF,GAAUG,CAAY,GAC3D;AAAA,IACJ,YAAAC;AAAA,IACA,OAAAC;AAAA,IACA,QAAAC;AAAA,IACA,SAAAC;AAAA,IACA,cAAcC;AAAA,IACd,GAAGC;AAAA,EAAA,IACDR,GACE,EAAE,WAAAS,EAAA,IAAcC,EAAA,GAEhBC,IAAmB,CAACN,MAAoB;AAC5C,IAAKA,KACHC,IAAA;AAAA,EAEJ;AAEA,SACE,gBAAAM;AAAA,IAACC;AAAA,IAAA;AAAA,MACC,0BAA0BJ,EAAU;AAAA,MACpC,cAAcE;AAAA,MACd,QAAAN;AAAA,MACA,YAAAF;AAAA,MACA,WAAU;AAAA,MACV,QAAQ;AAAA,MACR,sBAAsB;AAAA,MAEtB,UAAA,gBAAAS,EAACE,KAAS,SAAAR,GAAkB,cAAYC,GAAW,WAAWQ,EAAO,MAAO,GAAGP,GAC5E,UAAAJ,GAAO,IAAI,CAAC,EAAE,SAAAY,GAAS,YAAAC,GAAY,MAAAC,GAAM,MAAAC,GAAM,OAAAC,GAAO,GAAGC,EAAA,GAAaC,MACrE,gBAAAC;AAAA,QAACC;AAAAA,QAAA;AAAA,UAEC,UAAU,MAAM;AACd,YAAAR,EAAA;AAAA,UACF;AAAA,UACA,YAAAC;AAAA,UACA,MAAAC;AAAA,UACA,WAAWH,EAAO;AAAA,UACjB,GAAGM;AAAA,UAEH,UAAA;AAAA,YAAAF,KAAQ,gBAAAP,EAAC,OAAA,EAAI,WAAWG,EAAO,UAAW,UAAAI,GAAK;AAAA,YAC/CC;AAAA,UAAA;AAAA,QAAA;AAAA,QAVIE;AAAA,MAAA,CAYR,EAAA,CACH;AAAA,IAAA;AAAA,EAAA;AAGN;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MenuTypes.js","sources":["../../../../../src/components/Common/UI/Menu/MenuTypes.ts"],"sourcesContent":["import type { ReactNode, RefObject } from 'react'\nimport type { DataAttributes } from '@/types/Helpers'\n\nexport interface MenuItem extends DataAttributes {\n /**\n * Text label for the menu item\n */\n label: string\n /**\n * Optional icon to display before the label\n */\n icon?: ReactNode\n /**\n * Callback function when the menu item is clicked\n */\n onClick: () => void\n /**\n * Disables the menu item and prevents interaction\n */\n isDisabled?: boolean\n /**\n * Optional URL to navigate to when clicked\n */\n href?: string\n}\n\nexport interface MenuProps extends DataAttributes {\n /**\n * Reference to the element that triggers the menu\n */\n triggerRef?: RefObject<Element | null>\n /**\n * Array of menu items to display\n */\n items?: MenuItem[]\n /**\n * Controls whether the menu is currently open\n */\n isOpen?: boolean\n /**\n * Callback when the menu is closed\n */\n onClose?: () => void\n /**\n * Accessible label describing the menu's purpose\n */\n 'aria-label': string\n}\n\n/**\n * Default prop values for Menu component.\n */\nexport const MenuDefaults = {\n isOpen: false,\n} as const satisfies Partial<MenuProps>\n"],"names":["MenuDefaults"],"mappings":"AAoDO,MAAMA,IAAe;AAAA,EAC1B,QAAQ;AACV;"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { InputHTMLAttributes, Ref } from 'react';
|
|
2
2
|
import { InputProps } from '../Input/InputTypes';
|
|
3
3
|
import { SharedFieldLayoutProps } from '../../FieldLayout/FieldLayoutTypes';
|
|
4
4
|
export interface NumberInputProps extends SharedFieldLayoutProps, Pick<InputHTMLAttributes<HTMLInputElement>, 'min' | 'max' | 'name' | 'id' | 'placeholder' | 'className'> {
|
|
@@ -29,7 +29,7 @@ export interface NumberInputProps extends SharedFieldLayoutProps, Pick<InputHTML
|
|
|
29
29
|
/**
|
|
30
30
|
* Handler for blur events
|
|
31
31
|
*/
|
|
32
|
-
onBlur?:
|
|
32
|
+
onBlur?: () => void;
|
|
33
33
|
/**
|
|
34
34
|
* Element to display at the start of the input
|
|
35
35
|
*/
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { RadioProps } from './RadioTypes';
|
|
2
|
-
export declare const Radio: (
|
|
2
|
+
export declare const Radio: (rawProps: RadioProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,67 +1,69 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import
|
|
3
|
-
import { useFieldIds as
|
|
1
|
+
import { jsx as r, jsxs as k } from "react/jsx-runtime";
|
|
2
|
+
import x from "classnames";
|
|
3
|
+
import { useFieldIds as C } from "../hooks/useFieldIds.js";
|
|
4
4
|
import e from "./Radio.module.scss.js";
|
|
5
|
-
import {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
value: r,
|
|
14
|
-
isInvalid: C = !1,
|
|
15
|
-
isDisabled: l = !1,
|
|
16
|
-
id: m,
|
|
17
|
-
onChange: p,
|
|
18
|
-
onBlur: h,
|
|
19
|
-
shouldVisuallyHideLabel: f,
|
|
20
|
-
className: I,
|
|
21
|
-
...u
|
|
22
|
-
}) => {
|
|
23
|
-
const { inputId: s, errorMessageId: y, descriptionId: N, ariaDescribedBy: b } = j({
|
|
24
|
-
inputId: m,
|
|
5
|
+
import { RadioDefaults as F } from "./RadioTypes.js";
|
|
6
|
+
import { applyMissingDefaults as M } from "../../../../helpers/applyMissingDefaults.js";
|
|
7
|
+
import { HorizontalFieldLayout as j } from "../../HorizontalFieldLayout/HorizontalFieldLayout.js";
|
|
8
|
+
const w = (d) => {
|
|
9
|
+
const t = M(d, F), {
|
|
10
|
+
name: l,
|
|
11
|
+
label: n,
|
|
12
|
+
description: s,
|
|
25
13
|
errorMessage: a,
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
14
|
+
isRequired: c,
|
|
15
|
+
inputRef: m,
|
|
16
|
+
value: i,
|
|
17
|
+
isInvalid: B,
|
|
18
|
+
isDisabled: p,
|
|
19
|
+
id: u,
|
|
20
|
+
onChange: h,
|
|
21
|
+
onBlur: f,
|
|
22
|
+
shouldVisuallyHideLabel: b,
|
|
23
|
+
className: g,
|
|
24
|
+
...y
|
|
25
|
+
} = t, { inputId: o, errorMessageId: I, descriptionId: v, ariaDescribedBy: N } = C({
|
|
26
|
+
inputId: u,
|
|
27
|
+
errorMessage: a,
|
|
28
|
+
description: s
|
|
29
|
+
}), D = (R) => {
|
|
30
|
+
h?.(R.target.checked);
|
|
29
31
|
};
|
|
30
|
-
return /* @__PURE__ */
|
|
31
|
-
|
|
32
|
+
return /* @__PURE__ */ r(
|
|
33
|
+
j,
|
|
32
34
|
{
|
|
33
|
-
label:
|
|
34
|
-
description:
|
|
35
|
+
label: n,
|
|
36
|
+
description: s,
|
|
35
37
|
errorMessage: a,
|
|
36
38
|
isRequired: c,
|
|
37
|
-
htmlFor:
|
|
38
|
-
errorMessageId:
|
|
39
|
-
descriptionId:
|
|
40
|
-
shouldVisuallyHideLabel:
|
|
41
|
-
className:
|
|
42
|
-
...
|
|
43
|
-
children: /* @__PURE__ */
|
|
44
|
-
/* @__PURE__ */
|
|
39
|
+
htmlFor: o,
|
|
40
|
+
errorMessageId: I,
|
|
41
|
+
descriptionId: v,
|
|
42
|
+
shouldVisuallyHideLabel: b,
|
|
43
|
+
className: g,
|
|
44
|
+
...y,
|
|
45
|
+
children: /* @__PURE__ */ k("div", { className: e.radioWrapper, children: [
|
|
46
|
+
/* @__PURE__ */ r(
|
|
45
47
|
"input",
|
|
46
48
|
{
|
|
47
49
|
type: "radio",
|
|
48
|
-
name:
|
|
49
|
-
disabled:
|
|
50
|
-
"aria-describedby":
|
|
51
|
-
checked:
|
|
52
|
-
id:
|
|
53
|
-
ref:
|
|
54
|
-
onBlur:
|
|
55
|
-
onChange:
|
|
50
|
+
name: l,
|
|
51
|
+
disabled: p,
|
|
52
|
+
"aria-describedby": N,
|
|
53
|
+
checked: i,
|
|
54
|
+
id: o,
|
|
55
|
+
ref: m,
|
|
56
|
+
onBlur: f,
|
|
57
|
+
onChange: D,
|
|
56
58
|
className: e.radioInput
|
|
57
59
|
}
|
|
58
60
|
),
|
|
59
|
-
/* @__PURE__ */
|
|
61
|
+
/* @__PURE__ */ r("div", { className: x(e.radio, { [e.checked]: i }), children: i && /* @__PURE__ */ r("div", { className: e.radioDot }) })
|
|
60
62
|
] })
|
|
61
63
|
}
|
|
62
64
|
);
|
|
63
65
|
};
|
|
64
66
|
export {
|
|
65
|
-
|
|
67
|
+
w as Radio
|
|
66
68
|
};
|
|
67
69
|
//# sourceMappingURL=Radio.js.map
|