nectiasw 0.0.224 → 0.0.225
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/dist/index.es.js +33 -33
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +1 -1
- package/dist/index.umd.js.map +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -58123,79 +58123,79 @@ const Cl = {
|
|
|
58123
58123
|
height: 37px;
|
|
58124
58124
|
left: 15px;
|
|
58125
58125
|
top: 25px;
|
|
58126
|
-
`, t1e = ({ events: e }) => {
|
|
58127
|
-
const
|
|
58126
|
+
`, t1e = ({ events: e, title: n }) => {
|
|
58127
|
+
const t = pt(null), [r, i] = dr("0px"), [o, a] = dr(null);
|
|
58128
58128
|
nu(() => {
|
|
58129
58129
|
setTimeout(() => {
|
|
58130
|
-
if (
|
|
58131
|
-
const
|
|
58132
|
-
|
|
58130
|
+
if (t.current) {
|
|
58131
|
+
const c = `${t.current.offsetHeight}px`;
|
|
58132
|
+
i(c);
|
|
58133
58133
|
}
|
|
58134
58134
|
}, 0);
|
|
58135
|
-
}, [
|
|
58136
|
-
const
|
|
58137
|
-
|
|
58135
|
+
}, [o]), Ut(() => {
|
|
58136
|
+
const c = e == null ? void 0 : e.find((d) => d.isOpen);
|
|
58137
|
+
a(c ? c.category : null);
|
|
58138
58138
|
}, [e]);
|
|
58139
|
-
const
|
|
58140
|
-
() => e == null ? void 0 : e.filter((
|
|
58139
|
+
const s = W.useMemo(
|
|
58140
|
+
() => e == null ? void 0 : e.filter((c) => c.data && c.data.length > 0),
|
|
58141
58141
|
[e]
|
|
58142
|
-
),
|
|
58143
|
-
(
|
|
58144
|
-
const
|
|
58145
|
-
|
|
58142
|
+
), l = W.useCallback(
|
|
58143
|
+
(c) => {
|
|
58144
|
+
const d = c.category === o;
|
|
58145
|
+
a(d ? null : c.category);
|
|
58146
58146
|
},
|
|
58147
|
-
[
|
|
58147
|
+
[o]
|
|
58148
58148
|
);
|
|
58149
58149
|
return e ? /* @__PURE__ */ me("div", { className: Wi.timeline.container, children: [
|
|
58150
|
-
/* @__PURE__ */ N("div", { className: Wi.timeline.title, children:
|
|
58151
|
-
|
|
58152
|
-
const
|
|
58150
|
+
/* @__PURE__ */ N("div", { className: Wi.timeline.title, children: n }),
|
|
58151
|
+
s == null ? void 0 : s.map((c, d) => {
|
|
58152
|
+
const h = c.category === o;
|
|
58153
58153
|
return /* @__PURE__ */ me("div", { children: [
|
|
58154
58154
|
/* @__PURE__ */ N("div", { className: Wi.timeline.grid, children: /* @__PURE__ */ me(
|
|
58155
58155
|
"button",
|
|
58156
58156
|
{
|
|
58157
58157
|
className: Wi.timeline.button.container,
|
|
58158
|
-
onClick: () =>
|
|
58158
|
+
onClick: () => l(c),
|
|
58159
58159
|
children: [
|
|
58160
58160
|
/* @__PURE__ */ me("div", { className: Wi.timeline.button.stack, children: [
|
|
58161
58161
|
/* @__PURE__ */ N("div", { className: Wi.timeline.button.style }),
|
|
58162
|
-
|
|
58163
|
-
/* @__PURE__ */ N("span", { className: Wi.timeline.button.category, children:
|
|
58162
|
+
s.length > 1 && d < s.length - 1 && /* @__PURE__ */ N(e1e, {}),
|
|
58163
|
+
/* @__PURE__ */ N("span", { className: Wi.timeline.button.category, children: c.category })
|
|
58164
58164
|
] }),
|
|
58165
58165
|
/* @__PURE__ */ N(
|
|
58166
58166
|
o0,
|
|
58167
58167
|
{
|
|
58168
|
-
className: Wi.chevronIcon(
|
|
58168
|
+
className: Wi.chevronIcon(h)
|
|
58169
58169
|
}
|
|
58170
58170
|
)
|
|
58171
58171
|
]
|
|
58172
58172
|
}
|
|
58173
58173
|
) }),
|
|
58174
|
-
|
|
58174
|
+
h && /* @__PURE__ */ N("div", { className: Wi.timeline.grid, children: /* @__PURE__ */ N(
|
|
58175
58175
|
Jhe,
|
|
58176
58176
|
{
|
|
58177
|
-
isOpen:
|
|
58178
|
-
lineHeight:
|
|
58179
|
-
ref:
|
|
58177
|
+
isOpen: h,
|
|
58178
|
+
lineHeight: r,
|
|
58179
|
+
ref: t,
|
|
58180
58180
|
children: /* @__PURE__ */ me("ol", { children: [
|
|
58181
|
-
/* @__PURE__ */ N(Khe, { lineHeight:
|
|
58182
|
-
|
|
58181
|
+
/* @__PURE__ */ N(Khe, { lineHeight: r }),
|
|
58182
|
+
c.data.map((m, g) => /* @__PURE__ */ me(
|
|
58183
58183
|
"li",
|
|
58184
58184
|
{
|
|
58185
58185
|
className: Wi.timeline.list.item,
|
|
58186
58186
|
children: [
|
|
58187
58187
|
/* @__PURE__ */ N("span", { className: Wi.timeline.list.styles }),
|
|
58188
|
-
/* @__PURE__ */ N("h3", { className: Wi.timeline.list.name, children:
|
|
58189
|
-
/* @__PURE__ */ N("h3", { className: Wi.timeline.list.date, children:
|
|
58190
|
-
/* @__PURE__ */ N("p", { className: Wi.timeline.list.author, children:
|
|
58188
|
+
/* @__PURE__ */ N("h3", { className: Wi.timeline.list.name, children: m == null ? void 0 : m.name }),
|
|
58189
|
+
/* @__PURE__ */ N("h3", { className: Wi.timeline.list.date, children: m == null ? void 0 : m.date }),
|
|
58190
|
+
/* @__PURE__ */ N("p", { className: Wi.timeline.list.author, children: m == null ? void 0 : m.author })
|
|
58191
58191
|
]
|
|
58192
58192
|
},
|
|
58193
|
-
|
|
58193
|
+
g
|
|
58194
58194
|
))
|
|
58195
58195
|
] })
|
|
58196
58196
|
}
|
|
58197
58197
|
) })
|
|
58198
|
-
] },
|
|
58198
|
+
] }, d);
|
|
58199
58199
|
})
|
|
58200
58200
|
] }) : null;
|
|
58201
58201
|
};
|