@elmethis/qwik 0.0.28 → 0.0.30
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 +32 -33
- package/lib/index.qwik.mjs +32 -33
- package/lib/style.css +32 -26
- package/lib-types/components/typography/elm-inline-text.d.ts +1 -0
- package/package.json +1 -1
package/lib/index.qwik.cjs
CHANGED
|
@@ -723,7 +723,8 @@ const ElmInlineText = qwik.component$((props) => {
|
|
|
723
723
|
style: {
|
|
724
724
|
"--color": props.color,
|
|
725
725
|
"--font-size": size,
|
|
726
|
-
"--background-color": props.backgroundColor
|
|
726
|
+
"--background-color": props.backgroundColor,
|
|
727
|
+
...props.style
|
|
727
728
|
},
|
|
728
729
|
children: vnode
|
|
729
730
|
});
|
|
@@ -2673,16 +2674,17 @@ const ElmFragmentIdentifier = qwik.component$(({ id }) => {
|
|
|
2673
2674
|
children: "#"
|
|
2674
2675
|
});
|
|
2675
2676
|
});
|
|
2676
|
-
const h1 = "
|
|
2677
|
-
const h2 = "
|
|
2678
|
-
const h2__underline = "
|
|
2679
|
-
const h3 = "
|
|
2680
|
-
const h4 = "
|
|
2681
|
-
const h5 = "
|
|
2682
|
-
const h6 = "
|
|
2677
|
+
const h1 = "_h1_13qod_18";
|
|
2678
|
+
const h2 = "_h2_13qod_48";
|
|
2679
|
+
const h2__underline = "_h2__underline_13qod_76";
|
|
2680
|
+
const h3 = "_h3_13qod_92";
|
|
2681
|
+
const h4 = "_h4_13qod_109";
|
|
2682
|
+
const h5 = "_h5_13qod_113";
|
|
2683
|
+
const h6 = "_h6_13qod_117";
|
|
2683
2684
|
const styles$8 = {
|
|
2684
|
-
"heading-common": "_heading-
|
|
2685
|
+
"heading-common": "_heading-common_13qod_1",
|
|
2685
2686
|
h1,
|
|
2687
|
+
"heading-stretch": "_heading-stretch_13qod_1",
|
|
2686
2688
|
h2,
|
|
2687
2689
|
h2__underline,
|
|
2688
2690
|
h3,
|
|
@@ -2757,41 +2759,19 @@ const ElmList = qwik.component$(({ listStyle = "unordered", style }) => {
|
|
|
2757
2759
|
});
|
|
2758
2760
|
}
|
|
2759
2761
|
});
|
|
2760
|
-
const paragraph = "
|
|
2762
|
+
const paragraph = "_paragraph_14h3g_1";
|
|
2761
2763
|
const styles$6 = {
|
|
2762
2764
|
paragraph
|
|
2763
2765
|
};
|
|
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
2766
|
const ElmParagraph = qwik.component$(({ color, backgroundColor }) => {
|
|
2784
|
-
const { ref, isVisible } = useInView();
|
|
2785
2767
|
return /* @__PURE__ */ jsxRuntime.jsx("p", {
|
|
2786
|
-
ref,
|
|
2787
2768
|
class: [
|
|
2788
2769
|
styles$6.paragraph,
|
|
2789
2770
|
textStyles.text
|
|
2790
2771
|
],
|
|
2791
2772
|
style: {
|
|
2792
2773
|
"--color": color,
|
|
2793
|
-
"--background-color": backgroundColor
|
|
2794
|
-
"--opacity": isVisible.value ? 1 : 0
|
|
2774
|
+
"--background-color": backgroundColor
|
|
2795
2775
|
},
|
|
2796
2776
|
children: /* @__PURE__ */ jsxRuntime.jsx(qwik.Slot, {})
|
|
2797
2777
|
});
|
|
@@ -3278,6 +3258,25 @@ const useDelayedSignal = (initialValue) => {
|
|
|
3278
3258
|
dispatch
|
|
3279
3259
|
};
|
|
3280
3260
|
};
|
|
3261
|
+
const useInView = (props) => {
|
|
3262
|
+
const ref = qwik.useSignal();
|
|
3263
|
+
const isVisible = qwik.useSignal(props?.defaultValue ?? false);
|
|
3264
|
+
qwik.useVisibleTask$(() => {
|
|
3265
|
+
if (!ref.value) return;
|
|
3266
|
+
const observer = new IntersectionObserver(([entry]) => {
|
|
3267
|
+
isVisible.value = entry.isIntersecting;
|
|
3268
|
+
}, {
|
|
3269
|
+
rootMargin: "100px",
|
|
3270
|
+
threshold: 0.1
|
|
3271
|
+
});
|
|
3272
|
+
observer.observe(ref.value);
|
|
3273
|
+
return () => observer.disconnect();
|
|
3274
|
+
});
|
|
3275
|
+
return {
|
|
3276
|
+
ref,
|
|
3277
|
+
isVisible
|
|
3278
|
+
};
|
|
3279
|
+
};
|
|
3281
3280
|
const useLocalStorage = (key, initialValue) => {
|
|
3282
3281
|
const state = qwik.useSignal(initialValue);
|
|
3283
3282
|
qwik.useVisibleTask$(() => {
|
package/lib/index.qwik.mjs
CHANGED
|
@@ -721,7 +721,8 @@ const ElmInlineText = component$((props) => {
|
|
|
721
721
|
style: {
|
|
722
722
|
"--color": props.color,
|
|
723
723
|
"--font-size": size,
|
|
724
|
-
"--background-color": props.backgroundColor
|
|
724
|
+
"--background-color": props.backgroundColor,
|
|
725
|
+
...props.style
|
|
725
726
|
},
|
|
726
727
|
children: vnode
|
|
727
728
|
});
|
|
@@ -2671,16 +2672,17 @@ const ElmFragmentIdentifier = component$(({ id }) => {
|
|
|
2671
2672
|
children: "#"
|
|
2672
2673
|
});
|
|
2673
2674
|
});
|
|
2674
|
-
const h1 = "
|
|
2675
|
-
const h2 = "
|
|
2676
|
-
const h2__underline = "
|
|
2677
|
-
const h3 = "
|
|
2678
|
-
const h4 = "
|
|
2679
|
-
const h5 = "
|
|
2680
|
-
const h6 = "
|
|
2675
|
+
const h1 = "_h1_13qod_18";
|
|
2676
|
+
const h2 = "_h2_13qod_48";
|
|
2677
|
+
const h2__underline = "_h2__underline_13qod_76";
|
|
2678
|
+
const h3 = "_h3_13qod_92";
|
|
2679
|
+
const h4 = "_h4_13qod_109";
|
|
2680
|
+
const h5 = "_h5_13qod_113";
|
|
2681
|
+
const h6 = "_h6_13qod_117";
|
|
2681
2682
|
const styles$8 = {
|
|
2682
|
-
"heading-common": "_heading-
|
|
2683
|
+
"heading-common": "_heading-common_13qod_1",
|
|
2683
2684
|
h1,
|
|
2685
|
+
"heading-stretch": "_heading-stretch_13qod_1",
|
|
2684
2686
|
h2,
|
|
2685
2687
|
h2__underline,
|
|
2686
2688
|
h3,
|
|
@@ -2755,41 +2757,19 @@ const ElmList = component$(({ listStyle = "unordered", style }) => {
|
|
|
2755
2757
|
});
|
|
2756
2758
|
}
|
|
2757
2759
|
});
|
|
2758
|
-
const paragraph = "
|
|
2760
|
+
const paragraph = "_paragraph_14h3g_1";
|
|
2759
2761
|
const styles$6 = {
|
|
2760
2762
|
paragraph
|
|
2761
2763
|
};
|
|
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
2764
|
const ElmParagraph = component$(({ color, backgroundColor }) => {
|
|
2782
|
-
const { ref, isVisible } = useInView();
|
|
2783
2765
|
return /* @__PURE__ */ jsx("p", {
|
|
2784
|
-
ref,
|
|
2785
2766
|
class: [
|
|
2786
2767
|
styles$6.paragraph,
|
|
2787
2768
|
textStyles.text
|
|
2788
2769
|
],
|
|
2789
2770
|
style: {
|
|
2790
2771
|
"--color": color,
|
|
2791
|
-
"--background-color": backgroundColor
|
|
2792
|
-
"--opacity": isVisible.value ? 1 : 0
|
|
2772
|
+
"--background-color": backgroundColor
|
|
2793
2773
|
},
|
|
2794
2774
|
children: /* @__PURE__ */ jsx(Slot, {})
|
|
2795
2775
|
});
|
|
@@ -3276,6 +3256,25 @@ const useDelayedSignal = (initialValue) => {
|
|
|
3276
3256
|
dispatch
|
|
3277
3257
|
};
|
|
3278
3258
|
};
|
|
3259
|
+
const useInView = (props) => {
|
|
3260
|
+
const ref = useSignal();
|
|
3261
|
+
const isVisible = useSignal(props?.defaultValue ?? false);
|
|
3262
|
+
useVisibleTask$(() => {
|
|
3263
|
+
if (!ref.value) return;
|
|
3264
|
+
const observer = new IntersectionObserver(([entry]) => {
|
|
3265
|
+
isVisible.value = entry.isIntersecting;
|
|
3266
|
+
}, {
|
|
3267
|
+
rootMargin: "100px",
|
|
3268
|
+
threshold: 0.1
|
|
3269
|
+
});
|
|
3270
|
+
observer.observe(ref.value);
|
|
3271
|
+
return () => observer.disconnect();
|
|
3272
|
+
});
|
|
3273
|
+
return {
|
|
3274
|
+
ref,
|
|
3275
|
+
isVisible
|
|
3276
|
+
};
|
|
3277
|
+
};
|
|
3279
3278
|
const useLocalStorage = (key, initialValue) => {
|
|
3280
3279
|
const state = useSignal(initialValue);
|
|
3281
3280
|
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 {
|