aristid-ds 13.0.0 → 14.0.0-0f241f3

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 (117) hide show
  1. package/CHANGELOG.md +47 -4
  2. package/dist/Kit/Ant/index.d.ts +1 -0
  3. package/dist/Kit/App/index.js +14 -14
  4. package/dist/Kit/DataDisplay/Collapse/index.js +27 -27
  5. package/dist/Kit/DataDisplay/Empty/index.js +1 -1
  6. package/dist/Kit/DataDisplay/Error/index.js +1 -1
  7. package/dist/Kit/DataDisplay/IdCard/index.js +28 -16
  8. package/dist/Kit/DataDisplay/IdCard/types.d.ts +1 -0
  9. package/dist/Kit/DataDisplay/ItemCard/index.js +11 -11
  10. package/dist/Kit/DataDisplay/RedirectCard/index.js +6 -6
  11. package/dist/Kit/DataDisplay/Table/index.js +57 -55
  12. package/dist/Kit/DataDisplay/Tag/index.js +44 -44
  13. package/dist/Kit/DataDisplay/Tag/types.d.ts +1 -0
  14. package/dist/Kit/DataDisplay/Tree/index.js +5 -5
  15. package/dist/Kit/DataEntry/AutoComplete/index.js +1 -1
  16. package/dist/Kit/DataEntry/Checkbox/index.js +1 -1
  17. package/dist/Kit/DataEntry/ColorPicker/index.js +2 -2
  18. package/dist/Kit/DataEntry/DatePicker/index.js +19 -19
  19. package/dist/Kit/DataEntry/Input/index.js +2 -2
  20. package/dist/Kit/DataEntry/InputNumber/index.js +1 -1
  21. package/dist/Kit/DataEntry/InputWrapper/index.js +1 -1
  22. package/dist/Kit/DataEntry/Radio/index.js +2 -2
  23. package/dist/Kit/DataEntry/RichText/EditorContentCharacterCount/index.js +1 -1
  24. package/dist/Kit/DataEntry/RichText/MenuBar/ButtonTooltip/index.js +4 -4
  25. package/dist/Kit/DataEntry/RichText/MenuBar/ButtonTooltip/types.d.ts +1 -0
  26. package/dist/Kit/DataEntry/RichText/MenuBar/FontSizeSelect/index.js +1 -1
  27. package/dist/Kit/DataEntry/RichText/MenuBar/LinkButton/index.js +1 -1
  28. package/dist/Kit/DataEntry/RichText/MenuBar/MenuActionList/index.d.ts +3 -0
  29. package/dist/Kit/DataEntry/RichText/MenuBar/MenuActionList/index.js +11 -0
  30. package/dist/Kit/DataEntry/RichText/MenuBar/MenuActionList/types.d.ts +5 -0
  31. package/dist/Kit/DataEntry/RichText/MenuBar/index.js +38 -18
  32. package/dist/Kit/DataEntry/RichText/MenuBar/miniLayout.d.ts +3 -0
  33. package/dist/Kit/DataEntry/RichText/MenuBar/types.d.ts +7 -0
  34. package/dist/Kit/DataEntry/RichText/index.js +52 -47
  35. package/dist/Kit/DataEntry/RichText/types.d.ts +1 -0
  36. package/dist/Kit/DataEntry/Select/index.js +2 -2
  37. package/dist/Kit/DataEntry/Upload/UploadedItem.d.ts +4 -0
  38. package/dist/Kit/DataEntry/Upload/convertBytes.d.ts +2 -0
  39. package/dist/Kit/DataEntry/Upload/getBase64.d.ts +2 -0
  40. package/dist/Kit/DataEntry/Upload/index.d.ts +2 -8
  41. package/dist/Kit/DataEntry/Upload/index.js +81 -26
  42. package/dist/Kit/DataEntry/Upload/types.d.ts +30 -12
  43. package/dist/Kit/Feedback/Alert/index.js +8 -8
  44. package/dist/Kit/Feedback/Modal/index.js +29 -28
  45. package/dist/Kit/Feedback/Notification/index.js +1 -1
  46. package/dist/Kit/Feedback/SnackBar/index.js +16 -16
  47. package/dist/Kit/General/Button/index.js +1 -1
  48. package/dist/Kit/General/Typography/AdvancedLink.d.ts +4 -0
  49. package/dist/Kit/General/Typography/AdvancedParagraph.d.ts +4 -0
  50. package/dist/Kit/General/Typography/AdvancedText.d.ts +4 -0
  51. package/dist/Kit/General/Typography/AdvancedTitle.d.ts +4 -0
  52. package/dist/Kit/General/Typography/Link.d.ts +4 -2
  53. package/dist/Kit/General/Typography/Paragraph.d.ts +4 -2
  54. package/dist/Kit/General/Typography/Text.d.ts +4 -2
  55. package/dist/Kit/General/Typography/Title.d.ts +5 -3
  56. package/dist/Kit/General/Typography/commons.d.ts +11 -1
  57. package/dist/Kit/General/Typography/index.js +116 -49
  58. package/dist/Kit/General/Typography/types.d.ts +31 -3
  59. package/dist/Kit/Layout/PageLayout/index.js +1 -1
  60. package/dist/Kit/Navigation/Header/index.js +1 -1
  61. package/dist/Kit/Navigation/SideMenu/index.js +1 -1
  62. package/dist/Kit/Navigation/SidePanel/index.js +50 -47
  63. package/dist/Kit/index.js +2 -2
  64. package/dist/assets/InputWrapper.css +1 -1
  65. package/dist/assets/constants.css +1 -0
  66. package/dist/assets/index2.css +1 -1
  67. package/dist/assets/index22.css +1 -1
  68. package/dist/assets/index23.css +1 -1
  69. package/dist/assets/index24.css +1 -1
  70. package/dist/assets/index25.css +1 -1
  71. package/dist/assets/index26.css +1 -1
  72. package/dist/assets/index27.css +1 -1
  73. package/dist/assets/index28.css +1 -1
  74. package/dist/assets/index31.css +1 -1
  75. package/dist/assets/index32.css +1 -1
  76. package/dist/assets/index33.css +1 -1
  77. package/dist/assets/index34.css +1 -1
  78. package/dist/assets/index35.css +1 -1
  79. package/dist/assets/index36.css +1 -1
  80. package/dist/assets/index37.css +1 -1
  81. package/dist/assets/index38.css +1 -1
  82. package/dist/assets/index39.css +1 -1
  83. package/dist/assets/index40.css +1 -1
  84. package/dist/assets/index41.css +1 -1
  85. package/dist/assets/index42.css +1 -1
  86. package/dist/assets/index43.css +1 -1
  87. package/dist/assets/index44.css +1 -1
  88. package/dist/assets/index45.css +1 -1
  89. package/dist/assets/index46.css +1 -1
  90. package/dist/assets/index49.css +1 -1
  91. package/dist/assets/index50.css +1 -1
  92. package/dist/assets/index6.css +1 -1
  93. package/dist/assets/index9.css +1 -1
  94. package/dist/chunks/{InputWrapper.DPygx2dQ.js → InputWrapper.OorNja9G.js} +8 -8
  95. package/dist/chunks/{KitNotification.RhW3PPyX.js → KitNotification.DzpYf5_j.js} +9 -9
  96. package/dist/chunks/{SnackBarProvider.nqDzpFo3.js → SnackBarProvider.T-xLQpTN.js} +10 -10
  97. package/dist/chunks/constants.15jUQk8h.js +10 -0
  98. package/dist/index.es.js +2 -2
  99. package/dist/index.umd.js +4 -4
  100. package/dist/theme/types/index.d.ts +0 -2
  101. package/dist/translation/en-US/components/DataEntry/RichText/index.js +2 -1
  102. package/dist/translation/en-US/components/DataEntry/Upload/index.d.ts +2 -0
  103. package/dist/translation/en-US/components/DataEntry/Upload/index.js +11 -0
  104. package/dist/translation/en-US/index.js +6 -4
  105. package/dist/translation/fr-FR/components/DataEntry/RichText/index.js +2 -1
  106. package/dist/translation/fr-FR/components/DataEntry/Upload/index.d.ts +2 -0
  107. package/dist/translation/fr-FR/components/DataEntry/Upload/index.js +11 -0
  108. package/dist/translation/fr-FR/index.js +8 -6
  109. package/dist/translation/types/components/DataEntry/RichText/index.d.ts +1 -0
  110. package/dist/translation/types/components/DataEntry/Upload/index.d.ts +8 -0
  111. package/dist/translation/types/index.d.ts +2 -0
  112. package/dist/utils/constants.d.ts +1 -0
  113. package/package.json +164 -164
  114. package/dist/assets/index51.css +0 -1
  115. package/dist/theme/aristid/components/DataEntry/Upload/index.d.ts +0 -3
  116. package/dist/theme/aristid/components/DataEntry/Upload/index.js +0 -55
  117. package/dist/theme/types/components/DataEntry/Upload/index.d.ts +0 -178
