aristid-ds 13.0.0 → 14.0.0-4765aca

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 (128) hide show
  1. package/CHANGELOG.md +61 -4
  2. package/README.md +9 -0
  3. package/dist/Kit/Ant/index.d.ts +1 -0
  4. package/dist/Kit/App/index.js +15 -15
  5. package/dist/Kit/DataDisplay/Collapse/index.js +26 -26
  6. package/dist/Kit/DataDisplay/Empty/index.js +1 -1
  7. package/dist/Kit/DataDisplay/Error/index.js +1 -1
  8. package/dist/Kit/DataDisplay/IdCard/index.js +29 -16
  9. package/dist/Kit/DataDisplay/IdCard/types.d.ts +1 -0
  10. package/dist/Kit/DataDisplay/ItemCard/index.js +24 -23
  11. package/dist/Kit/DataDisplay/ItemList/index.js +31 -30
  12. package/dist/Kit/DataDisplay/RedirectCard/index.js +28 -27
  13. package/dist/Kit/DataDisplay/Table/index.js +60 -57
  14. package/dist/Kit/DataDisplay/Tabs/index.js +16 -15
  15. package/dist/Kit/DataDisplay/Tag/index.js +54 -53
  16. package/dist/Kit/DataDisplay/Tag/types.d.ts +1 -0
  17. package/dist/Kit/DataDisplay/Tree/index.js +5 -5
  18. package/dist/Kit/DataEntry/AutoComplete/index.js +21 -20
  19. package/dist/Kit/DataEntry/Checkbox/index.js +2 -2
  20. package/dist/Kit/DataEntry/ColorPicker/index.js +51 -49
  21. package/dist/Kit/DataEntry/DatePicker/index.js +27 -26
  22. package/dist/Kit/DataEntry/Input/index.js +1 -1
  23. package/dist/Kit/DataEntry/InputNumber/index.js +1 -1
  24. package/dist/Kit/DataEntry/InputWrapper/index.js +1 -1
  25. package/dist/Kit/DataEntry/Radio/index.js +1 -1
  26. package/dist/Kit/DataEntry/RichText/MenuBar/ButtonTooltip/index.js +4 -4
  27. package/dist/Kit/DataEntry/RichText/MenuBar/ButtonTooltip/types.d.ts +1 -0
  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 +55 -57
  37. package/dist/Kit/DataEntry/TreeSelect/index.d.ts +4 -0
  38. package/dist/Kit/DataEntry/TreeSelect/index.js +84 -0
  39. package/dist/Kit/DataEntry/TreeSelect/renders.d.ts +7 -0
  40. package/dist/Kit/DataEntry/TreeSelect/types.d.ts +19 -0
  41. package/dist/Kit/DataEntry/TreeSelect/useIcons.d.ts +10 -0
  42. package/dist/Kit/DataEntry/Upload/UploadedItem.d.ts +4 -0
  43. package/dist/Kit/DataEntry/Upload/convertBytes.d.ts +2 -0
  44. package/dist/Kit/DataEntry/Upload/getBase64.d.ts +2 -0
  45. package/dist/Kit/DataEntry/Upload/index.d.ts +2 -8
  46. package/dist/Kit/DataEntry/Upload/index.js +81 -26
  47. package/dist/Kit/DataEntry/Upload/types.d.ts +30 -12
  48. package/dist/Kit/Feedback/Alert/index.js +7 -7
  49. package/dist/Kit/Feedback/Modal/index.js +29 -28
  50. package/dist/Kit/Feedback/Notification/index.js +1 -1
  51. package/dist/Kit/Feedback/Progress/index.js +1 -1
  52. package/dist/Kit/Feedback/Skeleton/index.js +1 -1
  53. package/dist/Kit/Feedback/SnackBar/index.js +15 -15
  54. package/dist/Kit/General/Button/index.js +48 -47
  55. package/dist/Kit/General/Button/types.d.ts +2 -1
  56. package/dist/Kit/General/Typography/AdvancedLink.d.ts +4 -0
  57. package/dist/Kit/General/Typography/AdvancedParagraph.d.ts +4 -0
  58. package/dist/Kit/General/Typography/AdvancedText.d.ts +4 -0
  59. package/dist/Kit/General/Typography/AdvancedTitle.d.ts +4 -0
  60. package/dist/Kit/General/Typography/Link.d.ts +4 -2
  61. package/dist/Kit/General/Typography/Paragraph.d.ts +4 -2
  62. package/dist/Kit/General/Typography/Text.d.ts +4 -2
  63. package/dist/Kit/General/Typography/Title.d.ts +5 -3
  64. package/dist/Kit/General/Typography/commons.d.ts +11 -1
  65. package/dist/Kit/General/Typography/index.js +117 -49
  66. package/dist/Kit/General/Typography/types.d.ts +31 -3
  67. package/dist/Kit/Navigation/DropDown/index.js +34 -19
  68. package/dist/Kit/Navigation/Header/index.js +28 -27
  69. package/dist/Kit/Navigation/PageHeader/index.js +1 -1
  70. package/dist/Kit/Navigation/Pagination/index.js +1 -1
  71. package/dist/Kit/Navigation/SidePanel/index.js +47 -52
  72. package/dist/Kit/Navigation/Steps/index.js +1 -1
  73. package/dist/Kit/index.d.ts +1 -0
  74. package/dist/Kit/index.js +121 -119
  75. package/dist/assets/InputWrapper.css +1 -1
  76. package/dist/assets/index19.css +1 -1
  77. package/dist/assets/index2.css +1 -1
  78. package/dist/assets/index20.css +1 -1
  79. package/dist/assets/index21.css +1 -1
  80. package/dist/assets/index22.css +1 -1
  81. package/dist/assets/index28.css +1 -1
  82. package/dist/assets/index29.css +1 -1
  83. package/dist/assets/index30.css +1 -1
  84. package/dist/assets/index31.css +1 -1
  85. package/dist/assets/index41.css +1 -1
  86. package/dist/assets/index42.css +1 -1
  87. package/dist/assets/index43.css +1 -1
  88. package/dist/assets/index44.css +1 -1
  89. package/dist/assets/index45.css +1 -1
  90. package/dist/assets/index46.css +1 -1
  91. package/dist/assets/index47.css +1 -1
  92. package/dist/assets/index48.css +1 -1
  93. package/dist/assets/index49.css +1 -1
  94. package/dist/assets/index6.css +1 -1
  95. package/dist/assets/index9.css +1 -1
  96. package/dist/assets/styles.css +1 -0
  97. package/dist/assets/styles2.css +1 -0
  98. package/dist/assets/useGetPopupContainer.css +1 -0
  99. package/dist/chunks/InputWrapper.aaS2HSev.js +24 -0
  100. package/dist/chunks/{KitNotification.RhW3PPyX.js → KitNotification.DzpYf5_j.js} +9 -9
  101. package/dist/chunks/{SnackBarProvider.nqDzpFo3.js → SnackBarProvider.T-xLQpTN.js} +10 -10
  102. package/dist/chunks/constants.DINGxt3I.js +6 -0
  103. package/dist/chunks/styles.module.shsViPAW.js +9 -0
  104. package/dist/chunks/styles.module.yyuyuWqr.js +7 -0
  105. package/dist/chunks/useGetPopupContainer.P08HT2xF.js +18 -0
  106. package/dist/index.es.js +127 -125
  107. package/dist/index.umd.js +4 -4
  108. package/dist/theme/types/index.d.ts +0 -2
  109. package/dist/translation/en-US/components/DataEntry/RichText/index.js +2 -1
  110. package/dist/translation/en-US/components/DataEntry/Upload/index.d.ts +2 -0
  111. package/dist/translation/en-US/components/DataEntry/Upload/index.js +11 -0
  112. package/dist/translation/en-US/index.js +6 -4
  113. package/dist/translation/fr-FR/components/DataEntry/RichText/index.js +2 -1
  114. package/dist/translation/fr-FR/components/DataEntry/Upload/index.d.ts +2 -0
  115. package/dist/translation/fr-FR/components/DataEntry/Upload/index.js +11 -0
  116. package/dist/translation/fr-FR/index.js +8 -6
  117. package/dist/translation/types/components/DataEntry/RichText/index.d.ts +1 -0
  118. package/dist/translation/types/components/DataEntry/Upload/index.d.ts +8 -0
  119. package/dist/translation/types/index.d.ts +2 -0
  120. package/dist/utils/constants.d.ts +3 -0
  121. package/dist/utils/hooks/useGetPopupContainer.d.ts +6 -0
  122. package/package.json +164 -164
  123. package/dist/assets/index50.css +0 -1
  124. package/dist/assets/index51.css +0 -1
  125. package/dist/chunks/InputWrapper.DPygx2dQ.js +0 -23
  126. package/dist/theme/aristid/components/DataEntry/Upload/index.d.ts +0 -3
  127. package/dist/theme/aristid/components/DataEntry/Upload/index.js +0 -55
  128. package/dist/theme/types/components/DataEntry/Upload/index.d.ts +0 -178
