@cuemath/leap 3.0.30-j → 3.0.30
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/auth/comps/auth-page-layout/auth-page-layout-styles.js +12 -0
- package/dist/features/auth/comps/auth-page-layout/auth-page-layout-styles.js.map +1 -0
- package/dist/features/auth/comps/auth-page-layout/auth-page-layout.js +9 -8
- package/dist/features/auth/comps/auth-page-layout/auth-page-layout.js.map +1 -1
- package/dist/features/auth/comps/auth-static-panel/auth-static-panel.js +1 -1
- package/dist/features/auth/comps/auth-static-panel/auth-static-panel.js.map +1 -1
- package/dist/features/auth/forgot-password/forgot-password-styled.js +3 -15
- package/dist/features/auth/forgot-password/forgot-password-styled.js.map +1 -1
- package/dist/features/auth/forgot-password/otp-form/otp-form.js +29 -29
- package/dist/features/auth/forgot-password/otp-form/otp-form.js.map +1 -1
- package/dist/features/auth/forgot-password/reset-password-form/reset-password-form.js +4 -2
- package/dist/features/auth/forgot-password/reset-password-form/reset-password-form.js.map +1 -1
- package/dist/features/auth/forgot-password/user-identifier-form/user-identifier-form.js +15 -13
- package/dist/features/auth/forgot-password/user-identifier-form/user-identifier-form.js.map +1 -1
- package/dist/features/auth/login/social-login-methods/social-login-methods.js +34 -43
- package/dist/features/auth/login/social-login-methods/social-login-methods.js.map +1 -1
- package/dist/features/auth/login/username-password-form/username-password-form.js +21 -22
- package/dist/features/auth/login/username-password-form/username-password-form.js.map +1 -1
- package/dist/features/homework/styles.js +5 -4
- package/dist/features/homework/styles.js.map +1 -1
- package/dist/features/ui/buttons/button/button-styled.js +29 -29
- package/dist/features/ui/buttons/button/button-styled.js.map +1 -1
- package/dist/index.d.ts +2 -19
- package/dist/index.js +49 -53
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/dist/features/auth/comps/auth-page-layout/auth-page-layout-styled.js +0 -21
- package/dist/features/auth/comps/auth-page-layout/auth-page-layout-styled.js.map +0 -1
- package/dist/features/auth/login/login-styled.js +0 -13
- package/dist/features/auth/login/login-styled.js.map +0 -1
- package/dist/features/auth/login/social-login-methods/social-login-methods-styled.js +0 -9
- package/dist/features/auth/login/social-login-methods/social-login-methods-styled.js.map +0 -1
- package/dist/features/hooks/use-device-type.js +0 -25
- package/dist/features/hooks/use-device-type.js.map +0 -1
- package/dist/features/utils/media.js +0 -16
- package/dist/features/utils/media.js.map +0 -1
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"username-password-form.js","sources":["../../../../../src/features/auth/login/username-password-form/username-password-form.tsx"],"sourcesContent":["import type { IUsernamePasswordFormProps } from './username-password-form-types';\n\nimport { type ChangeEvent, type FC, memo, useCallback } from 'react';\n\nimport Button from '../../../ui/buttons/button/button';\nimport TextButton from '../../../ui/buttons/text-button/text-button';\nimport TextInput from '../../../ui/inputs/text-input/text-input';\nimport FlexView from '../../../ui/layout/flex-view';\nimport Separator from '../../../ui/separator/separator';\nimport InputStatusIcon from '../../comps/input-status-icon/input-status-icon';\
|
1
|
+
{"version":3,"file":"username-password-form.js","sources":["../../../../../src/features/auth/login/username-password-form/username-password-form.tsx"],"sourcesContent":["import type { IUsernamePasswordFormProps } from './username-password-form-types';\n\nimport { type ChangeEvent, type FC, memo, useCallback } from 'react';\n\nimport Button from '../../../ui/buttons/button/button';\nimport TextButton from '../../../ui/buttons/text-button/text-button';\nimport TextInput from '../../../ui/inputs/text-input/text-input';\nimport FlexView from '../../../ui/layout/flex-view';\nimport Separator from '../../../ui/separator/separator';\nimport InputStatusIcon from '../../comps/input-status-icon/input-status-icon';\n\nconst UsernamePasswordForm: FC<IUsernamePasswordFormProps> = ({\n username,\n password,\n errors,\n isLoading,\n onChange,\n onSubmit,\n onForgotPassword,\n}) => {\n const isSubmitDisabled = isLoading || !username.trim() || !password.trim();\n\n const handleUsernameChange = useCallback(\n (e: ChangeEvent<HTMLInputElement>) => {\n onChange('username', e.target.value);\n },\n [onChange],\n );\n\n const handlePasswordChange = useCallback(\n (e: ChangeEvent<HTMLInputElement>) => {\n onChange('password', e.target.value);\n },\n [onChange],\n );\n\n return (\n <FlexView\n $gutterX={2}\n $gapX={1.5}\n $alignItems=\"center\"\n $justifyContent=\"center\"\n $background=\"BLACK_2\"\n $height={308}\n >\n <Separator heightX={0.5} />\n <form onSubmit={onSubmit}>\n <FlexView $alignItems=\"center\" $justifyContent=\"center\">\n <TextInput\n renderAs={errors.username ? 'error-dark' : 'primary-dark'}\n autoFocus\n autoComplete=\"username\"\n label=\"Username\"\n value={username}\n onChange={handleUsernameChange}\n width={330}\n required\n shape=\"borderLess\"\n errorMessage={errors.username}\n />\n <Separator height={36} />\n <TextInput\n type=\"password\"\n renderAs={errors.password ? 'error-dark' : 'primary-dark'}\n autoComplete=\"password\"\n label=\"Password\"\n value={password}\n onChange={handlePasswordChange}\n width={330}\n required\n shape=\"borderLess\"\n errorMessage={errors.password}\n siblingElement={<InputStatusIcon isError={!!errors.password} />}\n />\n </FlexView>\n <Separator heightX={1.25} />\n <FlexView $alignItems=\"flex-end\">\n <TextButton label=\"Forgot Password?\" onClick={onForgotPassword} color=\"WHITE_T_60\" />\n </FlexView>\n <Separator heightX={2} />\n <FlexView $justifyContent=\"center\">\n <Button\n size=\"small\"\n renderAs=\"secondary-dark\"\n type=\"submit\"\n label=\"Log in\"\n width={336}\n busy={isLoading}\n disabled={isSubmitDisabled}\n />\n </FlexView>\n </form>\n </FlexView>\n );\n};\n\nexport default memo(UsernamePasswordForm);\n"],"names":["UsernamePasswordForm","username","password","errors","isLoading","onChange","onSubmit","onForgotPassword","isSubmitDisabled","handleUsernameChange","useCallback","e","handlePasswordChange","jsxs","FlexView","jsx","Separator","TextInput","InputStatusIcon","TextButton","Button","usernamePasswordForm","memo"],"mappings":";;;;;;;;AAWA,MAAMA,IAAuD,CAAC;AAAA,EAC5D,UAAAC;AAAA,EACA,UAAAC;AAAA,EACA,QAAAC;AAAA,EACA,WAAAC;AAAA,EACA,UAAAC;AAAA,EACA,UAAAC;AAAA,EACA,kBAAAC;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,gBACP,UAAQ;AAAA,gBACR,OAAM;AAAA,gBACN,cAAcT,EAAO;AAAA,gBACrB,gBAAiB,gBAAAY,EAAAG,GAAA,EAAgB,SAAS,CAAC,CAACf,EAAO,UAAU;AAAA,cAAA;AAAA,YAC/D;AAAA,UAAA,GACF;AAAA,UACA,gBAAAY,EAACC,GAAU,EAAA,SAAS,KAAM,CAAA;AAAA,UACzB,gBAAAD,EAAAD,GAAA,EAAS,aAAY,YACpB,UAAC,gBAAAC,EAAAI,GAAA,EAAW,OAAM,oBAAmB,SAASZ,GAAkB,OAAM,aAAa,CAAA,GACrF;AAAA,UACA,gBAAAQ,EAACC,GAAU,EAAA,SAAS,EAAG,CAAA;AAAA,UACvB,gBAAAD,EAACD,GAAS,EAAA,iBAAgB,UACxB,UAAA,gBAAAC;AAAA,YAACK;AAAA,YAAA;AAAA,cACC,MAAK;AAAA,cACL,UAAS;AAAA,cACT,MAAK;AAAA,cACL,OAAM;AAAA,cACN,OAAO;AAAA,cACP,MAAMhB;AAAA,cACN,UAAUI;AAAA,YAAA;AAAA,UAAA,GAEd;AAAA,QAAA,GACF;AAAA,MAAA;AAAA,IAAA;AAAA,EAAA;AAGN,GAEea,IAAAC,EAAKtB,CAAoB;"}
|
@@ -18,7 +18,7 @@ const c = r(e)(({ theme: o }) => `
|
|
18
18
|
-webkit-box-orient: vertical;
|
19
19
|
overflow: hidden;
|
20
20
|
text-overflow: ellipsis;
|
21
|
-
`,
|
21
|
+
`, x = r(e)(({
|
22
22
|
$shouldopenonright: o,
|
23
23
|
$visible: t
|
24
24
|
}) => `
|
@@ -33,8 +33,9 @@ const c = r(e)(({ theme: o }) => `
|
|
33
33
|
transition: transform 0.2s ease-in-out, opacity 0.2s ease-in-out;
|
34
34
|
box-shadow: 0px 6px 12px 0px rgba(0, 0, 0, 0.4);
|
35
35
|
z-index: 10;
|
36
|
-
`),
|
36
|
+
`), u = r(e)`
|
37
37
|
border: 1px solid ${({ theme: o }) => o.colors.BLACK_T_15};
|
38
|
+
border-top-width: 2px;
|
38
39
|
&:hover {
|
39
40
|
border: 1px solid ${({ theme: o }) => o.colors.BLACK};
|
40
41
|
border-top-width: 2px;
|
@@ -117,9 +118,9 @@ export {
|
|
117
118
|
w as BannerImageWrapper,
|
118
119
|
v as BlurContainer,
|
119
120
|
$ as BlurFlexView,
|
120
|
-
|
121
|
+
u as CardContainer,
|
121
122
|
c as CardKebabMenuWrapper,
|
122
|
-
|
123
|
+
x as CardMenuOptionsWrapper,
|
123
124
|
b as CardWrapper,
|
124
125
|
m as HeaderText,
|
125
126
|
h as IconWrapper,
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"styles.js","sources":["../../../src/features/homework/styles.ts"],"sourcesContent":["import styled from 'styled-components';\n\nimport Minus2Icon from '../../assets/line-icons/icons/minus2';\nimport FlexView from '../ui/layout/flex-view';\nimport Text from '../ui/text/text';\n\ninterface ICardWrapperProps {\n $bgImage: string;\n}\ninterface ICardOptionsMenuWrapperProps {\n $visible: boolean;\n $shouldopenonright: boolean;\n}\n\nexport const CardKebabMenuWrapper = styled(FlexView)(({ theme }) => {\n return `\n cursor: pointer;\n width: 24px;\n height: 24px;\n \n \n &:hover {\n border-radius: 50%;\n background: ${theme.colors.WHITE_5}; \n }\n `;\n});\n\nexport const SubHeaderText = styled(Text)`\n display: -webkit-box;\n -webkit-line-clamp: 1;\n -webkit-box-orient: vertical;\n overflow: hidden;\n text-overflow: ellipsis;\n`;\n\nexport const CardMenuOptionsWrapper = styled(FlexView)<ICardOptionsMenuWrapperProps>(({\n $shouldopenonright,\n $visible,\n}) => {\n return `\n cursor: pointer;\n position: absolute;\n z-index: 6;\n top: calc(100% + 4px);\n right: ${$shouldopenonright ? 0 : 'auto'};\n transform-origin: top;\n transform: scaleY(${$visible ? 1 : 0});\n opacity: ${$visible ? 1 : 0};\n transition: transform 0.2s ease-in-out, opacity 0.2s ease-in-out;\n box-shadow: 0px 6px 12px 0px rgba(0, 0, 0, 0.4);\n z-index: 10;\n `;\n});\n\nexport const CardContainer = styled(FlexView)`\n border: 1px solid ${({ theme }) => theme.colors.BLACK_T_15};\n &:hover {\n border: 1px solid ${({ theme }) => theme.colors.BLACK};\n border-top-width: 2px;\n }\n`;\n\nexport const CardWrapper = styled(FlexView)<ICardWrapperProps>(({ $bgImage }) => {\n if ($bgImage) {\n return `\n background-image: url(${$bgImage});\n background-repeat: no-repeat;\n background-size: cover;\n background-position: center;\n overflow: hidden;\n `;\n }\n\n return 'overflow: hidden;';\n});\n\nexport const IconWrapper = styled(FlexView)`\n display: flex;\n align-items: center;\n justify-content: center;\n`;\n\nexport const BannerImageWrapper = styled(FlexView)`\n position: absolute;\n right: -18px;\n top: -4px;\n`;\n\nexport const BannerImage = styled.img(({ theme }) => {\n const { gutter } = theme.layout;\n\n return `\n border: 1px solid ${theme.colors.BLACK_T_15};\n width: ${gutter * 4}px;\n height: ${gutter * 4}px;\n border-radius: 50%;\n `;\n});\n\nexport const StyledMinus2Icon = styled(Minus2Icon)`\n path {\n stroke: ${({ theme }) => theme.colors.WHITE};\n }\n`;\n\nexport const HeaderText = styled(Text)`\n display: -webkit-box;\n -webkit-line-clamp: 2;\n -webkit-box-orient: vertical;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: break-spaces;\n`;\n\ninterface ICardOptionWrapperProps {\n $disabled?: boolean;\n}\ninterface ICardOptionsProps {\n $top: number;\n $left: number;\n}\n\nexport const CardOptions = styled(FlexView)<ICardOptionsProps>``;\n\nexport const CardOptionWrapper = styled(FlexView)<ICardOptionWrapperProps>(({\n theme,\n $disabled,\n}) => {\n return `\n cursor: ${$disabled ? 'not-allowed' : 'pointer'};\n \n &:hover {\n background: ${$disabled ? 'transparent' : theme.colors.BLACK};\n };\n \n path {\n fill: ${theme.colors.WHITE_1};\n }\n `;\n});\n\nexport const OptionText = styled(Text)`\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n`;\n\nexport const MenuWrapper = styled(FlexView)`\n position: absolute;\n z-index: 6;\n top: calc(100% - 36px);\n right: 12px;\n transform-origin: top;\n transform: scaleY(1);\n`;\n\nexport const BlurContainer = styled(FlexView)`\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n opacity: 0.5;\n`;\n\nexport const BlurFlexView = styled(FlexView)`\n position: absolute;\n right: 42px;\n top: 24px;\n`;\n"],"names":["CardKebabMenuWrapper","styled","FlexView","theme","SubHeaderText","Text","CardMenuOptionsWrapper","$shouldopenonright","$visible","CardContainer","CardWrapper","$bgImage","IconWrapper","BannerImageWrapper","BannerImage","gutter","StyledMinus2Icon","Minus2Icon","HeaderText","$disabled","MenuWrapper","BlurContainer","BlurFlexView"],"mappings":";;;;AAcO,MAAMA,IAAuBC,EAAOC,CAAQ,EAAE,CAAC,EAAE,OAAAC,QAC/C;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,oBAQWA,EAAM,OAAO,OAAO;AAAA;AAAA,GAGvC,GAEYC,IAAgBH,EAAOI,CAAI;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,GAQ3BC,IAAyBL,EAAOC,CAAQ,EAAgC,CAAC;AAAA,EACpF,oBAAAK;AAAA,EACA,UAAAC;AACF,MACS;AAAA;AAAA;AAAA;AAAA;AAAA,aAKID,IAAqB,IAAI,MAAM;AAAA;AAAA,wBAEpBC,IAAW,IAAI,CAAC;AAAA,eACzBA,IAAW,IAAI,CAAC;AAAA;AAAA;AAAA;AAAA,GAK9B,GAEYC,IAAgBR,EAAOC,CAAQ;AAAA,sBACtB,CAAC,EAAE,OAAAC,EAAA,MAAYA,EAAM,OAAO,UAAU;AAAA;AAAA,
|
1
|
+
{"version":3,"file":"styles.js","sources":["../../../src/features/homework/styles.ts"],"sourcesContent":["import styled from 'styled-components';\n\nimport Minus2Icon from '../../assets/line-icons/icons/minus2';\nimport FlexView from '../ui/layout/flex-view';\nimport Text from '../ui/text/text';\n\ninterface ICardWrapperProps {\n $bgImage: string;\n}\ninterface ICardOptionsMenuWrapperProps {\n $visible: boolean;\n $shouldopenonright: boolean;\n}\n\nexport const CardKebabMenuWrapper = styled(FlexView)(({ theme }) => {\n return `\n cursor: pointer;\n width: 24px;\n height: 24px;\n \n \n &:hover {\n border-radius: 50%;\n background: ${theme.colors.WHITE_5}; \n }\n `;\n});\n\nexport const SubHeaderText = styled(Text)`\n display: -webkit-box;\n -webkit-line-clamp: 1;\n -webkit-box-orient: vertical;\n overflow: hidden;\n text-overflow: ellipsis;\n`;\n\nexport const CardMenuOptionsWrapper = styled(FlexView)<ICardOptionsMenuWrapperProps>(({\n $shouldopenonright,\n $visible,\n}) => {\n return `\n cursor: pointer;\n position: absolute;\n z-index: 6;\n top: calc(100% + 4px);\n right: ${$shouldopenonright ? 0 : 'auto'};\n transform-origin: top;\n transform: scaleY(${$visible ? 1 : 0});\n opacity: ${$visible ? 1 : 0};\n transition: transform 0.2s ease-in-out, opacity 0.2s ease-in-out;\n box-shadow: 0px 6px 12px 0px rgba(0, 0, 0, 0.4);\n z-index: 10;\n `;\n});\n\nexport const CardContainer = styled(FlexView)`\n border: 1px solid ${({ theme }) => theme.colors.BLACK_T_15};\n border-top-width: 2px;\n &:hover {\n border: 1px solid ${({ theme }) => theme.colors.BLACK};\n border-top-width: 2px;\n }\n`;\n\nexport const CardWrapper = styled(FlexView)<ICardWrapperProps>(({ $bgImage }) => {\n if ($bgImage) {\n return `\n background-image: url(${$bgImage});\n background-repeat: no-repeat;\n background-size: cover;\n background-position: center;\n overflow: hidden;\n `;\n }\n\n return 'overflow: hidden;';\n});\n\nexport const IconWrapper = styled(FlexView)`\n display: flex;\n align-items: center;\n justify-content: center;\n`;\n\nexport const BannerImageWrapper = styled(FlexView)`\n position: absolute;\n right: -18px;\n top: -4px;\n`;\n\nexport const BannerImage = styled.img(({ theme }) => {\n const { gutter } = theme.layout;\n\n return `\n border: 1px solid ${theme.colors.BLACK_T_15};\n width: ${gutter * 4}px;\n height: ${gutter * 4}px;\n border-radius: 50%;\n `;\n});\n\nexport const StyledMinus2Icon = styled(Minus2Icon)`\n path {\n stroke: ${({ theme }) => theme.colors.WHITE};\n }\n`;\n\nexport const HeaderText = styled(Text)`\n display: -webkit-box;\n -webkit-line-clamp: 2;\n -webkit-box-orient: vertical;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: break-spaces;\n`;\n\ninterface ICardOptionWrapperProps {\n $disabled?: boolean;\n}\ninterface ICardOptionsProps {\n $top: number;\n $left: number;\n}\n\nexport const CardOptions = styled(FlexView)<ICardOptionsProps>``;\n\nexport const CardOptionWrapper = styled(FlexView)<ICardOptionWrapperProps>(({\n theme,\n $disabled,\n}) => {\n return `\n cursor: ${$disabled ? 'not-allowed' : 'pointer'};\n \n &:hover {\n background: ${$disabled ? 'transparent' : theme.colors.BLACK};\n };\n \n path {\n fill: ${theme.colors.WHITE_1};\n }\n `;\n});\n\nexport const OptionText = styled(Text)`\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n`;\n\nexport const MenuWrapper = styled(FlexView)`\n position: absolute;\n z-index: 6;\n top: calc(100% - 36px);\n right: 12px;\n transform-origin: top;\n transform: scaleY(1);\n`;\n\nexport const BlurContainer = styled(FlexView)`\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n opacity: 0.5;\n`;\n\nexport const BlurFlexView = styled(FlexView)`\n position: absolute;\n right: 42px;\n top: 24px;\n`;\n"],"names":["CardKebabMenuWrapper","styled","FlexView","theme","SubHeaderText","Text","CardMenuOptionsWrapper","$shouldopenonright","$visible","CardContainer","CardWrapper","$bgImage","IconWrapper","BannerImageWrapper","BannerImage","gutter","StyledMinus2Icon","Minus2Icon","HeaderText","$disabled","MenuWrapper","BlurContainer","BlurFlexView"],"mappings":";;;;AAcO,MAAMA,IAAuBC,EAAOC,CAAQ,EAAE,CAAC,EAAE,OAAAC,QAC/C;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,oBAQWA,EAAM,OAAO,OAAO;AAAA;AAAA,GAGvC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AAA,EACA,WAAAgB;AACF,MACS;AAAA,cACKA,IAAY,gBAAgB,SAAS;AAAA;AAAA;AAAA,oBAG/BA,IAAY,gBAAgBhB,EAAM,OAAO,KAAK;AAAA;AAAA;AAAA;AAAA,cAIpDA,EAAM,OAAO,OAAO;AAAA;AAAA,GAGjC;AAEyBF,EAAOI,CAAI;AAAA;AAAA;AAAA;AAAA;AAMxB,MAAAe,IAAcnB,EAAOC,CAAQ;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,GAS7BmB,IAAgBpB,EAAOC,CAAQ;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,GAS/BoB,IAAerB,EAAOC,CAAQ;AAAA;AAAA;AAAA;AAAA;"}
|
@@ -1,16 +1,16 @@
|
|
1
1
|
import u from "styled-components";
|
2
2
|
import x from "../../text/text.js";
|
3
|
-
const
|
4
|
-
({ theme: c, $width:
|
5
|
-
const { button: b, colors: r, layout: p } = c, { backgroundColorName:
|
3
|
+
const d = u.button(
|
4
|
+
({ theme: c, $width: e, $widthX: i, $alignSelf: o, $justifyContent: t, $renderAs: a, $size: n, $shape: $ }) => {
|
5
|
+
const { button: b, colors: r, layout: p } = c, { backgroundColorName: s, borderColorName: l } = b.variants[a], { height: v, paddingHorizontal: g, borderWidth: h } = b.sizes[n];
|
6
6
|
return `
|
7
7
|
position: relative;
|
8
8
|
display: flex;
|
9
|
-
justify-content: ${
|
9
|
+
justify-content: ${t};
|
10
10
|
align-items: center;
|
11
11
|
${o ? `align-self: ${o};` : ""}
|
12
12
|
|
13
|
-
width: ${
|
13
|
+
width: ${e ? `${e}px` : "auto"};
|
14
14
|
${i ? `width: ${i * p.gutter}px;` : ""}
|
15
15
|
height: ${v}px;
|
16
16
|
padding: 0 ${g}px;
|
@@ -19,56 +19,56 @@ const s = u.button(
|
|
19
19
|
border-radius: ${$ === "curved" ? v / 2 : 0}px;
|
20
20
|
outline: none;
|
21
21
|
|
22
|
-
background-color: ${r[
|
22
|
+
background-color: ${r[s.inactive]};
|
23
23
|
border-color: ${r[l.inactive]};
|
24
24
|
|
25
25
|
transition: background-color 0.2s ease-in-out, border-color 0.2s ease-in-out;
|
26
26
|
cursor: pointer;
|
27
27
|
|
28
28
|
&:hover {
|
29
|
-
background-color: ${r[
|
29
|
+
background-color: ${r[s.active]};
|
30
30
|
border-color: ${r[l.active]};
|
31
31
|
}
|
32
32
|
|
33
33
|
&:active {
|
34
|
-
background: ${r[
|
34
|
+
background: ${r[s.inactive]};
|
35
35
|
border-color: ${r[l.inactive]};
|
36
36
|
}
|
37
37
|
|
38
38
|
&[data-busy="true"] {
|
39
39
|
cursor: wait;
|
40
|
-
background-color: ${r[
|
40
|
+
background-color: ${r[s.active]};
|
41
41
|
border-color: ${r[l.active]};
|
42
42
|
}
|
43
43
|
|
44
44
|
&:disabled {
|
45
|
-
background-color: ${r[
|
45
|
+
background-color: ${r[s.disabled]};
|
46
46
|
border-color: ${r[l.disabled]};
|
47
47
|
cursor: not-allowed;
|
48
48
|
}
|
49
49
|
`;
|
50
50
|
}
|
51
|
-
),
|
52
|
-
const { button: i, colors: o } = c, { colorName:
|
51
|
+
), k = u(x)(({ theme: c, $buttonRenderAs: e }) => {
|
52
|
+
const { button: i, colors: o } = c, { colorName: t } = i.variants[e];
|
53
53
|
return `
|
54
|
-
color: ${o[
|
54
|
+
color: ${o[t.inactive]};
|
55
55
|
transition: color 0.2s ease-in-out;
|
56
56
|
|
57
|
-
${
|
58
|
-
color: ${o[
|
57
|
+
${d}:hover & {
|
58
|
+
color: ${o[t.active]};
|
59
59
|
}
|
60
60
|
|
61
|
-
${
|
62
|
-
color: ${o[
|
61
|
+
${d}:active & {
|
62
|
+
color: ${o[t.inactive]};
|
63
63
|
}
|
64
64
|
|
65
|
-
${
|
66
|
-
color: ${o[
|
65
|
+
${d}:disabled & {
|
66
|
+
color: ${o[t.disabled]};
|
67
67
|
opacity: 0.5;
|
68
68
|
}
|
69
69
|
`;
|
70
|
-
}),
|
71
|
-
const { button:
|
70
|
+
}), f = u.div(({ theme: c, $buttonRenderAs: e, $size: i, $iconPosition: o }) => {
|
71
|
+
const { button: t, colors: a } = c, { colorName: n } = t.variants[e], { iconSize: $, iconPadding: b } = t.sizes[i];
|
72
72
|
return `
|
73
73
|
${o === "left" ? "padding-right" : "padding-left"}: ${b}px;
|
74
74
|
order: ${o === "left" ? -1 : 1};
|
@@ -80,31 +80,31 @@ const s = u.button(
|
|
80
80
|
color: ${a[n.inactive]};
|
81
81
|
transition: color 0.2s ease-in-out;
|
82
82
|
|
83
|
-
${
|
83
|
+
${d}:hover & {
|
84
84
|
color: ${a[n.active]};
|
85
85
|
}
|
86
86
|
|
87
|
-
${
|
87
|
+
${d}:active & {
|
88
88
|
color: ${a[n.inactive]};
|
89
89
|
}
|
90
90
|
|
91
|
-
${
|
91
|
+
${d}:disabled & {
|
92
92
|
color: ${a[n.disabled]};
|
93
93
|
opacity: 0.5;
|
94
94
|
}
|
95
95
|
}
|
96
96
|
`;
|
97
|
-
}), z = u.img(({ theme: c, $size:
|
98
|
-
const { button: i } = c, { loaderSize: o } = i.sizes[
|
97
|
+
}), z = u.img(({ theme: c, $size: e }) => {
|
98
|
+
const { button: i } = c, { loaderSize: o } = i.sizes[e];
|
99
99
|
return `
|
100
100
|
width: ${o}px;
|
101
101
|
height: ${o}px;
|
102
102
|
`;
|
103
103
|
});
|
104
104
|
export {
|
105
|
-
|
106
|
-
|
107
|
-
|
105
|
+
d as Button,
|
106
|
+
f as Icon,
|
107
|
+
k as Label,
|
108
108
|
z as Loader
|
109
109
|
};
|
110
110
|
//# sourceMappingURL=button-styled.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"button-styled.js","sources":["../../../../../src/features/ui/buttons/button/button-styled.tsx"],"sourcesContent":["import type { IButtonProps } from './button-types';\n\nimport styled from 'styled-components';\n\nimport Text from '../../text/text';\n\ninterface IStyledButtonProps {\n $width: IButtonProps['width'];\n $widthX: IButtonProps['widthX'];\n $alignSelf: IButtonProps['alignSelf'];\n $renderAs: IButtonProps['renderAs'];\n $size: Required<IButtonProps>['size'];\n $shape: Required<IButtonProps>['shape'];\n $justifyContent: IButtonProps['justifyContent'];\n}\n\nconst Button = styled.button<IStyledButtonProps>(\n ({ theme, $width, $widthX, $alignSelf, $justifyContent, $renderAs, $size, $shape }) => {\n const { button, colors, layout } = theme;\n const { backgroundColorName, borderColorName } = button.variants[$renderAs];\n const { height, paddingHorizontal, borderWidth } = button.sizes[$size];\n\n return `\n position: relative;\n display: flex;\n justify-content: ${$justifyContent};\n align-items: center;\n ${$alignSelf ? `align-self: ${$alignSelf};` : ''}\n \n width: ${$width ? `${$width}` : 'auto'}
|
1
|
+
{"version":3,"file":"button-styled.js","sources":["../../../../../src/features/ui/buttons/button/button-styled.tsx"],"sourcesContent":["import type { IButtonProps } from './button-types';\n\nimport styled from 'styled-components';\n\nimport Text from '../../text/text';\n\ninterface IStyledButtonProps {\n $width: IButtonProps['width'];\n $widthX: IButtonProps['widthX'];\n $alignSelf: IButtonProps['alignSelf'];\n $renderAs: IButtonProps['renderAs'];\n $size: Required<IButtonProps>['size'];\n $shape: Required<IButtonProps>['shape'];\n $justifyContent: IButtonProps['justifyContent'];\n}\n\nconst Button = styled.button<IStyledButtonProps>(\n ({ theme, $width, $widthX, $alignSelf, $justifyContent, $renderAs, $size, $shape }) => {\n const { button, colors, layout } = theme;\n const { backgroundColorName, borderColorName } = button.variants[$renderAs];\n const { height, paddingHorizontal, borderWidth } = button.sizes[$size];\n\n return `\n position: relative;\n display: flex;\n justify-content: ${$justifyContent};\n align-items: center;\n ${$alignSelf ? `align-self: ${$alignSelf};` : ''}\n \n width: ${$width ? `${$width}px` : 'auto'};\n ${$widthX ? `width: ${$widthX * layout.gutter}px;` : ''}\n height: ${height}px;\n padding: 0 ${paddingHorizontal}px;\n border-width: ${borderWidth}px;\n border-style: solid;\n border-radius: ${$shape === 'curved' ? height / 2 : 0}px;\n outline: none;\n\n background-color: ${colors[backgroundColorName.inactive]};\n border-color: ${colors[borderColorName.inactive]};\n \n transition: background-color 0.2s ease-in-out, border-color 0.2s ease-in-out;\n cursor: pointer;\n\n &:hover {\n background-color: ${colors[backgroundColorName.active]};\n border-color: ${colors[borderColorName.active]};\n }\n\n &:active {\n background: ${colors[backgroundColorName.inactive]};\n border-color: ${colors[borderColorName.inactive]};\n }\n\n &[data-busy=\"true\"] {\n cursor: wait;\n background-color: ${colors[backgroundColorName.active]};\n border-color: ${colors[borderColorName.active]};\n }\n\n &:disabled {\n background-color: ${colors[backgroundColorName.disabled]};\n border-color: ${colors[borderColorName.disabled]};\n cursor: not-allowed;\n }\n `;\n },\n);\n\ninterface IStyledTextProps {\n $buttonRenderAs: IButtonProps['renderAs'];\n}\n\nconst Label = styled(Text)<IStyledTextProps>(({ theme, $buttonRenderAs }) => {\n const { button, colors } = theme;\n const { colorName } = button.variants[$buttonRenderAs];\n\n return `\n color: ${colors[colorName.inactive]};\n transition: color 0.2s ease-in-out;\n\n ${Button}:hover & {\n color: ${colors[colorName.active]};\n }\n \n ${Button}:active & {\n color: ${colors[colorName.inactive]};\n }\n\n ${Button}:disabled & {\n color: ${colors[colorName.disabled]};\n opacity: 0.5;\n }\n `;\n});\n\ninterface IStyledIconProps {\n $size: NonNullable<IButtonProps['size']>;\n $iconPosition: NonNullable<IButtonProps['iconPosition']>;\n $buttonRenderAs: IButtonProps['renderAs'];\n}\n\nconst Icon = styled.div<IStyledIconProps>(({ theme, $buttonRenderAs, $size, $iconPosition }) => {\n const { button, colors } = theme;\n const { colorName } = button.variants[$buttonRenderAs];\n const { iconSize, iconPadding } = button.sizes[$size];\n\n return `\n ${$iconPosition === 'left' ? 'padding-right' : 'padding-left'}: ${iconPadding}px;\n order: ${$iconPosition === 'left' ? -1 : 1};\n \n & svg {\n display: block;\n width: ${iconSize}px;\n height: ${iconSize}px;\n color: ${colors[colorName.inactive]};\n transition: color 0.2s ease-in-out;\n\n ${Button}:hover & {\n color: ${colors[colorName.active]};\n }\n\n ${Button}:active & {\n color: ${colors[colorName.inactive]};\n }\n\n ${Button}:disabled & {\n color: ${colors[colorName.disabled]};\n opacity: 0.5;\n }\n }\n `;\n});\n\ninterface IStyledLoaderProps {\n $size: Required<IButtonProps>['size'];\n}\n\nconst Loader = styled.img<IStyledLoaderProps>(({ theme, $size }) => {\n const { button } = theme;\n const { loaderSize } = button.sizes[$size];\n\n return `\n width: ${loaderSize}px;\n height: ${loaderSize}px;\n `;\n});\n\nexport { Button, Label, Icon, Loader };\n"],"names":["Button","styled","theme","$width","$widthX","$alignSelf","$justifyContent","$renderAs","$size","$shape","button","colors","layout","backgroundColorName","borderColorName","height","paddingHorizontal","borderWidth","Label","Text","$buttonRenderAs","colorName","Icon","$iconPosition","iconSize","iconPadding","Loader","loaderSize"],"mappings":";;AAgBA,MAAMA,IAASC,EAAO;AAAA,EACpB,CAAC,EAAE,OAAAC,GAAO,QAAAC,GAAQ,SAAAC,GAAS,YAAAC,GAAY,iBAAAC,GAAiB,WAAAC,GAAW,OAAAC,GAAO,QAAAC,QAAa;AACrF,UAAM,EAAE,QAAAC,GAAQ,QAAAC,GAAQ,QAAAC,EAAA,IAAWV,GAC7B,EAAE,qBAAAW,GAAqB,iBAAAC,EAAA,IAAoBJ,EAAO,SAASH,CAAS,GACpE,EAAE,QAAAQ,GAAQ,mBAAAC,GAAmB,aAAAC,EAAgB,IAAAP,EAAO,MAAMF,CAAK;AAE9D,WAAA;AAAA;AAAA;AAAA,yBAGcF,CAAe;AAAA;AAAA,QAEhCD,IAAa,eAAeA,CAAU,MAAM,EAAE;AAAA;AAAA,eAEvCF,IAAS,GAAGA,CAAM,OAAO,MAAM;AAAA,QACtCC,IAAU,UAAUA,IAAUQ,EAAO,MAAM,QAAQ,EAAE;AAAA,gBAC7CG,CAAM;AAAA,mBACHC,CAAiB;AAAA,sBACdC,CAAW;AAAA;AAAA,uBAEVR,MAAW,WAAWM,IAAS,IAAI,CAAC;AAAA;AAAA;AAAA,0BAGjCJ,EAAOE,EAA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,GAAU,aAAAC,EAAA,IAAgBf,EAAO,MAAMF,CAAK;AAE7C,SAAA;AAAA,QACDe,MAAkB,SAAS,kBAAkB,cAAc,KAAKE,CAAW;AAAA,eACpEF,MAAkB,SAAS,KAAK,CAAC;AAAA;AAAA;AAAA;AAAA,iBAI/BC,CAAQ;AAAA,kBACPA,CAAQ;AAAA,iBACTb,EAAOU,EAAU,QAAQ,CAAC;AAAA;AAAA;AAAA,UAGjCrB,CAAM;AAAA,mBACGW,EAAOU,EAAU,MAAM,CAAC;AAAA;AAAA;AAAA,UAGjCrB,CAAM;AAAA,mBACGW,EAAOU,EAAU,QAAQ,CAAC;AAAA;AAAA;AAAA,UAGnCrB,CAAM;AAAA,mBACGW,EAAOU,EAAU,QAAQ,CAAC;AAAA;AAAA;AAAA;AAAA;AAK7C,CAAC,GAMKK,IAASzB,EAAO,IAAwB,CAAC,EAAE,OAAAC,GAAO,OAAAM,QAAY;AAC5D,QAAA,EAAE,QAAAE,EAAW,IAAAR,GACb,EAAE,YAAAyB,EAAe,IAAAjB,EAAO,MAAMF,CAAK;AAElC,SAAA;AAAA,aACImB,CAAU;AAAA,cACTA,CAAU;AAAA;AAExB,CAAC;"}
|
package/dist/index.d.ts
CHANGED
@@ -753,7 +753,7 @@ declare interface IButtonProps extends ButtonHTMLAttributes<HTMLButtonElement>,
|
|
753
753
|
shape?: 'curved' | 'square';
|
754
754
|
disabled?: boolean;
|
755
755
|
busy?: boolean;
|
756
|
-
width?: number
|
756
|
+
width?: number;
|
757
757
|
widthX?: number;
|
758
758
|
Icon?: React.FC<React.SVGProps<SVGSVGElement>>;
|
759
759
|
iconPosition?: 'left' | 'right';
|
@@ -2463,7 +2463,7 @@ declare interface IOTPResendProps {
|
|
2463
2463
|
showVoiceOTP?: boolean;
|
2464
2464
|
disabled?: boolean;
|
2465
2465
|
renderAs?: 'submit' | 'text';
|
2466
|
-
width?: number
|
2466
|
+
width?: number;
|
2467
2467
|
}
|
2468
2468
|
|
2469
2469
|
declare interface IOutcomeConfig {
|
@@ -3485,16 +3485,6 @@ declare interface IUseContextMenuClickHandler {
|
|
3485
3485
|
};
|
3486
3486
|
}
|
3487
3487
|
|
3488
|
-
declare interface IUseDeviceTypeReturn {
|
3489
|
-
width: number;
|
3490
|
-
isMobile: boolean;
|
3491
|
-
isTablet: boolean;
|
3492
|
-
isDesktop: boolean;
|
3493
|
-
isLarge: boolean;
|
3494
|
-
isXL: boolean;
|
3495
|
-
deviceType: 'mobile' | 'tablet' | 'desktop' | 'large' | 'xl';
|
3496
|
-
}
|
3497
|
-
|
3498
3488
|
declare interface IUseForceReload {
|
3499
3489
|
threshold: number;
|
3500
3490
|
trackEvent: (event_name: string, payload: Record<string, unknown>, overrides: Record<string, unknown>) => void;
|
@@ -4059,11 +4049,6 @@ export declare const Maintenance: React_2.FC<IMaintenanceProps>;
|
|
4059
4049
|
|
4060
4050
|
declare const MASTERY: "mastery";
|
4061
4051
|
|
4062
|
-
export declare const media: {
|
4063
|
-
up920: string;
|
4064
|
-
down919: string;
|
4065
|
-
};
|
4066
|
-
|
4067
4052
|
export declare const MilestoneActionWidget: React_2.FC<IMilestoneActionWidgetProps>;
|
4068
4053
|
|
4069
4054
|
export declare const MilestoneCreate: React.FC<IMileStoneCreateContainerProps>;
|
@@ -5663,8 +5648,6 @@ export declare const useClassTimeAlerts: ({ alertLevel, classStartedOn, classDur
|
|
5663
5648
|
|
5664
5649
|
export declare const useContextMenuClickHandler: IUseContextMenuClickHandler;
|
5665
5650
|
|
5666
|
-
export declare const useDeviceType: () => IUseDeviceTypeReturn;
|
5667
|
-
|
5668
5651
|
export declare const useForceReload: ({ threshold, trackEvent, shouldNotReload }: IUseForceReload) => void;
|
5669
5652
|
|
5670
5653
|
export declare const useGetAllMilestonesdata: (initialQuery?: TQuery | undefined) => {
|
package/dist/index.js
CHANGED
@@ -14,7 +14,7 @@ import { default as R } from "./assets/line-icons/icons/bookmark.js";
|
|
14
14
|
import { default as N } from "./assets/line-icons/icons/bulb.js";
|
15
15
|
import { default as M } from "./assets/line-icons/icons/bulb2.js";
|
16
16
|
import { default as D } from "./assets/line-icons/icons/calendar.js";
|
17
|
-
import { default as
|
17
|
+
import { default as g } from "./assets/line-icons/icons/check.js";
|
18
18
|
import { default as U } from "./assets/line-icons/icons/check2.js";
|
19
19
|
import { default as b } from "./assets/line-icons/icons/clipboard.js";
|
20
20
|
import { default as W } from "./assets/line-icons/icons/clock.js";
|
@@ -41,7 +41,7 @@ import { default as Re } from "./assets/line-icons/icons/home.js";
|
|
41
41
|
import { default as Ne } from "./assets/line-icons/icons/image.js";
|
42
42
|
import { default as Me } from "./assets/line-icons/icons/info.js";
|
43
43
|
import { default as De } from "./assets/line-icons/icons/info2.js";
|
44
|
-
import { default as
|
44
|
+
import { default as ge } from "./assets/line-icons/icons/left.js";
|
45
45
|
import { default as Ue } from "./assets/line-icons/icons/lock.js";
|
46
46
|
import { default as be } from "./assets/line-icons/icons/lock2.js";
|
47
47
|
import { default as We } from "./assets/line-icons/icons/lock3.js";
|
@@ -67,8 +67,8 @@ import { default as Lo } from "./assets/line-icons/icons/ruler.js";
|
|
67
67
|
import { default as ko } from "./assets/line-icons/icons/search.js";
|
68
68
|
import { default as Oo } from "./assets/line-icons/icons/sheet.js";
|
69
69
|
import { default as Ho } from "./assets/line-icons/icons/star.js";
|
70
|
-
import { default as
|
71
|
-
import { default as
|
70
|
+
import { default as Go } from "./assets/line-icons/icons/skip-colored.js";
|
71
|
+
import { default as yo } from "./assets/line-icons/icons/skip.js";
|
72
72
|
import { default as Bo } from "./assets/line-icons/icons/skip2.js";
|
73
73
|
import { default as vo } from "./assets/line-icons/icons/star2.js";
|
74
74
|
import { default as wo } from "./assets/line-icons/icons/status.js";
|
@@ -94,7 +94,7 @@ import { default as Rr } from "./assets/line-icons/icons/cuemath-logo.js";
|
|
94
94
|
import { default as Nr } from "./assets/line-icons/icons/next2.js";
|
95
95
|
import { AutoPlayPermissionProvider as Mr } from "./features/hooks/use-auto-play-permission/use-auto-play-permission-context-provider.js";
|
96
96
|
import { default as Dr } from "./features/hooks/use-zoom-disable.js";
|
97
|
-
import { default as
|
97
|
+
import { default as gr } from "./features/hooks/use-force-reload.js";
|
98
98
|
import { default as Ur } from "./features/ui/accordion-section/accordion-section.js";
|
99
99
|
import { default as br } from "./features/ui/arrow-tooltip/arrow-tooltip.js";
|
100
100
|
import { default as Wr } from "./features/ui/context-menu/context-menu.js";
|
@@ -121,7 +121,7 @@ import { default as Rt } from "./features/ui/layout/flex-view.js";
|
|
121
121
|
import { default as Nt } from "./features/ui/loader/app-loader/app-loader.js";
|
122
122
|
import { CircularLoader as Mt } from "./features/ui/loader/circular-loader/circular-loader.js";
|
123
123
|
import { default as Dt } from "./features/ui/radio-cards/radio-cards.js";
|
124
|
-
import { default as
|
124
|
+
import { default as gt } from "./features/ui/section-list/section-list.js";
|
125
125
|
import { default as Ut } from "./features/ui/text/text.js";
|
126
126
|
import { default as bt } from "./features/ui/tag/tag.js";
|
127
127
|
import { default as Wt } from "./features/ui/callout/callout.js";
|
@@ -147,8 +147,8 @@ import { default as La } from "./features/auth/comps/resend-otp/resend-otp.js";
|
|
147
147
|
import { default as ka } from "./features/auth/signup/user-type-selector/user-type-selector.js";
|
148
148
|
import { default as Oa } from "./features/auth/signup/claim-user-account/claim-user-account.js";
|
149
149
|
import { default as Ha } from "./features/auth/signup/custom-input-field/grade-input/grade-input.js";
|
150
|
-
import { default as
|
151
|
-
import { default as
|
150
|
+
import { default as Ga } from "./features/auth/signup/custom-input-field/date-picker-input/date-picker-input.js";
|
151
|
+
import { default as ya } from "./features/auth/signup/custom-input-field/custom-input-field.js";
|
152
152
|
import { default as Ba } from "./features/auth/signup/circular-step-wrapper/circular-step-wrapper.js";
|
153
153
|
import { default as va } from "./features/auth/signup/signup-methods/signup-methods.js";
|
154
154
|
import { default as wa } from "./features/auth/account-selector/account-selector.js";
|
@@ -174,7 +174,7 @@ import { default as Rf } from "./features/chapters/lpar-chapter/block-section/sa
|
|
174
174
|
import { checkIfPPTNodeType as Nf } from "./features/chapters/lpar-chapter/utils/index.js";
|
175
175
|
import { default as Mf } from "./features/chapters-v2/chapter-details/chapter-details.js";
|
176
176
|
import { invalidateGetChapterDetails as Df } from "./features/chapters-v2/api/chapter.js";
|
177
|
-
import { GAME_LAUNCHER_ASSET_PADDING as
|
177
|
+
import { GAME_LAUNCHER_ASSET_PADDING as gf } from "./features/circle-games/game-launcher/comps/segmented-game-card/constants.js";
|
178
178
|
import { GAME_LAUNCHER_SIZE as Uf } from "./features/circle-games/game-launcher/comps/card-container/constants.js";
|
179
179
|
import { useCircleSounds as bf } from "./features/circle-games/hooks/use-circle-sounds/use-circle-sounds.js";
|
180
180
|
import { CircleSoundKey as Wf } from "./features/circle-games/hooks/use-circle-sounds/use-circle-sounds-enums.js";
|
@@ -200,8 +200,8 @@ import { default as Ls } from "./features/cue-canvas/cue-canvas-provider.js";
|
|
200
200
|
import { default as ks } from "./features/cue-canvas/toolbar/toolbar.js";
|
201
201
|
import { default as Os } from "./features/cue-canvas/cue-canvas.js";
|
202
202
|
import { default as Hs } from "./features/cue-canvas/hooks/use-canvas-sync-broker.js";
|
203
|
-
import { default as
|
204
|
-
import { default as
|
203
|
+
import { default as Gs } from "./features/communication/hooks/use-inclass-message-broker/use-inclass-message-broker.js";
|
204
|
+
import { default as ys } from "./features/communication/hooks/use-trial-session-message-broker/use-trial-session-message-broker.js";
|
205
205
|
import { EVENTS as Bs } from "./features/communication/pub-sub/constants.js";
|
206
206
|
import { useInClassActionDispatcher as vs, useInClassActionListener as Ws } from "./features/communication/pub-sub/hooks.js";
|
207
207
|
import { default as Vs } from "./features/trial-session/trial-session.js";
|
@@ -227,7 +227,7 @@ import { default as Rl } from "./features/milestone/create/comps/confirmation-mo
|
|
227
227
|
import { default as Nl } from "./features/milestone/create/comps/confirmation-modals/chapter-clearance-confirmation.js";
|
228
228
|
import { default as Ml } from "./features/milestone/create/milestone-create-container.js";
|
229
229
|
import { default as Dl } from "./features/milestone/edit/goal-drafts/goal-draft-edit-container.js";
|
230
|
-
import { default as
|
230
|
+
import { default as gl } from "./features/milestone/outcome/milestone-outcome-container.js";
|
231
231
|
import { default as Ul } from "./features/milestone/outcome/comps/achievement/reason-submit-modal.js";
|
232
232
|
import { default as bl } from "./features/milestone/outcome/comps/achievement/share-instructions-modal.js";
|
233
233
|
import { default as Wl } from "./features/milestone/edit/comps/edit-milestone-modal/index.js";
|
@@ -251,23 +251,21 @@ import { default as hp } from "./features/recent-chapters/recent-chapters.js";
|
|
251
251
|
import { SENTRY_DENIED_URLS as Rp, SENTRY_IGNORED_ERRORS as kp } from "./features/sentry/constants/ignored.js";
|
252
252
|
import { default as Op } from "./features/sheet-tools/desmos-calculator/desmos-calculator.js";
|
253
253
|
import { default as Hp } from "./features/sheet-tools/tool-header/tool-header.js";
|
254
|
-
import { default as
|
255
|
-
import { default as
|
254
|
+
import { default as Gp } from "./features/sheets/sheets-list/sheets-list.js";
|
255
|
+
import { default as yp } from "./features/sheets/reference-sheet/reference-sheet.js";
|
256
256
|
import { WORKSHEET_V3_NODE_TYPES as Bp } from "./features/sheets/utils/is-v3-worksheet.js";
|
257
257
|
import { COMPLETED_SHEET_STATE as vp, NODE_LABELS as Wp, NODE_SUB_GROUP as wp, NODE_TYPE as Vp, PYTHON_NODE_TYPES as Fp, REWARDS_LIST as Yp, SHEET_ACTIONS as Jp, SHEET_ATTEMPT_LOCATION as Qp, SHEET_ATTEMPT_LOCATION_MAP as Kp, SHEET_ATTEMPT_STATE as jp, SHEET_DATA_TYPE as Zp, SHEET_STATE as qp } from "./features/sheets/constants/sheet.js";
|
258
258
|
import { default as Xp } from "./features/student-details/student-details.js";
|
259
259
|
import { default as em } from "./features/utils/load-script.js";
|
260
|
-
import {
|
261
|
-
import {
|
262
|
-
import {
|
263
|
-
import { default as dm } from "./features/worksheet/worksheet/worksheet-
|
264
|
-
import { default as nm } from "./features/worksheet/worksheet
|
265
|
-
import { default as Im } from "./features/worksheet/worksheet/worksheet-permissions/
|
266
|
-
import { default as Tm } from "./features/worksheet/
|
267
|
-
import { default as Em } from "./features/worksheet/learnosity-preloader/learnosity-
|
268
|
-
import { default as Am } from "./features/worksheet/
|
269
|
-
import { default as Pm } from "./features/worksheet/worksheet-preview/hooks/use-worksheet-layout.js";
|
270
|
-
import { default as Lm } from "./features/hooks/use-device-type.js";
|
260
|
+
import { ACTION_BAR_HEIGHT as rm, QUESTIONS_GAP as tm, QUESTION_WIDTH as am, TOP_NAVIGATION_HEIGHT as fm } from "./features/worksheet/worksheet/constants.js";
|
261
|
+
import { isOkayTypeQuestion as lm } from "./features/worksheet/worksheet/worksheet-helpers.js";
|
262
|
+
import { default as mm } from "./features/worksheet/worksheet/worksheet-container.js";
|
263
|
+
import { default as dm } from "./features/worksheet/worksheet-preview/worksheet-preview.js";
|
264
|
+
import { default as nm } from "./features/worksheet/worksheet/worksheet-permissions/sheet-locked.js";
|
265
|
+
import { default as Im } from "./features/worksheet/worksheet/worksheet-permissions/error.js";
|
266
|
+
import { default as Tm } from "./features/worksheet/learnosity-preloader/learnosity-preloader.js";
|
267
|
+
import { default as Em } from "./features/worksheet/learnosity-preloader/use-is-learnosity-loaded.js";
|
268
|
+
import { default as Am } from "./features/worksheet/worksheet-preview/hooks/use-worksheet-layout.js";
|
271
269
|
export {
|
272
270
|
rp as ACHIEVEMENT_ACTIONS,
|
273
271
|
tf as AUTH_TABS,
|
@@ -309,7 +307,7 @@ export {
|
|
309
307
|
Cf as ChaptersList,
|
310
308
|
hr as ChatIcon,
|
311
309
|
U as Check2Icon,
|
312
|
-
|
310
|
+
g as CheckIcon,
|
313
311
|
at as CheckboxInput,
|
314
312
|
st as CheckboxInputList,
|
315
313
|
Sr as ChevronDownIcon,
|
@@ -335,9 +333,9 @@ export {
|
|
335
333
|
Ls as CueCanvasProvider,
|
336
334
|
q as CueRocket,
|
337
335
|
Rr as CuemathLogo,
|
338
|
-
|
336
|
+
ya as CustomInputField,
|
339
337
|
X as DashArrowIcon,
|
340
|
-
|
338
|
+
Ga as DatePickerInput,
|
341
339
|
Op as DesmosCalculator,
|
342
340
|
Sp as DigitalMeter,
|
343
341
|
ee as DownIcon,
|
@@ -360,7 +358,7 @@ export {
|
|
360
358
|
ie as Eye2Icon,
|
361
359
|
ce as EyeIcon,
|
362
360
|
Rt as FlexView,
|
363
|
-
|
361
|
+
gf as GAME_LAUNCHER_ASSET_PADDING,
|
364
362
|
Uf as GAME_LAUNCHER_SIZE,
|
365
363
|
Cr as GameIcon,
|
366
364
|
xs as GameLauncher,
|
@@ -393,8 +391,8 @@ export {
|
|
393
391
|
_f as LPARChapter,
|
394
392
|
hf as LPARMilestoneChapter,
|
395
393
|
is as Leaderboard,
|
396
|
-
|
397
|
-
|
394
|
+
Tm as LearnosityPreloader,
|
395
|
+
ge as LeftIcon,
|
398
396
|
be as Lock2Icon,
|
399
397
|
We as Lock3Icon,
|
400
398
|
Ue as LockIcon,
|
@@ -403,7 +401,7 @@ export {
|
|
403
401
|
Ml as MilestoneCreate,
|
404
402
|
Yl as MilestoneEdit,
|
405
403
|
Ql as MilestoneList,
|
406
|
-
|
404
|
+
gl as MilestoneOutcome,
|
407
405
|
ql as MilestoneStart,
|
408
406
|
Ye as Minus2Icon,
|
409
407
|
Ve as MinusIcon,
|
@@ -434,7 +432,7 @@ export {
|
|
434
432
|
ro as PointerIcon,
|
435
433
|
_p as PostGameStats,
|
436
434
|
no as PracticeIcon,
|
437
|
-
|
435
|
+
dm as PreviewWorksheet,
|
438
436
|
Io as ProgressIcon,
|
439
437
|
Xf as ProjectOutcome,
|
440
438
|
rs as ProjectType,
|
@@ -445,7 +443,7 @@ export {
|
|
445
443
|
pt as RadioInput,
|
446
444
|
hp as RecentChapters,
|
447
445
|
Ao as RedoIcon,
|
448
|
-
|
446
|
+
yp as ReferenceSheet,
|
449
447
|
cp as RemotePeerPointer,
|
450
448
|
La as ResendOTP,
|
451
449
|
$a as ResetPasswordForm,
|
@@ -464,20 +462,20 @@ export {
|
|
464
462
|
mr as ScribbleIcon,
|
465
463
|
ko as SearchIcon,
|
466
464
|
xt as SearchableSelectInput,
|
467
|
-
|
465
|
+
gt as SectionList,
|
468
466
|
ut as SelectInput,
|
469
467
|
ht as SelectionCards,
|
470
468
|
fa as Separator,
|
471
|
-
|
469
|
+
Im as SheetError,
|
472
470
|
Oo as SheetIcon,
|
473
|
-
|
474
|
-
|
471
|
+
Gp as SheetList,
|
472
|
+
nm as SheetLocked,
|
475
473
|
Ps as SignUp,
|
476
474
|
va as SignupMethods,
|
477
475
|
ur as SketchIcon,
|
478
476
|
Bo as Skip2Icon,
|
479
|
-
|
480
|
-
|
477
|
+
Go as SkipColoredIcon,
|
478
|
+
yo as SkipIcon,
|
481
479
|
Ja as SocialAccountNotFound,
|
482
480
|
Fa as SocialLoginMethods,
|
483
481
|
As as SplashScreen,
|
@@ -517,14 +515,14 @@ export {
|
|
517
515
|
Ka as UsernamePasswordForm,
|
518
516
|
la as Video,
|
519
517
|
df as WHITELIST_EVENTS,
|
520
|
-
|
521
|
-
|
522
|
-
|
523
|
-
|
518
|
+
rm as WORKSHEET_ACTION_BAR_HEIGHT,
|
519
|
+
tm as WORKSHEET_QUESTIONS_GAP,
|
520
|
+
am as WORKSHEET_QUESTION_WIDTH,
|
521
|
+
fm as WORKSHEET_TOP_NAVIGATION_HEIGHT,
|
524
522
|
Bp as WORKSHEET_V3_NODE_TYPES,
|
525
523
|
qf as WebView,
|
526
524
|
es as WebViewEvent,
|
527
|
-
|
525
|
+
mm as Worksheet,
|
528
526
|
Nf as checkIfPPTNodeType,
|
529
527
|
Zt as getTheme,
|
530
528
|
Df as invalidateGetChapterDetails,
|
@@ -532,17 +530,15 @@ export {
|
|
532
530
|
dp as invalidateMilestoneResources,
|
533
531
|
fp as invalidateMilestonesData,
|
534
532
|
pp as invalidateTestHelpData,
|
535
|
-
|
533
|
+
lm as isOkayTypeQuestion,
|
536
534
|
em as loadScript,
|
537
|
-
rm as media,
|
538
535
|
rl as useAutoPlayPermission,
|
539
536
|
Hs as useCanvasSyncBroker,
|
540
537
|
Cl as useChapterPageJourney,
|
541
538
|
bf as useCircleSounds,
|
542
539
|
Qs as useClassTimeAlerts,
|
543
540
|
Kt as useContextMenuClickHandler,
|
544
|
-
|
545
|
-
Gr as useForceReload,
|
541
|
+
gr as useForceReload,
|
546
542
|
sp as useGetAllMilestonesdata,
|
547
543
|
cs as useGetCircleHomeDetailsDal,
|
548
544
|
ul as useGetEligibleJourneysViaRoute,
|
@@ -552,15 +548,15 @@ export {
|
|
552
548
|
Sl as useHomePageJourney,
|
553
549
|
vs as useInClassActionDispatcher,
|
554
550
|
Ws as useInClassActionListener,
|
555
|
-
|
556
|
-
|
551
|
+
Gs as useInClassMessageBroker,
|
552
|
+
Em as useIsLearnosityLoaded,
|
557
553
|
nf as useIsTabBlocked,
|
558
554
|
pl as useJourney,
|
559
555
|
ip as usePointerSync,
|
560
556
|
Jt as useTrackingContext,
|
561
|
-
|
557
|
+
ys as useTrialSessionMessageBroker,
|
562
558
|
Ft as useUIContext,
|
563
|
-
|
559
|
+
Am as useWorksheetLayout,
|
564
560
|
Dr as useZoomDisable
|
565
561
|
};
|
566
562
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/package.json
CHANGED
@@ -1,21 +0,0 @@
|
|
1
|
-
import o from "styled-components";
|
2
|
-
import n from "../../../ui/layout/flex-view.js";
|
3
|
-
import { media as t } from "../../../utils/media.js";
|
4
|
-
const d = o(n)`
|
5
|
-
min-height: 100vh;
|
6
|
-
`, m = o(n)`
|
7
|
-
overflow: hidden;
|
8
|
-
${t.down919} {
|
9
|
-
width: 100%;
|
10
|
-
}
|
11
|
-
`, p = o(n)`
|
12
|
-
${t.down919} {
|
13
|
-
display: none;
|
14
|
-
}
|
15
|
-
`;
|
16
|
-
export {
|
17
|
-
d as Container,
|
18
|
-
m as ContentWrapper,
|
19
|
-
p as RightPanel
|
20
|
-
};
|
21
|
-
//# sourceMappingURL=auth-page-layout-styled.js.map
|