aristid-ds 2.0.0-43af034 → 2.0.0-ae6eeaa

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.
Files changed (80) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/dist/Kit/App/index.js +67 -54
  3. package/dist/Kit/DataDisplay/Avatar/Avatar.d.ts +2 -2
  4. package/dist/Kit/DataDisplay/Avatar/index.js +21 -21
  5. package/dist/Kit/DataDisplay/Avatar/types.d.ts +2 -0
  6. package/dist/Kit/DataDisplay/Card/index.js +1 -1
  7. package/dist/Kit/DataDisplay/Collapse/index.js +1 -1
  8. package/dist/Kit/DataDisplay/Empty/Empty.d.ts +4 -0
  9. package/dist/Kit/DataDisplay/Empty/index.d.ts +2 -0
  10. package/dist/Kit/DataDisplay/Empty/index.js +221 -0
  11. package/dist/Kit/DataDisplay/Empty/types.d.ts +19 -0
  12. package/dist/Kit/DataDisplay/IdCard/index.d.ts +3 -0
  13. package/dist/Kit/DataDisplay/IdCard/index.js +33 -0
  14. package/dist/Kit/DataDisplay/IdCard/types.d.ts +9 -0
  15. package/dist/Kit/DataDisplay/Image/index.js +8 -27
  16. package/dist/Kit/DataDisplay/ItemCard/index.js +2 -2
  17. package/dist/Kit/DataDisplay/ItemList/index.js +2 -2
  18. package/dist/Kit/DataDisplay/LegacyCard/index.js +2 -1
  19. package/dist/Kit/DataDisplay/Tabs/index.js +1 -1
  20. package/dist/Kit/DataDisplay/Tag/index.js +1 -1
  21. package/dist/Kit/DataDisplay/Tree/index.js +1 -1
  22. package/dist/Kit/DataDisplay/index.d.ts +7 -5
  23. package/dist/Kit/DataDisplay/index.js +22 -18
  24. package/dist/Kit/DataEntry/Checkbox/index.js +1 -1
  25. package/dist/Kit/DataEntry/DatePicker/index.js +1 -1
  26. package/dist/Kit/DataEntry/Input/index.js +1 -1
  27. package/dist/Kit/DataEntry/Radio/index.js +1 -1
  28. package/dist/Kit/DataEntry/Select/index.js +1 -1
  29. package/dist/Kit/DataEntry/Upload/index.js +1 -1
  30. package/dist/Kit/DataEntry/index.js +1 -1
  31. package/dist/Kit/Feedback/Modal/index.js +2 -1
  32. package/dist/Kit/Feedback/Notification/index.js +1 -1
  33. package/dist/Kit/Feedback/SnackBar/index.js +1 -1
  34. package/dist/Kit/Feedback/index.js +1 -1
  35. package/dist/Kit/General/Button/index.js +27 -27
  36. package/dist/Kit/General/Button/types.d.ts +3 -0
  37. package/dist/Kit/General/Typography/index.js +1 -1
  38. package/dist/Kit/Navigation/Header/index.js +3 -2
  39. package/dist/Kit/Navigation/Menu/index.js +1 -1
  40. package/dist/Kit/Navigation/index.js +1 -1
  41. package/dist/Kit/index.js +152 -149
  42. package/dist/assets/empty/empty-folder.d.ts +2 -0
  43. package/dist/assets/empty/empty-list.d.ts +2 -0
  44. package/dist/assets/empty/empty-modal.d.ts +2 -0
  45. package/dist/assets/empty/empty-page.d.ts +2 -0
  46. package/dist/assets/empty/empty-result.d.ts +2 -0
  47. package/dist/assets/index19.css +1 -1
  48. package/dist/assets/index2.css +1 -1
  49. package/dist/assets/index20.css +1 -1
  50. package/dist/assets/index21.css +1 -1
  51. package/dist/assets/index22.css +1 -1
  52. package/dist/assets/index23.css +1 -1
  53. package/dist/assets/index24.css +1 -1
  54. package/dist/assets/index25.css +1 -1
  55. package/dist/assets/index26.css +1 -1
  56. package/dist/assets/index27.css +1 -1
  57. package/dist/assets/index28.css +1 -1
  58. package/dist/assets/index29.css +1 -1
  59. package/dist/assets/index3.css +1 -1
  60. package/dist/assets/index30.css +1 -0
  61. package/dist/assets/index31.css +1 -0
  62. package/dist/assets/index4.css +1 -1
  63. package/dist/assets/index5.css +1 -1
  64. package/dist/chunks/{KitNotification.o3gKIpvN.js → KitNotification.8TUWfz3n.js} +5 -4
  65. package/dist/chunks/{index.F6xtnegv.js → index.Y2ZBe70Q.js} +131 -129
  66. package/dist/chunks/index.obeyXpPl.js +35 -0
  67. package/dist/index.es.js +156 -153
  68. package/dist/index.umd.js +10 -0
  69. package/dist/translation/en-US/components/DataDisplay/Empty/index.d.ts +2 -0
  70. package/dist/translation/en-US/components/DataDisplay/Empty/index.js +6 -0
  71. package/dist/translation/en-US/index.js +10 -8
  72. package/dist/translation/fr-FR/components/DataDisplay/Empty/index.d.ts +2 -0
  73. package/dist/translation/fr-FR/components/DataDisplay/Empty/index.js +6 -0
  74. package/dist/translation/fr-FR/index.js +8 -6
  75. package/dist/translation/types/components/DataDisplay/Empty/index.d.ts +3 -0
  76. package/dist/translation/types/index.d.ts +3 -1
  77. package/dist/utils/functions/index.d.ts +2 -0
  78. package/dist/utils/functions/index.js +56 -40
  79. package/package.json +5 -4
  80. package/dist/chunks/useKitLocale.96CdK3og.js +0 -11
