lido-player 0.0.2-beta-14 → 0.0.2-beta-15-dev

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 (229) hide show
  1. package/LICENSE +21 -21
  2. package/dist/cjs/{decode-BLUeYhas.js → decode-Xh5IDmFh.js} +1 -1
  3. package/dist/cjs/{index-CNWniNnt.js → index-B9AON0kM.js} +206 -86
  4. package/dist/cjs/{index-CS8kGcZo.js → index-Dy19zuTX.js} +1 -1
  5. package/dist/cjs/index.cjs.js +2 -2
  6. package/dist/cjs/lido-avatar_22.cjs.entry.js +73 -50
  7. package/dist/cjs/lido-player.cjs.js +2 -2
  8. package/dist/cjs/loader.cjs.js +2 -2
  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 +2 -2
  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 +9 -9
  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 +1 -1
  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/lido-balance.css +145 -145
  43. package/dist/collection/components/scale/lido-balance.js +13 -13
  44. package/dist/collection/components/shape/lido-shape.css +216 -216
  45. package/dist/collection/components/shape/lido-shape.js +6 -6
  46. package/dist/collection/components/slideFill/lido-slide-fill.css +3 -3
  47. package/dist/collection/components/slideFill/lido-slide-fill.js +13 -13
  48. package/dist/collection/components/text/lido-text.css +53 -53
  49. package/dist/collection/components/text/lido-text.js +29 -5
  50. package/dist/collection/components/trace/lido-trace.css +97 -97
  51. package/dist/collection/components/trace/lido-trace.js +2 -2
  52. package/dist/collection/components/wrap/lido-wrap.css +18 -18
  53. package/dist/collection/components/wrap/lido-wrap.js +6 -6
  54. package/dist/collection/css/animation.css +211 -211
  55. package/dist/collection/css/index.css +312 -312
  56. package/dist/collection/stories/Templates/Fill-Up/fill-up.stories.js +61 -61
  57. package/dist/collection/stories/Templates/LetterPairing/LetterPairing.stories.js +123 -123
  58. package/dist/collection/stories/Templates/RocketGame/rocketGame.stories.js +48 -48
  59. package/dist/collection/stories/Templates/Tag/tagGame.stories.js +39 -39
  60. package/dist/collection/stories/Templates/arrangeLetters/arrangeLetters.stories.js +44 -44
  61. package/dist/collection/stories/Templates/balancing/balancing.stories.js +35 -35
  62. package/dist/collection/stories/Templates/balloonPop/balloonPop.stories.js +38 -38
  63. package/dist/collection/stories/Templates/blender/blender.stories.js +58 -58
  64. package/dist/collection/stories/Templates/bubbleType/bubbleType.stories.js +42 -42
  65. package/dist/collection/stories/Templates/calculator/calculator.stories.js +28 -28
  66. package/dist/collection/stories/Templates/categorize/categorize.stories.js +37 -37
  67. package/dist/collection/stories/Templates/categorize2/categorize2.stories.js +67 -67
  68. package/dist/collection/stories/Templates/checker-block/checkerBlock.stories.js +29 -29
  69. package/dist/collection/stories/Templates/checkerBlock/checkerBlock.stories.js +13 -13
  70. package/dist/collection/stories/Templates/create-sentence/createSentence.stories.js +74 -74
  71. package/dist/collection/stories/Templates/dragAndDrop/drag-drop.stories.js +69 -69
  72. package/dist/collection/stories/Templates/fillAnswer/fill-answer.stories.js +43 -43
  73. package/dist/collection/stories/Templates/fillBlank/fill-blank.stories.js +282 -282
  74. package/dist/collection/stories/Templates/foodJar/food-jar.stories.js +35 -35
  75. package/dist/collection/stories/Templates/grid/grid.stories.js +118 -118
  76. package/dist/collection/stories/Templates/gridGame/grid-game.stories.js +57 -57
  77. package/dist/collection/stories/Templates/imageMatch/imageMatch.stories.js +44 -44
  78. package/dist/collection/stories/Templates/jumpSentence/jumpSentence.stories.js +41 -41
  79. package/dist/collection/stories/Templates/letterboard/letterboard.stories.js +183 -183
  80. package/dist/collection/stories/Templates/makeSentence/make-sentence.stories.js +36 -36
  81. package/dist/collection/stories/Templates/matchBox/matchBox.stories.js +69 -69
  82. package/dist/collection/stories/Templates/matchBox/matchBox2.stories.js +84 -84
  83. package/dist/collection/stories/Templates/matchingCard/matching-card.stories.js +31 -31
  84. package/dist/collection/stories/Templates/multipleOption/mcqWithQuestionImage.stories.js +112 -112
  85. package/dist/collection/stories/Templates/multipleOption/multiple-option.stories.js +47 -47
  86. package/dist/collection/stories/Templates/multiplyBeeds/multiplyBeeds.stories.js +57 -57
  87. package/dist/collection/stories/Templates/nimbleTable/nimbleTable.stories.js +53 -53
  88. package/dist/collection/stories/Templates/numberBoard/numberBoard.stories.js +46 -46
  89. package/dist/collection/stories/Templates/numberBoardTwo/numberBoardTwo.stories.js +45 -45
  90. package/dist/collection/stories/Templates/numberIdentification/numberIdentificationimageTotext.stories.js +56 -56
  91. package/dist/collection/stories/Templates/numberIdentification/numberIdentificationtextTotext.stories.js +53 -53
  92. package/dist/collection/stories/Templates/numberPair/numberPair.stories.js +127 -127
  93. package/dist/collection/stories/Templates/openwindow/openwindow.stories.js +47 -47
  94. package/dist/collection/stories/Templates/openwindow/openwindow2.stories.js +38 -38
  95. package/dist/collection/stories/Templates/order-tractor/order-tractor-ascending-order.stories.js +97 -97
  96. package/dist/collection/stories/Templates/order-tractor/order-tractor.stories.js +90 -90
  97. package/dist/collection/stories/Templates/palEgmaCalculateSum/palEgmaMultiOption.stories.js +63 -63
  98. package/dist/collection/stories/Templates/palEgmaCalculateSum/palEgmaSumTogether.stories.js +45 -45
  99. package/dist/collection/stories/Templates/palEgmaPatternMatching/palEgmaPatternMatching.stories.js +63 -63
  100. package/dist/collection/stories/Templates/palEgmaWordProblem/palEgmaWordProblem.stories.js +79 -79
  101. package/dist/collection/stories/Templates/palEgraInventedSpelling/pal_egra_invented_spelling_schema.stories.js +32 -32
  102. package/dist/collection/stories/Templates/palEgraMCQWithImage/palEgraMCQWithImage.stories.js +42 -42
  103. package/dist/collection/stories/Templates/palEgraOptionWithAudio/palEgraOptionWithAudio.stories.js +63 -63
  104. package/dist/collection/stories/Templates/palEgraStoryMaking/pal_egra_story_making.stories.js +44 -44
  105. package/dist/collection/stories/Templates/palEgraTemplate1/palEgraLetterIdentification.stories.js +34 -34
  106. package/dist/collection/stories/Templates/palEgraWordMatch/palEgraWordMatch.stories.js +52 -52
  107. package/dist/collection/stories/Templates/palEgra_OddOneOut/palEgra_oddOneOut.stories.js +33 -33
  108. package/dist/collection/stories/Templates/palEgra_arrange_pictures/palEgra_arrange_pictures.stories.js +40 -40
  109. package/dist/collection/stories/Templates/palEgra_build_word/palEgra_build_word.stories.js +48 -48
  110. package/dist/collection/stories/Templates/palEgra_word_formation/palEgra_WordFormation.stories.js +48 -48
  111. package/dist/collection/stories/Templates/palStorytale/palStorytale.stories.js +18 -18
  112. package/dist/collection/stories/Templates/phonic-tractor/phonic-tractor.stories.js +44 -44
  113. package/dist/collection/stories/Templates/pictureClues/pictureClues.stories.js +34 -34
  114. package/dist/collection/stories/Templates/pictureWordMatch/pictureWordMatch1.stories.js +36 -36
  115. package/dist/collection/stories/Templates/pictureWordMatch/pictureWordMatch2.stories.js +30 -30
  116. package/dist/collection/stories/Templates/picturemeaning/pictureMeaningCocos.stories.js +20 -20
  117. package/dist/collection/stories/Templates/puzzleGame/puzzleGame.stories.js +17 -17
  118. package/dist/collection/stories/Templates/questionBoard/questionBoard.stories.js +58 -58
  119. package/dist/collection/stories/Templates/quizLiteracy/quizLiteracy.stories.js +50 -50
  120. package/dist/collection/stories/Templates/quizLiteracy/quizLiteracyImageWithText.stories.js +36 -36
  121. package/dist/collection/stories/Templates/quizLiteracy/quizLiteracyImageWord.stories.js +43 -43
  122. package/dist/collection/stories/Templates/quizMaths/quizMaths.stories.js +631 -631
  123. package/dist/collection/stories/Templates/reorder/reorder.stories.js +63 -63
  124. package/dist/collection/stories/Templates/rowBlocks/rowBlocks.stories.js +47 -47
  125. package/dist/collection/stories/Templates/sentenceMatch/sentenceMatch.stories.js +29 -29
  126. package/dist/collection/stories/Templates/sequenceBox/sequenceBox1.stories.js +64 -64
  127. package/dist/collection/stories/Templates/sequenceBox/sequenceBox2.stories.js +62 -62
  128. package/dist/collection/stories/Templates/shapePair/shape-pair.stories.js +106 -106
  129. package/dist/collection/stories/Templates/shapeTractor/shape-tractor.stories.js +50 -50
  130. package/dist/collection/stories/Templates/spellDoor/spellDoor.stories.js +41 -41
  131. package/dist/collection/stories/Templates/storyTale/storyTale.stories.js +39 -39
  132. package/dist/collection/stories/Templates/substraction/substractionWithimg.stories.js +62 -62
  133. package/dist/collection/stories/Templates/substraction/substractionWithoutImg.stories.js +42 -42
  134. package/dist/collection/stories/Templates/sumTogether/sumTogether.stories.js +50 -50
  135. package/dist/collection/stories/Templates/tenBox/tenBox.stories.js +88 -88
  136. package/dist/collection/stories/Templates/total/total.stories.js +28 -28
  137. package/dist/collection/stories/Templates/wordBuilding/wordBuildingwithimg.stories.js +35 -35
  138. package/dist/collection/stories/Templates/wordBuilding/wordBuildingwithoutimg.stories.js +34 -34
  139. package/dist/collection/stories/Templates/writeCard/writeCard.stories.js +31 -31
  140. package/dist/collection/stories/Templates/writeLetter/writeLetter.stories.js +58 -58
  141. package/dist/collection/stories/Templates/writeNumber/writeNumber.stories.js +44 -44
  142. package/dist/collection/stories/Templates/writeSet/writeSet.stories.js +31 -31
  143. package/dist/collection/stories/Templates/writeWord/writeWord.stories.js +34 -34
  144. package/dist/collection/stories/components/flash-card.stories.js +48 -48
  145. package/dist/collection/stories/components/keyboard.stories.js +10 -10
  146. package/dist/collection/stories/components/slider.stories.js +4 -4
  147. package/dist/collection/stories/components/trace.stories.js +5 -5
  148. package/dist/collection/utils/utils.js +16 -10
  149. package/dist/collection/utils/utilsHandlers/animationHandler.js +25 -21
  150. package/dist/collection/utils/utilsHandlers/dragDropHandler.js +8 -8
  151. package/dist/collection/utils/utilsHandlers/highlightHandler.js +54 -54
  152. package/dist/collection/utils/utilsHandlers/lidoCalculatorHandler.js +8 -8
  153. package/dist/collection/utils/utilsHandlers/moveHandler.js +111 -0
  154. package/dist/collection/utils/utilsHandlers/sortHandler.js +10 -10
  155. package/dist/components/index.js +1 -1
  156. package/dist/components/lido-avatar.js +1 -1
  157. package/dist/components/lido-balance.js +1 -1
  158. package/dist/components/lido-calculator.js +1 -1
  159. package/dist/components/lido-canvas.js +1 -1
  160. package/dist/components/lido-cell.js +1 -1
  161. package/dist/components/lido-col.js +1 -1
  162. package/dist/components/lido-container.js +1 -1
  163. package/dist/components/lido-flash-card.js +1 -1
  164. package/dist/components/lido-float.js +1 -1
  165. package/dist/components/lido-home.js +1 -1
  166. package/dist/components/lido-image.js +1 -1
  167. package/dist/components/lido-keyboard.js +1 -1
  168. package/dist/components/lido-math-matrix.js +1 -1
  169. package/dist/components/lido-pos.js +1 -1
  170. package/dist/components/lido-random.js +1 -1
  171. package/dist/components/lido-root.js +1 -1
  172. package/dist/components/lido-row.js +1 -1
  173. package/dist/components/lido-shape.js +1 -1
  174. package/dist/components/lido-slide-fill.js +1 -1
  175. package/dist/components/lido-text.js +1 -1
  176. package/dist/components/lido-trace.js +1 -1
  177. package/dist/components/lido-wrap.js +1 -1
  178. package/dist/components/{p-CCR42e0i.js → p-BE25wHoo.js} +1 -1
  179. package/dist/components/p-BSV5U72F.js +1 -0
  180. package/dist/components/{p-CTlcpv4a.js → p-BfwUqpXc.js} +1 -1
  181. package/dist/components/{p-CgsPIpg0.js → p-Bw-OC9iR.js} +1 -1
  182. package/dist/components/{p-NHusmM9J.js → p-C2p0KZh4.js} +1 -1
  183. package/dist/components/p-C5jvgiPE.js +1 -0
  184. package/dist/components/{p-MkbxS5lW.js → p-C7U1h9gI.js} +1 -1
  185. package/dist/components/{p-C5WmmkI6.js → p-CPYnt0P-.js} +1 -1
  186. package/dist/components/{p-DaMpzrMk.js → p-CS6iRQJh.js} +1 -1
  187. package/dist/components/{p-BeRr8u5m.js → p-CwDTdXe5.js} +1 -1
  188. package/dist/components/{p-CXHPZN3m.js → p-CyGxEcn7.js} +1 -1
  189. package/dist/components/p-D-B1groh.js +1 -0
  190. package/dist/components/{p-CRzTmKDJ.js → p-D-IYWSAa.js} +1 -1
  191. package/dist/components/{p-DbZeFECr.js → p-DGvzMlyn.js} +2 -2
  192. package/dist/components/{p-D4s9ZWCB.js → p-DPAlnts-.js} +1 -1
  193. package/dist/components/{p-CayICx4g.js → p-DYs8s-uh.js} +1 -1
  194. package/dist/components/p-DbR5sNOj.js +1 -0
  195. package/dist/components/{p-BBHM059l.js → p-Sl9R-E6h.js} +1 -1
  196. package/dist/components/p-Uluc7jQ7.js +1 -0
  197. package/dist/components/p-leIEepjl.js +1 -0
  198. package/dist/components/{p-C70ykycD.js → p-useuhkjH.js} +1 -1
  199. package/dist/esm/{decode-DpcU-915.js → decode-C-vVYHke.js} +1 -1
  200. package/dist/esm/{index-Dki_0kla.js → index-BswlHnsY.js} +206 -86
  201. package/dist/esm/{index-Dfj4noku.js → index-Dq-Z8Dx0.js} +1 -1
  202. package/dist/esm/index.js +2 -2
  203. package/dist/esm/lido-avatar_22.entry.js +73 -50
  204. package/dist/esm/lido-player.js +3 -3
  205. package/dist/esm/loader.js +3 -3
  206. package/dist/lido-player/index.esm.js +1 -1
  207. package/dist/lido-player/lido-avatar.css +4 -4
  208. package/dist/lido-player/lido-avatar.tsx +207 -207
  209. package/dist/lido-player/lido-player.css +7 -7
  210. package/dist/lido-player/lido-player.esm.js +1 -1
  211. package/dist/lido-player/p-0l6uR1lH.js +1 -0
  212. package/dist/lido-player/{p-BZv5PD3F.js → p-CYMdg2_E.js} +1 -1
  213. package/dist/lido-player/p-Dq-Z8Dx0.js +2 -0
  214. package/dist/lido-player/{p-476aaf0e.entry.js → p-b2c60372.entry.js} +2 -2
  215. package/dist/lido-player/readme.md +49 -49
  216. package/dist/types/components/text/lido-text.d.ts +4 -0
  217. package/dist/types/components.d.ts +11 -0
  218. package/dist/types/types/json.d.ts +3 -3
  219. package/dist/types/utils/utilsHandlers/moveHandler.d.ts +1 -0
  220. package/package.json +73 -73
  221. package/readme.md +113 -113
  222. package/dist/components/p-CwIlwnQk.js +0 -1
  223. package/dist/components/p-DLyacZap.js +0 -1
  224. package/dist/components/p-DONbWJGn.js +0 -1
  225. package/dist/components/p-DVTigdH_.js +0 -1
  226. package/dist/components/p-DbDgJi-A.js +0 -1
  227. package/dist/components/p-fBjZoiLo.js +0 -1
  228. package/dist/lido-player/p-Dfj4noku.js +0 -2
  229. package/dist/lido-player/p-pxe3GMFr.js +0 -1
