aristid-ds 8.0.0-e14b2c4 → 9.0.0-366eae1
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 +39 -4
- package/dist/Kit/App/index.d.ts +1 -0
- package/dist/Kit/App/index.js +118 -57
- 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 +8 -20
- package/dist/Kit/DataDisplay/IdCard/index.js +15 -15
- package/dist/Kit/DataDisplay/Image/index.js +8 -22
- package/dist/Kit/DataDisplay/ItemCard/index.js +1 -1
- package/dist/Kit/DataDisplay/ItemList/index.js +3 -5
- package/dist/Kit/DataDisplay/RedirectCard/RedirectCardActions.d.ts +3 -0
- package/dist/Kit/DataDisplay/RedirectCard/index.js +11 -22
- package/dist/Kit/DataDisplay/RedirectCard/types.d.ts +12 -2
- package/dist/Kit/DataDisplay/Table/index.js +1 -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 +11 -13
- package/dist/Kit/DataEntry/AutoComplete/index.js +19 -18
- package/dist/Kit/DataEntry/AutoComplete/types.d.ts +1 -0
- package/dist/Kit/DataEntry/Checkbox/index.js +2 -2
- package/dist/Kit/DataEntry/ColorPicker/index.js +2 -2
- package/dist/Kit/DataEntry/DatePicker/index.js +22 -20
- package/dist/Kit/DataEntry/DatePicker/types.d.ts +2 -0
- package/dist/Kit/DataEntry/Input/index.js +26 -25
- package/dist/Kit/DataEntry/Input/types.d.ts +3 -0
- package/dist/Kit/DataEntry/InputNumber/index.js +13 -12
- package/dist/Kit/DataEntry/InputNumber/types.d.ts +1 -0
- package/dist/Kit/DataEntry/InputWrapper/index.js +1 -1
- package/dist/Kit/DataEntry/InputWrapper/types.d.ts +4 -0
- package/dist/Kit/DataEntry/Radio/index.js +2 -2
- package/dist/Kit/DataEntry/Rate/index.js +1 -1
- package/dist/Kit/DataEntry/Select/index.js +3 -3
- package/dist/Kit/DataEntry/Select/types.d.ts +1 -0
- 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 +1 -1
- package/dist/Kit/DataEntry/index.js +3 -3
- package/dist/Kit/Feedback/Alert/index.js +1 -1
- 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/KitAvatarSkeleton.d.ts +3 -0
- package/dist/Kit/Feedback/Skeleton/KitCustomSkeleton.d.ts +3 -0
- package/dist/Kit/Feedback/Skeleton/KitInputSkeleton.d.ts +3 -0
- package/dist/Kit/Feedback/Skeleton/KitItemCard.d.ts +3 -0
- package/dist/Kit/Feedback/Skeleton/KitItemListSkeleton.d.ts +3 -0
- package/dist/Kit/Feedback/Skeleton/index.d.ts +12 -0
- package/dist/Kit/Feedback/Skeleton/index.js +47 -0
- package/dist/Kit/Feedback/Skeleton/types.d.ts +21 -0
- package/dist/Kit/Feedback/SnackBar/index.js +7 -7
- package/dist/Kit/Feedback/index.d.ts +1 -0
- package/dist/Kit/Feedback/index.js +9 -7
- package/dist/Kit/General/Button/index.js +52 -45
- package/dist/Kit/General/Button/types.d.ts +6 -1
- package/dist/Kit/General/Icon/index.js +1 -1
- package/dist/Kit/General/Typography/commons.d.ts +2 -4
- package/dist/Kit/General/Typography/index.js +40 -52
- package/dist/Kit/General/Typography/types.d.ts +5 -17
- package/dist/Kit/Layout/Divider/index.js +1 -1
- package/dist/Kit/Layout/Grid/Col.d.ts +2 -2
- package/dist/Kit/Layout/Grid/Grid.d.ts +3 -0
- package/dist/Kit/Layout/Grid/GridContext.d.ts +10 -0
- package/dist/Kit/Layout/Grid/GridStyle.d.ts +8 -0
- package/dist/Kit/Layout/Grid/Row.d.ts +2 -2
- package/dist/Kit/Layout/Grid/index.d.ts +2 -9
- package/dist/Kit/Layout/Grid/index.js +2 -8
- package/dist/Kit/Layout/Grid/types.d.ts +38 -7
- package/dist/Kit/Layout/Grid/useGridContext.d.ts +1 -0
- package/dist/Kit/Layout/index.d.ts +1 -1
- package/dist/Kit/Layout/index.js +6 -6
- 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 -3
- package/dist/Kit/Navigation/SideMenu/index.js +1 -1
- package/dist/Kit/Navigation/Steps/index.js +1 -1
- package/dist/Kit/Navigation/index.js +3 -3
- package/dist/Kit/index.js +156 -159
- package/dist/assets/InputWrapper.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/index20.css +1 -1
- package/dist/assets/index21.css +1 -1
- package/dist/assets/index22.css +1 -1
- package/dist/assets/index23.css +1 -1
- package/dist/assets/index24.css +1 -1
- package/dist/assets/index25.css +1 -1
- package/dist/assets/index26.css +1 -1
- package/dist/assets/index27.css +1 -1
- package/dist/assets/index28.css +1 -1
- package/dist/assets/index29.css +1 -1
- package/dist/assets/index3.css +1 -1
- package/dist/assets/index30.css +1 -1
- package/dist/assets/index31.css +1 -1
- package/dist/assets/index32.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/InputWrapper.tJodbKzs.js +32 -0
- package/dist/chunks/{KitNotification.GMSsnt0S.js → KitNotification.Hqe2lX1N.js} +1 -1
- package/dist/chunks/SnackBarProvider.iuCIyLXl.js +22 -0
- package/dist/chunks/index.k39RLiRt.js +612 -0
- package/dist/chunks/index.qBmLATvd.js +31 -0
- package/dist/index.es.js +122 -126
- package/dist/index.umd.js +48 -6
- package/dist/theme/aristid/general/grid/index.d.ts +2 -0
- package/dist/theme/aristid/general/grid/index.js +108 -0
- package/dist/theme/aristid/general/index.js +9 -6
- package/dist/theme/theme-context.d.ts +1 -0
- package/dist/theme/types/general/grid/index.d.ts +16 -0
- package/dist/theme/types/index.d.ts +3 -0
- package/package.json +3 -3
- package/dist/assets/index33.css +0 -1
- package/dist/chunks/InputWrapper.vbAs3Gxi.js +0 -30
- package/dist/chunks/SnackBarProvider.xMKXdZ88.js +0 -22
- package/dist/chunks/index.8ubgPqV2.js +0 -530
- package/dist/chunks/useKitLocale.96CdK3og.js +0 -11
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,24 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
-
## [
|
|
3
|
+
## [X.X.X](https://www.npmjs.com/package/aristid-ds/v/X.X.X) (202X-XX-XX)
|
|
4
|
+
|
|
5
|
+
### ✨ Features
|
|
6
|
+
|
|
7
|
+
- **InputWrapper:**
|
|
8
|
+
- Add `hoverable` to change border color when `bordered` is set to `true` (@philippechevieux)
|
|
9
|
+
- Add `onFocus` to trigger a given function when content is focused. Also if `bordered` is set to `true` it will change the border render (@philippechevieux)
|
|
10
|
+
- Add `htmlFor` property to link the label to the wrapped content. This property is also available for: (@philippechevieux)
|
|
11
|
+
- `AutoComplete`
|
|
12
|
+
- `DatePicker` and `RangePicker`
|
|
13
|
+
- `Input`, `Password` and `TextArea`
|
|
14
|
+
- `InputNumber`
|
|
15
|
+
- `Select`
|
|
16
|
+
|
|
17
|
+
### 📚 Documentation
|
|
18
|
+
|
|
19
|
+
- Fix design tokens page that crashed every time it was consulted (@philippechevieux)
|
|
20
|
+
|
|
21
|
+
## [9.0.0](https://www.npmjs.com/package/aristid-ds/v/9.0.0) (2024-08-28)
|
|
4
22
|
|
|
5
23
|
### 🎨 Theming
|
|
6
24
|
|
|
@@ -22,9 +40,21 @@
|
|
|
22
40
|
### ✨ Features
|
|
23
41
|
|
|
24
42
|
- **⚠️ Breaking change - Header Component:**
|
|
25
|
-
-
|
|
26
|
-
-
|
|
27
|
-
-
|
|
43
|
+
- Rename `menuCard` prop of `Header.Profile` to `profileCardProps` and change its type from `ReactNode` to `IKitIdCard` (@evoiron)
|
|
44
|
+
- Add `profileMenuCardProps` in `Header.Profile` as `IKitIdCard` (@evoiron)
|
|
45
|
+
- Add `complement` in `Header.Profile` as `ReactNode` (@evoiron)
|
|
46
|
+
- **⚠️ Breaking change - Typography:**
|
|
47
|
+
- Change expected value of `size` prop. `small`, `medium` and `large` are replaced by fontSize from `fontSize1` to `fontSize7` (@philippechevieux)
|
|
48
|
+
- Remove `type` prop because it is not used anymore and has been replaced by `color` (@philippechevieux)
|
|
49
|
+
- **⚠️ Breaking change - RedirectCard:**
|
|
50
|
+
|
|
51
|
+
- Rename `imageSrc` as `coverSrc` and `imageAlt` as `coverAlt` (@philippechevieux)
|
|
52
|
+
- Add `actions` prop to display between 1 and 3 buttons (@philippechevieux)
|
|
53
|
+
- Fix cover divider render on hover (@philippechevieux)
|
|
54
|
+
|
|
55
|
+
- **⚠️ Breaking change - Grid Component:**
|
|
56
|
+
|
|
57
|
+
- Update `Grid` internal code. We have moved from the Antd Grid component to a home-made component. Please refer to the documentation for use.
|
|
28
58
|
|
|
29
59
|
- **Dropdown:**
|
|
30
60
|
- Update border, active & selected styles (@renaudAmsellem)
|
|
@@ -37,6 +67,11 @@
|
|
|
37
67
|
- **Menu (Deprecated):**
|
|
38
68
|
- Deprecate Menu component
|
|
39
69
|
- Move Menu documentation to deprecated folder
|
|
70
|
+
- **Button**
|
|
71
|
+
- Add `link` and `redirect` Button types (@evoiron)
|
|
72
|
+
- Deprecate `text' Button type (@evoiron)
|
|
73
|
+
- **Skeleton:**
|
|
74
|
+
- Add a new component `KitSkeleton` (@Delmotte-Vincent)
|
|
40
75
|
|
|
41
76
|
## [8.0.0](https://www.npmjs.com/package/aristid-ds/v/8.0.0) (2024-07-25)
|
|
42
77
|
|
package/dist/Kit/App/index.d.ts
CHANGED
package/dist/Kit/App/index.js
CHANGED
|
@@ -1,75 +1,136 @@
|
|
|
1
|
-
import "../../assets/
|
|
2
|
-
import { jsx as n, jsxs as
|
|
3
|
-
import { useState as
|
|
4
|
-
import { ConfigProvider as
|
|
5
|
-
import {
|
|
6
|
-
import { createGlobalStyle as
|
|
7
|
-
import { toCssVariables as
|
|
8
|
-
import
|
|
9
|
-
import { Style as
|
|
10
|
-
import { K as
|
|
11
|
-
import { KitAristidThemeGeneral as
|
|
12
|
-
import { antdThemeConfig as
|
|
13
|
-
import { frFR as
|
|
14
|
-
import { enUS as
|
|
15
|
-
import {
|
|
16
|
-
import { mapKitLocaleToAntdLocale as
|
|
17
|
-
import { d as
|
|
1
|
+
import "../../assets/index25.css";
|
|
2
|
+
import { jsx as n, jsxs as v, Fragment as x } from "react/jsx-runtime";
|
|
3
|
+
import { useMemo as K, useState as k, useLayoutEffect as b, useRef as S, useEffect as P } from "react";
|
|
4
|
+
import { ConfigProvider as L } from "antd";
|
|
5
|
+
import { I as y } from "../../chunks/SnackBarProvider.iuCIyLXl.js";
|
|
6
|
+
import { createGlobalStyle as R } from "styled-components";
|
|
7
|
+
import { toCssVariables as h, uuid as C } from "../../utils/functions/index.js";
|
|
8
|
+
import s from "lodash/merge";
|
|
9
|
+
import { Style as w } from "react-style-tag";
|
|
10
|
+
import { K as G } from "../../chunks/useKitTheme.KSAU-Pdv.js";
|
|
11
|
+
import { KitAristidThemeGeneral as a } from "../../theme/aristid/general/index.js";
|
|
12
|
+
import { antdThemeConfig as I } from "../../theme/utils/tokens-mapper/index.js";
|
|
13
|
+
import { frFR as f } from "../../translation/fr-FR/index.js";
|
|
14
|
+
import { enUS as E } from "../../translation/en-US/index.js";
|
|
15
|
+
import { a as _, u as j } from "../../chunks/index.qBmLATvd.js";
|
|
16
|
+
import { mapKitLocaleToAntdLocale as A } from "../../translation/utils/index.js";
|
|
17
|
+
import { d as F } from "../../chunks/notification-provider.5EFnJe91.js";
|
|
18
18
|
import "../DataDisplay/Avatar/index.js";
|
|
19
19
|
import "../DataDisplay/Badge/index.js";
|
|
20
|
-
import "../../chunks/index.
|
|
21
|
-
import { KitEmpty as
|
|
22
|
-
import "../DataDisplay/Error/index.js";
|
|
20
|
+
import { l as z } from "../../chunks/index.k39RLiRt.js";
|
|
21
|
+
import { KitEmpty as $ } from "../DataDisplay/Empty/index.js";
|
|
23
22
|
import "../DataDisplay/IdCard/index.js";
|
|
24
|
-
import "../DataDisplay/Image/index.js";
|
|
25
23
|
import "../DataDisplay/Table/index.js";
|
|
26
24
|
import "../DataDisplay/Tabs/index.js";
|
|
27
25
|
import "../DataDisplay/Tree/index.js";
|
|
28
26
|
import "../DataDisplay/Tooltip/index.js";
|
|
29
27
|
import "classnames";
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
28
|
+
const M = "aristid-ds-grid", m = (i, o) => !i && !o ? "" : i ? o ? `@media screen and (min-width: ${i}px) and (max-width: ${o}px)` : `@media screen and (min-width: ${i}px)` : `@media screen and (max-width: ${o}px)`, g = (i) => {
|
|
29
|
+
var o, t;
|
|
30
|
+
const e = (o = i.closed.colWidth) !== null && o !== void 0 ? o : "auto", r = (t = i.open.colWidth) !== null && t !== void 0 ? t : "auto";
|
|
31
|
+
return `
|
|
32
|
+
.kit-row-inner {
|
|
33
|
+
grid-template-columns: repeat(${i.columns}, ${e === "auto" ? "1fr" : `${e}px`});
|
|
34
|
+
column-gap: ${i.closed.colGap}px;
|
|
35
|
+
width: ${e === "auto" ? "100%" : "auto"};
|
|
36
|
+
${i.closed.marginRight ? `margin-right: ${i.closed.marginRight}px;` : ""}
|
|
37
|
+
${i.horizontalPadding ? `padding: 0 ${i.horizontalPadding}px` : ""}
|
|
38
|
+
}
|
|
39
|
+
&.kit-row-menu-open {
|
|
40
|
+
.kit-row-inner {
|
|
41
|
+
grid-template-columns: repeat(${i.columns}, ${r === "auto" ? "1fr" : `${r}px`});
|
|
42
|
+
column-gap: ${i.open.colGap}px;
|
|
43
|
+
width: ${r === "auto" ? "100%" : "auto"};
|
|
44
|
+
${i.open.marginRight ? `margin-right: ${i.open.marginRight}px;` : ""}
|
|
45
|
+
${i.horizontalPadding ? `padding: 0 ${i.horizontalPadding}px` : ""}
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
`;
|
|
49
|
+
}, B = ({ theme: i, customTheme: o, id: t }) => {
|
|
50
|
+
const r = K(() => s(i, o == null ? void 0 : o.general), [i, o]).breakpoints.reverse(), c = [
|
|
51
|
+
// add css rules for fixed rows breakpoints (non mediaQueries)
|
|
52
|
+
...r.map((d) => `
|
|
53
|
+
.${t}.kit-row.kit-row-fixed.${d} {
|
|
54
|
+
${g(i.grid[d])}
|
|
55
|
+
}
|
|
56
|
+
`),
|
|
57
|
+
// add css rules for non width > larger breakpoints
|
|
58
|
+
`
|
|
59
|
+
${m(i.grid[r[0]].width + 1, void 0)} {
|
|
60
|
+
/* breakpoint: ${r[0]}*/
|
|
61
|
+
.${t}.kit-row:not(.kit-row-fixed) {
|
|
62
|
+
${g(i.grid[r[0]])}
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
`,
|
|
66
|
+
// add css rules for intermediate breakpoints breakpoints
|
|
67
|
+
...r.slice(0, -1).map((d, l) => `
|
|
68
|
+
${m(i.grid[r[l + 1]].width + 1, i.grid[d].width)} {
|
|
69
|
+
/* breakpoint: ${d}*/
|
|
70
|
+
.${t}.kit-row:not(.kit-row-fixed) {
|
|
71
|
+
${g(i.grid[d])}
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
`),
|
|
75
|
+
// css rules for width < smallest breakpoint
|
|
76
|
+
`
|
|
77
|
+
${m(void 0, i.grid[r[r.length - 1]].width)} {
|
|
78
|
+
/* breakpoint: ${r[r.length - 1]}*/
|
|
79
|
+
.${t}.kit-row:not(.kit-row-fixed) {
|
|
80
|
+
${g(i.grid[r[r.length - 1]])}
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
`
|
|
84
|
+
];
|
|
85
|
+
return n(w, { id: M, hasSourceMap: !1, children: c.join("") });
|
|
86
|
+
}, N = R`
|
|
87
|
+
.${(i) => i.id} {
|
|
88
|
+
${(i) => h(i.customTheme)};
|
|
34
89
|
|
|
35
90
|
}
|
|
36
|
-
`,
|
|
37
|
-
const [
|
|
38
|
-
return
|
|
39
|
-
const
|
|
40
|
-
|
|
41
|
-
}, []), n(
|
|
91
|
+
`, U = "aristid-ds-global", V = ({ children: i, customTheme: o, id: t, useMediaQueries: e = !0 }) => {
|
|
92
|
+
const [r, c] = k(null), { theme: d, appId: l, spacing: u } = D(t, o);
|
|
93
|
+
return b(() => {
|
|
94
|
+
const p = h(a, "--general");
|
|
95
|
+
c(p);
|
|
96
|
+
}, []), n(G.Provider, { value: { theme: d, appId: l, spacing: u }, children: r !== null && v(x, { children: [n(w, { id: U, hasSourceMap: !1, children: `
|
|
42
97
|
:root{
|
|
43
|
-
${Object.keys(
|
|
98
|
+
${Object.keys(r).map((p) => `${p}: ${r[p]}`).join(";")}
|
|
44
99
|
}
|
|
45
|
-
` }),
|
|
46
|
-
},
|
|
47
|
-
var
|
|
48
|
-
const
|
|
49
|
-
return {
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
100
|
+
` }), o && n(N, { id: l, customTheme: s({ general: { utilities: a.utilities } }, o) }), e && n(B, { theme: a, customTheme: o, id: l }), i] }) });
|
|
101
|
+
}, D = (i, o) => {
|
|
102
|
+
var t, e, r;
|
|
103
|
+
const c = S(i || "ds-" + C().substring(0, 8)), d = s(a.spacing, (t = o == null ? void 0 : o.general) === null || t === void 0 ? void 0 : t.spacing), l = s(a.breakpoints, (e = o == null ? void 0 : o.general) === null || e === void 0 ? void 0 : e.breakpoints), u = s(a.grid, (r = o == null ? void 0 : o.general) === null || r === void 0 ? void 0 : r.grid);
|
|
104
|
+
return {
|
|
105
|
+
theme: a,
|
|
106
|
+
appId: c.current,
|
|
107
|
+
spacing: d,
|
|
108
|
+
breakpoints: l,
|
|
109
|
+
grid: u
|
|
110
|
+
};
|
|
111
|
+
}, O = ({ children: i }) => {
|
|
112
|
+
const o = Q();
|
|
113
|
+
return n(_.Provider, { value: o, children: i });
|
|
114
|
+
}, Q = () => {
|
|
115
|
+
const [i, o] = k(f);
|
|
116
|
+
return { locale: i, setKitLocale: (e) => {
|
|
117
|
+
if (e.locale === "frFR") {
|
|
118
|
+
const r = s(f, e);
|
|
119
|
+
o(r);
|
|
59
120
|
} else {
|
|
60
|
-
const
|
|
61
|
-
r
|
|
121
|
+
const r = s(E, e);
|
|
122
|
+
o(r);
|
|
62
123
|
}
|
|
63
124
|
} };
|
|
64
|
-
},
|
|
65
|
-
const { locale:
|
|
66
|
-
return
|
|
67
|
-
|
|
68
|
-
}, [
|
|
69
|
-
var
|
|
70
|
-
return n(
|
|
71
|
-
}, children:
|
|
125
|
+
}, wi = ({ children: i, locale: o, customTheme: t, id: e, useMediaQueries: r }) => n(V, { customTheme: t, id: e, useMediaQueries: r, children: n(O, { children: n(q, { locale: o, children: n(z, { children: i }) }) }) }), q = ({ children: i, locale: o }) => {
|
|
126
|
+
const { locale: t, setKitLocale: e } = j();
|
|
127
|
+
return P(() => {
|
|
128
|
+
o !== void 0 && e(o);
|
|
129
|
+
}, [o, e]), n(L, { theme: I, locale: A(o), renderEmpty: () => {
|
|
130
|
+
var r;
|
|
131
|
+
return n($, { className: "default-render", image: $.ASSET_LIST, description: (r = t.Empty) === null || r === void 0 ? void 0 : r.noData });
|
|
132
|
+
}, children: v(F, { children: [n(y, {}), i] }) });
|
|
72
133
|
};
|
|
73
134
|
export {
|
|
74
|
-
|
|
135
|
+
wi as KitApp
|
|
75
136
|
};
|
|
@@ -1,30 +1,18 @@
|
|
|
1
|
-
import "
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import { u as n } from "../../../chunks/useKitTheme.KSAU-Pdv.js";
|
|
1
|
+
import "react/jsx-runtime";
|
|
2
|
+
import "antd";
|
|
3
|
+
import "../../../chunks/index.qBmLATvd.js";
|
|
4
|
+
import "../../../chunks/useKitTheme.KSAU-Pdv.js";
|
|
6
5
|
import "../../General/Button/index.js";
|
|
7
|
-
import
|
|
6
|
+
import "../../General/Typography/index.js";
|
|
8
7
|
import "../../General/Icon/index.js";
|
|
9
8
|
import "../../Layout/Divider/index.js";
|
|
10
|
-
import "../../Layout/
|
|
11
|
-
import { KitSpace as v } from "../../Layout/Space/index.js";
|
|
9
|
+
import "../../Layout/Space/index.js";
|
|
12
10
|
import "color-convert";
|
|
13
11
|
import "color-string";
|
|
14
12
|
import "lodash/isEmpty";
|
|
15
|
-
import
|
|
13
|
+
import "classnames";
|
|
16
14
|
import "../../../chunks/styles.module.Q_QQjQdX.js";
|
|
17
|
-
|
|
18
|
-
"kit-error": "_kit-error_1ivt5_2"
|
|
19
|
-
}, u = ({ title: i, description: r }, e) => {
|
|
20
|
-
var o;
|
|
21
|
-
const m = typeof r == "string" || typeof r == "number" ? t(s.Paragraph, { children: r }) : r, c = t(s.Paragraph, { children: (o = e.Error) === null || o === void 0 ? void 0 : o.error404 });
|
|
22
|
-
return l(v, { direction: "vertical", size: "l", children: [t(s.Title, { className: "error-title", level: "h1", children: i }), m, c] });
|
|
23
|
-
}, g = ({ className: i, title: r, description: e, ...o }) => {
|
|
24
|
-
const { appId: m } = n(), { locale: c } = h(), a = d(m, Z["kit-error"], i);
|
|
25
|
-
return t(p, { ...o, description: u({ title: r, description: e }, c), image: f, className: a });
|
|
26
|
-
};
|
|
27
|
-
g.displayName = "KitError";
|
|
15
|
+
import { b as g } from "../../../chunks/index.k39RLiRt.js";
|
|
28
16
|
export {
|
|
29
17
|
g as KitError
|
|
30
18
|
};
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
import "../../../assets/index2.css";
|
|
2
|
-
import { jsxs as
|
|
3
|
-
import
|
|
4
|
-
import { u as
|
|
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
5
|
import "../../General/Button/index.js";
|
|
6
|
-
import { KitTypography as
|
|
6
|
+
import { KitTypography as m } from "../../General/Typography/index.js";
|
|
7
7
|
import "../../General/Icon/index.js";
|
|
8
|
-
import { K as
|
|
9
|
-
const
|
|
8
|
+
import { K as y } from "../../../chunks/Avatar.N2w2jq_C.js";
|
|
9
|
+
const g = {
|
|
10
10
|
"kit-id-card": "_kit-id-card_mmcks_2"
|
|
11
|
-
}, D = (
|
|
12
|
-
const
|
|
13
|
-
return
|
|
14
|
-
}, K = (
|
|
15
|
-
const
|
|
16
|
-
return
|
|
17
|
-
}, T = ({ className:
|
|
18
|
-
const { appId: u } =
|
|
19
|
-
return
|
|
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
20
|
};
|
|
21
21
|
T.displayName = "KitIdCard";
|
|
22
22
|
export {
|
|
@@ -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.qBmLATvd.js";
|
|
7
|
+
import "../../../chunks/useKitTheme.KSAU-Pdv.js";
|
|
22
8
|
export {
|
|
23
|
-
|
|
9
|
+
K as KitImage
|
|
24
10
|
};
|
|
@@ -9,7 +9,7 @@ import "../../DataEntry/Input/index.js";
|
|
|
9
9
|
import "../../DataEntry/InputNumber/index.js";
|
|
10
10
|
import "../../DataEntry/Radio/index.js";
|
|
11
11
|
import "../../DataEntry/Rate/index.js";
|
|
12
|
-
import { K as y } from "../../../chunks/index.
|
|
12
|
+
import { K as y } from "../../../chunks/index.k39RLiRt.js";
|
|
13
13
|
import "../../DataEntry/Switch/index.js";
|
|
14
14
|
import "../../DataEntry/DatePicker/index.js";
|
|
15
15
|
import "../../DataEntry/AutoComplete/index.js";
|
|
@@ -5,7 +5,7 @@ import "../../DataEntry/Input/index.js";
|
|
|
5
5
|
import "../../DataEntry/InputNumber/index.js";
|
|
6
6
|
import "../../DataEntry/Radio/index.js";
|
|
7
7
|
import "../../DataEntry/Rate/index.js";
|
|
8
|
-
import {
|
|
8
|
+
import { c as H } from "../../../chunks/index.k39RLiRt.js";
|
|
9
9
|
import "../../DataEntry/Switch/index.js";
|
|
10
10
|
import "../../DataEntry/DatePicker/index.js";
|
|
11
11
|
import "../../DataEntry/AutoComplete/index.js";
|
|
@@ -15,9 +15,8 @@ import "../../DataEntry/ColorPicker/index.js";
|
|
|
15
15
|
import "../Avatar/index.js";
|
|
16
16
|
import "../Badge/index.js";
|
|
17
17
|
import "../Empty/index.js";
|
|
18
|
-
import "../Error/index.js";
|
|
19
18
|
import "../IdCard/index.js";
|
|
20
|
-
import "
|
|
19
|
+
import "../../../chunks/index.qBmLATvd.js";
|
|
21
20
|
import "../Table/index.js";
|
|
22
21
|
import "../Tabs/index.js";
|
|
23
22
|
import "../Tree/index.js";
|
|
@@ -25,7 +24,6 @@ import "../Tooltip/index.js";
|
|
|
25
24
|
import "antd";
|
|
26
25
|
import "../../../chunks/useKitTheme.KSAU-Pdv.js";
|
|
27
26
|
import "classnames";
|
|
28
|
-
import "../RedirectCard/index.js";
|
|
29
27
|
import "../../General/Button/index.js";
|
|
30
28
|
import "../../General/Typography/index.js";
|
|
31
29
|
import "../../General/Icon/index.js";
|
|
@@ -36,5 +34,5 @@ import "../../../chunks/styles.module.taPo3VoP.js";
|
|
|
36
34
|
import "@fortawesome/react-fontawesome";
|
|
37
35
|
import "@fortawesome/free-solid-svg-icons";
|
|
38
36
|
export {
|
|
39
|
-
|
|
37
|
+
H as KitItemList
|
|
40
38
|
};
|
|
@@ -1,30 +1,19 @@
|
|
|
1
|
-
import "
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
1
|
+
import "react/jsx-runtime";
|
|
2
|
+
import "classnames";
|
|
3
|
+
import { d as g } from "../../../chunks/index.k39RLiRt.js";
|
|
4
|
+
import "react";
|
|
5
|
+
import "../../../chunks/useKitTheme.KSAU-Pdv.js";
|
|
6
|
+
import "@fortawesome/react-fontawesome";
|
|
7
|
+
import "@fortawesome/free-solid-svg-icons";
|
|
8
8
|
import "../../General/Button/index.js";
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import "../../Layout/Grid/index.js";
|
|
9
|
+
import "../../General/Typography/index.js";
|
|
10
|
+
import "../../General/Icon/index.js";
|
|
11
|
+
import "../../Layout/Divider/index.js";
|
|
13
12
|
import "../../Layout/Space/index.js";
|
|
14
13
|
import "color-convert";
|
|
15
14
|
import "color-string";
|
|
16
15
|
import "lodash/isEmpty";
|
|
17
16
|
import "../../../chunks/styles.module.Q_QQjQdX.js";
|
|
18
|
-
const R = {
|
|
19
|
-
"kit-redirect-card": "_kit-redirect-card_19ref_2"
|
|
20
|
-
}, D = K(({ className: a, style: d, title: n, description: e, icon: c, imageAlt: p = "", imageSrc: i, disabled: t, onClick: l }, f) => {
|
|
21
|
-
const { appId: h } = g(), k = I(R["kit-redirect-card"], a, h, {
|
|
22
|
-
"kit-redirect-card-disabled": t,
|
|
23
|
-
"kit-redirect-card-image": i
|
|
24
|
-
}), u = c && !i, x = i;
|
|
25
|
-
return o("div", { className: k, tabIndex: t ? -1 : 0, style: d, onClick: l, ref: f, children: [u && r(m, { className: "kit-redirect-card-icon", icon: c }), x && o(y, { children: [r("img", { alt: p, src: i }), r(w, { noMargin: !0 })] }), o("div", { className: "kit-redirect-card-content", children: [o("section", { children: [r(s.Title, { ellipsis: { tooltip: !0 }, level: "h3", disabled: t, children: n }), e && r(s.Paragraph, { ellipsis: { rows: 2, tooltip: e }, disabled: t, children: e })] }), r(m, { className: "kit-redirect-card-redirect-icon", icon: r(N, { icon: v }) })] })] });
|
|
26
|
-
});
|
|
27
|
-
D.displayName = "KitRedirectCard";
|
|
28
17
|
export {
|
|
29
|
-
|
|
18
|
+
g as KitRedirectCard
|
|
30
19
|
};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import {CSSProperties, ReactNode} from 'react';
|
|
2
|
+
import {IKitActionButton} from '../types';
|
|
2
3
|
|
|
3
4
|
export interface IKitRedirectCard {
|
|
4
5
|
title: string;
|
|
@@ -6,8 +7,17 @@ export interface IKitRedirectCard {
|
|
|
6
7
|
style?: CSSProperties;
|
|
7
8
|
description?: string;
|
|
8
9
|
icon?: ReactNode;
|
|
9
|
-
|
|
10
|
-
|
|
10
|
+
coverAlt?: string;
|
|
11
|
+
coverSrc?: string;
|
|
11
12
|
disabled?: boolean;
|
|
12
13
|
onClick?: (e: MouseEvent<HTMLElement>) => void;
|
|
14
|
+
actions?:
|
|
15
|
+
| [IKitActionButton]
|
|
16
|
+
| [IKitActionButton, IKitActionButton]
|
|
17
|
+
| [IKitActionButton, IKitActionButton, IKitActionButton];
|
|
13
18
|
}
|
|
19
|
+
|
|
20
|
+
export type IKitRedirectCardActions = {
|
|
21
|
+
disabled: IKitRedirectCard['disabled'];
|
|
22
|
+
actions: IKitRedirectCard['actions'];
|
|
23
|
+
};
|
|
@@ -1,30 +1,28 @@
|
|
|
1
1
|
import { KitAvatar as o } from "./Avatar/index.js";
|
|
2
|
-
import { KitBadge as
|
|
3
|
-
import { a as K,
|
|
4
|
-
import { KitEmpty as
|
|
5
|
-
import { KitError as T } from "./Error/index.js";
|
|
2
|
+
import { KitBadge as a } from "./Badge/index.js";
|
|
3
|
+
import { a as K, b as m, K as p, c as f, d as x, e as s } from "../../chunks/index.k39RLiRt.js";
|
|
4
|
+
import { KitEmpty as T } from "./Empty/index.js";
|
|
6
5
|
import { KitIdCard as C } from "./IdCard/index.js";
|
|
7
|
-
import {
|
|
6
|
+
import { K as b } from "../../chunks/index.qBmLATvd.js";
|
|
8
7
|
import { KitTable as c } from "./Table/index.js";
|
|
9
8
|
import { KitTabs as u } from "./Tabs/index.js";
|
|
10
9
|
import { KitTree as y } from "./Tree/index.js";
|
|
11
10
|
import { KitTooltip as B } from "./Tooltip/index.js";
|
|
12
11
|
import { KitTour as R } from "./Tour/index.js";
|
|
13
|
-
import { KitRedirectCard as j } from "./RedirectCard/index.js";
|
|
14
12
|
export {
|
|
15
13
|
o as KitAvatar,
|
|
16
|
-
|
|
14
|
+
a as KitBadge,
|
|
17
15
|
K as KitCollapse,
|
|
18
|
-
|
|
19
|
-
|
|
16
|
+
T as KitEmpty,
|
|
17
|
+
m as KitError,
|
|
20
18
|
C as KitIdCard,
|
|
21
19
|
b as KitImage,
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
20
|
+
p as KitItemCard,
|
|
21
|
+
f as KitItemList,
|
|
22
|
+
x as KitRedirectCard,
|
|
25
23
|
c as KitTable,
|
|
26
24
|
u as KitTabs,
|
|
27
|
-
|
|
25
|
+
s as KitTag,
|
|
28
26
|
B as KitTooltip,
|
|
29
27
|
R as KitTour,
|
|
30
28
|
y as KitTree
|