aristid-ds 15.3.0 → 15.3.1
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 +12 -0
- package/dist/Kit/App/index.js +1 -1
- package/dist/Kit/DataDisplay/Badge/index.js +20 -20
- package/dist/Kit/DataDisplay/Collapse/index.js +1 -1
- package/dist/Kit/DataDisplay/Comment/index.js +1 -1
- package/dist/Kit/DataDisplay/Error/index.js +1 -1
- package/dist/Kit/DataDisplay/Image/index.js +1 -1
- package/dist/Kit/DataDisplay/ItemCard/index.js +1 -1
- package/dist/Kit/DataDisplay/ItemList/index.js +1 -1
- package/dist/Kit/DataDisplay/RedirectCard/index.js +1 -1
- package/dist/Kit/DataDisplay/Tabs/index.js +1 -1
- package/dist/Kit/DataDisplay/Tag/index.js +1 -1
- package/dist/Kit/DataDisplay/Tree/index.js +1 -1
- package/dist/Kit/DataEntry/ColorPicker/index.js +1 -1
- package/dist/Kit/DataEntry/DatePicker/index.js +54 -30
- package/dist/Kit/DataEntry/Input/index.js +19 -19
- package/dist/Kit/DataEntry/RichText/MenuBar/FontSizeSelect/index.js +1 -1
- package/dist/Kit/DataEntry/RichText/MenuBar/FontStylesButtons/index.js +1 -1
- package/dist/Kit/DataEntry/RichText/MenuBar/IndentListButtons/index.js +1 -1
- package/dist/Kit/DataEntry/RichText/MenuBar/LinkButton/index.js +1 -1
- package/dist/Kit/DataEntry/RichText/MenuBar/ListButtons/index.js +1 -1
- package/dist/Kit/DataEntry/RichText/MenuBar/TextAlignButtons/index.js +1 -1
- package/dist/Kit/DataEntry/RichText/MenuBar/UndoRedoButtons/index.js +1 -1
- package/dist/Kit/DataEntry/RichText/MenuBar/index.js +1 -1
- package/dist/Kit/DataEntry/Select/index.js +1 -1
- package/dist/Kit/DataEntry/TreeSelect/index.js +1 -1
- package/dist/Kit/DataEntry/Upload/index.js +1 -1
- package/dist/Kit/Feedback/Alert/index.js +1 -1
- package/dist/Kit/Feedback/Modal/index.js +1 -1
- package/dist/Kit/Feedback/Notification/index.js +1 -1
- package/dist/Kit/Feedback/Progress/index.js +1 -1
- package/dist/Kit/General/Button/index.js +1 -1
- package/dist/Kit/General/DynamicActions/index.js +1 -1
- package/dist/Kit/index.js +1 -1
- package/dist/assets/index.css +1 -1
- package/dist/assets/index38.css +1 -1
- package/dist/assets/index44.css +1 -1
- package/dist/assets/styles.css +1 -1
- package/dist/chunks/{Thread.DfvaoSxN.js → Thread.BzM6JOAq.js} +1 -1
- package/dist/chunks/styles.module.uCPgpiKf.js +6 -0
- package/dist/chunks/{useKitLocale.C5F-tmnC.js → useKitLocale.DD7mnAZn.js} +3 -3
- package/dist/index.es.js +2 -2
- package/dist/index.umd.js +4 -4
- package/package.json +1 -1
- package/dist/chunks/styles.module.CGK3Jyfa.js +0 -6
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [15.3.1](https://www.npmjs.com/package/aristid-ds/v/15.3.1) (2026-04-08)
|
|
4
|
+
|
|
5
|
+
### ✨ Features
|
|
6
|
+
|
|
7
|
+
- **Datepicker**
|
|
8
|
+
- Set inner inputs width on `KitRangePicker` picker to match their content (@alechapelain)
|
|
9
|
+
|
|
10
|
+
### 🐛 Bug Fixes
|
|
11
|
+
|
|
12
|
+
- **Badge:**
|
|
13
|
+
- Fix dot badge position when using `status` prop (@philippechevieux)
|
|
14
|
+
|
|
3
15
|
## [15.3.0](https://www.npmjs.com/package/aristid-ds/v/15.3.0) (2026-04-03)
|
|
4
16
|
|
|
5
17
|
### ✨ Features
|
package/dist/Kit/App/index.js
CHANGED
|
@@ -8,7 +8,7 @@ import { Style as u } from "react-style-tag";
|
|
|
8
8
|
import { K as $ } from "../../chunks/useKitTheme.BdeSOGoj.js";
|
|
9
9
|
import { KitAristidThemeGeneral as c } from "../../theme/aristid/general/index.js";
|
|
10
10
|
import { antdThemeConfig as j } from "../../theme/utils/tokens-mapper/index.js";
|
|
11
|
-
import { K as k, u as E } from "../../chunks/useKitLocale.
|
|
11
|
+
import { K as k, u as E } from "../../chunks/useKitLocale.DD7mnAZn.js";
|
|
12
12
|
import { l as m, f, m as x } from "../../chunks/index.CKC2Gl0d.js";
|
|
13
13
|
import { KitEmpty as v } from "../DataDisplay/Empty/index.js";
|
|
14
14
|
import '../../assets/index27.css';const A = "aristid-ds-global", I = (o, e) => {
|
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
import { jsx as C } from "react/jsx-runtime";
|
|
2
|
-
import { forwardRef as b, useRef as R, useState as _, useLayoutEffect as y, useMemo as
|
|
3
|
-
import { Badge as
|
|
4
|
-
import { u as
|
|
5
|
-
import { isValidColor as
|
|
2
|
+
import { forwardRef as b, useRef as R, useState as _, useLayoutEffect as y, useMemo as w } from "react";
|
|
3
|
+
import { Badge as B } from "antd";
|
|
4
|
+
import { u as E } from "../../../chunks/useKitTheme.BdeSOGoj.js";
|
|
5
|
+
import { isValidColor as M, getLighterColor as S, getColor as v } from "../../../utils/functions/index.js";
|
|
6
6
|
import { kitBadgeCssTokens as m } from "../../../theme/aristid/components/DataDisplay/Badge/index.js";
|
|
7
7
|
import x from "classnames";
|
|
8
8
|
import '../../../assets/index.css';const p = {
|
|
9
|
-
"kit-badge-indicator-hidden": "_kit-badge-indicator-
|
|
10
|
-
"kit-badge": "_kit-
|
|
11
|
-
}, K = (t, e) => !t || !
|
|
12
|
-
[m.colors.background.default]:
|
|
13
|
-
[m.colors.typography.default]:
|
|
9
|
+
"kit-badge-indicator-hidden": "_kit-badge-indicator-hidden_1nzdw_2",
|
|
10
|
+
"kit-badge": "_kit-badge_1nzdw_2"
|
|
11
|
+
}, K = (t, e) => !t || !M(t) ? null : {
|
|
12
|
+
[m.colors.background.default]: v(t, e),
|
|
13
|
+
[m.colors.typography.default]: S(t, e)
|
|
14
14
|
}, N = (t) => {
|
|
15
|
-
const e = parseFloat(getComputedStyle(t).borderRadius), { width:
|
|
16
|
-
return Math.min(e,
|
|
15
|
+
const e = parseFloat(getComputedStyle(t).borderRadius), { width: o, height: s } = t.getBoundingClientRect();
|
|
16
|
+
return Math.min(e, o / 2, s / 2);
|
|
17
17
|
}, T = (t) => {
|
|
18
18
|
const e = Math.round(t * (1 - Math.SQRT1_2));
|
|
19
19
|
return [-e, e];
|
|
20
|
-
},
|
|
21
|
-
const d = a.children != null, { appId: g } =
|
|
20
|
+
}, z = b(({ color: t, style: e, secondaryColorInvert: o = !1, className: s, ...a }, r) => {
|
|
21
|
+
const d = a.children != null, { appId: g } = E(), c = R(null), [n, u] = _(d ? null : [0, 0]);
|
|
22
22
|
y(() => {
|
|
23
23
|
if (!d)
|
|
24
24
|
return;
|
|
@@ -33,21 +33,21 @@ import '../../../assets/index.css';const p = {
|
|
|
33
33
|
const l = N(f);
|
|
34
34
|
l > 0 ? u(T(l)) : u([0, 0]);
|
|
35
35
|
}, [d]);
|
|
36
|
-
const h =
|
|
37
|
-
return C(
|
|
36
|
+
const h = w(() => ({ ...e, ...K(t, o) }), [t, o, e]), k = x(g, p["kit-badge"], s);
|
|
37
|
+
return C(B, {
|
|
38
38
|
style: h,
|
|
39
|
-
offset:
|
|
39
|
+
offset: n ?? void 0,
|
|
40
40
|
...a,
|
|
41
41
|
title: "",
|
|
42
42
|
className: k,
|
|
43
43
|
// Hide the indicator until the offset is computed to prevent a visual jump on first render
|
|
44
|
-
classNames: { indicator:
|
|
44
|
+
classNames: { indicator: n === null ? p["kit-badge-indicator-hidden"] : void 0 },
|
|
45
45
|
ref: (i) => {
|
|
46
|
-
c.current = i, typeof
|
|
46
|
+
c.current = i, typeof r == "function" ? r(i) : r && (r.current = i);
|
|
47
47
|
}
|
|
48
48
|
});
|
|
49
49
|
});
|
|
50
|
-
|
|
50
|
+
z.displayName = "KitBadge";
|
|
51
51
|
export {
|
|
52
|
-
|
|
52
|
+
z as KitBadge
|
|
53
53
|
};
|
|
@@ -12,7 +12,7 @@ import { KitSwitch as S } from "../../DataEntry/Switch/index.js";
|
|
|
12
12
|
import { KitTooltip as h } from "../Tooltip/index.js";
|
|
13
13
|
import { KitButton as v } from "../../General/Button/index.js";
|
|
14
14
|
import { KitDropDown as b } from "../../Navigation/DropDown/index.js";
|
|
15
|
-
import { u as z } from "../../../chunks/useKitLocale.
|
|
15
|
+
import { u as z } from "../../../chunks/useKitLocale.DD7mnAZn.js";
|
|
16
16
|
import '../../../assets/index36.css';const u = {
|
|
17
17
|
"kit-collapse": "_kit-collapse_djtan_2",
|
|
18
18
|
"kit-collapse-header": "_kit-collapse-header_djtan_78",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsxs as t, jsx as c } from "react/jsx-runtime";
|
|
2
2
|
import { Suspense as v } from "react";
|
|
3
3
|
import { Empty as d } from "antd";
|
|
4
|
-
import { u as w } from "../../../chunks/useKitLocale.
|
|
4
|
+
import { u as w } from "../../../chunks/useKitLocale.DD7mnAZn.js";
|
|
5
5
|
import { u as p } from "../../../chunks/useKitTheme.BdeSOGoj.js";
|
|
6
6
|
import { KitTypography as M } from "../../General/Typography/index.js";
|
|
7
7
|
import { KitSpace as g } from "../../Layout/Space/index.js";
|
|
@@ -3,7 +3,7 @@ import { Image as a } from "antd";
|
|
|
3
3
|
import d from "classnames";
|
|
4
4
|
import { FontAwesomeIcon as v } from "@fortawesome/react-fontawesome";
|
|
5
5
|
import { faEye as I } from "@fortawesome/free-solid-svg-icons";
|
|
6
|
-
import { u as _ } from "../../../chunks/useKitLocale.
|
|
6
|
+
import { u as _ } from "../../../chunks/useKitLocale.DD7mnAZn.js";
|
|
7
7
|
import { u as j } from "../../../chunks/useKitTheme.BdeSOGoj.js";
|
|
8
8
|
import '../../../assets/index3.css';const m = {
|
|
9
9
|
"kit-image": "_kit-image_t5juo_2",
|
|
@@ -12,7 +12,7 @@ import { KitTooltip as si } from "../Tooltip/index.js";
|
|
|
12
12
|
import { FontAwesomeIcon as O } from "@fortawesome/react-fontawesome";
|
|
13
13
|
import { faEllipsis as oi, faImage as ri } from "@fortawesome/free-solid-svg-icons";
|
|
14
14
|
import { KitDropDown as ai } from "../../Navigation/DropDown/index.js";
|
|
15
|
-
import { u as di } from "../../../chunks/useKitLocale.
|
|
15
|
+
import { u as di } from "../../../chunks/useKitLocale.DD7mnAZn.js";
|
|
16
16
|
import { useDebouncedCallback as ci } from "use-debounce";
|
|
17
17
|
import { N as ni, F as li } from "../../../chunks/constants.CctH0M4n.js";
|
|
18
18
|
import '../../../assets/index28.css';const mi = {
|
|
@@ -8,7 +8,7 @@ import { u as Q } from "../../../chunks/useKitTheme.BdeSOGoj.js";
|
|
|
8
8
|
import { FontAwesomeIcon as x } from "@fortawesome/react-fontawesome";
|
|
9
9
|
import { faEllipsis as E } from "@fortawesome/free-solid-svg-icons";
|
|
10
10
|
import F from "classnames";
|
|
11
|
-
import { u as W } from "../../../chunks/useKitLocale.
|
|
11
|
+
import { u as W } from "../../../chunks/useKitLocale.DD7mnAZn.js";
|
|
12
12
|
import { N as Y, F as Z } from "../../../chunks/constants.CctH0M4n.js";
|
|
13
13
|
import { getStringFromReactNode as B } from "../../../utils/functions/index.js";
|
|
14
14
|
import '../../../assets/index4.css';const m = {
|
|
@@ -10,7 +10,7 @@ import { KitDivider as L } from "../../Layout/Divider/index.js";
|
|
|
10
10
|
import { KitButton as k } from "../../General/Button/index.js";
|
|
11
11
|
import { KitTooltip as R } from "../Tooltip/index.js";
|
|
12
12
|
import { KitDropDown as g } from "../../Navigation/DropDown/index.js";
|
|
13
|
-
import { u as P } from "../../../chunks/useKitLocale.
|
|
13
|
+
import { u as P } from "../../../chunks/useKitLocale.DD7mnAZn.js";
|
|
14
14
|
import { N as O, F as S } from "../../../chunks/constants.CctH0M4n.js";
|
|
15
15
|
import '../../../assets/index22.css';const j = {
|
|
16
16
|
"kit-redirect-card": "_kit-redirect-card_1yxds_2"
|
|
@@ -7,7 +7,7 @@ import { FontAwesomeIcon as D } from "@fortawesome/react-fontawesome";
|
|
|
7
7
|
import { faPlus as J, faEllipsisVertical as M } from "@fortawesome/free-solid-svg-icons";
|
|
8
8
|
import { F as Q } from "../../../chunks/constants.CctH0M4n.js";
|
|
9
9
|
import { KitDropDown as Y } from "../../Navigation/DropDown/index.js";
|
|
10
|
-
import { u as Z } from "../../../chunks/useKitLocale.
|
|
10
|
+
import { u as Z } from "../../../chunks/useKitLocale.DD7mnAZn.js";
|
|
11
11
|
import { KitTypography as tt } from "../../General/Typography/index.js";
|
|
12
12
|
import { KitBadge as et } from "../Badge/index.js";
|
|
13
13
|
import '../../../assets/index29.css';const I = {
|
|
@@ -8,7 +8,7 @@ import { faXmark as R } from "@fortawesome/free-solid-svg-icons";
|
|
|
8
8
|
import { KitIdCard as X } from "../IdCard/index.js";
|
|
9
9
|
import { T as P, N as V, F as H } from "../../../chunks/constants.CctH0M4n.js";
|
|
10
10
|
import { KitTooltip as L } from "../Tooltip/index.js";
|
|
11
|
-
import { u as j } from "../../../chunks/useKitLocale.
|
|
11
|
+
import { u as j } from "../../../chunks/useKitLocale.DD7mnAZn.js";
|
|
12
12
|
import { KitModal as Y } from "../../Feedback/Modal/index.js";
|
|
13
13
|
import '../../../assets/index37.css';const N = {
|
|
14
14
|
"kit-tag": "_kit-tag_2tdjx_2",
|
|
@@ -4,7 +4,7 @@ import { u as p } from "../../../chunks/useKitTheme.BdeSOGoj.js";
|
|
|
4
4
|
import v from "classnames";
|
|
5
5
|
import { FontAwesomeIcon as n } from "@fortawesome/react-fontawesome";
|
|
6
6
|
import { faCaretRight as u, faCircleNotch as f } from "@fortawesome/free-solid-svg-icons";
|
|
7
|
-
import { u as g } from "../../../chunks/useKitLocale.
|
|
7
|
+
import { u as g } from "../../../chunks/useKitLocale.DD7mnAZn.js";
|
|
8
8
|
import '../../../assets/index5.css';const x = {
|
|
9
9
|
"kit-tree": "_kit-tree_uexge_12"
|
|
10
10
|
}, D = ({ className: l, switcherLoadingIcon: o, ...d }) => {
|
|
@@ -6,7 +6,7 @@ import { ColorPicker as no } from "antd";
|
|
|
6
6
|
import b from "classnames";
|
|
7
7
|
import { FontAwesomeIcon as co } from "@fortawesome/react-fontawesome";
|
|
8
8
|
import { faCircleXmark as lo } from "@fortawesome/free-solid-svg-icons";
|
|
9
|
-
import { u as so } from "../../../chunks/useKitLocale.
|
|
9
|
+
import { u as so } from "../../../chunks/useKitLocale.DD7mnAZn.js";
|
|
10
10
|
import { u as ao } from "../../../chunks/useGetPopupContainer.bCZKSUsz.js";
|
|
11
11
|
import '../../../assets/index23.css';const v = {
|
|
12
12
|
"kit-colorpicker": "_kit-colorpicker_19hvp_2",
|
|
@@ -1,32 +1,56 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { forwardRef as
|
|
3
|
-
import { DatePicker as
|
|
4
|
-
import
|
|
5
|
-
import { FontAwesomeIcon as
|
|
6
|
-
import { faChevronLeft as
|
|
7
|
-
import { K as
|
|
8
|
-
import { u as
|
|
9
|
-
import { u as
|
|
10
|
-
import '../../../assets/index44.css';const
|
|
11
|
-
"kit-datepicker": "_kit-
|
|
12
|
-
"kit-rangepicker": "_kit-
|
|
13
|
-
},
|
|
14
|
-
var
|
|
15
|
-
const { appId:
|
|
16
|
-
"kit-picker-readonly-light":
|
|
17
|
-
"kit-picker-readonly":
|
|
18
|
-
}),
|
|
19
|
-
return e(
|
|
20
|
-
}),
|
|
21
|
-
var
|
|
22
|
-
const { appId:
|
|
23
|
-
"kit-picker-readonly-light":
|
|
24
|
-
"kit-picker-readonly":
|
|
25
|
-
}),
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
1
|
+
import { jsxs as w, jsx as e, Fragment as ie } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as $, useRef as E, useState as re, useEffect as X } from "react";
|
|
3
|
+
import { DatePicker as q } from "antd";
|
|
4
|
+
import F from "classnames";
|
|
5
|
+
import { FontAwesomeIcon as o } from "@fortawesome/react-fontawesome";
|
|
6
|
+
import { faChevronLeft as D, faChevronRight as W, faClock as H, faCalendar as J, faCircleXmark as Q, faArrowRight as te } from "@fortawesome/free-solid-svg-icons";
|
|
7
|
+
import { K as U } from "../../../chunks/InputWrapper.D7QArlvo.js";
|
|
8
|
+
import { u as Y } from "../../../chunks/useKitTheme.BdeSOGoj.js";
|
|
9
|
+
import { u as Z } from "../../../chunks/useGetPopupContainer.bCZKSUsz.js";
|
|
10
|
+
import '../../../assets/index44.css';const y = {
|
|
11
|
+
"kit-datepicker": "_kit-datepicker_1upid_2",
|
|
12
|
+
"kit-rangepicker": "_kit-rangepicker_1upid_210"
|
|
13
|
+
}, z = () => w("div", { className: "double-chevron", children: [e(o, { className: "chevron-icon double-chevron-left-icon", icon: D }), e(o, { className: "chevron-icon", icon: D })] }), L = () => w("div", { className: "double-chevron", children: [e(o, { className: "chevron-icon", icon: W }), e(o, { className: "chevron-icon double-chevron-right-icon", icon: W })] }), ce = $(({ label: A, helper: S, htmlFor: _, suffixIcon: x, className: G, wrapperClassName: C, prefix: s, required: h, actions: R, extra: b, disabled: p, placeholder: M, getPopupContainer: u, picker: f = "date", size: V = "large", allowClear: k = !0, readonlyLight: n = !1, readonly: t = !1, ...d }, a) => {
|
|
14
|
+
var v, I;
|
|
15
|
+
const { appId: j } = Y(), N = E(null), g = (v = a) !== null && v !== void 0 ? v : N, K = Z(g, u), r = F(j, y["kit-datepicker"], G, {
|
|
16
|
+
"kit-picker-readonly-light": n,
|
|
17
|
+
"kit-picker-readonly": t
|
|
18
|
+
}), B = s ?? (f === "time" ? e(o, { icon: H }) : e(o, { icon: J }));
|
|
19
|
+
return e(U, { label: A, helper: S, htmlFor: _, disabled: p, status: d.status, className: C, required: h, extra: b ?? R, children: e(q, { ...d, id: (I = d.id) !== null && I !== void 0 ? I : _, required: h, picker: f, disabled: n || t || p, variant: n ? "borderless" : void 0, ref: a ?? N, size: V, getPopupContainer: K, placeholder: !n && !t ? M : void 0, allowClear: !n && !t && k && { clearIcon: e(o, { "aria-label": "clear", icon: Q }) }, prefix: B, suffixIcon: k ? void 0 : x, className: r, prevIcon: e(o, { className: "chevron-icon", icon: D }), nextIcon: e(o, { className: "chevron-icon", icon: W }), superPrevIcon: e(z, {}), superNextIcon: e(L, {}) }) });
|
|
20
|
+
}), ae = $(({ label: A, className: S, helper: _, htmlFor: x, suffixIcon: G, picker: C, prefix: s, allowClear: h = !0, required: R, actions: b, extra: p, placeholder: M, readonlyLight: u = !1, readonly: f = !1, getPopupContainer: V, size: k = "large", ...n }, t) => {
|
|
21
|
+
var d, a;
|
|
22
|
+
const [v, I] = re(["", ""]), { appId: j } = Y(), N = E(null), g = E(null), K = E(null), r = (d = t) !== null && d !== void 0 ? d : N, B = Z(r, V), ee = () => n.disabled === void 0 ? !1 : typeof n.disabled == "boolean" ? n.disabled : n.disabled[0] && n.disabled[1], ne = F(j, y["kit-rangepicker"], S, {
|
|
23
|
+
"kit-picker-readonly-light": u,
|
|
24
|
+
"kit-picker-readonly": f
|
|
25
|
+
}), oe = s ?? (C === "time" ? e(o, { icon: H }) : e(o, { icon: J })), O = (i) => {
|
|
26
|
+
I([
|
|
27
|
+
i[0].value || i[0].placeholder || "",
|
|
28
|
+
i[1].value || i[1].placeholder || ""
|
|
29
|
+
]);
|
|
30
|
+
};
|
|
31
|
+
return X(() => {
|
|
32
|
+
var i;
|
|
33
|
+
const c = (i = r?.current) === null || i === void 0 ? void 0 : i.nativeElement.querySelectorAll(".ant-picker-input input");
|
|
34
|
+
if (!c || c.length < 2)
|
|
35
|
+
return;
|
|
36
|
+
const m = [];
|
|
37
|
+
return c.forEach((l) => {
|
|
38
|
+
const T = new MutationObserver(() => O(c));
|
|
39
|
+
T.observe(l, {
|
|
40
|
+
attributes: !0,
|
|
41
|
+
attributeFilter: ["value"]
|
|
42
|
+
}), m.push(T);
|
|
43
|
+
}), O(c), () => {
|
|
44
|
+
m.forEach((l) => l.disconnect());
|
|
45
|
+
};
|
|
46
|
+
}, [r]), X(() => {
|
|
47
|
+
var i, c, m;
|
|
48
|
+
const l = (i = r?.current) === null || i === void 0 ? void 0 : i.nativeElement.querySelectorAll(".ant-picker-input");
|
|
49
|
+
!l || l.length < 2 || (l[0].style.flexBasis = ((c = g.current) === null || c === void 0 ? void 0 : c.offsetWidth) + "px", l[1].style.flexBasis = ((m = K.current) === null || m === void 0 ? void 0 : m.offsetWidth) + "px");
|
|
50
|
+
}, [r, v]), w(ie, { children: [w("div", { className: F("range-mirror-wrapper", k, { "readonly-light": u }), "aria-hidden": "true", children: [e("span", { className: "range-mirror-input", ref: g, children: v[0] }), e("span", { className: "range-mirror-input", ref: K, children: v[1] })] }), e(U, { label: A, helper: _, htmlFor: x, disabled: ee(), status: n.status, required: R, extra: p ?? b, children: e(q.RangePicker, { ...n, id: (a = n.id) !== null && a !== void 0 ? a : x, picker: C, ref: t ?? N, getPopupContainer: B, required: R, size: k, disabled: u || f || n.disabled, variant: u ? "borderless" : void 0, placeholder: !u && !f ? M : void 0, suffixIcon: h ? void 0 : G, allowClear: h && { clearIcon: e(o, { "aria-label": "clear", icon: Q }) }, className: ne, prefix: oe, separator: e(o, { icon: te }), prevIcon: e(o, { className: "chevron-icon", icon: D }), nextIcon: e(o, { className: "chevron-icon", icon: W }), superPrevIcon: e(z, {}), superNextIcon: e(L, {}) }) })] });
|
|
51
|
+
}), P = ce;
|
|
52
|
+
P.displayName = "KitDatePicker";
|
|
53
|
+
P.RangePicker = ae;
|
|
30
54
|
export {
|
|
31
|
-
|
|
55
|
+
P as KitDatePicker
|
|
32
56
|
};
|
|
@@ -1,34 +1,34 @@
|
|
|
1
1
|
import { jsx as t } from "react/jsx-runtime";
|
|
2
|
-
import { forwardRef as
|
|
3
|
-
import { Input as
|
|
4
|
-
import { faCircleXmark as
|
|
2
|
+
import { forwardRef as g } from "react";
|
|
3
|
+
import { Input as h } from "antd";
|
|
4
|
+
import { faCircleXmark as x, faEye as y, faEyeSlash as R } from "@fortawesome/free-solid-svg-icons";
|
|
5
5
|
import { FontAwesomeIcon as K } from "@fortawesome/react-fontawesome";
|
|
6
|
-
import { K as
|
|
7
|
-
import { u as
|
|
8
|
-
import
|
|
6
|
+
import { K as z } from "../../../chunks/InputWrapper.D7QArlvo.js";
|
|
7
|
+
import { u as N } from "../../../chunks/useKitTheme.BdeSOGoj.js";
|
|
8
|
+
import T from "classnames";
|
|
9
9
|
import { KitTypography as S } from "../../General/Typography/index.js";
|
|
10
|
-
import '../../../assets/index38.css';const
|
|
11
|
-
"kit-input": "_kit-
|
|
12
|
-
"kit-password": "_kit-
|
|
13
|
-
"kit-textarea": "_kit-
|
|
14
|
-
}, W =
|
|
10
|
+
import '../../../assets/index38.css';const b = {
|
|
11
|
+
"kit-input": "_kit-input_zwgm2_2",
|
|
12
|
+
"kit-password": "_kit-password_zwgm2_206",
|
|
13
|
+
"kit-textarea": "_kit-textarea_zwgm2_353"
|
|
14
|
+
}, W = g(({ label: u, className: m, helper: f, htmlFor: o, wrapperClassName: s, allowClear: p = !0, required: c, actions: d, extra: i, disabled: r, placeholder: v, readonly: e = !1, readonlyLight: n = !1, size: w = "large", ...a }, k) => {
|
|
15
15
|
var l;
|
|
16
|
-
const { appId:
|
|
16
|
+
const { appId: I } = N(), _ = T(I, b["kit-input"], m, {
|
|
17
17
|
"kit-input-readonly": e
|
|
18
18
|
});
|
|
19
|
-
return t(
|
|
20
|
-
}), X =
|
|
19
|
+
return t(z, { label: u, helper: f, htmlFor: o, disabled: r, status: a.status, className: s, required: c, extra: i ?? d, children: n ? t(S.Text, { weight: "bold", size: "fontSize5", color: a.status === "error" ? "error" : void 0, children: a.value }) : t(h, { ...a, ref: k, id: (l = a.id) !== null && l !== void 0 ? l : o, className: _, disabled: r || e, required: c, size: w, placeholder: !e && !n ? v : void 0, allowClear: p ? { clearIcon: t(K, { "aria-label": "clear", icon: x }) } : void 0 }) });
|
|
20
|
+
}), X = g(({ label: u, className: m, helper: f, htmlFor: o, wrapperClassName: s, allowClear: p = !0, required: c, actions: d, extra: i, disabled: r, placeholder: v, readonly: e = !1, readonlyLight: n = !1, size: w = "large", ...a }, k) => {
|
|
21
21
|
var l;
|
|
22
|
-
const { appId:
|
|
22
|
+
const { appId: I } = N(), _ = T(I, b["kit-textarea"], m, {
|
|
23
23
|
"kit-textarea-readonly": e
|
|
24
24
|
});
|
|
25
|
-
return t(
|
|
26
|
-
}), $ =
|
|
25
|
+
return t(z, { label: u, helper: f, htmlFor: o, disabled: r, status: a.status, className: s, required: c, extra: i ?? d, children: n ? t(S.Text, { weight: "bold", size: "fontSize5", color: a.status === "error" ? "error" : void 0, children: a.value }) : t(h.TextArea, { ...a, ref: k, id: (l = a.id) !== null && l !== void 0 ? l : o, className: _, disabled: r || e, required: c, size: w, placeholder: !e && !n ? v : void 0, allowClear: p ? { clearIcon: t(K, { "aria-label": "clear", icon: x }) } : void 0 }) });
|
|
26
|
+
}), $ = g(({ label: u, className: m, helper: f, htmlFor: o, iconRender: s, wrapperClassName: p, allowClear: c = !0, disabled: d, readonly: i = !1, required: r, actions: v, extra: e, placeholder: n, size: w = "large", ...a }, k) => {
|
|
27
27
|
var l;
|
|
28
|
-
const { appId:
|
|
28
|
+
const { appId: I } = N(), _ = T(I, b["kit-password"], m, {
|
|
29
29
|
"kit-password-readonly": i
|
|
30
30
|
}), E = (j) => j ? t(K, { icon: y }) : t(K, { icon: R });
|
|
31
|
-
return t(
|
|
31
|
+
return t(z, { label: u, helper: f, htmlFor: o, disabled: d, status: a.status, className: p, required: r, extra: e ?? v, children: t(h.Password, { ...a, className: _, placeholder: i ? void 0 : n, disabled: d || i, required: r, id: (l = a.id) !== null && l !== void 0 ? l : o, ref: k, size: w, allowClear: c ? { clearIcon: t(K, { "aria-label": "clear", icon: x }) } : void 0, iconRender: s ?? E }) });
|
|
32
32
|
}), C = W;
|
|
33
33
|
C.displayName = "KitInput";
|
|
34
34
|
C.TextArea = X;
|
|
@@ -5,7 +5,7 @@ import { useState as S } from "react";
|
|
|
5
5
|
import f from "classnames";
|
|
6
6
|
import { FontAwesomeIcon as K } from "@fortawesome/react-fontawesome";
|
|
7
7
|
import { faCaretDown as T } from "@fortawesome/free-solid-svg-icons";
|
|
8
|
-
import { u as F } from "../../../../../chunks/useKitLocale.
|
|
8
|
+
import { u as F } from "../../../../../chunks/useKitLocale.DD7mnAZn.js";
|
|
9
9
|
import '../../../../../assets/index21.css';const p = {
|
|
10
10
|
"kit-rich-text-select-font-size": "_kit-rich-text-select-font-size_1jpnq_2",
|
|
11
11
|
"kit-rich-text-select-font-size-dropdown": "_kit-rich-text-select-font-size-dropdown_1jpnq_28"
|
|
@@ -3,7 +3,7 @@ import { faBold as g, faItalic as x, faUnderline as _ } from "@fortawesome/free-
|
|
|
3
3
|
import { FontAwesomeIcon as d } from "@fortawesome/react-fontawesome";
|
|
4
4
|
import { g as s } from "../../../../../chunks/getButtonActiveClass.CdKy9gg4.js";
|
|
5
5
|
import { KitButtonTooltip as u } from "../ButtonTooltip/index.js";
|
|
6
|
-
import { u as p } from "../../../../../chunks/useKitLocale.
|
|
6
|
+
import { u as p } from "../../../../../chunks/useKitLocale.DD7mnAZn.js";
|
|
7
7
|
const F = ({ editor: l }) => {
|
|
8
8
|
var n, t, c, e, a, r;
|
|
9
9
|
const { locale: o } = p(), m = () => {
|
|
@@ -2,7 +2,7 @@ import { jsxs as I, Fragment as f, jsx as t } from "react/jsx-runtime";
|
|
|
2
2
|
import { faIndent as h, faOutdent as v } from "@fortawesome/free-solid-svg-icons";
|
|
3
3
|
import { FontAwesomeIcon as s } from "@fortawesome/react-fontawesome";
|
|
4
4
|
import { KitButtonTooltip as d } from "../ButtonTooltip/index.js";
|
|
5
|
-
import { u as L } from "../../../../../chunks/useKitLocale.
|
|
5
|
+
import { u as L } from "../../../../../chunks/useKitLocale.DD7mnAZn.js";
|
|
6
6
|
const T = ({ editor: n }) => {
|
|
7
7
|
var o, e, l, c;
|
|
8
8
|
const { locale: i } = L(), a = n.can().sinkListItem("listItem"), r = n.can().liftListItem("listItem"), m = () => {
|
|
@@ -7,7 +7,7 @@ import { KitModal as A } from "../../../../Feedback/Modal/index.js";
|
|
|
7
7
|
import { KitButton as F } from "../../../../General/Button/index.js";
|
|
8
8
|
import { KitSpace as E } from "../../../../Layout/Space/index.js";
|
|
9
9
|
import V from "classnames";
|
|
10
|
-
import { u as g } from "../../../../../chunks/useKitLocale.
|
|
10
|
+
import { u as g } from "../../../../../chunks/useKitLocale.DD7mnAZn.js";
|
|
11
11
|
import { Form as f } from "antd";
|
|
12
12
|
import { useForm as W, useWatch as z } from "antd/es/form/Form";
|
|
13
13
|
import { KitButtonTooltip as G } from "../ButtonTooltip/index.js";
|
|
@@ -3,7 +3,7 @@ import { faListUl as h, faListOl as f } from "@fortawesome/free-solid-svg-icons"
|
|
|
3
3
|
import { FontAwesomeIcon as n } from "@fortawesome/react-fontawesome";
|
|
4
4
|
import { g as c } from "../../../../../chunks/getButtonActiveClass.CdKy9gg4.js";
|
|
5
5
|
import { KitButtonTooltip as a } from "../ButtonTooltip/index.js";
|
|
6
|
-
import { u as v } from "../../../../../chunks/useKitLocale.
|
|
6
|
+
import { u as v } from "../../../../../chunks/useKitLocale.DD7mnAZn.js";
|
|
7
7
|
const C = ({ editor: i }) => {
|
|
8
8
|
var l, e, r, s;
|
|
9
9
|
const { locale: o } = v(), d = () => {
|
|
@@ -3,7 +3,7 @@ import { faAlignLeft as C, faAlignCenter as R, faAlignRight as _, faAlignJustify
|
|
|
3
3
|
import { FontAwesomeIcon as l } from "@fortawesome/react-fontawesome";
|
|
4
4
|
import { g as e } from "../../../../../chunks/getButtonActiveClass.CdKy9gg4.js";
|
|
5
5
|
import { KitButtonTooltip as o } from "../ButtonTooltip/index.js";
|
|
6
|
-
import { u as k } from "../../../../../chunks/useKitLocale.
|
|
6
|
+
import { u as k } from "../../../../../chunks/useKitLocale.DD7mnAZn.js";
|
|
7
7
|
const K = ({ editor: t }) => {
|
|
8
8
|
var c, a, s, r, g, u, h, f;
|
|
9
9
|
const { locale: n } = k(), x = () => {
|
|
@@ -2,7 +2,7 @@ import { jsxs as f, Fragment as m, jsx as o } from "react/jsx-runtime";
|
|
|
2
2
|
import { faArrowRotateLeft as R, faArrowRotateRight as v } from "@fortawesome/free-solid-svg-icons";
|
|
3
3
|
import { FontAwesomeIcon as d } from "@fortawesome/react-fontawesome";
|
|
4
4
|
import { KitButtonTooltip as l } from "../ButtonTooltip/index.js";
|
|
5
|
-
import { u as b } from "../../../../../chunks/useKitLocale.
|
|
5
|
+
import { u as b } from "../../../../../chunks/useKitLocale.DD7mnAZn.js";
|
|
6
6
|
const C = ({ editor: n }) => {
|
|
7
7
|
var t, c, r, e;
|
|
8
8
|
const { locale: i } = b(), a = n.can().chain().focus().undo().run(), u = n.can().chain().focus().redo().run(), s = () => {
|
|
@@ -6,7 +6,7 @@ import { KitUndoRedoButtons as l } from "./UndoRedoButtons/index.js";
|
|
|
6
6
|
import { KitFontSizeSelect as u } from "./FontSizeSelect/index.js";
|
|
7
7
|
import { faEllipsisVertical as h } from "@fortawesome/free-solid-svg-icons";
|
|
8
8
|
import { FontAwesomeIcon as v } from "@fortawesome/react-fontawesome";
|
|
9
|
-
import { u as f } from "../../../../chunks/useKitLocale.
|
|
9
|
+
import { u as f } from "../../../../chunks/useKitLocale.DD7mnAZn.js";
|
|
10
10
|
import { KitButtonTooltip as x } from "./ButtonTooltip/index.js";
|
|
11
11
|
import { Popover as d } from "antd";
|
|
12
12
|
import { KitMenuActionList as n } from "./MenuActionList/index.js";
|
|
@@ -6,7 +6,7 @@ import De from "short-unique-id";
|
|
|
6
6
|
import { useDebouncedCallback as Ee } from "use-debounce";
|
|
7
7
|
import { K as Pe } from "../../../chunks/InputWrapper.D7QArlvo.js";
|
|
8
8
|
import { u as Ne } from "../../../chunks/useKitTheme.BdeSOGoj.js";
|
|
9
|
-
import { s as Oe } from "../../../chunks/styles.module.
|
|
9
|
+
import { s as Oe } from "../../../chunks/styles.module.uCPgpiKf.js";
|
|
10
10
|
import { FontAwesomeIcon as k } from "@fortawesome/react-fontawesome";
|
|
11
11
|
import { faCircleXmark as Ae, faCircleNotch as Le, faChevronDown as Re, faCheck as xe } from "@fortawesome/free-solid-svg-icons";
|
|
12
12
|
import { KitIcon as y } from "../../General/Icon/index.js";
|
|
@@ -6,7 +6,7 @@ import ce from "short-unique-id";
|
|
|
6
6
|
import { K as ie } from "../../../chunks/InputWrapper.D7QArlvo.js";
|
|
7
7
|
import { u as ae } from "../../../chunks/useKitTheme.BdeSOGoj.js";
|
|
8
8
|
import { u as de } from "../../../chunks/useGetPopupContainer.bCZKSUsz.js";
|
|
9
|
-
import { s as pe } from "../../../chunks/styles.module.
|
|
9
|
+
import { s as pe } from "../../../chunks/styles.module.uCPgpiKf.js";
|
|
10
10
|
import { KitTag as ue } from "../../DataDisplay/Tag/index.js";
|
|
11
11
|
import { KitIdCard as fe } from "../../DataDisplay/IdCard/index.js";
|
|
12
12
|
import { useDebouncedCallback as me } from "use-debounce";
|
|
@@ -5,7 +5,7 @@ import { KitButton as x } from "../../General/Button/index.js";
|
|
|
5
5
|
import { u as y } from "../../../chunks/useKitTheme.BdeSOGoj.js";
|
|
6
6
|
import { FontAwesomeIcon as p } from "@fortawesome/react-fontawesome";
|
|
7
7
|
import { faPaperclip as K, faDownload as F, faTrash as A, faArrowUpRightFromSquare as I, faInbox as O } from "@fortawesome/free-solid-svg-icons";
|
|
8
|
-
import { u as w } from "../../../chunks/useKitLocale.
|
|
8
|
+
import { u as w } from "../../../chunks/useKitLocale.DD7mnAZn.js";
|
|
9
9
|
import N from "classnames";
|
|
10
10
|
import { KitItemList as S } from "../../DataDisplay/ItemList/index.js";
|
|
11
11
|
import { KitProgress as C } from "../../Feedback/Progress/index.js";
|
|
@@ -6,7 +6,7 @@ import { faCaretRight as S, faXmark as T, faCircleExclamation as j, faCircleXmar
|
|
|
6
6
|
import { useState as X } from "react";
|
|
7
7
|
import { u as $ } from "../../../chunks/useKitTheme.BdeSOGoj.js";
|
|
8
8
|
import { KitTypography as f } from "../../General/Typography/index.js";
|
|
9
|
-
import { u as g } from "../../../chunks/useKitLocale.
|
|
9
|
+
import { u as g } from "../../../chunks/useKitLocale.DD7mnAZn.js";
|
|
10
10
|
import { uuid as E } from "../../../utils/functions/index.js";
|
|
11
11
|
import '../../../assets/index31.css';const G = {
|
|
12
12
|
"kit-alert": "_kit-alert_d4axw_2"
|
|
@@ -7,7 +7,7 @@ import { FontAwesomeIcon as f } from "@fortawesome/react-fontawesome";
|
|
|
7
7
|
import { KitTooltip as X } from "../../DataDisplay/Tooltip/index.js";
|
|
8
8
|
import { KitButton as I } from "../../General/Button/index.js";
|
|
9
9
|
import { KitTypography as Y } from "../../General/Typography/index.js";
|
|
10
|
-
import { u as J } from "../../../chunks/useKitLocale.
|
|
10
|
+
import { u as J } from "../../../chunks/useKitLocale.DD7mnAZn.js";
|
|
11
11
|
import { T as Q } from "../../../chunks/constants.CctH0M4n.js";
|
|
12
12
|
import { KitSpace as V } from "../../Layout/Space/index.js";
|
|
13
13
|
import { createRoot as Z } from "react-dom/client";
|
|
@@ -11,7 +11,7 @@ import { KitTypography as b } from "../../General/Typography/index.js";
|
|
|
11
11
|
import { KitButton as W } from "../../General/Button/index.js";
|
|
12
12
|
import { KitTooltip as X } from "../../DataDisplay/Tooltip/index.js";
|
|
13
13
|
import { T as Y } from "../../../chunks/constants.CctH0M4n.js";
|
|
14
|
-
import { u as q } from "../../../chunks/useKitLocale.
|
|
14
|
+
import { u as q } from "../../../chunks/useKitLocale.DD7mnAZn.js";
|
|
15
15
|
import w from "react-hot-toast";
|
|
16
16
|
import '../../../assets/index33.css';const H = () => ({
|
|
17
17
|
color: `var(${t.colors.icon.neutral}, var(${r.neutral.dark}))`,
|
|
@@ -4,7 +4,7 @@ import { u as w } from "../../../chunks/useKitTheme.BdeSOGoj.js";
|
|
|
4
4
|
import h from "classnames";
|
|
5
5
|
import { FontAwesomeIcon as K } from "@fortawesome/react-fontawesome";
|
|
6
6
|
import { faCircleXmark as _, faCircleCheck as b } from "@fortawesome/free-solid-svg-icons";
|
|
7
|
-
import { u as x } from "../../../chunks/useKitLocale.
|
|
7
|
+
import { u as x } from "../../../chunks/useKitLocale.DD7mnAZn.js";
|
|
8
8
|
import y from "antd/locale/en_US";
|
|
9
9
|
import { KitTooltip as T } from "../../DataDisplay/Tooltip/index.js";
|
|
10
10
|
import '../../../assets/index46.css';const v = 0, N = 100, P = (r) => Math.min(Math.max(r, v), N), M = {
|
|
@@ -8,7 +8,7 @@ import q from "../../../hooks/useSecureClick/index.js";
|
|
|
8
8
|
import g from "classnames";
|
|
9
9
|
import { F as G } from "../../../chunks/constants.CctH0M4n.js";
|
|
10
10
|
import { KitDropDown as H } from "../../Navigation/DropDown/index.js";
|
|
11
|
-
import { u as J } from "../../../chunks/useKitLocale.
|
|
11
|
+
import { u as J } from "../../../chunks/useKitLocale.DD7mnAZn.js";
|
|
12
12
|
import '../../../assets/index41.css';const Q = {
|
|
13
13
|
"kit-btn": "_kit-btn_n8epu_2"
|
|
14
14
|
}, W = (t) => {
|
|
@@ -3,7 +3,7 @@ import { KitDropDown as y } from "../../Navigation/DropDown/index.js";
|
|
|
3
3
|
import { faEllipsis as E } from "@fortawesome/free-solid-svg-icons";
|
|
4
4
|
import { FontAwesomeIcon as K } from "@fortawesome/react-fontawesome";
|
|
5
5
|
import { KitButton as v } from "../Button/index.js";
|
|
6
|
-
import { u as x } from "../../../chunks/useKitLocale.
|
|
6
|
+
import { u as x } from "../../../chunks/useKitLocale.DD7mnAZn.js";
|
|
7
7
|
import { KitTooltip as N } from "../../DataDisplay/Tooltip/index.js";
|
|
8
8
|
const d = ({ icon: r, ...l }) => {
|
|
9
9
|
var n;
|
package/dist/Kit/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { KitApp as o } from "./App/index.js";
|
|
2
2
|
import { KitAvatar as a } from "./DataDisplay/Avatar/index.js";
|
|
3
3
|
import { KitBadge as n } from "./DataDisplay/Badge/index.js";
|
|
4
|
-
import { K as s, a as m } from "../chunks/Thread.
|
|
4
|
+
import { K as s, a as m } from "../chunks/Thread.BzM6JOAq.js";
|
|
5
5
|
import { KitItemCard as f } from "./DataDisplay/ItemCard/index.js";
|
|
6
6
|
import { KitCollapse as K } from "./DataDisplay/Collapse/index.js";
|
|
7
7
|
import { KitEmpty as d } from "./DataDisplay/Empty/index.js";
|
package/dist/assets/index.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
._kit-badge-indicator-
|
|
1
|
+
._kit-badge-indicator-hidden_1nzdw_2{visibility:hidden}._kit-badge_1nzdw_2{--kit-badge-size: 16px;--kit-badge-dot-size: 8px}._kit-badge_1nzdw_2.ant-badge{line-height:var(--kit-badge-size);font-size:calc(var(--general-typography-fontSize7) * 1px)}._kit-badge_1nzdw_2.ant-badge .ant-badge-count{min-width:var(--kit-badge-size);height:var(--kit-badge-size);line-height:var(--kit-badge-size);background:var(--components-Badge-colors-background-default, var(--general-utilities-error-dark));color:var(--components-Badge-colors-typography-default, var(--general-utilities-light));z-index:50}._kit-badge_1nzdw_2.ant-badge .ant-scroll-number .ant-scroll-number-only{height:var(--kit-badge-size)}._kit-badge_1nzdw_2.ant-badge .ant-badge-multiple-words{padding:0 calc(var(--general-spacing-xxs) * 1px)}._kit-badge_1nzdw_2.ant-badge.ant-badge-status .ant-badge-dot,._kit-badge_1nzdw_2.ant-badge .ant-badge-dot{min-width:var(--kit-badge-dot-size);width:var(--kit-badge-dot-size);height:var(--kit-badge-dot-size)}._kit-badge_1nzdw_2.ant-badge .ant-badge-status-processing.ant-scroll-number{position:absolute}._kit-badge_1nzdw_2.ant-badge .ant-badge-status-processing:after{animation-name:none;content:initial}._kit-badge_1nzdw_2.ant-badge .ant-badge-status-processing.ant-badge-status-dot:after{animation-name:none;content:initial}
|