aristid-ds 1.1.0 → 2.0.0-36716c3

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 (206) hide show
  1. package/CHANGELOG.md +54 -2
  2. package/dist/Kit/App/index.js +61 -49
  3. package/dist/Kit/App/types.d.ts +6 -0
  4. package/dist/Kit/DataDisplay/Avatar/types.d.ts +21 -0
  5. package/dist/Kit/DataDisplay/Badge/index.js +13 -13
  6. package/dist/Kit/DataDisplay/Badge/types.d.ts +10 -0
  7. package/dist/Kit/DataDisplay/Card/index.js +2 -2
  8. package/dist/Kit/DataDisplay/Card/types.d.ts +32 -0
  9. package/dist/Kit/DataDisplay/Collapse/index.js +1 -1
  10. package/dist/Kit/DataDisplay/Collapse/types.d.ts +68 -0
  11. package/dist/Kit/DataDisplay/Empty/Empty.d.ts +4 -0
  12. package/dist/Kit/DataDisplay/Empty/index.d.ts +2 -0
  13. package/dist/Kit/DataDisplay/Empty/index.js +221 -0
  14. package/dist/Kit/DataDisplay/Empty/types.d.ts +19 -0
  15. package/dist/Kit/DataDisplay/Image/index.js +8 -27
  16. package/dist/Kit/DataDisplay/Image/types.d.ts +19 -0
  17. package/dist/Kit/DataDisplay/ItemCard/index.js +2 -2
  18. package/dist/Kit/DataDisplay/ItemCard/types.d.ts +40 -0
  19. package/dist/Kit/DataDisplay/ItemList/index.js +2 -2
  20. package/dist/Kit/DataDisplay/ItemList/types.d.ts +21 -0
  21. package/dist/Kit/DataDisplay/LegacyCard/index.js +10 -7
  22. package/dist/Kit/DataDisplay/LegacyCard/types.d.ts +31 -0
  23. package/dist/Kit/DataDisplay/Tabs/index.js +8 -8
  24. package/dist/Kit/DataDisplay/Tabs/types.d.ts +6 -0
  25. package/dist/Kit/DataDisplay/Tag/index.js +1 -1
  26. package/dist/Kit/DataDisplay/Tag/types.d.ts +29 -0
  27. package/dist/Kit/DataDisplay/Tooltip/types.d.ts +9 -0
  28. package/dist/Kit/DataDisplay/Tour/types.d.ts +5 -0
  29. package/dist/Kit/DataDisplay/Tree/types.d.ts +19 -0
  30. package/dist/Kit/DataDisplay/index.d.ts +6 -5
  31. package/dist/Kit/DataDisplay/index.js +19 -17
  32. package/dist/Kit/DataEntry/AutoComplete/index.js +20 -20
  33. package/dist/Kit/DataEntry/AutoComplete/types.d.ts +15 -0
  34. package/dist/Kit/DataEntry/Checkbox/index.js +32 -32
  35. package/dist/Kit/DataEntry/Checkbox/types.d.ts +56 -0
  36. package/dist/Kit/DataEntry/ColorPicker/index.d.ts +2 -2
  37. package/dist/Kit/DataEntry/ColorPicker/index.js +12 -12
  38. package/dist/Kit/DataEntry/ColorPicker/types.d.ts +19 -0
  39. package/dist/Kit/DataEntry/DatePicker/RangePicker.d.ts +2 -2
  40. package/dist/Kit/DataEntry/DatePicker/index.js +23 -25
  41. package/dist/Kit/DataEntry/DatePicker/types.d.ts +40 -0
  42. package/dist/Kit/DataEntry/Input/index.js +34 -34
  43. package/dist/Kit/DataEntry/Input/types.d.ts +45 -0
  44. package/dist/Kit/DataEntry/InputNumber/index.js +15 -15
  45. package/dist/Kit/DataEntry/InputNumber/types.d.ts +17 -0
  46. package/dist/Kit/DataEntry/InputWrapper/index.js +1 -1
  47. package/dist/Kit/DataEntry/InputWrapper/types.d.ts +15 -0
  48. package/dist/Kit/DataEntry/Radio/index.d.ts +3 -3
  49. package/dist/Kit/DataEntry/Radio/index.js +32 -32
  50. package/dist/Kit/DataEntry/Radio/types.d.ts +30 -0
  51. package/dist/Kit/DataEntry/Rate/index.js +1 -1
  52. package/dist/Kit/DataEntry/Rate/types.d.ts +13 -0
  53. package/dist/Kit/DataEntry/Select/index.d.ts +1 -1
  54. package/dist/Kit/DataEntry/Select/index.js +9 -9
  55. package/dist/Kit/DataEntry/Select/types.d.ts +48 -0
  56. package/dist/Kit/DataEntry/Slider/index.js +1 -1
  57. package/dist/Kit/DataEntry/Slider/types.d.ts +26 -0
  58. package/dist/Kit/DataEntry/Switch/index.js +1 -1
  59. package/dist/Kit/DataEntry/Switch/types.d.ts +4 -0
  60. package/dist/Kit/DataEntry/Upload/types.d.ts +24 -0
  61. package/dist/Kit/DataEntry/index.js +2 -2
  62. package/dist/Kit/Feedback/Alert/index.js +1 -1
  63. package/dist/Kit/Feedback/Alert/types.d.ts +8 -0
  64. package/dist/Kit/Feedback/Modal/index.js +122 -102
  65. package/dist/Kit/Feedback/Modal/types.d.ts +62 -0
  66. package/dist/Kit/Feedback/Notification/KitNotification.d.ts +2 -2
  67. package/dist/Kit/Feedback/Notification/index.js +1 -1
  68. package/dist/Kit/Feedback/Notification/types.d.ts +27 -0
  69. package/dist/Kit/Feedback/Progress/index.js +1 -1
  70. package/dist/Kit/Feedback/Progress/types.d.ts +4 -0
  71. package/dist/Kit/Feedback/SnackBar/types.d.ts +21 -0
  72. package/dist/Kit/Feedback/index.js +1 -1
  73. package/dist/Kit/General/Button/index.js +15 -14
  74. package/dist/Kit/General/Button/types.d.ts +49 -0
  75. package/dist/Kit/General/Icon/index.js +1 -1
  76. package/dist/Kit/General/Icon/types.d.ts +20 -0
  77. package/dist/Kit/General/Typography/types.d.ts +77 -0
  78. package/dist/Kit/Layout/Divider/index.js +1 -1
  79. package/dist/Kit/Layout/Divider/types.d.ts +16 -0
  80. package/dist/Kit/Layout/Grid/types.d.ts +12 -0
  81. package/dist/Kit/Layout/Section/index.d.ts +4 -0
  82. package/dist/Kit/Layout/Section/index.js +20 -0
  83. package/dist/Kit/Layout/Section/types.d.ts +8 -0
  84. package/dist/Kit/Layout/Space/types.d.ts +16 -0
  85. package/dist/Kit/Layout/index.d.ts +1 -0
  86. package/dist/Kit/Layout/index.js +4 -2
  87. package/dist/Kit/Navigation/Breadcrumb/index.js +1 -1
  88. package/dist/Kit/Navigation/Breadcrumb/types.d.ts +12 -0
  89. package/dist/Kit/Navigation/DropDown/types.d.ts +6 -0
  90. package/dist/Kit/Navigation/Header/index.js +6 -3
  91. package/dist/Kit/Navigation/Header/types.d.ts +11 -0
  92. package/dist/Kit/Navigation/Menu/index.js +1 -1
  93. package/dist/Kit/Navigation/Menu/types.d.ts +51 -0
  94. package/dist/Kit/Navigation/Pagination/index.js +1 -1
  95. package/dist/Kit/Navigation/Pagination/types.d.ts +6 -0
  96. package/dist/Kit/Navigation/Steps/index.js +1 -1
  97. package/dist/Kit/Navigation/Steps/types.d.ts +12 -0
  98. package/dist/Kit/Navigation/index.js +1 -1
  99. package/dist/Kit/index.js +155 -149
  100. package/dist/assets/InputWrapper.css +1 -1
  101. package/dist/assets/empty/empty-folder.d.ts +2 -0
  102. package/dist/assets/empty/empty-list.d.ts +2 -0
  103. package/dist/assets/empty/empty-modal.d.ts +2 -0
  104. package/dist/assets/empty/empty-page.d.ts +2 -0
  105. package/dist/assets/empty/empty-result.d.ts +2 -0
  106. package/dist/assets/index10.css +1 -1
  107. package/dist/assets/index11.css +1 -1
  108. package/dist/assets/index12.css +1 -1
  109. package/dist/assets/index13.css +1 -1
  110. package/dist/assets/index14.css +1 -1
  111. package/dist/assets/index15.css +1 -1
  112. package/dist/assets/index16.css +1 -1
  113. package/dist/assets/index17.css +1 -1
  114. package/dist/assets/index18.css +1 -1
  115. package/dist/assets/index19.css +1 -1
  116. package/dist/assets/index22.css +1 -1
  117. package/dist/assets/index25.css +1 -1
  118. package/dist/assets/index27.css +1 -1
  119. package/dist/assets/index29.css +1 -1
  120. package/dist/assets/index3.css +1 -1
  121. package/dist/assets/index30.css +1 -0
  122. package/dist/assets/index5.css +1 -1
  123. package/dist/assets/index6.css +1 -1
  124. package/dist/assets/index7.css +1 -1
  125. package/dist/assets/index8.css +1 -1
  126. package/dist/assets/index9.css +1 -1
  127. package/dist/assets/styles.css +1 -1
  128. package/dist/assets/styles2.css +1 -0
  129. package/dist/chunks/InputWrapper.69dUKMaK.js +47 -0
  130. package/dist/chunks/{KitNotification.3hnPgsKv.js → KitNotification.o3gKIpvN.js} +7 -4
  131. package/dist/chunks/index.-7K1zF8V.js +35 -0
  132. package/dist/chunks/index.fN8eYpwW.js +757 -0
  133. package/dist/chunks/styles.module.cDfGpFWX.js +8 -0
  134. package/dist/chunks/{styles.module.x1Oajwjm.js → styles.module.h70MuyQF.js} +1 -1
  135. package/dist/index.es.js +159 -153
  136. package/dist/index.umd.js +10 -0
  137. package/dist/theme/aristid/general/colors/index.js +2 -0
  138. package/dist/theme/theme-context.d.ts +2 -2
  139. package/dist/theme/types/components/DataDisplay/Avatar/index.d.ts +59 -0
  140. package/dist/theme/types/components/DataDisplay/Badge/index.d.ts +59 -0
  141. package/dist/theme/types/components/DataDisplay/Card/index.d.ts +181 -0
  142. package/dist/theme/types/components/DataDisplay/Collapse/index.d.ts +67 -0
  143. package/dist/theme/types/components/DataDisplay/Image/index.d.ts +45 -0
  144. package/dist/theme/types/components/DataDisplay/ItemCard/index.d.ts +313 -0
  145. package/dist/theme/types/components/DataDisplay/ItemList/index.d.ts +185 -0
  146. package/dist/theme/types/components/DataDisplay/LegacyCard/index.d.ts +251 -0
  147. package/dist/theme/types/components/DataDisplay/Tabs/index.d.ts +315 -0
  148. package/dist/theme/types/components/DataDisplay/Tag/index.d.ts +61 -0
  149. package/dist/theme/types/components/DataDisplay/Tooltip/index.d.ts +51 -0
  150. package/dist/theme/types/components/DataDisplay/Tree/index.d.ts +177 -0
  151. package/dist/theme/types/components/DataEntry/Checkbox/index.d.ts +169 -0
  152. package/dist/theme/types/components/DataEntry/ColorPicker/index.d.ts +228 -0
  153. package/dist/theme/types/components/DataEntry/DatePicker/index.d.ts +576 -0
  154. package/dist/theme/types/components/DataEntry/Input/index.d.ts +332 -0
  155. package/dist/theme/types/components/DataEntry/InputNumber/index.d.ts +211 -0
  156. package/dist/theme/types/components/DataEntry/InputWrapper/index.d.ts +95 -0
  157. package/dist/theme/types/components/DataEntry/Radio/index.d.ts +181 -0
  158. package/dist/theme/types/components/DataEntry/Rate/index.d.ts +25 -0
  159. package/dist/theme/types/components/DataEntry/Select/index.d.ts +373 -0
  160. package/dist/theme/types/components/DataEntry/Slider/index.d.ts +169 -0
  161. package/dist/theme/types/components/DataEntry/Switch/index.d.ts +91 -0
  162. package/dist/theme/types/components/DataEntry/Upload/index.d.ts +178 -0
  163. package/dist/theme/types/components/Feedback/Alert/index.d.ts +162 -0
  164. package/dist/theme/types/components/Feedback/Modal/index.d.ts +158 -0
  165. package/dist/theme/types/components/Feedback/Notification/index.d.ts +130 -0
  166. package/dist/theme/types/components/Feedback/Progress/index.d.ts +64 -0
  167. package/dist/theme/types/components/Feedback/SnackBar/index.d.ts +114 -0
  168. package/dist/theme/types/components/General/Button/index.d.ts +81 -0
  169. package/dist/theme/types/components/General/Icon/index.d.ts +36 -0
  170. package/dist/theme/types/components/General/Typography/index.d.ts +119 -0
  171. package/dist/theme/types/components/Layout/Divider/index.d.ts +34 -0
  172. package/dist/theme/types/components/Navigation/Breadcrumb/index.d.ts +21 -0
  173. package/dist/theme/types/components/Navigation/DropDown/index.d.ts +297 -0
  174. package/dist/theme/types/components/Navigation/Header/index.d.ts +33 -0
  175. package/dist/theme/types/components/Navigation/Menu/index.d.ts +123 -0
  176. package/dist/theme/types/components/Navigation/Pagination/index.d.ts +191 -0
  177. package/dist/theme/types/components/Navigation/Steps/index.d.ts +77 -0
  178. package/dist/theme/types/general/border/index.d.ts +29 -0
  179. package/dist/theme/types/general/colors/index.d.ts +385 -0
  180. package/dist/theme/types/general/spacing/index.d.ts +25 -0
  181. package/dist/theme/types/general/typography/index.d.ts +45 -0
  182. package/dist/theme/types/index.d.ts +113 -0
  183. package/dist/theme/utils/tokens-mapper/DataEntry/ColorPicker/index.js +6 -6
  184. package/dist/theme/utils/tokens-mapper/DataEntry/DatePicker/index.js +3 -3
  185. package/dist/theme/utils/tokens-mapper/DataEntry/Input/index.js +5 -5
  186. package/dist/theme/utils/tokens-mapper/DataEntry/InputNumber/index.js +5 -5
  187. package/dist/translation/en-US/components/DataDisplay/Empty/index.d.ts +2 -0
  188. package/dist/translation/en-US/components/DataDisplay/Empty/index.js +6 -0
  189. package/dist/translation/en-US/index.js +10 -8
  190. package/dist/translation/fr-FR/components/DataDisplay/Empty/index.d.ts +2 -0
  191. package/dist/translation/fr-FR/components/DataDisplay/Empty/index.js +6 -0
  192. package/dist/translation/fr-FR/index.js +8 -6
  193. package/dist/translation/types/components/DataDisplay/Collapse/index.d.ts +3 -0
  194. package/dist/translation/types/components/DataDisplay/Empty/index.d.ts +3 -0
  195. package/dist/translation/types/components/DataDisplay/Image/index.d.ts +3 -0
  196. package/dist/translation/types/components/DataDisplay/ItemCard/index.d.ts +4 -0
  197. package/dist/translation/types/components/DataDisplay/ItemList/index.d.ts +4 -0
  198. package/dist/translation/types/general/index.d.ts +4 -0
  199. package/dist/translation/types/index.d.ts +17 -0
  200. package/dist/types.d.ts +174 -0
  201. package/dist/utils/functions/types.d.ts +4 -0
  202. package/dist/vite-env.d.ts +1 -0
  203. package/package.json +7 -3
  204. package/dist/chunks/InputWrapper.7RKY3QZ2.js +0 -40
  205. package/dist/chunks/index.0RmfE2Nm.js +0 -757
  206. package/dist/chunks/useKitLocale.96CdK3og.js +0 -11