package/CHANGELOG.md CHANGED
@@ -1,5 +1,21 @@
1
1
  # Changelog
2
2
 
3
+ ## [X.X.X](https://www.npmjs.com/package/aristid-ds/v/X.X.X) (2024-XX-XX)
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
+
13
+ ### 🐛 Bug Fixes
14
+ * **Button:**
15
+ * Add missing property `htmlType` to `KitButton` (@philippechevieux)
16
+ * **Build:**
17
+ * Build as EsModule and commonjs module (@evoiron)
18
+
3
19
  ## [2.0.0](https://www.npmjs.com/package/aristid-ds/v/2.0.0) (2024-03-06)
4
20
  ### ✨ Features
5
21
  * **⚠️ Breaking change - Modal:** (@evoiron)
@@ -1,80 +1,93 @@
1
- import "../../assets/index19.css";
2
- import r, { useState as p, useLayoutEffect as K, useRef as g, useEffect as v } from "react";
3
- import { ConfigProvider as E } from "antd";
4
- import { K as L } from "../../chunks/SnackBarProvider.i0xeV0xG.js";
1
+ import "../../assets/index20.css";
2
+ import o, { useState as d, useLayoutEffect as g, useRef as E, useEffect as K } from "react";
3
+ import { ConfigProvider as L } from "antd";
4
+ import { K as S } from "../../chunks/SnackBarProvider.i0xeV0xG.js";
5
5
  import { createGlobalStyle as P } from "styled-components";
6
- import { toCssVariables as d, uuid as S } from "../../utils/functions/index.js";
7
- import s from "lodash/merge";
8
- import { Style as C } from "react-style-tag";
9
- import { K as b } from "../../chunks/useKitTheme.KSAU-Pdv.js";
6
+ import { toCssVariables as f, uuid as C } from "../../utils/functions/index.js";
7
+ import m from "lodash/merge";
8
+ import { Style as b } from "react-style-tag";
9
+ import { K as y } from "../../chunks/useKitTheme.KSAU-Pdv.js";
10
10
  import { KitAristidThemeGeneral as l } from "../../theme/aristid/general/index.js";
