@cuemath/leap 3.5.4-as1 → 3.5.4-as2
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"accordion.js","sources":["../../../../src/features/ui/simple-accordian/accordion.tsx"],"sourcesContent":["import
|
|
1
|
+
{"version":3,"file":"accordion.js","sources":["../../../../src/features/ui/simple-accordian/accordion.tsx"],"sourcesContent":["import { memo, useState, useCallback, type FC } from 'react';\n\nimport MinusIcon from '../../../assets/line-icons/icons/minus';\nimport PlusIcon from '../../../assets/line-icons/icons/plus';\nimport Text from '../text/text';\nimport Image from '../image/image';\nimport FlexView from '../layout/flex-view';\nimport * as Styled from './accordion-styled';\nimport type { IAccordionProps } from './accordion-types';\n\nconst Accordion: FC<IAccordionProps> = memo(\n ({ title, icon, tag, children, defaultExpanded = false, $borderColor, $backgroundColor }) => {\n const [isExpanded, setIsExpanded] = useState(defaultExpanded);\n\n const handleToggle = useCallback(() => {\n if (children) {\n setIsExpanded(prev => !prev);\n }\n }, [children]);\n\n return (\n <FlexView\n $position=\"relative\"\n $borderColor={$borderColor || 'BLACK_1'}\n $background={$backgroundColor || 'WHITE'}\n >\n {tag && (\n <Styled.TagContainer $background=\"BLACK\" $gutter={4}>\n <Text $renderAs=\"ab4-black\" $color=\"WHITE\">\n {tag}\n </Text>\n </Styled.TagContainer>\n )}\n\n <Styled.Wrapper\n $flexDirection=\"row\"\n $alignItems=\"center\"\n $justifyContent=\"space-between\"\n $gutterX={1}\n $gapX={1.32}\n $disabled={!children}\n onClick={handleToggle}\n >\n <FlexView\n $flexDirection=\"row\"\n $alignItems=\"center\"\n $justifyContent=\"center\"\n $flexGapX={0.75}\n >\n <FlexView>{icon && <Image src={icon} />}</FlexView>\n <Text $renderAs=\"ab2\">{title}</Text>\n </FlexView>\n {children &&\n (isExpanded ? (\n <MinusIcon width={20} height={20} />\n ) : (\n <PlusIcon width={20} height={20} />\n ))}\n </Styled.Wrapper>\n\n {children && (\n <Styled.ContentWrapper $isExpanded={isExpanded}>{children}</Styled.ContentWrapper>\n )}\n </FlexView>\n );\n },\n);\n\nexport default Accordion;\n"],"names":["Accordion","memo","title","icon","tag","children","defaultExpanded","$borderColor","$backgroundColor","isExpanded","setIsExpanded","useState","handleToggle","useCallback","prev","jsxs","FlexView","jsx","Styled.TagContainer","Text","Styled.Wrapper","Image","MinusIcon","PlusIcon","Styled.ContentWrapper"],"mappings":";;;;;;;;AAUA,MAAMA,IAAiCC;AAAA,EACrC,CAAC,EAAE,OAAAC,GAAO,MAAAC,GAAM,KAAAC,GAAK,UAAAC,GAAU,iBAAAC,IAAkB,IAAO,cAAAC,GAAc,kBAAAC,QAAuB;AAC3F,UAAM,CAACC,GAAYC,CAAa,IAAIC,EAASL,CAAe,GAEtDM,IAAeC,EAAY,MAAM;AACrC,MAAIR,KACYK,EAAA,CAAAI,MAAQ,CAACA,CAAI;AAAA,IAC7B,GACC,CAACT,CAAQ,CAAC;AAGX,WAAA,gBAAAU;AAAA,MAACC;AAAA,MAAA;AAAA,QACC,WAAU;AAAA,QACV,cAAcT,KAAgB;AAAA,QAC9B,aAAaC,KAAoB;AAAA,QAEhC,UAAA;AAAA,UAAAJ,KACE,gBAAAa,EAAAC,GAAA,EAAoB,aAAY,SAAQ,SAAS,GAChD,UAAA,gBAAAD,EAACE,KAAK,WAAU,aAAY,QAAO,SAChC,YACH,CAAA,GACF;AAAA,UAGF,gBAAAJ;AAAA,YAACK;AAAAA,YAAA;AAAA,cACC,gBAAe;AAAA,cACf,aAAY;AAAA,cACZ,iBAAgB;AAAA,cAChB,UAAU;AAAA,cACV,OAAO;AAAA,cACP,WAAW,CAACf;AAAA,cACZ,SAASO;AAAA,cAET,UAAA;AAAA,gBAAA,gBAAAG;AAAA,kBAACC;AAAA,kBAAA;AAAA,oBACC,gBAAe;AAAA,oBACf,aAAY;AAAA,oBACZ,iBAAgB;AAAA,oBAChB,WAAW;AAAA,oBAEX,UAAA;AAAA,sBAAA,gBAAAC,EAACD,KAAU,UAAQb,KAAA,gBAAAc,EAACI,GAAM,EAAA,KAAKlB,EAAM,CAAA,GAAG;AAAA,sBACvC,gBAAAc,EAAAE,GAAA,EAAK,WAAU,OAAO,UAAMjB,GAAA;AAAA,oBAAA;AAAA,kBAAA;AAAA,gBAC/B;AAAA,gBACCG,MACEI,IACE,gBAAAQ,EAAAK,GAAA,EAAU,OAAO,IAAI,QAAQ,GAAI,CAAA,IAEjC,gBAAAL,EAAAM,GAAA,EAAS,OAAO,IAAI,QAAQ,GAAI,CAAA;AAAA,cAAA;AAAA,YAAA;AAAA,UAEvC;AAAA,UAEClB,KACE,gBAAAY,EAAAO,GAAA,EAAsB,aAAaf,GAAa,UAAAJ,GAAS;AAAA,QAAA;AAAA,MAAA;AAAA,IAAA;AAAA,EAIlE;AACF;"}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,39 +1,39 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
1
|
+
import { ButtonHTMLAttributes } from 'react';
|
|
2
|
+
import { Channel } from '@cuemath/cue-message-broker';
|
|
3
3
|
import { ChannelStatus } from '@cuemath/cue-message-broker';
|
|
4
4
|
import { ComponentType } from 'react';
|
|
5
|
-
import
|
|
5
|
+
import { Config } from '@lottiefiles/dotlottie-web';
|
|
6
6
|
import { Context } from 'react';
|
|
7
|
-
import
|
|
8
|
-
import
|
|
7
|
+
import { Data } from '@lottiefiles/dotlottie-web';
|
|
8
|
+
import { DefaultTheme } from 'styled-components';
|
|
9
9
|
import { DetailedHTMLProps } from 'react';
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import
|
|
10
|
+
import { Dispatch } from 'react';
|
|
11
|
+
import { EventListener as EventListener_2 } from '@lottiefiles/dotlottie-web';
|
|
12
|
+
import { EventType } from '@lottiefiles/dotlottie-web';
|
|
13
13
|
import { FC } from 'react';
|
|
14
|
-
import
|
|
14
|
+
import { FormEvent } from 'react';
|
|
15
15
|
import { ForwardRefExoticComponent } from 'react';
|
|
16
16
|
import { HTMLAttributes } from 'react';
|
|
17
|
-
import
|
|
17
|
+
import { HTMLProps } from 'react';
|
|
18
18
|
import { IChannelMessage } from '@cuemath/cue-message-broker';
|
|
19
|
-
import
|
|
20
|
-
import
|
|
21
|
-
import
|
|
19
|
+
import { IframeHTMLAttributes } from 'react';
|
|
20
|
+
import { ImgHTMLAttributes } from 'react';
|
|
21
|
+
import { InputHTMLAttributes } from 'react';
|
|
22
22
|
import { IProvidedProps } from 'google-maps-react';
|
|
23
23
|
import { IStyledComponent } from 'styled-components';
|
|
24
24
|
import { JSX } from 'react/jsx-runtime';
|
|
25
25
|
import { MemoExoticComponent } from 'react';
|
|
26
|
-
import
|
|
26
|
+
import { MutableRefObject } from 'react';
|
|
27
27
|
import { NamedExoticComponent } from 'react';
|
|
28
28
|
import { Omit as Omit_2 } from 'google-maps-react';
|
|
29
|
-
import
|
|
29
|
+
import { PLUGIN_NAME } from '@cuemath/analytics-v2/dist/constants';
|
|
30
30
|
import { PropsWithChildren } from 'react';
|
|
31
31
|
import { ReactElement } from 'react';
|
|
32
32
|
import { ReactNode } from 'react';
|
|
33
33
|
import { RefAttributes } from 'react';
|
|
34
34
|
import { RefObject } from 'react';
|
|
35
35
|
import { ResourceModel } from '@cuemath/rest-api';
|
|
36
|
-
import
|
|
36
|
+
import { SetStateAction } from 'react';
|
|
37
37
|
import { Substitute } from 'styled-components/dist/types';
|
|
38
38
|
import { SVGProps } from 'react';
|
|
39
39
|
import { VideoHTMLAttributes } from 'react';
|
|
@@ -84,7 +84,7 @@ declare type AnimationSegment = [number, number];
|
|
|
84
84
|
export declare const AppLoader: FC<IAppLoaderProps>;
|
|
85
85
|
|
|
86
86
|
export declare const ArcButton: NamedExoticComponent<IArcButtonProps & {
|
|
87
|
-
|
|
87
|
+
children?: ReactNode | undefined;
|
|
88
88
|
} & RefAttributes<HTMLDivElement>>;
|
|
89
89
|
|
|
90
90
|
export declare const ArrowTooltip: NamedExoticComponent<IArrowTooltipProps>;
|
|
@@ -440,7 +440,7 @@ declare interface CueCoinIconProps extends SVGProps<SVGSVGElement> {
|
|
|
440
440
|
variant?: 'gold' | 'silver';
|
|
441
441
|
}
|
|
442
442
|
|
|
443
|
-
export declare const CuemathAppFeatures: NamedExoticComponent<{}>;
|
|
443
|
+
export declare const CuemathAppFeatures: NamedExoticComponent< {}>;
|
|
444
444
|
|
|
445
445
|
export declare const CuemathLogo: FC<SVGProps<SVGSVGElement>>;
|
|
446
446
|
|
|
@@ -698,7 +698,7 @@ declare enum GENDER {
|
|
|
698
698
|
OTHER = "OTHER"
|
|
699
699
|
}
|
|
700
700
|
|
|
701
|
-
export declare const getActiveSATSheet: (sheets: TLPARSheetData[]) => TLPARSheetData;
|
|
701
|
+
export declare const getActiveSATSheet: (sheets: TLPARSheetData[]) => TLPARSheetData | undefined;
|
|
702
702
|
|
|
703
703
|
declare const getArrowTooltipConfig: IGetArrowTooltipConfig;
|
|
704
704
|
|
|
@@ -5241,7 +5241,7 @@ export declare const OTPInput: NamedExoticComponent<IOTPInputProps>;
|
|
|
5241
5241
|
export declare type OutcomeStage = keyof typeof STAGES;
|
|
5242
5242
|
|
|
5243
5243
|
export declare const OverlayLoader: MemoExoticComponent<({ isLoading }: {
|
|
5244
|
-
|
|
5244
|
+
isLoading?: boolean | undefined;
|
|
5245
5245
|
}) => JSX.Element | null>;
|
|
5246
5246
|
|
|
5247
5247
|
export declare const ParentDashboard: MemoExoticComponent<(props: IParentDashboardProps) => JSX.Element>;
|
|
@@ -5564,7 +5564,7 @@ export declare const SheetIcon: FC<SVGProps<SVGSVGElement>>;
|
|
|
5564
5564
|
export declare const SheetList: FC<ISheetsListProps>;
|
|
5565
5565
|
|
|
5566
5566
|
export declare const SheetLocked: MemoExoticComponent<({ onHomeClick }: {
|
|
5567
|
-
|
|
5567
|
+
onHomeClick: () => void;
|
|
5568
5568
|
}) => JSX.Element>;
|
|
5569
5569
|
|
|
5570
5570
|
export declare const SignUp: ({ mathGymEnrolledUser, circleEnrolledUser, circleOnLeapPremiumDays, circleUsername, countryCode, grade: defaultGrade, state, circleOnLeapPremiumEnabled, studentId, isSignUpProcessing, onCreateUser, onUpdateUser, onSignupStepsComplete, isPLAStudent, }: ISignUpProps) => JSX.Element;
|
|
@@ -7082,8 +7082,8 @@ export declare const useGetMilestoneResources: (initialId?: string, initialQuery
|
|
|
7082
7082
|
|
|
7083
7083
|
export declare const useGetPastMilestoneCount: (initialId?: string, initialQuery?: void | undefined) => {
|
|
7084
7084
|
get: (id: string, query: void, meta: TQuery_2) => Promise<void>;
|
|
7085
|
-
resource: ResourceModel<{
|
|
7086
|
-
|
|
7085
|
+
resource: ResourceModel< {
|
|
7086
|
+
user_milestones_count: number;
|
|
7087
7087
|
}> | undefined;
|
|
7088
7088
|
data: {
|
|
7089
7089
|
user_milestones_count: number;
|