@cuemath/leap 3.5.44-link.0 → 3.5.44
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/parent-dashboard/comps/parent-dashboard-faqs/parent-dashboard-faqs.js +35 -16
- package/dist/features/parent-dashboard/comps/parent-dashboard-faqs/parent-dashboard-faqs.js.map +1 -1
- package/dist/features/parent-dashboard/comps/subscription-initiation/subscription-initiation.js +28 -25
- package/dist/features/parent-dashboard/comps/subscription-initiation/subscription-initiation.js.map +1 -1
- package/dist/index.d.ts +5 -1
- package/package.json +1 -1
|
@@ -1,20 +1,39 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { useTheme as
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
/* @__PURE__ */
|
|
14
|
-
|
|
1
|
+
import { jsxs as t, jsx as r } from "react/jsx-runtime";
|
|
2
|
+
import { useTheme as m } from "styled-components";
|
|
3
|
+
import { memo as i } from "react";
|
|
4
|
+
import s from "../../../ui/accordion/accordion.js";
|
|
5
|
+
import d from "../../../ui/layout/flex-view.js";
|
|
6
|
+
import n from "../../../ui/separator/separator.js";
|
|
7
|
+
import f from "../../../ui/text/text.js";
|
|
8
|
+
import { EDeviceType as p } from "../../../ui/theme/constants.js";
|
|
9
|
+
import { faqsData as c } from "./parent-dashboard-faqs-constants.js";
|
|
10
|
+
const e = i(({ renderThemeAs: o = "dark" }) => {
|
|
11
|
+
const a = m().device <= p.MOBILE;
|
|
12
|
+
return /* @__PURE__ */ t(d, { children: [
|
|
13
|
+
/* @__PURE__ */ r(
|
|
14
|
+
f,
|
|
15
|
+
{
|
|
16
|
+
$renderAs: "ah4-bold",
|
|
17
|
+
$renderOnMobileAs: "ab1-bold",
|
|
18
|
+
$color: o === "dark" ? "WHITE" : "BLACK",
|
|
19
|
+
children: "FAQs"
|
|
20
|
+
}
|
|
21
|
+
),
|
|
22
|
+
/* @__PURE__ */ r(n, { height: a ? 16 : 20 }),
|
|
23
|
+
/* @__PURE__ */ r(
|
|
24
|
+
s,
|
|
25
|
+
{
|
|
26
|
+
theme: o,
|
|
27
|
+
visibleBuffer: 2,
|
|
28
|
+
defaultOpenElement: 0,
|
|
29
|
+
accordionData: c
|
|
30
|
+
}
|
|
31
|
+
)
|
|
15
32
|
] });
|
|
16
|
-
}
|
|
33
|
+
});
|
|
34
|
+
e.displayName = "ParentDashboardFaqs";
|
|
35
|
+
const $ = e;
|
|
17
36
|
export {
|
|
18
|
-
|
|
37
|
+
$ as default
|
|
19
38
|
};
|
|
20
39
|
//# sourceMappingURL=parent-dashboard-faqs.js.map
|
package/dist/features/parent-dashboard/comps/parent-dashboard-faqs/parent-dashboard-faqs.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"parent-dashboard-faqs.js","sources":["../../../../../src/features/parent-dashboard/comps/parent-dashboard-faqs/parent-dashboard-faqs.tsx"],"sourcesContent":["import { useTheme } from 'styled-components';\n\nimport Accordion from '../../../ui/accordion/accordion';\nimport FlexView from '../../../ui/layout/flex-view';\nimport Separator from '../../../ui/separator/separator';\nimport Text from '../../../ui/text/text';\nimport { EDeviceType } from '../../../ui/theme/constants';\nimport { faqsData } from './parent-dashboard-faqs-constants';\n\nconst ParentDashboardFaqs = () => {\n const theme = useTheme();\n const isMobile = theme.device <= EDeviceType.MOBILE;\n\n return (\n <FlexView>\n <Text
|
|
1
|
+
{"version":3,"file":"parent-dashboard-faqs.js","sources":["../../../../../src/features/parent-dashboard/comps/parent-dashboard-faqs/parent-dashboard-faqs.tsx"],"sourcesContent":["import { useTheme } from 'styled-components';\nimport { memo } from 'react';\n\nimport Accordion from '../../../ui/accordion/accordion';\nimport FlexView from '../../../ui/layout/flex-view';\nimport Separator from '../../../ui/separator/separator';\nimport Text from '../../../ui/text/text';\nimport { EDeviceType } from '../../../ui/theme/constants';\nimport { faqsData } from './parent-dashboard-faqs-constants';\n\ninterface IParentDashboardFaqsProps {\n renderThemeAs?: 'dark' | 'light';\n}\n\nconst ParentDashboardFaqs = memo(({ renderThemeAs = 'dark' }: IParentDashboardFaqsProps) => {\n const theme = useTheme();\n const isMobile = theme.device <= EDeviceType.MOBILE;\n\n return (\n <FlexView>\n <Text\n $renderAs=\"ah4-bold\"\n $renderOnMobileAs=\"ab1-bold\"\n $color={renderThemeAs === 'dark' ? 'WHITE' : 'BLACK'}\n >\n FAQs\n </Text>\n <Separator height={isMobile ? 16 : 20} />\n <Accordion\n theme={renderThemeAs}\n visibleBuffer={2}\n defaultOpenElement={0}\n accordionData={faqsData}\n />\n </FlexView>\n );\n});\n\nParentDashboardFaqs.displayName = 'ParentDashboardFaqs';\n\nexport default ParentDashboardFaqs;\n"],"names":["ParentDashboardFaqs","memo","renderThemeAs","isMobile","useTheme","EDeviceType","FlexView","jsx","Text","Separator","Accordion","faqsData","ParentDashboardFaqs$1"],"mappings":";;;;;;;;;AAcA,MAAMA,IAAsBC,EAAK,CAAC,EAAE,eAAAC,IAAgB,aAAwC;AAEpF,QAAAC,IADQC,IACS,UAAUC,EAAY;AAE7C,2BACGC,GACC,EAAA,UAAA;AAAA,IAAA,gBAAAC;AAAA,MAACC;AAAA,MAAA;AAAA,QACC,WAAU;AAAA,QACV,mBAAkB;AAAA,QAClB,QAAQN,MAAkB,SAAS,UAAU;AAAA,QAC9C,UAAA;AAAA,MAAA;AAAA,IAED;AAAA,IACC,gBAAAK,EAAAE,GAAA,EAAU,QAAQN,IAAW,KAAK,IAAI;AAAA,IACvC,gBAAAI;AAAA,MAACG;AAAA,MAAA;AAAA,QACC,OAAOR;AAAA,QACP,eAAe;AAAA,QACf,oBAAoB;AAAA,QACpB,eAAeS;AAAA,MAAA;AAAA,IACjB;AAAA,EACF,EAAA,CAAA;AAEJ,CAAC;AAEDX,EAAoB,cAAc;AAElC,MAAAY,IAAeZ;"}
|
package/dist/features/parent-dashboard/comps/subscription-initiation/subscription-initiation.js
CHANGED
|
@@ -1,41 +1,44 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { memo as
|
|
3
|
-
import { useTheme as
|
|
4
|
-
import
|
|
1
|
+
import { jsxs as m, jsx as i } from "react/jsx-runtime";
|
|
2
|
+
import { memo as d, useMemo as l } from "react";
|
|
3
|
+
import { useTheme as u } from "styled-components";
|
|
4
|
+
import h from "../../../auth/pla-signup/signup-header/signup-header.js";
|
|
5
5
|
import a from "../../../ui/layout/flex-view.js";
|
|
6
6
|
import s from "../../../ui/separator/separator.js";
|
|
7
|
-
import { MOBILE_SPACING as
|
|
8
|
-
import { EDeviceType as
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
const p =
|
|
12
|
-
const { onGetStartedAgain:
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
7
|
+
import { MOBILE_SPACING as f, DESKTOP_SPACING as g } from "../../parent-dashboard-constants.js";
|
|
8
|
+
import { EDeviceType as S } from "../../../ui/theme/constants.js";
|
|
9
|
+
import b from "../../../auth/pla-signup/onboarding-guide/onboarding-guide.js";
|
|
10
|
+
import I from "../../../ui/buttons/button/button.js";
|
|
11
|
+
const p = d((c) => {
|
|
12
|
+
const { onGetStartedAgain: o, renderThemeAs: e } = c, { device: r } = u(), t = l(() => {
|
|
13
|
+
const n = r <= S.MOBILE;
|
|
14
|
+
return {
|
|
15
|
+
buttonWidth: n ? "100%" : 200,
|
|
16
|
+
spacing: n ? f : g
|
|
17
|
+
};
|
|
18
|
+
}, [r]);
|
|
19
|
+
return /* @__PURE__ */ m(a, { children: [
|
|
20
|
+
/* @__PURE__ */ i(h, { renderThemeAs: e }),
|
|
21
|
+
/* @__PURE__ */ i(s, { height: t.spacing.separator.extraLarge }),
|
|
22
|
+
/* @__PURE__ */ i(b, { renderThemeAs: e, orientation: "horizontal" }),
|
|
23
|
+
o ? /* @__PURE__ */ m(a, { children: [
|
|
24
|
+
/* @__PURE__ */ i(s, { height: t.spacing.medium }),
|
|
25
|
+
/* @__PURE__ */ i(
|
|
26
|
+
I,
|
|
24
27
|
{
|
|
25
28
|
label: "Get Started",
|
|
26
29
|
renderAs: "yellow-dark",
|
|
27
30
|
shape: "square",
|
|
28
31
|
size: "small",
|
|
29
|
-
width:
|
|
30
|
-
onClick:
|
|
32
|
+
width: t.buttonWidth,
|
|
33
|
+
onClick: o
|
|
31
34
|
}
|
|
32
35
|
)
|
|
33
36
|
] }) : null
|
|
34
37
|
] });
|
|
35
38
|
});
|
|
36
39
|
p.displayName = "SubscriptionInitiation";
|
|
37
|
-
const
|
|
40
|
+
const y = p;
|
|
38
41
|
export {
|
|
39
|
-
|
|
42
|
+
y as default
|
|
40
43
|
};
|
|
41
44
|
//# sourceMappingURL=subscription-initiation.js.map
|
package/dist/features/parent-dashboard/comps/subscription-initiation/subscription-initiation.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"subscription-initiation.js","sources":["../../../../../src/features/parent-dashboard/comps/subscription-initiation/subscription-initiation.tsx"],"sourcesContent":["import { type FC, memo, useMemo } from 'react';\nimport { useTheme } from 'styled-components';\n\nimport SignupHeader from '../../../auth/pla-signup/signup-header/signup-header';\nimport FlexView from '../../../ui/layout/flex-view';\nimport Separator from '../../../ui/separator/separator';\nimport {
|
|
1
|
+
{"version":3,"file":"subscription-initiation.js","sources":["../../../../../src/features/parent-dashboard/comps/subscription-initiation/subscription-initiation.tsx"],"sourcesContent":["import { type FC, memo, useMemo } from 'react';\nimport { useTheme } from 'styled-components';\n\nimport SignupHeader from '../../../auth/pla-signup/signup-header/signup-header';\nimport FlexView from '../../../ui/layout/flex-view';\nimport Separator from '../../../ui/separator/separator';\nimport { DESKTOP_SPACING, MOBILE_SPACING } from '../../parent-dashboard-constants';\nimport { EDeviceType } from '../../../ui/theme/constants';\nimport OnboardingGuide from '../../../auth/pla-signup/onboarding-guide/onboarding-guide';\nimport Button from '../../../ui/buttons/button/button';\n\ninterface ISubscriptionInitiationProps {\n onGetStartedAgain?: () => void;\n renderThemeAs?: 'dark' | 'light';\n}\n\nconst SubscriptionInitiation: FC<ISubscriptionInitiationProps> = memo(props => {\n const { onGetStartedAgain, renderThemeAs } = props;\n const { device } = useTheme();\n\n const deviceConfig = useMemo(() => {\n const isMobile = device <= EDeviceType.MOBILE;\n\n return {\n buttonWidth: isMobile ? '100%' : 200,\n spacing: isMobile ? MOBILE_SPACING : DESKTOP_SPACING,\n };\n }, [device]);\n\n return (\n <FlexView>\n <SignupHeader renderThemeAs={renderThemeAs} />\n <Separator height={deviceConfig.spacing.separator.extraLarge} />\n <OnboardingGuide renderThemeAs={renderThemeAs} orientation=\"horizontal\" />\n {onGetStartedAgain ? (\n <FlexView>\n <Separator height={deviceConfig.spacing.medium} />\n <Button\n label=\"Get Started\"\n renderAs=\"yellow-dark\"\n shape=\"square\"\n size=\"small\"\n width={deviceConfig.buttonWidth}\n onClick={onGetStartedAgain}\n />\n </FlexView>\n ) : null}\n </FlexView>\n );\n});\n\nSubscriptionInitiation.displayName = 'SubscriptionInitiation';\n\nexport default SubscriptionInitiation;\n"],"names":["SubscriptionInitiation","memo","props","onGetStartedAgain","renderThemeAs","device","useTheme","deviceConfig","useMemo","isMobile","EDeviceType","MOBILE_SPACING","DESKTOP_SPACING","FlexView","jsx","SignupHeader","Separator","OnboardingGuide","Button","SubscriptionInitiation$1"],"mappings":";;;;;;;;;;AAgBA,MAAMA,IAA2DC,EAAK,CAASC,MAAA;AACvE,QAAA,EAAE,mBAAAC,GAAmB,eAAAC,EAAkB,IAAAF,GACvC,EAAE,QAAAG,MAAWC,KAEbC,IAAeC,EAAQ,MAAM;AAC3B,UAAAC,IAAWJ,KAAUK,EAAY;AAEhC,WAAA;AAAA,MACL,aAAaD,IAAW,SAAS;AAAA,MACjC,SAASA,IAAWE,IAAiBC;AAAA,IAAA;AAAA,EACvC,GACC,CAACP,CAAM,CAAC;AAEX,2BACGQ,GACC,EAAA,UAAA;AAAA,IAAA,gBAAAC,EAACC,KAAa,eAAAX,GAA8B;AAAA,sBAC3CY,GAAU,EAAA,QAAQT,EAAa,QAAQ,UAAU,YAAY;AAAA,IAC7D,gBAAAO,EAAAG,GAAA,EAAgB,eAAAb,GAA8B,aAAY,aAAa,CAAA;AAAA,IACvED,sBACEU,GACC,EAAA,UAAA;AAAA,MAAA,gBAAAC,EAACE,GAAU,EAAA,QAAQT,EAAa,QAAQ,QAAQ;AAAA,MAChD,gBAAAO;AAAA,QAACI;AAAA,QAAA;AAAA,UACC,OAAM;AAAA,UACN,UAAS;AAAA,UACT,OAAM;AAAA,UACN,MAAK;AAAA,UACL,OAAOX,EAAa;AAAA,UACpB,SAASJ;AAAA,QAAA;AAAA,MACX;AAAA,IAAA,EAAA,CACF,IACE;AAAA,EACN,EAAA,CAAA;AAEJ,CAAC;AAEDH,EAAuB,cAAc;AAErC,MAAAmB,IAAenB;"}
|
package/dist/index.d.ts
CHANGED
|
@@ -3249,6 +3249,10 @@ export declare interface IOutcomeStageData {
|
|
|
3249
3249
|
achievementAction?: string | null;
|
|
3250
3250
|
}
|
|
3251
3251
|
|
|
3252
|
+
declare interface IParentDashboardFaqsProps {
|
|
3253
|
+
renderThemeAs?: 'dark' | 'light';
|
|
3254
|
+
}
|
|
3255
|
+
|
|
3252
3256
|
declare interface IParentDashboardProps {
|
|
3253
3257
|
studentName: string;
|
|
3254
3258
|
studentId: string;
|
|
@@ -5528,7 +5532,7 @@ isLoading?: boolean | undefined;
|
|
|
5528
5532
|
|
|
5529
5533
|
export declare const ParentDashboard: NamedExoticComponent<IParentDashboardProps>;
|
|
5530
5534
|
|
|
5531
|
-
export declare const ParentDashboardFaqs: () => JSX.Element
|
|
5535
|
+
export declare const ParentDashboardFaqs: MemoExoticComponent<({ renderThemeAs }: IParentDashboardFaqsProps) => JSX.Element>;
|
|
5532
5536
|
|
|
5533
5537
|
export declare const PauseIcon: FC<SVGProps<SVGSVGElement>>;
|
|
5534
5538
|
|