aristid-ds 10.1.0-e304e46 → 10.1.0-efeb78e
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 +46 -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 +3 -12
- package/dist/Kit/DataDisplay/ItemCard/types.d.ts +1 -0
- package/dist/Kit/DataDisplay/ItemList/index.js +5 -17
- package/dist/Kit/DataDisplay/RedirectCard/index.js +2 -3
- package/dist/Kit/DataDisplay/Table/DragHandle.d.ts +3 -0
- package/dist/Kit/DataDisplay/Table/Table.d.ts +3 -0
- package/dist/Kit/DataDisplay/Table/index.d.ts +2 -3
- package/dist/Kit/DataDisplay/Table/index.js +2 -86
- package/dist/Kit/DataDisplay/Table/types.d.ts +22 -1
- 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/Filter/index.d.ts +3 -0
- package/dist/Kit/DataEntry/Filter/index.js +22 -0
- package/dist/Kit/DataEntry/Filter/types.d.ts +12 -0
- 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 +3 -4
- 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.d.ts +1 -0
- package/dist/Kit/DataEntry/index.js +19 -27
- 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/Pagination/index.js +7 -9
- package/dist/Kit/Navigation/Pagination/types.d.ts +1 -3
- 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 +2 -2
- package/dist/Kit/index.js +148 -159
- 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/assets/styles.css +1 -1
- package/dist/chunks/{KitNotification.lbY6JMru.js → KitNotification.5hnjqCgp.js} +16 -17
- package/dist/chunks/index.QQ-Rz_l_.js +1640 -0
- package/dist/chunks/index.e41c1v3i.js +41 -0
- package/dist/chunks/index.k7ZSR6zg.js +31 -0
- package/dist/chunks/{styles.module.taPo3VoP.js → styles.module.YmhPHVHy.js} +1 -1
- package/dist/index.es.js +154 -166
- package/dist/index.umd.js +4 -4
- package/dist/theme/aristid/components/DataEntry/Filter/index.d.ts +2 -0
- package/dist/theme/aristid/components/DataEntry/Filter/index.js +16 -0
- package/dist/theme/aristid/general/utilities/index.js +1 -1
- package/dist/theme/types/components/DataEntry/Filter/index.d.ts +25 -0
- package/dist/theme/types/components/Navigation/SidePanel/index.d.ts +74 -0
- package/dist/theme/types/index.d.ts +4 -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,25 @@
|
|
|
4
4
|
|
|
5
5
|
### ✨ Features
|
|
6
6
|
|
|
7
|
+
- **⚠️ Breaking change - Pagination:**
|
|
8
|
+
- `bordererd` prop doesn't exist anymore (@7Remy)
|
|
9
|
+
- New design (@7Remy)
|
|
10
|
+
- **Table**:
|
|
11
|
+
- Handle two different line heights (m/l) (@7Remy)
|
|
12
|
+
- Reduce sort icons size (@7Remy)
|
|
13
|
+
- Fix table header height (@7Remy)
|
|
14
|
+
- Make rows sortable (added `showDragHandle` and `DragHandleelement` props) (@evoiron)
|
|
15
|
+
- Make table and rows background customisable with `cellsBackgroundColor` and `backgroundColor`props (@evoiron)
|
|
16
|
+
- Add `showHeader`prop to show or hide table header (@evoiron)
|
|
17
|
+
- Add `borderedRows` prop to add a border to table rows (@evoiron)
|
|
18
|
+
- **⚠️ Breaking change - Button:**
|
|
19
|
+
- Change available colors on segmented button (same as `Tag` compoent) (@evoiron)
|
|
20
|
+
- **Button**
|
|
21
|
+
- Add role `link` when type prop is set to `link` or `redirect` (@philippechevieux)
|
|
22
|
+
- Add `size` props, usable when type is `primary`, `secondary` or `tertiary` (@evoiron)
|
|
23
|
+
- Add split button. Just fill the `items` props to enable it. (@evoiron)
|
|
7
24
|
- **ColorPicker**
|
|
25
|
+
- Add `ref` support to retrieve the `value`, `focus` or `blur` the `ColorPicker` (@philippechevieux)
|
|
8
26
|
- Add a clear icon inside `ColorPicker` input when `allowClear` prop is set (@philippechevieux)
|
|
9
27
|
- **Empty**:
|
|
10
28
|
- Add 5 svgs, and replace existing ones to uniformize size (@7Remy)
|
|
@@ -12,9 +30,27 @@
|
|
|
12
30
|
- Update image container (@7Remy)
|
|
13
31
|
- Update elements order/spacing (@7Remy)
|
|
14
32
|
- Improve responsive (@7Remy)
|
|
33
|
+
- **Collapse**:
|
|
34
|
+
- Update `clear` icon render (@philippechevieux)
|
|
35
|
+
- **Input**:
|
|
36
|
+
- Update `clear` icon render (@philippechevieux)
|
|
37
|
+
- **Password**:
|
|
38
|
+
- Update `clear` icon render (@philippechevieux)
|
|
39
|
+
- **TextArea**:
|
|
40
|
+
- Update `clear` icon render (@philippechevieux)
|
|
41
|
+
- **Select**:
|
|
42
|
+
- Update `clear` icon render (@philippechevieux)
|
|
43
|
+
- **Notification**:
|
|
44
|
+
- Update `clear` icon render (@philippechevieux)
|
|
45
|
+
- **Filter**:
|
|
46
|
+
- Add the new Filter component (@evoiron)
|
|
15
47
|
|
|
16
48
|
### 🐛 Bug Fixes
|
|
17
49
|
|
|
50
|
+
- **InputWrapper**:
|
|
51
|
+
- Fix an issue where a child `InputWrapper` was displaying a border if a parent `InputWrapper` had the `bordered` property set to `true`. (@philippechevieux)
|
|
52
|
+
- Fix `onInfoClick` button render (@philippechevieux)
|
|
53
|
+
- Fix `actions` alignment (@philippechevieux)
|
|
18
54
|
- **AutoComplete**:
|
|
19
55
|
- Pass `required` attribute to the DOM (@Delmotte-Vincent)
|
|
20
56
|
- **DatePicker**:
|
|
@@ -29,9 +65,19 @@
|
|
|
29
65
|
- Pass `required` attribute to the DOM (@Delmotte-Vincent)
|
|
30
66
|
- **Select**:
|
|
31
67
|
- Pass `required` attribute to the DOM (@Delmotte-Vincent)
|
|
68
|
+
- Fix avatar space when no icon on tag mode (@renaudamsellem)
|
|
32
69
|
- **RichText**:
|
|
33
70
|
- Enforce css for bullet list display. Avoid external css from breaking it. (@evoiron)
|
|
34
71
|
|
|
72
|
+
### 📚 Documentation
|
|
73
|
+
|
|
74
|
+
- upgrade Storybook to v8.3.6 (@evoiron)
|
|
75
|
+
|
|
76
|
+
### 📚 Documentation
|
|
77
|
+
|
|
78
|
+
- Unify storybook headings (@evoiron)
|
|
79
|
+
- Rewrite Accessibility Panel for better performances (@evoiron)
|
|
80
|
+
|
|
35
81
|
## [10.1.0](https://www.npmjs.com/package/aristid-ds/v/10.1.0) (2024-10-15)
|
|
36
82
|
|
|
37
83
|
### ✨ 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.QQ-Rz_l_.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.QQ-Rz_l_.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.QQ-Rz_l_.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,29 +1,20 @@
|
|
|
1
1
|
import "react/jsx-runtime";
|
|
2
2
|
import "react";
|
|
3
3
|
import "classnames";
|
|
4
|
-
import "
|
|
4
|
+
import { a as h } from "../../../chunks/index.QQ-Rz_l_.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";
|
|
22
13
|
import "antd";
|
|
23
14
|
import "../../../chunks/useKitTheme.KSAU-Pdv.js";
|
|
24
|
-
import "../../../chunks/styles.module.
|
|
15
|
+
import "../../../chunks/styles.module.YmhPHVHy.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,39 +1,27 @@
|
|
|
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.QQ-Rz_l_.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";
|
|
31
20
|
import "../../Navigation/DropDown/index.js";
|
|
32
21
|
import "../../Navigation/Steps/index.js";
|
|
33
|
-
import "../../../chunks/styles.module.
|
|
22
|
+
import "../../../chunks/styles.module.YmhPHVHy.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.QQ-Rz_l_.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,3 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
export declare const KitTable: FunctionComponent<IKitTable>;
|
|
1
|
+
import { KitTableCompoundedComponent } from './types';
|
|
2
|
+
export declare const KitTable: KitTableCompoundedComponent;
|
|
@@ -1,88 +1,4 @@
|
|
|
1
|
-
import "../../../
|
|
2
|
-
import { jsx as o } from "react/jsx-runtime";
|
|
3
|
-
import { Table as I } from "antd";
|
|
4
|
-
import N from "classnames";
|
|
5
|
-
import { u as g } from "../../../chunks/useKitTheme.KSAU-Pdv.js";
|
|
6
|
-
import { KitButton as A } from "../../General/Button/index.js";
|
|
7
|
-
import "../../General/Typography/index.js";
|
|
8
|
-
import { KitIcon as S } from "../../General/Icon/index.js";
|
|
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";
|
|
1
|
+
import { g as o } from "../../../chunks/index.QQ-Rz_l_.js";
|
|
86
2
|
export {
|
|
87
|
-
|
|
3
|
+
o as KitTable
|
|
88
4
|
};
|
|
@@ -1,8 +1,16 @@
|
|
|
1
1
|
import {TableProps} from 'antd';
|
|
2
2
|
import {KitHTMLAttributes} from '../../../types';
|
|
3
|
+
import {IKitButton} from '../../General/Button/types';
|
|
3
4
|
import type {TableColumnType} from 'antd';
|
|
4
5
|
import {ColumnType, TableRowSelection, SortOrder} from 'antd/es/table/interface';
|
|
5
|
-
import {
|
|
6
|
+
import {
|
|
7
|
+
CSSProperties,
|
|
8
|
+
ComponentType,
|
|
9
|
+
ForwardRefExoticComponent,
|
|
10
|
+
FunctionComponent,
|
|
11
|
+
ReactElement,
|
|
12
|
+
ReactHTML
|
|
13
|
+
} from 'react';
|
|
6
14
|
|
|
7
15
|
type Component<P> = ComponentType<P> | ForwardRefExoticComponent<P> | FunctionComponent<P> | keyof ReactHTML;
|
|
8
16
|
|
|
@@ -50,7 +58,16 @@ export interface IKitTable<RecordType = any>
|
|
|
50
58
|
components?: KitTableComponents;
|
|
51
59
|
onChange?: (pagination: onChangePagination, sorter: onChangeSorter, extra: onChangeExtra) => void;
|
|
52
60
|
cellsBackgroundColor?: string;
|
|
61
|
+
backgroundColor?: string;
|
|
62
|
+
borderedRows?: boolean;
|
|
53
63
|
columns: KitTableColumnsType<RecordType>;
|
|
64
|
+
lineSize?: 'm' | 'l';
|
|
65
|
+
dragHandleElement?: ReactElement;
|
|
66
|
+
showDragHandle?: boolean;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
export interface IDragHandle extends IKitButton, KitHTMLAttributes<HTMLButtonElement> {
|
|
70
|
+
isDragging?: boolean;
|
|
54
71
|
}
|
|
55
72
|
|
|
56
73
|
type KitColumnTypeToOmit =
|
|
@@ -74,5 +91,9 @@ export type KitColumnType<RecordType> = Omit<ColumnType<RecordType>, KitColumnTy
|
|
|
74
91
|
|
|
75
92
|
export type KitTableColumnsType<RecordType> = KitColumnType<RecordType>[];
|
|
76
93
|
|
|
94
|
+
export type KitTableCompoundedComponent = FunctionComponent<IKitTable> & {
|
|
95
|
+
DragHandle: ForwardRefExoticComponent<HTMLButtonElement, IDragHandle>;
|
|
96
|
+
};
|
|
97
|
+
|
|
77
98
|
export {TableColumnType as KitTableColumnType};
|
|
78
99
|
export {SortOrder as KitSortOrder};
|
|
@@ -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.QQ-Rz_l_.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.QQ-Rz_l_.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
|
};
|