@cuemath/leap 3.2.18-link.0 → 3.2.18
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/assets/illustrations/illustrations.js +0 -1
- package/dist/assets/illustrations/illustrations.js.map +1 -1
- package/dist/features/trial-session/comps/student-profile/student-profile.js +1 -1
- package/dist/features/trial-session/comps/teacher-intro/teacher-intro-styled.js +50 -7
- package/dist/features/trial-session/comps/teacher-intro/teacher-intro-styled.js.map +1 -1
- package/dist/features/trial-session/comps/teacher-intro/teacher-intro.js +69 -15
- package/dist/features/trial-session/comps/teacher-intro/teacher-intro.js.map +1 -1
- package/dist/features/ui/buttons/button/button.js +41 -38
- package/dist/features/ui/buttons/button/button.js.map +1 -1
- package/dist/features/ui/buttons/icon-button/icon-button.js +31 -27
- package/dist/features/ui/buttons/icon-button/icon-button.js.map +1 -1
- package/dist/features/ui/buttons/text-button/text-button.js +26 -22
- package/dist/features/ui/buttons/text-button/text-button.js.map +1 -1
- package/dist/features/ui/grade-selector/grade-selector.js +33 -27
- package/dist/features/ui/grade-selector/grade-selector.js.map +1 -1
- package/dist/features/ui/inputs/base-input/base-input.js +11 -11
- package/dist/features/ui/inputs/base-input/base-input.js.map +1 -1
- package/dist/features/ui/inputs/text-input/text-input.js +18 -19
- package/dist/features/ui/inputs/text-input/text-input.js.map +1 -1
- package/dist/features/ui/modals/modal-styled.js +8 -43
- package/dist/features/ui/modals/modal-styled.js.map +1 -1
- package/dist/features/ui/modals/modal.js +27 -37
- package/dist/features/ui/modals/modal.js.map +1 -1
- package/dist/features/ui/tab/tab.js +30 -26
- package/dist/features/ui/tab/tab.js.map +1 -1
- package/dist/features/ui/text/text.js +29 -31
- package/dist/features/ui/text/text.js.map +1 -1
- package/dist/features/ui/theme/clrs.js +0 -2
- package/dist/features/ui/theme/clrs.js.map +1 -1
- package/dist/index.d.ts +12 -69
- package/dist/index.js +625 -635
- package/dist/index.js.map +1 -1
- package/package.json +3 -2
- package/dist/assets/line-icons/icons/star3.js +0 -32
- package/dist/assets/line-icons/icons/star3.js.map +0 -1
- package/dist/features/trial-session/comps/teacher-intro/teacher-profile/teacher-profile-styled.js +0 -49
- package/dist/features/trial-session/comps/teacher-intro/teacher-profile/teacher-profile-styled.js.map +0 -1
- package/dist/features/trial-session/comps/teacher-intro/teacher-profile/teacher-profile.js +0 -64
- package/dist/features/trial-session/comps/teacher-intro/teacher-profile/teacher-profile.js.map +0 -1
- package/dist/features/ui/accordion/accordion-items/accordion-items-styled.js +0 -28
- package/dist/features/ui/accordion/accordion-items/accordion-items-styled.js.map +0 -1
- package/dist/features/ui/accordion/accordion-items/accordion-items.js +0 -83
- package/dist/features/ui/accordion/accordion-items/accordion-items.js.map +0 -1
- package/dist/features/ui/accordion/accordion.js +0 -62
- package/dist/features/ui/accordion/accordion.js.map +0 -1
- package/dist/static/stripe-blurple.6abf422f.svg +0 -1
@@ -1,56 +1,54 @@
|
|
1
|
-
import { useMemo as
|
2
|
-
import
|
1
|
+
import { useMemo as C } from "react";
|
2
|
+
import F from "styled-components";
|
3
3
|
import { EDeviceType as y } from "../theme/constants.js";
|
4
|
-
const
|
4
|
+
const $ = F.div(
|
5
5
|
({
|
6
|
-
theme:
|
6
|
+
theme: g,
|
7
7
|
$renderAs: t,
|
8
8
|
$color: n,
|
9
|
-
$align:
|
9
|
+
$align: T = "left",
|
10
10
|
$width: e,
|
11
11
|
$widthX: f,
|
12
12
|
$marginBottom: o,
|
13
13
|
$marginBottomX: r,
|
14
14
|
$alignSelf: l,
|
15
|
-
$opacity:
|
16
|
-
$inline:
|
15
|
+
$opacity: b = 1,
|
16
|
+
$inline: v,
|
17
17
|
$textDecoration: x,
|
18
18
|
$whiteSpace: a,
|
19
19
|
$renderOnMobileAs: c,
|
20
|
-
$renderOnTabletAs: i
|
21
|
-
$cursor: m
|
20
|
+
$renderOnTabletAs: i
|
22
21
|
}) => {
|
23
|
-
const { text:
|
24
|
-
fontFamily:
|
25
|
-
fontSize:
|
26
|
-
lineHeight:
|
27
|
-
letterSpacing:
|
28
|
-
textTransform:
|
29
|
-
} = L
|
22
|
+
const { text: E, colors: m, layout: u, device: p } = g, L = C(() => p <= y.MOBILE ? c || i || t : p <= y.TABLET && i || t, [p, t, c, i]), {
|
23
|
+
fontFamily: h,
|
24
|
+
fontSize: k,
|
25
|
+
lineHeight: z,
|
26
|
+
letterSpacing: s,
|
27
|
+
textTransform: d = "none"
|
28
|
+
} = E[L];
|
30
29
|
return `
|
31
|
-
display: ${
|
32
|
-
font-family: ${
|
33
|
-
font-size: ${
|
34
|
-
text-align: ${
|
35
|
-
line-height: ${
|
36
|
-
text-transform: ${
|
37
|
-
${typeof
|
38
|
-
color: ${n ?
|
39
|
-
opacity: ${
|
30
|
+
display: ${v ? "inline-block" : "block"};
|
31
|
+
font-family: ${h};
|
32
|
+
font-size: ${k}px;
|
33
|
+
text-align: ${T};
|
34
|
+
line-height: ${z}px;
|
35
|
+
text-transform: ${d};
|
36
|
+
${typeof s == "number" ? `letter-spacing: ${s}px;` : ""}
|
37
|
+
color: ${n ? m[n] : m.BLACK};
|
38
|
+
opacity: ${b};
|
40
39
|
width: ${e ? `${e}` : "auto"}${typeof e == "number" ? "px" : ""};
|
41
|
-
${f ? `width: ${f *
|
40
|
+
${f ? `width: ${f * u.gutter}px;` : ""}
|
42
41
|
margin-bottom: ${o ? `${o}` : "initial"}${typeof o == "number" ? "px" : ""};
|
43
|
-
${r ? `margin-bottom: ${r *
|
42
|
+
${r ? `margin-bottom: ${r * u.gutter}px;` : ""}
|
44
43
|
${l ? `align-self: ${l};` : ""}
|
45
44
|
${x ? `text-decoration: ${x};` : ""}
|
46
45
|
${a ? `white-space: ${a};` : ""}
|
47
|
-
${m ? `cursor: ${m};` : ""}
|
48
46
|
`;
|
49
47
|
}
|
50
48
|
);
|
51
|
-
|
52
|
-
const
|
49
|
+
$.displayName = "Text";
|
50
|
+
const M = $;
|
53
51
|
export {
|
54
|
-
|
52
|
+
M as default
|
55
53
|
};
|
56
54
|
//# sourceMappingURL=text.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"text.js","sources":["../../../../src/features/ui/text/text.tsx"],"sourcesContent":["import type { TColorNames, TTextVariants } from '../types';\n\nimport { useMemo } from 'react';\nimport styled from 'styled-components';\n\nimport { EDeviceType } from '../theme/constants';\n\nexport interface TextProps {\n $renderAs: TTextVariants;\n $color?: TColorNames;\n $align?: 'auto' | 'left' | 'right' | 'center' | 'justify';\n $alignSelf?: 'auto' | 'flex-start' | 'flex-end' | 'center' | 'baseline' | 'stretch';\n $opacity?: number | undefined;\n $width?: number | string;\n $widthX?: number;\n $marginBottom?: number;\n $marginBottomX?: number;\n $inline?: boolean;\n $textDecoration?: string;\n $whiteSpace?: 'pre-line' | 'normal' | 'pre-wrap' | 'no-wrap' | 'pre' | 'break-spaces';\n $renderOnMobileAs?: TTextVariants;\n $renderOnTabletAs?: TTextVariants;\n
|
1
|
+
{"version":3,"file":"text.js","sources":["../../../../src/features/ui/text/text.tsx"],"sourcesContent":["import type { TColorNames, TTextVariants } from '../types';\n\nimport { useMemo } from 'react';\nimport styled from 'styled-components';\n\nimport { EDeviceType } from '../theme/constants';\n\nexport interface TextProps {\n $renderAs: TTextVariants;\n $color?: TColorNames;\n $align?: 'auto' | 'left' | 'right' | 'center' | 'justify';\n $alignSelf?: 'auto' | 'flex-start' | 'flex-end' | 'center' | 'baseline' | 'stretch';\n $opacity?: number | undefined;\n $width?: number | string;\n $widthX?: number;\n $marginBottom?: number;\n $marginBottomX?: number;\n $inline?: boolean;\n $textDecoration?: string;\n $whiteSpace?: 'pre-line' | 'normal' | 'pre-wrap' | 'no-wrap' | 'pre' | 'break-spaces';\n $renderOnMobileAs?: TTextVariants;\n $renderOnTabletAs?: TTextVariants;\n}\n\n/**\n * @param $renderAs (fallback for any device), @param $renderOnMobileAs, @param $renderOnTabletAs - The text variant to render as (ah1-ah4, ab1-ab3, ac1-ac4, ub1-ub3), anything else is deprecated\n */\nconst Text = styled.div<TextProps>(\n ({\n theme,\n $renderAs,\n $color,\n $align = 'left',\n $width,\n $widthX,\n $marginBottom,\n $marginBottomX,\n $alignSelf,\n $opacity = 1,\n $inline,\n $textDecoration,\n $whiteSpace,\n $renderOnMobileAs,\n $renderOnTabletAs,\n }) => {\n const { text, colors, layout, device } = theme;\n const renderAs = useMemo(() => {\n if (device <= EDeviceType.MOBILE) {\n return $renderOnMobileAs || $renderOnTabletAs || $renderAs;\n }\n\n if (device <= EDeviceType.TABLET) {\n return $renderOnTabletAs || $renderAs;\n }\n\n return $renderAs;\n }, [device, $renderAs, $renderOnMobileAs, $renderOnTabletAs]);\n\n const {\n fontFamily,\n fontSize,\n lineHeight,\n letterSpacing,\n textTransform = 'none',\n } = text[renderAs];\n\n return `\n display: ${$inline ? 'inline-block' : 'block'};\n font-family: ${fontFamily};\n font-size: ${fontSize}px;\n text-align: ${$align};\n line-height: ${lineHeight}px;\n text-transform: ${textTransform};\n ${typeof letterSpacing === 'number' ? `letter-spacing: ${letterSpacing}px;` : ''}\n color: ${$color ? colors[$color] : colors.BLACK};\n opacity: ${$opacity};\n width: ${$width ? `${$width}` : 'auto'}${typeof $width === 'number' ? 'px' : ''};\n ${$widthX ? `width: ${$widthX * layout.gutter}px;` : ''}\n margin-bottom: ${$marginBottom ? `${$marginBottom}` : 'initial'}${\n typeof $marginBottom === 'number' ? 'px' : ''\n };\n ${$marginBottomX ? `margin-bottom: ${$marginBottomX * layout.gutter}px;` : ''}\n ${$alignSelf ? `align-self: ${$alignSelf};` : ''}\n ${$textDecoration ? `text-decoration: ${$textDecoration};` : ''}\n ${$whiteSpace ? `white-space: ${$whiteSpace};` : ''}\n `;\n },\n);\n\nText.displayName = 'Text';\n\nexport default Text;\n"],"names":["Text","styled","theme","$renderAs","$color","$align","$width","$widthX","$marginBottom","$marginBottomX","$alignSelf","$opacity","$inline","$textDecoration","$whiteSpace","$renderOnMobileAs","$renderOnTabletAs","text","colors","layout","device","renderAs","useMemo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GAAGA,CAAa,KAAK,SAAS,GAC7D,OAAOA,KAAkB,WAAW,OAAO,EAC7C;AAAA,QACEC,IAAiB,kBAAkBA,IAAiBU,EAAO,MAAM,QAAQ,EAAE;AAAA,QAC3ET,IAAa,eAAeA,CAAU,MAAM,EAAE;AAAA,QAC9CG,IAAkB,oBAAoBA,CAAe,MAAM,EAAE;AAAA,QAC7DC,IAAc,gBAAgBA,CAAW,MAAM,EAAE;AAAA;AAAA,EAEvD;AACF;AAEAd,EAAK,cAAc;AAEnB,MAAA6B,IAAe7B;"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"clrs.js","sources":["../../../../src/features/ui/theme/clrs.ts"],"sourcesContent":["import type { TColorNames, TColorsMap } from '../types';\n\nconst LightThemeColors: Record<TColorNames, string> = {\n YELLOW_1: '#FFF1CC',\n YELLOW_2: '#FFDB80',\n YELLOW_3: '#FFCC4D',\n YELLOW_4: '#FFB700',\n YELLOW_5: '#E58600',\n YELLOW_6: '#B25900',\n\n ORANGE_1: '#FFDDCC',\n ORANGE_2: '#FFC2A3',\n ORANGE_3: '#FFAA80',\n ORANGE_4: '#FF884D',\n ORANGE_5: '#EC5B13',\n ORANGE_6: '#B23C00',\n\n PURPLE_1: '#FFE0FD',\n PURPLE_2: '#FFC2FA',\n PURPLE_3: '#FFA3F7',\n PURPLE_4: '#FF80F4',\n PURPLE_5: '#D926CA',\n PURPLE_6: '#AA099C',\n\n GREEN_1: '#D0FBE5',\n GREEN_2: '#89F5BF',\n GREEN_3: '#40F098',\n GREEN_4: '#00E573',\n GREEN_5: '#00B259',\n GREEN_6: '#007038',\n\n BLUE_1: '#D6F5FF',\n BLUE_2: '#99E5FF',\n BLUE_3: '#66D9FF',\n BLUE_4: '#33CCFF',\n BLUE_5: '#0086E5',\n BLUE_6: '#0055CC',\n\n BLACK_1: '#0D0D0D',\n BLACK_2: '#141414',\n BLACK_3: '#191919',\n BLACK_4: '#252525',\n BLACK_5: '#313131',\n\n WHITE_1: '#FFFFFF',\n WHITE_2: '#FAFAFA',\n WHITE_3: '#F5F5F5',\n WHITE_4: '#EBEBEB',\n WHITE_5: '#DADADA',\n\n BLACK_T_02: 'rgba(0, 0, 0, 0.02)',\n BLACK_T_04: 'rgba(0, 0, 0, 0.04)',\n BLACK_T_08: 'rgba(0, 0, 0, 0.08)',\n BLACK_T_15: 'rgba(0, 0, 0, 0.15)',\n BLACK_T_20: 'rgba(0, 0, 0, 0.20)',\n BLACK_T_38: 'rgba(0, 0, 0, 0.38)',\n BLACK_T_60: 'rgba(0, 0, 0, 0.6)',\n BLACK_T_87: 'rgba(0, 0, 0, 0.87)',\n\n WHITE_T_03: 'rgba(255, 255, 255, 0.03)',\n WHITE_T_05: 'rgba(255, 255, 255, 0.05)',\n WHITE_T_10: 'rgba(255, 255, 255, 0.1)',\n WHITE_T_15: 'rgba(255, 255, 255, 0.15)',\n WHITE_T_38: 'rgba(255, 255, 255, 0.38)',\n WHITE_T_60: 'rgba(255, 255, 255, 0.6)',\n WHITE_T_87: 'rgba(255, 255, 255, 0.87)',\n\n GREY_1: '#F6F6F6',\n GREY_2: '#E0E0E0',\n GREY_3: '#B3B3B3',\n GREY_4: '#808080',\n\n REAL_BLACK: '#000000',\n REAL_BLACK_60: 'rgba(0, 0, 0, 0.6)',\n REAL_BLACK_50: 'rgba(0, 0, 0, 0.5)',\n REAL_BLACK_30: 'rgba(0, 0, 0, 0.3)',\n REAL_BLACK_15: 'rgba(0, 0, 0, 0.15)',\n REAL_BLACK_10: 'rgba(0, 0, 0, 0.1)',\n\n BLACK: '#2B2B2B',\n BLACK_65: 'rgba(43, 43, 43, 0.65)',\n BLACK_75: 'rgba(43, 43, 43, 0.75)',\n BLACK_50: 'rgba(43, 43, 43, 0.5)',\n BLACK_10: 'rgba(43, 43, 43, 0.1)',\n\n WHITE: '#FFFFFF',\n WHITE_10: '#D9D9D9',\n WHITE_20: '#E6E6E6',\n WHITE_30: '#F2F2F2',\n WHITE_70: 'rgba(255, 255, 255, 0.7)',\n
|
1
|
+
{"version":3,"file":"clrs.js","sources":["../../../../src/features/ui/theme/clrs.ts"],"sourcesContent":["import type { TColorNames, TColorsMap } from '../types';\n\nconst LightThemeColors: Record<TColorNames, string> = {\n YELLOW_1: '#FFF1CC',\n YELLOW_2: '#FFDB80',\n YELLOW_3: '#FFCC4D',\n YELLOW_4: '#FFB700',\n YELLOW_5: '#E58600',\n YELLOW_6: '#B25900',\n\n ORANGE_1: '#FFDDCC',\n ORANGE_2: '#FFC2A3',\n ORANGE_3: '#FFAA80',\n ORANGE_4: '#FF884D',\n ORANGE_5: '#EC5B13',\n ORANGE_6: '#B23C00',\n\n PURPLE_1: '#FFE0FD',\n PURPLE_2: '#FFC2FA',\n PURPLE_3: '#FFA3F7',\n PURPLE_4: '#FF80F4',\n PURPLE_5: '#D926CA',\n PURPLE_6: '#AA099C',\n\n GREEN_1: '#D0FBE5',\n GREEN_2: '#89F5BF',\n GREEN_3: '#40F098',\n GREEN_4: '#00E573',\n GREEN_5: '#00B259',\n GREEN_6: '#007038',\n\n BLUE_1: '#D6F5FF',\n BLUE_2: '#99E5FF',\n BLUE_3: '#66D9FF',\n BLUE_4: '#33CCFF',\n BLUE_5: '#0086E5',\n BLUE_6: '#0055CC',\n\n BLACK_1: '#0D0D0D',\n BLACK_2: '#141414',\n BLACK_3: '#191919',\n BLACK_4: '#252525',\n BLACK_5: '#313131',\n\n WHITE_1: '#FFFFFF',\n WHITE_2: '#FAFAFA',\n WHITE_3: '#F5F5F5',\n WHITE_4: '#EBEBEB',\n WHITE_5: '#DADADA',\n\n BLACK_T_02: 'rgba(0, 0, 0, 0.02)',\n BLACK_T_04: 'rgba(0, 0, 0, 0.04)',\n BLACK_T_08: 'rgba(0, 0, 0, 0.08)',\n BLACK_T_15: 'rgba(0, 0, 0, 0.15)',\n BLACK_T_20: 'rgba(0, 0, 0, 0.20)',\n BLACK_T_38: 'rgba(0, 0, 0, 0.38)',\n BLACK_T_60: 'rgba(0, 0, 0, 0.6)',\n BLACK_T_87: 'rgba(0, 0, 0, 0.87)',\n\n WHITE_T_03: 'rgba(255, 255, 255, 0.03)',\n WHITE_T_05: 'rgba(255, 255, 255, 0.05)',\n WHITE_T_10: 'rgba(255, 255, 255, 0.1)',\n WHITE_T_15: 'rgba(255, 255, 255, 0.15)',\n WHITE_T_38: 'rgba(255, 255, 255, 0.38)',\n WHITE_T_60: 'rgba(255, 255, 255, 0.6)',\n WHITE_T_87: 'rgba(255, 255, 255, 0.87)',\n\n GREY_1: '#F6F6F6',\n GREY_2: '#E0E0E0',\n GREY_3: '#B3B3B3',\n GREY_4: '#808080',\n\n REAL_BLACK: '#000000',\n REAL_BLACK_60: 'rgba(0, 0, 0, 0.6)',\n REAL_BLACK_50: 'rgba(0, 0, 0, 0.5)',\n REAL_BLACK_30: 'rgba(0, 0, 0, 0.3)',\n REAL_BLACK_15: 'rgba(0, 0, 0, 0.15)',\n REAL_BLACK_10: 'rgba(0, 0, 0, 0.1)',\n\n BLACK: '#2B2B2B',\n BLACK_65: 'rgba(43, 43, 43, 0.65)',\n BLACK_75: 'rgba(43, 43, 43, 0.75)',\n BLACK_50: 'rgba(43, 43, 43, 0.5)',\n BLACK_10: 'rgba(43, 43, 43, 0.1)',\n\n WHITE: '#FFFFFF',\n WHITE_10: '#D9D9D9',\n WHITE_20: '#E6E6E6',\n WHITE_30: '#F2F2F2',\n WHITE_70: 'rgba(255, 255, 255, 0.7)',\n RED: '#C22300',\n // TODO: REMOVE this color\n FLOWER: '#DE5EE0',\n\n TRANSPARENT: 'transparent',\n} as const;\n\nfunction getColors(): TColorsMap {\n return LightThemeColors;\n}\n\nconst hues = ['YELLOW', 'ORANGE', 'PURPLE', 'GREEN', 'BLUE'] as const;\n\nexport { hues };\n\nexport default getColors;\n"],"names":["LightThemeColors","getColors","hues"],"mappings":"AAEA,MAAMA,IAAgD;AAAA,EACpD,UAAU;AAAA,EACV,UAAU;AAAA,EACV,UAAU;AAAA,EACV,UAAU;AAAA,EACV,UAAU;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AK;AAAA;AAAA,EAEL,QAAQ;AAAA,EAER,aAAa;AACf;AAEA,SAASC,IAAwB;AACxB,SAAAD;AACT;AAEA,MAAME,IAAO,CAAC,UAAU,UAAU,UAAU,SAAS,MAAM;"}
|
package/dist/index.d.ts
CHANGED
@@ -25,7 +25,7 @@ import type { PLUGIN_NAME } from '@cuemath/analytics-v2/dist/constants';
|
|
25
25
|
import { PropsWithChildren } from 'react';
|
26
26
|
import { default as React_2 } from 'react';
|
27
27
|
import * as React_3 from 'react';
|
28
|
-
import
|
28
|
+
import { ReactElement } from 'react';
|
29
29
|
import { ReactNode } from 'react';
|
30
30
|
import { RefAttributes } from 'react';
|
31
31
|
import { RefObject } from 'react';
|
@@ -33,18 +33,6 @@ import { ResourceModel } from '@cuemath/rest-api';
|
|
33
33
|
import type { SetStateAction } from 'react';
|
34
34
|
import { Substitute } from 'styled-components/dist/types';
|
35
35
|
|
36
|
-
export declare const Accordion: NamedExoticComponent<AccordionProps>;
|
37
|
-
|
38
|
-
declare interface AccordionProps {
|
39
|
-
theme?: AccordionTheme;
|
40
|
-
visibleBuffer: number;
|
41
|
-
defaultOpenElement?: number;
|
42
|
-
accordionData: Array<{
|
43
|
-
accordionQuestion: string;
|
44
|
-
accordionAnswer: React.ReactNode | string;
|
45
|
-
}>;
|
46
|
-
}
|
47
|
-
|
48
36
|
/**
|
49
37
|
* AccordionSection component.
|
50
38
|
*
|
@@ -53,8 +41,6 @@ declare interface AccordionProps {
|
|
53
41
|
*/
|
54
42
|
export declare const AccordionSection: FC<IAccordionSectionProps>;
|
55
43
|
|
56
|
-
declare type AccordionTheme = 'light' | 'dark';
|
57
|
-
|
58
44
|
export declare const AccountSelector: MemoExoticComponent<({ userAccounts, onSelect, onAddNew, isLoading, }: IAccountSelectorViewProps) => JSX.Element>;
|
59
45
|
|
60
46
|
export declare const ACHIEVEMENT_ACTIONS: {
|
@@ -114,8 +100,6 @@ export declare const BackgroundImage: ({ img }: {
|
|
114
100
|
|
115
101
|
export declare const BackIcon: React.FC<React.SVGProps<SVGSVGElement>>;
|
116
102
|
|
117
|
-
export declare const BaseInput: React_2.FC<IBaseInputProps>;
|
118
|
-
|
119
103
|
declare interface BaseProject {
|
120
104
|
id: string;
|
121
105
|
name: string;
|
@@ -577,30 +561,6 @@ export declare const getTheme: () => DefaultTheme;
|
|
577
561
|
|
578
562
|
declare function getZIndexConfig(): TZIndexMap;
|
579
563
|
|
580
|
-
export declare const GIF: {
|
581
|
-
BOBWAVE: string;
|
582
|
-
EASY_RESCHEDULING: string;
|
583
|
-
ENRICHMENT: string;
|
584
|
-
ENRICHMENT_MINI: string;
|
585
|
-
GAMES: string;
|
586
|
-
JIGII_WAVE: string;
|
587
|
-
LEARNING_SESSION: string;
|
588
|
-
MAX_WAVE: string;
|
589
|
-
PUZZLES: string;
|
590
|
-
SCHOOL_SUCCESS: string;
|
591
|
-
SCHOOL_SUCCESS_MINI: string;
|
592
|
-
SKILLS: string;
|
593
|
-
SPECKIE_WAVE: string;
|
594
|
-
STAY_CONNECTED: string;
|
595
|
-
TERA_WAVE: string;
|
596
|
-
TEST_PREP: string;
|
597
|
-
TEST_PREP_MINI: string;
|
598
|
-
TRACK_PROGRESS: string;
|
599
|
-
VINNIE_WAVE: string;
|
600
|
-
WAY_FORWARD: string;
|
601
|
-
YOUR_GOALS: string;
|
602
|
-
};
|
603
|
-
|
604
564
|
declare const GOAL_CATEGORY: {
|
605
565
|
readonly SCHOOL_SUCCESS: "SCHOOL_SUCCESS";
|
606
566
|
readonly TEST_PREP: "TEST_PREP";
|
@@ -617,7 +577,7 @@ export declare const GooglePlacesSearchInput: ComponentType<Omit_2<IGooglePlaces
|
|
617
577
|
|
618
578
|
export declare const GradeInput: NamedExoticComponent<ICustomInputFieldProps>;
|
619
579
|
|
620
|
-
export declare function GradeSelector({ selectedValue, onSelect, tabsWidth, width, grades, renderAs, size, layoutAlignment, }: IGradeSelectorProps): ReactElement;
|
580
|
+
export declare function GradeSelector({ selectedValue, onSelect, tabsWidth, width, grades, renderAs, size, sizeOnMobile, sizeOnTablet, layoutAlignment, }: IGradeSelectorProps): ReactElement;
|
621
581
|
|
622
582
|
export declare const HandIcon: React_2.FC;
|
623
583
|
|
@@ -875,6 +835,8 @@ declare interface IBlockSectionsCallbacks extends INodeCardCallbacks {
|
|
875
835
|
declare interface IButtonProps extends ButtonHTMLAttributes<HTMLButtonElement>, IClickableAnalyticsProps {
|
876
836
|
label: string;
|
877
837
|
renderAs: TButtonVariants;
|
838
|
+
sizeOnMobile?: TButtonSizes;
|
839
|
+
sizeOnTablet?: TButtonSizes;
|
878
840
|
size?: TButtonSizes;
|
879
841
|
shape?: 'curved' | 'square';
|
880
842
|
disabled?: boolean;
|
@@ -1615,6 +1577,8 @@ declare interface IGradeSelectorProps {
|
|
1615
1577
|
width?: number;
|
1616
1578
|
renderAs?: TTabVariants;
|
1617
1579
|
size?: TTabSizes;
|
1580
|
+
sizeOnMobile?: TTabSizes;
|
1581
|
+
sizeOnTablet?: TTabSizes;
|
1618
1582
|
onSelect: (grade: string) => void;
|
1619
1583
|
grades: string[];
|
1620
1584
|
layoutAlignment?: 'center' | 'auto';
|
@@ -2181,7 +2145,6 @@ export declare const ILLUSTRATIONS: {
|
|
2181
2145
|
STAR_WITH_GREEN_FILL: string;
|
2182
2146
|
STREAK_GREEN: string;
|
2183
2147
|
STREAK_WHITE: string;
|
2184
|
-
STRIPE_BLURPLE: string;
|
2185
2148
|
TEST_DIFFICULTY_EASY: string;
|
2186
2149
|
TEST_DIFFICULTY_HARD: string;
|
2187
2150
|
TEST_DIFFICULTY_MEDIUM: string;
|
@@ -2547,7 +2510,7 @@ export declare interface IModal {
|
|
2547
2510
|
/** Content to display inside the modal */
|
2548
2511
|
element: ReactElement;
|
2549
2512
|
/** Rendering style of the modal */
|
2550
|
-
renderAs?: 'modal' | 'fullscreen' | 'spotlight'
|
2513
|
+
renderAs?: 'modal' | 'fullscreen' | 'spotlight';
|
2551
2514
|
/** Whether the modal can be dismissed by clicking outside or ESC key (default: true) */
|
2552
2515
|
isDismissable?: boolean;
|
2553
2516
|
/** Whether the modal requires authentication to view (default: true) */
|
@@ -3542,6 +3505,8 @@ declare interface ITabProps {
|
|
3542
3505
|
$width?: number | string;
|
3543
3506
|
$renderAs?: TTabVariants;
|
3544
3507
|
$size?: TTabSizes;
|
3508
|
+
$sizeOnMobile?: TTabSizes;
|
3509
|
+
$sizeOnTablet?: TTabSizes;
|
3545
3510
|
$disabled?: boolean;
|
3546
3511
|
onClick: () => void;
|
3547
3512
|
shape?: 'curved' | 'square';
|
@@ -3617,20 +3582,6 @@ declare interface ITalkMeterProps extends ITalkMeter {
|
|
3617
3582
|
animated?: boolean;
|
3618
3583
|
}
|
3619
3584
|
|
3620
|
-
declare interface ITeacherProfileDetails {
|
3621
|
-
lower_grade: string;
|
3622
|
-
higher_grade: string;
|
3623
|
-
header_image: string;
|
3624
|
-
years_of_experience: number;
|
3625
|
-
number_of_students_taught: number;
|
3626
|
-
countries: string[];
|
3627
|
-
degree: TDegreeInformation;
|
3628
|
-
}
|
3629
|
-
|
3630
|
-
declare interface ITeacherProfileProps {
|
3631
|
-
teacherProfile?: ITeacherProfileDetails;
|
3632
|
-
}
|
3633
|
-
|
3634
3585
|
declare interface ITeacherReview {
|
3635
3586
|
reviewComment?: string;
|
3636
3587
|
images?: string[];
|
@@ -3670,6 +3621,8 @@ declare interface ITestsListProps {
|
|
3670
3621
|
declare interface ITextButtonProps extends IClickableAnalyticsProps {
|
3671
3622
|
label: string;
|
3672
3623
|
size?: TTextButtonSizes;
|
3624
|
+
sizeOnMobile?: TTextButtonSizes;
|
3625
|
+
sizeOnTablet?: TTextButtonSizes;
|
3673
3626
|
disabled?: boolean;
|
3674
3627
|
onClick?: () => void;
|
3675
3628
|
color?: TColorNames;
|
@@ -4983,8 +4936,6 @@ export declare const STAGES: {
|
|
4983
4936
|
|
4984
4937
|
export declare const Star2Icon: React.FC<React.SVGProps<SVGSVGElement>>;
|
4985
4938
|
|
4986
|
-
export declare const Star3Icon: React.FC<React.SVGProps<SVGSVGElement>>;
|
4987
|
-
|
4988
4939
|
export declare const StarIcon: React.FC<React.SVGProps<SVGSVGElement>>;
|
4989
4940
|
|
4990
4941
|
export declare enum State {
|
@@ -5208,7 +5159,7 @@ export declare type TCheckboxVariants = 'black' | 'black-dark';
|
|
5208
5159
|
*/
|
5209
5160
|
export declare type TCoachmarkJourneyProps = Omit<ICoachmarkProps, 'isActive'>;
|
5210
5161
|
|
5211
|
-
export declare type TColorNames = `${THueNames}_${'1' | '2' | '3' | '4' | '5' | '6'}` | `${'BLACK' | 'WHITE'}_${'1' | '2' | '3' | '4' | '5'}` | `${'GREY'}_${'1' | '2' | '3' | '4'}` | `${'BLACK_T'}_${'02' | '04' | '08' | '15' | '20' | '38' | '60' | '87'}` | `${'WHITE_T'}_${'03' | '05' | '10' | '15' | '38' | '60' | '87'}` | 'BLACK' | `${'BLACK'}_${'50' | '65' | '75' | '10'}` | 'REAL_BLACK' | `${'REAL_BLACK'}_${'10' | '15' | '30' | '50' | '60'}` | 'WHITE' | `${'WHITE'}_${'10' | '20' | '30' | '70'}` | 'RED' | 'TRANSPARENT' | 'FLOWER'
|
5162
|
+
export declare type TColorNames = `${THueNames}_${'1' | '2' | '3' | '4' | '5' | '6'}` | `${'BLACK' | 'WHITE'}_${'1' | '2' | '3' | '4' | '5'}` | `${'GREY'}_${'1' | '2' | '3' | '4'}` | `${'BLACK_T'}_${'02' | '04' | '08' | '15' | '20' | '38' | '60' | '87'}` | `${'WHITE_T'}_${'03' | '05' | '10' | '15' | '38' | '60' | '87'}` | 'BLACK' | `${'BLACK'}_${'50' | '65' | '75' | '10'}` | 'REAL_BLACK' | `${'REAL_BLACK'}_${'10' | '15' | '30' | '50' | '60'}` | 'WHITE' | `${'WHITE'}_${'10' | '20' | '30' | '70'}` | 'RED' | 'TRANSPARENT' | 'FLOWER';
|
5212
5163
|
|
5213
5164
|
export declare type TColorsMap = Record<TColorNames, string>;
|
5214
5165
|
|
@@ -5267,15 +5218,8 @@ declare type TCueProgramData = {
|
|
5267
5218
|
|
5268
5219
|
declare type TDefaultSection = Record<string, unknown>;
|
5269
5220
|
|
5270
|
-
declare type TDegreeInformation = {
|
5271
|
-
degree_name?: string;
|
5272
|
-
field_of_study?: string;
|
5273
|
-
};
|
5274
|
-
|
5275
5221
|
declare type TDrawingData = ITile | IStroke | undefined;
|
5276
5222
|
|
5277
|
-
export declare const TeacherProfile: FC<ITeacherProfileProps>;
|
5278
|
-
|
5279
5223
|
declare type TEnglishSectionSummary = {
|
5280
5224
|
section_code: 'READING & WRITING';
|
5281
5225
|
} & TSectionSummary;
|
@@ -5309,7 +5253,6 @@ declare interface TextProps {
|
|
5309
5253
|
$whiteSpace?: 'pre-line' | 'normal' | 'pre-wrap' | 'no-wrap' | 'pre' | 'break-spaces';
|
5310
5254
|
$renderOnMobileAs?: TTextVariants;
|
5311
5255
|
$renderOnTabletAs?: TTextVariants;
|
5312
|
-
$cursor?: 'pointer' | 'default' | 'text' | 'not-allowed' | 'move' | 'help';
|
5313
5256
|
}
|
5314
5257
|
|
5315
5258
|
export declare type TFontFamilyNames = `${'Athletics'}-${'Light' | 'Regular' | 'Medium' | 'Bold' | 'Black'}` | `${'UntitledSans'}-${'Regular' | 'Medium'}`;
|