lido-player 0.0.2-beta-16-dev → 0.0.2-beta-17

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.
Files changed (236) hide show
  1. package/LICENSE +21 -21
  2. package/dist/cjs/{decode-C08Ujimj.js → decode-BPWgujpW.js} +1 -1
  3. package/dist/cjs/{index-BkBqiwe8.js → index-BnfJD-Dp.js} +125 -88
  4. package/dist/cjs/{index-Dy19zuTX.js → index-CACb9dlg.js} +1 -1
  5. package/dist/cjs/index.cjs.js +2 -2
  6. package/dist/cjs/lido-avatar_22.cjs.entry.js +56 -43
  7. package/dist/cjs/lido-player.cjs.js +1 -1
  8. package/dist/cjs/loader.cjs.js +1 -1
  9. package/dist/collection/components/avatar/lido-avatar.css +4 -4
  10. package/dist/collection/components/avatar/lido-avatar.js +1 -1
  11. package/dist/collection/components/avatar/lido-avatar.tsx +207 -207
  12. package/dist/collection/components/avatar/readme.md +49 -49
  13. package/dist/collection/components/calculator/lido-calculator.css +89 -89
  14. package/dist/collection/components/calculator/lido-calculator.js +4 -4
  15. package/dist/collection/components/canvas/lido-canvas.css +33 -33
  16. package/dist/collection/components/canvas/lido-canvas.js +1 -1
  17. package/dist/collection/components/cell/lido-cell.css +100 -100
  18. package/dist/collection/components/cell/lido-cell.js +12 -12
  19. package/dist/collection/components/column/lido-col.css +19 -19
  20. package/dist/collection/components/column/lido-col.js +6 -6
  21. package/dist/collection/components/container/lido-container.css +10 -10
  22. package/dist/collection/components/container/lido-container.js +8 -8
  23. package/dist/collection/components/flashCard/lido-flash-card.css +28 -28
  24. package/dist/collection/components/flashCard/lido-flash-card.js +4 -4
  25. package/dist/collection/components/float/lido-float.css +30 -30
  26. package/dist/collection/components/float/lido-float.js +2 -2
  27. package/dist/collection/components/home/lido-home.css +309 -309
  28. package/dist/collection/components/home/lido-home.js +5 -5
  29. package/dist/collection/components/image/lido-image.css +17 -17
  30. package/dist/collection/components/image/lido-image.js +6 -6
  31. package/dist/collection/components/keyboard/lido-keyboard.css +38 -38
  32. package/dist/collection/components/keyboard/lido-keyboard.js +3 -3
  33. package/dist/collection/components/mathMatrix/lido-math-matrix.css +56 -56
  34. package/dist/collection/components/mathMatrix/lido-math-matrix.js +12 -2
  35. package/dist/collection/components/position/lido-pos.css +16 -16
  36. package/dist/collection/components/position/lido-pos.js +2 -2
  37. package/dist/collection/components/random/lido-random.css +8 -8
  38. package/dist/collection/components/random/lido-random.js +2 -2
  39. package/dist/collection/components/root/lido-root.js +5 -5
  40. package/dist/collection/components/row/lido-row.css +10 -10
  41. package/dist/collection/components/row/lido-row.js +6 -6
  42. package/dist/collection/components/scale/assets/Shadow.svg +9 -0
  43. package/dist/collection/components/scale/lido-balance.css +145 -145
  44. package/dist/collection/components/scale/lido-balance.js +25 -23
  45. package/dist/collection/components/shape/lido-shape.css +216 -216
  46. package/dist/collection/components/shape/lido-shape.js +6 -6
  47. package/dist/collection/components/slideFill/lido-slide-fill.css +3 -3
  48. package/dist/collection/components/slideFill/lido-slide-fill.js +13 -13
  49. package/dist/collection/components/text/lido-text.css +53 -53
  50. package/dist/collection/components/text/lido-text.js +6 -5
  51. package/dist/collection/components/trace/assets/Tracing-hand.svg +8 -0
  52. package/dist/collection/components/trace/lido-trace.css +97 -97
  53. package/dist/collection/components/trace/lido-trace.js +6 -6
  54. package/dist/collection/components/wrap/lido-wrap.css +18 -18
  55. package/dist/collection/components/wrap/lido-wrap.js +6 -6
  56. package/dist/collection/css/animation.css +211 -211
  57. package/dist/collection/css/index.css +315 -312
  58. package/dist/collection/stories/Templates/Fill-Up/fill-up.stories.js +61 -61
  59. package/dist/collection/stories/Templates/LetterPairing/LetterPairing.stories.js +123 -123
  60. package/dist/collection/stories/Templates/RocketGame/rocketGame.stories.js +48 -48
  61. package/dist/collection/stories/Templates/Tag/tagGame.stories.js +39 -39
  62. package/dist/collection/stories/Templates/arrangeLetters/arrangeLetters.stories.js +44 -44
  63. package/dist/collection/stories/Templates/balancing/balancing.stories.js +35 -35
  64. package/dist/collection/stories/Templates/balloonPop/balloonPop.stories.js +38 -38
  65. package/dist/collection/stories/Templates/blender/blender.stories.js +58 -58
  66. package/dist/collection/stories/Templates/bubbleType/bubbleType.stories.js +42 -42
  67. package/dist/collection/stories/Templates/calculator/calculator.stories.js +28 -28
  68. package/dist/collection/stories/Templates/categorize/categorize.stories.js +37 -37
  69. package/dist/collection/stories/Templates/categorize2/categorize2.stories.js +67 -67
  70. package/dist/collection/stories/Templates/checker-block/checkerBlock.stories.js +29 -29
  71. package/dist/collection/stories/Templates/checkerBlock/checkerBlock.stories.js +13 -13
  72. package/dist/collection/stories/Templates/create-sentence/createSentence.stories.js +74 -74
  73. package/dist/collection/stories/Templates/dragAndDrop/drag-drop.stories.js +69 -69
  74. package/dist/collection/stories/Templates/fillAnswer/fill-answer.stories.js +43 -43
  75. package/dist/collection/stories/Templates/fillBlank/fill-blank.stories.js +282 -282
  76. package/dist/collection/stories/Templates/foodJar/food-jar.stories.js +35 -35
  77. package/dist/collection/stories/Templates/grid/grid.stories.js +118 -118
  78. package/dist/collection/stories/Templates/gridGame/grid-game.stories.js +57 -57
  79. package/dist/collection/stories/Templates/imageMatch/imageMatch.stories.js +44 -44
  80. package/dist/collection/stories/Templates/jumpSentence/jumpSentence.stories.js +41 -41
  81. package/dist/collection/stories/Templates/letterboard/letterboard.stories.js +183 -183
  82. package/dist/collection/stories/Templates/makeSentence/make-sentence.stories.js +36 -36
  83. package/dist/collection/stories/Templates/matchBox/matchBox.stories.js +69 -69
  84. package/dist/collection/stories/Templates/matchBox/matchBox2.stories.js +84 -84
  85. package/dist/collection/stories/Templates/matchingCard/matching-card.stories.js +31 -31
  86. package/dist/collection/stories/Templates/multipleOption/mcqWithQuestionImage.stories.js +112 -112
  87. package/dist/collection/stories/Templates/multipleOption/multiple-option.stories.js +47 -47
  88. package/dist/collection/stories/Templates/multiplyBeeds/multiplyBeeds.stories.js +57 -57
  89. package/dist/collection/stories/Templates/nimbleTable/nimbleTable.stories.js +53 -53
  90. package/dist/collection/stories/Templates/numberBoard/numberBoard.stories.js +46 -46
  91. package/dist/collection/stories/Templates/numberBoardTwo/numberBoardTwo.stories.js +45 -45
  92. package/dist/collection/stories/Templates/numberIdentification/numberIdentificationimageTotext.stories.js +56 -56
  93. package/dist/collection/stories/Templates/numberIdentification/numberIdentificationtextTotext.stories.js +53 -53
  94. package/dist/collection/stories/Templates/numberPair/numberPair.stories.js +127 -127
  95. package/dist/collection/stories/Templates/openwindow/openwindow.stories.js +47 -47
  96. package/dist/collection/stories/Templates/openwindow/openwindow2.stories.js +38 -38
  97. package/dist/collection/stories/Templates/order-tractor/order-tractor-ascending-order.stories.js +97 -97
  98. package/dist/collection/stories/Templates/order-tractor/order-tractor.stories.js +90 -90
  99. package/dist/collection/stories/Templates/palEgmaCalculateSum/palEgmaMultiOption.stories.js +63 -63
  100. package/dist/collection/stories/Templates/palEgmaCalculateSum/palEgmaSumTogether.stories.js +45 -45
  101. package/dist/collection/stories/Templates/palEgmaPatternMatching/palEgmaPatternMatching.stories.js +63 -63
  102. package/dist/collection/stories/Templates/palEgmaWordProblem/palEgmaWordProblem.stories.js +79 -79
  103. package/dist/collection/stories/Templates/palEgraInventedSpelling/pal_egra_invented_spelling_schema.stories.js +32 -32
  104. package/dist/collection/stories/Templates/palEgraMCQWithImage/palEgraMCQWithImage.stories.js +42 -42
  105. package/dist/collection/stories/Templates/palEgraOptionWithAudio/palEgraOptionWithAudio.stories.js +63 -63
  106. package/dist/collection/stories/Templates/palEgraStoryMaking/pal_egra_story_making.stories.js +44 -44
  107. package/dist/collection/stories/Templates/palEgraTemplate1/palEgraLetterIdentification.stories.js +34 -34
  108. package/dist/collection/stories/Templates/palEgraWordMatch/palEgraWordMatch.stories.js +52 -52
  109. package/dist/collection/stories/Templates/palEgra_OddOneOut/palEgra_oddOneOut.stories.js +33 -33
  110. package/dist/collection/stories/Templates/palEgra_arrange_pictures/palEgra_arrange_pictures.stories.js +40 -40
  111. package/dist/collection/stories/Templates/palEgra_build_word/palEgra_build_word.stories.js +48 -48
  112. package/dist/collection/stories/Templates/palEgra_word_formation/palEgra_WordFormation.stories.js +48 -48
  113. package/dist/collection/stories/Templates/palStorytale/palStorytale.stories.js +18 -18
  114. package/dist/collection/stories/Templates/phonic-tractor/phonic-tractor.stories.js +44 -44
  115. package/dist/collection/stories/Templates/pictureClues/pictureClues.stories.js +34 -34
  116. package/dist/collection/stories/Templates/pictureWordMatch/pictureWordMatch1.stories.js +36 -36
  117. package/dist/collection/stories/Templates/pictureWordMatch/pictureWordMatch2.stories.js +30 -30
  118. package/dist/collection/stories/Templates/picturemeaning/pictureMeaningCocos.stories.js +20 -20
  119. package/dist/collection/stories/Templates/puzzleGame/puzzleGame.stories.js +17 -17
  120. package/dist/collection/stories/Templates/questionBoard/questionBoard.stories.js +58 -58
  121. package/dist/collection/stories/Templates/quizLiteracy/quizLiteracy.stories.js +50 -50
  122. package/dist/collection/stories/Templates/quizLiteracy/quizLiteracyImageWithText.stories.js +36 -36
  123. package/dist/collection/stories/Templates/quizLiteracy/quizLiteracyImageWord.stories.js +43 -43
  124. package/dist/collection/stories/Templates/quizMaths/quizMaths.stories.js +631 -631
  125. package/dist/collection/stories/Templates/reorder/reorder.stories.js +63 -63
  126. package/dist/collection/stories/Templates/rowBlocks/rowBlocks.stories.js +47 -47
  127. package/dist/collection/stories/Templates/sentenceMatch/sentenceMatch.stories.js +29 -29
  128. package/dist/collection/stories/Templates/sequenceBox/sequenceBox1.stories.js +64 -64
  129. package/dist/collection/stories/Templates/sequenceBox/sequenceBox2.stories.js +62 -62
  130. package/dist/collection/stories/Templates/shapePair/shape-pair.stories.js +106 -106
  131. package/dist/collection/stories/Templates/shapeTractor/shape-tractor.stories.js +50 -50
  132. package/dist/collection/stories/Templates/spellDoor/spellDoor.stories.js +41 -41
  133. package/dist/collection/stories/Templates/storyTale/storyTale.stories.js +39 -39
  134. package/dist/collection/stories/Templates/substraction/substractionWithimg.stories.js +62 -62
  135. package/dist/collection/stories/Templates/substraction/substractionWithoutImg.stories.js +42 -42
  136. package/dist/collection/stories/Templates/sumTogether/sumTogether.stories.js +50 -50
  137. package/dist/collection/stories/Templates/tenBox/tenBox.stories.js +88 -88
  138. package/dist/collection/stories/Templates/total/total.stories.js +28 -28
  139. package/dist/collection/stories/Templates/wordBuilding/wordBuildingwithimg.stories.js +35 -35
  140. package/dist/collection/stories/Templates/wordBuilding/wordBuildingwithoutimg.stories.js +34 -34
  141. package/dist/collection/stories/Templates/writeCard/writeCard.stories.js +31 -31
  142. package/dist/collection/stories/Templates/writeLetter/writeLetter.stories.js +58 -58
  143. package/dist/collection/stories/Templates/writeNumber/writeNumber.stories.js +44 -44
  144. package/dist/collection/stories/Templates/writeSet/writeSet.stories.js +31 -31
  145. package/dist/collection/stories/Templates/writeWord/writeWord.stories.js +34 -34
  146. package/dist/collection/stories/components/flash-card.stories.js +48 -48
  147. package/dist/collection/stories/components/keyboard.stories.js +10 -10
  148. package/dist/collection/stories/components/slider.stories.js +4 -4
  149. package/dist/collection/stories/components/trace.stories.js +5 -5
  150. package/dist/collection/utils/audioPlayer.js +31 -9
  151. package/dist/collection/utils/utils.js +8 -7
  152. package/dist/collection/utils/utilsHandlers/animationHandler.js +9 -2
  153. package/dist/collection/utils/utilsHandlers/clickHandler.js +8 -0
  154. package/dist/collection/utils/utilsHandlers/dragDropHandler.js +8 -8
  155. package/dist/collection/utils/utilsHandlers/highlightHandler.js +54 -54
  156. package/dist/collection/utils/utilsHandlers/lidoCalculatorHandler.js +12 -15
  157. package/dist/collection/utils/utilsHandlers/slideHandler.js +10 -8
  158. package/dist/collection/utils/utilsHandlers/sortHandler.js +10 -10
  159. package/dist/components/index.js +1 -1
  160. package/dist/components/lido-avatar.js +1 -1
  161. package/dist/components/lido-balance.js +1 -1
  162. package/dist/components/lido-calculator.js +1 -1
  163. package/dist/components/lido-canvas.js +1 -1
  164. package/dist/components/lido-cell.js +1 -1
  165. package/dist/components/lido-col.js +1 -1
  166. package/dist/components/lido-container.js +1 -1
  167. package/dist/components/lido-flash-card.js +1 -1
  168. package/dist/components/lido-float.js +1 -1
  169. package/dist/components/lido-home.js +1 -1
  170. package/dist/components/lido-keyboard.js +1 -1
  171. package/dist/components/lido-math-matrix.js +1 -1
  172. package/dist/components/lido-pos.js +1 -1
  173. package/dist/components/lido-random.js +1 -1
  174. package/dist/components/lido-root.js +1 -1
  175. package/dist/components/lido-row.js +1 -1
  176. package/dist/components/lido-shape.js +1 -1
  177. package/dist/components/lido-slide-fill.js +1 -1
  178. package/dist/components/lido-text.js +1 -1
  179. package/dist/components/lido-trace.js +1 -1
  180. package/dist/components/lido-wrap.js +1 -1
  181. package/dist/components/p-B8nzzM8c.js +1 -0
  182. package/dist/components/{p-Sl9R-E6h.js → p-BBHM059l.js} +1 -1
  183. package/dist/components/p-BXvoOUIv.js +1 -0
  184. package/dist/components/{p-CwDTdXe5.js → p-BeRr8u5m.js} +1 -1
  185. package/dist/components/p-BfqihbR6.js +1 -0
  186. package/dist/components/{p-CPYnt0P-.js → p-C5WmmkI6.js} +1 -1
  187. package/dist/components/{p-useuhkjH.js → p-C70ykycD.js} +1 -1
  188. package/dist/components/{p-BE25wHoo.js → p-CCR42e0i.js} +1 -1
  189. package/dist/components/{p-C2p0KZh4.js → p-CIbBOu51.js} +1 -1
  190. package/dist/components/{p-BfwUqpXc.js → p-CTlcpv4a.js} +1 -1
  191. package/dist/components/{p-CyGxEcn7.js → p-CXHPZN3m.js} +1 -1
  192. package/dist/components/{p-Bw-OC9iR.js → p-CgsPIpg0.js} +1 -1
  193. package/dist/components/p-CwIlwnQk.js +1 -0
  194. package/dist/components/{p-D-IYWSAa.js → p-CxkH5UIf.js} +1 -1
  195. package/dist/components/{p-DGvzMlyn.js → p-DBbLGy4y.js} +2 -2
  196. package/dist/components/p-DLyacZap.js +1 -0
  197. package/dist/components/p-DONbWJGn.js +1 -0
  198. package/dist/components/p-DVTigdH_.js +1 -0
  199. package/dist/components/{p-Uluc7jQ7.js → p-DuvxecDX.js} +1 -1
  200. package/dist/components/p-Dv1cIsyS.js +1 -0
  201. package/dist/esm/{decode-CGJIPA4t.js → decode-To5V_Qqp.js} +1 -1
  202. package/dist/esm/{index-C854B63S.js → index-CEJsA_x_.js} +125 -88
  203. package/dist/esm/{index-Dq-Z8Dx0.js → index-Dnvog_Mm.js} +2 -2
  204. package/dist/esm/index.js +2 -2
  205. package/dist/esm/lido-avatar_22.entry.js +56 -43
  206. package/dist/esm/lido-player.js +2 -2
  207. package/dist/esm/loader.js +2 -2
  208. package/dist/lido-player/assets/Shadow.svg +9 -0
  209. package/dist/lido-player/assets/Tracing-hand.svg +8 -0
  210. package/dist/lido-player/index.esm.js +1 -1
  211. package/dist/lido-player/lido-avatar.css +4 -4
  212. package/dist/lido-player/lido-avatar.tsx +207 -207
  213. package/dist/lido-player/lido-player.css +7 -7
  214. package/dist/lido-player/lido-player.esm.js +1 -1
  215. package/dist/lido-player/p-3b6e3b51.entry.js +12 -0
  216. package/dist/lido-player/{p-Bg5mBsd9.js → p-DUx4nii8.js} +1 -1
  217. package/dist/lido-player/p-Dnvog_Mm.js +2 -0
  218. package/dist/lido-player/p-gkKsw3a6.js +1 -0
  219. package/dist/lido-player/readme.md +49 -49
  220. package/dist/types/components/scale/lido-balance.d.ts +2 -2
  221. package/dist/types/components.d.ts +10 -10
  222. package/dist/types/types/json.d.ts +3 -3
  223. package/dist/types/utils/audioPlayer.d.ts +2 -0
  224. package/package.json +73 -74
  225. package/readme.md +113 -113
  226. package/dist/components/p-BSV5U72F.js +0 -1
  227. package/dist/components/p-C7U1h9gI.js +0 -1
  228. package/dist/components/p-CS6iRQJh.js +0 -1
  229. package/dist/components/p-D-B1groh.js +0 -1
  230. package/dist/components/p-DPAlnts-.js +0 -1
  231. package/dist/components/p-DYs8s-uh.js +0 -1
  232. package/dist/components/p-DbR5sNOj.js +0 -1
  233. package/dist/components/p-leIEepjl.js +0 -1
  234. package/dist/lido-player/p-C4OTDhbr.js +0 -1
  235. package/dist/lido-player/p-Dq-Z8Dx0.js +0 -2
  236. package/dist/lido-player/p-f0e333c6.entry.js +0 -12
