@cuemath/leap 3.0.4-rj-2 → 3.0.4-rj-4

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,6 +1,7 @@
1
1
  import o from "styled-components";
2
- import { HEADER_HEIGHT as t } from "./constants.js";
3
- const n = o.div`
2
+ import { ARC_BUTTON_WRAPPER_HEIGHT as t } from "../../../ui/arc-button/constants.js";
3
+ import { HEADER_HEIGHT as e } from "./constants.js";
4
+ const s = o.div`
4
5
  display: flex;
5
6
  flex-direction: column;
6
7
  height: 100%;
@@ -8,15 +9,15 @@ const n = o.div`
8
9
  background: ${({ theme: i }) => i.colors.BLACK_1};
9
10
  position: relative;
10
11
  width: inherit;
11
- `, d = o.div`
12
- height: ${t}px;
12
+ `, a = o.div`
13
+ height: ${e}px;
13
14
  padding-top: ${(window.ReactNativeTopInset || 0) + 24}px;
14
15
  width: 100%;
15
16
  background: ${({ theme: i }) => i.colors.WHITE_T_03};
16
17
  backdrop-filter: blur(40px);
17
18
  position: relative;
18
19
  flex-shrink: 0;
19
- `, s = o.div`
20
+ `, p = o.div`
20
21
  position: absolute;
21
22
  right: 16px;
22
23
  top: ${(window.ReactNativeTopInset || 0) + 22}px;
@@ -25,13 +26,13 @@ const n = o.div`
25
26
  background: ${({ theme: i }) => i.colors.BLACK_4};
26
27
  cursor: pointer;
27
28
  }
28
- `, a = o.div`
29
+ `, l = o.div`
29
30
  display: flex;
30
31
  flex-direction: column;
31
32
  /* overflow: hidden; */
32
33
  flex-grow: 1;
33
34
  position: relative;
34
- `, p = o.div`
35
+ `, h = o.div`
35
36
  width: 100%;
36
37
  position: absolute;
37
38
  top: 0;
@@ -39,20 +40,20 @@ const n = o.div`
39
40
  bottom: 0;
40
41
  right: 0;
41
42
  & video {
42
- height: ${({ isJourneyActive: i }) => i ? "auto" : "100%"};
43
+ height: ${({ isJourneyActive: i }) => i ? `calc(100% - ${t}px)` : "100%"};
43
44
  width: 100%;
44
45
  }
45
- `, l = o.div`
46
+ `, c = o.div`
46
47
  height: 40px;
47
48
  width: 100%;
48
49
  position: relative;
49
50
  display: flex;
50
- `, h = o.div`
51
+ `, x = o.div`
51
52
  height: 2px;
52
53
  position: relative;
53
54
  width: 100%;
54
55
  z-index: 1;
55
- `, c = o.div`
56
+ `, g = o.div`
56
57
  height: inherit;
57
58
  background: ${({ theme: i }) => i.colors.WHITE};
58
59
  position: absolute;
@@ -61,13 +62,13 @@ const n = o.div`
61
62
  transition: width 0.4s linear;