package/CHANGELOG.md CHANGED
@@ -1,5 +1,61 @@
1
1
  # Changelog
2
2
 
3
+ ## [X.Y.Z](https://www.npmjs.com/package/aristid-ds/v/X.Y.Z) (2025-MM-DD)
4
+
5
+ ### 🐛 Bug Fixes
6
+
7
+ - **DropDown:**
8
+ - Clicking outside the `DropDown` now closes it even when inside an iframe (@philippechevieux)
9
+ - Keep the `DropDown` open when selecting items (@philippechevieux)
10
+
11
+ ### ✨ Features
12
+
13
+ - **All components with a DropDown**:
14
+ - All components using a dropdown inside a `SidePanel` component, will render the dropdown inside the `SidePanel`, to avoid issues with the `closeOnOutsideClick` property of `SidePanel` (@evoiron)
15
+
16
+ ## [14.0.0](https://www.npmjs.com/package/aristid-ds/v/14.0.0) (2025-05-20)
17
+
18
+ ### ✨ Features
19
+
20
+ - **Typography**:
21
+ - Original `Text`, `Link`, `Title` and `Paragraph` have been renamed to `AdvancedText`, `AdvancedLink`, `AdvancedTitle` and `AdvancedParagraph`. (@evoiron)
22
+ - `Text`, `Link`, `Title` and `Paragraph` components are now lightweight versions of original ones providing only basic features. (@evoiron)
23
+ - Added `withTooltip` prop for non Advanced versions to add a tooltip which is now not displayed by deefault when content is ellipsed. (@evoiron)
24
+ - **IdCard**:
25
+ - Remove use of `Typography.Text` component (@evoiron)
26
+ - Add `disableTooltip` property to disable tooltip on title and description (@evoiron)
27
+ - **⚠️ Breaking change - Upload**:
28
+ - Remove the following properties: (@philippechevieux)
29
+ - `listType`
30
+ - `itemRender`
31
+ - `openFileDialogOnClick`
32
+ - `loading`
33
+ - `isImageUrl`
34
+ - `imageUrl`
35
+ - `progress`
36
+ - `previewFile`
37
+ - `showUploadList`
38
+ - Update component render (@philippechevieux)
39
+ - **RichText**:
40
+ - Add `mini` property to display a minified version of the component (@renaudamsellem)
41
+ - **SidePanel**:
42
+ - Add opening and closing animations (@philippechevieux)
43
+
44
+ ### 🐛 Bug Fixes
45
+
46
+ - **Modal:**
47
+ - KitModal.setAppElement was defined in typescript but not implemented (@evoiron)
48
+ - **Tag:**
49
+ - Hide `closeIcon` for tags in a group if handleCloseTag is not provided (@philippechevieux)
50
+ - Remove tooltip for other tags in TagGroup (@NicoSourimant)
51
+ - **DatePicker/RangePicker**
52
+ - Fix color of prefix icon when component is `disabled`, in `warning` or `error` status (@philippechevieux)
53
+
54
+ ### 📚 Documentation
55
+
56
+ - **Tree**:
57
+ - Add exemple of a long title with ellipsis (@philippechevieux)
58
+
3
59
  ## [13.0.0](https://www.npmjs.com/package/aristid-ds/v/13.0.0) (2025-02-17)