package/CHANGELOG.md CHANGED
@@ -1,5 +1,47 @@
1
1
  # Changelog
2
2
 
3
+ ## [14.0.0](https://www.npmjs.com/package/aristid-ds/v/14.0.0) (2025-05-20)
4
+
5
+ ### ✨ Features
6
+ - **Typography*:
7
+ - Original `Text`, `Link`, `Title` and `Paragraph` have been renamed to `AdvancedText`, `AdvancedLink`, `AdvancedTitle` and `AdvancedParagraph`. (@evoiron)
8
+ - `Text`, `Link`, `Title` and `Paragraph` components are now lightweight versions of original ones providing only basic features. (@evoiron)
9
+ - Added `withTooltip` prop for non Advanced versions to add a tooltip which is now not displayed by deefault when content is ellipsed. (@evoiron)
10
+ - **IdCard**:
11
+ - Remove use of `Typography.Text` component (@evoiron)
12
+ - Add `disableTooltip` property to disable tooltip on title and description (@evoiron)
13
+ - **⚠️ Breaking change - Upload**:
14
+ - Remove the following properties: (@philippechevieux)
15
+ - `listType`
16
+ - `itemRender`
17
+ - `openFileDialogOnClick`
18
+ - `loading`
19
+ - `isImageUrl`
20
+ - `imageUrl`
21
+ - `progress`
22
+ - `previewFile`
23
+ - `showUploadList`
24
+ - Update component render (@philippechevieux)
25
+ - **RichText**:
26
+ - Add `mini` property to display a minified version of the component (@renaudamsellem)
27
+ - **SidePanel**:
28
+ - Add opening and closing animations (@philippechevieux)
29
+
30
+ ### 🐛 Bug Fixes
31
+
32
+ - **Modal:**
33
+ - KitModal.setAppElement was defined in typescript but not implemented (@evoiron)
34
+ - **Tag:**
35
+ - Hide `closeIcon` for tags in a group if handleCloseTag is not provided (@philippechevieux)
36
+ - Remove tooltip for other tags in TagGroup (@NicoSourimant)
37
+ - **DatePicker/RangePicker**
38
+ - Fix color of prefix icon when component is `disabled`, in `warning` or `error` status (@philippechevieux)
39
+
40
+ ### 📚 Documentation
41
+
42
+ - **Tree**:
43
+ - Add exemple of a long title with ellipsis (@philippechevieux)
44
+
3
45
  ## [13.0.0](https://www.npmjs.com/package/aristid-ds/v/13.0.0) (2025-02-17)
4
46
 
5
47
  ### ✨ CI
@@ -60,10 +102,6 @@ The following points are the impact of this version upgrade:
60
102
 
61
103
  ### ✨ Features
62
104
 
63
- - **Snackbar**:
64
- - Add `snackbarId` property to allow to update a snackbar (@evoiron)
65
- - **Button**:
66
- - Add `action` type button (@evoiron)
67
105
  - **⚠️ Breaking change - Tree**:
68
106
  - Remove `showLine` and `switcherIcon` properties (@philippechevieux)
69
107
  - Update component render (@philippechevieux)
@@ -72,12 +110,17 @@ The following points are the impact of this version upgrade:
72
110
  - Complete rewriting of the `Progress` component without Ant (@philippechevieux)
73
111
  - Remove all Ant props (@philippechevieux)
74
112
  - `circle` and `dashboard` type are no longer available (@philippechevieux)
113
+ - **Snackbar**:
114
+ - Add `snackbarId` property to allow to update a snackbar (@evoiron)
115
+ - **Button**:
116
+ - Add `action` type button (@evoiron)
75
117
  - **Tabs**:
76
118
  - Add controlled state to handle navigation within tabs (@renaudamsellem)
77
119
  - **SidePanel**:
78
120
  - Add `headerExtra` prop to display extra content above header title (@philippechevieux)
79
121
 
80
122
  ### 🐛 Bug Fixes
123
+
81
124
  - **SidePanel**
82
125
  - Fix `closeOnOutsideClick` behavior to listen to `click` event instead on `mousedeown` (@evoiron)
83
126
  - **ColorPicker**
@@ -66,3 +66,4 @@ export { TreeSelect as AntTreeSelect } from 'antd';
66
66
  export { Typography as AntTypography } from 'antd';
67
67
  export { Upload as AntUpload } from 'antd';
68
68
  export { Watermark as AntWatermark } from 'antd';
69
+ export type { UploadFile } from 'antd/lib';
@@ -2,20 +2,20 @@ import "../../assets/index28.css";
2
2
  import { jsx as n, jsxs as f, Fragment as h } from "react/jsx-runtime";
3
3
  import { useState as u, useLayoutEffect as L, useRef as S, useEffect as P } from "react";
4
4
  import { ConfigProvider as C } from "antd";
5
- import { I as b } from "../../chunks/SnackBarProvider.nqDzpFo3.js";
5
+ import { K as b } from "../../chunks/SnackBarProvider.T-xLQpTN.js";
6
6
  import { toCssVariables as g, uuid as y } from "../../utils/functions/index.js";
7
7
  import a from "lodash/merge";
8
8
  import { Style as m } from "react-style-tag";
9
9
  import { K as E } from "../../chunks/useKitTheme.KSAU-Pdv.js";
10
10
  import { KitAristidThemeGeneral as l } from "../../theme/aristid/general/index.js";
11
- import { antdThemeConfig as I } from "../../theme/utils/tokens-mapper/index.js";
11
+ import { antdThemeConfig as T } from "../../theme/utils/tokens-mapper/index.js";
12
12
  import { frFR as d } from "../../translation/fr-FR/index.js";
