@elmethis/qwik 0.0.26 → 0.0.28
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 +230 -197
- package/lib/index.qwik.mjs +230 -197
- package/lib/style.css +137 -103
- package/lib-types/components/code/elm-code-block.d.ts +1 -4
- package/lib-types/components/containments/elm-toggle.d.ts +2 -0
- package/lib-types/components/icon/elm-square-loading-icon.d.ts +6 -0
- package/lib-types/components/icon/elm-square-loading-icon.stories.d.ts +6 -0
- package/lib-types/components/media/elm-block-image.d.ts +4 -1
- package/lib-types/components/media/elm-block-image.stories.d.ts +1 -0
- package/lib-types/components/media/elm-file.d.ts +2 -0
- package/lib-types/components/navigation/elm-bookmark.d.ts +2 -0
- package/lib-types/components/others/elm-jarkup.d.ts +2 -0
- package/lib-types/components/others/elm-markdown.d.ts +2 -0
- package/lib-types/components/table/elm-table.d.ts +1 -4
- package/lib-types/components/typography/elm-block-quote.d.ts +2 -0
- package/lib-types/components/typography/elm-callout.d.ts +2 -0
- package/lib-types/components/typography/elm-divider.d.ts +1 -4
- package/lib-types/components/typography/elm-heading.d.ts +2 -0
- package/lib-types/components/typography/elm-list.d.ts +2 -0
- package/lib-types/index.d.ts +1 -0
- package/package.json +1 -1
package/lib/index.qwik.mjs
CHANGED
|
@@ -8,7 +8,7 @@ import { marked } from "marked";
|
|
|
8
8
|
const caption$1 = "_caption_1j0ec_27";
|
|
9
9
|
const divider = "_divider_1j0ec_50";
|
|
10
10
|
const code$2 = "_code_1j0ec_1";
|
|
11
|
-
const styles$
|
|
11
|
+
const styles$A = {
|
|
12
12
|
"code-block": "_code-block_1j0ec_1",
|
|
13
13
|
"language-icon": "_language-icon_1j0ec_22",
|
|
14
14
|
caption: caption$1,
|
|
@@ -68,7 +68,7 @@ const Typescript = component$(({ size = 24, ...props }) => {
|
|
|
68
68
|
});
|
|
69
69
|
});
|
|
70
70
|
const path = "_path_1ccs2_1";
|
|
71
|
-
const styles$
|
|
71
|
+
const styles$z = {
|
|
72
72
|
path
|
|
73
73
|
};
|
|
74
74
|
const Bash = component$(({ size = 24, ...props }) => {
|
|
@@ -84,7 +84,7 @@ const Bash = component$(({ size = 24, ...props }) => {
|
|
|
84
84
|
d: "M4.24 4.24h119.53v119.53H4.24z"
|
|
85
85
|
}),
|
|
86
86
|
/* @__PURE__ */ jsx("path", {
|
|
87
|
-
class: styles$
|
|
87
|
+
class: styles$z.path,
|
|
88
88
|
d: "M109.01 28.64L71.28 6.24c-2.25-1.33-4.77-2-7.28-2s-5.03.67-7.28 2.01l-37.74 22.4c-4.5 2.67-7.28 7.61-7.28 12.96v44.8c0 5.35 2.77 10.29 7.28 12.96l37.73 22.4c2.25 1.34 4.76 2 7.28 2c2.51 0 5.03-.67 7.28-2l37.74-22.4c4.5-2.67 7.28-7.62 7.28-12.96V41.6c0-5.34-2.77-10.29-7.28-12.96M79.79 98.59l.06 3.22c0 .39-.25.83-.55.99l-1.91 1.1c-.3.15-.56-.03-.56-.42l-.03-3.17c-1.63.68-3.29.84-4.34.42c-.2-.08-.29-.37-.21-.71l.69-2.91c.06-.23.18-.46.34-.6c.06-.06.12-.1.18-.13c.11-.06.22-.07.31-.03c1.14.38 2.59.2 3.99-.5c1.78-.9 2.97-2.72 2.95-4.52c-.02-1.64-.9-2.31-3.05-2.33c-2.74.01-5.3-.53-5.34-4.57c-.03-3.32 1.69-6.78 4.43-8.96l-.03-3.25c0-.4.24-.84.55-1l1.85-1.18c.3-.15.56.04.56.43l.03 3.25c1.36-.54 2.54-.69 3.61-.44c.23.06.34.38.24.75l-.72 2.88c-.06.22-.18.44-.33.58a.8.8 0 0 1-.19.14c-.1.05-.19.06-.28.05c-.49-.11-1.65-.36-3.48.56c-1.92.97-2.59 2.64-2.58 3.88c.02 1.48.77 1.93 3.39 1.97c3.49.06 4.99 1.58 5.03 5.09c.05 3.44-1.79 7.15-4.61 9.41m26.34-60.5l-35.7 22.05c-4.45 2.6-7.73 5.52-7.74 10.89v43.99c0 3.21 1.3 5.29 3.29 5.9c-.65.11-1.32.19-1.98.19c-2.09 0-4.15-.57-5.96-1.64l-37.73-22.4c-3.69-2.19-5.98-6.28-5.98-10.67V41.6c0-4.39 2.29-8.48 5.98-10.67l37.74-22.4c1.81-1.07 3.87-1.64 5.96-1.64s4.15.57 5.96 1.64l37.74 22.4c3.11 1.85 5.21 5.04 5.8 8.63c-1.27-2.67-4.09-3.39-7.38-1.47"
|
|
89
89
|
}),
|
|
90
90
|
/* @__PURE__ */ jsx("path", {
|
|
@@ -525,12 +525,12 @@ const C = component$(({ size = 24, ...props }) => {
|
|
|
525
525
|
});
|
|
526
526
|
});
|
|
527
527
|
const icon$4 = "_icon_1gvln_1";
|
|
528
|
-
const styles$
|
|
528
|
+
const styles$y = {
|
|
529
529
|
icon: icon$4
|
|
530
530
|
};
|
|
531
531
|
const ElmMdiIcon = component$(({ d, size = "1em", color, lightColor, darkColor }) => {
|
|
532
532
|
return /* @__PURE__ */ jsx("svg", {
|
|
533
|
-
class: styles$
|
|
533
|
+
class: styles$y.icon,
|
|
534
534
|
style: {
|
|
535
535
|
"--color": lightColor ?? color,
|
|
536
536
|
"--dark-color": darkColor ?? color
|
|
@@ -639,7 +639,7 @@ const text$3 = "_text_1gswr_1";
|
|
|
639
639
|
const code$1 = "_code_1gswr_12";
|
|
640
640
|
const kbd = "_kbd_1gswr_21";
|
|
641
641
|
const link$1 = "_link_1gswr_47";
|
|
642
|
-
const styles$
|
|
642
|
+
const styles$x = {
|
|
643
643
|
text: text$3,
|
|
644
644
|
code: code$1,
|
|
645
645
|
kbd,
|
|
@@ -650,16 +650,16 @@ const textStyles = {
|
|
|
650
650
|
text: text$2
|
|
651
651
|
};
|
|
652
652
|
const icon$3 = "_icon_19g82_1";
|
|
653
|
-
const styles$
|
|
653
|
+
const styles$w = {
|
|
654
654
|
icon: icon$3
|
|
655
655
|
};
|
|
656
656
|
const ElmInlineIcon = component$(({ src, alt }) => {
|
|
657
657
|
return /* @__PURE__ */ jsx("span", {
|
|
658
|
-
class: styles$
|
|
658
|
+
class: styles$w.icon,
|
|
659
659
|
children: /* @__PURE__ */ jsx("img", {
|
|
660
660
|
src,
|
|
661
661
|
alt,
|
|
662
|
-
class: styles$
|
|
662
|
+
class: styles$w.icon
|
|
663
663
|
})
|
|
664
664
|
});
|
|
665
665
|
});
|
|
@@ -670,7 +670,7 @@ const ElmInlineText = component$((props) => {
|
|
|
670
670
|
}) : /* @__PURE__ */ jsx(Slot, {});
|
|
671
671
|
if (props.kbd) {
|
|
672
672
|
vnode = /* @__PURE__ */ jsx("kbd", {
|
|
673
|
-
class: styles$
|
|
673
|
+
class: styles$x.kbd,
|
|
674
674
|
children: vnode
|
|
675
675
|
});
|
|
676
676
|
}
|
|
@@ -696,13 +696,13 @@ const ElmInlineText = component$((props) => {
|
|
|
696
696
|
}
|
|
697
697
|
if (code2) {
|
|
698
698
|
vnode = /* @__PURE__ */ jsx("code", {
|
|
699
|
-
class: styles$
|
|
699
|
+
class: styles$x.code,
|
|
700
700
|
children: vnode
|
|
701
701
|
});
|
|
702
702
|
}
|
|
703
703
|
if (props.ruby) {
|
|
704
704
|
vnode = /* @__PURE__ */ jsxs("ruby", {
|
|
705
|
-
class: styles$
|
|
705
|
+
class: styles$x.text,
|
|
706
706
|
children: [
|
|
707
707
|
/* @__PURE__ */ jsx("span", {
|
|
708
708
|
children: vnode
|
|
@@ -715,7 +715,7 @@ const ElmInlineText = component$((props) => {
|
|
|
715
715
|
}
|
|
716
716
|
const wrappedVnode = /* @__PURE__ */ jsx("span", {
|
|
717
717
|
class: [
|
|
718
|
-
styles$
|
|
718
|
+
styles$x.text,
|
|
719
719
|
textStyles.text
|
|
720
720
|
],
|
|
721
721
|
style: {
|
|
@@ -727,7 +727,7 @@ const ElmInlineText = component$((props) => {
|
|
|
727
727
|
});
|
|
728
728
|
if (props.href) {
|
|
729
729
|
return /* @__PURE__ */ jsxs("a", {
|
|
730
|
-
class: styles$
|
|
730
|
+
class: styles$x.link,
|
|
731
731
|
href: props.href,
|
|
732
732
|
style: {
|
|
733
733
|
"--font-size": size
|
|
@@ -745,7 +745,7 @@ const ElmInlineText = component$((props) => {
|
|
|
745
745
|
return wrappedVnode;
|
|
746
746
|
});
|
|
747
747
|
const code = "_code_1sw1e_1";
|
|
748
|
-
const styles$
|
|
748
|
+
const styles$v = {
|
|
749
749
|
code
|
|
750
750
|
};
|
|
751
751
|
const ElmShikiHighlighter = component$(({ code: code2, language = "txt" }) => {
|
|
@@ -770,11 +770,11 @@ const ElmShikiHighlighter = component$(({ code: code2, language = "txt" }) => {
|
|
|
770
770
|
}
|
|
771
771
|
});
|
|
772
772
|
return /* @__PURE__ */ jsx("pre", {
|
|
773
|
-
class: styles$
|
|
773
|
+
class: styles$v.code,
|
|
774
774
|
dangerouslySetInnerHTML: rawHtml.value
|
|
775
775
|
});
|
|
776
776
|
});
|
|
777
|
-
const ElmCodeBlock = component$(({ code: code2, language = "txt", caption: caption2,
|
|
777
|
+
const ElmCodeBlock = component$(({ code: code2, language = "txt", caption: caption2, style }) => {
|
|
778
778
|
const timerId = useSignal(null);
|
|
779
779
|
const copyToClipboard = $(async () => {
|
|
780
780
|
if (timerId.value !== null) {
|
|
@@ -789,19 +789,17 @@ const ElmCodeBlock = component$(({ code: code2, language = "txt", caption: capti
|
|
|
789
789
|
}
|
|
790
790
|
});
|
|
791
791
|
return /* @__PURE__ */ jsxs("figure", {
|
|
792
|
-
class: styles$
|
|
793
|
-
style
|
|
794
|
-
margin
|
|
795
|
-
},
|
|
792
|
+
class: styles$A["code-block"],
|
|
793
|
+
style,
|
|
796
794
|
children: [
|
|
797
795
|
/* @__PURE__ */ jsx("span", {
|
|
798
|
-
class: styles$
|
|
796
|
+
class: styles$A["language-icon"],
|
|
799
797
|
children: /* @__PURE__ */ jsx(ElmLanguageIcon, {
|
|
800
798
|
language
|
|
801
799
|
})
|
|
802
800
|
}),
|
|
803
801
|
/* @__PURE__ */ jsx("span", {
|
|
804
|
-
class: styles$
|
|
802
|
+
class: styles$A.caption,
|
|
805
803
|
children: /* @__PURE__ */ jsxs(ElmInlineText, {
|
|
806
804
|
children: [
|
|
807
805
|
caption2 || language,
|
|
@@ -810,7 +808,7 @@ const ElmCodeBlock = component$(({ code: code2, language = "txt", caption: capti
|
|
|
810
808
|
})
|
|
811
809
|
}),
|
|
812
810
|
/* @__PURE__ */ jsx("div", {
|
|
813
|
-
class: styles$
|
|
811
|
+
class: styles$A["copy-icon"],
|
|
814
812
|
onClick$: copyToClipboard,
|
|
815
813
|
children: /* @__PURE__ */ jsx(ElmMdiIcon, {
|
|
816
814
|
size: "1.25rem",
|
|
@@ -819,10 +817,10 @@ const ElmCodeBlock = component$(({ code: code2, language = "txt", caption: capti
|
|
|
819
817
|
})
|
|
820
818
|
}),
|
|
821
819
|
/* @__PURE__ */ jsx("hr", {
|
|
822
|
-
class: styles$
|
|
820
|
+
class: styles$A.divider
|
|
823
821
|
}),
|
|
824
822
|
/* @__PURE__ */ jsx("div", {
|
|
825
|
-
class: styles$
|
|
823
|
+
class: styles$A.code,
|
|
826
824
|
children: /* @__PURE__ */ jsx(ElmShikiHighlighter, {
|
|
827
825
|
code: code2,
|
|
828
826
|
language
|
|
@@ -842,7 +840,7 @@ const ElmKatex = component$(({ expression, block = false }) => {
|
|
|
842
840
|
});
|
|
843
841
|
});
|
|
844
842
|
const parallax = "_parallax_1kb0k_1";
|
|
845
|
-
const styles$
|
|
843
|
+
const styles$u = {
|
|
846
844
|
"parallax-watcher": "_parallax-watcher_1kb0k_1",
|
|
847
845
|
parallax
|
|
848
846
|
};
|
|
@@ -851,13 +849,13 @@ const ElmParallax = component$(({ images }) => {
|
|
|
851
849
|
return /* @__PURE__ */ jsxs(Fragment, {
|
|
852
850
|
children: [
|
|
853
851
|
/* @__PURE__ */ jsx("div", {
|
|
854
|
-
class: styles$
|
|
852
|
+
class: styles$u["parallax-watcher"],
|
|
855
853
|
"window:onScroll$": () => {
|
|
856
854
|
y.value = window.scrollY;
|
|
857
855
|
}
|
|
858
856
|
}),
|
|
859
857
|
images.map((image2, index) => /* @__PURE__ */ jsx("div", {
|
|
860
|
-
class: styles$
|
|
858
|
+
class: styles$u.parallax,
|
|
861
859
|
style: {
|
|
862
860
|
backgroundImage: `url(${image2})`,
|
|
863
861
|
transform: `scale(1.2) translateY(${y.value / (1e3 * (index + 1))}%)`,
|
|
@@ -867,60 +865,61 @@ const ElmParallax = component$(({ images }) => {
|
|
|
867
865
|
]
|
|
868
866
|
});
|
|
869
867
|
});
|
|
870
|
-
const toggle = "
|
|
871
|
-
const summary = "
|
|
872
|
-
const content$2 = "
|
|
873
|
-
const footer = "
|
|
874
|
-
const styles$
|
|
868
|
+
const toggle = "_toggle_pbyu8_1";
|
|
869
|
+
const summary = "_summary_pbyu8_14";
|
|
870
|
+
const content$2 = "_content_pbyu8_60";
|
|
871
|
+
const footer = "_footer_pbyu8_80";
|
|
872
|
+
const styles$t = {
|
|
875
873
|
toggle,
|
|
876
|
-
"toggle-closed": "_toggle-
|
|
877
|
-
"toggle-open": "_toggle-
|
|
874
|
+
"toggle-closed": "_toggle-closed_pbyu8_7",
|
|
875
|
+
"toggle-open": "_toggle-open_pbyu8_10",
|
|
878
876
|
summary,
|
|
879
|
-
"summary-open": "_summary-
|
|
880
|
-
"summary-closed": "_summary-
|
|
881
|
-
"chevron-icon": "_chevron-
|
|
882
|
-
"chevron-icon-open": "_chevron-icon-
|
|
883
|
-
"chevron-icon-closed": "_chevron-icon-
|
|
884
|
-
"plus-icon": "_plus-
|
|
885
|
-
"plus-icon-open": "_plus-icon-
|
|
886
|
-
"plus-icon-closed": "_plus-icon-
|
|
877
|
+
"summary-open": "_summary-open_pbyu8_29",
|
|
878
|
+
"summary-closed": "_summary-closed_pbyu8_33",
|
|
879
|
+
"chevron-icon": "_chevron-icon_pbyu8_37",
|
|
880
|
+
"chevron-icon-open": "_chevron-icon-open_pbyu8_40",
|
|
881
|
+
"chevron-icon-closed": "_chevron-icon-closed_pbyu8_43",
|
|
882
|
+
"plus-icon": "_plus-icon_pbyu8_47",
|
|
883
|
+
"plus-icon-open": "_plus-icon-open_pbyu8_53",
|
|
884
|
+
"plus-icon-closed": "_plus-icon-closed_pbyu8_56",
|
|
887
885
|
content: content$2,
|
|
888
|
-
"content-open": "_content-
|
|
889
|
-
"content-closed": "_content-
|
|
886
|
+
"content-open": "_content-open_pbyu8_73",
|
|
887
|
+
"content-closed": "_content-closed_pbyu8_76",
|
|
890
888
|
footer,
|
|
891
|
-
"footer-line": "_footer-
|
|
892
|
-
"footer-cross-icon": "_footer-cross-
|
|
889
|
+
"footer-line": "_footer-line_pbyu8_99",
|
|
890
|
+
"footer-cross-icon": "_footer-cross-icon_pbyu8_105"
|
|
893
891
|
};
|
|
894
|
-
const ElmToggle = component$(({ summary: summary2 }) => {
|
|
892
|
+
const ElmToggle = component$(({ summary: summary2, style }) => {
|
|
895
893
|
const isOpen = useSignal(false);
|
|
896
894
|
const toggle2 = $(() => {
|
|
897
895
|
isOpen.value = !isOpen.value;
|
|
898
896
|
});
|
|
899
897
|
return /* @__PURE__ */ jsxs("div", {
|
|
900
898
|
class: [
|
|
901
|
-
styles$
|
|
899
|
+
styles$t.toggle,
|
|
902
900
|
{
|
|
903
|
-
[styles$
|
|
904
|
-
[styles$
|
|
901
|
+
[styles$t["toggle-open"]]: isOpen.value,
|
|
902
|
+
[styles$t["toggle-closed"]]: !isOpen.value
|
|
905
903
|
}
|
|
906
904
|
],
|
|
905
|
+
style,
|
|
907
906
|
children: [
|
|
908
907
|
/* @__PURE__ */ jsxs("div", {
|
|
909
908
|
class: [
|
|
910
|
-
styles$
|
|
909
|
+
styles$t.summary,
|
|
911
910
|
{
|
|
912
|
-
[styles$
|
|
913
|
-
[styles$
|
|
911
|
+
[styles$t["summary-open"]]: isOpen.value,
|
|
912
|
+
[styles$t["summary-closed"]]: !isOpen.value
|
|
914
913
|
}
|
|
915
914
|
],
|
|
916
915
|
onClick$: toggle2,
|
|
917
916
|
children: [
|
|
918
917
|
/* @__PURE__ */ jsx("span", {
|
|
919
918
|
class: [
|
|
920
|
-
styles$
|
|
919
|
+
styles$t["chevron-icon"],
|
|
921
920
|
{
|
|
922
|
-
[styles$
|
|
923
|
-
[styles$
|
|
921
|
+
[styles$t["chevron-icon-open"]]: isOpen.value,
|
|
922
|
+
[styles$t["chevron-icon-closed"]]: !isOpen.value
|
|
924
923
|
}
|
|
925
924
|
],
|
|
926
925
|
children: /* @__PURE__ */ jsx(ElmMdiIcon, {
|
|
@@ -928,17 +927,17 @@ const ElmToggle = component$(({ summary: summary2 }) => {
|
|
|
928
927
|
})
|
|
929
928
|
}),
|
|
930
929
|
/* @__PURE__ */ jsx("span", {
|
|
931
|
-
class: styles$
|
|
930
|
+
class: styles$t["summary-text"],
|
|
932
931
|
children: summary2 ? summary2 : /* @__PURE__ */ jsx(Slot, {
|
|
933
932
|
name: "summary"
|
|
934
933
|
})
|
|
935
934
|
}),
|
|
936
935
|
/* @__PURE__ */ jsx("span", {
|
|
937
936
|
class: [
|
|
938
|
-
styles$
|
|
937
|
+
styles$t["plus-icon"],
|
|
939
938
|
{
|
|
940
|
-
[styles$
|
|
941
|
-
[styles$
|
|
939
|
+
[styles$t["plus-icon-open"]]: isOpen.value,
|
|
940
|
+
[styles$t["plus-icon-closed"]]: !isOpen.value
|
|
942
941
|
}
|
|
943
942
|
],
|
|
944
943
|
children: /* @__PURE__ */ jsx(ElmMdiIcon, {
|
|
@@ -951,16 +950,16 @@ const ElmToggle = component$(({ summary: summary2 }) => {
|
|
|
951
950
|
}),
|
|
952
951
|
/* @__PURE__ */ jsx("div", {
|
|
953
952
|
class: [
|
|
954
|
-
styles$
|
|
953
|
+
styles$t.content,
|
|
955
954
|
{
|
|
956
|
-
[styles$
|
|
957
|
-
[styles$
|
|
955
|
+
[styles$t["content-open"]]: isOpen.value,
|
|
956
|
+
[styles$t["content-closed"]]: !isOpen.value
|
|
958
957
|
}
|
|
959
958
|
],
|
|
960
959
|
children: /* @__PURE__ */ jsx(Slot, {})
|
|
961
960
|
}),
|
|
962
961
|
/* @__PURE__ */ jsxs("div", {
|
|
963
|
-
class: styles$
|
|
962
|
+
class: styles$t.footer,
|
|
964
963
|
onClick$: toggle2,
|
|
965
964
|
children: [
|
|
966
965
|
/* @__PURE__ */ jsx("span", {
|
|
@@ -970,10 +969,10 @@ const ElmToggle = component$(({ summary: summary2 }) => {
|
|
|
970
969
|
})
|
|
971
970
|
}),
|
|
972
971
|
/* @__PURE__ */ jsx("hr", {
|
|
973
|
-
class: styles$
|
|
972
|
+
class: styles$t["footer-line"]
|
|
974
973
|
}),
|
|
975
974
|
/* @__PURE__ */ jsx("span", {
|
|
976
|
-
class: styles$
|
|
975
|
+
class: styles$t["footer-cross-icon"],
|
|
977
976
|
children: /* @__PURE__ */ jsx(ElmMdiIcon, {
|
|
978
977
|
d: mdiPlus,
|
|
979
978
|
color: "#c56565"
|
|
@@ -983,14 +982,14 @@ const ElmToggle = component$(({ summary: summary2 }) => {
|
|
|
983
982
|
children: "CLOSE"
|
|
984
983
|
}),
|
|
985
984
|
/* @__PURE__ */ jsx("span", {
|
|
986
|
-
class: styles$
|
|
985
|
+
class: styles$t["footer-cross-icon"],
|
|
987
986
|
children: /* @__PURE__ */ jsx(ElmMdiIcon, {
|
|
988
987
|
d: mdiPlus,
|
|
989
988
|
color: "#c56565"
|
|
990
989
|
})
|
|
991
990
|
}),
|
|
992
991
|
/* @__PURE__ */ jsx("hr", {
|
|
993
|
-
class: styles$
|
|
992
|
+
class: styles$t["footer-line"]
|
|
994
993
|
}),
|
|
995
994
|
/* @__PURE__ */ jsx("span", {
|
|
996
995
|
style: {
|
|
@@ -1006,50 +1005,50 @@ const ElmToggle = component$(({ summary: summary2 }) => {
|
|
|
1006
1005
|
]
|
|
1007
1006
|
});
|
|
1008
1007
|
});
|
|
1009
|
-
const styles$
|
|
1008
|
+
const styles$s = {
|
|
1010
1009
|
"block-fallback": "_block-fallback_rt986_1"
|
|
1011
1010
|
};
|
|
1012
|
-
const wrapper$
|
|
1011
|
+
const wrapper$4 = "_wrapper_1yktj_12";
|
|
1013
1012
|
const dot = "_dot_1yktj_22";
|
|
1014
|
-
const styles$
|
|
1015
|
-
wrapper: wrapper$
|
|
1013
|
+
const styles$r = {
|
|
1014
|
+
wrapper: wrapper$4,
|
|
1016
1015
|
dot
|
|
1017
1016
|
};
|
|
1018
1017
|
const ElmDotLoadingIcon = component$(({ size = "4em", color = "#606875" }) => {
|
|
1019
1018
|
return /* @__PURE__ */ jsxs("div", {
|
|
1020
|
-
class: styles$
|
|
1019
|
+
class: styles$r.wrapper,
|
|
1021
1020
|
style: {
|
|
1022
1021
|
"--size": size,
|
|
1023
1022
|
"--color": color
|
|
1024
1023
|
},
|
|
1025
1024
|
children: [
|
|
1026
1025
|
/* @__PURE__ */ jsx("div", {
|
|
1027
|
-
class: styles$
|
|
1026
|
+
class: styles$r.dot,
|
|
1028
1027
|
"aria-hidden": "true"
|
|
1029
1028
|
}),
|
|
1030
1029
|
/* @__PURE__ */ jsx("div", {
|
|
1031
|
-
class: styles$
|
|
1030
|
+
class: styles$r.dot,
|
|
1032
1031
|
"aria-hidden": "true"
|
|
1033
1032
|
}),
|
|
1034
1033
|
/* @__PURE__ */ jsx("div", {
|
|
1035
|
-
class: styles$
|
|
1034
|
+
class: styles$r.dot,
|
|
1036
1035
|
"aria-hidden": "true"
|
|
1037
1036
|
})
|
|
1038
1037
|
]
|
|
1039
1038
|
});
|
|
1040
1039
|
});
|
|
1041
|
-
const styles$
|
|
1040
|
+
const styles$q = {
|
|
1042
1041
|
"rectangle-wave": "_rectangle-wave_hej9g_17"
|
|
1043
1042
|
};
|
|
1044
1043
|
const ElmRectangleWave = component$(() => {
|
|
1045
1044
|
return /* @__PURE__ */ jsx("div", {
|
|
1046
1045
|
"aria-hidden": "true",
|
|
1047
|
-
class: styles$
|
|
1046
|
+
class: styles$q["rectangle-wave"]
|
|
1048
1047
|
});
|
|
1049
1048
|
});
|
|
1050
1049
|
const ElmBlockFallback = component$(({ height = "16rem" }) => {
|
|
1051
1050
|
return /* @__PURE__ */ jsxs("div", {
|
|
1052
|
-
class: styles$
|
|
1051
|
+
class: styles$s["block-fallback"],
|
|
1053
1052
|
style: {
|
|
1054
1053
|
"--height": height
|
|
1055
1054
|
},
|
|
@@ -1066,7 +1065,7 @@ const colored = "_colored_1ykfy_50";
|
|
|
1066
1065
|
const enable = "_enable_1ykfy_54";
|
|
1067
1066
|
const flex = "_flex_1ykfy_76";
|
|
1068
1067
|
const ripple = "_ripple_1ykfy_97";
|
|
1069
|
-
const styles$
|
|
1068
|
+
const styles$p = {
|
|
1070
1069
|
button,
|
|
1071
1070
|
"button-ornament": "_button-ornament_1ykfy_21",
|
|
1072
1071
|
normal,
|
|
@@ -1090,11 +1089,11 @@ const ElmButton = component$((props) => {
|
|
|
1090
1089
|
return /* @__PURE__ */ jsxs("button", {
|
|
1091
1090
|
onClick$: handleClick,
|
|
1092
1091
|
class: [
|
|
1093
|
-
styles$
|
|
1094
|
-
!props.loading && !props.disabled && styles$
|
|
1095
|
-
props.color && styles$
|
|
1096
|
-
!props.color && !props.primary && styles$
|
|
1097
|
-
!props.color && props.primary && styles$
|
|
1092
|
+
styles$p.button,
|
|
1093
|
+
!props.loading && !props.disabled && styles$p.enable,
|
|
1094
|
+
props.color && styles$p.colored,
|
|
1095
|
+
!props.color && !props.primary && styles$p.normal,
|
|
1096
|
+
!props.color && props.primary && styles$p.primary
|
|
1098
1097
|
],
|
|
1099
1098
|
style: {
|
|
1100
1099
|
display: props.block ? "flex" : "inline-flex",
|
|
@@ -1105,16 +1104,16 @@ const ElmButton = component$((props) => {
|
|
|
1105
1104
|
},
|
|
1106
1105
|
children: [
|
|
1107
1106
|
clicked.value && /* @__PURE__ */ jsx("div", {
|
|
1108
|
-
class: styles$
|
|
1107
|
+
class: styles$p.ripple
|
|
1109
1108
|
}),
|
|
1110
1109
|
props.loading ? /* @__PURE__ */ jsx(ElmDotLoadingIcon, {
|
|
1111
1110
|
size: "1.5rem"
|
|
1112
1111
|
}) : /* @__PURE__ */ jsx("span", {
|
|
1113
|
-
class: styles$
|
|
1112
|
+
class: styles$p.flex,
|
|
1114
1113
|
children: /* @__PURE__ */ jsx(Slot, {})
|
|
1115
1114
|
}),
|
|
1116
1115
|
/* @__PURE__ */ jsx("div", {
|
|
1117
|
-
class: styles$
|
|
1116
|
+
class: styles$p["button-ornament"]
|
|
1118
1117
|
})
|
|
1119
1118
|
]
|
|
1120
1119
|
});
|
|
@@ -1123,7 +1122,7 @@ const container$2 = "_container_101ok_1";
|
|
|
1123
1122
|
const checkbox = "_checkbox_101ok_19";
|
|
1124
1123
|
const rect = "_rect_101ok_27";
|
|
1125
1124
|
const loading$1 = "_loading_101ok_40";
|
|
1126
|
-
const styles$
|
|
1125
|
+
const styles$o = {
|
|
1127
1126
|
container: container$2,
|
|
1128
1127
|
"container--disable": "_container--disable_101ok_11",
|
|
1129
1128
|
checkbox,
|
|
@@ -1143,8 +1142,8 @@ const ElmCheckbox = component$((props) => {
|
|
|
1143
1142
|
});
|
|
1144
1143
|
return /* @__PURE__ */ jsx("div", {
|
|
1145
1144
|
class: [
|
|
1146
|
-
styles$
|
|
1147
|
-
props.disable && styles$
|
|
1145
|
+
styles$o.container,
|
|
1146
|
+
props.disable && styles$o["container--disable"]
|
|
1148
1147
|
],
|
|
1149
1148
|
onClick$: toggleCheck,
|
|
1150
1149
|
children: /* @__PURE__ */ jsxs("div", {
|
|
@@ -1157,13 +1156,13 @@ const ElmCheckbox = component$((props) => {
|
|
|
1157
1156
|
/* @__PURE__ */ jsxs("svg", {
|
|
1158
1157
|
width: "24",
|
|
1159
1158
|
height: "24",
|
|
1160
|
-
class: styles$
|
|
1159
|
+
class: styles$o.checkbox,
|
|
1161
1160
|
children: [
|
|
1162
1161
|
/* @__PURE__ */ jsxs("circle", {
|
|
1163
1162
|
cx: "0",
|
|
1164
1163
|
cy: "0",
|
|
1165
1164
|
r: "2",
|
|
1166
|
-
class: styles$
|
|
1165
|
+
class: styles$o.loading,
|
|
1167
1166
|
style: {
|
|
1168
1167
|
opacity: props.loading ? 1 : 0
|
|
1169
1168
|
},
|
|
@@ -1190,7 +1189,7 @@ const ElmCheckbox = component$((props) => {
|
|
|
1190
1189
|
cx: "20",
|
|
1191
1190
|
cy: "20",
|
|
1192
1191
|
r: "2",
|
|
1193
|
-
class: styles$
|
|
1192
|
+
class: styles$o.loading,
|
|
1194
1193
|
style: {
|
|
1195
1194
|
opacity: props.loading ? 1 : 0
|
|
1196
1195
|
},
|
|
@@ -1219,14 +1218,14 @@ const ElmCheckbox = component$((props) => {
|
|
|
1219
1218
|
width: "16",
|
|
1220
1219
|
height: "16",
|
|
1221
1220
|
class: [
|
|
1222
|
-
styles$
|
|
1223
|
-
isChecked.value && styles$
|
|
1224
|
-
props.loading && styles$
|
|
1221
|
+
styles$o.rect,
|
|
1222
|
+
isChecked.value && styles$o["rect--checked"],
|
|
1223
|
+
props.loading && styles$o["rect--loading"]
|
|
1225
1224
|
],
|
|
1226
1225
|
"stroke-width": "0.8"
|
|
1227
1226
|
}),
|
|
1228
1227
|
isChecked.value && /* @__PURE__ */ jsx("polyline", {
|
|
1229
|
-
class: styles$
|
|
1228
|
+
class: styles$o["check-line"],
|
|
1230
1229
|
points: "5,12 10,17 19,8",
|
|
1231
1230
|
"stroke-width": "1.5",
|
|
1232
1231
|
fill: "transparent"
|
|
@@ -1298,7 +1297,7 @@ const ElmCheckbox = component$((props) => {
|
|
|
1298
1297
|
})
|
|
1299
1298
|
});
|
|
1300
1299
|
});
|
|
1301
|
-
const wrapper$
|
|
1300
|
+
const wrapper$3 = "_wrapper_1o5x2_1";
|
|
1302
1301
|
const active$1 = "_active_1o5x2_23";
|
|
1303
1302
|
const header$2 = "_header_1o5x2_27";
|
|
1304
1303
|
const label$1 = "_label_1o5x2_35";
|
|
@@ -1309,8 +1308,8 @@ const fallback$1 = "_fallback_1o5x2_71";
|
|
|
1309
1308
|
const pulldown = "_pulldown_1o5x2_79";
|
|
1310
1309
|
const option = "_option_1o5x2_96";
|
|
1311
1310
|
const description$1 = "_description_1o5x2_116";
|
|
1312
|
-
const styles$
|
|
1313
|
-
wrapper: wrapper$
|
|
1311
|
+
const styles$n = {
|
|
1312
|
+
wrapper: wrapper$3,
|
|
1314
1313
|
active: active$1,
|
|
1315
1314
|
header: header$2,
|
|
1316
1315
|
label: label$1,
|
|
@@ -1351,8 +1350,8 @@ const ElmSelect = component$((props) => {
|
|
|
1351
1350
|
return /* @__PURE__ */ jsxs("div", {
|
|
1352
1351
|
ref: containerRef,
|
|
1353
1352
|
class: [
|
|
1354
|
-
styles$
|
|
1355
|
-
isActive.value && styles$
|
|
1353
|
+
styles$n.wrapper,
|
|
1354
|
+
isActive.value && styles$n.active
|
|
1356
1355
|
],
|
|
1357
1356
|
style: {
|
|
1358
1357
|
backgroundColor: props.disabled || props.loading ? "rgba(0,0,0,0.15)" : void 0,
|
|
@@ -1361,23 +1360,23 @@ const ElmSelect = component$((props) => {
|
|
|
1361
1360
|
onClick$: handleToggle,
|
|
1362
1361
|
children: [
|
|
1363
1362
|
/* @__PURE__ */ jsx("div", {
|
|
1364
|
-
class: styles$
|
|
1363
|
+
class: styles$n.header,
|
|
1365
1364
|
children: /* @__PURE__ */ jsx("span", {
|
|
1366
1365
|
class: [
|
|
1367
|
-
styles$
|
|
1366
|
+
styles$n.label,
|
|
1368
1367
|
textStyles.text
|
|
1369
1368
|
],
|
|
1370
1369
|
children: props.label
|
|
1371
1370
|
})
|
|
1372
1371
|
}),
|
|
1373
1372
|
/* @__PURE__ */ jsx("div", {
|
|
1374
|
-
class: styles$
|
|
1373
|
+
class: styles$n.body,
|
|
1375
1374
|
children: /* @__PURE__ */ jsxs("div", {
|
|
1376
|
-
class: styles$
|
|
1375
|
+
class: styles$n.select,
|
|
1377
1376
|
children: [
|
|
1378
1377
|
/* @__PURE__ */ jsx("div", {
|
|
1379
1378
|
class: [
|
|
1380
|
-
styles$
|
|
1379
|
+
styles$n.selected,
|
|
1381
1380
|
textStyles.text
|
|
1382
1381
|
],
|
|
1383
1382
|
children: selectedOption.value ? /* @__PURE__ */ jsxs("div", {
|
|
@@ -1386,12 +1385,12 @@ const ElmSelect = component$((props) => {
|
|
|
1386
1385
|
children: selectedOption.value.label
|
|
1387
1386
|
}),
|
|
1388
1387
|
selectedOption.value.description && /* @__PURE__ */ jsx("span", {
|
|
1389
|
-
class: styles$
|
|
1388
|
+
class: styles$n.description,
|
|
1390
1389
|
children: selectedOption.value.description
|
|
1391
1390
|
})
|
|
1392
1391
|
]
|
|
1393
1392
|
}, selectedOption.value.id) : /* @__PURE__ */ jsxs("div", {
|
|
1394
|
-
class: styles$
|
|
1393
|
+
class: styles$n.fallback,
|
|
1395
1394
|
children: [
|
|
1396
1395
|
/* @__PURE__ */ jsx(ElmMdiIcon, {
|
|
1397
1396
|
d: mdiArrowDownDropCircleOutline
|
|
@@ -1407,10 +1406,10 @@ const ElmSelect = component$((props) => {
|
|
|
1407
1406
|
size: "1.5rem"
|
|
1408
1407
|
}),
|
|
1409
1408
|
isActive.value && /* @__PURE__ */ jsx("div", {
|
|
1410
|
-
class: styles$
|
|
1409
|
+
class: styles$n.pulldown,
|
|
1411
1410
|
children: props.options.map((option2) => /* @__PURE__ */ jsxs("div", {
|
|
1412
1411
|
class: [
|
|
1413
|
-
styles$
|
|
1412
|
+
styles$n.option,
|
|
1414
1413
|
textStyles.text
|
|
1415
1414
|
],
|
|
1416
1415
|
onClick$: (e) => {
|
|
@@ -1428,7 +1427,7 @@ const ElmSelect = component$((props) => {
|
|
|
1428
1427
|
children: option2.label
|
|
1429
1428
|
}),
|
|
1430
1429
|
option2.description && /* @__PURE__ */ jsx("span", {
|
|
1431
|
-
class: styles$
|
|
1430
|
+
class: styles$n.description,
|
|
1432
1431
|
children: option2.description
|
|
1433
1432
|
})
|
|
1434
1433
|
]
|
|
@@ -1442,7 +1441,7 @@ const ElmSelect = component$((props) => {
|
|
|
1442
1441
|
});
|
|
1443
1442
|
const bar = "_bar_gpty5_5";
|
|
1444
1443
|
const circle = "_circle_gpty5_25";
|
|
1445
|
-
const styles$
|
|
1444
|
+
const styles$m = {
|
|
1446
1445
|
"switch": "_switch_gpty5_1",
|
|
1447
1446
|
bar,
|
|
1448
1447
|
"bar--checked": "_bar--checked_gpty5_17",
|
|
@@ -1471,22 +1470,22 @@ const ElmSwitch = component$((props) => {
|
|
|
1471
1470
|
},
|
|
1472
1471
|
children: [
|
|
1473
1472
|
/* @__PURE__ */ jsx("input", {
|
|
1474
|
-
class: styles$
|
|
1473
|
+
class: styles$m.switch,
|
|
1475
1474
|
type: "checkbox",
|
|
1476
1475
|
checked: checked.value,
|
|
1477
1476
|
disabled: props.disabled
|
|
1478
1477
|
}),
|
|
1479
1478
|
/* @__PURE__ */ jsx("div", {
|
|
1480
1479
|
class: [
|
|
1481
|
-
styles$
|
|
1482
|
-
checked.value && styles$
|
|
1483
|
-
props.disabled && styles$
|
|
1480
|
+
styles$m.bar,
|
|
1481
|
+
checked.value && styles$m["bar--checked"],
|
|
1482
|
+
props.disabled && styles$m["bar--disabled"]
|
|
1484
1483
|
],
|
|
1485
1484
|
children: /* @__PURE__ */ jsx("div", {
|
|
1486
1485
|
class: [
|
|
1487
|
-
styles$
|
|
1488
|
-
checked.value && styles$
|
|
1489
|
-
props.disabled && styles$
|
|
1486
|
+
styles$m.circle,
|
|
1487
|
+
checked.value && styles$m["circle--checked"],
|
|
1488
|
+
props.disabled && styles$m["circle--disabled"]
|
|
1490
1489
|
]
|
|
1491
1490
|
})
|
|
1492
1491
|
})
|
|
@@ -1494,7 +1493,7 @@ const ElmSwitch = component$((props) => {
|
|
|
1494
1493
|
});
|
|
1495
1494
|
});
|
|
1496
1495
|
const loading = "_loading_1yj0v_19";
|
|
1497
|
-
const wrapper$
|
|
1496
|
+
const wrapper$2 = "_wrapper_1yj0v_33";
|
|
1498
1497
|
const active = "_active_1yj0v_55";
|
|
1499
1498
|
const header$1 = "_header_1yj0v_59";
|
|
1500
1499
|
const label = "_label_1yj0v_67";
|
|
@@ -1503,9 +1502,9 @@ const body$1 = "_body_1yj0v_88";
|
|
|
1503
1502
|
const input = "_input_1yj0v_109";
|
|
1504
1503
|
const icon$2 = "_icon_1yj0v_136";
|
|
1505
1504
|
const suffix = "_suffix_1yj0v_153";
|
|
1506
|
-
const styles$
|
|
1505
|
+
const styles$l = {
|
|
1507
1506
|
loading,
|
|
1508
|
-
wrapper: wrapper$
|
|
1507
|
+
wrapper: wrapper$2,
|
|
1509
1508
|
active,
|
|
1510
1509
|
header: header$1,
|
|
1511
1510
|
label,
|
|
@@ -1547,8 +1546,8 @@ const ElmTextField = component$((props) => {
|
|
|
1547
1546
|
};
|
|
1548
1547
|
return /* @__PURE__ */ jsxs("div", {
|
|
1549
1548
|
class: [
|
|
1550
|
-
styles$
|
|
1551
|
-
isFocused.value && styles$
|
|
1549
|
+
styles$l.wrapper,
|
|
1550
|
+
isFocused.value && styles$l.active
|
|
1552
1551
|
],
|
|
1553
1552
|
style: {
|
|
1554
1553
|
backgroundColor: props.disabled || props.loading ? "rgba(0,0,0,0.15)" : void 0,
|
|
@@ -1556,17 +1555,17 @@ const ElmTextField = component$((props) => {
|
|
|
1556
1555
|
},
|
|
1557
1556
|
children: [
|
|
1558
1557
|
/* @__PURE__ */ jsxs("div", {
|
|
1559
|
-
class: styles$
|
|
1558
|
+
class: styles$l.header,
|
|
1560
1559
|
children: [
|
|
1561
1560
|
/* @__PURE__ */ jsxs("label", {
|
|
1562
1561
|
for: id,
|
|
1563
|
-
class: styles$
|
|
1562
|
+
class: styles$l.label,
|
|
1564
1563
|
children: [
|
|
1565
1564
|
/* @__PURE__ */ jsx("span", {
|
|
1566
1565
|
children: props.label
|
|
1567
1566
|
}),
|
|
1568
1567
|
props.required && /* @__PURE__ */ jsx("span", {
|
|
1569
|
-
class: styles$
|
|
1568
|
+
class: styles$l.requierd,
|
|
1570
1569
|
children: "*"
|
|
1571
1570
|
})
|
|
1572
1571
|
]
|
|
@@ -1579,7 +1578,7 @@ const ElmTextField = component$((props) => {
|
|
|
1579
1578
|
]
|
|
1580
1579
|
}),
|
|
1581
1580
|
/* @__PURE__ */ jsxs("div", {
|
|
1582
|
-
class: styles$
|
|
1581
|
+
class: styles$l.body,
|
|
1583
1582
|
children: [
|
|
1584
1583
|
props.icon && /* @__PURE__ */ jsx(ElmMdiIcon, {
|
|
1585
1584
|
d: iconMap[props.icon],
|
|
@@ -1590,7 +1589,7 @@ const ElmTextField = component$((props) => {
|
|
|
1590
1589
|
id,
|
|
1591
1590
|
"bind:value": input2,
|
|
1592
1591
|
type: inputType.value,
|
|
1593
|
-
class: styles$
|
|
1592
|
+
class: styles$l.input,
|
|
1594
1593
|
placeholder: props.placeholder,
|
|
1595
1594
|
onFocus$: () => isFocused.value = true,
|
|
1596
1595
|
onBlur$: () => isFocused.value = false,
|
|
@@ -1601,16 +1600,16 @@ const ElmTextField = component$((props) => {
|
|
|
1601
1600
|
"aria-required": props.required
|
|
1602
1601
|
}),
|
|
1603
1602
|
/* @__PURE__ */ jsxs("div", {
|
|
1604
|
-
class: styles$
|
|
1603
|
+
class: styles$l["icon-box"],
|
|
1605
1604
|
children: [
|
|
1606
1605
|
/* @__PURE__ */ jsx("span", {
|
|
1607
|
-
class: styles$
|
|
1606
|
+
class: styles$l.suffix,
|
|
1608
1607
|
children: props.suffix != null && /* @__PURE__ */ jsx(ElmInlineText, {
|
|
1609
1608
|
text: props.suffix
|
|
1610
1609
|
})
|
|
1611
1610
|
}),
|
|
1612
1611
|
/* @__PURE__ */ jsx("div", {
|
|
1613
|
-
class: styles$
|
|
1612
|
+
class: styles$l.icon,
|
|
1614
1613
|
onClick$: handleVisibleSwitch,
|
|
1615
1614
|
children: /* @__PURE__ */ jsx(ElmMdiIcon, {
|
|
1616
1615
|
d: inputType.value === "text" ? mdiEyeOutline : mdiEyeOffOutline,
|
|
@@ -1619,7 +1618,7 @@ const ElmTextField = component$((props) => {
|
|
|
1619
1618
|
})
|
|
1620
1619
|
}),
|
|
1621
1620
|
/* @__PURE__ */ jsx("div", {
|
|
1622
|
-
class: styles$
|
|
1621
|
+
class: styles$l.icon,
|
|
1623
1622
|
onClick$: handleDelete,
|
|
1624
1623
|
children: /* @__PURE__ */ jsx(ElmMdiIcon, {
|
|
1625
1624
|
d: mdiBackspaceOutline,
|
|
@@ -1632,7 +1631,7 @@ const ElmTextField = component$((props) => {
|
|
|
1632
1631
|
]
|
|
1633
1632
|
}),
|
|
1634
1633
|
/* @__PURE__ */ jsx("div", {
|
|
1635
|
-
class: styles$
|
|
1634
|
+
class: styles$l.loading,
|
|
1636
1635
|
style: {
|
|
1637
1636
|
opacity: props.loading ? 0.2 : 0
|
|
1638
1637
|
}
|
|
@@ -1641,12 +1640,12 @@ const ElmTextField = component$((props) => {
|
|
|
1641
1640
|
});
|
|
1642
1641
|
});
|
|
1643
1642
|
const validation = "_validation_r3xix_1";
|
|
1644
|
-
const styles$
|
|
1643
|
+
const styles$k = {
|
|
1645
1644
|
validation
|
|
1646
1645
|
};
|
|
1647
1646
|
const ElmValidation = component$(({ text: text2, validColor = "#449763", isValid }) => {
|
|
1648
1647
|
return /* @__PURE__ */ jsxs("div", {
|
|
1649
|
-
class: styles$
|
|
1648
|
+
class: styles$k.validation,
|
|
1650
1649
|
style: {
|
|
1651
1650
|
"--opacity": isValid ? 1 : 0.5
|
|
1652
1651
|
},
|
|
@@ -1709,7 +1708,7 @@ function useElmethisTheme() {
|
|
|
1709
1708
|
};
|
|
1710
1709
|
}
|
|
1711
1710
|
const icon$1 = "_icon_1husg_1";
|
|
1712
|
-
const styles$
|
|
1711
|
+
const styles$j = {
|
|
1713
1712
|
icon: icon$1
|
|
1714
1713
|
};
|
|
1715
1714
|
const ElmToggleTheme = component$(({ size = "2rem" }) => {
|
|
@@ -1720,7 +1719,7 @@ const ElmToggleTheme = component$(({ size = "2rem" }) => {
|
|
|
1720
1719
|
width: size,
|
|
1721
1720
|
height: size,
|
|
1722
1721
|
viewBox: "0 0 24 24",
|
|
1723
|
-
class: styles$
|
|
1722
|
+
class: styles$j.icon,
|
|
1724
1723
|
onClick$: toggleTheme,
|
|
1725
1724
|
children: [
|
|
1726
1725
|
/* @__PURE__ */ jsxs("g", {
|
|
@@ -1928,7 +1927,7 @@ const ElmToggleTheme = component$(({ size = "2rem" }) => {
|
|
|
1928
1927
|
width: size,
|
|
1929
1928
|
height: size,
|
|
1930
1929
|
viewBox: "0 0 24 24",
|
|
1931
|
-
class: styles$
|
|
1930
|
+
class: styles$j.icon,
|
|
1932
1931
|
onClick$: toggleTheme,
|
|
1933
1932
|
children: [
|
|
1934
1933
|
/* @__PURE__ */ jsxs("path", {
|
|
@@ -2174,17 +2173,41 @@ const ElmToggleTheme = component$(({ size = "2rem" }) => {
|
|
|
2174
2173
|
})
|
|
2175
2174
|
});
|
|
2176
2175
|
});
|
|
2177
|
-
const
|
|
2178
|
-
const
|
|
2176
|
+
const wrapper$1 = "_wrapper_13xd3_15";
|
|
2177
|
+
const square = "_square_13xd3_24";
|
|
2178
|
+
const styles$i = {
|
|
2179
|
+
wrapper: wrapper$1,
|
|
2180
|
+
square
|
|
2181
|
+
};
|
|
2182
|
+
const ElmSquareLoadingIcon = component$(({ size = "3rem", dimensions = 4 }) => {
|
|
2183
|
+
const DURATION = 1200;
|
|
2184
|
+
const DELAY = DURATION / (dimensions * 3);
|
|
2185
|
+
return /* @__PURE__ */ jsx("div", {
|
|
2186
|
+
class: styles$i.wrapper,
|
|
2187
|
+
style: {
|
|
2188
|
+
"--size": size,
|
|
2189
|
+
"--dimensions": dimensions,
|
|
2190
|
+
"--duration": `${DURATION}ms`
|
|
2191
|
+
},
|
|
2192
|
+
children: new Array(dimensions).fill(null).map((_, rowIndex) => new Array(dimensions).fill(null).map((_2, columnIndex) => /* @__PURE__ */ jsx("div", {
|
|
2193
|
+
class: styles$i.square,
|
|
2194
|
+
style: {
|
|
2195
|
+
"--delay": `${DELAY * (rowIndex + columnIndex)}ms`
|
|
2196
|
+
}
|
|
2197
|
+
}, `${rowIndex}-${columnIndex}`)))
|
|
2198
|
+
});
|
|
2199
|
+
});
|
|
2200
|
+
const image$1 = "_image_sf1wj_12";
|
|
2201
|
+
const fallback = "_fallback_sf1wj_34";
|
|
2179
2202
|
const styles$h = {
|
|
2180
|
-
"block-image": "_block-
|
|
2181
|
-
"image-container": "_image-
|
|
2203
|
+
"block-image": "_block-image_sf1wj_1",
|
|
2204
|
+
"image-container": "_image-container_sf1wj_12",
|
|
2182
2205
|
image: image$1,
|
|
2183
2206
|
fallback,
|
|
2184
|
-
"caption-box": "_caption-
|
|
2185
|
-
"modal-container": "_modal-
|
|
2207
|
+
"caption-box": "_caption-box_sf1wj_44",
|
|
2208
|
+
"modal-container": "_modal-container_sf1wj_56"
|
|
2186
2209
|
};
|
|
2187
|
-
const ElmBlockImage = component$(({ src, alt, caption: caption2, width, height, enableModal = true }) => {
|
|
2210
|
+
const ElmBlockImage = component$(({ src, alt, caption: caption2, width, height, enableModal = true, srcset, sizes, style }) => {
|
|
2188
2211
|
const isLoading = useSignal(true);
|
|
2189
2212
|
const isShowModal = useSignal(false);
|
|
2190
2213
|
const handleImageLoad = $(() => {
|
|
@@ -2199,6 +2222,8 @@ const ElmBlockImage = component$(({ src, alt, caption: caption2, width, height,
|
|
|
2199
2222
|
class: styles$h.image,
|
|
2200
2223
|
src,
|
|
2201
2224
|
alt: alt ?? caption2 ?? "Image",
|
|
2225
|
+
srcset,
|
|
2226
|
+
sizes,
|
|
2202
2227
|
width,
|
|
2203
2228
|
height,
|
|
2204
2229
|
onLoad$: handleImageLoad,
|
|
@@ -2219,6 +2244,7 @@ const ElmBlockImage = component$(({ src, alt, caption: caption2, width, height,
|
|
|
2219
2244
|
});
|
|
2220
2245
|
return /* @__PURE__ */ jsxs("figure", {
|
|
2221
2246
|
class: styles$h["block-image"],
|
|
2247
|
+
style,
|
|
2222
2248
|
children: [
|
|
2223
2249
|
/* @__PURE__ */ jsxs("div", {
|
|
2224
2250
|
class: styles$h["image-container"],
|
|
@@ -2260,18 +2286,18 @@ const ElmBlockImage = component$(({ src, alt, caption: caption2, width, height,
|
|
|
2260
2286
|
]
|
|
2261
2287
|
});
|
|
2262
2288
|
});
|
|
2263
|
-
const file = "
|
|
2289
|
+
const file = "_file_eqa3m_1";
|
|
2264
2290
|
const styles$g = {
|
|
2265
2291
|
file,
|
|
2266
|
-
"file-size": "_file-
|
|
2267
|
-
"download-icon": "_download-
|
|
2292
|
+
"file-size": "_file-size_eqa3m_16",
|
|
2293
|
+
"download-icon": "_download-icon_eqa3m_21"
|
|
2268
2294
|
};
|
|
2269
2295
|
function getLastPathSegmentWithoutQueryOrHash(urlString) {
|
|
2270
2296
|
const cleanedUrl = urlString.split(/[?#]/)[0];
|
|
2271
2297
|
const pathSegments = cleanedUrl.split("/").filter(Boolean);
|
|
2272
2298
|
return pathSegments.length > 0 ? pathSegments[pathSegments.length - 1] : null;
|
|
2273
2299
|
}
|
|
2274
|
-
const ElmFile = component$(({ name, src, filesize }) => {
|
|
2300
|
+
const ElmFile = component$(({ name, src, filesize, style }) => {
|
|
2275
2301
|
const downloadFile = $(async () => {
|
|
2276
2302
|
let link2;
|
|
2277
2303
|
try {
|
|
@@ -2290,6 +2316,7 @@ const ElmFile = component$(({ name, src, filesize }) => {
|
|
|
2290
2316
|
});
|
|
2291
2317
|
return /* @__PURE__ */ jsxs("div", {
|
|
2292
2318
|
class: styles$g.file,
|
|
2319
|
+
style,
|
|
2293
2320
|
children: [
|
|
2294
2321
|
/* @__PURE__ */ jsx("div", {
|
|
2295
2322
|
children: /* @__PURE__ */ jsx(ElmMdiIcon, {
|
|
@@ -2319,13 +2346,13 @@ const ElmFile = component$(({ name, src, filesize }) => {
|
|
|
2319
2346
|
]
|
|
2320
2347
|
});
|
|
2321
2348
|
});
|
|
2322
|
-
const bookmark = "
|
|
2323
|
-
const container$1 = "
|
|
2324
|
-
const image = "
|
|
2325
|
-
const content$1 = "
|
|
2326
|
-
const title = "
|
|
2327
|
-
const description = "
|
|
2328
|
-
const link = "
|
|
2349
|
+
const bookmark = "_bookmark_xxvle_1";
|
|
2350
|
+
const container$1 = "_container_xxvle_20";
|
|
2351
|
+
const image = "_image_xxvle_33";
|
|
2352
|
+
const content$1 = "_content_xxvle_54";
|
|
2353
|
+
const title = "_title_xxvle_74";
|
|
2354
|
+
const description = "_description_xxvle_77";
|
|
2355
|
+
const link = "_link_xxvle_81";
|
|
2329
2356
|
const styles$f = {
|
|
2330
2357
|
bookmark,
|
|
2331
2358
|
container: container$1,
|
|
@@ -2335,7 +2362,7 @@ const styles$f = {
|
|
|
2335
2362
|
description,
|
|
2336
2363
|
link
|
|
2337
2364
|
};
|
|
2338
|
-
const ElmBookmark = component$(({ url, image: image2, title: title2, description: description2, favicon }) => {
|
|
2365
|
+
const ElmBookmark = component$(({ url, image: image2, title: title2, description: description2, favicon, style }) => {
|
|
2339
2366
|
const isError = useSignal(false);
|
|
2340
2367
|
const handleImageOnError = $(() => {
|
|
2341
2368
|
isError.value = true;
|
|
@@ -2346,6 +2373,7 @@ const ElmBookmark = component$(({ url, image: image2, title: title2, description
|
|
|
2346
2373
|
};
|
|
2347
2374
|
return /* @__PURE__ */ jsx("div", {
|
|
2348
2375
|
class: styles$f.bookmark,
|
|
2376
|
+
style,
|
|
2349
2377
|
children: /* @__PURE__ */ jsxs("a", {
|
|
2350
2378
|
class: styles$f.container,
|
|
2351
2379
|
href: url,
|
|
@@ -2511,21 +2539,22 @@ const ElmPageTop = component$(({ position = "right" }) => {
|
|
|
2511
2539
|
]
|
|
2512
2540
|
});
|
|
2513
2541
|
});
|
|
2514
|
-
const blockquote = "
|
|
2515
|
-
const body = "
|
|
2516
|
-
const icon = "
|
|
2542
|
+
const blockquote = "_blockquote_1s60i_1";
|
|
2543
|
+
const body = "_body_1s60i_19";
|
|
2544
|
+
const icon = "_icon_1s60i_24";
|
|
2517
2545
|
const styles$c = {
|
|
2518
2546
|
blockquote,
|
|
2519
2547
|
body,
|
|
2520
2548
|
icon
|
|
2521
2549
|
};
|
|
2522
|
-
const ElmBlockQuote = component$(({ cite }) => {
|
|
2550
|
+
const ElmBlockQuote = component$(({ cite, style }) => {
|
|
2523
2551
|
return /* @__PURE__ */ jsxs("blockquote", {
|
|
2524
2552
|
class: [
|
|
2525
2553
|
styles$c.blockquote,
|
|
2526
2554
|
textStyles.text
|
|
2527
2555
|
],
|
|
2528
2556
|
cite,
|
|
2557
|
+
style,
|
|
2529
2558
|
children: [
|
|
2530
2559
|
/* @__PURE__ */ jsx("div", {
|
|
2531
2560
|
class: styles$c.icon,
|
|
@@ -2552,9 +2581,9 @@ const ElmBlockQuote = component$(({ cite }) => {
|
|
|
2552
2581
|
]
|
|
2553
2582
|
});
|
|
2554
2583
|
});
|
|
2555
|
-
const callout = "
|
|
2556
|
-
const header = "
|
|
2557
|
-
const content = "
|
|
2584
|
+
const callout = "_callout_ov76x_1";
|
|
2585
|
+
const header = "_header_ov76x_26";
|
|
2586
|
+
const content = "_content_ov76x_32";
|
|
2558
2587
|
const styles$b = {
|
|
2559
2588
|
callout,
|
|
2560
2589
|
header,
|
|
@@ -2582,11 +2611,12 @@ const COLOR_MAP = Object.freeze({
|
|
|
2582
2611
|
icon: mdiAlertOctagram
|
|
2583
2612
|
}
|
|
2584
2613
|
});
|
|
2585
|
-
const ElmCallout = component$(({ type = "note" }) => {
|
|
2614
|
+
const ElmCallout = component$(({ type = "note", style }) => {
|
|
2586
2615
|
return /* @__PURE__ */ jsxs("aside", {
|
|
2587
2616
|
class: styles$b.callout,
|
|
2588
2617
|
style: {
|
|
2589
|
-
"--callout-color": COLOR_MAP[type].code
|
|
2618
|
+
"--callout-color": COLOR_MAP[type].code,
|
|
2619
|
+
...style
|
|
2590
2620
|
},
|
|
2591
2621
|
children: [
|
|
2592
2622
|
/* @__PURE__ */ jsxs("div", {
|
|
@@ -2609,16 +2639,14 @@ const ElmCallout = component$(({ type = "note" }) => {
|
|
|
2609
2639
|
]
|
|
2610
2640
|
});
|
|
2611
2641
|
});
|
|
2612
|
-
const hr = "
|
|
2642
|
+
const hr = "_hr_b790w_1";
|
|
2613
2643
|
const styles$a = {
|
|
2614
2644
|
hr
|
|
2615
2645
|
};
|
|
2616
|
-
const ElmDivider = component$(({
|
|
2646
|
+
const ElmDivider = component$(({ style }) => {
|
|
2617
2647
|
return /* @__PURE__ */ jsx("hr", {
|
|
2618
2648
|
class: styles$a.hr,
|
|
2619
|
-
style
|
|
2620
|
-
marginBlock: margin
|
|
2621
|
-
}
|
|
2649
|
+
style
|
|
2622
2650
|
});
|
|
2623
2651
|
});
|
|
2624
2652
|
const fragment = "_fragment_1kofp_1";
|
|
@@ -2643,15 +2671,15 @@ const ElmFragmentIdentifier = component$(({ id }) => {
|
|
|
2643
2671
|
children: "#"
|
|
2644
2672
|
});
|
|
2645
2673
|
});
|
|
2646
|
-
const h1 = "
|
|
2647
|
-
const h2 = "
|
|
2648
|
-
const h2__underline = "
|
|
2649
|
-
const h3 = "
|
|
2650
|
-
const h4 = "
|
|
2651
|
-
const h5 = "
|
|
2652
|
-
const h6 = "
|
|
2674
|
+
const h1 = "_h1_1c1xr_10";
|
|
2675
|
+
const h2 = "_h2_1c1xr_40";
|
|
2676
|
+
const h2__underline = "_h2__underline_1c1xr_68";
|
|
2677
|
+
const h3 = "_h3_1c1xr_85";
|
|
2678
|
+
const h4 = "_h4_1c1xr_102";
|
|
2679
|
+
const h5 = "_h5_1c1xr_106";
|
|
2680
|
+
const h6 = "_h6_1c1xr_110";
|
|
2653
2681
|
const styles$8 = {
|
|
2654
|
-
"heading-common": "_heading-
|
|
2682
|
+
"heading-common": "_heading-common_1c1xr_1",
|
|
2655
2683
|
h1,
|
|
2656
2684
|
h2,
|
|
2657
2685
|
h2__underline,
|
|
@@ -2668,7 +2696,7 @@ const SIZE_MAP = Object.freeze({
|
|
|
2668
2696
|
5: 1.15,
|
|
2669
2697
|
6: 1.1
|
|
2670
2698
|
});
|
|
2671
|
-
const ElmHeading = component$(({ level, text: text2, id }) => {
|
|
2699
|
+
const ElmHeading = component$(({ level, text: text2, id, style }) => {
|
|
2672
2700
|
const Tag = `h${level}`;
|
|
2673
2701
|
return /* @__PURE__ */ jsxs(Tag, {
|
|
2674
2702
|
class: [
|
|
@@ -2677,7 +2705,8 @@ const ElmHeading = component$(({ level, text: text2, id }) => {
|
|
|
2677
2705
|
styles$8[`h${level}`]
|
|
2678
2706
|
],
|
|
2679
2707
|
style: {
|
|
2680
|
-
"--font-size": `${SIZE_MAP[level]}em
|
|
2708
|
+
"--font-size": `${SIZE_MAP[level]}em`,
|
|
2709
|
+
...style
|
|
2681
2710
|
},
|
|
2682
2711
|
children: [
|
|
2683
2712
|
/* @__PURE__ */ jsx("span", {
|
|
@@ -2700,11 +2729,11 @@ const ElmHeading = component$(({ level, text: text2, id }) => {
|
|
|
2700
2729
|
});
|
|
2701
2730
|
});
|
|
2702
2731
|
const styles$7 = {
|
|
2703
|
-
"elmethis-list-common": "_elmethis-list-
|
|
2704
|
-
"elmethis-bulleted-list": "_elmethis-bulleted-
|
|
2705
|
-
"elmethis-numbered-list": "_elmethis-numbered-
|
|
2732
|
+
"elmethis-list-common": "_elmethis-list-common_6g6c5_1",
|
|
2733
|
+
"elmethis-bulleted-list": "_elmethis-bulleted-list_6g6c5_9",
|
|
2734
|
+
"elmethis-numbered-list": "_elmethis-numbered-list_6g6c5_24"
|
|
2706
2735
|
};
|
|
2707
|
-
const ElmList = component$(({ listStyle = "unordered" }) => {
|
|
2736
|
+
const ElmList = component$(({ listStyle = "unordered", style }) => {
|
|
2708
2737
|
if (listStyle === "ordered") {
|
|
2709
2738
|
return /* @__PURE__ */ jsx("ol", {
|
|
2710
2739
|
class: [
|
|
@@ -2712,6 +2741,7 @@ const ElmList = component$(({ listStyle = "unordered" }) => {
|
|
|
2712
2741
|
styles$7["elmethis-list-common"],
|
|
2713
2742
|
styles$7["elmethis-numbered-list"]
|
|
2714
2743
|
],
|
|
2744
|
+
style,
|
|
2715
2745
|
children: /* @__PURE__ */ jsx(Slot, {})
|
|
2716
2746
|
});
|
|
2717
2747
|
} else {
|
|
@@ -2725,7 +2755,7 @@ const ElmList = component$(({ listStyle = "unordered" }) => {
|
|
|
2725
2755
|
});
|
|
2726
2756
|
}
|
|
2727
2757
|
});
|
|
2728
|
-
const paragraph = "
|
|
2758
|
+
const paragraph = "_paragraph_1klqe_1";
|
|
2729
2759
|
const styles$6 = {
|
|
2730
2760
|
paragraph
|
|
2731
2761
|
};
|
|
@@ -2775,7 +2805,7 @@ const styles$5 = {
|
|
|
2775
2805
|
};
|
|
2776
2806
|
const HasRowHeaderContext = createContextId("HasRowHeaderContext");
|
|
2777
2807
|
const ElmTable = component$((props) => {
|
|
2778
|
-
const {
|
|
2808
|
+
const { caption: caption2, hasRowHeader = false, style } = props;
|
|
2779
2809
|
const hasRowHeaderComputed = useComputed$(() => hasRowHeader);
|
|
2780
2810
|
useContextProvider(HasRowHeaderContext, hasRowHeaderComputed);
|
|
2781
2811
|
return /* @__PURE__ */ jsxs("table", {
|
|
@@ -2784,7 +2814,7 @@ const ElmTable = component$((props) => {
|
|
|
2784
2814
|
textStyles.text
|
|
2785
2815
|
],
|
|
2786
2816
|
style: {
|
|
2787
|
-
|
|
2817
|
+
...style
|
|
2788
2818
|
},
|
|
2789
2819
|
children: [
|
|
2790
2820
|
caption2 && /* @__PURE__ */ jsx("caption", {
|
|
@@ -2882,10 +2912,9 @@ const ElmTableCell = component$((props) => {
|
|
|
2882
2912
|
})
|
|
2883
2913
|
});
|
|
2884
2914
|
});
|
|
2885
|
-
const column = "
|
|
2915
|
+
const column = "_column_1yujg_1";
|
|
2886
2916
|
const styles$1 = {
|
|
2887
|
-
"
|
|
2888
|
-
"column-list": "_column-list_1l2bp_7",
|
|
2917
|
+
"column-list": "_column-list_1yujg_1",
|
|
2889
2918
|
column
|
|
2890
2919
|
};
|
|
2891
2920
|
const convertInlineComponentsToPlainText = (inlineComponents) => {
|
|
@@ -3051,7 +3080,10 @@ const ElmJarkup = component$((props) => {
|
|
|
3051
3080
|
});
|
|
3052
3081
|
};
|
|
3053
3082
|
return /* @__PURE__ */ jsx("div", {
|
|
3054
|
-
|
|
3083
|
+
style: {
|
|
3084
|
+
"--margin-block": "3rem",
|
|
3085
|
+
...props.style
|
|
3086
|
+
},
|
|
3055
3087
|
children: render(props.jsonComponents)
|
|
3056
3088
|
});
|
|
3057
3089
|
});
|
|
@@ -3309,6 +3341,7 @@ export {
|
|
|
3309
3341
|
ElmRectangleWave,
|
|
3310
3342
|
ElmSelect,
|
|
3311
3343
|
ElmShikiHighlighter,
|
|
3344
|
+
ElmSquareLoadingIcon,
|
|
3312
3345
|
ElmSwitch,
|
|
3313
3346
|
ElmTable,
|
|
3314
3347
|
ElmTableBody,
|