@cuemath/leap 3.5.44-link.1 → 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/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;"}
|