@ck-ui/component-library 1.0.8 → 1.0.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.
Files changed (54) hide show
  1. package/dist/{DropdownFooter-B1d0HFxd.js → DropdownFooter-CJnM_ECj.js} +4 -3
  2. package/dist/{OptionList-BM4AleXV.js → OptionList-DU0iA8Y4.js} +206 -198
  3. package/dist/assets/index-EOsQwhza.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-CwZG1jzB.css +1 -0
  8. package/dist/assets/{styles-DAqMiQ0N.css → styles-DrYTmjez.css} +1 -1
  9. package/dist/components/Breadcrumb/index.js +39 -39
  10. package/dist/components/FusionChart/_config/builders.d.ts.map +1 -1
  11. package/dist/components/FusionChart/_config/builders.js +187 -149
  12. package/dist/components/FusionChart/_config/events.d.ts.map +1 -1
  13. package/dist/components/FusionChart/_config/events.js +52 -37
  14. package/dist/components/FusionChart/_config/helpers.js +6 -6
  15. package/dist/components/FusionChart/_constant/constants.d.ts +3 -3
  16. package/dist/components/FusionChart/_constant/constants.js +1 -1
  17. package/dist/components/FusionChart/_helpers/doughnutHelper.js +13 -13
  18. package/dist/components/FusionChart/_types/fusionChart.types.d.ts +2 -0
  19. package/dist/components/FusionChart/_types/fusionChart.types.d.ts.map +1 -1
  20. package/dist/components/FusionChart/index.d.ts.map +1 -1
  21. package/dist/components/FusionChart/index.js +533 -504
  22. package/dist/components/Search/index.js +60 -60
  23. package/dist/components/SingleSelectDropdown/_helpers/DropdownFooter.js +4 -3
  24. package/dist/components/SingleSelectDropdown/index.js +12 -11
  25. package/dist/components/Table/_helpers/ColumnManager/index.d.ts +1 -1
  26. package/dist/components/Table/_helpers/ColumnManager/index.d.ts.map +1 -1
  27. package/dist/components/Table/_helpers/ColumnManager/index.js +803 -696
  28. package/dist/components/Table/_helpers/FilterColumnToolbar.js +36 -36
  29. package/dist/components/Table/_helpers/GroupedHeader/index.d.ts +3 -2
  30. package/dist/components/Table/_helpers/GroupedHeader/index.d.ts.map +1 -1
  31. package/dist/components/Table/_helpers/GroupedHeader/index.js +148 -147
  32. package/dist/components/Table/_helpers/TableFilterModal/OptionList.d.ts.map +1 -1
  33. package/dist/components/Table/_helpers/TableFilterModal/OptionList.js +3 -3
  34. package/dist/components/Table/_helpers/TableFilterModal/index.d.ts.map +1 -1
  35. package/dist/components/Table/_helpers/TableFilterModal/index.js +52 -50
  36. package/dist/components/Table/_helpers/TableRows.d.ts +1 -1
  37. package/dist/components/Table/_helpers/TableRows.d.ts.map +1 -1
  38. package/dist/components/Table/_helpers/TableRows.js +242 -243
  39. package/dist/components/Table/_hooks/useOverlayScrollbar.d.ts.map +1 -1
  40. package/dist/components/Table/_hooks/useOverlayScrollbar.js +63 -58
  41. package/dist/components/Table/_types/table.types.d.ts +1 -1
  42. package/dist/components/Table/_types/table.types.d.ts.map +1 -1
  43. package/dist/components/Table/_utils/table.utils.d.ts +1 -1
  44. package/dist/components/Table/_utils/table.utils.d.ts.map +1 -1
  45. package/dist/components/Table/_utils/table.utils.js +84 -46
  46. package/dist/components/Table/index.d.ts.map +1 -1
  47. package/dist/components/Table/index.js +398 -327
  48. package/dist/components/TextField/index.js +165 -165
  49. package/package.json +1 -1
  50. package/dist/assets/index-C8gvpfKZ.css +0 -1
  51. package/dist/assets/index-DewFIgpp.css +0 -1
  52. package/dist/assets/styles-DLJzdWsF.css +0 -1
  53. package/dist/assets/styles-O-5pBCak.css +0 -1
  54. package/dist/search-B_cup-NN.js +0 -5
@@ -1,10 +1,10 @@
1
- import { jsxs as K, jsx as c } from "react/jsx-runtime";
2
- import { useState as y, useRef as f, useEffect as l, useMemo as L } from "react";
3
- import { S as R } from "../../search-B_cup-NN.js";
1
+ import { jsxs as R, jsx as n } from "react/jsx-runtime";
2
+ import * as f from "react";
3
+ import { useState as S, useRef as d, useEffect as l, useMemo as K } from "react";
4
4
  import { S as V } from "../../cancel-BAgTEOGD.js";
