@elmethis/qwik 0.0.28 → 0.0.29
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/lib/index.qwik.cjs +30 -32
- package/lib/index.qwik.mjs +30 -32
- package/lib/style.css +32 -26
- package/package.json +1 -1
package/lib/index.qwik.cjs
CHANGED
|
@@ -2673,16 +2673,17 @@ const ElmFragmentIdentifier = qwik.component$(({ id }) => {
|
|
|
2673
2673
|
children: "#"
|
|
2674
2674
|
});
|
|
2675
2675
|
});
|
|
2676
|
-
const h1 = "
|
|
2677
|
-
const h2 = "
|
|
2678
|
-
const h2__underline = "
|
|
2679
|
-
const h3 = "
|
|
2680
|
-
const h4 = "
|
|
2681
|
-
const h5 = "
|
|
2682
|
-
const h6 = "
|
|
2676
|
+
const h1 = "_h1_13qod_18";
|
|
2677
|
+
const h2 = "_h2_13qod_48";
|
|
2678
|
+
const h2__underline = "_h2__underline_13qod_76";
|
|
2679
|
+
const h3 = "_h3_13qod_92";
|
|
2680
|
+
const h4 = "_h4_13qod_109";
|
|
2681
|
+
const h5 = "_h5_13qod_113";
|
|
2682
|
+
const h6 = "_h6_13qod_117";
|
|
2683
2683
|
const styles$8 = {
|
|
2684
|
-
"heading-common": "_heading-
|
|
2684
|
+
"heading-common": "_heading-common_13qod_1",
|
|
2685
2685
|
h1,
|
|
2686
|
+
"heading-stretch": "_heading-stretch_13qod_1",
|
|
2686
2687
|
h2,
|
|
2687
2688
|
h2__underline,
|
|
2688
2689
|
h3,
|
|
@@ -2757,41 +2758,19 @@ const ElmList = qwik.component$(({ listStyle = "unordered", style }) => {
|
|
|
2757
2758
|
});
|
|
2758
2759
|
}
|
|
2759
2760
|
});
|
|
2760
|
-
const paragraph = "
|
|
2761
|
+
const paragraph = "_paragraph_14h3g_1";
|
|
2761
2762
|
const styles$6 = {
|
|
2762
2763
|
paragraph
|
|
2763
2764
|
};
|
|
2764
|
-
const useInView = (props) => {
|
|
2765
|
-
const ref = qwik.useSignal();
|
|
2766
|
-
const isVisible = qwik.useSignal(props?.defaultValue ?? false);
|
|
2767
|
-
qwik.useVisibleTask$(() => {
|
|
2768
|
-
if (!ref.value) return;
|
|
2769
|
-
const observer = new IntersectionObserver(([entry]) => {
|
|
2770
|
-
isVisible.value = entry.isIntersecting;
|
|
2771
|
-
}, {
|
|
2772
|
-
rootMargin: "100px",
|
|
2773
|
-
threshold: 0.1
|
|
2774
|
-
});
|
|
2775
|
-
observer.observe(ref.value);
|
|
2776
|
-
return () => observer.disconnect();
|
|
2777
|
-
});
|
|
2778
|
-
return {
|
|
2779
|
-
ref,
|
|
2780
|
-
isVisible
|
|
2781
|
-
};
|
|
2782
|
-
};
|
|
2783
2765
|
const ElmParagraph = qwik.component$(({ color, backgroundColor }) => {
|
|
2784
|
-
const { ref, isVisible } = useInView();
|
|
2785
2766
|
return /* @__PURE__ */ jsxRuntime.jsx("p", {
|
|
2786
|
-
ref,
|
|
2787
2767
|
class: [
|
|
2788
2768
|
styles$6.paragraph,
|
|
2789
2769
|
textStyles.text
|
|
2790
2770
|
],
|
|
2791
2771
|
style: {
|
|
2792
2772
|
"--color": color,
|
|
2793
|
-
"--background-color": backgroundColor
|
|
2794
|
-
"--opacity": isVisible.value ? 1 : 0
|
|
2773
|
+
"--background-color": backgroundColor
|
|
2795
2774
|
},
|
|
2796
2775
|
children: /* @__PURE__ */ jsxRuntime.jsx(qwik.Slot, {})
|
|
2797
2776
|
});
|
|
@@ -3278,6 +3257,25 @@ const useDelayedSignal = (initialValue) => {
|
|
|
3278
3257
|
dispatch
|
|
3279
3258
|
};
|
|
3280
3259
|
};
|
|
3260
|
+
const useInView = (props) => {
|
|
3261
|
+
const ref = qwik.useSignal();
|
|
3262
|
+
const isVisible = qwik.useSignal(props?.defaultValue ?? false);
|
|
3263
|
+
qwik.useVisibleTask$(() => {
|
|
3264
|
+
if (!ref.value) return;
|
|
3265
|
+
const observer = new IntersectionObserver(([entry]) => {
|
|
3266
|
+
isVisible.value = entry.isIntersecting;
|
|
3267
|
+
}, {
|
|
3268
|
+
rootMargin: "100px",
|
|
3269
|
+
threshold: 0.1
|
|
3270
|
+
});
|
|
3271
|
+
observer.observe(ref.value);
|
|
3272
|
+
return () => observer.disconnect();
|
|
3273
|
+
});
|
|
3274
|
+
return {
|
|
3275
|
+
ref,
|
|
3276
|
+
isVisible
|
|
3277
|
+
};
|
|
3278
|
+
};
|
|
3281
3279
|
const useLocalStorage = (key, initialValue) => {
|
|
3282
3280
|
const state = qwik.useSignal(initialValue);
|
|
3283
3281
|
qwik.useVisibleTask$(() => {
|
package/lib/index.qwik.mjs
CHANGED
|
@@ -2671,16 +2671,17 @@ const ElmFragmentIdentifier = component$(({ id }) => {
|
|
|
2671
2671
|
children: "#"
|
|
2672
2672
|
});
|
|
2673
2673
|
});
|
|
2674
|
-
const h1 = "
|
|
2675
|
-
const h2 = "
|
|
2676
|
-
const h2__underline = "
|
|
2677
|
-
const h3 = "
|
|
2678
|
-
const h4 = "
|
|
2679
|
-
const h5 = "
|
|
2680
|
-
const h6 = "
|
|
2674
|
+
const h1 = "_h1_13qod_18";
|
|
2675
|
+
const h2 = "_h2_13qod_48";
|
|
2676
|
+
const h2__underline = "_h2__underline_13qod_76";
|
|
2677
|
+
const h3 = "_h3_13qod_92";
|
|
2678
|
+
const h4 = "_h4_13qod_109";
|
|
2679
|
+
const h5 = "_h5_13qod_113";
|
|
2680
|
+
const h6 = "_h6_13qod_117";
|
|
2681
2681
|
const styles$8 = {
|
|
2682
|
-
"heading-common": "_heading-
|
|
2682
|
+
"heading-common": "_heading-common_13qod_1",
|
|
2683
2683
|
h1,
|
|
2684
|
+
"heading-stretch": "_heading-stretch_13qod_1",
|
|
2684
2685
|
h2,
|
|
2685
2686
|
h2__underline,
|
|
2686
2687
|
h3,
|
|
@@ -2755,41 +2756,19 @@ const ElmList = component$(({ listStyle = "unordered", style }) => {
|
|
|
2755
2756
|
});
|
|
2756
2757
|
}
|
|
2757
2758
|
});
|
|
2758
|
-
const paragraph = "
|
|
2759
|
+
const paragraph = "_paragraph_14h3g_1";
|
|
2759
2760
|
const styles$6 = {
|
|
2760
2761
|
paragraph
|
|
2761
2762
|
};
|
|
2762
|
-
const useInView = (props) => {
|
|
2763
|
-
const ref = useSignal();
|
|
2764
|
-
const isVisible = useSignal(props?.defaultValue ?? false);
|
|
2765
|
-
useVisibleTask$(() => {
|
|
2766
|
-
if (!ref.value) return;
|
|
2767
|
-
const observer = new IntersectionObserver(([entry]) => {
|
|
2768
|
-
isVisible.value = entry.isIntersecting;
|
|
2769
|
-
}, {
|
|
2770
|
-
rootMargin: "100px",
|
|
2771
|
-
threshold: 0.1
|
|
2772
|
-
});
|
|
2773
|
-
observer.observe(ref.value);
|
|
2774
|
-
return () => observer.disconnect();
|
|
2775
|
-
});
|
|
2776
|
-
return {
|
|
2777
|
-
ref,
|
|
2778
|
-
isVisible
|
|
2779
|
-
};
|
|
2780
|
-
};
|
|
2781
2763
|
const ElmParagraph = component$(({ color, backgroundColor }) => {
|
|
2782
|
-
const { ref, isVisible } = useInView();
|
|
2783
2764
|
return /* @__PURE__ */ jsx("p", {
|
|
2784
|
-
ref,
|
|
2785
2765
|
class: [
|
|
2786
2766
|
styles$6.paragraph,
|
|
2787
2767
|
textStyles.text
|
|
2788
2768
|
],
|
|
2789
2769
|
style: {
|
|
2790
2770
|
"--color": color,
|
|
2791
|
-
"--background-color": backgroundColor
|
|
2792
|
-
"--opacity": isVisible.value ? 1 : 0
|
|
2771
|
+
"--background-color": backgroundColor
|
|
2793
2772
|
},
|
|
2794
2773
|
children: /* @__PURE__ */ jsx(Slot, {})
|
|
2795
2774
|
});
|
|
@@ -3276,6 +3255,25 @@ const useDelayedSignal = (initialValue) => {
|
|
|
3276
3255
|
dispatch
|
|
3277
3256
|
};
|
|
3278
3257
|
};
|
|
3258
|
+
const useInView = (props) => {
|
|
3259
|
+
const ref = useSignal();
|
|
3260
|
+
const isVisible = useSignal(props?.defaultValue ?? false);
|
|
3261
|
+
useVisibleTask$(() => {
|
|
3262
|
+
if (!ref.value) return;
|
|
3263
|
+
const observer = new IntersectionObserver(([entry]) => {
|
|
3264
|
+
isVisible.value = entry.isIntersecting;
|
|
3265
|
+
}, {
|
|
3266
|
+
rootMargin: "100px",
|
|
3267
|
+
threshold: 0.1
|
|
3268
|
+
});
|
|
3269
|
+
observer.observe(ref.value);
|
|
3270
|
+
return () => observer.disconnect();
|
|
3271
|
+
});
|
|
3272
|
+
return {
|
|
3273
|
+
ref,
|
|
3274
|
+
isVisible
|
|
3275
|
+
};
|
|
3276
|
+
};
|
|
3279
3277
|
const useLocalStorage = (key, initialValue) => {
|
|
3280
3278
|
const state = useSignal(initialValue);
|
|
3281
3279
|
useVisibleTask$(() => {
|
package/lib/style.css
CHANGED
|
@@ -1416,7 +1416,7 @@
|
|
|
1416
1416
|
._fragment_1kofp_1:active {
|
|
1417
1417
|
opacity: 0.5;
|
|
1418
1418
|
transform: translateX(1px) translateY(1px);
|
|
1419
|
-
}._heading-
|
|
1419
|
+
}._heading-common_13qod_1 {
|
|
1420
1420
|
position: relative;
|
|
1421
1421
|
font-size: var(--font-size);
|
|
1422
1422
|
line-height: var(--font-size);
|
|
@@ -1425,7 +1425,15 @@
|
|
|
1425
1425
|
transition: color 400ms, opacity 800ms;
|
|
1426
1426
|
}
|
|
1427
1427
|
|
|
1428
|
-
|
|
1428
|
+
@keyframes _heading-stretch_13qod_1 {
|
|
1429
|
+
from {
|
|
1430
|
+
transform: scaleX(0);
|
|
1431
|
+
}
|
|
1432
|
+
to {
|
|
1433
|
+
transform: scaleX(1);
|
|
1434
|
+
}
|
|
1435
|
+
}
|
|
1436
|
+
._h1_13qod_18::after {
|
|
1429
1437
|
position: absolute;
|
|
1430
1438
|
content: "";
|
|
1431
1439
|
bottom: -4px;
|
|
@@ -1433,13 +1441,13 @@
|
|
|
1433
1441
|
width: 100%;
|
|
1434
1442
|
height: 0.25px;
|
|
1435
1443
|
background-color: rgba(0, 0, 0, 0.5);
|
|
1436
|
-
|
|
1437
|
-
|
|
1444
|
+
transform-origin: left;
|
|
1445
|
+
animation: _heading-stretch_13qod_1 1000ms ease 200ms both;
|
|
1438
1446
|
}
|
|
1439
|
-
[data-theme=dark] .
|
|
1447
|
+
[data-theme=dark] ._h1_13qod_18::after {
|
|
1440
1448
|
background-color: rgba(255, 255, 255, 0.5);
|
|
1441
1449
|
}
|
|
1442
|
-
.
|
|
1450
|
+
._h1_13qod_18::before {
|
|
1443
1451
|
position: absolute;
|
|
1444
1452
|
content: "";
|
|
1445
1453
|
bottom: -6px;
|
|
@@ -1451,11 +1459,11 @@
|
|
|
1451
1459
|
transform: scaleY(var(--scale));
|
|
1452
1460
|
transform-origin: top;
|
|
1453
1461
|
}
|
|
1454
|
-
[data-theme=dark] .
|
|
1462
|
+
[data-theme=dark] ._h1_13qod_18::before {
|
|
1455
1463
|
background-color: rgba(255, 255, 255, 0.6);
|
|
1456
1464
|
}
|
|
1457
1465
|
|
|
1458
|
-
.
|
|
1466
|
+
._h2_13qod_48::after {
|
|
1459
1467
|
position: absolute;
|
|
1460
1468
|
content: "";
|
|
1461
1469
|
right: 2px;
|
|
@@ -1466,10 +1474,10 @@
|
|
|
1466
1474
|
transform: skewX(-25deg);
|
|
1467
1475
|
background-color: rgba(0, 0, 0, 0.8);
|
|
1468
1476
|
}
|
|
1469
|
-
[data-theme=dark] .
|
|
1477
|
+
[data-theme=dark] ._h2_13qod_48::after {
|
|
1470
1478
|
background-color: rgba(255, 255, 255, 0.8);
|
|
1471
1479
|
}
|
|
1472
|
-
.
|
|
1480
|
+
._h2_13qod_48::before {
|
|
1473
1481
|
position: absolute;
|
|
1474
1482
|
content: "";
|
|
1475
1483
|
right: 10px;
|
|
@@ -1480,10 +1488,10 @@
|
|
|
1480
1488
|
transform: skewX(-25deg);
|
|
1481
1489
|
background-color: rgba(0, 0, 0, 0.8);
|
|
1482
1490
|
}
|
|
1483
|
-
[data-theme=dark] .
|
|
1491
|
+
[data-theme=dark] ._h2_13qod_48::before {
|
|
1484
1492
|
background-color: rgba(255, 255, 255, 0.8);
|
|
1485
1493
|
}
|
|
1486
|
-
.
|
|
1494
|
+
._h2__underline_13qod_76 {
|
|
1487
1495
|
overflow: hidden;
|
|
1488
1496
|
position: absolute;
|
|
1489
1497
|
content: "";
|
|
@@ -1492,19 +1500,18 @@
|
|
|
1492
1500
|
width: 100%;
|
|
1493
1501
|
height: 0.25px;
|
|
1494
1502
|
background-color: rgba(0, 0, 0, 0.5);
|
|
1495
|
-
transition: transform 800ms;
|
|
1496
|
-
transform: scaleX(var(--scale));
|
|
1497
1503
|
transform-origin: left;
|
|
1504
|
+
animation: _heading-stretch_13qod_1 1000ms ease 200ms both;
|
|
1498
1505
|
}
|
|
1499
|
-
[data-theme=dark] .
|
|
1506
|
+
[data-theme=dark] ._h2__underline_13qod_76 {
|
|
1500
1507
|
background-color: rgba(255, 255, 255, 0.5);
|
|
1501
1508
|
}
|
|
1502
1509
|
|
|
1503
|
-
.
|
|
1510
|
+
._h3_13qod_92 {
|
|
1504
1511
|
box-sizing: border-box;
|
|
1505
1512
|
padding-left: 0.75rem;
|
|
1506
1513
|
}
|
|
1507
|
-
.
|
|
1514
|
+
._h3_13qod_92::after {
|
|
1508
1515
|
position: absolute;
|
|
1509
1516
|
content: "";
|
|
1510
1517
|
width: 3px;
|
|
@@ -1513,19 +1520,19 @@
|
|
|
1513
1520
|
left: 0;
|
|
1514
1521
|
background-color: rgba(0, 0, 0, 0.5);
|
|
1515
1522
|
}
|
|
1516
|
-
[data-theme=dark] .
|
|
1523
|
+
[data-theme=dark] ._h3_13qod_92::after {
|
|
1517
1524
|
background-color: rgba(255, 255, 255, 0.5);
|
|
1518
1525
|
}
|
|
1519
1526
|
|
|
1520
|
-
.
|
|
1527
|
+
._h4_13qod_109 {
|
|
1521
1528
|
position: relative;
|
|
1522
1529
|
}
|
|
1523
1530
|
|
|
1524
|
-
.
|
|
1531
|
+
._h5_13qod_113 {
|
|
1525
1532
|
position: relative;
|
|
1526
1533
|
}
|
|
1527
1534
|
|
|
1528
|
-
.
|
|
1535
|
+
._h6_13qod_117 {
|
|
1529
1536
|
position: relative;
|
|
1530
1537
|
}._elmethis-list-common_6g6c5_1 {
|
|
1531
1538
|
margin-block: var(--margin-block, 0);
|
|
@@ -1569,21 +1576,20 @@
|
|
|
1569
1576
|
}
|
|
1570
1577
|
._elmethis-numbered-list_6g6c5_24 li ol li ol li ol li {
|
|
1571
1578
|
list-style-type: lower-greek;
|
|
1572
|
-
}.
|
|
1573
|
-
opacity: var(--opacity, 0);
|
|
1579
|
+
}._paragraph_14h3g_1 {
|
|
1574
1580
|
transition: opacity 800ms;
|
|
1575
1581
|
color: var(--color, #606875);
|
|
1576
1582
|
background-color: var(--background-color, inherit);
|
|
1577
1583
|
margin-block: var(--margin-block, 0);
|
|
1578
1584
|
}
|
|
1579
|
-
.
|
|
1585
|
+
._paragraph_14h3g_1::selection {
|
|
1580
1586
|
color: rgba(255, 255, 255, 0.7);
|
|
1581
1587
|
background-color: rgba(0, 0, 0, 0.7);
|
|
1582
1588
|
}
|
|
1583
|
-
[data-theme=dark] .
|
|
1589
|
+
[data-theme=dark] ._paragraph_14h3g_1 {
|
|
1584
1590
|
color: rgba(255, 255, 255, 0.7);
|
|
1585
1591
|
}
|
|
1586
|
-
[data-theme=dark] .
|
|
1592
|
+
[data-theme=dark] ._paragraph_14h3g_1::selection {
|
|
1587
1593
|
color: rgba(0, 0, 0, 0.7);
|
|
1588
1594
|
background-color: rgba(255, 255, 255, 0.7);
|
|
1589
1595
|
}._table_x2nyq_1 {
|