aristid-ds 13.0.0-a482bfb → 13.0.0-b2fece3

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 (62) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/dist/Kit/App/index.js +14 -14
  3. package/dist/Kit/DataDisplay/Empty/index.js +1 -1
  4. package/dist/Kit/DataDisplay/Error/index.js +1 -1
  5. package/dist/Kit/DataDisplay/IdCard/index.js +29 -17
  6. package/dist/Kit/DataDisplay/IdCard/types.d.ts +1 -0
  7. package/dist/Kit/DataDisplay/Image/index.js +1 -1
  8. package/dist/Kit/DataDisplay/ItemList/index.js +1 -1
  9. package/dist/Kit/DataDisplay/Tabs/index.js +1 -1
  10. package/dist/Kit/DataDisplay/Tag/index.js +43 -43
  11. package/dist/Kit/DataDisplay/Tag/types.d.ts +1 -0
  12. package/dist/Kit/DataDisplay/Tree/index.js +1 -1
  13. package/dist/Kit/DataEntry/AutoComplete/index.js +1 -1
  14. package/dist/Kit/DataEntry/Filter/index.js +1 -1
  15. package/dist/Kit/DataEntry/InputNumber/index.js +1 -1
  16. package/dist/Kit/DataEntry/Rate/index.js +1 -1
  17. package/dist/Kit/DataEntry/RichText/EditorContentCharacterCount/index.js +1 -1
  18. package/dist/Kit/DataEntry/RichText/MenuBar/FontSizeSelect/index.js +1 -1
  19. package/dist/Kit/DataEntry/RichText/index.js +1 -1
  20. package/dist/Kit/DataEntry/Slider/index.js +1 -1
  21. package/dist/Kit/DataEntry/Switch/index.js +1 -1
  22. package/dist/Kit/Feedback/Loader/index.js +1 -1
  23. package/dist/Kit/Feedback/SnackBar/index.js +15 -15
  24. package/dist/Kit/General/Icon/index.js +1 -1
  25. package/dist/Kit/General/Typography/index.js +36 -40
  26. package/dist/Kit/Layout/Divider/index.js +1 -1
  27. package/dist/Kit/Layout/Section/index.js +1 -1
  28. package/dist/Kit/Navigation/Breadcrumb/index.js +1 -1
  29. package/dist/Kit/Navigation/PageHeader/index.js +1 -1
  30. package/dist/Kit/Navigation/Pagination/index.js +1 -1
  31. package/dist/Kit/Navigation/Steps/index.js +1 -1
  32. package/dist/assets/index10.css +1 -1
  33. package/dist/assets/index11.css +1 -1
  34. package/dist/assets/index12.css +1 -1
  35. package/dist/assets/index13.css +1 -1
  36. package/dist/assets/index14.css +1 -1
  37. package/dist/assets/index15.css +1 -1
  38. package/dist/assets/index16.css +1 -1
  39. package/dist/assets/index17.css +1 -1
  40. package/dist/assets/index18.css +1 -1
  41. package/dist/assets/index19.css +1 -1
  42. package/dist/assets/index2.css +1 -1
  43. package/dist/assets/index20.css +1 -1
  44. package/dist/assets/index21.css +1 -1
  45. package/dist/assets/index22.css +1 -1
  46. package/dist/assets/index23.css +1 -1
  47. package/dist/assets/index3.css +1 -1
  48. package/dist/assets/index4.css +1 -1
  49. package/dist/assets/index49.css +1 -1
  50. package/dist/assets/index5.css +1 -1
  51. package/dist/assets/index50.css +1 -1
  52. package/dist/assets/index6.css +1 -1
  53. package/dist/assets/index7.css +1 -1
  54. package/dist/assets/index8.css +1 -1
  55. package/dist/assets/index9.css +1 -1
  56. package/dist/assets/styles.css +1 -0
  57. package/dist/chunks/{SnackBarProvider.nqDzpFo3.js → SnackBarProvider.T-xLQpTN.js} +10 -10
  58. package/dist/chunks/styles.module.shsViPAW.js +9 -0
  59. package/dist/index.umd.js +4 -4
  60. package/dist/utils/constants.d.ts +1 -0
  61. package/package.json +1 -1
  62. package/dist/assets/index51.css +0 -1
package/CHANGELOG.md CHANGED
@@ -4,6 +4,9 @@
4
4
 
5
5
  ### ✨ Features
6
6
 