@@ -1,49 +1,49 @@
1
- # lido-avatar
2
-
3
-
4
-
5
- <!-- Auto Generated Below -->
6
-
7
-
8
- ## Properties
9
-
10
- | Property | Attribute | Description | Type | Default |
11
- | -------------- | --------------- | ----------------------------------------------------------------------------------------------------------------------- | --------- | -------- |
12
- | `ariaHidden` | `aria-hidden` | The ARIA hidden attribute of the container. Used for accessibility to hide the element. | `string` | `''` |
13
- | `ariaLabel` | `aria-label` | The ARIA label of the container. Used for accessibility to indicate the purpose of the element. | `string` | `''` |
14
- | `audio` | `audio` | Audio file URL or identifier for sound that will be associated with the column. | `string` | `''` |
15
- | `bgColor` | `bg-color` | The background color of the column (CSS color value, e.g., '#FFFFFF', 'blue'). | `string` | `''` |
16
- | `delayVisible` | `delay-visible` | Delay in milliseconds to make the cell visible after mount. | `string` | `''` |
17
- | `height` | `height` | The height of the column component (CSS value, e.g., '100px', '50%'). | `string` | `''` |
18
- | `id` | `id` | The unique identifier for the column component. | `string` | `''` |
19
- | `onCorrect` | `on-correct` | Event handler for a Correct matching action, which can be used to hide the column or trigger other custom logic. | `string` | `''` |
20
- | `onEntry` | `on-entry` | Event handler for when the column is entered, which can be used to initiate specific behaviors on entry. | `string` | `''` |
21
- | `onInCorrect` | `on-in-correct` | Event handler for an Incorrect matching action, which can be used to trigger custom logic when the action is incorrect. | `string` | `''` |
22
- | `onTouch` | `on-touch` | Event handler for a touch event, where a custom function can be triggered when the column is touched. | `string` | `''` |
23
- | `src` | `src` | Source URL of the Rive (.riv) file | `string` | `''` |
24
- | `tabIndex` | `tab-index` | The tab index value, used to set the tab order of the column for keyboard navigation. | `number` | `0` |
25
- | `type` | `type` | Defines the type of the column, which can be used for styling or specific logic handling. | `string` | `''` |
26
- | `value` | `value` | The value associated with the column component. Typically used for internal logic. | `string` | `''` |
27
- | `visible` | `visible` | A boolean that controls whether the column is visible (`true`) or hidden (`false`). | `boolean` | `false` |
28
- | `width` | `width` | The width of the column component (CSS value, e.g., '100px', '50%'). | `string` | `'auto'` |
29
- | `x` | `x` | The x-coordinate (left position) of the column within its container (CSS value, e.g., '10px', '5vw'). | `string` | `'0px'` |
30
- | `y` | `y` | The y-coordinate (top position) of the column within its container (CSS value, e.g., '10px', '5vh'). | `string` | `'0px'` |
31
- | `z` | `z` | The z-index of the column to control stacking order. | `string` | `'0'` |
32
-
33
-
34
- ## Dependencies
35
-
36
- ### Used by
37
-
38
- - [lido-home](../home)
39
-
40
- ### Graph
41
- ```mermaid
42
- graph TD;
43
- lido-home --> lido-avatar
44
- style lido-avatar fill:#f9f,stroke:#333,stroke-width:4px
45
- ```
46
-
47
- ----------------------------------------------
48
-
49
- *Built with [StencilJS](https://stenciljs.com/)*
1
+ # lido-avatar
2
+
3
+
4
+
5
+ <!-- Auto Generated Below -->
6
+
7
+
8
+ ## Properties
9
+
10
+ | Property | Attribute | Description | Type | Default |
11
+ | -------------- | --------------- | ----------------------------------------------------------------------------------------------------------------------- | --------- | -------- |
12
+ | `ariaHidden` | `aria-hidden` | The ARIA hidden attribute of the container. Used for accessibility to hide the element. | `string` | `''` |
13
+ | `ariaLabel` | `aria-label` | The ARIA label of the container. Used for accessibility to indicate the purpose of the element. | `string` | `''` |
14
+ | `audio` | `audio` | Audio file URL or identifier for sound that will be associated with the column. | `string` | `''` |
15
+ | `bgColor` | `bg-color` | The background color of the column (CSS color value, e.g., '#FFFFFF', 'blue'). | `string` | `''` |
16
+ | `delayVisible` | `delay-visible` | Delay in milliseconds to make the cell visible after mount. | `string` | `''` |
17
+ | `height` | `height` | The height of the column component (CSS value, e.g., '100px', '50%'). | `string` | `''` |
18
+ | `id` | `id` | The unique identifier for the column component. | `string` | `''` |
19
+ | `onCorrect` | `on-correct` | Event handler for a Correct matching action, which can be used to hide the column or trigger other custom logic. | `string` | `''` |
20
+ | `onEntry` | `on-entry` | Event handler for when the column is entered, which can be used to initiate specific behaviors on entry. | `string` | `''` |
21
+ | `onInCorrect` | `on-in-correct` | Event handler for an Incorrect matching action, which can be used to trigger custom logic when the action is incorrect. | `string` | `''` |
22
+ | `onTouch` | `on-touch` | Event handler for a touch event, where a custom function can be triggered when the column is touched. | `string` | `''` |
23
+ | `src` | `src` | Source URL of the Rive (.riv) file | `string` | `''` |
24
+ | `tabIndex` | `tab-index` | The tab index value, used to set the tab order of the column for keyboard navigation. | `number` | `0` |
25
+ | `type` | `type` | Defines the type of the column, which can be used for styling or specific logic handling. | `string` | `''` |
26
+ | `value` | `value` | The value associated with the column component. Typically used for internal logic. | `string` | `''` |
27
+ | `visible` | `visible` | A boolean that controls whether the column is visible (`true`) or hidden (`false`). | `boolean` | `false` |
28
+ | `width` | `width` | The width of the column component (CSS value, e.g., '100px', '50%'). | `string` | `'auto'` |
29
+ | `x` | `x` | The x-coordinate (left position) of the column within its container (CSS value, e.g., '10px', '5vw'). | `string` | `'0px'` |
30
+ | `y` | `y` | The y-coordinate (top position) of the column within its container (CSS value, e.g., '10px', '5vh'). | `string` | `'0px'` |
31
+ | `z` | `z` | The z-index of the column to control stacking order. | `string` | `'0'` |
32
+
33
+
34
+ ## Dependencies
35
+
36
+ ### Used by
37
+
38
+ - [lido-home](../home)
39
+
40
+ ### Graph
41
+ ```mermaid
42
+ graph TD;
43
+ lido-home --> lido-avatar
44
+ style lido-avatar fill:#f9f,stroke:#333,stroke-width:4px
45
+ ```
46
+
47
+ ----------------------------------------------
48
+
49
+ *Built with [StencilJS](https://stenciljs.com/)*
@@ -1,89 +1,89 @@
1
- #lidoCalculator {
2
- border-radius: 19px;
3
- border: 5px solid #029A9A;
4
- position: relative;
5
- display: flex;
6
- flex-direction: column;
7
- padding: 2%;
8
- box-sizing: border-box;
9
- }
10
- .lido-calculator-btn-special{
11
- --btn-bg-color: #014D4D !important;
12
- background-color:#014D4D !important;
13
- --btn-shadow-color: #0a2f2f !important;
14
- }
15
-
16
- .lido-calculator-btn-default {
17
- --btn-bg-color: #029A9A !important;
18
- background-color: #029A9A !important;
19
- color: #000;
20
- --btn-shadow-color: #0f4242 !important ;
21
- }
22
-
23
- #lido-calculator-penIcon {
24
- --btn-bg-color: #FB7038 !important;
25
- --btn-shadow-px: 0 8px 0 !important;
26
- --btn-shadow-color: #D74B12 !important;
27
- border-radius: 5px !important;
28
- }
29
-
30
- .lido-calculator-displayParent{
31
- width: 89%;
32
- height: 107px;
33
- background-color: rgb(68, 186, 186);;
34
- border-radius: 5px;
35
- margin: 14px auto 17px auto;
36
- overflow: hidden;
37
- display: flex;
38
- align-items: end;
39
- }
40
-
41
- .lido-calculator-display {
42
- width: 97%;
43
- height: 94px;
44
- background: #029A9A;
45
- color: #fff;
46
- text-align: right;
47
- display: flex;
48
- justify-content: flex-end;
49
- align-items: center;
50
- font-size: 72px;
51
- font-weight: 700;
52
- font-family: 'Baloo Bhai 2', serif;
53
- border-radius: 5px 0px 0px 5px;
54
- box-sizing: border-box;
55
- margin: 0 0px -6px auto;
56
- }
57
-
58
- .lido-calculator-buttons {
59
- flex: 1;
60
- display: grid;
61
- grid-template-columns: repeat(3, 1fr);
62
- grid-auto-rows: 1fr;
63
- gap: 0%;
64
- width: 100%;
65
- justify-items: center;
66
- align-items: center;
67
- position: relative;
68
- top: -1%;
69
- }
70
- .lido-calculator-buttons lido-text {
71
- display: flex !important;
72
- justify-content: center;
73
- align-items: center;
74
- width: 100px !important;
75
- height: 88px !important;
76
- font-size: 80px !important;
77
- font-weight: 700 !important;
78
- color: #fff;
79
- border-radius: 5px !important;
80
- cursor: pointer;
81
- text-align: center;
82
- line-height: 1;
83
- box-sizing: border-box;
84
- transition: transform 0.1s;
85
- }
86
- .lido-calculator-buttons lido-text:active {
87
- transform: scale(0.95);
88
- }
89
-
1
+ #lidoCalculator {
2
+ border-radius: 19px;
3
+ border: 5px solid #029A9A;
4
+ position: relative;
5
+ display: flex;
6
+ flex-direction: column;
7
+ padding: 2%;
8
+ box-sizing: border-box;
9
+ }
10
+ .lido-calculator-btn-special{
11
+ --btn-bg-color: #014D4D !important;
12
+ background-color:#014D4D !important;
13
+ --btn-shadow-color: #0a2f2f !important;
14
+ }
15
+
16
+ .lido-calculator-btn-default {
17
+ --btn-bg-color: #029A9A !important;
18
+ background-color: #029A9A !important;
19
+ color: #000;
20
+ --btn-shadow-color: #0f4242 !important ;
21
+ }
22
+
23
+ #lido-calculator-penIcon {
24
+ --btn-bg-color: #FB7038 !important;
25
+ --btn-shadow-px: 0 8px 0 !important;
26
+ --btn-shadow-color: #D74B12 !important;
27
+ border-radius: 5px !important;
28
+ }
29
+
30
+ .lido-calculator-displayParent{
31
+ width: 89%;
32
+ height: 107px;
33
+ background-color: rgb(68, 186, 186);;
34
+ border-radius: 5px;
35
+ margin: 14px auto 17px auto;
36
+ overflow: hidden;
37
+ display: flex;
38
+ align-items: end;
39
+ }
40
+
41
+ .lido-calculator-display {
42
+ width: 97%;
43
+ height: 94px;
44
+ background: #029A9A;
45
+ color: #fff;
46
+ text-align: right;
47
+ display: flex;
48
+ justify-content: flex-end;
49
+ align-items: center;
50
+ font-size: 72px;
51
+ font-weight: 700;
52
+ font-family: 'Baloo Bhai 2', serif;
53
+ border-radius: 5px 0px 0px 5px;
54
+ box-sizing: border-box;
55
+ margin: 0 0px -6px auto;
56
+ }
57
+
58
+ .lido-calculator-buttons {
59
+ flex: 1;
60
+ display: grid;
61
+ grid-template-columns: repeat(3, 1fr);
62
+ grid-auto-rows: 1fr;
63
+ gap: 0%;
64
+ width: 100%;
65
+ justify-items: center;
66
+ align-items: center;
67
+ position: relative;
68
+ top: -1%;
69
+ }
70
+ .lido-calculator-buttons lido-text {
71
+ display: flex !important;
72
+ justify-content: center;
73
+ align-items: center;
74
+ width: 100px !important;
75
+ height: 88px !important;
76
+ font-size: 80px !important;
77
+ font-weight: 700 !important;
78
+ color: #fff;
79
+ border-radius: 5px !important;
80
+ cursor: pointer;
81
+ text-align: center;
82
+ line-height: 1;
83
+ box-sizing: border-box;
84
+ transition: transform 0.1s;
85
+ }
86
+ .lido-calculator-buttons lido-text:active {
87
+ transform: scale(0.95);
88
+ }
89
+
@@ -182,7 +182,7 @@ export class LidoCalculator {
182
182
  }
