@elmethis/react 0.3.8 → 0.3.10
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.cjs +1 -1
- package/lib/index.react.mjs +118 -123
- package/lib/style.css +1 -1
- package/lib-types/components/form/ElmSelect.d.ts +4 -4
- package/lib-types/components/form/ElmSelect.d.ts.map +1 -1
- package/lib-types/components/form/ElmSelect.stories.d.ts +1 -0
- package/lib-types/components/form/ElmSelect.stories.d.ts.map +1 -1
- package/package.json +5 -5
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,24 +1636,25 @@ 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
|
-
}, [e, t]), { options: l, onSelect:
|
|
1654
|
+
}, [e, t]), { options: l, onSelect: h } = n, g = a((e) => {
|
|
1654
1655
|
let t = l.find((t) => t.id === e);
|
|
1655
|
-
t &&
|
|
1656
|
-
}, [l,
|
|
1656
|
+
t && h && (h(t), i(!1));
|
|
1657
|
+
}, [l, h]);
|
|
1657
1658
|
return s(() => {
|
|
1658
1659
|
let e = (e) => {
|
|
1659
1660
|
o.current && !o.current.contains(e.target) && i(!1);
|
|
@@ -1661,14 +1662,9 @@ var qt = ({ name: e, src: t, filesize: n, style: r, className: i }) => {
|
|
|
1661
1662
|
return document.addEventListener("mousedown", e), () => document.removeEventListener("mousedown", e);
|
|
1662
1663
|
}, []), /* @__PURE__ */ m("div", {
|
|
1663
1664
|
ref: o,
|
|
1664
|
-
className: [
|
|
1665
|
-
V.wrapper,
|
|
1666
|
-
r ? V.active : "",
|
|
1667
|
-
n.className
|
|
1668
|
-
].filter(Boolean).join(" "),
|
|
1665
|
+
className: S(V.wrapper, n.className, { [V.active]: r }),
|
|
1669
1666
|
style: {
|
|
1670
1667
|
backgroundColor: e || t ? "rgba(0,0,0,0.15)" : void 0,
|
|
1671
|
-
"--highlight-color": r ? "#bfa056" : void 0,
|
|
1672
1668
|
...n.style
|
|
1673
1669
|
},
|
|
1674
1670
|
onClick: c,
|
|
@@ -1685,7 +1681,7 @@ var qt = ({ name: e, src: t, filesize: n, style: r, className: i }) => {
|
|
|
1685
1681
|
children: [
|
|
1686
1682
|
/* @__PURE__ */ p("div", {
|
|
1687
1683
|
className: V.selected,
|
|
1688
|
-
children: n.selectedOption ? /* @__PURE__ */ m("div", { children: [/* @__PURE__ */ p("span", { children: n.selectedOption.label }), n.selectedOption.description && /* @__PURE__ */ p("span", {
|
|
1684
|
+
children: n.selectedOption ? n.selectedOption.children ? /* @__PURE__ */ p("div", { children: n.selectedOption.children }) : /* @__PURE__ */ m("div", { children: [/* @__PURE__ */ p("span", { children: n.selectedOption.label }), n.selectedOption.description && /* @__PURE__ */ p("span", {
|
|
1689
1685
|
className: V.description,
|
|
1690
1686
|
children: n.selectedOption.description
|
|
1691
1687
|
})] }) : /* @__PURE__ */ m("div", {
|
|
@@ -1697,26 +1693,25 @@ var qt = ({ name: e, src: t, filesize: n, style: r, className: i }) => {
|
|
|
1697
1693
|
d: Re,
|
|
1698
1694
|
size: "1.5rem"
|
|
1699
1695
|
}),
|
|
1700
|
-
|
|
1701
|
-
className: V.pulldown,
|
|
1702
|
-
children:
|
|
1703
|
-
className: V.
|
|
1704
|
-
|
|
1705
|
-
|
|
1706
|
-
|
|
1707
|
-
|
|
1708
|
-
|
|
1696
|
+
/* @__PURE__ */ p("div", {
|
|
1697
|
+
className: S(V.pulldown, { [V.active]: r }),
|
|
1698
|
+
children: /* @__PURE__ */ p("div", {
|
|
1699
|
+
className: V.collapse,
|
|
1700
|
+
children: n.options.map((e) => /* @__PURE__ */ m("div", {
|
|
1701
|
+
className: V.option,
|
|
1702
|
+
onClick: (t) => {
|
|
1703
|
+
t.stopPropagation(), g(e.id);
|
|
1704
|
+
},
|
|
1705
|
+
children: [/* @__PURE__ */ p(w, {
|
|
1709
1706
|
d: pe,
|
|
1710
1707
|
color: "#868e9c",
|
|
1711
1708
|
size: "0.75em"
|
|
1712
|
-
}),
|
|
1713
|
-
/* @__PURE__ */ p("span", { children: e.label }),
|
|
1714
|
-
e.description && /* @__PURE__ */ p("span", {
|
|
1709
|
+
}), e.children ? /* @__PURE__ */ p("div", { children: e.children }) : /* @__PURE__ */ m(f, { children: [/* @__PURE__ */ p("span", { children: e.label }), e.description && /* @__PURE__ */ p("span", {
|
|
1715
1710
|
className: V.description,
|
|
1716
1711
|
children: e.description
|
|
1717
|
-
})
|
|
1718
|
-
|
|
1719
|
-
}
|
|
1712
|
+
})] })]
|
|
1713
|
+
}, e.id))
|
|
1714
|
+
})
|
|
1720
1715
|
})
|
|
1721
1716
|
]
|
|
1722
1717
|
})
|
|
@@ -1922,12 +1917,12 @@ var qt = ({ name: e, src: t, filesize: n, style: r, className: i }) => {
|
|
|
1922
1917
|
}), yn = {
|
|
1923
1918
|
body: "_body_gd5gc_1",
|
|
1924
1919
|
button: "_button_gd5gc_5"
|
|
1925
|
-
},
|
|
1920
|
+
}, W = {
|
|
1926
1921
|
provider: "_provider_94i7o_1",
|
|
1927
1922
|
"provider-enter": "_provider-enter_94i7o_19",
|
|
1928
1923
|
"provider-exit": "_provider-exit_94i7o_23",
|
|
1929
1924
|
modal: "_modal_94i7o_27"
|
|
1930
|
-
},
|
|
1925
|
+
}, bn = ({ closeOnClickOutside: e = !0, onChange: t, ...n }) => {
|
|
1931
1926
|
let [r, i] = d(!1), o = n.value ?? !1;
|
|
1932
1927
|
s(() => {
|
|
1933
1928
|
if (o) {
|
|
@@ -1944,10 +1939,10 @@ var qt = ({ name: e, src: t, filesize: n, style: r, className: i }) => {
|
|
|
1944
1939
|
e.stopPropagation();
|
|
1945
1940
|
}, []);
|
|
1946
1941
|
return !o && !r ? null : qe(/* @__PURE__ */ p("div", {
|
|
1947
|
-
className: `${
|
|
1942
|
+
className: `${W.provider} ${o ? W["provider-enter"] : W["provider-exit"]}`,
|
|
1948
1943
|
onClick: c,
|
|
1949
1944
|
children: /* @__PURE__ */ p("div", {
|
|
1950
|
-
className: [
|
|
1945
|
+
className: [W.modal, n.className].filter(Boolean).join(" "),
|
|
1951
1946
|
style: {
|
|
1952
1947
|
"--width": n.width,
|
|
1953
1948
|
...n.style
|
|
@@ -1956,7 +1951,7 @@ var qt = ({ name: e, src: t, filesize: n, style: r, className: i }) => {
|
|
|
1956
1951
|
children: n.children
|
|
1957
1952
|
})
|
|
1958
1953
|
}), document.body);
|
|
1959
|
-
},
|
|
1954
|
+
}, xn = ({ closeOnClickOutside: e = !0, onChange: t, onConfirm: n, onSuccess: r, onError: i, ...o }) => {
|
|
1960
1955
|
let [s, c] = d(!1), l = a(() => {
|
|
1961
1956
|
t && t(!1);
|
|
1962
1957
|
}, [t]), u = a(async () => {
|
|
@@ -1972,7 +1967,7 @@ var qt = ({ name: e, src: t, filesize: n, style: r, className: i }) => {
|
|
|
1972
1967
|
i,
|
|
1973
1968
|
t
|
|
1974
1969
|
]);
|
|
1975
|
-
return /* @__PURE__ */ p(
|
|
1970
|
+
return /* @__PURE__ */ p(bn, {
|
|
1976
1971
|
value: o.value,
|
|
1977
1972
|
onChange: t,
|
|
1978
1973
|
closeOnClickOutside: e,
|
|
@@ -2007,29 +2002,29 @@ var qt = ({ name: e, src: t, filesize: n, style: r, className: i }) => {
|
|
|
2007
2002
|
})
|
|
2008
2003
|
] })
|
|
2009
2004
|
});
|
|
2010
|
-
},
|
|
2005
|
+
}, G = {
|
|
2011
2006
|
window: "_window_l8snl_1",
|
|
2012
2007
|
header: "_header_l8snl_14",
|
|
2013
2008
|
dot: "_dot_l8snl_25"
|
|
2014
|
-
},
|
|
2015
|
-
className: [
|
|
2009
|
+
}, Sn = ({ minHeight: e = "6rem", ...t }) => /* @__PURE__ */ m("div", {
|
|
2010
|
+
className: [G.window, t.className].filter(Boolean).join(" "),
|
|
2016
2011
|
style: t.style,
|
|
2017
2012
|
children: [/* @__PURE__ */ m("div", {
|
|
2018
|
-
className:
|
|
2013
|
+
className: G.header,
|
|
2019
2014
|
children: [
|
|
2020
2015
|
/* @__PURE__ */ p("div", {
|
|
2021
2016
|
"aria-hidden": !0,
|
|
2022
|
-
className:
|
|
2017
|
+
className: G.dot,
|
|
2023
2018
|
style: { "--bg": "#c48691" }
|
|
2024
2019
|
}),
|
|
2025
2020
|
/* @__PURE__ */ p("div", {
|
|
2026
2021
|
"aria-hidden": !0,
|
|
2027
|
-
className:
|
|
2022
|
+
className: G.dot,
|
|
2028
2023
|
style: { "--bg": "#c9b990" }
|
|
2029
2024
|
}),
|
|
2030
2025
|
/* @__PURE__ */ p("div", {
|
|
2031
2026
|
"aria-hidden": !0,
|
|
2032
|
-
className:
|
|
2027
|
+
className: G.dot,
|
|
2033
2028
|
style: { "--bg": "#7cc598" }
|
|
2034
2029
|
})
|
|
2035
2030
|
]
|
|
@@ -2037,7 +2032,7 @@ var qt = ({ name: e, src: t, filesize: n, style: r, className: i }) => {
|
|
|
2037
2032
|
style: { minHeight: e },
|
|
2038
2033
|
children: t.children
|
|
2039
2034
|
})]
|
|
2040
|
-
}),
|
|
2035
|
+
}), Cn = { parallax: "_parallax_1tovg_1" }, wn = ({ className: e, ...t }) => {
|
|
2041
2036
|
let [n, r] = d(0);
|
|
2042
2037
|
return s(() => {
|
|
2043
2038
|
let e = null, t = () => {
|
|
@@ -2049,7 +2044,7 @@ var qt = ({ name: e, src: t, filesize: n, style: r, className: i }) => {
|
|
|
2049
2044
|
window.removeEventListener("scroll", t), e != null && cancelAnimationFrame(e);
|
|
2050
2045
|
};
|
|
2051
2046
|
}, []), /* @__PURE__ */ m(f, { children: [/* @__PURE__ */ p("div", {
|
|
2052
|
-
className: [
|
|
2047
|
+
className: [Cn.parallax, e].filter(Boolean).join(" "),
|
|
2053
2048
|
style: {
|
|
2054
2049
|
backgroundImage: `url(${t.imageUrl1})`,
|
|
2055
2050
|
transform: `scale(1.2) translateY(${n / 400}%)`,
|
|
@@ -2057,22 +2052,22 @@ var qt = ({ name: e, src: t, filesize: n, style: r, className: i }) => {
|
|
|
2057
2052
|
...t.style
|
|
2058
2053
|
}
|
|
2059
2054
|
}), /* @__PURE__ */ p("div", {
|
|
2060
|
-
className:
|
|
2055
|
+
className: Cn.parallax,
|
|
2061
2056
|
style: {
|
|
2062
2057
|
backgroundImage: `url(${t.imageUrl2})`,
|
|
2063
2058
|
transform: `scale(1.2) translateY(${n / 900}%)`,
|
|
2064
2059
|
transformOrigin: "bottom"
|
|
2065
2060
|
}
|
|
2066
2061
|
})] });
|
|
2067
|
-
},
|
|
2062
|
+
}, Tn = {
|
|
2068
2063
|
container: "_container_1mzm0_1",
|
|
2069
2064
|
title: "_title_1mzm0_16",
|
|
2070
2065
|
text: "_text_1mzm0_22"
|
|
2071
|
-
},
|
|
2066
|
+
}, En = {
|
|
2072
2067
|
original: "_original_3zasf_1",
|
|
2073
2068
|
tooltip: "_tooltip_3zasf_5",
|
|
2074
2069
|
"tooltip-enter": "_tooltip-enter_3zasf_17"
|
|
2075
|
-
},
|
|
2070
|
+
}, Dn = (e) => {
|
|
2076
2071
|
let t = u(null), [n, r] = d(!1), [i, o] = d({}), c = a(() => {
|
|
2077
2072
|
let e = t.current;
|
|
2078
2073
|
if (!e) return;
|
|
@@ -2089,40 +2084,40 @@ var qt = ({ name: e, src: t, filesize: n, style: r, className: i }) => {
|
|
|
2089
2084
|
n && c();
|
|
2090
2085
|
}, [n, c]), /* @__PURE__ */ m("span", {
|
|
2091
2086
|
ref: t,
|
|
2092
|
-
className: [
|
|
2087
|
+
className: [En.original, e.className].filter(Boolean).join(" "),
|
|
2093
2088
|
onMouseOver: () => r(!0),
|
|
2094
2089
|
onMouseLeave: () => r(!1),
|
|
2095
2090
|
style: e.style,
|
|
2096
2091
|
children: [e.original, n && /* @__PURE__ */ p("div", {
|
|
2097
|
-
className: `${
|
|
2092
|
+
className: `${En.tooltip} ${En["tooltip-enter"]}`,
|
|
2098
2093
|
style: i,
|
|
2099
2094
|
children: e.tooltip
|
|
2100
2095
|
})]
|
|
2101
2096
|
});
|
|
2102
|
-
},
|
|
2097
|
+
}, On = (e) => /* @__PURE__ */ p(Dn, {
|
|
2103
2098
|
original: e.children,
|
|
2104
2099
|
tooltip: /* @__PURE__ */ m("div", {
|
|
2105
|
-
className: [
|
|
2100
|
+
className: [Tn.container, e.className].filter(Boolean).join(" "),
|
|
2106
2101
|
style: e.style,
|
|
2107
2102
|
children: [e.title && /* @__PURE__ */ p("div", {
|
|
2108
|
-
className:
|
|
2103
|
+
className: Tn.title,
|
|
2109
2104
|
children: e.title
|
|
2110
2105
|
}), /* @__PURE__ */ p("div", {
|
|
2111
|
-
className:
|
|
2106
|
+
className: Tn.text,
|
|
2112
2107
|
children: e.text
|
|
2113
2108
|
})]
|
|
2114
2109
|
})
|
|
2115
|
-
}),
|
|
2110
|
+
}), kn = {
|
|
2116
2111
|
snackbar: "_snackbar_1f0go_1",
|
|
2117
2112
|
icon: "_icon_1f0go_19",
|
|
2118
2113
|
progress: "_progress_1f0go_45"
|
|
2119
|
-
},
|
|
2120
|
-
className: [
|
|
2114
|
+
}, An = ({ timeout: e = 5e3, ...t }) => /* @__PURE__ */ m("div", {
|
|
2115
|
+
className: [kn.snackbar, t.className].filter(Boolean).join(" "),
|
|
2121
2116
|
style: t.style,
|
|
2122
2117
|
children: [
|
|
2123
2118
|
t.label == null ? t.children : /* @__PURE__ */ p(D, { children: t.label }),
|
|
2124
2119
|
/* @__PURE__ */ p("div", {
|
|
2125
|
-
className:
|
|
2120
|
+
className: kn.icon,
|
|
2126
2121
|
onClick: t.close,
|
|
2127
2122
|
children: /* @__PURE__ */ p(w, {
|
|
2128
2123
|
d: ge,
|
|
@@ -2130,22 +2125,22 @@ var qt = ({ name: e, src: t, filesize: n, style: r, className: i }) => {
|
|
|
2130
2125
|
})
|
|
2131
2126
|
}),
|
|
2132
2127
|
/* @__PURE__ */ p("div", {
|
|
2133
|
-
className:
|
|
2128
|
+
className: kn.progress,
|
|
2134
2129
|
style: { animationDuration: `${e}ms` }
|
|
2135
2130
|
})
|
|
2136
2131
|
]
|
|
2137
|
-
}),
|
|
2132
|
+
}), jn = {
|
|
2138
2133
|
"snackbar-screen": "_snackbar-screen_up7j2_1",
|
|
2139
2134
|
"snackbar-container": "_snackbar-container_up7j2_14",
|
|
2140
2135
|
"snackbar-item": "_snackbar-item_up7j2_23"
|
|
2141
|
-
},
|
|
2142
|
-
className: [
|
|
2136
|
+
}, Mn = (e) => /* @__PURE__ */ p("div", {
|
|
2137
|
+
className: [jn["snackbar-screen"], e.className].filter(Boolean).join(" "),
|
|
2143
2138
|
style: e.style,
|
|
2144
2139
|
children: /* @__PURE__ */ p("div", {
|
|
2145
|
-
className:
|
|
2140
|
+
className: jn["snackbar-container"],
|
|
2146
2141
|
children: e.snackbars.map((e) => /* @__PURE__ */ p("div", {
|
|
2147
|
-
className:
|
|
2148
|
-
children: /* @__PURE__ */ p(
|
|
2142
|
+
className: jn["snackbar-item"],
|
|
2143
|
+
children: /* @__PURE__ */ p(An, {
|
|
2149
2144
|
label: e.label,
|
|
2150
2145
|
timeout: e.timeout,
|
|
2151
2146
|
close: e.close,
|
|
@@ -2153,34 +2148,34 @@ var qt = ({ name: e, src: t, filesize: n, style: r, className: i }) => {
|
|
|
2153
2148
|
})
|
|
2154
2149
|
}, e.id))
|
|
2155
2150
|
})
|
|
2156
|
-
}),
|
|
2151
|
+
}), K = {
|
|
2157
2152
|
"elm-tabs": "_elm-tabs_ykoqx_1",
|
|
2158
2153
|
"tab-container": "_tab-container_ykoqx_18",
|
|
2159
2154
|
tab: "_tab_ykoqx_18",
|
|
2160
2155
|
active: "_active_ykoqx_40",
|
|
2161
2156
|
"tab-content-container": "_tab-content-container_ykoqx_51",
|
|
2162
2157
|
"tab-content": "_tab-content_ykoqx_51"
|
|
2163
|
-
},
|
|
2158
|
+
}, Nn = (e) => {
|
|
2164
2159
|
let [t, n] = d(0);
|
|
2165
2160
|
return /* @__PURE__ */ m("div", {
|
|
2166
|
-
className: [
|
|
2161
|
+
className: [K["elm-tabs"], e.className].filter(Boolean).join(" "),
|
|
2167
2162
|
style: e.style,
|
|
2168
2163
|
children: [/* @__PURE__ */ p("div", {
|
|
2169
|
-
className:
|
|
2164
|
+
className: K["tab-container"],
|
|
2170
2165
|
children: e.tabLabels.map((e, r) => /* @__PURE__ */ p("div", {
|
|
2171
|
-
className: `${
|
|
2166
|
+
className: `${K.tab} ${t === r ? K.active : ""}`,
|
|
2172
2167
|
onClick: () => n(r),
|
|
2173
2168
|
children: e
|
|
2174
2169
|
}, r))
|
|
2175
2170
|
}), /* @__PURE__ */ p("div", {
|
|
2176
|
-
className:
|
|
2171
|
+
className: K["tab-content-container"],
|
|
2177
2172
|
children: e.tabContents.map((e, n) => /* @__PURE__ */ p("div", {
|
|
2178
|
-
className: `${
|
|
2173
|
+
className: `${K["tab-content"]} ${t === n ? K.active : ""}`,
|
|
2179
2174
|
children: e
|
|
2180
2175
|
}, n))
|
|
2181
2176
|
})]
|
|
2182
2177
|
});
|
|
2183
|
-
},
|
|
2178
|
+
}, q = {
|
|
2184
2179
|
toggle: "_toggle_16f85_1",
|
|
2185
2180
|
open: "_open_16f85_14",
|
|
2186
2181
|
summary: "_summary_16f85_19",
|
|
@@ -2191,7 +2186,7 @@ var qt = ({ name: e, src: t, filesize: n, style: r, className: i }) => {
|
|
|
2191
2186
|
border: "_border_16f85_84",
|
|
2192
2187
|
content: "_content_16f85_92",
|
|
2193
2188
|
close: "_close_16f85_96"
|
|
2194
|
-
},
|
|
2189
|
+
}, Pn = (e) => {
|
|
2195
2190
|
let [t, n] = Je({
|
|
2196
2191
|
prop: e.isOpen,
|
|
2197
2192
|
defaultProp: !1,
|
|
@@ -2200,55 +2195,55 @@ var qt = ({ name: e, src: t, filesize: n, style: r, className: i }) => {
|
|
|
2200
2195
|
e.preventDefault(), n(!t);
|
|
2201
2196
|
};
|
|
2202
2197
|
return /* @__PURE__ */ m("div", {
|
|
2203
|
-
className: S(
|
|
2198
|
+
className: S(q.toggle, e.className, { [q.open]: t }),
|
|
2204
2199
|
style: { ...e.style },
|
|
2205
2200
|
children: [
|
|
2206
2201
|
/* @__PURE__ */ m("div", {
|
|
2207
|
-
className:
|
|
2202
|
+
className: q.summary,
|
|
2208
2203
|
onClick: r,
|
|
2209
2204
|
children: [
|
|
2210
2205
|
/* @__PURE__ */ m("div", {
|
|
2211
|
-
className:
|
|
2206
|
+
className: q["summary-left"],
|
|
2212
2207
|
children: [/* @__PURE__ */ p(w, {
|
|
2213
|
-
className: S(
|
|
2208
|
+
className: S(q.chevron, { [q.open]: t }),
|
|
2214
2209
|
d: pe,
|
|
2215
2210
|
color: "#59b57c",
|
|
2216
2211
|
size: "1rem"
|
|
2217
2212
|
}), /* @__PURE__ */ p("div", { children: e.summary == null ? e.summaryContent : /* @__PURE__ */ p(D, { children: e.summary }) })]
|
|
2218
2213
|
}),
|
|
2219
|
-
/* @__PURE__ */ p("hr", { className:
|
|
2214
|
+
/* @__PURE__ */ p("hr", { className: q.divider }),
|
|
2220
2215
|
/* @__PURE__ */ p(w, {
|
|
2221
|
-
className: S(
|
|
2216
|
+
className: S(q.cross, { [q.open]: t }),
|
|
2222
2217
|
d: Ve,
|
|
2223
2218
|
size: "1rem",
|
|
2224
2219
|
color: t ? "#b36472" : "#59b57c"
|
|
2225
2220
|
})
|
|
2226
2221
|
]
|
|
2227
2222
|
}),
|
|
2228
|
-
/* @__PURE__ */ p("div", { className:
|
|
2223
|
+
/* @__PURE__ */ p("div", { className: q.border }),
|
|
2229
2224
|
/* @__PURE__ */ p("div", {
|
|
2230
|
-
className: S(
|
|
2225
|
+
className: S(q.content, { [q.close]: !t }),
|
|
2231
2226
|
children: e.children
|
|
2232
2227
|
})
|
|
2233
2228
|
]
|
|
2234
2229
|
});
|
|
2235
|
-
},
|
|
2230
|
+
}, J = {
|
|
2236
2231
|
table: "_table_197ge_1",
|
|
2237
2232
|
caption: "_caption_197ge_8",
|
|
2238
2233
|
"caption-inner": "_caption-inner_197ge_18",
|
|
2239
2234
|
spacing: "_spacing_197ge_25"
|
|
2240
|
-
},
|
|
2235
|
+
}, 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
2236
|
value: t,
|
|
2242
2237
|
children: /* @__PURE__ */ m("table", {
|
|
2243
|
-
className: [
|
|
2238
|
+
className: [J.table, a].filter(Boolean).join(" "),
|
|
2244
2239
|
style: i,
|
|
2245
2240
|
children: [
|
|
2246
2241
|
e != null && /* @__PURE__ */ p("caption", { children: /* @__PURE__ */ m("span", {
|
|
2247
|
-
className:
|
|
2242
|
+
className: J.caption,
|
|
2248
2243
|
children: [
|
|
2249
|
-
/* @__PURE__ */ p("span", { className:
|
|
2244
|
+
/* @__PURE__ */ p("span", { className: J.spacing }),
|
|
2250
2245
|
/* @__PURE__ */ m("span", {
|
|
2251
|
-
className:
|
|
2246
|
+
className: J["caption-inner"],
|
|
2252
2247
|
children: [/* @__PURE__ */ p("svg", {
|
|
2253
2248
|
viewBox: "0 0 24 24",
|
|
2254
2249
|
width: "1rem",
|
|
@@ -2259,51 +2254,51 @@ var qt = ({ name: e, src: t, filesize: n, style: r, className: i }) => {
|
|
|
2259
2254
|
})
|
|
2260
2255
|
}), /* @__PURE__ */ p(D, { children: e })]
|
|
2261
2256
|
}),
|
|
2262
|
-
/* @__PURE__ */ p("span", { className:
|
|
2257
|
+
/* @__PURE__ */ p("span", { className: J.spacing })
|
|
2263
2258
|
]
|
|
2264
2259
|
}) }),
|
|
2265
2260
|
n,
|
|
2266
2261
|
r
|
|
2267
2262
|
]
|
|
2268
2263
|
})
|
|
2269
|
-
}),
|
|
2264
|
+
}), Rn = ({ children: e, style: t, className: n }) => /* @__PURE__ */ p(Fn.Provider, {
|
|
2270
2265
|
value: !1,
|
|
2271
2266
|
children: /* @__PURE__ */ p("tbody", {
|
|
2272
2267
|
className: n,
|
|
2273
2268
|
style: t,
|
|
2274
2269
|
children: e
|
|
2275
2270
|
})
|
|
2276
|
-
}),
|
|
2271
|
+
}), zn = {
|
|
2277
2272
|
common: "_common_15vhm_1",
|
|
2278
2273
|
td: "_td_15vhm_26",
|
|
2279
2274
|
th: "_th_15vhm_34"
|
|
2280
|
-
},
|
|
2281
|
-
let a = o(
|
|
2275
|
+
}, Bn = ({ children: e, style: t, hasHeader: n = !1, text: r, className: i }) => {
|
|
2276
|
+
let a = o(Fn), s = n || a;
|
|
2282
2277
|
return /* @__PURE__ */ p(s ? "th" : "td", {
|
|
2283
2278
|
className: [
|
|
2284
|
-
|
|
2285
|
-
s ?
|
|
2279
|
+
zn.common,
|
|
2280
|
+
s ? zn.th : zn.td,
|
|
2286
2281
|
i
|
|
2287
2282
|
].filter(Boolean).join(" "),
|
|
2288
2283
|
style: t,
|
|
2289
2284
|
children: r ?? e
|
|
2290
2285
|
});
|
|
2291
|
-
},
|
|
2286
|
+
}, Vn = { thead: "_thead_184mb_1" }, Hn = ({ children: e, style: t, className: n }) => /* @__PURE__ */ p(Fn.Provider, {
|
|
2292
2287
|
value: !0,
|
|
2293
2288
|
children: /* @__PURE__ */ p("thead", {
|
|
2294
|
-
className: [
|
|
2289
|
+
className: [Vn.thead, n].filter(Boolean).join(" "),
|
|
2295
2290
|
style: t,
|
|
2296
2291
|
children: e
|
|
2297
2292
|
})
|
|
2298
|
-
}),
|
|
2293
|
+
}), Un = {
|
|
2299
2294
|
tr: "_tr_1l64j_1",
|
|
2300
2295
|
"has-row-header": "_has-row-header_1l64j_25"
|
|
2301
|
-
},
|
|
2302
|
-
let r = o(
|
|
2296
|
+
}, Wn = ({ children: e, style: t, className: n }) => {
|
|
2297
|
+
let r = o(In);
|
|
2303
2298
|
return /* @__PURE__ */ p("tr", {
|
|
2304
2299
|
className: [
|
|
2305
|
-
|
|
2306
|
-
r ?
|
|
2300
|
+
Un.tr,
|
|
2301
|
+
r ? Un["has-row-header"] : void 0,
|
|
2307
2302
|
n
|
|
2308
2303
|
].filter(Boolean).join(" "),
|
|
2309
2304
|
style: t,
|
|
@@ -2465,7 +2460,7 @@ var Jn = ({ code: e, language: t = "txt", onRendered: n, style: r, className: i
|
|
|
2465
2460
|
"--color": e,
|
|
2466
2461
|
...t
|
|
2467
2462
|
},
|
|
2468
|
-
children: /* @__PURE__ */ p(
|
|
2463
|
+
children: /* @__PURE__ */ p(Dn, {
|
|
2469
2464
|
original: /* @__PURE__ */ m(f, { children: [/* @__PURE__ */ p("div", {
|
|
2470
2465
|
className: X["color-bg"],
|
|
2471
2466
|
style: { "--background-color": e },
|
|
@@ -2749,7 +2744,7 @@ var ir = ({ commands: e, onCommandInvoked: t, style: n, className: r }) => {
|
|
|
2749
2744
|
},
|
|
2750
2745
|
Toggle: (e, t, n, r) => {
|
|
2751
2746
|
let i = e.id ?? n;
|
|
2752
|
-
return /* @__PURE__ */ p(
|
|
2747
|
+
return /* @__PURE__ */ p(Pn, {
|
|
2753
2748
|
summaryContent: t(e.slots.summary),
|
|
2754
2749
|
style: n === 0 ? { "--elmethis-margin-block-start": "0" } : void 0,
|
|
2755
2750
|
children: t(e.slots.default)
|
|
@@ -2815,28 +2810,28 @@ var ir = ({ commands: e, onCommandInvoked: t, style: n, className: r }) => {
|
|
|
2815
2810
|
Tabs: (e, t, n, r) => {
|
|
2816
2811
|
let i = e.id ?? n, a = [], o = [];
|
|
2817
2812
|
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(
|
|
2813
|
+
return /* @__PURE__ */ p(Nn, {
|
|
2819
2814
|
tabLabels: a,
|
|
2820
2815
|
tabContents: o
|
|
2821
2816
|
}, i);
|
|
2822
2817
|
},
|
|
2823
2818
|
Table: (e, t, n, r) => {
|
|
2824
2819
|
let i = e.id ?? n;
|
|
2825
|
-
return /* @__PURE__ */ p(
|
|
2820
|
+
return /* @__PURE__ */ p(Ln, {
|
|
2826
2821
|
caption: e.props?.caption,
|
|
2827
2822
|
hasRowHeader: e.props?.hasRowHeader,
|
|
2828
|
-
header: e.slots.header ? /* @__PURE__ */ p(
|
|
2829
|
-
body: /* @__PURE__ */ p(
|
|
2823
|
+
header: e.slots.header ? /* @__PURE__ */ p(Hn, { children: t(e.slots.header) }) : void 0,
|
|
2824
|
+
body: /* @__PURE__ */ p(Rn, { children: t(e.slots.body) }),
|
|
2830
2825
|
style: n === 0 ? { "--elmethis-margin-block-start": "0" } : void 0
|
|
2831
2826
|
}, i);
|
|
2832
2827
|
},
|
|
2833
2828
|
TableRow: (e, t, n, r) => {
|
|
2834
2829
|
let i = e.id ?? n;
|
|
2835
|
-
return /* @__PURE__ */ p(
|
|
2830
|
+
return /* @__PURE__ */ p(Wn, { children: t(e.slots.default) }, i);
|
|
2836
2831
|
},
|
|
2837
2832
|
TableCell: (e, t, n, r) => {
|
|
2838
2833
|
let i = e.id ?? n;
|
|
2839
|
-
return /* @__PURE__ */ p(
|
|
2834
|
+
return /* @__PURE__ */ p(Bn, { children: t(e.slots.default) }, i);
|
|
2840
2835
|
},
|
|
2841
2836
|
ColumnList: (e, t, n, r) => {
|
|
2842
2837
|
let i = e.id ?? n;
|
|
@@ -2974,10 +2969,10 @@ var ir = ({ commands: e, onCommandInvoked: t, style: n, className: r }) => {
|
|
|
2974
2969
|
children: e.text
|
|
2975
2970
|
}, n),
|
|
2976
2971
|
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(
|
|
2972
|
+
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));
|
|
2973
|
+
return /* @__PURE__ */ p(Ln, {
|
|
2974
|
+
header: /* @__PURE__ */ p(Hn, { children: i }),
|
|
2975
|
+
body: /* @__PURE__ */ p(Rn, { children: a }),
|
|
2981
2976
|
style: Q(n)
|
|
2982
2977
|
}, n);
|
|
2983
2978
|
},
|
|
@@ -3082,4 +3077,4 @@ var ir = ({ commands: e, onCommandInvoked: t, style: n, className: r }) => {
|
|
|
3082
3077
|
})
|
|
3083
3078
|
});
|
|
3084
3079
|
//#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,
|
|
3080
|
+
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 };
|