@@ -1,145 +1,145 @@
1
- #lido-balance {
2
- position: relative;
3
- height: 500px;
4
- width: 1205px;
5
- top: 20%;
6
- left: -91px;
7
- z-index: 0;
8
- }
9
-
10
- .lido-balance-symbol {
11
- position: absolute;
12
- top: 64%;
13
- left: 50%;
14
- transform: translate(-50%, -50%);
15
- font-size: 5vw;
16
- font-weight: bold;
17
- color: black;
18
- pointer-events: none;
19
- z-index: 999;
20
- }
21
- @media (orientation: portrait) {
22
- .lido-balance-shadow {
23
- height: 100px;
24
- position: absolute;
25
- top: 80%;
26
- left: 28%;
27
- }
28
- }
29
-
30
- @media (orientation: landscape) {
31
- .lido-balance-shadow {
32
- height: 100px ;
33
- position: absolute;
34
- top: 90% ;
35
- left: 33% ;
36
- }
37
- }
38
- @media (orientation: portrait) {
39
- #pivotimg {
40
- position: absolute;
41
- height:auto;
42
- width: 23%;
43
- bottom: 18%;
44
- left: 38%;
45
- z-index: 100;
46
-
47
- }
48
- }
49
-
50
- #pivotimg::after {
51
- content: "";
52
- position: absolute;
53
- bottom: -30px;
54
- left: 50%;
55
- transform: translateX(-50%);
56
- width: 120%;
57
- height: 60px;
58
- background-image: url("https://aeakbcdznktpsbrfsgys.supabase.co/storage/v1/object/public/template-assets/balancing/Shadow.svg");
59
- background-size: contain;
60
- background-repeat: no-repeat;
61
- background-position: center;
62
- pointer-events: none;
63
- z-index: 10;
64
- }
65
-
66
- @media (orientation: landscape) {
67
- #pivotimg {
68
- position: absolute;
69
- height:auto;
70
- width: 23%;
71
- bottom: 8%;
72
- left: 38%;
73
- z-index: 100;
74
- }
75
- }
76
-
77
- .lido-balance .pivot svg {
78
- width: 100%;
79
- height: auto;
80
- }
81
-
82
-
83
- #scaleimg {
84
- position: absolute;
85
- width: 73%;
86
- height: auto;
87
- top: 61%;
88
- left: 14%;
89
- z-index: 90;
90
- }
91
- .lido-balance .scale svg {
92
- width: 100%;
93
- height: auto;
94
- }
95
-
96
- @media (orientation: landscape) {
97
- #handlerimg {
98
- position: absolute;
99
- width: 35%;
100
- height: auto;
101
- top:49%;
102
- left: 2%;
103
- }}
104
- @media (orientation:portrait ) {
105
- #handlerimg {
106
- position: absolute;
107
- width: 35%;
108
- height: auto;
109
- top:53%;
110
- left: 2%;
111
- }}
112
- .lido-balance .handler svg {
113
- width: 100%;
114
- height: auto;
115
- fill: brown;
116
- }
117
-
118
- @media (orientation: landscape) {
119
- #handimg {
120
- position: absolute;
121
- width: 35%;
122
- height: auto;
123
- top: 49%;
124
- right: 2%;
125
- }}
126
- @media (orientation:portrait) {
127
- #handimg {
128
- position: absolute;
129
- width: 35%;
130
- height: auto;
131
- top: 53%;
132
- right: 2%;
133
- }}
134
- .lido-balance .hand svg {
135
- width: 100%;
136
- height: auto;
137
- fill: brown;
138
- }
139
-
140
- .pivot svg path:nth-of-type(1) {
141
- fill: brown;
142
- }
143
- .pivot svg path[d^="M78.9414"] {
144
- fill: white;
145
- }
1
+ #lido-balance {
2
+ position: relative;
3
+ height: 500px;
4
+ width: 1205px;
5
+ top: 20%;
6
+ left: -91px;
7
+ z-index: 0;
8
+ }
9
+
10
+ .lido-balance-symbol {
11
+ position: absolute;
12
+ top: 64%;
13
+ left: 50%;
14
+ transform: translate(-50%, -50%);
15
+ font-size: 5vw;
16
+ font-weight: bold;
17
+ color: black;
18
+ pointer-events: none;
19
+ z-index: 999;
20
+ }
21
+ @media (orientation: portrait) {
22
+ .lido-balance-shadow {
23
+ height: 100px;
24
+ position: absolute;
25
+ top: 80%;
26
+ left: 28%;
27
+ }
28
+ }
29
+
30
+ @media (orientation: landscape) {
31
+ .lido-balance-shadow {
32
+ height: 100px ;
33
+ position: absolute;
34
+ top: 90% ;
35
+ left: 33% ;
36
+ }
37
+ }
38
+ @media (orientation: portrait) {
39
+ #pivotimg {
40
+ position: absolute;
41
+ height:auto;
42
+ width: 23%;
43
+ bottom: 18%;
44
+ left: 38%;
45
+ z-index: 100;
46
+
47
+ }
48
+ }
49
+
50
+ #pivotimg::after {
51
+ content: "";
52
+ position: absolute;
53
+ bottom: -30px;
54
+ left: 50%;
55
+ transform: translateX(-50%);
56
+ width: 120%;
57
+ height: 60px;
58
+ background-image: var(--lido-balance-shadow-url);
59
+ background-size: contain;
60
+ background-repeat: no-repeat;
61
+ background-position: center;
62
+ pointer-events: none;
63
+ z-index: 10;
64
+ }
65
+
66
+ @media (orientation: landscape) {
67
+ #pivotimg {
68
+ position: absolute;
69
+ height:auto;
70
+ width: 23%;
71
+ bottom: 8%;
72
+ left: 38%;
73
+ z-index: 100;
74
+ }
75
+ }
76
+
77
+ .lido-balance .pivot svg {
78
+ width: 100%;
79
+ height: auto;
80
+ }
81
+
82
+
83
+ #scaleimg {
84
+ position: absolute;
85
+ width: 73%;
86
+ height: auto;
87
+ top: 61%;
88
+ left: 14%;
89
+ z-index: 90;
90
+ }
91
+ .lido-balance .scale svg {
92
+ width: 100%;
93
+ height: auto;
94
+ }
95
+
96
+ @media (orientation: landscape) {
97
+ #handlerimg {
98
+ position: absolute;
99
+ width: 35%;
100
+ height: auto;
101
+ top:49%;
102
+ left: 2%;
103
+ }}
104
+ @media (orientation:portrait ) {
105
+ #handlerimg {
106
+ position: absolute;
107
+ width: 35%;
108
+ height: auto;
109
+ top:53%;
110
+ left: 2%;
111
+ }}
112
+ .lido-balance .handler svg {
113
+ width: 100%;
114
+ height: auto;
115
+ fill: brown;
116
+ }
117
+
118
+ @media (orientation: landscape) {
119
+ #handimg {
120
+ position: absolute;
121
+ width: 35%;
122
+ height: auto;
123
+ top: 49%;
124
+ right: 2%;
125
+ }}
126
+ @media (orientation:portrait) {
127
+ #handimg {
128
+ position: absolute;
129
+ width: 35%;
130
+ height: auto;
131
+ top: 53%;
132
+ right: 2%;
133
+ }}
134
+ .lido-balance .hand svg {
135
+ width: 100%;
136
+ height: auto;
137
+ fill: brown;
138
+ }
139
+
140
+ .pivot svg path:nth-of-type(1) {
141
+ fill: brown;
142
+ }
143
+ .pivot svg path[d^="M78.9414"] {
144
+ fill: white;
145
+ }
@@ -1,19 +1,19 @@
1
- import { h, Host } from "@stencil/core";
1
+ import { h, Host, getAssetPath } from "@stencil/core";
2
2
  import { initEventsForElement, convertUrlToRelative, parseProp } from "../../utils/utils";