5
5
  import { SMALL as A, MEDIUM as P } from "../../constants.js";
6
- import { mergeClasses as D } from "../../utils/mergeClasses.js";
7
- import '../../assets/index-BoQKDmZt.css';const t = {
6
+ import { mergeClasses as v } from "../../utils/mergeClasses.js";
7
+ import '../../assets/index-BoQKDmZt.css';const U = (a) => /* @__PURE__ */ f.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: 14, height: 14, viewBox: "0 0 14 14", fill: "none", ...a }, /* @__PURE__ */ f.createElement("path", { d: "M9.91699 9.9165L12.2503 12.2498", stroke: "#737373", strokeWidth: 0.875, strokeLinecap: "round", strokeLinejoin: "round" }), /* @__PURE__ */ f.createElement("path", { d: "M11.0833 6.41667C11.0833 3.83934 8.99401 1.75 6.41667 1.75C3.83934 1.75 1.75 3.83934 1.75 6.41667C1.75 8.99401 3.83934 11.0833 6.41667 11.0833C8.99401 11.0833 11.0833 8.99401 11.0833 6.41667Z", stroke: "#737373", strokeLinecap: "round", strokeLinejoin: "round" })), t = {
8
8
  "ckds-search-wrapper": "_ckds-search-wrapper_mt85e_1",
9
9
  "search-wrapper-small": "_search-wrapper-small_mt85e_35",
10
10
  "search-wrapper-medium": "_search-wrapper-medium_mt85e_38",
@@ -14,88 +14,88 @@ import '../../assets/index-BoQKDmZt.css';const t = {
14
14
  "search-input": "_search-input_mt85e_66",
15
15
  "search-clear": "_search-clear_mt85e_85"
16
16
  };
17
- function O({
18
- value: p = "",
19
- placeholder: k = "Search",
20
- onChange: i,
21
- onClear: C,
22
- onSearch: b,
23
- disabled: a = !1,
24
- showClearBtn: v = !0,
25
- wrapperClassName: x = "",
26
- inputClassName: T = "",
27
- autoFocus: _ = !1,
28
- maxLength: I,
29
- id: M,
30
- name: N,
31
- size: n = "medium",
32
- debounceMs: d = 0
17
+ function H({
18
+ value: a = "",
19
+ placeholder: x = "Search",
20
+ onChange: p,
21
+ onClear: y,
22
+ onSearch: D,
23
+ disabled: s = !1,
24
+ showClearBtn: L = !0,
25
+ wrapperClassName: E = "",
26
+ inputClassName: M = "",
27
+ autoFocus: w = !1,
28
+ maxLength: b,
29
+ id: T,
30
+ name: j,
31
+ size: o = "medium",
32
+ debounceMs: _ = 0
33
33
  }) {
34
- const [w, g] = y(!1), [s, m] = y(p), o = f(null), r = f(null), h = f(!1);
34
+ const [g, k] = S(!1), [c, h] = S(a), u = d(null), r = d(null), m = d(!1);
35
35
  l(() => {
36
- m(p);
37
- }, [p]), l(() => {
38
- _ && o.current?.focus();
39
- }, [_]), l(() => {
40
- a ? h.current = w : h.current && s && (o.current?.focus(), h.current = !1);
41
- }, [a]);
42
- const u = L(() => n === A ? "10" : n === P ? "14" : "18", [n]), E = (e) => {
43
- d > 0 ? (r.current && clearTimeout(r.current), r.current = setTimeout(() => i?.(e), d)) : i?.(e);
36
+ h(a);
37
+ }, [a]), l(() => {
38
+ w && u.current?.focus();
39
+ }, [w]), l(() => {
40
+ s ? m.current = g : m.current && c && (u.current?.focus(), m.current = !1);
41
+ }, [s]);
42
+ const i = K(() => o === A ? "10" : o === P ? "14" : "18", [o]), I = (e) => {
43
+ _ > 0 ? (r.current && clearTimeout(r.current), r.current = setTimeout(() => p?.(e), _)) : p?.(e);
44
44
  };
45
45
  l(() => () => {
46
46
  r.current && clearTimeout(r.current);
47
47
  }, []);
48
- const F = (e) => {
49
- const S = e.target.value;
50
- m(S), E(S);
51
- }, j = (e) => {
52
- e.preventDefault(), r.current && clearTimeout(r.current), m(""), i?.(""), C?.(), o.current?.focus();
48
+ const N = (e) => {
49
+ const C = e.target.value;
50
+ h(C), I(C);
53
51
  }, B = (e) => {
54
- e.stopPropagation(), e.key === "Enter" && b?.(s);
52
+ e.preventDefault(), r.current && clearTimeout(r.current), h(""), p?.(""), y?.(), u.current?.focus();
53
+ }, F = (e) => {
54
+ e.stopPropagation(), e.key === "Enter" && D?.(c);
55
55
  };
56
- return /* @__PURE__ */ K(
56
+ return /* @__PURE__ */ R(
57
57
  "div",
58
58
  {
59
- className: D(
59
+ className: v(
60
60
  t["ckds-search-wrapper"],
61
- t[`search-wrapper-${n}`],
62
- a ? t["search-wrapper--disabled"] : "",
63
- x
61
+ t[`search-wrapper-${o}`],
62
+ s ? t["search-wrapper--disabled"] : "",
63
+ E
64
64
  ),
65
65
  children: [
66
- !w && !s && /* @__PURE__ */ c("span", { className: t["search-icon"], children: /* @__PURE__ */ c(R, { width: u, height: u }) }),
67
- /* @__PURE__ */ c(
66
+ !g && !c && /* @__PURE__ */ n("span", { className: t["search-icon"], children: /* @__PURE__ */ n(U, { width: i, height: i }) }),
67
+ /* @__PURE__ */ n(
68
68
  "input",
69
69
  {
70
- ref: o,
71
- id: M,
72
- name: N,
70
+ ref: u,
71
+ id: T,
72
+ name: j,
73
73
  type: "text",
74
- className: D(
74
+ className: v(
75
75
  "ckds-body-sm-reg",
76
76
  t["search-input"],
77
- T
77
+ M
78
78
  ),
79
- value: s,
80
- placeholder: k,
81
- disabled: a,
82
- maxLength: I,
83
- onChange: F,
84
- onKeyDown: B,
85
- onFocus: () => g(!0),
86
- onBlur: () => g(!1)
79
+ value: c,
80
+ placeholder: x,
81
+ disabled: s,
82
+ maxLength: b,
83
+ onChange: N,
84
+ onKeyDown: F,
85
+ onFocus: () => k(!0),
86
+ onBlur: () => k(!1)
87
87
  }
88
88
  ),
89
- v && s && !a && /* @__PURE__ */ c(
89
+ L && c && !s && /* @__PURE__ */ n(
90
90
  "button",
91
91
  {
92
92
  type: "button",
93
93
  className: t["search-clear"],
94
94
  onMouseDown: (e) => e.preventDefault(),
95
- onClick: j,
95
+ onClick: B,
96
96
  "aria-label": "Clear search",
97
97
  tabIndex: 0,
98
- children: /* @__PURE__ */ c(V, { width: u, height: u })
98
+ children: /* @__PURE__ */ n(V, { width: i, height: i })
99
99
  }
100
100
  )
101
101
  ]
@@ -103,5 +103,5 @@ function O({
103
103
  );
104
104
  }
105
105
  export {
106
- O as Search
106
+ H as Search
107
107
  };
@@ -1,17 +1,18 @@
1
1
  import "react/jsx-runtime";
2
- import { D as v } from "../../../DropdownFooter-B1d0HFxd.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-DAqMiQ0N.css';import '../../../assets/styles-DLJzdWsF.css';import '../../../assets/styles-O-5pBCak.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";
13
13
  import "../../Pagination/index.js";
14
14
  import "../../DateRangePicker/DateRangePicker.js";
15
+ import "react-dom";
15
16
  import "../../Loader/index.js";
16
17
  /* empty css */
17
18
  /* empty css */
@@ -23,5 +24,5 @@ import "../../MAVDropdown/index.js";
23
24
  /* empty css */
24
25
  import "../../FusionChart/index.js";
25
26
  export {
26
- v as DropdownFooter
27
+ y as DropdownFooter
27
28
  };
@@ -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-B1d0HFxd.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-DAqMiQ0N.css';import '../../assets/styles-DLJzdWsF.css';import '../../assets/styles-O-5pBCak.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";
@@ -17,6 +17,7 @@ import "../GroupedMultiSelect/_helpers/OptionRow.js";
17
17
  import "../GroupedSingleSelect/_helpers/OptionRow.js";
18
18
  import "../Pagination/index.js";
19
19
  import "../DateRangePicker/DateRangePicker.js";
20
+ import "react-dom";
20
21
  import "../Loader/index.js";
21
22
  /* empty css */
22
23
  /* empty css */
@@ -28,7 +29,7 @@ import "../ProfileDropdown/index.js";
28
29
  import "../MAVDropdown/index.js";
29
30
  /* empty css */
30
31
  import "../FusionChart/index.js";
31
- function ge({
32
+ function De({
32
33
  options: u,
33
34
  value: t = null,
34
35
  onChange: y,
@@ -42,20 +43,20 @@ function ge({
42
43
  mandatory: L = !1,
43
44
  width: b = ""
44
45
  }) {
45
- const [l, c] = d(!1), [h, i] = d(""), [f, p] = d(t), v = g(null), { vertical: R, horizontal: j } = K(v, l), C = g(null), [z, E] = d(!1), a = u.find((r) => r.value === t), S = V(() => u.filter(
46
+ const [l, i] = d(!1), [h, c] = d(""), [f, p] = d(t), v = g(null), { vertical: R, horizontal: j } = K(v, l), C = g(null), [z, E] = d(!1), a = u.find((r) => r.value === t), S = V(() => u.filter(
46
47
  (r) => r.label.toLowerCase().includes(h.toLowerCase())
47
48
  ), [h, u]), W = (r) => {
48
49
  p?.(r);
49
50
  }, B = () => {
50
51
  p(null);
51
52
  }, F = () => {
52
- y?.(f), c(!1);
53
+ y?.(f), i(!1);
53
54
  }, T = () => {
54
- p(t), c(!1), i("");
55
+ p(t), i(!1), c("");
55
56
  };
56
57
  return D(() => {
57
58
  const r = (m) => {
58
- v.current?.contains(m.target) || (c(!1), p(t), i(""));
59
+ v.current?.contains(m.target) || (i(!1), p(t), c(""));
59
60
  };
60
61
  return document.addEventListener("mousedown", r), () => document.removeEventListener("mousedown", r);
61
62
  }, [t]), D(() => {
@@ -83,7 +84,7 @@ function ge({
83
84
  {
84
85
  type: "button",
85
86
  className: `${e.trigger} ${l ? e.active : ""}`,
86
- onClick: () => !n && c((r) => !r),
87
+ onClick: () => !n && i((r) => !r),
87
88
  "aria-haspopup": "listbox",
88
89
  "aria-expanded": l,
89
90
  disabled: n,
@@ -119,8 +120,8 @@ function ge({
119
120
  value: h,
120
121
  placeholder: "Search",
121
122
  autoFocus: !1,
122
- onChange: (r) => i(r),
123
- onClear: () => i(""),
123
+ onChange: (r) => c(r),
124
+ onClear: () => c(""),
124
125
  wrapperClassName: e.searchWrapper,
125
126
  inputClassName: e.searchInput
126
127
  }
@@ -156,5 +157,5 @@ function ge({
156
157
  );
157
158
  }
158
159
  export {
159
- ge as SingleSelectDropdown
160
+ De as SingleSelectDropdown
160
161
  };
@@ -1,4 +1,4 @@
1
1
  import { ColumnManagerProps } from '../../_types/table.types';
2
- declare function ColumnManager<TData>({ draftConfig, setDraftConfig, moveDraftColumn, handleApplyPref, setModalOpen, handleResetToDefault, isDefault, isConfigChanged, }: ColumnManagerProps<TData>): import("react/jsx-runtime").JSX.Element;
2
+ declare function ColumnManager<TData>({ draftConfig, setDraftConfig, handleApplyPref, setModalOpen, handleResetToDefault, isDefault, isConfigChanged, headerGroupDefs, }: ColumnManagerProps<TData>): import("react/jsx-runtime").JSX.Element;
3
3
  export default ColumnManager;
4
4
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../lib/components/Table/_helpers/ColumnManager/index.tsx"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAE,kBAAkB,EAA0B,MAAM,0BAA0B,CAAC;AAC3F,OAAO,eAAe,CAAC;AAkEvB,iBAAS,aAAa,CAAC,KAAK,EAAE,EAC5B,WAAW,EACX,cAAc,EACd,eAAe,EACf,eAAe,EACf,YAAY,EACZ,oBAAoB,EACpB,SAAS,EACT,eAAe,GAChB,EAAE,kBAAkB,CAAC,KAAK,CAAC,2CAoG3B;AAED,eAAe,aAAa,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../lib/components/Table/_helpers/ColumnManager/index.tsx"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,0BAA0B,CAAC;AACnE,OAAO,eAAe,CAAC;AAgJvB,iBAAS,aAAa,CAAC,KAAK,EAAE,EAC5B,WAAW,EACX,cAAc,EACd,eAAe,EACf,YAAY,EACZ,oBAAoB,EACpB,SAAS,EACT,eAAe,EACf,eAAe,GAChB,EAAE,kBAAkB,CAAC,KAAK,CAAC,2CAyM3B;AAED,eAAe,aAAa,CAAC"}