aristid-ds 7.2.0-3aead0c → 7.2.0-e49c136

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 (171) hide show
  1. package/CHANGELOG.md +295 -215
  2. package/dist/Kit/App/index.js +2 -2
  3. package/dist/Kit/DataDisplay/Avatar/index.js +1 -1
  4. package/dist/Kit/DataDisplay/Badge/index.js +8 -8
  5. package/dist/Kit/DataDisplay/Card/index.js +2 -2
  6. package/dist/Kit/DataDisplay/Collapse/index.js +1 -1
  7. package/dist/Kit/DataDisplay/Empty/index.js +1 -1
  8. package/dist/Kit/DataDisplay/Error/index.js +2 -2
  9. package/dist/Kit/DataDisplay/IdCard/index.js +1 -1
  10. package/dist/Kit/DataDisplay/Image/index.js +9 -9
  11. package/dist/Kit/DataDisplay/ItemCard/index.js +1 -1
  12. package/dist/Kit/DataDisplay/ItemList/index.d.ts +2 -2
  13. package/dist/Kit/DataDisplay/ItemList/index.js +2 -2
  14. package/dist/Kit/DataDisplay/LegacyCard/index.js +5 -5
  15. package/dist/Kit/DataDisplay/Table/index.js +33 -33
  16. package/dist/Kit/DataDisplay/Tabs/index.js +4 -4
  17. package/dist/Kit/DataDisplay/Tag/Tag.d.ts +2 -2
  18. package/dist/Kit/DataDisplay/Tag/index.js +1 -1
  19. package/dist/Kit/DataDisplay/Tree/index.js +4 -4
  20. package/dist/Kit/DataDisplay/index.js +1 -1
  21. package/dist/Kit/DataEntry/AutoComplete/index.d.ts +2 -2
  22. package/dist/Kit/DataEntry/AutoComplete/index.js +10 -10
  23. package/dist/Kit/DataEntry/Checkbox/Checkbox.d.ts +2 -2
  24. package/dist/Kit/DataEntry/Checkbox/Group.d.ts +2 -3
  25. package/dist/Kit/DataEntry/Checkbox/index.js +14 -14
  26. package/dist/Kit/DataEntry/ColorPicker/index.js +5 -5
  27. package/dist/Kit/DataEntry/DatePicker/DatePicker.d.ts +2 -2
  28. package/dist/Kit/DataEntry/DatePicker/RangePicker.d.ts +4 -4
  29. package/dist/Kit/DataEntry/DatePicker/index.js +19 -19
  30. package/dist/Kit/DataEntry/DatePicker/types.d.ts +2 -0
  31. package/dist/Kit/DataEntry/Input/Input.d.ts +2 -2
  32. package/dist/Kit/DataEntry/Input/Password.d.ts +2 -2
  33. package/dist/Kit/DataEntry/Input/TextArea.d.ts +2 -2
  34. package/dist/Kit/DataEntry/Input/index.js +29 -24
  35. package/dist/Kit/DataEntry/Input/types.d.ts +2 -0
  36. package/dist/Kit/DataEntry/InputNumber/index.d.ts +2 -2
  37. package/dist/Kit/DataEntry/InputNumber/index.js +2 -2
  38. package/dist/Kit/DataEntry/InputWrapper/index.js +1 -1
  39. package/dist/Kit/DataEntry/Radio/Group.d.ts +2 -2
  40. package/dist/Kit/DataEntry/Radio/Radio.d.ts +2 -2
  41. package/dist/Kit/DataEntry/Radio/index.js +12 -12
  42. package/dist/Kit/DataEntry/Rate/index.d.ts +2 -2
  43. package/dist/Kit/DataEntry/Rate/index.js +1 -1
  44. package/dist/Kit/DataEntry/Select/index.js +2 -2
  45. package/dist/Kit/DataEntry/Select/types.d.ts +1 -0
  46. package/dist/Kit/DataEntry/Slider/index.d.ts +2 -2
  47. package/dist/Kit/DataEntry/Slider/index.js +8 -8
  48. package/dist/Kit/DataEntry/Switch/index.d.ts +2 -2
  49. package/dist/Kit/DataEntry/Switch/index.js +8 -8
  50. package/dist/Kit/DataEntry/Upload/Upload.d.ts +2 -2
  51. package/dist/Kit/DataEntry/Upload/index.js +8 -8
  52. package/dist/Kit/DataEntry/index.js +2 -2
  53. package/dist/Kit/Feedback/Alert/index.js +6 -6
  54. package/dist/Kit/Feedback/Modal/index.js +9 -9
  55. package/dist/Kit/Feedback/Notification/index.js +1 -1
  56. package/dist/Kit/Feedback/Notification/notification-provider.d.ts +2 -2
  57. package/dist/Kit/Feedback/SnackBar/index.js +9 -9
  58. package/dist/Kit/Feedback/index.js +1 -1
  59. package/dist/Kit/General/Button/index.js +10 -10
  60. package/dist/Kit/General/Icon/index.js +8 -8
  61. package/dist/Kit/General/Typography/Link.d.ts +2 -2
  62. package/dist/Kit/General/Typography/Paragraph.d.ts +2 -2
  63. package/dist/Kit/General/Typography/Text.d.ts +2 -2
  64. package/dist/Kit/General/Typography/Title.d.ts +2 -2
  65. package/dist/Kit/General/Typography/index.js +41 -50
  66. package/dist/Kit/Layout/Divider/index.js +9 -10
  67. package/dist/Kit/Layout/Divider/types.d.ts +0 -4
  68. package/dist/Kit/Layout/Section/index.js +8 -8
  69. package/dist/Kit/Navigation/Breadcrumb/index.js +9 -9
  70. package/dist/Kit/Navigation/Header/index.js +1 -1
  71. package/dist/Kit/Navigation/Menu/index.js +1 -1
  72. package/dist/Kit/Navigation/PageHeader/index.js +2 -2
  73. package/dist/Kit/Navigation/Pagination/index.d.ts +1 -1
  74. package/dist/Kit/Navigation/Pagination/index.js +1 -1
  75. package/dist/Kit/Navigation/SideMenu/index.js +1 -1
  76. package/dist/Kit/Navigation/Steps/index.js +6 -6
  77. package/dist/Kit/Navigation/index.js +1 -1
  78. package/dist/Kit/index.js +3 -3
  79. package/dist/assets/Avatar.css +1 -1
  80. package/dist/assets/InputWrapper.css +1 -1
  81. package/dist/assets/KitNotification.css +1 -1
  82. package/dist/assets/index.css +1 -1
  83. package/dist/assets/index10.css +1 -1
  84. package/dist/assets/index11.css +1 -1
  85. package/dist/assets/index12.css +1 -1
  86. package/dist/assets/index13.css +1 -1
  87. package/dist/assets/index15.css +1 -1
  88. package/dist/assets/index16.css +1 -1
  89. package/dist/assets/index17.css +1 -1
  90. package/dist/assets/index18.css +1 -1
  91. package/dist/assets/index19.css +1 -1
  92. package/dist/assets/index20.css +1 -1
  93. package/dist/assets/index21.css +1 -1
  94. package/dist/assets/index22.css +1 -1
  95. package/dist/assets/index23.css +1 -1
  96. package/dist/assets/index24.css +1 -1
  97. package/dist/assets/index25.css +1 -1
  98. package/dist/assets/index26.css +1 -1
  99. package/dist/assets/index27.css +1 -1
  100. package/dist/assets/index28.css +1 -1
  101. package/dist/assets/index29.css +1 -1
  102. package/dist/assets/index3.css +1 -1
  103. package/dist/assets/index31.css +1 -1
  104. package/dist/assets/index32.css +1 -1
  105. package/dist/assets/index4.css +1 -1
  106. package/dist/assets/index5.css +1 -1
  107. package/dist/assets/index6.css +1 -1
  108. package/dist/assets/index7.css +1 -1
  109. package/dist/assets/index8.css +1 -1
  110. package/dist/assets/index9.css +1 -1
  111. package/dist/assets/styles.css +1 -1
  112. package/dist/assets/styles2.css +1 -1
  113. package/dist/chunks/Avatar.icARSD26.js +30 -0
  114. package/dist/chunks/InputWrapper.RG8Q9Ntu.js +26 -0
  115. package/dist/chunks/{KitNotification.eFNdYjE1.js → KitNotification.YKY0mq-u.js} +5 -5
  116. package/dist/chunks/index.wMOo1bfz.js +572 -0
  117. package/dist/chunks/notification-provider.EgQZHEbE.js +74 -0
  118. package/dist/chunks/styles.module.Q_QQjQdX.js +8 -0
  119. package/dist/chunks/{styles.module.x1Oajwjm.js → styles.module.XgQ5x7Pq.js} +1 -1
  120. package/dist/index.es.js +3 -3
  121. package/dist/index.umd.js +7 -7
  122. package/dist/theme/aristid/components/Layout/Divider/index.js +1 -2
  123. package/dist/theme/aristid/general/colors/index.js +101 -149
  124. package/dist/theme/aristid/general/index.js +5 -3
  125. package/dist/theme/aristid/general/utilities/index.d.ts +3 -0
  126. package/dist/theme/aristid/general/utilities/index.js +107 -0
  127. package/dist/theme/types/components/Layout/Divider/index.d.ts +0 -2
  128. package/dist/theme/types/general/colors/index.d.ts +92 -196
  129. package/dist/theme/types/index.d.ts +2 -0
  130. package/dist/theme/types/utilities/index.d.ts +249 -0
  131. package/dist/theme/utils/testTokens.d.ts +31 -48
  132. package/dist/theme/utils/tokens-mapper/DataDisplay/Badge/index.d.ts +1 -0
  133. package/dist/theme/utils/tokens-mapper/DataDisplay/Badge/index.js +8 -7
  134. package/dist/theme/utils/tokens-mapper/DataDisplay/Collapse/index.d.ts +0 -1
  135. package/dist/theme/utils/tokens-mapper/DataDisplay/Collapse/index.js +4 -5
  136. package/dist/theme/utils/tokens-mapper/DataDisplay/Table/index.d.ts +0 -1
  137. package/dist/theme/utils/tokens-mapper/DataDisplay/Table/index.js +3 -5
  138. package/dist/theme/utils/tokens-mapper/DataDisplay/Tabs/index.js +8 -8
  139. package/dist/theme/utils/tokens-mapper/{DataEntry → DataDisplay}/Tag/index.d.ts +0 -2
  140. package/dist/theme/utils/tokens-mapper/DataDisplay/Tag/index.js +8 -0
  141. package/dist/theme/utils/tokens-mapper/DataDisplay/Tooltip/index.js +8 -8
  142. package/dist/theme/utils/tokens-mapper/DataDisplay/Tree/index.d.ts +0 -1
  143. package/dist/theme/utils/tokens-mapper/DataDisplay/Tree/index.js +6 -8
  144. package/dist/theme/utils/tokens-mapper/DataDisplay/index.d.ts +1 -0
  145. package/dist/theme/utils/tokens-mapper/DataDisplay/index.js +4 -2
  146. package/dist/theme/utils/tokens-mapper/DataEntry/Checkbox/index.js +8 -8
  147. package/dist/theme/utils/tokens-mapper/DataEntry/ColorPicker/index.d.ts +0 -2
  148. package/dist/theme/utils/tokens-mapper/DataEntry/ColorPicker/index.js +9 -11
  149. package/dist/theme/utils/tokens-mapper/DataEntry/DatePicker/index.js +16 -16
  150. package/dist/theme/utils/tokens-mapper/DataEntry/Form/index.js +2 -2
  151. package/dist/theme/utils/tokens-mapper/DataEntry/Input/index.js +10 -10
  152. package/dist/theme/utils/tokens-mapper/DataEntry/InputNumber/index.js +12 -12
  153. package/dist/theme/utils/tokens-mapper/DataEntry/Rate/index.js +1 -1
  154. package/dist/theme/utils/tokens-mapper/DataEntry/Select/index.js +6 -6
  155. package/dist/theme/utils/tokens-mapper/DataEntry/Slider/index.js +9 -9
  156. package/dist/theme/utils/tokens-mapper/Feedback/Alert/index.js +14 -14
  157. package/dist/theme/utils/tokens-mapper/Feedback/Progress/index.js +5 -5
  158. package/dist/theme/utils/tokens-mapper/Layout/Divider/index.d.ts +0 -1
  159. package/dist/theme/utils/tokens-mapper/Layout/Divider/index.js +7 -8
  160. package/dist/theme/utils/tokens-mapper/Navigation/Pagination/index.js +13 -13
  161. package/dist/theme/utils/tokens-mapper/Navigation/Steps/index.js +11 -11
  162. package/dist/theme/utils/tokens-mapper/index.js +26 -26
  163. package/dist/utils/functions/index.d.ts +4 -1
  164. package/dist/utils/functions/index.js +50 -37
  165. package/package.json +1 -1
  166. package/dist/chunks/Avatar.VZkvLuLD.js +0 -30
  167. package/dist/chunks/InputWrapper.NQtlTzQk.js +0 -26
  168. package/dist/chunks/index.tMktkiEu.js +0 -570
  169. package/dist/chunks/notification-provider.pUKOxZw6.js +0 -74
  170. package/dist/chunks/styles.module.tkXR5gsa.js +0 -8
  171. package/dist/theme/utils/tokens-mapper/DataEntry/Tag/index.js +0 -11
