aristid-ds 15.0.0-e096093 → 15.1.0-020ccc8

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 (119) hide show
  1. package/CHANGELOG.md +27 -1
  2. package/README.md +14 -0
  3. package/dist/Kit/App/index.js +46 -52
  4. package/dist/Kit/DataDisplay/Avatar/index.js +2 -2
  5. package/dist/Kit/DataDisplay/Badge/index.js +1 -1
  6. package/dist/Kit/DataDisplay/Collapse/index.js +2 -2
  7. package/dist/Kit/DataDisplay/Comment/index.js +1 -1
  8. package/dist/Kit/DataDisplay/Empty/index.js +1 -1
  9. package/dist/Kit/DataDisplay/Error/index.js +2 -2
  10. package/dist/Kit/DataDisplay/IdCard/index.js +2 -2
  11. package/dist/Kit/DataDisplay/Image/index.js +2 -2
  12. package/dist/Kit/DataDisplay/ItemCard/index.js +2 -2
  13. package/dist/Kit/DataDisplay/ItemList/index.js +2 -2
  14. package/dist/Kit/DataDisplay/RedirectCard/index.js +15 -15
  15. package/dist/Kit/DataDisplay/Table/index.js +23 -23
  16. package/dist/Kit/DataDisplay/Tabs/index.js +64 -61
  17. package/dist/Kit/DataDisplay/Tag/index.js +52 -52
  18. package/dist/Kit/DataDisplay/Tour/index.js +1 -1
  19. package/dist/Kit/DataDisplay/Tree/index.js +11 -11
  20. package/dist/Kit/DataEntry/AutoComplete/index.js +1 -1
  21. package/dist/Kit/DataEntry/Checkbox/index.js +2 -2
  22. package/dist/Kit/DataEntry/ColorPicker/index.js +3 -3
  23. package/dist/Kit/DataEntry/DatePicker/index.js +2 -2
  24. package/dist/Kit/DataEntry/Filter/index.js +1 -1
  25. package/dist/Kit/DataEntry/Input/index.js +2 -2
  26. package/dist/Kit/DataEntry/InputNumber/index.js +2 -2
  27. package/dist/Kit/DataEntry/InputWrapper/index.js +1 -1
  28. package/dist/Kit/DataEntry/Radio/index.js +2 -2
  29. package/dist/Kit/DataEntry/Rate/index.js +8 -8
  30. package/dist/Kit/DataEntry/RichText/EditorContentCharacterCount/index.js +1 -1
  31. package/dist/Kit/DataEntry/RichText/MenuBar/FontSizeSelect/index.js +1 -1
  32. package/dist/Kit/DataEntry/RichText/MenuBar/FontStylesButtons/index.js +1 -1
  33. package/dist/Kit/DataEntry/RichText/MenuBar/IndentListButtons/index.js +1 -1
  34. package/dist/Kit/DataEntry/RichText/MenuBar/LinkButton/index.js +1 -1
  35. package/dist/Kit/DataEntry/RichText/MenuBar/ListButtons/index.js +1 -1
  36. package/dist/Kit/DataEntry/RichText/MenuBar/TextAlignButtons/index.js +1 -1
  37. package/dist/Kit/DataEntry/RichText/MenuBar/UndoRedoButtons/index.js +1 -1
  38. package/dist/Kit/DataEntry/RichText/MenuBar/index.js +2 -2
  39. package/dist/Kit/DataEntry/RichText/index.js +38 -38
  40. package/dist/Kit/DataEntry/SearchInput/index.js +2 -2
  41. package/dist/Kit/DataEntry/Select/index.js +50 -50
  42. package/dist/Kit/DataEntry/Slider/index.js +1 -1
  43. package/dist/Kit/DataEntry/Switch/index.js +5 -5
  44. package/dist/Kit/DataEntry/TreeSelect/index.js +25 -24
  45. package/dist/Kit/DataEntry/Upload/index.js +2 -2
  46. package/dist/Kit/Feedback/Alert/index.js +2 -2
  47. package/dist/Kit/Feedback/Loader/index.js +1 -1
  48. package/dist/Kit/Feedback/Modal/index.js +8 -8
  49. package/dist/Kit/Feedback/Notification/index.js +1 -1
  50. package/dist/Kit/Feedback/Progress/index.js +7 -7
  51. package/dist/Kit/Feedback/SnackBar/index.js +1 -1
  52. package/dist/Kit/General/Button/index.js +2 -2
  53. package/dist/Kit/General/DynamicActions/index.js +1 -1
  54. package/dist/Kit/General/Icon/index.js +1 -1
  55. package/dist/Kit/General/Typography/index.js +1 -1
  56. package/dist/Kit/Layout/Divider/index.js +1 -1
  57. package/dist/Kit/Layout/Space/index.js +1 -1
  58. package/dist/Kit/Navigation/Breadcrumb/index.js +8 -8
  59. package/dist/Kit/Navigation/DropDown/index.js +1 -1
  60. package/dist/Kit/Navigation/Header/index.js +1 -1
  61. package/dist/Kit/Navigation/PageHeader/index.js +1 -1
  62. package/dist/Kit/Navigation/Pagination/index.js +4 -4
  63. package/dist/Kit/Navigation/SideMenu/index.js +1 -1
  64. package/dist/Kit/Navigation/SidePanel/index.js +1 -1
  65. package/dist/Kit/Navigation/Steps/index.js +1 -1
  66. package/dist/Kit/index.js +2 -2
  67. package/dist/assets/Thread.css +1 -1
  68. package/dist/assets/index17.css +1 -1
  69. package/dist/assets/index21.css +1 -1
  70. package/dist/assets/index24.css +1 -1
  71. package/dist/assets/index28.css +1 -1
  72. package/dist/assets/index30.css +1 -1
  73. package/dist/assets/index38.css +1 -1
  74. package/dist/assets/index41.css +1 -1
  75. package/dist/assets/index42.css +1 -1
  76. package/dist/assets/index45.css +1 -1
  77. package/dist/assets/index5.css +1 -1
  78. package/dist/assets/index7.css +1 -1
  79. package/dist/assets/index8.css +1 -1
  80. package/dist/assets/index9.css +1 -1
  81. package/dist/chunks/{Avatar.D0il2_w4.js → Avatar.B2Q0k3WU.js} +1 -1
  82. package/dist/chunks/{InputWrapper.C8J9OC0v.js → InputWrapper.D7QArlvo.js} +1 -1
  83. package/dist/chunks/Thread.DfvaoSxN.js +25 -0
  84. package/dist/chunks/index.CKC2Gl0d.js +23 -0
  85. package/dist/chunks/{useKitLocale.DD7mnAZn.js → useKitLocale.C5F-tmnC.js} +3 -3
  86. package/dist/chunks/{useKitTheme.C7yw6CDw.js → useKitTheme.BdeSOGoj.js} +3 -3
  87. package/dist/index.es.js +4 -4
  88. package/dist/index.umd.js +4 -4
  89. package/dist/translation/pt-PT/components/DataDisplay/Collapse/index.d.ts +2 -0
  90. package/dist/translation/pt-PT/components/DataDisplay/Collapse/index.js +7 -0
  91. package/dist/translation/pt-PT/components/DataDisplay/Empty/index.d.ts +2 -0
  92. package/dist/translation/pt-PT/components/DataDisplay/Empty/index.js +6 -0
  93. package/dist/translation/pt-PT/components/DataDisplay/Error/index.d.ts +2 -0
  94. package/dist/translation/pt-PT/components/DataDisplay/Error/index.js +6 -0
  95. package/dist/translation/pt-PT/components/DataDisplay/Image/index.d.ts +2 -0
  96. package/dist/translation/pt-PT/components/DataDisplay/Image/index.js +6 -0
  97. package/dist/translation/pt-PT/components/DataDisplay/ItemList/index.d.ts +2 -0
  98. package/dist/translation/pt-PT/components/DataDisplay/ItemList/index.js +8 -0
  99. package/dist/translation/pt-PT/components/DataDisplay/Tabs/index.d.ts +2 -0
  100. package/dist/translation/pt-PT/components/DataDisplay/Tabs/index.js +6 -0
  101. package/dist/translation/pt-PT/components/DataEntry/ColorPicker/index.d.ts +2 -0
  102. package/dist/translation/pt-PT/components/DataEntry/ColorPicker/index.js +6 -0
  103. package/dist/translation/pt-PT/components/DataEntry/RichText/index.d.ts +2 -0
  104. package/dist/translation/pt-PT/components/DataEntry/RichText/index.js +31 -0
  105. package/dist/translation/pt-PT/components/DataEntry/Upload/index.d.ts +2 -0
  106. package/dist/translation/pt-PT/components/DataEntry/Upload/index.js +11 -0
  107. package/dist/translation/pt-PT/components/Feedback/Alert/index.d.ts +2 -0
  108. package/dist/translation/pt-PT/components/Feedback/Alert/index.js +6 -0
  109. package/dist/translation/pt-PT/components/General/Button/index.d.ts +2 -0
  110. package/dist/translation/pt-PT/components/General/Button/index.js +7 -0
  111. package/dist/translation/pt-PT/general/index.d.ts +2 -0
  112. package/dist/translation/pt-PT/general/index.js +13 -0
  113. package/dist/translation/pt-PT/index.d.ts +2 -0
  114. package/dist/translation/pt-PT/index.js +28 -0
  115. package/dist/translation/types/index.d.ts +1 -1
  116. package/dist/translation/utils/index.js +2 -13
  117. package/dist/translation/utils/localesByLang.d.ts +11 -0
  118. package/package.json +5 -5
  119. package/dist/chunks/Thread.Cidp9fdK.js +0 -25
