aristid-ds 15.3.0 → 15.3.1-abffb36
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 +21 -0
- package/dist/Kit/App/index.js +1 -1
- package/dist/Kit/DataDisplay/Avatar/index.js +2 -2
- 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/Empty/index.js +1 -1
- package/dist/Kit/DataDisplay/Error/index.js +1 -1
- package/dist/Kit/DataDisplay/IdCard/index.js +2 -2
- 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/Table/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/Tour/index.js +1 -1
- package/dist/Kit/DataDisplay/Tree/index.js +1 -1
- package/dist/Kit/DataEntry/AutoComplete/index.js +1 -1
- package/dist/Kit/DataEntry/Checkbox/index.js +2 -2
- package/dist/Kit/DataEntry/ColorPicker/index.js +2 -2
- package/dist/Kit/DataEntry/DatePicker/index.js +54 -30
- package/dist/Kit/DataEntry/Filter/index.js +1 -1
- package/dist/Kit/DataEntry/Input/index.js +19 -19
- package/dist/Kit/DataEntry/InputNumber/index.js +2 -2
- package/dist/Kit/DataEntry/InputWrapper/index.js +1 -1
- package/dist/Kit/DataEntry/Radio/index.js +2 -2
- package/dist/Kit/DataEntry/Rate/index.js +1 -1
- package/dist/Kit/DataEntry/RichText/EditorContentCharacterCount/index.js +1 -1
- package/dist/Kit/DataEntry/RichText/MenuBar/index.js +1 -1
- package/dist/Kit/DataEntry/RichText/index.js +2 -2
- package/dist/Kit/DataEntry/SearchInput/index.js +1 -1
- package/dist/Kit/DataEntry/Select/index.js +3 -3
- package/dist/Kit/DataEntry/Slider/index.js +1 -1
- package/dist/Kit/DataEntry/Switch/index.js +1 -1
- package/dist/Kit/DataEntry/TreeSelect/index.js +3 -3
- package/dist/Kit/DataEntry/Upload/index.js +1 -1
- package/dist/Kit/Feedback/Alert/index.js +1 -1
- package/dist/Kit/Feedback/Loader/index.js +1 -1
- package/dist/Kit/Feedback/Modal/index.js +1 -1
- package/dist/Kit/Feedback/Progress/index.js +1 -1
- package/dist/Kit/Feedback/SnackBar/index.js +1 -1
- package/dist/Kit/General/Button/index.js +1 -1
- package/dist/Kit/General/Icon/index.js +1 -1
- package/dist/Kit/General/Typography/index.js +1 -1
- package/dist/Kit/Layout/Divider/index.js +1 -1
- package/dist/Kit/Layout/Space/index.js +1 -1
- package/dist/Kit/Navigation/Breadcrumb/index.js +1 -1
- package/dist/Kit/Navigation/DropDown/index.js +1 -1
- package/dist/Kit/Navigation/Header/index.js +1 -1
- package/dist/Kit/Navigation/PageHeader/index.js +1 -1
- package/dist/Kit/Navigation/Pagination/index.js +1 -1
- package/dist/Kit/Navigation/SideMenu/index.js +1 -1
- package/dist/Kit/Navigation/SidePanel/index.js +1 -1
- package/dist/Kit/Navigation/Steps/index.js +1 -1
- package/dist/Kit/index.js +2 -2
- package/dist/assets/InputWrapper.css +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/{Avatar.B2Q0k3WU.js → Avatar.D0il2_w4.js} +1 -1
- package/dist/chunks/InputWrapper.Ckc5loyB.js +25 -0
- package/dist/chunks/{Thread.DfvaoSxN.js → Thread.BzFvYuFc.js} +1 -1
- package/dist/chunks/styles.module.uCPgpiKf.js +6 -0
- package/dist/chunks/{useKitTheme.BdeSOGoj.js → useKitTheme.C7yw6CDw.js} +3 -3
- package/dist/index.es.js +3 -3
- package/dist/index.umd.js +4 -4
- package/package.json +154 -154
- package/dist/chunks/InputWrapper.D7QArlvo.js +0 -25
- package/dist/chunks/styles.module.CGK3Jyfa.js +0 -6
package/CHANGELOG.md
CHANGED
|
@@ -1,9 +1,30 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [X.Y.Z](https://www.npmjs.com/package/aristid-ds/v/X.Y.Z) (2026-MM-DD)
|
|
4
|
+
|
|
5
|
+
### 📝 Documentation
|
|
6
|
+
|
|
7
|
+
- **Design Tokens:**
|
|
8
|
+
- fix a bug causing the storybook `Design tokens` page to crash (@evoiron)
|
|
9
|
+
|
|
10
|
+
## [15.3.1](https://www.npmjs.com/package/aristid-ds/v/15.3.1) (2026-04-08)
|
|
11
|
+
|
|
12
|
+
### ✨ Features
|
|
13
|
+
|
|
14
|
+
- **Datepicker**
|
|
15
|
+
- Set inner inputs width on `KitRangePicker` picker to match their content (@alechapelain)
|
|
16
|
+
|
|
17
|
+
### 🐛 Bug Fixes
|
|
18
|
+
|
|
19
|
+
- **Badge:**
|
|
20
|
+
- Fix dot badge position when using `status` prop (@philippechevieux)
|
|
21
|
+
|
|
3
22
|
## [15.3.0](https://www.npmjs.com/package/aristid-ds/v/15.3.0) (2026-04-03)
|
|
4
23
|
|
|
5
24
|
### ✨ Features
|
|
6
25
|
|
|
26
|
+
- **InputWrapper:**
|
|
27
|
+
- Fix ``KitInputWrapper ` warning status text style (@evoiron)
|
|
7
28
|
- **Tokens:**
|
|
8
29
|
- Add `IA/purple` color palette (@evoiron)
|
|
9
30
|
- **Modal:**
|
package/dist/Kit/App/index.js
CHANGED
|
@@ -5,7 +5,7 @@ import { K as P } from "../../chunks/SnackBarProvider.D44OffUd.js";
|
|
|
5
5
|
import { toCssVariables as L, uuid as T } from "../../utils/functions/index.js";
|
|
6
6
|
import p from "lodash/merge";
|
|
7
7
|
import { Style as u } from "react-style-tag";
|
|
8
|
-
import { K as $ } from "../../chunks/useKitTheme.
|
|
8
|
+
import { K as $ } from "../../chunks/useKitTheme.C7yw6CDw.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
11
|
import { K as k, u as E } from "../../chunks/useKitLocale.C5F-tmnC.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { s as t, K as u } from "../../../chunks/Avatar.
|
|
1
|
+
import { s as t, K as u } from "../../../chunks/Avatar.D0il2_w4.js";
|
|
2
2
|
import { jsx as n } from "react/jsx-runtime";
|
|
3
3
|
import { Avatar as d } from "antd";
|
|
4
|
-
import { u as c } from "../../../chunks/useKitTheme.
|
|
4
|
+
import { u as c } from "../../../chunks/useKitTheme.C7yw6CDw.js";
|
|
5
5
|
import K from "classnames";
|
|
6
6
|
const f = ({ className: a, disabled: s, max: o, ...v }) => {
|
|
7
7
|
var r;
|
|
@@ -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.C7yw6CDw.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
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as t, jsxs as f } from "react/jsx-runtime";
|
|
2
2
|
import { cloneElement as C, useState as y } from "react";
|
|
3
3
|
import { Collapse as E } from "antd";
|
|
4
|
-
import { u as H } from "../../../chunks/useKitTheme.
|
|
4
|
+
import { u as H } from "../../../chunks/useKitTheme.C7yw6CDw.js";
|
|
5
5
|
import { FontAwesomeIcon as k } from "@fortawesome/react-fontawesome";
|
|
6
6
|
import { faChevronDown as _, faEye as A, faEllipsisVertical as D } from "@fortawesome/free-solid-svg-icons";
|
|
7
7
|
import T from "classnames";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsxs as t, jsx as e } from "react/jsx-runtime";
|
|
2
2
|
import { Empty as p } from "antd";
|
|
3
|
-
import { u as m } from "../../../chunks/useKitTheme.
|
|
3
|
+
import { u as m } from "../../../chunks/useKitTheme.C7yw6CDw.js";
|
|
4
4
|
import { KitTypography as C } from "../../General/Typography/index.js";
|
|
5
5
|
import { KitSpace as u } from "../../Layout/Space/index.js";
|
|
6
6
|
import x from "classnames";
|
|
@@ -2,7 +2,7 @@ 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
4
|
import { u as w } from "../../../chunks/useKitLocale.C5F-tmnC.js";
|
|
5
|
-
import { u as p } from "../../../chunks/useKitTheme.
|
|
5
|
+
import { u as p } from "../../../chunks/useKitTheme.C7yw6CDw.js";
|
|
6
6
|
import { KitTypography as M } from "../../General/Typography/index.js";
|
|
7
7
|
import { KitSpace as g } from "../../Layout/Space/index.js";
|
|
8
8
|
import f from "classnames";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsxs as u, jsx as o } from "react/jsx-runtime";
|
|
2
2
|
import d from "classnames";
|
|
3
3
|
import { t as D, u as m } from "../../../chunks/useEllipsisTooltip.B54ayHK8.js";
|
|
4
|
-
import { u as E } from "../../../chunks/useKitTheme.
|
|
5
|
-
import { K as N } from "../../../chunks/Avatar.
|
|
4
|
+
import { u as E } from "../../../chunks/useKitTheme.C7yw6CDw.js";
|
|
5
|
+
import { K as N } from "../../../chunks/Avatar.D0il2_w4.js";
|
|
6
6
|
import { KitTooltip as h } from "../Tooltip/index.js";
|
|
7
7
|
import { T as g } from "../../../chunks/constants.CctH0M4n.js";
|
|
8
8
|
import '../../../assets/index2.css';const C = {
|
|
@@ -4,7 +4,7 @@ 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
6
|
import { u as _ } from "../../../chunks/useKitLocale.C5F-tmnC.js";
|
|
7
|
-
import { u as j } from "../../../chunks/useKitTheme.
|
|
7
|
+
import { u as j } from "../../../chunks/useKitTheme.C7yw6CDw.js";
|
|
8
8
|
import '../../../assets/index3.css';const m = {
|
|
9
9
|
"kit-image": "_kit-image_t5juo_2",
|
|
10
10
|
"mask-container": "_mask-container_t5juo_23"
|
|
@@ -5,7 +5,7 @@ import { KitTypography as w } from "../../General/Typography/index.js";
|
|
|
5
5
|
import { KitCheckbox as Z } from "../../DataEntry/Checkbox/index.js";
|
|
6
6
|
import { KitSwitch as G } from "../../DataEntry/Switch/index.js";
|
|
7
7
|
import { KitBreadcrumb as ii } from "../../Navigation/Breadcrumb/index.js";
|
|
8
|
-
import { u as ti } from "../../../chunks/useKitTheme.
|
|
8
|
+
import { u as ti } from "../../../chunks/useKitTheme.C7yw6CDw.js";
|
|
9
9
|
import { KitTag as ei } from "../Tag/index.js";
|
|
10
10
|
import { KitButton as B } from "../../General/Button/index.js";
|
|
11
11
|
import { KitTooltip as si } from "../Tooltip/index.js";
|
|
@@ -4,7 +4,7 @@ import { KitCheckbox as J } from "../../DataEntry/Checkbox/index.js";
|
|
|
4
4
|
import { KitIdCard as M } from "../IdCard/index.js";
|
|
5
5
|
import { KitButton as d } from "../../General/Button/index.js";
|
|
6
6
|
import { KitDropDown as N } from "../../Navigation/DropDown/index.js";
|
|
7
|
-
import { u as Q } from "../../../chunks/useKitTheme.
|
|
7
|
+
import { u as Q } from "../../../chunks/useKitTheme.C7yw6CDw.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";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as r, jsxs as d, Fragment as D } from "react/jsx-runtime";
|
|
2
2
|
import T from "classnames";
|
|
3
3
|
import { forwardRef as x } from "react";
|
|
4
|
-
import { u as F } from "../../../chunks/useKitTheme.
|
|
4
|
+
import { u as F } from "../../../chunks/useKitTheme.C7yw6CDw.js";
|
|
5
5
|
import { FontAwesomeIcon as f } from "@fortawesome/react-fontawesome";
|
|
6
6
|
import { faEllipsis as A, faArrowRight as E } from "@fortawesome/free-solid-svg-icons";
|
|
7
7
|
import { KitIcon as C } from "../../General/Icon/index.js";
|
|
@@ -2,7 +2,7 @@ import { jsx as n } from "react/jsx-runtime";
|
|
|
2
2
|
import { forwardRef as O, useMemo as y } from "react";
|
|
3
3
|
import { Table as N } from "antd";
|
|
4
4
|
import I from "classnames";
|
|
5
|
-
import { u as U } from "../../../chunks/useKitTheme.
|
|
5
|
+
import { u as U } from "../../../chunks/useKitTheme.C7yw6CDw.js";
|
|
6
6
|
import { F as g } from "../../../chunks/constants.CctH0M4n.js";
|
|
7
7
|
import { KitIcon as j } from "../../General/Icon/index.js";
|
|
8
8
|
import { FontAwesomeIcon as p } from "@fortawesome/react-fontawesome";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsxs as _, Fragment as A, jsx as l } from "react/jsx-runtime";
|
|
2
2
|
import { useRef as F, useState as R, useLayoutEffect as G } from "react";
|
|
3
|
-
import { u as H } from "../../../chunks/useKitTheme.
|
|
3
|
+
import { u as H } from "../../../chunks/useKitTheme.C7yw6CDw.js";
|
|
4
4
|
import O from "classnames";
|
|
5
5
|
import { KitButton as B } from "../../General/Button/index.js";
|
|
6
6
|
import { FontAwesomeIcon as D } from "@fortawesome/react-fontawesome";
|
|
@@ -2,7 +2,7 @@ import { jsx as t, Fragment as C, jsxs as K } from "react/jsx-runtime";
|
|
|
2
2
|
import { forwardRef as B, useState as G, useRef as W, useLayoutEffect as U } from "react";
|
|
3
3
|
import D from "classnames";
|
|
4
4
|
import { Tag as z } from "antd";
|
|
5
|
-
import { u as S } from "../../../chunks/useKitTheme.
|
|
5
|
+
import { u as S } from "../../../chunks/useKitTheme.C7yw6CDw.js";
|
|
6
6
|
import { FontAwesomeIcon as M } from "@fortawesome/react-fontawesome";
|
|
7
7
|
import { faXmark as R } from "@fortawesome/free-solid-svg-icons";
|
|
8
8
|
import { KitIdCard as X } from "../IdCard/index.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as s } from "react/jsx-runtime";
|
|
2
2
|
import { Tour as p } from "antd";
|
|
3
|
-
import { u as e } from "../../../chunks/useKitTheme.
|
|
3
|
+
import { u as e } from "../../../chunks/useKitTheme.C7yw6CDw.js";
|
|
4
4
|
import i from "classnames";
|
|
5
5
|
const f = ({ rootClassName: o, ...r }) => {
|
|
6
6
|
const { appId: t } = e(), m = i(t, o);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as e } from "react/jsx-runtime";
|
|
2
2
|
import { Tree as c } from "antd";
|
|
3
|
-
import { u as p } from "../../../chunks/useKitTheme.
|
|
3
|
+
import { u as p } from "../../../chunks/useKitTheme.C7yw6CDw.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";
|
|
@@ -2,7 +2,7 @@ import { jsx as e } from "react/jsx-runtime";
|
|
|
2
2
|
import { forwardRef as O, useState as b, useRef as j } from "react";
|
|
3
3
|
import { AutoComplete as B } from "antd";
|
|
4
4
|
import { KitInput as M } from "../Input/index.js";
|
|
5
|
-
import { K as S } from "../../../chunks/InputWrapper.
|
|
5
|
+
import { K as S } from "../../../chunks/InputWrapper.Ckc5loyB.js";
|
|
6
6
|
import { FontAwesomeIcon as W } from "@fortawesome/react-fontawesome";
|
|
7
7
|
import { faMagnifyingGlass as q } from "@fortawesome/free-solid-svg-icons";
|
|
8
8
|
import z from "classnames";
|
|
@@ -2,11 +2,11 @@ import { jsx as o } from "react/jsx-runtime";
|
|
|
2
2
|
import { memo as P, createContext as p, forwardRef as O, useContext as R, useState as w, useEffect as I, useRef as ee } from "react";
|
|
3
3
|
import $ from "classnames";
|
|
4
4
|
import { Checkbox as le } from "antd";
|
|
5
|
-
import { u as ae } from "../../../chunks/useKitTheme.
|
|
5
|
+
import { u as ae } from "../../../chunks/useKitTheme.C7yw6CDw.js";
|
|
6
6
|
import ne from "rc-util/es/omit";
|
|
7
7
|
import { ConfigContext as ce } from "antd/es/config-provider/";
|
|
8
8
|
import te from "antd/es/checkbox/style";
|
|
9
|
-
import { K as ue } from "../../../chunks/InputWrapper.
|
|
9
|
+
import { K as ue } from "../../../chunks/InputWrapper.Ckc5loyB.js";
|
|
10
10
|
import '../../../assets/index30.css';const j = p(null), ie = ({ defaultValue: f, children: v, options: l = [], prefixCls: b, className: a, wrapperClassName: x, status: g, rootClassName: i, style: c, onChange: d, label: h, helper: r, required: s, actions: D, extra: k, ...n }, E) => {
|
|
11
11
|
const { getPrefixCls: T, direction: W } = R(ce), [m, K] = w(n.value || f || []), [q, S] = w([]);
|
|
12
12
|
I(() => {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { forwardRef as Z, useRef as V, useState as h, useEffect as K, useImperativeHandle as oo, createElement as to } from "react";
|
|
2
2
|
import { jsxs as ro, jsx as s } from "react/jsx-runtime";
|
|
3
|
-
import { K as eo } from "../../../chunks/InputWrapper.
|
|
4
|
-
import { u as io } from "../../../chunks/useKitTheme.
|
|
3
|
+
import { K as eo } from "../../../chunks/InputWrapper.Ckc5loyB.js";
|
|
4
|
+
import { u as io } from "../../../chunks/useKitTheme.C7yw6CDw.js";
|
|
5
5
|
import { ColorPicker as no } from "antd";
|
|
6
6
|
import b from "classnames";
|
|
7
7
|
import { FontAwesomeIcon as co } from "@fortawesome/react-fontawesome";
|
|
@@ -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.Ckc5loyB.js";
|
|
8
|
+
import { u as Y } from "../../../chunks/useKitTheme.C7yw6CDw.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
|
};
|
|
@@ -2,7 +2,7 @@ import { jsx as t } from "react/jsx-runtime";
|
|
|
2
2
|
import { forwardRef as N, createElement as K, useRef as _, useState as T, useEffect as B } from "react";
|
|
3
3
|
import { KitDropDown as C } from "../../Navigation/DropDown/index.js";
|
|
4
4
|
import D from "classnames";
|
|
5
|
-
import { u as x } from "../../../chunks/useKitTheme.
|
|
5
|
+
import { u as x } from "../../../chunks/useKitTheme.C7yw6CDw.js";
|
|
6
6
|
import { FontAwesomeIcon as F } from "@fortawesome/react-fontawesome";
|
|
7
7
|
import { faCaretDown as I } from "@fortawesome/free-solid-svg-icons";
|
|
8
8
|
import { KitBadge as L } from "../../DataDisplay/Badge/index.js";
|
|
@@ -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.Ckc5loyB.js";
|
|
7
|
+
import { u as N } from "../../../chunks/useKitTheme.C7yw6CDw.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;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsx as l } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef as x, useState as w } from "react";
|
|
3
3
|
import { InputNumber as g } from "antd";
|
|
4
|
-
import { K as j } from "../../../chunks/InputWrapper.
|
|
5
|
-
import { u as y } from "../../../chunks/useKitTheme.
|
|
4
|
+
import { K as j } from "../../../chunks/InputWrapper.Ckc5loyB.js";
|
|
5
|
+
import { u as y } from "../../../chunks/useKitTheme.C7yw6CDw.js";
|
|
6
6
|
import H from "classnames";
|
|
7
7
|
import '../../../assets/index6.css';const R = {
|
|
8
8
|
"kit-input-number": "_kit-input-number_1e65d_2"
|
|
@@ -6,8 +6,8 @@ import { ConfigContext as U } from "antd/es/config-provider/";
|
|
|
6
6
|
import X from "antd/es/config-provider/SizeContext";
|
|
7
7
|
import Y from "rc-util/es/pickAttrs";
|
|
8
8
|
import { Radio as Z } from "antd";
|
|
9
|
-
import { u as ee } from "../../../chunks/useKitTheme.
|
|
10
|
-
import { K as ae } from "../../../chunks/InputWrapper.
|
|
9
|
+
import { u as ee } from "../../../chunks/useKitTheme.C7yw6CDw.js";
|
|
10
|
+
import { K as ae } from "../../../chunks/InputWrapper.Ckc5loyB.js";
|
|
11
11
|
import te from "antd/es/radio/style";
|
|
12
12
|
import '../../../assets/index39.css';const K = O(null), re = K.Provider, oe = {
|
|
13
13
|
"kit-radio": "_kit-radio_agroh_12"
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as i } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef as k, useMemo as v } from "react";
|
|
3
3
|
import { Rate as x } from "antd";
|
|
4
|
-
import { u as C } from "../../../chunks/useKitTheme.
|
|
4
|
+
import { u as C } from "../../../chunks/useKitTheme.C7yw6CDw.js";
|
|
5
5
|
import { FontAwesomeIcon as a } from "@fortawesome/react-fontawesome";
|
|
6
6
|
import { faStar as S } from "@fortawesome/free-solid-svg-icons";
|
|
7
7
|
import { faStarHalfStroke as R, faStar as p } from "@fortawesome/free-regular-svg-icons";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as i, jsxs as a } from "react/jsx-runtime";
|
|
2
2
|
import h from "classnames";
|
|
3
|
-
import { u as s } from "../../../../chunks/useKitTheme.
|
|
3
|
+
import { u as s } from "../../../../chunks/useKitTheme.C7yw6CDw.js";
|
|
4
4
|
import '../../../../assets/index20.css';const d = {
|
|
5
5
|
"kit-rich-text-editor-content-character-count": "_kit-rich-text-editor-content-character-count_6w3ub_2"
|
|
6
6
|
}, p = ({ editor: c, status: t, maxLength: r }) => {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as t, jsxs as s } from "react/jsx-runtime";
|
|
2
2
|
import p from "classnames";
|
|
3
|
-
import { u as a } from "../../../../chunks/useKitTheme.
|
|
3
|
+
import { u as a } from "../../../../chunks/useKitTheme.C7yw6CDw.js";
|
|
4
4
|
import { KitDivider as m } from "../../../Layout/Divider/index.js";
|
|
5
5
|
import { KitUndoRedoButtons as l } from "./UndoRedoButtons/index.js";
|
|
6
6
|
import { KitFontSizeSelect as u } from "./FontSizeSelect/index.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as w, jsxs as D } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef as W, useState as P, useEffect as E, useImperativeHandle as U, useRef as q } from "react";
|
|
3
|
-
import { K as Z } from "../../../chunks/InputWrapper.
|
|
4
|
-
import { u as $ } from "../../../chunks/useKitTheme.
|
|
3
|
+
import { K as Z } from "../../../chunks/InputWrapper.Ckc5loyB.js";
|
|
4
|
+
import { u as $ } from "../../../chunks/useKitTheme.C7yw6CDw.js";
|
|
5
5
|
import N from "classnames";
|
|
6
6
|
import { ReactRenderer as ee, useEditor as te, EditorContent as oe } from "@tiptap/react";
|
|
7
7
|
import ne from "@tiptap/starter-kit";
|
|
@@ -4,7 +4,7 @@ import s from "classnames";
|
|
|
4
4
|
import { KitInput as a } from "../Input/index.js";
|
|
5
5
|
import { FontAwesomeIcon as n } from "@fortawesome/react-fontawesome";
|
|
6
6
|
import { faSearch as c } from "@fortawesome/free-solid-svg-icons";
|
|
7
|
-
import { u as f } from "../../../chunks/useKitTheme.
|
|
7
|
+
import { u as f } from "../../../chunks/useKitTheme.C7yw6CDw.js";
|
|
8
8
|
import '../../../assets/index8.css';const u = {
|
|
9
9
|
"kit-search-input": "_kit-search-input_lbgl1_2"
|
|
10
10
|
}, h = p(({ className: t, expandable: o, ...e }, i) => {
|
|
@@ -4,9 +4,9 @@ import { Select as ke } from "antd";
|
|
|
4
4
|
import $ from "classnames";
|
|
5
5
|
import De from "short-unique-id";
|
|
6
6
|
import { useDebouncedCallback as Ee } from "use-debounce";
|
|
7
|
-
import { K as Pe } from "../../../chunks/InputWrapper.
|
|
8
|
-
import { u as Ne } from "../../../chunks/useKitTheme.
|
|
9
|
-
import { s as Oe } from "../../../chunks/styles.module.
|
|
7
|
+
import { K as Pe } from "../../../chunks/InputWrapper.Ckc5loyB.js";
|
|
8
|
+
import { u as Ne } from "../../../chunks/useKitTheme.C7yw6CDw.js";
|
|
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";
|
|
@@ -2,7 +2,7 @@ import { jsxs as m, jsx as i } from "react/jsx-runtime";
|
|
|
2
2
|
import { Slider as d } from "antd";
|
|
3
3
|
import f from "classnames";
|
|
4
4
|
import { forwardRef as h } from "react";
|
|
5
|
-
import { u as p } from "../../../chunks/useKitTheme.
|
|
5
|
+
import { u as p } from "../../../chunks/useKitTheme.C7yw6CDw.js";
|
|
6
6
|
import '../../../assets/index11.css';const l = {
|
|
7
7
|
"kit-slider": "_kit-slider_1nn6b_2",
|
|
8
8
|
"kit-slider-container": "_kit-slider-container_1nn6b_35"
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as o } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef as s } from "react";
|
|
3
3
|
import { Switch as m } from "antd";
|
|
4
|
-
import { u as h } from "../../../chunks/useKitTheme.
|
|
4
|
+
import { u as h } from "../../../chunks/useKitTheme.C7yw6CDw.js";
|
|
5
5
|
import l from "classnames";
|
|
6
6
|
import '../../../assets/index9.css';const n = {
|
|
7
7
|
"kit-switch": "_kit-switch_teqhi_2"
|