@@ -1,24 +1,24 @@
1
1
  import "../../../assets/index24.css";
2
2
  import { jsx as e } from "react/jsx-runtime";
3
- import { faCircleXmark as I, faClock as K, faCalendar as g } from "@fortawesome/free-regular-svg-icons";
3
+ import { faCircleXmark as I, faClock as K, faCalendar as h } from "@fortawesome/free-regular-svg-icons";
4
4
  import { FontAwesomeIcon as i } from "@fortawesome/react-fontawesome";
5
- import { K as R } from "../../../chunks/InputWrapper.NQtlTzQk.js";
6
- import { u as h } from "../../../chunks/useKitTheme.KSAU-Pdv.js";
7
- import { DatePicker as v } from "antd";
8
- import C from "classnames";
9
- import { forwardRef as D } from "react";
10
- const w = {
11
- "kit-datepicker": "_kit-datepicker_1tfpg_2",
12
- "kit-rangepicker": "_kit-rangepicker_1tfpg_118"
13
- }, N = D(({ label: c, helper: s, suffixIcon: a, className: r, wrapperClassName: n, picker: o = "date", allowClear: d = !0, required: m, infoIcon: f, actions: u, onInfoClick: t, ...l }, p) => {
14
- const { appId: k } = h(), b = () => o === "time" ? e(i, { icon: K }) : e(i, { icon: g }), _ = C(k, w["kit-datepicker"], r);
15
- return e(R, { label: c, helper: s, disabled: l.disabled, status: l.status, className: n, required: m, infoIcon: f, actions: u, onInfoClick: t, children: e("div", { children: e(v, { ...l, picker: o, ref: p, suffixIcon: a ?? b(), allowClear: d ? { clearIcon: e(i, { "aria-label": "clear", icon: I }) } : !1, className: _ }) }) });
16
- }), y = D(({ label: c, className: s, helper: a, suffixIcon: r, picker: n, allowClear: o = !0, required: d, infoIcon: m, actions: f, onInfoClick: u, ...t }, l) => {
17
- const { appId: p } = h(), k = () => n === "time" ? e(i, { icon: K }) : e(i, { icon: g }), b = () => t.disabled === void 0 ? !1 : typeof t.disabled == "boolean" ? t.disabled : t.disabled[0] && t.disabled[1], _ = C(p, w["kit-rangepicker"], s);
18
- return e(R, { label: c, helper: a, disabled: b(), status: t.status, required: d, infoIcon: m, actions: f, onInfoClick: u, children: e("div", { children: e(v.RangePicker, { ...t, picker: n, ref: l, suffixIcon: r ?? k(), allowClear: o ? { clearIcon: e(i, { "aria-label": "clear", icon: I }) } : !1, className: _ }) }) });
19
- }), S = y, x = N;
20
- x.displayName = "KitDatePicker";
21
- x.RangePicker = S;
5
+ import { K as C } from "../../../chunks/InputWrapper.RG8Q9Ntu.js";
6
+ import { u as D } from "../../../chunks/useKitTheme.KSAU-Pdv.js";
7
+ import { DatePicker as R } from "antd";
8
+ import g from "classnames";
9
+ import { forwardRef as w } from "react";
10
+ const x = {
11
+ "kit-datepicker": "_kit-datepicker_1fgtr_2",
12
+ "kit-rangepicker": "_kit-rangepicker_1fgtr_133"
13
+ }, W = w(({ label: d, helper: m, suffixIcon: a, className: r, wrapperClassName: o, picker: c = "date", allowClear: f = !0, required: u, infoIcon: p, actions: k, onInfoClick: l, readonly: t = !1, disabled: n, ...s }, b) => {
14
+ const { appId: v } = D(), _ = () => c === "time" ? e(i, { icon: K }) : e(i, { icon: h }), S = g(v, x["kit-datepicker"], r, t ? "kit-picker-readonly" : "");
15
+ return e(C, { label: d, helper: m, disabled: n, status: s.status, className: o, required: u, infoIcon: p, actions: k, onInfoClick: l, children: e("div", { children: e(R, { ...s, picker: c, disabled: t || n, variant: t ? "borderless" : void 0, ref: b, suffixIcon: a ?? _(), allowClear: !t && f ? { clearIcon: e(i, { "aria-label": "clear", icon: I }) } : !1, className: S }) }) });
16
+ }), j = w(({ label: d, className: m, helper: a, suffixIcon: r, picker: o, allowClear: c = !0, required: f, infoIcon: u, actions: p, onInfoClick: k, readonly: l = !1, ...t }, n) => {
17
+ const { appId: s } = D(), b = () => o === "time" ? e(i, { icon: K }) : e(i, { icon: h }), v = () => t.disabled === void 0 ? !1 : typeof t.disabled == "boolean" ? t.disabled : t.disabled[0] && t.disabled[1], _ = g(s, x["kit-rangepicker"], m, l ? "kit-picker-readonly" : "");
18
+ return e(C, { label: d, helper: a, disabled: v(), status: t.status, required: f, infoIcon: u, actions: p, onInfoClick: k, children: e("div", { children: e(R.RangePicker, { ...t, picker: o, ref: n, disabled: l || t.disabled, variant: l ? "borderless" : void 0, suffixIcon: r ?? b(), allowClear: c ? { clearIcon: e(i, { "aria-label": "clear", icon: I }) } : !1, className: _ }) }) });
19
+ }), A = j, N = W;
20
+ N.displayName = "KitDatePicker";
21
+ N.RangePicker = A;
22
22
  export {
23
- x as KitDatePicker
23
+ N as KitDatePicker
24
24
  };
