lido-player 0.0.2-alpha-50-dev → 0.0.2-alpha-51-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.
- package/LICENSE +21 -21
- package/dist/cjs/{index-6a69c33a.js → index-baff5c15.js} +48 -14
- package/dist/cjs/index.cjs.js +2 -2
- package/dist/cjs/{lido-avatar_21.cjs.entry.js → lido-avatar_22.cjs.entry.js} +3043 -162
- package/dist/cjs/lido-player.cjs.js +2 -2
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/{utils-079a5e7d.js → utils-dc02d753.js} +150 -95
- package/dist/collection/collection-manifest.json +1 -0
- package/dist/collection/components/avatar/lido-avatar.css +4 -4
- package/dist/collection/components/avatar/lido-avatar.js +1 -1
- package/dist/collection/components/calculator/lido-calculator.css +87 -87
- package/dist/collection/components/calculator/lido-calculator.js +14 -8
- package/dist/collection/components/canvas/lido-canvas.css +38 -0
- package/dist/collection/components/canvas/lido-canvas.js +220 -0
- package/dist/collection/components/cell/lido-cell.css +100 -100
- package/dist/collection/components/cell/lido-cell.js +12 -12
- package/dist/collection/components/column/lido-col.css +19 -19
- package/dist/collection/components/column/lido-col.js +6 -6
- package/dist/collection/components/container/lido-container.css +10 -10
- package/dist/collection/components/container/lido-container.js +70 -8
- package/dist/collection/components/flashCard/lido-flash-card.css +28 -28
- package/dist/collection/components/flashCard/lido-flash-card.js +4 -4
- package/dist/collection/components/float/lido-float.css +30 -30
- package/dist/collection/components/float/lido-float.js +2 -2
- package/dist/collection/components/home/lido-home.css +278 -278
- package/dist/collection/components/home/lido-home.js +92 -12
- package/dist/collection/components/image/lido-image.css +17 -17
- package/dist/collection/components/image/lido-image.js +6 -6
- package/dist/collection/components/keyboard/lido-keyboard.css +38 -38
- package/dist/collection/components/keyboard/lido-keyboard.js +3 -3
- package/dist/collection/components/mathMatrix/lido-math-matrix.css +56 -56
- package/dist/collection/components/mathMatrix/lido-math-matrix.js +56 -2
- package/dist/collection/components/position/lido-pos.css +16 -16
- package/dist/collection/components/position/lido-pos.js +2 -2
- package/dist/collection/components/random/lido-random.css +8 -8
- package/dist/collection/components/random/lido-random.js +2 -2
- package/dist/collection/components/root/lido-root.js +42 -6
- package/dist/collection/components/row/lido-row.css +10 -10
- package/dist/collection/components/row/lido-row.js +6 -6
- package/dist/collection/components/scale/lido-balance.css +145 -114
- package/dist/collection/components/scale/lido-balance.js +17 -17
- package/dist/collection/components/shape/lido-shape.css +96 -96
- package/dist/collection/components/shape/lido-shape.js +5 -5
- package/dist/collection/components/slideFill/lido-slide-fill.css +3 -3
- package/dist/collection/components/slideFill/lido-slide-fill.js +13 -13
- package/dist/collection/components/text/lido-text.css +53 -53
- package/dist/collection/components/text/lido-text.js +6 -5
- package/dist/collection/components/trace/lido-trace.css +97 -97
- package/dist/collection/components/trace/lido-trace.js +2 -2
- package/dist/collection/components/wrap/lido-wrap.css +18 -18
- package/dist/collection/components/wrap/lido-wrap.js +6 -6
- package/dist/collection/css/animation.css +194 -194
- package/dist/collection/css/index.css +277 -277
- package/dist/collection/stories/Templates/Fill-Up/fill-up.stories.js +60 -60
- package/dist/collection/stories/Templates/LetterPairing/LetterPairing.stories.js +123 -123
- package/dist/collection/stories/Templates/RocketGame/rocketGame.stories.js +55 -48
- package/dist/collection/stories/Templates/Tag/tagGame.stories.js +29 -29
- package/dist/collection/stories/Templates/arrangeLetters/arrangeLetters.stories.js +42 -42
- package/dist/collection/stories/Templates/balancing/balancing.stories.js +37 -31
- package/dist/collection/stories/Templates/balloonPop/balloonPop.stories.js +38 -38
- package/dist/collection/stories/Templates/bubbleType/bubbleType.stories.js +42 -42
- package/dist/collection/stories/Templates/calculator/calculator.stories.js +48 -0
- package/dist/collection/stories/Templates/categorize/categorize.stories.js +37 -37
- package/dist/collection/stories/Templates/categorize2/categorize2.stories.js +67 -67
- package/dist/collection/stories/Templates/checker-block/checkerBlock.stories.js +28 -22
- package/dist/collection/stories/Templates/checkerBlock/checkerBlock.stories.js +13 -13
- package/dist/collection/stories/Templates/create-sentence/createSentence.stories.js +74 -74
- package/dist/collection/stories/Templates/dragAndDrop/drag-drop.stories.js +69 -69
- package/dist/collection/stories/Templates/fillAnswer/fill-answer.stories.js +37 -37
- package/dist/collection/stories/Templates/fillBlank/fill-blank.stories.js +282 -282
- package/dist/collection/stories/Templates/foodJar/food-jar.stories.js +35 -35
- package/dist/collection/stories/Templates/grid/grid.stories.js +118 -118
- package/dist/collection/stories/Templates/gridGame/grid-game.stories.js +57 -57
- package/dist/collection/stories/Templates/jumpSentence/jumpSentence.stories.js +41 -41
- package/dist/collection/stories/Templates/letterboard/letterboard.stories.js +183 -183
- package/dist/collection/stories/Templates/makeSentence/make-sentence.stories.js +36 -36
- package/dist/collection/stories/Templates/matchBox/matchBox.stories.js +69 -69
- package/dist/collection/stories/Templates/matchBox/matchBox2.stories.js +54 -54
- package/dist/collection/stories/Templates/matchingCard/matching-card.stories.js +23 -23
- package/dist/collection/stories/Templates/multipleOption/mcqWithQuestionImage.stories.js +112 -112
- package/dist/collection/stories/Templates/multipleOption/multiple-option.stories.js +47 -47
- package/dist/collection/stories/Templates/multiplyBeeds/multiplyBeeds.stories.js +32 -28
- package/dist/collection/stories/Templates/nimbleTable/nimbleTable.stories.js +56 -54
- package/dist/collection/stories/Templates/numberBoard/numberBoard.stories.js +56 -45
- package/dist/collection/stories/Templates/numberBoardTwo/numberBoardTwo.stories.js +38 -38
- package/dist/collection/stories/Templates/numberPair/numberPair.stories.js +131 -127
- package/dist/collection/stories/Templates/openwindow/openwindow.stories.js +53 -49
- package/dist/collection/stories/Templates/openwindow/openwindow2.stories.js +44 -40
- package/dist/collection/stories/Templates/order-tractor/order-tractor-ascending-order.stories.js +96 -96
- package/dist/collection/stories/Templates/order-tractor/order-tractor.stories.js +90 -90
- package/dist/collection/stories/Templates/phonic-tractor/phonic-tractor.stories.js +47 -45
- package/dist/collection/stories/Templates/picturemeaning/pictureMeaningCocos.stories.js +20 -20
- package/dist/collection/stories/Templates/puzzleGame/puzzleGame.stories.js +17 -17
- package/dist/collection/stories/Templates/questionBoard/questionBoard.stories.js +62 -58
- package/dist/collection/stories/Templates/quizLiteracy/quizLiteracy.stories.js +50 -50
- package/dist/collection/stories/Templates/quizLiteracy/quizLiteracyImageWithText.stories.js +36 -36
- package/dist/collection/stories/Templates/quizLiteracy/quizLiteracyImageWord.stories.js +43 -43
- package/dist/collection/stories/Templates/reorder/reorder.stories.js +63 -63
- package/dist/collection/stories/Templates/rowBlocks/rowBlocks.stories.js +52 -48
- package/dist/collection/stories/Templates/sequenceBox/sequenceBox1.stories.js +65 -61
- package/dist/collection/stories/Templates/sequenceBox/sequenceBox2.stories.js +62 -58
- package/dist/collection/stories/Templates/shapePair/shape-pair.stories.js +111 -107
- package/dist/collection/stories/Templates/shapeTractor/shape-tractor.stories.js +46 -46
- package/dist/collection/stories/Templates/spellDoor/spellDoor.stories.js +41 -41
- package/dist/collection/stories/Templates/storyTale/storyTale.stories.js +39 -39
- package/dist/collection/stories/Templates/sumTogether/sumTogether.stories.js +51 -47
- package/dist/collection/stories/Templates/total/total.stories.js +27 -27
- package/dist/collection/stories/Templates/writeCard/writeCard.stories.js +35 -31
- package/dist/collection/stories/Templates/writeLetter/writeLetter.stories.js +62 -58
- package/dist/collection/stories/Templates/writeNumber/writeNumber.stories.js +44 -40
- package/dist/collection/stories/Templates/writeSet/writeSet.stories.js +36 -32
- package/dist/collection/stories/Templates/writeWord/writeWord.stories.js +37 -33
- package/dist/collection/stories/components/flash-card.stories.js +48 -48
- package/dist/collection/stories/components/keyboard.stories.js +10 -10
- package/dist/collection/stories/components/slider.stories.js +4 -4
- package/dist/collection/stories/components/trace.stories.js +5 -5
- package/dist/collection/utils/audioPlayer.js +43 -6
- package/dist/collection/utils/constants.js +1 -0
- package/dist/collection/utils/i18n.js +36 -0
- package/dist/collection/utils/utils.js +36 -29
- package/dist/collection/utils/utilsHandlers/clickHandler.js +5 -1
- package/dist/collection/utils/utilsHandlers/dragDropHandler.js +17 -9
- package/dist/collection/utils/utilsHandlers/highlightHandler.js +54 -54
- package/dist/collection/utils/utilsHandlers/lidoBalanceHandler.js +2 -2
- package/dist/collection/utils/utilsHandlers/lidoCalculatorHandler.js +9 -9
- package/dist/collection/utils/utilsHandlers/sortHandler.js +10 -10
- package/dist/components/index.js +1 -1
- package/dist/components/lido-avatar.js +1 -1
- package/dist/components/lido-balance.js +1 -1
- package/dist/components/lido-calculator.js +1 -1
- package/dist/components/lido-canvas.d.ts +11 -0
- package/dist/components/lido-canvas.js +6 -0
- package/dist/components/lido-cell.js +1 -1
- package/dist/components/lido-col.js +1 -1
- package/dist/components/lido-container.js +1 -1
- package/dist/components/lido-flash-card.js +1 -1
- package/dist/components/lido-float.js +1 -1
- package/dist/components/lido-home.js +1 -1
- package/dist/components/lido-image.js +1 -1
- package/dist/components/lido-keyboard.js +1 -1
- package/dist/components/lido-math-matrix.js +1 -1
- package/dist/components/lido-pos.js +1 -1
- package/dist/components/lido-random.js +1 -1
- package/dist/components/lido-root.js +49 -25
- package/dist/components/lido-row.js +1 -1
- package/dist/components/lido-shape.js +1 -1
- package/dist/components/lido-slide-fill.js +1 -1
- package/dist/components/lido-text.js +1 -1
- package/dist/components/lido-trace.js +1 -1
- package/dist/components/lido-wrap.js +1 -1
- package/dist/components/{p-73e31a86.js → p-04e904b5.js} +8 -8
- package/dist/components/p-0fbeb3a1.js +2700 -0
- package/dist/components/{p-1fbdb431.js → p-12432f23.js} +2 -2
- package/dist/components/p-1c84cf65.js +123 -0
- package/dist/components/{p-74849cdd.js → p-1f3c2783.js} +4 -4
- package/dist/components/{p-e4e42677.js → p-4fd6b588.js} +2 -2
- package/dist/components/{p-e36ddcc1.js → p-56c8f3da.js} +14 -11
- package/dist/components/{p-cbac3cbc.js → p-62d2a5b3.js} +2 -2
- package/dist/components/{p-44808985.js → p-6ba0f1af.js} +7 -7
- package/dist/components/{p-52844fa4.js → p-6be6c5eb.js} +2 -2
- package/dist/components/{p-08d0deab.js → p-74b90a9c.js} +9 -3
- package/dist/components/{p-d37ab4dc.js → p-988477ad.js} +2 -2
- package/dist/components/{p-7f7e5672.js → p-a8724f06.js} +2 -2
- package/dist/components/{p-3f406017.js → p-b7efadad.js} +2 -2
- package/dist/components/{p-15971ede.js → p-b89371ac.js} +1 -1
- package/dist/components/{p-904711c8.js → p-bb907e43.js} +2 -2
- package/dist/components/{p-afbc196f.js → p-bef96764.js} +3 -2
- package/dist/components/{p-322acda6.js → p-c8815e84.js} +67 -31
- package/dist/components/{p-835b973d.js → p-caa05d1e.js} +2 -2
- package/dist/components/{p-bed94c37.js → p-d0131159.js} +187 -105
- package/dist/components/{p-29bdd953.js → p-d3f7d561.js} +2 -2
- package/dist/components/{p-90465904.js → p-d7693f47.js} +2 -2
- package/dist/components/{p-9be56729.js → p-e9548986.js} +46 -2
- package/dist/esm/{index-170e58c7.js → index-37c2ad2d.js} +48 -14
- package/dist/esm/index.js +2 -2
- package/dist/esm/{lido-avatar_21.entry.js → lido-avatar_22.entry.js} +3043 -163
- package/dist/esm/lido-player.js +3 -3
- package/dist/esm/loader.js +3 -3
- package/dist/esm/{utils-5df09162.js → utils-b5eb2360.js} +150 -95
- package/dist/lido-player/index.esm.js +1 -1
- package/dist/lido-player/lido-player.esm.js +1 -1
- package/dist/lido-player/p-9a9d5339.js +2 -0
- package/dist/lido-player/{p-7556e652.js → p-9fd87d44.js} +2 -2
- package/dist/lido-player/p-e1a9c26f.entry.js +1 -0
- package/dist/types/components/canvas/lido-canvas.d.ts +27 -0
- package/dist/types/components/container/lido-container.d.ts +6 -0
- package/dist/types/components/home/lido-home.d.ts +8 -0
- package/dist/types/components/mathMatrix/lido-math-matrix.d.ts +3 -0
- package/dist/types/components/root/lido-root.d.ts +5 -0
- package/dist/types/components.d.ts +71 -0
- package/dist/types/stories/Templates/RocketGame/rocketGame.stories.d.ts +1 -0
- package/dist/types/stories/Templates/calculator/calculator.stories.d.ts +4 -0
- package/dist/types/stories/Templates/multiplyBeeds/multiplyBeeds.stories.d.ts +1 -0
- package/dist/types/stories/Templates/openwindow/openwindow.stories.d.ts +1 -0
- package/dist/types/stories/Templates/openwindow/openwindow2.stories.d.ts +1 -0
- package/dist/types/stories/Templates/questionBoard/questionBoard.stories.d.ts +1 -0
- package/dist/types/stories/Templates/sequenceBox/sequenceBox1.stories.d.ts +1 -0
- package/dist/types/stories/Templates/sequenceBox/sequenceBox2.stories.d.ts +1 -0
- package/dist/types/stories/Templates/shapePair/shape-pair.stories.d.ts +1 -1
- package/dist/types/stories/Templates/sumTogether/sumTogether.stories.d.ts +1 -0
- package/dist/types/stories/Templates/writeCard/writeCard.stories.d.ts +1 -0
- package/dist/types/stories/Templates/writeLetter/writeLetter.stories.d.ts +1 -0
- package/dist/types/stories/Templates/writeNumber/writeNumber.stories.d.ts +1 -0
- package/dist/types/stories/Templates/writeWord/writeWord.stories.d.ts +1 -0
- package/dist/types/types/json.d.ts +4 -0
- package/dist/types/utils/audioPlayer.d.ts +2 -0
- package/dist/types/utils/constants.d.ts +1 -0
- package/dist/types/utils/i18n.d.ts +5 -0
- package/dist/types/utils/utils.d.ts +1 -0
- package/package.json +71 -69
- package/readme.md +113 -113
- package/dist/lido-player/p-137c99ce.js +0 -2
- package/dist/lido-player/p-eb956325.entry.js +0 -1
|
@@ -1,96 +1,96 @@
|
|
|
1
|
-
.lido-shape {
|
|
2
|
-
position: absolute;
|
|
3
|
-
top: var(--y);
|
|
4
|
-
left: var(--x);
|
|
5
|
-
display: var(--display);
|
|
6
|
-
z-index: var(--z);
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
.lido-rectangle {
|
|
10
|
-
border-radius: 0;
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
.lido-circle {
|
|
14
|
-
width: var(--width); /* Ensures width is always used for both dimensions */
|
|
15
|
-
height: var(--width); /* Make height equal to width for a perfect circle */
|
|
16
|
-
border-radius: 50%; /* 50% border-radius for a perfect circle */
|
|
17
|
-
background-color: var(--bgColor);
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
.lido-ellipse {
|
|
21
|
-
width: var(--width);
|
|
22
|
-
height: var(--height);
|
|
23
|
-
border-radius: 50%; /* Create an ellipse shape */
|
|
24
|
-
background-color: var(--bgColor);
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
/* other shapes */
|
|
28
|
-
|
|
29
|
-
.lido-triangle {
|
|
30
|
-
width: var(--triangleWidth);
|
|
31
|
-
height: var(--triangleHeight);
|
|
32
|
-
background-color: var(--bgColor);
|
|
33
|
-
clip-path: polygon(50% 0%, 100% 100%, 0% 100%);
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
.lido-rightTriangle {
|
|
37
|
-
width: var(--triangleWidth);
|
|
38
|
-
height: var(--triangleHeight);
|
|
39
|
-
background-color: var(--bgColor);
|
|
40
|
-
clip-path: polygon(100% 0%, 100% 100%, 0% 100%);
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
.lido-leftTriangle {
|
|
44
|
-
width: var(--triangleWidth);
|
|
45
|
-
height: var(--triangleHeight);
|
|
46
|
-
background-color: var(--triangleBgColor);
|
|
47
|
-
clip-path: polygon(0% 0%, 100% 100%, 0% 100%);
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
.lido-parallelogram {
|
|
51
|
-
width: var(--paralleWidth);
|
|
52
|
-
height: var(--paralleHeight);
|
|
53
|
-
transform: skew(20deg);
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
.lido-star {
|
|
57
|
-
width: var(--starWidth);
|
|
58
|
-
height: var(--starHeight);
|
|
59
|
-
background-color: var(--starBgColor);
|
|
60
|
-
clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
.lido-pentagon {
|
|
64
|
-
width: var(--pentagonWidth);
|
|
65
|
-
height: var(--pentagonHeight);
|
|
66
|
-
background-color: var(--pentagonBgColor);
|
|
67
|
-
clip-path: polygon(50% 0%, 100% 38%, 82% 100%, 18% 100%, 0% 38%);
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
.lido-heptagon {
|
|
71
|
-
width: var(--heptagonWidth);
|
|
72
|
-
height: var(--heptagonHeight);
|
|
73
|
-
background-color: var(--heptagonBgColor);
|
|
74
|
-
clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
.lido-octagon {
|
|
78
|
-
width: var(--octagonWidth);
|
|
79
|
-
height: var(--octagonHeight);
|
|
80
|
-
background-color: var(--octagonBgColor);
|
|
81
|
-
clip-path: polygon(25% 0%, 75% 0%, 100% 25%, 100% 75%, 75% 100%, 25% 100%, 0% 75%, 0% 25%);
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
.lido-rhombus {
|
|
85
|
-
width: var(--rhombusWidth);
|
|
86
|
-
height: var(--rhombusHeight);
|
|
87
|
-
background-color: var(--rhombusBgColor);
|
|
88
|
-
clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
.lido-heart {
|
|
92
|
-
height: var(--heartHeight);
|
|
93
|
-
width: var(--heartWidth);
|
|
94
|
-
border-image: radial-gradient(var(--heartBgColor) 69%, #0000 70%) 84.5%/50%;
|
|
95
|
-
clip-path: polygon(-41% 0, 50% 91%, 141% 0);
|
|
96
|
-
}
|
|
1
|
+
.lido-shape {
|
|
2
|
+
position: absolute;
|
|
3
|
+
top: var(--y);
|
|
4
|
+
left: var(--x);
|
|
5
|
+
display: var(--display);
|
|
6
|
+
z-index: var(--z);
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
.lido-rectangle {
|
|
10
|
+
border-radius: 0;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.lido-circle {
|
|
14
|
+
width: var(--width); /* Ensures width is always used for both dimensions */
|
|
15
|
+
height: var(--width); /* Make height equal to width for a perfect circle */
|
|
16
|
+
border-radius: 50%; /* 50% border-radius for a perfect circle */
|
|
17
|
+
background-color: var(--bgColor);
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.lido-ellipse {
|
|
21
|
+
width: var(--width);
|
|
22
|
+
height: var(--height);
|
|
23
|
+
border-radius: 50%; /* Create an ellipse shape */
|
|
24
|
+
background-color: var(--bgColor);
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
/* other shapes */
|
|
28
|
+
|
|
29
|
+
.lido-triangle {
|
|
30
|
+
width: var(--triangleWidth);
|
|
31
|
+
height: var(--triangleHeight);
|
|
32
|
+
background-color: var(--bgColor);
|
|
33
|
+
clip-path: polygon(50% 0%, 100% 100%, 0% 100%);
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
.lido-rightTriangle {
|
|
37
|
+
width: var(--triangleWidth);
|
|
38
|
+
height: var(--triangleHeight);
|
|
39
|
+
background-color: var(--bgColor);
|
|
40
|
+
clip-path: polygon(100% 0%, 100% 100%, 0% 100%);
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
.lido-leftTriangle {
|
|
44
|
+
width: var(--triangleWidth);
|
|
45
|
+
height: var(--triangleHeight);
|
|
46
|
+
background-color: var(--triangleBgColor);
|
|
47
|
+
clip-path: polygon(0% 0%, 100% 100%, 0% 100%);
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
.lido-parallelogram {
|
|
51
|
+
width: var(--paralleWidth);
|
|
52
|
+
height: var(--paralleHeight);
|
|
53
|
+
transform: skew(20deg);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
.lido-star {
|
|
57
|
+
width: var(--starWidth);
|
|
58
|
+
height: var(--starHeight);
|
|
59
|
+
background-color: var(--starBgColor);
|
|
60
|
+
clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
.lido-pentagon {
|
|
64
|
+
width: var(--pentagonWidth);
|
|
65
|
+
height: var(--pentagonHeight);
|
|
66
|
+
background-color: var(--pentagonBgColor);
|
|
67
|
+
clip-path: polygon(50% 0%, 100% 38%, 82% 100%, 18% 100%, 0% 38%);
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
.lido-heptagon {
|
|
71
|
+
width: var(--heptagonWidth);
|
|
72
|
+
height: var(--heptagonHeight);
|
|
73
|
+
background-color: var(--heptagonBgColor);
|
|
74
|
+
clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
.lido-octagon {
|
|
78
|
+
width: var(--octagonWidth);
|
|
79
|
+
height: var(--octagonHeight);
|
|
80
|
+
background-color: var(--octagonBgColor);
|
|
81
|
+
clip-path: polygon(25% 0%, 75% 0%, 100% 25%, 100% 75%, 75% 100%, 25% 100%, 0% 75%, 0% 25%);
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
.lido-rhombus {
|
|
85
|
+
width: var(--rhombusWidth);
|
|
86
|
+
height: var(--rhombusHeight);
|
|
87
|
+
background-color: var(--rhombusBgColor);
|
|
88
|
+
clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
.lido-heart {
|
|
92
|
+
height: var(--heartHeight);
|
|
93
|
+
width: var(--heartWidth);
|
|
94
|
+
border-image: radial-gradient(var(--heartBgColor) 69%, #0000 70%) 84.5%/50%;
|
|
95
|
+
clip-path: polygon(-41% 0, 50% 91%, 141% 0);
|
|
96
|
+
}
|
|
@@ -54,7 +54,7 @@ export class LidoShape {
|
|
|
54
54
|
backgroundColor: this.shapeType !== 'polygon' ? this.bgColor : 'transparent', // Apply background only if not a polygon
|
|
55
55
|
margin: this.margin,
|
|
56
56
|
};
|
|
57
|
-
return (h(Host, { key: '
|
|
57
|
+
return (h(Host, { key: 'de698fc2f34f63c9bbdf1e308772cf47ebc80d9c', class: `lido-shape ${this.shapeType}`, value: this.value, type: this.type, "tab-index": this.tabIndex, style: style, "aria-label": this.ariaLabel, "aria-hidden": this.ariaHidden, audio: this.audio, minDrops: this.minDrops, maxDrops: this.maxDrops, onTouch: this.onTouch, onCorrect: this.onCorrect, onInCorrect: this.onInCorrect, onEntry: this.onEntry, "disable-speak": this.disableSpeak }));
|
|
58
58
|
}
|
|
59
59
|
static get is() { return "lido-shape"; }
|
|
60
60
|
static get originalStyleUrls() {
|
|
@@ -117,7 +117,7 @@ export class LidoShape {
|
|
|
117
117
|
"optional": false,
|
|
118
118
|
"docs": {
|
|
119
119
|
"tags": [],
|
|
120
|
-
"text": "The height of the shape (CSS value, e.g., '100px', '50%').\nThis is ignored for polygons."
|
|
120
|
+
"text": "The height of the shape (CSS value, e.g., '100px', '50%').\r\nThis is ignored for polygons."
|
|
121
121
|
},
|
|
122
122
|
"attribute": "height",
|
|
123
123
|
"reflect": false,
|
|
@@ -135,7 +135,7 @@ export class LidoShape {
|
|
|
135
135
|
"optional": false,
|
|
136
136
|
"docs": {
|
|
137
137
|
"tags": [],
|
|
138
|
-
"text": "The width of the shape (CSS value, e.g., '100px', '50%').\nThis is ignored for polygons."
|
|
138
|
+
"text": "The width of the shape (CSS value, e.g., '100px', '50%').\r\nThis is ignored for polygons."
|
|
139
139
|
},
|
|
140
140
|
"attribute": "width",
|
|
141
141
|
"reflect": false,
|
|
@@ -243,7 +243,7 @@ export class LidoShape {
|
|
|
243
243
|
"optional": false,
|
|
244
244
|
"docs": {
|
|
245
245
|
"tags": [],
|
|
246
|
-
"text": "Background color of the shape (CSS color value, e.g., '#FFFFFF', 'blue').\nThis is ignored for polygons."
|
|
246
|
+
"text": "Background color of the shape (CSS color value, e.g., '#FFFFFF', 'blue').\r\nThis is ignored for polygons."
|
|
247
247
|
},
|
|
248
248
|
"attribute": "bg-color",
|
|
249
249
|
"reflect": false,
|
|
@@ -459,7 +459,7 @@ export class LidoShape {
|
|
|
459
459
|
"optional": false,
|
|
460
460
|
"docs": {
|
|
461
461
|
"tags": [],
|
|
462
|
-
"text": "CSS margin value applied to each child element inside the container.\nAccepts standard CSS margin formats (e.g., '10px', '5px 10px', etc.)."
|
|
462
|
+
"text": "CSS margin value applied to each child element inside the container.\r\nAccepts standard CSS margin formats (e.g., '10px', '5px 10px', etc.)."
|
|
463
463
|
},
|
|
464
464
|
"attribute": "margin",
|
|
465
465
|
"reflect": false,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
.svg-element, svg {
|
|
2
|
-
width: 100%;
|
|
3
|
-
height: 100%;
|
|
1
|
+
.svg-element, svg {
|
|
2
|
+
width: 100%;
|
|
3
|
+
height: 100%;
|
|
4
4
|
}
|
|
@@ -59,13 +59,13 @@ export class LidoSlideFill {
|
|
|
59
59
|
const id = pathIndex === 1 ? 'glassPath' : pathIndex === 2 ? 'rulerPath' : `path${pathIndex}`;
|
|
60
60
|
return `<path id="${id}"${attrs}>`;
|
|
61
61
|
});
|
|
62
|
-
const clipPathDef = `
|
|
63
|
-
<clipPath id="clipGlass">
|
|
64
|
-
<use xlink:href="#glassPath" />
|
|
65
|
-
</clipPath>
|
|
62
|
+
const clipPathDef = `
|
|
63
|
+
<clipPath id="clipGlass">
|
|
64
|
+
<use xlink:href="#glassPath" />
|
|
65
|
+
</clipPath>
|
|
66
66
|
`;
|
|
67
|
-
svgText = svgText.replace(/<svg([^>]*)>/, `<svg$1>
|
|
68
|
-
${clipPathDef}
|
|
67
|
+
svgText = svgText.replace(/<svg([^>]*)>/, `<svg$1>
|
|
68
|
+
${clipPathDef}
|
|
69
69
|
`);
|
|
70
70
|
svgText = svgText.replace(/<rect([^>]*)\/?>/, `<rect id="fillArea" $1 clip-path="url(#clipGlass)" />`);
|
|
71
71
|
this.svgContent = svgText;
|
|
@@ -190,7 +190,7 @@ export class LidoSlideFill {
|
|
|
190
190
|
}
|
|
191
191
|
}
|
|
192
192
|
render() {
|
|
193
|
-
return (h(Host, { key: '
|
|
193
|
+
return (h(Host, { key: '3918ed476b3de4977c53ff0bf576253f68e8c84f', id: this.id, class: "lido-slide-fill", src: this.src, fill: this.fill, fillDirection: this.fillDirection, slider: this.slider, style: this.style, min: this.min, max: this.max, division: this.division, numberType: this.numberType, onEntry: this.onEntry, type: this.type, "disable-speak": this.disableSpeak }, h("div", { key: '8f54b0e5de490a162aaa1d7ac9ed485d1628c484', innerHTML: this.svgContent, class: "svg-element" })));
|
|
194
194
|
}
|
|
195
195
|
static get is() { return "lido-slide-fill"; }
|
|
196
196
|
static get originalStyleUrls() {
|
|
@@ -354,7 +354,7 @@ export class LidoSlideFill {
|
|
|
354
354
|
"optional": false,
|
|
355
355
|
"docs": {
|
|
356
356
|
"tags": [],
|
|
357
|
-
"text": "CSS margin value applied to each child element inside the container.\nAccepts standard CSS margin formats (e.g., '10px', '5px 10px', etc.)."
|
|
357
|
+
"text": "CSS margin value applied to each child element inside the container.\r\nAccepts standard CSS margin formats (e.g., '10px', '5px 10px', etc.)."
|
|
358
358
|
},
|
|
359
359
|
"attribute": "margin",
|
|
360
360
|
"reflect": false
|
|
@@ -371,7 +371,7 @@ export class LidoSlideFill {
|
|
|
371
371
|
"optional": false,
|
|
372
372
|
"docs": {
|
|
373
373
|
"tags": [],
|
|
374
|
-
"text": "CSS padding value applied to each child element inside the container.\nAccepts standard CSS padding formats (e.g., '10px', '5px 10px', etc.)."
|
|
374
|
+
"text": "CSS padding value applied to each child element inside the container.\r\nAccepts standard CSS padding formats (e.g., '10px', '5px 10px', etc.)."
|
|
375
375
|
},
|
|
376
376
|
"attribute": "padding",
|
|
377
377
|
"reflect": false,
|
|
@@ -389,7 +389,7 @@ export class LidoSlideFill {
|
|
|
389
389
|
"optional": false,
|
|
390
390
|
"docs": {
|
|
391
391
|
"tags": [],
|
|
392
|
-
"text": "CSS filter to apply border radius to the image.\nExample: '10px' for images."
|
|
392
|
+
"text": "CSS filter to apply border radius to the image.\r\nExample: '10px' for images."
|
|
393
393
|
},
|
|
394
394
|
"attribute": "border-radius",
|
|
395
395
|
"reflect": false,
|
|
@@ -407,7 +407,7 @@ export class LidoSlideFill {
|
|
|
407
407
|
"optional": false,
|
|
408
408
|
"docs": {
|
|
409
409
|
"tags": [],
|
|
410
|
-
"text": "Fill amount to display inside the SVG rect.\nAccepts values like \"30%\" or \"30\" (treated as percentage of fill)"
|
|
410
|
+
"text": "Fill amount to display inside the SVG rect.\r\nAccepts values like \"30%\" or \"30\" (treated as percentage of fill)"
|
|
411
411
|
},
|
|
412
412
|
"attribute": "fill",
|
|
413
413
|
"reflect": false
|
|
@@ -424,7 +424,7 @@ export class LidoSlideFill {
|
|
|
424
424
|
"optional": false,
|
|
425
425
|
"docs": {
|
|
426
426
|
"tags": [],
|
|
427
|
-
"text": "Type of number to be displayed on the ruler.\nCan be 'integer', 'decimal', or 'fraction'."
|
|
427
|
+
"text": "Type of number to be displayed on the ruler.\r\nCan be 'integer', 'decimal', or 'fraction'."
|
|
428
428
|
},
|
|
429
429
|
"attribute": "number-type",
|
|
430
430
|
"reflect": false,
|
|
@@ -530,7 +530,7 @@ export class LidoSlideFill {
|
|
|
530
530
|
"optional": false,
|
|
531
531
|
"docs": {
|
|
532
532
|
"tags": [],
|
|
533
|
-
"text": "Determines the direction in which the rect fill should grow:\n- 'vertical': from bottom to top\n- 'horizontal': from left to right"
|
|
533
|
+
"text": "Determines the direction in which the rect fill should grow:\r\n- 'vertical': from bottom to top\r\n- 'horizontal': from left to right"
|
|
534
534
|
},
|
|
535
535
|
"attribute": "fill-direction",
|
|
536
536
|
"reflect": false
|
|
@@ -1,53 +1,53 @@
|
|
|
1
|
-
.lido-text {
|
|
2
|
-
/* background-color: #fff; */
|
|
3
|
-
/* box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); */
|
|
4
|
-
transition: background-color 0.3s ease;
|
|
5
|
-
user-select: none;
|
|
6
|
-
align-items: center;
|
|
7
|
-
justify-content: center;
|
|
8
|
-
text-align: center;
|
|
9
|
-
border-radius: 24px;
|
|
10
|
-
color: #333;
|
|
11
|
-
cursor: pointer;
|
|
12
|
-
font-family: 'Baloo Bhai 2', serif;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
.text-letters {
|
|
16
|
-
transition: color 0.3s, text-shadow 0.3s;
|
|
17
|
-
display: inline-block;
|
|
18
|
-
padding: 0 2px;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
.text-letters.letter-highlight {
|
|
22
|
-
color: #8e24aa;
|
|
23
|
-
background: none;
|
|
24
|
-
border-radius: 0;
|
|
25
|
-
text-shadow: 0 2px 8px #8e24aa88;
|
|
26
|
-
animation: text-letter-bounce 0.4s;
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
.text-words {
|
|
30
|
-
transition: color 0.3s, text-shadow 0.3s;
|
|
31
|
-
display: inline-block;
|
|
32
|
-
padding: 0 2px;
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
.text-words.word-highlight {
|
|
36
|
-
color: #8e24aa;
|
|
37
|
-
background: none;
|
|
38
|
-
border-radius: 0;
|
|
39
|
-
text-shadow: 0 2px 8px #8e24aa88;
|
|
40
|
-
animation: text-word-bounce 0.4s;
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
@keyframes text-letter-bounce {
|
|
44
|
-
0% { transform: scale(1); }
|
|
45
|
-
60% { transform: scale(1.4); }
|
|
46
|
-
100% { transform: scale(1); }
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
@keyframes text-word-bounce {
|
|
50
|
-
0% { transform: scale(1); }
|
|
51
|
-
60% { transform: scale(1.3); }
|
|
52
|
-
100% { transform: scale(1); }
|
|
53
|
-
}
|
|
1
|
+
.lido-text {
|
|
2
|
+
/* background-color: #fff; */
|
|
3
|
+
/* box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); */
|
|
4
|
+
transition: background-color 0.3s ease;
|
|
5
|
+
user-select: none;
|
|
6
|
+
align-items: center;
|
|
7
|
+
justify-content: center;
|
|
8
|
+
text-align: center;
|
|
9
|
+
border-radius: 24px;
|
|
10
|
+
color: #333;
|
|
11
|
+
cursor: pointer;
|
|
12
|
+
font-family: 'Baloo Bhai 2', serif;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.text-letters {
|
|
16
|
+
transition: color 0.3s, text-shadow 0.3s;
|
|
17
|
+
display: inline-block;
|
|
18
|
+
padding: 0 2px;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.text-letters.letter-highlight {
|
|
22
|
+
color: #8e24aa;
|
|
23
|
+
background: none;
|
|
24
|
+
border-radius: 0;
|
|
25
|
+
text-shadow: 0 2px 8px #8e24aa88;
|
|
26
|
+
animation: text-letter-bounce 0.4s;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.text-words {
|
|
30
|
+
transition: color 0.3s, text-shadow 0.3s;
|
|
31
|
+
display: inline-block;
|
|
32
|
+
padding: 0 2px;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.text-words.word-highlight {
|
|
36
|
+
color: #8e24aa;
|
|
37
|
+
background: none;
|
|
38
|
+
border-radius: 0;
|
|
39
|
+
text-shadow: 0 2px 8px #8e24aa88;
|
|
40
|
+
animation: text-word-bounce 0.4s;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
@keyframes text-letter-bounce {
|
|
44
|
+
0% { transform: scale(1); }
|
|
45
|
+
60% { transform: scale(1.4); }
|
|
46
|
+
100% { transform: scale(1); }
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
@keyframes text-word-bounce {
|
|
50
|
+
0% { transform: scale(1); }
|
|
51
|
+
60% { transform: scale(1.3); }
|
|
52
|
+
100% { transform: scale(1); }
|
|
53
|
+
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { h, Host } from "@stencil/core";
|
|
2
2
|
import { initEventsForElement, convertUrlToRelative, parseProp, setVisibilityWithDelay, attachSpeakIcon } from "../../utils/utils";
|
|
3
|
+
import i18next from "../../utils/i18n";
|
|
3
4
|
/**
|
|
4
5
|
* @component LidoText
|
|
5
6
|
*
|
|
@@ -123,7 +124,7 @@ export class LidoText {
|
|
|
123
124
|
}
|
|
124
125
|
}
|
|
125
126
|
render() {
|
|
126
|
-
return (h(Host, { key: '
|
|
127
|
+
return (h(Host, { key: '89ed432cbbf1f3ca2cdcaf4df80628350badef6d', class: "lido-text", value: this.value, type: this.type, "tab-index": this.tabIndex, audio: this.audio, onTouch: this.onTouch, onCorrect: this.onCorrect, onInCorrect: this.onInCorrect, onEntry: this.onEntry, minDrops: this.minDrops, maxDrops: this.maxDrops, id: this.id, style: this.style, "aria-label": this.ariaLabel, "aria-hidden": this.ariaHidden, "span-type": this.spanType, "disable-speak": this.disableSpeak }, this.spanType !== '' ? h("div", { class: "lido-text-content" }, " ", i18next.t(this.string)) : i18next.t(this.string)));
|
|
127
128
|
}
|
|
128
129
|
static get is() { return "lido-text"; }
|
|
129
130
|
static get originalStyleUrls() {
|
|
@@ -636,7 +637,7 @@ export class LidoText {
|
|
|
636
637
|
"optional": false,
|
|
637
638
|
"docs": {
|
|
638
639
|
"tags": [],
|
|
639
|
-
"text": "CSS margin value applied to each child element inside the container.\nAccepts standard CSS margin formats (e.g., '10px', '5px 10px', etc.)."
|
|
640
|
+
"text": "CSS margin value applied to each child element inside the container.\r\nAccepts standard CSS margin formats (e.g., '10px', '5px 10px', etc.)."
|
|
640
641
|
},
|
|
641
642
|
"attribute": "margin",
|
|
642
643
|
"reflect": false,
|
|
@@ -654,7 +655,7 @@ export class LidoText {
|
|
|
654
655
|
"optional": false,
|
|
655
656
|
"docs": {
|
|
656
657
|
"tags": [],
|
|
657
|
-
"text": "CSS padding value applied to each child element inside the container.\nAccepts standard CSS padding formats (e.g., '10px', '5px 10px', etc.)."
|
|
658
|
+
"text": "CSS padding value applied to each child element inside the container.\r\nAccepts standard CSS padding formats (e.g., '10px', '5px 10px', etc.)."
|
|
658
659
|
},
|
|
659
660
|
"attribute": "padding",
|
|
660
661
|
"reflect": false,
|
|
@@ -672,7 +673,7 @@ export class LidoText {
|
|
|
672
673
|
"optional": false,
|
|
673
674
|
"docs": {
|
|
674
675
|
"tags": [],
|
|
675
|
-
"text": "CSS filter to apply border radius to the image.\nExample: '10px' for images."
|
|
676
|
+
"text": "CSS filter to apply border radius to the image.\r\nExample: '10px' for images."
|
|
676
677
|
},
|
|
677
678
|
"attribute": "border-radius",
|
|
678
679
|
"reflect": false,
|
|
@@ -690,7 +691,7 @@ export class LidoText {
|
|
|
690
691
|
"optional": false,
|
|
691
692
|
"docs": {
|
|
692
693
|
"tags": [],
|
|
693
|
-
"text": "Indicates whether to wrap each letter or each word of the text in a span element.\nThis can be useful for animations or styling individual letters."
|
|
694
|
+
"text": "Indicates whether to wrap each letter or each word of the text in a span element.\r\nThis can be useful for animations or styling individual letters."
|
|
694
695
|
},
|
|
695
696
|
"attribute": "span-type",
|
|
696
697
|
"reflect": false,
|