lido-player 0.0.2-alpha-50-dev → 0.0.2-alpha-52-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-ce99b0d0.js} +294 -108
- 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 +35 -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 +69 -15
- 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/blender/blender.stories.js +100 -0
- package/dist/collection/stories/Templates/bubbleType/bubbleType.stories.js +42 -42
- package/dist/collection/stories/Templates/calculator/calculator.stories.js +52 -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 +39 -38
- package/dist/collection/stories/Templates/fillBlank/fill-blank.stories.js +282 -282
- package/dist/collection/stories/Templates/foodJar/food-jar.stories.js +37 -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 +25 -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 +41 -39
- 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 +98 -97
- package/dist/collection/stories/Templates/order-tractor/order-tractor.stories.js +92 -91
- 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 +170 -36
- package/dist/collection/utils/utilsHandlers/clickHandler.js +5 -1
- package/dist/collection/utils/utilsHandlers/dragDropHandler.js +27 -15
- 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-9be56729.js → p-00777872.js} +46 -2
- package/dist/components/{p-3f406017.js → p-06171259.js} +2 -2
- package/dist/components/{p-08d0deab.js → p-09f1e2d2.js} +15 -9
- package/dist/components/{p-e4e42677.js → p-0c2aebfb.js} +2 -2
- package/dist/components/p-0fbeb3a1.js +2700 -0
- package/dist/components/{p-cbac3cbc.js → p-11bf64aa.js} +2 -2
- package/dist/components/{p-44808985.js → p-26df0769.js} +7 -7
- package/dist/components/{p-1fbdb431.js → p-2d53e1a5.js} +2 -2
- package/dist/components/{p-afbc196f.js → p-39a2e638.js} +3 -2
- package/dist/components/{p-e36ddcc1.js → p-3ce3744c.js} +14 -11
- package/dist/components/{p-7f7e5672.js → p-3f4d4c0a.js} +2 -2
- package/dist/components/{p-d37ab4dc.js → p-52e77394.js} +2 -2
- package/dist/components/{p-bed94c37.js → p-58c67252.js} +331 -118
- package/dist/components/p-5b5f59a8.js +129 -0
- package/dist/components/{p-52844fa4.js → p-68112f8c.js} +2 -2
- package/dist/components/{p-15971ede.js → p-8a34b98b.js} +1 -1
- package/dist/components/{p-904711c8.js → p-8f2ed62f.js} +2 -2
- package/dist/components/{p-74849cdd.js → p-9d34d59d.js} +4 -4
- package/dist/components/{p-73e31a86.js → p-a2f96840.js} +8 -8
- package/dist/components/{p-90465904.js → p-a516a324.js} +2 -2
- package/dist/components/{p-322acda6.js → p-b2125fc9.js} +67 -31
- package/dist/components/{p-835b973d.js → p-c4abfd0f.js} +2 -2
- package/dist/components/{p-29bdd953.js → p-cb56a853.js} +2 -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-107b15a7.js} +294 -108
- package/dist/lido-player/index.esm.js +1 -1
- package/dist/lido-player/lido-player.esm.js +1 -1
- package/dist/lido-player/p-606ea279.entry.js +1 -0
- package/dist/lido-player/p-9a9d5339.js +2 -0
- package/dist/lido-player/{p-7556e652.js → p-d1251482.js} +2 -2
- 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 -1
- package/dist/types/components/root/lido-root.d.ts +5 -0
- package/dist/types/components.d.ts +71 -6
- package/dist/types/stories/Templates/RocketGame/rocketGame.stories.d.ts +1 -0
- package/dist/types/stories/Templates/blender/blender.stories.d.ts +4 -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
|
@@ -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,
|
|
@@ -1,98 +1,98 @@
|
|
|
1
|
-
:host {
|
|
2
|
-
display: block;
|
|
3
|
-
position: relative;
|
|
4
|
-
}
|
|
5
|
-
|
|
6
|
-
#lido-svgContainer {
|
|
7
|
-
/* position: absolute; */
|
|
8
|
-
/* top: 0; */
|
|
9
|
-
/* left: 0; */
|
|
10
|
-
/* right: 0; */
|
|
11
|
-
/* bottom: 50px; */
|
|
12
|
-
display: flex;
|
|
13
|
-
justify-content: center;
|
|
14
|
-
align-items: center;
|
|
15
|
-
overflow: hidden;
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
svg {
|
|
19
|
-
width: 100%;
|
|
20
|
-
height: 100%;
|
|
21
|
-
/* max-height: calc(100vh - 50px); */
|
|
22
|
-
/* border: 1px solid black; */
|
|
23
|
-
touch-action: none;
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
#lido-draggableCircle {
|
|
27
|
-
cursor: pointer;
|
|
28
|
-
fill: #CF1565;
|
|
29
|
-
transition: fill 0.2s, r 0.2s;
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
.lido-blindTracing {
|
|
33
|
-
stroke: none !important;
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
.lido-blindFreeTrace {
|
|
37
|
-
stroke: none !important;
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
.lido-hovered {
|
|
41
|
-
cursor: grab;
|
|
42
|
-
fill: darkred;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
#lido-controls {
|
|
46
|
-
position: fixed;
|
|
47
|
-
bottom: 0;
|
|
48
|
-
left: 0;
|
|
49
|
-
right: 0;
|
|
50
|
-
display: flex;
|
|
51
|
-
justify-content: space-between;
|
|
52
|
-
padding: 10px;
|
|
53
|
-
background-color: #f0f0f0;
|
|
54
|
-
border-top: 1px solid #ccc;
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
button {
|
|
58
|
-
padding: 10px;
|
|
59
|
-
font-size: 16px;
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
@media (max-width: 600px) {
|
|
63
|
-
button {
|
|
64
|
-
padding: 8px;
|
|
65
|
-
font-size: 14px;
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
.lido-trace-path-green {
|
|
70
|
-
/* stroke: green !important; */
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
.lido-flow-indicator {
|
|
74
|
-
stroke: blue;
|
|
75
|
-
stroke-width: 2;
|
|
76
|
-
stroke-dasharray: 6, 6; /* Uniform dotted line */
|
|
77
|
-
fill: none;
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
.lido-trace {
|
|
81
|
-
height: 700px;
|
|
82
|
-
width: 700px;
|
|
83
|
-
z-index: 1;
|
|
84
|
-
/* position: absolute; */
|
|
85
|
-
justify-items: center;
|
|
86
|
-
/* align-items: center; */
|
|
87
|
-
align-content: center;
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
.trace-animate {
|
|
91
|
-
animation: trace-bounce 0.5s;
|
|
92
|
-
}
|
|
93
|
-
@keyframes trace-bounce {
|
|
94
|
-
0% { transform: scale(1); }
|
|
95
|
-
30% { transform: scale(1.05); }
|
|
96
|
-
60% { transform: scale(0.95); }
|
|
97
|
-
100% { transform: scale(1); }
|
|
1
|
+
:host {
|
|
2
|
+
display: block;
|
|
3
|
+
position: relative;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
#lido-svgContainer {
|
|
7
|
+
/* position: absolute; */
|
|
8
|
+
/* top: 0; */
|
|
9
|
+
/* left: 0; */
|
|
10
|
+
/* right: 0; */
|
|
11
|
+
/* bottom: 50px; */
|
|
12
|
+
display: flex;
|
|
13
|
+
justify-content: center;
|
|
14
|
+
align-items: center;
|
|
15
|
+
overflow: hidden;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
svg {
|
|
19
|
+
width: 100%;
|
|
20
|
+
height: 100%;
|
|
21
|
+
/* max-height: calc(100vh - 50px); */
|
|
22
|
+
/* border: 1px solid black; */
|
|
23
|
+
touch-action: none;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
#lido-draggableCircle {
|
|
27
|
+
cursor: pointer;
|
|
28
|
+
fill: #CF1565;
|
|
29
|
+
transition: fill 0.2s, r 0.2s;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
.lido-blindTracing {
|
|
33
|
+
stroke: none !important;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
.lido-blindFreeTrace {
|
|
37
|
+
stroke: none !important;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.lido-hovered {
|
|
41
|
+
cursor: grab;
|
|
42
|
+
fill: darkred;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
#lido-controls {
|
|
46
|
+
position: fixed;
|
|
47
|
+
bottom: 0;
|
|
48
|
+
left: 0;
|
|
49
|
+
right: 0;
|
|
50
|
+
display: flex;
|
|
51
|
+
justify-content: space-between;
|
|
52
|
+
padding: 10px;
|
|
53
|
+
background-color: #f0f0f0;
|
|
54
|
+
border-top: 1px solid #ccc;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
button {
|
|
58
|
+
padding: 10px;
|
|
59
|
+
font-size: 16px;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
@media (max-width: 600px) {
|
|
63
|
+
button {
|
|
64
|
+
padding: 8px;
|
|
65
|
+
font-size: 14px;
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
.lido-trace-path-green {
|
|
70
|
+
/* stroke: green !important; */
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
.lido-flow-indicator {
|
|
74
|
+
stroke: blue;
|
|
75
|
+
stroke-width: 2;
|
|
76
|
+
stroke-dasharray: 6, 6; /* Uniform dotted line */
|
|
77
|
+
fill: none;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
.lido-trace {
|
|
81
|
+
height: 700px;
|
|
82
|
+
width: 700px;
|
|
83
|
+
z-index: 1;
|
|
84
|
+
/* position: absolute; */
|
|
85
|
+
justify-items: center;
|
|
86
|
+
/* align-items: center; */
|
|
87
|
+
align-content: center;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
.trace-animate {
|
|
91
|
+
animation: trace-bounce 0.5s;
|
|
92
|
+
}
|
|
93
|
+
@keyframes trace-bounce {
|
|
94
|
+
0% { transform: scale(1); }
|
|
95
|
+
30% { transform: scale(1.05); }
|
|
96
|
+
60% { transform: scale(0.95); }
|
|
97
|
+
100% { transform: scale(1); }
|
|
98
98
|
}
|
|
@@ -712,7 +712,7 @@ export class LidoTrace {
|
|
|
712
712
|
};
|
|
713
713
|
}
|
|
714
714
|
render() {
|
|
715
|
-
return (h(Host, { key: '
|
|
715
|
+
return (h(Host, { key: '204d2999e3d6f0c36c991566e19608870e287d7a', class: "lido-trace", id: this.id, audio: this.audio, onCorrect: this.onCorrect, onInCorrect: this.onInCorrect, style: this.style, "aria-label": this.ariaLabel, "aria-hidden": this.ariaHidden, tabindex: this.tabIndex, "disable-speak": this.disableSpeak }, h("div", { key: '9c97878119641e2efc26fa7d711c7639276417ac', style: this.style, id: "lido-svgContainer" })));
|
|
716
716
|
}
|
|
717
717
|
static get is() { return "lido-trace"; }
|
|
718
718
|
static get originalStyleUrls() {
|
|
@@ -974,7 +974,7 @@ export class LidoTrace {
|
|
|
974
974
|
"optional": false,
|
|
975
975
|
"docs": {
|
|
976
976
|
"tags": [],
|
|
977
|
-
"text": "Mode for the tracing interaction, defining how users interact with the SVG paths.\nOptions may include `\"noFlow\"`, `\"showFlow\"`, `\"freeTrace\"`, `\"blindTracing\"`, and `\"blindFreeTrace\"`"
|
|
977
|
+
"text": "Mode for the tracing interaction, defining how users interact with the SVG paths.\r\nOptions may include `\"noFlow\"`, `\"showFlow\"`, `\"freeTrace\"`, `\"blindTracing\"`, and `\"blindFreeTrace\"`"
|
|
978
978
|
},
|
|
979
979
|
"attribute": "mode",
|
|
980
980
|
"reflect": false,
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
.lido-wrap {
|
|
2
|
-
display: grid;
|
|
3
|
-
grid-gap: 10px;
|
|
4
|
-
grid-template-columns: repeat(auto-fill, minmax(186px, auto));
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
.lido-wrap > * {
|
|
8
|
-
padding: 10px;
|
|
9
|
-
background-color: var(--child-bg-color, #f0f0f0);
|
|
10
|
-
box-sizing: border-box;
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
.lido-flex {
|
|
14
|
-
display: flex;
|
|
15
|
-
flex-wrap: wrap;
|
|
16
|
-
align-content: flex-start;
|
|
17
|
-
gap: 10px;
|
|
18
|
-
}
|
|
1
|
+
.lido-wrap {
|
|
2
|
+
display: grid;
|
|
3
|
+
grid-gap: 10px;
|
|
4
|
+
grid-template-columns: repeat(auto-fill, minmax(186px, auto));
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
.lido-wrap > * {
|
|
8
|
+
padding: 10px;
|
|
9
|
+
background-color: var(--child-bg-color, #f0f0f0);
|
|
10
|
+
box-sizing: border-box;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.lido-flex {
|
|
14
|
+
display: flex;
|
|
15
|
+
flex-wrap: wrap;
|
|
16
|
+
align-content: flex-start;
|
|
17
|
+
gap: 10px;
|
|
18
|
+
}
|
|
@@ -80,7 +80,7 @@ export class LidoWrap {
|
|
|
80
80
|
};
|
|
81
81
|
}
|
|
82
82
|
render() {
|
|
83
|
-
return (h(Host, { key: '
|
|
83
|
+
return (h(Host, { key: '50bc5770105477d0ef7cb080957c8d00198c8b09', class: "lido-wrap", value: this.value, type: this.type, "tab-index": this.tabIndex, style: this.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, disableSpeak: this.disableSpeak }, h("slot", { key: 'fcd1f5801e34171d1925e39f6c543f229a5d42bd' })));
|
|
84
84
|
}
|
|
85
85
|
static get is() { return "lido-wrap"; }
|
|
86
86
|
static get originalStyleUrls() {
|
|
@@ -431,7 +431,7 @@ export class LidoWrap {
|
|
|
431
431
|
"optional": false,
|
|
432
432
|
"docs": {
|
|
433
433
|
"tags": [],
|
|
434
|
-
"text": "The number of child elements that should be displayed inside the row.\nThis value is dynamically adjusted based on `minLength` and `maxLength`."
|
|
434
|
+
"text": "The number of child elements that should be displayed inside the row.\r\nThis value is dynamically adjusted based on `minLength` and `maxLength`."
|
|
435
435
|
},
|
|
436
436
|
"attribute": "child-elements-length",
|
|
437
437
|
"reflect": false
|
|
@@ -448,7 +448,7 @@ export class LidoWrap {
|
|
|
448
448
|
"optional": false,
|
|
449
449
|
"docs": {
|
|
450
450
|
"tags": [],
|
|
451
|
-
"text": "The minimum number of child elements that must be displayed inside the row.\nIf `childElementsLength` is less than this value, additional elements may be shown to meet this minimum."
|
|
451
|
+
"text": "The minimum number of child elements that must be displayed inside the row.\r\nIf `childElementsLength` is less than this value, additional elements may be shown to meet this minimum."
|
|
452
452
|
},
|
|
453
453
|
"attribute": "min-length",
|
|
454
454
|
"reflect": false
|
|
@@ -465,7 +465,7 @@ export class LidoWrap {
|
|
|
465
465
|
"optional": false,
|
|
466
466
|
"docs": {
|
|
467
467
|
"tags": [],
|
|
468
|
-
"text": "The maximum number of child elements that can be displayed inside the row.\nIf `childElementsLength` exceeds this value, excess elements will be hidden."
|
|
468
|
+
"text": "The maximum number of child elements that can be displayed inside the row.\r\nIf `childElementsLength` exceeds this value, excess elements will be hidden."
|
|
469
469
|
},
|
|
470
470
|
"attribute": "max-length",
|
|
471
471
|
"reflect": false
|
|
@@ -482,7 +482,7 @@ export class LidoWrap {
|
|
|
482
482
|
"optional": false,
|
|
483
483
|
"docs": {
|
|
484
484
|
"tags": [],
|
|
485
|
-
"text": "Enables flex layout mode for the container.\nIf set to `\"true\"`, the component will use a flex layout (`display: flex`) instead of the default grid layout (`display: grid`).\nAdditionally, the `lido-wrap` class will be replaced with `lido-flex` to allow custom flex-specific styling."
|
|
485
|
+
"text": "Enables flex layout mode for the container.\r\nIf set to `\"true\"`, the component will use a flex layout (`display: flex`) instead of the default grid layout (`display: grid`).\r\nAdditionally, the `lido-wrap` class will be replaced with `lido-flex` to allow custom flex-specific styling."
|
|
486
486
|
},
|
|
487
487
|
"attribute": "flex",
|
|
488
488
|
"reflect": false
|
|
@@ -535,7 +535,7 @@ export class LidoWrap {
|
|
|
535
535
|
"optional": false,
|
|
536
536
|
"docs": {
|
|
537
537
|
"tags": [],
|
|
538
|
-
"text": "CSS margin value applied to each child element inside the container.\nAccepts standard CSS margin formats (e.g., '10px', '5px 10px', etc.)."
|
|
538
|
+
"text": "CSS margin value applied to each child element inside the container.\r\nAccepts standard CSS margin formats (e.g., '10px', '5px 10px', etc.)."
|
|
539
539
|
},
|
|
540
540
|
"attribute": "margin",
|
|
541
541
|
"reflect": false,
|