11
- import { antdThemeConfig as h } from "../../theme/utils/tokens-mapper/index.js";
12
- import { frFR as m } from "../../translation/fr-FR/index.js";
13
- import { enUS as F } from "../../translation/en-US/index.js";
14
- import { K as R, u as T } from "../../chunks/useKitLocale.96CdK3og.js";
15
- import { mapKitLocaleToAntdLocale as $ } from "../../translation/utils/index.js";
16
- import { d as k } from "../../chunks/notification-provider.KGowspef.js";
17
- const y = P`
11
+ import { antdThemeConfig as T } from "../../theme/utils/tokens-mapper/index.js";
12
+ import { frFR as c } from "../../translation/fr-FR/index.js";
13
+ import { enUS as h } from "../../translation/en-US/index.js";
14
+ import { a as k, u as A } from "../../chunks/index.obeyXpPl.js";
15
+ import { mapKitLocaleToAntdLocale as F } from "../../translation/utils/index.js";
16
+ import { d as I } from "../../chunks/notification-provider.KGowspef.js";
17
+ import "../DataDisplay/Avatar/index.js";
18
+ import "../DataDisplay/Badge/index.js";
19
+ import "../../chunks/index.Y2ZBe70Q.js";
20
+ import { KitEmpty as p } from "../DataDisplay/Empty/index.js";
21
+ import "../DataDisplay/IdCard/index.js";
22
+ import "../DataDisplay/LegacyCard/index.js";
23
+ import "../DataDisplay/Tabs/index.js";
24
+ import "../DataDisplay/Tree/index.js";
25
+ import "../DataDisplay/Tooltip/index.js";
26
+ import "classnames";
27
+ const R = P`
18
28
  .${(t) => t.id} {
19
- ${(t) => d(t.customTheme)};
29
+ ${(t) => f(t.customTheme)};
20
30
  }
