kitunga-web 0.1.79 → 0.1.80
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/data-display/components/Cards/StatCard.js +1 -1
- package/dist/features/data-display/components/Table/LineItemsTable.js +6 -6
- package/dist/features/data-display/components/Table/Table.js +2 -2
- package/dist/features/data-display/components/Table/types/LineItemsTable.d.ts +1 -1
- package/dist/features/data-display/components/Table/types/Table.d.ts +1 -1
- package/dist/features/feedback/components/ChangedDataSummary/ChangedDataSummary.js +1 -1
- package/dist/features/feedback/components/CreatedDataSummary/CreatedDataSummary.js +1 -1
- package/dist/features/feedback/components/EmptyStates/SearchEmptyState/SearchEmptyState.js +1 -1
- package/dist/features/feedback/components/FlowNotice/FlowNotice.d.ts +1 -1
- package/dist/features/feedback/components/SuccesModal/ModalSuccess.js +1 -1
- package/dist/features/inputs/components/Inputs/DateInput.js +1 -1
- package/dist/features/inputs/components/Inputs/NumberInput.js +1 -1
- package/dist/features/inputs/components/Inputs/TaxIdInput/TaxIdInput.d.ts +1 -1
- package/dist/features/inputs/components/Inputs/TaxIdInput/TaxIdInput.js +2 -2
- package/dist/features/inputs/components/Inputs/TaxIdInput/index.d.ts +2 -2
- package/dist/features/inputs/components/Inputs/TaxIdInput/index.js +1 -1
- package/dist/features/overlays/components/DeleteModal/ComprehensiveDeleteModal.d.ts +2 -2
- package/dist/features/overlays/components/DeleteModal/ComprehensiveDeleteModal.js +3 -3
- package/dist/features/overlays/components/PrerequisiteGuardModal/PrerequisiteGuardModal.d.ts +1 -1
- package/dist/features/overlays/components/PrerequisiteGuardModal/PrerequisiteGuardModal.js +1 -1
- package/dist/features/overlays/components/dropdowns/DropdownMenu.js +1 -1
- package/dist/features/patterns/components/Form/MultiStepForm/components/FormActions.js +2 -2
- package/dist/features/patterns/components/Form/MultiStepForm/components/GenericStepRenderer.js +8 -8
- package/dist/features/patterns/components/Form/MultiStepForm/components/MultiStepForm.js +3 -3
- package/dist/features/patterns/components/Form/MultiStepForm/components/SuccessScreen.d.ts +1 -1
- package/dist/features/patterns/components/Form/MultiStepForm/components/SuccessScreen.js +1 -1
- package/dist/features/patterns/components/Form/MultiStepForm/types/types.d.ts +2 -2
- package/dist/features/patterns/components/Form/VerificationCodeStep/VerificationCodeStep.js +1 -1
- package/dist/features/uploads/components/ImageUpload/ImageUpload.js +2 -2
- package/dist/features/uploads/components/VideoUpload/VideoUpload.js +2 -2
- package/dist/shared/utils/location/index.d.ts +1 -1
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { formatCompactCurrency, formatCompactNumber } from '
|
|
2
|
+
import { formatCompactCurrency, formatCompactNumber } from '../../../../shared/utils/formatCurrency';
|
|
3
3
|
import styles from './StatCard.module.css';
|
|
4
4
|
function resolveValue(params) {
|
|
5
5
|
const { value, valueFormat, compactDecimals, compactCurrencySuffix } = params;
|
|
@@ -2,12 +2,12 @@
|
|
|
2
2
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
3
|
import React from 'react';
|
|
4
4
|
import { Trash2, Plus } from 'lucide-react';
|
|
5
|
-
import CustomSelect from '
|
|
6
|
-
import TextInput from '
|
|
7
|
-
import StepperInput from '
|
|
8
|
-
import TextareaInput from '
|
|
9
|
-
import { maskDecimalCommaFromInput, parseDecimalCommaToNumber, } from '
|
|
10
|
-
import { formatKwanza, formatPercent } from '
|
|
5
|
+
import CustomSelect from '../../../selects/components/Selects/CustomSelect';
|
|
6
|
+
import TextInput from '../../../inputs/components/Inputs/TextInput';
|
|
7
|
+
import StepperInput from '../../../inputs/components/Inputs/StepperInput';
|
|
8
|
+
import TextareaInput from '../../../inputs/components/Inputs/TextareaInput';
|
|
9
|
+
import { maskDecimalCommaFromInput, parseDecimalCommaToNumber, } from '../../../../shared/utils/maskedDecimal';
|
|
10
|
+
import { formatKwanza, formatPercent } from '../../../../shared/utils/formatCurrency';
|
|
11
11
|
import styles from './LineItemsTable.module.css';
|
|
12
12
|
function roundToDecimals(value, decimals) {
|
|
13
13
|
const factor = 10 ** decimals;
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
3
|
import styles from './Table.module.css';
|
|
4
4
|
import { Edit, Trash2 } from 'lucide-react';
|
|
5
|
-
import InfoTooltip from '
|
|
6
|
-
import SearchEmptyState from '
|
|
5
|
+
import InfoTooltip from '../../../feedback/components/Tooltips/InfoTooltip';
|
|
6
|
+
import SearchEmptyState from '../../../feedback/components/EmptyStates/SearchEmptyState/SearchEmptyState';
|
|
7
7
|
function getByPath(obj, path) {
|
|
8
8
|
if (!obj || !path)
|
|
9
9
|
return undefined;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { ReactNode } from 'react';
|
|
2
|
-
import type { Option } from '
|
|
2
|
+
import type { Option } from '../../../../selects/components/Selects/CustomSelect';
|
|
3
3
|
export type LineItemsColumnType = 'text' | 'description' | 'number' | 'percent' | 'select' | 'stepper' | 'computed' | 'actions';
|
|
4
4
|
export type LineItemsPercentMode = 'percent' | 'value';
|
|
5
5
|
export interface LineItemsPercentToggle<T> {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
|
-
import type { InfoTooltipMessage } from '
|
|
2
|
+
import type { InfoTooltipMessage } from '../../../../feedback/components/Tooltips/InfoTooltip';
|
|
3
3
|
export type MaybeValueFn<T, R> = R | ((item: T) => R);
|
|
4
4
|
export interface TableColumn<T = unknown> {
|
|
5
5
|
key: string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
3
|
import { ArrowRight } from 'lucide-react';
|
|
4
|
-
import Table from '
|
|
4
|
+
import Table from '../../../data-display/components/Table/Table';
|
|
5
5
|
import styles from './ChangedDataSummary.module.css';
|
|
6
6
|
import { getFormDataChanges, } from './getFormDataChanges';
|
|
7
7
|
export default function ChangedDataSummary({ title = 'Resumo de Alterações', baseData, formData, fieldLabels, photoPathKey = 'photoUrl', emptyChangesMessage = 'Nenhuma alteração detetada.', photoAddedLabel = 'Foto adicionada', photoRemovedLabel = 'Foto excluída', photoUpdatedLabel = 'Foto alterada', emptyPhotoSrc = '/images/user/user.png', ignoreKeys, emptyValueLabel, valueFormatters, }) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
3
|
import { Info } from 'lucide-react';
|
|
4
|
-
import Table from '
|
|
4
|
+
import Table from '../../../data-display/components/Table/Table';
|
|
5
5
|
import styles from './CreatedDataSummary.module.css';
|
|
6
6
|
export default function CreatedDataSummary({ title = 'Resumo do Registo', formData, fieldLabels, ignoreKeys = [], emptyValueLabel = '-', valueFormatters, photoPathKey = 'photoUrl', photoAddedLabel = 'Foto adicionada', emptyPhotoSrc = '/images/user/user.png', emptyMessage = 'Nenhum dado introduzido.', }) {
|
|
7
7
|
var _a;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
3
|
import { FilterX } from "lucide-react";
|
|
4
|
-
import Button from '
|
|
4
|
+
import Button from '../../../../buttons/components/Btns/Button';
|
|
5
5
|
import styles from "./SearchEmptyState.module.css";
|
|
6
6
|
export default function SearchEmptyState({ title = "Nenhum resultado encontrado", description = "Ajuste a pesquisa ou os filtros para ver outros resultados.", actionLabel, onAction, }) {
|
|
7
7
|
return (_jsxs("div", { className: styles.container, children: [_jsx("div", { className: styles.iconWrapper, children: _jsx(FilterX, { size: 32 }) }), _jsx("h4", { className: styles.title, children: title }), _jsx("p", { className: styles.description, children: description }), actionLabel && onAction && (_jsx(Button, { variant: "secondary", size: "md", onClick: onAction, children: actionLabel }))] }));
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { FlowNoticePayload } from '
|
|
1
|
+
import type { FlowNoticePayload } from '../../../patterns/components/Form/MultiStepForm/types/types';
|
|
2
2
|
type FlowNoticeProps = {
|
|
3
3
|
notice: FlowNoticePayload;
|
|
4
4
|
onClose: () => void;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
3
|
import { CheckCircle } from 'lucide-react';
|
|
4
|
-
import Button from '
|
|
4
|
+
import Button from '../../../buttons/components/Btns/Button';
|
|
5
5
|
import styles from './ModalSuccess.module.css';
|
|
6
6
|
export const ModalSuccess = ({ title, message, children, sections = [], primaryActionLabel, onPrimaryAction, secondaryActionLabel, onSecondaryAction, fullWidthButtons = false, }) => {
|
|
7
7
|
const footerClass = fullWidthButtons ? styles.footerContainer : `${styles.footerContainer} ${styles.footerContainerCompact}`;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef, useEffect, useImperativeHandle, useLayoutEffect, useMemo, useRef, useState } from 'react';
|
|
3
3
|
import { ChevronDown, ChevronLeft, ChevronRight, X } from 'lucide-react';
|
|
4
|
-
import Button from '
|
|
4
|
+
import Button from '../../../buttons/components/Btns/Button';
|
|
5
5
|
import styles from './DateInput.module.css';
|
|
6
6
|
const WEEKDAY_LABELS = ['Seg', 'Ter', 'Qua', 'Qui', 'Sex', 'Sáb', 'Dom'];
|
|
7
7
|
const MONTH_LABELS = ['Janeiro', 'Fevereiro', 'Março', 'Abril', 'Maio', 'Junho', 'Julho', 'Agosto', 'Setembro', 'Outubro', 'Novembro', 'Dezembro'];
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { useMemo, forwardRef, useImperativeHandle, useRef } from 'react';
|
|
3
3
|
import { X } from 'lucide-react';
|
|
4
|
-
import { formatDecimalCommaFromNumber, maskDecimalCommaFromInput, parseDecimalCommaToNumber, } from '
|
|
4
|
+
import { formatDecimalCommaFromNumber, maskDecimalCommaFromInput, parseDecimalCommaToNumber, } from '../../../../shared/utils/maskedDecimal';
|
|
5
5
|
import styles from './NumberInput.module.css';
|
|
6
6
|
function getPrefix(mode, prefixText) {
|
|
7
7
|
if (prefixText !== undefined)
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { TextInputProps } from '../types/input.types';
|
|
2
|
-
import type { TaxIdDocumentKind } from '
|
|
2
|
+
import type { TaxIdDocumentKind } from '../../../../../shared/utils/tax-id';
|
|
3
3
|
export interface TaxIdInputProps extends Omit<TextInputProps, 'type' | 'showPasswordToggle' | 'value' | 'onChange'> {
|
|
4
4
|
value?: string;
|
|
5
5
|
onChange?: (value: string) => void;
|
|
@@ -14,8 +14,8 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
14
14
|
import { forwardRef, useEffect, useId, useImperativeHandle, useMemo, useRef, useState, } from 'react';
|
|
15
15
|
import { X } from 'lucide-react';
|
|
16
16
|
import styles from './TaxIdInput.module.css';
|
|
17
|
-
import CustomSelect from '
|
|
18
|
-
import { getTaxIdCountryConfig, getTaxIdKindOptions, getTaxIdPlaceholder, getTaxIdVariantConfig, sanitizeTaxIdValue, } from '
|
|
17
|
+
import CustomSelect from '../../../../selects/components/Selects/CustomSelect';
|
|
18
|
+
import { getTaxIdCountryConfig, getTaxIdKindOptions, getTaxIdPlaceholder, getTaxIdVariantConfig, sanitizeTaxIdValue, } from '../../../../../shared/utils/tax-id';
|
|
19
19
|
const TaxIdInput = forwardRef((_a, ref) => {
|
|
20
20
|
var _b, _c, _d, _e;
|
|
21
21
|
var { size = 'md', variant = 'default', containerClassName = '', className = '', leftIcon, value = '', onChange, showClearButton = variant === 'flat' ? false : true, clearButtonLabel = 'Limpar campo', disabled = false, readOnly = false, hasError, errorMessage, countryCode, documentKind, defaultDocumentKind, onDocumentKindChange, documentKindLocked = false, showDocumentKindSelect = true, placeholder, id: consumerId, name: consumerName, onFocus, onBlur } = _a, rest = __rest(_a, ["size", "variant", "containerClassName", "className", "leftIcon", "value", "onChange", "showClearButton", "clearButtonLabel", "disabled", "readOnly", "hasError", "errorMessage", "countryCode", "documentKind", "defaultDocumentKind", "onDocumentKindChange", "documentKindLocked", "showDocumentKindSelect", "placeholder", "id", "name", "onFocus", "onBlur"]);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { default } from './TaxIdInput';
|
|
2
2
|
export type { TaxIdInputProps } from './TaxIdInput';
|
|
3
|
-
export type { TaxIdCountryConfig, TaxIdDocumentKind, TaxIdKindOption, TaxIdVariantConfig } from '
|
|
4
|
-
export { ANGOLA_COMPANY_NIF_REGEX, ANGOLA_IDENTITY_DOCUMENT_REGEX, TAX_ID_COUNTRIES, formatTaxIdValue, getAngolaCompanyNifError, getAngolaIdentityDocumentError, getTaxIdCountryConfig, getTaxIdDisplayLabel, getTaxIdError, getTaxIdKindOptions, getTaxIdPlaceholder, getTaxIdVariantConfig, isValidAngolaCompanyNif, isValidAngolaIdentityDocument, isValidTaxIdValue, normalizeAngolaCompanyNif, normalizeAngolaIdentityDocument, sanitizeTaxIdValue, } from '
|
|
3
|
+
export type { TaxIdCountryConfig, TaxIdDocumentKind, TaxIdKindOption, TaxIdVariantConfig } from '../../../../../shared/utils/tax-id';
|
|
4
|
+
export { ANGOLA_COMPANY_NIF_REGEX, ANGOLA_IDENTITY_DOCUMENT_REGEX, TAX_ID_COUNTRIES, formatTaxIdValue, getAngolaCompanyNifError, getAngolaIdentityDocumentError, getTaxIdCountryConfig, getTaxIdDisplayLabel, getTaxIdError, getTaxIdKindOptions, getTaxIdPlaceholder, getTaxIdVariantConfig, isValidAngolaCompanyNif, isValidAngolaIdentityDocument, isValidTaxIdValue, normalizeAngolaCompanyNif, normalizeAngolaIdentityDocument, sanitizeTaxIdValue, } from '../../../../../shared/utils/tax-id';
|
|
5
5
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
export { default } from './TaxIdInput';
|
|
2
|
-
export { ANGOLA_COMPANY_NIF_REGEX, ANGOLA_IDENTITY_DOCUMENT_REGEX, TAX_ID_COUNTRIES, formatTaxIdValue, getAngolaCompanyNifError, getAngolaIdentityDocumentError, getTaxIdCountryConfig, getTaxIdDisplayLabel, getTaxIdError, getTaxIdKindOptions, getTaxIdPlaceholder, getTaxIdVariantConfig, isValidAngolaCompanyNif, isValidAngolaIdentityDocument, isValidTaxIdValue, normalizeAngolaCompanyNif, normalizeAngolaIdentityDocument, sanitizeTaxIdValue, } from '
|
|
2
|
+
export { ANGOLA_COMPANY_NIF_REGEX, ANGOLA_IDENTITY_DOCUMENT_REGEX, TAX_ID_COUNTRIES, formatTaxIdValue, getAngolaCompanyNifError, getAngolaIdentityDocumentError, getTaxIdCountryConfig, getTaxIdDisplayLabel, getTaxIdError, getTaxIdKindOptions, getTaxIdPlaceholder, getTaxIdVariantConfig, isValidAngolaCompanyNif, isValidAngolaIdentityDocument, isValidTaxIdValue, normalizeAngolaCompanyNif, normalizeAngolaIdentityDocument, sanitizeTaxIdValue, } from '../../../../../shared/utils/tax-id';
|
|
3
3
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ReactNode } from "react";
|
|
2
|
-
import { type ButtonProps } from '
|
|
3
|
-
import { type ProgressChecklistItem } from '
|
|
2
|
+
import { type ButtonProps } from '../../../buttons/components/Btns/Button';
|
|
3
|
+
import { type ProgressChecklistItem } from '../../../feedback/components/Tooltips/ProgressChecklistTooltip';
|
|
4
4
|
export type DeleteModalBadgeVariant = "neutral" | "info" | "success" | "warning" | "danger";
|
|
5
5
|
export interface DeleteModalEntityBadge {
|
|
6
6
|
label: string;
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
3
|
import { useCallback, useEffect, useMemo, useRef, useState } from "react";
|
|
4
4
|
import { X } from "lucide-react";
|
|
5
|
-
import Button from '
|
|
6
|
-
import ProgressChecklistTooltip from '
|
|
5
|
+
import Button from '../../../buttons/components/Btns/Button';
|
|
6
|
+
import ProgressChecklistTooltip from '../../../feedback/components/Tooltips/ProgressChecklistTooltip';
|
|
7
7
|
import styles from "./ComprehensiveDeleteModal.module.css";
|
|
8
|
-
import { SUBMIT_TRANSITION_DELAY } from '
|
|
8
|
+
import { SUBMIT_TRANSITION_DELAY } from '../../../patterns/components/Form/MultiStepForm/utils/constants';
|
|
9
9
|
export default function ComprehensiveDeleteModal({ title, entity, message, dependencyGroups = [], dependenciesTitle = "Dependências que impedem a exclusão:", onClose, cancelButtonLabel, onCancel, cancelButtonLeftIcon, cancelButtonRightIcon, confirmButtonLabel, onConfirm, confirmButtonLeftIcon, confirmButtonRightIcon, confirmButtonVariant = "danger", confirmButtonDisabled = false, confirmButtonLoading = false, confirmButtonLoadingLabel, dependencyTooltip, showOverlay = true, className = "", simulateConfirmTransition = true, confirmTransitionDelay = SUBMIT_TRANSITION_DELAY, buttonSize = "md", modalHeight, modalWidth, }) {
|
|
10
10
|
var _a;
|
|
11
11
|
const [isTooltipVisible, setIsTooltipVisible] = useState(false);
|
package/dist/features/overlays/components/PrerequisiteGuardModal/PrerequisiteGuardModal.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { ReactNode } from 'react';
|
|
2
|
-
import { type ButtonProps } from '
|
|
2
|
+
import { type ButtonProps } from '../../../buttons/components/Btns/Button';
|
|
3
3
|
export type PrerequisiteGuardItemSeverity = 'info' | 'warning' | 'danger';
|
|
4
4
|
export interface PrerequisiteGuardItem {
|
|
5
5
|
id: string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
3
|
import { AlertTriangle, X } from 'lucide-react';
|
|
4
|
-
import Button from '
|
|
4
|
+
import Button from '../../../buttons/components/Btns/Button';
|
|
5
5
|
import styles from './PrerequisiteGuardModal.module.css';
|
|
6
6
|
function getSeverityClassName(severity = 'warning', optional = false) {
|
|
7
7
|
if (optional) {
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
3
|
import { useEffect, useRef } from 'react';
|
|
4
4
|
import styles from './DropdownMenu.module.css';
|
|
5
|
-
import SharedMenuItem from '
|
|
5
|
+
import SharedMenuItem from '../../../navigation/components/Menu/SharedMenuItem';
|
|
6
6
|
export default function DropdownMenu({ isOpen, onClose, triggerRef, items, onSelect, }) {
|
|
7
7
|
const dropdownRef = useRef(null);
|
|
8
8
|
useEffect(() => {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import Button from '
|
|
3
|
-
import InfoTooltip from '
|
|
2
|
+
import Button from '../../../../../buttons/components/Btns/Button';
|
|
3
|
+
import InfoTooltip from '../../../../../feedback/components/Tooltips/InfoTooltip';
|
|
4
4
|
import styles from "./FormActions.module.css";
|
|
5
5
|
export function FormActions({ isFirstStep, isCurrentStepValid, isLoading, requirementsListLength, disableTooltip, onCancel, onPrev, onHoverRequirements, renderRequirementsTooltip, requirementsTooltipVisible, primaryLabel, primaryLeftIcon, primaryRightIcon, primaryDisabled, primaryLoading, primaryType = "button", onPrimaryClick, cancelLabel = "Cancelar", cancelLeftIcon, cancelRightIcon, previousLabel, previousLeftIcon, previousRightIcon, showCancelButton = true, showInfoTooltip, infoTooltipMessage, infoTooltipClassName, disableBackButton = false, buttonSize = "md", fullWidthButtons = false, }) {
|
|
6
6
|
const requirementsTooltip = renderRequirementsTooltip();
|
package/dist/features/patterns/components/Form/MultiStepForm/components/GenericStepRenderer.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { useEffect, useRef } from "react";
|
|
3
3
|
import { Asterisk } from "lucide-react";
|
|
4
|
-
import TextInput from '
|
|
5
|
-
import TextareaInput from '
|
|
6
|
-
import DateInput from '
|
|
7
|
-
import CustomSelect from '
|
|
8
|
-
import ImageUpload from '
|
|
9
|
-
import PhoneInput from '
|
|
10
|
-
import NumberInput from '
|
|
11
|
-
import TaxIdInput from '
|
|
4
|
+
import TextInput from '../../../../../inputs/components/Inputs/TextInput';
|
|
5
|
+
import TextareaInput from '../../../../../inputs/components/Inputs/TextareaInput';
|
|
6
|
+
import DateInput from '../../../../../inputs/components/Inputs/DateInput';
|
|
7
|
+
import CustomSelect from '../../../../../selects/components/Selects/CustomSelect';
|
|
8
|
+
import ImageUpload from '../../../../../uploads/components/ImageUpload/ImageUpload';
|
|
9
|
+
import PhoneInput from '../../../../../inputs/components/Inputs/PhoneInput/PhoneInput';
|
|
10
|
+
import NumberInput from '../../../../../inputs/components/Inputs/NumberInput';
|
|
11
|
+
import TaxIdInput from '../../../../../inputs/components/Inputs/TaxIdInput/TaxIdInput';
|
|
12
12
|
import styles from "./GenericStepRenderer.module.css";
|
|
13
13
|
function inferAssetKeyField(field) {
|
|
14
14
|
if (field.assetKeyField)
|
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
3
|
import { useCallback, useEffect, useMemo, useRef, useState } from "react";
|
|
4
4
|
import { ChevronLeft, ChevronRight } from "lucide-react";
|
|
5
|
-
import ProgressChecklistTooltip from '
|
|
6
|
-
import InfoTooltipContent from '
|
|
5
|
+
import ProgressChecklistTooltip from '../../../../../feedback/components/Tooltips/ProgressChecklistTooltip';
|
|
6
|
+
import InfoTooltipContent from '../../../../../feedback/components/Tooltips/InfoTooltipContent';
|
|
7
7
|
import actionsStyles from "./FormActions.module.css";
|
|
8
8
|
import { FormActions } from "./FormActions";
|
|
9
|
-
import { FlowNotice } from '
|
|
9
|
+
import { FlowNotice } from '../../../../../feedback/components/FlowNotice/FlowNotice';
|
|
10
10
|
import { MultiStepHeader } from "./MultiStepHeader";
|
|
11
11
|
import { StepsContainer } from "./StepsContainer";
|
|
12
12
|
import { SuccessScreen } from "./SuccessScreen";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type ModalSuccessSection } from '
|
|
1
|
+
import { type ModalSuccessSection } from '../../../../../feedback/components/SuccesModal/ModalSuccess';
|
|
2
2
|
import type { MultiStepMode } from "../types/types";
|
|
3
3
|
interface SuccessScreenProps {
|
|
4
4
|
mode: MultiStepMode;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import ModalSuccess from '
|
|
2
|
+
import ModalSuccess from '../../../../../feedback/components/SuccesModal/ModalSuccess';
|
|
3
3
|
import styles from "./SuccessScreen.module.css";
|
|
4
4
|
export function SuccessScreen({ mode, sections, onClose, className, style, successTitle, successMessage, successContent, primaryActionLabel = "Fechar", secondaryActionLabel, onSecondaryAction, fullWidthButtons = false, }) {
|
|
5
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 }) }) }));
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { CSSProperties, InputHTMLAttributes, ReactNode } from "react";
|
|
2
|
-
import type { Option } from '
|
|
3
|
-
import type { TaxIdDocumentKind } from '
|
|
2
|
+
import type { Option } from '../../../../../selects/components/Selects/CustomSelect';
|
|
3
|
+
import type { TaxIdDocumentKind } from '../../../../../../shared/utils/tax-id';
|
|
4
4
|
export type MultiStepMode = "create" | "edit";
|
|
5
5
|
export interface StepConfig {
|
|
6
6
|
id: number;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
3
3
|
import { useCallback, useState, useEffect, useRef } from 'react';
|
|
4
|
-
import Button from '
|
|
4
|
+
import Button from '../../../../buttons/components/Btns/Button';
|
|
5
5
|
import { GenericStepRenderer } from '../MultiStepForm/components/GenericStepRenderer';
|
|
6
6
|
import styles from './VerificationCodeStep.module.css';
|
|
7
7
|
export function VerificationCodeStep({ formData, errors, onFieldChange, fieldDefinitions, onResendCode, autoSendSessionKey, }) {
|
|
@@ -3,8 +3,8 @@ import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-run
|
|
|
3
3
|
import { useState, useRef, useCallback, useEffect } from 'react';
|
|
4
4
|
import { X, Pause, Check, Image as ImageIcon, ArrowLeft, ArrowRight, AlertCircle } from 'lucide-react';
|
|
5
5
|
import styles from './ImageUpload.module.css';
|
|
6
|
-
import TextInput from '
|
|
7
|
-
import Button from '
|
|
6
|
+
import TextInput from '../../../inputs/components/Inputs/TextInput';
|
|
7
|
+
import Button from '../../../buttons/components/Btns/Button';
|
|
8
8
|
import axios from 'axios';
|
|
9
9
|
const API_URL = process.env.NEXT_PUBLIC_API_URL;
|
|
10
10
|
const ImageUpload = ({ value = '', onChange, onKeyChange, accept = 'image/png,image/jpeg,image/jpg,image/webp,image/avif', uploadUrl, tokenStorageKey, }) => {
|
|
@@ -3,8 +3,8 @@ import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-run
|
|
|
3
3
|
import { useState, useRef, useCallback, useEffect } from 'react';
|
|
4
4
|
import { X, Pause, Check, Video, ArrowLeft, ArrowRight, AlertCircle, Play, PauseIcon } from 'lucide-react';
|
|
5
5
|
import styles from './VideoUpload.module.css';
|
|
6
|
-
import TextInput from '
|
|
7
|
-
import Button from '
|
|
6
|
+
import TextInput from '../../../inputs/components/Inputs/TextInput';
|
|
7
|
+
import Button from '../../../buttons/components/Btns/Button';
|
|
8
8
|
import axios from 'axios';
|
|
9
9
|
const API_URL = process.env.NEXT_PUBLIC_API_URL;
|
|
10
10
|
const VideoUpload = ({ value = '', onChange, onKeyChange, accept = 'video/mp4,video/webm,video/ogg,video/quicktime', uploadUrl, tokenStorageKey, }) => {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { FieldDefinition } from "
|
|
1
|
+
import type { FieldDefinition } from "../../../features/patterns/components/Form/MultiStepForm/types/types";
|
|
2
2
|
import type { LocationOption } from "./types";
|
|
3
3
|
export declare const normalizeCountryCode: (country?: string) => string;
|
|
4
4
|
export declare const getDefaultLanguageByCountry: (country?: string) => string;
|