@@ -15,6 +15,7 @@ interface IInternalDatePicker {
15
15
  infoIcon?: ReactNode;
16
16
  actions?: ReactElement[];
17
17
  onInfoClick?: (e: MouseEvent<HTMLElement, MouseEvent>) => void;
18
+ readonly?: boolean;
18
19
  }
19
20
 
20
21
  interface IDatePickerProps extends Omit<DatePickerProps, 'picker'> {
@@ -35,6 +36,7 @@ interface IInternalRangerPicker {
35
36
  infoIcon?: ReactNode;
36
37
  actions?: ReactElement[];
37
38
  onInfoClick?: (e: MouseEvent<HTMLElement, MouseEvent>) => void;
39
+ readonly?: boolean;
38
40
  }
39
41
 
40
42
  export type IKitRangePicker = RangePickerProps & IInternalRangerPicker;
@@ -1,5 +1,5 @@
1
- import React from 'react';
1
+ /// <reference types="react" />
2
2
  import { InputRef } from 'antd';
3
3
  import { IKitInput } from './types';
4
- declare const KitInput: React.ForwardRefExoticComponent<IKitInput & React.RefAttributes<InputRef>>;
4
+ declare const KitInput: import("react").ForwardRefExoticComponent<IKitInput & import("react").RefAttributes<InputRef>>;
5
5
  export default KitInput;
@@ -1,5 +1,5 @@
1
- import React from 'react';
1
+ /// <reference types="react" />
2
2
  import { InputRef } from 'antd';
3
3
  import { IKitPassword } from './types';
4
- declare const KitPassword: React.ForwardRefExoticComponent<IKitPassword & React.RefAttributes<InputRef>>;
4
+ declare const KitPassword: import("react").ForwardRefExoticComponent<IKitPassword & import("react").RefAttributes<InputRef>>;
5
5
  export default KitPassword;
@@ -1,5 +1,5 @@
1
- import React from 'react';
1
+ /// <reference types="react" />
2
2
  import { InputRef } from 'antd';
3
3
  import { IKitTextArea } from './types';
4
- declare const KitTextArea: React.ForwardRefExoticComponent<IKitTextArea & React.RefAttributes<InputRef>>;
4
+ declare const KitTextArea: import("react").ForwardRefExoticComponent<IKitTextArea & import("react").RefAttributes<InputRef>>;
5
5
  export default KitTextArea;
@@ -1,29 +1,34 @@
1
1
  import "../../../assets/index27.css";
2
- import { jsx as a } from "react/jsx-runtime";
3
- import { forwardRef as f } from "react";
4
- import { Input as k } from "antd";
5
- import { faCircleXmark as w, faEye as y, faEyeSlash as C } from "@fortawesome/free-regular-svg-icons";
2
+ import { jsx as t } from "react/jsx-runtime";
3
+ import { forwardRef as h } from "react";
4
+ import { Input as w } from "antd";
5
+ import { faCircleXmark as _, faEye as y, faEyeSlash as C } from "@fortawesome/free-regular-svg-icons";
6
6
  import { FontAwesomeIcon as I } from "@fortawesome/react-fontawesome";
7
- import { K as x } from "../../../chunks/InputWrapper.NQtlTzQk.js";
8
- import { u as _ } from "../../../chunks/useKitTheme.KSAU-Pdv.js";
9
- import b from "classnames";
7
+ import { K as b } from "../../../chunks/InputWrapper.RG8Q9Ntu.js";
8
+ import { u as k } from "../../../chunks/useKitTheme.KSAU-Pdv.js";
9
+ import x from "classnames";
10
+ import "../../General/Button/index.js";
11
+ import { KitTypography as N } from "../../General/Typography/index.js";
12
+ import "../../General/Icon/index.js";
10
13
  const K = {
11
- "kit-input": "_kit-input_12a1a_2",
12
- "kit-password": "_kit-password_12a1a_140",
13
- "kit-textarea": "_kit-textarea_12a1a_264"
14
- }, A = f(({ label: o, className: i, helper: l, wrapperClassName: e, allowClear: n = !0, required: r, infoIcon: c, actions: d, onInfoClick: m, ...t }, s) => {
15
- const { appId: u } = _(), p = b(u, K["kit-input"], i);
16
- return a(x, { label: o, helper: l, disabled: t.disabled, status: t.status, className: e, required: r, infoIcon: c, actions: d, onInfoClick: m, children: a(k, { ...t, required: r, ref: s, className: p, allowClear: n ? { clearIcon: a(I, { "aria-label": "clear", icon: w }) } : void 0 }) });
17
- }), E = f(({ label: o, className: i, helper: l, wrapperClassName: e, allowClear: n = !0, required: r, infoIcon: c, actions: d, onInfoClick: m, ...t }, s) => {
18
- const { appId: u } = _(), p = b(u, K["kit-textarea"], i);
19
- return a(x, { label: o, helper: l, disabled: t.disabled, status: t.status, className: e, required: r, infoIcon: c, actions: d, onInfoClick: m, children: a(k.TextArea, { ...t, ref: s, allowClear: n ? { clearIcon: a(I, { "aria-label": "clear", icon: w }) } : void 0, className: p }) });
20
- }), g = E, j = f(({ label: o, className: i, helper: l, iconRender: e, wrapperClassName: n, allowClear: r = !0, required: c, infoIcon: d, actions: m, onInfoClick: t, ...s }, u) => {
21
- const { appId: p } = _(), h = b(p, K["kit-password"], i), T = (v) => v ? a(I, { icon: y }) : a(I, { icon: C });
22
- return a(x, { label: o, helper: l, disabled: s.disabled, status: s.status, className: n, required: c, infoIcon: d, actions: m, onInfoClick: t, children: a(k.Password, { ...s, className: h, ref: u, allowClear: r ? { clearIcon: a(I, { "aria-label": "clear", icon: w }) } : void 0, iconRender: e ?? T }) });
23
- }), F = j, N = A;
24
- N.displayName = "KitInput";
25
- N.TextArea = g;
26
- N.Password = F;
14
+ "kit-input": "_kit-input_mm0fv_2",
15
+ "kit-password": "_kit-password_mm0fv_137",
16
+ "kit-textarea": "_kit-textarea_mm0fv_261"
17
+ }, z = h(({ label: o, className: i, helper: s, wrapperClassName: r, allowClear: c = !0, required: l, infoIcon: n, actions: d, onInfoClick: m, readonly: u = !1, ...a }, f) => {
18
+ var e;
19
+ const { appId: p } = k(), v = x(p, K["kit-input"], i);
20
+ return t(b, { label: o, helper: s, disabled: a.disabled, status: a.status, className: r, required: l, infoIcon: n, actions: d, onInfoClick: m, children: u ? t(N.Text, { weight: "bold", size: "large", color: a.status === "error" ? "error" : void 0, children: (e = a.value) !== null && e !== void 0 ? e : a.placeholder }) : t(w, { ...a, required: l, ref: f, className: v, allowClear: c ? { clearIcon: t(I, { "aria-label": "clear", icon: _ }) } : void 0 }) });
21
+ }), E = h(({ label: o, className: i, helper: s, wrapperClassName: r, allowClear: c = !0, required: l, infoIcon: n, actions: d, onInfoClick: m, readonly: u = !1, ...a }, f) => {
22
+ var e;
23
+ const { appId: p } = k(), v = x(p, K["kit-textarea"], i);
24
+ return t(b, { label: o, helper: s, disabled: a.disabled, status: a.status, className: r, required: l, infoIcon: n, actions: d, onInfoClick: m, children: u ? t(N.Text, { weight: "bold", size: "large", color: a.status === "error" ? "error" : void 0, children: (e = a.value) !== null && e !== void 0 ? e : a.placeholder }) : t(w.TextArea, { ...a, ref: f, allowClear: c ? { clearIcon: t(I, { "aria-label": "clear", icon: _ }) } : void 0, className: v }) });
25
+ }), j = E, F = h(({ label: o, className: i, helper: s, iconRender: r, wrapperClassName: c, allowClear: l = !0, required: n, infoIcon: d, actions: m, onInfoClick: u, ...a }, f) => {
26
+ const { appId: e } = k(), p = x(e, K["kit-password"], i), v = (g) => g ? t(I, { icon: y }) : t(I, { icon: C });
27
+ return t(b, { label: o, helper: s, disabled: a.disabled, status: a.status, className: c, required: n, infoIcon: d, actions: m, onInfoClick: u, children: t(w.Password, { ...a, className: p, ref: f, allowClear: l ? { clearIcon: t(I, { "aria-label": "clear", icon: _ }) } : void 0, iconRender: r ?? v }) });
28
+ }), R = F, T = z;
29
+ T.displayName = "KitInput";
30
+ T.TextArea = j;
31
+ T.Password = R;
27
32
  export {
28
- N as KitInput
33
+ T as KitInput
29
34
  };
