aristid-ds 0.13.0 → 1.0.0

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.
package/CHANGELOG.md CHANGED
@@ -1,6 +1,27 @@
1
1
  # Changelog
2
2
 
3
- ## [0.13.0](https://www.npmjs.com/package/aristid-ds/v/0.13.0) (2024-02-19)
3
+ ## [1.0.0](https://www.npmjs.com/package/aristid-ds/v/1.0.0) (2024-02-02)
4
+ * **⚠️ Breaking change - Button:** (@evoiron)
5
+ * update color Management
6
+ * remove design tokens
7
+ * remove some props : `href`, `target`, `wrapperClassName`, `wrapperStyle`, `textColor`
8
+ * rename props:
9
+ * `segmentedColor` is now `color`
10
+ * `segmentedactived` is now `active`
11
+ * `segmentedChecked` is now `checked`
12
+ * modify button types:
13
+ * add `tertiary` type
14
+ * remove `link` type
15
+
16
+ ### ✨ Features
17
+ * **Typography:**
18
+ * Add `color` prop to set color on each typography elements (@evoiron)
19
+
20
+ * **Breadcrumb:**
21
+ * change `breadcrumb` design (@Delmotte-Vincent)
22
+ * add `icon` props in `breadcrumb` items (@Delmotte-Vincent)
23
+
24
+ ## [0.13.0](https://www.npmjs.com/package/aristid-ds/v/0.13.0) (2024-02-16)
4
25
 
5
26
  ### 🐛 Bug Fixes
6
27
  * remove styled-components for improved performances. All Components impacted (@evoiron)
@@ -1,74 +1,74 @@
1
1
  import "../../assets/index19.css";
2
- import r, { useState as p, useLayoutEffect as K, useRef as g, useEffect as v } from "react";
2
+ import r, { useState as p, useLayoutEffect as g, useRef as v, useEffect as K } from "react";
3
3
  import { ConfigProvider as E } from "antd";
4
- import { K as L } from "../../chunks/SnackBarProvider.i0xeV0xG.js";
4
+ import { I as L } from "../../chunks/SnackBarProvider.v49b6mkx.js";
5
5
  import { createGlobalStyle as P } from "styled-components";
6
6
  import { toCssVariables as d, uuid as S } from "../../utils/functions/index.js";
7
- import s from "lodash/merge";
7
+ import l from "lodash/merge";
8
8
  import { Style as C } from "react-style-tag";
9
9
  import { K as b } from "../../chunks/useKitTheme.KSAU-Pdv.js";
10
- import { KitAristidThemeGeneral as l } from "../../theme/aristid/general/index.js";
10
+ import { KitAristidThemeGeneral as s } from "../../theme/aristid/general/index.js";
11
11
  import { antdThemeConfig as h } from "../../theme/utils/tokens-mapper/index.js";
12
12
  import { frFR as m } from "../../translation/fr-FR/index.js";
13
- import { enUS as F } from "../../translation/en-US/index.js";
14
- import { K as R, u as T } from "../../chunks/useKitLocale.96CdK3og.js";
15
- import { mapKitLocaleToAntdLocale as $ } from "../../translation/utils/index.js";
16
- import { d as k } from "../../chunks/notification-provider.kV-P-2Jh.js";
17
- const y = P`
13
+ import { enUS as I } from "../../translation/en-US/index.js";
14
+ import { K as F, u as R } from "../../chunks/useKitLocale.96CdK3og.js";
15
+ import { mapKitLocaleToAntdLocale as T } from "../../translation/utils/index.js";
16
+ import { d as $ } from "../../chunks/notification-provider.kV-P-2Jh.js";
17
+ const k = P`
18
18
  .${(t) => t.id} {
19
19
  ${(t) => d(t.customTheme)};
20
20
  }
