aristid-ds 20.0.0 → 20.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (194) hide show
  1. package/CHANGELOG.md +129 -0
  2. package/dist/Kit/App/index.js +1 -1
  3. package/dist/Kit/DataDisplay/Avatar/index.js +1 -1
  4. package/dist/Kit/DataDisplay/Badge/index.js +1 -1
  5. package/dist/Kit/DataDisplay/Card/index.js +1 -1
  6. package/dist/Kit/DataDisplay/Carousel/index.js +1 -1
  7. package/dist/Kit/DataDisplay/Comment/index.js +1 -1
  8. package/dist/Kit/DataDisplay/Empty/index.js +1 -1
  9. package/dist/Kit/DataDisplay/Error/index.js +1 -1
  10. package/dist/Kit/DataDisplay/IdCard/index.js +1 -1
  11. package/dist/Kit/DataDisplay/ItemCard/index.js +1 -1
  12. package/dist/Kit/DataDisplay/ItemList/index.js +1 -1
  13. package/dist/Kit/DataDisplay/Kanban/KanbanCard.d.ts +12 -0
  14. package/dist/Kit/DataDisplay/Kanban/KanbanColumn.d.ts +20 -0
  15. package/dist/Kit/DataDisplay/Kanban/KanbanItem.d.ts +14 -0
  16. package/dist/Kit/DataDisplay/Kanban/index.d.ts +8 -0
  17. package/dist/Kit/DataDisplay/Kanban/index.js +1 -0
  18. package/dist/Kit/DataDisplay/Kanban/types.d.ts +114 -0
  19. package/dist/Kit/DataDisplay/RedirectCard/index.js +1 -1
  20. package/dist/Kit/DataDisplay/Tab/TabDropdownButton.d.ts +7 -0
  21. package/dist/Kit/DataDisplay/Tab/index.d.ts +6 -1
  22. package/dist/Kit/DataDisplay/Tab/index.js +1 -1
  23. package/dist/Kit/DataDisplay/Tab/types.d.ts +8 -0
  24. package/dist/Kit/DataDisplay/Table/KitTableExpandButton.d.ts +2 -1
  25. package/dist/Kit/DataDisplay/Table/index.js +1 -1
  26. package/dist/Kit/DataDisplay/Tag/index.js +1 -1
  27. package/dist/Kit/DataDisplay/Tag/types.d.ts +12 -1
  28. package/dist/Kit/DataDisplay/ToolBar/index.d.ts +3 -0
  29. package/dist/Kit/DataDisplay/ToolBar/index.js +1 -0
  30. package/dist/Kit/DataDisplay/ToolBar/types.d.ts +11 -0
  31. package/dist/Kit/DataEntry/AutoComplete/index.js +2 -2
  32. package/dist/Kit/DataEntry/Checkbox/index.js +1 -1
  33. package/dist/Kit/DataEntry/ColorPicker/index.js +1 -1
  34. package/dist/Kit/DataEntry/DatePicker/DatePicker.d.ts +1 -1
  35. package/dist/Kit/DataEntry/DatePicker/RangePicker.d.ts +1 -1
  36. package/dist/Kit/DataEntry/DatePicker/index.js +1 -1
  37. package/dist/Kit/DataEntry/DatePicker/preset/useActiveDatePickerPreset.d.ts +1 -1
  38. package/dist/Kit/DataEntry/DatePicker/types.d.ts +2 -0
  39. package/dist/Kit/DataEntry/Filter/FilterButton.d.ts +1 -2
  40. package/dist/Kit/DataEntry/Filter/index.js +1 -1
  41. package/dist/Kit/DataEntry/Filter/types.d.ts +19 -3
  42. package/dist/Kit/DataEntry/Input/index.js +1 -1
  43. package/dist/Kit/DataEntry/Input/types.d.ts +1 -0
  44. package/dist/Kit/DataEntry/InputNumber/index.js +1 -1
  45. package/dist/Kit/DataEntry/InputNumber/types.d.ts +1 -0
  46. package/dist/Kit/DataEntry/InputWrapper/index.js +1 -1
  47. package/dist/Kit/DataEntry/Radio/index.js +1 -1
  48. package/dist/Kit/DataEntry/Rate/index.js +1 -1
  49. package/dist/Kit/DataEntry/RichText/MenuBar/FontSizeSelect/index.js +1 -1
  50. package/dist/Kit/DataEntry/RichText/MenuBar/LinkButton/index.js +1 -1
  51. package/dist/Kit/DataEntry/RichText/MenuBar/MenuActionList/index.d.ts +3 -3
  52. package/dist/Kit/DataEntry/RichText/MenuBar/MenuActionList/index.js +28 -18
  53. package/dist/Kit/DataEntry/RichText/MenuBar/MenuActionList/types.d.ts +4 -0
  54. package/dist/Kit/DataEntry/RichText/MenuBar/ShowMoreButton.d.ts +1 -1
  55. package/dist/Kit/DataEntry/RichText/MenuBar/index.d.ts +1 -1
  56. package/dist/Kit/DataEntry/RichText/MenuBar/index.js +1 -1
  57. package/dist/Kit/DataEntry/RichText/MenuBar/types.d.ts +2 -0
  58. package/dist/Kit/DataEntry/RichText/index.js +1 -1
  59. package/dist/Kit/DataEntry/SearchInput/index.js +1 -1
  60. package/dist/Kit/DataEntry/Select/LoadingSuffix.d.ts +2 -0
  61. package/dist/Kit/DataEntry/Select/index.js +1 -1
  62. package/dist/Kit/DataEntry/TreeSelect/index.js +1 -1
  63. package/dist/Kit/DataEntry/TreeSelect/useIcons.d.ts +4 -2
  64. package/dist/Kit/DataEntry/Upload/index.js +1 -1
  65. package/dist/Kit/Feedback/Alert/index.js +1 -1
  66. package/dist/Kit/Feedback/Modal/index.js +1 -1
  67. package/dist/Kit/Feedback/Notification/index.js +1 -1
  68. package/dist/Kit/Feedback/Progress/index.js +1 -1
  69. package/dist/Kit/Feedback/SnackBar/index.js +5 -1
  70. package/dist/Kit/General/Button/index.js +1 -1
  71. package/dist/Kit/General/DynamicActions/index.js +1 -1
  72. package/dist/Kit/General/Icon/index.js +1 -1
  73. package/dist/Kit/General/Typography/index.js +1 -1
  74. package/dist/Kit/Layout/PageLayout/index.js +1 -1
  75. package/dist/Kit/Navigation/DropDown/index.js +52 -38
  76. package/dist/Kit/Navigation/Header/index.js +1 -1
  77. package/dist/Kit/Navigation/PageHeader/index.js +1 -1
  78. package/dist/Kit/Navigation/Pagination/index.js +1 -1
  79. package/dist/Kit/Navigation/SideMenu/index.js +1 -1
  80. package/dist/Kit/Navigation/SidePanel/index.js +1 -1
  81. package/dist/Kit/index.d.ts +4 -0
  82. package/dist/Kit/index.js +62 -60
  83. package/dist/assets/App.css +1 -1
  84. package/dist/assets/Button.css +1 -1
  85. package/dist/assets/ColorPicker.css +1 -1
  86. package/dist/assets/DatePicker.css +1 -1
  87. package/dist/assets/Filter.css +1 -1
  88. package/dist/assets/Input.css +1 -1
  89. package/dist/assets/Kanban.css +1 -0
  90. package/dist/assets/LoadingSuffix.css +1 -0
  91. package/dist/assets/MenuBar.css +1 -1
  92. package/dist/assets/RichText.css +1 -1
  93. package/dist/assets/SideMenu.css +1 -1
  94. package/dist/assets/Tab.css +1 -1
  95. package/dist/assets/Tag.css +1 -1
  96. package/dist/assets/ToolBar.css +1 -0
  97. package/dist/assets/icons/loader/faKitLoader.d.ts +2 -0
  98. package/dist/chunks/{Alert.CQaVbuFR.js → Alert.CHcxwc-7.js} +2 -2
  99. package/dist/chunks/{App.D0rw9orm.js → App.DEAyG_cT.js} +4 -4
  100. package/dist/chunks/{Avatar.BHlNyW0q.js → Avatar.CHhPAXNx.js} +1 -1
  101. package/dist/chunks/{Avatar.DysCcyLq.js → Avatar.CPy-hK8w.js} +1 -1
  102. package/dist/chunks/{Badge.B__O4nmc.js → Badge.tu17MdMt.js} +1 -1
  103. package/dist/chunks/Button.Cf2t8x-g.js +152 -0
  104. package/dist/chunks/{Card.Cq08rN_s.js → Card.BifWds4Q.js} +1 -1
  105. package/dist/chunks/{Carousel.BlbPUDYo.js → Carousel.D_UPa7c6.js} +2 -1
  106. package/dist/chunks/{Checkbox.CklNShKc.js → Checkbox.C0E-Lf9F.js} +1 -1
  107. package/dist/chunks/{ColorPicker.gPY0qyUV.js → ColorPicker.CXPDOjlD.js} +5 -5
  108. package/dist/chunks/{Comment.DmUzK6J4.js → Comment.D3uQOVRA.js} +1 -1
  109. package/dist/chunks/DatePicker.CZ7uUpci.js +283 -0
  110. package/dist/chunks/{DynamicActions.DK0mupe6.js → DynamicActions.B0RCwP59.js} +1 -1
  111. package/dist/chunks/{Empty.kPH-hJ9V.js → Empty.C_H88Lwp.js} +1 -1
  112. package/dist/chunks/{Error.CYRnZXNg.js → Error.DtFtGSNd.js} +1 -1
  113. package/dist/chunks/Filter.bcFfECQ2.js +91 -0
  114. package/dist/chunks/{FontSizeSelect.CFAIqibs.js → FontSizeSelect.BEujUTOk.js} +1 -1
  115. package/dist/chunks/{Header.C7xrnZDI.js → Header.CjmOOvCM.js} +3 -3
  116. package/dist/chunks/{Icon.DRPmn7dQ.js → Icon.DbHbt0HM.js} +1 -1
  117. package/dist/chunks/{IdCard.Dx6_WU3t.js → IdCard.DcdzxJ6s.js} +1 -1
  118. package/dist/chunks/{Input.CNLvspAE.js → Input.NJ0gxOKB.js} +201 -177
  119. package/dist/chunks/InputNumber.ArmZWyjD.js +59 -0
  120. package/dist/chunks/{InputWrapper.DXw2Vcpa.js → InputWrapper.UG5UbUiq.js} +1 -1
  121. package/dist/chunks/{InternalSizeChanger.CvYkvotd.js → InternalSizeChanger.4uhUYdQf.js} +2 -2
  122. package/dist/chunks/{ItemCard.CyPAPDy2.js → ItemCard.I_EZWDr7.js} +4 -4
  123. package/dist/chunks/{ItemList.Cy8wRu3i.js → ItemList.ZRUcXI2B.js} +4 -4
  124. package/dist/chunks/Kanban.DlRMF3Pf.js +478 -0
  125. package/dist/chunks/{LinkButton.CzpCbe5U.js → LinkButton.VSCUoTOf.js} +3 -3
  126. package/dist/chunks/LoadingSuffix.DoHzo7nz.js +13 -0
  127. package/dist/chunks/MenuBar.BKo3YUWL.js +86 -0
  128. package/dist/chunks/{Modal.Bi8z9VE0.js → Modal.BGfgvCM-.js} +5 -5
  129. package/dist/chunks/{Notification.BrJDgjWr.js → Notification.BvB2WQpw.js} +4 -4
  130. package/dist/chunks/{PageHeader.CLKSCN4a.js → PageHeader.CK5neQHJ.js} +3 -3
  131. package/dist/chunks/{PageLayout.D4BnVUAq.js → PageLayout.CypWl6mK.js} +2 -2
  132. package/dist/chunks/{Pagination.Dqci6TDr.js → Pagination.D2RZjMJN.js} +1 -1
  133. package/dist/chunks/{Progress.DIpbT4Go.js → Progress.DGZSgm84.js} +1 -1
  134. package/dist/chunks/{Radio.Cik5u8WU.js → Radio.BpOV2_Ga.js} +1 -1
  135. package/dist/chunks/{Rate.DOR2Ky6x.js → Rate.ClZk2tCh.js} +1 -1
  136. package/dist/chunks/{RedirectCard.C-uKjgcb.js → RedirectCard.NBOpek7n.js} +3 -3
  137. package/dist/chunks/{RichText.D98AWkBw.js → RichText.D_VsFypi.js} +73 -73
  138. package/dist/chunks/{SearchInput.De_qSxro.js → SearchInput.C7EnHTpX.js} +1 -1
  139. package/dist/chunks/Select.DAAdVERs.js +247 -0
  140. package/dist/chunks/{SideMenu.DQiL42Il.js → SideMenu.Cd2GjK9u.js} +9 -9
  141. package/dist/chunks/{SidePanel.C5nMMMse.js → SidePanel.C-fXIhny.js} +3 -3
  142. package/dist/chunks/SnackBar.CEjyTWJG.js +82 -0
  143. package/dist/chunks/Tab.BQDQSuOg.js +281 -0
  144. package/dist/chunks/{Table.BN-UWSUv.js → Table.DPRSm9mV.js} +63 -55
  145. package/dist/chunks/{Tag.gcpIeECV.js → Tag.By8jS_2F.js} +9 -9
  146. package/dist/chunks/ToolBar.qYFzjJ3S.js +22 -0
  147. package/dist/chunks/{TreeSelect.BRaAmKyc.js → TreeSelect.DD8WhA4W.js} +97 -95
  148. package/dist/chunks/{Typography.MRyLnlCD.js → Typography.dSdY4EZz.js} +1 -1
  149. package/dist/chunks/{Upload.CXHhjlnm.js → Upload.DxszpKf4.js} +5 -5
  150. package/dist/chunks/faKitLoader.BJKbv-bm.js +13 -0
  151. package/dist/chunks/{functions.Cjvxsib3.js → functions.m4ADIGGk.js} +2 -2
  152. package/dist/chunks/useLoadingWidthLock.CzCPeVNp.js +13 -0
  153. package/dist/index.d.ts +2 -0
  154. package/dist/index.es.js +56 -54
  155. package/dist/index.umd.js +4 -4
  156. package/dist/theme/aristid/general/utilities/index.js +12 -6
  157. package/dist/theme/types/utilities/index.d.ts +18 -0
  158. package/dist/theme/utils/tokens-mapper/DataEntry/DatePicker/index.d.ts +1 -0
  159. package/dist/theme/utils/tokens-mapper/DataEntry/DatePicker/index.js +1 -0
  160. package/dist/theme/utils/tokens-mapper/DataEntry/Input/index.d.ts +1 -0
  161. package/dist/theme/utils/tokens-mapper/DataEntry/Input/index.js +1 -0
  162. package/dist/theme/utils/tokens-mapper/DataEntry/InputNumber/index.d.ts +1 -0
  163. package/dist/theme/utils/tokens-mapper/DataEntry/InputNumber/index.js +1 -0
  164. package/dist/translation/en-US/components/DataDisplay/Kanban/index.d.ts +2 -0
  165. package/dist/translation/en-US/components/DataDisplay/Kanban/index.js +16 -0
  166. package/dist/translation/en-US/components/DataDisplay/Tab/index.js +5 -1
  167. package/dist/translation/en-US/index.js +34 -30
  168. package/dist/translation/fr-FR/components/DataDisplay/Kanban/index.d.ts +2 -0
  169. package/dist/translation/fr-FR/components/DataDisplay/Kanban/index.js +16 -0
  170. package/dist/translation/fr-FR/components/DataDisplay/Tab/index.js +5 -1
  171. package/dist/translation/fr-FR/index.js +34 -30
  172. package/dist/translation/pt-PT/components/DataDisplay/Kanban/index.d.ts +2 -0
  173. package/dist/translation/pt-PT/components/DataDisplay/Kanban/index.js +16 -0
  174. package/dist/translation/pt-PT/components/DataDisplay/Tab/index.js +5 -1
  175. package/dist/translation/pt-PT/index.js +34 -30
  176. package/dist/translation/types/components/DataDisplay/Kanban/index.d.ts +16 -0
  177. package/dist/translation/types/components/DataDisplay/Tab/index.d.ts +2 -0
  178. package/dist/translation/types/index.d.ts +2 -0
  179. package/dist/utils/functions/colorVariants.d.ts +18 -0
  180. package/dist/utils/functions/index.d.ts +1 -2
  181. package/dist/utils/functions/index.js +1 -1
  182. package/dist/utils/functions/types.d.ts +6 -0
  183. package/dist/utils/hooks/useLoadingWidthLock.d.ts +2 -0
  184. package/package.json +17 -19
  185. package/dist/assets/styles.css +0 -1
  186. package/dist/chunks/Button.mFkl13ue.js +0 -145
  187. package/dist/chunks/DatePicker.CtiOTI4X.js +0 -267
  188. package/dist/chunks/Filter.ByG4s-gy.js +0 -83
  189. package/dist/chunks/InputNumber.CtaH9tBG.js +0 -52
  190. package/dist/chunks/MenuBar.DigScTZX.js +0 -68
  191. package/dist/chunks/Select.S4xsr0eN.js +0 -248
  192. package/dist/chunks/SnackBar.CdNbNCdU.js +0 -83
  193. package/dist/chunks/Tab.BLLuv1ds.js +0 -188
  194. package/dist/chunks/styles.module.DRkuoXqe.js +0 -3
