@ck-ui/component-library 1.0.9 → 1.0.11

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,12 +1,12 @@
1
1
  import "react/jsx-runtime";
2
- import { D as y } from "../../../DropdownFooter-BmXLYRcE.js";
2
+ import { D as y } from "../../../DropdownFooter-CJnM_ECj.js";
3
3
  import "../../Avatar/index.js";
4
4
  import "../../CKButton/index.js";
5
5
  import "../../IconButton/index.js";
6
6
  import "../../Stepper/index.js";
7
7
  import "react";
8
8
  import "../../../index-BR6M9zUI.js";
9
- import '../../../assets/theme-gJHYUL9y.css';import '../../../assets/styles-D2n8YjU_.css';import '../../../assets/styles-CwZG1jzB.css';import '../../../assets/styles-0GdZsGyi.css';import '../../../assets/ReactToastify-GNLSjkBZ.css';/* empty css */
9
+ import '../../../assets/theme-gJHYUL9y.css';import '../../../assets/styles-DrYTmjez.css';import '../../../assets/styles-CwZG1jzB.css';import '../../../assets/styles-0GdZsGyi.css';import '../../../assets/ReactToastify-GNLSjkBZ.css';/* empty css */
10
10
  import "../../GroupedMultiSelect/_helpers/TagContent.js";
11
11
  import "../../GroupedMultiSelect/_helpers/OptionRow.js";
12
12
  import "../../GroupedSingleSelect/_helpers/OptionRow.js";
@@ -1,6 +1,6 @@
1
1
  import { jsxs as s, jsx as o } from "react/jsx-runtime";
2
2
  import { useState as d, useRef as g, useMemo as V, useEffect as D } from "react";
3
- import { s as e, D as A } from "../../DropdownFooter-BmXLYRcE.js";
3
+ import { s as e, D as A } from "../../DropdownFooter-CJnM_ECj.js";
4
4
  import { S as M } from "../../chevron-down-Cm9R64Fe.js";
5
5
  import { S as q } from "../../info-icon-ooYw3va_.js";
6
6
  import "../Avatar/index.js";
@@ -9,7 +9,7 @@ import "../IconButton/index.js";
9
9
  import "../Stepper/index.js";
10
10
  import { Tooltip as G } from "../Tooltip/index.js";
11
11
  import "../../index-BR6M9zUI.js";
12
- import '../../assets/theme-gJHYUL9y.css';import '../../assets/styles-D2n8YjU_.css';import '../../assets/styles-CwZG1jzB.css';import '../../assets/styles-0GdZsGyi.css';import '../../assets/ReactToastify-GNLSjkBZ.css';/* empty css */
12
+ import '../../assets/theme-gJHYUL9y.css';import '../../assets/styles-DrYTmjez.css';import '../../assets/styles-CwZG1jzB.css';import '../../assets/styles-0GdZsGyi.css';import '../../assets/ReactToastify-GNLSjkBZ.css';/* empty css */
13
13
  import { RadioButton as H } from "../RadioButton/index.js";
14
14
  import { Search as J } from "../Search/index.js";
15
15
  import "../GroupedMultiSelect/_helpers/TagContent.js";
@@ -1,6 +1,6 @@
1
- import { jsxs as x, Fragment as N, jsx as e } from "react/jsx-runtime";
2
- import { useRef as O, useState as r, useCallback as y } from "react";
3
- import { Popover as M } from "../../Popover/index.js";
1
+ import { jsxs as N, Fragment as O, jsx as e } from "react/jsx-runtime";
2
+ import { useRef as x, useState as r, useCallback as M } from "react";
3
+ import { Popover as y } from "../../Popover/index.js";
4
4
  import P from "./TableFilterModal/index.js";
5
5
  import V from "./ColumnManager/index.js";
6
6
  import { isTableConfigChanged as W, isTableConfigDefault as E } from "../_utils/table.utils.js";
@@ -9,7 +9,7 @@ import { S as U, a as $ } from "../../../table-filter-C0zetUfo.js";
9
9
  import { CKButton as F } from "../../CKButton/index.js";