13
- import { enUS as T } from "../../translation/en-US/index.js";
14
- import { K as $, u as j } from "../../chunks/useKitLocale.96CdK3og.js";
15
- import { mapKitLocaleToAntdLocale as k } from "../../translation/utils/index.js";
16
- import { d as x } from "../../chunks/notification-provider.9msrEKBe.js";
13
+ import { enUS as $ } from "../../translation/en-US/index.js";
14
+ import { K as j, u as k } from "../../chunks/useKitLocale.96CdK3og.js";
15
+ import { mapKitLocaleToAntdLocale as x } from "../../translation/utils/index.js";
16
+ import { d as A } from "../../chunks/notification-provider.9msrEKBe.js";
17
17
  import { KitEmpty as p } from "../DataDisplay/Empty/index.js";
18
- const A = "aristid-ds-global", F = (t, e) => {
18
+ const F = "aristid-ds-global", I = (t, e) => {
19
19
  const o = g(t);
20
20
  return `
21
21
  .${e} {
@@ -27,11 +27,11 @@ const A = "aristid-ds-global", F = (t, e) => {
27
27
  return L(() => {
28
28
  const s = g(l, "--general");
29
29
  i(s);
30
- }, []), n(E.Provider, { value: { theme: v, appId: c, spacing: K }, children: r !== null && f(h, { children: [n(m, { id: A, hasSourceMap: !1, children: `
30
+ }, []), n(E.Provider, { value: { theme: v, appId: c, spacing: K }, children: r !== null && f(h, { children: [n(m, { id: F, hasSourceMap: !1, children: `
31
31
  :root {
32
32
  ${Object.keys(r).map((s) => `${s}: ${r[s]}`).join(";")}
33
33
  }
34
- ` }), e && n(m, { hasSourceMap: !1, children: F(a({ general: { utilities: l.utilities } }, e), c) }), t] }) });
34
+ ` }), e && n(m, { hasSourceMap: !1, children: I(a({ general: { utilities: l.utilities } }, e), c) }), t] }) });
35
35
  }, _ = (t, e) => {
36
36
  var o;
37
37
  const r = S(t || "ds-" + y().substring(0, 8)), i = a(l.spacing, (o = e == null ? void 0 : e.general) === null || o === void 0 ? void 0 : o.spacing);
@@ -42,7 +42,7 @@ const A = "aristid-ds-global", F = (t, e) => {
42
42
  };
43
43
  }, M = ({ children: t }) => {
44
44
  const e = N();
45
- return n($.Provider, { value: e, children: t });
45
+ return n(j.Provider, { value: e, children: t });
46
46
  }, N = () => {
47
47
  const [t, e] = u(d);
48
48
  return { locale: t, setKitLocale: (r) => {
@@ -50,18 +50,18 @@ const A = "aristid-ds-global", F = (t, e) => {
50
50
  const i = a(d, r);
51
51
  e(i);
52
52
  } else {
53
- const i = a(T, r);
53
+ const i = a($, r);
54
54
  e(i);
55
55
  }
56
56
  } };
57
57
  }, te = ({ children: t, locale: e, customTheme: o, id: r }) => n(R, { customTheme: o, id: r, children: n(M, { children: n(O, { locale: e, children: t }) }) }), O = ({ children: t, locale: e }) => {
58
- const { locale: o, setKitLocale: r } = j();
58
+ const { locale: o, setKitLocale: r } = k();
59
59
  return P(() => {
60
60
  e !== void 0 && r(e);
61
- }, [e, r]), n(C, { theme: I, locale: k(e), renderEmpty: () => {
61
+ }, [e, r]), n(C, { theme: T, locale: x(e), renderEmpty: () => {
62
62
  var i;
63
63
  return n(p, { className: "default-render", image: p.ASSET_LIST, description: (i = o.Empty) === null || i === void 0 ? void 0 : i.noData });
64
- }, children: f(x, { children: [n(b, {}), t] }) });
64
+ }, children: f(A, { children: [n(b, {}), t] }) });
65
65
  };
66
66
  export {
67
67
  te as KitApp
@@ -1,13 +1,13 @@
1
- import "../../../assets/index37.css";
1
+ import "../../../assets/index36.css";
2
2
  import { jsx as t, jsxs as f } from "react/jsx-runtime";
3
3
  import { cloneElement as C, useState as N } from "react";
4
4
  import { Collapse as E } from "antd";
5
5
  import { u as y } from "../../../chunks/useKitTheme.KSAU-Pdv.js";
6
6
  import { FontAwesomeIcon as k } from "@fortawesome/react-fontawesome";
7
- import { faChevronDown as _, faEye as A, faEllipsisVertical as I } from "@fortawesome/free-solid-svg-icons";
8
- import D from "classnames";
7
+ import { faChevronDown as _, faEye as T, faEllipsisVertical as A } from "@fortawesome/free-solid-svg-icons";
8
+ import I from "classnames";
9
9
  import { KitTypography as g } from "../../General/Typography/index.js";
10
- import { KitTag as T } from "../Tag/index.js";
10
+ import { KitTag as D } from "../Tag/index.js";
11
11
  import { KitImage as z } from "../Image/index.js";
12
12
  import { KitSwitch as S } from "../../DataEntry/Switch/index.js";
13
13
  import { KitTooltip as h } from "../Tooltip/index.js";
@@ -18,9 +18,9 @@ const u = {
18
18
  "kit-collapse": "_kit-collapse_h05zd_2",
19
19
  "kit-collapse-header": "_kit-collapse-header_h05zd_78",
20
20
  "kit-collapse-header-extra": "_kit-collapse-header-extra_h05zd_113"
21
- }, M = () => t(k, { icon: _ }), K = ({ className: o, expandIcon: e, items: l, collapsible: i, ...a }) => {
21
+ }, M = () => t(k, { icon: _ }), w = ({ className: o, expandIcon: e, items: i, collapsible: l, ...a }) => {
22
22
  const { appId: n } = y();
23
- i === "disabled" && (l == null || l.forEach((r) => {
23
+ l === "disabled" && (i == null || i.forEach((r) => {
24
24
  var s, d;
25
25
  if (r.label !== void 0) {
26
26
  const p = r.label, m = r.extra;
@@ -31,29 +31,29 @@ const u = {
31
31
  }));
32
32
  }
33
33
  }));
34
- const c = D(n, u["kit-collapse"], o);
35
- return t(E, { ...a, className: c, expandIcon: e ?? M, expandIconPosition: "end", collapsible: i, items: l });
34
+ const c = I(n, u["kit-collapse"], o);
35
+ return t(E, { ...a, className: c, expandIcon: e ?? M, expandIconPosition: "end", collapsible: l, items: i });
36
36
  };
37
- K.displayName = "KitCollapse";
37
+ w.displayName = "KitCollapse";
38
38
  const $ = ({ onSwitchChange: o, disabled: e }) => t("div", { className: "kit-collapse-header-switch", onClick: (
39
39
  // We don't want to collapse/extand item when clicking
40
- (l) => l.stopPropagation()
41
- ), children: t(S, { onChange: (l, i) => {
42
- const n = i.target.closest(".ant-collapse-item");
43
- n == null || n.setAttribute("data-item-selected", l.toString()), o(l, i);
40
+ (i) => i.stopPropagation()
41
+ ), children: t(S, { onChange: (i, l) => {
42
+ const n = l.target.closest(".ant-collapse-item");
43
+ n == null || n.setAttribute("data-item-selected", i.toString()), o(i, l);
44
44
  }, disabled: e }) }), j = ({ imageSrc: o }) => t("div", { className: "kit-collapse-header-image", onClick: (
45
45
  // We don't want to collapse/extand item when clicking
46
46
  (e) => e.stopPropagation()
47
47
  ), children: t(z, { src: o, style: { height: "auto", width: "auto", maxHeight: "90px", maxWidth: "50px" }, preview: {
48
- mask: t(k, { icon: A })
49
- } }) }), O = ({ title: o, description: e, tagProps: l, disabled: i }) => {
48
+ mask: t(k, { icon: T })
49
+ } }) }), O = ({ title: o, description: e, tagProps: i, disabled: l }) => {
50
50
  let a = "kit-collapse-header-content";
51
- return a += o !== void 0 && e !== void 0 ? " kit-collapse-header-content-rows" : "", f("div", { className: a, children: [l !== void 0 && t("div", { className: "kit-collapse-header-tag", children: t(T, { ...l, disabled: i ?? l.disabled }) }), o !== void 0 && t(g.Text, { className: "kit-collapse-header-content-title", size: "fontSize5", weight: "bold", ellipsis: { tooltip: !0 }, disabled: i, children: o }), e !== void 0 && t(g.Text, { className: "kit-collapse-header-content-description", size: "fontSize5", ellipsis: { tooltip: !0 }, disabled: i, children: e })] });
52
- }, w = ({ onSwitchChange: o, imageSrc: e, title: l, description: i, tagProps: a, disabled: n = !1 }) => f("div", { className: `${u["kit-collapse-header"]}`, children: [o !== void 0 && t($, { onSwitchChange: o, disabled: n }), e !== void 0 && t(j, { imageSrc: e }), t(O, { title: l, description: i, tagProps: a, disabled: n })] });
53
- w.displayName = "KitHeader";
54
- const B = w, F = ({ actions: o, disabled: e }) => {
55
- var l;
56
- const [i, a] = N(!1), { locale: n } = P(), c = o[0] ? o[0] : null, r = o.length <= 2 && o[1] ? o[1] : null;
51
+ return a += o !== void 0 && e !== void 0 ? " kit-collapse-header-content-rows" : "", f("div", { className: a, children: [i !== void 0 && t("div", { className: "kit-collapse-header-tag", children: t(D, { ...i, disabled: l ?? i.disabled }) }), o !== void 0 && t(g.Text, { className: "kit-collapse-header-content-title", size: "fontSize5", weight: "bold", ellipsis: !0, withTooltip: !0, disabled: l, children: o }), e !== void 0 && t(g.Text, { className: "kit-collapse-header-content-description", size: "fontSize5", ellipsis: !0, withTooltip: !0, disabled: l, children: e })] });
52
+ }, K = ({ onSwitchChange: o, imageSrc: e, title: i, description: l, tagProps: a, disabled: n = !1 }) => f("div", { className: `${u["kit-collapse-header"]}`, children: [o !== void 0 && t($, { onSwitchChange: o, disabled: n }), e !== void 0 && t(j, { imageSrc: e }), t(O, { title: i, description: l, tagProps: a, disabled: n })] });
53
+ K.displayName = "KitHeader";
54
+ const B = K, F = ({ actions: o, disabled: e }) => {
55
+ var i;
56
+ const [l, a] = N(!1), { locale: n } = P(), c = o[0] ? o[0] : null, r = o.length <= 2 && o[1] ? o[1] : null;
57
57
  return f("div", { className: "kit-collapse-header-extra-actions", children: [c && t(h, { title: c.label, open: e ? !1 : void 0, children: t(v, { icon: c.icon, disabled: e, onClick: (s) => {
58
58
  s.stopPropagation(), c.onClick && c.onClick(s);
59
59
  } }) }), r && t(h, { title: r.label, open: e ? !1 : void 0, children: t(v, { icon: r.icon, disabled: e, onClick: (s) => {
@@ -62,18 +62,18 @@ const B = w, F = ({ actions: o, disabled: e }) => {
62
62
  s.stopPropagation();
63
63
  }, children: t(b, { menu: {
64
64
  items: L({ actions: o })
65
- }, trigger: ["click"], onOpenChange: () => a(!1), children: t(h, { title: (l = n.Collapse) === null || l === void 0 ? void 0 : l.more, open: e ? !1 : i, onOpenChange: a, children: t(v, { icon: t(k, { icon: I }), disabled: e }) }) }) })] });
65
+ }, trigger: ["click"], onOpenChange: () => a(!1), children: t(h, { title: (i = n.Collapse) === null || i === void 0 ? void 0 : i.more, open: e ? !1 : l, onOpenChange: a, children: t(v, { icon: t(k, { icon: A }), disabled: e }) }) }) })] });
66
66
  }, L = ({ actions: o }) => {
67
67
  const e = [...o];
68
- return e.splice(0, 1), e.map((i, a) => ({
68
+ return e.splice(0, 1), e.map((l, a) => ({
69
69
  key: a,
70
- icon: i.icon,
71
- label: i.label,
72
- onClick: (n) => i.onClick && i.onClick(n)
70
+ icon: l.icon,
71
+ label: l.label,
72
+ onClick: (n) => l.onClick && l.onClick(n)
73
73
  }));
74
74
  }, H = ({ actions: o, disabled: e = !1 }) => t("div", { className: `${u["kit-collapse-header-extra"]}`, children: o !== void 0 && t(F, { actions: o, disabled: e }) });
75
75
  H.displayName = "KitHeaderExtra";
76
- const V = H, x = K;
76
+ const V = H, x = w;
77
77
  x.displayName = "KitCollapse";
78
78
  x.Header = B;
79
79
  x.HeaderExtra = V;
@@ -1,4 +1,4 @@
1
- import "../../../assets/index51.css";
1
+ import "../../../assets/index50.css";
2
2
  import { jsxs as r, jsx as e } from "react/jsx-runtime";
3
3
  import { Empty as p } from "antd";
4
4
  import { u as m } from "../../../chunks/useKitTheme.KSAU-Pdv.js";
@@ -1,4 +1,4 @@
1
- import "../../../assets/index50.css";
1
+ import "../../../assets/index49.css";
2
2
  import { jsxs as r, jsx as c } from "react/jsx-runtime";
3
3
  import { Suspense as v } from "react";
4
4
  import { Empty as d } from "antd";
@@ -1,22 +1,34 @@
1
1
  import "../../../assets/index2.css";
2
- import { jsxs as l, jsx as r } from "react/jsx-runtime";
2
+ import { jsxs as c, jsx as t } from "react/jsx-runtime";
3
3
  import n from "classnames";
4
- import { u as x } from "../../../chunks/useKitTheme.KSAU-Pdv.js";
5
- import { KitTypography as m } from "../../General/Typography/index.js";
6
- import { K as y } from "../../../chunks/Avatar.N2w2jq_C.js";
7
- const g = {
8
- "kit-id-card": "_kit-id-card_mmcks_2"
9
- }, k = (o, i, t) => {
10
- const s = n("kit-id-card-title", {
11
- "kit-id-card-title-large": i === "large"
4
+ import { t as D, T as y } from "../../../chunks/constants.15jUQk8h.js";
5
+ import { u as v } from "../../../chunks/useKitTheme.KSAU-Pdv.js";
6
+ import { K as N } from "../../../chunks/Avatar.N2w2jq_C.js";
7
+ import { KitTooltip as m } from "../Tooltip/index.js";
8
+ const T = {
9
+ "kit-id-card": "_kit-id-card_1go5o_2"
10
+ }, h = [
11
+ D["kit-typography-text"],
12
+ "ant-typography",
13
+ "ant-typography-text",
14
+ "ant-typography-ellipsis",
15
+ "ant-typography-ellipsis-single-line"
16
+ ], _ = (a, i, r, o) => {
17
+ const s = n("kit-id-card-title", ...h, "kit-typography-fontSize5", "ant-typography-bold", {
18
+ "kit-id-card-title-large": i === "large",
19
+ "ant-typography-disabled": r
12
20
  });
13
- return r(m.Text, { className: s, size: "fontSize5", weight: "bold", ellipsis: { tooltip: !0 }, disabled: t, children: o });
14
- }, D = (o, i, t) => {
15
- const s = i === "medium" ? "fontSize7" : "fontSize5";
16
- return r(m.Text, { size: s, ellipsis: { tooltip: !0 }, disabled: t, className: "kit-id-card-decription", children: o });
17
- }, K = ({ className: o, title: i, description: t, avatarProps: s, size: c = "medium", disabled: e = !1, ...p }) => {
18
- const { appId: u } = x(), h = n(u, g["kit-id-card"], o), f = s !== void 0, d = i !== void 0, a = t !== void 0, v = d || a;
19
- return l("div", { className: `${h} id-card-grid`, ...p, children: [f && r("div", { className: "card-avatar", children: r(y, { ...s, disabled: e }) }), v && l("div", { className: "card-info", children: [d && k(i, c, e), a && D(t, c, e)] })] });
21
+ return t("span", { className: s, children: t(m, { title: o ? "" : a, mouseEnterDelay: y, children: t("span", { children: a }) }) });
22
+ }, E = (a, i, r, o) => {
23
+ const s = n("kit-id-card-description", ...h, "ant-typography-regular", {
24
+ "kit-typography-fontSize5": i !== "medium",
25
+ "kit-typography-fontSize7": i === "medium",
26
+ "ant-typography-disabled": r
27
+ });
28
+ return t("span", { className: s, children: t(m, { title: o ? "" : a, mouseEnterDelay: y, children: t("span", { children: a }) }) });
29
+ }, K = ({ className: a, title: i, description: r, avatarProps: o, size: s = "medium", disabled: e = !1, disableTooltip: p = !1, ...g }) => {
30
+ const { appId: u } = v(), f = n(u, T["kit-id-card"], a), k = o !== void 0, l = i !== void 0, d = r !== void 0, x = l || d;
31
+ return c("div", { className: `${f} id-card-grid`, ...g, children: [k && t("div", { className: "card-avatar", children: t(N, { ...o, disabled: e }) }), x && c("div", { className: "card-info", children: [l && _(i, s, e, p), d && E(r, s, e, p)] })] });
20
32
  };
21
33
  K.displayName = "KitIdCard";
22
34
  export {
@@ -7,4 +7,5 @@ export interface IKitIdCard extends KitHTMLAttributes<HTMLDivElement> {
7
7
  title?: string;
8
8
  description?: string;
9
9
  disabled?: boolean;
10
+ disableTooltip?: boolean;
10
11
  }
@@ -1,6 +1,6 @@
1
1
  import "../../../assets/index29.css";
2
2
  import { jsx as i, jsxs as l } from "react/jsx-runtime";
3
- import { useState as B, useEffect as V, forwardRef as X } from "react";
3
+ import { useState as A, useEffect as V, forwardRef as X } from "react";
4
4
  import Y from "classnames";
5
5
  import { KitTypography as w } from "../../General/Typography/index.js";
6
6
  import { KitCheckbox as Z } from "../../DataEntry/Checkbox/index.js";
@@ -8,26 +8,26 @@ import { KitSwitch as G } from "../../DataEntry/Switch/index.js";
8
8
  import { KitBreadcrumb as ii } from "../../Navigation/Breadcrumb/index.js";
9
9
  import { u as ti } from "../../../chunks/useKitTheme.KSAU-Pdv.js";
10
10
  import { KitTag as ei } from "../Tag/index.js";
11
- import { KitButton as A } from "../../General/Button/index.js";
12
- import { KitTooltip as oi } from "../Tooltip/index.js";
11
+ import { KitButton as B } from "../../General/Button/index.js";
12
+ import { KitTooltip as si } from "../Tooltip/index.js";
13
13
  import { FontAwesomeIcon as _ } from "@fortawesome/react-fontawesome";
14
- import { faEllipsis as si, faImage as ri } from "@fortawesome/free-solid-svg-icons";
14
+ import { faEllipsis as oi, faImage as ri } from "@fortawesome/free-solid-svg-icons";
15
15
  import { KitDropDown as ai } from "../../Navigation/DropDown/index.js";
16
16
  import { u as di } from "../../../chunks/useKitLocale.96CdK3og.js";
17
17
  import { useDebouncedCallback as ci } from "use-debounce";
18
18
  const ni = {
19
19
  "kit-item-card": "_kit-item-card_308fs_2"
20
20
  }, z = () => {
21
- const [d, a] = B(window.innerWidth), [o, r] = B(window.innerHeight), t = ci(() => {
21
+ const [d, a] = A(window.innerWidth), [s, r] = A(window.innerHeight), t = ci(() => {
22
22
  a(window.innerWidth), r(window.innerHeight);
23
23
  }, 100);
24
- return V(() => (t(), window.addEventListener("resize", t), () => window.removeEventListener("resize", t)), [t]), { width: d, height: o };
25
- }, li = 1300, E = ({ display: d = "card", disabled: a = !1, actions: o }) => {
24
+ return V(() => (t(), window.addEventListener("resize", t), () => window.removeEventListener("resize", t)), [t]), { width: d, height: s };
25
+ }, li = 1300, E = ({ display: d = "card", disabled: a = !1, actions: s }) => {
26
26
  var r;
27
27
  const { locale: t } = di(), { width: c } = z();
28
- return i("div", { className: "kit-item-card-actions", children: d === "list" && c < li ? i(ai, { disabled: a, menu: { items: o }, children: i(A, { title: (r = t.General) === null || r === void 0 ? void 0 : r.more, icon: i(_, { icon: si }) }) }) : o == null ? void 0 : o.map((s) => i(oi, { title: s.label, children: i(A, { icon: s.icon, onClick: s.onClick, disabled: s.disabled || a }) }, s.key)) });
29
- }, R = 900, mi = X(({ className: d, style: a, imageSrc: o, icon: r, tagGroup: t, breadcrumbItems: c, title: s, description: m, draggableHandler: u, selected: D, onSelect: g, activateLabel: H, activated: L, onActivate: y, extra: C, actions: h, display: n = "card", disabled: e = !1, imageAlt: O = "", imageCover: W = !1 }, j) => {
30
- const { appId: S } = ti(), { width: T } = z(), N = g !== void 0, x = u !== void 0, F = o !== void 0, P = r !== void 0, p = t !== void 0, K = c !== void 0, $ = s !== void 0 || m !== void 0, b = C !== void 0, q = y !== void 0, k = h !== void 0, I = [p, K, b].filter(Boolean).length, f = n === "list" && T > R, v = n === "card" || T <= R, J = Y(ni["kit-item-card"], d, S, {
28
+ return i("div", { className: "kit-item-card-actions", children: d === "list" && c < li ? i(ai, { disabled: a, menu: { items: s }, children: i(B, { title: (r = t.General) === null || r === void 0 ? void 0 : r.more, icon: i(_, { icon: oi }) }) }) : s == null ? void 0 : s.map((o) => i(si, { title: o.label, children: i(B, { icon: o.icon, onClick: o.onClick, disabled: o.disabled || a }) }, o.key)) });
29
+ }, R = 900, mi = X(({ className: d, style: a, imageSrc: s, icon: r, tagGroup: t, breadcrumbItems: c, title: o, description: m, draggableHandler: u, selected: D, onSelect: g, activateLabel: H, activated: L, onActivate: y, extra: C, actions: h, display: n = "card", disabled: e = !1, imageAlt: O = "", imageCover: W = !1 }, j) => {
30
+ const { appId: S } = ti(), { width: T } = z(), N = g !== void 0, x = u !== void 0, F = s !== void 0, P = r !== void 0, p = t !== void 0, K = c !== void 0, $ = o !== void 0 || m !== void 0, b = C !== void 0, q = y !== void 0, k = h !== void 0, I = [p, K, b].filter(Boolean).length, f = n === "list" && T > R, v = n === "card" || T <= R, J = Y(ni["kit-item-card"], d, S, {
31
31
  "kit-item-card-display-list": f,
32
32
  "kit-item-card-display-card": v,
33
33
  [`kit-item-card-display-list-with-${I}-rows`]: f && I > 0,
@@ -39,7 +39,7 @@ const ni = {
39
39
  });
40
40
  e && p && (t.tags = t.tags.map((U) => ({ ...U, disabled: e })), t.othersTagDisabled = !0);
41
41
  const M = i("div", { className: "kit-item-card-checkbox", children: i(Z, { onChange: g, checked: D, disabled: e }) }), Q = i("div", { className: "kit-item-card-draggable-handler", children: u });
42
- return l("div", { tabIndex: e ? -1 : 0, className: J, style: a, ref: j, children: [N && M, x && Q, l("div", { className: "kit-item-card-image", children: [F ? i("img", { src: o, alt: O }) : i("div", { className: "kit-item-card-image-placeholder", children: P ? r : i(_, { icon: ri }) }), i("div", { className: "kit-item-card-actions-mask" }), k && v && i(E, { actions: h, disabled: e, display: "card" })] }), p && i("div", { className: "kit-item-card-tags", style: { width: n === "card" ? "inherit" : "auto" }, children: i(ei.Group, { tags: t.tags, othersTagType: t.othersTagType, othersTagDisabled: t.othersTagDisabled }) }), K && i("div", { className: "kit-item-card-breadcrumb", children: i(ii, { items: c }) }), $ && l("div", { className: "kit-item-card-content", children: [s && i(w.Title, { level: "h3", ellipsis: { tooltip: !0, rows: 2 }, disabled: e, children: s }), m && i(w.Paragraph, { ellipsis: { tooltip: !0, rows: 2 }, disabled: e, children: m })] }), b && i("div", { className: "kit-item-card-extra", children: C }), k && f && i(E, { actions: h, disabled: e, display: n }), q && l("div", { className: "kit-item-card-switch", children: [i(G, { onChange: y, checked: L, disabled: e }), i(w.Text, { disabled: e, ellipsis: { tooltip: !0 }, children: H })] })] });
42
+ return l("div", { tabIndex: e ? -1 : 0, className: J, style: a, ref: j, children: [N && M, x && Q, l("div", { className: "kit-item-card-image", children: [F ? i("img", { src: s, alt: O }) : i("div", { className: "kit-item-card-image-placeholder", children: P ? r : i(_, { icon: ri }) }), i("div", { className: "kit-item-card-actions-mask" }), k && v && i(E, { actions: h, disabled: e, display: "card" })] }), p && i("div", { className: "kit-item-card-tags", style: { width: n === "card" ? "inherit" : "auto" }, children: i(ei.Group, { tags: t.tags, othersTagType: t.othersTagType, othersTagDisabled: t.othersTagDisabled }) }), K && i("div", { className: "kit-item-card-breadcrumb", children: i(ii, { items: c }) }), $ && l("div", { className: "kit-item-card-content", children: [o && i(w.AdvancedTitle, { level: "h3", ellipsis: { tooltip: !0, rows: 2 }, disabled: e, children: o }), m && i(w.AdvancedParagraph, { ellipsis: { tooltip: !0, rows: 2 }, disabled: e, children: m })] }), b && i("div", { className: "kit-item-card-extra", children: C }), k && f && i(E, { actions: h, disabled: e, display: n }), q && l("div", { className: "kit-item-card-switch", children: [i(G, { onChange: y, checked: L, disabled: e }), i(w.Text, { disabled: e, ellipsis: !0, children: H })] })] });
43
43
  });
44
44
  mi.displayName = "KitItemCard";
45
45
  export {
@@ -1,4 +1,4 @@
1
- import "../../../assets/index25.css";
1
+ import "../../../assets/index24.css";
2
2
  import { jsx as i, jsxs as d, Fragment as x } from "react/jsx-runtime";
3
3
  import T from "classnames";
4
4
  import { forwardRef as _ } from "react";
@@ -6,11 +6,11 @@ import { u as B } from "../../../chunks/useKitTheme.KSAU-Pdv.js";
6
6
  import { FontAwesomeIcon as f } from "@fortawesome/react-fontawesome";
7
7
  import { faEllipsis as g, faArrowRight as P } from "@fortawesome/free-solid-svg-icons";
8
8
  import { KitIcon as C } from "../../General/Icon/index.js";
9
- import { KitTypography as K } from "../../General/Typography/index.js";
9
+ import { KitTypography as A } from "../../General/Typography/index.js";
10
10
  import { KitDivider as F } from "../../Layout/Divider/index.js";
11
11
  import { KitButton as k } from "../../General/Button/index.js";
12
12
  import { KitTooltip as L } from "../Tooltip/index.js";
13
- import { KitDropDown as A } from "../../Navigation/DropDown/index.js";
13
+ import { KitDropDown as K } from "../../Navigation/DropDown/index.js";
14
14
  import { u as j } from "../../../chunks/useKitLocale.96CdK3og.js";
15
15
  const G = {
16
16
  "kit-redirect-card": "_kit-redirect-card_poxps_2"
@@ -22,12 +22,12 @@ const G = {
22
22
  const o = r.length < 4;
23
23
  let c;
24
24
  if (m && r.length > 1)
25
- c = i(A, { disabled: e, menu: { items: r }, children: i(k, { title: (n = l.General) === null || n === void 0 ? void 0 : n.more, type: "secondary", icon: i(f, { icon: g }), disableSecureClick: !0, onClick: (t) => t.stopPropagation() }) });
25
+ c = i(K, { disabled: e, menu: { items: r }, children: i(k, { title: (n = l.General) === null || n === void 0 ? void 0 : n.more, type: "secondary", icon: i(f, { icon: g }), disableSecureClick: !0, onClick: (t) => t.stopPropagation() }) });
26
26
  else if (o)
27
27
  c = r.map((t) => i(N, { action: t, disabled: e }, t.key));
28
28
  else {
29
29
  const [t, p, ...h] = r;
30
- c = d(x, { children: [[t, p].map((a) => i(N, { action: a, disabled: e }, a.key)), i(A, { disabled: e, menu: { items: h }, children: i(k, { title: (s = l.General) === null || s === void 0 ? void 0 : s.more, type: "secondary", icon: i(f, { icon: g }), disableSecureClick: !0, onClick: (a) => a.stopPropagation() }) })] });
30
+ c = d(x, { children: [[t, p].map((a) => i(N, { action: a, disabled: e }, a.key)), i(K, { disabled: e, menu: { items: h }, children: i(k, { title: (s = l.General) === null || s === void 0 ? void 0 : s.more, type: "secondary", icon: i(f, { icon: g }), disableSecureClick: !0, onClick: (a) => a.stopPropagation() }) })] });
31
31
  }
32
32
  return i("div", { className: "kit-redirect-card-actions", children: c });
33
33
  }, N = ({ action: r, disabled: m }) => i(L, { title: r.label, children: i(k, { type: "secondary", icon: r.icon, onClick: (e) => {
@@ -38,7 +38,7 @@ const G = {
38
38
  "kit-redirect-card-with-cover": y,
39
39
  "kit-redirect-card-with-actions": u
40
40
  });
41
- return d("div", { className: R, tabIndex: o ? -1 : 0, style: m, onClick: p, ref: a, children: [u && v && i(w, { actions: c, disabled: o, actionsInDropdown: !!t }), v && i(C, { className: "kit-redirect-card-icon", icon: s }), y && d(x, { children: [d("div", { className: "kit-redirect-card-cover", children: [i("img", { alt: h, src: l }), i("div", { className: "kit-redirect-card-actions-mask" }), u && i(w, { actions: c, actionsInDropdown: !!t, disabled: o })] }), i(F, { noMargin: !0 })] }), d("div", { className: "kit-redirect-card-content", children: [d("section", { children: [i(K.Title, { ellipsis: { tooltip: !0 }, level: "h3", disabled: o, children: e }), n && i(K.Paragraph, { ellipsis: { rows: D, tooltip: n }, disabled: o, children: n })] }), i(C, { className: "kit-redirect-card-redirect-icon", icon: i(f, { icon: P }) })] })] });
41
+ return d("div", { className: R, tabIndex: o ? -1 : 0, style: m, onClick: p, ref: a, children: [u && v && i(w, { actions: c, disabled: o, actionsInDropdown: !!t }), v && i(C, { className: "kit-redirect-card-icon", icon: s }), y && d(x, { children: [d("div", { className: "kit-redirect-card-cover", children: [i("img", { alt: h, src: l }), i("div", { className: "kit-redirect-card-actions-mask" }), u && i(w, { actions: c, actionsInDropdown: !!t, disabled: o })] }), i(F, { noMargin: !0 })] }), d("div", { className: "kit-redirect-card-content", children: [d("section", { children: [i(A.Title, { ellipsis: !0, level: "h3", disabled: o, children: e }), n && i(A.AdvancedParagraph, { ellipsis: { rows: D, tooltip: n }, disabled: o, children: n })] }), i(C, { className: "kit-redirect-card-redirect-icon", icon: i(f, { icon: P }) })] })] });
42
42
  });
43
43
  M.displayName = "KitRedirectCard";
44
44
  export {
@@ -1,104 +1,106 @@
1
- import "../../../assets/index45.css";
1
+ import "../../../assets/index44.css";
2
2
  import { jsx as o } from "react/jsx-runtime";
3
- import { forwardRef as z, useMemo as k } from "react";
4
- import { Table as w } from "antd";
3
+ import { forwardRef as O, useMemo as _ } from "react";
4
+ import { Table as y } from "antd";
5
5
  import g from "classnames";
6
- import { u as O } from "../../../chunks/useKitTheme.KSAU-Pdv.js";
7
- import { KitIcon as U } from "../../General/Icon/index.js";
8
- import { FontAwesomeIcon as _ } from "@fortawesome/react-fontawesome";
9
- import { faUpDown as W, faArrowDown as M, faArrowUp as B, faGripLines as F, faCaretDown as G, faCaretRight as $ } from "@fortawesome/free-solid-svg-icons";
6
+ import { u as U } from "../../../chunks/useKitTheme.KSAU-Pdv.js";
7
+ import { KitIcon as W } from "../../General/Icon/index.js";
8
+ import { FontAwesomeIcon as k } from "@fortawesome/react-fontawesome";
9
+ import { faUpDown as M, faArrowDown as B, faArrowUp as F, faGripLines as G, faCaretDown as $, faCaretRight as q } from "@fortawesome/free-solid-svg-icons";
10
10
  import { KitButton as I } from "../../General/Button/index.js";
11
- const y = {
12
- "kit-table": "_kit-table_bvvfm_2",
13
- "expand-button": "_expand-button_bvvfm_661"
14
- }, x = (i) => {
15
- const l = i == null ? void 0 : i.split(" "), t = l == null ? void 0 : l.filter((a) => a !== "ant-table-cell").join(" "), r = l == null ? void 0 : l.filter((a) => ["ant-table-cell", "ant-table-cell-ellipsis", "ant-table-selection-column"].includes(a)).join(" ");
11
+ const w = {
12
+ "kit-table": "_kit-table_1sgby_2",
13
+ "expand-button": "_expand-button_1sgby_667"
14
+ }, x = (n) => {
15
+ const l = n == null ? void 0 : n.split(" "), t = l == null ? void 0 : l.filter((a) => a !== "ant-table-cell").join(" "), r = l == null ? void 0 : l.filter((a) => ["ant-table-cell", "ant-table-cell-ellipsis", "ant-table-selection-column"].includes(a)).join(" ");
16
16
  return {
17
17
  antCell: t,
18
18
  internalCell: r
19
19
  };
20
- }, q = (i) => ({
20
+ }, E = (n) => ({
21
21
  header: {
22
- cell: ({ children: l, className: t, style: r, title: a, rowSpan: f, colSpan: u, ...b }) => {
22
+ cell: ({ children: l, className: t, style: r, title: a, rowSpan: b, colSpan: u, ...h }) => {
23
23
  const s = x(t);
24
- return o("th", { className: s.antCell, style: r, title: a, rowSpan: f, colSpan: u, ...b, children: o("div", { className: s.internalCell, children: l }) });
24
+ return o("th", { className: s.antCell, style: r, title: a, rowSpan: b, colSpan: u, ...h, children: o("div", { className: s.internalCell, children: l }) });
25
25
  }
26
26
  },
27
27
  body: {
28
- cell: ({ children: l, className: t, style: r, title: a, rowSpan: f, colSpan: u, ...b }) => {
29
- var s, c;
30
- const h = (s = i == null ? void 0 : i.body) === null || s === void 0 ? void 0 : s.cell, n = x(t);
31
- let C = "";
32
- return !((c = n.antCell) === null || c === void 0) && c.includes("ant-table-cell-ellipsis") && (C = a), o("td", { className: n.antCell, style: r, title: C, rowSpan: f, colSpan: u, children: o("div", { className: n.internalCell, children: h ? o(h, { title: a, ...b, children: l }) : l }) });
28
+ cell: ({ children: l, className: t, style: r, title: a, rowSpan: b, colSpan: u, ...h }) => {
29
+ var s, f;
30
+ const v = (s = n == null ? void 0 : n.body) === null || s === void 0 ? void 0 : s.cell, C = x(t);
31
+ let i = "";
32
+ return !((f = C.antCell) === null || f === void 0) && f.includes("ant-table-cell-ellipsis") && (i = a), o("td", { className: C.antCell, style: r, title: i, rowSpan: b, colSpan: u, children: o("div", { className: C.internalCell, children: v ? o(v, { title: a, ...h, children: l }) : l }) });
33
33
  },
34
34
  row: ({ children: l, ...t }) => {
35
35
  var r;
36
- const a = (r = i == null ? void 0 : i.body) === null || r === void 0 ? void 0 : r.row;
36
+ const a = (r = n == null ? void 0 : n.body) === null || r === void 0 ? void 0 : r.row;
37
37
  return a ? o(a, { ...t, tabIndex: 0, children: l }) : o("tr", { ...t, tabIndex: 0, children: l });
38
38
  }
39
39
  }
40
- }), E = ({ sortOrder: i }) => {
40
+ }), J = ({ sortOrder: n }) => {
41
41
  let l, t;
42
- switch (i) {
42
+ switch (n) {
43
43
  case "ascend":
44
- l = B, t = "blue";
44
+ l = F, t = "blue";
45
45
  break;
46
46
  case "descend":
47
- l = M, t = "blue";
47
+ l = B, t = "blue";
48
48
  break;
49
49
  default:
50
- l = W;
50
+ l = M;
51
51
  break;
52
52
  }
53
- return o(U, { color: t, icon: o(_, { icon: l }) });
54
- }, N = z(({ className: i, isDragging: l, ...t }, r) => {
55
- const a = g("kit-table-drag-handle", i, { "kit-table-drag-handle--dragging": l });
56
- return o(I, { ...t, iconSize: "l", type: "tertiary", className: a, icon: o(_, { icon: F }), ref: r });
57
- }), J = ({ className: i, style: l, cellsBackgroundColor: t, backgroundColor: r, borderedRows: a, columns: f, onChange: u, components: b, showDragHandle: s, dragHandleElement: c, lineSize: h = "l", ...n }) => {
58
- const { appId: C, theme: T } = O(), A = g(C, y["kit-table"], i, {
59
- "kit-table-line-size-m": h === "m",
60
- "kit-table-bordered-rows": a
61
- }), p = k(() => n != null && n.rowSelection ? { ...n == null ? void 0 : n.rowSelection, columnWidth: "var(--kit-table-checkbox-width)" } : n == null ? void 0 : n.rowSelection, [n == null ? void 0 : n.rowSelection]), K = k(() => {
62
- const e = [...f].map((v) => s ? {
63
- ...v,
53
+ return o(W, { color: t, icon: o(k, { icon: l }) });
54
+ }, N = O(({ className: n, isDragging: l, ...t }, r) => {
55
+ const a = g("kit-table-drag-handle", n, { "kit-table-drag-handle--dragging": l });
56
+ return o(I, { ...t, iconSize: "l", type: "tertiary", className: a, icon: o(k, { icon: G }), ref: r });
57
+ }), Q = ({ className: n, style: l, cellsBackgroundColor: t, backgroundColor: r, borderedRows: a, columns: b, onChange: u, components: h, showDragHandle: s, showHeader: f, dragHandleElement: v, lineSize: C = "l", ...i }) => {
58
+ const { appId: T, theme: A } = U(), K = g(T, w["kit-table"], n, {
59
+ "kit-table-line-size-m": C === "m",
60
+ "kit-table-bordered-rows": a,
61
+ "kit-table-headless": !f
62
+ }), p = _(() => i != null && i.rowSelection ? { ...i == null ? void 0 : i.rowSelection, columnWidth: "var(--kit-table-checkbox-width)" } : i == null ? void 0 : i.rowSelection, [i == null ? void 0 : i.rowSelection]), R = _(() => {
63
+ const e = [...b].map((c) => s ? {
64
+ ...c,
64
65
  sorter: void 0
65
- } : (v.sorter && (v.sortIcon = ({ sortOrder: m }) => o(E, { sortOrder: m })), v));
66
- return s && (p && e.unshift(w.SELECTION_COLUMN), e.unshift({
66
+ } : (c.sorter && (c.sortIcon = ({ sortOrder: m }) => o(J, { sortOrder: m })), c));
67
+ return s && (p && e.unshift(y.SELECTION_COLUMN), e.unshift({
67
68
  key: "drag-handle",
68
69
  align: "center",
69
- render: () => c ?? o(N, {})
70
+ render: () => v ?? o(N, {})
70
71
  })), e;
71
- }, [f, p, s, c]), R = (e, v, m, d) => {
72
+ }, [b, p, s, v]), D = (e, c, m, d) => {
72
73
  u == null || u(e, m, d);
73
- }, D = ({ record: e, expanded: v, onExpand: m }) => {
74
+ }, L = ({ record: e, expanded: c, onExpand: m }) => {
74
75
  var d;
75
76
  if (!(!Array.isArray(e == null ? void 0 : e.children) || !(!((d = e == null ? void 0 : e.children) === null || d === void 0) && d.length)))
76
- return o(I, { className: y["expand-button"], type: "tertiary", onClick: (j) => m(e, j), children: o(_, { icon: v ? G : $ }) });
77
- }, L = (e, v, m) => {
77
+ return o(I, { className: w["expand-button"], type: "tertiary", onClick: (z) => m(e, z), children: o(k, { icon: c ? $ : q }) });
78
+ }, j = (e, c, m) => {
78
79
  var d;
79
80
  return m > 0 && (!Array.isArray(e == null ? void 0 : e.children) || !(!((d = e == null ? void 0 : e.children) === null || d === void 0) && d.length)) ? "last-expandable-level" : "";
80
81
  };
81
- return o(w, {
82
- className: A,
82
+ return o(y, {
83
+ className: K,
83
84
  style: {
84
85
  "--kit-table-cells-background-color": t,
85
86
  "--kit-table-background": r,
86
87
  ...l
87
88
  },
88
- columns: K,
89
- components: q(b),
90
- onChange: R,
89
+ columns: R,
90
+ components: E(h),
91
+ onChange: D,
91
92
  // Pour l'instant on garde expandable dans les props à Omit<>
92
93
  // A voir si on permet de custom uniquement certaines propriété
93
94
  expandable: {
94
- expandedRowClassName: L,
95
- expandIcon: D,
96
- indentSize: T.spacing.m
95
+ expandedRowClassName: j,
96
+ expandIcon: L,
97
+ indentSize: A.spacing.m
97
98
  },
98
- ...n,
99
- rowSelection: p
99
+ ...i,
100
+ rowSelection: p,
101
+ showHeader: f
100
102
  });
101
- }, S = J;
103
+ }, S = Q;
102
104
  S.displayName = "KitTable";
103
105
  S.DragHandle = N;
104
106
  export {