21
- `, A = "aristid-ds-global", I = ({ children: t, customTheme: e, id: o }) => {
22
- const [i, n] = p(null), { theme: f, appId: c, spacing: u } = x(o, e);
23
- return K(() => {
24
- const a = d(l, "--general");
25
- n(a);
26
- }, []), r.createElement(b.Provider, { value: { theme: f, appId: c, spacing: u } }, i !== null && r.createElement(
27
- r.Fragment,
31
+ `, $ = "aristid-ds-global", x = ({ children: t, customTheme: e, id: n }) => {
32
+ const [r, i] = d(null), { theme: u, appId: s, spacing: v } = _(n, e);
33
+ return g(() => {
34
+ const a = f(l, "--general");
35
+ i(a);
36
+ }, []), o.createElement(y.Provider, { value: { theme: u, appId: s, spacing: v } }, r !== null && o.createElement(
37
+ o.Fragment,
28
38
  null,
29
- r.createElement(C, { id: A, hasSourceMap: !1 }, `
39
+ o.createElement(b, { id: $, hasSourceMap: !1 }, `
30
40
  :root{
31
- ${Object.keys(i).map((a) => `${a}: ${i[a]}`).join(";")}
41
+ ${Object.keys(r).map((a) => `${a}: ${r[a]}`).join(";")}
32
42
  }
33
43
  `),
34
- e && r.createElement(y, { id: c, customTheme: e }),
44
+ e && o.createElement(R, { id: s, customTheme: e }),
35
45
  t
36
46
  ));
37
- }, x = (t, e) => {
38
- var o;
39
- const i = g(t || "ds-" + S().substring(0, 8)), n = s(l.spacing, (o = e == null ? void 0 : e.general) === null || o === void 0 ? void 0 : o.spacing);
40
- return { theme: l, appId: i.current, spacing: n };
47
+ }, _ = (t, e) => {
48
+ var n;
49
+ const r = E(t || "ds-" + C().substring(0, 8)), i = m(l.spacing, (n = e == null ? void 0 : e.general) === null || n === void 0 ? void 0 : n.spacing);
50
+ return { theme: l, appId: r.current, spacing: i };
41
51
  }, j = ({ children: t }) => {
42
52
  const e = G();
43
- return r.createElement(R.Provider, { value: e }, t);
53
+ return o.createElement(k.Provider, { value: e }, t);
44
54
  }, G = () => {
45
- const [t, e] = p(m);
46
- return { locale: t, setKitLocale: (i) => {
47
- if (i.locale === "frFR") {
48
- const n = s(m, i);
49
- e(n);
55
+ const [t, e] = d(c);
56
+ return { locale: t, setKitLocale: (r) => {
57
+ if (r.locale === "frFR") {
58
+ const i = m(c, r);
59
+ e(i);
50
60
  } else {
51
- const n = s(F, i);
52
- e(n);
61
+ const i = m(h, r);
62
+ e(i);
53
63
  }
54
64
  } };
55
- }, Z = ({ children: t, locale: e, customTheme: o, id: i }) => r.createElement(
56
- I,
57
- { customTheme: o, id: i },
58
- r.createElement(
65
+ }, ce = ({ children: t, locale: e, customTheme: n, id: r }) => o.createElement(
66
+ x,
67
+ { customTheme: n, id: r },
68
+ o.createElement(
59
69
  j,
60
70
  null,
61
- r.createElement(U, { locale: e }, t)
71
+ o.createElement(N, { locale: e }, t)
62
72
  )
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,
73
+ ), N = ({ children: t, locale: e }) => {
74
+ const { locale: n, setKitLocale: r } = A();
75
+ return K(() => {
76
+ e !== void 0 && r(e);
77
+ }, [e, r]), o.createElement(
78
+ L,
79
+ { theme: T, locale: F(e), renderEmpty: () => {
80
+ var i;
81
+ return o.createElement(p, { className: "default-render", image: p.ASSET_LIST, description: (i = n.Empty) === null || i === void 0 ? void 0 : i.noData });
82
+ } },
83
+ o.createElement(
84
+ I,
72
85
  null,
73
- r.createElement(L, null),
86
+ o.createElement(S, null),
74
87
  t
75
88
  )
76
89
  );
77
90
  };
78
91
  export {
79
- Z as KitApp
92
+ ce as KitApp
80
93
  };
@@ -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,31 @@
1
- import "../../../assets/index20.css";
2
- import s, { useMemo as k } from "react";
3
- import { Avatar as m } from "antd";
1
+ import "../../../assets/index21.css";
2
+ import m, { useMemo as y } from "react";
3
+ import { Avatar as n } from "antd";
4
4
  import { u as p } from "../../../chunks/useKitTheme.KSAU-Pdv.js";
5
- import { isValidColor as d, getColor as A, isSecondaryColor as y, getLighterColor as C, getContrastColor as K } from "../../../utils/functions/index.js";
6
- import { kitAvatarCssTokens as i } from "../../../theme/aristid/components/DataDisplay/Avatar/index.js";
7
- import n from "classnames";
8
- const l = {
5
+ import { getInitials as C, isValidColor as K, getColor as _, isSecondaryColor as x, getLighterColor as N, getContrastColor as h } from "../../../utils/functions/index.js";
6
+ import { kitAvatarCssTokens as s } from "../../../theme/aristid/components/DataDisplay/Avatar/index.js";
7
+ import l from "classnames";
8
+ const c = {
9
9
  "kit-avatar": "_kit-avatar_w3aj4_2",
10
10
  "kit-avatar-group": "_kit-avatar-group_w3aj4_7"
11
- }, _ = (t, a) => !t || !d(t) ? null : {
12
- [i.colors.background.default]: A(t, a),
13
- [i.colors.typography.default]: y(t) ? C(t, a) : K(t)
14
- }, c = ({ color: t, className: a, style: r, secondaryColorInvert: o = !1, ...e }) => {
15
- const { appId: v } = p(), g = k(() => ({ ...r, ..._(t, o) }), [t, o, r]), f = n(v, l["kit-avatar"], a);
16
- return s.createElement(m, { style: g, className: f, ...e });
11
+ }, G = (t, a) => !t || !K(t) ? null : {
12
+ [s.colors.background.default]: _(t, a),
13
+ [s.colors.typography.default]: x(t) ? N(t, a) : h(t)
14
+ }, u = ({ label: t, initialsMaxChars: a, color: r, className: e, style: o, secondaryColorInvert: i = !1, children: g, ...f }) => {
15
+ const { appId: k } = p(), d = y(() => ({ ...o, ...G(r, i) }), [r, i, o]), A = l(k, c["kit-avatar"], e);
16
+ return m.createElement(n, { style: d, className: A, ...f }, t !== void 0 ? C(t, a) : g);
17
17
  };
18
- c.displayName = "KitAvatar";
19
- const x = ({ className: t, maxCount: a, ...r }) => {
20
- const { appId: o } = p(), e = n(o, l["kit-avatar-group"], t, {
18
+ u.displayName = "KitAvatar";
19
+ const S = ({ className: t, maxCount: a, ...r }) => {
20
+ const { appId: e } = p(), o = l(e, c["kit-avatar-group"], t, {
21
21
  "override-last": a
22
22
  });
23
- return s.createElement(m.Group, { ...r, maxCount: a, className: e, maxStyle: {
23
+ return m.createElement(n.Group, { ...r, maxCount: a, className: o, maxStyle: {
24
24
  cursor: r.maxPopoverTrigger === "click" ? "pointer" : "initial"
25
25
  } });
26
- }, N = x, u = c;
27
- u.displayName = "KitAvatar";
28
- u.Group = N;
26
+ }, T = S, v = u;
27
+ v.displayName = "KitAvatar";
28
+ v.Group = T;
29
29
  export {
30
- u as KitAvatar
30
+ v as KitAvatar
31
31
  };
@@ -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
  }
@@ -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.F6xtnegv.js";
11
+ import { K as y } from "../../../chunks/index.Y2ZBe70Q.js";
12
12
  import "../../DataEntry/Switch/index.js";
13
13
  import "../../DataEntry/DatePicker/index.js";
14
14
  import "../../DataEntry/AutoComplete/index.js";
@@ -1,4 +1,4 @@
1
- import { b as e } from "../../../chunks/index.F6xtnegv.js";
1
+ import { b as e } from "../../../chunks/index.Y2ZBe70Q.js";
2
2
  export {
3
3
  e as KitCollapse
4
4
  };
@@ -0,0 +1,4 @@
1
+ import { FunctionComponent } from 'react';
2
+ import { IKitEmpty } from './types';
3
+ declare const KitEmpty: FunctionComponent<IKitEmpty>;
4
+ export default KitEmpty;
@@ -0,0 +1,2 @@
1
+ import { KitEmptyCompoundedComponent } from './types';
2
+ export declare const KitEmpty: KitEmptyCompoundedComponent;
@@ -0,0 +1,221 @@
1
+ import "../../../assets/index30.css";
2
+ import e from "react";
3
+ import { Empty as d } from "antd";
4
+ import { u as p } from "../../../chunks/useKitTheme.KSAU-Pdv.js";
5
+ import E from "classnames";
6
+ import { KitTypography as s } from "../../General/Typography/index.js";
7
+ import { KitSpace as u } from "../../Layout/Space/index.js";
8
+ const g = e.createElement(
9
+ "svg",
10
+ { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "41 42 124 106" },
11
+ e.createElement("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" }),
12
+ e.createElement(
13
+ "g",
14
+ { filter: "url(#filter-folder)" },
15
+ e.createElement("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" }),
16
+ e.createElement("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" })
17
+ ),
18
+ e.createElement("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" }),
19
+ e.createElement("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" }),
20
+ e.createElement("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" }),
21
+ e.createElement(
22
+ "defs",
23
+ null,
24
+ e.createElement(
25
+ "filter",
26
+ { id: "filter-folder", width: "102.798", height: "84.103", x: "63.978", y: "74.897", "color-interpolation-filters": "sRGB", filterUnits: "userSpaceOnUse" },
27
+ e.createElement("feFlood", { "flood-opacity": "0", result: "BackgroundImageFix" }),
28
+ e.createElement("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" }),
29
+ e.createElement("feOffset", { dy: "3" }),
30
+ e.createElement("feGaussianBlur", { stdDeviation: "4" }),
31
+ e.createElement("feComposite", { in2: "hardAlpha", operator: "out" }),
32
+ e.createElement("feColorMatrix", { values: "0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.1 0" }),
33
+ e.createElement("feBlend", { in2: "BackgroundImageFix", result: "effect1_dropShadow_5857_64030" }),
34
+ e.createElement("feBlend", { in: "SourceGraphic", in2: "effect1_dropShadow_5857_64030", result: "shape" })
35
+ )
36
+ )
37
+ ), w = e.createElement(
38
+ "svg",
39
+ { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "17 46 161 108" },
40
+ e.createElement("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" }),
41
+ e.createElement("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" }),
42
+ e.createElement("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" }),
43
+ e.createElement("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" }),
44
+ e.createElement("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" }),
45
+ e.createElement("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" }),
46
+ e.createElement("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" }),
47
+ e.createElement(
48
+ "g",
49
+ { filter: "url(#filter-list)" },
50
+ e.createElement("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" }),
51
+ e.createElement("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" }),
52
+ e.createElement("path", { className: "fill-400", d: "M79 98a8 8 0 1 0-16 0 8 8 0 0 0 16 0Z" }),
53
+ e.createElement("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" }),
54
+ e.createElement("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" })
55
+ ),
56
+ e.createElement(
57
+ "defs",
58
+ null,
59
+ e.createElement(
60
+ "filter",
61
+ { id: "filter-list", width: "122", height: "52", x: "39", y: "77", "color-interpolation-filters": "sRGB", filterUnits: "userSpaceOnUse" },
62
+ e.createElement("feFlood", { "flood-opacity": "0", result: "BackgroundImageFix" }),
63
+ e.createElement("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" }),
64
+ e.createElement("feOffset", { dy: "3" }),
65
+ e.createElement("feGaussianBlur", { stdDeviation: "4" }),
66
+ e.createElement("feComposite", { in2: "hardAlpha", operator: "out" }),
67
+ e.createElement("feColorMatrix", { values: "0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.1 0" }),
68
+ e.createElement("feBlend", { in2: "BackgroundImageFix", result: "effect1_dropShadow_5857_63975" }),
69
+ e.createElement("feBlend", { in: "SourceGraphic", in2: "effect1_dropShadow_5857_63975", result: "shape" })
70
+ )
71
+ )
72
+ ), x = e.createElement(
73
+ "svg",
74
+ { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "16.4 44.4 167.2 105.6" },
75
+ e.createElement("rect", { width: "30.8", height: "14.3", x: "16.4", y: "56.5", className: "fill-100", rx: "4.4" }),
76
+ e.createElement("rect", { width: "30.8", height: "14.3", x: "49.4", y: "56.5", className: "fill-100", rx: "4.4" }),
77
+ e.createElement("rect", { width: "30.8", height: "14.3", x: "82.4", y: "56.5", className: "fill-100", rx: "4.4" }),
78
+ e.createElement("rect", { width: "30.8", height: "14.3", x: "86.8", y: "135.7", className: "fill-100", rx: "4.4" }),
79
+ e.createElement("rect", { width: "30.8", height: "14.3", x: "119.8", y: "135.7", className: "fill-100", rx: "4.4" }),
80
+ e.createElement("rect", { width: "30.8", height: "14.3", x: "152.8", y: "135.7", className: "fill-100", rx: "4.4" }),
81
+ e.createElement(
82
+ "g",
83
+ { filter: "url(#filter-modal)" },
84
+ e.createElement("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" }),
85
+ e.createElement("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" }),
86
+ e.createElement("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" }),
87
+ e.createElement("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" }),
88
+ e.createElement("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" }),
89
+ e.createElement("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" }),
90
+ e.createElement(
91
+ "g",
92
+ { filter: "url(#filter-modal-bis)" },
93
+ e.createElement("rect", { width: "30.8", height: "14.3", x: "117.6", y: "91.7", className: "fill-white", rx: "4.4" }),
94
+ e.createElement("rect", { width: "29.7", height: "13.2", x: "118.15", y: "92.25", className: "stroke-400", "stroke-width": "1.1", rx: "3.85" })
95
+ ),
96
+ e.createElement("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" })
97
+ ),
98
+ e.createElement("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" }),
99
+ e.createElement("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" }),
100
+ e.createElement(
101
+ "defs",
102
+ null,
103
+ e.createElement(
104
+ "filter",
105
+ { id: "filter-modal", width: "130.4", height: "91.9", x: "34.8", y: "60.3", "color-interpolation-filters": "sRGB", filterUnits: "userSpaceOnUse" },
106
+ e.createElement("feFlood", { "flood-opacity": "0", result: "BackgroundImageFix" }),
107
+ e.createElement("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" }),
108
+ e.createElement("feOffset", { dy: "3" }),
109
+ e.createElement("feGaussianBlur", { stdDeviation: "4" }),
110
+ e.createElement("feComposite", { in2: "hardAlpha", operator: "out" }),
111
+ e.createElement("feColorMatrix", { values: "0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.1 0" }),
112
+ e.createElement("feBlend", { in2: "BackgroundImageFix", result: "effect1_dropShadow_5874_69211" }),
113
+ e.createElement("feBlend", { in: "SourceGraphic", in2: "effect1_dropShadow_5874_69211", result: "shape" })
114
+ ),
115
+ e.createElement(
116
+ "filter",
117
+ { id: "filter-modal-bis", width: "46.8", height: "30.3", x: "109.6", y: "86.7", "color-interpolation-filters": "sRGB", filterUnits: "userSpaceOnUse" },
118
+ e.createElement("feFlood", { "flood-opacity": "0", result: "BackgroundImageFix" }),
119
+ e.createElement("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" }),
120
+ e.createElement("feOffset", { dy: "3" }),
121
+ e.createElement("feGaussianBlur", { stdDeviation: "4" }),
122
+ e.createElement("feComposite", { in2: "hardAlpha", operator: "out" }),
123
+ e.createElement("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" }),
124
+ e.createElement("feBlend", { in2: "BackgroundImageFix", result: "effect1_dropShadow_5874_69211" }),
125
+ e.createElement("feBlend", { in: "SourceGraphic", in2: "effect1_dropShadow_5874_69211", result: "shape" })
126
+ )
127
+ )
128
+ ), M = e.createElement(
129
+ "svg",
130
+ { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "44 21 128 151" },
131
+ e.createElement("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" }),
132
+ e.createElement(
133
+ "g",
134
+ { filter: "url(#filter-page)" },
135
+ e.createElement("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" }),
136
+ e.createElement("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" }),
137
+ e.createElement("rect", { width: "44", height: "37", x: "52", y: "52", className: "fill-100", rx: "4" }),
138
+ e.createElement("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" }),
139
+ e.createElement("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" }),
140
+ e.createElement("rect", { width: "44", height: "37", x: "52", y: "111", className: "fill-200", rx: "4" }),
141
+ e.createElement("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" }),
142
+ e.createElement("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" }),
143
+ e.createElement("rect", { width: "44", height: "74", x: "104", y: "74", className: "fill-200", rx: "4" })
144
+ ),
145
+ e.createElement("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" }),
146
+ e.createElement("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" }),
147
+ e.createElement(
148
+ "defs",
149
+ null,
150
+ e.createElement(
151
+ "filter",
152
+ { id: "filter-page", width: "128", height: "128", x: "36", y: "39", "color-interpolation-filters": "sRGB", filterUnits: "userSpaceOnUse" },
153
+ e.createElement("feFlood", { "flood-opacity": "0", result: "BackgroundImageFix" }),
154
+ e.createElement("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" }),
155
+ e.createElement("feOffset", { dy: "3" }),
156
+ e.createElement("feGaussianBlur", { stdDeviation: "4" }),
157
+ e.createElement("feComposite", { in2: "hardAlpha", operator: "out" }),
158
+ e.createElement("feColorMatrix", { values: "0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.1 0" }),
159
+ e.createElement("feBlend", { in2: "BackgroundImageFix", result: "effect1_dropShadow_5857_63996" }),
160
+ e.createElement("feBlend", { in: "SourceGraphic", in2: "effect1_dropShadow_5857_63996", result: "shape" })
161
+ )
162
+ )
163
+ ), n = e.createElement(
164
+ "svg",
165
+ { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "45.01 39 109.78 129.06" },
166
+ e.createElement("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" }),
167
+ e.createElement("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" }),
168
+ e.createElement(
169
+ "g",
170
+ { filter: "url(#filter-result)" },
171
+ e.createElement("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" }),
172
+ e.createElement("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" }),
173
+ e.createElement("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" }),
174
+ e.createElement("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" })
175
+ ),
176
+ e.createElement("rect", { width: "24", height: "8", x: "127", y: "123", className: "fill-400", rx: "4" }),
177
+ e.createElement("rect", { width: "40", height: "12", x: "111", y: "133", className: "fill-200", rx: "4" }),
178
+ e.createElement("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" }),
179
+ e.createElement("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" }),
180
+ e.createElement(
181
+ "defs",
182
+ null,
183
+ e.createElement(
184
+ "filter",
185
+ { id: "filter-result", width: "106.978", height: "117.178", x: "37.559", y: "51.731", "color-interpolation-filters": "sRGB", filterUnits: "userSpaceOnUse" },
186
+ e.createElement("feFlood", { "flood-opacity": "0", result: "BackgroundImageFix" }),
187
+ e.createElement("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" }),
188
+ e.createElement("feOffset", { dy: "3" }),
189
+ e.createElement("feGaussianBlur", { stdDeviation: "4" }),
190
+ e.createElement("feComposite", { in2: "hardAlpha", operator: "out" }),
191
+ e.createElement("feColorMatrix", { values: "0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.1 0" }),
192
+ e.createElement("feBlend", { in2: "BackgroundImageFix", result: "effect1_dropShadow_5857_64016" }),
193
+ e.createElement("feBlend", { in: "SourceGraphic", in2: "effect1_dropShadow_5857_64016", result: "shape" })
194
+ )
195
+ )
196
+ ), N = {
197
+ "kit-empty": "_kit-empty_75edz_2"
198
+ }, y = (t, l, r) => {
199
+ const c = typeof t == "string" || typeof t == "number" ? e.createElement(s.Title, { className: "empty-title", level: "h4" }, t) : t, i = typeof l == "string" || typeof t == "number" ? e.createElement(s.Text, null, l) : l;
200
+ return e.createElement(
201
+ u,
202
+ { direction: "vertical", size: "s" },
203
+ c,
204
+ i,
205
+ r
206
+ );
207
+ }, v = (t) => t !== void 0 ? t : n, m = ({ className: t, image: l, title: r, description: c, button: i, ...o }) => {
208
+ const { appId: h } = p(), f = E(h, N["kit-empty"], t);
209
+ return e.createElement(d, { ...o, description: y(r, c, i), image: v(l), className: f });
210
+ };
211
+ m.displayName = "KitEmpty";
212
+ const a = m;
213
+ a.displayName = "KitEmpty";
214
+ a.ASSET_FOLDER = g;
215
+ a.ASSET_LIST = w;
216
+ a.ASSET_MODAL = x;
217
+ a.ASSET_PAGE = M;
218
+ a.ASSET_RESULT = n;
219
+ export {
220
+ a as KitEmpty
221
+ };
@@ -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,3 @@
1
+ import { FunctionComponent } from 'react';
2
+ import { IKitIdCard } from './types';
3
+ export declare const KitIdCard: FunctionComponent<IKitIdCard>;
@@ -0,0 +1,33 @@
1
+ import "../../../assets/index2.css";
2
+ import r from "react";
3
+ import d from "classnames";
4
+ import { u as y } from "../../../chunks/useKitTheme.KSAU-Pdv.js";
5
+ import "../../General/Button/index.js";
6
+ import { KitTypography as l } from "../../General/Typography/index.js";
7
+ import "../../General/Icon/index.js";
8
+ const h = {
9
+ "kit-id-card": "_kit-id-card_stmwg_2"
10
+ }, v = (i, t) => {
11
+ const e = d({ "kit-id-card-title-large": t === "large" });
12
+ return r.createElement(l.Text, { className: e, size: "large", weight: "bold" }, i);
13
+ }, f = (i, t) => {
14
+ const e = t === "medium" ? "small" : "large";
15
+ return r.createElement(l.Text, { size: e }, i);
16
+ }, x = ({ className: i, title: t, description: e, avatar: a, size: s = "medium", ...m }) => {
17
+ const { appId: n } = y(), p = d(n, h["kit-id-card"], i), u = a !== void 0, o = t !== void 0, c = e !== void 0, g = o || c;
18
+ return r.createElement(
19
+ "div",
20
+ { className: `${p} id-card-grid`, ...m },
21
+ u && r.createElement("div", { className: "card-avatar" }, a),
22
+ g && r.createElement(
23
+ "div",
24
+ { className: "card-info" },
25
+ o && v(t, s),
26
+ c && f(e, s)
27
+ )
28
+ );
29
+ };
30
+ x.displayName = "KitIdCard";
31
+ export {
32
+ x as KitIdCard
33
+ };
@@ -0,0 +1,9 @@
1
+ import {KitHTMLAttributes} from '../../../types';
2
+ import {ReactNode} from 'react';
3
+
4
+ export interface IKitIdCard extends KitHTMLAttributes<HTMLDivElement> {
5
+ avatar?: ReactNode;
6
+ size?: 'medium' | 'large';
7
+ title?: string;
8
+ description?: string;
9
+ }
@@ -1,29 +1,10 @@
1
- import "../../../assets/index3.css";
2
- import r from "react";
3
- import { Image as i } from "antd";
4
- import k from "classnames";
5
- import { FontAwesomeIcon as v } from "@fortawesome/react-fontawesome";
6
- import { faEye as I } from "@fortawesome/free-solid-svg-icons";
7
- import { u as _ } from "../../../chunks/useKitLocale.96CdK3og.js";
8
- import { u as 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";
2
+ import "antd";
3
+ import "classnames";
4
+ import "@fortawesome/react-fontawesome";
5
+ import "@fortawesome/free-solid-svg-icons";
6
+ import { K } from "../../../chunks/index.obeyXpPl.js";
7
+ import "../../../chunks/useKitTheme.KSAU-Pdv.js";
27
8
  export {
28
- n as KitImage
9
+ K as KitImage
29
10
  };