aristid-ds 8.0.0-e14b2c4 → 9.0.0-0c111e0

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 (135) hide show
  1. package/CHANGELOG.md +48 -4
  2. package/README.md +1 -1
  3. package/dist/Kit/App/index.d.ts +1 -0
  4. package/dist/Kit/App/index.js +118 -57
  5. package/dist/Kit/DataDisplay/Collapse/index.js +1 -1
  6. package/dist/Kit/DataDisplay/Empty/index.js +1 -1
  7. package/dist/Kit/DataDisplay/Error/index.js +8 -20
  8. package/dist/Kit/DataDisplay/IdCard/index.js +15 -15
  9. package/dist/Kit/DataDisplay/Image/index.js +8 -22
  10. package/dist/Kit/DataDisplay/ItemCard/index.js +1 -1
  11. package/dist/Kit/DataDisplay/ItemList/index.js +3 -5
  12. package/dist/Kit/DataDisplay/ItemList/types.d.ts +3 -1
  13. package/dist/Kit/DataDisplay/RedirectCard/RedirectCardActions.d.ts +3 -0
  14. package/dist/Kit/DataDisplay/RedirectCard/index.js +11 -22
  15. package/dist/Kit/DataDisplay/RedirectCard/types.d.ts +12 -2
  16. package/dist/Kit/DataDisplay/Table/index.js +1 -1
  17. package/dist/Kit/DataDisplay/Tabs/index.js +1 -1
  18. package/dist/Kit/DataDisplay/Tag/index.js +2 -2
  19. package/dist/Kit/DataDisplay/Tree/index.js +1 -1
  20. package/dist/Kit/DataDisplay/index.js +11 -13
  21. package/dist/Kit/DataEntry/AutoComplete/index.js +19 -18
  22. package/dist/Kit/DataEntry/AutoComplete/types.d.ts +1 -0
  23. package/dist/Kit/DataEntry/Checkbox/index.js +2 -2
  24. package/dist/Kit/DataEntry/ColorPicker/index.js +2 -2
  25. package/dist/Kit/DataEntry/DatePicker/index.js +22 -20
  26. package/dist/Kit/DataEntry/DatePicker/types.d.ts +2 -0
  27. package/dist/Kit/DataEntry/Input/index.js +26 -25
  28. package/dist/Kit/DataEntry/Input/types.d.ts +3 -0
  29. package/dist/Kit/DataEntry/InputNumber/index.js +13 -12
  30. package/dist/Kit/DataEntry/InputNumber/types.d.ts +1 -0
  31. package/dist/Kit/DataEntry/InputWrapper/index.js +1 -1
  32. package/dist/Kit/DataEntry/InputWrapper/types.d.ts +4 -0
  33. package/dist/Kit/DataEntry/Radio/index.js +2 -2
  34. package/dist/Kit/DataEntry/Rate/index.js +1 -1
  35. package/dist/Kit/DataEntry/Select/index.js +3 -3
  36. package/dist/Kit/DataEntry/Select/types.d.ts +1 -0
  37. package/dist/Kit/DataEntry/Slider/index.js +1 -1
  38. package/dist/Kit/DataEntry/Switch/index.js +1 -1
  39. package/dist/Kit/DataEntry/Upload/index.js +1 -1
  40. package/dist/Kit/DataEntry/index.js +3 -3
  41. package/dist/Kit/Feedback/Alert/index.js +1 -1
  42. package/dist/Kit/Feedback/Loader/index.js +1 -1
  43. package/dist/Kit/Feedback/Modal/index.js +2 -2
  44. package/dist/Kit/Feedback/Notification/index.js +1 -1
  45. package/dist/Kit/Feedback/Progress/index.js +1 -1
  46. package/dist/Kit/Feedback/Skeleton/KitAvatarSkeleton.d.ts +3 -0
  47. package/dist/Kit/Feedback/Skeleton/KitCustomSkeleton.d.ts +3 -0
  48. package/dist/Kit/Feedback/Skeleton/KitInputSkeleton.d.ts +3 -0
  49. package/dist/Kit/Feedback/Skeleton/KitItemCard.d.ts +3 -0
  50. package/dist/Kit/Feedback/Skeleton/KitItemListSkeleton.d.ts +3 -0
  51. package/dist/Kit/Feedback/Skeleton/index.d.ts +12 -0
  52. package/dist/Kit/Feedback/Skeleton/index.js +47 -0
  53. package/dist/Kit/Feedback/Skeleton/types.d.ts +21 -0
  54. package/dist/Kit/Feedback/SnackBar/index.js +1 -1
  55. package/dist/Kit/Feedback/index.d.ts +1 -0
  56. package/dist/Kit/Feedback/index.js +9 -7
  57. package/dist/Kit/General/Button/index.js +52 -45
  58. package/dist/Kit/General/Button/types.d.ts +6 -1
  59. package/dist/Kit/General/Icon/index.js +1 -1
  60. package/dist/Kit/General/Typography/commons.d.ts +2 -4
  61. package/dist/Kit/General/Typography/index.js +40 -52
  62. package/dist/Kit/General/Typography/types.d.ts +5 -17
  63. package/dist/Kit/Layout/Divider/index.js +1 -1
  64. package/dist/Kit/Layout/Grid/Col.d.ts +2 -2
  65. package/dist/Kit/Layout/Grid/Grid.d.ts +3 -0
  66. package/dist/Kit/Layout/Grid/GridContext.d.ts +10 -0
  67. package/dist/Kit/Layout/Grid/GridStyle.d.ts +8 -0
  68. package/dist/Kit/Layout/Grid/Row.d.ts +2 -2
  69. package/dist/Kit/Layout/Grid/index.d.ts +2 -9
  70. package/dist/Kit/Layout/Grid/index.js +2 -8
  71. package/dist/Kit/Layout/Grid/types.d.ts +38 -7
  72. package/dist/Kit/Layout/Grid/useGridContext.d.ts +1 -0
  73. package/dist/Kit/Layout/PageLayout/PageLayout.d.ts +3 -0
  74. package/dist/Kit/Layout/PageLayout/index.d.ts +2 -0
  75. package/dist/Kit/Layout/PageLayout/index.js +4 -0
  76. package/dist/Kit/Layout/PageLayout/types.d.ts +8 -0
  77. package/dist/Kit/Layout/index.d.ts +2 -1
  78. package/dist/Kit/Layout/index.js +9 -8
  79. package/dist/Kit/Navigation/Breadcrumb/index.js +1 -1
  80. package/dist/Kit/Navigation/Header/index.js +1 -1
  81. package/dist/Kit/Navigation/Menu/index.js +1 -1
  82. package/dist/Kit/Navigation/PageHeader/index.js +2 -3
  83. package/dist/Kit/Navigation/SideMenu/index.js +1 -1
  84. package/dist/Kit/Navigation/SideMenu/types.d.ts +1 -0
  85. package/dist/Kit/Navigation/Steps/index.js +1 -1
  86. package/dist/Kit/Navigation/index.js +3 -3
  87. package/dist/Kit/index.js +156 -159
  88. package/dist/assets/InputWrapper.css +1 -1
  89. package/dist/assets/index10.css +1 -1
  90. package/dist/assets/index11.css +1 -1
  91. package/dist/assets/index12.css +1 -1
  92. package/dist/assets/index13.css +1 -1
  93. package/dist/assets/index14.css +1 -1
  94. package/dist/assets/index15.css +1 -1
  95. package/dist/assets/index16.css +1 -1
  96. package/dist/assets/index17.css +1 -1
  97. package/dist/assets/index18.css +1 -1
  98. package/dist/assets/index19.css +1 -1
  99. package/dist/assets/index20.css +1 -1
  100. package/dist/assets/index21.css +1 -1
  101. package/dist/assets/index22.css +1 -1
  102. package/dist/assets/index23.css +1 -1
  103. package/dist/assets/index24.css +1 -1
  104. package/dist/assets/index25.css +1 -1
  105. package/dist/assets/index26.css +1 -1
  106. package/dist/assets/index27.css +1 -1
  107. package/dist/assets/index28.css +1 -1
  108. package/dist/assets/index29.css +1 -1
  109. package/dist/assets/index3.css +1 -1
  110. package/dist/assets/index30.css +1 -1
  111. package/dist/assets/index31.css +1 -1
  112. package/dist/assets/index32.css +1 -1
  113. package/dist/assets/index4.css +1 -1
  114. package/dist/assets/index5.css +1 -1
  115. package/dist/assets/index6.css +1 -1
  116. package/dist/assets/index7.css +1 -1
  117. package/dist/assets/index8.css +1 -1
  118. package/dist/assets/index9.css +1 -1
  119. package/dist/chunks/InputWrapper.tJodbKzs.js +32 -0
  120. package/dist/chunks/{KitNotification.GMSsnt0S.js → KitNotification.EGSlVDZc.js} +1 -1
  121. package/dist/chunks/index.e61-Ll-P.js +624 -0
  122. package/dist/chunks/index.qBmLATvd.js +31 -0
  123. package/dist/index.es.js +122 -126
  124. package/dist/index.umd.js +48 -6
  125. package/dist/theme/aristid/general/grid/index.d.ts +2 -0
  126. package/dist/theme/aristid/general/grid/index.js +108 -0
  127. package/dist/theme/aristid/general/index.js +11 -7
  128. package/dist/theme/theme-context.d.ts +1 -0
  129. package/dist/theme/types/general/grid/index.d.ts +16 -0
  130. package/dist/theme/types/index.d.ts +8 -0
  131. package/package.json +3 -3
  132. package/dist/assets/index33.css +0 -1
  133. package/dist/chunks/InputWrapper.vbAs3Gxi.js +0 -30
  134. package/dist/chunks/index.8ubgPqV2.js +0 -530
  135. package/dist/chunks/useKitLocale.96CdK3og.js +0 -11