3
3
  export class LidoBalance {
4
4
  constructor() {
5
5
  /**
6
- * URL of the pivot (base stand) image used in the balance visualization.
7
- */
8
- this.pivotimage = 'https://aeakbcdznktpsbrfsgys.supabase.co/storage/v1/object/public/template-assets/balancing/Display%20stand.svg';
6
+ * URL of the pivot (base stand) image used in the balance visualization.
7
+ */
8
+ this.pivotimage = '';
9
9
  /**
10
10
  * URL of the scale (bar) image that tilts based on the weight difference.
11
11
  */
12
- this.scaleimage = 'https://aeakbcdznktpsbrfsgys.supabase.co/storage/v1/object/public/template-assets/balancing/Bar.svg';
12
+ this.scaleimage = '';
13
13
  /**
14
14
  * URL of the handler (side stands / hooks) image for the balance.
15
15
  */
16
- this.handlerimage = 'https://aeakbcdznktpsbrfsgys.supabase.co/storage/v1/object/public/template-assets/balancing/Stands.svg';
16
+ this.handlerimage = '';
17
17
  /**
18
18
  * Fill color applied to all loaded SVGs (pivot, scale, handler).
19
19
  * Defaults to "brown".
@@ -161,7 +161,7 @@ export class LidoBalance {
161
161
  async updateTilt(leftVal, rightVal) {
162
162
  const diff = rightVal - leftVal;
163
163
  const newTilt = Math.max(-5, Math.min(5, diff));
164
- await new Promise(res => setTimeout(res, 350));
164
+ await new Promise(res => setTimeout(res, 700));
165
165
  this.tiltf = newTilt;
166
166
  }
167
167
  animateBalance() {
@@ -209,10 +209,11 @@ export class LidoBalance {
209
209
  display: parseProp(`${this.visible}`, orientation) === "true" ? 'flex' : 'none',
210
210
  margin: parseProp(this.margin, orientation),
211
211
  padding: parseProp(this.padding, orientation),
212
+ '--lido-balance-shadow-url': `url(${getAssetPath('assets/Shadow.svg')})`,
212
213
  };
213
214
  }
214
215
  render() {
215
- return (h(Host, { key: '2d7a59cde91392b0e19efb592a81e6aa9466654d', id: "lido-balance", "bg-color": "red", onEntry: this.onEntry, class: "lido-balance", tilt: this.tilt.toString(), style: this.style, operation: this.operation.toString(), "pivot-image": this.pivotSvg, "scale-image": this.scaleSvg, "handler-image": this.handlerSvg }, h("div", { key: '7048f924b6f45de2023f28e19c486810e109d94e', innerHTML: this.pivotSvg, id: "pivotimg", class: "pivot" }), h("div", { key: '05c1ab110c0c4ca918fa452b5d0cfbe57d3e6a1a', innerHTML: this.scaleSvg, id: "scaleimg", class: "scale", ref: (el) => (this.scaleEl = el) }), h("div", { key: '5db42befb11d6505a6167d93e8e9015d65dc0f8a', innerHTML: this.handlerSvg, id: "handlerimg", class: "handler", ref: (el) => (this.leftHandleEl = el) }), h("div", { key: 'bce64e72aeaf1a99d6ef381da369d393f300e025', innerHTML: this.handlerSvg, id: "handimg", class: "hand", ref: (el) => (this.rightHandleEl = el) }), h("div", { key: 'ee8b45ff347a6421169c9c7fce66b9079e930424', id: "balanceSymbol", class: "lido-balance-symbol", "aria-hidden": !this.showSymbol }, this.showSymbol ? this.balanceSymbol : '')));
216
+ return (h(Host, { key: 'dea6f583bb2de36cfe7ee5bf401cdcaf975685b8', id: "lido-balance", "bg-color": "red", onEntry: this.onEntry, class: "lido-balance", tilt: this.tilt.toString(), style: this.style, operation: this.operation.toString(), "pivot-image": this.pivotSvg, "scale-image": this.scaleSvg, "handler-image": this.handlerSvg }, h("div", { key: 'da588147b7aeafc8a529c8f8399e5acbabbf3bb7', innerHTML: this.pivotSvg, id: "pivotimg", class: "pivot" }), h("div", { key: 'f1a0aa6b8f080a0db945c44b2a1cbb715541db4f', innerHTML: this.scaleSvg, id: "scaleimg", class: "scale", ref: (el) => (this.scaleEl = el) }), h("div", { key: 'e1c742d85d924a6c24c6c8103dcfcf2d41533b88', innerHTML: this.handlerSvg, id: "handlerimg", class: "handler", ref: (el) => (this.leftHandleEl = el) }), h("div", { key: 'c1ea8165c0d2c590616edee9b189e8a3d4198c1a', innerHTML: this.handlerSvg, id: "handimg", class: "hand", ref: (el) => (this.rightHandleEl = el) }), h("div", { key: 'd666d445b0a5fd04394c335ea1494ac7e80f1b07', id: "balanceSymbol", class: "lido-balance-symbol", "aria-hidden": !this.showSymbol }, this.showSymbol ? this.balanceSymbol : '')));
216
217
  }
217
218
  static get is() { return "lido-balance"; }
218
219
  static get originalStyleUrls() {
@@ -225,6 +226,7 @@ export class LidoBalance {
225
226
  "$": ["lido-balance.css"]
226
227
  };
227
228
  }
229
+ static get assetsDirs() { return ["assets"]; }
228
230
  static get properties() {
229
231
  return {
230
232
  "pivotimage": {
@@ -245,7 +247,7 @@ export class LidoBalance {
245
247
  "setter": false,
246
248
  "reflect": false,
247
249
  "attribute": "pivotimage",
248
- "defaultValue": "'https://aeakbcdznktpsbrfsgys.supabase.co/storage/v1/object/public/template-assets/balancing/Display%20stand.svg'"
250
+ "defaultValue": "''"
249
251
  },
250
252
  "scaleimage": {
251
253
  "type": "string",
@@ -265,7 +267,7 @@ export class LidoBalance {
265
267
  "setter": false,
266
268
  "reflect": false,
267
269
  "attribute": "scaleimage",
268
- "defaultValue": "'https://aeakbcdznktpsbrfsgys.supabase.co/storage/v1/object/public/template-assets/balancing/Bar.svg'"
270
+ "defaultValue": "''"
269
271
  },
270
272
  "handlerimage": {
271
273
  "type": "string",
@@ -285,7 +287,7 @@ export class LidoBalance {
285
287
  "setter": false,
286
288
  "reflect": false,
287
289
  "attribute": "handlerimage",
288
- "defaultValue": "'https://aeakbcdznktpsbrfsgys.supabase.co/storage/v1/object/public/template-assets/balancing/Stands.svg'"
290
+ "defaultValue": "''"
289
291
  },
290
292
  "fill": {
291
293
  "type": "string",
@@ -299,7 +301,7 @@ export class LidoBalance {
299
301
  "optional": false,
300
302
  "docs": {
301
303
  "tags": [],
302
- "text": "Fill color applied to all loaded SVGs (pivot, scale, handler).\r\nDefaults to \"brown\"."
304
+ "text": "Fill color applied to all loaded SVGs (pivot, scale, handler).\nDefaults to \"brown\"."
303
305
  },
304
306
  "getter": false,
305
307
  "setter": false,
@@ -319,7 +321,7 @@ export class LidoBalance {
319
321
  "optional": false,
320
322
  "docs": {
321
323
  "tags": [],
322
- "text": "Initial tilt value of the balance.\r\nNegative = tilts left, Positive = tilts right."
324
+ "text": "Initial tilt value of the balance.\nNegative = tilts left, Positive = tilts right."
323
325
  },
324
326
  "getter": false,
325
327
  "setter": false,
@@ -359,7 +361,7 @@ export class LidoBalance {
359
361
  "optional": false,
360
362
  "docs": {
361
363
  "tags": [],
362
- "text": "Action(s) to execute when the component enters the DOM.\r\nExample: trigger animations or audio cues."
364
+ "text": "Action(s) to execute when the component enters the DOM.\nExample: trigger animations or audio cues."
363
365
  },
364
366
  "getter": false,
365
367
  "setter": false,
@@ -379,7 +381,7 @@ export class LidoBalance {
379
381
  "optional": false,
380
382
  "docs": {
381
383
  "tags": [],
382
- "text": "CSS height of the component (responsive values allowed).\r\nDefault: \"auto\"."
384
+ "text": "CSS height of the component (responsive values allowed).\nDefault: \"auto\"."
383
385
  },
384
386
  "getter": false,
385
387
  "setter": false,
@@ -399,7 +401,7 @@ export class LidoBalance {
399
401
  "optional": false,
400
402
  "docs": {
401
403
  "tags": [],
402
- "text": "CSS width of the component (responsive values allowed).\r\nDefault: \"auto\"."
404
+ "text": "CSS width of the component (responsive values allowed).\nDefault: \"auto\"."
403
405
  },
404
406
  "getter": false,
405
407
  "setter": false,
@@ -419,7 +421,7 @@ export class LidoBalance {
419
421
  "optional": false,
420
422
  "docs": {
421
423
  "tags": [],
422
- "text": "Horizontal (X-axis) offset for positioning the component.\r\nDefault: \"0px\"."
424
+ "text": "Horizontal (X-axis) offset for positioning the component.\nDefault: \"0px\"."
423
425
  },
424
426
  "getter": false,
425
427
  "setter": false,
@@ -439,7 +441,7 @@ export class LidoBalance {
439
441
  "optional": false,
440
442
  "docs": {
441
443
  "tags": [],
442
- "text": "Vertical (Y-axis) offset for positioning the component.\r\nDefault: \"0px\"."
444
+ "text": "Vertical (Y-axis) offset for positioning the component.\nDefault: \"0px\"."
443
445
  },
444
446
  "getter": false,
445
447
  "setter": false,
@@ -459,7 +461,7 @@ export class LidoBalance {
459
461
  "optional": false,
460
462
  "docs": {
461
463
  "tags": [],
462
- "text": "Z-index for stacking order of the component.\r\nDefault: \"0\"."
464
+ "text": "Z-index for stacking order of the component.\nDefault: \"0\"."
463
465
  },
464
466
  "getter": false,
465
467
  "setter": false,
@@ -479,7 +481,7 @@ export class LidoBalance {
479
481
  "optional": false,
480
482
  "docs": {
481
483
  "tags": [],
482
- "text": "Controls component visibility.\r\nAccepts boolean (`true`/`false`) or string (\"true\"/\"false\")."
484
+ "text": "Controls component visibility.\nAccepts boolean (`true`/`false`) or string (\"true\"/\"false\")."
483
485
  },
484
486
  "getter": false,
485
487
  "setter": false,
@@ -539,7 +541,7 @@ export class LidoBalance {
539
541
  "optional": false,
540
542
  "docs": {
541
543
  "tags": [],
542
- "text": "Balance symbol shown when `showSymbol` is true.\r\nDefault: \"=\"."
544
+ "text": "Balance symbol shown when `showSymbol` is true.\nDefault: \"=\"."
543
545
  },
544
546
  "getter": false,
545
547
  "setter": false,
@@ -559,7 +561,7 @@ export class LidoBalance {
559
561
  "optional": false,
560
562
  "docs": {
561
563
  "tags": [],
562
- "text": "Whether the balance symbol is currently displayed.\r\nCan be toggled with `revealSymbol()` and `hideSymbol()`."
564
+ "text": "Whether the balance symbol is currently displayed.\nCan be toggled with `revealSymbol()` and `hideSymbol()`."
563
565
  },
564
566
  "getter": false,
565
567
  "setter": false,
@@ -579,7 +581,7 @@ export class LidoBalance {
579
581
  "optional": false,
580
582
  "docs": {
581
583
  "tags": [],
582
- "text": "Operation type used to calculate balance values.\r\nSupported: \"count\", \"add\", \"subtract\", etc."
584
+ "text": "Operation type used to calculate balance values.\nSupported: \"count\", \"add\", \"subtract\", etc."
583
585
  },
584
586
  "getter": false,
585
587
  "setter": false,