@thatix.io/credit-ui 0.0.1
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/LICENSE +19 -0
- package/README.md +186 -0
- package/dist/components/atoms/Avatar/Avatar.stories.d.ts +11 -0
- package/dist/components/atoms/Avatar/Avatar.vue.d.ts +16 -0
- package/dist/components/atoms/Avatar/index.d.ts +2 -0
- package/dist/components/atoms/Badge/Badge.stories.d.ts +11 -0
- package/dist/components/atoms/Badge/Badge.vue.d.ts +40 -0
- package/dist/components/atoms/Badge/index.d.ts +2 -0
- package/dist/components/atoms/Button/Button.stories.d.ts +15 -0
- package/dist/components/atoms/Button/Button.vue.d.ts +47 -0
- package/dist/components/atoms/Button/index.d.ts +2 -0
- package/dist/components/atoms/Card/Card.stories.d.ts +9 -0
- package/dist/components/atoms/Card/Card.vue.d.ts +33 -0
- package/dist/components/atoms/Card/index.d.ts +2 -0
- package/dist/components/atoms/Checkbox/Checkbox.stories.d.ts +11 -0
- package/dist/components/atoms/Checkbox/Checkbox.vue.d.ts +28 -0
- package/dist/components/atoms/Checkbox/index.d.ts +2 -0
- package/dist/components/atoms/CurrencyDisplay/CurrencyDisplay.stories.d.ts +10 -0
- package/dist/components/atoms/CurrencyDisplay/CurrencyDisplay.vue.d.ts +26 -0
- package/dist/components/atoms/CurrencyDisplay/index.d.ts +2 -0
- package/dist/components/atoms/Divider/Divider.stories.d.ts +9 -0
- package/dist/components/atoms/Divider/Divider.vue.d.ts +11 -0
- package/dist/components/atoms/Divider/index.d.ts +2 -0
- package/dist/components/atoms/GradientMesh/GradientMesh.stories.d.ts +13 -0
- package/dist/components/atoms/GradientMesh/GradientMesh.vue.d.ts +43 -0
- package/dist/components/atoms/GradientMesh/index.d.ts +2 -0
- package/dist/components/atoms/Icon/Icon.stories.d.ts +11 -0
- package/dist/components/atoms/Icon/Icon.vue.d.ts +23 -0
- package/dist/components/atoms/Icon/index.d.ts +2 -0
- package/dist/components/atoms/Input/Input.stories.d.ts +13 -0
- package/dist/components/atoms/Input/Input.vue.d.ts +73 -0
- package/dist/components/atoms/Input/index.d.ts +2 -0
- package/dist/components/atoms/Label/Label.stories.d.ts +11 -0
- package/dist/components/atoms/Label/Label.vue.d.ts +28 -0
- package/dist/components/atoms/Label/index.d.ts +2 -0
- package/dist/components/atoms/Logo/Logo.stories.d.ts +10 -0
- package/dist/components/atoms/Logo/Logo.vue.d.ts +17 -0
- package/dist/components/atoms/Logo/index.d.ts +2 -0
- package/dist/components/atoms/Spinner/Spinner.stories.d.ts +11 -0
- package/dist/components/atoms/Spinner/Spinner.vue.d.ts +11 -0
- package/dist/components/atoms/Spinner/index.d.ts +2 -0
- package/dist/components/atoms/Typography/Typography.stories.d.ts +12 -0
- package/dist/components/atoms/Typography/Typography.vue.d.ts +32 -0
- package/dist/components/atoms/Typography/index.d.ts +2 -0
- package/dist/components/atoms/index.d.ts +14 -0
- package/dist/components/index.d.ts +14 -0
- package/dist/components/molecules/ActionButton/ActionButton.stories.d.ts +11 -0
- package/dist/components/molecules/ActionButton/ActionButton.vue.d.ts +31 -0
- package/dist/components/molecules/ActionButton/index.d.ts +2 -0
- package/dist/components/molecules/Alert/Alert.stories.d.ts +12 -0
- package/dist/components/molecules/Alert/Alert.vue.d.ts +20 -0
- package/dist/components/molecules/Alert/index.d.ts +2 -0
- package/dist/components/molecules/AnalysisStatus/AnalysisStatus.stories.d.ts +14 -0
- package/dist/components/molecules/AnalysisStatus/AnalysisStatus.vue.d.ts +16 -0
- package/dist/components/molecules/AnalysisStatus/index.d.ts +2 -0
- package/dist/components/molecules/ContractPaidCelebration/ContractPaidCelebration.stories.d.ts +9 -0
- package/dist/components/molecules/ContractPaidCelebration/ContractPaidCelebration.vue.d.ts +25 -0
- package/dist/components/molecules/ContractPaidCelebration/index.d.ts +2 -0
- package/dist/components/molecules/DocumentUpload/DocumentUpload.stories.d.ts +10 -0
- package/dist/components/molecules/DocumentUpload/DocumentUpload.vue.d.ts +40 -0
- package/dist/components/molecules/DocumentUpload/index.d.ts +2 -0
- package/dist/components/molecules/FilePreview/FilePreview.stories.d.ts +13 -0
- package/dist/components/molecules/FilePreview/FilePreview.vue.d.ts +32 -0
- package/dist/components/molecules/FilePreview/index.d.ts +2 -0
- package/dist/components/molecules/FormField/FormField.stories.d.ts +9 -0
- package/dist/components/molecules/FormField/FormField.vue.d.ts +39 -0
- package/dist/components/molecules/FormField/index.d.ts +2 -0
- package/dist/components/molecules/IdentifierInput/IdentifierInput.stories.d.ts +14 -0
- package/dist/components/molecules/IdentifierInput/IdentifierInput.vue.d.ts +29 -0
- package/dist/components/molecules/IdentifierInput/index.d.ts +2 -0
- package/dist/components/molecules/InfoCard/InfoCard.stories.d.ts +13 -0
- package/dist/components/molecules/InfoCard/InfoCard.vue.d.ts +53 -0
- package/dist/components/molecules/InfoCard/index.d.ts +2 -0
- package/dist/components/molecules/InputRangeMoney/InputRangeMoney.stories.d.ts +9 -0
- package/dist/components/molecules/InputRangeMoney/InputRangeMoney.vue.d.ts +19 -0
- package/dist/components/molecules/InputRangeMoney/index.d.ts +2 -0
- package/dist/components/molecules/InstallmentCard/InstallmentCard.stories.d.ts +9 -0
- package/dist/components/molecules/InstallmentCard/InstallmentCard.vue.d.ts +29 -0
- package/dist/components/molecules/InstallmentCard/index.d.ts +2 -0
- package/dist/components/molecules/InstallmentSelector/InstallmentSelector.stories.d.ts +10 -0
- package/dist/components/molecules/InstallmentSelector/InstallmentSelector.vue.d.ts +28 -0
- package/dist/components/molecules/InstallmentSelector/index.d.ts +2 -0
- package/dist/components/molecules/MarginIndicator/MarginIndicator.stories.d.ts +12 -0
- package/dist/components/molecules/MarginIndicator/MarginIndicator.vue.d.ts +18 -0
- package/dist/components/molecules/MarginIndicator/index.d.ts +2 -0
- package/dist/components/molecules/Modal/Modal.stories.d.ts +8 -0
- package/dist/components/molecules/Modal/Modal.vue.d.ts +38 -0
- package/dist/components/molecules/Modal/index.d.ts +2 -0
- package/dist/components/molecules/PasswordInput/PasswordInput.stories.d.ts +11 -0
- package/dist/components/molecules/PasswordInput/PasswordInput.vue.d.ts +30 -0
- package/dist/components/molecules/PasswordInput/index.d.ts +2 -0
- package/dist/components/molecules/PendingProposalBanner/PendingProposalBanner.stories.d.ts +10 -0
- package/dist/components/molecules/PendingProposalBanner/PendingProposalBanner.vue.d.ts +24 -0
- package/dist/components/molecules/PendingProposalBanner/index.d.ts +2 -0
- package/dist/components/molecules/PinInput/PinInput.stories.d.ts +13 -0
- package/dist/components/molecules/PinInput/PinInput.vue.d.ts +36 -0
- package/dist/components/molecules/PinInput/index.d.ts +2 -0
- package/dist/components/molecules/ProgressBar/ProgressBar.stories.d.ts +12 -0
- package/dist/components/molecules/ProgressBar/ProgressBar.vue.d.ts +24 -0
- package/dist/components/molecules/ProgressBar/index.d.ts +2 -0
- package/dist/components/molecules/SearchBar/SearchBar.stories.d.ts +11 -0
- package/dist/components/molecules/SearchBar/SearchBar.vue.d.ts +30 -0
- package/dist/components/molecules/SearchBar/index.d.ts +2 -0
- package/dist/components/molecules/SimulationLoading/SimulationLoading.stories.d.ts +10 -0
- package/dist/components/molecules/SimulationLoading/SimulationLoading.vue.d.ts +17 -0
- package/dist/components/molecules/SimulationLoading/index.d.ts +2 -0
- package/dist/components/molecules/StatusBadge/StatusBadge.stories.d.ts +12 -0
- package/dist/components/molecules/StatusBadge/StatusBadge.vue.d.ts +38 -0
- package/dist/components/molecules/StatusBadge/index.d.ts +2 -0
- package/dist/components/molecules/StepperProgress/StepperProgress.stories.d.ts +11 -0
- package/dist/components/molecules/StepperProgress/StepperProgress.vue.d.ts +22 -0
- package/dist/components/molecules/StepperProgress/index.d.ts +2 -0
- package/dist/components/molecules/WelcomeCard/WelcomeCard.stories.d.ts +11 -0
- package/dist/components/molecules/WelcomeCard/WelcomeCard.vue.d.ts +33 -0
- package/dist/components/molecules/WelcomeCard/index.d.ts +2 -0
- package/dist/components/molecules/index.d.ts +23 -0
- package/dist/components/organisms/AuthLayout/AuthLayout.stories.d.ts +10 -0
- package/dist/components/organisms/AuthLayout/AuthLayout.vue.d.ts +42 -0
- package/dist/components/organisms/AuthLayout/index.d.ts +2 -0
- package/dist/components/organisms/BottomNavigation/BottomNavigation.stories.d.ts +8 -0
- package/dist/components/organisms/BottomNavigation/BottomNavigation.vue.d.ts +38 -0
- package/dist/components/organisms/BottomNavigation/index.d.ts +2 -0
- package/dist/components/organisms/ConsentForm/ConsentForm.stories.d.ts +9 -0
- package/dist/components/organisms/ConsentForm/ConsentForm.vue.d.ts +45 -0
- package/dist/components/organisms/ConsentForm/TermModal.vue.d.ts +37 -0
- package/dist/components/organisms/ConsentForm/index.d.ts +4 -0
- package/dist/components/organisms/ContractCard/ContractCard.stories.d.ts +12 -0
- package/dist/components/organisms/ContractCard/ContractCard.vue.d.ts +41 -0
- package/dist/components/organisms/ContractCard/index.d.ts +2 -0
- package/dist/components/organisms/ContractDetails/ContractDetails.stories.d.ts +9 -0
- package/dist/components/organisms/ContractDetails/ContractDetails.vue.d.ts +53 -0
- package/dist/components/organisms/ContractDetails/index.d.ts +2 -0
- package/dist/components/organisms/CreatePasswordForm/CreatePasswordForm.stories.d.ts +12 -0
- package/dist/components/organisms/CreatePasswordForm/CreatePasswordForm.vue.d.ts +52 -0
- package/dist/components/organisms/CreatePasswordForm/index.d.ts +2 -0
- package/dist/components/organisms/DashboardHeader/DashboardHeader.stories.d.ts +8 -0
- package/dist/components/organisms/DashboardHeader/DashboardHeader.vue.d.ts +14 -0
- package/dist/components/organisms/DashboardHeader/index.d.ts +2 -0
- package/dist/components/organisms/DocumentUploadSection/DocumentUploadSection.stories.d.ts +10 -0
- package/dist/components/organisms/DocumentUploadSection/DocumentUploadSection.vue.d.ts +72 -0
- package/dist/components/organisms/DocumentUploadSection/index.d.ts +2 -0
- package/dist/components/organisms/Footer/Footer.stories.d.ts +10 -0
- package/dist/components/organisms/Footer/Footer.vue.d.ts +50 -0
- package/dist/components/organisms/Footer/index.d.ts +2 -0
- package/dist/components/organisms/ForgotPasswordForm/ForgotPasswordForm.stories.d.ts +12 -0
- package/dist/components/organisms/ForgotPasswordForm/ForgotPasswordForm.vue.d.ts +64 -0
- package/dist/components/organisms/ForgotPasswordForm/index.d.ts +2 -0
- package/dist/components/organisms/Header/Header.stories.d.ts +9 -0
- package/dist/components/organisms/Header/Header.vue.d.ts +36 -0
- package/dist/components/organisms/Header/index.d.ts +2 -0
- package/dist/components/organisms/InstallmentHistory/InstallmentHistory.stories.d.ts +10 -0
- package/dist/components/organisms/InstallmentHistory/InstallmentHistory.vue.d.ts +42 -0
- package/dist/components/organisms/InstallmentHistory/index.d.ts +2 -0
- package/dist/components/organisms/LoginForm/LoginForm.stories.d.ts +10 -0
- package/dist/components/organisms/LoginForm/LoginForm.vue.d.ts +51 -0
- package/dist/components/organisms/LoginForm/index.d.ts +2 -0
- package/dist/components/organisms/ManualInputModal/ManualInputModal.stories.d.ts +9 -0
- package/dist/components/organisms/ManualInputModal/ManualInputModal.vue.d.ts +41 -0
- package/dist/components/organisms/ManualInputModal/index.d.ts +2 -0
- package/dist/components/organisms/OfferCard/OfferCard.stories.d.ts +11 -0
- package/dist/components/organisms/OfferCard/OfferCard.vue.d.ts +39 -0
- package/dist/components/organisms/OfferCard/index.d.ts +2 -0
- package/dist/components/organisms/ProfileForm/ProfileForm.stories.d.ts +10 -0
- package/dist/components/organisms/ProfileForm/ProfileForm.vue.d.ts +62 -0
- package/dist/components/organisms/ProfileForm/index.d.ts +2 -0
- package/dist/components/organisms/QuickActions/QuickActions.stories.d.ts +9 -0
- package/dist/components/organisms/QuickActions/QuickActions.vue.d.ts +24 -0
- package/dist/components/organisms/QuickActions/index.d.ts +2 -0
- package/dist/components/organisms/ResetPasswordForm/ResetPasswordForm.stories.d.ts +12 -0
- package/dist/components/organisms/ResetPasswordForm/ResetPasswordForm.vue.d.ts +52 -0
- package/dist/components/organisms/ResetPasswordForm/index.d.ts +2 -0
- package/dist/components/organisms/SCRConsentModal/SCRConsentModal.stories.d.ts +8 -0
- package/dist/components/organisms/SCRConsentModal/SCRConsentModal.vue.d.ts +18 -0
- package/dist/components/organisms/SCRConsentModal/index.d.ts +2 -0
- package/dist/components/organisms/Sidebar/Sidebar.stories.d.ts +8 -0
- package/dist/components/organisms/Sidebar/Sidebar.vue.d.ts +78 -0
- package/dist/components/organisms/Sidebar/SidebarItem.vue.d.ts +28 -0
- package/dist/components/organisms/Sidebar/index.d.ts +4 -0
- package/dist/components/organisms/SimulationResult/SimulationResult.stories.d.ts +11 -0
- package/dist/components/organisms/SimulationResult/SimulationResult.vue.d.ts +44 -0
- package/dist/components/organisms/SimulationResult/index.d.ts +2 -0
- package/dist/components/organisms/TopNavigation/TopNavigation.stories.d.ts +8 -0
- package/dist/components/organisms/TopNavigation/TopNavigation.vue.d.ts +48 -0
- package/dist/components/organisms/TopNavigation/index.d.ts +2 -0
- package/dist/components/organisms/index.d.ts +26 -0
- package/dist/components/templates/FormLayout/FormLayout.stories.d.ts +65 -0
- package/dist/components/templates/FormLayout/FormLayout.vue.d.ts +84 -0
- package/dist/components/templates/FormLayout/index.d.ts +2 -0
- package/dist/components/templates/index.d.ts +1 -0
- package/dist/composables/index.d.ts +4 -0
- package/dist/composables/useTheme.d.ts +66 -0
- package/dist/credit-ui.cjs.js +90 -0
- package/dist/credit-ui.css +1 -0
- package/dist/credit-ui.es.js +8936 -0
- package/dist/images/auth-background.jpg +0 -0
- package/dist/index.d.ts +20 -0
- package/dist/logo.png +0 -0
- package/dist/nuxt/index.d.ts +5 -0
- package/dist/nuxt/module.d.ts +17 -0
- package/dist/nuxt.cjs.js +1 -0
- package/dist/nuxt.es.js +31 -0
- package/dist/themes/defaults.d.ts +96 -0
- package/dist/themes/index.d.ts +8 -0
- package/dist/themes/utils.d.ts +35 -0
- package/dist/themes.cjs.js +6 -0
- package/dist/themes.es.js +163 -0
- package/dist/tokens.css +124 -0
- package/dist/types/index.d.ts +6 -0
- package/dist/types/theme.d.ts +142 -0
- package/package.json +75 -0
- package/src/nuxt/runtime/composables/useTheme.ts +86 -0
- package/src/nuxt/runtime/plugin.server.ts +32 -0
- package/src/nuxt/runtime/plugin.ts +22 -0
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
export interface FooterLink {
|
|
2
|
+
label: string;
|
|
3
|
+
url: string;
|
|
4
|
+
external?: boolean;
|
|
5
|
+
}
|
|
6
|
+
export interface FooterProps {
|
|
7
|
+
/** Links da primeira coluna */
|
|
8
|
+
primaryLinks?: FooterLink[];
|
|
9
|
+
/** Links da segunda coluna */
|
|
10
|
+
secondaryLinks?: FooterLink[];
|
|
11
|
+
/** Título da primeira coluna */
|
|
12
|
+
primaryTitle?: string;
|
|
13
|
+
/** Título da segunda coluna */
|
|
14
|
+
secondaryTitle?: string;
|
|
15
|
+
/** Texto de copyright */
|
|
16
|
+
copyrightText?: string;
|
|
17
|
+
/** URL do logo */
|
|
18
|
+
logoSrc?: string;
|
|
19
|
+
/** Alt text do logo */
|
|
20
|
+
logoAlt?: string;
|
|
21
|
+
}
|
|
22
|
+
declare function __VLS_template(): {
|
|
23
|
+
attrs: Partial<{}>;
|
|
24
|
+
slots: {
|
|
25
|
+
default?(_: {}): any;
|
|
26
|
+
};
|
|
27
|
+
refs: {};
|
|
28
|
+
rootEl: HTMLElement;
|
|
29
|
+
};
|
|
30
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
31
|
+
declare const __VLS_component: import('vue').DefineComponent<FooterProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
32
|
+
"link-click": (link: FooterLink) => any;
|
|
33
|
+
}, string, import('vue').PublicProps, Readonly<FooterProps> & Readonly<{
|
|
34
|
+
"onLink-click"?: ((link: FooterLink) => any) | undefined;
|
|
35
|
+
}>, {
|
|
36
|
+
logoSrc: string;
|
|
37
|
+
logoAlt: string;
|
|
38
|
+
primaryLinks: FooterLink[];
|
|
39
|
+
secondaryLinks: FooterLink[];
|
|
40
|
+
primaryTitle: string;
|
|
41
|
+
secondaryTitle: string;
|
|
42
|
+
copyrightText: string;
|
|
43
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLElement>;
|
|
44
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
45
|
+
export default _default;
|
|
46
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
47
|
+
new (): {
|
|
48
|
+
$slots: S;
|
|
49
|
+
};
|
|
50
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Meta, StoryObj } from '@storybook/vue3';
|
|
2
|
+
import { default as ForgotPasswordForm } from './ForgotPasswordForm.vue';
|
|
3
|
+
declare const meta: Meta<typeof ForgotPasswordForm>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof meta>;
|
|
6
|
+
export declare const Default: Story;
|
|
7
|
+
export declare const WithError: Story;
|
|
8
|
+
export declare const Loading: Story;
|
|
9
|
+
export declare const WithServerError: Story;
|
|
10
|
+
export declare const WithSuccess: Story;
|
|
11
|
+
export declare const WithEmail: Story;
|
|
12
|
+
export declare const InAuthLayout: Story;
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
export interface ForgotPasswordFormData {
|
|
2
|
+
identifier: string;
|
|
3
|
+
}
|
|
4
|
+
export interface ForgotPasswordFormErrors {
|
|
5
|
+
identifier?: string;
|
|
6
|
+
}
|
|
7
|
+
export interface ForgotPasswordFormProps {
|
|
8
|
+
/** Estado de carregamento */
|
|
9
|
+
loading?: boolean;
|
|
10
|
+
/** Mensagem de erro do servidor */
|
|
11
|
+
errorMessage?: string;
|
|
12
|
+
/** Mensagem de sucesso */
|
|
13
|
+
successMessage?: string;
|
|
14
|
+
/** Erros de validação dos campos */
|
|
15
|
+
errors?: ForgotPasswordFormErrors;
|
|
16
|
+
/** Texto do botão de submit */
|
|
17
|
+
submitText?: string;
|
|
18
|
+
/** Texto do botão de submit quando loading */
|
|
19
|
+
loadingText?: string;
|
|
20
|
+
/** Label do campo de identificador */
|
|
21
|
+
identifierLabel?: string;
|
|
22
|
+
/** Placeholder do campo de identificador */
|
|
23
|
+
identifierPlaceholder?: string;
|
|
24
|
+
/** Texto de instrução */
|
|
25
|
+
instructionText?: string;
|
|
26
|
+
/** URL do link "Voltar para login" */
|
|
27
|
+
backToLoginUrl?: string;
|
|
28
|
+
/** Texto do link "Voltar para login" */
|
|
29
|
+
backToLoginText?: string;
|
|
30
|
+
}
|
|
31
|
+
declare function __VLS_template(): {
|
|
32
|
+
attrs: Partial<{}>;
|
|
33
|
+
slots: {
|
|
34
|
+
default?(_: {}): any;
|
|
35
|
+
};
|
|
36
|
+
refs: {};
|
|
37
|
+
rootEl: HTMLFormElement;
|
|
38
|
+
};
|
|
39
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
40
|
+
declare const __VLS_component: import('vue').DefineComponent<ForgotPasswordFormProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
41
|
+
submit: (data: ForgotPasswordFormData) => any;
|
|
42
|
+
"back-to-login": () => any;
|
|
43
|
+
}, string, import('vue').PublicProps, Readonly<ForgotPasswordFormProps> & Readonly<{
|
|
44
|
+
onSubmit?: ((data: ForgotPasswordFormData) => any) | undefined;
|
|
45
|
+
"onBack-to-login"?: (() => any) | undefined;
|
|
46
|
+
}>, {
|
|
47
|
+
loading: boolean;
|
|
48
|
+
errorMessage: string;
|
|
49
|
+
successMessage: string;
|
|
50
|
+
submitText: string;
|
|
51
|
+
loadingText: string;
|
|
52
|
+
identifierLabel: string;
|
|
53
|
+
identifierPlaceholder: string;
|
|
54
|
+
instructionText: string;
|
|
55
|
+
backToLoginUrl: string;
|
|
56
|
+
backToLoginText: string;
|
|
57
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLFormElement>;
|
|
58
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
59
|
+
export default _default;
|
|
60
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
61
|
+
new (): {
|
|
62
|
+
$slots: S;
|
|
63
|
+
};
|
|
64
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Meta, StoryObj } from '@storybook/vue3';
|
|
2
|
+
import { default as Header } from './Header.vue';
|
|
3
|
+
declare const meta: Meta<typeof Header>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof meta>;
|
|
6
|
+
export declare const Default: Story;
|
|
7
|
+
export declare const Sticky: Story;
|
|
8
|
+
export declare const WithoutUserMenu: Story;
|
|
9
|
+
export declare const LongUserName: Story;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { IconName } from '../../atoms';
|
|
2
|
+
export interface HeaderProps {
|
|
3
|
+
/** Se o header deve ter comportamento sticky */
|
|
4
|
+
sticky?: boolean;
|
|
5
|
+
/** Nome do usuário logado */
|
|
6
|
+
userName?: string;
|
|
7
|
+
/** URL do logo */
|
|
8
|
+
logoSrc?: string;
|
|
9
|
+
/** Alt text do logo */
|
|
10
|
+
logoAlt?: string;
|
|
11
|
+
/** Se deve mostrar o menu do usuário */
|
|
12
|
+
showUserMenu?: boolean;
|
|
13
|
+
}
|
|
14
|
+
export interface HeaderMenuItem {
|
|
15
|
+
label: string;
|
|
16
|
+
icon?: IconName;
|
|
17
|
+
action: string;
|
|
18
|
+
}
|
|
19
|
+
declare const _default: import('vue').DefineComponent<HeaderProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
20
|
+
logout: () => any;
|
|
21
|
+
navigate: (path: string) => any;
|
|
22
|
+
"menu-item-click": (action: string) => any;
|
|
23
|
+
}, string, import('vue').PublicProps, Readonly<HeaderProps> & Readonly<{
|
|
24
|
+
onLogout?: (() => any) | undefined;
|
|
25
|
+
onNavigate?: ((path: string) => any) | undefined;
|
|
26
|
+
"onMenu-item-click"?: ((action: string) => any) | undefined;
|
|
27
|
+
}>, {
|
|
28
|
+
userName: string;
|
|
29
|
+
logoSrc: string;
|
|
30
|
+
logoAlt: string;
|
|
31
|
+
sticky: boolean;
|
|
32
|
+
showUserMenu: boolean;
|
|
33
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
34
|
+
dropdownRef: HTMLDivElement;
|
|
35
|
+
}, HTMLElement>;
|
|
36
|
+
export default _default;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Meta, StoryObj } from '@storybook/vue3';
|
|
2
|
+
import { default as InstallmentHistory } from './InstallmentHistory.vue';
|
|
3
|
+
declare const meta: Meta<typeof InstallmentHistory>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof meta>;
|
|
6
|
+
export declare const Default: Story;
|
|
7
|
+
export declare const Loading: Story;
|
|
8
|
+
export declare const Error: Story;
|
|
9
|
+
export declare const Empty: Story;
|
|
10
|
+
export declare const FewItems: Story;
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* InstallmentHistory - Componente Organism
|
|
3
|
+
*
|
|
4
|
+
* Exibe histórico completo de parcelas de um contrato em formato de tabela,
|
|
5
|
+
* com filtros, ordenação e paginação.
|
|
6
|
+
*
|
|
7
|
+
* @example
|
|
8
|
+
* ```vue
|
|
9
|
+
* <InstallmentHistory
|
|
10
|
+
* :installments="installmentList"
|
|
11
|
+
* :loading="isLoading"
|
|
12
|
+
* :error="errorMessage"
|
|
13
|
+
* @retry="fetchInstallments"
|
|
14
|
+
* />
|
|
15
|
+
* ```
|
|
16
|
+
*/
|
|
17
|
+
export interface Installment {
|
|
18
|
+
number: number;
|
|
19
|
+
amount: number;
|
|
20
|
+
dueDate: string;
|
|
21
|
+
status: 'PENDING' | 'PROCESSING' | 'PAID' | 'PAID_LATE' | 'OVERDUE';
|
|
22
|
+
}
|
|
23
|
+
export interface InstallmentHistoryProps {
|
|
24
|
+
/** Lista de parcelas */
|
|
25
|
+
installments: Installment[];
|
|
26
|
+
/** Estado de loading */
|
|
27
|
+
loading?: boolean;
|
|
28
|
+
/** Mensagem de erro */
|
|
29
|
+
error?: string | null;
|
|
30
|
+
/** Itens por página */
|
|
31
|
+
itemsPerPage?: number;
|
|
32
|
+
}
|
|
33
|
+
declare const _default: import('vue').DefineComponent<InstallmentHistoryProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
34
|
+
retry: () => any;
|
|
35
|
+
}, string, import('vue').PublicProps, Readonly<InstallmentHistoryProps> & Readonly<{
|
|
36
|
+
onRetry?: (() => any) | undefined;
|
|
37
|
+
}>, {
|
|
38
|
+
loading: boolean;
|
|
39
|
+
error: string | null;
|
|
40
|
+
itemsPerPage: number;
|
|
41
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
42
|
+
export default _default;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Meta, StoryObj } from '@storybook/vue3';
|
|
2
|
+
import { default as LoginForm } from './LoginForm.vue';
|
|
3
|
+
declare const meta: Meta<typeof LoginForm>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof meta>;
|
|
6
|
+
export declare const Default: Story;
|
|
7
|
+
export declare const Loading: Story;
|
|
8
|
+
export declare const WithServerError: Story;
|
|
9
|
+
export declare const WithFieldErrors: Story;
|
|
10
|
+
export declare const GiroCredito: Story;
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
export interface LoginFormData {
|
|
2
|
+
identifier: string;
|
|
3
|
+
password: string;
|
|
4
|
+
}
|
|
5
|
+
export interface LoginFormErrors {
|
|
6
|
+
identifier?: string;
|
|
7
|
+
password?: string;
|
|
8
|
+
}
|
|
9
|
+
export interface LoginFormProps {
|
|
10
|
+
/** Estado de carregamento */
|
|
11
|
+
loading?: boolean;
|
|
12
|
+
/** Mensagem de erro do servidor */
|
|
13
|
+
errorMessage?: string;
|
|
14
|
+
/** Erros de validação dos campos */
|
|
15
|
+
errors?: LoginFormErrors;
|
|
16
|
+
/** URL do link "Esqueci minha senha" */
|
|
17
|
+
forgotPasswordUrl?: string;
|
|
18
|
+
/** Texto do botão de submit */
|
|
19
|
+
submitText?: string;
|
|
20
|
+
/** Texto do botão de submit quando loading */
|
|
21
|
+
loadingText?: string;
|
|
22
|
+
}
|
|
23
|
+
declare function __VLS_template(): {
|
|
24
|
+
attrs: Partial<{}>;
|
|
25
|
+
slots: {
|
|
26
|
+
default?(_: {}): any;
|
|
27
|
+
};
|
|
28
|
+
refs: {};
|
|
29
|
+
rootEl: HTMLFormElement;
|
|
30
|
+
};
|
|
31
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
32
|
+
declare const __VLS_component: import('vue').DefineComponent<LoginFormProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
33
|
+
submit: (data: LoginFormData) => any;
|
|
34
|
+
"forgot-password": () => any;
|
|
35
|
+
}, string, import('vue').PublicProps, Readonly<LoginFormProps> & Readonly<{
|
|
36
|
+
onSubmit?: ((data: LoginFormData) => any) | undefined;
|
|
37
|
+
"onForgot-password"?: (() => any) | undefined;
|
|
38
|
+
}>, {
|
|
39
|
+
loading: boolean;
|
|
40
|
+
errorMessage: string;
|
|
41
|
+
submitText: string;
|
|
42
|
+
loadingText: string;
|
|
43
|
+
forgotPasswordUrl: string;
|
|
44
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLFormElement>;
|
|
45
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
46
|
+
export default _default;
|
|
47
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
48
|
+
new (): {
|
|
49
|
+
$slots: S;
|
|
50
|
+
};
|
|
51
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Meta, StoryObj } from '@storybook/vue3';
|
|
2
|
+
import { default as ManualInputModal } from './ManualInputModal.vue';
|
|
3
|
+
declare const meta: Meta<typeof ManualInputModal>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof meta>;
|
|
6
|
+
export declare const Default: Story;
|
|
7
|
+
export declare const Interactive: Story;
|
|
8
|
+
export declare const SmallRange: Story;
|
|
9
|
+
export declare const LargeRange: Story;
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ManualInputModal - Modal de Input Manual de Valores
|
|
3
|
+
*
|
|
4
|
+
* Fluxo de 2 etapas:
|
|
5
|
+
* 1. Input de valor manualmente
|
|
6
|
+
* 2. Seleção de parcelas disponíveis
|
|
7
|
+
*/
|
|
8
|
+
export interface ManualInputModalProps {
|
|
9
|
+
/** Controla se o modal está aberto */
|
|
10
|
+
isOpen: boolean;
|
|
11
|
+
/** Valor mínimo em centavos */
|
|
12
|
+
minAmount?: number;
|
|
13
|
+
/** Valor máximo em centavos */
|
|
14
|
+
maxAmount?: number;
|
|
15
|
+
/** Número mínimo de parcelas */
|
|
16
|
+
minInstallments?: number;
|
|
17
|
+
/** Número máximo de parcelas */
|
|
18
|
+
maxInstallments?: number;
|
|
19
|
+
/** Taxa de juros mensal (ex: 0.0199 = 1.99%) */
|
|
20
|
+
monthlyInterestRate?: number;
|
|
21
|
+
}
|
|
22
|
+
declare const _default: import('vue').DefineComponent<ManualInputModalProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
23
|
+
close: () => any;
|
|
24
|
+
confirm: (data: {
|
|
25
|
+
amount: number;
|
|
26
|
+
installments: number;
|
|
27
|
+
}) => any;
|
|
28
|
+
}, string, import('vue').PublicProps, Readonly<ManualInputModalProps> & Readonly<{
|
|
29
|
+
onClose?: (() => any) | undefined;
|
|
30
|
+
onConfirm?: ((data: {
|
|
31
|
+
amount: number;
|
|
32
|
+
installments: number;
|
|
33
|
+
}) => any) | undefined;
|
|
34
|
+
}>, {
|
|
35
|
+
minInstallments: number;
|
|
36
|
+
maxInstallments: number;
|
|
37
|
+
minAmount: number;
|
|
38
|
+
maxAmount: number;
|
|
39
|
+
monthlyInterestRate: number;
|
|
40
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
41
|
+
export default _default;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Meta, StoryObj } from '@storybook/vue3';
|
|
2
|
+
import { default as OfferCard } from './OfferCard.vue';
|
|
3
|
+
declare const meta: Meta<typeof OfferCard>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof meta>;
|
|
6
|
+
export declare const Default: Story;
|
|
7
|
+
export declare const WithBadge: Story;
|
|
8
|
+
export declare const HigherAmount: Story;
|
|
9
|
+
export declare const WithTAC: Story;
|
|
10
|
+
export declare const LowerRate: Story;
|
|
11
|
+
export declare const MultipleOffers: Story;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Dados de uma oferta de crédito
|
|
3
|
+
*/
|
|
4
|
+
export interface SimulationOffer {
|
|
5
|
+
id: string;
|
|
6
|
+
requestedAmount: number;
|
|
7
|
+
approvedAmount: number;
|
|
8
|
+
installments: number;
|
|
9
|
+
installmentValue: number;
|
|
10
|
+
monthlyRate: number;
|
|
11
|
+
annualRate: number;
|
|
12
|
+
cet: number;
|
|
13
|
+
iof: number;
|
|
14
|
+
tac: number;
|
|
15
|
+
totalAmount: number;
|
|
16
|
+
}
|
|
17
|
+
export interface OfferCardProps {
|
|
18
|
+
/** Dados da oferta */
|
|
19
|
+
offer: SimulationOffer;
|
|
20
|
+
/** Mostrar badge de destaque */
|
|
21
|
+
showBadge?: boolean;
|
|
22
|
+
/** Label do badge */
|
|
23
|
+
badgeLabel?: string;
|
|
24
|
+
/** Variante do badge */
|
|
25
|
+
badgeVariant?: 'success' | 'error' | 'warning' | 'info' | 'neutral';
|
|
26
|
+
}
|
|
27
|
+
declare function handleAccept(): void;
|
|
28
|
+
declare const _default: import('vue').DefineComponent<OfferCardProps, {
|
|
29
|
+
handleAccept: typeof handleAccept;
|
|
30
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
31
|
+
accept: (offerId: string) => any;
|
|
32
|
+
}, string, import('vue').PublicProps, Readonly<OfferCardProps> & Readonly<{
|
|
33
|
+
onAccept?: ((offerId: string) => any) | undefined;
|
|
34
|
+
}>, {
|
|
35
|
+
showBadge: boolean;
|
|
36
|
+
badgeLabel: string;
|
|
37
|
+
badgeVariant: "success" | "error" | "warning" | "info" | "neutral";
|
|
38
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
39
|
+
export default _default;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Meta, StoryObj } from '@storybook/vue3';
|
|
2
|
+
import { default as ProfileForm } from './ProfileForm.vue';
|
|
3
|
+
declare const meta: Meta<typeof ProfileForm>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof meta>;
|
|
6
|
+
export declare const Default: Story;
|
|
7
|
+
export declare const Empty: Story;
|
|
8
|
+
export declare const Loading: Story;
|
|
9
|
+
export declare const WithErrors: Story;
|
|
10
|
+
export declare const WithAPIError: Story;
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ProfileForm - Organism component para edição de perfil do usuário
|
|
3
|
+
*
|
|
4
|
+
* Componente de formulário que permite editar dados de perfil do usuário.
|
|
5
|
+
* Validação é responsabilidade do consumidor - este componente apenas
|
|
6
|
+
* exibe erros passados via props.
|
|
7
|
+
*
|
|
8
|
+
* @example
|
|
9
|
+
* ```vue
|
|
10
|
+
* <ProfileForm
|
|
11
|
+
* :initial-data="userData"
|
|
12
|
+
* :errors="validationErrors"
|
|
13
|
+
* :loading="isSubmitting"
|
|
14
|
+
* @save="handleSave"
|
|
15
|
+
* @cancel="handleCancel"
|
|
16
|
+
* />
|
|
17
|
+
* ```
|
|
18
|
+
*/
|
|
19
|
+
export interface ProfileInitialData {
|
|
20
|
+
name?: string;
|
|
21
|
+
email?: string;
|
|
22
|
+
phone?: string;
|
|
23
|
+
address?: string;
|
|
24
|
+
avatarUrl?: string;
|
|
25
|
+
}
|
|
26
|
+
export interface ProfileFormData {
|
|
27
|
+
name: string;
|
|
28
|
+
email: string;
|
|
29
|
+
phone: string;
|
|
30
|
+
address: string;
|
|
31
|
+
avatarFile?: File;
|
|
32
|
+
}
|
|
33
|
+
export interface ProfileFormErrors {
|
|
34
|
+
name?: string;
|
|
35
|
+
email?: string;
|
|
36
|
+
phone?: string;
|
|
37
|
+
address?: string;
|
|
38
|
+
avatar?: string;
|
|
39
|
+
}
|
|
40
|
+
export interface ProfileFormProps {
|
|
41
|
+
/** Dados iniciais do perfil */
|
|
42
|
+
initialData?: ProfileInitialData;
|
|
43
|
+
/** Estado de loading */
|
|
44
|
+
loading?: boolean;
|
|
45
|
+
/** Erros de validação externos */
|
|
46
|
+
errors?: ProfileFormErrors;
|
|
47
|
+
/** Mensagem de erro da API */
|
|
48
|
+
errorMessage?: string;
|
|
49
|
+
}
|
|
50
|
+
declare const _default: import('vue').DefineComponent<ProfileFormProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
51
|
+
cancel: () => any;
|
|
52
|
+
save: (data: ProfileFormData) => any;
|
|
53
|
+
"field-blur": (field: keyof ProfileFormData, value: string) => any;
|
|
54
|
+
}, string, import('vue').PublicProps, Readonly<ProfileFormProps> & Readonly<{
|
|
55
|
+
onCancel?: (() => any) | undefined;
|
|
56
|
+
onSave?: ((data: ProfileFormData) => any) | undefined;
|
|
57
|
+
"onField-blur"?: ((field: keyof ProfileFormData, value: string) => any) | undefined;
|
|
58
|
+
}>, {
|
|
59
|
+
loading: boolean;
|
|
60
|
+
errorMessage: string;
|
|
61
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLFormElement>;
|
|
62
|
+
export default _default;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Meta, StoryObj } from '@storybook/vue3';
|
|
2
|
+
import { default as QuickActions } from './QuickActions.vue';
|
|
3
|
+
declare const meta: Meta<typeof QuickActions>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof meta>;
|
|
6
|
+
export declare const Default: Story;
|
|
7
|
+
export declare const WithDisabledActions: Story;
|
|
8
|
+
export declare const Empty: Story;
|
|
9
|
+
export declare const TwoActions: Story;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
export interface QuickAction {
|
|
2
|
+
/** ID único da ação */
|
|
3
|
+
id: string;
|
|
4
|
+
/** Label da ação */
|
|
5
|
+
label: string;
|
|
6
|
+
/** Nome do ícone */
|
|
7
|
+
icon: string;
|
|
8
|
+
/** Se a ação está desabilitada */
|
|
9
|
+
disabled?: boolean;
|
|
10
|
+
}
|
|
11
|
+
export interface QuickActionsProps {
|
|
12
|
+
/** Lista de ações rápidas */
|
|
13
|
+
actions: QuickAction[] | null;
|
|
14
|
+
/** Título da seção */
|
|
15
|
+
title?: string;
|
|
16
|
+
}
|
|
17
|
+
declare const _default: import('vue').DefineComponent<QuickActionsProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
18
|
+
"action-click": (actionId: string) => any;
|
|
19
|
+
}, string, import('vue').PublicProps, Readonly<QuickActionsProps> & Readonly<{
|
|
20
|
+
"onAction-click"?: ((actionId: string) => any) | undefined;
|
|
21
|
+
}>, {
|
|
22
|
+
title: string;
|
|
23
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
24
|
+
export default _default;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Meta, StoryObj } from '@storybook/vue3';
|
|
2
|
+
import { default as ResetPasswordForm } from './ResetPasswordForm.vue';
|
|
3
|
+
declare const meta: Meta<typeof ResetPasswordForm>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof meta>;
|
|
6
|
+
export declare const Default: Story;
|
|
7
|
+
export declare const WithError: Story;
|
|
8
|
+
export declare const WithPasswordMismatch: Story;
|
|
9
|
+
export declare const Loading: Story;
|
|
10
|
+
export declare const WithServerError: Story;
|
|
11
|
+
export declare const WithSuccess: Story;
|
|
12
|
+
export declare const InAuthLayout: Story;
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
export interface ResetPasswordFormData {
|
|
2
|
+
newPassword: string;
|
|
3
|
+
}
|
|
4
|
+
export interface ResetPasswordFormErrors {
|
|
5
|
+
newPassword?: string;
|
|
6
|
+
confirmPassword?: string;
|
|
7
|
+
}
|
|
8
|
+
export interface ResetPasswordFormProps {
|
|
9
|
+
/** Estado de carregamento */
|
|
10
|
+
loading?: boolean;
|
|
11
|
+
/** Mensagem de erro do servidor */
|
|
12
|
+
errorMessage?: string;
|
|
13
|
+
/** Mensagem de sucesso */
|
|
14
|
+
successMessage?: string;
|
|
15
|
+
/** Erros de validação dos campos */
|
|
16
|
+
errors?: ResetPasswordFormErrors;
|
|
17
|
+
/** Texto do botão de submit */
|
|
18
|
+
submitText?: string;
|
|
19
|
+
/** Texto do botão de submit quando loading */
|
|
20
|
+
loadingText?: string;
|
|
21
|
+
}
|
|
22
|
+
declare function __VLS_template(): {
|
|
23
|
+
attrs: Partial<{}>;
|
|
24
|
+
slots: {
|
|
25
|
+
default?(_: {}): any;
|
|
26
|
+
};
|
|
27
|
+
refs: {};
|
|
28
|
+
rootEl: HTMLFormElement;
|
|
29
|
+
};
|
|
30
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
31
|
+
declare const __VLS_component: import('vue').DefineComponent<ResetPasswordFormProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
32
|
+
submit: (data: ResetPasswordFormData & {
|
|
33
|
+
confirmPassword: string;
|
|
34
|
+
}) => any;
|
|
35
|
+
}, string, import('vue').PublicProps, Readonly<ResetPasswordFormProps> & Readonly<{
|
|
36
|
+
onSubmit?: ((data: ResetPasswordFormData & {
|
|
37
|
+
confirmPassword: string;
|
|
38
|
+
}) => any) | undefined;
|
|
39
|
+
}>, {
|
|
40
|
+
loading: boolean;
|
|
41
|
+
errorMessage: string;
|
|
42
|
+
successMessage: string;
|
|
43
|
+
submitText: string;
|
|
44
|
+
loadingText: string;
|
|
45
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLFormElement>;
|
|
46
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
47
|
+
export default _default;
|
|
48
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
49
|
+
new (): {
|
|
50
|
+
$slots: S;
|
|
51
|
+
};
|
|
52
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Meta, StoryObj } from '@storybook/vue3';
|
|
2
|
+
import { default as SCRConsentModal } from './SCRConsentModal.vue';
|
|
3
|
+
declare const meta: Meta<typeof SCRConsentModal>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof meta>;
|
|
6
|
+
export declare const Default: Story;
|
|
7
|
+
export declare const Interactive: Story;
|
|
8
|
+
export declare const CustomCompany: Story;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export interface SCRConsentModalProps {
|
|
2
|
+
/** Se o modal está aberto */
|
|
3
|
+
isOpen: boolean;
|
|
4
|
+
/** Nome da empresa */
|
|
5
|
+
companyName?: string;
|
|
6
|
+
}
|
|
7
|
+
declare const _default: import('vue').DefineComponent<SCRConsentModalProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
8
|
+
close: () => any;
|
|
9
|
+
accept: () => any;
|
|
10
|
+
reject: () => any;
|
|
11
|
+
}, string, import('vue').PublicProps, Readonly<SCRConsentModalProps> & Readonly<{
|
|
12
|
+
onClose?: (() => any) | undefined;
|
|
13
|
+
onAccept?: (() => any) | undefined;
|
|
14
|
+
onReject?: (() => any) | undefined;
|
|
15
|
+
}>, {
|
|
16
|
+
companyName: string;
|
|
17
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
18
|
+
export default _default;
|