fansunited-frontend-components 0.0.1-RC4 → 0.0.1-RC6
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/{components.js → classic-quiz-play.es.js} +5 -5
- package/classic-quiz-play.umd.js +174 -0
- package/index.d.ts +3 -0
- package/package.json +2 -2
- package/src/components/ClassicQuizNotFound.d.ts +5 -0
- package/src/components/ClassicQuizNotFound.d.ts.map +1 -0
- package/src/components/ClassicQuizPlay.d.ts +6 -0
- package/src/components/ClassicQuizPlay.d.ts.map +1 -0
- package/src/components/Leads/CollectLead.d.ts +23 -0
- package/src/components/Leads/CollectLead.d.ts.map +1 -0
- package/src/components/Leads/LeadAgreementCheckbox.d.ts +11 -0
- package/src/components/Leads/LeadAgreementCheckbox.d.ts.map +1 -0
- package/src/components/Leads/LeadForm.d.ts +21 -0
- package/src/components/Leads/LeadForm.d.ts.map +1 -0
- package/src/components/Shared/AlertMessage.d.ts +10 -0
- package/src/components/Shared/AlertMessage.d.ts.map +1 -0
- package/src/components/Shared/Answers/Answers.d.ts +15 -0
- package/src/components/Shared/Answers/Answers.d.ts.map +1 -0
- package/src/components/Shared/Answers/Option.d.ts +14 -0
- package/src/components/Shared/Answers/Option.d.ts.map +1 -0
- package/src/components/Shared/Button.d.ts +13 -0
- package/src/components/Shared/Button.d.ts.map +1 -0
- package/src/components/Shared/MainCard.d.ts +11 -0
- package/src/components/Shared/MainCard.d.ts.map +1 -0
- package/src/components/Shared/Pagination.d.ts +11 -0
- package/src/components/Shared/Pagination.d.ts.map +1 -0
- package/src/components/Shared/PresentedBy.d.ts +9 -0
- package/src/components/Shared/PresentedBy.d.ts.map +1 -0
- package/src/components/Shared/ScoreStateWrapper.d.ts +14 -0
- package/src/components/Shared/ScoreStateWrapper.d.ts.map +1 -0
- package/src/components/Shared/Stepper.d.ts +12 -0
- package/src/components/Shared/Stepper.d.ts.map +1 -0
- package/src/components/Shared/Stopwatch.d.ts +13 -0
- package/src/components/Shared/Stopwatch.d.ts.map +1 -0
- package/src/components/Variants/Overlay/AuthError/OverlayAuthError.d.ts +9 -0
- package/src/components/Variants/Overlay/AuthError/OverlayAuthError.d.ts.map +1 -0
- package/src/components/Variants/Overlay/AuthError/OverlayAuthError.styles.d.ts +119 -0
- package/src/components/Variants/Overlay/AuthError/OverlayAuthError.styles.d.ts.map +1 -0
- package/src/components/Variants/Overlay/OverlayVariant.d.ts +6 -0
- package/src/components/Variants/Overlay/OverlayVariant.d.ts.map +1 -0
- package/src/components/Variants/Overlay/OverlayVariant.styles.d.ts +287 -0
- package/src/components/Variants/Overlay/OverlayVariant.styles.d.ts.map +1 -0
- package/src/components/Variants/Overlay/ScoreState/OverlayScoreState.d.ts +17 -0
- package/src/components/Variants/Overlay/ScoreState/OverlayScoreState.d.ts.map +1 -0
- package/src/components/Variants/Overlay/ScoreState/OverlayScoreState.styles.d.ts +365 -0
- package/src/components/Variants/Overlay/ScoreState/OverlayScoreState.styles.d.ts.map +1 -0
- package/src/components/Variants/Split/AuthError/SplitAuthError.d.ts +9 -0
- package/src/components/Variants/Split/AuthError/SplitAuthError.d.ts.map +1 -0
- package/src/components/Variants/Split/AuthError/SplitAuthError.styles.d.ts +127 -0
- package/src/components/Variants/Split/AuthError/SplitAuthError.styles.d.ts.map +1 -0
- package/src/components/Variants/Split/ScoreState/SplitScoreState.d.ts +17 -0
- package/src/components/Variants/Split/ScoreState/SplitScoreState.d.ts.map +1 -0
- package/src/components/Variants/Split/ScoreState/SplitScoreState.styles.d.ts +404 -0
- package/src/components/Variants/Split/ScoreState/SplitScoreState.styles.d.ts.map +1 -0
- package/src/components/Variants/Split/SplitVariant.d.ts +6 -0
- package/src/components/Variants/Split/SplitVariant.d.ts.map +1 -0
- package/src/components/Variants/Split/SplitVariant.styles.d.ts +253 -0
- package/src/components/Variants/Split/SplitVariant.styles.d.ts.map +1 -0
- package/src/components/Variants/Standard/AuthError/StandardAuthError.d.ts +10 -0
- package/src/components/Variants/Standard/AuthError/StandardAuthError.d.ts.map +1 -0
- package/src/components/Variants/Standard/AuthError/StandardAuthError.styles.d.ts +232 -0
- package/src/components/Variants/Standard/AuthError/StandardAuthError.styles.d.ts.map +1 -0
- package/src/components/Variants/Standard/ScoreState/StandardScoreState.d.ts +18 -0
- package/src/components/Variants/Standard/ScoreState/StandardScoreState.d.ts.map +1 -0
- package/src/components/Variants/Standard/ScoreState/StandardScoreState.styles.d.ts +351 -0
- package/src/components/Variants/Standard/ScoreState/StandardScoreState.styles.d.ts.map +1 -0
- package/src/components/Variants/Standard/StandardVariant.d.ts +11 -0
- package/src/components/Variants/Standard/StandardVariant.d.ts.map +1 -0
- package/src/components/Variants/Standard/StandardVariant.styles.d.ts +415 -0
- package/src/components/Variants/Standard/StandardVariant.styles.d.ts.map +1 -0
- package/src/constants/constants.d.ts +8 -0
- package/src/constants/constants.d.ts.map +1 -0
- package/src/hooks/useClassicQuizById.d.ts +4 -0
- package/src/hooks/useClassicQuizById.d.ts.map +1 -0
- package/src/hooks/useEmbedCodeContainer.d.ts +2 -0
- package/src/hooks/useEmbedCodeContainer.d.ts.map +1 -0
- package/src/hooks/useMyParticipation.d.ts +4 -0
- package/src/hooks/useMyParticipation.d.ts.map +1 -0
- package/src/hooks/useScoreStateHelpers.d.ts +19 -0
- package/src/hooks/useScoreStateHelpers.d.ts.map +1 -0
- package/src/index.d.ts +2 -2
- package/src/index.d.ts.map +1 -1
- package/src/main.d.ts +6 -0
- package/src/main.d.ts.map +1 -0
- package/src/services/service.d.ts +1 -0
- package/src/services/service.d.ts.map +1 -0
- package/src/styles/form.styles.d.ts +19 -0
- package/src/styles/form.styles.d.ts.map +1 -0
- package/src/types/types.d.ts +29 -0
- package/src/types/types.d.ts.map +1 -0
- package/components.d.ts +0 -1
- package/src/indexUmd.d.ts +0 -2
- package/src/indexUmd.d.ts.map +0 -1
- package/vite.config.d.ts +0 -3
- package/vite.config.d.ts.map +0 -1
- package/vite.config.umd.d.ts +0 -3
- package/vite.config.umd.d.ts.map +0 -1
package/index.d.ts
ADDED
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "fansunited-frontend-components",
|
|
3
|
-
"version": "0.0.1-
|
|
3
|
+
"version": "0.0.1-RC6",
|
|
4
4
|
"description": "Various user centric components for Fans United features",
|
|
5
|
-
"main": "
|
|
5
|
+
"main": "classic-quiz-play.es.js",
|
|
6
6
|
"author": "Fans United",
|
|
7
7
|
"homepage": "https://fansunitedmedia.com/"
|
|
8
8
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ClassicQuizNotFound.d.ts","sourceRoot":"","sources":["../../../src/components/ClassicQuizNotFound.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAW1B,QAAA,MAAM,mBAAmB,EAAE,KAAK,CAAC,EAkFhC,CAAC;AAEF,eAAe,mBAAmB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ClassicQuizPlay.d.ts","sourceRoot":"","sources":["../../../src/components/ClassicQuizPlay.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,oBAAoB,EAGrB,MAAM,oBAAoB,CAAC;AAC5B,OAAO,KAAuC,MAAM,OAAO,CAAC;AA8B5D,QAAA,MAAM,eAAe,EAAE,KAAK,CAAC,EAAE,CAAC,oBAAoB,CA6bnD,CAAC;AAEF,eAAe,eAAe,CAAC"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { BrandingColorsModel, BrandingUrlsModel, FansUnitedSDKModel } from 'fansunited-sdk-esm';
|
|
2
|
+
|
|
3
|
+
export type LeadField = "fullName" | "firstName" | "lastName" | "email" | "gender" | "country" | "phoneCountryCode" | "phoneNumber";
|
|
4
|
+
interface CollectLeadProps {
|
|
5
|
+
sdk: FansUnitedSDKModel;
|
|
6
|
+
contentType: string;
|
|
7
|
+
contentId: string;
|
|
8
|
+
contentName: string;
|
|
9
|
+
brandingColors?: BrandingColorsModel;
|
|
10
|
+
brandingUrls?: BrandingUrlsModel;
|
|
11
|
+
campaignId?: string;
|
|
12
|
+
campaignName?: string;
|
|
13
|
+
startGame?: () => void;
|
|
14
|
+
fields?: LeadField[];
|
|
15
|
+
leadTitle?: string;
|
|
16
|
+
leadDescription?: string;
|
|
17
|
+
leadCta?: string;
|
|
18
|
+
leadSuccessTitle?: string;
|
|
19
|
+
leadSuccessDescription?: string;
|
|
20
|
+
}
|
|
21
|
+
declare const CollectLead: React.FC<CollectLeadProps>;
|
|
22
|
+
export default CollectLead;
|
|
23
|
+
//# sourceMappingURL=CollectLead.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CollectLead.d.ts","sourceRoot":"","sources":["../../../../src/components/Leads/CollectLead.tsx"],"names":[],"mappings":"AAEA,OAAO,EACL,mBAAmB,EACnB,iBAAiB,EACjB,kBAAkB,EACnB,MAAM,oBAAoB,CAAC;AAI5B,MAAM,MAAM,SAAS,GACjB,UAAU,GACV,WAAW,GACX,UAAU,GACV,OAAO,GACP,QAAQ,GACR,SAAS,GACT,kBAAkB,GAClB,aAAa,CAAC;AAElB,UAAU,gBAAgB;IACxB,GAAG,EAAE,kBAAkB,CAAC;IACxB,WAAW,EAAE,MAAM,CAAC;IACpB,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,EAAE,MAAM,CAAC;IACpB,cAAc,CAAC,EAAE,mBAAmB,CAAC;IACrC,YAAY,CAAC,EAAE,iBAAiB,CAAC;IACjC,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,SAAS,CAAC,EAAE,MAAM,IAAI,CAAC;IACvB,MAAM,CAAC,EAAE,SAAS,EAAE,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,sBAAsB,CAAC,EAAE,MAAM,CAAC;CACjC;AAED,QAAA,MAAM,WAAW,EAAE,KAAK,CAAC,EAAE,CAAC,gBAAgB,CAiE3C,CAAC;AAEF,eAAe,WAAW,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { BrandingUrlsModel } from 'fansunited-sdk-esm';
|
|
2
|
+
import { default as React } from 'react';
|
|
3
|
+
|
|
4
|
+
type LeadAgreementCheckboxProps = {
|
|
5
|
+
primaryColor: string | undefined;
|
|
6
|
+
brandingUrls: BrandingUrlsModel | undefined;
|
|
7
|
+
isDisabled: boolean;
|
|
8
|
+
};
|
|
9
|
+
declare const LeadAgreementCheckbox: React.FC<LeadAgreementCheckboxProps>;
|
|
10
|
+
export default LeadAgreementCheckbox;
|
|
11
|
+
//# sourceMappingURL=LeadAgreementCheckbox.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LeadAgreementCheckbox.d.ts","sourceRoot":"","sources":["../../../../src/components/Leads/LeadAgreementCheckbox.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AACvD,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,KAAK,0BAA0B,GAAG;IAChC,YAAY,EAAE,MAAM,GAAG,SAAS,CAAC;IACjC,YAAY,EAAE,iBAAiB,GAAG,SAAS,CAAC;IAC5C,UAAU,EAAE,OAAO,CAAC;CACrB,CAAC;AAEF,QAAA,MAAM,qBAAqB,EAAE,KAAK,CAAC,EAAE,CAAC,0BAA0B,CAqG/D,CAAC;AAEF,eAAe,qBAAqB,CAAC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { BrandingColorsModel, BrandingUrlsModel, FansUnitedSDKModel } from 'fansunited-sdk-esm';
|
|
2
|
+
|
|
3
|
+
interface LeadFormProps {
|
|
4
|
+
sdk: FansUnitedSDKModel;
|
|
5
|
+
brandingColors?: BrandingColorsModel;
|
|
6
|
+
brandingUrls?: BrandingUrlsModel;
|
|
7
|
+
fields?: string[];
|
|
8
|
+
campaignId?: string;
|
|
9
|
+
campaignName?: string;
|
|
10
|
+
contentType?: string;
|
|
11
|
+
contentId?: string;
|
|
12
|
+
contentName?: string;
|
|
13
|
+
customFields?: Record<string, string>;
|
|
14
|
+
startGame?: () => void;
|
|
15
|
+
submitButtonCta?: string;
|
|
16
|
+
leadSuccessTitle?: string;
|
|
17
|
+
leadSuccessDescription?: string;
|
|
18
|
+
}
|
|
19
|
+
declare const LeadForm: React.FC<LeadFormProps>;
|
|
20
|
+
export default LeadForm;
|
|
21
|
+
//# sourceMappingURL=LeadForm.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LeadForm.d.ts","sourceRoot":"","sources":["../../../../src/components/Leads/LeadForm.tsx"],"names":[],"mappings":"AAyBA,OAAO,EACL,mBAAmB,EACnB,iBAAiB,EACjB,kBAAkB,EACnB,MAAM,oBAAoB,CAAC;AAiB5B,UAAU,aAAa;IACrB,GAAG,EAAE,kBAAkB,CAAC;IACxB,cAAc,CAAC,EAAE,mBAAmB,CAAC;IACrC,YAAY,CAAC,EAAE,iBAAiB,CAAC;IACjC,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;IAClB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,YAAY,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACtC,SAAS,CAAC,EAAE,MAAM,IAAI,CAAC;IACvB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,sBAAsB,CAAC,EAAE,MAAM,CAAC;CACjC;AAaD,QAAA,MAAM,QAAQ,EAAE,KAAK,CAAC,EAAE,CAAC,aAAa,CA2frC,CAAC;AAEF,eAAe,QAAQ,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
type AlertVariant = "success" | "error" | "info";
|
|
2
|
+
interface AlertMessageProps {
|
|
3
|
+
variant: AlertVariant;
|
|
4
|
+
title?: string;
|
|
5
|
+
message?: string;
|
|
6
|
+
description?: string;
|
|
7
|
+
}
|
|
8
|
+
declare const AlertMessage: ({ variant, title, message, description, }: AlertMessageProps) => import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export default AlertMessage;
|
|
10
|
+
//# sourceMappingURL=AlertMessage.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AlertMessage.d.ts","sourceRoot":"","sources":["../../../../src/components/Shared/AlertMessage.tsx"],"names":[],"mappings":"AAWA,KAAK,YAAY,GAAG,SAAS,GAAG,OAAO,GAAG,MAAM,CAAC;AAEjD,UAAU,iBAAiB;IACzB,OAAO,EAAE,YAAY,CAAC;IACtB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AA2BD,QAAA,MAAM,YAAY,8CAKf,iBAAiB,4CA0CnB,CAAC;AAEF,eAAe,YAAY,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { BrandingColorsModel, ClassicQuizOptionModel } from 'fansunited-sdk-esm';
|
|
2
|
+
import { default as React } from 'react';
|
|
3
|
+
|
|
4
|
+
type AnswersProps = {
|
|
5
|
+
options: ClassicQuizOptionModel[];
|
|
6
|
+
selectedOption: number | null;
|
|
7
|
+
showAnswer: boolean;
|
|
8
|
+
twoByTwo: boolean;
|
|
9
|
+
questionImage: string | null;
|
|
10
|
+
brandingColors: BrandingColorsModel | null;
|
|
11
|
+
answerQuestion: (optionId: number) => void;
|
|
12
|
+
};
|
|
13
|
+
declare const Answers: React.FC<AnswersProps>;
|
|
14
|
+
export default Answers;
|
|
15
|
+
//# sourceMappingURL=Answers.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Answers.d.ts","sourceRoot":"","sources":["../../../../../src/components/Shared/Answers/Answers.tsx"],"names":[],"mappings":"AACA,OAAO,EACL,mBAAmB,EACnB,sBAAsB,EACvB,MAAM,oBAAoB,CAAC;AAC5B,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,KAAK,YAAY,GAAG;IAClB,OAAO,EAAE,sBAAsB,EAAE,CAAC;IAClC,cAAc,EAAE,MAAM,GAAG,IAAI,CAAC;IAC9B,UAAU,EAAE,OAAO,CAAC;IACpB,QAAQ,EAAE,OAAO,CAAC;IAClB,aAAa,EAAE,MAAM,GAAG,IAAI,CAAC;IAC7B,cAAc,EAAE,mBAAmB,GAAG,IAAI,CAAC;IAC3C,cAAc,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAC;CAC5C,CAAC;AAEF,QAAA,MAAM,OAAO,EAAE,KAAK,CAAC,EAAE,CAAC,YAAY,CAkEnC,CAAC;AAEF,eAAe,OAAO,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { BrandingColorsModel, ClassicQuizOptionModel } from 'fansunited-sdk-esm';
|
|
3
|
+
|
|
4
|
+
type OptionProps = {
|
|
5
|
+
option: ClassicQuizOptionModel;
|
|
6
|
+
showAnswer: boolean;
|
|
7
|
+
selectedOption: number | null;
|
|
8
|
+
questionImage: string | null;
|
|
9
|
+
brandingColors: BrandingColorsModel | null;
|
|
10
|
+
answerQuestion: (optionId: number) => void;
|
|
11
|
+
};
|
|
12
|
+
declare const Option: React.FC<OptionProps>;
|
|
13
|
+
export default Option;
|
|
14
|
+
//# sourceMappingURL=Option.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Option.d.ts","sourceRoot":"","sources":["../../../../../src/components/Shared/Answers/Option.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EACL,mBAAmB,EACnB,sBAAsB,EACvB,MAAM,oBAAoB,CAAC;AAU5B,KAAK,WAAW,GAAG;IACjB,MAAM,EAAE,sBAAsB,CAAC;IAC/B,UAAU,EAAE,OAAO,CAAC;IACpB,cAAc,EAAE,MAAM,GAAG,IAAI,CAAC;IAC9B,aAAa,EAAE,MAAM,GAAG,IAAI,CAAC;IAC7B,cAAc,EAAE,mBAAmB,GAAG,IAAI,CAAC;IAC3C,cAAc,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAC;CAC5C,CAAC;AAEF,QAAA,MAAM,MAAM,EAAE,KAAK,CAAC,EAAE,CAAC,WAAW,CA6JjC,CAAC;AAEF,eAAe,MAAM,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
|
|
3
|
+
type ButtonProps = {
|
|
4
|
+
showAnswer: boolean;
|
|
5
|
+
selectedOption: number | null;
|
|
6
|
+
endDecorator: React.ReactNode;
|
|
7
|
+
label: string;
|
|
8
|
+
buttonColor: string;
|
|
9
|
+
onClick: () => void;
|
|
10
|
+
};
|
|
11
|
+
declare const Button: React.FC<ButtonProps>;
|
|
12
|
+
export default Button;
|
|
13
|
+
//# sourceMappingURL=Button.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Button.d.ts","sourceRoot":"","sources":["../../../../src/components/Shared/Button.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAO1B,KAAK,WAAW,GAAG;IACjB,UAAU,EAAE,OAAO,CAAC;IACpB,cAAc,EAAE,MAAM,GAAG,IAAI,CAAC;IAC9B,YAAY,EAAE,KAAK,CAAC,SAAS,CAAC;IAC9B,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,MAAM,CAAC;IACpB,OAAO,EAAE,MAAM,IAAI,CAAC;CACrB,CAAC;AAEF,QAAA,MAAM,MAAM,EAAE,KAAK,CAAC,EAAE,CAAC,WAAW,CAqDjC,CAAC;AAEF,eAAe,MAAM,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { default as React, PropsWithChildren } from 'react';
|
|
2
|
+
|
|
3
|
+
type MainCardProps = {
|
|
4
|
+
brandingBorderColor: string | null;
|
|
5
|
+
};
|
|
6
|
+
/**
|
|
7
|
+
* MainCard component is a styled container that serves as a main card layout for STANDARD and SPLIT variants.
|
|
8
|
+
*/
|
|
9
|
+
declare const MainCard: React.FC<MainCardProps & PropsWithChildren>;
|
|
10
|
+
export default MainCard;
|
|
11
|
+
//# sourceMappingURL=MainCard.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MainCard.d.ts","sourceRoot":"","sources":["../../../../src/components/Shared/MainCard.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAQjD,KAAK,aAAa,GAAG;IACnB,mBAAmB,EAAE,MAAM,GAAG,IAAI,CAAC;CACpC,CAAC;AAEF;;GAEG;AACH,QAAA,MAAM,QAAQ,EAAE,KAAK,CAAC,EAAE,CAAC,aAAa,GAAG,iBAAiB,CA0BzD,CAAC;AAEF,eAAe,QAAQ,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { ClassicQuizFullModel, ClassicQuizParticipationBodyModel } from 'fansunited-sdk-esm';
|
|
3
|
+
|
|
4
|
+
type PaginationProps = {
|
|
5
|
+
classicQuiz: ClassicQuizFullModel;
|
|
6
|
+
currentQuestion: number;
|
|
7
|
+
userParticipation: ClassicQuizParticipationBodyModel[];
|
|
8
|
+
};
|
|
9
|
+
declare const Pagination: React.FC<PaginationProps>;
|
|
10
|
+
export default Pagination;
|
|
11
|
+
//# sourceMappingURL=Pagination.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Pagination.d.ts","sourceRoot":"","sources":["../../../../src/components/Shared/Pagination.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EACL,oBAAoB,EACpB,iCAAiC,EAClC,MAAM,oBAAoB,CAAC;AAI5B,KAAK,eAAe,GAAG;IACrB,WAAW,EAAE,oBAAoB,CAAC;IAClC,eAAe,EAAE,MAAM,CAAC;IACxB,iBAAiB,EAAE,iCAAiC,EAAE,CAAC;CACxD,CAAC;AAEF,QAAA,MAAM,UAAU,EAAE,KAAK,CAAC,EAAE,CAAC,eAAe,CAyJzC,CAAC;AAEF,eAAe,UAAU,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
|
|
3
|
+
type PresentedByProps = {
|
|
4
|
+
brandingLogo: string | null;
|
|
5
|
+
textColor: string | undefined;
|
|
6
|
+
};
|
|
7
|
+
declare const PresentedBy: React.FC<PresentedByProps>;
|
|
8
|
+
export default PresentedBy;
|
|
9
|
+
//# sourceMappingURL=PresentedBy.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PresentedBy.d.ts","sourceRoot":"","sources":["../../../../src/components/Shared/PresentedBy.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAK1B,KAAK,gBAAgB,GAAG;IACtB,YAAY,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B,SAAS,EAAE,MAAM,GAAG,SAAS,CAAC;CAC/B,CAAC;AAEF,QAAA,MAAM,WAAW,EAAE,KAAK,CAAC,EAAE,CAAC,gBAAgB,CAgF3C,CAAC;AAEF,eAAe,WAAW,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { default as React, PropsWithChildren } from 'react';
|
|
2
|
+
import { BrandingColorsModel, ClassicQuizParticipationQuestionModel, ClassicQuizQuestionModel } from 'fansunited-sdk-esm';
|
|
3
|
+
import { SxProps } from '@mui/material';
|
|
4
|
+
|
|
5
|
+
type ScoreStateWrapperProps = {
|
|
6
|
+
questions: ClassicQuizQuestionModel[];
|
|
7
|
+
userParticipation: ClassicQuizParticipationQuestionModel[];
|
|
8
|
+
resultsTabPanelSxProps?: SxProps;
|
|
9
|
+
isOverlayVariant?: boolean;
|
|
10
|
+
brandingColors?: BrandingColorsModel;
|
|
11
|
+
};
|
|
12
|
+
declare const ScoreStateWrapper: React.FC<ScoreStateWrapperProps & PropsWithChildren>;
|
|
13
|
+
export default ScoreStateWrapper;
|
|
14
|
+
//# sourceMappingURL=ScoreStateWrapper.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ScoreStateWrapper.d.ts","sourceRoot":"","sources":["../../../../src/components/Shared/ScoreStateWrapper.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAcjD,OAAO,EACL,mBAAmB,EACnB,qCAAqC,EACrC,wBAAwB,EACzB,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AASxC,KAAK,sBAAsB,GAAG;IAC5B,SAAS,EAAE,wBAAwB,EAAE,CAAC;IACtC,iBAAiB,EAAE,qCAAqC,EAAE,CAAC;IAC3D,sBAAsB,CAAC,EAAE,OAAO,CAAC;IACjC,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,cAAc,CAAC,EAAE,mBAAmB,CAAC;CACtC,CAAC;AAEF,QAAA,MAAM,iBAAiB,EAAE,KAAK,CAAC,EAAE,CAC/B,sBAAsB,GAAG,iBAAiB,CA2Z3C,CAAC;AAEF,eAAe,iBAAiB,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { ClassicQuizFullModel, ClassicQuizParticipationBodyModel } from 'fansunited-sdk-esm';
|
|
3
|
+
|
|
4
|
+
type StepperProps = {
|
|
5
|
+
classicQuiz: ClassicQuizFullModel;
|
|
6
|
+
currentQuestion: number;
|
|
7
|
+
userParticipation: ClassicQuizParticipationBodyModel[];
|
|
8
|
+
brandingPrimaryColor?: string;
|
|
9
|
+
};
|
|
10
|
+
declare const Stepper: React.FC<StepperProps>;
|
|
11
|
+
export default Stepper;
|
|
12
|
+
//# sourceMappingURL=Stepper.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Stepper.d.ts","sourceRoot":"","sources":["../../../../src/components/Shared/Stepper.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,EACL,oBAAoB,EACpB,iCAAiC,EAClC,MAAM,oBAAoB,CAAC;AAE5B,KAAK,YAAY,GAAG;IAClB,WAAW,EAAE,oBAAoB,CAAC;IAClC,eAAe,EAAE,MAAM,CAAC;IACxB,iBAAiB,EAAE,iCAAiC,EAAE,CAAC;IACvD,oBAAoB,CAAC,EAAE,MAAM,CAAC;CAC/B,CAAC;AAEF,QAAA,MAAM,OAAO,EAAE,KAAK,CAAC,EAAE,CAAC,YAAY,CAwFnC,CAAC;AAEF,eAAe,OAAO,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
|
|
3
|
+
type StopwatchProps = {
|
|
4
|
+
isRunning: boolean;
|
|
5
|
+
timer: number;
|
|
6
|
+
quizType: string;
|
|
7
|
+
initialTime: number;
|
|
8
|
+
brandingPrimaryColor: string | null;
|
|
9
|
+
onTimeUpdate: (time: number) => void;
|
|
10
|
+
};
|
|
11
|
+
declare const Stopwatch: React.FC<StopwatchProps>;
|
|
12
|
+
export default Stopwatch;
|
|
13
|
+
//# sourceMappingURL=Stopwatch.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Stopwatch.d.ts","sourceRoot":"","sources":["../../../../src/components/Shared/Stopwatch.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAiC,MAAM,OAAO,CAAC;AAGtD,KAAK,cAAc,GAAG;IACpB,SAAS,EAAE,OAAO,CAAC;IACnB,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,MAAM,CAAC;IACjB,WAAW,EAAE,MAAM,CAAC;IACpB,oBAAoB,EAAE,MAAM,GAAG,IAAI,CAAC;IACpC,YAAY,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;CACtC,CAAC;AAEF,QAAA,MAAM,SAAS,EAAE,KAAK,CAAC,EAAE,CAAC,cAAc,CA0HvC,CAAC;AAEF,eAAe,SAAS,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { ClassicQuizFullModel } from 'fansunited-sdk-esm';
|
|
3
|
+
|
|
4
|
+
type OverlayAuthErrorProps = {
|
|
5
|
+
classicQuiz: ClassicQuizFullModel;
|
|
6
|
+
};
|
|
7
|
+
declare const OverlayAuthError: React.FC<OverlayAuthErrorProps>;
|
|
8
|
+
export default OverlayAuthError;
|
|
9
|
+
//# sourceMappingURL=OverlayAuthError.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"OverlayAuthError.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Variants/Overlay/AuthError/OverlayAuthError.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAO1B,OAAO,EAAE,oBAAoB,EAAuB,MAAM,oBAAoB,CAAC;AAyC/E,KAAK,qBAAqB,GAAG;IAC3B,WAAW,EAAE,oBAAoB,CAAC;CACnC,CAAC;AAEF,QAAA,MAAM,gBAAgB,EAAE,KAAK,CAAC,EAAE,CAAC,qBAAqB,CA6ErD,CAAC;AAEF,eAAe,gBAAgB,CAAC"}
|
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
import { CustomSpacingScale } from '../../../../../../common/src';
|
|
2
|
+
import { BrandingColorsModel } from 'fansunited-sdk-esm';
|
|
3
|
+
|
|
4
|
+
interface StyleProps {
|
|
5
|
+
spacingScale: CustomSpacingScale;
|
|
6
|
+
brandingColors: BrandingColorsModel | null;
|
|
7
|
+
secondaryColor: string;
|
|
8
|
+
fontFamilyPrimary: string;
|
|
9
|
+
fontFamilySecondary: string;
|
|
10
|
+
mdBorderRadius: string;
|
|
11
|
+
borderSize: string;
|
|
12
|
+
darkTextColor: string;
|
|
13
|
+
backgroundImage: string;
|
|
14
|
+
}
|
|
15
|
+
export declare const createStyles: (props: StyleProps) => {
|
|
16
|
+
mainContainer: {
|
|
17
|
+
display: string;
|
|
18
|
+
flexDirection: string;
|
|
19
|
+
justifyContent: string;
|
|
20
|
+
gap: string;
|
|
21
|
+
p: string;
|
|
22
|
+
boxShadow: string;
|
|
23
|
+
border: string;
|
|
24
|
+
overflow: string;
|
|
25
|
+
backgroundImage: string;
|
|
26
|
+
backgroundSize: string;
|
|
27
|
+
position: string;
|
|
28
|
+
borderRadius: string;
|
|
29
|
+
minHeight: string;
|
|
30
|
+
"&::before": {
|
|
31
|
+
content: string;
|
|
32
|
+
position: string;
|
|
33
|
+
background: string;
|
|
34
|
+
top: number;
|
|
35
|
+
left: number;
|
|
36
|
+
right: number;
|
|
37
|
+
bottom: number;
|
|
38
|
+
borderRadius: string;
|
|
39
|
+
zIndex: number;
|
|
40
|
+
};
|
|
41
|
+
};
|
|
42
|
+
headlineSection: {
|
|
43
|
+
display: string;
|
|
44
|
+
justifyContent: string;
|
|
45
|
+
flex: string;
|
|
46
|
+
alignSelf: string;
|
|
47
|
+
};
|
|
48
|
+
headlineContent: {
|
|
49
|
+
display: string;
|
|
50
|
+
flexDirection: string;
|
|
51
|
+
alignItems: string;
|
|
52
|
+
flex: string;
|
|
53
|
+
gap: string;
|
|
54
|
+
};
|
|
55
|
+
headlineContentInner: {
|
|
56
|
+
zIndex: number;
|
|
57
|
+
};
|
|
58
|
+
quizHeadlineText: {
|
|
59
|
+
fontWeight: number;
|
|
60
|
+
lineHeight: string;
|
|
61
|
+
letterSpacing: string;
|
|
62
|
+
textAlign: {
|
|
63
|
+
xs: string;
|
|
64
|
+
md: string;
|
|
65
|
+
};
|
|
66
|
+
color: string;
|
|
67
|
+
opacity: string;
|
|
68
|
+
textTransform: string;
|
|
69
|
+
fontFamily: string;
|
|
70
|
+
fontSize: string;
|
|
71
|
+
};
|
|
72
|
+
contentContainer: {
|
|
73
|
+
display: string;
|
|
74
|
+
flexDirection: string;
|
|
75
|
+
gap: string;
|
|
76
|
+
};
|
|
77
|
+
quizTitleText: {
|
|
78
|
+
fontWeight: number;
|
|
79
|
+
lineHeight: string;
|
|
80
|
+
letterSpacing: string;
|
|
81
|
+
textAlign: {
|
|
82
|
+
xs: string;
|
|
83
|
+
md: string;
|
|
84
|
+
};
|
|
85
|
+
fontSize: string;
|
|
86
|
+
color: string;
|
|
87
|
+
fontFamily: string;
|
|
88
|
+
};
|
|
89
|
+
quizDescriptionText: {
|
|
90
|
+
fontWeight: number;
|
|
91
|
+
lineHeight: string;
|
|
92
|
+
letterSpacing: string;
|
|
93
|
+
fontSize: string;
|
|
94
|
+
textAlign: {
|
|
95
|
+
xs: string;
|
|
96
|
+
md: string;
|
|
97
|
+
};
|
|
98
|
+
color: string;
|
|
99
|
+
opacity: string;
|
|
100
|
+
fontFamily: string;
|
|
101
|
+
};
|
|
102
|
+
bottomSection: {
|
|
103
|
+
display: string;
|
|
104
|
+
flexDirection: string;
|
|
105
|
+
gap: string;
|
|
106
|
+
};
|
|
107
|
+
footerContainer: {
|
|
108
|
+
display: string;
|
|
109
|
+
alignItems: string;
|
|
110
|
+
justifyContent: string;
|
|
111
|
+
flexDirection: {
|
|
112
|
+
xs: string;
|
|
113
|
+
md: string;
|
|
114
|
+
};
|
|
115
|
+
gap: string;
|
|
116
|
+
};
|
|
117
|
+
};
|
|
118
|
+
export {};
|
|
119
|
+
//# sourceMappingURL=OverlayAuthError.styles.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"OverlayAuthError.styles.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Variants/Overlay/AuthError/OverlayAuthError.styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,oBAAoB,CAAC;AACxD,OAAO,EAAE,mBAAmB,EAAE,MAAM,oBAAoB,CAAC;AAEzD,UAAU,UAAU;IAClB,YAAY,EAAE,kBAAkB,CAAC;IACjC,cAAc,EAAE,mBAAmB,GAAG,IAAI,CAAC;IAC3C,cAAc,EAAE,MAAM,CAAC;IACvB,iBAAiB,EAAE,MAAM,CAAC;IAC1B,mBAAmB,EAAE,MAAM,CAAC;IAC5B,cAAc,EAAE,MAAM,CAAC;IACvB,UAAU,EAAE,MAAM,CAAC;IACnB,aAAa,EAAE,MAAM,CAAC;IACtB,eAAe,EAAE,MAAM,CAAC;CACzB;AAED,eAAO,MAAM,YAAY,UAAW,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgH5C,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"OverlayVariant.d.ts","sourceRoot":"","sources":["../../../../../src/components/Variants/Overlay/OverlayVariant.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAW1B,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AA4CvD,QAAA,MAAM,cAAc,EAAE,KAAK,CAAC,EAAE,CAAC,eAAe,CAgO7C,CAAC;AAEF,eAAe,cAAc,CAAC"}
|