@ck-ui/component-library 1.0.7 → 1.0.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.
Files changed (62) hide show
  1. package/dist/{DropdownFooter-B1d0HFxd.js → DropdownFooter-BmXLYRcE.js} +4 -3
  2. package/dist/{OptionList-BM4AleXV.js → OptionList-DU0iA8Y4.js} +206 -198
  3. package/dist/assets/index-CRlPQn7l.css +1 -0
  4. package/dist/assets/index-xlbz19JS.css +1 -0
  5. package/dist/assets/{index-CtR-jzNi.css → index-zWDnehqu.css} +1 -1
  6. package/dist/assets/styles-0GdZsGyi.css +1 -0
  7. package/dist/assets/styles-C9rG0Alp.css +1 -0
  8. package/dist/assets/styles-CwZG1jzB.css +1 -0
  9. package/dist/assets/{styles-DAqMiQ0N.css → styles-D2n8YjU_.css} +1 -1
  10. package/dist/components/Breadcrumb/index.js +39 -39
  11. package/dist/components/FusionChart/_config/builders.d.ts.map +1 -1
  12. package/dist/components/FusionChart/_config/builders.js +147 -110
  13. package/dist/components/FusionChart/_config/events.d.ts.map +1 -1
  14. package/dist/components/FusionChart/_config/events.js +52 -37
  15. package/dist/components/FusionChart/_types/fusionChart.types.d.ts +3 -0
  16. package/dist/components/FusionChart/_types/fusionChart.types.d.ts.map +1 -1
  17. package/dist/components/FusionChart/index.d.ts.map +1 -1
  18. package/dist/components/FusionChart/index.js +524 -506
  19. package/dist/components/MultiSelect/SimpleMultiSelect.js +1 -1
  20. package/dist/components/MultiSelect/_helpers/DropdownFooter.js +1 -1
  21. package/dist/components/MultiSelect/_helpers/OptionRow.js +1 -1
  22. package/dist/components/MultiSelect/_helpers/OverflowMenu.js +1 -1
  23. package/dist/components/MultiSelect/_helpers/OverflowMenuItem.js +1 -1
  24. package/dist/components/MultiSelect/_helpers/SearchResult.js +1 -1
  25. package/dist/components/MultiSelect/_helpers/TagContent.js +1 -1
  26. package/dist/components/MultiSelect/_helpers/TriggerButton.js +1 -1
  27. package/dist/components/MultiSelect/index.js +1 -1
  28. package/dist/components/Search/index.js +60 -60
  29. package/dist/components/SingleSelectDropdown/_helpers/DropdownFooter.js +4 -3
  30. package/dist/components/SingleSelectDropdown/index.js +12 -11
  31. package/dist/components/Table/_helpers/ColumnManager/index.d.ts +1 -1
  32. package/dist/components/Table/_helpers/ColumnManager/index.d.ts.map +1 -1
  33. package/dist/components/Table/_helpers/ColumnManager/index.js +803 -696
  34. package/dist/components/Table/_helpers/GroupedHeader/index.d.ts +3 -2
  35. package/dist/components/Table/_helpers/GroupedHeader/index.d.ts.map +1 -1
  36. package/dist/components/Table/_helpers/GroupedHeader/index.js +148 -147
  37. package/dist/components/Table/_helpers/TableFilterModal/OptionList.d.ts.map +1 -1
  38. package/dist/components/Table/_helpers/TableFilterModal/OptionList.js +3 -3
  39. package/dist/components/Table/_helpers/TableFilterModal/index.d.ts.map +1 -1
  40. package/dist/components/Table/_helpers/TableFilterModal/index.js +52 -50
  41. package/dist/components/Table/_helpers/TableRows.d.ts +1 -1
  42. package/dist/components/Table/_helpers/TableRows.d.ts.map +1 -1
  43. package/dist/components/Table/_helpers/TableRows.js +242 -243
  44. package/dist/components/Table/_hooks/useOverlayScrollbar.d.ts.map +1 -1
  45. package/dist/components/Table/_hooks/useOverlayScrollbar.js +63 -58
  46. package/dist/components/Table/_types/table.types.d.ts +1 -1
  47. package/dist/components/Table/_types/table.types.d.ts.map +1 -1
  48. package/dist/components/Table/_utils/table.utils.d.ts +1 -1
  49. package/dist/components/Table/_utils/table.utils.d.ts.map +1 -1
  50. package/dist/components/Table/_utils/table.utils.js +84 -46
  51. package/dist/components/Table/index.d.ts.map +1 -1
  52. package/dist/components/Table/index.js +395 -324
  53. package/dist/components/TextField/index.js +165 -165
  54. package/dist/styles.module-DSbSTQeV.js +56 -0
  55. package/package.json +1 -1
  56. package/dist/assets/index-C8gvpfKZ.css +0 -1
  57. package/dist/assets/index-DewFIgpp.css +0 -1
  58. package/dist/assets/styles-BATmGmYA.css +0 -1
  59. package/dist/assets/styles-DLJzdWsF.css +0 -1
  60. package/dist/assets/styles-O-5pBCak.css +0 -1
  61. package/dist/search-B_cup-NN.js +0 -5
  62. package/dist/styles.module-BJEFZA32.js +0 -56