@@ -1,5 +1,5 @@
1
- import { t as e } from "./InputWrapper.DXw2Vcpa.js";
2
- import { t } from "./Typography.MRyLnlCD.js";
1
+ import { t as e } from "./InputWrapper.UG5UbUiq.js";
2
+ import { t } from "./Typography.dSdY4EZz.js";
3
3
  import { KitSpace as n } from "../Kit/General/Space/index.js";
4
4
  import { t as r } from "./Divider.C-DXVgoI.js";
5
5
  import { KitDropDown as i } from "../Kit/Navigation/DropDown/index.js";
@@ -7,39 +7,41 @@ import { n as a } from "./useKitSpellCheckConfig.C4Kv50zT.js";
7
7
  import { n as o } from "./useKitTheme.P5Q2DIyI.js";
8
8
  import { n as s } from "./useKitLocale.Y5XHnnYS.js";
9
9
  import { t as c } from "./useDeprecatedInputWrapper.CZ2-c80o.js";
10
- import { Input as l } from "antd";
11
- import { Fragment as u, jsx as d, jsxs as f } from "react/jsx-runtime";
12
- import { forwardRef as p, useCallback as m, useEffect as h, useLayoutEffect as g, useRef as _, useState as v } from "react";
13
- import y from "classnames";
14
- import { faCircleInfo as b, faCircleXmark as x, faEye as S, faEyeSlash as C, faWandMagicSparkles as w } from "@fortawesome/free-solid-svg-icons";
15
- import { FontAwesomeIcon as T } from "@fortawesome/react-fontawesome";
16
- import { fillRef as E } from "@rc-component/util/es/ref";
10
+ import { t as l } from "./useLoadingWidthLock.CzCPeVNp.js";
11
+ import { t as u } from "./faKitLoader.BJKbv-bm.js";
12
+ import { Input as d } from "antd";
13
+ import { Fragment as f, jsx as p, jsxs as m } from "react/jsx-runtime";
14
+ import { forwardRef as h, useCallback as g, useEffect as _, useLayoutEffect as v, useRef as y, useState as b } from "react";
15
+ import x from "classnames";
16
+ import { faCircleInfo as S, faCircleXmark as C, faEye as w, faEyeSlash as T, faWandMagicSparkles as E } from "@fortawesome/free-solid-svg-icons";
17
+ import { FontAwesomeIcon as D } from "@fortawesome/react-fontawesome";
18
+ import { fillRef as O } from "@rc-component/util/es/ref";
17
19
  import '../assets/Input.css';// src/spellCheck/components/styles.module.scss