package/CHANGELOG.md CHANGED
@@ -1,6 +1,33 @@
1
1
  # Changelog
2
2
 
3
- ## [x.x.x](https://www.npmjs.com/package/aristid-ds/v/X.X.X) (2024-07-31)
3
+ ## [X.X.X](https://www.npmjs.com/package/aristid-ds/v/X.X.X) (202X-XX-XX)
4
+
5
+ ### ✨ Features
6
+
7
+ - **New - PageLayout:**
8
+ - Add PageLayout component (@Delmotte-Vincent)
9
+
10
+ - **SideMenu:**
11
+ - Add `customContent` property to display a custom component depending on `open` side menu state (@philippechevieux)
12
+ - **ItemList:**
13
+ - Make `idCardProps` property optional (@philippechevieux)
14
+ - Add `idCardSubstitute` to display a custom component (@philippechevieux)
15
+ - Add `checkboxAriaLabel` property because the `aria-label` of the checkbox was only based on `idCardProps` (@philippechevieux)
16
+ - **InputWrapper:**
17
+ - Add `hoverable` to change border color when `bordered` is set to `true` (@philippechevieux)
18
+ - 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)
19
+ - Add `htmlFor` property to link the label to the wrapped content. This property is also available for: (@philippechevieux)
20
+ - `AutoComplete`
21
+ - `DatePicker` and `RangePicker`
22
+ - `Input`, `Password` and `TextArea`
23
+ - `InputNumber`
24
+ - `Select`
25
+
26
+ ### 📚 Documentation
27
+
28
+ - Fix design tokens page that crashed every time it was consulted (@philippechevieux)
29
+
30
+ ## [9.0.0](https://www.npmjs.com/package/aristid-ds/v/9.0.0) (2024-08-28)
4
31
 