@@ -1,13 +1,13 @@
1
- import { jsx as t, Fragment as V, jsxs as I } from "react/jsx-runtime";
2
- import { f as z } from "../../../index-Bcvmezbu.js";
3
- import { useRef as q, useState as K, useCallback as Q } from "react";
4
- import { columnLayoutStyle as O, pinnedStyle as T } from "../_utils/table.utils.js";
5
- import { ROW_MIN_HEIGHT as W } from "../constants.js";
6
- import { SelectionCell as j } from "./SelectionCell/index.js";
1
+ import { jsx as t, Fragment as A, jsxs as V } from "react/jsx-runtime";
2
+ import { f as _ } from "../../../index-Bcvmezbu.js";
3
+ import { useRef as K, useState as Q, useCallback as U } from "react";
4
+ import { columnLayoutStyle as L, pinnedStyle as O } from "../_utils/table.utils.js";
5
+ import { ROW_MIN_HEIGHT as N } from "../constants.js";
6
+ import { SelectionCell as T } from "./SelectionCell/index.js";
7
7
  import { ExpandableRowToggle as G } from "./ExpandableRow/index.js";
8
- import { Tooltip as U } from "../../Tooltip/index.js";
9
- import { mergeClasses as B } from "../../../utils/mergeClasses.js";
10
- const _ = [
8
+ import { Tooltip as X } from "../../Tooltip/index.js";
9
+ import { mergeClasses as j } from "../../../utils/mergeClasses.js";
10
+ const M = [
11
11
  "var(--ckcl-primary-50, #F8FBFF)",
12
12
  // depth 1
13
13
  "var(--ckcl-primary-80, #F1F6FF)",
@@ -15,260 +15,259 @@ const _ = [
15
15
  "var(--ckcl-primary-100, #D9E6FB)"
16
16
  // depth 3+
17
17
  ];
18
- function X(r) {
18
+ function Z(r) {
19
19
  if (r < 1) return;
20
- const e = Math.min(r - 1, _.length - 1);
21
- return _[e];
20
+ const e = Math.min(r - 1, M.length - 1);
21
+ return M[e];
22
22
  }
23
- function E(r, e, m) {
24
- const l = X(r);
25
- return l || (e && m % 2 !== 0 ? "var(--ckds-cell-bg-striped, var(--ckcl-primary-50))" : "var(--ckds-cell-bg-default, #ffffff)");
23
+ function I(r, e, h) {
24
+ const d = Z(r);
25
+ return d || (e && h % 2 !== 0 ? "var(--ckds-cell-bg-striped, var(--ckcl-primary-50))" : "var(--ckds-cell-bg-default, #ffffff)");
26
26
  }
27
- function H(r) {
27
+ function B(r) {
28
28
  const e = r?.align;
29
29
  if (e === "right") return "flex-end";
30
30
  if (e === "center") return "center";
31
31
  }
32
- function R(r) {
32
+ function H(r) {
33
33
  const e = r?.align;
34
34
  if (e === "right") return "right";
35
35
  if (e === "center") return "center";
36
36
  }
37
- function M({
37
+ function R({
38
38
  title: r,
39
39
  wrapText: e,
40
- children: m
40
+ children: h
41
41
  }) {
42
- const l = q(null), [y, g] = K(!1), d = Q(() => {
43
- l.current && g(l.current.scrollWidth > l.current.offsetWidth);
44
- }, []), o = /* @__PURE__ */ t(
42
+ const d = K(null), [g, k] = Q(!1), u = U(() => {
43
+ d.current && k(d.current.scrollWidth > d.current.offsetWidth);
44
+ }, []), l = /* @__PURE__ */ t(
45
45
  "div",
46
46
  {
47
- ref: l,
48
- onMouseEnter: e ? void 0 : d,
47
+ ref: d,
48
+ onMouseEnter: e ? void 0 : u,
49
49
  className: `${e ? "whitespace-normal wrap-break-word" : "whitespace-nowrap overflow-hidden text-ellipsis"} w-full`,
50
- children: m
50
+ children: h
51
51
  }
52
52
  );
53
- return e || !y ? o : /* @__PURE__ */ t(U, { title: r, placement: "top", arrow: !0, children: o });
53
+ return e || !g ? l : /* @__PURE__ */ t(X, { title: r, placement: "top", arrow: !0, children: l });
54
54
  }
55
- function ae({
55
+ function oe({
56
56
  rows: r,
57
57
  virtualization: e,
58
- rowVirtualizer: m,
59
- handleMeasure: l,
60
- getEstimatedSize: y,
58
+ rowVirtualizer: h,
59
+ handleMeasure: d,
61
60
  columnSizing: g,
62
- tableConfig: d,
63
- table: o,
64
- selectionState: i,
65
- selectionConfig: h,
66
- onToggleRowSelection: k,
67
- expandableConfig: a,
68
- expandedIds: b,
69
- onToggleExpand: p,
70
- depth: D = 0
61
+ tableConfig: k,
62
+ table: u,
63
+ selectionState: l,
64
+ selectionConfig: a,
65
+ onToggleRowSelection: f,
66
+ expandableConfig: s,
67
+ expandedIds: x,
68
+ onToggleExpand: b,
69
+ depth: p = 0
71
70
  }) {
72
- const f = (h?.enabled ?? !1) && !a?.enabled, u = f ? 40 : 0, F = a?.enabled ?? !1, v = a?.indentSize ?? 20, C = a?.childrenKey ?? "children";
73
- return e ? /* @__PURE__ */ t(V, { children: m.getVirtualItems().map((n) => {
74
- const s = r[n.index], w = s.id, x = f && i?.selectedIds.has(w);
75
- return /* @__PURE__ */ I(
71
+ const v = (a?.enabled ?? !1) && !s?.enabled, C = v ? 40 : 0, o = s?.enabled ?? !1, F = s?.indentSize ?? 20, y = s?.childrenKey ?? "children";
72
+ return e ? /* @__PURE__ */ t(A, { children: h.getVirtualItems().map((c) => {
73
+ const m = r[c.index], i = m.id, w = v && l?.selectedIds.has(i);
74
+ return /* @__PURE__ */ V(
76
75
  "tr",
77
76
  {
78
- ref: (c) => l(n.index, c),
79
- "data-index": n.index,
80
- className: B("ckds-dragable-tr flex absolute top-0 left-0 w-full"),
77
+ ref: (n) => d(c.index, n),
78
+ "data-index": c.index,
79
+ className: j("ckds-dragable-tr flex absolute top-0 left-0 w-full"),
81
80
  style: {
82
- transform: `translateY(${n.start}px)`,
83
- minHeight: y(n.index),
81
+ transform: `translateY(${c.start}px)`,
82
+ minHeight: N,
84
83
  borderBottom: "1px solid var(--ckcl-black-50, #F4F4F4)"
85
84
  },
86
85
  children: [
87
- f && /* @__PURE__ */ t("td", { className: "ckds-dragable-td flex items-center justify-center", style: { width: 40, minWidth: 40, maxWidth: 40, height: W, flex: "0 0 40px", position: "sticky", left: 0, zIndex: 2, backgroundColor: "var(--ckds-cell-bg-default, #ffffff)" }, children: /* @__PURE__ */ t(j, { checked: !!x, onChange: () => k?.(w) }) }),
88
- s.getVisibleCells().map((c, $) => {
89
- const N = s.original?.status?.toLowerCase?.() === "inactive", L = $ === 0;
86
+ v && /* @__PURE__ */ t("td", { className: "ckds-dragable-td flex items-center justify-center", style: { width: 40, minWidth: 40, maxWidth: 40, height: N, flex: "0 0 40px", position: "sticky", left: 0, zIndex: 2, backgroundColor: "var(--ckds-cell-bg-default, #ffffff)" }, children: /* @__PURE__ */ t(T, { checked: !!w, onChange: () => f?.(i) }) }),
87
+ m.getVisibleCells().map((n, D) => {
88
+ const E = m.original?.status?.toLowerCase?.() === "inactive", W = D === 0;
90
89
  return /* @__PURE__ */ t(
91
90
  "td",
92
91
  {
93
92
  className: "ckds-dragable-td flex items-center",
94
93
  style: {
95
- ...T(c.column, o, u),
96
- minHeight: `${y(n.index)}px`,
97
- ...O(c.column, o.getVisibleLeafColumns(), g),
98
- justifyContent: H(c.column.columnDef),
99
- textAlign: R(c.column.columnDef),
94
+ ...O(n.column, u, C, g),
95
+ minHeight: N,
96
+ ...L(n.column, u.getVisibleLeafColumns(), g),
97
+ justifyContent: B(n.column.columnDef),
98
+ textAlign: H(n.column.columnDef),
100
99
  // Explicit color — avoids DaisyUI text-base-* token dependency
101
- color: N ? "var(--ckcl-black-400, #737373)" : "var(--ckcl-black-500, #2b2b2b)",
102
- backgroundColor: E(D, d.stripedRows, n.index)
100
+ color: E ? "var(--ckcl-black-400, #737373)" : "var(--ckcl-black-500, #2b2b2b)",
101
+ backgroundColor: I(p, k.stripedRows, c.index)
103
102
  },
104
- children: /* @__PURE__ */ t(M, { title: String(c.getValue() ?? ""), wrapText: d.wrapText, children: /* @__PURE__ */ t(
103
+ children: /* @__PURE__ */ t(R, { title: String(n.getValue() ?? ""), wrapText: k.wrapText, children: /* @__PURE__ */ t(
105
104
  J,
106
105
  {
107
- isFirstDataCol: L,
108
- hasExpansion: F,
109
- row: s,
110
- childrenKey: C,
111
- expandedIds: b,
112
- onToggleExpand: p,
113
- depth: D,
114
- indentSize: v,
115
- expandableConfig: a,
116
- children: z(c.column.columnDef.cell ?? c.column.columnDef.header, c.getContext())
106
+ isFirstDataCol: W,
107
+ hasExpansion: o,
108
+ row: m,
109
+ childrenKey: y,
110
+ expandedIds: x,
111
+ onToggleExpand: b,
112
+ depth: p,
113
+ indentSize: F,
114
+ expandableConfig: s,
115
+ children: _(n.column.columnDef.cell ?? n.column.columnDef.header, n.getContext())
117
116
  }
118
117
  ) })
119
118
  },
120
- c.id
119
+ n.id
121
120
  );
122
121
  })
123
122
  ]
124
123
  },
125
- s.id
124
+ m.id
126
125
  );
127
- }) }) : /* @__PURE__ */ t(V, { children: r.map((n, s) => {
128
- const w = n.original, x = w?.status?.toLowerCase?.() === "inactive", c = n.id, $ = f && i?.selectedIds.has(c), A = F && b?.has(c), N = F ? w[C] : void 0, L = Array.isArray(N) && N.length > 0;
126
+ }) }) : /* @__PURE__ */ t(A, { children: r.map((c, m) => {
127
+ const i = c.original, w = i?.status?.toLowerCase?.() === "inactive", n = c.id, D = v && l?.selectedIds.has(n), $ = o && x?.has(n), E = o ? i[y] : void 0, W = Array.isArray(E) && E.length > 0;
129
128
  return /* @__PURE__ */ t(
130
- Z,
129
+ z,
131
130
  {
132
- row: n,
133
- rowIndex: s,
134
- isInactive: x,
135
- isSelected: !!$,
136
- isExpanded: !!A,
137
- hasChildren: L,
138
- nestedChildren: N,
131
+ row: c,
132
+ rowIndex: m,
133
+ isInactive: w,
134
+ isSelected: !!D,
135
+ isExpanded: !!$,
136
+ hasChildren: W,
137
+ nestedChildren: E,
139
138
  columnSizing: g,
140
- tableConfig: d,
141
- table: o,
142
- hasSelection: f,
143
- selectionState: i,
144
- onToggleRowSelection: k,
145
- expandedIds: b,
146
- onToggleExpand: p,
147
- expandableConfig: a,
148
- depth: D,
149
- indentSize: v,
150
- childrenKey: C
139
+ tableConfig: k,
140
+ table: u,
141
+ hasSelection: v,
142
+ selectionState: l,
143
+ onToggleRowSelection: f,
144
+ expandedIds: x,
145
+ onToggleExpand: b,
146
+ expandableConfig: s,
147
+ depth: p,
148
+ indentSize: F,
149
+ childrenKey: y
151
150
  },
152
- n.id
151
+ c.id
153
152
  );
154
153
  }) });
155
154
  }
156
155
  function J({
157
156
  isFirstDataCol: r,
158
157
  hasExpansion: e,
159
- row: m,
160
- childrenKey: l,
161
- expandedIds: y,
162
- onToggleExpand: g,
163
- depth: d,
164
- indentSize: o,
165
- expandableConfig: i,
166
- children: h
158
+ row: h,
159
+ childrenKey: d,
160
+ expandedIds: g,
161
+ onToggleExpand: k,
162
+ depth: u,
163
+ indentSize: l,
164
+ expandableConfig: a,
165
+ children: f
167
166
  }) {
168
- if (!r || !e) return /* @__PURE__ */ t(V, { children: h });
169
- const a = m.original[l], b = Array.isArray(a) && a.length > 0 || !!i?.renderExpandedContent, p = y?.has(m.id) ?? !1;
167
+ if (!r || !e) return /* @__PURE__ */ t(A, { children: f });
168
+ const x = h.original[d], b = Array.isArray(x) && x.length > 0 || !!a?.renderExpandedContent, p = g?.has(h.id) ?? !1;
170
169
  return /* @__PURE__ */ t(
171
170
  G,
172
171
  {
173
172
  isExpanded: p,
174
173
  hasChildren: b,
175
- depth: d,
176
- indentSize: o,
177
- onToggle: () => g?.(m.id),
178
- children: h
174
+ depth: u,
175
+ indentSize: l,
176
+ onToggle: () => k?.(h.id),
177
+ children: f
179
178
  }
180
179
  );
181
180
  }
182
- function Z({
181
+ function z({
183
182
  row: r,
184
183
  rowIndex: e,
185
- isInactive: m,
186
- isSelected: l,
187
- isExpanded: y,
188
- hasChildren: g,
189
- nestedChildren: d,
190
- columnSizing: o,
191
- tableConfig: i,
192
- table: h,
193
- hasSelection: k,
194
- selectionState: a,
184
+ isInactive: h,
185
+ isSelected: d,
186
+ isExpanded: g,
187
+ hasChildren: k,
188
+ nestedChildren: u,
189
+ columnSizing: l,
190
+ tableConfig: a,
191
+ table: f,
192
+ hasSelection: s,
193
+ selectionState: x,
195
194
  onToggleRowSelection: b,
196
195
  expandedIds: p,
197
- onToggleExpand: D,
198
- expandableConfig: f,
199
- depth: u,
196
+ onToggleExpand: v,
197
+ expandableConfig: C,
198
+ depth: o,
200
199
  indentSize: F,
201
- childrenKey: v
200
+ childrenKey: y
202
201
  }) {
203
- const C = f?.enabled ?? !1, n = k ? 40 : 0;
204
- return /* @__PURE__ */ I(V, { children: [
205
- /* @__PURE__ */ I("tr", { className: B("ckds-dragable-tr flex w-full"), "data-depth": u, style: { position: "relative", zIndex: 0, borderBottom: "1px solid var(--ckcl-black-50, #F4F4F4)" }, children: [
206
- k && /* @__PURE__ */ t("td", { className: "ckds-dragable-td flex items-center justify-center", style: { width: 40, minWidth: 40, maxWidth: 40, height: W, flex: "0 0 40px", position: "sticky", left: 0, zIndex: 2, backgroundColor: E(u, i.stripedRows, e) }, children: /* @__PURE__ */ t(j, { checked: l, onChange: () => b?.(r.id) }) }),
207
- r.getVisibleCells().map((s, w) => {
208
- const x = w === 0, c = E(u, i.stripedRows, e);
202
+ const c = C?.enabled ?? !1, m = s ? 40 : 0;
203
+ return /* @__PURE__ */ V(A, { children: [
204
+ /* @__PURE__ */ V("tr", { className: j("ckds-dragable-tr flex w-full"), "data-depth": o, style: { position: "relative", zIndex: 0, borderBottom: "1px solid var(--ckcl-black-50, #F4F4F4)" }, children: [
205
+ s && /* @__PURE__ */ t("td", { className: "ckds-dragable-td flex items-center justify-center", style: { width: 40, minWidth: 40, maxWidth: 40, height: N, flex: "0 0 40px", position: "sticky", left: 0, zIndex: 2, backgroundColor: I(o, a.stripedRows, e) }, children: /* @__PURE__ */ t(T, { checked: d, onChange: () => b?.(r.id) }) }),
206
+ r.getVisibleCells().map((i, w) => {
207
+ const n = w === 0, D = I(o, a.stripedRows, e);
209
208
  return /* @__PURE__ */ t(
210
209
  "td",
211
210
  {
212
211
  className: "ckds-dragable-td flex items-center",
213
212
  style: {
214
- ...T(s.column, h, n),
215
- ...i.wrapText ? { minHeight: `${W}px` } : { height: `${W}px` },
216
- ...O(s.column, h.getVisibleLeafColumns(), o),
217
- justifyContent: H(s.column.columnDef),
218
- textAlign: R(s.column.columnDef),
213
+ ...O(i.column, f, m, l),
214
+ ...a.wrapText ? { minHeight: `${N}px` } : { height: `${N}px` },
215
+ ...L(i.column, f.getVisibleLeafColumns(), l),
216
+ justifyContent: B(i.column.columnDef),
217
+ textAlign: H(i.column.columnDef),
219
218
  // Explicit color — avoids DaisyUI text-base-* token dependency
220
- color: m ? "var(--ckcl-black-400, #737373)" : "var(--ckcl-black-500, #2b2b2b)",
221
- backgroundColor: c
219
+ color: h ? "var(--ckcl-black-400, #737373)" : "var(--ckcl-black-500, #2b2b2b)",
220
+ backgroundColor: D
222
221
  },
223
- children: /* @__PURE__ */ t(M, { title: String(s.getValue() ?? ""), wrapText: i.wrapText, children: /* @__PURE__ */ t(
222
+ children: /* @__PURE__ */ t(R, { title: String(i.getValue() ?? ""), wrapText: a.wrapText, children: /* @__PURE__ */ t(
224
223
  J,
225
224
  {
226
- isFirstDataCol: x,
227
- hasExpansion: C,
225
+ isFirstDataCol: n,
226
+ hasExpansion: c,
228
227
  row: r,
229
- childrenKey: v,
228
+ childrenKey: y,
230
229
  expandedIds: p,
231
- onToggleExpand: D,
232
- depth: u,
230
+ onToggleExpand: v,
231
+ depth: o,
233
232
  indentSize: F,
234
- expandableConfig: f,
235
- children: z(s.column.columnDef.cell ?? s.column.columnDef.header, s.getContext())
233
+ expandableConfig: C,
234
+ children: _(i.column.columnDef.cell ?? i.column.columnDef.header, i.getContext())
236
235
  }
237
236
  ) })
238
237
  },
239
- s.id
238
+ i.id
240
239
  );
241
240
  })
242
241
  ] }),
243
- y && f?.renderExpandedContent && /* @__PURE__ */ I("tr", { className: "ckds-dragable-tr flex w-full", "data-depth": u, children: [
244
- k && /* @__PURE__ */ t("td", { className: "ckds-dragable-td", style: { width: 40, minWidth: 40, maxWidth: 40, flex: "0 0 40px", backgroundColor: E(u, i.stripedRows, e) } }),
242
+ g && C?.renderExpandedContent && /* @__PURE__ */ V("tr", { className: "ckds-dragable-tr flex w-full", "data-depth": o, children: [
243
+ s && /* @__PURE__ */ t("td", { className: "ckds-dragable-td", style: { width: 40, minWidth: 40, maxWidth: 40, flex: "0 0 40px", backgroundColor: I(o, a.stripedRows, e) } }),
245
244
  /* @__PURE__ */ t(
246
245
  "td",
247
246
  {
248
247
  className: "ckds-dragable-td",
249
- colSpan: h.getVisibleLeafColumns().length,
250
- style: { flex: "1 1 auto", padding: 0, backgroundColor: E(u, i.stripedRows, e) },
251
- children: f.renderExpandedContent(r.original, u)
248
+ colSpan: f.getVisibleLeafColumns().length,
249
+ style: { flex: "1 1 auto", padding: 0, backgroundColor: I(o, a.stripedRows, e) },
250
+ children: C.renderExpandedContent(r.original, o)
252
251
  }
253
252
  )
254
253
  ] }),
255
- y && g && d && !f?.renderExpandedContent && /* @__PURE__ */ t(
254
+ g && k && u && !C?.renderExpandedContent && /* @__PURE__ */ t(
256
255
  P,
257
256
  {
258
- nestedChildren: d,
257
+ nestedChildren: u,
259
258
  parentId: r.id,
260
- depth: u + 1,
261
- columnSizing: o,
262
- tableConfig: i,
263
- table: h,
264
- hasSelection: k,
265
- selectionState: a,
259
+ depth: o + 1,
260
+ columnSizing: l,
261
+ tableConfig: a,
262
+ table: f,
263
+ hasSelection: s,
264
+ selectionState: x,
266
265
  onToggleRowSelection: b,
267
266
  expandedIds: p,
268
- onToggleExpand: D,
269
- expandableConfig: f,
267
+ onToggleExpand: v,
268
+ expandableConfig: C,
270
269
  indentSize: F,
271
- childrenKey: v
270
+ childrenKey: y
272
271
  }
273
272
  )
274
273
  ] });
@@ -276,133 +275,133 @@ function Z({
276
275
  function P({
277
276
  nestedChildren: r,
278
277
  parentId: e,
279
- depth: m,
280
- columnSizing: l,
281
- tableConfig: y,
282
- table: g,
283
- hasSelection: d,
284
- selectionState: o,
285
- onToggleRowSelection: i,
286
- expandedIds: h,
287
- onToggleExpand: k,
288
- expandableConfig: a,
278
+ depth: h,
279
+ columnSizing: d,
280
+ tableConfig: g,
281
+ table: k,
282
+ hasSelection: u,
283
+ selectionState: l,
284
+ onToggleRowSelection: a,
285
+ expandedIds: f,
286
+ onToggleExpand: s,
287
+ expandableConfig: x,
289
288
  indentSize: b,
290
289
  childrenKey: p
291
290
  }) {
292
- const D = g.getVisibleLeafColumns(), f = a?.enabled ?? !1;
293
- return /* @__PURE__ */ t(V, { children: r.map((u, F) => {
294
- const v = u, C = `${e}.${F}`, n = v[p], s = Array.isArray(n) && n.length > 0, w = h?.has(C) ?? !1, x = d && (o?.selectedIds.has(C) ?? !1), c = v?.status?.toLowerCase?.() === "inactive";
291
+ const v = k.getVisibleLeafColumns(), C = x?.enabled ?? !1;
292
+ return /* @__PURE__ */ t(A, { children: r.map((o, F) => {
293
+ const y = o, c = `${e}.${F}`, m = y[p], i = Array.isArray(m) && m.length > 0, w = f?.has(c) ?? !1, n = u && (l?.selectedIds.has(c) ?? !1), D = y?.status?.toLowerCase?.() === "inactive";
295
294
  return /* @__PURE__ */ t(
296
295
  S,
297
296
  {
298
- childRecord: v,
299
- childRowId: C,
297
+ childRecord: y,
298
+ childRowId: c,
300
299
  childIndex: F,
301
- childIsInactive: c,
302
- childIsSelected: x,
300
+ childIsInactive: D,
301
+ childIsSelected: n,
303
302
  childIsExpanded: w,
304
- childHasChildren: s,
305
- childChildren: n,
306
- depth: m,
307
- columnSizing: l,
308
- tableConfig: y,
309
- table: g,
310
- visibleCols: D,
311
- hasSelection: d,
312
- hasExpansion: f,
313
- selectionState: o,
314
- onToggleRowSelection: i,
315
- expandedIds: h,
316
- onToggleExpand: k,
317
- expandableConfig: a,
303
+ childHasChildren: i,
304
+ childChildren: m,
305
+ depth: h,
306
+ columnSizing: d,
307
+ tableConfig: g,
308
+ table: k,
309
+ visibleCols: v,
310
+ hasSelection: u,
311
+ hasExpansion: C,
312
+ selectionState: l,
313
+ onToggleRowSelection: a,
314
+ expandedIds: f,
315
+ onToggleExpand: s,
316
+ expandableConfig: x,
318
317
  indentSize: b,
319
318
  childrenKey: p
320
319
  },
321
- C
320
+ c
322
321
  );
323
322
  }) });
324
323
  }
325
324
  function S({
326
325
  childRecord: r,
327
326
  childRowId: e,
328
- childIndex: m,
329
- childIsInactive: l,
330
- childIsSelected: y,
331
- childIsExpanded: g,
332
- childHasChildren: d,
333
- childChildren: o,
334
- depth: i,
335
- columnSizing: h,
336
- tableConfig: k,
337
- table: a,
327
+ childIndex: h,
328
+ childIsInactive: d,
329
+ childIsSelected: g,
330
+ childIsExpanded: k,
331
+ childHasChildren: u,
332
+ childChildren: l,
333
+ depth: a,
334
+ columnSizing: f,
335
+ tableConfig: s,
336
+ table: x,
338
337
  visibleCols: b,
339
338
  hasSelection: p,
340
- hasExpansion: D,
341
- selectionState: f,
342
- onToggleRowSelection: u,
339
+ hasExpansion: v,
340
+ selectionState: C,
341
+ onToggleRowSelection: o,
343
342
  expandedIds: F,
344
- onToggleExpand: v,
345
- expandableConfig: C,
346
- indentSize: n,
347
- childrenKey: s
343
+ onToggleExpand: y,
344
+ expandableConfig: c,
345
+ indentSize: m,
346
+ childrenKey: i
348
347
  }) {
349
348
  const w = p ? 40 : 0;
350
- return /* @__PURE__ */ I(V, { children: [
351
- /* @__PURE__ */ I("tr", { className: B("ckds-dragable-tr flex w-full"), "data-depth": i, style: { position: "relative", zIndex: 0, borderBottom: "1px solid var(--ckcl-black-50, #F4F4F4)" }, children: [
352
- p && /* @__PURE__ */ t("td", { className: "ckds-dragable-td flex items-center justify-center", style: { width: 40, minWidth: 40, maxWidth: 40, height: W, flex: "0 0 40px", position: "sticky", left: 0, zIndex: 2, backgroundColor: "var(--ckds-cell-bg-default, #ffffff)" }, children: /* @__PURE__ */ t(j, { checked: y, onChange: () => u?.(e) }) }),
353
- b.map((x, c) => {
354
- const $ = c === 0, A = r[x.id], N = A != null ? String(A) : "", L = E(i, k.stripedRows, m), Y = $ && D ? /* @__PURE__ */ t(
349
+ return /* @__PURE__ */ V(A, { children: [
350
+ /* @__PURE__ */ V("tr", { className: j("ckds-dragable-tr flex w-full"), "data-depth": a, style: { position: "relative", zIndex: 0, borderBottom: "1px solid var(--ckcl-black-50, #F4F4F4)" }, children: [
351
+ p && /* @__PURE__ */ t("td", { className: "ckds-dragable-td flex items-center justify-center", style: { width: 40, minWidth: 40, maxWidth: 40, height: N, flex: "0 0 40px", position: "sticky", left: 0, zIndex: 2, backgroundColor: "var(--ckds-cell-bg-default, #ffffff)" }, children: /* @__PURE__ */ t(T, { checked: g, onChange: () => o?.(e) }) }),
352
+ b.map((n, D) => {
353
+ const $ = D === 0, E = r[n.id], W = E != null ? String(E) : "", Y = I(a, s.stripedRows, h), q = $ && v ? /* @__PURE__ */ t(
355
354
  G,
356
355
  {
357
- isExpanded: g,
358
- hasChildren: d,
359
- depth: i,
360
- indentSize: n,
361
- onToggle: () => v?.(e),
362
- children: N
356
+ isExpanded: k,
357
+ hasChildren: u,
358
+ depth: a,
359
+ indentSize: m,
360
+ onToggle: () => y?.(e),
361
+ children: W
363
362
  }
364
- ) : N;
363
+ ) : W;
365
364
  return /* @__PURE__ */ t(
366
365
  "td",
367
366
  {
368
367
  className: "ckds-dragable-td flex items-center",
369
368
  style: {
370
- ...T(x, a, w),
371
- ...k.wrapText ? { minHeight: `${W}px` } : { height: `${W}px` },
372
- ...O(x, b, h),
373
- backgroundColor: L,
369
+ ...O(n, x, w, f),
370
+ ...s.wrapText ? { minHeight: `${N}px` } : { height: `${N}px` },
371
+ ...L(n, b, f),
372
+ backgroundColor: Y,
374
373
  // Explicit color — avoids DaisyUI text-base-* token dependency
375
- color: l ? "var(--ckcl-black-400, #737373)" : "var(--ckcl-black-500, #2b2b2b)",
376
- justifyContent: H(x.columnDef),
377
- textAlign: R(x.columnDef)
374
+ color: d ? "var(--ckcl-black-400, #737373)" : "var(--ckcl-black-500, #2b2b2b)",
375
+ justifyContent: B(n.columnDef),
376
+ textAlign: H(n.columnDef)
378
377
  },
379
- children: /* @__PURE__ */ t(M, { title: N, wrapText: k.wrapText, children: Y })
378
+ children: /* @__PURE__ */ t(R, { title: W, wrapText: s.wrapText, children: q })
380
379
  },
381
- `${e}-${x.id}`
380
+ `${e}-${n.id}`
382
381
  );
383
382
  })
384
383
  ] }),
385
- g && d && o && /* @__PURE__ */ t(
384
+ k && u && l && /* @__PURE__ */ t(
386
385
  P,
387
386
  {
388
- nestedChildren: o,
387
+ nestedChildren: l,
389
388
  parentId: e,
390
- depth: i + 1,
391
- columnSizing: h,
392
- tableConfig: k,
393
- table: a,
389
+ depth: a + 1,
390
+ columnSizing: f,
391
+ tableConfig: s,
392
+ table: x,
394
393
  hasSelection: p,
395
- selectionState: f,
396
- onToggleRowSelection: u,
394
+ selectionState: C,
395
+ onToggleRowSelection: o,
397
396
  expandedIds: F,
398
- onToggleExpand: v,
399
- expandableConfig: C,
400
- indentSize: n,
401
- childrenKey: s
397
+ onToggleExpand: y,
398
+ expandableConfig: c,
399
+ indentSize: m,
400
+ childrenKey: i
402
401
  }
403
402
  )
404
403
  ] });
405
404
  }
406
405
  export {
407
- ae as default
406
+ oe as default
408
407
  };