package/CHANGELOG.md CHANGED
@@ -1,6 +1,60 @@
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
+
8
+
9
+ ### 🐛 Bug Fixes
10
+ * **Build**: Build as EsModule and commonjs module (@evoiron)
11
+
12
+ ## [2.0.0](https://www.npmjs.com/package/aristid-ds/v/2.0.0) (2024-03-06)
13
+ ### ✨ Features
14
+ * **⚠️ Breaking change - Modal:** (@evoiron)
15
+ * update Modal Design
16
+ * update confirmModal Options:
17
+ * remove `secondLine` property
18
+ * rename `firstLine` to `content`
19
+ * add `dangerConfirm` property to show Cta Button as danger look n' feel,
20
+ * add `showCloseIcon` to display top tight button for closing
21
+ * **Section:** (@Delmotte-Vincent)
22
+ * Add new component Section
23
+ * **Typography:**
24
+ * update default typography color (@evoiron)
25
+ * **InputWrapper:**
26
+ * Add 4 properties: (@evoiron)
27
+ * `required`: show a red asterisk right after the label
28
+ * `actions`: an array of items to display at the right of the label
29
+ * `onInfoClick`: When set, display a clickable info icon which triggers this event
30
+ * `infoIcon`: customise the infoIcon displayed
31
+ * These components now accept the 4 properties above: (@evoiron)
32
+ * `AutoComplete`, `Checkbox.Group`, `Radio.Group`, `ColorPicker`, `DatePicker`, `RangePicker`, `Input`, `InputNumber`, `Select`
33
+ * **ItemList**
34
+ * Add `draggable` property showing an icon that indicates the item is draggable (@fatb38)
35
+ * **Tabs:**
36
+ * Add `hideSeparator` prop to hide separator between tabs and content (@P0ppoff)
37
+ * (Style) Allow tabs center on extraContent (@P0ppoff)
38
+ * (Style) Reduce space between tabs and separator (@P0ppoff)
39
+
40
+ ### 🐛 Bug Fixes
41
+ * **Package**: include typescript definitions for each component in built package (@evoiron)
42
+ * **Select:**
43
+ * Fix default border color (@philippechevieux)
44
+ * **Badge:**
45
+ * Fix custom className bug (@evoiron)
46
+ * **Input:**
47
+ * Update color of content, label, placeholder and clear icon (@TdyP)
48
+ * Add aria-label on clear icon to improve testability (@TdyP)
49
+ * **InputNumber:**
50
+ * Update color of content, label, placeholder and clear icon (@TdyP)
51
+ * **ColorPicker:**
52
+ * Update color of content, label and placeholder (@TdyP)
53
+ * **DatePicker:**
54
+ * Update color of content, label and placeholder (@TdyP)
55
+
3
56
  ## [1.1.0](https://www.npmjs.com/package/aristid-ds/v/1.1.0) (2024-02-28)