5
32
  ### 🎨 Theming
6
33
 
@@ -22,9 +49,21 @@
22
49
  ### ✨ Features
23
50
 
24
51
  - **⚠️ Breaking change - Header Component:**
25
- - Rename `menuCard` prop of `Header.Profile` to `profileCardProps` and change its type from `ReactNode` to `IKitIdCard` (@evoiron)
26
- - Add `profileMenuCardProps` in `Header.Profile` as `IKitIdCard` (@evoiron)
27
- - Add `complement` in `Header.Profile` as `ReactNode` (@evoiron)
52
+ - Rename `menuCard` prop of `Header.Profile` to `profileCardProps` and change its type from `ReactNode` to `IKitIdCard` (@evoiron)
53
+ - Add `profileMenuCardProps` in `Header.Profile` as `IKitIdCard` (@evoiron)
54
+ - Add `complement` in `Header.Profile` as `ReactNode` (@evoiron)
55
+ - **⚠️ Breaking change - Typography:**
56
+ - Change expected value of `size` prop. `small`, `medium` and `large` are replaced by fontSize from `fontSize1` to `fontSize7` (@philippechevieux)
57
+ - Remove `type` prop because it is not used anymore and has been replaced by `color` (@philippechevieux)
58
+ - **⚠️ Breaking change - RedirectCard:**
59
+
60
+ - Rename `imageSrc` as `coverSrc` and `imageAlt` as `coverAlt` (@philippechevieux)
61
+ - Add `actions` prop to display between 1 and 3 buttons (@philippechevieux)
62
+ - Fix cover divider render on hover (@philippechevieux)
63
+
64
+ - **⚠️ Breaking change - Grid Component:**
65
+
66
+ - 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
67
 