183
183
  render() {
184
184
  const numbers = ['1', '2', '3', '4', '5', '6', '7', '8', '9', '←', '0', 'OK'];
185
- return (h(Host, { key: '31b6e68af8ff06dd33c65b47018fb7e39e49a9bf', onEntry: this.onEntry, id: "lidoCalculator", style: { width: this.width, height: this.height, backgroundColor: this.bgColor, left: this.x, top: this.y } }, h("lido-cell", { key: '95fdc2b980c2dc020b86409a48fd2605349aba04', visible: "true", height: "94px", width: "60px" }, h("lido-text", { key: '85535797b5642a6f44c872ca88807cfbe5f7422f', visible: "true", id: "lido-calculator-penIcon", type: "click", height: "80px", x: "204%", width: "89px", onEntry: "this.position='relative';", class: "top-icon" }, h("img", { key: 'fbe08c53b97fd65a09ad43808184a40024654abb', src: convertUrlToRelative(this.penIcon), alt: "pen", style: { width: '100%', height: '100%' } }))), h("div", { key: 'f4a0fd8e6879013e394467dccd0f8c6f6f41309e', class: "lido-calculator-displayParent" }, h("div", { key: 'c132ae40e0cb1f387e6bf2184f51e4f1a750a681', class: "lido-calculator-display" }, this.displayValue)), h("div", { key: 'a9e01475d5fba0b54fc62150972ab3e48c4d1cf2', class: "lido-calculator-buttons" }, numbers.map((num, i) => (h("lido-text", { id: `btn-${i}`, string: num, visible: "true", type: "click", class: {
185
+ return (h(Host, { key: '63cfc3e353a89b76ad809a921cc7b51ce6d06e93', onEntry: this.onEntry, id: "lidoCalculator", style: { width: this.width, height: this.height, backgroundColor: this.bgColor, left: this.x, top: this.y } }, h("lido-cell", { key: '66cc572079209533f8fd4f6c4ca76fdb9435b3b8', visible: "true", height: "94px", width: "60px" }, h("lido-text", { key: 'aca3392da8c74ab136268296f2ff584bf5cacd61', visible: "true", id: "lido-calculator-penIcon", type: "click", height: "80px", x: "204%", width: "89px", onEntry: "this.position='relative';", class: "top-icon" }, h("img", { key: '46275d788f7bb3132e657d4902d4471cc7928b39', src: convertUrlToRelative(this.penIcon), alt: "pen", style: { width: '100%', height: '100%' } }))), h("div", { key: '5adb6fbdefa7d9d8c4bd2ada68f580c8c1af298e', class: "lido-calculator-displayParent" }, h("div", { key: 'cca5a9c232f9d4dfa31e193e8d9eaddcd83a5052', class: "lido-calculator-display" }, this.displayValue)), h("div", { key: '64b70b100e8165dfe6d0dd9522b0362f12856a9e', class: "lido-calculator-buttons" }, numbers.map((num, i) => (h("lido-text", { id: `btn-${i}`, string: num, visible: "true", type: "click", class: {
186
186
  'lido-calculator-btn-special': num === '←' || num === 'OK',
187
187
  'lido-calculator-btn-default': num !== '←' && num !== 'OK'
188
188
  }, onClick: () => this.handleClick(num) }))))));
@@ -232,7 +232,7 @@ export class LidoCalculator {
232
232
  "optional": false,
233
233
  "docs": {
234
234
  "tags": [],
235
- "text": "Controls component visibility.\nAccepts boolean (`true`/`false`) or string (\"true\"/\"false\")."
235
+ "text": "Controls component visibility.\r\nAccepts boolean (`true`/`false`) or string (\"true\"/\"false\")."
236
236
  },
237
237
  "getter": false,
238
238
  "setter": false,
@@ -1,33 +1,33 @@
1
- :host {
2
- box-sizing: border-box;
3
- }
4
-
5
- .lido-canvas {
6
- background: transparent;
7
- border: none;
8
- border-radius: 0;
9
- overflow: hidden;
10
- box-sizing: border-box;
11
- }
12
- #lido-exit-button {
13
- padding: 6px 14px;
14
- border: none;
15
- background:transparent;
16
- color: #fff;
17
- border-radius: 6px;
18
- cursor: pointer;
19
- font-size: 14px;
20
- position: absolute;
21
- top: 0;
22
- right: 0;
23
- z-index: 15;
24
- }
25
-
26
- canvas {
27
- /* flex: 1; */
28
- touch-action: none;
29
- display: block;
30
- width: 100%;
31
- height: 100%;
32
- z-index: 10;
33
- }
1
+ :host {
2
+ box-sizing: border-box;
3
+ }
4
+
5
+ .lido-canvas {
6
+ background: transparent;
7
+ border: none;
8
+ border-radius: 0;
9
+ overflow: hidden;
10
+ box-sizing: border-box;
11
+ }
12
+ #lido-exit-button {
13
+ padding: 6px 14px;
14
+ border: none;
15
+ background:transparent;
16
+ color: #fff;
17
+ border-radius: 6px;
18
+ cursor: pointer;
19
+ font-size: 14px;
20
+ position: absolute;
21
+ top: 0;
22
+ right: 0;
23
+ z-index: 15;
24
+ }
25
+
26
+ canvas {
27
+ /* flex: 1; */
28
+ touch-action: none;
29
+ display: block;
30
+ width: 100%;
31
+ height: 100%;
32
+ z-index: 10;
33
+ }
@@ -102,7 +102,7 @@ export class LidoCanvas {
102
102
  this.ctx.clearRect(0, 0, this.canvas.width, this.canvas.height);
103
103
  }
104
104
  render() {
105
- return (h(Host, { key: 'ca88c99317fe079d25b16410d78cbd63e13d712c', id: "lido-canvas", class: "lido-canvas", style: this.style }, h("button", { key: '3e1085ff4be21ca281483367a41b51ba4ff49736', id: "lido-exit-button", onClick: () => this.clearCanvas() }), h("canvas", { key: '9c1f485a2a84b2da9468e8b83f1962cce7852efc', id: "lido-canvas" })));
105
+ return (h(Host, { key: '6bb47f06656ce667d23236e9f3c3a8f383885a43', id: "lido-canvas", class: "lido-canvas", style: this.style }, h("button", { key: 'fd0d1217bda63071fbf6496c2538c2a944b14181', id: "lido-exit-button", onClick: () => this.clearCanvas() }), h("canvas", { key: 'ed0333972bb7ce0fc4e14c81bb466ea895ce65e0', id: "lido-canvas" })));
106
106
  }
107
107
  static get is() { return "lido-canvas"; }
108
108
  static get encapsulation() { return "shadow"; }
@@ -1,100 +1,100 @@
1
- .lido-col {
2
- /* position: absolute; */
3
- top: var(--y, 0);
4
- left: var(--x, 0);
5
- height: var(--height, 100%);
6
- width: var(--width, 100%);
7
- background-color: var(--bgColor, #eeeeee);
8
- /* position: relative; */
9
- padding: 15px;
10
- border-radius: 10px;
11
- display: flex;
12
- justify-content: space-around;
13
- flex-direction: column;
14
- align-items: center;
15
-
16
- }
17
-
18
- .lido-col > * {
19
- /* position: relative; */
20
- }
21
-
22
- .lido-row {
23
- display: flex;
24
- justify-content: space-around;
25
- align-items: center;
26
- /* position: absolute; */
27
- }
28
-
29
- .lido-row > * {
30
- /* position: relative; */
31
- }
32
-
33
- .lido-wrap {
34
- display: grid;
35
- grid-gap: 10px;
36
- grid-template-columns: repeat(auto-fill, minmax(186px, auto));
37
- }
38
-
39
- .lido-wrap > * {
40
- padding: 10px;
41
- /* background-color: var(--child-bg-color, #f0f0f0); */
42
- box-sizing: border-box;
43
- }
44
-
45
- .lido-flex {
46
- display: flex;
47
- flex-wrap: wrap;
48
- align-content: flex-start;
49
- gap: 10px;
50
- }
51
-
52
- .lido-pos {
53
- top: var(--y, 0);
54
- left: var(--x, 0);
55
- height: var(--height, 100%);
56
- width: var(--width, 100%);
57
- background-color: var(--bgColor, #eeeeee);
58
- display: flex;
59
- justify-content: space-around;
60
- flex-direction: column;
61
- position: fixed;
62
- }
63
-
64
- .lido-pos > * {
65
- position: absolute;
66
- }
67
-
68
- .lido-random {
69
- position: relative; /* Ensures children position within this box */
70
- width: 100%;
71
- height: 100%;
72
- }
73
-
74
- .lido-random > * {
75
- position: absolute;
76
- }
77
-
78
- /*Scrollbar Width */
79
- .lido-col::-webkit-scrollbar,
80
- .lido-wrap::-webkit-scrollbar,
81
- .lido-flex::-webkit-scrollbar {
82
- width: var(--scrollbar-width);
83
- height: var(--scrollbar-width);
84
- }
85
-
86
- .lido-col::-webkit-scrollbar-thumb,
87
- .lido-wrap::-webkit-scrollbar-thumb,
88
- .lido-flex::-webkit-scrollbar-thumb {
89
- background-color: #888;
90
- border-radius: 10px;
91
- border: 3px solid transparent;
92
- background-clip: content-box;
93
- }
94
-
95
- .lido-col::-webkit-scrollbar-track,
96
- .lido-wrap::-webkit-scrollbar-track,
97
- .lido-flex::-webkit-scrollbar-track {
98
- background: #f1f1f1;
99
- }
100
-
1
+ .lido-col {
2
+ /* position: absolute; */
3
+ top: var(--y, 0);
4
+ left: var(--x, 0);
5
+ height: var(--height, 100%);
6
+ width: var(--width, 100%);
7
+ background-color: var(--bgColor, #eeeeee);
8
+ /* position: relative; */
9
+ padding: 15px;
10
+ border-radius: 10px;
11
+ display: flex;
12
+ justify-content: space-around;
13
+ flex-direction: column;
14
+ align-items: center;
15
+
16
+ }
17
+
18
+ .lido-col > * {
19
+ /* position: relative; */
20
+ }
21
+
22
+ .lido-row {
23
+ display: flex;
24
+ justify-content: space-around;
25
+ align-items: center;
26
+ /* position: absolute; */
27
+ }
28
+
29
+ .lido-row > * {
30
+ /* position: relative; */
31
+ }
32
+
33
+ .lido-wrap {
34
+ display: grid;
35
+ grid-gap: 10px;
36
+ grid-template-columns: repeat(auto-fill, minmax(186px, auto));
37
+ }
38
+
39
+ .lido-wrap > * {
40
+ padding: 10px;
41
+ /* background-color: var(--child-bg-color, #f0f0f0); */
42
+ box-sizing: border-box;
43
+ }
44
+
45
+ .lido-flex {
46
+ display: flex;
47
+ flex-wrap: wrap;
48
+ align-content: flex-start;
49
+ gap: 10px;
50
+ }
51
+
52
+ .lido-pos {
53
+ top: var(--y, 0);
54
+ left: var(--x, 0);
55
+ height: var(--height, 100%);
56
+ width: var(--width, 100%);
57
+ background-color: var(--bgColor, #eeeeee);
58
+ display: flex;
59
+ justify-content: space-around;
60
+ flex-direction: column;
61
+ position: fixed;
62
+ }
63
+
64
+ .lido-pos > * {
65
+ position: absolute;
66
+ }
67
+
68
+ .lido-random {
69
+ position: relative; /* Ensures children position within this box */
70
+ width: 100%;
71
+ height: 100%;
72
+ }
73
+
74
+ .lido-random > * {
75
+ position: absolute;
76
+ }
77
+
78
+ /*Scrollbar Width */
79
+ .lido-col::-webkit-scrollbar,
80
+ .lido-wrap::-webkit-scrollbar,
81
+ .lido-flex::-webkit-scrollbar {
82
+ width: var(--scrollbar-width);
83
+ height: var(--scrollbar-width);
84
+ }
85
+
86
+ .lido-col::-webkit-scrollbar-thumb,
87
+ .lido-wrap::-webkit-scrollbar-thumb,
88
+ .lido-flex::-webkit-scrollbar-thumb {
89
+ background-color: #888;
90
+ border-radius: 10px;
91
+ border: 3px solid transparent;
92
+ background-clip: content-box;
93
+ }
94
+
95
+ .lido-col::-webkit-scrollbar-track,
96
+ .lido-wrap::-webkit-scrollbar-track,
97
+ .lido-flex::-webkit-scrollbar-track {
98
+ background: #f1f1f1;
99
+ }
100
+