62
63
  `;
63
64
  export {
64
- a as GameTutorialContainer,
65
- d as GameTutorialHeader,
66
- n as GameTutorialWrapper,
67
- s as HeaderIconContainer,
68
- p as VideoContainer,
69
- c as VideoProgress,
70
- h as VideoProgressContainer,
71
- l as VideoProgressWrapper
65
+ l as GameTutorialContainer,
66
+ a as GameTutorialHeader,
67
+ s as GameTutorialWrapper,
68
+ p as HeaderIconContainer,
69
+ h as VideoContainer,
70
+ g as VideoProgress,
71
+ x as VideoProgressContainer,
72
+ c as VideoProgressWrapper
72
73
  };
73
74
  //# sourceMappingURL=tutorial-styled.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"tutorial-styled.js","sources":["../../../../../src/features/circle-games/games/tutorial/tutorial-styled.tsx"],"sourcesContent":["import styled from 'styled-components';\n\nimport { HEADER_HEIGHT } from './constants';\n\nexport const GameTutorialWrapper = styled.div`\n display: flex;\n flex-direction: column;\n height: 100%;\n min-height: 250px;\n background: ${({ theme }) => theme.colors.BLACK_1};\n position: relative;\n width: inherit;\n`;\n\nexport const GameTutorialHeader = styled.div`\n height: ${HEADER_HEIGHT}px;\n padding-top: ${(window.ReactNativeTopInset || 0) + 24}px;\n width: 100%;\n background: ${({ theme }) => theme.colors.WHITE_T_03};\n backdrop-filter: blur(40px);\n position: relative;\n flex-shrink: 0;\n`;\n\nexport const HeaderIconContainer = styled.div`\n position: absolute;\n right: 16px;\n top: ${(window.ReactNativeTopInset || 0) + 22}px;\n z-index: 1;\n &:hover {\n background: ${({ theme }) => theme.colors.BLACK_4};\n cursor: pointer;\n }\n`;\n\nexport const GameTutorialContainer = styled.div`\n display: flex;\n flex-direction: column;\n /* overflow: hidden; */\n flex-grow: 1;\n position: relative;\n`;\n\nexport const VideoContainer = styled.div<{ isJourneyActive?: boolean }>`\n width: 100%;\n position: absolute;\n top: 0;\n left: 0;\n bottom: 0;\n right: 0;\n & video {\n height: ${({ isJourneyActive }) => (isJourneyActive ? 'auto' : '100%')};\n width: 100%;\n }\n`;\n\nexport const VideoProgressWrapper = styled.div`\n height: 40px;\n width: 100%;\n position: relative;\n display: flex;\n`;\n\nexport const VideoProgressContainer = styled.div`\n height: 2px;\n position: relative;\n width: 100%;\n z-index: 1;\n`;\n\nexport const VideoProgress = styled.div<{ $width: number }>`\n height: inherit;\n background: ${({ theme }) => theme.colors.WHITE};\n position: absolute;\n z-index: 2;\n width: ${({ $width }) => $width || 0}%;\n transition: width 0.4s linear;\n`;\n"],"names":["GameTutorialWrapper","styled","theme","GameTutorialHeader","HEADER_HEIGHT","HeaderIconContainer","GameTutorialContainer","VideoContainer","isJourneyActive","VideoProgressWrapper","VideoProgressContainer","VideoProgress","$width"],"mappings":";;AAIO,MAAMA,IAAsBC,EAAO;AAAA;AAAA;AAAA;AAAA;AAAA,gBAK1B,CAAC,EAAE,OAAAC,EAAA,MAAYA,EAAM,OAAO,OAAO;AAAA;AAAA;AAAA,GAKtCC,IAAqBF,EAAO;AAAA,YAC7BG,CAAa;AAAA,kBACP,OAAO,uBAAuB,KAAK,EAAE;AAAA;AAAA,gBAEvC,CAAC,EAAE,OAAAF,EAAA,MAAYA,EAAM,OAAO,UAAU;AAAA;AAAA;AAAA;AAAA,GAMzCG,IAAsBJ,EAAO;AAAA;AAAA;AAAA,UAGhC,OAAO,uBAAuB,KAAK,EAAE;AAAA;AAAA;AAAA,kBAG7B,CAAC,EAAE,OAAAC,EAAA,MAAYA,EAAM,OAAO,OAAO;AAAA;AAAA;AAAA,GAKxCI,IAAwBL,EAAO;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,GAQ/BM,IAAiBN,EAAO;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,cAQvB,CAAC,EAAE,iBAAAO,EAAA,MAAuBA,IAAkB,SAAS,MAAO;AAAA;AAAA;AAAA,GAK7DC,IAAuBR,EAAO;AAAA;AAAA;AAAA;AAAA;AAAA,GAO9BS,IAAyBT,EAAO;AAAA;AAAA;AAAA;AAAA;AAAA,GAOhCU,IAAgBV,EAAO;AAAA;AAAA,gBAEpB,CAAC,EAAE,OAAAC,EAAA,MAAYA,EAAM,OAAO,KAAK;AAAA;AAAA;AAAA,WAGtC,CAAC,EAAE,QAAAU,QAAaA,KAAU,CAAC;AAAA;AAAA;"}
1
+ {"version":3,"file":"tutorial-styled.js","sources":["../../../../../src/features/circle-games/games/tutorial/tutorial-styled.tsx"],"sourcesContent":["import styled from 'styled-components';\n\nimport { ARC_BUTTON_WRAPPER_HEIGHT } from '../../../ui/arc-button/constants';\nimport { HEADER_HEIGHT } from './constants';\n\nexport const GameTutorialWrapper = styled.div`\n display: flex;\n flex-direction: column;\n height: 100%;\n min-height: 250px;\n background: ${({ theme }) => theme.colors.BLACK_1};\n position: relative;\n width: inherit;\n`;\n\nexport const GameTutorialHeader = styled.div`\n height: ${HEADER_HEIGHT}px;\n padding-top: ${(window.ReactNativeTopInset || 0) + 24}px;\n width: 100%;\n background: ${({ theme }) => theme.colors.WHITE_T_03};\n backdrop-filter: blur(40px);\n position: relative;\n flex-shrink: 0;\n`;\n\nexport const HeaderIconContainer = styled.div`\n position: absolute;\n right: 16px;\n top: ${(window.ReactNativeTopInset || 0) + 22}px;\n z-index: 1;\n &:hover {\n background: ${({ theme }) => theme.colors.BLACK_4};\n cursor: pointer;\n }\n`;\n\nexport const GameTutorialContainer = styled.div`\n display: flex;\n flex-direction: column;\n /* overflow: hidden; */\n flex-grow: 1;\n position: relative;\n`;\n\nexport const VideoContainer = styled.div<{ isJourneyActive?: boolean }>`\n width: 100%;\n position: absolute;\n top: 0;\n left: 0;\n bottom: 0;\n right: 0;\n & video {\n height: ${({ isJourneyActive }) =>\n isJourneyActive ? `calc(100% - ${ARC_BUTTON_WRAPPER_HEIGHT}px)` : '100%'};\n width: 100%;\n }\n`;\n\nexport const VideoProgressWrapper = styled.div`\n height: 40px;\n width: 100%;\n position: relative;\n display: flex;\n`;\n\nexport const VideoProgressContainer = styled.div`\n height: 2px;\n position: relative;\n width: 100%;\n z-index: 1;\n`;\n\nexport const VideoProgress = styled.div<{ $width: number }>`\n height: inherit;\n background: ${({ theme }) => theme.colors.WHITE};\n position: absolute;\n z-index: 2;\n width: ${({ $width }) => $width || 0}%;\n transition: width 0.4s linear;\n`;\n"],"names":["GameTutorialWrapper","styled","theme","GameTutorialHeader","HEADER_HEIGHT","HeaderIconContainer","GameTutorialContainer","VideoContainer","isJourneyActive","ARC_BUTTON_WRAPPER_HEIGHT","VideoProgressWrapper","VideoProgressContainer","VideoProgress","$width"],"mappings":";;;AAKO,MAAMA,IAAsBC,EAAO;AAAA;AAAA;AAAA;AAAA;AAAA,gBAK1B,CAAC,EAAE,OAAAC,EAAA,MAAYA,EAAM,OAAO,OAAO;AAAA;AAAA;AAAA,GAKtCC,IAAqBF,EAAO;AAAA,YAC7BG,CAAa;AAAA,kBACP,OAAO,uBAAuB,KAAK,EAAE;AAAA;AAAA,gBAEvC,CAAC,EAAE,OAAAF,EAAA,MAAYA,EAAM,OAAO,UAAU;AAAA;AAAA;AAAA;AAAA,GAMzCG,IAAsBJ,EAAO;AAAA;AAAA;AAAA,UAGhC,OAAO,uBAAuB,KAAK,EAAE;AAAA;AAAA;AAAA,kBAG7B,CAAC,EAAE,OAAAC,EAAA,MAAYA,EAAM,OAAO,OAAO;AAAA;AAAA;AAAA,GAKxCI,IAAwBL,EAAO;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,GAQ/BM,IAAiBN,EAAO;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,cAQvB,CAAC,EAAE,iBAAAO,EAAgB,MAC3BA,IAAkB,eAAeC,CAAyB,QAAQ,MAAM;AAAA;AAAA;AAAA,GAKjEC,IAAuBT,EAAO;AAAA;AAAA;AAAA;AAAA;AAAA,GAO9BU,IAAyBV,EAAO;AAAA;AAAA;AAAA;AAAA;AAAA,GAOhCW,IAAgBX,EAAO;AAAA;AAAA,gBAEpB,CAAC,EAAE,OAAAC,EAAA,MAAYA,EAAM,OAAO,KAAK;AAAA;AAAA;AAAA,WAGtC,CAAC,EAAE,QAAAW,QAAaA,KAAU,CAAC;AAAA;AAAA;"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cuemath/leap",
3
- "version": "3.0.4-rj-2",
3
+ "version": "3.0.4-rj-4",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "dist"