we-insights-react-native
Version:
[we-insights] is a powerful utility library designed to streamline data collection processes for WeApp employees. It simplifies the process of gathering, storing, and managing data within WeApp projects, making it an invaluable tool for enhancing efficien
68 lines • 1.75 kB
TypeScript
import React from 'react';
import type { IconItem } from './constants';
interface CheckboxStyle {
checkedBorderColor: string;
uncheckedBorderColor: string;
checkedBackgroundColor: string;
uncheckedBackgroundColor: string;
checkmarkColor: string;
textColor: string;
}
interface ButtonsStyle {
primaryButtonBackgroundColor?: string;
primaryButtonTextColor?: string;
secondaryButtonBackgroundColor?: string;
secondaryButtonTextColor?: string;
}
interface InputStyle {
backgroundColor?: string;
textColor?: string;
borderColor?: string;
}
interface RatingBoxStyle {
backgroundColor: string;
textColor: string;
iconTextColor: string;
fontFamily: string;
}
export interface Style {
backgroundColor: string;
textColor: string;
primaryFont: string;
secondaryFont: string;
buttonsStyle: ButtonsStyle;
inputStyle: InputStyle;
checkboxStyle: CheckboxStyle;
ratingBoxStyle: RatingBoxStyle;
}
interface Props {
projectName: string;
onSkip?: () => void;
onSend?: () => void;
email?: string;
style?: Style;
language?: 'en' | 'sv';
customTranslations?: Translations;
customIcons?: IconItem[];
}
export interface Translations {
title: string;
description: string;
feedbackQuestion: string;
feedbackPlaceholder: string;
emailPlaceholder: string;
sendButton: string;
skipButton: string;
satisfactionQuestion: string;
answerFurtherQuestions: string;
ratingTranslations: {
one: string;
two: string;
three: string;
four: string;
five: string;
};
}
export declare const FeedbackForm: React.FC<Props>;
export {};
//# sourceMappingURL=FeedbackForm.d.ts.map