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 +22 -1
- package/dist/Kit/App/index.js +34 -34
- package/dist/Kit/DataDisplay/Card/index.js +1 -1
- package/dist/Kit/DataDisplay/Collapse/index.js +1 -1
- package/dist/Kit/DataDisplay/ItemCard/index.js +1 -1
- package/dist/Kit/DataDisplay/ItemList/index.js +1 -1
- package/dist/Kit/DataDisplay/Tag/index.js +1 -1
- package/dist/Kit/DataDisplay/index.js +1 -1
- package/dist/Kit/DataEntry/Select/index.js +1 -1
- package/dist/Kit/DataEntry/index.js +1 -1
- package/dist/Kit/Feedback/SnackBar/index.js +4 -4
- package/dist/Kit/General/Button/index.js +57 -46
- package/dist/Kit/General/Typography/commons.d.ts +2 -0
- package/dist/Kit/General/Typography/index.js +77 -49
- package/dist/Kit/Navigation/Breadcrumb/index.js +25 -11
- package/dist/Kit/Navigation/Header/index.js +1 -1
- package/dist/Kit/Navigation/Menu/index.js +1 -1
- package/dist/Kit/Navigation/index.js +1 -1
- package/dist/Kit/index.js +1 -1
- package/dist/assets/index14.css +1 -1
- package/dist/assets/index17.css +1 -1
- package/dist/assets/index28.css +1 -1
- package/dist/assets/index29.css +1 -1
- package/dist/chunks/{SnackBarProvider.i0xeV0xG.js → SnackBarProvider.v49b6mkx.js} +6 -6
- package/dist/chunks/{index.8Ha0pWt_.js → index.kVWdzwin.js} +109 -110
- package/dist/index.es.js +1 -1
- package/dist/theme/aristid/components/General/Button/index.d.ts +0 -1
- package/dist/theme/aristid/components/General/Button/index.js +15 -564
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,27 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
-
## [0.
|
|
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)
|
package/dist/Kit/App/index.js
CHANGED
|
@@ -1,74 +1,74 @@
|
|
|
1
1
|
import "../../assets/index19.css";
|
|
2
|
-
import r, { useState as p, useLayoutEffect as
|
|
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 {
|
|
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
|
|
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
|
|
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
|
|
14
|
-
import { K as
|
|
15
|
-
import { mapKitLocaleToAntdLocale as
|
|
16
|
-
import { d as
|
|
17
|
-
const
|
|
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
|
-
`,
|
|
22
|
-
const [
|
|
23
|
-
return
|
|
24
|
-
const a = d(
|
|
25
|
-
|
|
26
|
-
}, []), r.createElement(b.Provider, { value: { theme: f, appId: c, spacing: u } },
|
|
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:
|
|
29
|
+
r.createElement(C, { id: y, hasSourceMap: !1 }, `
|
|
30
30
|
:root{
|
|
31
|
-
${Object.keys(
|
|
31
|
+
${Object.keys(n).map((a) => `${a}: ${n[a]}`).join(";")}
|
|
32
32
|
}
|
|
33
33
|
`),
|
|
34
|
-
e && r.createElement(
|
|
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
|
|
40
|
-
return { theme:
|
|
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(
|
|
43
|
+
return r.createElement(F.Provider, { value: e }, t);
|
|
44
44
|
}, G = () => {
|
|
45
45
|
const [t, e] = p(m);
|
|
46
|
-
return { locale: t, setKitLocale: (
|
|
47
|
-
if (
|
|
48
|
-
const
|
|
49
|
-
e(
|
|
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
|
|
52
|
-
e(
|
|
51
|
+
const i = l(I, n);
|
|
52
|
+
e(i);
|
|
53
53
|
}
|
|
54
54
|
} };
|
|
55
|
-
}, Z = ({ children: t, locale: e, customTheme: o, id:
|
|
56
|
-
|
|
57
|
-
{ customTheme: o, id:
|
|
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 } =
|
|
65
|
-
return
|
|
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:
|
|
69
|
+
{ theme: h, locale: T(e) },
|
|
70
70
|
r.createElement(
|
|
71
|
-
|
|
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.
|
|
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,6 +1,6 @@
|
|
|
1
1
|
import "react";
|
|
2
2
|
import "classnames";
|
|
3
|
-
import { a as q } from "../../../chunks/index.
|
|
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.
|
|
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,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.
|
|
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.
|
|
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.
|
|
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 {
|
|
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
|
-
},
|
|
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
|
-
},
|
|
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 =
|
|
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
|
|
3
|
-
import
|
|
4
|
-
import { u as
|
|
5
|
-
import { FontAwesomeIcon as
|
|
6
|
-
import { faCircleCheck as
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
const
|
|
10
|
-
"kit-btn": "_kit-
|
|
11
|
-
},
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
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
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
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
|
-
},
|
|
48
|
-
|
|
58
|
+
}, J = O(H);
|
|
59
|
+
J.displayName = "KitButton";
|
|
49
60
|
export {
|
|
50
|
-
|
|
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
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import {
|
|
6
|
-
import { u as
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
"ant-typography-
|
|
10
|
-
"ant-typography-
|
|
11
|
-
|
|
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
|
-
},
|
|
16
|
+
}, d = {
|
|
16
17
|
h1: "h1",
|
|
17
18
|
h2: "h2",
|
|
18
19
|
h3: "h3",
|
|
19
20
|
h4: "h4"
|
|
20
|
-
},
|
|
21
|
-
|
|
22
|
-
|
|
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
|
-
|
|
25
|
-
const
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
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
|
-
|
|
38
|
-
const
|
|
39
|
-
const { appId:
|
|
40
|
-
"kit-typography-link-small":
|
|
41
|
-
"kit-typography-link-medium":
|
|
42
|
-
"kit-typography-link-large":
|
|
43
|
-
},
|
|
44
|
-
return
|
|
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
|
-
|
|
47
|
-
const
|
|
48
|
-
const { appId:
|
|
49
|
-
"kit-typography-paragraph-small":
|
|
50
|
-
"kit-typography-paragraph-medium":
|
|
51
|
-
"kit-typography-paragraph-large":
|
|
52
|
-
},
|
|
53
|
-
return
|
|
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
|
-
|
|
56
|
-
const $ =
|
|
57
|
-
Title:
|
|
58
|
-
Text:
|
|
59
|
-
Link:
|
|
83
|
+
f.displayName = "KitParagraph";
|
|
84
|
+
const $ = f, v = {
|
|
85
|
+
Title: L,
|
|
86
|
+
Text: P,
|
|
87
|
+
Link: C,
|
|
60
88
|
Paragraph: $
|
|
61
89
|
};
|
|
62
|
-
|
|
90
|
+
v.displayName = "KitTypography";
|
|
63
91
|
export {
|
|
64
|
-
|
|
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
|
|
4
|
-
import { u as
|
|
5
|
-
import
|
|
6
|
-
const
|
|
7
|
-
"kit-breadcrumb": "_kit-
|
|
8
|
-
},
|
|
9
|
-
|
|
10
|
-
|
|
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
|
-
|
|
26
|
+
p.displayName = "KitBreadcrumb";
|
|
13
27
|
export {
|
|
14
|
-
|
|
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.
|
|
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,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.
|
|
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.
|
|
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";
|