@@ -16,6 +16,7 @@ export interface IKitInput
16
16
  infoIcon?: ReactNode;
17
17
  actions?: ReactElement[];
18
18
  onInfoClick?: (e: MouseEvent<HTMLElement, MouseEvent>) => void;
19
+ readonly?: boolean;
19
20
  }
20
21
 
21
22
  export interface IKitTextArea
@@ -29,6 +30,7 @@ export interface IKitTextArea
29
30
  infoIcon?: ReactNode;
30
31
  actions?: ReactElement[];
31
32
  onInfoClick?: (e: MouseEvent<HTMLElement, MouseEvent>) => void;
33
+ readonly?: boolean;
32
34
  }
33
35
 
34
36
  export interface IKitPassword
@@ -1,3 +1,3 @@
1
- import React from 'react';
1
+ /// <reference types="react" />
2
2
  import { KitInputNumberProps } from './types';
3
- export declare const KitInputNumber: React.ForwardRefExoticComponent<KitInputNumberProps & React.RefAttributes<HTMLInputElement>>;
3
+ export declare const KitInputNumber: import("react").ForwardRefExoticComponent<KitInputNumberProps & import("react").RefAttributes<HTMLInputElement>>;
@@ -2,11 +2,11 @@ import "../../../assets/index7.css";
2
2
  import { jsx as r } from "react/jsx-runtime";
3
3
  import { forwardRef as b, useState as I } from "react";
4
4
  import { InputNumber as K } from "antd";
5
- import { K as k } from "../../../chunks/InputWrapper.NQtlTzQk.js";
5
+ import { K as k } from "../../../chunks/InputWrapper.RG8Q9Ntu.js";
6
6
  import { u as x } from "../../../chunks/useKitTheme.KSAU-Pdv.js";
7
7
  import N from "classnames";