57
+
4
58
  ### ✨ Features
5
59
  * **Nightly build:**
6
60
  * publish a nightly version of the package under `next`. (@evoiron)
@@ -19,8 +73,6 @@
19
73
  * **InputWrapper:**
20
74
  * Fix border default color (@philippechevieux)
21
75
 
22
-
23
-
24
76
  ## [1.0.1](https://www.npmjs.com/package/aristid-ds/v/1.0.1) (2024-02-26)
25
77
  ### 🐛 Bug Fixes
26
78
  * **Typography:**
@@ -1,80 +1,92 @@
1
1
  import "../../assets/index19.css";
2
- import r, { useState as p, useLayoutEffect as g, useRef as v, useEffect as K } from "react";
3
- import { ConfigProvider as E } from "antd";
4
- import { I as L } from "../../chunks/SnackBarProvider.v49b6mkx.js";
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 { I as S } from "../../chunks/SnackBarProvider.v49b6mkx.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 l from "lodash/merge";
8
- import { Style as C } from "react-style-tag";
9
- import { K as b } from "../../chunks/useKitTheme.KSAU-Pdv.js";
10
- import { KitAristidThemeGeneral as s } 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 I } from "../../translation/en-US/index.js";
14
- import { K as F, u as R } from "../../chunks/useKitLocale.96CdK3og.js";
15
- import { mapKitLocaleToAntdLocale as T } from "../../translation/utils/index.js";
16
- import { d as $ } from "../../chunks/notification-provider.KGowspef.js";
17
- const k = P`
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
+ import { KitAristidThemeGeneral as l } from "../../theme/aristid/general/index.js";
11
+ import { antdThemeConfig as I } from "../../theme/utils/tokens-mapper/index.js";
12
+ import { frFR as c } from "../../translation/fr-FR/index.js";
13
+ import { enUS as T } from "../../translation/en-US/index.js";
14
+ import { a as h, u as k } from "../../chunks/index.-7K1zF8V.js";
15
+ import { mapKitLocaleToAntdLocale as A } from "../../translation/utils/index.js";
16
+ import { d as F } from "../../chunks/notification-provider.KGowspef.js";
17
+ import "../DataDisplay/Avatar/index.js";
18
+ import "../DataDisplay/Badge/index.js";
19
+ import "../../chunks/index.fN8eYpwW.js";
20
+ import { KitEmpty as p } from "../DataDisplay/Empty/index.js";
21
+ import "../DataDisplay/LegacyCard/index.js";
22
+ import "../DataDisplay/Tabs/index.js";
23
+ import "../DataDisplay/Tree/index.js";
24
+ import "../DataDisplay/Tooltip/index.js";
25
+ import "classnames";
26
+ const R = P`
18
27
  .${(t) => t.id} {
19
- ${(t) => d(t.customTheme)};
28
+ ${(t) => f(t.customTheme)};
20
29
  }
