aristid-ds 12.0.0 → 12.0.1
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 +7 -0
- package/dist/Kit/App/index.js +7 -4
- package/dist/Kit/DataDisplay/Avatar/index.js +17 -2
- package/dist/Kit/DataDisplay/Collapse/index.js +1 -1
- package/dist/Kit/DataDisplay/Empty/index.js +1 -1
- package/dist/Kit/DataDisplay/Error/index.js +5 -4
- package/dist/Kit/DataDisplay/IdCard/index.js +23 -7
- package/dist/Kit/DataDisplay/Image/index.js +22 -8
- package/dist/Kit/DataDisplay/ItemCard/index.js +11 -2
- package/dist/Kit/DataDisplay/ItemList/index.js +16 -4
- package/dist/Kit/DataDisplay/RedirectCard/index.js +3 -2
- package/dist/Kit/DataDisplay/Table/index.js +105 -2
- package/dist/Kit/DataDisplay/Tabs/index.js +7 -4
- package/dist/Kit/DataDisplay/Tag/index.js +1 -1
- package/dist/Kit/DataDisplay/Tree/index.js +1 -1
- package/dist/Kit/DataDisplay/index.js +22 -20
- package/dist/Kit/DataEntry/AutoComplete/index.js +26 -8
- package/dist/Kit/DataEntry/Checkbox/index.js +66 -2
- package/dist/Kit/DataEntry/ColorPicker/index.js +80 -7
- package/dist/Kit/DataEntry/DatePicker/index.js +24 -2
- package/dist/Kit/DataEntry/Filter/index.js +6 -4
- package/dist/Kit/DataEntry/Input/index.js +33 -2
- package/dist/Kit/DataEntry/InputNumber/index.js +22 -7
- package/dist/Kit/DataEntry/InputWrapper/index.js +1 -1
- package/dist/Kit/DataEntry/Radio/index.js +53 -2
- package/dist/Kit/DataEntry/Rate/index.js +1 -1
- package/dist/Kit/DataEntry/RichText/EditorContentCharacterCount/index.js +1 -1
- package/dist/Kit/DataEntry/RichText/MenuBar/ButtonTooltip/index.js +6 -4
- package/dist/Kit/DataEntry/RichText/MenuBar/FontSizeSelect/index.js +3 -2
- package/dist/Kit/DataEntry/RichText/MenuBar/FontStylesButtons/index.js +2 -2
- package/dist/Kit/DataEntry/RichText/MenuBar/IndentListButtons/index.js +2 -2
- package/dist/Kit/DataEntry/RichText/MenuBar/LinkButton/index.js +3 -3
- package/dist/Kit/DataEntry/RichText/MenuBar/ListButtons/index.js +2 -2
- package/dist/Kit/DataEntry/RichText/MenuBar/TextAlignButtons/index.js +2 -2
- package/dist/Kit/DataEntry/RichText/MenuBar/UndoRedoButtons/index.js +2 -2
- package/dist/Kit/DataEntry/RichText/MenuBar/index.js +1 -1
- package/dist/Kit/DataEntry/RichText/index.js +3 -2
- package/dist/Kit/DataEntry/Select/index.js +3 -2
- package/dist/Kit/DataEntry/Slider/index.js +1 -1
- package/dist/Kit/DataEntry/Switch/index.js +1 -1
- package/dist/Kit/DataEntry/Upload/index.js +29 -3
- package/dist/Kit/DataEntry/index.js +28 -19
- package/dist/Kit/Feedback/Alert/index.js +61 -5
- package/dist/Kit/Feedback/Loader/index.js +1 -1
- package/dist/Kit/Feedback/Modal/index.js +1 -1
- package/dist/Kit/Feedback/Notification/index.js +1 -1
- package/dist/Kit/Feedback/Progress/index.js +1 -1
- package/dist/Kit/Feedback/Skeleton/index.js +1 -1
- package/dist/Kit/Feedback/SnackBar/index.js +15 -14
- package/dist/Kit/Feedback/index.js +16 -15
- package/dist/Kit/General/Button/index.js +83 -4
- package/dist/Kit/General/DynamicActions/index.js +21 -17
- package/dist/Kit/General/Icon/index.js +1 -1
- package/dist/Kit/General/Typography/index.js +1 -1
- package/dist/Kit/General/index.js +5 -5
- package/dist/Kit/Layout/Divider/index.js +1 -1
- package/dist/Kit/Layout/PageLayout/index.js +1 -1
- package/dist/Kit/Layout/index.js +1 -1
- package/dist/Kit/Navigation/Breadcrumb/index.js +1 -1
- package/dist/Kit/Navigation/Header/index.js +1 -1
- package/dist/Kit/Navigation/PageHeader/index.js +11 -2
- package/dist/Kit/Navigation/SideMenu/index.js +2 -2
- package/dist/Kit/Navigation/SidePanel/index.js +2 -2
- package/dist/Kit/Navigation/Steps/index.js +1 -1
- package/dist/Kit/Navigation/index.js +6 -6
- package/dist/Kit/index.js +159 -146
- package/dist/assets/Avatar.css +1 -0
- package/dist/assets/InputWrapper.css +1 -0
- package/dist/assets/index10.css +1 -1
- package/dist/assets/index11.css +1 -1
- package/dist/assets/index12.css +1 -1
- package/dist/assets/index13.css +1 -1
- package/dist/assets/index14.css +1 -1
- package/dist/assets/index15.css +1 -1
- package/dist/assets/index16.css +1 -1
- package/dist/assets/index17.css +1 -1
- package/dist/assets/index18.css +1 -1
- package/dist/assets/index19.css +1 -1
- package/dist/assets/index2.css +1 -1
- package/dist/assets/index20.css +1 -0
- package/dist/assets/index21.css +1 -0
- package/dist/assets/index22.css +1 -0
- package/dist/assets/index23.css +1 -0
- package/dist/assets/index24.css +1 -0
- package/dist/assets/index25.css +1 -0
- package/dist/assets/index26.css +1 -0
- package/dist/assets/index27.css +1 -0
- package/dist/assets/index28.css +1 -0
- package/dist/assets/index29.css +1 -0
- package/dist/assets/index3.css +1 -1
- package/dist/assets/index30.css +1 -0
- package/dist/assets/index4.css +1 -1
- package/dist/assets/index5.css +1 -1
- package/dist/assets/index6.css +1 -1
- package/dist/assets/index7.css +1 -1
- package/dist/assets/index8.css +1 -1
- package/dist/assets/index9.css +1 -1
- package/dist/chunks/Avatar.N2w2jq_C.js +30 -0
- package/dist/chunks/InputWrapper.0X0QJWir.js +25 -0
- package/dist/chunks/{KitNotification.yY3RY8ac.js → KitNotification.2R3zaAIp.js} +16 -15
- package/dist/chunks/index.0Y6PLkFX.js +1176 -0
- package/dist/chunks/useKitLocale.96CdK3og.js +11 -0
- package/dist/index.es.js +163 -149
- package/dist/index.umd.js +2 -2
- package/package.json +1 -1
- package/dist/chunks/index.Lkobh8cF.js +0 -1667
- package/dist/chunks/index.S1tc6cnV.js +0 -31
- package/dist/chunks/index.bf78FwPu.js +0 -41
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [12.0.1](https://www.npmjs.com/package/aristid-ds/v/12.0.1) (2024-01-13)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### 🐛 Bug Fixes
|
|
7
|
+
- **SplitButton**:
|
|
8
|
+
- fix circular dependency (@evoiron)
|
|
9
|
+
|
|
3
10
|
## [12.0.0](https://www.npmjs.com/package/aristid-ds/v/12.0.0) (2024-01-09)
|
|
4
11
|
|
|
5
12
|
### ✨ Features
|
package/dist/Kit/App/index.js
CHANGED
|
@@ -1,17 +1,20 @@
|
|
|
1
1
|
import "react/jsx-runtime";
|
|
2
2
|
import "react";
|
|
3
3
|
import "antd";
|
|
4
|
-
import { K as
|
|
4
|
+
import { K as j } from "../../chunks/index.0Y6PLkFX.js";
|
|
5
5
|
import "../../theme/utils/tokens-mapper/index.js";
|
|
6
6
|
import "../../translation/utils/index.js";
|
|
7
|
-
import "../../chunks/
|
|
8
|
-
import "
|
|
7
|
+
import "../../chunks/useKitLocale.96CdK3og.js";
|
|
8
|
+
import "../DataDisplay/Avatar/index.js";
|
|
9
9
|
import "../DataDisplay/Badge/index.js";
|
|
10
10
|
import "../DataDisplay/Empty/index.js";
|
|
11
|
+
import "../DataDisplay/IdCard/index.js";
|
|
12
|
+
import "../DataDisplay/Image/index.js";
|
|
13
|
+
import "../DataDisplay/Table/index.js";
|
|
11
14
|
import "../DataDisplay/Tree/index.js";
|
|
12
15
|
import "../DataDisplay/Tooltip/index.js";
|
|
13
16
|
import "../../chunks/useKitTheme.KSAU-Pdv.js";
|
|
14
17
|
import "classnames";
|
|
15
18
|
export {
|
|
16
|
-
|
|
19
|
+
j as KitApp
|
|
17
20
|
};
|
|
@@ -1,4 +1,19 @@
|
|
|
1
|
-
import { K as
|
|
1
|
+
import { s as a, K as m } from "../../../chunks/Avatar.N2w2jq_C.js";
|
|
2
|
+
import { jsx as c } from "react/jsx-runtime";
|
|
3
|
+
import { Avatar as l } from "antd";
|
|
4
|
+
import { u as n } from "../../../chunks/useKitTheme.KSAU-Pdv.js";
|
|
5
|
+
import v from "classnames";
|
|
6
|
+
const u = ({ className: i, disabled: s, maxCount: r, ...t }) => {
|
|
7
|
+
const { appId: e } = n(), p = v(e, a["kit-avatar-group"], i, {
|
|
8
|
+
"override-last": r,
|
|
9
|
+
[a["kit-avatar-group-disabled"]]: s
|
|
10
|
+
});
|
|
11
|
+
return c(l.Group, { ...t, maxCount: r, className: p, maxStyle: {
|
|
12
|
+
cursor: t.maxPopoverTrigger === "click" ? "pointer" : "initial"
|
|
13
|
+
} });
|
|
14
|
+
}, A = u, o = m;
|
|
15
|
+
o.displayName = "KitAvatar";
|
|
16
|
+
o.Group = A;
|
|
2
17
|
export {
|
|
3
|
-
|
|
18
|
+
o as KitAvatar
|
|
4
19
|
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import "react/jsx-runtime";
|
|
2
2
|
import "react";
|
|
3
3
|
import "antd";
|
|
4
|
-
import "../../../chunks/
|
|
4
|
+
import "../../../chunks/useKitLocale.96CdK3og.js";
|
|
5
5
|
import "../../../chunks/useKitTheme.KSAU-Pdv.js";
|
|
6
|
-
import
|
|
6
|
+
import "../../General/Button/index.js";
|
|
7
7
|
import "../../General/Typography/index.js";
|
|
8
8
|
import "../../General/Icon/index.js";
|
|
9
9
|
import "../../Layout/Divider/index.js";
|
|
@@ -13,9 +13,10 @@ import "color-string";
|
|
|
13
13
|
import "lodash/isEmpty";
|
|
14
14
|
import "classnames";
|
|
15
15
|
import "../../../chunks/styles.module.Q_QQjQdX.js";
|
|
16
|
+
import { c as l } from "../../../chunks/index.0Y6PLkFX.js";
|
|
17
|
+
import "../../Feedback/Alert/index.js";
|
|
16
18
|
import "../../Feedback/Progress/index.js";
|
|
17
19
|
import "../../Feedback/Loader/index.js";
|
|
18
|
-
import "react-hot-toast";
|
|
19
20
|
export {
|
|
20
|
-
|
|
21
|
+
l as KitError
|
|
21
22
|
};
|
|
@@ -1,10 +1,26 @@
|
|
|
1
|
-
import "
|
|
2
|
-
import "
|
|
3
|
-
import
|
|
4
|
-
import "../../../chunks/useKitTheme.KSAU-Pdv.js";
|
|
5
|
-
import "../../General/
|
|
1
|
+
import "../../../assets/index2.css";
|
|
2
|
+
import { jsxs as l, jsx as s } from "react/jsx-runtime";
|
|
3
|
+
import n from "classnames";
|
|
4
|
+
import { u as x } from "../../../chunks/useKitTheme.KSAU-Pdv.js";
|
|
5
|
+
import "../../General/Button/index.js";
|
|
6
|
+
import { KitTypography as m } from "../../General/Typography/index.js";
|
|
6
7
|
import "../../General/Icon/index.js";
|
|
7
|
-
import "../../../chunks/
|
|
8
|
+
import { K as y } from "../../../chunks/Avatar.N2w2jq_C.js";
|
|
9
|
+
const g = {
|
|
10
|
+
"kit-id-card": "_kit-id-card_mmcks_2"
|
|
11
|
+
}, k = (r, i, t) => {
|
|
12
|
+
const o = n("kit-id-card-title", {
|
|
13
|
+
"kit-id-card-title-large": i === "large"
|
|
14
|
+
});
|
|
15
|
+
return s(m.Text, { className: o, size: "fontSize5", weight: "bold", ellipsis: { tooltip: !0 }, disabled: t, children: r });
|
|
16
|
+
}, D = (r, i, t) => {
|
|
17
|
+
const o = i === "medium" ? "fontSize7" : "fontSize5";
|
|
18
|
+
return s(m.Text, { size: o, ellipsis: { tooltip: !0 }, disabled: t, className: "kit-id-card-decription", children: r });
|
|
19
|
+
}, K = ({ className: r, title: i, description: t, avatarProps: o, size: c = "medium", disabled: e = !1, ...p }) => {
|
|
20
|
+
const { appId: u } = x(), h = n(u, g["kit-id-card"], r), f = o !== void 0, d = i !== void 0, a = t !== void 0, v = d || a;
|
|
21
|
+
return l("div", { className: `${h} id-card-grid`, ...p, children: [f && s("div", { className: "card-avatar", children: s(y, { ...o, disabled: e }) }), v && l("div", { className: "card-info", children: [d && k(i, c, e), a && D(t, c, e)] })] });
|
|
22
|
+
};
|
|
23
|
+
K.displayName = "KitIdCard";
|
|
8
24
|
export {
|
|
9
|
-
|
|
25
|
+
K as KitIdCard
|
|
10
26
|
};
|
|
@@ -1,10 +1,24 @@
|
|
|
1
|
-
import "
|
|
2
|
-
import "
|
|
3
|
-
import "
|
|
4
|
-
import "
|
|
5
|
-
import "@fortawesome/
|
|
6
|
-
import {
|
|
7
|
-
import "../../../chunks/
|
|
1
|
+
import "../../../assets/index3.css";
|
|
2
|
+
import { jsxs as k, jsx as r } from "react/jsx-runtime";
|
|
3
|
+
import { Image as a } from "antd";
|
|
4
|
+
import d from "classnames";
|
|
5
|
+
import { FontAwesomeIcon as v } from "@fortawesome/react-fontawesome";
|
|
6
|
+
import { faEye as I } from "@fortawesome/free-solid-svg-icons";
|
|
7
|
+
import { u as _ } from "../../../chunks/useKitLocale.96CdK3og.js";
|
|
8
|
+
import { u as j } from "../../../chunks/useKitTheme.KSAU-Pdv.js";
|
|
9
|
+
const m = {
|
|
10
|
+
"kit-image": "_kit-image_t5juo_2",
|
|
11
|
+
"mask-container": "_mask-container_t5juo_23"
|
|
12
|
+
}, x = ({ rounded: n, bordered: c, preview: o, className: t, ...p }) => {
|
|
13
|
+
var e;
|
|
14
|
+
const { locale: u } = _(), { appId: f } = j(), i = k("div", { className: m["mask-container"], children: [r(v, { icon: I }), (e = u.Image) === null || e === void 0 ? void 0 : e.preview] }), l = () => typeof o == "object" ? { mask: i, ...o } : o === void 0 ? { mask: i } : o, g = d(f, m["kit-image"], t ?? "", {
|
|
15
|
+
rounded: n,
|
|
16
|
+
bordered: c
|
|
17
|
+
});
|
|
18
|
+
return r(a, { className: g, preview: l(), ...p });
|
|
19
|
+
}, s = x;
|
|
20
|
+
s.PreviewGroup = a.PreviewGroup;
|
|
21
|
+
s.displayName = "KitImage";
|
|
8
22
|
export {
|
|
9
|
-
|
|
23
|
+
s as KitImage
|
|
10
24
|
};
|
|
@@ -1,12 +1,21 @@
|
|
|
1
1
|
import "react/jsx-runtime";
|
|
2
2
|
import "react";
|
|
3
3
|
import "classnames";
|
|
4
|
-
import
|
|
4
|
+
import "../../General/Button/index.js";
|
|
5
5
|
import "../../General/Typography/index.js";
|
|
6
6
|
import "../../General/Icon/index.js";
|
|
7
|
+
import "../../DataEntry/Checkbox/index.js";
|
|
8
|
+
import "../../DataEntry/Input/index.js";
|
|
9
|
+
import "../../DataEntry/InputNumber/index.js";
|
|
10
|
+
import "../../DataEntry/Radio/index.js";
|
|
7
11
|
import "../../DataEntry/Rate/index.js";
|
|
12
|
+
import { a as y } from "../../../chunks/index.0Y6PLkFX.js";
|
|
8
13
|
import "../../DataEntry/Switch/index.js";
|
|
14
|
+
import "../../DataEntry/DatePicker/index.js";
|
|
15
|
+
import "../../DataEntry/AutoComplete/index.js";
|
|
16
|
+
import "../../DataEntry/Upload/index.js";
|
|
9
17
|
import "../../DataEntry/Slider/index.js";
|
|
18
|
+
import "../../DataEntry/ColorPicker/index.js";
|
|
10
19
|
import "../../Navigation/Breadcrumb/index.js";
|
|
11
20
|
import "../../Navigation/DropDown/index.js";
|
|
12
21
|
import "../../Navigation/Steps/index.js";
|
|
@@ -16,5 +25,5 @@ import "../../../chunks/styles.module.YmhPHVHy.js";
|
|
|
16
25
|
import "@fortawesome/react-fontawesome";
|
|
17
26
|
import "@fortawesome/free-solid-svg-icons";
|
|
18
27
|
export {
|
|
19
|
-
|
|
28
|
+
y as KitItemCard
|
|
20
29
|
};
|
|
@@ -1,18 +1,29 @@
|
|
|
1
1
|
import "react/jsx-runtime";
|
|
2
2
|
import "react";
|
|
3
|
-
import
|
|
3
|
+
import "../../DataEntry/Checkbox/index.js";
|
|
4
|
+
import "../../DataEntry/Input/index.js";
|
|
5
|
+
import "../../DataEntry/InputNumber/index.js";
|
|
6
|
+
import "../../DataEntry/Radio/index.js";
|
|
4
7
|
import "../../DataEntry/Rate/index.js";
|
|
8
|
+
import { d as H } from "../../../chunks/index.0Y6PLkFX.js";
|
|
5
9
|
import "../../DataEntry/Switch/index.js";
|
|
10
|
+
import "../../DataEntry/DatePicker/index.js";
|
|
11
|
+
import "../../DataEntry/AutoComplete/index.js";
|
|
12
|
+
import "../../DataEntry/Upload/index.js";
|
|
6
13
|
import "../../DataEntry/Slider/index.js";
|
|
7
|
-
import "
|
|
14
|
+
import "../../DataEntry/ColorPicker/index.js";
|
|
15
|
+
import "../Avatar/index.js";
|
|
8
16
|
import "../Badge/index.js";
|
|
9
17
|
import "../Empty/index.js";
|
|
10
|
-
import "
|
|
18
|
+
import "../IdCard/index.js";
|
|
19
|
+
import "../Image/index.js";
|
|
20
|
+
import "../Table/index.js";
|
|
11
21
|
import "../Tree/index.js";
|
|
12
22
|
import "../Tooltip/index.js";
|
|
13
23
|
import "antd";
|
|
14
24
|
import "../../../chunks/useKitTheme.KSAU-Pdv.js";
|
|
15
25
|
import "classnames";
|
|
26
|
+
import "../../General/Button/index.js";
|
|
16
27
|
import "../../General/Typography/index.js";
|
|
17
28
|
import "../../General/Icon/index.js";
|
|
18
29
|
import "../../Navigation/Breadcrumb/index.js";
|
|
@@ -21,6 +32,7 @@ import "../../Navigation/Steps/index.js";
|
|
|
21
32
|
import "../../../chunks/styles.module.YmhPHVHy.js";
|
|
22
33
|
import "@fortawesome/react-fontawesome";
|
|
23
34
|
import "@fortawesome/free-solid-svg-icons";
|
|
35
|
+
import "../../../chunks/useKitLocale.96CdK3og.js";
|
|
24
36
|
export {
|
|
25
|
-
|
|
37
|
+
H as KitItemList
|
|
26
38
|
};
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import "react/jsx-runtime";
|
|
2
2
|
import "classnames";
|
|
3
|
-
import {
|
|
3
|
+
import { e as g } from "../../../chunks/index.0Y6PLkFX.js";
|
|
4
4
|
import "react";
|
|
5
5
|
import "../../../chunks/useKitTheme.KSAU-Pdv.js";
|
|
6
6
|
import "@fortawesome/react-fontawesome";
|
|
7
7
|
import "@fortawesome/free-solid-svg-icons";
|
|
8
|
+
import "../../General/Button/index.js";
|
|
8
9
|
import "../../General/Typography/index.js";
|
|
9
10
|
import "../../General/Icon/index.js";
|
|
10
11
|
import "../../Layout/Divider/index.js";
|
|
@@ -14,5 +15,5 @@ import "color-string";
|
|
|
14
15
|
import "lodash/isEmpty";
|
|
15
16
|
import "../../../chunks/styles.module.Q_QQjQdX.js";
|
|
16
17
|
export {
|
|
17
|
-
|
|
18
|
+
g as KitRedirectCard
|
|
18
19
|
};
|
|
@@ -1,4 +1,107 @@
|
|
|
1
|
-
import
|
|
1
|
+
import "../../../assets/index25.css";
|
|
2
|
+
import { jsx as o } from "react/jsx-runtime";
|
|
3
|
+
import { forwardRef as z, useMemo as k } from "react";
|
|
4
|
+
import { Table as w } from "antd";
|
|
5
|
+
import g from "classnames";
|
|
6
|
+
import { u as O } from "../../../chunks/useKitTheme.KSAU-Pdv.js";
|
|
7
|
+
import { KitButton as I } from "../../General/Button/index.js";
|
|
8
|
+
import "../../General/Typography/index.js";
|
|
9
|
+
import { KitIcon as U } from "../../General/Icon/index.js";
|
|
10
|
+
import { FontAwesomeIcon as _ } from "@fortawesome/react-fontawesome";
|
|
11
|
+
import { faUpDown as W, faArrowDown as M, faArrowUp as B, faGripLines as F, faCaretDown as G, faCaretRight as $ } from "@fortawesome/free-solid-svg-icons";
|
|
12
|
+
const y = {
|
|
13
|
+
"kit-table": "_kit-table_i0fi3_2",
|
|
14
|
+
"expand-button": "_expand-button_i0fi3_647"
|
|
15
|
+
}, x = (n) => {
|
|
16
|
+
const l = n == null ? void 0 : n.split(" "), t = l == null ? void 0 : l.filter((a) => a !== "ant-table-cell").join(" "), r = l == null ? void 0 : l.filter((a) => ["ant-table-cell", "ant-table-cell-ellipsis", "ant-table-selection-column"].includes(a)).join(" ");
|
|
17
|
+
return {
|
|
18
|
+
antCell: t,
|
|
19
|
+
internalCell: r
|
|
20
|
+
};
|
|
21
|
+
}, q = (n) => ({
|
|
22
|
+
header: {
|
|
23
|
+
cell: ({ children: l, className: t, style: r, title: a, rowSpan: f, colSpan: v, ...b }) => {
|
|
24
|
+
const s = x(t);
|
|
25
|
+
return o("th", { className: s.antCell, style: r, title: a, rowSpan: f, colSpan: v, ...b, children: o("div", { className: s.internalCell, children: l }) });
|
|
26
|
+
}
|
|
27
|
+
},
|
|
28
|
+
body: {
|
|
29
|
+
cell: ({ children: l, className: t, style: r, title: a, rowSpan: f, colSpan: v, ...b }) => {
|
|
30
|
+
var s, c;
|
|
31
|
+
const h = (s = n == null ? void 0 : n.body) === null || s === void 0 ? void 0 : s.cell, i = x(t);
|
|
32
|
+
let C = "";
|
|
33
|
+
return !((c = i.antCell) === null || c === void 0) && c.includes("ant-table-cell-ellipsis") && (C = a), o("td", { className: i.antCell, style: r, title: C, rowSpan: f, colSpan: v, children: o("div", { className: i.internalCell, children: h ? o(h, { title: a, ...b, children: l }) : l }) });
|
|
34
|
+
},
|
|
35
|
+
row: ({ children: l, ...t }) => {
|
|
36
|
+
var r;
|
|
37
|
+
const a = (r = n == null ? void 0 : n.body) === null || r === void 0 ? void 0 : r.row;
|
|
38
|
+
return a ? o(a, { ...t, tabIndex: 0, children: l }) : o("tr", { ...t, tabIndex: 0, children: l });
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
}), E = ({ sortOrder: n }) => {
|
|
42
|
+
let l, t;
|
|
43
|
+
switch (n) {
|
|
44
|
+
case "ascend":
|
|
45
|
+
l = B, t = "blue";
|
|
46
|
+
break;
|
|
47
|
+
case "descend":
|
|
48
|
+
l = M, t = "blue";
|
|
49
|
+
break;
|
|
50
|
+
default:
|
|
51
|
+
l = W;
|
|
52
|
+
break;
|
|
53
|
+
}
|
|
54
|
+
return o(U, { color: t, icon: o(_, { icon: l }) });
|
|
55
|
+
}, N = z(({ className: n, isDragging: l, ...t }, r) => {
|
|
56
|
+
const a = g("kit-table-drag-handle", n, { "kit-table-drag-handle--dragging": l });
|
|
57
|
+
return o(I, { ...t, iconSize: "l", type: "tertiary", className: a, icon: o(_, { icon: F }), ref: r });
|
|
58
|
+
}), J = ({ className: n, style: l, cellsBackgroundColor: t, backgroundColor: r, borderedRows: a, columns: f, onChange: v, components: b, showDragHandle: s, dragHandleElement: c, lineSize: h = "l", ...i }) => {
|
|
59
|
+
const { appId: C, theme: T } = O(), A = g(C, y["kit-table"], n, {
|
|
60
|
+
"kit-table-line-size-m": h === "m",
|
|
61
|
+
"kit-table-bordered-rows": a
|
|
62
|
+
}), p = k(() => i != null && i.rowSelection ? { ...i == null ? void 0 : i.rowSelection, columnWidth: "var(--kit-table-checkbox-width)" } : i == null ? void 0 : i.rowSelection, [i == null ? void 0 : i.rowSelection]), K = k(() => {
|
|
63
|
+
const e = [...f].map((u) => s ? {
|
|
64
|
+
...u,
|
|
65
|
+
sorter: void 0
|
|
66
|
+
} : (u.sorter && (u.sortIcon = ({ sortOrder: m }) => o(E, { sortOrder: m })), u));
|
|
67
|
+
return s && (p && e.unshift(w.SELECTION_COLUMN), e.unshift({
|
|
68
|
+
key: "drag-handle",
|
|
69
|
+
align: "center",
|
|
70
|
+
render: () => c ?? o(N, {})
|
|
71
|
+
})), e;
|
|
72
|
+
}, [f, p, s, c]), R = (e, u, m, d) => {
|
|
73
|
+
v == null || v(e, m, d);
|
|
74
|
+
}, D = ({ record: e, expanded: u, onExpand: m }) => {
|
|
75
|
+
var d;
|
|
76
|
+
if (!(!Array.isArray(e == null ? void 0 : e.children) || !(!((d = e == null ? void 0 : e.children) === null || d === void 0) && d.length)))
|
|
77
|
+
return o(I, { className: y["expand-button"], type: "tertiary", onClick: (j) => m(e, j), children: o(_, { icon: u ? G : $ }) });
|
|
78
|
+
}, L = (e, u, m) => {
|
|
79
|
+
var d;
|
|
80
|
+
return m > 0 && (!Array.isArray(e == null ? void 0 : e.children) || !(!((d = e == null ? void 0 : e.children) === null || d === void 0) && d.length)) ? "last-expandable-level" : "";
|
|
81
|
+
};
|
|
82
|
+
return o(w, {
|
|
83
|
+
className: A,
|
|
84
|
+
style: {
|
|
85
|
+
"--kit-table-cells-background-color": t,
|
|
86
|
+
"--kit-table-background": r,
|
|
87
|
+
...l
|
|
88
|
+
},
|
|
89
|
+
columns: K,
|
|
90
|
+
components: q(b),
|
|
91
|
+
onChange: R,
|
|
92
|
+
// Pour l'instant on garde expandable dans les props à Omit<>
|
|
93
|
+
// A voir si on permet de custom uniquement certaines propriété
|
|
94
|
+
expandable: {
|
|
95
|
+
expandedRowClassName: L,
|
|
96
|
+
expandIcon: D,
|
|
97
|
+
indentSize: T.spacing.m
|
|
98
|
+
},
|
|
99
|
+
...i,
|
|
100
|
+
rowSelection: p
|
|
101
|
+
});
|
|
102
|
+
}, S = J;
|
|
103
|
+
S.displayName = "KitTable";
|
|
104
|
+
S.DragHandle = N;
|
|
2
105
|
export {
|
|
3
|
-
|
|
106
|
+
S as KitTable
|
|
4
107
|
};
|
|
@@ -2,18 +2,21 @@ import "react/jsx-runtime";
|
|
|
2
2
|
import "react";
|
|
3
3
|
import "../../../chunks/useKitTheme.KSAU-Pdv.js";
|
|
4
4
|
import "classnames";
|
|
5
|
-
import {
|
|
5
|
+
import { f as l } from "../../../chunks/index.0Y6PLkFX.js";
|
|
6
|
+
import "../../General/Button/index.js";
|
|
6
7
|
import "../../General/Typography/index.js";
|
|
7
8
|
import "../../General/Icon/index.js";
|
|
8
|
-
import "
|
|
9
|
+
import "../Avatar/index.js";
|
|
9
10
|
import "../Badge/index.js";
|
|
10
11
|
import "../Empty/index.js";
|
|
11
|
-
import "
|
|
12
|
+
import "../IdCard/index.js";
|
|
13
|
+
import "../Image/index.js";
|
|
14
|
+
import "../Table/index.js";
|
|
12
15
|
import "../Tree/index.js";
|
|
13
16
|
import "../Tooltip/index.js";
|
|
14
17
|
import "antd";
|
|
15
18
|
import "@fortawesome/react-fontawesome";
|
|
16
19
|
import "@fortawesome/free-solid-svg-icons";
|
|
17
20
|
export {
|
|
18
|
-
|
|
21
|
+
l as KitTabs
|
|
19
22
|
};
|
|
@@ -1,26 +1,28 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { KitBadge as
|
|
3
|
-
import { b as K, c as
|
|
4
|
-
import { KitEmpty as
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
1
|
+
import { KitAvatar as o } from "./Avatar/index.js";
|
|
2
|
+
import { KitBadge as a } from "./Badge/index.js";
|
|
3
|
+
import { b as K, c as m, a as p, d as f, e as s, f as x, g as d } from "../../chunks/index.0Y6PLkFX.js";
|
|
4
|
+
import { KitEmpty as g } from "./Empty/index.js";
|
|
5
|
+
import { KitIdCard as C } from "./IdCard/index.js";
|
|
6
|
+
import { KitImage as b } from "./Image/index.js";
|
|
7
|
+
import { KitTable as E } from "./Table/index.js";
|
|
8
|
+
import { KitTree as v } from "./Tree/index.js";
|
|
9
|
+
import { KitTooltip as A } from "./Tooltip/index.js";
|
|
10
|
+
import { KitTour as L } from "./Tour/index.js";
|
|
9
11
|
export {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
+
o as KitAvatar,
|
|
13
|
+
a as KitBadge,
|
|
12
14
|
K as KitCollapse,
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
15
|
+
g as KitEmpty,
|
|
16
|
+
m as KitError,
|
|
17
|
+
C as KitIdCard,
|
|
16
18
|
b as KitImage,
|
|
17
19
|
p as KitItemCard,
|
|
18
20
|
f as KitItemList,
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
21
|
+
s as KitRedirectCard,
|
|
22
|
+
E as KitTable,
|
|
23
|
+
x as KitTabs,
|
|
24
|
+
d as KitTag,
|
|
25
|
+
A as KitTooltip,
|
|
26
|
+
L as KitTour,
|
|
27
|
+
v as KitTree
|
|
26
28
|
};
|
|
@@ -1,10 +1,28 @@
|
|
|
1
|
-
import "
|
|
2
|
-
import "react";
|
|
3
|
-
import "
|
|
4
|
-
import {
|
|
5
|
-
import "
|
|
6
|
-
import "
|
|
7
|
-
import "
|
|
1
|
+
import "../../../assets/index8.css";
|
|
2
|
+
import { jsx as t } from "react/jsx-runtime";
|
|
3
|
+
import { forwardRef as x, useState as y } from "react";
|
|
4
|
+
import { AutoComplete as F } from "antd";
|
|
5
|
+
import { KitInput as O } from "../Input/index.js";
|
|
6
|
+
import { K as P } from "../../../chunks/InputWrapper.0X0QJWir.js";
|
|
7
|
+
import { FontAwesomeIcon as j } from "@fortawesome/react-fontawesome";
|
|
8
|
+
import { faMagnifyingGlass as B } from "@fortawesome/free-solid-svg-icons";
|
|
9
|
+
import G from "classnames";
|
|
10
|
+
const M = {
|
|
11
|
+
"kit-autocomplete": "_kit-autocomplete_kox09_2"
|
|
12
|
+
}, R = (e, r, o) => G(e, "ant-select-dropdown", "kit-select-dropdown-bottom", {
|
|
13
|
+
"kit-select-dropdown-focus": r,
|
|
14
|
+
"kit-select-dropdown-error": o === "error",
|
|
15
|
+
"kit-select-dropdown-warning": o === "warning"
|
|
16
|
+
}), S = x(({ allowClear: e, label: r, helper: o, htmlFor: m, autoFocus: u, defaultValue: w, disabled: l, placeholder: k, status: i, value: _, onFocus: c, onBlur: a, popupClassName: g, wrapperClassName: C, required: K, actions: A, extra: n, ...d }, I) => {
|
|
17
|
+
var p;
|
|
18
|
+
const [N, f] = y(!1), h = (s) => {
|
|
19
|
+
f(!0), c && c(s);
|
|
20
|
+
}, v = (s) => {
|
|
21
|
+
f(!1), a && a(s);
|
|
22
|
+
};
|
|
23
|
+
return t(P, { label: r, helper: o, htmlFor: m, disabled: l, status: i, className: C, extra: n ?? A, children: t(F, { ...d, id: (p = d.id) !== null && p !== void 0 ? p : m, disabled: l, ref: I, className: M["kit-autocomplete"], popupClassName: R(g, N, i), children: t(O, { prefix: t(j, { icon: B }), allowClear: e, autoFocus: u, required: K, defaultValue: w, placeholder: k, status: i, value: _, onBlur: v, onFocus: h }) }) });
|
|
24
|
+
});
|
|
25
|
+
S.displayName = "KitAutoComplete";
|
|
8
26
|
export {
|
|
9
|
-
|
|
27
|
+
S as KitAutoComplete
|
|
10
28
|
};
|
|
@@ -1,4 +1,68 @@
|
|
|
1
|
-
import
|
|
1
|
+
import "../../../assets/index18.css";
|
|
2
|
+
import { jsx as r } from "react/jsx-runtime";
|
|
3
|
+
import { createContext as P, memo as p, forwardRef as O, useContext as w, useState as N, useEffect as G, useRef as ee } from "react";
|
|
4
|
+
import { Checkbox as le } from "antd";
|
|
5
|
+
import { u as ae } from "../../../chunks/useKitTheme.KSAU-Pdv.js";
|
|
6
|
+
import R from "classnames";
|
|
7
|
+
import ne from "rc-util/es/omit";
|
|
8
|
+
import { ConfigContext as te } from "antd/es/config-provider/";
|
|
9
|
+
import ie from "antd/es/checkbox/style";
|
|
10
|
+
import { K as ce } from "../../../chunks/InputWrapper.0X0QJWir.js";
|
|
11
|
+
const _ = P(null), ue = ({ defaultValue: v, children: o, options: a = [], prefixCls: m, className: l, wrapperClassName: f, status: b, rootClassName: u, style: t, onChange: d, label: x, helper: A, required: B, actions: D, extra: g, ...n }, E) => {
|
|
12
|
+
const { getPrefixCls: T, direction: W } = w(te), [s, y] = N(n.value || v || []), [q, I] = N([]);
|
|
13
|
+
G(() => {
|
|
14
|
+
"value" in n && y(n.value || []);
|
|
15
|
+
}, [n]);
|
|
16
|
+
const K = () => a.map((e) => typeof e == "string" || typeof e == "number" ? {
|
|
17
|
+
label: e,
|
|
18
|
+
value: e
|
|
19
|
+
} : e), z = (e) => {
|
|
20
|
+
I((i) => i.filter((c) => c !== e));
|
|
21
|
+
}, F = (e) => {
|
|
22
|
+
I((i) => [...i, e]);
|
|
23
|
+
}, H = (e) => {
|
|
24
|
+
const i = s.indexOf(e.value), c = [...s];
|
|
25
|
+
i === -1 ? c.push(e.value) : c.splice(i, 1), "value" in n || y(c);
|
|
26
|
+
const S = K();
|
|
27
|
+
d == null || d(c.filter((C) => q.includes(C)).sort((C, X) => {
|
|
28
|
+
const Y = S.findIndex((V) => V.value === C), Z = S.findIndex((V) => V.value === X);
|
|
29
|
+
return Y - Z;
|
|
30
|
+
}));
|
|
31
|
+
}, h = T("checkbox", m), k = `${h}-group`, [J, L] = ie(h), M = ne(n, ["value", "disabled", "bordered"]);
|
|
32
|
+
a && a.length > 0 && (o = K().map((e) => r($, { prefixCls: h, danger: "danger" in e ? e.danger : n.danger, disabled: "disabled" in e ? e.disabled : n.disabled, value: e.value, checked: s.includes(e.value), onChange: e.onChange, className: `${k}-item`, style: e.style, children: e.label }, e.value.toString())));
|
|
33
|
+
const Q = {
|
|
34
|
+
toggleOption: H,
|
|
35
|
+
value: s,
|
|
36
|
+
disabled: n.disabled,
|
|
37
|
+
name: n.name,
|
|
38
|
+
// https://github.com/ant-design/ant-design/issues/16376
|
|
39
|
+
registerValue: F,
|
|
40
|
+
cancelValue: z
|
|
41
|
+
}, U = R(k, {
|
|
42
|
+
[`${k}-rtl`]: W === "rtl"
|
|
43
|
+
}, l, u, L);
|
|
44
|
+
return J(r("div", { className: U, style: t, ...M, ref: E, children: r(_.Provider, { value: Q, children: r(ce, { label: x, helper: A, disabled: n.disabled, bordered: n.bordered, status: b, className: f, required: B, extra: g ?? D, children: o }) }) }));
|
|
45
|
+
}, de = p(O(ue)), re = de, oe = {
|
|
46
|
+
"kit-checkbox": "_kit-checkbox_16ama_2"
|
|
47
|
+
}, $ = O(({ danger: v, className: o, ...a }, m) => {
|
|
48
|
+
const l = w(_), { appId: f } = ae(), b = (l == null ? void 0 : l.disabled) || a.disabled, u = ee(a.value);
|
|
49
|
+
G(() => {
|
|
50
|
+
l == null || l.registerValue(a.value);
|
|
51
|
+
}, []), G(() => {
|
|
52
|
+
if (!a.skipGroup)
|
|
53
|
+
return a.value !== u.current && (l == null || l.cancelValue(u.current), l == null || l.registerValue(a.value), u.current = a.value), () => l == null ? void 0 : l.cancelValue(a.value);
|
|
54
|
+
}, [a.value]);
|
|
55
|
+
const t = { ...a };
|
|
56
|
+
l && !a.skipGroup && (t.onChange = (...x) => {
|
|
57
|
+
a.onChange && a.onChange(...x), l.toggleOption && l.toggleOption({ label: a.children, value: a.value });
|
|
58
|
+
}, t.name = l.name, t.checked = l.value.includes(a.value));
|
|
59
|
+
const d = R(f, oe["kit-checkbox"], o, {
|
|
60
|
+
"ant-checkbox-wrapper-danger": v
|
|
61
|
+
});
|
|
62
|
+
return r(le, { ...t, ref: m, disabled: b, className: d });
|
|
63
|
+
}), j = $;
|
|
64
|
+
j.displayName = "KitCheckbox";
|
|
65
|
+
j.Group = re;
|
|
2
66
|
export {
|
|
3
|
-
|
|
67
|
+
j as KitCheckbox
|
|
4
68
|
};
|