package/CHANGELOG.md CHANGED
@@ -4,10 +4,26 @@
4
4
 
5
5
  ### ✨ Features
6
6
 
7
+ - **Locales:**
8
+ - Add `portuguese` locale (@evoiron)
9
+ - Update locale context to simplify the process of adding a locale (@evoiron)
10
+
11
+ ### 🐛 Bug Fixes
12
+
13
+ - **Tabs:**
14
+ - Fix alignment issue causing Pill Tabs not to be centered within their parent element (@YanDevDz)
15
+
16
+ ## [15.1.0](https://www.npmjs.com/package/aristid-ds/v/15.1.0) (2026-02-24)
17
+
18
+ ### ✨ Features
19
+
7
20
  - **⚠️ Breaking change - Table**:
8
21
  - Keep table generic by removing `getRowClassName` function (@baloche)
9
22
  - **Modal:**
10
23
  - Add `extraRight` prop to display extra right content (@philippechevieux)
24
+ - **SearchInput:**
25
+ - Set minimum width to the SearchInput component (@alechapelain)
26
+ - Adapt icon color based on state and input content (@alechapelain)
11
27
 
12
28
  ### 🐛 Bug Fixes
13
29
 
@@ -16,11 +32,21 @@
16
32
  - **Badge:**
17
33
  - Remove default `title` tooltip on Badge component (if needed we can use a `KitTooltip` component) (@philippechevieux)
18
34
  - Fix warning when Badge component is used inside a Tooltip component (@alechapelain)
