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.
- package/CHANGELOG.md +295 -215
- package/dist/Kit/App/index.js +2 -2
- package/dist/Kit/DataDisplay/Avatar/index.js +1 -1
- package/dist/Kit/DataDisplay/Badge/index.js +8 -8
- package/dist/Kit/DataDisplay/Card/index.js +2 -2
- package/dist/Kit/DataDisplay/Collapse/index.js +1 -1
- package/dist/Kit/DataDisplay/Empty/index.js +1 -1
- package/dist/Kit/DataDisplay/Error/index.js +2 -2
- package/dist/Kit/DataDisplay/IdCard/index.js +1 -1
- package/dist/Kit/DataDisplay/Image/index.js +9 -9
- package/dist/Kit/DataDisplay/ItemCard/index.js +1 -1
- package/dist/Kit/DataDisplay/ItemList/index.d.ts +2 -2
- package/dist/Kit/DataDisplay/ItemList/index.js +2 -2
- package/dist/Kit/DataDisplay/LegacyCard/index.js +5 -5
- package/dist/Kit/DataDisplay/Table/index.js +33 -33
- package/dist/Kit/DataDisplay/Tabs/index.js +4 -4
- package/dist/Kit/DataDisplay/Tag/Tag.d.ts +2 -2
- package/dist/Kit/DataDisplay/Tag/index.js +1 -1
- package/dist/Kit/DataDisplay/Tree/index.js +4 -4
- package/dist/Kit/DataDisplay/index.js +1 -1
- package/dist/Kit/DataEntry/AutoComplete/index.d.ts +2 -2
- package/dist/Kit/DataEntry/AutoComplete/index.js +10 -10
- package/dist/Kit/DataEntry/Checkbox/Checkbox.d.ts +2 -2
- package/dist/Kit/DataEntry/Checkbox/Group.d.ts +2 -3
- package/dist/Kit/DataEntry/Checkbox/index.js +14 -14
- package/dist/Kit/DataEntry/ColorPicker/index.js +5 -5
- package/dist/Kit/DataEntry/DatePicker/DatePicker.d.ts +2 -2
- package/dist/Kit/DataEntry/DatePicker/RangePicker.d.ts +4 -4
- package/dist/Kit/DataEntry/DatePicker/index.js +19 -19
- package/dist/Kit/DataEntry/DatePicker/types.d.ts +2 -0
- package/dist/Kit/DataEntry/Input/Input.d.ts +2 -2
- package/dist/Kit/DataEntry/Input/Password.d.ts +2 -2
- package/dist/Kit/DataEntry/Input/TextArea.d.ts +2 -2
- package/dist/Kit/DataEntry/Input/index.js +29 -24
- package/dist/Kit/DataEntry/Input/types.d.ts +2 -0
- package/dist/Kit/DataEntry/InputNumber/index.d.ts +2 -2
- package/dist/Kit/DataEntry/InputNumber/index.js +2 -2
- package/dist/Kit/DataEntry/InputWrapper/index.js +1 -1
- package/dist/Kit/DataEntry/Radio/Group.d.ts +2 -2
- package/dist/Kit/DataEntry/Radio/Radio.d.ts +2 -2
- package/dist/Kit/DataEntry/Radio/index.js +12 -12
- package/dist/Kit/DataEntry/Rate/index.d.ts +2 -2
- package/dist/Kit/DataEntry/Rate/index.js +1 -1
- package/dist/Kit/DataEntry/Select/index.js +2 -2
- package/dist/Kit/DataEntry/Select/types.d.ts +1 -0
- package/dist/Kit/DataEntry/Slider/index.d.ts +2 -2
- package/dist/Kit/DataEntry/Slider/index.js +8 -8
- package/dist/Kit/DataEntry/Switch/index.d.ts +2 -2
- package/dist/Kit/DataEntry/Switch/index.js +8 -8
- package/dist/Kit/DataEntry/Upload/Upload.d.ts +2 -2
- package/dist/Kit/DataEntry/Upload/index.js +8 -8
- package/dist/Kit/DataEntry/index.js +2 -2
- package/dist/Kit/Feedback/Alert/index.js +6 -6
- package/dist/Kit/Feedback/Modal/index.js +9 -9
- package/dist/Kit/Feedback/Notification/index.js +1 -1
- package/dist/Kit/Feedback/Notification/notification-provider.d.ts +2 -2
- package/dist/Kit/Feedback/SnackBar/index.js +9 -9
- package/dist/Kit/Feedback/index.js +1 -1
- package/dist/Kit/General/Button/index.js +10 -10
- package/dist/Kit/General/Icon/index.js +8 -8
- package/dist/Kit/General/Typography/Link.d.ts +2 -2
- package/dist/Kit/General/Typography/Paragraph.d.ts +2 -2
- package/dist/Kit/General/Typography/Text.d.ts +2 -2
- package/dist/Kit/General/Typography/Title.d.ts +2 -2
- package/dist/Kit/General/Typography/index.js +41 -50
- package/dist/Kit/Layout/Divider/index.js +9 -10
- package/dist/Kit/Layout/Divider/types.d.ts +0 -4
- package/dist/Kit/Layout/Section/index.js +8 -8
- package/dist/Kit/Navigation/Breadcrumb/index.js +9 -9
- package/dist/Kit/Navigation/Header/index.js +1 -1
- package/dist/Kit/Navigation/Menu/index.js +1 -1
- package/dist/Kit/Navigation/PageHeader/index.js +2 -2
- package/dist/Kit/Navigation/Pagination/index.d.ts +1 -1
- package/dist/Kit/Navigation/Pagination/index.js +1 -1
- package/dist/Kit/Navigation/SideMenu/index.js +1 -1
- package/dist/Kit/Navigation/Steps/index.js +6 -6
- package/dist/Kit/Navigation/index.js +1 -1
- package/dist/Kit/index.js +3 -3
- package/dist/assets/Avatar.css +1 -1
- package/dist/assets/InputWrapper.css +1 -1
- package/dist/assets/KitNotification.css +1 -1
- package/dist/assets/index.css +1 -1
- package/dist/assets/index10.css +1 -1
- package/dist/assets/index11.css +1 -1
- package/dist/assets/index12.css +1 -1
- package/dist/assets/index13.css +1 -1
- package/dist/assets/index15.css +1 -1
- package/dist/assets/index16.css +1 -1
- package/dist/assets/index17.css +1 -1
- package/dist/assets/index18.css +1 -1
- package/dist/assets/index19.css +1 -1
- package/dist/assets/index20.css +1 -1
- package/dist/assets/index21.css +1 -1
- package/dist/assets/index22.css +1 -1
- package/dist/assets/index23.css +1 -1
- package/dist/assets/index24.css +1 -1
- package/dist/assets/index25.css +1 -1
- package/dist/assets/index26.css +1 -1
- package/dist/assets/index27.css +1 -1
- package/dist/assets/index28.css +1 -1
- package/dist/assets/index29.css +1 -1
- package/dist/assets/index3.css +1 -1
- package/dist/assets/index31.css +1 -1
- package/dist/assets/index32.css +1 -1
- package/dist/assets/index4.css +1 -1
- package/dist/assets/index5.css +1 -1
- package/dist/assets/index6.css +1 -1
- package/dist/assets/index7.css +1 -1
- package/dist/assets/index8.css +1 -1
- package/dist/assets/index9.css +1 -1
- package/dist/assets/styles.css +1 -1
- package/dist/assets/styles2.css +1 -1
- package/dist/chunks/Avatar.icARSD26.js +30 -0
- package/dist/chunks/InputWrapper.RG8Q9Ntu.js +26 -0
- package/dist/chunks/{KitNotification.eFNdYjE1.js → KitNotification.YKY0mq-u.js} +5 -5
- package/dist/chunks/index.wMOo1bfz.js +572 -0
- package/dist/chunks/notification-provider.EgQZHEbE.js +74 -0
- package/dist/chunks/styles.module.Q_QQjQdX.js +8 -0
- package/dist/chunks/{styles.module.x1Oajwjm.js → styles.module.XgQ5x7Pq.js} +1 -1
- package/dist/index.es.js +3 -3
- package/dist/index.umd.js +7 -7
- package/dist/theme/aristid/components/Layout/Divider/index.js +1 -2
- package/dist/theme/aristid/general/colors/index.js +101 -149
- package/dist/theme/aristid/general/index.js +5 -3
- package/dist/theme/aristid/general/utilities/index.d.ts +3 -0
- package/dist/theme/aristid/general/utilities/index.js +107 -0
- package/dist/theme/types/components/Layout/Divider/index.d.ts +0 -2
- package/dist/theme/types/general/colors/index.d.ts +92 -196
- package/dist/theme/types/index.d.ts +2 -0
- package/dist/theme/types/utilities/index.d.ts +249 -0
- package/dist/theme/utils/testTokens.d.ts +31 -48
- package/dist/theme/utils/tokens-mapper/DataDisplay/Badge/index.d.ts +1 -0
- package/dist/theme/utils/tokens-mapper/DataDisplay/Badge/index.js +8 -7
- package/dist/theme/utils/tokens-mapper/DataDisplay/Collapse/index.d.ts +0 -1
- package/dist/theme/utils/tokens-mapper/DataDisplay/Collapse/index.js +4 -5
- package/dist/theme/utils/tokens-mapper/DataDisplay/Table/index.d.ts +0 -1
- package/dist/theme/utils/tokens-mapper/DataDisplay/Table/index.js +3 -5
- package/dist/theme/utils/tokens-mapper/DataDisplay/Tabs/index.js +8 -8
- package/dist/theme/utils/tokens-mapper/{DataEntry → DataDisplay}/Tag/index.d.ts +0 -2
- package/dist/theme/utils/tokens-mapper/DataDisplay/Tag/index.js +8 -0
- package/dist/theme/utils/tokens-mapper/DataDisplay/Tooltip/index.js +8 -8
- package/dist/theme/utils/tokens-mapper/DataDisplay/Tree/index.d.ts +0 -1
- package/dist/theme/utils/tokens-mapper/DataDisplay/Tree/index.js +6 -8
- package/dist/theme/utils/tokens-mapper/DataDisplay/index.d.ts +1 -0
- package/dist/theme/utils/tokens-mapper/DataDisplay/index.js +4 -2
- package/dist/theme/utils/tokens-mapper/DataEntry/Checkbox/index.js +8 -8
- package/dist/theme/utils/tokens-mapper/DataEntry/ColorPicker/index.d.ts +0 -2
- package/dist/theme/utils/tokens-mapper/DataEntry/ColorPicker/index.js +9 -11
- package/dist/theme/utils/tokens-mapper/DataEntry/DatePicker/index.js +16 -16
- package/dist/theme/utils/tokens-mapper/DataEntry/Form/index.js +2 -2
- package/dist/theme/utils/tokens-mapper/DataEntry/Input/index.js +10 -10
- package/dist/theme/utils/tokens-mapper/DataEntry/InputNumber/index.js +12 -12
- package/dist/theme/utils/tokens-mapper/DataEntry/Rate/index.js +1 -1
- package/dist/theme/utils/tokens-mapper/DataEntry/Select/index.js +6 -6
- package/dist/theme/utils/tokens-mapper/DataEntry/Slider/index.js +9 -9
- package/dist/theme/utils/tokens-mapper/Feedback/Alert/index.js +14 -14
- package/dist/theme/utils/tokens-mapper/Feedback/Progress/index.js +5 -5
- package/dist/theme/utils/tokens-mapper/Layout/Divider/index.d.ts +0 -1
- package/dist/theme/utils/tokens-mapper/Layout/Divider/index.js +7 -8
- package/dist/theme/utils/tokens-mapper/Navigation/Pagination/index.js +13 -13
- package/dist/theme/utils/tokens-mapper/Navigation/Steps/index.js +11 -11
- package/dist/theme/utils/tokens-mapper/index.js +26 -26
- package/dist/utils/functions/index.d.ts +4 -1
- package/dist/utils/functions/index.js +50 -37
- package/package.json +1 -1
- package/dist/chunks/Avatar.VZkvLuLD.js +0 -30
- package/dist/chunks/InputWrapper.NQtlTzQk.js +0 -26
- package/dist/chunks/index.tMktkiEu.js +0 -570
- package/dist/chunks/notification-provider.pUKOxZw6.js +0 -74
- package/dist/chunks/styles.module.tkXR5gsa.js +0 -8
- 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
|
|
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
|
|
6
|
-
import { u as
|
|
7
|
-
import { DatePicker as
|
|
8
|
-
import
|
|
9
|
-
import { forwardRef as
|
|
10
|
-
const
|
|
11
|
-
"kit-datepicker": "_kit-
|
|
12
|
-
"kit-rangepicker": "_kit-
|
|
13
|
-
},
|
|
14
|
-
const { appId:
|
|
15
|
-
return e(
|
|
16
|
-
}),
|
|
17
|
-
const { appId:
|
|
18
|
-
return e(
|
|
19
|
-
}),
|
|
20
|
-
|
|
21
|
-
|
|
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
|
-
|
|
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
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
2
|
import { InputRef } from 'antd';
|
|
3
3
|
import { IKitInput } from './types';
|
|
4
|
-
declare const KitInput:
|
|
4
|
+
declare const KitInput: import("react").ForwardRefExoticComponent<IKitInput & import("react").RefAttributes<InputRef>>;
|
|
5
5
|
export default KitInput;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
2
|
import { InputRef } from 'antd';
|
|
3
3
|
import { IKitPassword } from './types';
|
|
4
|
-
declare const KitPassword:
|
|
4
|
+
declare const KitPassword: import("react").ForwardRefExoticComponent<IKitPassword & import("react").RefAttributes<InputRef>>;
|
|
5
5
|
export default KitPassword;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
2
|
import { InputRef } from 'antd';
|
|
3
3
|
import { IKitTextArea } from './types';
|
|
4
|
-
declare const KitTextArea:
|
|
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
|
|
3
|
-
import { forwardRef as
|
|
4
|
-
import { Input as
|
|
5
|
-
import { faCircleXmark as
|
|
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
|
|
8
|
-
import { u as
|
|
9
|
-
import
|
|
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-
|
|
12
|
-
"kit-password": "_kit-
|
|
13
|
-
"kit-textarea": "_kit-
|
|
14
|
-
},
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
}),
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
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
|
-
|
|
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
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
2
|
import { KitInputNumberProps } from './types';
|
|
3
|
-
export declare const KitInputNumber:
|
|
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.
|
|
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-
|
|
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
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
2
|
import { KitRadioGroup } from './types';
|
|
3
|
-
declare const RadioGroup:
|
|
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
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
2
|
import { KitRadioProps } from './types';
|
|
3
3
|
import { RadioRef } from 'antd/es/radio';
|
|
4
|
-
declare const KitRadio:
|
|
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.
|
|
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-
|
|
14
|
+
"kit-radio": "_kit-radio_1xplh_2"
|
|
15
15
|
}, R = $((a, m) => {
|
|
16
|
-
var
|
|
16
|
+
var l;
|
|
17
17
|
const o = p(z), { appId: f } = ae(), { className: r, danger: v, ...h } = a, C = (d) => {
|
|
18
|
-
var
|
|
19
|
-
(
|
|
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 = (
|
|
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
|
-
}),
|
|
27
|
-
const { getPrefixCls:
|
|
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:
|
|
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:
|
|
50
|
-
})),
|
|
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 =
|
|
52
|
+
K.Group = ne;
|
|
53
53
|
export {
|
|
54
54
|
K as KitRadio
|
|
55
55
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
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:
|
|
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-
|
|
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.
|
|
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.
|
|
9
|
+
import { e as s } from "../../../chunks/index.wMOo1bfz.js";
|
|
10
10
|
import "lodash/flatten";
|
|
11
11
|
export {
|
|
12
12
|
s as KitSelect
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
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:
|
|
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
|
|
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-
|
|
9
|
-
"kit-slider-container": "_kit-slider-
|
|
10
|
-
},
|
|
11
|
-
const { appId: n } = h(),
|
|
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": !!
|
|
13
|
+
"with-end-icon": !!s
|
|
14
14
|
});
|
|
15
|
-
return r !== void 0 ||
|
|
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
|
-
|
|
18
|
+
x as KitSlider
|
|
19
19
|
};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
2
|
import { IKitSwitch } from './types';
|
|
3
|
-
export declare const KitSwitch:
|
|
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
|
|
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
|
|
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-
|
|
9
|
-
},
|
|
10
|
-
const { appId:
|
|
11
|
-
return
|
|
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
|
-
|
|
13
|
+
p.displayName = "KitSwitch";
|
|
14
14
|
export {
|
|
15
|
-
|
|
15
|
+
p as KitSwitch
|
|
16
16
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
2
|
import { IKitUpload } from './types';
|
|
3
3
|
import { UploadRef } from 'antd/es/upload/Upload';
|
|
4
|
-
declare const KitUpload:
|
|
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
|
|
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-
|
|
14
|
-
"kit-upload-dragger": "_kit-upload-
|
|
15
|
-
}, v = K(({ listType: o = "text", loading: a, imageUrl:
|
|
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
|
|
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:
|
|
23
|
-
const { appId: i } = h(), n = o ?? "Click or drag file to this area to upload",
|
|
24
|
-
return
|
|
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.
|
|
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.
|
|
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
|
|
9
|
-
"kit-alert": "_kit-
|
|
10
|
-
},
|
|
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,
|
|
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
|
-
|
|
25
|
+
C.displayName = "KitAlert";
|
|
26
26
|
export {
|
|
27
|
-
|
|
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
|
|
3
|
-
import
|
|
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
|
|
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.
|
|
12
|
-
import { u as
|
|
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-
|
|
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 } =
|
|
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(
|
|
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(
|
|
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,6 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
2
|
import { IKitNotificationContext } from './types';
|
|
3
|
-
export declare const KitNotificationContext:
|
|
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
|
|
7
|
-
import { faXmark as
|
|
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-
|
|
11
|
-
}, S = ({ message:
|
|
12
|
-
const { appId: d } = b(), s =
|
|
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:
|
|
17
|
-
|
|
18
|
-
}, children: a("div", { className: "kit-snackbar-cta", children:
|
|
19
|
-
}, g = S, u = 4e3, w = ({ message:
|
|
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();
|