@elmethis/react 0.3.8 → 0.3.9
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.react.mjs
CHANGED
|
@@ -3,9 +3,9 @@ import t, { Suspense as n, createContext as r, lazy as i, useCallback as a, useC
|
|
|
3
3
|
import { Fragment as f, jsx as p, jsxs as m } from "react/jsx-runtime";
|
|
4
4
|
import { darken as h, getLuminance as g, opacify as _, parseToHsl as v, parseToRgb as y, rgbToColorString as ee } from "polished";
|
|
5
5
|
import { mdiAccount as b, mdiAlert as x, mdiAlertCircle as te, mdiAlertOctagram as ne, mdiApplicationOutline as re, mdiArchive as ie, mdiArrowDownDropCircleOutline as ae, mdiArrowLeft as oe, mdiBackspaceOutline as se, mdiCalendarMonth as ce, mdiCalendarRefresh as le, mdiCheck as ue, mdiCheckCircle as de, mdiCheckCircleOutline as fe, mdiChevronRight as pe, mdiClipboardCheckMultipleOutline as me, mdiClipboardMultipleOutline as he, mdiCloseCircleOutline as ge, mdiConsoleLine as _e, mdiDownload as ve, mdiEarth as ye, mdiEmail as be, mdiEyeOffOutline as xe, mdiEyeOutline as Se, mdiFileOutline as Ce, mdiFolderOpen as we, mdiFormatQuoteClose as Te, mdiFormatQuoteOpen as Ee, mdiHome as De, mdiInformation as Oe, mdiKey as ke, mdiKeyboardReturn as Ae, mdiLightbulbOn as je, mdiLinkVariant as Me, mdiLoading as Ne, mdiLock as Pe, mdiLoginVariant as Fe, mdiLogoutVariant as Ie, mdiMagnify as Le, mdiMenuDown as Re, mdiMessageImageOutline as ze, mdiPen as Be, mdiPlus as Ve, mdiReload as He, mdiShieldAlert as Ue, mdiTable as We, mdiTag as Ge, mdiText as Ke } from "@mdi/js";
|
|
6
|
+
import S from "clsx";
|
|
6
7
|
import { createPortal as qe } from "react-dom";
|
|
7
8
|
import { useControllableState as Je } from "@radix-ui/react-use-controllable-state";
|
|
8
|
-
import S from "clsx";
|
|
9
9
|
import { kebabCase as Ye } from "lodash-es";
|
|
10
10
|
import { marked as Xe } from "marked";
|
|
11
11
|
var Ze = { icon: "_icon_k0isg_1" }, C = ({ src: e, alt: t, className: n }) => {
|
|
@@ -1636,23 +1636,24 @@ var qt = ({ name: e, src: t, filesize: n, style: r, className: i }) => {
|
|
|
1636
1636
|
})
|
|
1637
1637
|
});
|
|
1638
1638
|
}, V = {
|
|
1639
|
-
wrapper: "
|
|
1640
|
-
active: "
|
|
1641
|
-
header: "
|
|
1642
|
-
label: "
|
|
1643
|
-
body: "
|
|
1644
|
-
select: "
|
|
1645
|
-
selected: "
|
|
1646
|
-
fallback: "
|
|
1647
|
-
pulldown: "
|
|
1648
|
-
|
|
1649
|
-
|
|
1639
|
+
wrapper: "_wrapper_fb6dj_1",
|
|
1640
|
+
active: "_active_fb6dj_29",
|
|
1641
|
+
header: "_header_fb6dj_33",
|
|
1642
|
+
label: "_label_fb6dj_41",
|
|
1643
|
+
body: "_body_fb6dj_54",
|
|
1644
|
+
select: "_select_fb6dj_63",
|
|
1645
|
+
selected: "_selected_fb6dj_72",
|
|
1646
|
+
fallback: "_fallback_fb6dj_77",
|
|
1647
|
+
pulldown: "_pulldown_fb6dj_85",
|
|
1648
|
+
collapse: "_collapse_fb6dj_106",
|
|
1649
|
+
option: "_option_fb6dj_116",
|
|
1650
|
+
description: "_description_fb6dj_138"
|
|
1650
1651
|
}, ln = ({ disabled: e = !1, loading: t = !1, ...n }) => {
|
|
1651
1652
|
let [r, i] = d(!1), o = u(null), c = a(() => {
|
|
1652
1653
|
!e && !t && i((e) => !e);
|
|
1653
1654
|
}, [e, t]), { options: l, onSelect: f } = n, h = a((e) => {
|
|
1654
1655
|
let t = l.find((t) => t.id === e);
|
|
1655
|
-
t && f && f(t);
|
|
1656
|
+
t && f && (f(t), i(!1));
|
|
1656
1657
|
}, [l, f]);
|
|
1657
1658
|
return s(() => {
|
|
1658
1659
|
let e = (e) => {
|
|
@@ -1668,7 +1669,6 @@ var qt = ({ name: e, src: t, filesize: n, style: r, className: i }) => {
|
|
|
1668
1669
|
].filter(Boolean).join(" "),
|
|
1669
1670
|
style: {
|
|
1670
1671
|
backgroundColor: e || t ? "rgba(0,0,0,0.15)" : void 0,
|
|
1671
|
-
"--highlight-color": r ? "#bfa056" : void 0,
|
|
1672
1672
|
...n.style
|
|
1673
1673
|
},
|
|
1674
1674
|
onClick: c,
|
|
@@ -1697,26 +1697,29 @@ var qt = ({ name: e, src: t, filesize: n, style: r, className: i }) => {
|
|
|
1697
1697
|
d: Re,
|
|
1698
1698
|
size: "1.5rem"
|
|
1699
1699
|
}),
|
|
1700
|
-
|
|
1701
|
-
className: V.pulldown,
|
|
1702
|
-
children:
|
|
1703
|
-
className: V.
|
|
1704
|
-
|
|
1705
|
-
|
|
1706
|
-
|
|
1707
|
-
|
|
1708
|
-
|
|
1709
|
-
|
|
1710
|
-
|
|
1711
|
-
|
|
1712
|
-
|
|
1713
|
-
|
|
1714
|
-
|
|
1715
|
-
|
|
1716
|
-
|
|
1717
|
-
|
|
1718
|
-
|
|
1719
|
-
|
|
1700
|
+
/* @__PURE__ */ p("div", {
|
|
1701
|
+
className: S(V.pulldown, { [V.active]: r }),
|
|
1702
|
+
children: /* @__PURE__ */ p("div", {
|
|
1703
|
+
className: V.collapse,
|
|
1704
|
+
children: n.options.map((e) => /* @__PURE__ */ m("div", {
|
|
1705
|
+
className: V.option,
|
|
1706
|
+
onClick: (t) => {
|
|
1707
|
+
t.stopPropagation(), h(e.id);
|
|
1708
|
+
},
|
|
1709
|
+
children: [
|
|
1710
|
+
/* @__PURE__ */ p(w, {
|
|
1711
|
+
d: pe,
|
|
1712
|
+
color: "#868e9c",
|
|
1713
|
+
size: "0.75em"
|
|
1714
|
+
}),
|
|
1715
|
+
/* @__PURE__ */ p("span", { children: e.label }),
|
|
1716
|
+
e.description && /* @__PURE__ */ p("span", {
|
|
1717
|
+
className: V.description,
|
|
1718
|
+
children: e.description
|
|
1719
|
+
})
|
|
1720
|
+
]
|
|
1721
|
+
}, e.id))
|
|
1722
|
+
})
|
|
1720
1723
|
})
|
|
1721
1724
|
]
|
|
1722
1725
|
})
|
|
@@ -1922,12 +1925,12 @@ var qt = ({ name: e, src: t, filesize: n, style: r, className: i }) => {
|
|
|
1922
1925
|
}), yn = {
|
|
1923
1926
|
body: "_body_gd5gc_1",
|
|
1924
1927
|
button: "_button_gd5gc_5"
|
|
1925
|
-
},
|
|
1928
|
+
}, W = {
|
|
1926
1929
|
provider: "_provider_94i7o_1",
|
|
1927
1930
|
"provider-enter": "_provider-enter_94i7o_19",
|
|
1928
1931
|
"provider-exit": "_provider-exit_94i7o_23",
|
|
1929
1932
|
modal: "_modal_94i7o_27"
|
|
1930
|
-
},
|
|
1933
|
+
}, bn = ({ closeOnClickOutside: e = !0, onChange: t, ...n }) => {
|
|
1931
1934
|
let [r, i] = d(!1), o = n.value ?? !1;
|
|
1932
1935
|
s(() => {
|
|
1933
1936
|
if (o) {
|
|
@@ -1944,10 +1947,10 @@ var qt = ({ name: e, src: t, filesize: n, style: r, className: i }) => {
|
|
|
1944
1947
|
e.stopPropagation();
|
|
1945
1948
|
}, []);
|
|
1946
1949
|
return !o && !r ? null : qe(/* @__PURE__ */ p("div", {
|
|
1947
|
-
className: `${
|
|
1950
|
+
className: `${W.provider} ${o ? W["provider-enter"] : W["provider-exit"]}`,
|
|
1948
1951
|
onClick: c,
|
|
1949
1952
|
children: /* @__PURE__ */ p("div", {
|
|
1950
|
-
className: [
|
|
1953
|
+
className: [W.modal, n.className].filter(Boolean).join(" "),
|
|
1951
1954
|
style: {
|
|
1952
1955
|
"--width": n.width,
|
|
1953
1956
|
...n.style
|
|
@@ -1956,7 +1959,7 @@ var qt = ({ name: e, src: t, filesize: n, style: r, className: i }) => {
|
|
|
1956
1959
|
children: n.children
|
|
1957
1960
|
})
|
|
1958
1961
|
}), document.body);
|
|
1959
|
-
},
|
|
1962
|
+
}, xn = ({ closeOnClickOutside: e = !0, onChange: t, onConfirm: n, onSuccess: r, onError: i, ...o }) => {
|
|
1960
1963
|
let [s, c] = d(!1), l = a(() => {
|
|
1961
1964
|
t && t(!1);
|
|
1962
1965
|
}, [t]), u = a(async () => {
|
|
@@ -1972,7 +1975,7 @@ var qt = ({ name: e, src: t, filesize: n, style: r, className: i }) => {
|
|
|
1972
1975
|
i,
|
|
1973
1976
|
t
|
|
1974
1977
|
]);
|
|
1975
|
-
return /* @__PURE__ */ p(
|
|
1978
|
+
return /* @__PURE__ */ p(bn, {
|
|
1976
1979
|
value: o.value,
|
|
1977
1980
|
onChange: t,
|
|
1978
1981
|
closeOnClickOutside: e,
|
|
@@ -2007,29 +2010,29 @@ var qt = ({ name: e, src: t, filesize: n, style: r, className: i }) => {
|
|
|
2007
2010
|
})
|
|
2008
2011
|
] })
|
|
2009
2012
|
});
|
|
2010
|
-
},
|
|
2013
|
+
}, G = {
|
|
2011
2014
|
window: "_window_l8snl_1",
|
|
2012
2015
|
header: "_header_l8snl_14",
|
|
2013
2016
|
dot: "_dot_l8snl_25"
|
|
2014
|
-
},
|
|
2015
|
-
className: [
|
|
2017
|
+
}, Sn = ({ minHeight: e = "6rem", ...t }) => /* @__PURE__ */ m("div", {
|
|
2018
|
+
className: [G.window, t.className].filter(Boolean).join(" "),
|
|
2016
2019
|
style: t.style,
|
|
2017
2020
|
children: [/* @__PURE__ */ m("div", {
|
|
2018
|
-
className:
|
|
2021
|
+
className: G.header,
|
|
2019
2022
|
children: [
|
|
2020
2023
|
/* @__PURE__ */ p("div", {
|
|
2021
2024
|
"aria-hidden": !0,
|
|
2022
|
-
className:
|
|
2025
|
+
className: G.dot,
|
|
2023
2026
|
style: { "--bg": "#c48691" }
|
|
2024
2027
|
}),
|
|
2025
2028
|
/* @__PURE__ */ p("div", {
|
|
2026
2029
|
"aria-hidden": !0,
|
|
2027
|
-
className:
|
|
2030
|
+
className: G.dot,
|
|
2028
2031
|
style: { "--bg": "#c9b990" }
|
|
2029
2032
|
}),
|
|
2030
2033
|
/* @__PURE__ */ p("div", {
|
|
2031
2034
|
"aria-hidden": !0,
|
|
2032
|
-
className:
|
|
2035
|
+
className: G.dot,
|
|
2033
2036
|
style: { "--bg": "#7cc598" }
|
|
2034
2037
|
})
|
|
2035
2038
|
]
|
|
@@ -2037,7 +2040,7 @@ var qt = ({ name: e, src: t, filesize: n, style: r, className: i }) => {
|
|
|
2037
2040
|
style: { minHeight: e },
|
|
2038
2041
|
children: t.children
|
|
2039
2042
|
})]
|
|
2040
|
-
}),
|
|
2043
|
+
}), Cn = { parallax: "_parallax_1tovg_1" }, wn = ({ className: e, ...t }) => {
|
|
2041
2044
|
let [n, r] = d(0);
|
|
2042
2045
|
return s(() => {
|
|
2043
2046
|
let e = null, t = () => {
|
|
@@ -2049,7 +2052,7 @@ var qt = ({ name: e, src: t, filesize: n, style: r, className: i }) => {
|
|
|
2049
2052
|
window.removeEventListener("scroll", t), e != null && cancelAnimationFrame(e);
|
|
2050
2053
|
};
|
|
2051
2054
|
}, []), /* @__PURE__ */ m(f, { children: [/* @__PURE__ */ p("div", {
|
|
2052
|
-
className: [
|
|
2055
|
+
className: [Cn.parallax, e].filter(Boolean).join(" "),
|
|
2053
2056
|
style: {
|
|
2054
2057
|
backgroundImage: `url(${t.imageUrl1})`,
|
|
2055
2058
|
transform: `scale(1.2) translateY(${n / 400}%)`,
|
|
@@ -2057,22 +2060,22 @@ var qt = ({ name: e, src: t, filesize: n, style: r, className: i }) => {
|
|
|
2057
2060
|
...t.style
|
|
2058
2061
|
}
|
|
2059
2062
|
}), /* @__PURE__ */ p("div", {
|
|
2060
|
-
className:
|
|
2063
|
+
className: Cn.parallax,
|
|
2061
2064
|
style: {
|
|
2062
2065
|
backgroundImage: `url(${t.imageUrl2})`,
|
|
2063
2066
|
transform: `scale(1.2) translateY(${n / 900}%)`,
|
|
2064
2067
|
transformOrigin: "bottom"
|
|
2065
2068
|
}
|
|
2066
2069
|
})] });
|
|
2067
|
-
},
|
|
2070
|
+
}, Tn = {
|
|
2068
2071
|
container: "_container_1mzm0_1",
|
|
2069
2072
|
title: "_title_1mzm0_16",
|
|
2070
2073
|
text: "_text_1mzm0_22"
|
|
2071
|
-
},
|
|
2074
|
+
}, En = {
|
|
2072
2075
|
original: "_original_3zasf_1",
|
|
2073
2076
|
tooltip: "_tooltip_3zasf_5",
|
|
2074
2077
|
"tooltip-enter": "_tooltip-enter_3zasf_17"
|
|
2075
|
-
},
|
|
2078
|
+
}, Dn = (e) => {
|
|
2076
2079
|
let t = u(null), [n, r] = d(!1), [i, o] = d({}), c = a(() => {
|
|
2077
2080
|
let e = t.current;
|
|
2078
2081
|
if (!e) return;
|
|
@@ -2089,40 +2092,40 @@ var qt = ({ name: e, src: t, filesize: n, style: r, className: i }) => {
|
|
|
2089
2092
|
n && c();
|
|
2090
2093
|
}, [n, c]), /* @__PURE__ */ m("span", {
|
|
2091
2094
|
ref: t,
|
|
2092
|
-
className: [
|
|
2095
|
+
className: [En.original, e.className].filter(Boolean).join(" "),
|
|
2093
2096
|
onMouseOver: () => r(!0),
|
|
2094
2097
|
onMouseLeave: () => r(!1),
|
|
2095
2098
|
style: e.style,
|
|
2096
2099
|
children: [e.original, n && /* @__PURE__ */ p("div", {
|
|
2097
|
-
className: `${
|
|
2100
|
+
className: `${En.tooltip} ${En["tooltip-enter"]}`,
|
|
2098
2101
|
style: i,
|
|
2099
2102
|
children: e.tooltip
|
|
2100
2103
|
})]
|
|
2101
2104
|
});
|
|
2102
|
-
},
|
|
2105
|
+
}, On = (e) => /* @__PURE__ */ p(Dn, {
|
|
2103
2106
|
original: e.children,
|
|
2104
2107
|
tooltip: /* @__PURE__ */ m("div", {
|
|
2105
|
-
className: [
|
|
2108
|
+
className: [Tn.container, e.className].filter(Boolean).join(" "),
|
|
2106
2109
|
style: e.style,
|
|
2107
2110
|
children: [e.title && /* @__PURE__ */ p("div", {
|
|
2108
|
-
className:
|
|
2111
|
+
className: Tn.title,
|
|
2109
2112
|
children: e.title
|
|
2110
2113
|
}), /* @__PURE__ */ p("div", {
|
|
2111
|
-
className:
|
|
2114
|
+
className: Tn.text,
|
|
2112
2115
|
children: e.text
|
|
2113
2116
|
})]
|
|
2114
2117
|
})
|
|
2115
|
-
}),
|
|
2118
|
+
}), kn = {
|
|
2116
2119
|
snackbar: "_snackbar_1f0go_1",
|
|
2117
2120
|
icon: "_icon_1f0go_19",
|
|
2118
2121
|
progress: "_progress_1f0go_45"
|
|
2119
|
-
},
|
|
2120
|
-
className: [
|
|
2122
|
+
}, An = ({ timeout: e = 5e3, ...t }) => /* @__PURE__ */ m("div", {
|
|
2123
|
+
className: [kn.snackbar, t.className].filter(Boolean).join(" "),
|
|
2121
2124
|
style: t.style,
|
|
2122
2125
|
children: [
|
|
2123
2126
|
t.label == null ? t.children : /* @__PURE__ */ p(D, { children: t.label }),
|
|
2124
2127
|
/* @__PURE__ */ p("div", {
|
|
2125
|
-
className:
|
|
2128
|
+
className: kn.icon,
|
|
2126
2129
|
onClick: t.close,
|
|
2127
2130
|
children: /* @__PURE__ */ p(w, {
|
|
2128
2131
|
d: ge,
|
|
@@ -2130,22 +2133,22 @@ var qt = ({ name: e, src: t, filesize: n, style: r, className: i }) => {
|
|
|
2130
2133
|
})
|
|
2131
2134
|
}),
|
|
2132
2135
|
/* @__PURE__ */ p("div", {
|
|
2133
|
-
className:
|
|
2136
|
+
className: kn.progress,
|
|
2134
2137
|
style: { animationDuration: `${e}ms` }
|
|
2135
2138
|
})
|
|
2136
2139
|
]
|
|
2137
|
-
}),
|
|
2140
|
+
}), jn = {
|
|
2138
2141
|
"snackbar-screen": "_snackbar-screen_up7j2_1",
|
|
2139
2142
|
"snackbar-container": "_snackbar-container_up7j2_14",
|
|
2140
2143
|
"snackbar-item": "_snackbar-item_up7j2_23"
|
|
2141
|
-
},
|
|
2142
|
-
className: [
|
|
2144
|
+
}, Mn = (e) => /* @__PURE__ */ p("div", {
|
|
2145
|
+
className: [jn["snackbar-screen"], e.className].filter(Boolean).join(" "),
|
|
2143
2146
|
style: e.style,
|
|
2144
2147
|
children: /* @__PURE__ */ p("div", {
|
|
2145
|
-
className:
|
|
2148
|
+
className: jn["snackbar-container"],
|
|
2146
2149
|
children: e.snackbars.map((e) => /* @__PURE__ */ p("div", {
|
|
2147
|
-
className:
|
|
2148
|
-
children: /* @__PURE__ */ p(
|
|
2150
|
+
className: jn["snackbar-item"],
|
|
2151
|
+
children: /* @__PURE__ */ p(An, {
|
|
2149
2152
|
label: e.label,
|
|
2150
2153
|
timeout: e.timeout,
|
|
2151
2154
|
close: e.close,
|
|
@@ -2153,34 +2156,34 @@ var qt = ({ name: e, src: t, filesize: n, style: r, className: i }) => {
|
|
|
2153
2156
|
})
|
|
2154
2157
|
}, e.id))
|
|
2155
2158
|
})
|
|
2156
|
-
}),
|
|
2159
|
+
}), K = {
|
|
2157
2160
|
"elm-tabs": "_elm-tabs_ykoqx_1",
|
|
2158
2161
|
"tab-container": "_tab-container_ykoqx_18",
|
|
2159
2162
|
tab: "_tab_ykoqx_18",
|
|
2160
2163
|
active: "_active_ykoqx_40",
|
|
2161
2164
|
"tab-content-container": "_tab-content-container_ykoqx_51",
|
|
2162
2165
|
"tab-content": "_tab-content_ykoqx_51"
|
|
2163
|
-
},
|
|
2166
|
+
}, Nn = (e) => {
|
|
2164
2167
|
let [t, n] = d(0);
|
|
2165
2168
|
return /* @__PURE__ */ m("div", {
|
|
2166
|
-
className: [
|
|
2169
|
+
className: [K["elm-tabs"], e.className].filter(Boolean).join(" "),
|
|
2167
2170
|
style: e.style,
|
|
2168
2171
|
children: [/* @__PURE__ */ p("div", {
|
|
2169
|
-
className:
|
|
2172
|
+
className: K["tab-container"],
|
|
2170
2173
|
children: e.tabLabels.map((e, r) => /* @__PURE__ */ p("div", {
|
|
2171
|
-
className: `${
|
|
2174
|
+
className: `${K.tab} ${t === r ? K.active : ""}`,
|
|
2172
2175
|
onClick: () => n(r),
|
|
2173
2176
|
children: e
|
|
2174
2177
|
}, r))
|
|
2175
2178
|
}), /* @__PURE__ */ p("div", {
|
|
2176
|
-
className:
|
|
2179
|
+
className: K["tab-content-container"],
|
|
2177
2180
|
children: e.tabContents.map((e, n) => /* @__PURE__ */ p("div", {
|
|
2178
|
-
className: `${
|
|
2181
|
+
className: `${K["tab-content"]} ${t === n ? K.active : ""}`,
|
|
2179
2182
|
children: e
|
|
2180
2183
|
}, n))
|
|
2181
2184
|
})]
|
|
2182
2185
|
});
|
|
2183
|
-
},
|
|
2186
|
+
}, q = {
|
|
2184
2187
|
toggle: "_toggle_16f85_1",
|
|
2185
2188
|
open: "_open_16f85_14",
|
|
2186
2189
|
summary: "_summary_16f85_19",
|
|
@@ -2191,7 +2194,7 @@ var qt = ({ name: e, src: t, filesize: n, style: r, className: i }) => {
|
|
|
2191
2194
|
border: "_border_16f85_84",
|
|
2192
2195
|
content: "_content_16f85_92",
|
|
2193
2196
|
close: "_close_16f85_96"
|
|
2194
|
-
},
|
|
2197
|
+
}, Pn = (e) => {
|
|
2195
2198
|
let [t, n] = Je({
|
|
2196
2199
|
prop: e.isOpen,
|
|
2197
2200
|
defaultProp: !1,
|
|
@@ -2200,55 +2203,55 @@ var qt = ({ name: e, src: t, filesize: n, style: r, className: i }) => {
|
|
|
2200
2203
|
e.preventDefault(), n(!t);
|
|
2201
2204
|
};
|
|
2202
2205
|
return /* @__PURE__ */ m("div", {
|
|
2203
|
-
className: S(
|
|
2206
|
+
className: S(q.toggle, e.className, { [q.open]: t }),
|
|
2204
2207
|
style: { ...e.style },
|
|
2205
2208
|
children: [
|
|
2206
2209
|
/* @__PURE__ */ m("div", {
|
|
2207
|
-
className:
|
|
2210
|
+
className: q.summary,
|
|
2208
2211
|
onClick: r,
|
|
2209
2212
|
children: [
|
|
2210
2213
|
/* @__PURE__ */ m("div", {
|
|
2211
|
-
className:
|
|
2214
|
+
className: q["summary-left"],
|
|
2212
2215
|
children: [/* @__PURE__ */ p(w, {
|
|
2213
|
-
className: S(
|
|
2216
|
+
className: S(q.chevron, { [q.open]: t }),
|
|
2214
2217
|
d: pe,
|
|
2215
2218
|
color: "#59b57c",
|
|
2216
2219
|
size: "1rem"
|
|
2217
2220
|
}), /* @__PURE__ */ p("div", { children: e.summary == null ? e.summaryContent : /* @__PURE__ */ p(D, { children: e.summary }) })]
|
|
2218
2221
|
}),
|
|
2219
|
-
/* @__PURE__ */ p("hr", { className:
|
|
2222
|
+
/* @__PURE__ */ p("hr", { className: q.divider }),
|
|
2220
2223
|
/* @__PURE__ */ p(w, {
|
|
2221
|
-
className: S(
|
|
2224
|
+
className: S(q.cross, { [q.open]: t }),
|
|
2222
2225
|
d: Ve,
|
|
2223
2226
|
size: "1rem",
|
|
2224
2227
|
color: t ? "#b36472" : "#59b57c"
|
|
2225
2228
|
})
|
|
2226
2229
|
]
|
|
2227
2230
|
}),
|
|
2228
|
-
/* @__PURE__ */ p("div", { className:
|
|
2231
|
+
/* @__PURE__ */ p("div", { className: q.border }),
|
|
2229
2232
|
/* @__PURE__ */ p("div", {
|
|
2230
|
-
className: S(
|
|
2233
|
+
className: S(q.content, { [q.close]: !t }),
|
|
2231
2234
|
children: e.children
|
|
2232
2235
|
})
|
|
2233
2236
|
]
|
|
2234
2237
|
});
|
|
2235
|
-
},
|
|
2238
|
+
}, J = {
|
|
2236
2239
|
table: "_table_197ge_1",
|
|
2237
2240
|
caption: "_caption_197ge_8",
|
|
2238
2241
|
"caption-inner": "_caption-inner_197ge_18",
|
|
2239
2242
|
spacing: "_spacing_197ge_25"
|
|
2240
|
-
},
|
|
2243
|
+
}, Fn = r(!1), In = r(!1), Ln = ({ caption: e, hasRowHeader: t = !1, header: n, body: r, style: i, className: a }) => /* @__PURE__ */ p(In.Provider, {
|
|
2241
2244
|
value: t,
|
|
2242
2245
|
children: /* @__PURE__ */ m("table", {
|
|
2243
|
-
className: [
|
|
2246
|
+
className: [J.table, a].filter(Boolean).join(" "),
|
|
2244
2247
|
style: i,
|
|
2245
2248
|
children: [
|
|
2246
2249
|
e != null && /* @__PURE__ */ p("caption", { children: /* @__PURE__ */ m("span", {
|
|
2247
|
-
className:
|
|
2250
|
+
className: J.caption,
|
|
2248
2251
|
children: [
|
|
2249
|
-
/* @__PURE__ */ p("span", { className:
|
|
2252
|
+
/* @__PURE__ */ p("span", { className: J.spacing }),
|
|
2250
2253
|
/* @__PURE__ */ m("span", {
|
|
2251
|
-
className:
|
|
2254
|
+
className: J["caption-inner"],
|
|
2252
2255
|
children: [/* @__PURE__ */ p("svg", {
|
|
2253
2256
|
viewBox: "0 0 24 24",
|
|
2254
2257
|
width: "1rem",
|
|
@@ -2259,51 +2262,51 @@ var qt = ({ name: e, src: t, filesize: n, style: r, className: i }) => {
|
|
|
2259
2262
|
})
|
|
2260
2263
|
}), /* @__PURE__ */ p(D, { children: e })]
|
|
2261
2264
|
}),
|
|
2262
|
-
/* @__PURE__ */ p("span", { className:
|
|
2265
|
+
/* @__PURE__ */ p("span", { className: J.spacing })
|
|
2263
2266
|
]
|
|
2264
2267
|
}) }),
|
|
2265
2268
|
n,
|
|
2266
2269
|
r
|
|
2267
2270
|
]
|
|
2268
2271
|
})
|
|
2269
|
-
}),
|
|
2272
|
+
}), Rn = ({ children: e, style: t, className: n }) => /* @__PURE__ */ p(Fn.Provider, {
|
|
2270
2273
|
value: !1,
|
|
2271
2274
|
children: /* @__PURE__ */ p("tbody", {
|
|
2272
2275
|
className: n,
|
|
2273
2276
|
style: t,
|
|
2274
2277
|
children: e
|
|
2275
2278
|
})
|
|
2276
|
-
}),
|
|
2279
|
+
}), zn = {
|
|
2277
2280
|
common: "_common_15vhm_1",
|
|
2278
2281
|
td: "_td_15vhm_26",
|
|
2279
2282
|
th: "_th_15vhm_34"
|
|
2280
|
-
},
|
|
2281
|
-
let a = o(
|
|
2283
|
+
}, Bn = ({ children: e, style: t, hasHeader: n = !1, text: r, className: i }) => {
|
|
2284
|
+
let a = o(Fn), s = n || a;
|
|
2282
2285
|
return /* @__PURE__ */ p(s ? "th" : "td", {
|
|
2283
2286
|
className: [
|
|
2284
|
-
|
|
2285
|
-
s ?
|
|
2287
|
+
zn.common,
|
|
2288
|
+
s ? zn.th : zn.td,
|
|
2286
2289
|
i
|
|
2287
2290
|
].filter(Boolean).join(" "),
|
|
2288
2291
|
style: t,
|
|
2289
2292
|
children: r ?? e
|
|
2290
2293
|
});
|
|
2291
|
-
},
|
|
2294
|
+
}, Vn = { thead: "_thead_184mb_1" }, Hn = ({ children: e, style: t, className: n }) => /* @__PURE__ */ p(Fn.Provider, {
|
|
2292
2295
|
value: !0,
|
|
2293
2296
|
children: /* @__PURE__ */ p("thead", {
|
|
2294
|
-
className: [
|
|
2297
|
+
className: [Vn.thead, n].filter(Boolean).join(" "),
|
|
2295
2298
|
style: t,
|
|
2296
2299
|
children: e
|
|
2297
2300
|
})
|
|
2298
|
-
}),
|
|
2301
|
+
}), Un = {
|
|
2299
2302
|
tr: "_tr_1l64j_1",
|
|
2300
2303
|
"has-row-header": "_has-row-header_1l64j_25"
|
|
2301
|
-
},
|
|
2302
|
-
let r = o(
|
|
2304
|
+
}, Wn = ({ children: e, style: t, className: n }) => {
|
|
2305
|
+
let r = o(In);
|
|
2303
2306
|
return /* @__PURE__ */ p("tr", {
|
|
2304
2307
|
className: [
|
|
2305
|
-
|
|
2306
|
-
r ?
|
|
2308
|
+
Un.tr,
|
|
2309
|
+
r ? Un["has-row-header"] : void 0,
|
|
2307
2310
|
n
|
|
2308
2311
|
].filter(Boolean).join(" "),
|
|
2309
2312
|
style: t,
|
|
@@ -2465,7 +2468,7 @@ var Jn = ({ code: e, language: t = "txt", onRendered: n, style: r, className: i
|
|
|
2465
2468
|
"--color": e,
|
|
2466
2469
|
...t
|
|
2467
2470
|
},
|
|
2468
|
-
children: /* @__PURE__ */ p(
|
|
2471
|
+
children: /* @__PURE__ */ p(Dn, {
|
|
2469
2472
|
original: /* @__PURE__ */ m(f, { children: [/* @__PURE__ */ p("div", {
|
|
2470
2473
|
className: X["color-bg"],
|
|
2471
2474
|
style: { "--background-color": e },
|
|
@@ -2749,7 +2752,7 @@ var ir = ({ commands: e, onCommandInvoked: t, style: n, className: r }) => {
|
|
|
2749
2752
|
},
|
|
2750
2753
|
Toggle: (e, t, n, r) => {
|
|
2751
2754
|
let i = e.id ?? n;
|
|
2752
|
-
return /* @__PURE__ */ p(
|
|
2755
|
+
return /* @__PURE__ */ p(Pn, {
|
|
2753
2756
|
summaryContent: t(e.slots.summary),
|
|
2754
2757
|
style: n === 0 ? { "--elmethis-margin-block-start": "0" } : void 0,
|
|
2755
2758
|
children: t(e.slots.default)
|
|
@@ -2815,28 +2818,28 @@ var ir = ({ commands: e, onCommandInvoked: t, style: n, className: r }) => {
|
|
|
2815
2818
|
Tabs: (e, t, n, r) => {
|
|
2816
2819
|
let i = e.id ?? n, a = [], o = [];
|
|
2817
2820
|
for (let n of e.slots.default) a.push(/* @__PURE__ */ p("span", { children: t(n.slots.labels) })), o.push(/* @__PURE__ */ p("div", { children: t(n.slots.contents) }));
|
|
2818
|
-
return /* @__PURE__ */ p(
|
|
2821
|
+
return /* @__PURE__ */ p(Nn, {
|
|
2819
2822
|
tabLabels: a,
|
|
2820
2823
|
tabContents: o
|
|
2821
2824
|
}, i);
|
|
2822
2825
|
},
|
|
2823
2826
|
Table: (e, t, n, r) => {
|
|
2824
2827
|
let i = e.id ?? n;
|
|
2825
|
-
return /* @__PURE__ */ p(
|
|
2828
|
+
return /* @__PURE__ */ p(Ln, {
|
|
2826
2829
|
caption: e.props?.caption,
|
|
2827
2830
|
hasRowHeader: e.props?.hasRowHeader,
|
|
2828
|
-
header: e.slots.header ? /* @__PURE__ */ p(
|
|
2829
|
-
body: /* @__PURE__ */ p(
|
|
2831
|
+
header: e.slots.header ? /* @__PURE__ */ p(Hn, { children: t(e.slots.header) }) : void 0,
|
|
2832
|
+
body: /* @__PURE__ */ p(Rn, { children: t(e.slots.body) }),
|
|
2830
2833
|
style: n === 0 ? { "--elmethis-margin-block-start": "0" } : void 0
|
|
2831
2834
|
}, i);
|
|
2832
2835
|
},
|
|
2833
2836
|
TableRow: (e, t, n, r) => {
|
|
2834
2837
|
let i = e.id ?? n;
|
|
2835
|
-
return /* @__PURE__ */ p(
|
|
2838
|
+
return /* @__PURE__ */ p(Wn, { children: t(e.slots.default) }, i);
|
|
2836
2839
|
},
|
|
2837
2840
|
TableCell: (e, t, n, r) => {
|
|
2838
2841
|
let i = e.id ?? n;
|
|
2839
|
-
return /* @__PURE__ */ p(
|
|
2842
|
+
return /* @__PURE__ */ p(Bn, { children: t(e.slots.default) }, i);
|
|
2840
2843
|
},
|
|
2841
2844
|
ColumnList: (e, t, n, r) => {
|
|
2842
2845
|
let i = e.id ?? n;
|
|
@@ -2974,10 +2977,10 @@ var ir = ({ commands: e, onCommandInvoked: t, style: n, className: r }) => {
|
|
|
2974
2977
|
children: e.text
|
|
2975
2978
|
}, n),
|
|
2976
2979
|
table: (e, t, n) => {
|
|
2977
|
-
let r = (e) => e.map((e, n) => /* @__PURE__ */ p(
|
|
2978
|
-
return /* @__PURE__ */ p(
|
|
2979
|
-
header: /* @__PURE__ */ p(
|
|
2980
|
-
body: /* @__PURE__ */ p(
|
|
2980
|
+
let r = (e) => e.map((e, n) => /* @__PURE__ */ p(Bn, { children: t(e.tokens) }, n)), i = /* @__PURE__ */ p(Wn, { children: r(e.header) }), a = e.rows.map((e, t) => /* @__PURE__ */ p(Wn, { children: r(e) }, t));
|
|
2981
|
+
return /* @__PURE__ */ p(Ln, {
|
|
2982
|
+
header: /* @__PURE__ */ p(Hn, { children: i }),
|
|
2983
|
+
body: /* @__PURE__ */ p(Rn, { children: a }),
|
|
2981
2984
|
style: Q(n)
|
|
2982
2985
|
}, n);
|
|
2983
2986
|
},
|
|
@@ -3082,4 +3085,4 @@ var ir = ({ commands: e, onCommandInvoked: t, style: n, className: r }) => {
|
|
|
3082
3085
|
})
|
|
3083
3086
|
});
|
|
3084
3087
|
//#endregion
|
|
3085
|
-
export { ft as ElmArrowIcon, nn as ElmBlockFallback, Ct as ElmBlockQuote, Jt as ElmBookmark, ht as ElmBookmarkIcon, Yt as ElmBreadcrumb, sn as ElmButton, Et as ElmCallout, cn as ElmCheckbox, Yn as ElmCodeBlock, Qn as ElmColorSample, tr as ElmColorTable, gn as ElmColumn, vn as ElmColumnList, ir as ElmCommandPalette,
|
|
3088
|
+
export { ft as ElmArrowIcon, nn as ElmBlockFallback, Ct as ElmBlockQuote, Jt as ElmBookmark, ht as ElmBookmarkIcon, Yt as ElmBreadcrumb, sn as ElmButton, Et as ElmCallout, cn as ElmCheckbox, Yn as ElmCodeBlock, Qn as ElmColorSample, tr as ElmColorTable, gn as ElmColumn, vn as ElmColumnList, ir as ElmCommandPalette, xn as ElmConfirmModal, vt as ElmCubeIcon, Sn as ElmDesktopWindow, Ot as ElmDivider, T as ElmDotLoadingIcon, qt as ElmFile, At as ElmFragmentIdentifier, k as ElmHeading, N as ElmImage, C as ElmInlineIcon, D as ElmInlineText, dr as ElmJarkup, or as ElmJsonComponentRenderer, Zn as ElmKatex, et as ElmLanguageIcon, Ft as ElmList, bt as ElmLoginIcon, mr as ElmMarkdown, w as ElmMdiIcon, e as ElmMermaid, bn as ElmModal, Ht as ElmMultiProgress, gr as ElmOEmbed, Xt as ElmPageTop, St as ElmParagraph, wn as ElmParallax, Bt as ElmProgress, tn as ElmRectangleWave, ln as ElmSelect, Jn as ElmShikiHighlighter, On as ElmSimpleTooltip, An as ElmSnackbar, Mn as ElmSnackbarContainer, an as ElmSpinner, ot as ElmSquareLoadingIcon, Gt as ElmStatusMessage, un as ElmSwitch, Ln as ElmTable, Rn as ElmTableBody, Bn as ElmTableCell, Hn as ElmTableHeader, Qt as ElmTableOfContents, Wn as ElmTableRow, Nn as ElmTabs, zt as ElmTemplate, fn as ElmTextField, Pn as ElmToggle, dt as ElmToggleTheme, Dn as ElmTooltip, hr as ElmTyping, Lt as ElmTypingAnimation, on as ElmUnsupportedBlock, mn as ElmValidation, tt as LANGUAGES };
|