4
60
 
5
61
  ### ✨ CI
@@ -60,10 +116,6 @@ The following points are the impact of this version upgrade:
60
116
 
61
117
  ### ✨ Features
62
118
 
63
- - **Snackbar**:
64
- - Add `snackbarId` property to allow to update a snackbar (@evoiron)
65
- - **Button**:
66
- - Add `action` type button (@evoiron)
67
119
  - **⚠️ Breaking change - Tree**:
68
120
  - Remove `showLine` and `switcherIcon` properties (@philippechevieux)
69
121
  - Update component render (@philippechevieux)
@@ -72,12 +124,17 @@ The following points are the impact of this version upgrade:
72
124
  - Complete rewriting of the `Progress` component without Ant (@philippechevieux)
73
125
  - Remove all Ant props (@philippechevieux)
74
126
  - `circle` and `dashboard` type are no longer available (@philippechevieux)
127
+ - **Snackbar**:
128
+ - Add `snackbarId` property to allow to update a snackbar (@evoiron)
129
+ - **Button**:
130
+ - Add `action` type button (@evoiron)
75
131
  - **Tabs**:
76
132
  - Add controlled state to handle navigation within tabs (@renaudamsellem)
77
133
  - **SidePanel**:
78
134
  - Add `headerExtra` prop to display extra content above header title (@philippechevieux)