21
- `, A = "aristid-ds-global", I = ({ children: t, customTheme: e, id: o }) => {
22
- const [i, n] = p(null), { theme: f, appId: c, spacing: u } = x(o, e);
23
- return K(() => {
24
- const a = d(l, "--general");
25
- n(a);
26
- }, []), r.createElement(b.Provider, { value: { theme: f, appId: c, spacing: u } }, i !== null && r.createElement(
21
+ `, y = "aristid-ds-global", A = ({ children: t, customTheme: e, id: o }) => {
22
+ const [n, i] = p(null), { theme: f, appId: c, spacing: u } = x(o, e);
23
+ return g(() => {
24
+ const a = d(s, "--general");
25
+ i(a);
26
+ }, []), r.createElement(b.Provider, { value: { theme: f, appId: c, spacing: u } }, n !== null && r.createElement(
27
27
  r.Fragment,
28
28
  null,
29
- r.createElement(C, { id: A, hasSourceMap: !1 }, `
29
+ r.createElement(C, { id: y, hasSourceMap: !1 }, `
30
30
  :root{
31
- ${Object.keys(i).map((a) => `${a}: ${i[a]}`).join(";")}
31
+ ${Object.keys(n).map((a) => `${a}: ${n[a]}`).join(";")}
32
32
  }
33
33
  `),
34
- e && r.createElement(y, { id: c, customTheme: e }),
34
+ e && r.createElement(k, { id: c, customTheme: e }),
35
35
  t
36
36
  ));
37
37
  }, x = (t, e) => {
38
38
  var o;
39
- const i = g(t || "ds-" + S().substring(0, 8)), n = s(l.spacing, (o = e == null ? void 0 : e.general) === null || o === void 0 ? void 0 : o.spacing);
40
- return { theme: l, appId: i.current, spacing: n };
39
+ const n = v(t || "ds-" + S().substring(0, 8)), i = l(s.spacing, (o = e == null ? void 0 : e.general) === null || o === void 0 ? void 0 : o.spacing);
40
+ return { theme: s, appId: n.current, spacing: i };
41
41
  }, j = ({ children: t }) => {
42
42
  const e = G();
43
- return r.createElement(R.Provider, { value: e }, t);
43
+ return r.createElement(F.Provider, { value: e }, t);
44
44
  }, G = () => {
45
45
  const [t, e] = p(m);
46
- return { locale: t, setKitLocale: (i) => {
47
- if (i.locale === "frFR") {
48
- const n = s(m, i);
49
- e(n);
46
+ return { locale: t, setKitLocale: (n) => {
47
+ if (n.locale === "frFR") {
48
+ const i = l(m, n);
49
+ e(i);
50
50
  } else {
51
- const n = s(F, i);
52
- e(n);
51
+ const i = l(I, n);
52
+ e(i);
53
53
  }
54
54
  } };
55
- }, Z = ({ children: t, locale: e, customTheme: o, id: i }) => r.createElement(
56
- I,
57
- { customTheme: o, id: i },
55
+ }, Z = ({ children: t, locale: e, customTheme: o, id: n }) => r.createElement(
56
+ A,
57
+ { customTheme: o, id: n },
58
58
  r.createElement(
59
59
  j,
60
60
  null,
61
61
  r.createElement(U, { locale: e }, t)
62
62
  )
63
63
  ), U = ({ children: t, locale: e }) => {
64
- const { setKitLocale: o } = T();
65
- return v(() => {
64
+ const { setKitLocale: o } = R();
65
+ return K(() => {
66
66
  e !== void 0 && o(e);
67
67
  }, [e, o]), r.createElement(
68
68
  E,
69
- { theme: h, locale: $(e) },
69
+ { theme: h, locale: T(e) },
70
70
  r.createElement(
71
- k,
71
+ $,
72
72
  null,
73
73
  r.createElement(L, null),
74
74
  t
@@ -8,7 +8,7 @@ import "../../DataEntry/Input/index.js";
8
8
  import "../../DataEntry/InputNumber/index.js";
9
9
  import "../../DataEntry/Radio/index.js";
10
10
  import "../../DataEntry/Rate/index.js";
11
- import { K as y } from "../../../chunks/index.8Ha0pWt_.js";
11
+ import { K as y } from "../../../chunks/index.kVWdzwin.js";
12
12
  import "../../DataEntry/Switch/index.js";
13
13
  import "../../DataEntry/DatePicker/index.js";
14
14
  import "../../DataEntry/AutoComplete/index.js";
@@ -1,4 +1,4 @@
1
- import { b as e } from "../../../chunks/index.8Ha0pWt_.js";
1
+ import { b as e } from "../../../chunks/index.kVWdzwin.js";
2
2
  export {
3
3
  e as KitCollapse
4
4
  };
@@ -1,6 +1,6 @@
1
1
  import "react";
2
2
  import "classnames";
3
- import { a as q } from "../../../chunks/index.8Ha0pWt_.js";
3
+ import { a as q } from "../../../chunks/index.kVWdzwin.js";
4
4
  import "../../General/Button/index.js";
5
5
  import "../../General/Typography/index.js";
6
6
  import "../../General/Icon/index.js";
@@ -4,7 +4,7 @@ import "../../DataEntry/Input/index.js";
4
4
  import "../../DataEntry/InputNumber/index.js";
5
5
  import "../../DataEntry/Radio/index.js";
6
6
  import "../../DataEntry/Rate/index.js";
7
- import { c as u } from "../../../chunks/index.8Ha0pWt_.js";
7
+ import { c as u } from "../../../chunks/index.kVWdzwin.js";
8
8
  import "../../DataEntry/Switch/index.js";
9
9
  import "../../DataEntry/DatePicker/index.js";
10
10
  import "../../DataEntry/AutoComplete/index.js";
@@ -1,4 +1,4 @@
1
- import { d as r } from "../../../chunks/index.8Ha0pWt_.js";
1
+ import { d as r } from "../../../chunks/index.kVWdzwin.js";
2
2
  export {
3
3
  r as KitTag
4
4
  };
@@ -1,7 +1,7 @@
1
1
  import { KitAvatar as o } from "./Avatar/index.js";
2
2
  import { KitBadge as e } from "./Badge/index.js";
3
3
  import { KitLegacyCard as K } from "./LegacyCard/index.js";
4
- import { K as p, b as f, a as x, c as s, d } from "../../chunks/index.8Ha0pWt_.js";
4
+ import { K as p, b as f, a as x, c as s, d } from "../../chunks/index.kVWdzwin.js";
5
5
  import { KitImage as g } from "./Image/index.js";
6
6
  import { KitTooltip as l } from "./Tooltip/index.js";
7
7
  import { KitTree as b } from "./Tree/index.js";
@@ -5,7 +5,7 @@ import "../../General/Button/index.js";
5
5
  import "../../General/Typography/index.js";
6
6
  import "../../General/Icon/index.js";
7
7
  import "../../../chunks/InputWrapper.sHItZx7l.js";
8
- import { e as b } from "../../../chunks/index.8Ha0pWt_.js";
8
+ import { e as b } from "../../../chunks/index.kVWdzwin.js";
9
9
  import "../../../chunks/useKitTheme.KSAU-Pdv.js";
10
10
  import "@fortawesome/react-fontawesome";
11
11
  import "@fortawesome/free-regular-svg-icons";
@@ -4,7 +4,7 @@ import { KitInputNumber as m } from "./InputNumber/index.js";
4
4
  import { K } from "../../chunks/InputWrapper.sHItZx7l.js";
5
5
  import { KitRadio as a } from "./Radio/index.js";
6
6
  import { KitRate as l } from "./Rate/index.js";
7
- import { e as d } from "../../chunks/index.8Ha0pWt_.js";
7
+ import { e as d } from "../../chunks/index.kVWdzwin.js";
8
8
  import { KitSwitch as n } from "./Switch/index.js";
9
9
  import { KitDatePicker as I } from "./DatePicker/index.js";
10
10
  import { KitAutoComplete as b } from "./AutoComplete/index.js";
@@ -1,5 +1,5 @@
1
1
  import "../../../assets/index24.css";
2
- import { K as v } from "../../../chunks/SnackBarProvider.i0xeV0xG.js";
2
+ import { I as v } from "../../../chunks/SnackBarProvider.v49b6mkx.js";
3
3
  import t from "react";
4
4
  import { toast as m } from "react-hot-toast";
5
5
  import { u as b } from "../../../chunks/useKitTheme.KSAU-Pdv.js";
@@ -8,7 +8,7 @@ import { faXmark as N } from "@fortawesome/free-solid-svg-icons";
8
8
  import f from "classnames";
9
9
  const B = {
10
10
  "kit-snackbar": "_kit-snackbar_1k0m4_2"
11
- }, K = ({ message: r, className: c, ctaText: a, ctaOnClick: e, closable: o, style: k }) => {
11
+ }, S = ({ message: r, className: c, ctaText: a, ctaOnClick: e, closable: o, style: k }) => {
12
12
  const { appId: l } = b(), i = a !== void 0 && e !== void 0, s = o !== void 0, d = `auto ${i ? "min-content" : ""} ${s ? "12px" : ""}`, p = f(l, B["kit-snackbar"], c, {
13
13
  "with-close-container": s,
14
14
  "with-cta-container": i
@@ -42,11 +42,11 @@ const B = {
42
42
  )
43
43
  )
44
44
  );
45
- }, S = K, g = 4e3, h = ({ message: r, closable: c, ctaText: a, ctaOnClick: e, duration: o = g }) => (n(), m(t.createElement(S, { message: r, ctaText: a, ctaOnClick: e, closable: c }), {
45
+ }, g = S, h = 4e3, u = ({ message: r, closable: c, ctaText: a, ctaOnClick: e, duration: o = h }) => (n(), m(t.createElement(g, { message: r, ctaText: a, ctaOnClick: e, closable: c }), {
46
46
  duration: o
47
47
  })), n = () => {
48
48
  m.remove();
49
- }, x = h, y = n, D = v;
49
+ }, x = u, y = n, D = v;
50
50
  export {
51
51
  D as KitSnackBarProvider,
52
52
  y as closeKitSnackBar,
@@ -1,51 +1,62 @@
1
1
  import "../../../assets/index14.css";
2
- import s, { forwardRef as _ } from "react";
3
- import { Button as E } from "antd";
4
- import { u as K } from "../../../chunks/useKitTheme.KSAU-Pdv.js";
5
- import { FontAwesomeIcon as h } from "@fortawesome/react-fontawesome";
6
- import { faCircleCheck as x } from "@fortawesome/free-solid-svg-icons";
7
- import A from "../../../hooks/useSecureClick/index.js";
8
- import I from "classnames";
9
- const N = {
10
- "kit-btn": "_kit-btn_169t9_2"
11
- }, R = ({ iconSize: e, primaryModal: l, type: t, segmentedChecked: u, segmentedActived: r, segmentedColor: i, textColor: o, className: d, wrapperClassName: c, wrapperStyle: f, onClick: m, disableSecureClick: k, children: a, ...n }, b) => {
12
- const { appId: v } = K(), g = A(m), B = () => {
13
- if (l)
14
- return "primary";
15
- switch (t) {
16
- case "segmented":
17
- default:
18
- return "default";
19
- case "primary":
20
- case "link":
21
- case "text":
22
- case "default":
23
- return t;
24
- }
25
- }, $ = I(v, N["kit-btn"], d, `kit-btn-${t ?? "default"}`, {
26
- // 'kit-btn-segmented': type === 'segmented',
27
- [`kit-btn-${o ?? "default"}`]: t === "text",
28
- [`kit-btn-${i ?? "default"}`]: t === "segmented" && !n.danger,
29
- "ant-btn-icon-only": !a && a !== 0 && !n.loading && n.icon,
30
- [`icon-${e ?? "m"}`]: e,
31
- "kit-btn-segmented-actived": r
2
+ import i, { forwardRef as O, useState as $, useMemo as w, useEffect as x, cloneElement as R } from "react";
3
+ import h from "@ant-design/icons/LoadingOutlined";
4
+ import { u as j } from "../../../chunks/useKitTheme.KSAU-Pdv.js";
5
+ import { FontAwesomeIcon as A } from "@fortawesome/react-fontawesome";
6
+ import { faCircleCheck as D } from "@fortawesome/free-solid-svg-icons";
7
+ import F from "../../../hooks/useSecureClick/index.js";
8
+ import L from "classnames";
9
+ const M = {
10
+ "kit-btn": "_kit-btn_1l8t6_2"
11
+ }, q = (t) => {
12
+ var e;
13
+ if (!t)
14
+ return null;
15
+ const n = t.props;
16
+ return R(t, {
17
+ className: ((e = n == null ? void 0 : n.className) !== null && e !== void 0 ? e : "") + " kit-btn-icon"
32
18
  });
33
- return s.createElement(
34
- "div",
35
- { className: c ?? "", style: {
36
- position: "relative",
37
- display: "inline-block",
38
- ...f
39
- } },
40
- s.createElement(
41
- E,
42
- { ...n, className: $, ghost: l, type: B(), onClick: k ? m : g, ref: b },
43
- a,
44
- t === "segmented" && u && s.createElement(h, { icon: x, className: "kit-btn-segmented-actived-icon" })
45
- )
19
+ }, G = (t) => {
20
+ if (typeof t == "object" && t) {
21
+ let e = t == null ? void 0 : t.delay;
22
+ return e = !Number.isNaN(e) && typeof e == "number" ? e : 0, {
23
+ loading: e <= 0,
24
+ delay: e
25
+ };
26
+ }
27
+ return {
28
+ loading: !!t,
29
+ delay: 0
30
+ };
31
+ }, H = ({ iconSize: t, primaryModal: e, type: n = "secondary", checked: d, active: f, loading: s = !1, icon: r, danger: b, color: c, block: k, className: p, onClick: a, disableSecureClick: y, children: m, disabled: g, ...v }, N) => {
32
+ const { appId: E } = j(), [_, u] = $(!1), l = w(() => G(s), [s]), C = F(a), T = !m && r, B = L(E, M["kit-btn"], p, {
33
+ [`kit-btn-${n}`]: !e && n,
34
+ "kit-btn-primaryModal": e,
35
+ "kit-btn-danger": b,
36
+ "kit-btn-block": k,
37
+ "kit-btn-segmented-active": f,
38
+ [`icon-${t ?? "m"}`]: t,
39
+ "kit-btn-icon-only": T,
40
+ [`kit-btn-color-${c}`]: c
41
+ }), I = q(r);
42
+ return x(() => {
43
+ let o = null;
44
+ l.delay > 0 ? o = setTimeout(() => {
45
+ o = null, u(!0);
46
+ }, l.delay) : u(l.loading);
47
+ function K() {
48
+ o && (clearTimeout(o), o = null);
49
+ }
50
+ return K;
51
+ }, [s, l]), i.createElement(
52
+ "button",
53
+ { onClick: y ? a : C, disabled: g, ref: N, ...v, className: B },
54
+ _ ? i.createElement(h, { className: "kit-btn-icon" }) : I,
55
+ m,
56
+ n === "segmented" && d && i.createElement(A, { icon: D, className: "kit-btn-segmented-actived-icon" })
46
57
  );
47
- }, T = _(R);
48
- T.displayName = "KitButton";
58
+ }, J = O(H);
59
+ J.displayName = "KitButton";
49
60
  export {
50
- T as KitButton
61
+ J as KitButton
51
62
  };
@@ -1,7 +1,9 @@
1
1
  import { TitleLevel, TypographyWeight, TypographyWeightKeys } from './types';
2
+ import { CSSProperties } from 'react';
2
3
  export declare const getWeightClassname: ({ className, weight }: {
3
4
  className?: string | undefined;
4
5
  weight?: TypographyWeightKeys | undefined;
5
6
  }) => string;
6
7
  export declare const TYPOGRAPHY_WEIGHT: TypographyWeight;
7
8
  export declare const TITLE_LEVEL: TitleLevel;
9
+ export declare const getCustomColor: (color: string | undefined | null) => CSSProperties | null;
@@ -1,65 +1,93 @@
1
1
  import "../../../assets/index28.css";
2
- import o, { forwardRef as l } from "react";
3
- import T from "antd/lib/typography/Base";
4
- import m from "classnames";
5
- import { Typography as y } from "antd";
6
- import { u as g } from "../../../chunks/useKitTheme.KSAU-Pdv.js";
7
- const h = ({ className: t = "", weight: a = "regular" }) => m(t, {
8
- "ant-typography-regular": a === n.regular,
9
- "ant-typography-medium": a === n.medium,
10
- "ant-typography-bold": a === n.bold
11
- }), n = {
2
+ import n, { forwardRef as c, useMemo as m } from "react";
3
+ import K from "antd/lib/typography/Base";
4
+ import i from "classnames";
5
+ import { isValidColor as _, getColor as N } from "../../../utils/functions/index.js";
6
+ import { u as s } from "../../../chunks/useKitTheme.KSAU-Pdv.js";
7
+ import { Typography as k } from "antd";
8
+ const u = ({ className: a = "", weight: t = "regular" }) => i(a, {
9
+ "ant-typography-regular": t === h.regular,
10
+ "ant-typography-medium": t === h.medium,
11
+ "ant-typography-bold": t === h.bold
12
+ }), h = {
12
13
  regular: "regular",
13
14
  medium: "medium",
14
15
  bold: "bold"
15
- }, c = {
16
+ }, d = {
16
17
  h1: "h1",
17
18
  h2: "h2",
18
19
  h3: "h3",
19
20
  h4: "h4"
20
- }, k = l(({ level: t = c.h1, ...a }, r) => {
21
- const p = c[t], e = T;
22
- return o.createElement(e, { ref: r, ...a, component: p });
21
+ }, E = (a) => ["primary", "grey", "black", "black60", "white"].includes(a), g = (a) => {
22
+ if (!a || !(_(a) || E(a)))
23
+ return null;
24
+ let t = "";
25
+ switch (a) {
26
+ case "primary":
27
+ t = "var(--general-colors-primary-primary400)";
28
+ break;
29
+ case "grey":
30
+ t = "var(--general-colors-neutral-grey-grey400)";
31
+ break;
32
+ case "black":
33
+ t = "var(--general-colors-neutral-typography-black)";
34
+ break;
35
+ case "black60":
36
+ t = "var(--general-colors-neutral-typography-black60)";
37
+ break;
38
+ case "white":
39
+ t = "var(--general-colors-neutral-typography-white)";
40
+ break;
41
+ default:
42
+ t = N(a);
43
+ break;
44
+ }
45
+ return {
46
+ "--kit-typography-color": t
47
+ };
48
+ }, p = {
49
+ "kit-typography-link": "_kit-typography-link_7fb2b_2",
50
+ "kit-typography-paragraph": "_kit-typography-paragraph_7fb2b_17",
51
+ "kit-typography-text": "_kit-typography-text_7fb2b_32"
52
+ }, b = c(({ level: a = d.h1, ...t }, e) => {
53
+ const { appId: r } = s(), l = d[a], o = K, y = m(() => ({ ...t.style, ...g(t.color) }), [t.color, t.style]), I = i(r, p["kit-typography-title"], t.className);
54
+ return n.createElement(o, { ref: e, ...t, component: l, className: I, style: y });
23
55
  });
24
- k.displayName = "KitTitle";
25
- const K = k, s = {
26
- "kit-typography-link": "_kit-typography-link_yx5ix_2",
27
- "kit-typography-paragraph": "_kit-typography-paragraph_yx5ix_16",
28
- "kit-typography-text": "_kit-typography-text_yx5ix_30"
29
- }, d = l(({ size: t = "medium", className: a, ...r }, p) => {
30
- const { appId: e } = g(), i = m(s["kit-typography-text"], {
31
- "kit-typography-text-small": t === "small",
32
- "kit-typography-text-medium": t === "medium",
33
- "kit-typography-text-large": t === "large"
34
- }, a);
35
- return o.createElement(y.Text, { ...r, ref: p, className: `${e} ${i} ${h(r)}` });
56
+ b.displayName = "KitTitle";
57
+ const L = b, T = c(({ size: a = "medium", className: t, ...e }, r) => {
58
+ const { appId: l } = s(), o = i(l, p["kit-typography-text"], {
59
+ "kit-typography-text-small": a === "small",
60
+ "kit-typography-text-medium": a === "medium",
61
+ "kit-typography-text-large": a === "large"
62
+ }, t), y = m(() => ({ ...e.style, ...g(e.color) }), [e.color, e.style]);
63
+ return n.createElement(k.Text, { ...e, ref: r, className: `${o} ${u(e)}`, style: y });
36
64
  });
37
- d.displayName = "KitText";
38
- const _ = d, u = l(({ size: t = "medium", className: a, ...r }, p) => {
39
- const { appId: e } = g(), i = m(s["kit-typography-link"], {
40
- "kit-typography-link-small": t === "small",
41
- "kit-typography-link-medium": t === "medium",
42
- "kit-typography-link-large": t === "large"
43
- }, a);
44
- return o.createElement(y.Link, { ...r, ref: p, className: `${e} ${i} ${h(r)}` });
65
+ T.displayName = "KitText";
66
+ const P = T, x = c(({ size: a = "medium", className: t, ...e }, r) => {
67
+ const { appId: l } = s(), o = i(l, p["kit-typography-link"], {
68
+ "kit-typography-link-small": a === "small",
69
+ "kit-typography-link-medium": a === "medium",
70
+ "kit-typography-link-large": a === "large"
71
+ }, t), y = m(() => ({ ...e.style, ...g(e.color) }), [e.color, e.style]);
72
+ return n.createElement(k.Link, { ...e, ref: r, className: `${o} ${u(e)}`, style: y });
45
73
  });
46
- u.displayName = "KitLink";
47
- const I = u, x = l(({ size: t = "medium", className: a, ...r }, p) => {
48
- const { appId: e } = g(), i = m(s["kit-typography-paragraph"], {
49
- "kit-typography-paragraph-small": t === "small",
50
- "kit-typography-paragraph-medium": t === "medium",
51
- "kit-typography-paragraph-large": t === "large"
52
- }, a);
53
- return o.createElement(y.Paragraph, { ...r, ref: p, className: `${e} ${i} ${h(r)}` });
74
+ x.displayName = "KitLink";
75
+ const C = x, f = c(({ size: a = "medium", className: t, ...e }, r) => {
76
+ const { appId: l } = s(), o = i(l, p["kit-typography-paragraph"], {
77
+ "kit-typography-paragraph-small": a === "small",
78
+ "kit-typography-paragraph-medium": a === "medium",
79
+ "kit-typography-paragraph-large": a === "large"
80
+ }, t), y = m(() => ({ ...e.style, ...g(e.color) }), [e.color, e.style]);
81
+ return n.createElement(k.Paragraph, { ...e, ref: r, className: `${o} ${u(e)}`, style: y });
54
82
  });
55
- x.displayName = "KitParagraph";
56
- const $ = x, E = {
57
- Title: K,
58
- Text: _,
59
- Link: I,
83
+ f.displayName = "KitParagraph";
84
+ const $ = f, v = {
85
+ Title: L,
86
+ Text: P,
87
+ Link: C,
60
88
  Paragraph: $
61
89
  };
62
- E.displayName = "KitTypography";
90
+ v.displayName = "KitTypography";
63
91
  export {
64
- E as KitTypography
92
+ v as KitTypography
65
93
  };
@@ -1,15 +1,29 @@
1
1
  import "../../../assets/index17.css";
2
- import c from "react";
3
- import { Breadcrumb as a } from "antd";
4
- import { u as o } from "../../../chunks/useKitTheme.KSAU-Pdv.js";
5
- import i from "classnames";
6
- const s = {
7
- "kit-breadcrumb": "_kit-breadcrumb_1nurc_2"
8
- }, u = ({ className: r, ...t }) => {
9
- const { appId: e } = o(), m = i(e, s["kit-breadcrumb"], r);
10
- return c.createElement(a, { ...t, className: m });
2
+ import n, { useMemo as c } from "react";
3
+ import { Breadcrumb as i } from "antd";
4
+ import { u as s } from "../../../chunks/useKitTheme.KSAU-Pdv.js";
5
+ import u from "classnames";
6
+ const l = {
7
+ "kit-breadcrumb": "_kit-breadcrumb_1fivb_2"
8
+ }, d = (e) => {
9
+ if (e !== void 0)
10
+ return e.map((r) => {
11
+ const { icon: m, ...t } = r;
12
+ return m ? {
13
+ ...t,
14
+ title: n.createElement(
15
+ n.Fragment,
16
+ null,
17
+ m,
18
+ t.title && n.createElement("span", { style: { marginLeft: "4px" } }, t.title)
19
+ )
20
+ } : t;
21
+ });
22
+ }, p = ({ className: e, items: r, ...m }) => {
23
+ const { appId: t } = s(), o = u(t, l["kit-breadcrumb"], e), a = c(() => d(r), [r]);
24
+ return n.createElement(i, { ...m, className: o, items: a });
11
25
  };
12
- u.displayName = "KitBreadcrumb";
26
+ p.displayName = "KitBreadcrumb";
13
27
  export {
14
- u as KitBreadcrumb
28
+ p as KitBreadcrumb
15
29
  };
@@ -10,7 +10,7 @@ import "../../DataEntry/Input/index.js";
10
10
  import "../../DataEntry/InputNumber/index.js";
11
11
  import "../../DataEntry/Radio/index.js";
12
12
  import "../../DataEntry/Rate/index.js";
13
- import { f as v } from "../../../chunks/index.8Ha0pWt_.js";
13
+ import { f as v } from "../../../chunks/index.kVWdzwin.js";
14
14
  import "../../DataEntry/Switch/index.js";
15
15
  import "../../DataEntry/DatePicker/index.js";
16
16
  import "../../DataEntry/AutoComplete/index.js";
@@ -1,4 +1,4 @@
1
- import { g as r } from "../../../chunks/index.8Ha0pWt_.js";
1
+ import { g as r } from "../../../chunks/index.kVWdzwin.js";
2
2
  export {
3
3
  r as KitMenu
4
4
  };
@@ -1,6 +1,6 @@
1
1
  import { KitBreadcrumb as t } from "./Breadcrumb/index.js";
2
2
  import { KitDropDown as i } from "./DropDown/index.js";
3
- import { f as a, g as f } from "../../chunks/index.8Ha0pWt_.js";
3
+ import { f as a, g as f } from "../../chunks/index.kVWdzwin.js";
4
4
  import { KitSteps as K } from "./Steps/index.js";
5
5
  import { KitPagination as n } from "./Pagination/index.js";
6
6
  export {
package/dist/Kit/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import { KitAvatar as o } from "./DataDisplay/Avatar/index.js";
2
2
  import { KitBadge as e } from "./DataDisplay/Badge/index.js";
3
3
  import { KitLegacyCard as i } from "./DataDisplay/LegacyCard/index.js";
4
- import { K as p, b as A, f as m, a as l, c as f, g as K, e as c, d } from "../chunks/index.8Ha0pWt_.js";
4
+ import { K as p, b as A, f as m, a as l, c as f, g as K, e as c, d } from "../chunks/index.kVWdzwin.js";
5
5
  import { KitImage as u } from "./DataDisplay/Image/index.js";
6
6
  import { KitTooltip as C } from "./DataDisplay/Tooltip/index.js";
7
7
  import { KitTree as g } from "./DataDisplay/Tree/index.js";