7
+ - **IdCard**:
8
+ - remove use of `Typography.Text` compoent (@evoiron)
9
+ - add `disableTooltip` property to disable tooltip on title and description (@evoiron)
7
10
  - **⚠️ Breaking change - Upload**:
8
11
  - Remove the following properties: (@philippechevieux)
9
12
  - `listType`
@@ -23,6 +26,9 @@
23
26
 
24
27
  ### 🐛 Bug Fixes
25
28
 
29
+ - **Tag:**
30
+ - Hide `closeIcon` for tags in a group if handleCloseTag is not provided (@philippechevieux)
31
+ - Remove tooltip for other tags in TagGroup (@NicoSourimant)
26
32
  - **DatePicker/RangePicker**
27
33
  - Fix color of prefix icon when component is `disabled`, in `warning` or `error` status (@philippechevieux)
28
34
 
@@ -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,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
- import "../../../assets/index2.css";
2
- import { jsxs as l, jsx as r } from "react/jsx-runtime";
1
+ import "../../../assets/index23.css";
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
+ const _ = {
9
+ "kit-id-card": "_kit-id-card_1go5o_2"
10
+ }, m = 0.8, h = [
11
+ D["kit-typography-text"],
12
+ "ant-typography",
13
+ "ant-typography-text",
14
+ "ant-typography-ellipsis",
15
+ "ant-typography-ellipsis-single-line"
16
+ ], T = (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(y, { title: o ? "" : a, mouseEnterDelay: m, 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(y, { title: o ? "" : a, mouseEnterDelay: m, 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, _["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 && T(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,4 +1,4 @@
1
- import "../../../assets/index3.css";
1
+ import "../../../assets/index2.css";
2
2
  import { jsxs as k, jsx as r } from "react/jsx-runtime";
3
3
  import { Image as a } from "antd";
4
4
  import d from "classnames";
@@ -1,4 +1,4 @@
1
- import "../../../assets/index4.css";
1
+ import "../../../assets/index3.css";
2
2
  import { jsxs as v, jsx as t, Fragment as C } from "react/jsx-runtime";
3
3
  import { forwardRef as J, useState as M } from "react";
4
4
  import { KitCheckbox as O } from "../../DataEntry/Checkbox/index.js";
@@ -1,4 +1,4 @@
1
- import "../../../assets/index5.css";
1
+ import "../../../assets/index4.css";
2
2
  import { jsxs as n, Fragment as j, jsx as l } from "react/jsx-runtime";
3
3
  import { useState as B } from "react";
4
4
  import { u as D } from "../../../chunks/useKitTheme.KSAU-Pdv.js";
@@ -1,6 +1,6 @@
1
1
  import "../../../assets/index37.css";
2
- import { jsx as i, Fragment as C, jsxs as x } from "react/jsx-runtime";
3
- import { forwardRef as D, useState as W, useRef as N, useLayoutEffect as E } from "react";
2
+ import { jsx as t, Fragment as q, jsxs as $ } from "react/jsx-runtime";
3
+ import { forwardRef as D, useState as C, useRef as x, useLayoutEffect as E } from "react";
4
4
  import O from "classnames";
5
5
  import { Tag as F } from "antd";
6
6
  import { u as z } from "../../../chunks/useKitTheme.KSAU-Pdv.js";
@@ -15,60 +15,60 @@ const I = {
15
15
  "kit-tag-group": "_kit-tag-group_6ocqb_111",
16
16
  "kit-tag-group-measure": "_kit-tag-group-measure_6ocqb_117",
17
17
  "kit-tag-group-container": "_kit-tag-group-container_6ocqb_124"
18
- }, b = D(({ className: t, closeIcon: s, type: u = "neutral", disabled: e, onClick: c, idCardProps: r, ...d }, a) => {
19
- const { appId: p } = z(), h = O(p, I["kit-tag"], t, {
20
- [`kit-tag-${u}`]: u,
21
- "kit-tag-disabled": e,
22
- "kit-tag-clickable": c
18
+ }, h = D(({ className: r, closeIcon: s, type: c = "neutral", disabled: i, disableTooltip: a = !1, onClick: p, idCardProps: o, ...d }, u) => {
19
+ const { appId: b } = z(), _ = O(b, I["kit-tag"], r, {
20
+ [`kit-tag-${c}`]: c,
21
+ "kit-tag-disabled": i,
22
+ "kit-tag-clickable": p
23
23
  });
24
- return i(F, { tabIndex: e ? -1 : 0, ref: a, ...d, className: h, closeIcon: s ?? i(L, { icon: M }), onClick: c, closable: !!d.onClose, children: i(R, { disabled: e, avatarProps: r != null && r.avatarProps ? { ...r == null ? void 0 : r.avatarProps, size: "small" } : void 0, description: r == null ? void 0 : r.description }) });
25
- }), X = ({ tags: t, containerRef: s, measureRef: u, handleCloseTag: e }) => {
26
- var c;
27
- const [r, d] = W([]), [a, p] = W(0), [h, $] = W(i(C, {})), v = N(null), { locale: _ } = P();
24
+ return t(F, { tabIndex: i ? -1 : 0, ref: u, ...d, className: _, closeIcon: s ?? t(L, { icon: M }), onClick: p, closable: !!d.onClose, children: t(R, { disabled: i, disableTooltip: a, avatarProps: o != null && o.avatarProps ? { ...o == null ? void 0 : o.avatarProps, size: "small" } : void 0, description: o == null ? void 0 : o.description }) });
25
+ }), X = ({ tags: r, containerRef: s, measureRef: c, handleCloseTag: i }) => {
26
+ var a;
27
+ const [p, o] = C([]), [d, u] = C(0), [b, _] = C(t(q, {})), v = x(null), { locale: k } = P();
28
28
  return E(() => {
29
- const T = () => {
30
- var k, y, o;
31
- const n = s.current, f = u.current;
32
- if (!n || !f)
29
+ const K = () => {
30
+ var T, g, e;
31
+ const l = s.current, f = c.current;
32
+ if (!l || !f)
33
33
  return;
34
- $(x(C, { children: [t.map((l, g) => i(b, { type: l == null ? void 0 : l.type, disabled: l == null ? void 0 : l.disabled, idCardProps: l.idCardProps, onClose: () => {
35
- e == null || e(g);
36
- } }, g)), i(b, { idCardProps: { description: `+${a} ${(k = _.General) === null || k === void 0 ? void 0 : k.others}` } })] }));
37
- const j = n == null ? void 0 : n.clientWidth, w = Array.from(f.children), A = (y = w[w.length - 1]) === null || y === void 0 ? void 0 : y.clientWidth;
38
- let q = 0, G = 0;
39
- for (let l = 0; l < w.length - 1; l++) {
40
- const g = ((o = w[l]) === null || o === void 0 ? void 0 : o.clientWidth) + 8;
41
- if (q + g + 8 + (l < t.length - 1 ? A : 0) <= j)
42
- q += g, G++;
34
+ _($(q, { children: [r.map((n, y) => t(h, { type: n == null ? void 0 : n.type, disabled: n == null ? void 0 : n.disabled, idCardProps: n.idCardProps, onClose: () => {
35
+ i == null || i(y);
36
+ } }, y)), t(h, { idCardProps: { description: `+${d} ${(T = k.General) === null || T === void 0 ? void 0 : T.others}` } })] }));
37
+ const j = l == null ? void 0 : l.clientWidth, G = Array.from(f.children), A = (g = G[G.length - 1]) === null || g === void 0 ? void 0 : g.clientWidth;
38
+ let N = 0, W = 0;
39
+ for (let n = 0; n < G.length - 1; n++) {
40
+ const y = ((e = G[n]) === null || e === void 0 ? void 0 : e.clientWidth) + 8;
41
+ if (N + y + 8 + (n < r.length - 1 ? A : 0) <= j)
42
+ N += y, W++;
43
43
  else
44
44
  break;
45
45
  }
46
- G < t.length ? (d(t.slice(0, G)), p(t.length - G)) : (d(t), p(0));
46
+ W < r.length ? (o(r.slice(0, W)), u(r.length - W)) : (o(r), u(0));
47
47
  };
48
48
  let m;
49
- const K = () => {
50
- clearTimeout(m), m = setTimeout(T, 100);
49
+ const w = () => {
50
+ clearTimeout(m), m = setTimeout(K, 100);
51
51
  };
52
- return T(), v.current = new ResizeObserver(K), s.current && v.current.observe(s.current), () => {
52
+ return K(), v.current = new ResizeObserver(w), s.current && v.current.observe(s.current), () => {
53
53
  v.current && v.current.disconnect(), clearTimeout(m);
54
54
  };
55
- }, [s, e, a, (c = _.General) === null || c === void 0 ? void 0 : c.others, u, t]), {
56
- measureTags: h,
57
- visibleTags: r,
58
- hiddenCount: a
55
+ }, [s, i, d, (a = k.General) === null || a === void 0 ? void 0 : a.others, c, r]), {
56
+ measureTags: b,
57
+ visibleTags: p,
58
+ hiddenCount: d
59
59
  };
60
- }, B = ({ tags: t, style: s, className: u, handleCloseTag: e, othersTagType: c = "neutral", othersTagDisabled: r }) => {
61
- var d;
62
- const a = N(null), p = N(null), { locale: h } = P(), { appId: $ } = z(), [v, _] = W(!1), { measureTags: T, visibleTags: m, hiddenCount: K } = X({ tags: t, containerRef: a, measureRef: p, handleCloseTag: e }), k = () => t.slice(m.length).map((o, n) => {
60
+ }, B = ({ tags: r, style: s, className: c, handleCloseTag: i, othersTagType: a = "neutral", othersTagDisabled: p }) => {
61
+ var o;
62
+ const d = x(null), u = x(null), { locale: b } = P(), { appId: _ } = z(), [v, k] = C(!1), { measureTags: K, visibleTags: m, hiddenCount: w } = X({ tags: r, containerRef: d, measureRef: u, handleCloseTag: i }), T = () => r.slice(m.length).map((e, l) => {
63
63
  var f;
64
- return i("div", { children: (f = o.idCardProps) === null || f === void 0 ? void 0 : f.description }, n);
65
- }), y = O($, I["kit-tag-group"], u);
66
- return x("div", { className: I["kit-tag-group-container"], children: [x("div", { ref: a, style: s, className: y, children: [m.map((o, n) => i(b, { type: o == null ? void 0 : o.type, disabled: o == null ? void 0 : o.disabled, idCardProps: o.idCardProps, onClose: () => {
67
- e == null || e(n);
68
- } }, n)), K > 0 && i(H, { overlay: k(), children: i(b, { type: c, disabled: r, idCardProps: { description: `+${K} ${(d = h.General) === null || d === void 0 ? void 0 : d.others}` }, onClick: () => _(!0) }) }), i(V, { isOpen: v, close: () => _(!1), showCloseIcon: !0, title: "Tags", appElement: document.body, children: i("div", { style: { display: "flex", flexWrap: "wrap", rowGap: "8px" }, children: t.map((o, n) => i(b, { id: `tag-${n}`, type: o == null ? void 0 : o.type, disabled: o == null ? void 0 : o.disabled, idCardProps: o.idCardProps, onClose: () => {
69
- e == null || e(n);
70
- } }, n)) }) })] }), i("div", { ref: p, className: I["kit-tag-group-measure"], "aria-hidden": "true", children: T })] });
71
- }, J = B, S = b;
64
+ return t("div", { children: (f = e.idCardProps) === null || f === void 0 ? void 0 : f.description }, l);
65
+ }), g = O(_, I["kit-tag-group"], c);
66
+ return $("div", { className: I["kit-tag-group-container"], children: [$("div", { ref: d, style: s, className: g, children: [m.map((e, l) => t(h, { type: e == null ? void 0 : e.type, disabled: e == null ? void 0 : e.disabled, idCardProps: e.idCardProps, onClose: i ? () => {
67
+ i(l);
68
+ } : void 0 }, l)), w > 0 && t(H, { overlay: T(), children: t(h, { type: a, disabled: p, disableTooltip: !0, idCardProps: { description: `+${w} ${(o = b.General) === null || o === void 0 ? void 0 : o.others}` }, onClick: () => k(!0) }) }), t(V, { isOpen: v, close: () => k(!1), showCloseIcon: !0, title: "Tags", appElement: document.body, children: t("div", { style: { display: "flex", flexWrap: "wrap", rowGap: "8px" }, children: r.map((e, l) => t(h, { id: `tag-${l}`, type: e == null ? void 0 : e.type, disabled: e == null ? void 0 : e.disabled, idCardProps: e.idCardProps, onClose: i ? () => {
69
+ i(l);
70
+ } : void 0 }, l)) }) })] }), t("div", { ref: u, className: I["kit-tag-group-measure"], "aria-hidden": "true", children: K })] });
71
+ }, J = B, S = h;
72
72
  S.displayName = "KitTag";
73
73
  S.Group = J;
74
74
  export {
@@ -20,6 +20,7 @@ export interface IKitTag
20
20
  };
21
21
  type?: KitTagType;
22
22
  disabled?: boolean;
23
+ disableTooltip?: boolean;
23
24
  onClose?: TagProps['onClose'];
24
25
  onClick?: TagProps['onClick'];
25
26
  }
@@ -1,4 +1,4 @@
1
- import "../../../assets/index6.css";
1
+ import "../../../assets/index5.css";
2
2
  import { jsx as o } from "react/jsx-runtime";
3
3
  import { Tree as c } from "antd";
4
4
  import { u as p } from "../../../chunks/useKitTheme.KSAU-Pdv.js";
@@ -1,4 +1,4 @@
1
- import "../../../assets/index11.css";
1
+ import "../../../assets/index10.css";
2
2
  import { jsx as t } from "react/jsx-runtime";
3
3
  import { forwardRef as x, useState as y } from "react";
4
4
  import { AutoComplete as F } from "antd";
@@ -1,4 +1,4 @@
1
- import "../../../assets/index13.css";
1
+ import "../../../assets/index12.css";
2
2
  import { jsxs as h, jsx as t } from "react/jsx-runtime";
3
3
  import { forwardRef as g } from "react";
4
4
  import N from "classnames";
@@ -1,4 +1,4 @@
1
- import "../../../assets/index7.css";
1
+ import "../../../assets/index6.css";
2
2
  import { jsx as n } from "react/jsx-runtime";
3
3
  import { forwardRef as k, useState as x } from "react";
4
4
  import { InputNumber as _ } from "antd";
@@ -1,4 +1,4 @@
1
- import "../../../assets/index8.css";
1
+ import "../../../assets/index7.css";
2
2
  import { jsx as i } from "react/jsx-runtime";
3
3
  import { forwardRef as k, useMemo as v } from "react";
4
4
  import { Rate as x } from "antd";
@@ -1,4 +1,4 @@
1
- import "../../../../assets/index22.css";
1
+ import "../../../../assets/index21.css";
2
2
  import { jsx as i, jsxs as a } from "react/jsx-runtime";
3
3
  import h from "classnames";
4
4
  import { u as s } from "../../../../chunks/useKitTheme.KSAU-Pdv.js";
@@ -1,4 +1,4 @@
1
- import "../../../../../assets/index23.css";
1
+ import "../../../../../assets/index22.css";
2
2
  import { jsx as i, Fragment as z, jsxs as _ } from "react/jsx-runtime";
3
3
  import { KitTypography as m } from "../../../../General/Typography/index.js";
4
4
  import { KitDropDown as w } from "../../../../Navigation/DropDown/index.js";
@@ -1,4 +1,4 @@
1
- import "../../../assets/index9.css";
1
+ import "../../../assets/index8.css";
2
2
  import { jsxs as E, jsx as u } from "react/jsx-runtime";
3
3
  import { forwardRef as Q, useRef as V, useState as _, useEffect as f } from "react";
4
4
  import { K as X } from "../../../chunks/InputWrapper.l5p7rU3g.js";
@@ -1,4 +1,4 @@
1
- import "../../../assets/index12.css";
1
+ import "../../../assets/index11.css";
2
2
  import { jsxs as a, jsx as i } from "react/jsx-runtime";
3
3
  import { Slider as d } from "antd";
4
4
  import f from "classnames";
@@ -1,4 +1,4 @@
1
- import "../../../assets/index10.css";
1
+ import "../../../assets/index9.css";
2
2
  import { jsx as c } from "react/jsx-runtime";
3
3
  import { forwardRef as s } from "react";
4
4
  import { Switch as m } from "antd";
@@ -1,4 +1,4 @@
1
- import "../../../assets/index14.css";
1
+ import "../../../assets/index13.css";
2
2
  import { jsx as d } from "react/jsx-runtime";
3
3
  import i from "classnames";
4
4
  import { u as l } from "../../../chunks/useKitTheme.KSAU-Pdv.js";
@@ -1,33 +1,33 @@
1
1
  import "../../../assets/index32.css";
2
- import { I as _ } from "../../../chunks/SnackBarProvider.nqDzpFo3.js";
3
- import { jsxs as m, jsx as a, Fragment as x } from "react/jsx-runtime";
2
+ import { K as _ } from "../../../chunks/SnackBarProvider.T-xLQpTN.js";
3
+ import { jsxs as m, jsx as s, Fragment as x } from "react/jsx-runtime";
4
4
  import { toast as v } from "react-hot-toast";
5
5
  import { u as A } from "../../../chunks/useKitTheme.KSAU-Pdv.js";
6
6
  import { FontAwesomeIcon as d } from "@fortawesome/react-fontawesome";
7
7
  import { faXmark as C, faEllipsisV as D } from "@fortawesome/free-solid-svg-icons";
8
8
  import k from "classnames";
9
9
  import p from "../../General/DynamicActions/index.js";
10
- import { KitDivider as I } from "../../Layout/Divider/index.js";
11
- import { KitButton as T } from "../../General/Button/index.js";
12
- import { KitTypography as g } from "../../General/Typography/index.js";
13
- const w = {
10
+ import { KitDivider as T } from "../../Layout/Divider/index.js";
11
+ import { KitButton as g } from "../../General/Button/index.js";
12
+ import { KitTypography as w } from "../../General/Typography/index.js";
13
+ const j = {
14
14
  "kit-snackbar": "_kit-snackbar_1bxje_2"
15
- }, j = (i) => a(T, { type: "tertiary", size: "m", icon: i.icon, onClick: i.onClick, className: i.className, disabled: i.disabled, children: i.label }, i.key), E = ({ message: i, actions: s, closable: t, onClose: n, actionsInDropDown: b, className: u, style: f }) => {
16
- var r;
17
- const { appId: h } = A(), y = s && s.length > 0, l = t !== void 0, N = k(h, w["kit-snackbar"], u), B = () => {
18
- c(), n == null || n();
19
- }, K = (r = s == null ? void 0 : s.map((o, S) => {
15
+ }, E = (i) => s(g, { type: "tertiary", size: "m", icon: i.icon, onClick: i.onClick, className: i.className, disabled: i.disabled, children: i.label }, i.key), F = ({ message: i, actions: t, closable: a, onClose: r, actionsInDropDown: b, className: u, style: f }) => {
16
+ var n;
17
+ const { appId: h } = A(), y = t && t.length > 0, l = a !== void 0, N = k(h, j["kit-snackbar"], u), B = () => {
18
+ c(), r == null || r();
19
+ }, K = (n = t == null ? void 0 : t.map((o, S) => {
20
20
  var e;
21
21
  return {
22
22
  ...o,
23
23
  key: (e = o.key) !== null && e !== void 0 ? e : S,
24
24
  className: k(o.className, "kit-snackbar-action")
25
25
  };
26
- })) !== null && r !== void 0 ? r : [];
27
- return m("div", { style: { ...f }, className: N, children: [l && a("div", { className: "kit-snackbar-close", children: a("div", { className: "kit-snackbar-close-button", onClick: B, children: a(d, { icon: C }) }) }), a("div", { className: "kit-snackbar-message", children: a(g.Text, { className: "kit-snackbar-title", children: i }) }), y && m(x, { children: [(i || l) && a(I, { type: "vertical", noMargin: !0, className: "kit-snackbar-divider" }), a("div", { className: "kit-snackbar-actions", children: a(p, { actions: K, actionsInDropdown: !!b, disabled: !1, actionRenderer: j, ellipsisButton: a(p.EllipsisButton, { type: "tertiary", size: "m", className: "kit-snackbar-action", icon: a(d, { icon: D }) }), threshold: 3 }) })] })] });
28
- }, F = E, z = 4e3, P = ({ duration: i = z, snackbarId: s = null, ...t }) => (c(), v(a(F, { ...t }), {
26
+ })) !== null && n !== void 0 ? n : [];
27
+ return m("div", { style: { ...f }, className: N, children: [l && s("div", { className: "kit-snackbar-close", children: s("div", { className: "kit-snackbar-close-button", onClick: B, children: s(d, { icon: C }) }) }), s("div", { className: "kit-snackbar-message", children: s(w.Text, { className: "kit-snackbar-title", children: i }) }), y && m(x, { children: [(i || l) && s(T, { type: "vertical", noMargin: !0, className: "kit-snackbar-divider" }), s("div", { className: "kit-snackbar-actions", children: s(p, { actions: K, actionsInDropdown: !!b, disabled: !1, actionRenderer: E, ellipsisButton: s(p.EllipsisButton, { type: "tertiary", size: "m", className: "kit-snackbar-action", icon: s(d, { icon: D }) }), threshold: 3 }) })] })] });
28
+ }, I = F, z = 4e3, P = ({ duration: i = z, snackbarId: t = null, ...a }) => (c(), v(s(I, { ...a }), {
29
29
  duration: i === 0 ? 1 / 0 : i,
30
- id: s ?? void 0
30
+ id: t ?? void 0
31
31
  })), c = (i) => {
32
32
  v.dismiss(i);
33
33
  }, Q = P, W = c, Y = _;
@@ -1,4 +1,4 @@
1
- import "../../../assets/index15.css";
1
+ import "../../../assets/index14.css";
2
2
  import { jsx as C } from "react/jsx-runtime";
3
3
  import { useMemo as g } from "react";
4
4
  import { u as b } from "../../../chunks/useKitTheme.KSAU-Pdv.js";
@@ -1,16 +1,16 @@
1
- import "../../../assets/index49.css";
2
- import { jsx as y } from "react/jsx-runtime";
3
- import { forwardRef as c, useMemo as m } from "react";
1
+ import { jsx as i } from "react/jsx-runtime";
2
+ import { forwardRef as y, useMemo as m } from "react";
4
3
  import K from "antd/es/typography/Base";
5
- import s from "classnames";
6
- import { isValidColor as _, getColor as L } from "../../../utils/functions/index.js";
7
- import { u as g } from "../../../chunks/useKitTheme.KSAU-Pdv.js";
8
- import { Typography as k } from "antd";
9
- const d = (t = "regular") => s({
10
- "ant-typography-regular": t === u.regular,
11
- "ant-typography-medium": t === u.medium,
12
- "ant-typography-bold": t === u.bold
13
- }), T = (t) => s({ [`kit-typography-${t}`]: t }), u = {
4
+ import c from "classnames";
5
+ import { isValidColor as L, getColor as C } from "../../../utils/functions/index.js";
6
+ import { u as h } from "../../../chunks/useKitTheme.KSAU-Pdv.js";
7
+ import { t as u } from "../../../chunks/styles.module.shsViPAW.js";
8
+ import { Typography as p } from "antd";
9
+ const k = (t = "regular") => c({
10
+ "ant-typography-regular": t === d.regular,
11
+ "ant-typography-medium": t === d.medium,
12
+ "ant-typography-bold": t === d.bold
13
+ }), T = (t) => c({ [`kit-typography-${t}`]: t }), d = {
14
14
  regular: "regular",
15
15
  medium: "medium",
16
16
  bold: "bold"
@@ -19,8 +19,8 @@ const d = (t = "regular") => s({
19
19
  h2: "h2",
20
20
  h3: "h3",
21
21
  h4: "h4"
22
- }, C = (t) => ["primary", "grey", "black", "black60", "white"].includes(t), h = (t) => {
23
- if (!t || !(_(t) || C(t)))
22
+ }, P = (t) => ["primary", "grey", "black", "black60", "white"].includes(t), g = (t) => {
23
+ if (!t || !(L(t) || P(t)))
24
24
  return null;
25
25
  let e = "";
26
26
  switch (t) {
@@ -31,43 +31,39 @@ const d = (t = "regular") => s({
31
31
  e = "var(--general-colors-neutral-white)";
32
32
  break;
33
33
  default:
34
- e = L(t);
34
+ e = C(t);
35
35
  break;
36
36
  }
37
37
  return {
38
38
  "--kit-typography-color": e
39
39
  };
40
- }, p = {
41
- "kit-typography-link": "_kit-typography-link_1gi19_2",
42
- "kit-typography-paragraph": "_kit-typography-paragraph_1gi19_17",
43
- "kit-typography-text": "_kit-typography-text_1gi19_35"
44
- }, N = c(({ level: t = x.h1, ...e }, r) => {
45
- const { appId: a } = g(), o = x[t], l = K, i = m(() => ({ ...e.style, ...h(e.color) }), [e.color, e.style]), n = s(a, p["kit-typography-title"], e.className);
46
- return y(l, { ref: r, ...e, component: o, className: n, style: i });
40
+ }, f = y(({ level: t = x.h1, ...e }, l) => {
41
+ const { appId: a } = h(), o = x[t], r = K, n = m(() => ({ ...e.style, ...g(e.color) }), [e.color, e.style]), s = c(a, u["kit-typography-title"], e.className);
42
+ return i(r, { ref: l, ...e, component: o, className: s, style: n });
47
43
  });
48
- N.displayName = "KitTitle";
49
- const P = N, b = c(({ size: t = "medium", weight: e, className: r, ...a }, o) => {
50
- const { appId: l } = g(), i = s(l, p["kit-typography-text"], T(t), d(e), r), n = m(() => ({ ...a.style, ...h(a.color) }), [a.color, a.style]);
51
- return y(k.Text, { ...a, ref: o, className: i, style: n });
44
+ f.displayName = "KitTitle";
45
+ const S = f, N = y(({ size: t = "medium", weight: e, className: l, ...a }, o) => {
46
+ const { appId: r } = h(), n = c(r, u["kit-typography-text"], T(t), k(e), l), s = m(() => ({ ...a.style, ...g(a.color) }), [a.color, a.style]);
47
+ return i(p.Text, { ...a, ref: o, className: n, style: s });
52
48
  });
53
- b.displayName = "KitText";
54
- const E = b, f = c(({ size: t = "medium", weight: e, className: r, ...a }, o) => {
55
- const { appId: l } = g(), i = s(l, p["kit-typography-link"], T(t), d(e), r), n = m(() => ({ ...a.style, ...h(a.color) }), [a.color, a.style]);
56
- return y(k.Link, { ...a, ref: o, className: i, style: n });
49
+ N.displayName = "KitText";
50
+ const E = N, b = y(({ size: t = "medium", weight: e, className: l, ...a }, o) => {
51
+ const { appId: r } = h(), n = c(r, u["kit-typography-link"], T(t), k(e), l), s = m(() => ({ ...a.style, ...g(a.color) }), [a.color, a.style]);
52
+ return i(p.Link, { ...a, ref: o, className: n, style: s });
57
53
  });
58
- f.displayName = "KitLink";
59
- const S = f, I = c(({ size: t = "medium", weight: e, className: r, ...a }, o) => {
60
- const { appId: l } = g(), i = s(l, p["kit-typography-paragraph"], T(t), d(e), r), n = m(() => ({ ...a.style, ...h(a.color) }), [a.color, a.style]);
61
- return y(k.Paragraph, { ...a, ref: o, className: i, style: n });
54
+ b.displayName = "KitLink";
55
+ const V = b, I = y(({ size: t = "medium", weight: e, className: l, ...a }, o) => {
56
+ const { appId: r } = h(), n = c(r, u["kit-typography-paragraph"], T(t), k(e), l), s = m(() => ({ ...a.style, ...g(a.color) }), [a.color, a.style]);
57
+ return i(p.Paragraph, { ...a, ref: o, className: n, style: s });
62
58
  });
63
59
  I.displayName = "KitParagraph";
64
- const V = I, w = {
65
- Title: P,
60
+ const w = I, v = {
61
+ Title: S,
66
62
  Text: E,
67
- Link: S,
68
- Paragraph: V
63
+ Link: V,
64
+ Paragraph: w
69
65
  };
70
- w.displayName = "KitTypography";
66
+ v.displayName = "KitTypography";
71
67
  export {
72
- w as KitTypography
68
+ v as KitTypography
73
69
  };
@@ -1,4 +1,4 @@
1
- import "../../../assets/index16.css";
1
+ import "../../../assets/index15.css";
2
2
  import { jsx as m } from "react/jsx-runtime";
3
3
  import { Divider as s } from "antd";
4
4
  import { u as d } from "../../../chunks/useKitTheme.KSAU-Pdv.js";
@@ -1,4 +1,4 @@
1
- import "../../../assets/index17.css";
1
+ import "../../../assets/index16.css";
2
2
  import { jsx as n } from "react/jsx-runtime";
3
3
  import { isValidColor as c, getColor as s } from "../../../utils/functions/index.js";
4
4
  import l from "classnames";
@@ -1,4 +1,4 @@
1
- import "../../../assets/index18.css";
1
+ import "../../../assets/index17.css";
2
2
  import { jsx as o, jsxs as s, Fragment as a } from "react/jsx-runtime";
3
3
  import { useMemo as c } from "react";
4
4
  import { Breadcrumb as d } from "antd";
@@ -1,4 +1,4 @@
1
- import "../../../assets/index19.css";
1
+ import "../../../assets/index18.css";
2
2
  import { jsxs as p, jsx as e } from "react/jsx-runtime";
3
3
  import { cloneElement as s, useMemo as f } from "react";
4
4
  import { KitTypography as g } from "../../General/Typography/index.js";
@@ -1,4 +1,4 @@
1
- import "../../../assets/index21.css";
1
+ import "../../../assets/index20.css";
2
2
  import { jsx as s } from "react/jsx-runtime";
3
3
  import { Pagination as p } from "antd";
4
4
  import { u as c } from "../../../chunks/useKitTheme.KSAU-Pdv.js";