18
- var D = {
20
+ var k = {
19
21
  "spell-check-correction-highlight": "_spell-check-correction-highlight_c251p_1",
20
22
  "spell-check-correction-highlight--with-underline": "_spell-check-correction-highlight--with-underline_c251p_9",
21
23
  "spell-check-wrapper": "_spell-check-wrapper_c251p_13"
22
- }, O = ({ top: e, left: t, width: n, height: r, showUnderline: i }) => d("div", {
23
- className: y(D["spell-check-correction-highlight"], { [D["spell-check-correction-highlight--with-underline"]]: i }),
24
+ }, A = ({ top: e, left: t, width: n, height: r, showUnderline: i }) => p("div", {
25
+ className: x(k["spell-check-correction-highlight"], { [k["spell-check-correction-highlight--with-underline"]]: i }),
24
26
  style: {
25
27
  top: e,
26
28
  left: t,
27
29
  width: n,
28
30
  height: r
29
31
  }
30
- }), k = 8, A = ({ highlightRects: e, corrections: a, activePopoverIndex: o, wrapperRef: s, onOpenChange: c, onSuggestionClick: l }) => {
31
- let p = s.current?.getBoundingClientRect();
32
- return !p || e.length === 0 ? null : e.map(({ correctionIndex: e, top: s, left: m, width: h, height: g, showUnderline: _ }) => {
32
+ }), j = 8, M = ({ highlightRects: e, corrections: a, activePopoverIndex: o, wrapperRef: s, onOpenChange: c, onSuggestionClick: l }) => {
33
+ let u = s.current?.getBoundingClientRect();
34
+ return !u || e.length === 0 ? null : e.map(({ correctionIndex: e, top: s, left: d, width: h, height: g, showUnderline: _ }) => {
33
35
  let v = a[e];
34
36
  if (!v) return null;
35
- let y = p.top + window.scrollY + s + g + k, x = p.left + window.scrollX + m;
36
- return d(i, {
37
+ let y = u.top + window.scrollY + s + g + j, b = u.left + window.scrollX + d;
38
+ return p(i, {
37
39
  open: o === e,
38
40
  onOpenChange: (e) => !e && c(null),
39
41
  trigger: ["click"],
40
42
  overlayStyle: {
41
43
  top: y,
42
- left: x,
44
+ left: b,
43
45
  right: "auto",
44
46
  bottom: "auto"
45
47
  },
@@ -48,56 +50,56 @@ var D = {
48
50
  label: e,
49
51
  onClick: () => l(e)
50
52
  })) },
51
- popupRender: (e) => f(n, {
53
+ popupRender: (e) => m(n, {
52
54
  direction: "vertical",
53
- children: [v?.message && f(u, { children: [f(n, {
55
+ children: [v?.message && m(f, { children: [m(n, {
54
56
  direction: "horizontal",
55
57
  size: "xxs",
56
- children: [d(T, { icon: b }), d(t.Text, {
58
+ children: [p(D, { icon: S }), p(t.Text, {
57
59
  size: "fontSize7",
58
60
  children: v.message
59
61
  })]
60
- }), d(r, { noMargin: !0 })] }), e]
62
+ }), p(r, { noMargin: !0 })] }), e]
61
63
  }),
62
- children: d(O, {
64
+ children: p(A, {
63
65
  top: s,
64
- left: m,
66
+ left: d,
65
67
  width: h,
66
68
  height: g,
67
69
  showUnderline: _
68
70
  })
69
71
  }, e);
70
72
  });
71
- }, j = ({ children: e, wrapperRef: t }) => d("div", {
73
+ }, N = ({ children: e, wrapperRef: t }) => p("div", {
72
74
  ref: t,
73
- className: D["spell-check-wrapper"],
75
+ className: k["spell-check-wrapper"],
74
76
  children: e
75
- }), M = (e, t) => {
77
+ }), P = (e, t) => {
76
78
  let n = Object.getOwnPropertyDescriptor(Object.getPrototypeOf(e), "value");
77
79
  n?.set && Reflect.apply(n.set, e, [t]);
78
80
  let r = Object.assign(new Event("input", { bubbles: !0 }), { _fromSpellCheck: !0 });
79
81
  e.dispatchEvent(r);
80
- }, N = [
82
+ }, F = [
81
83
  "autocorrect",
82
84
  "autocapitalize",
83
85
  "autocomplete"
84
- ], P = ({ inputRef: e, isSpellCheckingEnabled: t }) => {
85
- h(() => {
86
+ ], I = ({ inputRef: e, isSpellCheckingEnabled: t }) => {
87
+ _(() => {
86
88
  let n = e.current;
87
89
  if (!n || !t) return;
88
90
  let r = {
89
91
  spellcheck: n.spellcheck,
90
- ...Object.fromEntries(N.map((e) => [e, n.getAttribute(e)]))
92
+ ...Object.fromEntries(F.map((e) => [e, n.getAttribute(e)]))
91
93
  };
92
- return n.spellcheck = !1, N.forEach((e) => {
94
+ return n.spellcheck = !1, F.forEach((e) => {
93
95
  n.setAttribute(e, "off");
94
96
  }), () => {
95
- n.spellcheck = r.spellcheck, N.forEach((e) => {
97
+ n.spellcheck = r.spellcheck, F.forEach((e) => {
96
98
  r[e] === null ? n.removeAttribute(e) : n.setAttribute(e, r[e]);
97
99
  });
98
100
  };
99
101
  }, [e, t]);
100
- }, F = [
102
+ }, L = [
101
103
  "fontFamily",
102
104
  "fontSize",
103
105
  "fontWeight",
@@ -120,17 +122,17 @@ var D = {
120
122
  "overflowWrap",
121
123
  "tabSize",
122
124
  "width"
123
- ], I = (e, t, n) => {
125
+ ], R = (e, t, n) => {
124
126
  let r = e.tagName === "TEXTAREA", i = getComputedStyle(e), a = document.createElement("div");
125
- return a.setAttribute("aria-hidden", "true"), F.forEach((e) => {
127
+ return a.setAttribute("aria-hidden", "true"), L.forEach((e) => {
126
128
  a.style[e] = i[e];
127
129
  }), r || (a.style.whiteSpace = "pre", a.style.overflowX = "hidden"), a.style.position = "absolute", a.style.visibility = "hidden", a.style.top = `${n}px`, a.style.left = `${t}px`, a.style.width = `${e.getBoundingClientRect().width}px`, a.style.height = `${e.getBoundingClientRect().height}px`, a.style.overflow = "scroll", a.style.pointerEvents = "none", a;
128
- }, L = (e, t, n) => {
130
+ }, z = (e, t, n) => {
129
131
  let r = e.value, i = r.slice(0, n.offset), a = r.slice(n.offset, n.offset + n.length), o = r.slice(n.offset + n.length);
130
132
  t.innerHTML = "", t.appendChild(document.createTextNode(i));
131
133
  let s = document.createElement("span");
132
134
  return s.textContent = a, t.appendChild(s), t.appendChild(document.createTextNode(o)), t.scrollTop = e.scrollTop, t.scrollLeft = e.scrollLeft, s.getClientRects();
133
- }, R = (e, t, n, r) => {
135
+ }, B = (e, t, n, r) => {
134
136
  let i = getComputedStyle(e), a = parseFloat(i.borderLeftWidth) || 0, o = parseFloat(i.borderTopWidth) || 0, s = parseFloat(i.borderRightWidth) || 0, c = parseFloat(i.borderBottomWidth) || 0, l = e.tagName === "INPUT", u = l && parseFloat(i.paddingLeft) || 0, d = l && parseFloat(i.paddingTop) || 0, f = l && parseFloat(i.paddingRight) || 0, p = l && parseFloat(i.paddingBottom) || 0;
135
137
  return {
136
138
  clipLeft: n + a + u,
@@ -138,10 +140,10 @@ var D = {
138
140
  clipRight: n + t.width - s - f,
139
141
  clipBottom: r + t.height - c - p
140
142
  };
141
- }, z = (e, t, n) => {
142
- let r = e.getBoundingClientRect(), i = t.getBoundingClientRect(), a = r.left - i.left, o = r.top - i.top, s = I(e, a, o);
143
+ }, V = (e, t, n) => {
144
+ let r = e.getBoundingClientRect(), i = t.getBoundingClientRect(), a = r.left - i.left, o = r.top - i.top, s = R(e, a, o);
143
145
  t.appendChild(s);
144
- let { clipLeft: c, clipTop: l, clipRight: u, clipBottom: d } = R(e, r, a, o), f = n.flatMap((t, n) => Array.from(L(e, s, t)).map(({ left: e, top: t, width: r, height: a }) => {
146
+ let { clipLeft: c, clipTop: l, clipRight: u, clipBottom: d } = B(e, r, a, o), f = n.flatMap((t, n) => Array.from(z(e, s, t)).map(({ left: e, top: t, width: r, height: a }) => {
145
147
  let o = e - i.left, s = t - i.top;
146
148
  return {
147
149
  top: Math.max(l, s),
@@ -153,7 +155,7 @@ var D = {
153
155
  };
154
156
  }).filter(({ width: e, height: t }) => e > 0 && t > 0));
155
157
  return s.remove(), f;
156
- }, B = (e) => {
158
+ }, H = (e) => {
157
159
  let t = e.parentElement;
158
160
  for (; t;) {
159
161
  let { overflow: e, overflowX: n, overflowY: r } = getComputedStyle(t);
@@ -161,26 +163,26 @@ var D = {
161
163
  t = t.parentElement;
162
164
  }
163
165
  return null;
164
- }, V = (e, t) => {
166
+ }, U = (e, t) => {
165
167
  let n = t.getBoundingClientRect(), r = e.getBoundingClientRect();
166
168
  return r.bottom <= n.top || r.top >= n.bottom || r.right <= n.left || r.left >= n.right;
167
- }, H = ({ wrapperRef: e, inputRef: t, corrections: n, isSpellCheckingEnabled: r, activePopoverIndex: i, setActivePopoverIndex: a }) => {
168
- let [o, s] = v([]), [c, l] = v(0), u = _(null);
169
- return h(() => {
170
- e.current && (u.current = B(e.current));
171
- }, [e]), g(() => {
172
- !r || !t.current || !e.current || n.length === 0 ? s([]) : s(z(t.current, e.current, n));
169
+ }, W = ({ wrapperRef: e, inputRef: t, corrections: n, isSpellCheckingEnabled: r, activePopoverIndex: i, setActivePopoverIndex: a }) => {
170
+ let [o, s] = b([]), [c, l] = b(0), u = y(null);
171
+ return _(() => {
172
+ e.current && (u.current = H(e.current));
173
+ }, [e]), v(() => {
174
+ !r || !t.current || !e.current || n.length === 0 ? s([]) : s(V(t.current, e.current, n));
173
175
  }, [
174
176
  n,
175
177
  c,
176
178
  t,
177
179
  e,
178
180
  r
179
- ]), h(() => {
181
+ ]), _(() => {
180
182
  let t = () => {
181
183
  if (i === null) return;
182
184
  let t = u.current;
183
- e.current && t && (V(e.current, t) ? a(null) : l((e) => e + 1));
185
+ e.current && t && (U(e.current, t) ? a(null) : l((e) => e + 1));
184
186
  };
185
187
  return window.addEventListener("scroll", t, { capture: !0 }), () => window.removeEventListener("scroll", t, { capture: !0 });
186
188
  }, [
@@ -193,26 +195,26 @@ var D = {
193
195
  r && (l((e) => e + 1), i !== null && a(null));
194
196
  }
195
197
  };
196
- }, U = 450, W = ({ inputRef: e, inputEnableSpellCheck: t }) => {
197
- let n = _(null), { config: r } = a(), [i, o] = v([]), [s, c] = v(null), l = _(null), u = _(null), p = _(!1), g = n.current?.getBoundingClientRect(), y = t && !!r && !!g;
198
- P({
198
+ }, G = 450, K = ({ inputRef: e, inputEnableSpellCheck: t }) => {
199
+ let n = y(null), { config: r } = a(), [i, o] = b([]), [s, c] = b(null), l = y(null), u = y(null), d = y(!1), f = n.current?.getBoundingClientRect(), h = t && !!r && !!f;
200
+ I({
199
201
  inputRef: e,
200
- isSpellCheckingEnabled: y
202
+ isSpellCheckingEnabled: h
201
203
  });
202
- let { highlightRects: b, onScroll: x } = H({
204
+ let { highlightRects: v, onScroll: x } = W({
203
205
  wrapperRef: n,
204
206
  inputRef: e,
205
207
  corrections: i,
206
- isSpellCheckingEnabled: y,
208
+ isSpellCheckingEnabled: h,
207
209
  activePopoverIndex: s,
208
210
  setActivePopoverIndex: c
209
211
  });
210
- h(() => () => {
212
+ _(() => () => {
211
213
  var e;
212
214
  clearTimeout(l.current ?? void 0), (e = u.current) == null || e.abort();
213
215
  }, []);
214
- let S = m((e) => {
215
- y ? (o([]), c(null), clearTimeout(l.current ?? void 0), l.current = setTimeout(() => {
216
+ let S = g((e) => {
217
+ h ? (o([]), c(null), clearTimeout(l.current ?? void 0), l.current = setTimeout(() => {
216
218
  (async () => {
217
219
  var t;
218
220
  if (e.trim()) {
@@ -225,15 +227,15 @@ var D = {
225
227
  }
226
228
  }
227
229
  })();
228
- }, r.debounceDelay ?? U)) : !r && t && console.warn("[spellCheck] Spell checking is enabled but there is no config provided. Please provide one in the KitApp component.");
230
+ }, r.debounceDelay ?? G)) : !r && t && console.warn("[spellCheck] Spell checking is enabled but there is no config provided. Please provide one in the KitApp component.");
229
231
  }, [
230
232
  r,
231
- y,
233
+ h,
232
234
  t
233
235
  ]), C = (e) => {
234
- e.nativeEvent._fromSpellCheck || (p.current = !1, S(e.target.value));
236
+ e.nativeEvent._fromSpellCheck || (d.current = !1, S(e.target.value));
235
237
  }, w = () => {
236
- if (!y) return;
238
+ if (!h) return;
237
239
  let t = e.current;
238
240
  if (!t) return;
239
241
  let n = t.selectionStart;
@@ -241,20 +243,20 @@ var D = {
241
243
  let r = i.findIndex((e) => n > e.offset && n < e.offset + e.length);
242
244
  c(r === -1 ? null : r);
243
245
  }, T = (t) => {
244
- if (!y) return;
246
+ if (!h) return;
245
247
  let n = e.current;
246
248
  if (!n || s === null) return;
247
249
  let r = i[s], a = t.length - r.length, l = n.value.slice(0, r.offset) + t + n.value.slice(r.offset + r.length);
248
- p.current = !0, M(n, l), o((e) => e.filter((e, t) => t !== s).map((e) => e.offset > r.offset ? {
250
+ d.current = !0, P(n, l), o((e) => e.filter((e, t) => t !== s).map((e) => e.offset > r.offset ? {
249
251
  ...e,
250
252
  offset: e.offset + a
251
253
  } : e)), c(null);
252
254
  };
253
255
  return {
254
- spellChecker: (e) => f(j, {
256
+ spellChecker: (e) => m(N, {
255
257
  wrapperRef: n,
256
- children: [e, d(A, {
257
- highlightRects: b,
258
+ children: [e, p(M, {
259
+ highlightRects: v,
258
260
  corrections: i,
259
261
  wrapperRef: n,
260
262
  activePopoverIndex: s,
@@ -262,200 +264,222 @@ var D = {
262
264
  onSuggestionClick: T
263
265
  })]
264
266
  }),
265
- onValueChange: m((e) => {
266
- p.current ? p.current = !1 : S(e);
267
+ onValueChange: g((e) => {
268
+ d.current ? d.current = !1 : S(e);
267
269
  }, [S]),
268
270
  scheduleCheck: S,
269
271
  onInputChange: C,
270
272
  onScroll: x,
271
273
  onInputClick: w
272
274
  };
273
- }, G = {
274
- "kit-input": "_kit-input_odiey_1",
275
- "kit-password": "_kit-password_odiey_229",
276
- "kit-textarea": "_kit-textarea_odiey_408"
277
- }, K = p(({ label: n, childrenOnly: r = !1, className: i, helper: a, htmlFor: u, wrapperClassName: f, allowClear: p = !0, required: m, actions: g, extra: v, disabled: b, placeholder: S, prefix: C, readonly: D = !1, readonlyLight: O = !1, AI: k = !1, size: A = "large", enableSpellCheck: j = !1, ...M }, N) => {
278
- let { appId: P } = o(), { locale: F } = s(), I = y(P, G["kit-input"], i, {
279
- "kit-input-readonly": D,
280
- "kit-input-ai": k
275
+ }, q = {
276
+ "kit-input": "_kit-input_1k777_1",
277
+ "kit-password": "_kit-password_1k777_271",
278
+ "kit-textarea": "_kit-textarea_1k777_458"
279
+ }, J = h(({ label: n, childrenOnly: r = !1, className: i, helper: a, htmlFor: h, wrapperClassName: g, allowClear: v = !0, required: b, actions: S, extra: w, disabled: T, placeholder: k, prefix: A, suffix: j, loading: M = !1, readonly: N = !1, readonlyLight: P = !1, AI: F = !1, size: I = "large", enableSpellCheck: L = !1, ...R }, z) => {
280
+ let { appId: B } = o(), { locale: V } = s(), H = M && !v && !!j, U = x(B, q["kit-input"], i, {
281
+ "kit-input-readonly": N,
282
+ "kit-input-ai": F,
283
+ "kit-input-loading-over": H,
284
+ "kit-input-loading-float": M && !v && !j
281
285
  });
282
286
  c("Input", {
283
287
  label: n,
284
288
  childrenOnly: r,
285
289
  helper: a,
286
- htmlFor: u,
287
- className: f,
288
- actions: g,
289
- extra: v,
290
- ...M
290
+ htmlFor: h,
291
+ className: g,
292
+ actions: S,
293
+ extra: w,
294
+ ...R
291
295
  });
292
- let L = _(null), { spellChecker: R, onValueChange: z, onInputChange: B, onScroll: V, onInputClick: H } = W({
293
- inputRef: L,
294
- inputEnableSpellCheck: j
295
- }), U = k && !C ? d(T, { icon: w }) : C;
296
- h(() => {
297
- j && typeof M.value == "string" && z(M.value);
296
+ let W = y(null);
297
+ l(M, () => W.current?.closest(".ant-input-affix-wrapper"));
298
+ let { spellChecker: G, onValueChange: J, onInputChange: Y, onScroll: X, onInputClick: Z } = K({
299
+ inputRef: W,
300
+ inputEnableSpellCheck: L
301
+ }), Q = F && !A ? p(D, { icon: E }) : A;
302
+ _(() => {
303
+ L && typeof R.value == "string" && J(R.value);
298
304
  }, [
299
- M.value,
300
- j,
301
- z
305
+ R.value,
306
+ L,
307
+ J
302
308
  ]);
303
- let K = d(l, {
304
- ...M,
305
- prefix: U,
309
+ let $ = p(d, {
310
+ ...R,
311
+ prefix: Q,
312
+ suffix: M ? m(f, { children: [H ? p("span", {
313
+ className: "kit-input-suffix-under",
314
+ children: j
315
+ }) : j, p(D, {
316
+ icon: u,
317
+ spin: !0,
318
+ className: "kit-input-loader"
319
+ })] }) : j,
320
+ "aria-busy": M || void 0,
306
321
  ref: (e) => {
307
- E(N, e), L.current = e?.input ?? null;
322
+ O(z, e), W.current = e?.input ?? null;
308
323
  },
309
- id: M.id ?? u,
310
- className: I,
311
- disabled: b || D,
312
- required: m,
313
- size: A,
314
- placeholder: !D && !O ? S : void 0,
315
- allowClear: p ? { clearIcon: d(T, {
316
- "aria-label": F.General?.clear,
317
- icon: x
318
- }) } : void 0,
324
+ id: R.id ?? h,
325
+ className: U,
326
+ disabled: T || N,
327
+ required: b,
328
+ size: I,
329
+ placeholder: !N && !P ? k : void 0,
330
+ allowClear: v && !M ? {
331
+ clearIcon: p(D, {
332
+ "aria-label": V.General?.clear,
333
+ icon: C
334
+ }),
335
+ label: V.General?.clear
336
+ } : void 0,
319
337
  onChange: (e) => {
320
338
  var t;
321
- (t = M.onChange) == null || t.call(M, e), j && B(e);
339
+ (t = R.onChange) == null || t.call(R, e), L && Y(e);
322
340
  },
323
341
  onScroll: (e) => {
324
342
  var t;
325
- (t = M.onScroll) == null || t.call(M, e), j && V();
343
+ (t = R.onScroll) == null || t.call(R, e), L && X();
326
344
  },
327
345
  onClick: (e) => {
328
346
  var t;
329
- (t = M.onClick) == null || t.call(M, e), j && H();
347
+ (t = R.onClick) == null || t.call(R, e), L && Z();
330
348
  }
331
349
  });
332
- return d(e, {
350
+ return p(e, {
333
351
  childrenOnly: r,
334
352
  label: n,
335
353
  helper: a,
336
- htmlFor: u,
337
- disabled: b,
338
- status: M.status,
339
- className: f,
340
- required: m,
341
- extra: v ?? g,
342
- AI: k,
343
- children: O ? d(t.Text, {
354
+ htmlFor: h,
355
+ disabled: T,
356
+ status: R.status,
357
+ className: g,
358
+ required: b,
359
+ extra: w ?? S,
360
+ AI: F,
361
+ children: P ? p(t.Text, {
344
362
  weight: "bold",
345
363
  size: "fontSize5",
346
- color: k ? "purple" : M.status === "error" ? "error" : void 0,
347
- children: M.value
348
- }) : j ? R(K) : K
364
+ color: F ? "purple" : R.status === "error" ? "error" : void 0,
365
+ children: R.value
366
+ }) : L ? G($) : $
349
367
  });
350
- }), q = p(({ label: t, className: n, helper: r, htmlFor: i, iconRender: a, wrapperClassName: u, allowClear: f = !0, disabled: p, readonly: m = !1, required: h, actions: g, extra: _, placeholder: v, size: b = "large", ...w }, E) => {
351
- let { appId: D } = o(), { locale: O } = s(), k = y(D, G["kit-password"], n, { "kit-password-readonly": m });
368
+ }), Y = h(({ label: t, className: n, helper: r, htmlFor: i, iconRender: a, wrapperClassName: l, allowClear: u = !0, disabled: f, readonly: m = !1, required: h, actions: g, extra: _, placeholder: v, size: y = "large", ...b }, S) => {
369
+ let { appId: E } = o(), { locale: O } = s(), k = x(E, q["kit-password"], n, { "kit-password-readonly": m });
352
370
  c("Password", {
353
371
  label: t,
354
372
  helper: r,
355
373
  htmlFor: i,
356
- className: u,
374
+ className: l,
357
375
  actions: g,
358
376
  extra: _,
359
- ...w
377
+ ...b
360
378
  });
361
- let A = (e) => e ? d(T, { icon: S }) : d(T, { icon: C });
362
- return d(e, {
379
+ let A = (e) => e ? p(D, { icon: w }) : p(D, { icon: T });
380
+ return p(e, {
363
381
  label: t,
364
382
  helper: r,
365
383
  htmlFor: i,
366
- disabled: p,
367
- status: w.status,
368
- className: u,
384
+ disabled: f,
385
+ status: b.status,
386
+ className: l,
369
387
  required: h,
370
388
  extra: _ ?? g,
371
- children: d(l.Password, {
372
- ...w,
389
+ children: p(d.Password, {
390
+ ...b,
373
391
  className: k,
374
392
  placeholder: m ? void 0 : v,
375
- disabled: p || m,
393
+ disabled: f || m,
376
394
  required: h,
377
- id: w.id ?? i,
378
- ref: E,
379
- size: b,
380
- allowClear: f ? { clearIcon: d(T, {
381
- "aria-label": O.General?.clear,
382
- icon: x
383
- }) } : void 0,
395
+ id: b.id ?? i,
396
+ ref: S,
397
+ size: y,
398
+ allowClear: u ? {
399
+ clearIcon: p(D, {
400
+ "aria-label": O.General?.clear,
401
+ icon: C
402
+ }),
403
+ label: O.General?.clear
404
+ } : void 0,
384
405
  iconRender: a ?? A
385
406
  })
386
407
  });
387
- }), J = p(({ label: n, className: r, helper: i, htmlFor: a, wrapperClassName: u, allowClear: f = !0, required: p, actions: m, extra: g, disabled: v, placeholder: b, readonly: S = !1, AI: C = !1, readonlyLight: w = !1, size: D = "large", enableSpellCheck: O = !1, ...k }, A) => {
388
- let { appId: j } = o(), { locale: M } = s(), N = y(j, G["kit-textarea"], r, {
389
- "kit-textarea-readonly": S,
390
- "kit-textarea-ai": C
408
+ }), X = h(({ label: n, className: r, helper: i, htmlFor: a, wrapperClassName: l, allowClear: u = !0, required: f, actions: m, extra: h, disabled: g, placeholder: v, readonly: b = !1, AI: S = !1, readonlyLight: w = !1, size: T = "large", enableSpellCheck: E = !1, ...k }, A) => {
409
+ let { appId: j } = o(), { locale: M } = s(), N = x(j, q["kit-textarea"], r, {
410
+ "kit-textarea-readonly": b,
411
+ "kit-textarea-ai": S
391
412
  });
392
413
  c("TextArea", {
393
414
  label: n,
394
415
  helper: i,
395
416
  htmlFor: a,
396
- className: u,
417
+ className: l,
397
418
  actions: m,
398
- extra: g,
419
+ extra: h,
399
420
  ...k
400
421
  });
401
- let P = _(null), { spellChecker: F, onValueChange: I, onInputChange: L, onScroll: R, onInputClick: z } = W({
422
+ let P = y(null), { spellChecker: F, onValueChange: I, onInputChange: L, onScroll: R, onInputClick: z } = K({
402
423
  inputRef: P,
403
- inputEnableSpellCheck: O
424
+ inputEnableSpellCheck: E
404
425
  });
405
- h(() => {
406
- O && typeof k.value == "string" && I(k.value);
426
+ _(() => {
427
+ E && typeof k.value == "string" && I(k.value);
407
428
  }, [
408
429
  k.value,
409
- O,
430
+ E,
410
431
  I
411
432
  ]);
412
- let B = d(l.TextArea, {
433
+ let B = p(d.TextArea, {
413
434
  ...k,
414
435
  ref: (e) => {
415
- E(A, e);
436
+ O(A, e);
416
437
  let t = e?.resizableTextArea;
417
438
  P.current = t?.textArea ?? null;
418
439
  },
419
440
  id: k.id ?? a,
420
441
  className: N,
421
- disabled: v || S,
422
- required: p,
423
- size: D,
424
- placeholder: !S && !w ? b : void 0,
425
- allowClear: f ? { clearIcon: d(T, {
426
- "aria-label": M.General?.clear,
427
- icon: x
428
- }) } : void 0,
442
+ disabled: g || b,
443
+ required: f,
444
+ size: T,
445
+ placeholder: !b && !w ? v : void 0,
446
+ allowClear: u ? {
447
+ clearIcon: p(D, {
448
+ "aria-label": M.General?.clear,
449
+ icon: C
450
+ }),
451
+ label: M.General?.clear
452
+ } : void 0,
429
453
  onChange: (e) => {
430
454
  var t;
431
- (t = k.onChange) == null || t.call(k, e), O && L(e);
455
+ (t = k.onChange) == null || t.call(k, e), E && L(e);
432
456
  },
433
457
  onScroll: (e) => {
434
458
  var t;
435
- (t = k.onScroll) == null || t.call(k, e), O && R();
459
+ (t = k.onScroll) == null || t.call(k, e), E && R();
436
460
  },
437
461
  onClick: (e) => {
438
462
  var t;
439
- (t = k.onClick) == null || t.call(k, e), O && z();
463
+ (t = k.onClick) == null || t.call(k, e), E && z();
440
464
  }
441
465
  });
442
- return d(e, {
466
+ return p(e, {
443
467
  label: n,
444
468
  helper: i,
445
469
  htmlFor: a,
446
- disabled: v,
470
+ disabled: g,
447
471
  status: k.status,
448
- className: u,
449
- required: p,
450
- extra: g ?? m,
451
- AI: C,
452
- children: w ? d(t.Text, {
472
+ className: l,
473
+ required: f,
474
+ extra: h ?? m,
475
+ AI: S,
476
+ children: w ? p(t.Text, {
453
477
  weight: "bold",
454
478
  size: "fontSize5",
455
- color: C ? "purple" : k.status === "error" ? "error" : void 0,
479
+ color: S ? "purple" : k.status === "error" ? "error" : void 0,
456
480
  children: k.value
457
- }) : O ? F(B) : B
481
+ }) : E ? F(B) : B
458
482
  });
459
- }), Y = K;
460
- Y.displayName = "KitInput", Y.TextArea = J, Y.Password = q;
461
- export { Y as t };
483
+ }), Z = J;
484
+ Z.displayName = "KitInput", Z.TextArea = X, Z.Password = Y;
485
+ export { Z as t };