kitunga-web 0.1.78
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/dist/features/buttons/components/Btns/Button.d.ts +32 -0
- package/dist/features/buttons/components/Btns/Button.d.ts.map +1 -0
- package/dist/features/buttons/components/Btns/Button.js +50 -0
- package/dist/features/buttons/components/Btns/Button.js.map +1 -0
- package/dist/features/buttons/components/Btns/Button.module.css +205 -0
- package/dist/features/data-display/components/Cards/ChartCard.d.ts +9 -0
- package/dist/features/data-display/components/Cards/ChartCard.d.ts.map +1 -0
- package/dist/features/data-display/components/Cards/ChartCard.js +7 -0
- package/dist/features/data-display/components/Cards/ChartCard.js.map +1 -0
- package/dist/features/data-display/components/Cards/ChartCard.module.css +27 -0
- package/dist/features/data-display/components/Cards/MetricCard.d.ts +11 -0
- package/dist/features/data-display/components/Cards/MetricCard.d.ts.map +1 -0
- package/dist/features/data-display/components/Cards/MetricCard.js +10 -0
- package/dist/features/data-display/components/Cards/MetricCard.js.map +1 -0
- package/dist/features/data-display/components/Cards/MetricCard.module.css +86 -0
- package/dist/features/data-display/components/Cards/StatCard.d.ts +15 -0
- package/dist/features/data-display/components/Cards/StatCard.d.ts.map +1 -0
- package/dist/features/data-display/components/Cards/StatCard.js +23 -0
- package/dist/features/data-display/components/Cards/StatCard.js.map +1 -0
- package/dist/features/data-display/components/Cards/StatCard.module.css +98 -0
- package/dist/features/data-display/components/Table/LineItemsTable.d.ts +4 -0
- package/dist/features/data-display/components/Table/LineItemsTable.d.ts.map +1 -0
- package/dist/features/data-display/components/Table/LineItemsTable.js +216 -0
- package/dist/features/data-display/components/Table/LineItemsTable.js.map +1 -0
- package/dist/features/data-display/components/Table/LineItemsTable.module.css +223 -0
- package/dist/features/data-display/components/Table/Table.d.ts +4 -0
- package/dist/features/data-display/components/Table/Table.d.ts.map +1 -0
- package/dist/features/data-display/components/Table/Table.js +181 -0
- package/dist/features/data-display/components/Table/Table.js.map +1 -0
- package/dist/features/data-display/components/Table/Table.module.css +305 -0
- package/dist/features/data-display/components/Table/types/LineItemsTable.d.ts +83 -0
- package/dist/features/data-display/components/Table/types/LineItemsTable.d.ts.map +1 -0
- package/dist/features/data-display/components/Table/types/LineItemsTable.js +2 -0
- package/dist/features/data-display/components/Table/types/LineItemsTable.js.map +1 -0
- package/dist/features/data-display/components/Table/types/Table.d.ts +78 -0
- package/dist/features/data-display/components/Table/types/Table.d.ts.map +1 -0
- package/dist/features/data-display/components/Table/types/Table.js +2 -0
- package/dist/features/data-display/components/Table/types/Table.js.map +1 -0
- package/dist/features/data-display/components/Tabs/PillTabs/PillTabs.d.ts +12 -0
- package/dist/features/data-display/components/Tabs/PillTabs/PillTabs.d.ts.map +1 -0
- package/dist/features/data-display/components/Tabs/PillTabs/PillTabs.js +7 -0
- package/dist/features/data-display/components/Tabs/PillTabs/PillTabs.js.map +1 -0
- package/dist/features/data-display/components/Tabs/PillTabs/PillTabs.module.css +36 -0
- package/dist/features/feedback/components/ChangedDataSummary/ChangedDataSummary.d.ts +18 -0
- package/dist/features/feedback/components/ChangedDataSummary/ChangedDataSummary.d.ts.map +1 -0
- package/dist/features/feedback/components/ChangedDataSummary/ChangedDataSummary.js +52 -0
- package/dist/features/feedback/components/ChangedDataSummary/ChangedDataSummary.js.map +1 -0
- package/dist/features/feedback/components/ChangedDataSummary/ChangedDataSummary.module.css +90 -0
- package/dist/features/feedback/components/ChangedDataSummary/getFormDataChanges.d.ts +21 -0
- package/dist/features/feedback/components/ChangedDataSummary/getFormDataChanges.d.ts.map +1 -0
- package/dist/features/feedback/components/ChangedDataSummary/getFormDataChanges.js +37 -0
- package/dist/features/feedback/components/ChangedDataSummary/getFormDataChanges.js.map +1 -0
- package/dist/features/feedback/components/CreatedDataSummary/CreatedDataSummary.d.ts +15 -0
- package/dist/features/feedback/components/CreatedDataSummary/CreatedDataSummary.d.ts.map +1 -0
- package/dist/features/feedback/components/CreatedDataSummary/CreatedDataSummary.js +56 -0
- package/dist/features/feedback/components/CreatedDataSummary/CreatedDataSummary.js.map +1 -0
- package/dist/features/feedback/components/CreatedDataSummary/CreatedDataSummary.module.css +90 -0
- package/dist/features/feedback/components/EmptyStates/SearchEmptyState/SearchEmptyState.d.ts +9 -0
- package/dist/features/feedback/components/EmptyStates/SearchEmptyState/SearchEmptyState.d.ts.map +1 -0
- package/dist/features/feedback/components/EmptyStates/SearchEmptyState/SearchEmptyState.js +9 -0
- package/dist/features/feedback/components/EmptyStates/SearchEmptyState/SearchEmptyState.js.map +1 -0
- package/dist/features/feedback/components/EmptyStates/SearchEmptyState/SearchEmptyState.module.css +36 -0
- package/dist/features/feedback/components/FlowNotice/FlowNotice.d.ts +8 -0
- package/dist/features/feedback/components/FlowNotice/FlowNotice.d.ts.map +1 -0
- package/dist/features/feedback/components/FlowNotice/FlowNotice.js +52 -0
- package/dist/features/feedback/components/FlowNotice/FlowNotice.js.map +1 -0
- package/dist/features/feedback/components/FlowNotice/FlowNotice.module.css +122 -0
- package/dist/features/feedback/components/Loading/AppLoading.d.ts +14 -0
- package/dist/features/feedback/components/Loading/AppLoading.d.ts.map +1 -0
- package/dist/features/feedback/components/Loading/AppLoading.js +17 -0
- package/dist/features/feedback/components/Loading/AppLoading.js.map +1 -0
- package/dist/features/feedback/components/Loading/AppLoading.module.css +95 -0
- package/dist/features/feedback/components/SuccesModal/ModalSuccess.d.ts +24 -0
- package/dist/features/feedback/components/SuccesModal/ModalSuccess.d.ts.map +1 -0
- package/dist/features/feedback/components/SuccesModal/ModalSuccess.js +11 -0
- package/dist/features/feedback/components/SuccesModal/ModalSuccess.js.map +1 -0
- package/dist/features/feedback/components/SuccesModal/ModalSuccess.module.css +141 -0
- package/dist/features/feedback/components/Tooltips/InfoTooltip.d.ts +10 -0
- package/dist/features/feedback/components/Tooltips/InfoTooltip.d.ts.map +1 -0
- package/dist/features/feedback/components/Tooltips/InfoTooltip.js +48 -0
- package/dist/features/feedback/components/Tooltips/InfoTooltip.js.map +1 -0
- package/dist/features/feedback/components/Tooltips/InfoTooltip.module.css +123 -0
- package/dist/features/feedback/components/Tooltips/InfoTooltipContent.d.ts +11 -0
- package/dist/features/feedback/components/Tooltips/InfoTooltipContent.d.ts.map +1 -0
- package/dist/features/feedback/components/Tooltips/InfoTooltipContent.js +8 -0
- package/dist/features/feedback/components/Tooltips/InfoTooltipContent.js.map +1 -0
- package/dist/features/feedback/components/Tooltips/InfoTooltipContent.module.css +58 -0
- package/dist/features/feedback/components/Tooltips/ProgressChecklistTooltip.d.ts +27 -0
- package/dist/features/feedback/components/Tooltips/ProgressChecklistTooltip.d.ts.map +1 -0
- package/dist/features/feedback/components/Tooltips/ProgressChecklistTooltip.js +56 -0
- package/dist/features/feedback/components/Tooltips/ProgressChecklistTooltip.js.map +1 -0
- package/dist/features/feedback/components/Tooltips/ProgressChecklistTooltip.module.css +200 -0
- package/dist/features/inputs/components/DatePicker/DatePicker.d.ts +13 -0
- package/dist/features/inputs/components/DatePicker/DatePicker.d.ts.map +1 -0
- package/dist/features/inputs/components/DatePicker/DatePicker.js +97 -0
- package/dist/features/inputs/components/DatePicker/DatePicker.js.map +1 -0
- package/dist/features/inputs/components/DatePicker/DatePicker.module.css +186 -0
- package/dist/features/inputs/components/Inputs/DateInput.d.ts +27 -0
- package/dist/features/inputs/components/Inputs/DateInput.d.ts.map +1 -0
- package/dist/features/inputs/components/Inputs/DateInput.js +236 -0
- package/dist/features/inputs/components/Inputs/DateInput.js.map +1 -0
- package/dist/features/inputs/components/Inputs/DateInput.module.css +301 -0
- package/dist/features/inputs/components/Inputs/DateRangeInput.d.ts +24 -0
- package/dist/features/inputs/components/Inputs/DateRangeInput.d.ts.map +1 -0
- package/dist/features/inputs/components/Inputs/DateRangeInput.js +10 -0
- package/dist/features/inputs/components/Inputs/DateRangeInput.js.map +1 -0
- package/dist/features/inputs/components/Inputs/DateRangeInput.module.css +24 -0
- package/dist/features/inputs/components/Inputs/NumberInput.d.ts +21 -0
- package/dist/features/inputs/components/Inputs/NumberInput.d.ts.map +1 -0
- package/dist/features/inputs/components/Inputs/NumberInput.js +82 -0
- package/dist/features/inputs/components/Inputs/NumberInput.js.map +1 -0
- package/dist/features/inputs/components/Inputs/NumberInput.module.css +148 -0
- package/dist/features/inputs/components/Inputs/PhoneInput/PhoneInput.d.ts +9 -0
- package/dist/features/inputs/components/Inputs/PhoneInput/PhoneInput.d.ts.map +1 -0
- package/dist/features/inputs/components/Inputs/PhoneInput/PhoneInput.js +187 -0
- package/dist/features/inputs/components/Inputs/PhoneInput/PhoneInput.js.map +1 -0
- package/dist/features/inputs/components/Inputs/PhoneInput/PhoneInput.module.css +259 -0
- package/dist/features/inputs/components/Inputs/PhoneInput/countries/ao.d.ts +3 -0
- package/dist/features/inputs/components/Inputs/PhoneInput/countries/ao.d.ts.map +1 -0
- package/dist/features/inputs/components/Inputs/PhoneInput/countries/ao.js +20 -0
- package/dist/features/inputs/components/Inputs/PhoneInput/countries/ao.js.map +1 -0
- package/dist/features/inputs/components/Inputs/PhoneInput/countries/br.d.ts +3 -0
- package/dist/features/inputs/components/Inputs/PhoneInput/countries/br.d.ts.map +1 -0
- package/dist/features/inputs/components/Inputs/PhoneInput/countries/br.js +9 -0
- package/dist/features/inputs/components/Inputs/PhoneInput/countries/br.js.map +1 -0
- package/dist/features/inputs/components/Inputs/PhoneInput/countries/index.d.ts +5 -0
- package/dist/features/inputs/components/Inputs/PhoneInput/countries/index.d.ts.map +1 -0
- package/dist/features/inputs/components/Inputs/PhoneInput/countries/index.js +48 -0
- package/dist/features/inputs/components/Inputs/PhoneInput/countries/index.js.map +1 -0
- package/dist/features/inputs/components/Inputs/PhoneInput/countries/pt.d.ts +3 -0
- package/dist/features/inputs/components/Inputs/PhoneInput/countries/pt.d.ts.map +1 -0
- package/dist/features/inputs/components/Inputs/PhoneInput/countries/pt.js +9 -0
- package/dist/features/inputs/components/Inputs/PhoneInput/countries/pt.js.map +1 -0
- package/dist/features/inputs/components/Inputs/PhoneInput/countries/us.d.ts +3 -0
- package/dist/features/inputs/components/Inputs/PhoneInput/countries/us.d.ts.map +1 -0
- package/dist/features/inputs/components/Inputs/PhoneInput/countries/us.js +17 -0
- package/dist/features/inputs/components/Inputs/PhoneInput/countries/us.js.map +1 -0
- package/dist/features/inputs/components/Inputs/PhoneInput/types/phone.types.d.ts +10 -0
- package/dist/features/inputs/components/Inputs/PhoneInput/types/phone.types.d.ts.map +1 -0
- package/dist/features/inputs/components/Inputs/PhoneInput/types/phone.types.js +2 -0
- package/dist/features/inputs/components/Inputs/PhoneInput/types/phone.types.js.map +1 -0
- package/dist/features/inputs/components/Inputs/SearchInput.d.ts +13 -0
- package/dist/features/inputs/components/Inputs/SearchInput.d.ts.map +1 -0
- package/dist/features/inputs/components/Inputs/SearchInput.js +12 -0
- package/dist/features/inputs/components/Inputs/SearchInput.js.map +1 -0
- package/dist/features/inputs/components/Inputs/SearchInput.module.css +107 -0
- package/dist/features/inputs/components/Inputs/StepperInput.d.ts +14 -0
- package/dist/features/inputs/components/Inputs/StepperInput.d.ts.map +1 -0
- package/dist/features/inputs/components/Inputs/StepperInput.js +44 -0
- package/dist/features/inputs/components/Inputs/StepperInput.js.map +1 -0
- package/dist/features/inputs/components/Inputs/StepperInput.module.css +96 -0
- package/dist/features/inputs/components/Inputs/TaxIdInput/TaxIdInput.d.ts +15 -0
- package/dist/features/inputs/components/Inputs/TaxIdInput/TaxIdInput.d.ts.map +1 -0
- package/dist/features/inputs/components/Inputs/TaxIdInput/TaxIdInput.js +102 -0
- package/dist/features/inputs/components/Inputs/TaxIdInput/TaxIdInput.js.map +1 -0
- package/dist/features/inputs/components/Inputs/TaxIdInput/TaxIdInput.module.css +259 -0
- package/dist/features/inputs/components/Inputs/TaxIdInput/index.d.ts +5 -0
- package/dist/features/inputs/components/Inputs/TaxIdInput/index.d.ts.map +1 -0
- package/dist/features/inputs/components/Inputs/TaxIdInput/index.js +3 -0
- package/dist/features/inputs/components/Inputs/TaxIdInput/index.js.map +1 -0
- package/dist/features/inputs/components/Inputs/TextInput.d.ts +4 -0
- package/dist/features/inputs/components/Inputs/TextInput.d.ts.map +1 -0
- package/dist/features/inputs/components/Inputs/TextInput.js +61 -0
- package/dist/features/inputs/components/Inputs/TextInput.js.map +1 -0
- package/dist/features/inputs/components/Inputs/TextInput.module.css +174 -0
- package/dist/features/inputs/components/Inputs/TextareaInput.d.ts +4 -0
- package/dist/features/inputs/components/Inputs/TextareaInput.d.ts.map +1 -0
- package/dist/features/inputs/components/Inputs/TextareaInput.js +45 -0
- package/dist/features/inputs/components/Inputs/TextareaInput.js.map +1 -0
- package/dist/features/inputs/components/Inputs/TextareaInput.module.css +144 -0
- package/dist/features/inputs/components/Inputs/types/input.types.d.ts +28 -0
- package/dist/features/inputs/components/Inputs/types/input.types.d.ts.map +1 -0
- package/dist/features/inputs/components/Inputs/types/input.types.js +2 -0
- package/dist/features/inputs/components/Inputs/types/input.types.js.map +1 -0
- package/dist/features/navigation/components/Menu/SharedMenuItem.d.ts +25 -0
- package/dist/features/navigation/components/Menu/SharedMenuItem.d.ts.map +1 -0
- package/dist/features/navigation/components/Menu/SharedMenuItem.js +40 -0
- package/dist/features/navigation/components/Menu/SharedMenuItem.js.map +1 -0
- package/dist/features/navigation/components/Menu/SharedMenuItem.module.css +219 -0
- package/dist/features/navigation/components/PageFooter/PageFooter.d.ts +13 -0
- package/dist/features/navigation/components/PageFooter/PageFooter.d.ts.map +1 -0
- package/dist/features/navigation/components/PageFooter/PageFooter.js +52 -0
- package/dist/features/navigation/components/PageFooter/PageFooter.js.map +1 -0
- package/dist/features/navigation/components/PageFooter/PageFooter.module.css +24 -0
- package/dist/features/navigation/components/PageHeader/PageHeader.d.ts +14 -0
- package/dist/features/navigation/components/PageHeader/PageHeader.d.ts.map +1 -0
- package/dist/features/navigation/components/PageHeader/PageHeader.js +22 -0
- package/dist/features/navigation/components/PageHeader/PageHeader.js.map +1 -0
- package/dist/features/navigation/components/PageHeader/PageHeader.module.css +41 -0
- package/dist/features/navigation/components/Sidebar/Sidebar.d.ts +24 -0
- package/dist/features/navigation/components/Sidebar/Sidebar.d.ts.map +1 -0
- package/dist/features/navigation/components/Sidebar/Sidebar.js +131 -0
- package/dist/features/navigation/components/Sidebar/Sidebar.js.map +1 -0
- package/dist/features/navigation/components/Sidebar/Sidebar.module.css +139 -0
- package/dist/features/overlays/components/DeleteModal/ComprehensiveDeleteModal.d.ts +66 -0
- package/dist/features/overlays/components/DeleteModal/ComprehensiveDeleteModal.d.ts.map +1 -0
- package/dist/features/overlays/components/DeleteModal/ComprehensiveDeleteModal.js +89 -0
- package/dist/features/overlays/components/DeleteModal/ComprehensiveDeleteModal.js.map +1 -0
- package/dist/features/overlays/components/DeleteModal/ComprehensiveDeleteModal.module.css +269 -0
- package/dist/features/overlays/components/Popup/Popup.d.ts +8 -0
- package/dist/features/overlays/components/Popup/Popup.d.ts.map +1 -0
- package/dist/features/overlays/components/Popup/Popup.js +23 -0
- package/dist/features/overlays/components/Popup/Popup.js.map +1 -0
- package/dist/features/overlays/components/Popup/Popup.module.css +64 -0
- package/dist/features/overlays/components/Popup/index.d.ts +3 -0
- package/dist/features/overlays/components/Popup/index.d.ts.map +1 -0
- package/dist/features/overlays/components/Popup/index.js +2 -0
- package/dist/features/overlays/components/Popup/index.js.map +1 -0
- package/dist/features/overlays/components/PrerequisiteGuardModal/PrerequisiteGuardModal.d.ts +36 -0
- package/dist/features/overlays/components/PrerequisiteGuardModal/PrerequisiteGuardModal.d.ts.map +1 -0
- package/dist/features/overlays/components/PrerequisiteGuardModal/PrerequisiteGuardModal.js +38 -0
- package/dist/features/overlays/components/PrerequisiteGuardModal/PrerequisiteGuardModal.js.map +1 -0
- package/dist/features/overlays/components/PrerequisiteGuardModal/PrerequisiteGuardModal.module.css +339 -0
- package/dist/features/overlays/components/dropdowns/DropdownMenu.d.ts +18 -0
- package/dist/features/overlays/components/dropdowns/DropdownMenu.d.ts.map +1 -0
- package/dist/features/overlays/components/dropdowns/DropdownMenu.js +34 -0
- package/dist/features/overlays/components/dropdowns/DropdownMenu.js.map +1 -0
- package/dist/features/overlays/components/dropdowns/DropdownMenu.module.css +23 -0
- package/dist/features/patterns/components/Form/MultiStepForm/components/FormActions.d.ts +36 -0
- package/dist/features/patterns/components/Form/MultiStepForm/components/FormActions.d.ts.map +1 -0
- package/dist/features/patterns/components/Form/MultiStepForm/components/FormActions.js +19 -0
- package/dist/features/patterns/components/Form/MultiStepForm/components/FormActions.js.map +1 -0
- package/dist/features/patterns/components/Form/MultiStepForm/components/FormActions.module.css +88 -0
- package/dist/features/patterns/components/Form/MultiStepForm/components/GenericStepRenderer.d.ts +14 -0
- package/dist/features/patterns/components/Form/MultiStepForm/components/GenericStepRenderer.d.ts.map +1 -0
- package/dist/features/patterns/components/Form/MultiStepForm/components/GenericStepRenderer.js +119 -0
- package/dist/features/patterns/components/Form/MultiStepForm/components/GenericStepRenderer.js.map +1 -0
- package/dist/features/patterns/components/Form/MultiStepForm/components/GenericStepRenderer.module.css +76 -0
- package/dist/features/patterns/components/Form/MultiStepForm/components/MultiStepForm.d.ts +3 -0
- package/dist/features/patterns/components/Form/MultiStepForm/components/MultiStepForm.d.ts.map +1 -0
- package/dist/features/patterns/components/Form/MultiStepForm/components/MultiStepForm.js +486 -0
- package/dist/features/patterns/components/Form/MultiStepForm/components/MultiStepForm.js.map +1 -0
- package/dist/features/patterns/components/Form/MultiStepForm/components/MultiStepForm.module.css +55 -0
- package/dist/features/patterns/components/Form/MultiStepForm/components/MultiStepHeader.d.ts +16 -0
- package/dist/features/patterns/components/Form/MultiStepForm/components/MultiStepHeader.d.ts.map +1 -0
- package/dist/features/patterns/components/Form/MultiStepForm/components/MultiStepHeader.js +8 -0
- package/dist/features/patterns/components/Form/MultiStepForm/components/MultiStepHeader.js.map +1 -0
- package/dist/features/patterns/components/Form/MultiStepForm/components/MultiStepHeader.module.css +77 -0
- package/dist/features/patterns/components/Form/MultiStepForm/components/StepIndicator.d.ts +10 -0
- package/dist/features/patterns/components/Form/MultiStepForm/components/StepIndicator.d.ts.map +1 -0
- package/dist/features/patterns/components/Form/MultiStepForm/components/StepIndicator.js +9 -0
- package/dist/features/patterns/components/Form/MultiStepForm/components/StepIndicator.js.map +1 -0
- package/dist/features/patterns/components/Form/MultiStepForm/components/StepIndicator.module.css +86 -0
- package/dist/features/patterns/components/Form/MultiStepForm/components/StepsContainer.d.ts +13 -0
- package/dist/features/patterns/components/Form/MultiStepForm/components/StepsContainer.d.ts.map +1 -0
- package/dist/features/patterns/components/Form/MultiStepForm/components/StepsContainer.js +9 -0
- package/dist/features/patterns/components/Form/MultiStepForm/components/StepsContainer.js.map +1 -0
- package/dist/features/patterns/components/Form/MultiStepForm/components/StepsContainer.module.css +8 -0
- package/dist/features/patterns/components/Form/MultiStepForm/components/SuccessScreen.d.ts +20 -0
- package/dist/features/patterns/components/Form/MultiStepForm/components/SuccessScreen.d.ts.map +1 -0
- package/dist/features/patterns/components/Form/MultiStepForm/components/SuccessScreen.js +7 -0
- package/dist/features/patterns/components/Form/MultiStepForm/components/SuccessScreen.js.map +1 -0
- package/dist/features/patterns/components/Form/MultiStepForm/components/SuccessScreen.module.css +13 -0
- package/dist/features/patterns/components/Form/MultiStepForm/types/types.d.ts +216 -0
- package/dist/features/patterns/components/Form/MultiStepForm/types/types.d.ts.map +1 -0
- package/dist/features/patterns/components/Form/MultiStepForm/types/types.js +2 -0
- package/dist/features/patterns/components/Form/MultiStepForm/types/types.js.map +1 -0
- package/dist/features/patterns/components/Form/MultiStepForm/utils/constants.d.ts +6 -0
- package/dist/features/patterns/components/Form/MultiStepForm/utils/constants.d.ts.map +1 -0
- package/dist/features/patterns/components/Form/MultiStepForm/utils/constants.js +22 -0
- package/dist/features/patterns/components/Form/MultiStepForm/utils/constants.js.map +1 -0
- package/dist/features/patterns/components/Form/MultiStepForm/utils/utils.d.ts +10 -0
- package/dist/features/patterns/components/Form/MultiStepForm/utils/utils.d.ts.map +1 -0
- package/dist/features/patterns/components/Form/MultiStepForm/utils/utils.js +31 -0
- package/dist/features/patterns/components/Form/MultiStepForm/utils/utils.js.map +1 -0
- package/dist/features/patterns/components/Form/VerificationCodeStep/VerificationCodeStep.d.ts +19 -0
- package/dist/features/patterns/components/Form/VerificationCodeStep/VerificationCodeStep.d.ts.map +1 -0
- package/dist/features/patterns/components/Form/VerificationCodeStep/VerificationCodeStep.js +104 -0
- package/dist/features/patterns/components/Form/VerificationCodeStep/VerificationCodeStep.js.map +1 -0
- package/dist/features/patterns/components/Form/VerificationCodeStep/VerificationCodeStep.module.css +55 -0
- package/dist/features/selects/components/Selects/CustomSelect.d.ts +27 -0
- package/dist/features/selects/components/Selects/CustomSelect.d.ts.map +1 -0
- package/dist/features/selects/components/Selects/CustomSelect.js +53 -0
- package/dist/features/selects/components/Selects/CustomSelect.js.map +1 -0
- package/dist/features/selects/components/Selects/CustomSelect.module.css +307 -0
- package/dist/features/uploads/components/ImageUpload/ImageUpload.d.ts +12 -0
- package/dist/features/uploads/components/ImageUpload/ImageUpload.d.ts.map +1 -0
- package/dist/features/uploads/components/ImageUpload/ImageUpload.js +178 -0
- package/dist/features/uploads/components/ImageUpload/ImageUpload.js.map +1 -0
- package/dist/features/uploads/components/ImageUpload/ImageUpload.module.css +254 -0
- package/dist/features/uploads/components/VideoUpload/VideoUpload.d.ts +12 -0
- package/dist/features/uploads/components/VideoUpload/VideoUpload.d.ts.map +1 -0
- package/dist/features/uploads/components/VideoUpload/VideoUpload.js +183 -0
- package/dist/features/uploads/components/VideoUpload/VideoUpload.js.map +1 -0
- package/dist/features/uploads/components/VideoUpload/VideoUpload.module.css +277 -0
- package/dist/features/uploads/components/VideoUpload/index.d.ts +2 -0
- package/dist/features/uploads/components/VideoUpload/index.d.ts.map +1 -0
- package/dist/features/uploads/components/VideoUpload/index.js +2 -0
- package/dist/features/uploads/components/VideoUpload/index.js.map +1 -0
- package/dist/index.d.ts +5 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +5 -0
- package/dist/index.js.map +1 -0
- package/dist/shared/styles/globals.css +80 -0
- package/dist/shared/styles/tokens.css +138 -0
- package/dist/shared/utils/devDelay.d.ts +8 -0
- package/dist/shared/utils/devDelay.d.ts.map +1 -0
- package/dist/shared/utils/devDelay.js +11 -0
- package/dist/shared/utils/devDelay.js.map +1 -0
- package/dist/shared/utils/files.d.ts +9 -0
- package/dist/shared/utils/files.d.ts.map +1 -0
- package/dist/shared/utils/files.js +26 -0
- package/dist/shared/utils/files.js.map +1 -0
- package/dist/shared/utils/formatCurrency.d.ts +24 -0
- package/dist/shared/utils/formatCurrency.d.ts.map +1 -0
- package/dist/shared/utils/formatCurrency.js +96 -0
- package/dist/shared/utils/formatCurrency.js.map +1 -0
- package/dist/shared/utils/location/countries/ao.d.ts +3 -0
- package/dist/shared/utils/location/countries/ao.d.ts.map +1 -0
- package/dist/shared/utils/location/countries/ao.js +52 -0
- package/dist/shared/utils/location/countries/ao.js.map +1 -0
- package/dist/shared/utils/location/countries/ao.json +254 -0
- package/dist/shared/utils/location/countries/ao.official-2026.json +254 -0
- package/dist/shared/utils/location/countries/br.d.ts +3 -0
- package/dist/shared/utils/location/countries/br.d.ts.map +1 -0
- package/dist/shared/utils/location/countries/br.js +33 -0
- package/dist/shared/utils/location/countries/br.js.map +1 -0
- package/dist/shared/utils/location/countries/mz.d.ts +3 -0
- package/dist/shared/utils/location/countries/mz.d.ts.map +1 -0
- package/dist/shared/utils/location/countries/mz.js +17 -0
- package/dist/shared/utils/location/countries/mz.js.map +1 -0
- package/dist/shared/utils/location/countries/ng.d.ts +3 -0
- package/dist/shared/utils/location/countries/ng.d.ts.map +1 -0
- package/dist/shared/utils/location/countries/ng.js +43 -0
- package/dist/shared/utils/location/countries/ng.js.map +1 -0
- package/dist/shared/utils/location/countries/pt.d.ts +3 -0
- package/dist/shared/utils/location/countries/pt.d.ts.map +1 -0
- package/dist/shared/utils/location/countries/pt.js +26 -0
- package/dist/shared/utils/location/countries/pt.js.map +1 -0
- package/dist/shared/utils/location/countries/us.d.ts +3 -0
- package/dist/shared/utils/location/countries/us.d.ts.map +1 -0
- package/dist/shared/utils/location/countries/us.js +57 -0
- package/dist/shared/utils/location/countries/us.js.map +1 -0
- package/dist/shared/utils/location/countries/za.d.ts +3 -0
- package/dist/shared/utils/location/countries/za.d.ts.map +1 -0
- package/dist/shared/utils/location/countries/za.js +15 -0
- package/dist/shared/utils/location/countries/za.js.map +1 -0
- package/dist/shared/utils/location/index.d.ts +14 -0
- package/dist/shared/utils/location/index.d.ts.map +1 -0
- package/dist/shared/utils/location/index.js +131 -0
- package/dist/shared/utils/location/index.js.map +1 -0
- package/dist/shared/utils/location/types.d.ts +24 -0
- package/dist/shared/utils/location/types.d.ts.map +1 -0
- package/dist/shared/utils/location/types.js +2 -0
- package/dist/shared/utils/location/types.js.map +1 -0
- package/dist/shared/utils/logger.d.ts +43 -0
- package/dist/shared/utils/logger.d.ts.map +1 -0
- package/dist/shared/utils/logger.js +139 -0
- package/dist/shared/utils/logger.js.map +1 -0
- package/dist/shared/utils/maskedDecimal.d.ts +8 -0
- package/dist/shared/utils/maskedDecimal.d.ts.map +1 -0
- package/dist/shared/utils/maskedDecimal.js +42 -0
- package/dist/shared/utils/maskedDecimal.js.map +1 -0
- package/dist/shared/utils/slug.d.ts +12 -0
- package/dist/shared/utils/slug.d.ts.map +1 -0
- package/dist/shared/utils/slug.js +31 -0
- package/dist/shared/utils/slug.js.map +1 -0
- package/dist/shared/utils/tax-id/countries/ao.d.ts +11 -0
- package/dist/shared/utils/tax-id/countries/ao.d.ts.map +1 -0
- package/dist/shared/utils/tax-id/countries/ao.js +115 -0
- package/dist/shared/utils/tax-id/countries/ao.js.map +1 -0
- package/dist/shared/utils/tax-id/countries/br.d.ts +3 -0
- package/dist/shared/utils/tax-id/countries/br.d.ts.map +1 -0
- package/dist/shared/utils/tax-id/countries/br.js +24 -0
- package/dist/shared/utils/tax-id/countries/br.js.map +1 -0
- package/dist/shared/utils/tax-id/countries/index.d.ts +8 -0
- package/dist/shared/utils/tax-id/countries/index.d.ts.map +1 -0
- package/dist/shared/utils/tax-id/countries/index.js +12 -0
- package/dist/shared/utils/tax-id/countries/index.js.map +1 -0
- package/dist/shared/utils/tax-id/countries/pt.d.ts +3 -0
- package/dist/shared/utils/tax-id/countries/pt.d.ts.map +1 -0
- package/dist/shared/utils/tax-id/countries/pt.js +24 -0
- package/dist/shared/utils/tax-id/countries/pt.js.map +1 -0
- package/dist/shared/utils/tax-id/countries/us.d.ts +3 -0
- package/dist/shared/utils/tax-id/countries/us.d.ts.map +1 -0
- package/dist/shared/utils/tax-id/countries/us.js +24 -0
- package/dist/shared/utils/tax-id/countries/us.js.map +1 -0
- package/dist/shared/utils/tax-id/index.d.ts +14 -0
- package/dist/shared/utils/tax-id/index.d.ts.map +1 -0
- package/dist/shared/utils/tax-id/index.js +140 -0
- package/dist/shared/utils/tax-id/index.js.map +1 -0
- package/dist/shared/utils/tax-id/types.d.ts +21 -0
- package/dist/shared/utils/tax-id/types.d.ts.map +1 -0
- package/dist/shared/utils/tax-id/types.js +2 -0
- package/dist/shared/utils/tax-id/types.js.map +1 -0
- package/dist/styles.d.ts +2 -0
- package/dist/styles.d.ts.map +1 -0
- package/dist/styles.js +2 -0
- package/dist/styles.js.map +1 -0
- package/dist/tokens.d.ts +2 -0
- package/dist/tokens.d.ts.map +1 -0
- package/dist/tokens.js +2 -0
- package/dist/tokens.js.map +1 -0
- package/dist/ui.d.ts +67 -0
- package/dist/ui.d.ts.map +1 -0
- package/dist/ui.js +39 -0
- package/dist/ui.js.map +1 -0
- package/dist/utils.d.ts +7 -0
- package/dist/utils.d.ts.map +1 -0
- package/dist/utils.js +4 -0
- package/dist/utils.js.map +1 -0
- package/package.json +80 -0
package/dist/features/patterns/components/Form/MultiStepForm/components/MultiStepHeader.module.css
ADDED
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
.headerRoot {
|
|
2
|
+
display: flex;
|
|
3
|
+
flex-direction: column;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
.formHeader {
|
|
7
|
+
display: flex;
|
|
8
|
+
flex-direction: column;
|
|
9
|
+
padding: var(--spacing-md) var(--spacing-md) 0;
|
|
10
|
+
gap: 0.25rem;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.headerTop {
|
|
14
|
+
display: flex;
|
|
15
|
+
align-items: center;
|
|
16
|
+
width: 100%;
|
|
17
|
+
justify-content: space-between;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.headerContent {
|
|
21
|
+
display: flex;
|
|
22
|
+
flex-direction: column;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.title {
|
|
26
|
+
font-size: 1.2rem;
|
|
27
|
+
font-weight: 600;
|
|
28
|
+
color: #1f2937;
|
|
29
|
+
margin: 0;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
.subtitle {
|
|
33
|
+
font-size: 0.875rem;
|
|
34
|
+
color: var(--text-secondary);
|
|
35
|
+
margin: 10px 0 10px;
|
|
36
|
+
background-color: rgba(77, 90, 121, 0.04);
|
|
37
|
+
width: 100%;
|
|
38
|
+
padding: var(--spacing-sm-large) var(--spacing-md);
|
|
39
|
+
border: 1px dashed var(--border-divider);
|
|
40
|
+
border-radius: var(--radius-sm);
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
.closeButton {
|
|
44
|
+
background: none;
|
|
45
|
+
border: none;
|
|
46
|
+
cursor: pointer;
|
|
47
|
+
color: var(--text-tertiary);
|
|
48
|
+
padding: var(--spacing-xs);
|
|
49
|
+
display: flex;
|
|
50
|
+
align-items: center;
|
|
51
|
+
justify-content: center;
|
|
52
|
+
transition: color 0.2s;
|
|
53
|
+
border-radius: var(--radius-sm);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
.closeButton:hover {
|
|
57
|
+
color: var(--text-primary);
|
|
58
|
+
background-color: var(--bg-hover);
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
.headerRight {
|
|
62
|
+
display: flex;
|
|
63
|
+
align-items: center;
|
|
64
|
+
gap: var(--spacing-sm);
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
.rightMeta {
|
|
68
|
+
display: inline-flex;
|
|
69
|
+
align-items: center;
|
|
70
|
+
padding: 4px 10px;
|
|
71
|
+
border-radius: 999px;
|
|
72
|
+
border: 1px solid var(--border-color, #d1d5db);
|
|
73
|
+
font-size: 12px;
|
|
74
|
+
color: var(--text-secondary);
|
|
75
|
+
background: var(--bg-secondary, #f8fafc);
|
|
76
|
+
white-space: nowrap;
|
|
77
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ReactNode } from "react";
|
|
2
|
+
import type { StepConfig } from "../types/types";
|
|
3
|
+
interface StepIndicatorProps {
|
|
4
|
+
currentStep: number;
|
|
5
|
+
steps: StepConfig[];
|
|
6
|
+
stepLabel?: ReactNode;
|
|
7
|
+
}
|
|
8
|
+
export declare function StepIndicator({ currentStep, steps, stepLabel }: StepIndicatorProps): import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export {};
|
|
10
|
+
//# sourceMappingURL=StepIndicator.d.ts.map
|
package/dist/features/patterns/components/Form/MultiStepForm/components/StepIndicator.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"StepIndicator.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/patterns/components/Form/MultiStepForm/components/StepIndicator.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAIlC,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAEjD,UAAU,kBAAkB;IAC1B,WAAW,EAAE,MAAM,CAAC;IACpB,KAAK,EAAE,UAAU,EAAE,CAAC;IACpB,SAAS,CAAC,EAAE,SAAS,CAAC;CACvB;AAED,wBAAgB,aAAa,CAAC,EAAE,WAAW,EAAE,KAAK,EAAE,SAAS,EAAE,EAAE,kBAAkB,2CAsBlF"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { CheckCircle } from "lucide-react";
|
|
3
|
+
import styles from "./StepIndicator.module.css";
|
|
4
|
+
export function StepIndicator({ currentStep, steps, stepLabel }) {
|
|
5
|
+
var _a, _b;
|
|
6
|
+
const fallbackLabel = `Etapa ${currentStep} de ${steps.length}: ${(_b = (_a = steps.find((step) => step.id === currentStep)) === null || _a === void 0 ? void 0 : _a.title) !== null && _b !== void 0 ? _b : ""}`;
|
|
7
|
+
return (_jsxs("div", { className: styles.indicatorContainer, children: [_jsx("div", { className: styles.stepsIndicator, children: steps.map((step) => (_jsxs("div", { className: `${styles.stepContainer} ${step.hidden ? styles.stepHidden : ""}`, children: [_jsx("div", { className: `${styles.stepCircle} ${currentStep >= step.id ? styles.stepActive : ""}`, children: currentStep > step.id ? _jsx(CheckCircle, { size: 16 }) : step.id }), step.id < steps.length && (_jsx("div", { className: `${styles.stepLine} ${currentStep > step.id ? styles.stepLineActive : ""}` }))] }, step.id))) }), _jsx("p", { className: styles.stepLabel, children: stepLabel !== null && stepLabel !== void 0 ? stepLabel : fallbackLabel })] }));
|
|
8
|
+
}
|
|
9
|
+
//# sourceMappingURL=StepIndicator.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"StepIndicator.js","sourceRoot":"","sources":["../../../../../../../src/features/patterns/components/Form/MultiStepForm/components/StepIndicator.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAE3C,OAAO,MAAM,MAAM,4BAA4B,CAAC;AAShD,MAAM,UAAU,aAAa,CAAC,EAAE,WAAW,EAAE,KAAK,EAAE,SAAS,EAAsB;;IACjF,MAAM,aAAa,GAAG,SAAS,WAAW,OAAO,KAAK,CAAC,MAAM,KAC3D,MAAA,MAAA,KAAK,CAAC,IAAI,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,EAAE,KAAK,WAAW,CAAC,0CAAE,KAAK,mCAAI,EAC1D,EAAE,CAAC;IAEH,OAAO,CACL,eAAK,SAAS,EAAE,MAAM,CAAC,kBAAkB,aACvC,cAAK,SAAS,EAAE,MAAM,CAAC,cAAc,YAClC,KAAK,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,CACnB,eAAmB,SAAS,EAAE,GAAG,MAAM,CAAC,aAAa,IAAI,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,CAAC,UAAU,CAAC,CAAC,CAAC,EAAE,EAAE,aAC7F,cAAK,SAAS,EAAE,GAAG,MAAM,CAAC,UAAU,IAAI,WAAW,IAAI,IAAI,CAAC,EAAE,CAAC,CAAC,CAAC,MAAM,CAAC,UAAU,CAAC,CAAC,CAAC,EAAE,EAAE,YACtF,WAAW,GAAG,IAAI,CAAC,EAAE,CAAC,CAAC,CAAC,KAAC,WAAW,IAAC,IAAI,EAAE,EAAE,GAAI,CAAC,CAAC,CAAC,IAAI,CAAC,EAAE,GACxD,EACL,IAAI,CAAC,EAAE,GAAG,KAAK,CAAC,MAAM,IAAI,CACzB,cAAK,SAAS,EAAE,GAAG,MAAM,CAAC,QAAQ,IAAI,WAAW,GAAG,IAAI,CAAC,EAAE,CAAC,CAAC,CAAC,MAAM,CAAC,cAAc,CAAC,CAAC,CAAC,EAAE,EAAE,GAAI,CAC/F,KANO,IAAI,CAAC,EAAE,CAOX,CACP,CAAC,GACE,EACN,YAAG,SAAS,EAAE,MAAM,CAAC,SAAS,YAAG,SAAS,aAAT,SAAS,cAAT,SAAS,GAAI,aAAa,GAAK,IAC5D,CACP,CAAC;AACJ,CAAC"}
|
package/dist/features/patterns/components/Form/MultiStepForm/components/StepIndicator.module.css
ADDED
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
.indicatorContainer {
|
|
2
|
+
display: flex;
|
|
3
|
+
flex-direction: column;
|
|
4
|
+
padding: var(--spacing-md);
|
|
5
|
+
border-bottom: 1px solid var(--border-divider);
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
.stepsIndicator {
|
|
9
|
+
display: flex;
|
|
10
|
+
align-items: center;
|
|
11
|
+
justify-content: center;
|
|
12
|
+
gap: 0.5rem;
|
|
13
|
+
margin-bottom: 0.75rem;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.stepContainer {
|
|
17
|
+
display: flex;
|
|
18
|
+
align-items: center;
|
|
19
|
+
gap: 0.5rem;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.stepContainer:last-child {
|
|
23
|
+
flex: 0;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.stepHidden {
|
|
27
|
+
opacity: 0.3;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.stepCircle {
|
|
31
|
+
width: 30px;
|
|
32
|
+
height: 30px;
|
|
33
|
+
border-radius: 50%;
|
|
34
|
+
display: flex;
|
|
35
|
+
align-items: center;
|
|
36
|
+
justify-content: center;
|
|
37
|
+
background-color: var(--bg-secondary);
|
|
38
|
+
border: 2px solid var(--border-divider);
|
|
39
|
+
color: var(--text-secondary);
|
|
40
|
+
font-weight: 600;
|
|
41
|
+
font-size: 0.875rem;
|
|
42
|
+
flex-shrink: 0;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.stepCircle.stepActive {
|
|
46
|
+
background-color: var(--color-primary);
|
|
47
|
+
border-color: var(--color-primary);
|
|
48
|
+
color: white;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
.stepLine {
|
|
52
|
+
width: 35px;
|
|
53
|
+
height: 2px;
|
|
54
|
+
background-color: var(--border-divider);
|
|
55
|
+
transition: all var(--transition-fast);
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
.stepLineActive {
|
|
59
|
+
background-color: var(--color-primary);
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
.stepLabel {
|
|
63
|
+
text-align: center;
|
|
64
|
+
color: var(--text-secondary);
|
|
65
|
+
font-size: 0.9rem;
|
|
66
|
+
margin: 0;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
@media (max-width: 456px) and (max-height: 1000px) {
|
|
70
|
+
|
|
71
|
+
|
|
72
|
+
.stepsIndicator {
|
|
73
|
+
justify-content: flex-start;
|
|
74
|
+
overflow: scroll;
|
|
75
|
+
padding-left: var(--spacing-md);
|
|
76
|
+
padding-right: var(--spacing-md);
|
|
77
|
+
margin-left: calc(-1 * var(--spacing-md));
|
|
78
|
+
margin-right: calc(-1 * var(--spacing-md));
|
|
79
|
+
scrollbar-width: none;
|
|
80
|
+
-ms-overflow-style: none;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
.stepsIndicator::-webkit-scrollbar {
|
|
84
|
+
display: none;
|
|
85
|
+
}
|
|
86
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { CSSProperties, ReactNode } from "react";
|
|
2
|
+
interface StepDefinition {
|
|
3
|
+
id: number;
|
|
4
|
+
component: ReactNode;
|
|
5
|
+
contentPadding?: CSSProperties['padding'];
|
|
6
|
+
}
|
|
7
|
+
interface StepsContainerProps {
|
|
8
|
+
currentStep: number;
|
|
9
|
+
steps: StepDefinition[];
|
|
10
|
+
}
|
|
11
|
+
export declare function StepsContainer({ currentStep, steps }: StepsContainerProps): import("react/jsx-runtime").JSX.Element | null;
|
|
12
|
+
export {};
|
|
13
|
+
//# sourceMappingURL=StepsContainer.d.ts.map
|
package/dist/features/patterns/components/Form/MultiStepForm/components/StepsContainer.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"StepsContainer.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/patterns/components/Form/MultiStepForm/components/StepsContainer.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAIjD,UAAU,cAAc;IACtB,EAAE,EAAE,MAAM,CAAC;IACX,SAAS,EAAE,SAAS,CAAC;IACrB,cAAc,CAAC,EAAE,aAAa,CAAC,SAAS,CAAC,CAAC;CAC3C;AAED,UAAU,mBAAmB;IAC3B,WAAW,EAAE,MAAM,CAAC;IACpB,KAAK,EAAE,cAAc,EAAE,CAAC;CACzB;AAED,wBAAgB,cAAc,CAAC,EAAE,WAAW,EAAE,KAAK,EAAE,EAAE,mBAAmB,kDAUzE"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import styles from "./StepsContainer.module.css";
|
|
3
|
+
export function StepsContainer({ currentStep, steps }) {
|
|
4
|
+
const current = steps.find((step) => step.id === currentStep);
|
|
5
|
+
if (!current)
|
|
6
|
+
return null;
|
|
7
|
+
return (_jsx("div", { className: styles.stepContent, style: current.contentPadding !== undefined ? { padding: current.contentPadding } : undefined, children: current.component }));
|
|
8
|
+
}
|
|
9
|
+
//# sourceMappingURL=StepsContainer.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"StepsContainer.js","sourceRoot":"","sources":["../../../../../../../src/features/patterns/components/Form/MultiStepForm/components/StepsContainer.tsx"],"names":[],"mappings":";AAEA,OAAO,MAAM,MAAM,6BAA6B,CAAC;AAajD,MAAM,UAAU,cAAc,CAAC,EAAE,WAAW,EAAE,KAAK,EAAuB;IACxE,MAAM,OAAO,GAAG,KAAK,CAAC,IAAI,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,EAAE,KAAK,WAAW,CAAC,CAAC;IAE9D,IAAI,CAAC,OAAO;QAAE,OAAO,IAAI,CAAC;IAE1B,OAAO,CACL,cAAK,SAAS,EAAE,MAAM,CAAC,WAAW,EAAE,KAAK,EAAE,OAAO,CAAC,cAAc,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,OAAO,EAAE,OAAO,CAAC,cAAc,EAAE,CAAC,CAAC,CAAC,SAAS,YAC9H,OAAO,CAAC,SAAS,GACd,CACP,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { type ModalSuccessSection } from '@/features/feedback/components/SuccesModal/ModalSuccess';
|
|
2
|
+
import type { MultiStepMode } from "../types/types";
|
|
3
|
+
interface SuccessScreenProps {
|
|
4
|
+
mode: MultiStepMode;
|
|
5
|
+
sections: ModalSuccessSection[];
|
|
6
|
+
onClose: () => void;
|
|
7
|
+
className?: string;
|
|
8
|
+
style?: React.CSSProperties;
|
|
9
|
+
successTitle: React.ReactNode;
|
|
10
|
+
successMessage: React.ReactNode;
|
|
11
|
+
successContent?: React.ReactNode;
|
|
12
|
+
primaryActionLabel?: string;
|
|
13
|
+
secondaryActionLabel?: string;
|
|
14
|
+
onSecondaryAction?: () => void;
|
|
15
|
+
/** Quando false, botão(ões) do success ficam com largura natural à direita. Default true. */
|
|
16
|
+
fullWidthButtons?: boolean;
|
|
17
|
+
}
|
|
18
|
+
export declare function SuccessScreen({ mode, sections, onClose, className, style, successTitle, successMessage, successContent, primaryActionLabel, secondaryActionLabel, onSecondaryAction, fullWidthButtons, }: SuccessScreenProps): import("react/jsx-runtime").JSX.Element;
|
|
19
|
+
export {};
|
|
20
|
+
//# sourceMappingURL=SuccessScreen.d.ts.map
|
package/dist/features/patterns/components/Form/MultiStepForm/components/SuccessScreen.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SuccessScreen.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/patterns/components/Form/MultiStepForm/components/SuccessScreen.tsx"],"names":[],"mappings":"AAAA,OAAqB,EAAE,KAAK,mBAAmB,EAAE,MAAM,yDAAyD,CAAC;AAEjH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAEpD,UAAU,kBAAkB;IAC1B,IAAI,EAAE,aAAa,CAAC;IACpB,QAAQ,EAAE,mBAAmB,EAAE,CAAC;IAChC,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAC5B,YAAY,EAAE,KAAK,CAAC,SAAS,CAAC;IAC9B,cAAc,EAAE,KAAK,CAAC,SAAS,CAAC;IAChC,cAAc,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACjC,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B,iBAAiB,CAAC,EAAE,MAAM,IAAI,CAAC;IAC/B,6FAA6F;IAC7F,gBAAgB,CAAC,EAAE,OAAO,CAAC;CAC5B;AAED,wBAAgB,aAAa,CAAC,EAC5B,IAAI,EACJ,QAAQ,EACR,OAAO,EACP,SAAS,EACT,KAAK,EACL,YAAY,EACZ,cAAc,EACd,cAAc,EACd,kBAA6B,EAC7B,oBAAoB,EACpB,iBAAiB,EACjB,gBAAwB,GACzB,EAAE,kBAAkB,2CAmBpB"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import ModalSuccess from '@/features/feedback/components/SuccesModal/ModalSuccess';
|
|
3
|
+
import styles from "./SuccessScreen.module.css";
|
|
4
|
+
export function SuccessScreen({ mode, sections, onClose, className, style, successTitle, successMessage, successContent, primaryActionLabel = "Fechar", secondaryActionLabel, onSecondaryAction, fullWidthButtons = false, }) {
|
|
5
|
+
return (_jsx("div", { className: className !== null && className !== void 0 ? className : styles.formContainer, style: style, children: _jsx("div", { className: styles.successWrapper, children: _jsx(ModalSuccess, { title: successTitle, message: successMessage, sections: sections, primaryActionLabel: primaryActionLabel, onPrimaryAction: onClose, secondaryActionLabel: secondaryActionLabel, onSecondaryAction: onSecondaryAction, fullWidthButtons: fullWidthButtons, children: successContent }) }) }));
|
|
6
|
+
}
|
|
7
|
+
//# sourceMappingURL=SuccessScreen.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SuccessScreen.js","sourceRoot":"","sources":["../../../../../../../src/features/patterns/components/Form/MultiStepForm/components/SuccessScreen.tsx"],"names":[],"mappings":";AAAA,OAAO,YAA0C,MAAM,yDAAyD,CAAC;AACjH,OAAO,MAAM,MAAM,4BAA4B,CAAC;AAmBhD,MAAM,UAAU,aAAa,CAAC,EAC5B,IAAI,EACJ,QAAQ,EACR,OAAO,EACP,SAAS,EACT,KAAK,EACL,YAAY,EACZ,cAAc,EACd,cAAc,EACd,kBAAkB,GAAG,QAAQ,EAC7B,oBAAoB,EACpB,iBAAiB,EACjB,gBAAgB,GAAG,KAAK,GACL;IACnB,OAAO,CACL,cAAK,SAAS,EAAE,SAAS,aAAT,SAAS,cAAT,SAAS,GAAI,MAAM,CAAC,aAAa,EAAE,KAAK,EAAE,KAAK,YAC7D,cAAK,SAAS,EAAE,MAAM,CAAC,cAAc,YACnC,KAAC,YAAY,IACX,KAAK,EAAE,YAAY,EACnB,OAAO,EAAE,cAAc,EACvB,QAAQ,EAAE,QAAQ,EAClB,kBAAkB,EAAE,kBAAkB,EACtC,eAAe,EAAE,OAAO,EACxB,oBAAoB,EAAE,oBAAoB,EAC1C,iBAAiB,EAAE,iBAAiB,EACpC,gBAAgB,EAAE,gBAAgB,YAEjC,cAAc,GACF,GACX,GACF,CACP,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,216 @@
|
|
|
1
|
+
import { CSSProperties, InputHTMLAttributes, ReactNode } from "react";
|
|
2
|
+
import type { Option } from '@/features/selects/components/Selects/CustomSelect';
|
|
3
|
+
import type { TaxIdDocumentKind } from '@/shared/utils/tax-id';
|
|
4
|
+
export type MultiStepMode = "create" | "edit";
|
|
5
|
+
export interface StepConfig {
|
|
6
|
+
id: number;
|
|
7
|
+
title: string;
|
|
8
|
+
hidden?: boolean;
|
|
9
|
+
skip?: boolean;
|
|
10
|
+
}
|
|
11
|
+
export interface RequirementItem {
|
|
12
|
+
key: string;
|
|
13
|
+
label: string;
|
|
14
|
+
completed: boolean;
|
|
15
|
+
pendingMessage?: string;
|
|
16
|
+
optional?: boolean;
|
|
17
|
+
}
|
|
18
|
+
export interface ValidationErrors {
|
|
19
|
+
[key: string]: string;
|
|
20
|
+
}
|
|
21
|
+
export interface StepRenderProps<TValues> {
|
|
22
|
+
formData: TValues;
|
|
23
|
+
errors: ValidationErrors;
|
|
24
|
+
onFieldChange: (field: string, value: any) => void;
|
|
25
|
+
mode: MultiStepMode;
|
|
26
|
+
}
|
|
27
|
+
export interface StepContent<TValues> {
|
|
28
|
+
id: number;
|
|
29
|
+
render: (props: StepRenderProps<TValues>) => ReactNode;
|
|
30
|
+
contentPadding?: CSSProperties['padding'];
|
|
31
|
+
}
|
|
32
|
+
export type ValidationByStep<TValues> = Record<number, (values: TValues, mode: MultiStepMode) => ValidationErrors>;
|
|
33
|
+
export type StepFieldKeysResolver<TValues> = (values: TValues, mode: MultiStepMode) => string[];
|
|
34
|
+
export type RequiredFields<TValues> = Record<number, string[] | StepFieldKeysResolver<TValues>>;
|
|
35
|
+
export type StepCompletedRulesResolver<TValues> = (values: TValues, mode: MultiStepMode) => Array<(values: TValues, mode: MultiStepMode) => boolean>;
|
|
36
|
+
export type CompletedRules<TValues> = Record<number, Array<(values: TValues, mode: MultiStepMode) => boolean> | StepCompletedRulesResolver<TValues>>;
|
|
37
|
+
export type RequirementBuilders<TValues> = Record<number, (values: TValues, errors: ValidationErrors, mode: MultiStepMode) => RequirementItem[]>;
|
|
38
|
+
export type StepFieldDefinitionsResolver<TValues> = (values: TValues, mode: MultiStepMode) => FieldDefinition[];
|
|
39
|
+
export type StepFieldDefinitions<TValues> = Record<number, FieldDefinition[] | StepFieldDefinitionsResolver<TValues>>;
|
|
40
|
+
export interface ActionButtonIconConfig {
|
|
41
|
+
leftIcon?: ReactNode;
|
|
42
|
+
rightIcon?: ReactNode;
|
|
43
|
+
}
|
|
44
|
+
export interface MultiStepFormActionIcons {
|
|
45
|
+
cancel?: ActionButtonIconConfig;
|
|
46
|
+
previous?: ActionButtonIconConfig;
|
|
47
|
+
next?: ActionButtonIconConfig;
|
|
48
|
+
submitCreate?: ActionButtonIconConfig;
|
|
49
|
+
submitEdit?: ActionButtonIconConfig;
|
|
50
|
+
}
|
|
51
|
+
export type FieldType = "text" | "textarea" | "select" | "photo" | "phone" | "taxId" | "number" | "date";
|
|
52
|
+
export interface FieldDefinition {
|
|
53
|
+
key: string;
|
|
54
|
+
label: string;
|
|
55
|
+
type: FieldType;
|
|
56
|
+
placeholder?: string;
|
|
57
|
+
leftIcon?: ReactNode;
|
|
58
|
+
prefixText?: string;
|
|
59
|
+
required?: boolean;
|
|
60
|
+
readOnly?: boolean | ((values: any) => boolean);
|
|
61
|
+
options?: Option[];
|
|
62
|
+
hasError?: boolean;
|
|
63
|
+
inputType?: 'text' | 'email' | 'password';
|
|
64
|
+
autoComplete?: string;
|
|
65
|
+
inputMode?: InputHTMLAttributes<HTMLInputElement>['inputMode'];
|
|
66
|
+
maxLength?: number;
|
|
67
|
+
row?: number;
|
|
68
|
+
width?: "full" | "half";
|
|
69
|
+
assetKeyField?: string;
|
|
70
|
+
uploadUrl?: string;
|
|
71
|
+
tokenStorageKey?: string;
|
|
72
|
+
numberMode?: 'currency' | 'percent' | 'decimal';
|
|
73
|
+
decimals?: number;
|
|
74
|
+
taxIdCountryCode?: string;
|
|
75
|
+
taxIdDocumentKind?: TaxIdDocumentKind;
|
|
76
|
+
taxIdDocumentKindFieldKey?: string;
|
|
77
|
+
taxIdDocumentKindLocked?: boolean;
|
|
78
|
+
showTaxIdDocumentKindSelect?: boolean;
|
|
79
|
+
/** Quando true, limpa apenas o valor do input no DOM quando há erro, mantendo o erro visível */
|
|
80
|
+
resetOnValidationError?: boolean;
|
|
81
|
+
/** Chave do campo cujo valor (ISO date) será passado como `min` ao DateInput */
|
|
82
|
+
minFieldKey?: string;
|
|
83
|
+
/** Chave do campo cujo valor (ISO date) será passado como `max` ao DateInput */
|
|
84
|
+
maxFieldKey?: string;
|
|
85
|
+
/** Quando false, o DateInput seleciona a data no clique direto do dia sem botão Confirmar/Cancelar */
|
|
86
|
+
confirmOnClick?: boolean;
|
|
87
|
+
}
|
|
88
|
+
export interface StepsContent<TValues> {
|
|
89
|
+
steps: StepContent<TValues>[];
|
|
90
|
+
validationByStep?: ValidationByStep<TValues>;
|
|
91
|
+
requiredFields?: RequiredFields<TValues>;
|
|
92
|
+
completedRules?: CompletedRules<TValues>;
|
|
93
|
+
requirementBuilders?: RequirementBuilders<TValues>;
|
|
94
|
+
fieldDefinitions?: StepFieldDefinitions<TValues>;
|
|
95
|
+
onNavigateToStocks?: () => void;
|
|
96
|
+
onNavigateToPOS?: () => void;
|
|
97
|
+
}
|
|
98
|
+
export interface SuccessSection {
|
|
99
|
+
title: string;
|
|
100
|
+
rows: Array<{
|
|
101
|
+
label: string;
|
|
102
|
+
value: string;
|
|
103
|
+
}>;
|
|
104
|
+
}
|
|
105
|
+
export interface MultiStepFormLabels {
|
|
106
|
+
cancel: ReactNode;
|
|
107
|
+
previous: ReactNode;
|
|
108
|
+
closeAriaLabel: string;
|
|
109
|
+
stepLabelBuilder: (step: number, total: number, title?: string) => ReactNode;
|
|
110
|
+
submitCreate: ReactNode;
|
|
111
|
+
submitEdit: ReactNode;
|
|
112
|
+
submitLoadingCreate: ReactNode;
|
|
113
|
+
submitLoadingEdit: ReactNode;
|
|
114
|
+
defaultNextLabel: ReactNode;
|
|
115
|
+
defaultNextLoadingLabel: ReactNode;
|
|
116
|
+
requirementsDescription: string;
|
|
117
|
+
saveBlockedTitle: string;
|
|
118
|
+
saveBlockedDescription: string;
|
|
119
|
+
saveBlockedItems: string[];
|
|
120
|
+
successClose: string;
|
|
121
|
+
optionalField: ReactNode;
|
|
122
|
+
}
|
|
123
|
+
export interface StepAction<TValues> {
|
|
124
|
+
request?: (step: number, values: TValues) => Promise<boolean | StepRequestResult<TValues>> | boolean | StepRequestResult<TValues>;
|
|
125
|
+
nextLabel?: ReactNode;
|
|
126
|
+
nextLoadingLabel?: ReactNode;
|
|
127
|
+
nextLeftIcon?: ReactNode;
|
|
128
|
+
nextRightIcon?: ReactNode;
|
|
129
|
+
showLoading?: boolean;
|
|
130
|
+
}
|
|
131
|
+
export type StepActions<TValues> = Partial<Record<number, StepAction<TValues>>>;
|
|
132
|
+
export type FlowNoticeType = "success" | "error" | "info" | "warning";
|
|
133
|
+
export interface FlowNoticePayload {
|
|
134
|
+
type: FlowNoticeType;
|
|
135
|
+
title: string;
|
|
136
|
+
message?: ReactNode;
|
|
137
|
+
details?: ReactNode;
|
|
138
|
+
durationMs?: number;
|
|
139
|
+
autoDismiss?: boolean;
|
|
140
|
+
}
|
|
141
|
+
export interface MultiStepFormProps<TValues = Record<string, any>> {
|
|
142
|
+
mode: MultiStepMode;
|
|
143
|
+
stepsConfig: StepConfig[];
|
|
144
|
+
stepsContent: StepsContent<TValues>;
|
|
145
|
+
initialValues: TValues;
|
|
146
|
+
onSubmit: (values: TValues) => Promise<any> | any;
|
|
147
|
+
onCancel: () => void;
|
|
148
|
+
isLoading?: boolean;
|
|
149
|
+
showNextSteps?: boolean;
|
|
150
|
+
nextStepsMessage?: string;
|
|
151
|
+
showSuccessScreen?: boolean;
|
|
152
|
+
onSuccess?: (payload: any, values: TValues) => void;
|
|
153
|
+
onSuccessClose?: (payload: any, values: TValues) => void;
|
|
154
|
+
successSectionsBuilder?: (payload: any, mode: MultiStepMode) => SuccessSection[];
|
|
155
|
+
successTitleBuilder?: (mode: MultiStepMode) => ReactNode;
|
|
156
|
+
successMessageBuilder?: (mode: MultiStepMode) => ReactNode;
|
|
157
|
+
successCloseLabelBuilder?: (mode: MultiStepMode, payload: any) => string;
|
|
158
|
+
successContent?: ReactNode;
|
|
159
|
+
successContentBuilder?: (createdPayload: any, mode: MultiStepMode) => ReactNode;
|
|
160
|
+
tooltipTitleBuilder?: (step: number, total: number) => ReactNode;
|
|
161
|
+
subtitleBuilder?: (mode: MultiStepMode) => string;
|
|
162
|
+
tooltipStageLabelBuilder?: (step: number, total: number, title?: string) => string | undefined;
|
|
163
|
+
nextLabelBuilder?: (step: number, total: number) => ReactNode;
|
|
164
|
+
nextLoadingLabelBuilder?: (step: number, total: number) => ReactNode;
|
|
165
|
+
actionIcons?: MultiStepFormActionIcons;
|
|
166
|
+
labels?: Partial<MultiStepFormLabels>;
|
|
167
|
+
stepActions?: StepActions<TValues>;
|
|
168
|
+
showHeader?: boolean;
|
|
169
|
+
showCloseButton?: boolean;
|
|
170
|
+
showCancelButton?: boolean;
|
|
171
|
+
disableBackButton?: boolean;
|
|
172
|
+
formHeight?: number | string;
|
|
173
|
+
formWidth?: number | string;
|
|
174
|
+
bodyScrollable?: boolean;
|
|
175
|
+
bodyPadding?: CSSProperties['padding'];
|
|
176
|
+
noBorderRadius?: boolean;
|
|
177
|
+
fullWidthButtons?: boolean;
|
|
178
|
+
/** Botões do ecrã de sucesso: true = largura total (ex.: Register), false = largura natural à direita (ex.: UserCreate/UserEdit). Default true. */
|
|
179
|
+
successFullWidthButtons?: boolean;
|
|
180
|
+
inputSize?: 'md' | 'lg';
|
|
181
|
+
buttonSize?: 'md' | 'lg';
|
|
182
|
+
activeStep?: number;
|
|
183
|
+
onStepChange?: (step: number) => void;
|
|
184
|
+
persistenceKey?: string;
|
|
185
|
+
persistenceTTL?: number;
|
|
186
|
+
cookiePersistenceKey?: string;
|
|
187
|
+
/**
|
|
188
|
+
* @deprecated Use stepActions[step].request instead.
|
|
189
|
+
*/
|
|
190
|
+
onStepRequest?: (step: number, values: TValues) => Promise<boolean | StepRequestResult<TValues>> | boolean | StepRequestResult<TValues>;
|
|
191
|
+
onBack?: (currentStep: number, targetStep: number, values: TValues) => Partial<TValues> | void;
|
|
192
|
+
initialIsSuccess?: boolean;
|
|
193
|
+
initialCreatedPayload?: any;
|
|
194
|
+
flowExpiresAtSelector?: (values: TValues) => string | null | undefined;
|
|
195
|
+
flowExpiresAtOverride?: string | null;
|
|
196
|
+
showFlowCountdown?: boolean;
|
|
197
|
+
onFlowExpired?: (values: TValues) => Partial<TValues> | void;
|
|
198
|
+
flowExpiredNoticeBuilder?: (values: TValues) => FlowNoticePayload | void;
|
|
199
|
+
onNotice?: (notice: FlowNoticePayload) => void;
|
|
200
|
+
/** Classe CSS para o tooltip de save bloqueado (edit mode sem alterações) */
|
|
201
|
+
saveBlockedTooltipClassName?: string;
|
|
202
|
+
/** Largura do tooltip de save bloqueado (ex: "300px"). Usa min-width: 200px por defeito. */
|
|
203
|
+
saveBlockedTooltipWidth?: string | number;
|
|
204
|
+
}
|
|
205
|
+
export interface MultiStepFormStep {
|
|
206
|
+
id: number;
|
|
207
|
+
component: ReactNode;
|
|
208
|
+
contentPadding?: CSSProperties['padding'];
|
|
209
|
+
}
|
|
210
|
+
export interface StepRequestResult<TValues> {
|
|
211
|
+
success: boolean;
|
|
212
|
+
errors?: ValidationErrors;
|
|
213
|
+
updatedValues?: Partial<TValues>;
|
|
214
|
+
notice?: FlowNoticePayload;
|
|
215
|
+
}
|
|
216
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/patterns/components/Form/MultiStepForm/types/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,mBAAmB,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEtE,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,oDAAoD,CAAC;AACjF,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAE/D,MAAM,MAAM,aAAa,GAAG,QAAQ,GAAG,MAAM,CAAC;AAE9C,MAAM,WAAW,UAAU;IACzB,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,IAAI,CAAC,EAAE,OAAO,CAAC;CAChB;AAED,MAAM,WAAW,eAAe;IAC9B,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,EAAE,OAAO,C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;IAC3B,qBAAqB,CAAC,EAAE,GAAG,CAAC;IAC5B,qBAAqB,CAAC,EAAE,CAAC,MAAM,EAAE,OAAO,KAAK,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACvE,qBAAqB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACtC,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,aAAa,CAAC,EAAE,CAAC,MAAM,EAAE,OAAO,KAAK,OAAO,CAAC,OAAO,CAAC,GAAG,IAAI,CAAC;IAC7D,wBAAwB,CAAC,EAAE,CAAC,MAAM,EAAE,OAAO,KAAK,iBAAiB,GAAG,IAAI,CAAC;IACzE,QAAQ,CAAC,EAAE,CAAC,MAAM,EAAE,iBAAiB,KAAK,IAAI,CAAC;IAC/C,6EAA6E;IAC7E,2BAA2B,CAAC,EAAE,MAAM,CAAC;IACrC,4FAA4F;IAC5F,uBAAuB,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;CAC3C;AAED,MAAM,WAAW,iBAAiB;IAChC,EAAE,EAAE,MAAM,CAAC;IACX,SAAS,EAAE,SAAS,CAAC;IACrB,cAAc,CAAC,EAAE,aAAa,CAAC,SAAS,CAAC,CAAC;CAC3C;AAED,MAAM,WAAW,iBAAiB,CAAC,OAAO;IACxC,OAAO,EAAE,OAAO,CAAC;IACjB,MAAM,CAAC,EAAE,gBAAgB,CAAC;IAC1B,aAAa,CAAC,EAAE,OAAO,CAAC,OAAO,CAAC,CAAC;IACjC,MAAM,CAAC,EAAE,iBAAiB,CAAC;CAC5B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../../../../src/features/patterns/components/Form/MultiStepForm/types/types.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { MultiStepFormLabels } from "../types/types";
|
|
2
|
+
export declare const TOOLTIP_DISABLE_DELAY = 2000;
|
|
3
|
+
export declare const TOOLTIP_DISABLE_DELAY_MAX = 3500;
|
|
4
|
+
export declare const SUBMIT_TRANSITION_DELAY = 1500;
|
|
5
|
+
export declare const LEGACY_DEFAULT_LABELS: MultiStepFormLabels;
|
|
6
|
+
//# sourceMappingURL=constants.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/patterns/components/Form/MultiStepForm/utils/constants.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,gBAAgB,CAAC;AAE1D,eAAO,MAAM,qBAAqB,OAAO,CAAC;AAC1C,eAAO,MAAM,yBAAyB,OAAO,CAAC;AAC9C,eAAO,MAAM,uBAAuB,OAAO,CAAC;AAE5C,eAAO,MAAM,qBAAqB,EAAE,mBAiBnC,CAAC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
export const TOOLTIP_DISABLE_DELAY = 2000;
|
|
2
|
+
export const TOOLTIP_DISABLE_DELAY_MAX = 3500;
|
|
3
|
+
export const SUBMIT_TRANSITION_DELAY = 1500;
|
|
4
|
+
export const LEGACY_DEFAULT_LABELS = {
|
|
5
|
+
cancel: "Cancelar",
|
|
6
|
+
previous: "Anterior",
|
|
7
|
+
closeAriaLabel: "Fechar",
|
|
8
|
+
stepLabelBuilder: (step, total, title) => `Etapa ${step} de ${total}: ${title !== null && title !== void 0 ? title : ""}`,
|
|
9
|
+
submitCreate: "Criar",
|
|
10
|
+
submitEdit: "Salvar",
|
|
11
|
+
submitLoadingCreate: "Criando...",
|
|
12
|
+
submitLoadingEdit: "Salvando...",
|
|
13
|
+
defaultNextLabel: "Pr\u00f3ximo",
|
|
14
|
+
defaultNextLoadingLabel: "A processar...",
|
|
15
|
+
requirementsDescription: "Finalize os requisitos pendentes para continuar",
|
|
16
|
+
saveBlockedTitle: "A\u00e7\u00e3o indispon\u00edvel",
|
|
17
|
+
saveBlockedDescription: "Modifique algum campo para poder salvar.",
|
|
18
|
+
saveBlockedItems: ["Altere pelo menos um campo antes de salvar."],
|
|
19
|
+
successClose: "Fechar",
|
|
20
|
+
optionalField: "(Opcional)",
|
|
21
|
+
};
|
|
22
|
+
//# sourceMappingURL=constants.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../../src/features/patterns/components/Form/MultiStepForm/utils/constants.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,qBAAqB,GAAG,IAAI,CAAC;AAC1C,MAAM,CAAC,MAAM,yBAAyB,GAAG,IAAI,CAAC;AAC9C,MAAM,CAAC,MAAM,uBAAuB,GAAG,IAAI,CAAC;AAE5C,MAAM,CAAC,MAAM,qBAAqB,GAAwB;IACxD,MAAM,EAAE,UAAU;IAClB,QAAQ,EAAE,UAAU;IACpB,cAAc,EAAE,QAAQ;IACxB,gBAAgB,EAAE,CAAC,IAAI,EAAE,KAAK,EAAE,KAAK,EAAE,EAAE,CAAC,SAAS,IAAI,OAAO,KAAK,KAAK,KAAK,aAAL,KAAK,cAAL,KAAK,GAAI,EAAE,EAAE;IACrF,YAAY,EAAE,OAAO;IACrB,UAAU,EAAE,QAAQ;IACpB,mBAAmB,EAAE,YAAY;IACjC,iBAAiB,EAAE,aAAa;IAChC,gBAAgB,EAAE,cAAc;IAChC,uBAAuB,EAAE,gBAAgB;IACzC,uBAAuB,EAAE,iDAAiD;IAC1E,gBAAgB,EAAE,kCAAkC;IACpD,sBAAsB,EAAE,0CAA0C;IAClE,gBAAgB,EAAE,CAAC,6CAA6C,CAAC;IACjE,YAAY,EAAE,QAAQ;IACtB,aAAa,EAAE,YAAY;CAC5B,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { CompletedRules, MultiStepMode, RequirementBuilders, RequirementItem, RequiredFields, ValidationByStep, ValidationErrors } from "../types/types";
|
|
2
|
+
export declare const getErrorKey: (field: string) => string;
|
|
3
|
+
export declare const getStepValidationErrors: <TValues>(step: number, values: TValues, mode: MultiStepMode, validationByStep?: ValidationByStep<TValues>) => ValidationErrors;
|
|
4
|
+
export declare const getUniqueRequirementMessages: (currentStepErrors: ValidationErrors) => string[];
|
|
5
|
+
export declare const resolveRequiredFields: <TValues>(step: number, values: TValues, mode: MultiStepMode, requiredFields?: RequiredFields<TValues>) => string[];
|
|
6
|
+
export declare const resolveCompletedRules: <TValues>(step: number, values: TValues, mode: MultiStepMode, completedRules?: CompletedRules<TValues>) => ((values: TValues, mode: MultiStepMode) => boolean)[];
|
|
7
|
+
export declare const countTotalRequiredFields: (step: number, values: unknown, mode: MultiStepMode, requiredFields?: RequiredFields<any>) => number;
|
|
8
|
+
export declare const countCompletedFields: <TValues>(step: number, values: TValues, mode: MultiStepMode, completedRules?: CompletedRules<TValues>) => number;
|
|
9
|
+
export declare const buildStepRequirements: <TValues>(step: number, values: TValues, mode: MultiStepMode, currentStepErrors: ValidationErrors, requirementBuilders?: RequirementBuilders<TValues>) => RequirementItem[];
|
|
10
|
+
//# sourceMappingURL=utils.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/patterns/components/Form/MultiStepForm/utils/utils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,cAAc,EACd,aAAa,EACb,mBAAmB,EACnB,eAAe,EACf,cAAc,EACd,gBAAgB,EAChB,gBAAgB,EACjB,MAAM,gBAAgB,CAAC;AAExB,eAAO,MAAM,WAAW,GAAI,OAAO,MAAM,KAAG,MACmB,CAAC;AAEhE,eAAO,MAAM,uBAAuB,GAAI,OAAO,EAC7C,MAAM,MAAM,EACZ,QAAQ,OAAO,EACf,MAAM,aAAa,EACnB,mBAAmB,gBAAgB,CAAC,OAAO,CAAC,KAC3C,gBAGF,CAAC;AAEF,eAAO,MAAM,4BAA4B,GAAI,mBAAmB,gBAAgB,aACzB,CAAC;AAExD,eAAO,MAAM,qBAAqB,GAAI,OAAO,EAC3C,MAAM,MAAM,EACZ,QAAQ,OAAO,EACf,MAAM,aAAa,EACnB,iBAAiB,cAAc,CAAC,OAAO,CAAC,aAKzC,CAAC;AAEF,eAAO,MAAM,qBAAqB,GAAI,OAAO,EAC3C,MAAM,MAAM,EACZ,QAAQ,OAAO,EACf,MAAM,aAAa,EACnB,iBAAiB,cAAc,CAAC,OAAO,CAAC,0DAKzC,CAAC;AAEF,eAAO,MAAM,wBAAwB,GACnC,MAAM,MAAM,EACZ,QAAQ,OAAO,EACf,MAAM,aAAa,EACnB,iBAAiB,cAAc,CAAC,GAAG,CAAC,WAIrC,CAAC;AAEF,eAAO,MAAM,oBAAoB,GAAI,OAAO,EAC1C,MAAM,MAAM,EACZ,QAAQ,OAAO,EACf,MAAM,aAAa,EACnB,iBAAiB,cAAc,CAAC,OAAO,CAAC,WAIzC,CAAC;AAEF,eAAO,MAAM,qBAAqB,GAAI,OAAO,EAC3C,MAAM,MAAM,EACZ,QAAQ,OAAO,EACf,MAAM,aAAa,EACnB,mBAAmB,gBAAgB,EACnC,sBAAsB,mBAAmB,CAAC,OAAO,CAAC,KACjD,eAAe,EAGjB,CAAC"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
export const getErrorKey = (field) => { var _a; return field.includes(".") ? (_a = field.split(".").pop()) !== null && _a !== void 0 ? _a : field : field; };
|
|
2
|
+
export const getStepValidationErrors = (step, values, mode, validationByStep) => {
|
|
3
|
+
const validator = validationByStep === null || validationByStep === void 0 ? void 0 : validationByStep[step];
|
|
4
|
+
return validator ? validator(values, mode) : {};
|
|
5
|
+
};
|
|
6
|
+
export const getUniqueRequirementMessages = (currentStepErrors) => Array.from(new Set(Object.values(currentStepErrors)));
|
|
7
|
+
export const resolveRequiredFields = (step, values, mode, requiredFields) => {
|
|
8
|
+
const fields = requiredFields === null || requiredFields === void 0 ? void 0 : requiredFields[step];
|
|
9
|
+
if (!fields)
|
|
10
|
+
return [];
|
|
11
|
+
return typeof fields === 'function' ? fields(values, mode) : fields;
|
|
12
|
+
};
|
|
13
|
+
export const resolveCompletedRules = (step, values, mode, completedRules) => {
|
|
14
|
+
const rules = completedRules === null || completedRules === void 0 ? void 0 : completedRules[step];
|
|
15
|
+
if (!rules)
|
|
16
|
+
return [];
|
|
17
|
+
return typeof rules === 'function' ? rules(values, mode) : rules;
|
|
18
|
+
};
|
|
19
|
+
export const countTotalRequiredFields = (step, values, mode, requiredFields) => {
|
|
20
|
+
const fields = resolveRequiredFields(step, values, mode, requiredFields);
|
|
21
|
+
return fields.length;
|
|
22
|
+
};
|
|
23
|
+
export const countCompletedFields = (step, values, mode, completedRules) => {
|
|
24
|
+
const rules = resolveCompletedRules(step, values, mode, completedRules);
|
|
25
|
+
return rules.reduce((acc, rule) => acc + (rule(values, mode) ? 1 : 0), 0);
|
|
26
|
+
};
|
|
27
|
+
export const buildStepRequirements = (step, values, mode, currentStepErrors, requirementBuilders) => {
|
|
28
|
+
const builder = requirementBuilders === null || requirementBuilders === void 0 ? void 0 : requirementBuilders[step];
|
|
29
|
+
return builder ? builder(values, currentStepErrors, mode) : [];
|
|
30
|
+
};
|
|
31
|
+
//# sourceMappingURL=utils.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../../../../../../../src/features/patterns/components/Form/MultiStepForm/utils/utils.ts"],"names":[],"mappings":"AAUA,MAAM,CAAC,MAAM,WAAW,GAAG,CAAC,KAAa,EAAU,EAAE,WACnD,OAAA,KAAK,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,MAAA,KAAK,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,mCAAI,KAAK,CAAC,CAAC,CAAC,KAAK,CAAA,EAAA,CAAC;AAEhE,MAAM,CAAC,MAAM,uBAAuB,GAAG,CACrC,IAAY,EACZ,MAAe,EACf,IAAmB,EACnB,gBAA4C,EAC1B,EAAE;IACpB,MAAM,SAAS,GAAG,gBAAgB,aAAhB,g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