8
8
  const h = {
9
- "kit-input-number": "_kit-input-number_nszsj_2"
9
+ "kit-input-number": "_kit-input-number_1ud1b_2"
10
10
  }, F = b(({ label: e, helper: o, wrapperClassName: u, className: a, required: i, infoIcon: m, actions: n, onInfoClick: p, ...t }, c) => {
11
11
  const { appId: f } = x(), [l, s] = I(!1), d = N(f, h["kit-input-number"], a, {
12
12
  "kit-input-number-affix-wrapper-focused": l
@@ -1,4 +1,4 @@
1
- import { K as t } from "../../../chunks/InputWrapper.NQtlTzQk.js";
1
+ import { K as t } from "../../../chunks/InputWrapper.RG8Q9Ntu.js";
2
2
  export {
3
3
  t as KitInputWrapper
4
4
  };
@@ -1,4 +1,4 @@
1
- import React from 'react';
1
+ /// <reference types="react" />
2
2
  import { KitRadioGroup } from './types';
3
- declare const RadioGroup: React.MemoExoticComponent<React.ForwardRefExoticComponent<KitRadioGroup & React.RefAttributes<HTMLDivElement>>>;
3
+ declare const RadioGroup: import("react").MemoExoticComponent<import("react").ForwardRefExoticComponent<KitRadioGroup & import("react").RefAttributes<HTMLDivElement>>>;
4
4
  export default RadioGroup;
@@ -1,5 +1,5 @@
1
- import React from 'react';
1
+ /// <reference types="react" />
2
2
  import { KitRadioProps } from './types';
3
3
  import { RadioRef } from 'antd/es/radio';
4
- declare const KitRadio: React.ForwardRefExoticComponent<KitRadioProps & React.RefAttributes<RadioRef>>;
4
+ declare const KitRadio: import("react").ForwardRefExoticComponent<KitRadioProps & import("react").RefAttributes<RadioRef>>;
5
5
  export default KitRadio;
@@ -8,30 +8,30 @@ import Y from "antd/es/config-provider/SizeContext";
8
8
  import Z from "rc-util/es/pickAttrs";
9
9
  import { Radio as ee } from "antd";
10
10
  import { u as ae } from "../../../chunks/useKitTheme.KSAU-Pdv.js";
11
- import { K as oe } from "../../../chunks/InputWrapper.NQtlTzQk.js";
11
+ import { K as oe } from "../../../chunks/InputWrapper.RG8Q9Ntu.js";
12
12
  import te from "antd/es/radio/style";
13
13
  const z = Q(null), re = z.Provider, ie = {
14
- "kit-radio": "_kit-radio_1hsx3_2"
14
+ "kit-radio": "_kit-radio_1xplh_2"
15
15
  }, R = $((a, m) => {
16
- var n;
16
+ var l;
17
17
  const o = p(z), { appId: f } = ae(), { className: r, danger: v, ...h } = a, C = (d) => {
18
- var l, s;
19
- (l = a.onChange) === null || l === void 0 || l.call(a, d), (s = o == null ? void 0 : o.onChange) === null || s === void 0 || s.call(o, d);
18
+ var n, s;
19
+ (n = a.onChange) === null || n === void 0 || n.call(a, d), (s = o == null ? void 0 : o.onChange) === null || s === void 0 || s.call(o, d);
20
20
  }, t = { ...h };
21
- o && (t.name = o.name, t.onChange = C, t.checked = a.value === o.value, t.disabled = (n = t.disabled) !== null && n !== void 0 ? n : o.disabled);
21
+ o && (t.name = o.name, t.onChange = C, t.checked = a.value === o.value, t.disabled = (l = t.disabled) !== null && l !== void 0 ? l : o.disabled);
22
22
  const g = _(f, ie["kit-radio"], r, {
23
23
  "ant-radio-wrapper-danger": v
24
24
  });
25
25
  return i(ee, { ref: m, className: g, ...t });
26
- }), ne = U($((a, m) => {
27
- const { getPrefixCls: n, direction: o } = p(X), f = p(Y), [r, v] = O(a.defaultValue, {
26
+ }), le = U($((a, m) => {
27
+ const { getPrefixCls: l, direction: o } = p(X), f = p(Y), [r, v] = O(a.defaultValue, {
28
28
  value: a.value
29
29
  }), h = (e) => {
30
30
  const k = e.target.value;
31
31
  "value" in a || v(k);
32
32
  const { onChange: N } = a;
33
33
  N && k !== r && N(e);
34
- }, { prefixCls: C, className: t, rootClassName: g, label: d, helper: l, status: s, wrapperClassName: P, bordered: G, options: x, buttonStyle: I = "outline", disabled: b, children: w, size: M, style: T, id: V, onMouseEnter: j, onMouseLeave: q, onFocus: A, onBlur: B, required: E, infoIcon: F, actions: L, onInfoClick: W } = a, c = n("radio", C), u = `${c}-group`, [D, H] = te(c);
34
+ }, { prefixCls: C, className: t, rootClassName: g, label: d, helper: n, status: s, wrapperClassName: P, bordered: G, options: x, buttonStyle: I = "outline", disabled: b, children: w, size: M, style: T, id: V, onMouseEnter: j, onMouseLeave: q, onFocus: A, onBlur: B, required: E, infoIcon: F, actions: L, onInfoClick: W } = a, c = l("radio", C), u = `${c}-group`, [D, H] = te(c);
35
35
  let y = w;
36
36
  x && x.length > 0 && (y = x.map((e) => typeof e == "string" || typeof e == "number" ? i(R, { prefixCls: c, disabled: b, value: e, checked: r === e, children: e }, e.toString()) : i(R, { prefixCls: c, disabled: e.disabled || b, value: e.value, checked: r === e.value, style: e.style, children: e.label }, `radio-group-value-options-${e.value}`)));
37
37
  const S = M || f, J = _(u, `${u}-${I}`, {
@@ -46,10 +46,10 @@ const z = Q(null), re = z.Provider, ie = {
46
46
  value: r,
47
47
  disabled: a.disabled,
48
48
  name: a.name
49
- }, children: i(oe, { label: d, helper: l, disabled: b, bordered: G, status: s, className: P, required: E, infoIcon: F, actions: L, onInfoClick: W, children: y }) }) }));
50
- })), le = ne, K = R;
49
+ }, children: i(oe, { label: d, helper: n, disabled: b, bordered: G, status: s, className: P, required: E, infoIcon: F, actions: L, onInfoClick: W, children: y }) }) }));
50
+ })), ne = le, K = R;
51
51
  K.displayName = "KitRadio";
52
- K.Group = le;
52
+ K.Group = ne;
53
53
  export {
54
54
  K as KitRadio
55
55
  };
@@ -1,4 +1,4 @@
1
- import React from 'react';
1
+ /// <reference types="react" />
2
2
  import { IKitRate } from './types';
3
3
  import type { RateRef } from 'rc-rate/es/Rate';
4
- export declare const KitRate: React.ForwardRefExoticComponent<IKitRate & React.RefAttributes<RateRef>>;
4
+ export declare const KitRate: import("react").ForwardRefExoticComponent<IKitRate & import("react").RefAttributes<RateRef>>;
@@ -10,7 +10,7 @@ import { isValidColor as _, getColor as g } from "../../../utils/functions/index
10
10
  import { kitRateCssTokens as y } from "../../../theme/aristid/components/DataEntry/Rate/index.js";
11
11
  import K from "classnames";
