aristid-ds 10.1.0-e304e46 → 10.1.0-e94f288
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 +34 -0
- package/dist/Kit/App/index.js +4 -7
- package/dist/Kit/DataDisplay/Avatar/index.js +2 -17
- package/dist/Kit/DataDisplay/Badge/index.js +8 -8
- 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 +3 -5
- package/dist/Kit/DataDisplay/IdCard/index.d.ts +2 -2
- package/dist/Kit/DataDisplay/IdCard/index.js +7 -21
- package/dist/Kit/DataDisplay/Image/index.js +8 -22
- package/dist/Kit/DataDisplay/ItemCard/index.js +2 -11
- package/dist/Kit/DataDisplay/ItemList/index.js +4 -16
- package/dist/Kit/DataDisplay/RedirectCard/index.js +2 -3
- package/dist/Kit/DataDisplay/Table/index.js +9 -85
- package/dist/Kit/DataDisplay/Table/types.d.ts +1 -0
- package/dist/Kit/DataDisplay/Tabs/index.js +1 -1
- package/dist/Kit/DataDisplay/Tag/index.js +2 -2
- package/dist/Kit/DataDisplay/Tree/index.js +1 -1
- package/dist/Kit/DataDisplay/index.js +19 -21
- package/dist/Kit/DataEntry/AutoComplete/index.js +8 -26
- package/dist/Kit/DataEntry/Checkbox/index.js +2 -66
- package/dist/Kit/DataEntry/ColorPicker/index.d.ts +3 -3
- package/dist/Kit/DataEntry/ColorPicker/index.js +7 -51
- package/dist/Kit/DataEntry/ColorPicker/types.d.ts +6 -0
- package/dist/Kit/DataEntry/DatePicker/index.js +2 -24
- package/dist/Kit/DataEntry/Input/index.js +2 -33
- package/dist/Kit/DataEntry/InputNumber/index.js +7 -22
- package/dist/Kit/DataEntry/InputWrapper/index.js +1 -1
- package/dist/Kit/DataEntry/Radio/index.js +2 -53
- 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 +4 -6
- package/dist/Kit/DataEntry/RichText/MenuBar/FontSizeSelect/index.js +2 -3
- 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 +2 -2
- package/dist/Kit/DataEntry/RichText/MenuBar/ListButtons/index.js +2 -2
- package/dist/Kit/DataEntry/RichText/MenuBar/TextAlignButtons/index.js +3 -3
- package/dist/Kit/DataEntry/RichText/MenuBar/UndoRedoButtons/index.js +2 -2
- package/dist/Kit/DataEntry/RichText/MenuBar/index.js +2 -2
- package/dist/Kit/DataEntry/RichText/index.js +2 -3
- package/dist/Kit/DataEntry/Select/index.js +2 -3
- 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 +3 -29
- package/dist/Kit/DataEntry/index.js +16 -25
- package/dist/Kit/Feedback/Alert/index.js +5 -61
- package/dist/Kit/Feedback/Loader/index.js +1 -1
- package/dist/Kit/Feedback/Modal/index.js +2 -2
- 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 +1 -1
- package/dist/Kit/Feedback/index.js +15 -16
- package/dist/Kit/General/Button/Button.d.ts +2 -0
- package/dist/Kit/General/Button/SplitButton.d.ts +2 -0
- package/dist/Kit/General/Button/index.js +4 -63
- package/dist/Kit/General/Button/types.d.ts +16 -1
- package/dist/Kit/General/Icon/index.js +1 -1
- package/dist/Kit/General/Typography/index.js +1 -1
- package/dist/Kit/General/index.js +1 -1
- 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/Menu/index.js +1 -1
- package/dist/Kit/Navigation/PageHeader/index.js +2 -11
- package/dist/Kit/Navigation/SideMenu/index.js +2 -2
- package/dist/Kit/Navigation/SidePanel/SidePanel.d.ts +4 -0
- package/dist/Kit/Navigation/SidePanel/index.d.ts +2 -0
- package/dist/Kit/Navigation/SidePanel/index.js +4 -0
- package/dist/Kit/Navigation/SidePanel/types.d.ts +30 -0
- package/dist/Kit/Navigation/Steps/index.js +1 -1
- package/dist/Kit/Navigation/index.d.ts +1 -0
- package/dist/Kit/Navigation/index.js +13 -12
- package/dist/Kit/index.d.ts +1 -1
- package/dist/Kit/index.js +143 -155
- package/dist/assets/index.css +1 -1
- 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 -1
- package/dist/assets/index3.css +1 -1
- 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/{KitNotification.lbY6JMru.js → KitNotification.GPlIRglN.js} +18 -19
- package/dist/chunks/index.1ZiNipQY.js +1610 -0
- package/dist/chunks/index.e41c1v3i.js +41 -0
- package/dist/chunks/index.k7ZSR6zg.js +31 -0
- package/dist/index.es.js +152 -165
- package/dist/index.umd.js +4 -4
- package/dist/theme/aristid/general/utilities/index.js +1 -1
- package/dist/theme/types/components/Navigation/SidePanel/index.d.ts +74 -0
- package/dist/theme/types/index.d.ts +2 -0
- package/package.json +17 -15
- package/dist/assets/Avatar.css +0 -1
- package/dist/assets/InputWrapper.css +0 -1
- package/dist/assets/index21.css +0 -1
- package/dist/assets/index22.css +0 -1
- package/dist/assets/index23.css +0 -1
- package/dist/assets/index24.css +0 -1
- package/dist/assets/index25.css +0 -1
- package/dist/assets/index26.css +0 -1
- package/dist/assets/index27.css +0 -1
- package/dist/assets/index28.css +0 -1
- package/dist/assets/index29.css +0 -1
- package/dist/assets/index30.css +0 -1
- package/dist/assets/index31.css +0 -1
- package/dist/chunks/Avatar.N2w2jq_C.js +0 -30
- package/dist/chunks/InputWrapper.RBqyXNPY.js +0 -32
- package/dist/chunks/index.MNk1kAkw.js +0 -1110
- package/dist/chunks/useKitLocale.96CdK3og.js +0 -11
package/CHANGELOG.md
CHANGED
|
@@ -4,7 +4,18 @@
|
|
|
4
4
|
|
|
5
5
|
### ✨ Features
|
|
6
6
|
|
|
7
|
+
- **Table**:
|
|
8
|
+
- Handle two different line heights (m/l) (@7Remy)
|
|
9
|
+
- Reduce sort icons size (@7Remy)
|
|
10
|
+
- Fix table header height (@7Remy)
|
|
11
|
+
- **⚠️ Breaking change - Button:**
|
|
12
|
+
- Change available colors on segmented button (same as `Tag` compoent) (@evoiron)
|
|
13
|
+
- **Button**
|
|
14
|
+
- Add role `link` when type prop is set to `link` or `redirect` (@philippechevieux)
|
|
15
|
+
- Add `size` props, usable when type is `primary`, `secondary` or `tertiary` (@evoiron)
|
|
16
|
+
- Add split button. Just fill the `items` props to enable it. (@evoiron)
|
|
7
17
|
- **ColorPicker**
|
|
18
|
+
- Add `ref` support to retrieve the `value`, `focus` or `blur` the `ColorPicker` (@philippechevieux)
|
|
8
19
|
- Add a clear icon inside `ColorPicker` input when `allowClear` prop is set (@philippechevieux)
|
|
9
20
|
- **Empty**:
|
|
10
21
|
- Add 5 svgs, and replace existing ones to uniformize size (@7Remy)
|
|
@@ -12,9 +23,23 @@
|
|
|
12
23
|
- Update image container (@7Remy)
|
|
13
24
|
- Update elements order/spacing (@7Remy)
|
|
14
25
|
- Improve responsive (@7Remy)
|
|
26
|
+
- **Collapse**:
|
|
27
|
+
- Update `clear` icon render (@philippechevieux)
|
|
28
|
+
- **Input**:
|
|
29
|
+
- Update `clear` icon render (@philippechevieux)
|
|
30
|
+
- **Password**:
|
|
31
|
+
- Update `clear` icon render (@philippechevieux)
|
|
32
|
+
- **TextArea**:
|
|
33
|
+
- Update `clear` icon render (@philippechevieux)
|
|
34
|
+
- **Select**:
|
|
35
|
+
- Update `clear` icon render (@philippechevieux)
|
|
36
|
+
- **Notification**:
|
|
37
|
+
- Update `clear` icon render (@philippechevieux)
|
|
15
38
|
|
|
16
39
|
### 🐛 Bug Fixes
|
|
17
40
|
|
|
41
|
+
- **InputWrapper**:
|
|
42
|
+
- Fix an issue where a child `InputWrapper` was displaying a border if a parent `InputWrapper` had the `bordered` property set to `true`. (@philippechevieux)
|
|
18
43
|
- **AutoComplete**:
|
|
19
44
|
- Pass `required` attribute to the DOM (@Delmotte-Vincent)
|
|
20
45
|
- **DatePicker**:
|
|
@@ -32,6 +57,15 @@
|
|
|
32
57
|
- **RichText**:
|
|
33
58
|
- Enforce css for bullet list display. Avoid external css from breaking it. (@evoiron)
|
|
34
59
|
|
|
60
|
+
### 📚 Documentation
|
|
61
|
+
|
|
62
|
+
- upgrade Storybook to v8.3.6 (@evoiron)
|
|
63
|
+
|
|
64
|
+
### 📚 Documentation
|
|
65
|
+
|
|
66
|
+
- Unify storybook headings (@evoiron)
|
|
67
|
+
- Rewrite Accessibility Panel for better performances (@evoiron)
|
|
68
|
+
|
|
35
69
|
## [10.1.0](https://www.npmjs.com/package/aristid-ds/v/10.1.0) (2024-10-15)
|
|
36
70
|
|
|
37
71
|
### ✨ Features
|
package/dist/Kit/App/index.js
CHANGED
|
@@ -2,21 +2,18 @@ import "react/jsx-runtime";
|
|
|
2
2
|
import "react";
|
|
3
3
|
import "antd";
|
|
4
4
|
import "../../chunks/SnackBarProvider.xMKXdZ88.js";
|
|
5
|
-
import { K as
|
|
5
|
+
import { K as h } from "../../chunks/index.1ZiNipQY.js";
|
|
6
6
|
import "../../theme/utils/tokens-mapper/index.js";
|
|
7
7
|
import "../../translation/utils/index.js";
|
|
8
|
-
import "../../chunks/
|
|
9
|
-
import "
|
|
8
|
+
import "../../chunks/index.k7ZSR6zg.js";
|
|
9
|
+
import "../../chunks/index.e41c1v3i.js";
|
|
10
10
|
import "../DataDisplay/Badge/index.js";
|
|
11
11
|
import "../DataDisplay/Empty/index.js";
|
|
12
|
-
import "../DataDisplay/IdCard/index.js";
|
|
13
|
-
import "../DataDisplay/Image/index.js";
|
|
14
|
-
import "../DataDisplay/Table/index.js";
|
|
15
12
|
import "../DataDisplay/Tabs/index.js";
|
|
16
13
|
import "../DataDisplay/Tree/index.js";
|
|
17
14
|
import "../DataDisplay/Tooltip/index.js";
|
|
18
15
|
import "../../chunks/useKitTheme.KSAU-Pdv.js";
|
|
19
16
|
import "classnames";
|
|
20
17
|
export {
|
|
21
|
-
|
|
18
|
+
h as KitApp
|
|
22
19
|
};
|
|
@@ -1,19 +1,4 @@
|
|
|
1
|
-
import {
|
|
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;
|
|
1
|
+
import { K as t } from "../../../chunks/index.e41c1v3i.js";
|
|
17
2
|
export {
|
|
18
|
-
|
|
3
|
+
t as KitAvatar
|
|
19
4
|
};
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import "../../../assets/index.css";
|
|
2
2
|
import { jsx as g } from "react/jsx-runtime";
|
|
3
|
-
import { useMemo as
|
|
3
|
+
import { useMemo as l } from "react";
|
|
4
4
|
import { Badge as u } from "antd";
|
|
5
|
-
import { u as
|
|
6
|
-
import { isValidColor as
|
|
5
|
+
import { u as d } from "../../../chunks/useKitTheme.KSAU-Pdv.js";
|
|
6
|
+
import { isValidColor as f, getColor as n, getLighterColor as c } from "../../../utils/functions/index.js";
|
|
7
7
|
import { kitBadgeCssTokens as s } from "../../../theme/aristid/components/DataDisplay/Badge/index.js";
|
|
8
8
|
import k from "classnames";
|
|
9
9
|
const b = {
|
|
10
|
-
"kit-badge": "_kit-
|
|
11
|
-
}, B = (t, o) => !t || !
|
|
10
|
+
"kit-badge": "_kit-badge_8zlso_2"
|
|
11
|
+
}, B = (t, o) => !t || !f(t) ? null : {
|
|
12
12
|
[s.colors.background.default]: n(t, o),
|
|
13
13
|
[s.colors.typography.default]: c(t, o)
|
|
14
|
-
}, C = ({ color: t, style: o, secondaryColorInvert: e = !1, className:
|
|
15
|
-
const { appId:
|
|
16
|
-
return g(u, { style: a, ...
|
|
14
|
+
}, C = ({ color: t, style: o, secondaryColorInvert: e = !1, className: m, ...r }) => {
|
|
15
|
+
const { appId: i } = d(), a = l(() => ({ ...o, ...B(t, e) }), [t, e, o]), p = k(i, b["kit-badge"], m);
|
|
16
|
+
return g(u, { style: a, ...r, className: p });
|
|
17
17
|
};
|
|
18
18
|
C.displayName = "KitBadge";
|
|
19
19
|
export {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import "react/jsx-runtime";
|
|
2
2
|
import "react";
|
|
3
3
|
import "antd";
|
|
4
|
-
import "../../../chunks/
|
|
4
|
+
import "../../../chunks/index.k7ZSR6zg.js";
|
|
5
5
|
import "../../../chunks/useKitTheme.KSAU-Pdv.js";
|
|
6
|
-
import "
|
|
6
|
+
import { c as k } from "../../../chunks/index.1ZiNipQY.js";
|
|
7
7
|
import "../../General/Typography/index.js";
|
|
8
8
|
import "../../General/Icon/index.js";
|
|
9
9
|
import "../../Layout/Divider/index.js";
|
|
@@ -13,11 +13,9 @@ 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 n } from "../../../chunks/index.MNk1kAkw.js";
|
|
17
|
-
import "../../Feedback/Alert/index.js";
|
|
18
16
|
import "../../Feedback/Progress/index.js";
|
|
19
17
|
import "../../Feedback/Loader/index.js";
|
|
20
18
|
import "react-hot-toast";
|
|
21
19
|
export {
|
|
22
|
-
|
|
20
|
+
k as KitError
|
|
23
21
|
};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { FunctionComponent } from 'react';
|
|
2
|
-
import { IKitIdCard } from './types';
|
|
1
|
+
import { type FunctionComponent } from 'react';
|
|
2
|
+
import { type IKitIdCard } from './types';
|
|
3
3
|
export declare const KitIdCard: FunctionComponent<IKitIdCard>;
|
|
@@ -1,24 +1,10 @@
|
|
|
1
|
-
import "
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import "../../General/
|
|
6
|
-
import { KitTypography as m } from "../../General/Typography/index.js";
|
|
1
|
+
import "react/jsx-runtime";
|
|
2
|
+
import "classnames";
|
|
3
|
+
import { d as e } from "../../../chunks/index.1ZiNipQY.js";
|
|
4
|
+
import "../../../chunks/useKitTheme.KSAU-Pdv.js";
|
|
5
|
+
import "../../General/Typography/index.js";
|
|
7
6
|
import "../../General/Icon/index.js";
|
|
8
|
-
import
|
|
9
|
-
const g = {
|
|
10
|
-
"kit-id-card": "_kit-id-card_mmcks_2"
|
|
11
|
-
}, D = (r, i, t) => {
|
|
12
|
-
const o = n({ "kit-id-card-title-large": i === "large" });
|
|
13
|
-
return s(m.Text, { className: o, size: "fontSize5", weight: "bold", ellipsis: { tooltip: !0 }, disabled: t, children: r });
|
|
14
|
-
}, K = (r, i, t) => {
|
|
15
|
-
const o = i === "medium" ? "fontSize7" : "fontSize5";
|
|
16
|
-
return s(m.Text, { size: o, ellipsis: { tooltip: !0 }, disabled: t, children: r });
|
|
17
|
-
}, T = ({ className: r, title: i, description: t, avatarProps: o, size: c = "medium", disabled: e = !1, ...p }) => {
|
|
18
|
-
const { appId: u } = x(), h = n(u, g["kit-id-card"], r), f = o !== void 0, a = i !== void 0, d = t !== void 0, v = a || d;
|
|
19
|
-
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: [a && D(i, c, e), d && K(t, c, e)] })] });
|
|
20
|
-
};
|
|
21
|
-
T.displayName = "KitIdCard";
|
|
7
|
+
import "../../../chunks/index.e41c1v3i.js";
|
|
22
8
|
export {
|
|
23
|
-
|
|
9
|
+
e as KitIdCard
|
|
24
10
|
};
|
|
@@ -1,24 +1,10 @@
|
|
|
1
|
-
import "
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import {
|
|
7
|
-
import
|
|
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";
|
|
1
|
+
import "react/jsx-runtime";
|
|
2
|
+
import "antd";
|
|
3
|
+
import "classnames";
|
|
4
|
+
import "@fortawesome/react-fontawesome";
|
|
5
|
+
import "@fortawesome/free-solid-svg-icons";
|
|
6
|
+
import { K } from "../../../chunks/index.k7ZSR6zg.js";
|
|
7
|
+
import "../../../chunks/useKitTheme.KSAU-Pdv.js";
|
|
22
8
|
export {
|
|
23
|
-
|
|
9
|
+
K as KitImage
|
|
24
10
|
};
|
|
@@ -1,21 +1,12 @@
|
|
|
1
1
|
import "react/jsx-runtime";
|
|
2
2
|
import "react";
|
|
3
3
|
import "classnames";
|
|
4
|
-
import "
|
|
4
|
+
import { a as h } from "../../../chunks/index.1ZiNipQY.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";
|
|
11
7
|
import "../../DataEntry/Rate/index.js";
|
|
12
|
-
import { a as y } from "../../../chunks/index.MNk1kAkw.js";
|
|
13
8
|
import "../../DataEntry/Switch/index.js";
|
|
14
|
-
import "../../DataEntry/DatePicker/index.js";
|
|
15
|
-
import "../../DataEntry/AutoComplete/index.js";
|
|
16
|
-
import "../../DataEntry/Upload/index.js";
|
|
17
9
|
import "../../DataEntry/Slider/index.js";
|
|
18
|
-
import "../../DataEntry/ColorPicker/index.js";
|
|
19
10
|
import "../../Navigation/Breadcrumb/index.js";
|
|
20
11
|
import "../../Navigation/DropDown/index.js";
|
|
21
12
|
import "../../Navigation/Steps/index.js";
|
|
@@ -25,5 +16,5 @@ import "../../../chunks/styles.module.taPo3VoP.js";
|
|
|
25
16
|
import "@fortawesome/react-fontawesome";
|
|
26
17
|
import "@fortawesome/free-solid-svg-icons";
|
|
27
18
|
export {
|
|
28
|
-
|
|
19
|
+
h as KitItemCard
|
|
29
20
|
};
|
|
@@ -1,30 +1,19 @@
|
|
|
1
1
|
import "react/jsx-runtime";
|
|
2
2
|
import "react";
|
|
3
|
-
import "
|
|
4
|
-
import "../../DataEntry/Input/index.js";
|
|
5
|
-
import "../../DataEntry/InputNumber/index.js";
|
|
6
|
-
import "../../DataEntry/Radio/index.js";
|
|
3
|
+
import { e as v } from "../../../chunks/index.1ZiNipQY.js";
|
|
7
4
|
import "../../DataEntry/Rate/index.js";
|
|
8
|
-
import { d as J } from "../../../chunks/index.MNk1kAkw.js";
|
|
9
5
|
import "../../DataEntry/Switch/index.js";
|
|
10
|
-
import "../../DataEntry/DatePicker/index.js";
|
|
11
|
-
import "../../DataEntry/AutoComplete/index.js";
|
|
12
|
-
import "../../DataEntry/Upload/index.js";
|
|
13
6
|
import "../../DataEntry/Slider/index.js";
|
|
14
|
-
import "
|
|
15
|
-
import "../Avatar/index.js";
|
|
7
|
+
import "../../../chunks/index.e41c1v3i.js";
|
|
16
8
|
import "../Badge/index.js";
|
|
17
9
|
import "../Empty/index.js";
|
|
18
|
-
import "
|
|
19
|
-
import "../Image/index.js";
|
|
20
|
-
import "../Table/index.js";
|
|
10
|
+
import "../../../chunks/index.k7ZSR6zg.js";
|
|
21
11
|
import "../Tabs/index.js";
|
|
22
12
|
import "../Tree/index.js";
|
|
23
13
|
import "../Tooltip/index.js";
|
|
24
14
|
import "antd";
|
|
25
15
|
import "../../../chunks/useKitTheme.KSAU-Pdv.js";
|
|
26
16
|
import "classnames";
|
|
27
|
-
import "../../General/Button/index.js";
|
|
28
17
|
import "../../General/Typography/index.js";
|
|
29
18
|
import "../../General/Icon/index.js";
|
|
30
19
|
import "../../Navigation/Breadcrumb/index.js";
|
|
@@ -33,7 +22,6 @@ import "../../Navigation/Steps/index.js";
|
|
|
33
22
|
import "../../../chunks/styles.module.taPo3VoP.js";
|
|
34
23
|
import "@fortawesome/react-fontawesome";
|
|
35
24
|
import "@fortawesome/free-solid-svg-icons";
|
|
36
|
-
import "../../../chunks/useKitLocale.96CdK3og.js";
|
|
37
25
|
export {
|
|
38
|
-
|
|
26
|
+
v as KitItemList
|
|
39
27
|
};
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import "react/jsx-runtime";
|
|
2
2
|
import "classnames";
|
|
3
|
-
import {
|
|
3
|
+
import { f as b } from "../../../chunks/index.1ZiNipQY.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";
|
|
9
8
|
import "../../General/Typography/index.js";
|
|
10
9
|
import "../../General/Icon/index.js";
|
|
11
10
|
import "../../Layout/Divider/index.js";
|
|
@@ -15,5 +14,5 @@ import "color-string";
|
|
|
15
14
|
import "lodash/isEmpty";
|
|
16
15
|
import "../../../chunks/styles.module.Q_QQjQdX.js";
|
|
17
16
|
export {
|
|
18
|
-
|
|
17
|
+
b as KitRedirectCard
|
|
19
18
|
};
|
|
@@ -1,88 +1,12 @@
|
|
|
1
|
-
import "
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import {
|
|
6
|
-
import
|
|
1
|
+
import "react/jsx-runtime";
|
|
2
|
+
import "antd";
|
|
3
|
+
import "classnames";
|
|
4
|
+
import "../../../chunks/useKitTheme.KSAU-Pdv.js";
|
|
5
|
+
import { g } from "../../../chunks/index.1ZiNipQY.js";
|
|
6
|
+
import "@fortawesome/react-fontawesome";
|
|
7
|
+
import "@fortawesome/free-solid-svg-icons";
|
|
7
8
|
import "../../General/Typography/index.js";
|
|
8
|
-
import
|
|
9
|
-
import { FontAwesomeIcon as w } from "@fortawesome/react-fontawesome";
|
|
10
|
-
import { faUpDown as K, faArrowDown as T, faArrowUp as R, faCaretDown as W, faCaretRight as j } from "@fortawesome/free-solid-svg-icons";
|
|
11
|
-
const f = {
|
|
12
|
-
"kit-table": "_kit-table_nebkd_2",
|
|
13
|
-
"expand-button": "_expand-button_nebkd_556"
|
|
14
|
-
}, _ = (n) => {
|
|
15
|
-
const l = n == null ? void 0 : n.split(" "), i = l == null ? void 0 : l.filter((t) => t !== "ant-table-cell").join(" "), a = l == null ? void 0 : l.filter((t) => ["ant-table-cell", "ant-table-cell-ellipsis", "ant-table-selection-column"].includes(t)).join(" ");
|
|
16
|
-
return {
|
|
17
|
-
antCell: i,
|
|
18
|
-
internalCell: a
|
|
19
|
-
};
|
|
20
|
-
}, D = (n) => ({
|
|
21
|
-
header: {
|
|
22
|
-
cell: ({ children: l, className: i, style: a, title: t, rowSpan: c, colSpan: s, ...v }) => {
|
|
23
|
-
const d = _(i);
|
|
24
|
-
return o("th", { className: d.antCell, style: a, title: t, rowSpan: c, colSpan: s, ...v, children: o("div", { className: d.internalCell, children: l }) });
|
|
25
|
-
}
|
|
26
|
-
},
|
|
27
|
-
body: {
|
|
28
|
-
cell: ({ children: l, className: i, style: a, title: t, rowSpan: c, colSpan: s, ...v }) => {
|
|
29
|
-
var d, u;
|
|
30
|
-
const h = (d = n == null ? void 0 : n.body) === null || d === void 0 ? void 0 : d.cell, b = _(i);
|
|
31
|
-
let C = "";
|
|
32
|
-
return !((u = b.antCell) === null || u === void 0) && u.includes("ant-table-cell-ellipsis") && (C = t), o("td", { className: b.antCell, style: a, title: C, rowSpan: c, colSpan: s, children: o("div", { className: b.internalCell, children: h ? o(h, { title: t, ...v, children: l }) : l }) });
|
|
33
|
-
},
|
|
34
|
-
row: ({ children: l, ...i }) => {
|
|
35
|
-
var a;
|
|
36
|
-
const t = (a = n == null ? void 0 : n.body) === null || a === void 0 ? void 0 : a.row;
|
|
37
|
-
return t ? o("tr", { ...i, tabIndex: 0, children: o(t, { children: l }) }) : o("tr", { ...i, tabIndex: 0, children: l });
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
}), U = ({ sortOrder: n }) => {
|
|
41
|
-
let l, i;
|
|
42
|
-
switch (n) {
|
|
43
|
-
case "ascend":
|
|
44
|
-
l = R, i = "blue";
|
|
45
|
-
break;
|
|
46
|
-
case "descend":
|
|
47
|
-
l = T, i = "blue";
|
|
48
|
-
break;
|
|
49
|
-
default:
|
|
50
|
-
l = K;
|
|
51
|
-
break;
|
|
52
|
-
}
|
|
53
|
-
return o(S, { color: i, icon: o(w, { icon: l }) });
|
|
54
|
-
}, z = ({ className: n, style: l, cellsBackgroundColor: i, columns: a, onChange: t, components: c, ...s }) => {
|
|
55
|
-
const { appId: v, theme: d } = g(), u = N(v, f["kit-table"], n), h = a == null ? void 0 : a.map((e) => (e.sorter && (e.sortIcon = ({ sortOrder: m }) => o(U, { sortOrder: m })), e)), b = (e, m, p, r) => {
|
|
56
|
-
t == null || t(e, p, r);
|
|
57
|
-
}, C = ({ record: e, expanded: m, onExpand: p }) => {
|
|
58
|
-
var r;
|
|
59
|
-
if (!(!Array.isArray(e == null ? void 0 : e.children) || !(!((r = e == null ? void 0 : e.children) === null || r === void 0) && r.length)))
|
|
60
|
-
return o(A, { className: f["expand-button"], type: "tertiary", onClick: (y) => p(e, y), children: o(w, { icon: m ? W : j }) });
|
|
61
|
-
}, x = (e, m, p) => {
|
|
62
|
-
var r;
|
|
63
|
-
return p > 0 && (!Array.isArray(e == null ? void 0 : e.children) || !(!((r = e == null ? void 0 : e.children) === null || r === void 0) && r.length)) ? "last-expandable-level" : "";
|
|
64
|
-
}, k = { ...s == null ? void 0 : s.rowSelection };
|
|
65
|
-
return o(I, {
|
|
66
|
-
className: u,
|
|
67
|
-
style: { "--kit-table-cells-background-color": i, ...l },
|
|
68
|
-
columns: h,
|
|
69
|
-
components: D(c),
|
|
70
|
-
onChange: b,
|
|
71
|
-
// Pour l'instant on garde expandable dans les props à Omit<>
|
|
72
|
-
// A voir si on permet de custom uniquement certaines propriété
|
|
73
|
-
expandable: {
|
|
74
|
-
expandedRowClassName: x,
|
|
75
|
-
expandIcon: C,
|
|
76
|
-
indentSize: d.spacing.m
|
|
77
|
-
},
|
|
78
|
-
...s,
|
|
79
|
-
rowSelection: {
|
|
80
|
-
...k,
|
|
81
|
-
columnWidth: "var(--kit-table-checkbox-width)"
|
|
82
|
-
}
|
|
83
|
-
});
|
|
84
|
-
};
|
|
85
|
-
z.displayName = "KitTable";
|
|
9
|
+
import "../../General/Icon/index.js";
|
|
86
10
|
export {
|
|
87
|
-
|
|
11
|
+
g as KitTable
|
|
88
12
|
};
|
|
@@ -51,6 +51,7 @@ export interface IKitTable<RecordType = any>
|
|
|
51
51
|
onChange?: (pagination: onChangePagination, sorter: onChangeSorter, extra: onChangeExtra) => void;
|
|
52
52
|
cellsBackgroundColor?: string;
|
|
53
53
|
columns: KitTableColumnsType<RecordType>;
|
|
54
|
+
lineSize?: 'm' | 'l';
|
|
54
55
|
}
|
|
55
56
|
|
|
56
57
|
type KitColumnTypeToOmit =
|
|
@@ -1,29 +1,27 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { KitBadge as
|
|
3
|
-
import { b as K, c as m, a as p,
|
|
4
|
-
import { KitEmpty as
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import { KitTooltip as B } from "./Tooltip/index.js";
|
|
11
|
-
import { KitTour as R } from "./Tour/index.js";
|
|
1
|
+
import { K as o } from "../../chunks/index.e41c1v3i.js";
|
|
2
|
+
import { KitBadge as e } from "./Badge/index.js";
|
|
3
|
+
import { b as K, c as m, d as s, a as p, e as f, f as x, g as d, h as T } from "../../chunks/index.1ZiNipQY.js";
|
|
4
|
+
import { KitEmpty as l } from "./Empty/index.js";
|
|
5
|
+
import { K as I } from "../../chunks/index.k7ZSR6zg.js";
|
|
6
|
+
import { KitTabs as c } from "./Tabs/index.js";
|
|
7
|
+
import { KitTree as h } from "./Tree/index.js";
|
|
8
|
+
import { KitTooltip as v } from "./Tooltip/index.js";
|
|
9
|
+
import { KitTour as A } from "./Tour/index.js";
|
|
12
10
|
export {
|
|
13
11
|
o as KitAvatar,
|
|
14
|
-
|
|
12
|
+
e as KitBadge,
|
|
15
13
|
K as KitCollapse,
|
|
16
|
-
|
|
14
|
+
l as KitEmpty,
|
|
17
15
|
m as KitError,
|
|
18
|
-
|
|
19
|
-
|
|
16
|
+
s as KitIdCard,
|
|
17
|
+
I as KitImage,
|
|
20
18
|
p as KitItemCard,
|
|
21
19
|
f as KitItemList,
|
|
22
20
|
x as KitRedirectCard,
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
21
|
+
d as KitTable,
|
|
22
|
+
c as KitTabs,
|
|
23
|
+
T as KitTag,
|
|
24
|
+
v as KitTooltip,
|
|
25
|
+
A as KitTour,
|
|
26
|
+
h as KitTree
|
|
29
27
|
};
|
|
@@ -1,28 +1,10 @@
|
|
|
1
|
-
import "
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import { faMagnifyingGlass as G } from "@fortawesome/free-solid-svg-icons";
|
|
9
|
-
import M from "classnames";
|
|
10
|
-
const R = {
|
|
11
|
-
"kit-autocomplete": "_kit-autocomplete_kox09_2"
|
|
12
|
-
}, S = (e, r, o) => M(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
|
-
}), W = F(({ allowClear: e, label: r, helper: o, htmlFor: s, autoFocus: d, defaultValue: u, disabled: m, placeholder: w, status: i, value: k, onFocus: c, onBlur: l, popupClassName: _, wrapperClassName: g, required: C, infoIcon: K, actions: x, onInfoClick: A, ...a }, I) => {
|
|
17
|
-
var n;
|
|
18
|
-
const [N, f] = v(!1), h = (p) => {
|
|
19
|
-
f(!0), c && c(p);
|
|
20
|
-
}, y = (p) => {
|
|
21
|
-
f(!1), l && l(p);
|
|
22
|
-
};
|
|
23
|
-
return t(j, { label: r, helper: o, htmlFor: s, disabled: m, status: i, className: g, infoIcon: K, actions: x, onInfoClick: A, children: t(O, { ...a, id: (n = a.id) !== null && n !== void 0 ? n : s, disabled: m, ref: I, className: R["kit-autocomplete"], popupClassName: S(_, N, i), children: t(P, { prefix: t(B, { icon: G }), allowClear: e, autoFocus: d, required: C, defaultValue: u, placeholder: w, status: i, value: k, onBlur: y, onFocus: h }) }) });
|
|
24
|
-
});
|
|
25
|
-
W.displayName = "KitAutoComplete";
|
|
1
|
+
import "react/jsx-runtime";
|
|
2
|
+
import "react";
|
|
3
|
+
import "antd";
|
|
4
|
+
import { q as f } from "../../../chunks/index.1ZiNipQY.js";
|
|
5
|
+
import "@fortawesome/react-fontawesome";
|
|
6
|
+
import "@fortawesome/free-solid-svg-icons";
|
|
7
|
+
import "classnames";
|
|
26
8
|
export {
|
|
27
|
-
|
|
9
|
+
f as KitAutoComplete
|
|
28
10
|
};
|
|
@@ -1,68 +1,4 @@
|
|
|
1
|
-
import "../../../
|
|
2
|
-
import { jsx as r } from "react/jsx-runtime";
|
|
3
|
-
import { createContext as p, memo as ee, forwardRef as N, useContext as O, useState as S, useEffect as V, useRef as le } from "react";
|
|
4
|
-
import { Checkbox as ae } from "antd";
|
|
5
|
-
import { u as ne } from "../../../chunks/useKitTheme.KSAU-Pdv.js";
|
|
6
|
-
import w from "classnames";
|
|
7
|
-
import te from "rc-util/es/omit";
|
|
8
|
-
import { ConfigContext as ce } from "antd/es/config-provider/";
|
|
9
|
-
import ie from "antd/es/checkbox/style";
|
|
10
|
-
import { K as ue } from "../../../chunks/InputWrapper.RBqyXNPY.js";
|
|
11
|
-
const R = p(null), de = ({ defaultValue: v, children: o, options: a = [], prefixCls: m, className: l, wrapperClassName: f, status: b, rootClassName: u, style: t, onChange: d, label: x, helper: j, required: A, infoIcon: B, actions: D, onInfoClick: E, ...n }, T) => {
|
|
12
|
-
const { getPrefixCls: W, direction: q } = O(ce), [s, G] = S(n.value || v || []), [z, y] = S([]);
|
|
13
|
-
V(() => {
|
|
14
|
-
"value" in n && G(n.value || []);
|
|
15
|
-
}, [n]);
|
|
16
|
-
const I = () => a.map((e) => typeof e == "string" || typeof e == "number" ? {
|
|
17
|
-
label: e,
|
|
18
|
-
value: e
|
|
19
|
-
} : e), F = (e) => {
|
|
20
|
-
y((c) => c.filter((i) => i !== e));
|
|
21
|
-
}, H = (e) => {
|
|
22
|
-
y((c) => [...c, e]);
|
|
23
|
-
}, J = (e) => {
|
|
24
|
-
const c = s.indexOf(e.value), i = [...s];
|
|
25
|
-
c === -1 ? i.push(e.value) : i.splice(c, 1), "value" in n || G(i);
|
|
26
|
-
const K = I();
|
|
27
|
-
d == null || d(i.filter((k) => z.includes(k)).sort((k, Y) => {
|
|
28
|
-
const Z = K.findIndex((C) => C.value === k), P = K.findIndex((C) => C.value === Y);
|
|
29
|
-
return Z - P;
|
|
30
|
-
}));
|
|
31
|
-
}, g = W("checkbox", m), h = `${g}-group`, [L, M] = ie(g), Q = te(n, ["value", "disabled", "bordered"]);
|
|
32
|
-
a && a.length > 0 && (o = I().map((e) => r(_, { prefixCls: g, 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: `${h}-item`, style: e.style, children: e.label }, e.value.toString())));
|
|
33
|
-
const U = {
|
|
34
|
-
toggleOption: J,
|
|
35
|
-
value: s,
|
|
36
|
-
disabled: n.disabled,
|
|
37
|
-
name: n.name,
|
|
38
|
-
// https://github.com/ant-design/ant-design/issues/16376
|
|
39
|
-
registerValue: H,
|
|
40
|
-
cancelValue: F
|
|
41
|
-
}, X = w(h, {
|
|
42
|
-
[`${h}-rtl`]: q === "rtl"
|
|
43
|
-
}, l, u, M);
|
|
44
|
-
return L(r("div", { className: X, style: t, ...Q, ref: T, children: r(R.Provider, { value: U, children: r(ue, { label: x, helper: j, disabled: n.disabled, bordered: n.bordered, status: b, className: f, required: A, infoIcon: B, actions: D, onInfoClick: E, children: o }) }) }));
|
|
45
|
-
}, re = ee(N(de)), oe = re, se = {
|
|
46
|
-
"kit-checkbox": "_kit-checkbox_16ama_2"
|
|
47
|
-
}, _ = N(({ danger: v, className: o, ...a }, m) => {
|
|
48
|
-
const l = O(R), { appId: f } = ne(), b = (l == null ? void 0 : l.disabled) || a.disabled, u = le(a.value);
|
|
49
|
-
V(() => {
|
|
50
|
-
l == null || l.registerValue(a.value);
|
|
51
|
-
}, []), V(() => {
|
|
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 = w(f, se["kit-checkbox"], o, {
|
|
60
|
-
"ant-checkbox-wrapper-danger": v
|
|
61
|
-
});
|
|
62
|
-
return r(ae, { ...t, ref: m, disabled: b, className: d });
|
|
63
|
-
}), $ = _;
|
|
64
|
-
$.displayName = "KitCheckbox";
|
|
65
|
-
$.Group = oe;
|
|
1
|
+
import { i } from "../../../chunks/index.1ZiNipQY.js";
|
|
66
2
|
export {
|
|
67
|
-
|
|
3
|
+
i as KitCheckbox
|
|
68
4
|
};
|