79
135
 
80
136
  ### 🐛 Bug Fixes
137
+
81
138
  - **SidePanel**
82
139
  - Fix `closeOnOutsideClick` behavior to listen to `click` event instead on `mousedeown` (@evoiron)
83
140
  - **ColorPicker**
package/README.md CHANGED
@@ -122,6 +122,15 @@ import {KitButton, Kitcheckbox} from 'aristid-ds';
122
122
 
123
123
  <br/>
124
124
 
125
+ ### Usage via Docker
126
+
127
+ We provide a containerized way to develop on the project. You need to have [Docker](https://www.docker.com/) installed
128
+ on your computer. The docker stack allows you to add stories to storybook and change in live the changes.
129
+
130
+ ```shell
131
+ docker compose up -d
132
+ ```
133
+
125
134
  ## Development
126
135
 
127
136
  ### Code structure
@@ -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';
@@ -1,21 +1,21 @@
1
- import "../../assets/index28.css";
1
+ import "../../assets/index29.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
@@ -4,10 +4,10 @@ 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/index49.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/index48.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,35 @@
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 } from "../../../chunks/styles.module.shsViPAW.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 y } from "../Tooltip/index.js";
8
+ import { T as m } from "../../../chunks/constants.DINGxt3I.js";
9
+ const T = {
10
+ "kit-id-card": "_kit-id-card_1go5o_2"
11
+ }, h = [
12
+ D["kit-typography-text"],
13
+ "ant-typography",
14
+ "ant-typography-text",
15
+ "ant-typography-ellipsis",
16
+ "ant-typography-ellipsis-single-line"
17
+ ], _ = (a, i, r, o) => {
18
+ const s = n("kit-id-card-title", ...h, "kit-typography-fontSize5", "ant-typography-bold", {
19
+ "kit-id-card-title-large": i === "large",
20
+ "ant-typography-disabled": r
12
21
  });
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)] })] });
22
+ return t("span", { className: s, children: t(y, { title: o ? "" : a, mouseEnterDelay: m, children: t("span", { children: a }) }) });
23
+ }, E = (a, i, r, o) => {
24
+ const s = n("kit-id-card-description", ...h, "ant-typography-regular", {
25
+ "kit-typography-fontSize5": i !== "medium",
26
+ "kit-typography-fontSize7": i === "medium",
27
+ "ant-typography-disabled": r
28
+ });
29
+ return t("span", { className: s, children: t(y, { title: o ? "" : a, mouseEnterDelay: m, children: t("span", { children: a }) }) });
30
+ }, K = ({ className: a, title: i, description: r, avatarProps: o, size: s = "medium", disabled: e = !1, disableTooltip: p = !1, ...g }) => {
31
+ 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;
32
+ 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
33
  };
21
34
  K.displayName = "KitIdCard";
22
35
  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