29
68
  - **Dropdown:**
30
69
  - Update border, active & selected styles (@renaudAmsellem)
@@ -37,6 +76,11 @@
37
76
  - **Menu (Deprecated):**
38
77
  - Deprecate Menu component
39
78
  - Move Menu documentation to deprecated folder
79
+ - **Button**
80
+ - Add `link` and `redirect` Button types (@evoiron)
81
+ - Deprecate `text' Button type (@evoiron)
82
+ - **Skeleton:**
83
+ - Add a new component `KitSkeleton` (@Delmotte-Vincent)
40
84
 
41
85
  ## [8.0.0](https://www.npmjs.com/package/aristid-ds/v/8.0.0) (2024-07-25)
42
86
 
package/README.md CHANGED
@@ -59,7 +59,7 @@ mkdir DESIGN-SYSTEM
59
59
  2. Clone the repo
60
60
 
61
61
  ```sh dark
62
- git clone https://gitlab.aristid.com/dev/design-system.git
62
+ git clone git@github.com:aristid-dev/design-system.git
63
63
  ```
64
64
 
65
65
  3. Install requiered packages
@@ -6,4 +6,5 @@ export declare const KitApp: FunctionComponent<{
6
6
  locale?: IKitLocale;
7
7
  children?: ReactNode;
8
8
  id?: string;
9
+ useMediaQueries?: boolean;
9
10
  }>;
@@ -1,75 +1,136 @@
1
- import "../../assets/index22.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 T } from "styled-components";
7
- import { toCssVariables as u, uuid as b } from "../../utils/functions/index.js";
8
- import a from "lodash/merge";
9
- import { Style as y } from "react-style-tag";
10
- import { K as E } 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 p } from "../../translation/fr-FR/index.js";
14
- import { enUS as x } from "../../translation/en-US/index.js";
15
- import { K as A, u as F } from "../../chunks/useKitLocale.96CdK3og.js";
16
- import { mapKitLocaleToAntdLocale as I } from "../../translation/utils/index.js";
17
- import { d as $ } from "../../chunks/notification-provider.5EFnJe91.js";
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 { K as y } from "../../chunks/SnackBarProvider.xMKXdZ88.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 E } from "../../theme/utils/tokens-mapper/index.js";
13
+ import { frFR as f } from "../../translation/fr-FR/index.js";
14
+ import { enUS as _ } from "../../translation/en-US/index.js";
15
+ import { a as I, 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.8ubgPqV2.js";
21
- import { KitEmpty as c } from "../DataDisplay/Empty/index.js";
22
- import "../DataDisplay/Error/index.js";
20
+ import { m as z } from "../../chunks/index.e61-Ll-P.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
- import "../DataDisplay/RedirectCard/index.js";
31
- const j = T`
32
- .${(t) => t.id} {
33
- ${(t) => u(t.customTheme)};
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
- `, R = "aristid-ds-global", _ = ({ children: t, customTheme: r, id: i }) => {
37
- const [o, e] = f(null), { theme: g, appId: l, spacing: v } = G(i, r);
38
- return h(() => {
39
- const s = u(m, "--general");
40
- e(s);
41
- }, []), n(E.Provider, { value: { theme: g, appId: l, spacing: v }, children: o !== null && d(K, { children: [n(y, { id: R, hasSourceMap: !1, children: `
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(o).map((s) => `${s}: ${o[s]}`).join(";")}
98
+ ${Object.keys(r).map((p) => `${p}: ${r[p]}`).join(";")}
44
99
  }