10
10
  function ie({
11
11
  dynamicFilters: b,
12
- columnFilters: t,
12
+ columnFilters: s,
13
13
  onColumnFiltersChange: R,
14
14
  tableConfig: l,
15
15
  onTableConfigChange: T,
@@ -17,38 +17,38 @@ function ie({
17
17
  columnManagerConfig: D = {},
18
18
  virtualization: S = !1
19
19
  }) {
20
- const m = O(null), p = O(null), [w, i] = r(!1), [I, o] = r(!1), [f, d] = r(t), [s, a] = r({ ...l }), u = {
20
+ const m = x(null), d = x(null), [k, i] = r(!1), [w, o] = r(!1), [c, p] = r(s), [t, a] = r({ ...l }), u = {
21
21
  ...K,
22
22
  ...D,
23
23
  columns: l.columns
24
- }, h = y((n) => {
24
+ }, h = M((n) => {
25
25
  (typeof n == "function" ? n({ open: !1, type: "", activeOption: "" }) : n).open || (i(!1), o(!1));
26
- }, []), k = () => {
27
- d(t), o(!1), i((n) => !n);
28
- }, z = () => {
29
- R(f), i(!1);
26
+ }, []), I = () => {
27
+ p(s), o(!1), i((n) => !n);
30
28
  }, B = () => {
29
+ R(c), i(!1);
30
+ }, _ = () => {
31
31
  a({
32
32
  ...l,
33
33
  columnVisibility: { ...l.columnVisibility },
34
34
  columns: [...l.columns]
35
35
  }), i(!1), o((n) => !n);
36
- }, _ = y((n, C) => {
36
+ }, j = M((n, C) => {
37
37
  a((v) => {
38
- const c = [...v.columns], [L] = c.splice(n, 1);
39
- return c.splice(C, 0, L), { ...v, columns: c };
38
+ const f = [...v.columns], [L] = f.splice(n, 1);
39
+ return f.splice(C, 0, L), { ...v, columns: f };
40
40
  });
41
- }, []), j = () => {
42
- T(s), o(!1);
41
+ }, []), z = () => {
42
+ T(t), o(!1);
43
43
  }, G = () => {
44
44
  a(u);
45
- }, J = t.length > 0, g = A === "list";
46
- return /* @__PURE__ */ x(N, { children: [
47
- g && /* @__PURE__ */ x(N, { children: [
48
- /* @__PURE__ */ e("div", { ref: p, className: "inline-flex", children: /* @__PURE__ */ e(
45
+ }, J = s.length > 0, g = A === "list";
46
+ return /* @__PURE__ */ N(O, { children: [
47
+ g && /* @__PURE__ */ N(O, { children: [
48
+ /* @__PURE__ */ e("div", { ref: d, className: "inline-flex", children: /* @__PURE__ */ e(
49
49
  F,
50
50
  {
51
- onClick: B,
51
+ onClick: _,
52
52
  variant: "secondary",
53
53
  size: "medium",
54
54
  className: "min-w-0!",
@@ -61,18 +61,18 @@ function ie({
61
61
  /* @__PURE__ */ e("div", { ref: m, className: "inline-flex", children: /* @__PURE__ */ e(
62
62
  F,
63
63
  {
64
- onClick: k,
64
+ onClick: I,
65
65
  variant: "secondary",
66
66
  size: "medium",
67
- className: `min-w-0! relative ${J ? "after:content-[''] after:absolute after:-top-[1px] after:-right-[1px] after:size-[5px] after:rounded-full after:bg-primary" : ""}`,
67
+ className: `min-w-0! ${J ? "ckds-toolbar-btn-indicator" : ""}`,
68
68
  "aria-label": "Open filters",
69
69
  icons: { left: /* @__PURE__ */ e($, {}) }
70
70
  }
71
71
  ) }),
72
72
  /* @__PURE__ */ e(
73
- M,
73
+ y,
74
74
  {
75
- open: w,
75
+ open: k,
76
76
  onClose: () => i(!1),
77
77
  anchorRef: m,
78
78
  align: "right",
@@ -81,35 +81,35 @@ function ie({
81
81
  P,
82
82
  {
83
83
  filters: b,
84
- draftColumnFilters: f,
85
- setDraftColumnFilters: d,
86
- handleApplyFilters: z,
84
+ draftColumnFilters: c,
85
+ setDraftColumnFilters: p,
86
+ handleApplyFilters: B,
87
87
  setModalOpen: h,
88
88
  virtualization: S,
89
- isFilterChanged: JSON.stringify(f) !== JSON.stringify(t)
89
+ isFilterChanged: JSON.stringify(c) !== JSON.stringify(s)
90
90
  }
91
91
  ) })
92
92
  }
93
93
  ),
94
94
  g && /* @__PURE__ */ e(
95
- M,
95
+ y,
96
96
  {
97
- open: I,
97
+ open: w,
98
98
  onClose: () => o(!1),
99
- anchorRef: p,
99
+ anchorRef: d,
100
100
  align: "right",
101
101
  minWidth: "680px",
102
102
  children: /* @__PURE__ */ e("div", { className: "min-h-[562px] relative", children: /* @__PURE__ */ e(
103
103
  V,
104
104
  {
105
- draftConfig: s,
105
+ draftConfig: t,
106
106
  setDraftConfig: a,
107
- moveDraftColumn: _,
108
- handleApplyPref: j,
107
+ moveDraftColumn: j,
108
+ handleApplyPref: z,
109
109
  setModalOpen: h,
110
110
  handleResetToDefault: G,
111
- isDefault: E(s, u),
112
- isConfigChanged: W(s, l)
111
+ isDefault: E(t, u),
112
+ isConfigChanged: W(t, l)
113
113
  }
114
114
  ) })
115
115
  }