aristid-ds 2.0.0 → 3.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +22 -2
- package/dist/Kit/App/index.js +62 -71
- package/dist/Kit/DataDisplay/Avatar/Avatar.d.ts +2 -2
- package/dist/Kit/DataDisplay/Avatar/index.js +22 -21
- package/dist/Kit/DataDisplay/Avatar/types.d.ts +2 -0
- package/dist/Kit/DataDisplay/Badge/index.js +11 -10
- package/dist/Kit/DataDisplay/Card/index.js +2 -2
- package/dist/Kit/DataDisplay/Collapse/index.js +1 -1
- package/dist/Kit/DataDisplay/Empty/Empty.d.ts +4 -0
- package/dist/Kit/DataDisplay/Empty/index.d.ts +2 -0
- package/dist/Kit/DataDisplay/Empty/index.js +27 -0
- package/dist/Kit/DataDisplay/Empty/types.d.ts +19 -0
- package/dist/Kit/DataDisplay/IdCard/index.d.ts +3 -0
- package/dist/Kit/DataDisplay/IdCard/index.js +23 -0
- package/dist/Kit/DataDisplay/IdCard/types.d.ts +9 -0
- package/dist/Kit/DataDisplay/Image/index.js +8 -27
- package/dist/Kit/DataDisplay/ItemCard/ColorBar.d.ts +1 -2
- package/dist/Kit/DataDisplay/ItemCard/index.js +4 -3
- package/dist/Kit/DataDisplay/ItemList/index.js +4 -3
- package/dist/Kit/DataDisplay/LegacyCard/index.js +42 -54
- package/dist/Kit/DataDisplay/Tabs/index.js +6 -6
- package/dist/Kit/DataDisplay/Tag/index.js +1 -1
- package/dist/Kit/DataDisplay/Tooltip/index.js +5 -5
- package/dist/Kit/DataDisplay/Tour/index.js +6 -6
- package/dist/Kit/DataDisplay/Tree/index.js +8 -8
- package/dist/Kit/DataDisplay/index.d.ts +7 -5
- package/dist/Kit/DataDisplay/index.js +22 -18
- package/dist/Kit/DataEntry/AutoComplete/index.js +19 -26
- package/dist/Kit/DataEntry/Checkbox/index.js +32 -39
- package/dist/Kit/DataEntry/ColorPicker/index.js +6 -10
- package/dist/Kit/DataEntry/DatePicker/index.js +16 -31
- package/dist/Kit/DataEntry/Input/index.js +21 -32
- package/dist/Kit/DataEntry/InputNumber/index.js +11 -14
- package/dist/Kit/DataEntry/InputWrapper/index.js +1 -1
- package/dist/Kit/DataEntry/Radio/index.js +44 -51
- package/dist/Kit/DataEntry/Rate/index.js +15 -14
- package/dist/Kit/DataEntry/Select/index.js +4 -3
- package/dist/Kit/DataEntry/Slider/index.js +11 -16
- package/dist/Kit/DataEntry/Switch/index.js +10 -9
- package/dist/Kit/DataEntry/Upload/index.js +22 -51
- package/dist/Kit/DataEntry/index.js +2 -2
- package/dist/Kit/Feedback/Alert/index.js +18 -18
- package/dist/Kit/Feedback/Modal/ConfirmDialog.d.ts +1 -2
- package/dist/Kit/Feedback/Modal/index.js +100 -149
- package/dist/Kit/Feedback/Notification/index.js +1 -1
- package/dist/Kit/Feedback/Notification/notification-provider.d.ts +1 -1
- package/dist/Kit/Feedback/Progress/index.js +3 -3
- package/dist/Kit/Feedback/SnackBar/SnackBarProvider.d.ts +1 -2
- package/dist/Kit/Feedback/SnackBar/index.d.ts +1 -2
- package/dist/Kit/Feedback/SnackBar/index.js +22 -48
- package/dist/Kit/Feedback/index.js +1 -1
- package/dist/Kit/General/Button/index.js +28 -33
- package/dist/Kit/General/Button/types.d.ts +4 -0
- package/dist/Kit/General/Icon/index.js +17 -16
- package/dist/Kit/General/Typography/index.js +27 -26
- package/dist/Kit/Layout/Divider/index.js +7 -7
- package/dist/Kit/Layout/Grid/index.js +7 -7
- package/dist/Kit/Layout/Section/index.js +7 -7
- package/dist/Kit/Layout/Space/index.js +10 -9
- package/dist/Kit/Navigation/Breadcrumb/index.js +16 -20
- package/dist/Kit/Navigation/DropDown/index.js +9 -9
- package/dist/Kit/Navigation/Header/Header.d.ts +4 -0
- package/dist/Kit/Navigation/Header/Profile.d.ts +4 -0
- package/dist/Kit/Navigation/Header/index.d.ts +6 -2
- package/dist/Kit/Navigation/Header/index.js +2 -27
- package/dist/Kit/Navigation/Header/types.d.ts +14 -7
- package/dist/Kit/Navigation/Menu/index.js +1 -1
- package/dist/Kit/Navigation/PageHeader/index.d.ts +3 -0
- package/dist/Kit/Navigation/PageHeader/index.js +31 -0
- package/dist/Kit/Navigation/PageHeader/types.d.ts +11 -0
- package/dist/Kit/Navigation/Pagination/index.js +6 -6
- package/dist/Kit/Navigation/Steps/index.js +5 -5
- package/dist/Kit/Navigation/index.d.ts +1 -0
- package/dist/Kit/Navigation/index.js +12 -11
- package/dist/Kit/index.d.ts +1 -1
- package/dist/Kit/index.js +154 -150
- package/dist/assets/empty/empty-folder.d.ts +1 -0
- package/dist/assets/empty/empty-list.d.ts +1 -0
- package/dist/assets/empty/empty-modal.d.ts +1 -0
- package/dist/assets/empty/empty-page.d.ts +1 -0
- package/dist/assets/empty/empty-result.d.ts +1 -0
- package/dist/assets/index19.css +1 -1
- package/dist/assets/index2.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 -0
- package/dist/assets/index31.css +1 -0
- package/dist/assets/index4.css +1 -1
- package/dist/assets/index5.css +1 -1
- package/dist/chunks/InputWrapper.NQtlTzQk.js +26 -0
- package/dist/chunks/KitNotification.ZqndZ_Jo.js +60 -0
- package/dist/chunks/SnackBarProvider.xMKXdZ88.js +22 -0
- package/dist/chunks/index.5Ttd0fY8.js +496 -0
- package/dist/chunks/index.91q8JHRn.js +31 -0
- package/dist/chunks/notification-provider.9tbQyfg7.js +74 -0
- package/dist/index.es.js +155 -151
- package/dist/index.umd.js +10 -0
- package/dist/theme/aristid/general/colors/index.js +2 -0
- package/dist/theme/types/general/colors/index.d.ts +5 -0
- package/dist/translation/en-US/components/DataDisplay/Empty/index.d.ts +2 -0
- package/dist/translation/en-US/components/DataDisplay/Empty/index.js +6 -0
- package/dist/translation/en-US/index.js +10 -8
- package/dist/translation/fr-FR/components/DataDisplay/Empty/index.d.ts +2 -0
- package/dist/translation/fr-FR/components/DataDisplay/Empty/index.js +6 -0
- package/dist/translation/fr-FR/index.js +8 -6
- package/dist/translation/locale-context.d.ts +2 -2
- package/dist/translation/types/components/DataDisplay/Empty/index.d.ts +3 -0
- package/dist/translation/types/index.d.ts +3 -1
- package/dist/utils/functions/index.d.ts +2 -0
- package/dist/utils/functions/index.js +56 -40
- package/package.json +6 -4
- package/dist/chunks/InputWrapper.69dUKMaK.js +0 -47
- package/dist/chunks/KitNotification.o3gKIpvN.js +0 -75
- package/dist/chunks/SnackBarProvider.i0xeV0xG.js +0 -21
- package/dist/chunks/index.F6xtnegv.js +0 -757
- package/dist/chunks/notification-provider.KGowspef.js +0 -78
- package/dist/chunks/useKitLocale.96CdK3og.js +0 -11
package/CHANGELOG.md
CHANGED
|
@@ -1,13 +1,33 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [3.0.0](https://www.npmjs.com/package/aristid-ds/v/3.0.0) (2024-03-15)
|
|
4
|
+
### ✨ Features
|
|
5
|
+
* **Empty:**
|
|
6
|
+
* Add a new component `KitEmpty` (@philippechevieux)
|
|
7
|
+
* **IdCard:**
|
|
8
|
+
* Add a new component `KitIdCard` (@philippechevieux)
|
|
9
|
+
* **Avatar:**
|
|
10
|
+
* Add `label` property to retrieve avatar initials from (@philippechevieux)
|
|
11
|
+
* Add `initialsMaxChars` property to set the number of initials (@philippechevieux)
|
|
12
|
+
* **⚠️ Breaking change - Header:**
|
|
13
|
+
* Existing `Header` is renamed to `PageHeader` (@TdyP)
|
|
14
|
+
* `Header` component is now a totally new component (@TdyP, @evoiron)
|
|
15
|
+
|
|
16
|
+
### 🐛 Bug Fixes
|
|
17
|
+
* **Button:**
|
|
18
|
+
* Add missing property `form` to `KitButton` (@evoiron)
|
|
19
|
+
* Add missing property `htmlType` to `KitButton` (@philippechevieux)
|
|
20
|
+
* **Build:**
|
|
21
|
+
* Build as EsModule and commonjs module (@evoiron)
|
|
22
|
+
|
|
3
23
|
## [2.0.0](https://www.npmjs.com/package/aristid-ds/v/2.0.0) (2024-03-06)
|
|
4
24
|
### ✨ Features
|
|
5
25
|
* **⚠️ Breaking change - Modal:** (@evoiron)
|
|
6
26
|
* update Modal Design
|
|
7
|
-
* update confirmModal Options:
|
|
27
|
+
* update confirmModal Options:
|
|
8
28
|
* remove `secondLine` property
|
|
9
29
|
* rename `firstLine` to `content`
|
|
10
|
-
* add `dangerConfirm` property to show Cta Button as danger look n' feel,
|
|
30
|
+
* add `dangerConfirm` property to show Cta Button as danger look n' feel,
|
|
11
31
|
* add `showCloseIcon` to display top tight button for closing
|
|
12
32
|
* **Section:** (@Delmotte-Vincent)
|
|
13
33
|
* Add new component Section
|
package/dist/Kit/App/index.js
CHANGED
|
@@ -1,80 +1,71 @@
|
|
|
1
|
-
import "../../assets/
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
1
|
+
import "../../assets/index20.css";
|
|
2
|
+
import { jsx as n, jsxs as d, Fragment as K } from "react/jsx-runtime";
|
|
3
|
+
import { useState as f, useLayoutEffect as h, useRef as L, useEffect as S } from "react";
|
|
4
|
+
import { ConfigProvider as P } from "antd";
|
|
5
|
+
import { K as C } from "../../chunks/SnackBarProvider.xMKXdZ88.js";
|
|
6
|
+
import { createGlobalStyle as b } from "styled-components";
|
|
7
|
+
import { toCssVariables as u, uuid as y } from "../../utils/functions/index.js";
|
|
8
|
+
import a from "lodash/merge";
|
|
9
|
+
import { Style as E } from "react-style-tag";
|
|
10
|
+
import { K as T } from "../../chunks/useKitTheme.KSAU-Pdv.js";
|
|
11
|
+
import { KitAristidThemeGeneral as m } from "../../theme/aristid/general/index.js";
|
|
12
|
+
import { antdThemeConfig as k } from "../../theme/utils/tokens-mapper/index.js";
|
|
13
|
+
import { frFR as c } from "../../translation/fr-FR/index.js";
|
|
14
|
+
import { enUS as x } from "../../translation/en-US/index.js";
|
|
15
|
+
import { a as A, u as F } from "../../chunks/index.91q8JHRn.js";
|
|
16
|
+
import { mapKitLocaleToAntdLocale as I } from "../../translation/utils/index.js";
|
|
17
|
+
import { d as $ } from "../../chunks/notification-provider.9tbQyfg7.js";
|
|
18
|
+
import "../DataDisplay/Avatar/index.js";
|
|
19
|
+
import "../DataDisplay/Badge/index.js";
|
|
20
|
+
import "../../chunks/index.5Ttd0fY8.js";
|
|
21
|
+
import { KitEmpty as p } from "../DataDisplay/Empty/index.js";
|
|
22
|
+
import "../DataDisplay/IdCard/index.js";
|
|
23
|
+
import "../DataDisplay/LegacyCard/index.js";
|
|
24
|
+
import "../DataDisplay/Tabs/index.js";
|
|
25
|
+
import "../DataDisplay/Tree/index.js";
|
|
26
|
+
import "../DataDisplay/Tooltip/index.js";
|
|
27
|
+
import "classnames";
|
|
28
|
+
const j = b`
|
|
29
|
+
.${(o) => o.id} {
|
|
30
|
+
${(o) => u(o.customTheme)};
|
|
20
31
|
}
|
|
21
|
-
`,
|
|
22
|
-
const [
|
|
23
|
-
return
|
|
24
|
-
const
|
|
25
|
-
|
|
26
|
-
}, []),
|
|
27
|
-
r.Fragment,
|
|
28
|
-
null,
|
|
29
|
-
r.createElement(C, { id: A, hasSourceMap: !1 }, `
|
|
32
|
+
`, R = "aristid-ds-global", _ = ({ children: o, customTheme: r, id: i }) => {
|
|
33
|
+
const [t, e] = f(null), { theme: v, appId: l, spacing: g } = G(i, r);
|
|
34
|
+
return h(() => {
|
|
35
|
+
const s = u(m, "--general");
|
|
36
|
+
e(s);
|
|
37
|
+
}, []), n(T.Provider, { value: { theme: v, appId: l, spacing: g }, children: t !== null && d(K, { children: [n(E, { id: R, hasSourceMap: !1, children: `
|
|
30
38
|
:root{
|
|
31
|
-
${Object.keys(
|
|
39
|
+
${Object.keys(t).map((s) => `${s}: ${t[s]}`).join(";")}
|
|
32
40
|
}
|
|
33
|
-
`),
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
));
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
const
|
|
40
|
-
return {
|
|
41
|
-
},
|
|
42
|
-
const
|
|
43
|
-
return
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
if (i.locale === "frFR") {
|
|
48
|
-
const n = s(m, i);
|
|
49
|
-
e(n);
|
|
41
|
+
` }), r && n(j, { id: l, customTheme: r }), o] }) });
|
|
42
|
+
}, G = (o, r) => {
|
|
43
|
+
var i;
|
|
44
|
+
const t = L(o || "ds-" + y().substring(0, 8)), e = a(m.spacing, (i = r == null ? void 0 : r.general) === null || i === void 0 ? void 0 : i.spacing);
|
|
45
|
+
return { theme: m, appId: t.current, spacing: e };
|
|
46
|
+
}, N = ({ children: o }) => {
|
|
47
|
+
const r = U();
|
|
48
|
+
return n(A.Provider, { value: r, children: o });
|
|
49
|
+
}, U = () => {
|
|
50
|
+
const [o, r] = f(c);
|
|
51
|
+
return { locale: o, setKitLocale: (t) => {
|
|
52
|
+
if (t.locale === "frFR") {
|
|
53
|
+
const e = a(c, t);
|
|
54
|
+
r(e);
|
|
50
55
|
} else {
|
|
51
|
-
const
|
|
52
|
-
e
|
|
56
|
+
const e = a(x, t);
|
|
57
|
+
r(e);
|
|
53
58
|
}
|
|
54
59
|
} };
|
|
55
|
-
},
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
)
|
|
63
|
-
), U = ({ children: t, locale: e }) => {
|
|
64
|
-
const { setKitLocale: o } = T();
|
|
65
|
-
return v(() => {
|
|
66
|
-
e !== void 0 && o(e);
|
|
67
|
-
}, [e, o]), r.createElement(
|
|
68
|
-
E,
|
|
69
|
-
{ theme: h, locale: $(e) },
|
|
70
|
-
r.createElement(
|
|
71
|
-
k,
|
|
72
|
-
null,
|
|
73
|
-
r.createElement(L, null),
|
|
74
|
-
t
|
|
75
|
-
)
|
|
76
|
-
);
|
|
60
|
+
}, fr = ({ children: o, locale: r, customTheme: i, id: t }) => n(_, { customTheme: i, id: t, children: n(N, { children: n(V, { locale: r, children: o }) }) }), V = ({ children: o, locale: r }) => {
|
|
61
|
+
const { locale: i, setKitLocale: t } = F();
|
|
62
|
+
return S(() => {
|
|
63
|
+
r !== void 0 && t(r);
|
|
64
|
+
}, [r, t]), n(P, { theme: k, locale: I(r), renderEmpty: () => {
|
|
65
|
+
var e;
|
|
66
|
+
return n(p, { className: "default-render", image: p.ASSET_LIST, description: (e = i.Empty) === null || e === void 0 ? void 0 : e.noData });
|
|
67
|
+
}, children: d($, { children: [n(C, {}), o] }) });
|
|
77
68
|
};
|
|
78
69
|
export {
|
|
79
|
-
|
|
70
|
+
fr as KitApp
|
|
80
71
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { FunctionComponent } from 'react';
|
|
1
|
+
import { FunctionComponent, PropsWithChildren } from 'react';
|
|
2
2
|
import { IKitAvatar } from './types';
|
|
3
|
-
declare const KitAvatar: FunctionComponent<IKitAvatar
|
|
3
|
+
declare const KitAvatar: FunctionComponent<PropsWithChildren<IKitAvatar>>;
|
|
4
4
|
export default KitAvatar;
|
|
@@ -1,31 +1,32 @@
|
|
|
1
|
-
import "../../../assets/
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import
|
|
8
|
-
|
|
1
|
+
import "../../../assets/index21.css";
|
|
2
|
+
import { jsx as m } from "react/jsx-runtime";
|
|
3
|
+
import { useMemo as y } from "react";
|
|
4
|
+
import { Avatar as p } from "antd";
|
|
5
|
+
import { u as n } from "../../../chunks/useKitTheme.KSAU-Pdv.js";
|
|
6
|
+
import { getInitials as C, isValidColor as K, getColor as _, isSecondaryColor as x, getLighterColor as h, getContrastColor as N } from "../../../utils/functions/index.js";
|
|
7
|
+
import { kitAvatarCssTokens as e } from "../../../theme/aristid/components/DataDisplay/Avatar/index.js";
|
|
8
|
+
import l from "classnames";
|
|
9
|
+
const u = {
|
|
9
10
|
"kit-avatar": "_kit-avatar_w3aj4_2",
|
|
10
11
|
"kit-avatar-group": "_kit-avatar-group_w3aj4_7"
|
|
11
|
-
},
|
|
12
|
-
[
|
|
13
|
-
[
|
|
14
|
-
}, c = ({
|
|
15
|
-
const { appId:
|
|
16
|
-
return
|
|
12
|
+
}, j = (t, a) => !t || !K(t) ? null : {
|
|
13
|
+
[e.colors.background.default]: _(t, a),
|
|
14
|
+
[e.colors.typography.default]: x(t) ? h(t, a) : N(t)
|
|
15
|
+
}, c = ({ label: t, initialsMaxChars: a, color: r, className: i, style: o, secondaryColorInvert: s = !1, children: g, ...f }) => {
|
|
16
|
+
const { appId: d } = n(), k = y(() => ({ ...o, ...j(r, s) }), [r, s, o]), A = l(d, u["kit-avatar"], i);
|
|
17
|
+
return m(p, { style: k, className: A, ...f, children: t !== void 0 ? C(t, a) : g });
|
|
17
18
|
};
|
|
18
19
|
c.displayName = "KitAvatar";
|
|
19
|
-
const
|
|
20
|
-
const { appId:
|
|
20
|
+
const G = ({ className: t, maxCount: a, ...r }) => {
|
|
21
|
+
const { appId: i } = n(), o = l(i, u["kit-avatar-group"], t, {
|
|
21
22
|
"override-last": a
|
|
22
23
|
});
|
|
23
|
-
return
|
|
24
|
+
return m(p.Group, { ...r, maxCount: a, className: o, maxStyle: {
|
|
24
25
|
cursor: r.maxPopoverTrigger === "click" ? "pointer" : "initial"
|
|
25
26
|
} });
|
|
26
|
-
},
|
|
27
|
-
|
|
28
|
-
|
|
27
|
+
}, S = G, v = c;
|
|
28
|
+
v.displayName = "KitAvatar";
|
|
29
|
+
v.Group = S;
|
|
29
30
|
export {
|
|
30
|
-
|
|
31
|
+
v as KitAvatar
|
|
31
32
|
};
|
|
@@ -8,6 +8,8 @@ type AntdAvatarTypesToOmit = '';
|
|
|
8
8
|
type AntdAvatarGroupTypesToOmit = 'maxStyle';
|
|
9
9
|
|
|
10
10
|
export interface IKitAvatar extends Omit<AvatarProps, AntdAvatarTypesToOmit>, KitHTMLAttributes<HTMLSpanElement> {
|
|
11
|
+
label?: string;
|
|
12
|
+
initialsMaxChars?: number;
|
|
11
13
|
color?: KitColorProp;
|
|
12
14
|
secondaryColorInvert?: boolean;
|
|
13
15
|
}
|
|
@@ -1,18 +1,19 @@
|
|
|
1
1
|
import "../../../assets/index.css";
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
2
|
+
import { jsx as g } from "react/jsx-runtime";
|
|
3
|
+
import { useMemo as u } from "react";
|
|
4
|
+
import { Badge as d } from "antd";
|
|
5
|
+
import { u as f } from "../../../chunks/useKitTheme.KSAU-Pdv.js";
|
|
6
|
+
import { isValidColor as l, getColor as n, getLighterColor as c } from "../../../utils/functions/index.js";
|
|
6
7
|
import { kitBadgeCssTokens as s } from "../../../theme/aristid/components/DataDisplay/Badge/index.js";
|
|
7
8
|
import k from "classnames";
|
|
8
9
|
const b = {
|
|
9
10
|
"kit-badge": "_kit-badge_16zpm_2"
|
|
10
|
-
}, B = (t,
|
|
11
|
-
[s.colors.background.default]: n(t,
|
|
12
|
-
[s.colors.typography.default]: c(t,
|
|
13
|
-
}, C = ({ color: t, style:
|
|
14
|
-
const { appId:
|
|
15
|
-
return g
|
|
11
|
+
}, B = (t, o) => !t || !l(t) ? null : {
|
|
12
|
+
[s.colors.background.default]: n(t, o),
|
|
13
|
+
[s.colors.typography.default]: c(t, o)
|
|
14
|
+
}, C = ({ color: t, style: o, secondaryColorInvert: e = !1, className: m, ...r }) => {
|
|
15
|
+
const { appId: i } = f(), a = u(() => ({ ...o, ...B(t, e) }), [t, e, o]), p = k(i, b["kit-badge"], m);
|
|
16
|
+
return g(d, { style: a, ...r, className: p });
|
|
16
17
|
};
|
|
17
18
|
C.displayName = "KitBadge";
|
|
18
19
|
export {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import "react";
|
|
1
|
+
import "react/jsx-runtime";
|
|
2
2
|
import "classnames";
|
|
3
3
|
import "../../General/Button/index.js";
|
|
4
4
|
import "../../General/Typography/index.js";
|
|
@@ -8,7 +8,7 @@ import "../../DataEntry/Input/index.js";
|
|
|
8
8
|
import "../../DataEntry/InputNumber/index.js";
|
|
9
9
|
import "../../DataEntry/Radio/index.js";
|
|
10
10
|
import "../../DataEntry/Rate/index.js";
|
|
11
|
-
import { K as y } from "../../../chunks/index.
|
|
11
|
+
import { K as y } from "../../../chunks/index.5Ttd0fY8.js";
|
|
12
12
|
import "../../DataEntry/Switch/index.js";
|
|
13
13
|
import "../../DataEntry/DatePicker/index.js";
|
|
14
14
|
import "../../DataEntry/AutoComplete/index.js";
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import "../../../assets/index30.css";
|
|
2
|
+
import { jsxs as e, jsx as a } from "react/jsx-runtime";
|
|
3
|
+
import { Empty as m } from "antd";
|
|
4
|
+
import { u } from "../../../chunks/useKitTheme.KSAU-Pdv.js";
|
|
5
|
+
import g from "classnames";
|
|
6
|
+
import { KitTypography as o } from "../../General/Typography/index.js";
|
|
7
|
+
import { KitSpace as w } from "../../Layout/Space/index.js";
|
|
8
|
+
const x = e("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "41 42 124 106", children: [a("path", { className: "fill-100", d: "M150.941 132.426V66.624a4 4 0 0 0-4-4H99.969a4 4 0 0 1-4-4V57.1a4 4 0 0 0-4-4H44.997a4 4 0 0 0-4 4v75.325a4 4 0 0 0 4 4h101.944a4 4 0 0 0 4-4Z" }), e("g", { filter: "url(#filter-folder)", children: [a("path", { className: "fill-white", d: "M71.978 144V91.68a4 4 0 0 1 4-4h35.507a3.892 3.892 0 0 0 3.892-3.891 3.891 3.891 0 0 1 3.891-3.892h35.507a4 4 0 0 1 4 4V144a4 4 0 0 1-4 4H75.978a4 4 0 0 1-4-4Z" }), a("path", { className: "stroke-400", d: "M72.478 91.68V144a3.5 3.5 0 0 0 3.5 3.5h78.797a3.5 3.5 0 0 0 3.5-3.5V83.897a3.5 3.5 0 0 0-3.5-3.5h-35.507a3.391 3.391 0 0 0-3.391 3.392 4.392 4.392 0 0 1-4.392 4.392H75.978a3.5 3.5 0 0 0-3.5 3.5Z" })] }), a("path", { className: "fill-200", d: "M55 108a4 4 0 0 1 4-4h34a4 4 0 0 1 0 8H59a4 4 0 0 1-4-4ZM55 121a4 4 0 0 1 4-4h66a4 4 0 0 1 0 8H59a4 4 0 0 1-4-4Z" }), a("path", { className: "fill-400", d: "M165 82a8 8 0 1 0-16 0 8 8 0 0 0 16 0ZM71.996 54.571a2.67 2.67 0 0 0-3.777 0l-11.33 11.33a2.67 2.67 0 0 0 3.776 3.778l11.33-11.331a2.67 2.67 0 0 0 0-3.777Z" }), a("path", { className: "fill-white stroke-400", "stroke-width": "2", d: "M74.113 43c-5.347 0-9.683 4.335-9.683 9.683 0 5.347 4.335 9.683 9.683 9.683s9.683-4.336 9.683-9.683c0-5.348-4.335-9.683-9.683-9.683Z" }), a("defs", { children: e("filter", { id: "filter-folder", width: "102.798", height: "84.103", x: "63.978", y: "74.897", "color-interpolation-filters": "sRGB", filterUnits: "userSpaceOnUse", children: [a("feFlood", { "flood-opacity": "0", result: "BackgroundImageFix" }), a("feColorMatrix", { in: "SourceAlpha", result: "hardAlpha", values: "0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" }), a("feOffset", { dy: "3" }), a("feGaussianBlur", { stdDeviation: "4" }), a("feComposite", { in2: "hardAlpha", operator: "out" }), a("feColorMatrix", { values: "0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.1 0" }), a("feBlend", { in2: "BackgroundImageFix", result: "effect1_dropShadow_5857_64030" }), a("feBlend", { in: "SourceGraphic", in2: "effect1_dropShadow_5857_64030", result: "shape" })] }) })] }), M = e("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "17 46 161 108", children: [a("path", { className: "fill-100", d: "M17 110a8 8 0 0 1 8-8h72a8 8 0 0 1 8 8v30a8 8 0 0 1-8 8H25a8 8 0 0 1-8-8v-30Z" }), a("path", { className: "fill-200", d: "M33 118a3 3 0 0 1 3-3h26a3 3 0 1 1 0 6H36a3 3 0 0 1-3-3ZM89 118a8 8 0 1 0-16 0 8 8 0 0 0 16 0Z" }), a("path", { className: "fill-white", d: "M33 137a3 3 0 0 1 3-3h50a3 3 0 1 1 0 6H36a3 3 0 0 1-3-3Z" }), a("path", { className: "fill-100", d: "M114 61a8 8 0 0 1 8-8h48a8 8 0 0 1 8 8v44a8 8 0 0 1-8 8h-48a8 8 0 0 1-8-8V61Z" }), a("path", { className: "fill-200", d: "M154 69a8 8 0 1 0-16 0 8 8 0 0 0 16 0ZM130 88a3 3 0 0 1 3-3h26a3 3 0 1 1 0 6h-26a3 3 0 0 1-3-3Z" }), a("path", { className: "fill-white", d: "M130 102a3 3 0 0 1 3-3h26a3 3 0 1 1 0 6h-26a3 3 0 0 1-3-3Z" }), a("path", { className: "stroke-400", "stroke-linecap": "round", "stroke-width": "2", d: "M47 140.529V149a4 4 0 0 0 4 4h8.47M140.529 153H149a4 4 0 0 0 4-4v-8.471M59.47 47H51a4 4 0 0 0-4 4v8.47M153 59.47V51a4 4 0 0 0-4-4h-8.471" }), e("g", { filter: "url(#filter-list)", children: [a("path", { className: "fill-white", d: "M47 90a8 8 0 0 1 8-8h90a8 8 0 0 1 8 8v20a8 8 0 0 1-8 8H55a8 8 0 0 1-8-8V90Z" }), a("path", { className: "stroke-400", d: "M47.5 90a7.5 7.5 0 0 1 7.5-7.5h90a7.5 7.5 0 0 1 7.5 7.5v20a7.5 7.5 0 0 1-7.5 7.5H55a7.5 7.5 0 0 1-7.5-7.5V90Z" }), a("path", { className: "fill-400", d: "M79 98a8 8 0 1 0-16 0 8 8 0 0 0 16 0Z" }), a("path", { className: "fill-200", d: "M87 93a3 3 0 0 1 3-3h26a3 3 0 1 1 0 6H90a3 3 0 0 1-3-3Z" }), a("path", { className: "fill-100", d: "M87 107a3 3 0 0 1 3-3h44a3 3 0 1 1 0 6H90a3 3 0 0 1-3-3Z" })] }), a("defs", { children: e("filter", { id: "filter-list", width: "122", height: "52", x: "39", y: "77", "color-interpolation-filters": "sRGB", filterUnits: "userSpaceOnUse", children: [a("feFlood", { "flood-opacity": "0", result: "BackgroundImageFix" }), a("feColorMatrix", { in: "SourceAlpha", result: "hardAlpha", values: "0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" }), a("feOffset", { dy: "3" }), a("feGaussianBlur", { stdDeviation: "4" }), a("feComposite", { in2: "hardAlpha", operator: "out" }), a("feColorMatrix", { values: "0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.1 0" }), a("feBlend", { in2: "BackgroundImageFix", result: "effect1_dropShadow_5857_63975" }), a("feBlend", { in: "SourceGraphic", in2: "effect1_dropShadow_5857_63975", result: "shape" })] }) })] }), N = e("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "16.4 44.4 167.2 105.6", children: [a("rect", { width: "30.8", height: "14.3", x: "16.4", y: "56.5", className: "fill-100", rx: "4.4" }), a("rect", { width: "30.8", height: "14.3", x: "49.4", y: "56.5", className: "fill-100", rx: "4.4" }), a("rect", { width: "30.8", height: "14.3", x: "82.4", y: "56.5", className: "fill-100", rx: "4.4" }), a("rect", { width: "30.8", height: "14.3", x: "86.8", y: "135.7", className: "fill-100", rx: "4.4" }), a("rect", { width: "30.8", height: "14.3", x: "119.8", y: "135.7", className: "fill-100", rx: "4.4" }), a("rect", { width: "30.8", height: "14.3", x: "152.8", y: "135.7", className: "fill-100", rx: "4.4" }), e("g", { filter: "url(#filter-modal)", children: [a("path", { className: "fill-white", d: "M42.8 74.1a8.8 8.8 0 0 1 8.8-8.8h96.8a8.8 8.8 0 0 1 8.8 8.8v58.3a8.8 8.8 0 0 1-8.8 8.8H51.6a8.8 8.8 0 0 1-8.8-8.8V74.1Z", "shape-rendering": "crispEdges" }), a("path", { className: "stroke-400", "stroke-width": "1.1", d: "M43.35 74.1a8.25 8.25 0 0 1 8.25-8.25h96.8a8.25 8.25 0 0 1 8.25 8.25v58.3a8.25 8.25 0 0 1-8.25 8.25H51.6a8.25 8.25 0 0 1-8.25-8.25V74.1Z", "shape-rendering": "crispEdges" }), a("path", { className: "fill-200", d: "M51.6 77.4a3.3 3.3 0 0 1 3.3-3.3h61.6a3.3 3.3 0 1 1 0 6.6H54.9a3.3 3.3 0 0 1-3.3-3.3Z" }), a("path", { className: "fill-100", d: "M51.6 86.2a3.3 3.3 0 0 1 3.3-3.3h28.6a3.3 3.3 0 0 1 0 6.6H54.9a3.3 3.3 0 0 1-3.3-3.3Z" }), a("rect", { width: "29.7", height: "13.2", x: "52.15", y: "92.25", className: "fill-white stroke-400", "stroke-width": "1.1", rx: "3.85" }), a("rect", { width: "29.7", height: "13.2", x: "85.15", y: "92.25", className: "fill-white stroke-400", "stroke-width": "1.1", rx: "3.85" }), e("g", { filter: "url(#filter-modal-bis)", children: [a("rect", { width: "30.8", height: "14.3", x: "117.6", y: "91.7", className: "fill-white", rx: "4.4" }), a("rect", { width: "29.7", height: "13.2", x: "118.15", y: "92.25", className: "stroke-400", "stroke-width": "1.1", rx: "3.85" })] }), a("path", { className: "stroke-400 fill-400", d: "M145.891 111.225c.275.241.343.584.24.928a.867.867 0 0 1-.79.516h-4.366l2.028 4.262c.206.413 0 .894-.412 1.1a.775.775 0 0 1-1.066-.378l-2.028-4.228-2.853 3.369a.834.834 0 0 1-.619.309.984.984 0 0 1-.309-.069c-.31-.103-.516-.412-.516-.756v-12.719c0-.343.172-.618.481-.756a.578.578 0 0 1 .344-.103c.172 0 .378.103.516.206l9.35 8.319Z" })] }), a("path", { className: "fill-white stroke-400", "stroke-width": "2.2", d: "M148.292 47.15c1.27-2.2 4.446-2.2 5.716 0l15.718 27.225c1.27 2.2-.317 4.95-2.858 4.95h-31.436c-2.541 0-4.128-2.75-2.858-4.95l15.718-27.225Z" }), a("path", { className: "fill-400", d: "M149.752 68.216v-.196c.004-.671.063-1.207.177-1.606.119-.399.29-.721.515-.967.225-.246.495-.468.812-.668.236-.153.447-.313.634-.477.187-.166.336-.348.446-.547.111-.204.166-.43.166-.68 0-.264-.063-.497-.189-.696a1.256 1.256 0 0 0-.509-.46 1.503 1.503 0 0 0-.697-.162c-.248 0-.482.056-.703.167a1.346 1.346 0 0 0-.543.484c-.141.21-.217.474-.229.788H147.3c.019-.767.202-1.4.549-1.9a3.144 3.144 0 0 1 1.377-1.122 4.683 4.683 0 0 1 1.892-.374c.759 0 1.43.127 2.013.38.583.25 1.04.612 1.372 1.088.331.476.497 1.05.497 1.721 0 .45-.074.848-.223 1.197a2.922 2.922 0 0 1-.612.921 4.744 4.744 0 0 1-.931.72c-.302.18-.549.368-.744.564a1.92 1.92 0 0 0-.428.68c-.092.257-.139.573-.143.95v.195h-2.167Zm1.132 3.684c-.381 0-.707-.134-.977-.403a1.328 1.328 0 0 1-.395-.978 1.302 1.302 0 0 1 .395-.968c.27-.268.596-.403.977-.403.362 0 .68.135.955.403a1.327 1.327 0 0 1 .217 1.664 1.492 1.492 0 0 1-.497.5 1.294 1.294 0 0 1-.675.185Z" }), e("defs", { children: [e("filter", { id: "filter-modal", width: "130.4", height: "91.9", x: "34.8", y: "60.3", "color-interpolation-filters": "sRGB", filterUnits: "userSpaceOnUse", children: [a("feFlood", { "flood-opacity": "0", result: "BackgroundImageFix" }), a("feColorMatrix", { in: "SourceAlpha", result: "hardAlpha", values: "0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" }), a("feOffset", { dy: "3" }), a("feGaussianBlur", { stdDeviation: "4" }), a("feComposite", { in2: "hardAlpha", operator: "out" }), a("feColorMatrix", { values: "0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.1 0" }), a("feBlend", { in2: "BackgroundImageFix", result: "effect1_dropShadow_5874_69211" }), a("feBlend", { in: "SourceGraphic", in2: "effect1_dropShadow_5874_69211", result: "shape" })] }), e("filter", { id: "filter-modal-bis", width: "46.8", height: "30.3", x: "109.6", y: "86.7", "color-interpolation-filters": "sRGB", filterUnits: "userSpaceOnUse", children: [a("feFlood", { "flood-opacity": "0", result: "BackgroundImageFix" }), a("feColorMatrix", { in: "SourceAlpha", result: "hardAlpha", values: "0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" }), a("feOffset", { dy: "3" }), a("feGaussianBlur", { stdDeviation: "4" }), a("feComposite", { in2: "hardAlpha", operator: "out" }), a("feColorMatrix", { values: "0 0 0 0 0.592157 0 0 0 0 0.72549 0 0 0 0 0.992157 0 0 0 1 0" }), a("feBlend", { in2: "BackgroundImageFix", result: "effect1_dropShadow_5874_69211" }), a("feBlend", { in: "SourceGraphic", in2: "effect1_dropShadow_5874_69211", result: "shape" })] })] })] }), y = e("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "44 21 128 151", children: [a("path", { className: "fill-100", d: "M60 111a8 8 0 0 1 8-8h96a8 8 0 0 1 8 8v53a8 8 0 0 1-8 8H68a8 8 0 0 1-8-8v-53Z" }), e("g", { filter: "url(#filter-page)", children: [a("path", { className: "fill-white", d: "M44 52a8 8 0 0 1 8-8h96a8 8 0 0 1 8 8v96a8 8 0 0 1-8 8H52a8 8 0 0 1-8-8V52Z" }), a("path", { className: "stroke-400", d: "M44.5 52a7.5 7.5 0 0 1 7.5-7.5h96a7.5 7.5 0 0 1 7.5 7.5v96a7.5 7.5 0 0 1-7.5 7.5H52a7.5 7.5 0 0 1-7.5-7.5V52Z" }), a("rect", { width: "44", height: "37", x: "52", y: "52", className: "fill-100", rx: "4" }), a("path", { className: "fill-200", d: "M52 96a3 3 0 0 1 3-3h18a3 3 0 1 1 0 6H55a3 3 0 0 1-3-3Z" }), a("path", { className: "fill-100", d: "M52 104a3 3 0 0 1 3-3h18a3 3 0 1 1 0 6H55a3 3 0 0 1-3-3Z" }), a("rect", { width: "44", height: "37", x: "52", y: "111", className: "fill-200", rx: "4" }), a("path", { className: "fill-100", d: "M104 55a3 3 0 0 1 3-3h26a3 3 0 1 1 0 6h-26a3 3 0 0 1-3-3Z" }), a("path", { className: "fill-200", d: "M104 63a3 3 0 0 1 3-3h38a3 3 0 1 1 0 6h-38a3 3 0 0 1-3-3Z" }), a("rect", { width: "44", height: "74", x: "104", y: "74", className: "fill-200", rx: "4" })] }), a("path", { className: "fill-white stroke-400", "stroke-width": "2", d: "M141.902 23.5c1.155-2 4.041-2 5.196 0l14.29 24.75c1.154 2-.289 4.5-2.599 4.5h-28.578c-2.31 0-3.753-2.5-2.598-4.5l14.289-24.75Z" }), a("path", { className: "fill-400", d: "m145.625 35-.222 8.148h-2.079L143.097 35h2.528Zm-1.261 11.784c-.375 0-.697-.133-.966-.398a1.297 1.297 0 0 1-.398-.966c-.004-.37.129-.689.398-.954s.591-.398.966-.398c.36 0 .676.133.949.398a1.303 1.303 0 0 1 .215 1.642c-.125.205-.289.37-.494.494a1.29 1.29 0 0 1-.67.182Z" }), a("defs", { children: e("filter", { id: "filter-page", width: "128", height: "128", x: "36", y: "39", "color-interpolation-filters": "sRGB", filterUnits: "userSpaceOnUse", children: [a("feFlood", { "flood-opacity": "0", result: "BackgroundImageFix" }), a("feColorMatrix", { in: "SourceAlpha", result: "hardAlpha", values: "0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" }), a("feOffset", { dy: "3" }), a("feGaussianBlur", { stdDeviation: "4" }), a("feComposite", { in2: "hardAlpha", operator: "out" }), a("feColorMatrix", { values: "0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.1 0" }), a("feBlend", { in2: "BackgroundImageFix", result: "effect1_dropShadow_5857_63996" }), a("feBlend", { in: "SourceGraphic", in2: "effect1_dropShadow_5857_63996", result: "shape" })] }) })] }), c = e("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "45.01 39 109.78 129.06", children: [a("path", { className: "fill-100", d: "M89.038 52.737a8 8 0 0 1 10.928-2.928l50.107 28.929a8 8 0 0 1 2.928 10.928l-42.953 74.396a8 8 0 0 1-10.928 2.929l-50.107-28.929a8.001 8.001 0 0 1-2.928-10.929l42.953-74.396Z" }), a("path", { className: "fill-100", d: "M74.605 56.807a8 8 0 0 1 9.798-5.656l55.887 14.974a8 8 0 0 1 5.657 9.798l-22.234 82.979a8 8 0 0 1-9.798 5.657l-55.887-14.975a8 8 0 0 1-5.657-9.798l22.234-82.978Z" }), e("g", { filter: "url(#filter-result)", children: [a("path", { className: "fill-white", d: "M62.643 64.731a8 8 0 0 1 8-8h57.894a8 8 0 0 1 8 8v85.179a8 8 0 0 1-8 8H70.643a8 8 0 0 1-8-8V64.731Z", "shape-rendering": "crispEdges" }), a("path", { className: "stroke-400", d: "M63.143 64.731a7.5 7.5 0 0 1 7.5-7.5h57.894a7.5 7.5 0 0 1 7.5 7.5v85.179a7.5 7.5 0 0 1-7.5 7.5H70.643a7.5 7.5 0 0 1-7.5-7.5V64.731Z", "shape-rendering": "crispEdges" }), a("path", { className: "fill-100", d: "M45.559 73.123a3 3 0 0 1 3-3h26a3 3 0 0 1 0 6h-26a3 3 0 0 1-3-3Z" }), a("path", { className: "fill-200", d: "M45.559 81.123a3 3 0 0 1 3-3h34a3 3 0 0 1 0 6h-34a3 3 0 0 1-3-3Z" })] }), a("rect", { width: "24", height: "8", x: "127", y: "123", className: "fill-400", rx: "4" }), a("rect", { width: "40", height: "12", x: "111", y: "133", className: "fill-200", rx: "4" }), a("path", { className: "fill-white stroke-400", "stroke-width": "2", d: "M133.902 41.5c1.155-2 4.041-2 5.196 0l14.29 24.75c1.154 2-.289 4.5-2.599 4.5h-28.578c-2.31 0-3.753-2.5-2.598-4.5l14.289-24.75Z" }), a("path", { className: "fill-400", d: "M135.229 60.65v-.177c.004-.61.058-1.097.161-1.46.108-.363.264-.656.468-.88a3.62 3.62 0 0 1 .738-.606c.215-.14.407-.285.577-.435.17-.15.305-.315.405-.497.101-.185.151-.39.151-.617 0-.241-.057-.452-.171-.634a1.15 1.15 0 0 0-.463-.418 1.37 1.37 0 0 0-.634-.147c-.225 0-.438.05-.639.152a1.222 1.222 0 0 0-.494.44c-.128.191-.197.43-.208.716H133c.017-.697.184-1.273.499-1.726a2.862 2.862 0 0 1 1.252-1.02 4.255 4.255 0 0 1 1.72-.341c.69 0 1.3.115 1.83.345.53.227.945.557 1.247.99.301.432.452.954.452 1.564 0 .408-.068.771-.203 1.089a2.643 2.643 0 0 1-.556.837c-.239.24-.521.459-.847.654a3.43 3.43 0 0 0-.675.513 1.726 1.726 0 0 0-.39.617 2.67 2.67 0 0 0-.13.864v.178h-1.97Zm1.029 3.35c-.346 0-.642-.122-.888-.366a1.209 1.209 0 0 1-.359-.89 1.185 1.185 0 0 1 .359-.88c.246-.243.542-.365.888-.365.329 0 .619.122.868.366a1.205 1.205 0 0 1 .198 1.512c-.115.189-.265.34-.452.456a1.179 1.179 0 0 1-.614.167Z" }), a("defs", { children: e("filter", { id: "filter-result", width: "106.978", height: "117.178", x: "37.559", y: "51.731", "color-interpolation-filters": "sRGB", filterUnits: "userSpaceOnUse", children: [a("feFlood", { "flood-opacity": "0", result: "BackgroundImageFix" }), a("feColorMatrix", { in: "SourceAlpha", result: "hardAlpha", values: "0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" }), a("feOffset", { dy: "3" }), a("feGaussianBlur", { stdDeviation: "4" }), a("feComposite", { in2: "hardAlpha", operator: "out" }), a("feColorMatrix", { values: "0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.1 0" }), a("feBlend", { in2: "BackgroundImageFix", result: "effect1_dropShadow_5857_64016" }), a("feBlend", { in: "SourceGraphic", in2: "effect1_dropShadow_5857_64016", result: "shape" })] }) })] }), v = {
|
|
9
|
+
"kit-empty": "_kit-empty_75edz_2"
|
|
10
|
+
}, Z = (l, i, s) => {
|
|
11
|
+
const r = typeof l == "string" || typeof l == "number" ? a(o.Title, { className: "empty-title", level: "h4", children: l }) : l, h = typeof i == "string" || typeof l == "number" ? a(o.Text, { children: i }) : i;
|
|
12
|
+
return e(w, { direction: "vertical", size: "s", children: [r, h, s] });
|
|
13
|
+
}, _ = (l) => l !== void 0 ? l : c, d = ({ className: l, image: i, title: s, description: r, button: h, ...f }) => {
|
|
14
|
+
const { appId: n } = u(), p = g(n, v["kit-empty"], l);
|
|
15
|
+
return a(m, { ...f, description: Z(s, r, h), image: _(i), className: p });
|
|
16
|
+
};
|
|
17
|
+
d.displayName = "KitEmpty";
|
|
18
|
+
const t = d;
|
|
19
|
+
t.displayName = "KitEmpty";
|
|
20
|
+
t.ASSET_FOLDER = x;
|
|
21
|
+
t.ASSET_LIST = M;
|
|
22
|
+
t.ASSET_MODAL = N;
|
|
23
|
+
t.ASSET_PAGE = y;
|
|
24
|
+
t.ASSET_RESULT = c;
|
|
25
|
+
export {
|
|
26
|
+
t as KitEmpty
|
|
27
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import {EmptyProps} from 'antd';
|
|
2
|
+
import {KitHTMLAttributes} from '../../../types';
|
|
3
|
+
import {FunctionComponent, ReactNode} from 'react';
|
|
4
|
+
|
|
5
|
+
type AntdEmptyTypesToOmit = 'description';
|
|
6
|
+
|
|
7
|
+
export interface IKitEmpty extends KitHTMLAttributes<HTMLDivElement>, Omit<EmptyProps, AntdEmptyTypesToOmit> {
|
|
8
|
+
title?: ReactNode;
|
|
9
|
+
description?: ReactNode;
|
|
10
|
+
button?: ReactNode;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export type KitEmptyCompoundedComponent = FunctionComponent<IKitEmpty> & {
|
|
14
|
+
ASSET_FOLDER: ReactNode;
|
|
15
|
+
ASSET_LIST: ReactNode;
|
|
16
|
+
ASSET_MODAL: ReactNode;
|
|
17
|
+
ASSET_PAGE: ReactNode;
|
|
18
|
+
ASSET_RESULT: ReactNode;
|
|
19
|
+
};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import "../../../assets/index2.css";
|
|
2
|
+
import { jsxs as c, jsx as s } from "react/jsx-runtime";
|
|
3
|
+
import l from "classnames";
|
|
4
|
+
import { u as x } from "../../../chunks/useKitTheme.KSAU-Pdv.js";
|
|
5
|
+
import "../../General/Button/index.js";
|
|
6
|
+
import { KitTypography as n } from "../../General/Typography/index.js";
|
|
7
|
+
import "../../General/Icon/index.js";
|
|
8
|
+
const y = {
|
|
9
|
+
"kit-id-card": "_kit-id-card_stmwg_2"
|
|
10
|
+
}, v = (r, i) => {
|
|
11
|
+
const t = l({ "kit-id-card-title-large": i === "large" });
|
|
12
|
+
return s(n.Text, { className: t, size: "large", weight: "bold", children: r });
|
|
13
|
+
}, f = (r, i) => {
|
|
14
|
+
const t = i === "medium" ? "small" : "large";
|
|
15
|
+
return s(n.Text, { size: t, children: r });
|
|
16
|
+
}, D = ({ className: r, title: i, description: t, avatar: d, size: o = "medium", ...m }) => {
|
|
17
|
+
const { appId: p } = x(), h = l(p, y["kit-id-card"], r), u = d !== void 0, e = i !== void 0, a = t !== void 0, g = e || a;
|
|
18
|
+
return c("div", { className: `${h} id-card-grid`, ...m, children: [u && s("div", { className: "card-avatar", children: d }), g && c("div", { className: "card-info", children: [e && v(i, o), a && f(t, o)] })] });
|
|
19
|
+
};
|
|
20
|
+
D.displayName = "KitIdCard";
|
|
21
|
+
export {
|
|
22
|
+
D as KitIdCard
|
|
23
|
+
};
|
|
@@ -1,29 +1,10 @@
|
|
|
1
|
-
import "
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import {
|
|
7
|
-
import
|
|
8
|
-
import { u as d } from "../../../chunks/useKitTheme.KSAU-Pdv.js";
|
|
9
|
-
const m = {
|
|
10
|
-
"kit-image": "_kit-image_fjrya_2",
|
|
11
|
-
"mask-container": "_mask-container_fjrya_23"
|
|
12
|
-
}, y = ({ rounded: s, bordered: c, preview: e, className: t, ...p }) => {
|
|
13
|
-
var o;
|
|
14
|
-
const { locale: f } = _(), { appId: l } = d(), a = r.createElement(
|
|
15
|
-
"div",
|
|
16
|
-
{ className: m["mask-container"] },
|
|
17
|
-
r.createElement(v, { icon: I }),
|
|
18
|
-
(o = f.Image) === null || o === void 0 ? void 0 : o.preview
|
|
19
|
-
), u = () => typeof e == "object" ? { mask: a, ...e } : e === void 0 ? { mask: a } : e, g = k(l, m["kit-image"], t ?? "", {
|
|
20
|
-
rounded: s,
|
|
21
|
-
bordered: c
|
|
22
|
-
});
|
|
23
|
-
return r.createElement(i, { className: g, preview: u(), ...p });
|
|
24
|
-
}, n = y;
|
|
25
|
-
n.PreviewGroup = i.PreviewGroup;
|
|
26
|
-
n.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.91q8JHRn.js";
|
|
7
|
+
import "../../../chunks/useKitTheme.KSAU-Pdv.js";
|
|
27
8
|
export {
|
|
28
|
-
|
|
9
|
+
K as KitImage
|
|
29
10
|
};
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
+
import "react/jsx-runtime";
|
|
1
2
|
import "react";
|
|
2
3
|
import "classnames";
|
|
3
|
-
import { a as
|
|
4
|
+
import { a as u } from "../../../chunks/index.5Ttd0fY8.js";
|
|
4
5
|
import "../../General/Button/index.js";
|
|
5
6
|
import "../../General/Typography/index.js";
|
|
6
7
|
import "../../General/Icon/index.js";
|
|
@@ -16,10 +17,10 @@ import "../../DataEntry/Upload/index.js";
|
|
|
16
17
|
import "../../DataEntry/Slider/index.js";
|
|
17
18
|
import "../../DataEntry/ColorPicker/index.js";
|
|
18
19
|
import "../../../chunks/useKitTheme.KSAU-Pdv.js";
|
|
19
|
-
import "../../../chunks/
|
|
20
|
+
import "../../../chunks/index.91q8JHRn.js";
|
|
20
21
|
import "@fortawesome/react-fontawesome";
|
|
21
22
|
import "@fortawesome/free-regular-svg-icons";
|
|
22
23
|
import "@fortawesome/free-solid-svg-icons";
|
|
23
24
|
export {
|
|
24
|
-
|
|
25
|
+
u as KitItemCard
|
|
25
26
|
};
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
+
import "react/jsx-runtime";
|
|
1
2
|
import "react";
|
|
2
3
|
import "../../DataEntry/Checkbox/index.js";
|
|
3
4
|
import "../../DataEntry/Input/index.js";
|
|
4
5
|
import "../../DataEntry/InputNumber/index.js";
|
|
5
6
|
import "../../DataEntry/Radio/index.js";
|
|
6
7
|
import "../../DataEntry/Rate/index.js";
|
|
7
|
-
import { c as
|
|
8
|
+
import { c as v } from "../../../chunks/index.5Ttd0fY8.js";
|
|
8
9
|
import "../../DataEntry/Switch/index.js";
|
|
9
10
|
import "../../DataEntry/DatePicker/index.js";
|
|
10
11
|
import "../../DataEntry/AutoComplete/index.js";
|
|
@@ -15,12 +16,12 @@ import "../../General/Button/index.js";
|
|
|
15
16
|
import "../../General/Typography/index.js";
|
|
16
17
|
import "../../General/Icon/index.js";
|
|
17
18
|
import "../../../chunks/useKitTheme.KSAU-Pdv.js";
|
|
18
|
-
import "../../../chunks/
|
|
19
|
+
import "../../../chunks/index.91q8JHRn.js";
|
|
19
20
|
import "@fortawesome/react-fontawesome";
|
|
20
21
|
import "@fortawesome/free-regular-svg-icons";
|
|
21
22
|
import "@fortawesome/free-solid-svg-icons";
|
|
22
23
|
import "../../../hooks/useSecureClick/index.js";
|
|
23
24
|
import "classnames";
|
|
24
25
|
export {
|
|
25
|
-
|
|
26
|
+
v as KitItemList
|
|
26
27
|
};
|