45
- ` }), r && n(j, { id: l, customTheme: a({ general: { utilities: m.utilities } }, r) }), t] }) });
46
- }, G = (t, r) => {
47
- var i;
48
- const o = L(t || "ds-" + b().substring(0, 8)), e = a(m.spacing, (i = r == null ? void 0 : r.general) === null || i === void 0 ? void 0 : i.spacing);
49
- return { theme: m, appId: o.current, spacing: e };
50
- }, N = ({ children: t }) => {
51
- const r = U();
52
- return n(A.Provider, { value: r, children: t });
53
- }, U = () => {
54
- const [t, r] = f(p);
55
- return { locale: t, setKitLocale: (o) => {
56
- if (o.locale === "frFR") {
57
- const e = a(p, o);
58
- r(e);
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(I.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 e = a(x, o);
61
- r(e);
121
+ const r = s(_, e);
122
+ o(r);
62
123
  }
63
124
  } };
64
- }, vr = ({ children: t, locale: r, customTheme: i, id: o }) => n(_, { customTheme: i, id: o, children: n(N, { children: n(V, { locale: r, children: t }) }) }), V = ({ children: t, locale: r }) => {
65
- const { locale: i, setKitLocale: o } = F();
66
- return S(() => {
67
- r !== void 0 && o(r);
68
- }, [r, o]), n(P, { theme: k, locale: I(r), renderEmpty: () => {
69
- var e;
70
- return n(c, { className: "default-render", image: c.ASSET_LIST, description: (e = i.Empty) === null || e === void 0 ? void 0 : e.noData });
71
- }, children: d($, { children: [n(C, {}), t] }) });
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: E, 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
- vr as KitApp
135
+ wi as KitApp
75
136
  };
@@ -1,4 +1,4 @@
1
- import { a as e } from "../../../chunks/index.8ubgPqV2.js";
1
+ import { a as e } from "../../../chunks/index.e61-Ll-P.js";
2
2
  export {
3
3
  e as KitCollapse
4
4
  };
@@ -1,4 +1,4 @@
1
- import "../../../assets/index32.css";
1
+ import "../../../assets/index31.css";
2
2
  import { jsxs as e, jsx as a } from "react/jsx-runtime";
3
3
  import { Empty as m } from "antd";
4
4
  import { u } from "../../../chunks/useKitTheme.KSAU-Pdv.js";
@@ -1,30 +1,18 @@
1
- import "../../../assets/index21.css";
2
- import { jsxs as l, jsx as t } from "react/jsx-runtime";
3
- import { Empty as p } from "antd";
4
- import { u as h } from "../../../chunks/useKitLocale.96CdK3og.js";
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 { KitTypography as s } from "../../General/Typography/index.js";
6
+ import "../../General/Typography/index.js";
8
7
  import "../../General/Icon/index.js";
9
8
  import "../../Layout/Divider/index.js";
10
- import "../../Layout/Grid/index.js";
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 d from "classnames";
13
+ import "classnames";
16
14
  import "../../../chunks/styles.module.Q_QQjQdX.js";
17
- const f = l("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 602 301", width: "602", height: "301", fill: "none", "aria-hidden": !0, children: [t("path", { className: "fill-100", d: "M0 222.443v-41.122L89.3821 40.483h36.5409v55.8238h-21.2L52.4148 179.19v1.705H181.854v41.548H0Zm105.362 36.222v-48.793l1.066-18.004V40.483h49.325v218.182h-50.391ZM299.734 263.991c-19.034 0-35.441-4.509-49.219-13.529-13.778-9.091-24.396-22.124-31.854-39.098-7.457-17.046-11.15-37.536-11.079-61.471.071-23.934 3.799-44.247 11.186-60.937 7.457-16.7614 18.04-29.51 31.747-38.2458C264.293 41.9034 280.7 37.5 299.734 37.5c19.034 0 35.44 4.4034 49.218 13.2102 13.85 8.7358 24.503 21.4844 31.961 38.2458 7.457 16.761 11.15 37.074 11.079 60.937 0 24.006-3.729 44.532-11.186 61.577-7.457 17.046-18.075 30.078-31.854 39.098-13.707 8.949-30.113 13.423-49.218 13.423Zm0-43.146c11.363 0 20.561-5.788 27.592-17.365 7.031-11.648 10.511-29.51 10.44-53.587 0-15.767-1.598-28.764-4.794-38.991-3.196-10.298-7.635-17.9688-13.316-23.0114-5.682-5.0426-12.323-7.5639-19.922-7.5639-11.293 0-20.419 5.7173-27.38 17.152-6.96 11.3633-10.475 28.8353-10.546 52.4143-.071 15.981 1.455 29.226 4.58 39.738 3.197 10.511 7.671 18.359 13.424 23.544 5.753 5.113 12.393 7.67 19.922 7.67ZM419.531 222.443v-41.122l89.382-140.838h36.542v55.8238h-21.201L471.946 179.19v1.705h129.439v41.548H419.531Zm105.362 36.222v-48.793l1.066-18.004V40.483h49.325v218.182h-50.391Z" }), t("path", { className: "fill-200", d: "M252.023 171.594c1.758-2.93 5.86-2.93 7.618 0 7.617 9.961 24.023 33.398 24.023 45.117 0 15.234-12.305 27.539-28.125 27.539-15.234 0-28.125-12.305-28.125-27.539 0-11.719 16.992-35.156 24.609-45.117Zm116.602 32.226c5.273 5.274 5.859 14.063.586 19.922-4.688 5.86-14.063 6.446-19.922 1.172-12.305-11.133-28.711-18.164-46.289-18.164-8.203 0-14.062-5.859-14.062-14.062 0-7.618 5.859-14.063 14.062-14.063 25.195 0 48.047 9.961 65.625 25.195Zm-19.336-100.195c10.547 0 18.75 8.789 18.75 18.75 0 10.547-8.203 18.75-18.75 18.75s-18.75-8.203-18.75-18.75c0-9.961 8.203-18.75 18.75-18.75Zm-93.75 37.5c-10.547 0-18.75-8.203-18.75-18.75 0-9.961 8.203-18.75 18.75-18.75s18.75 8.789 18.75 18.75c0 10.547-8.203 18.75-18.75 18.75ZM303 .5c82.617 0 150 67.3828 150 150 0 83.203-67.383 150-150 150-83.203 0-150-66.797-150-150 0-82.6172 66.797-150 150-150ZM255.539 263c14.649 6.445 30.469 9.375 47.461 9.375 66.797 0 121.875-54.492 121.875-121.875 0-66.7969-55.078-121.875-121.875-121.875-67.383 0-121.875 55.0781-121.875 121.875 0 31.055 11.133 59.18 29.883 80.859 6.445 18.75 24.023 31.641 44.531 31.641Z" })] }), Z = {
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.e61-Ll-P.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 d, jsx as o } from "react/jsx-runtime";
3
- import m from "classnames";
4
- import { u as v } from "../../../chunks/useKitTheme.KSAU-Pdv.js";
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 n } from "../../General/Typography/index.js";
6
+ import { KitTypography as m } from "../../General/Typography/index.js";
7
7
  import "../../General/Icon/index.js";
8
- import { K as x } from "../../../chunks/Avatar.N2w2jq_C.js";
9
- const y = {
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 = (s, i, t) => {
12
- const r = m({ "kit-id-card-title-large": i === "large" });
13
- return o(n.Text, { className: r, size: "large", weight: "bold", ellipsis: { tooltip: !0 }, disabled: t, children: s });
14
- }, K = (s, i, t) => {
15
- const r = i === "medium" ? "small" : "large";
16
- return o(n.Text, { size: r, ellipsis: { tooltip: !0 }, disabled: t, children: s });
17
- }, T = ({ className: s, title: i, description: t, avatarProps: r, size: a = "medium", disabled: e = !1, ...p }) => {
18
- const { appId: u } = v(), h = m(u, y["kit-id-card"], s), g = r !== void 0, l = i !== void 0, c = t !== void 0, f = l || c;
19
- return d("div", { className: `${h} id-card-grid`, ...p, children: [g && o("div", { className: "card-avatar", children: o(x, { ...r, disabled: e }) }), f && d("div", { className: "card-info", children: [l && D(i, a, e), c && K(t, a, e)] })] });
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 "../../../assets/index3.css";
2
- import { jsxs as k, jsx as r } from "react/jsx-runtime";
3
- import { Image as a } from "antd";
4
- import d 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 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
- s as KitImage
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.8ubgPqV2.js";
12
+ import { K as y } from "../../../chunks/index.e61-Ll-P.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 { b as M } from "../../../chunks/index.8ubgPqV2.js";
8
+ import { c as H } from "../../../chunks/index.e61-Ll-P.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 "../Image/index.js";
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
- M as KitItemList
37
+ H as KitItemList
40
38
  };
@@ -4,9 +4,11 @@ import {IKitActionButton} from '../../DataDisplay/types';
4
4
  import {KitHTMLAttributes} from '../../../types';
5
5
 
6
6
  export interface IKitItemList extends KitHTMLAttributes<HTMLDivElement> {
7
- idCardProps: IKitIdCard;
7
+ idCardProps?: IKitIdCard;
8
+ idCardSubstitute?: ReactNode;
8
9
  draggableHandler?: ReactNode;
9
10
  onSelect?: (isChecked: boolean) => void;
11
+ checkboxAriaLabel?: string;
10
12
  onClick?: () => void;
11
13
  actions?: IKitActionButton[];
12
14
  content?: ReactNode;
@@ -0,0 +1,3 @@
1
+ import { FunctionComponent } from 'react';
2
+ import { IKitRedirectCardActions } from './types';
3
+ export declare const RedirectCardActions: FunctionComponent<IKitRedirectCardActions>;
@@ -1,30 +1,19 @@
1
- import "../../../assets/index6.css";
2
- import { jsxs as o, jsx as r, Fragment as y } from "react/jsx-runtime";
3
- import I from "classnames";
4
- import { forwardRef as K } from "react";
5
- import { u as g } from "../../../chunks/useKitTheme.KSAU-Pdv.js";
6
- import { FontAwesomeIcon as N } from "@fortawesome/react-fontawesome";
7
- import { faArrowRight as v } from "@fortawesome/free-solid-svg-icons";
1
+ import "react/jsx-runtime";
2
+ import "classnames";
3
+ import { d as g } from "../../../chunks/index.e61-Ll-P.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 { KitTypography as s } from "../../General/Typography/index.js";
10
- import { KitIcon as m } from "../../General/Icon/index.js";
11
- import { KitDivider as w } from "../../Layout/Divider/index.js";
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
- D as KitRedirectCard
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
- imageAlt?: string;
10
- imageSrc?: string;
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,4 +1,4 @@
1
- import "../../../assets/index23.css";
1
+ import "../../../assets/index20.css";
2
2
  import { jsx as a } from "react/jsx-runtime";
3
3
  import { Table as I } from "antd";
4
4
  import k from "classnames";
@@ -1,4 +1,4 @@
1
- import "../../../assets/index4.css";
1
+ import "../../../assets/index3.css";
2
2
  import { jsx as m } from "react/jsx-runtime";
3
3
  import { Tabs as c } from "antd";
4
4
  import { u as l } from "../../../chunks/useKitTheme.KSAU-Pdv.js";
@@ -1,4 +1,4 @@
1
- import { c as r } from "../../../chunks/index.8ubgPqV2.js";
1
+ import { e as o } from "../../../chunks/index.e61-Ll-P.js";
2
2
  export {
3
- r as KitTag
3
+ o as KitTag
4
4
  };
@@ -1,4 +1,4 @@
1
- import "../../../assets/index5.css";
1
+ import "../../../assets/index4.css";
2
2
  import { jsx as i } from "react/jsx-runtime";
3
3
  import { Tree as a } from "antd";
4
4
  import { u as n } from "../../../chunks/useKitTheme.KSAU-Pdv.js";
@@ -1,30 +1,28 @@
1
1
  import { KitAvatar as o } from "./Avatar/index.js";
2
- import { KitBadge as i } from "./Badge/index.js";
3
- import { a as K, K as a, b as p, c as f } from "../../chunks/index.8ubgPqV2.js";
4
- import { KitEmpty as s } from "./Empty/index.js";
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.e61-Ll-P.js";
4
+ import { KitEmpty as T } from "./Empty/index.js";
6
5
  import { KitIdCard as C } from "./IdCard/index.js";
7
- import { KitImage as b } from "./Image/index.js";
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
- i as KitBadge,
14
+ a as KitBadge,
17
15
  K as KitCollapse,
18
- s as KitEmpty,
19
- T as KitError,
16
+ T as KitEmpty,
17
+ m as KitError,
20
18
  C as KitIdCard,
21
19
  b as KitImage,
22
- a as KitItemCard,
23
- p as KitItemList,
24
- j as KitRedirectCard,
20
+ p as KitItemCard,
21
+ f as KitItemList,
22
+ x as KitRedirectCard,
25
23
  c as KitTable,
26
24
  u as KitTabs,
27
- f as KitTag,
25
+ s as KitTag,
28
26
  B as KitTooltip,
29
27
  R as KitTour,
30
28
  y as KitTree