- import "../../../assets/index29.css";
1
+ import "../../../assets/index30.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 b, useEffect as Q, forwardRef as V } 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,40 +8,41 @@ 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";
13
- import { FontAwesomeIcon as _ } from "@fortawesome/react-fontawesome";
14
- import { faEllipsis as si, faImage as ri } from "@fortawesome/free-solid-svg-icons";
11
+ import { KitButton as B } from "../../General/Button/index.js";
12
+ import { KitTooltip as si } from "../Tooltip/index.js";
13
+ import { FontAwesomeIcon as O } from "@fortawesome/react-fontawesome";
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
- const ni = {
18
+ import { N as ni, F as li } from "../../../chunks/constants.DINGxt3I.js";
19
+ const mi = {
19
20
  "kit-item-card": "_kit-item-card_308fs_2"
20
- }, z = () => {
21
- const [d, a] = B(window.innerWidth), [o, r] = B(window.innerHeight), t = ci(() => {
21
+ }, L = () => {
22
+ const [d, a] = b(window.innerWidth), [s, r] = b(window.innerHeight), t = ci(() => {
22
23
  a(window.innerWidth), r(window.innerHeight);
23
24
  }, 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 }) => {
25
+ return Q(() => (t(), window.addEventListener("resize", t), () => window.removeEventListener("resize", t)), [t]), { width: d, height: s };
26
+ }, hi = 1300, _ = ({ display: d = "card", disabled: a = !1, actions: s }) => {
26
27
  var r;
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
+ const { locale: t } = di(), { width: c } = L();
29
+ return i("div", { className: "kit-item-card-actions", children: d === "list" && c < hi ? i(ai, { disabled: a, menu: { items: s }, children: i(B, { title: (r = t.General) === null || r === void 0 ? void 0 : r.more, icon: i(O, { 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)) });
30
+ }, E = 900, pi = V(({ className: d, style: a, imageSrc: s, icon: r, tagGroup: t, breadcrumbItems: c, title: o, description: m, draggableHandler: u, selected: D, onSelect: g, activateLabel: R, activated: z, onActivate: y, extra: C, actions: h, display: n = "card", disabled: e = !1, imageAlt: F = "", imageCover: H = !1 }, S) => {
31
+ const { appId: W } = ti(), { width: N } = L(), T = g !== void 0, x = u !== void 0, j = s !== void 0, U = r !== void 0, p = t !== void 0, I = c !== void 0, X = o !== void 0 || m !== void 0, K = C !== void 0, P = y !== void 0, k = h !== void 0, A = [p, I, K].filter(Boolean).length, f = n === "list" && N > E, v = n === "card" || N <= E, $ = Y(mi["kit-item-card"], d, W, {
31
32
  "kit-item-card-display-list": f,
32
33
  "kit-item-card-display-card": v,
33
- [`kit-item-card-display-list-with-${I}-rows`]: f && I > 0,
34
- "kit-item-card-display-card-checkbox-or-draggable-handler": v && (N || x),
34
+ [`kit-item-card-display-list-with-${A}-rows`]: f && A > 0,
35
+ "kit-item-card-display-card-checkbox-or-draggable-handler": v && (T || x),
35
36
  "kit-item-card-disabled": e,
36
37
  "kit-item-card-selected": D,
37
38
  "kit-item-card-with-actions": k,
38
- "kit-item-card-image-cover": W
39
+ "kit-item-card-image-cover": H
39
40
  });
40
- e && p && (t.tags = t.tags.map((U) => ({ ...U, disabled: e })), t.othersTagDisabled = !0);
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 })] })] });
41
+ e && p && (t.tags = t.tags.map((M) => ({ ...M, disabled: e })), t.othersTagDisabled = !0);
42
+ const q = i("div", { className: "kit-item-card-checkbox", children: i(Z, { onChange: g, checked: D, disabled: e }) }), J = i("div", { className: "kit-item-card-draggable-handler", children: u });
43
+ return l("div", { tabIndex: e ? ni : li, className: $, style: a, ref: S, children: [T && q, x && J, l("div", { className: "kit-item-card-image", children: [j ? i("img", { src: s, alt: F }) : i("div", { className: "kit-item-card-image-placeholder", children: U ? r : i(O, { icon: ri }) }), i("div", { className: "kit-item-card-actions-mask" }), k && v && i(_, { 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 }) }), I && i("div", { className: "kit-item-card-breadcrumb", children: i(ii, { items: c }) }), X && 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 })] }), K && i("div", { className: "kit-item-card-extra", children: C }), k && f && i(_, { actions: h, disabled: e, display: n }), P && l("div", { className: "kit-item-card-switch", children: [i(G, { onChange: y, checked: z, disabled: e }), i(w.Text, { disabled: e, ellipsis: !0, children: R })] })] });
43
44
  });
44
- mi.displayName = "KitItemCard";
45
+ pi.displayName = "KitItemCard";
45
46
  export {
46
- mi as KitItemCard
47
+ pi as KitItemCard
47
48
  };
