@cagatayfdn/flora-components 0.0.166 → 0.0.168

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.
@@ -1,117 +1,117 @@
1
1
  import { j as a } from "../../jsx-runtime-BcAkpsdy.js";
2
- import y, { useState as P, useEffect as Q } from "react";
3
- import { Z as be } from "../../index-Bkqwn3Ht.js";
4
- import Y from "../NoResult/NoResult.js";
5
- import { c as b } from "../../index-BHf7G3IG.js";
6
- import { s as o } from "../../Table.module-rFa4-NE2.js";
7
- import { ThemeAppearance as I, AppearanceSpinner as ee } from "../../enums/appearance.js";
8
- import te from "../Checkbox/Checkbox.js";
9
- import je from "../Loading/Loading.js";
10
- import ge from "../ScrollContainer/ScrollContainer.js";
11
- import ae from "./TableHeader.js";
12
- import me from "./TableSort.js";
13
- import we from "../Icon/index.js";
14
- import { FloraIcons as Ce } from "../../assets/icons/flora-icons.js";
15
- import { i } from "../../includes-8YTFrx85.js";
16
- import { _ as se, k as Ne } from "../../keys-B0bo5Q7o.js";
17
- import { _ as re, a as ke, b as ye } from "../../_reduce-DsUCMz4O.js";
18
- import { _ as Ee } from "../../Select-nhp2PiJK.js";
19
- function Re(l, n) {
20
- for (var d = 0, c = n.length, f = []; d < c; )
21
- l(n[d]) && (f[f.length] = n[d]), d += 1;
2
+ import J, { useState as P, useMemo as Q, useRef as we, useEffect as Y } from "react";
3
+ import { Z as Ce } from "../../index-Bkqwn3Ht.js";
4
+ import ee from "../NoResult/NoResult.js";
5
+ import { c as j } from "../../index-BHf7G3IG.js";
6
+ import { s as i } from "../../Table.module-rFa4-NE2.js";
7
+ import { ThemeAppearance as te, AppearanceSpinner as re } from "../../enums/appearance.js";
8
+ import ae from "../Checkbox/Checkbox.js";
9
+ import Ne from "../Loading/Loading.js";
10
+ import ke from "../ScrollContainer/ScrollContainer.js";
11
+ import se from "./TableHeader.js";
12
+ import Ee from "./TableSort.js";
13
+ import ye from "../Icon/index.js";
14
+ import { FloraIcons as Re } from "../../assets/icons/flora-icons.js";
15
+ import { i as c } from "../../includes-8YTFrx85.js";
16
+ import { _ as le, k as Se } from "../../keys-B0bo5Q7o.js";
17
+ import { _ as ne, a as ve, b as _e } from "../../_reduce-DsUCMz4O.js";
18
+ import { _ as He } from "../../Select-nhp2PiJK.js";
19
+ function Te(o, n) {
20
+ for (var l = 0, p = n.length, f = []; l < p; )
21
+ o(n[l]) && (f[f.length] = n[l]), l += 1;
22
22
  return f;
23
23
  }
24
- var Se = /* @__PURE__ */ function() {
25
- function l(n, d) {
26
- this.xf = d, this.f = n;
24
+ var Le = /* @__PURE__ */ function() {
25
+ function o(n, l) {
26
+ this.xf = l, this.f = n;
27
27
  }
28
- return l.prototype["@@transducer/init"] = re.init, l.prototype["@@transducer/result"] = re.result, l.prototype["@@transducer/step"] = function(n, d) {
29
- return this.f(d) ? this.xf["@@transducer/step"](n, d) : n;
30
- }, l;
31
- }(), _e = /* @__PURE__ */ se(function(n, d) {
32
- return new Se(n, d);
28
+ return o.prototype["@@transducer/init"] = ne.init, o.prototype["@@transducer/result"] = ne.result, o.prototype["@@transducer/step"] = function(n, l) {
29
+ return this.f(l) ? this.xf["@@transducer/step"](n, l) : n;
30
+ }, o;
31
+ }(), $e = /* @__PURE__ */ le(function(n, l) {
32
+ return new Le(n, l);
33
33
  });
34
- const ve = _e;
35
- var v = /* @__PURE__ */ se(
36
- /* @__PURE__ */ ke(["filter"], ve, function(l, n) {
37
- return Ee(n) ? ye(function(d, c) {
38
- return l(n[c]) && (d[c] = n[c]), d;
39
- }, {}, Ne(n)) : (
34
+ const Fe = $e;
35
+ var L = /* @__PURE__ */ le(
36
+ /* @__PURE__ */ ve(["filter"], Fe, function(o, n) {
37
+ return He(n) ? _e(function(l, p) {
38
+ return o(n[p]) && (l[p] = n[p]), l;
39
+ }, {}, Se(n)) : (
40
40
  // else
41
- Re(l, n)
41
+ Te(o, n)
42
42
  );
43
43
  })
44
44
  );
45
- const Je = (l) => {
45
+ const Ye = (o) => {
46
46
  const {
47
47
  columns: n = [],
48
- dataSource: d = [],
49
- totalCount: c,
48
+ dataSource: l = [],
49
+ totalCount: p,
50
50
  currentPage: f,
51
- className: H,
52
- wrapperClass: ne,
51
+ className: R,
52
+ wrapperClass: oe,
53
53
  title: de,
54
- rowSelection: E = !1,
55
- actionOnChange: T,
56
- rowSelectionChange: p,
57
- pagerVisible: L,
58
- pagerOnChange: $,
59
- columnRenderer: m,
60
- rowRenderer: F,
61
- pageSizeOnChange: A,
62
- pageSize: V,
63
- headerVisible: le = !0,
64
- headerLeftItem: oe,
65
- customFooterItem: ie,
66
- isLoading: ce = !1,
67
- footerAction: pe = !0,
68
- pageSizeVisible: he = !0,
69
- appearance: w = I.LIGHT,
70
- fixedHeader: z,
71
- showItemsText: B,
72
- customHeader: O,
73
- selectedItems: D = [],
74
- scrollClass: G,
75
- disabledItems: j = [],
54
+ rowSelection: S = !1,
55
+ actionOnChange: $,
56
+ rowSelectionChange: h,
57
+ pagerVisible: F,
58
+ pagerOnChange: A,
59
+ columnRenderer: k,
60
+ rowRenderer: V,
61
+ pageSizeOnChange: z,
62
+ pageSize: B,
63
+ headerVisible: ie = !0,
64
+ headerLeftItem: ce,
65
+ customFooterItem: pe,
66
+ isLoading: he = !1,
67
+ footerAction: fe = !0,
68
+ pageSizeVisible: ue = !0,
69
+ appearance: E = te.LIGHT,
70
+ fixedHeader: v,
71
+ showItemsText: O,
72
+ customHeader: D,
73
+ selectedItems: G = [],
74
+ scrollClass: K,
75
+ disabledItems: m = [],
76
76
  expandable: s,
77
- virtualized: R
78
- } = l, S = typeof R == "object" ? R : {}, [x, C] = P(D), [N, g] = P([]), fe = (e) => {
79
- p && (e.target.checked ? (C(
80
- d.filter((t) => !i(t, j))
81
- ), p(
82
- d.filter((t) => !i(t, j))
83
- )) : (C([]), p([])));
84
- }, xe = (e, t) => {
85
- p && (e.target.checked ? (C([...x, t]), p([...x, t])) : (C(
86
- v((r) => r.pk !== t.pk, x)
87
- ), p(
88
- v((r) => r.pk !== t.pk, x)
77
+ virtualized: _
78
+ } = o, u = typeof _ == "object" ? _ : {}, [x, y] = P(G), [w, C] = P([]), xe = (e) => {
79
+ h && (e.target.checked ? (y(
80
+ l.filter((t) => !c(t, m))
81
+ ), h(
82
+ l.filter((t) => !c(t, m))
83
+ )) : (y([]), h([])));
84
+ }, be = (e, t) => {
85
+ h && (e.target.checked ? (y([...x, t]), h([...x, t])) : (y(
86
+ L((r) => r.pk !== t.pk, x)
87
+ ), h(
88
+ L((r) => r.pk !== t.pk, x)
89
89
  )));
90
- }, W = (e, t) => {
91
- var h;
92
- const r = i(e, N);
93
- (s == null ? void 0 : s.expandStrategy) === "single" ? g(r ? [] : [e]) : g(r ? (u) => v((_) => _ !== e, u) : (u) => [...u, e]), (h = s == null ? void 0 : s.onExpand) == null || h.call(s, !r, t);
94
- }, U = (e, t) => e == null ? void 0 : e.map((r, h) => /* @__PURE__ */ a.jsx(
90
+ }, H = (e, t) => {
91
+ var d;
92
+ const r = c(e, w);
93
+ (s == null ? void 0 : s.expandStrategy) === "single" ? C(r ? [] : [e]) : C(r ? (b) => L((T) => T !== e, b) : (b) => [...b, e]), (d = s == null ? void 0 : s.onExpand) == null || d.call(s, !r, t);
94
+ }, U = (e, t) => e == null ? void 0 : e.map((r, d) => /* @__PURE__ */ a.jsx(
95
95
  "td",
96
96
  {
97
97
  width: r.width,
98
- onClick: (u) => {
99
- r != null && r.onClick && (r == null || r.onClick(u, t, r, h));
98
+ onClick: (b) => {
99
+ r != null && r.onClick && (r == null || r.onClick(b, t, r, d));
100
100
  },
101
- className: b(r.className, r.tdClassName),
101
+ className: j(r.className, r.tdClassName),
102
102
  children: r.render ? r.render(t[r.dataIndex], t) : t[r.dataIndex]
103
103
  },
104
- `col-${h}`
105
- )), k = n.length + (E ? 1 : 0) + (s ? 1 : 0), X = () => s ? /* @__PURE__ */ a.jsx("th", { className: "w-[48px]" }) : null, Z = () => E ? /* @__PURE__ */ a.jsx("th", { className: "w-[26px]", children: /* @__PURE__ */ a.jsx(
106
- te,
104
+ `col-${d}`
105
+ )), N = n.length + (S ? 1 : 0) + (s ? 1 : 0), W = () => s ? /* @__PURE__ */ a.jsx("th", { className: "w-[48px]" }) : null, X = () => S ? /* @__PURE__ */ a.jsx("th", { className: "w-[26px]", children: /* @__PURE__ */ a.jsx(
106
+ ae,
107
107
  {
108
108
  name: "selectAll",
109
- isDisabled: d.length === 0,
110
- checked: d.length > 0 && d.length === x.length,
111
- onChange: fe
109
+ isDisabled: l.length === 0,
110
+ checked: l.length > 0 && l.length === x.length,
111
+ onChange: xe
112
112
  }
113
- ) }) : null, K = () => n == null ? void 0 : n.map((e, t) => {
114
- var r, h;
113
+ ) }) : null, Z = () => n == null ? void 0 : n.map((e, t) => {
114
+ var r, d;
115
115
  return e.sortable ? /* @__PURE__ */ a.jsx(
116
116
  "th",
117
117
  {
@@ -119,12 +119,12 @@ const Je = (l) => {
119
119
  style: { width: e.width },
120
120
  className: e.className,
121
121
  children: /* @__PURE__ */ a.jsx(
122
- me,
122
+ Ee,
123
123
  {
124
124
  title: (r = e.title) == null ? void 0 : r.toString().toLocaleUpperCase(),
125
- onClick: (u, _) => {
126
- var M;
127
- return (M = e == null ? void 0 : e.onSort) == null ? void 0 : M.call(e, u, _);
125
+ onClick: (b, T) => {
126
+ var q;
127
+ return (q = e == null ? void 0 : e.onSort) == null ? void 0 : q.call(e, b, T);
128
128
  }
129
129
  }
130
130
  )
@@ -136,159 +136,166 @@ const Je = (l) => {
136
136
  "data-testid": "table-head-item",
137
137
  style: { width: e.width },
138
138
  className: e.className,
139
- children: typeof e.title == "string" || e.title instanceof String ? (h = e.title) == null ? void 0 : h.toString().toLocaleUpperCase() : e.title
139
+ children: typeof e.title == "string" || e.title instanceof String ? (d = e.title) == null ? void 0 : d.toString().toLocaleUpperCase() : e.title
140
140
  },
141
141
  `table-header-${t}`
142
142
  );
143
- }), q = (e, t) => s ? /* @__PURE__ */ a.jsx("td", { children: /* @__PURE__ */ a.jsx(
143
+ }), I = (e, t) => s ? /* @__PURE__ */ a.jsx("td", { children: /* @__PURE__ */ a.jsx(
144
144
  "span",
145
145
  {
146
146
  className: "inline-block transition-transform duration-200",
147
147
  style: {
148
148
  transform: t ? "rotate(90deg)" : "rotate(0deg)"
149
149
  },
150
- children: s.rowExpandable && s.rowExpandable(e) ? /* @__PURE__ */ a.jsx(we, { name: Ce.ChevronRight }) : null
150
+ children: s.rowExpandable && s.rowExpandable(e) ? /* @__PURE__ */ a.jsx(ye, { name: Re.ChevronRight }) : null
151
151
  }
152
- ) }) : null, J = (e, t) => E ? /* @__PURE__ */ a.jsx("td", { children: /* @__PURE__ */ a.jsx(
153
- te,
152
+ ) }) : null, M = (e, t) => S ? /* @__PURE__ */ a.jsx("td", { children: /* @__PURE__ */ a.jsx(
153
+ ae,
154
154
  {
155
- checked: i(e, x),
155
+ checked: c(e, x),
156
156
  name: `select-${t}`,
157
- onChange: (r) => xe(r, e),
158
- isDisabled: i(e, j)
157
+ onChange: (r) => be(r, e),
158
+ isDisabled: c(e, m)
159
159
  }
160
- ) }) : null, ue = () => {
160
+ ) }) : null, ge = w.join(","), je = Q(() => {
161
161
  const e = [];
162
- return d.forEach((t, r) => {
163
- e.push({ kind: "data", item: t, index: r }), s && i(r, N) && e.push({ kind: "expanded", item: t, index: r });
162
+ return l.forEach((t, r) => {
163
+ e.push({ kind: "data", item: t, index: r }), s && c(r, w) && e.push({ kind: "expanded", item: t, index: r });
164
164
  }), e;
165
- };
166
- return Q(() => {
167
- p && p(D.filter((e) => !i(e, j)));
168
- }, [x, j]), Q(() => {
169
- g([]);
165
+ }, [l, ge, !!s]), g = we({ className: R, fixedHeader: v, expandable: s, colSpan: N, toggleRow: H });
166
+ g.current = { className: R, fixedHeader: v, expandable: s, colSpan: N, toggleRow: H };
167
+ const me = Q(
168
+ () => ({
169
+ Table: (e) => /* @__PURE__ */ a.jsx(
170
+ "table",
171
+ {
172
+ ...e,
173
+ "data-testid": "table-content",
174
+ className: j(i.table, g.current.className, {
175
+ [i.fixed]: g.current.fixedHeader
176
+ })
177
+ }
178
+ ),
179
+ TableRow: ({ item: e, ...t }) => {
180
+ const r = g.current.expandable;
181
+ if (e.kind === "expanded")
182
+ return /* @__PURE__ */ a.jsx("tr", { ...t });
183
+ const d = r && r.rowExpandable ? r.rowExpandable(e.item) : !!r;
184
+ return /* @__PURE__ */ a.jsx(
185
+ "tr",
186
+ {
187
+ ...t,
188
+ "data-testid": "table-row",
189
+ onClick: () => {
190
+ r && r.rowExpandable && r.rowExpandable(e.item) && g.current.toggleRow(e.index, e.item);
191
+ },
192
+ className: j(t.className, {
193
+ "cursor-pointer": d
194
+ })
195
+ }
196
+ );
197
+ },
198
+ EmptyPlaceholder: () => /* @__PURE__ */ a.jsx("tbody", { "data-testid": "table-body", children: /* @__PURE__ */ a.jsx("tr", { children: /* @__PURE__ */ a.jsx("td", { colSpan: g.current.colSpan, children: /* @__PURE__ */ a.jsx(ee, {}) }) }) })
199
+ }),
200
+ []
201
+ );
202
+ return Y(() => {
203
+ h && h(G.filter((e) => !c(e, m)));
204
+ }, [x, m]), Y(() => {
205
+ C([]);
170
206
  }, [f]), /* @__PURE__ */ a.jsxs(
171
207
  "div",
172
208
  {
173
209
  "data-testid": "table-container",
174
- className: b(o.wrapper, ne, {
175
- [o[`${w}`]]: w
210
+ className: j(i.wrapper, oe, {
211
+ [i[`${E}`]]: E
176
212
  }),
177
213
  children: [
178
- le && /* @__PURE__ */ a.jsx(
179
- ae,
214
+ ie && /* @__PURE__ */ a.jsx(
215
+ se,
180
216
  {
181
217
  title: de,
182
- showItemsText: B,
183
- actionOnChange: T,
184
- pageSize: V,
185
- pageSizeOnChange: A,
186
- pagerOnChange: $,
187
- pagerVisible: L,
188
- totalCount: c,
218
+ showItemsText: O,
219
+ actionOnChange: $,
220
+ pageSize: B,
221
+ pageSizeOnChange: z,
222
+ pagerOnChange: A,
223
+ pagerVisible: F,
224
+ totalCount: p,
189
225
  currentPage: f
190
226
  }
191
227
  ),
192
- /* @__PURE__ */ a.jsxs("div", { className: o.tableWrap, children: [
193
- ce && /* @__PURE__ */ a.jsx(
194
- je,
228
+ /* @__PURE__ */ a.jsxs("div", { className: i.tableWrap, children: [
229
+ he && /* @__PURE__ */ a.jsx(
230
+ Ne,
195
231
  {
196
- wrapperClass: o.tableLoading,
197
- appearance: w === I.LIGHT ? ee.LIGHT : ee.DARK
232
+ wrapperClass: i.tableLoading,
233
+ appearance: E === te.LIGHT ? re.LIGHT : re.DARK
198
234
  }
199
235
  ),
200
- O && O,
201
- R ? /* @__PURE__ */ a.jsx(
202
- be,
236
+ D && D,
237
+ _ ? /* @__PURE__ */ a.jsx(
238
+ Ce,
203
239
  {
204
- style: { height: S.height ?? 400 },
205
- data: ue(),
206
- overscan: S.overscan,
207
- increaseViewportBy: S.increaseViewportBy,
208
- className: G || o.scrollWrap,
209
- components: {
210
- Table: (e) => /* @__PURE__ */ a.jsx(
211
- "table",
212
- {
213
- ...e,
214
- "data-testid": "table-content",
215
- className: b(o.table, H, {
216
- [o.fixed]: z
217
- })
218
- }
219
- ),
220
- TableHead: y.forwardRef(
221
- (e, t) => /* @__PURE__ */ a.jsx("thead", { ...e, ref: t, "data-testid": "table-head" })
222
- ),
223
- TableBody: y.forwardRef(
224
- (e, t) => /* @__PURE__ */ a.jsx("tbody", { ...e, ref: t, "data-testid": "table-body" })
225
- ),
226
- TableRow: ({ item: e, ...t }) => {
227
- if (e.kind === "expanded")
228
- return /* @__PURE__ */ a.jsx("tr", { ...t });
229
- const r = s && s.rowExpandable ? s.rowExpandable(e.item) : !!s;
230
- return /* @__PURE__ */ a.jsx(
231
- "tr",
232
- {
233
- ...t,
234
- "data-testid": "table-row",
235
- onClick: () => {
236
- s && s.rowExpandable && s.rowExpandable(e.item) && W(e.index, e.item);
237
- },
238
- className: b(t.className, {
239
- "cursor-pointer": r
240
- })
241
- }
242
- );
243
- },
244
- EmptyPlaceholder: () => /* @__PURE__ */ a.jsx("tbody", { "data-testid": "table-body", children: /* @__PURE__ */ a.jsx("tr", { children: /* @__PURE__ */ a.jsx("td", { colSpan: k, children: /* @__PURE__ */ a.jsx(Y, {}) }) }) })
240
+ className: K,
241
+ style: { height: u.height ?? 400 },
242
+ data: je,
243
+ components: me,
244
+ ...u.overscan != null && {
245
+ overscan: u.overscan
246
+ },
247
+ ...u.increaseViewportBy != null && {
248
+ increaseViewportBy: u.increaseViewportBy
249
+ },
250
+ ...u.initialItemCount != null && {
251
+ initialItemCount: u.initialItemCount
245
252
  },
246
253
  fixedHeaderContent: () => /* @__PURE__ */ a.jsxs("tr", { "data-testid": "table-row", children: [
254
+ W(),
247
255
  X(),
248
- Z(),
249
- K()
256
+ Z()
250
257
  ] }),
251
258
  itemContent: (e, t) => {
252
259
  if (t.kind === "expanded")
253
- return /* @__PURE__ */ a.jsx("td", { colSpan: k, className: "p-0 border-0", children: s == null ? void 0 : s.expandedRowRender(t.item) });
254
- const r = i(t.index, N);
260
+ return /* @__PURE__ */ a.jsx("td", { colSpan: N, className: "p-0 border-0", children: s == null ? void 0 : s.expandedRowRender(t.item) });
261
+ const r = c(t.index, w);
255
262
  return /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
256
- q(t.item, r),
257
- J(t.item, t.index),
258
- m ? m(n, t.item) : U(n, t.item)
263
+ I(t.item, r),
264
+ M(t.item, t.index),
265
+ k ? k(n, t.item) : U(n, t.item)
259
266
  ] });
260
267
  }
261
268
  }
262
- ) : /* @__PURE__ */ a.jsx(ge, { className: G || o.scrollWrap, children: /* @__PURE__ */ a.jsxs(
269
+ ) : /* @__PURE__ */ a.jsx(ke, { className: K || i.scrollWrap, children: /* @__PURE__ */ a.jsxs(
263
270
  "table",
264
271
  {
265
272
  "data-testid": "table-content",
266
- className: b(o.table, H, {
267
- [o.fixed]: z
273
+ className: j(i.table, R, {
274
+ [i.fixed]: v
268
275
  }),
269
276
  children: [
270
277
  /* @__PURE__ */ a.jsx("thead", { "data-testid": "table-head", children: /* @__PURE__ */ a.jsxs("tr", { "data-testid": "table-row", children: [
278
+ W(),
271
279
  X(),
272
- Z(),
273
- K()
280
+ Z()
274
281
  ] }) }),
275
- /* @__PURE__ */ a.jsx("tbody", { "data-testid": "table-body", children: d.length > 0 ? d.map((e, t) => {
276
- const r = i(t, N);
277
- return F ? /* @__PURE__ */ a.jsx(y.Fragment, { children: F(e, t) }, `row-${t}`) : /* @__PURE__ */ a.jsxs(y.Fragment, { children: [
282
+ /* @__PURE__ */ a.jsx("tbody", { "data-testid": "table-body", children: l.length > 0 ? l.map((e, t) => {
283
+ const r = c(t, w);
284
+ return V ? /* @__PURE__ */ a.jsx(J.Fragment, { children: V(e, t) }, `row-${t}`) : /* @__PURE__ */ a.jsxs(J.Fragment, { children: [
278
285
  /* @__PURE__ */ a.jsxs(
279
286
  "tr",
280
287
  {
281
288
  "data-testid": "table-row",
282
289
  onClick: () => {
283
- s && s.rowExpandable && s.rowExpandable(e) && W(t, e);
290
+ s && s.rowExpandable && s.rowExpandable(e) && H(t, e);
284
291
  },
285
- className: b({
292
+ className: j({
286
293
  "cursor-pointer": s && s.rowExpandable ? s.rowExpandable(e) : s
287
294
  }),
288
295
  children: [
289
- q(e, r),
290
- J(e, t),
291
- m ? m(n, e) : U(n, e)
296
+ I(e, r),
297
+ M(e, t),
298
+ k ? k(n, e) : U(n, e)
292
299
  ]
293
300
  },
294
301
  `table-row-${t}`
@@ -296,33 +303,33 @@ const Je = (l) => {
296
303
  s && r && /* @__PURE__ */ a.jsx("tr", { children: /* @__PURE__ */ a.jsx(
297
304
  "td",
298
305
  {
299
- colSpan: k,
306
+ colSpan: N,
300
307
  className: "p-0 border-0",
301
308
  children: s.expandedRowRender(e)
302
309
  }
303
310
  ) })
304
311
  ] }, `row-${t}`);
305
- }) : /* @__PURE__ */ a.jsx("tr", { children: /* @__PURE__ */ a.jsx("td", { colSpan: k, children: /* @__PURE__ */ a.jsx(Y, {}) }) }) })
312
+ }) : /* @__PURE__ */ a.jsx("tr", { children: /* @__PURE__ */ a.jsx("td", { colSpan: N, children: /* @__PURE__ */ a.jsx(ee, {}) }) }) })
306
313
  ]
307
314
  }
308
315
  ) })
309
316
  ] }),
310
- pe && /* @__PURE__ */ a.jsx(
311
- ae,
317
+ fe && /* @__PURE__ */ a.jsx(
318
+ se,
312
319
  {
313
320
  className: "mt-0",
314
- showItemsText: B,
315
- actionOnChange: T,
316
- pageSize: V,
317
- pageSizeOnChange: A,
318
- pagerOnChange: $,
319
- pagerVisible: L,
320
- pageSizeVisible: he,
321
- totalCount: c,
322
- customItem: ie,
323
- headerLeftItem: oe,
321
+ showItemsText: O,
322
+ actionOnChange: $,
323
+ pageSize: B,
324
+ pageSizeOnChange: z,
325
+ pagerOnChange: A,
326
+ pagerVisible: F,
327
+ pageSizeVisible: ue,
328
+ totalCount: p,
329
+ customItem: pe,
330
+ headerLeftItem: ce,
324
331
  currentPage: f,
325
- appearance: w
332
+ appearance: E
326
333
  }
327
334
  )
328
335
  ]
@@ -330,5 +337,5 @@ const Je = (l) => {
330
337
  );
331
338
  };
332
339
  export {
333
- Je as default
340
+ Ye as default
334
341
  };
package/dist/index.d.mts CHANGED
@@ -2023,6 +2023,8 @@ declare type VirtualizedType = {
2023
2023
  overscan?: number;
2024
2024
  /** Enlarge the rendered viewport in px (top/bottom) to reduce blank flashes while scrolling. */
2025
2025
  increaseViewportBy?: number;
2026
+ /** How many rows to render on the very first paint (useful for SSR). */
2027
+ initialItemCount?: number;
2026
2028
  };
2027
2029
 
2028
2030
  export { }
package/dist/index.d.ts CHANGED
@@ -2023,6 +2023,8 @@ declare type VirtualizedType = {
2023
2023
  overscan?: number;
2024
2024
  /** Enlarge the rendered viewport in px (top/bottom) to reduce blank flashes while scrolling. */
2025
2025
  increaseViewportBy?: number;
2026
+ /** How many rows to render on the very first paint (useful for SSR). */
2027
+ initialItemCount?: number;
2026
2028
  };
2027
2029
 
2028
2030
  export { }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cagatayfdn/flora-components",
3
- "version": "0.0.166",
3
+ "version": "0.0.168",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",