35
+ - **Table:**
36
+ - Fix pagination position (@cedeymard9)
37
+ - Fix background color issue when header is sticky (@cedeymard9)
38
+ - **Select:**
39
+ - Use `<KitIdCard/>` component as children instead of `idCardProps` deprecated property (@cedeymard9)
40
+ - **TreeSelect:**
41
+ - Use `<KitIdCard/>` component as children instead of `idCardProps` deprecated property (@cedeymard9)
42
+ - Fix scrolling issue (@cedeymard9)
19
43
 
20
44
  ### 📚 Documentation
21
45
 
22
- - Changelog:
46
+ - **Changelog:**
23
47
  - Add `Changelog` page to storybook (@evoiron)
48
+ - **Collapse:**
49
+ - Remove link that no longer exists (@cedeymard9)
24
50
 
25
51
  ## [15.0.0](https://www.npmjs.com/package/aristid-ds/v/15.0.0) (2026-01-23)
26
52
 
package/README.md CHANGED
@@ -22,6 +22,7 @@ ARiSTiD Design System Readme.
22
22
  - [Component code](#component-code)
23
23
  - [Component theming](#component-theming)
24
24
  - [Component documentation](#component-documentation)
25
+ - [Adding a locale](#add-a-locale)
25
26
  - [Nightly build](#nightly-build)
26
27
  - [Important](#important)
27
28
  - [Contributing](#contributing)
@@ -456,6 +457,19 @@ Every components **style** of the design system can be **override** by tokens.
456
457
 
457
458
  After the script run, section `Design Tokens` documentation is up to date with all design tokens.
458
459
 
460
+ #### Add a new locale
461
+
462
+ 1. **create a new directory for the new locale in `src/translation`**
463
+
464
+ You can duplicate src/translations/enUS and name it according to the locale code you're adding (ptPT for ortuguese, enUS for english, etc.). Then update your tranlsations in each fileinside his new directory.
465
+
466
+ 2. **Add the locale code to the list of known languages**
467
+
468
+ - Edit the file `src/translation/utils/localesByLang.ts`, and your locale datas. import the translations from `antd` and the translations from the directory you created in previous step. Then Update `localesByLang` and `antdLocalesByLang` objects . Be careful of the naming, it must match the locale. Refer to the existing locales in this file.
469
+ - Edit `src/translation/types/index.d.ts`, and add your locale code to `LanguageSupported``
470
+
471
+ That's it. The locale is now available. It is also available in th locale selector in storybook.
472
+
459
473
  ## Nightly build
460
474
 
461
475
  A nightly version of the package is published on daily basis on branch develop (assuming new commits have been pushed on develop branch). To use it just install the more recent next version :
@@ -1,66 +1,60 @@
1
- import { jsx as n, jsxs as f, Fragment as h } from "react/jsx-runtime";
2
- import { useState as u, useLayoutEffect as L, useRef as S, useEffect as C } from "react";
3
- import { ConfigProvider as P } from "antd";
4
- import { K as b } from "../../chunks/SnackBarProvider.D44OffUd.js";
5
- import { toCssVariables as g, uuid as y } from "../../utils/functions/index.js";
6
- import a from "lodash/merge";
7
- import { Style as m } from "react-style-tag";
8
- import { K as E } from "../../chunks/useKitTheme.C7yw6CDw.js";
9
- import { KitAristidThemeGeneral as l } from "../../theme/aristid/general/index.js";
10
- import { antdThemeConfig as T } from "../../theme/utils/tokens-mapper/index.js";
11
- import { frFR as d } from "../../translation/fr-FR/index.js";
12
- import { enUS as $ } from "../../translation/en-US/index.js";
13
- import { K as j, u as k } from "../../chunks/useKitLocale.DD7mnAZn.js";
14
- import { mapKitLocaleToAntdLocale as x } from "../../translation/utils/index.js";
15
- import { KitEmpty as p } from "../DataDisplay/Empty/index.js";
16
- import '../../assets/index28.css';const A = "aristid-ds-global", F = (t, e) => {
17
- const o = g(t);
1
+ import { jsx as a, jsxs as g, Fragment as h } from "react/jsx-runtime";
2
+ import { useState as K, useLayoutEffect as S, useRef as b, useEffect as y } from "react";
3
+ import { ConfigProvider as C } from "antd";
4
+ import { K as P } from "../../chunks/SnackBarProvider.D44OffUd.js";
5
+ import { toCssVariables as L, uuid as T } from "../../utils/functions/index.js";
6
+ import p from "lodash/merge";
7
+ import { Style as u } from "react-style-tag";
8
+ import { K as $ } from "../../chunks/useKitTheme.BdeSOGoj.js";
9
+ import { KitAristidThemeGeneral as c } from "../../theme/aristid/general/index.js";
10
+ import { antdThemeConfig as j } from "../../theme/utils/tokens-mapper/index.js";
11
+ import { K as k, u as E } from "../../chunks/useKitLocale.C5F-tmnC.js";
12
+ import { l as m, f, m as x } from "../../chunks/index.CKC2Gl0d.js";
13
+ import { KitEmpty as v } from "../DataDisplay/Empty/index.js";
14
+ import '../../assets/index28.css';const A = "aristid-ds-global", I = (o, e) => {
15
+ const r = L(o);
18
16
  return `
19
17
  .${e} {
20
- ${Object.keys(o).map((r) => `${r}: ${o[r]}`).join(";")}
18
+ ${Object.keys(r).map((t) => `${t}: ${r[t]}`).join(";")}
21
19
  }
22
20
  `;
23
- }, I = ({ children: t, customTheme: e, id: o }) => {
24
- const [r, i] = u(null), { theme: v, appId: c, spacing: K } = R(o, e);
25
- return L(() => {
26
- const s = g(l, "--general");
27
- i(s);
28
- }, []), n(E.Provider, { value: { theme: v, appId: c, spacing: K }, children: r !== null && f(h, { children: [n(m, { id: A, hasSourceMap: !1, children: `
21
+ }, _ = ({ children: o, customTheme: e, id: r }) => {
22
+ const [t, i] = K(null), { theme: n, appId: s, spacing: d } = B(r, e);
23
+ return S(() => {
24
+ const l = L(c, "--general");
25
+ i(l);
26
+ }, []), a($.Provider, { value: { theme: n, appId: s, spacing: d }, children: t !== null && g(h, { children: [a(u, { id: A, hasSourceMap: !1, children: `
29
27
  :root {
30
- ${Object.keys(r).map((s) => `${s}: ${r[s]}`).join(";")}
28
+ ${Object.keys(t).map((l) => `${l}: ${t[l]}`).join(";")}
31
29
  }
32
- ` }), e && n(m, { hasSourceMap: !1, children: F(a({ general: { utilities: l.utilities } }, e), c) }), t] }) });
33
- }, R = (t, e) => {
34
- var o;
35
- const r = S(t || "ds-" + y().substring(0, 8)), i = a(l.spacing, (o = e?.general) === null || o === void 0 ? void 0 : o.spacing);
30
+ ` }), e && a(u, { hasSourceMap: !1, children: I(p({ general: { utilities: c.utilities } }, e), s) }), o] }) });
31
+ }, B = (o, e) => {
32
+ var r;
33
+ const t = b(o || "ds-" + T().substring(0, 8)), i = p(c.spacing, (r = e?.general) === null || r === void 0 ? void 0 : r.spacing);
36
34
  return {
37
- theme: l,
38
- appId: r.current,
35
+ theme: c,
36
+ appId: t.current,
39
37
  spacing: i
40
38
  };
41
- }, _ = ({ children: t }) => {
42
- const e = M();
43
- return n(j.Provider, { value: e, children: t });
44
- }, M = () => {
45
- const [t, e] = u(d);
46
- return { locale: t, setKitLocale: (r) => {
47
- if (r.locale === "frFR") {
48
- const i = a(d, r);
49
- e(i);
50
- } else {
51
- const i = a($, r);
52
- e(i);
53
- }
39
+ }, D = ({ children: o }) => {
40
+ const e = F();
41
+ return a(k.Provider, { value: e, children: o });
42
+ }, F = () => {
43
+ const [o, e] = K(m.frFR);
44
+ return { locale: o, setKitLocale: (t) => {
45
+ var i, n;
46
+ const s = (n = m[(i = t.locale) !== null && i !== void 0 ? i : f]) !== null && n !== void 0 ? n : m[f], d = p(s, t);
47
+ e(d);
54
48
  } };
55
- }, Z = ({ children: t, locale: e, customTheme: o, id: r }) => n(I, { customTheme: o, id: r, children: n(_, { children: n(O, { locale: e, children: t }) }) }), O = ({ children: t, locale: e }) => {
56
- const { locale: o, setKitLocale: r } = k();
57
- return C(() => {
58
- e !== void 0 && r(e);
59
- }, [e, r]), f(P, { theme: T, locale: x(e), renderEmpty: () => {
49
+ }, X = ({ children: o, locale: e, customTheme: r, id: t }) => a(_, { customTheme: r, id: t, children: a(D, { children: a(M, { locale: e, children: o }) }) }), M = ({ children: o, locale: e }) => {
50
+ const { locale: r, setKitLocale: t } = E();
51
+ return y(() => {
52
+ e !== void 0 && t(e);
53
+ }, [e, t]), g(C, { theme: j, locale: x(e), renderEmpty: () => {
60
54
  var i;
61
- return n(p, { className: "default-render", image: p.ASSET_LIST, description: (i = o.Empty) === null || i === void 0 ? void 0 : i.noData });
62
- }, children: [n(b, {}), t] });
55
+ return a(v, { className: "default-render", image: v.ASSET_LIST, description: (i = r.Empty) === null || i === void 0 ? void 0 : i.noData });
56
+ }, children: [a(P, {}), o] });
63
57
  };
64
58
  export {
65
- Z as KitApp
59
+ X as KitApp
66
60
  };
@@ -1,7 +1,7 @@
1
- import { s as t, K as u } from "../../../chunks/Avatar.D0il2_w4.js";
1
+ import { s as t, K as u } from "../../../chunks/Avatar.B2Q0k3WU.js";
2
2
  import { jsx as n } from "react/jsx-runtime";
3
3
  import { Avatar as d } from "antd";
4
- import { u as c } from "../../../chunks/useKitTheme.C7yw6CDw.js";
4
+ import { u as c } from "../../../chunks/useKitTheme.BdeSOGoj.js";
5
5
  import K from "classnames";
6
6
  const f = ({ className: a, disabled: s, max: o, ...v }) => {
7
7
  var r;
@@ -1,7 +1,7 @@
1
1
  import { jsx as l } from "react/jsx-runtime";
2
2
  import { forwardRef as p, useMemo as d } from "react";
3
3
  import { Badge as u } from "antd";
4
- import { u as n } from "../../../chunks/useKitTheme.C7yw6CDw.js";
4
+ import { u as n } from "../../../chunks/useKitTheme.BdeSOGoj.js";
5
5
  import { isValidColor as c, getLighterColor as k, getColor as b } from "../../../utils/functions/index.js";
6
6
  import { kitBadgeCssTokens as s } from "../../../theme/aristid/components/DataDisplay/Badge/index.js";
7
7
  import B from "classnames";
@@ -1,7 +1,7 @@
1
1
  import { jsx as t, jsxs as f } from "react/jsx-runtime";
2
2
  import { cloneElement as C, useState as y } from "react";
3
3
  import { Collapse as E } from "antd";
4
- import { u as H } from "../../../chunks/useKitTheme.C7yw6CDw.js";
4
+ import { u as H } from "../../../chunks/useKitTheme.BdeSOGoj.js";
5
5
  import { FontAwesomeIcon as k } from "@fortawesome/react-fontawesome";
6
6
  import { faChevronDown as _, faEye as T, faEllipsisVertical as A } from "@fortawesome/free-solid-svg-icons";
7
7
  import D from "classnames";
@@ -12,7 +12,7 @@ import { KitSwitch as S } from "../../DataEntry/Switch/index.js";
12
12
  import { KitTooltip as h } from "../Tooltip/index.js";
13
13
  import { KitButton as v } from "../../General/Button/index.js";
14
14
  import { KitDropDown as b } from "../../Navigation/DropDown/index.js";
15
- import { u as z } from "../../../chunks/useKitLocale.DD7mnAZn.js";
15
+ import { u as z } from "../../../chunks/useKitLocale.C5F-tmnC.js";
16
16
  import '../../../assets/index37.css';const u = {
17
17
  "kit-collapse": "_kit-collapse_djtan_2",
18
18
  "kit-collapse-header": "_kit-collapse-header_djtan_78",
@@ -1,4 +1,4 @@
1
- import { K as e, a as m } from "../../../chunks/Thread.Cidp9fdK.js";
1
+ import { K as e, a as m } from "../../../chunks/Thread.DfvaoSxN.js";
2
2
  export {
3
3
  e as KitComment,
4
4
  m as KitThread
@@ -1,6 +1,6 @@
1
1
  import { jsxs as t, jsx as e } from "react/jsx-runtime";
2
2
  import { Empty as p } from "antd";
3
- import { u as m } from "../../../chunks/useKitTheme.C7yw6CDw.js";
3
+ import { u as m } from "../../../chunks/useKitTheme.BdeSOGoj.js";
4
4
  import { KitTypography as C } from "../../General/Typography/index.js";
5
5
  import { KitSpace as u } from "../../Layout/Space/index.js";
6
6
  import x from "classnames";
@@ -1,8 +1,8 @@
1
1
  import { jsxs as t, jsx as c } from "react/jsx-runtime";
2
2
  import { Suspense as v } from "react";
3
3
  import { Empty as d } from "antd";
4
- import { u as w } from "../../../chunks/useKitLocale.DD7mnAZn.js";
5
- import { u as p } from "../../../chunks/useKitTheme.C7yw6CDw.js";
4
+ import { u as w } from "../../../chunks/useKitLocale.C5F-tmnC.js";
5
+ import { u as p } from "../../../chunks/useKitTheme.BdeSOGoj.js";
6
6
  import { KitTypography as M } from "../../General/Typography/index.js";
7
7
  import { KitSpace as g } from "../../Layout/Space/index.js";
8
8
  import f from "classnames";
@@ -1,8 +1,8 @@
1
1
  import { jsxs as m, jsx as s } from "react/jsx-runtime";
2
2
  import l from "classnames";
3
3
  import { t as v } from "../../../chunks/styles.module.BiErj37W.js";
4
- import { u as z } from "../../../chunks/useKitTheme.C7yw6CDw.js";
5
- import { K as N } from "../../../chunks/Avatar.D0il2_w4.js";
4
+ import { u as z } from "../../../chunks/useKitTheme.BdeSOGoj.js";
5
+ import { K as N } from "../../../chunks/Avatar.B2Q0k3WU.js";
6
6
  import { KitTooltip as h } from "../Tooltip/index.js";
7
7
  import { T as u } from "../../../chunks/constants.CctH0M4n.js";
8
8
  import '../../../assets/index2.css';const _ = {
@@ -3,8 +3,8 @@ import { Image as a } from "antd";
3
3
  import d from "classnames";
4
4
  import { FontAwesomeIcon as v } from "@fortawesome/react-fontawesome";
5
5
  import { faEye as I } from "@fortawesome/free-solid-svg-icons";
6
- import { u as _ } from "../../../chunks/useKitLocale.DD7mnAZn.js";
7
- import { u as j } from "../../../chunks/useKitTheme.C7yw6CDw.js";
6
+ import { u as _ } from "../../../chunks/useKitLocale.C5F-tmnC.js";
7
+ import { u as j } from "../../../chunks/useKitTheme.BdeSOGoj.js";
8
8
  import '../../../assets/index3.css';const m = {
9
9
  "kit-image": "_kit-image_t5juo_2",
10
10
  "mask-container": "_mask-container_t5juo_23"
@@ -5,14 +5,14 @@ import { KitTypography as w } from "../../General/Typography/index.js";
5
5
  import { KitCheckbox as Z } from "../../DataEntry/Checkbox/index.js";
6
6
  import { KitSwitch as G } from "../../DataEntry/Switch/index.js";
7
7
  import { KitBreadcrumb as ii } from "../../Navigation/Breadcrumb/index.js";
8
- import { u as ti } from "../../../chunks/useKitTheme.C7yw6CDw.js";
8
+ import { u as ti } from "../../../chunks/useKitTheme.BdeSOGoj.js";
9
9
  import { KitTag as ei } from "../Tag/index.js";
10
10
  import { KitButton as B } from "../../General/Button/index.js";
11
11
  import { KitTooltip as si } from "../Tooltip/index.js";
12
12
  import { FontAwesomeIcon as O } from "@fortawesome/react-fontawesome";
13
13
  import { faEllipsis as oi, faImage as ri } from "@fortawesome/free-solid-svg-icons";
14
14
  import { KitDropDown as ai } from "../../Navigation/DropDown/index.js";
15
- import { u as di } from "../../../chunks/useKitLocale.DD7mnAZn.js";
15
+ import { u as di } from "../../../chunks/useKitLocale.C5F-tmnC.js";
16
16
  import { useDebouncedCallback as ci } from "use-debounce";
17
17
  import { N as ni, F as li } from "../../../chunks/constants.CctH0M4n.js";
18
18
  import '../../../assets/index29.css';const mi = {
@@ -4,11 +4,11 @@ import { KitCheckbox as J } from "../../DataEntry/Checkbox/index.js";
4
4
  import { KitIdCard as M } from "../IdCard/index.js";
5
5
  import { KitButton as d } from "../../General/Button/index.js";
6
6
  import { KitDropDown as N } from "../../Navigation/DropDown/index.js";
7
- import { u as Q } from "../../../chunks/useKitTheme.C7yw6CDw.js";
7
+ import { u as Q } from "../../../chunks/useKitTheme.BdeSOGoj.js";
8
8
  import { FontAwesomeIcon as x } from "@fortawesome/react-fontawesome";
9
9
  import { faEllipsis as E } from "@fortawesome/free-solid-svg-icons";
10
10
  import F from "classnames";
11
- import { u as W } from "../../../chunks/useKitLocale.DD7mnAZn.js";
11
+ import { u as W } from "../../../chunks/useKitLocale.C5F-tmnC.js";
12
12
  import { N as Y, F as Z } from "../../../chunks/constants.CctH0M4n.js";
13
13
  import { getStringFromReactNode as B } from "../../../utils/functions/index.js";
14
14
  import '../../../assets/index4.css';const m = {
@@ -1,19 +1,19 @@
1
1
  import { jsx as r, jsxs as d, Fragment as D } from "react/jsx-runtime";
2
2
  import T from "classnames";
3
3
  import { forwardRef as x } from "react";
4
- import { u as F } from "../../../chunks/useKitTheme.C7yw6CDw.js";
4
+ import { u as F } from "../../../chunks/useKitTheme.BdeSOGoj.js";
5
5
  import { FontAwesomeIcon as f } from "@fortawesome/react-fontawesome";
6
- import { faEllipsis as g, faArrowRight as E } from "@fortawesome/free-solid-svg-icons";
7
- import { KitIcon as A } from "../../General/Icon/index.js";
8
- import { KitTypography as C } from "../../General/Typography/index.js";
6
+ import { faEllipsis as A, faArrowRight as E } from "@fortawesome/free-solid-svg-icons";
7
+ import { KitIcon as C } from "../../General/Icon/index.js";
8
+ import { KitTypography as N } from "../../General/Typography/index.js";
9
9
  import { KitDivider as L } from "../../Layout/Divider/index.js";
10
10
  import { KitButton as k } from "../../General/Button/index.js";
11
11
  import { KitTooltip as R } from "../Tooltip/index.js";
12
- import { KitDropDown as N } from "../../Navigation/DropDown/index.js";
13
- import { u as P } from "../../../chunks/useKitLocale.DD7mnAZn.js";
12
+ import { KitDropDown as g } from "../../Navigation/DropDown/index.js";
13
+ import { u as P } from "../../../chunks/useKitLocale.C5F-tmnC.js";
14
14
  import { N as O, F as S } from "../../../chunks/constants.CctH0M4n.js";
15
- import '../../../assets/index24.css';const b = {
16
- "kit-redirect-card": "_kit-redirect-card_bgg2g_2"
15
+ import '../../../assets/index24.css';const j = {
16
+ "kit-redirect-card": "_kit-redirect-card_1yxds_2"
17
17
  }, K = ({ actions: i, actionsInDropdown: m = !1, disabled: e = !1 }) => {
18
18
  var n, s;
19
19
  const { locale: l } = P();
@@ -22,25 +22,25 @@ import '../../../assets/index24.css';const b = {
22
22
  const o = i.length < 4;
23
23
  let c;
24
24
  if (m && i.length > 1)
25
- c = r(N, { disabled: e, menu: { items: i }, children: r(k, { title: (n = l.General) === null || n === void 0 ? void 0 : n.more, type: "secondary", icon: r(f, { icon: g }), disableSecureClick: !0, onClick: (t) => t.stopPropagation() }) });
25
+ c = r(g, { disabled: e, menu: { items: i }, children: r(k, { title: (n = l.General) === null || n === void 0 ? void 0 : n.more, type: "secondary", icon: r(f, { icon: A }), disableSecureClick: !0, onClick: (t) => t.stopPropagation() }) });
26
26
  else if (o)
27
27
  c = i.map((t) => r(_, { action: t, disabled: e }, t.key));
28
28
  else {
29
29
  const [t, p, ...h] = i;
30
- c = d(D, { children: [[t, p].map((a) => r(_, { action: a, disabled: e }, a.key)), r(N, { disabled: e, menu: { items: h }, children: r(k, { title: (s = l.General) === null || s === void 0 ? void 0 : s.more, type: "secondary", icon: r(f, { icon: g }), disableSecureClick: !0, onClick: (a) => a.stopPropagation() }) })] });
30
+ c = d(D, { children: [[t, p].map((a) => r(_, { action: a, disabled: e }, a.key)), r(g, { disabled: e, menu: { items: h }, children: r(k, { title: (s = l.General) === null || s === void 0 ? void 0 : s.more, type: "secondary", icon: r(f, { icon: A }), disableSecureClick: !0, onClick: (a) => a.stopPropagation() }) })] });
31
31
  }
32
32
  return r("div", { className: "kit-redirect-card-actions", children: c });
33
33
  }, _ = ({ action: i, disabled: m }) => r(R, { title: i.label, children: r(k, { type: "secondary", icon: i.icon, onClick: (e) => {
34
34
  e.stopPropagation(), i.onClick(e);
35
- }, disabled: i.disabled || m, disableSecureClick: !0 }) }), j = x(({ className: i, style: m, title: e, description: n, icon: s, coverSrc: l, disabled: o, actions: c, actionsInDropdown: t, onClick: p, coverAlt: h = "" }, a) => {
36
- const v = s !== void 0 && l === void 0, y = l !== void 0, u = c !== void 0, w = 2, { appId: B } = F(), I = T(b["kit-redirect-card"], i, B, {
35
+ }, disabled: i.disabled || m, disableSecureClick: !0 }) }), G = x(({ className: i, style: m, title: e, description: n, icon: s, coverSrc: l, disabled: o, actions: c, actionsInDropdown: t, onClick: p, coverAlt: h = "" }, a) => {
36
+ const v = s !== void 0 && l === void 0, y = l !== void 0, u = c !== void 0, w = 2, { appId: B } = F(), I = T(j["kit-redirect-card"], i, B, {
37
37
  "kit-redirect-card-disabled": o,
38
38
  "kit-redirect-card-with-cover": y,
39
39
  "kit-redirect-card-with-actions": u
40
40
  });
41
- return d("div", { className: I, tabIndex: o ? O : S, style: m, onClick: p, ref: a, children: [u && v && r(K, { actions: c, disabled: o, actionsInDropdown: !!t }), v && r(A, { className: "kit-redirect-card-icon", icon: s }), y && d(D, { children: [d("div", { className: "kit-redirect-card-cover", children: [r("img", { alt: h, src: l }), r("div", { className: "kit-redirect-card-actions-mask" }), u && r(K, { actions: c, actionsInDropdown: !!t, disabled: o })] }), r(L, { noMargin: !0 })] }), d("div", { className: "kit-redirect-card-content", children: [d("section", { children: [r(C.Title, { ellipsis: !0, level: "h3", disabled: o, children: e }), n && r(C.AdvancedParagraph, { ellipsis: { rows: w, tooltip: n }, disabled: o, children: n })] }), r(A, { className: "kit-redirect-card-redirect-icon", icon: r(f, { icon: E }) })] })] });
41
+ return d("div", { className: I, tabIndex: o ? O : S, style: m, onClick: p, ref: a, children: [u && v && r(K, { actions: c, disabled: o, actionsInDropdown: !!t }), v && r(C, { className: "kit-redirect-card-icon", icon: s }), y && d(D, { children: [d("div", { className: "kit-redirect-card-cover", children: [r("img", { alt: h, src: l }), r("div", { className: "kit-redirect-card-actions-mask" }), u && r(K, { actions: c, actionsInDropdown: !!t, disabled: o })] }), r(L, { noMargin: !0 })] }), d("div", { className: "kit-redirect-card-content", children: [d("section", { children: [r(N.Title, { ellipsis: !0, level: "h3", disabled: o, children: e }), n && r(N.AdvancedParagraph, { ellipsis: { rows: w, tooltip: n }, disabled: o, children: n })] }), r(C, { className: "kit-redirect-card-redirect-icon", icon: r(f, { icon: E }) })] })] });
42
42
  });
43
- j.displayName = "KitRedirectCard";
43
+ G.displayName = "KitRedirectCard";
44
44
  export {
45
- j as KitRedirectCard
45
+ G as KitRedirectCard
46
46
  };
@@ -1,16 +1,16 @@
1
1
  import { jsx as t } from "react/jsx-runtime";
2
2
  import { forwardRef as B, useMemo as y } from "react";
3
- import { Table as g } from "antd";
3
+ import { Table as N } from "antd";
4
4
  import S from "classnames";
5
- import { u as F } from "../../../chunks/useKitTheme.C7yw6CDw.js";
5
+ import { u as F } from "../../../chunks/useKitTheme.BdeSOGoj.js";
6
6
  import { F as x } from "../../../chunks/constants.CctH0M4n.js";
7
7
  import { KitIcon as R } from "../../General/Icon/index.js";
8
- import { FontAwesomeIcon as N } from "@fortawesome/react-fontawesome";
8
+ import { FontAwesomeIcon as g } from "@fortawesome/react-fontawesome";
9
9
  import { faUpDown as W, faArrowDown as $, faArrowUp as E, faGripLines as M, faCaretDown as G, faCaretRight as X } from "@fortawesome/free-solid-svg-icons";
10
10
  import { KitButton as T } from "../../General/Button/index.js";
11
11
  import '../../../assets/index45.css';const p = {
12
- "kit-table": "_kit-table_1dh4m_22",
13
- "expand-button": "_expand-button_1dh4m_798"
12
+ "kit-table": "_kit-table_1gybl_22",
13
+ "expand-button": "_expand-button_1gybl_816"
14
14
  }, I = (l) => {
15
15
  const i = l?.split(" "), a = i?.filter((o) => o !== "ant-table-cell").join(" "), r = i?.filter((o) => ["ant-table-cell", "ant-table-cell-ellipsis", "ant-table-selection-column"].includes(o)).join(" ");
16
16
  return {
@@ -24,17 +24,17 @@ function q(l) {
24
24
  header: {
25
25
  wrapper: (i = l?.header) === null || i === void 0 ? void 0 : i.wrapper,
26
26
  row: (a = l?.header) === null || a === void 0 ? void 0 : a.row,
27
- cell: ({ children: r, className: o, style: c, title: d, rowSpan: C, colSpan: m, ...b }) => {
27
+ cell: ({ children: r, className: o, style: c, title: d, rowSpan: m, colSpan: b, ...C }) => {
28
28
  const s = I(o);
29
- return t("th", { className: s.antCell, style: c, title: d, rowSpan: C, colSpan: m, ...b, children: t("div", { className: s.internalCell, children: r }) });
29
+ return t("th", { className: s.antCell, style: c, title: d, rowSpan: m, colSpan: b, ...C, children: t("div", { className: s.internalCell, children: r }) });
30
30
  }
31
31
  },
32
32
  body: {
33
- cell: ({ children: r, className: o, style: c, title: d, rowSpan: C, colSpan: m, ...b }) => {
34
- var s, h;
35
- const w = (s = l?.body) === null || s === void 0 ? void 0 : s.cell, e = I(o);
33
+ cell: ({ children: r, className: o, style: c, title: d, rowSpan: m, colSpan: b, ...C }) => {
34
+ var s, w;
35
+ const h = (s = l?.body) === null || s === void 0 ? void 0 : s.cell, e = I(o);
36
36
  let k = "";
37
- return !((h = e.antCell) === null || h === void 0) && h.includes("ant-table-cell-ellipsis") && (k = d), t("td", { className: e.antCell, style: c, title: k, rowSpan: C, colSpan: m, children: t("div", { className: e.internalCell, children: w ? t(w, { title: d, ...b, children: r }) : r }) });
37
+ return !((w = e.antCell) === null || w === void 0) && w.includes("ant-table-cell-ellipsis") && (k = d), t("td", { className: e.antCell, style: c, title: k, rowSpan: m, colSpan: b, children: t("div", { className: e.internalCell, children: h ? t(h, { title: d, ...C, children: r }) : r }) });
38
38
  },
39
39
  row: ({ children: r, ...o }) => {
40
40
  var c;
@@ -57,44 +57,44 @@ const J = ({ sortOrder: l }) => {
57
57
  i = W;
58
58
  break;
59
59
  }
60
- return t(R, { color: a, icon: t(N, { icon: i }) });
60
+ return t(R, { color: a, icon: t(g, { icon: i }) });
61
61
  }, A = B(({ className: l, isDragging: i, ...a }, r) => {
62
62
  const o = S("kit-table-drag-handle", l, { "kit-table-drag-handle--dragging": i });
63
- return t(T, { ...a, iconSize: "l", type: "tertiary", className: o, icon: t(N, { icon: M }), ref: r });
63
+ return t(T, { ...a, iconSize: "l", type: "tertiary", className: o, icon: t(g, { icon: M }), ref: r });
64
64
  });
65
- function Q({ className: l, style: i, cellsBackgroundColor: a, backgroundColor: r, borderedRows: o, columns: c, onChange: d, components: C, showDragHandle: m, showHeader: b = !0, dragHandleElement: s, headerLineSize: h = "l", lineSize: w = "l", ...e }) {
66
- const { appId: k, theme: D } = F(), L = S(k, p["kit-table"], l, `kit-table-line-size-${w}`, `kit-table-header-line-size-${h}`, {
65
+ function Q({ className: l, style: i, cellsBackgroundColor: a, backgroundColor: r, borderedRows: o, columns: c, onChange: d, components: m, showDragHandle: b, showHeader: C = !0, dragHandleElement: s, headerLineSize: w = "l", lineSize: h = "l", ...e }) {
66
+ const { appId: k, theme: D } = F(), L = S(k, p["kit-table"], l, `kit-table-line-size-${h}`, `kit-table-header-line-size-${w}`, {
67
67
  "kit-table-bordered-rows": o,
68
- "kit-table-headless": b === !1
68
+ "kit-table-headless": C === !1
69
69
  }), _ = y(() => e?.rowSelection ? { ...e?.rowSelection, columnWidth: "var(--kit-table-checkbox-width)" } : e?.rowSelection, [e?.rowSelection]), z = y(() => {
70
- const n = [...c].map((u) => m ? {
70
+ const n = [...c].map((u) => b ? {
71
71
  ...u,
72
72
  sorter: void 0
73
73
  } : (u.sorter && (u.sortIcon = ({ sortOrder: v }) => t(J, { sortOrder: v })), u));
74
- return m && (_ && n.unshift(g.SELECTION_COLUMN), n.unshift({
74
+ return b && (_ && n.unshift(N.SELECTION_COLUMN), n.unshift({
75
75
  key: "drag-handle",
76
76
  align: "center",
77
77
  render: () => s ?? t(A, {})
78
78
  })), n;
79
- }, [c, _, m, s]), O = (n, u, v, f) => {
79
+ }, [c, _, b, s]), O = (n, u, v, f) => {
80
80
  d?.(n, v, f);
81
81
  }, U = ({ record: n, expanded: u, onExpand: v }) => {
82
82
  var f;
83
83
  if (!(!Array.isArray(n?.children) || !(!((f = n?.children) === null || f === void 0) && f.length)))
84
- return t(T, { className: p["expand-button"], type: "tertiary", onClick: (j) => v(n, j), children: t(N, { icon: u ? G : X }) });
84
+ return t(T, { className: p["expand-button"], type: "tertiary", onClick: (j) => v(n, j), children: t(g, { icon: u ? G : X }) });
85
85
  };
86
- return t(g, { className: L, style: {
86
+ return t(N, { className: L, style: {
87
87
  "--kit-table-cells-background-color": a,
88
88
  "--kit-table-background": r,
89
89
  ...i
90
- }, columns: z, components: y(() => q(C), [C]), onChange: O, ...e, rowClassName: (n, u, v) => {
90
+ }, columns: z, components: y(() => q(m), [m]), onChange: O, ...e, rowClassName: (n, u, v) => {
91
91
  let f = !v || v % 2 ? "" : "with-light-gray-background ";
92
92
  return typeof e.rowClassName == "string" && (f += e.rowClassName), typeof e.rowClassName == "function" && (f += e.rowClassName(n, u, v)), f;
93
93
  }, expandable: {
94
94
  expandIcon: U,
95
95
  indentSize: D.spacing.m,
96
96
  ...e.expandable
97
- }, rowSelection: _, showHeader: b });
97
+ }, rowSelection: _, showHeader: C });
98
98
  }
99
99
  const K = Q;
100
100
  K.displayName = "KitTable";