21
- `, y = "aristid-ds-global", A = ({ children: t, customTheme: e, id: o }) => {
22
- const [n, i] = p(null), { theme: f, appId: c, spacing: u } = x(o, e);
30
+ `, $ = "aristid-ds-global", x = ({ children: t, customTheme: e, id: n }) => {
31
+ const [r, i] = d(null), { theme: u, appId: s, spacing: v } = _(n, e);
23
32
  return g(() => {
24
- const a = d(s, "--general");
33
+ const a = f(l, "--general");
25
34
  i(a);
26
- }, []), r.createElement(b.Provider, { value: { theme: f, appId: c, spacing: u } }, n !== null && r.createElement(
27
- r.Fragment,
35
+ }, []), o.createElement(y.Provider, { value: { theme: u, appId: s, spacing: v } }, r !== null && o.createElement(
36
+ o.Fragment,
28
37
  null,
29
- r.createElement(C, { id: y, hasSourceMap: !1 }, `
38
+ o.createElement(b, { id: $, hasSourceMap: !1 }, `
30
39
  :root{
31
- ${Object.keys(n).map((a) => `${a}: ${n[a]}`).join(";")}
40
+ ${Object.keys(r).map((a) => `${a}: ${r[a]}`).join(";")}
32
41
  }
33
42
  `),
34
- e && r.createElement(k, { id: c, customTheme: e }),
43
+ e && o.createElement(R, { id: s, customTheme: e }),
35
44
  t
36
45
  ));
37
- }, x = (t, e) => {
38
- var o;
39
- const n = v(t || "ds-" + S().substring(0, 8)), i = l(s.spacing, (o = e == null ? void 0 : e.general) === null || o === void 0 ? void 0 : o.spacing);
40
- return { theme: s, appId: n.current, spacing: i };
46
+ }, _ = (t, e) => {
47
+ var n;
48
+ 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);
49
+ return { theme: l, appId: r.current, spacing: i };
41
50
  }, j = ({ children: t }) => {
42
51
  const e = G();
43
- return r.createElement(F.Provider, { value: e }, t);
52
+ return o.createElement(h.Provider, { value: e }, t);
44
53
  }, G = () => {
45
- const [t, e] = p(m);
46
- return { locale: t, setKitLocale: (n) => {
47
- if (n.locale === "frFR") {
48
- const i = l(m, n);
54
+ const [t, e] = d(c);
55
+ return { locale: t, setKitLocale: (r) => {
56
+ if (r.locale === "frFR") {
57
+ const i = m(c, r);
49
58
  e(i);
50
59
  } else {
51
- const i = l(I, n);
60
+ const i = m(T, r);
52
61
  e(i);
53
62
  }
54
63
  } };
55
- }, Z = ({ children: t, locale: e, customTheme: o, id: n }) => r.createElement(
56
- A,
57
- { customTheme: o, id: n },
58
- r.createElement(
64
+ }, se = ({ children: t, locale: e, customTheme: n, id: r }) => o.createElement(
65
+ x,
66
+ { customTheme: n, id: r },
67
+ o.createElement(
59
68
  j,
60
69
  null,
61
- r.createElement(U, { locale: e }, t)
70
+ o.createElement(N, { locale: e }, t)
62
71
  )
63
- ), U = ({ children: t, locale: e }) => {
64
- const { setKitLocale: o } = R();
72
+ ), N = ({ children: t, locale: e }) => {
73
+ const { locale: n, setKitLocale: r } = k();
65
74
  return K(() => {
66
- e !== void 0 && o(e);
67
- }, [e, o]), r.createElement(
68
- E,
69
- { theme: h, locale: T(e) },
70
- r.createElement(
71
- $,
75
+ e !== void 0 && r(e);
76
+ }, [e, r]), o.createElement(
77
+ L,
78
+ { theme: I, locale: A(e), renderEmpty: () => {
79
+ var i;
80
+ return o.createElement(p, { className: "default-render", image: p.ASSET_LIST, description: (i = n.Empty) === null || i === void 0 ? void 0 : i.noData });
81
+ } },
82
+ o.createElement(
83
+ F,
72
84
  null,
73
- r.createElement(L, null),
85
+ o.createElement(S, null),
74
86
  t
75
87
  )
76
88
  );
77
89
  };
78
90
  export {
79
- Z as KitApp
91
+ se as KitApp
80
92
  };
@@ -0,0 +1,6 @@
1
+ import {KitHTMLAttributes} from '../../types';
2
+ import {ReactNode} from 'react';
3
+
4
+ export interface KitAppProps extends KitHTMLAttributes {
5
+ children?: ReactNode;
6
+ }
@@ -0,0 +1,21 @@
1
+ import {AvatarProps} from 'antd';
2
+ import {GroupProps} from 'antd/es/avatar';
3
+ import {KitHTMLAttributes} from '../../../types';
4
+ import {FunctionComponent} from 'react';
5
+ import {KitColorProp} from '../../../utils/functions/types';
6
+
7
+ type AntdAvatarTypesToOmit = '';
8
+ type AntdAvatarGroupTypesToOmit = 'maxStyle';
9
+
10
+ export interface IKitAvatar extends Omit<AvatarProps, AntdAvatarTypesToOmit>, KitHTMLAttributes<HTMLSpanElement> {
11
+ color?: KitColorProp;
12
+ secondaryColorInvert?: boolean;
13
+ }
14
+
15
+ export interface IKitAvatarGroup
16
+ extends Omit<GroupProps, AntdAvatarGroupTypesToOmit>,
17
+ KitHTMLAttributes<HTMLDivElement> {}
18
+
19
+ export type KitAvatarCompoundedComponent = FunctionComponent<IKitAvatar> & {
20
+ Group: FunctionComponent<IKitAvatarGroup>;
21
+ };
@@ -1,18 +1,18 @@
1
1
  import "../../../assets/index.css";
2
- import l, { useMemo as p } from "react";
3
- import { Badge as g } from "antd";
4
- import { u } from "../../../chunks/useKitTheme.KSAU-Pdv.js";
5
- import { isValidColor as c, getColor as d, getLighterColor as f } from "../../../utils/functions/index.js";
6
- import { kitBadgeCssTokens as m } from "../../../theme/aristid/components/DataDisplay/Badge/index.js";
7
- import n from "classnames";
8
- const k = {
2
+ import g, { useMemo as l } from "react";
3
+ import { Badge as u } from "antd";
4
+ import { u as d } from "../../../chunks/useKitTheme.KSAU-Pdv.js";
5
+ import { isValidColor as f, getColor as n, getLighterColor as c } from "../../../utils/functions/index.js";
6
+ import { kitBadgeCssTokens as s } from "../../../theme/aristid/components/DataDisplay/Badge/index.js";
7
+ import k from "classnames";
8
+ const b = {
9
9
  "kit-badge": "_kit-badge_16zpm_2"
10
- }, B = (t, e) => !t || !c(t) ? null : {
11
- [m.colors.background.default]: d(t, e),
12
- [m.colors.typography.default]: f(t, e)
13
- }, C = ({ color: t, style: e, secondaryColorInvert: o = !1, ...s }) => {
14
- const { appId: a } = u(), i = p(() => ({ ...e, ...B(t, o) }), [t, o, e]), r = n(a, k["kit-badge"], s.className);
15
- return l.createElement(g, { style: i, className: r, ...s });
10
+ }, B = (t, e) => !t || !f(t) ? null : {
11
+ [s.colors.background.default]: n(t, e),
12
+ [s.colors.typography.default]: c(t, e)
13
+ }, C = ({ color: t, style: e, secondaryColorInvert: o = !1, className: m, ...r }) => {
14
+ const { appId: a } = d(), i = l(() => ({ ...e, ...B(t, o) }), [t, o, e]), p = k(a, b["kit-badge"], m);
15
+ return g.createElement(u, { style: i, ...r, className: p });
16
16
  };
17
17
  C.displayName = "KitBadge";
18
18
  export {
@@ -0,0 +1,10 @@
1
+ import {BadgeProps} from 'antd';
2
+ import {KitHTMLAttributes} from '../../../types';
3
+ import {KitColorProp} from '../../../utils/functions/types';
4
+
5
+ type AntdBadgeTypesToOmit = 'color' | 'size' | 'offset' | 'text';
6
+
7
+ export interface IKitBadge extends KitHTMLAttributes<HTMLDivElement>, Omit<BadgeProps, AntdBadgeTypesToOmit> {
8
+ color?: KitColorProp;
9
+ secondaryColorInvert?: boolean;
10
+ }
@@ -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.0RmfE2Nm.js";
11
+ import { K as y } from "../../../chunks/index.fN8eYpwW.js";
12
12
  import "../../DataEntry/Switch/index.js";
13
13
  import "../../DataEntry/DatePicker/index.js";
14
14
  import "../../DataEntry/AutoComplete/index.js";
@@ -22,7 +22,7 @@ import "../../Navigation/DropDown/index.js";
22
22
  import "../../Navigation/Steps/index.js";
23
23
  import "antd";
24
24
  import "../../../chunks/useKitTheme.KSAU-Pdv.js";
25
- import "../../../chunks/styles.module.x1Oajwjm.js";
25
+ import "../../../chunks/styles.module.h70MuyQF.js";
26
26
  export {
27
27
  y as KitCard
28
28
  };
@@ -0,0 +1,32 @@
1
+ import {CSSProperties, ReactNode} from 'react';
2
+ import {IKitTagConfig} from '../../DataDisplay/Tag/types';
3
+ import {CheckboxChangeEvent} from 'antd/es/checkbox';
4
+ import {SwitchChangeEventHandler} from 'antd/es/switch';
5
+
6
+ export interface IKitCard {
7
+ title: string;
8
+ actions?: IKitCardAction[];
9
+ activated?: boolean;
10
+ brandingBar?: boolean;
11
+ className?: string;
12
+ description?: string;
13
+ extra?: string;
14
+ style?: CSSProperties;
15
+ disabled?: boolean;
16
+ previewSrc?: string;
17
+ onActivate?: SwitchChangeEventHandler;
18
+ onSelect?: (e: CheckboxChangeEvent) => void;
19
+ selected?: boolean;
20
+ tags?: IKitTagConfig[];
21
+ }
22
+
23
+ export interface IKitCardAction {
24
+ key: string;
25
+ label: string;
26
+ icon: ReactNode;
27
+ onClick: (e: unknown) => void;
28
+ }
29
+
30
+ export interface IStyledKitCard {
31
+ $brandingBar: boolean;
32
+ }
@@ -1,4 +1,4 @@
1
- import { b as e } from "../../../chunks/index.0RmfE2Nm.js";
1
+ import { b as e } from "../../../chunks/index.fN8eYpwW.js";
2
2
  export {
3
3
  e as KitCollapse
4
4
  };
@@ -0,0 +1,68 @@
1
+ import {CollapseProps} from 'antd';
2
+ import {ReactNode, MouseEvent, ReactInstance, KeyboardEvent, FunctionComponent} from 'react';
3
+ import {KitHTMLAttributes} from '../../../types';
4
+ import {SwitchChangeEventHandler} from 'antd/es/switch';
5
+
6
+ type AntdCollapseTypesToOmit = 'bordered' | 'expandIconPosition' | 'ghost';
7
+
8
+ export interface IKitCollapse extends Omit<CollapseProps, AntdCollapseTypesToOmit>, KitHTMLAttributes<HTMLDivElement> {}
9
+
10
+ export interface IKitHeader {
11
+ imageSrc?: string;
12
+ title?: string;
13
+ description?: string;
14
+ tagContent?: ReactNode;
15
+ onSwitchChange?: SwitchChangeEventHandler;
16
+ disabled?: boolean;
17
+ }
18
+
19
+ export interface IKitHeaderSwitch {
20
+ onSwitchChange: NonNullable<IKitHeader['onSwitchChange']>;
21
+ disabled: NonNullable<IKitHeader['disabled']>;
22
+ }
23
+
24
+ export interface IKitHeaderImage {
25
+ imageSrc: NonNullable<IKitHeader['imageSrc']>;
26
+ }
27
+
28
+ export interface IKitHeaderContent {
29
+ title: IKitHeader['title'];
30
+ description: IKitHeader['description'];
31
+ tagContent: IKitHeader['tagContent'];
32
+ disabled: IKitHeader['disabled'];
33
+ }
34
+
35
+ export interface IKitMenuInfo {
36
+ key: string;
37
+ keyPath: string[];
38
+ /** @deprecated This will not support in future. You should avoid to use this */
39
+ item: ReactInstance;
40
+ domEvent: MouseEvent<HTMLElement> | KeyboardEvent<HTMLElement>;
41
+ }
42
+
43
+ interface IAction {
44
+ icon: ReactNode;
45
+ label: string;
46
+ onClick?: (e: MouseEvent<HTMLElement> | IKitMenuInfo) => void;
47
+ }
48
+
49
+ interface IActions extends Array<IAction> {}
50
+
51
+ export interface IKitHeaderExtra {
52
+ actions?: IActions;
53
+ disabled?: boolean;
54
+ }
55
+
56
+ export interface IKitHeaderExtraActions {
57
+ actions: NonNullable<IKitHeaderExtra['actions']>;
58
+ disabled: NonNullable<IKitHeaderExtra['disabled']>;
59
+ }
60
+
61
+ export interface IKitHeaderExtraMoreActions {
62
+ actions: NonNullable<IKitHeaderExtra['actions']>;
63
+ }
64
+
65
+ export type KitCollapseCompoundedComponent = FunctionComponent<IKitCollapse> & {
66
+ Header: FunctionComponent<IKitHeader>;
67
+ HeaderExtra: FunctionComponent<IKitHeaderExtra>;
68
+ };
@@ -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;