@@ -1,55 +1,56 @@
1
1
  import "../../../assets/index4.css";
2
- import { jsxs as v, jsx as t, Fragment as C } from "react/jsx-runtime";
3
- import { forwardRef as J, useState as M } from "react";
4
- import { KitCheckbox as O } from "../../DataEntry/Checkbox/index.js";
5
- import { KitIdCard as Q } from "../IdCard/index.js";
6
- import { KitButton as d } from "../../General/Button/index.js";
7
- import { KitDropDown as x } from "../../Navigation/DropDown/index.js";
8
- import { u as W } from "../../../chunks/useKitTheme.KSAU-Pdv.js";
9
- import { FontAwesomeIcon as w } from "@fortawesome/react-fontawesome";
10
- import { faEllipsis as N } from "@fortawesome/free-solid-svg-icons";
11
- import b from "classnames";
12
- import { u as X } from "../../../chunks/useKitLocale.96CdK3og.js";
2
+ import { jsxs as f, jsx as t, Fragment as C } from "react/jsx-runtime";
3
+ import { forwardRef as z, useState as H } from "react";
4
+ import { KitCheckbox as J } from "../../DataEntry/Checkbox/index.js";
5
+ import { KitIdCard as M } from "../IdCard/index.js";
6
+ import { KitButton as p } from "../../General/Button/index.js";
7
+ import { KitDropDown as N } from "../../Navigation/DropDown/index.js";
8
+ import { u as Q } from "../../../chunks/useKitTheme.KSAU-Pdv.js";
9
+ import { FontAwesomeIcon as x } from "@fortawesome/react-fontawesome";
10
+ import { faEllipsis as E } from "@fortawesome/free-solid-svg-icons";
11
+ import B from "classnames";
12
+ import { u as S } from "../../../chunks/useKitLocale.96CdK3og.js";
13
+ import { N as W, F as Y } from "../../../chunks/constants.DINGxt3I.js";
13
14
  const m = {
14
15
  "kit-item-list": "_kit-item-list_1rfhx_2",
15
16
  "kit-item-list-buttons": "_kit-item-list-buttons_1rfhx_42",
16
17
  "kit-item-list-selected": "_kit-item-list-selected_1rfhx_49",
17
18
  "kit-item-list-id-card": "_kit-item-list-id-card_1rfhx_60",
18
19
  "kit-item-list-clickable": "_kit-item-list-clickable_1rfhx_64"
19
- }, Y = J(({ idCardProps: o, idCardSubstitute: p, checkboxAriaLabel: h, draggableHandler: D, content: _, error: c, onSelect: a, onClick: f, className: E, showActionsOnHover: F, disabled: l = !1, actions: n = [], actionsInDropdown: L, ...j }, B) => {
20
- const { appId: G } = W(), { locale: y } = X(), [k, g] = M(!1), K = a !== void 0, T = n.length < 4, U = o !== void 0 && p === void 0, V = p !== void 0, A = () => {
20
+ }, Z = z(({ idCardProps: o, idCardSubstitute: d, checkboxAriaLabel: h, draggableHandler: D, content: v, error: r, onSelect: a, onClick: _, className: F, showActionsOnHover: w, disabled: l = !1, actions: n = [], actionsInDropdown: A, ...L }, T) => {
21
+ const { appId: b } = Q(), { locale: y } = S(), [k, g] = H(!1), I = a !== void 0, U = n.length < 4, O = o !== void 0 && d === void 0, j = d !== void 0, G = () => {
21
22
  var i;
22
- return K ? t(O, { danger: c, disabled: l, checked: k, onClick: (s) => s.stopPropagation(), onChange: () => {
23
+ return I ? t(J, { danger: r, disabled: l, checked: k, onClick: (s) => s.stopPropagation(), onChange: () => {
23
24
  const s = !k;
24
25
  return g(s), a(s);
25
26
  }, "aria-label": (i = h ?? (o == null ? void 0 : o.title)) !== null && i !== void 0 ? i : o == null ? void 0 : o.description }) : null;
26
- }, R = () => {
27
- var i, r;
28
- const s = b(m["kit-item-list-buttons"], {
29
- "kit-item-list-buttons-visible-on-hover": F
27
+ }, V = () => {
28
+ var i, c;
29
+ const s = B(m["kit-item-list-buttons"], {
30
+ "kit-item-list-buttons-visible-on-hover": w
30
31
  });
31
- return n && n.length !== 0 && t("div", { className: s, onClick: (e) => e.stopPropagation(), children: L && n.length > 1 ? t(x, { disabled: l, menu: { items: n }, children: t(d, { danger: c, title: (i = y.General) === null || i === void 0 ? void 0 : i.more, type: "tertiary", icon: t(w, { icon: N }) }) }) : T ? t(C, { children: n.map((e) => t(d, { danger: c, disabled: e.disabled || l, type: "tertiary", icon: e.icon, onClick: e.onClick, title: e.title }, e.key)) }) : v(C, { children: [[0, 1].map((e) => t(d, { danger: c, disabled: l, type: "tertiary", icon: n[e].icon, onClick: n[e].onClick, title: n[e].title })), t(x, { disabled: l, menu: { items: n.slice(2) }, children: t(d, { danger: c, title: (r = y.General) === null || r === void 0 ? void 0 : r.more, type: "tertiary", icon: t(w, { icon: N }) }) })] }) });
32
- }, q = () => v("div", { className: m["kit-item-list-id-card"], children: [U && t(Q, { ...o, disabled: l }), V && p] }), z = () => _ && t("div", { className: m["kit-item-list-content"], children: _ }), I = (i) => {
32
+ return n && n.length !== 0 && t("div", { className: s, onClick: (e) => e.stopPropagation(), children: A && n.length > 1 ? t(N, { disabled: l, menu: { items: n }, children: t(p, { danger: r, title: (i = y.General) === null || i === void 0 ? void 0 : i.more, type: "tertiary", icon: t(x, { icon: E }) }) }) : U ? t(C, { children: n.map((e) => t(p, { danger: r, disabled: e.disabled || l, type: "tertiary", icon: e.icon, onClick: e.onClick, title: e.title }, e.key)) }) : f(C, { children: [[0, 1].map((e) => t(p, { danger: r, disabled: l, type: "tertiary", icon: n[e].icon, onClick: n[e].onClick, title: n[e].title })), t(N, { disabled: l, menu: { items: n.slice(2) }, children: t(p, { danger: r, title: (c = y.General) === null || c === void 0 ? void 0 : c.more, type: "tertiary", icon: t(x, { icon: E }) }) })] }) });
33
+ }, X = () => f("div", { className: m["kit-item-list-id-card"], children: [O && t(M, { ...o, disabled: l }), j && d] }), R = () => v && t("div", { className: m["kit-item-list-content"], children: v }), K = (i) => {
33
34
  if (i.stopPropagation(), l)
34
35
  return;
35
- const r = (u) => "key" in u;
36
- if (i.type === "click" || r(i) && ["Enter", " "].includes(i.key)) {
37
- if (f != null)
38
- return f();
36
+ const c = (u) => "key" in u;
37
+ if (i.type === "click" || c(i) && ["Enter", " "].includes(i.key)) {
38
+ if (_ != null)
39
+ return _();
39
40
  if (a != null) {
40
41
  const u = !k;
41
42
  return g(u), a(u);
42
43
  }
43
44
  }
44
- }, H = b(G, m["kit-item-list"], E, {
45
- [m["kit-item-list-clickable"]]: K || f != null,
45
+ }, q = B(b, m["kit-item-list"], F, {
46
+ [m["kit-item-list-clickable"]]: I || _ != null,
46
47
  [m["kit-item-list-selected"]]: k,
47
48
  "kit-item-list-disabled": l,
48
- "kit-item-list-on-error": c
49
+ "kit-item-list-on-error": r
49
50
  });
50
- return v("div", { "aria-disabled": l, ref: B, tabIndex: l ? -1 : 0, className: H, onClick: I, onKeyUp: I, ...j, children: [D, A(), q(), z(), R()] });
51
+ return f("div", { "aria-disabled": l, ref: T, tabIndex: l ? W : Y, className: q, onClick: K, onKeyUp: K, ...L, children: [D, G(), X(), R(), V()] });
51
52
  });
52
- Y.displayName = "KitItemList";
53
+ Z.displayName = "KitItemList";
53
54
  export {
54
- Y as KitItemList
55
+ Z as KitItemList
55
56
  };