12
12
  const w = {
13
- "kit-rate": "_kit-rate_1kzo9_2"
13
+ "kit-rate": "_kit-rate_a856o_2"
14
14
  }, N = (t, r, o, e) => t.index !== void 0 && t.value !== void 0 && t.index < t.value ? t.index + 0.5 === t.value ? o ?? i(a, { icon: p }) : e ?? i(a, { icon: S }) : r ?? i(a, { icon: R }), T = (t) => !t || !_(t) ? null : { [y.colors.star.default]: g(t) }, h = k(({ color: t, defaultIcon: r, halfIcon: o, activeIcon: e, className: n, style: m, ...s }, f) => {
15
15
  const { appId: u } = C(), l = v(() => ({ ...m, ...T(t) }), [t, m]), d = K(u, w["kit-rate"], n);
16
16
  return i(x, { ...s, style: l, className: d, ref: f, character: (c) => N(c, r, o, e) });
@@ -1,12 +1,12 @@
1
1
  import "react/jsx-runtime";
2
- import "../../../chunks/InputWrapper.NQtlTzQk.js";
2
+ import "../../../chunks/InputWrapper.RG8Q9Ntu.js";
3
3
  import "../../../chunks/useKitTheme.KSAU-Pdv.js";
4
4
  import "antd";
5
5
  import "classnames";
6
6
  import "react";
7
7
  import "short-unique-id";
8
8
  import "use-debounce";
9
- import { e as s } from "../../../chunks/index.tMktkiEu.js";
9
+ import { e as s } from "../../../chunks/index.wMOo1bfz.js";
10
10
  import "lodash/flatten";
11
11
  export {
12
12
  s as KitSelect
@@ -67,4 +67,5 @@ export interface IKitSelect extends Omit<SelectProps, AntdSelectTypesToOmit>, Ki
67
67
  infoIcon?: ReactNode;
68
68
  actions?: ReactElement[];
69
69
  onInfoClick?: (e: MouseEvent<HTMLElement, MouseEvent>) => void;
70
+ readonly?: boolean;
70
71
  }
@@ -1,4 +1,4 @@
1
- import React from 'react';
1
+ /// <reference types="react" />
2
2
  import { IKitSliderRange, IKitSliderSingle } from './types';
3
3
  import type { SliderRef } from 'rc-slider/es/Slider';
4
- export declare const KitSlider: React.ForwardRefExoticComponent<(IKitSliderSingle | IKitSliderRange) & React.RefAttributes<SliderRef>>;
4
+ export declare const KitSlider: import("react").ForwardRefExoticComponent<(IKitSliderSingle | IKitSliderRange) & import("react").RefAttributes<SliderRef>>;
@@ -1,19 +1,19 @@
1
1
  import "../../../assets/index11.css";
2
2
  import { jsxs as a, jsx as i } from "react/jsx-runtime";
3
- import { Slider as d } from "antd";
3
+ import { Slider as l } from "antd";
4
4
  import f from "classnames";
5
5
  import { forwardRef as p } from "react";
6
6
  import { u as h } from "../../../chunks/useKitTheme.KSAU-Pdv.js";
7
7
  const c = {
8
- "kit-slider": "_kit-slider_ilgii_2",
9
- "kit-slider-container": "_kit-slider-container_ilgii_35"
10
- }, w = p(({ startIcon: r, endIcon: t, marks: e, className: m, ...s }, o) => {
11
- const { appId: n } = h(), l = f(n, c["kit-slider"], m, {
8
+ "kit-slider": "_kit-slider_1sj7g_2",
9
+ "kit-slider-container": "_kit-slider-container_1sj7g_35"
10
+ }, x = p(({ startIcon: r, endIcon: s, marks: t, className: m, ...e }, o) => {
11
+ const { appId: n } = h(), d = f(n, c["kit-slider"], m, {
12
12
  "with-start-icon": !!r,
13
- "with-end-icon": !!t
13
+ "with-end-icon": !!s
14
14
  });
15
- return r !== void 0 || t !== void 0 ? a("div", { className: c["kit-slider-container"], children: [i("div", { className: "start-icon", children: r }), i(d, { ...s, marks: e, ref: o, className: l }), i("div", { className: "end-icon", children: t })] }) : i(d, { ...s, marks: e, ref: o, className: l });
15
+ return r !== void 0 || s !== void 0 ? a("div", { className: c["kit-slider-container"], children: [i("div", { className: "start-icon", children: r }), i(l, { ...e, marks: t, ref: o, className: d }), i("div", { className: "end-icon", children: s })] }) : i(l, { ...e, marks: t, ref: o, className: d });
16
16
  });
17
17
  export {
18
- w as KitSlider
18
+ x as KitSlider
19
19
  };
@@ -1,3 +1,3 @@
1
- import React from 'react';
1
+ /// <reference types="react" />
2
2
  import { IKitSwitch } from './types';
3
- export declare const KitSwitch: React.ForwardRefExoticComponent<IKitSwitch & React.RefAttributes<HTMLButtonElement>>;
3
+ export declare const KitSwitch: import("react").ForwardRefExoticComponent<IKitSwitch & import("react").RefAttributes<HTMLButtonElement>>;
@@ -1,16 +1,16 @@
1
1
  import "../../../assets/index9.css";
2
- import { jsx as o } from "react/jsx-runtime";
2
+ import { jsx as c } from "react/jsx-runtime";
3
3
  import { forwardRef as s } from "react";
4
4
  import { Switch as m } from "antd";
5
- import { u as p } from "../../../chunks/useKitTheme.KSAU-Pdv.js";
5
+ import { u as n } from "../../../chunks/useKitTheme.KSAU-Pdv.js";
6
6
  import h from "classnames";
7
7
  const l = {
8
- "kit-switch": "_kit-switch_19pcp_2"
9
- }, n = s(({ className: t, ...i }, r) => {
10
- const { appId: c } = p(), e = h(c, l["kit-switch"], t);
11
- return o(m, { ...i, ref: r, checkedChildren: null, unCheckedChildren: null, size: "default", className: e });
8
+ "kit-switch": "_kit-switch_1n36r_2"
9
+ }, p = s(({ className: t, ...i }, r) => {
10
+ const { appId: e } = n(), o = h(e, l["kit-switch"], t);
11
+ return c(m, { ...i, ref: r, checkedChildren: null, unCheckedChildren: null, size: "default", className: o });
12
12
  });
13
- n.displayName = "KitSwitch";
13
+ p.displayName = "KitSwitch";
14
14
  export {
15
- n as KitSwitch
15
+ p as KitSwitch
16
16
  };
@@ -1,5 +1,5 @@
1
- import React from 'react';
1
+ /// <reference types="react" />
2
2
  import { IKitUpload } from './types';
3
3
  import { UploadRef } from 'antd/es/upload/Upload';
4
- declare const KitUpload: React.ForwardRefExoticComponent<IKitUpload & React.RefAttributes<UploadRef<any>>>;
4
+ declare const KitUpload: import("react").ForwardRefExoticComponent<IKitUpload & import("react").RefAttributes<UploadRef<any>>>;
5
5
  export default KitUpload;
@@ -1,6 +1,6 @@
1
1
  import "../../../assets/index25.css";
2
2
  import { Upload as s } from "antd";
3
- import { jsxs as e, jsx as r, Fragment as k } from "react/jsx-runtime";
3
+ import { jsxs as l, jsx as r, Fragment as k } from "react/jsx-runtime";
4
4
  import { forwardRef as K } from "react";
5
5
  import { KitButton as _ } from "../../General/Button/index.js";
6
6
  import "../../General/Typography/index.js";
@@ -10,18 +10,18 @@ import { u as h } from "../../../chunks/useKitTheme.KSAU-Pdv.js";
10
10
  import { FontAwesomeIcon as d } from "@fortawesome/react-fontawesome";
11
11
  import { faUpload as D, faPlus as g, faCircleNotch as S, faInbox as U } from "@fortawesome/free-solid-svg-icons";
12
12
  const x = {
13
- "kit-upload": "_kit-upload_16ccs_2",
14
- "kit-upload-dragger": "_kit-upload-dragger_16ccs_62"
15
- }, v = K(({ listType: o = "text", loading: a, imageUrl: c, buttonWording: t, showUploadList: i, className: n, ...l }, p) => {
13
+ "kit-upload": "_kit-upload_11ml4_2",
14
+ "kit-upload-dragger": "_kit-upload-dragger_11ml4_62"
15
+ }, v = K(({ listType: o = "text", loading: a, imageUrl: e, buttonWording: t, showUploadList: i, className: n, ...c }, p) => {
16
16
  const { appId: N } = h(), m = t ?? "Upload", I = f(N, x["kit-upload"], n, {
17
17
  "list-type-text": o === "text" || o === void 0
18
18
  });
19
- return e(s, { ...l, listType: o, showUploadList: i, ref: p, className: I, children: [(o === void 0 || o === "text" || o === "picture") && r(_, { icon: r(d, { icon: D }), children: m }), i && o === "picture-card" && e("div", { children: [r(d, { icon: g }), r("div", { style: { marginLeft: 4 }, children: m })] }), !i && o === "picture-card" && (c ? r("div", { style: { width: "100%", padding: "8px" }, children: r("img", { src: c, alt: "avatar", style: { width: "100%" } }) }) : e(k, { children: [a ? r(d, { icon: S, spin: !0 }) : r(d, { icon: g }), r("div", { style: { marginLeft: 4 }, children: m })] }))] });
19
+ return l(s, { ...c, listType: o, showUploadList: i, ref: p, className: I, children: [(o === void 0 || o === "text" || o === "picture") && r(_, { icon: r(d, { icon: D }), children: m }), i && o === "picture-card" && l("div", { children: [r(d, { icon: g }), r("div", { style: { marginLeft: 4 }, children: m })] }), !i && o === "picture-card" && (e ? r("div", { style: { width: "100%", padding: "8px" }, children: r("img", { src: e, alt: "avatar", style: { width: "100%" } }) }) : l(k, { children: [a ? r(d, { icon: S, spin: !0 }) : r(d, { icon: g }), r("div", { style: { marginLeft: 4 }, children: m })] }))] });
20
20
  });
21
21
  v.displayName = "KitUpload";
22
- const y = ({ title: o, description: a, className: c, ...t }) => {
23
- const { appId: i } = h(), n = o ?? "Click or drag file to this area to upload", l = a ?? "Support for a single or bulk upload. Strictly prohibited from uploading company data or other banned files.", p = f(i, x["kit-upload-dragger"], c);
24
- return e(s.Dragger, { ...t, className: p, children: [r("p", { className: "ant-upload-drag-icon", children: r(d, { icon: U }) }), r("p", { className: "ant-upload-text", children: n }), r("p", { className: "ant-upload-hint", children: l })] });
22
+ const y = ({ title: o, description: a, className: e, ...t }) => {
23
+ const { appId: i } = h(), n = o ?? "Click or drag file to this area to upload", c = a ?? "Support for a single or bulk upload. Strictly prohibited from uploading company data or other banned files.", p = f(i, x["kit-upload-dragger"], e);
24
+ return l(s.Dragger, { ...t, className: p, children: [r("p", { className: "ant-upload-drag-icon", children: r(d, { icon: U }) }), r("p", { className: "ant-upload-text", children: n }), r("p", { className: "ant-upload-hint", children: c })] });
25
25
  }, R = y, u = v;
26
26
  u.displayName = "KitUpload";
27
27
  u.KitDragger = R;
@@ -1,10 +1,10 @@
1
1
  import { KitCheckbox as r } from "./Checkbox/index.js";
2
2
  import { KitInput as p } from "./Input/index.js";
3
3
  import { KitInputNumber as m } from "./InputNumber/index.js";
4
- import { K } from "../../chunks/InputWrapper.NQtlTzQk.js";
4
+ import { K } from "../../chunks/InputWrapper.RG8Q9Ntu.js";
5
5
  import { KitRadio as a } from "./Radio/index.js";
6
6
  import { KitRate as l } from "./Rate/index.js";
7
- import { e as d } from "../../chunks/index.tMktkiEu.js";
7
+ import { e as d } from "../../chunks/index.wMOo1bfz.js";
8
8
  import { KitSwitch as n } from "./Switch/index.js";
9
9
  import { KitDatePicker as I } from "./DatePicker/index.js";
10
10
  import { KitAutoComplete as b } from "./AutoComplete/index.js";
@@ -5,9 +5,9 @@ import { u as m } from "../../../chunks/useKitTheme.KSAU-Pdv.js";
5
5
  import { FontAwesomeIcon as c } from "@fortawesome/react-fontawesome";
6
6
  import { faXmark as l, faCircleXmark as f, faCircleExclamation as p, faCircleCheck as u, faCircleInfo as k } from "@fortawesome/free-solid-svg-icons";
7
7
  import N from "classnames";
8
- const C = {
9
- "kit-alert": "_kit-alert_59l3h_2"
10
- }, I = ({ type: o, className: e, ...a }) => {
8
+ const x = {
9
+ "kit-alert": "_kit-alert_y8zsx_2"
10
+ }, C = ({ type: o, className: e, ...a }) => {
11
11
  const { appId: t } = m(), i = () => {
12
12
  switch (o) {
13
13
  case "info":
@@ -19,10 +19,10 @@ const C = {
19
19
  case "error":
20
20
  return r(c, { className: "fa-icon", icon: f });
21
21
  }
22
- }, s = N(t, C["kit-alert"], e);
22
+ }, s = N(t, x["kit-alert"], e);
23
23
  return r(n, { ...a, closeIcon: r(c, { icon: l }), icon: i(), type: o, className: s });
24
24
  };
25
- I.displayName = "KitAlert";
25
+ C.displayName = "KitAlert";
26
26
  export {
27
- I as KitAlert
27
+ C as KitAlert
28
28
  };
@@ -1,15 +1,15 @@
1
1
  import "../../../assets/index29.css";
2
- import { jsx as o, jsxs as y, Fragment as z } from "react/jsx-runtime";
3
- import B from "react-modal";
2
+ import { jsx as o, jsxs as y, Fragment as B } from "react/jsx-runtime";
3
+ import D from "react-modal";
4
4
  import "../../Layout/Divider/index.js";
5
5
  import "../../Layout/Grid/index.js";
6
- import { KitSpace as D } from "../../Layout/Space/index.js";
6
+ import { KitSpace as R } from "../../Layout/Space/index.js";
7
7
  import "color-convert";
8
8
  import "color-string";
9
9
  import "lodash/isEmpty";
10
10
  import K from "classnames";
11
- import "../../../chunks/styles.module.tkXR5gsa.js";
12
- import { u as R } from "../../../chunks/useKitTheme.KSAU-Pdv.js";
11
+ import "../../../chunks/styles.module.Q_QQjQdX.js";
12
+ import { u as z } from "../../../chunks/useKitTheme.KSAU-Pdv.js";
13
13
  import { FontAwesomeIcon as d } from "@fortawesome/react-fontawesome";
14
14
  import { KitButton as x } from "../../General/Button/index.js";
15
15
  import { KitTypography as A } from "../../General/Typography/index.js";
@@ -20,9 +20,9 @@ import { useLocale as $ } from "antd/es/locale";
20
20
  import { uuid as G } from "../../../utils/functions/index.js";
21
21
  import { KitApp as H } from "../../App/index.js";
22
22
  const J = {
23
- "kit-modal": "_kit-modal_1wzj0_2"
23
+ "kit-modal": "_kit-modal_uf6i8_2"
24
24
  }, _ = ({ title: n, style: e, width: u = "520px", height: h = "initial", fullscreen: r, ...t }) => {
25
- const { appId: l } = R(), f = {
25
+ const { appId: l } = z(), f = {
26
26
  ...e,
27
27
  content: {
28
28
  width: u,
@@ -45,7 +45,7 @@ const J = {
45
45
  overlayElement: (c, v) => o("div", { ...c, children: v }),
46
46
  overlayClassName: i
47
47
  };
48
- return o(B, { ...m, shouldCloseOnOverlayClick: t.showCloseIcon, onRequestClose: s, children: y("div", { className: J["kit-modal"], children: [y("div", { className: "kit-modal-header", children: [o("div", { className: "kit-modal-title", children: o(A.Title, { level: "h2", children: n }) }), t.showCloseIcon && o(x, { onClick: s, iconSize: "xl", icon: o(d, { icon: M, className: "kit-modal-close", onClick: s }) })] }), o("div", { className: "kit-modal-content-wrapper", children: o("div", { className: "kit-modal-content", children: t.children }) }), t.footer && o(D, { className: "kit-modal-footer", align: "end", children: t.footer })] }) });
48
+ return o(D, { ...m, shouldCloseOnOverlayClick: t.showCloseIcon, onRequestClose: s, children: y("div", { className: J["kit-modal"], children: [y("div", { className: "kit-modal-header", children: [o("div", { className: "kit-modal-title", children: o(A.Title, { level: "h2", children: n }) }), t.showCloseIcon && o(x, { onClick: s, iconSize: "xl", icon: o(d, { icon: M, className: "kit-modal-close", onClick: s }) })] }), o("div", { className: "kit-modal-content-wrapper", children: o("div", { className: "kit-modal-content", children: t.children }) }), t.footer && o(R, { className: "kit-modal-footer", align: "end", children: t.footer })] }) });
49
49
  }, Q = (n) => {
50
50
  const { icon: e, title: u, content: h, image: r, type: t = "confirm", width: l, portalClassName: f, dangerConfirm: s, okCancel: p, onCancel: i, cancelText: m, onOk: c, okText: v, close: I, isOpen: S = !1, ...E } = n, [a] = $("Modal");
51
51
  let C = e;
@@ -74,7 +74,7 @@ const J = {
74
74
  }, onClick: N(c), icon: o(d, { icon: F }), children: v || (T ? a == null ? void 0 : a.okText : a == null ? void 0 : a.justOkText) }), O = {
75
75
  ...E
76
76
  };
77
- return n.showCloseIcon && (O.close = N(i)), o(_, { isOpen: S, showCloseIcon: !1, width: l ?? "auto", style: { content: { minWidth: "350px" } }, portalClassName: f, title: u, footer: y(z, { children: [P, j] }), ...O, children: y("div", { className: "kit-modal-vertical-items-spacing", children: [r && o("div", { className: "kit-confirm-image-wrapper", style: { backgroundImage: "url(" + r + ")" } }), y("div", { className: "kit-modal-horizontal-items-spacing", children: [C, o("div", { className: "kit-modal-vertical-text-spacing", children: o("div", { className: "ant-modal-body", children: h }) })] })] }) });
77
+ return n.showCloseIcon && (O.close = N(i)), o(_, { isOpen: S, showCloseIcon: !1, width: l ?? "auto", style: { content: { minWidth: "350px" } }, portalClassName: f, title: u, footer: y(B, { children: [P, j] }), ...O, children: y("div", { className: "kit-modal-vertical-items-spacing", children: [r && o("div", { className: "kit-confirm-image-wrapper", style: { backgroundImage: "url(" + r + ")" } }), y("div", { className: "kit-modal-horizontal-items-spacing", children: [C, o("div", { className: "kit-modal-vertical-text-spacing", children: o("div", { className: "ant-modal-body", children: h }) })] })] }) });
78
78
  }, V = Q;
79
79
  function g(n) {
80
80
  const e = document.createDocumentFragment(), u = X(e), h = "reactPortal-" + G();
@@ -1,4 +1,4 @@
1
- import { K as o, u as a } from "../../../chunks/KitNotification.eFNdYjE1.js";
1
+ import { K as o, u as a } from "../../../chunks/KitNotification.YKY0mq-u.js";
2
2
  export {
3
3
  o as KitNotification,
4
4
  a as useKitNotification
@@ -1,6 +1,6 @@
1
- import React from 'react';
1
+ /// <reference types="react" />
2
2
  import { IKitNotificationContext } from './types';
3
- export declare const KitNotificationContext: React.Context<IKitNotificationContext | undefined>;
3
+ export declare const KitNotificationContext: import("react").Context<IKitNotificationContext | undefined>;
4
4
  export declare const KitNotificationProvider: ({ children }: {
5
5
  children: any;
6
6
  }) => import("react/jsx-runtime").JSX.Element;
@@ -3,20 +3,20 @@ import { K as h } from "../../../chunks/SnackBarProvider.xMKXdZ88.js";
3
3
  import { jsxs as v, jsx as a } from "react/jsx-runtime";
4
4
  import { toast as k } from "react-hot-toast";
5
5
  import { u as b } from "../../../chunks/useKitTheme.KSAU-Pdv.js";
6
- import { FontAwesomeIcon as N } from "@fortawesome/react-fontawesome";
7
- import { faXmark as f } from "@fortawesome/free-solid-svg-icons";
6
+ import { FontAwesomeIcon as f } from "@fortawesome/react-fontawesome";
7
+ import { faXmark as N } from "@fortawesome/free-solid-svg-icons";
8
8
  import B from "classnames";
9
9
  const K = {
10
- "kit-snackbar": "_kit-snackbar_1k0m4_2"
11
- }, S = ({ message: t, className: c, ctaText: n, ctaOnClick: r, closable: o, style: m }) => {
12
- const { appId: d } = b(), s = n !== void 0 && r !== void 0, e = o !== void 0, l = `auto ${s ? "min-content" : ""} ${e ? "12px" : ""}`, p = B(d, K["kit-snackbar"], c, {
10
+ "kit-snackbar": "_kit-snackbar_cu2fr_2"
11
+ }, S = ({ message: c, className: t, ctaText: r, ctaOnClick: n, closable: o, style: m }) => {
12
+ const { appId: d } = b(), s = r !== void 0 && n !== void 0, e = o !== void 0, l = `auto ${s ? "min-content" : ""} ${e ? "12px" : ""}`, p = B(d, K["kit-snackbar"], t, {
13
13
  "with-close-container": e,
14
14
  "with-cta-container": s
15
15
  });
16
- return v("div", { style: { ...m, gridTemplateColumns: l }, className: p, children: [a("div", { className: "kit-snackbar-grid kit-snackbar-grid-one", children: a("div", { className: "kit-snackbar-title", children: t }) }), s && a("div", { className: "kit-snackbar-grid kit-snackbar-grid-two", children: a("div", { className: "kit-snackbar-cta-container", onClick: () => {
17
- r(), i();
18
- }, children: a("div", { className: "kit-snackbar-cta", children: n }) }) }), e && a("div", { className: "kit-snackbar-grid kit-snackbar-grid-three", children: a("div", { className: "kit-snackbar-close-container", onClick: () => i(), children: a(N, { icon: f }) }) })] });
19
- }, g = S, u = 4e3, w = ({ message: t, closable: c, ctaText: n, ctaOnClick: r, duration: o = u }) => (i(), k(a(g, { message: t, ctaText: n, ctaOnClick: r, closable: c }), {
16
+ return v("div", { style: { ...m, gridTemplateColumns: l }, className: p, children: [a("div", { className: "kit-snackbar-grid kit-snackbar-grid-one", children: a("div", { className: "kit-snackbar-title", children: c }) }), s && a("div", { className: "kit-snackbar-grid kit-snackbar-grid-two", children: a("div", { className: "kit-snackbar-cta-container", onClick: () => {
17
+ n(), i();
18
+ }, children: a("div", { className: "kit-snackbar-cta", children: r }) }) }), e && a("div", { className: "kit-snackbar-grid kit-snackbar-grid-three", children: a("div", { className: "kit-snackbar-close-container", onClick: () => i(), children: a(f, { icon: N }) }) })] });
19
+ }, g = S, u = 4e3, w = ({ message: c, closable: t, ctaText: r, ctaOnClick: n, duration: o = u }) => (i(), k(a(g, { message: c, ctaText: r, ctaOnClick: n, closable: t }), {
20
20
  duration: o
21
21
  })), i = () => {
22
22
  k.remove();