aristid-ds 10.1.0-aa2d9f7 → 10.1.0-e304e46
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 +17 -2
- package/dist/Kit/App/index.js +1 -1
- package/dist/Kit/DataDisplay/Collapse/index.js +1 -1
- package/dist/Kit/DataDisplay/Error/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/Tag/index.js +1 -1
- package/dist/Kit/DataDisplay/index.js +1 -1
- package/dist/Kit/DataEntry/AutoComplete/index.js +1 -1
- package/dist/Kit/DataEntry/ColorPicker/ColorPickerInternalText.d.ts +3 -0
- package/dist/Kit/DataEntry/ColorPicker/index.js +50 -13
- package/dist/Kit/DataEntry/ColorPicker/types.d.ts +11 -0
- package/dist/Kit/DataEntry/DatePicker/index.js +9 -9
- package/dist/Kit/DataEntry/Input/index.js +11 -11
- package/dist/Kit/DataEntry/InputNumber/index.js +8 -8
- package/dist/Kit/DataEntry/RichText/EditorContentCharacterCount/index.js +1 -1
- package/dist/Kit/DataEntry/RichText/MenuBar/ButtonTooltip/index.js +1 -1
- 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/RichText/index.js +1 -1
- package/dist/Kit/DataEntry/Select/index.js +1 -1
- package/dist/Kit/DataEntry/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/Notification/index.js +1 -1
- package/dist/Kit/Feedback/Progress/index.js +1 -1
- package/dist/Kit/Feedback/index.js +2 -2
- package/dist/Kit/General/Button/index.js +1 -1
- package/dist/Kit/General/Icon/index.js +1 -1
- package/dist/Kit/Layout/Divider/index.js +1 -1
- package/dist/Kit/Layout/PageLayout/index.js +1 -1
- package/dist/Kit/Layout/index.js +1 -1
- package/dist/Kit/Navigation/Breadcrumb/index.js +1 -1
- 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 +1 -1
- package/dist/Kit/Navigation/SideMenu/index.js +1 -1
- package/dist/Kit/Navigation/Steps/index.js +1 -1
- package/dist/Kit/Navigation/index.js +1 -1
- package/dist/Kit/index.js +2 -2
- package/dist/assets/index11.css +1 -1
- package/dist/assets/index12.css +1 -1
- package/dist/assets/index13.css +1 -1
- package/dist/assets/index14.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/chunks/{KitNotification.9D9u6ePz.js → KitNotification.lbY6JMru.js} +1 -1
- package/dist/chunks/{index.HEacmKQU.js → index.MNk1kAkw.js} +38 -37
- package/dist/index.es.js +2 -2
- package/dist/index.umd.js +4 -4
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -4,18 +4,33 @@
|
|
|
4
4
|
|
|
5
5
|
### ✨ Features
|
|
6
6
|
|
|
7
|
+
- **ColorPicker**
|
|
8
|
+
- Add a clear icon inside `ColorPicker` input when `allowClear` prop is set (@philippechevieux)
|
|
7
9
|
- **Empty**:
|
|
8
10
|
- Add 5 svgs, and replace existing ones to uniformize size (@7Remy)
|
|
9
11
|
- **ItemCard**:
|
|
10
12
|
- Update image container (@7Remy)
|
|
11
13
|
- Update elements order/spacing (@7Remy)
|
|
12
14
|
- Improve responsive (@7Remy)
|
|
13
|
-
## [XX.XX.XX](https://www.npmjs.com/package/aristid-ds/v/XX.XX.XX) (202x-xx-xx)
|
|
14
15
|
|
|
15
16
|
### 🐛 Bug Fixes
|
|
16
17
|
|
|
18
|
+
- **AutoComplete**:
|
|
19
|
+
- Pass `required` attribute to the DOM (@Delmotte-Vincent)
|
|
20
|
+
- **DatePicker**:
|
|
21
|
+
- Pass `required` attribute to the DOM (@Delmotte-Vincent)
|
|
22
|
+
- **RangePicker**:
|
|
23
|
+
- Pass `required` attribute to the DOM (@Delmotte-Vincent)
|
|
24
|
+
- **Password**:
|
|
25
|
+
- Pass `required` attribute to the DOM (@Delmotte-Vincent)
|
|
26
|
+
- **TextArea**:
|
|
27
|
+
- Pass `required` attribute to the DOM (@Delmotte-Vincent)
|
|
28
|
+
- **InputNumber**:
|
|
29
|
+
- Pass `required` attribute to the DOM (@Delmotte-Vincent)
|
|
30
|
+
- **Select**:
|
|
31
|
+
- Pass `required` attribute to the DOM (@Delmotte-Vincent)
|
|
17
32
|
- **RichText**:
|
|
18
|
-
-
|
|
33
|
+
- Enforce css for bullet list display. Avoid external css from breaking it. (@evoiron)
|
|
19
34
|
|
|
20
35
|
## [10.1.0](https://www.npmjs.com/package/aristid-ds/v/10.1.0) (2024-10-15)
|
|
21
36
|
|
package/dist/Kit/App/index.js
CHANGED
|
@@ -2,7 +2,7 @@ import "react/jsx-runtime";
|
|
|
2
2
|
import "react";
|
|
3
3
|
import "antd";
|
|
4
4
|
import "../../chunks/SnackBarProvider.xMKXdZ88.js";
|
|
5
|
-
import { K as l } from "../../chunks/index.
|
|
5
|
+
import { K as l } from "../../chunks/index.MNk1kAkw.js";
|
|
6
6
|
import "../../theme/utils/tokens-mapper/index.js";
|
|
7
7
|
import "../../translation/utils/index.js";
|
|
8
8
|
import "../../chunks/useKitLocale.96CdK3og.js";
|
|
@@ -13,7 +13,7 @@ import "color-string";
|
|
|
13
13
|
import "lodash/isEmpty";
|
|
14
14
|
import "classnames";
|
|
15
15
|
import "../../../chunks/styles.module.Q_QQjQdX.js";
|
|
16
|
-
import { c as n } from "../../../chunks/index.
|
|
16
|
+
import { c as n } from "../../../chunks/index.MNk1kAkw.js";
|
|
17
17
|
import "../../Feedback/Alert/index.js";
|
|
18
18
|
import "../../Feedback/Progress/index.js";
|
|
19
19
|
import "../../Feedback/Loader/index.js";
|
|
@@ -9,7 +9,7 @@ import "../../DataEntry/Input/index.js";
|
|
|
9
9
|
import "../../DataEntry/InputNumber/index.js";
|
|
10
10
|
import "../../DataEntry/Radio/index.js";
|
|
11
11
|
import "../../DataEntry/Rate/index.js";
|
|
12
|
-
import { a as y } from "../../../chunks/index.
|
|
12
|
+
import { a as y } from "../../../chunks/index.MNk1kAkw.js";
|
|
13
13
|
import "../../DataEntry/Switch/index.js";
|
|
14
14
|
import "../../DataEntry/DatePicker/index.js";
|
|
15
15
|
import "../../DataEntry/AutoComplete/index.js";
|
|
@@ -5,7 +5,7 @@ import "../../DataEntry/Input/index.js";
|
|
|
5
5
|
import "../../DataEntry/InputNumber/index.js";
|
|
6
6
|
import "../../DataEntry/Radio/index.js";
|
|
7
7
|
import "../../DataEntry/Rate/index.js";
|
|
8
|
-
import { d as J } from "../../../chunks/index.
|
|
8
|
+
import { d as J } from "../../../chunks/index.MNk1kAkw.js";
|
|
9
9
|
import "../../DataEntry/Switch/index.js";
|
|
10
10
|
import "../../DataEntry/DatePicker/index.js";
|
|
11
11
|
import "../../DataEntry/AutoComplete/index.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "react/jsx-runtime";
|
|
2
2
|
import "classnames";
|
|
3
|
-
import { e as g } from "../../../chunks/index.
|
|
3
|
+
import { e as g } from "../../../chunks/index.MNk1kAkw.js";
|
|
4
4
|
import "react";
|
|
5
5
|
import "../../../chunks/useKitTheme.KSAU-Pdv.js";
|
|
6
6
|
import "@fortawesome/react-fontawesome";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { KitAvatar as o } from "./Avatar/index.js";
|
|
2
2
|
import { KitBadge as i } from "./Badge/index.js";
|
|
3
|
-
import { b as K, c as m, a as p, d as f, e as x, f as s } from "../../chunks/index.
|
|
3
|
+
import { b as K, c as m, a as p, d as f, e as x, f as s } from "../../chunks/index.MNk1kAkw.js";
|
|
4
4
|
import { KitEmpty as T } from "./Empty/index.js";
|
|
5
5
|
import { KitIdCard as C } from "./IdCard/index.js";
|
|
6
6
|
import { KitImage as b } from "./Image/index.js";
|
|
@@ -20,7 +20,7 @@ const R = {
|
|
|
20
20
|
}, y = (p) => {
|
|
21
21
|
f(!1), l && l(p);
|
|
22
22
|
};
|
|
23
|
-
return t(j, { label: r, helper: o, htmlFor: s, disabled: m, status: i, className: g,
|
|
23
|
+
return t(j, { label: r, helper: o, htmlFor: s, disabled: m, status: i, className: g, infoIcon: K, actions: x, onInfoClick: A, children: t(O, { ...a, id: (n = a.id) !== null && n !== void 0 ? n : s, disabled: m, ref: I, className: R["kit-autocomplete"], popupClassName: S(_, N, i), children: t(P, { prefix: t(B, { icon: G }), allowClear: e, autoFocus: d, required: C, defaultValue: u, placeholder: w, status: i, value: k, onBlur: y, onFocus: h }) }) });
|
|
24
24
|
});
|
|
25
25
|
W.displayName = "KitAutoComplete";
|
|
26
26
|
export {
|
|
@@ -1,16 +1,53 @@
|
|
|
1
|
-
import "../../../assets/
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
1
|
+
import "../../../assets/index19.css";
|
|
2
|
+
import { useState as u, createElement as F } from "react";
|
|
3
|
+
import { jsxs as H, Fragment as O, jsx as k } from "react/jsx-runtime";
|
|
4
|
+
import { K as V } from "../../../chunks/InputWrapper.RBqyXNPY.js";
|
|
5
|
+
import { u as D } from "../../../chunks/useKitTheme.KSAU-Pdv.js";
|
|
6
|
+
import { ColorPicker as E } from "antd";
|
|
7
|
+
import S from "classnames";
|
|
8
|
+
import { FontAwesomeIcon as R } from "@fortawesome/react-fontawesome";
|
|
9
|
+
import { faCircleXmark as U } from "@fortawesome/free-solid-svg-icons";
|
|
10
|
+
const y = {
|
|
11
|
+
"kit-colorpicker": "_kit-colorpicker_3hd5g_2",
|
|
12
|
+
"kit-color-picker-clear": "_kit-color-picker-clear_3hd5g_26"
|
|
13
|
+
}, W = (e, o) => {
|
|
14
|
+
switch (o) {
|
|
15
|
+
case "hex":
|
|
16
|
+
return e.toHexString();
|
|
17
|
+
case "rgb":
|
|
18
|
+
return e.toRgbString();
|
|
19
|
+
case "hsb":
|
|
20
|
+
return e.toHsbString();
|
|
21
|
+
}
|
|
22
|
+
}, X = ({ color: e, format: o, showText: r, allowClear: i, onClear: a }) => {
|
|
23
|
+
const s = r === !0, c = typeof r == "function" && r !== void 0, p = i === !0;
|
|
24
|
+
return H(O, { children: [s && W(e, o), c && r(e), p && k(R, { className: y["kit-color-picker-clear"], "aria-label": "clear", icon: U, onClick: (l) => {
|
|
25
|
+
l.stopPropagation(), a();
|
|
26
|
+
} })] });
|
|
27
|
+
}, q = ({ label: e, className: o, helper: r, rootClassName: i, required: a, infoIcon: s, actions: c, onInfoClick: p, showText: l, value: I, onChange: d, onClear: h, allowClear: m = !1, format: C = "hex", ...f }) => {
|
|
28
|
+
const { appId: g } = D(), [K, x] = u(I), [n, _] = u(m), [w, A] = u(0), N = l || n, P = S(g, "kit-colorpicker-panel", i), T = S(g, y["kit-colorpicker"], o), b = () => {
|
|
29
|
+
m && _(!1), x(null), A((t) => t + 1), h && h();
|
|
30
|
+
}, j = (t, v) => {
|
|
31
|
+
m && !n && _(!0), x(t), d && d(t, v);
|
|
32
|
+
};
|
|
33
|
+
return k(V, { label: e, helper: r, disabled: f.disabled, required: a, infoIcon: s, actions: c, onInfoClick: p, children: F(E, {
|
|
34
|
+
...f,
|
|
35
|
+
// This is a hack to force the color picker to re-render and display a clear value
|
|
36
|
+
// https://react.dev/learn/preserving-and-resetting-state#option-2-resetting-state-with-a-key
|
|
37
|
+
key: w,
|
|
38
|
+
rootClassName: P,
|
|
39
|
+
className: T,
|
|
40
|
+
format: C,
|
|
41
|
+
value: K,
|
|
42
|
+
...N && {
|
|
43
|
+
showText: (t) => k(X, { color: t, format: C, showText: l, allowClear: n, onClear: b })
|
|
44
|
+
},
|
|
45
|
+
allowClear: n,
|
|
46
|
+
onClear: b,
|
|
47
|
+
onChange: j
|
|
48
|
+
}) });
|
|
12
49
|
};
|
|
13
|
-
|
|
50
|
+
q.displayName = "KitColorPicker";
|
|
14
51
|
export {
|
|
15
|
-
|
|
52
|
+
q as KitColorPicker
|
|
16
53
|
};
|
|
@@ -17,3 +17,14 @@ export interface KitColorPickerProps
|
|
|
17
17
|
}
|
|
18
18
|
|
|
19
19
|
export type KitColor = Color;
|
|
20
|
+
|
|
21
|
+
export type KitColorPickerInternalTextProps = {
|
|
22
|
+
color: KitColor;
|
|
23
|
+
format: Exclude<KitColorPickerProps['format'], undefined>;
|
|
24
|
+
showText: KitColorPickerProps['showText'];
|
|
25
|
+
allowClear: KitColorPickerProps['allowClear'];
|
|
26
|
+
onClear: () => void;
|
|
27
|
+
};
|
|
28
|
+
|
|
29
|
+
export type KitColorPickerOnChangeColor = Parameters<NonNullable<KitColorPickerProps['onChange']>>[0];
|
|
30
|
+
export type KitColorPickerOnChangeHex = Parameters<NonNullable<KitColorPickerProps['onChange']>>[1];
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "../../../assets/index22.css";
|
|
2
|
-
import { jsx as
|
|
2
|
+
import { jsx as i } from "react/jsx-runtime";
|
|
3
3
|
import { faCircleXmark as R, faClock as w, faCalendar as C, faArrowRight as W } from "@fortawesome/free-solid-svg-icons";
|
|
4
|
-
import { FontAwesomeIcon as
|
|
4
|
+
import { FontAwesomeIcon as e } from "@fortawesome/react-fontawesome";
|
|
5
5
|
import { K as D } from "../../../chunks/InputWrapper.RBqyXNPY.js";
|
|
6
6
|
import { u as h } from "../../../chunks/useKitTheme.KSAU-Pdv.js";
|
|
7
7
|
import { DatePicker as x } from "antd";
|
|
@@ -10,14 +10,14 @@ import { forwardRef as g } from "react";
|
|
|
10
10
|
const z = {
|
|
11
11
|
"kit-datepicker": "_kit-datepicker_122z1_2",
|
|
12
12
|
"kit-rangepicker": "_kit-rangepicker_122z1_133"
|
|
13
|
-
}, j = g(({ label:
|
|
13
|
+
}, j = g(({ label: p, helper: b, htmlFor: c, suffixIcon: r, className: l, wrapperClassName: s, picker: d = "date", allowClear: f = !0, required: m, infoIcon: k, actions: v, onInfoClick: n, readonly: t = !1, disabled: u, ...a }, _) => {
|
|
14
14
|
var o;
|
|
15
|
-
const { appId: I } = h(), K = () => d === "time" ?
|
|
16
|
-
return
|
|
17
|
-
}), T = g(({ label:
|
|
18
|
-
var
|
|
19
|
-
const { appId: _ } = h(), o = () => s === "time" ?
|
|
20
|
-
return
|
|
15
|
+
const { appId: I } = h(), K = () => d === "time" ? i(e, { icon: w }) : i(e, { icon: C }), S = N(I, z["kit-datepicker"], l, t ? "kit-picker-readonly" : "");
|
|
16
|
+
return i(D, { label: p, helper: b, htmlFor: c, disabled: u, status: a.status, className: s, required: m, infoIcon: k, actions: v, onInfoClick: n, children: i("div", { children: i(x, { ...a, id: (o = a.id) !== null && o !== void 0 ? o : c, required: m, picker: d, disabled: t || u, variant: t ? "borderless" : void 0, ref: _, suffixIcon: r ?? K(), allowClear: !t && f ? { clearIcon: i(e, { "aria-label": "clear", icon: R }) } : !1, className: S }) }) });
|
|
17
|
+
}), T = g(({ label: p, className: b, helper: c, htmlFor: r, suffixIcon: l, picker: s, allowClear: d = !0, required: f, infoIcon: m, actions: k, onInfoClick: v, readonly: n = !1, ...t }, u) => {
|
|
18
|
+
var a;
|
|
19
|
+
const { appId: _ } = h(), o = () => s === "time" ? i(e, { icon: w }) : i(e, { icon: C }), I = () => t.disabled === void 0 ? !1 : typeof t.disabled == "boolean" ? t.disabled : t.disabled[0] && t.disabled[1], K = N(_, z["kit-rangepicker"], b, n ? "kit-picker-readonly" : "");
|
|
20
|
+
return i(D, { label: p, helper: c, htmlFor: r, disabled: I(), status: t.status, required: f, infoIcon: m, actions: k, onInfoClick: v, children: i("div", { children: i(x.RangePicker, { ...t, id: (a = t.id) !== null && a !== void 0 ? a : r, picker: s, ref: u, required: f, disabled: n || t.disabled, variant: n ? "borderless" : void 0, suffixIcon: l ?? o(), allowClear: d ? { clearIcon: i(e, { "aria-label": "clear", icon: R }) } : !1, className: K, separator: i(e, { icon: W }) }) }) });
|
|
21
21
|
}), X = T, A = j;
|
|
22
22
|
A.displayName = "KitDatePicker";
|
|
23
23
|
A.RangePicker = X;
|
|
@@ -14,18 +14,18 @@ const N = {
|
|
|
14
14
|
"kit-input": "_kit-input_po84n_2",
|
|
15
15
|
"kit-password": "_kit-password_po84n_137",
|
|
16
16
|
"kit-textarea": "_kit-textarea_po84n_261"
|
|
17
|
-
}, E = w(({ label:
|
|
18
|
-
var e,
|
|
19
|
-
const { appId: I } = x(), _ = T(I, N["kit-input"],
|
|
20
|
-
return t(K, { label:
|
|
21
|
-
}), j = w(({ label:
|
|
22
|
-
var e,
|
|
23
|
-
const { appId: I } = x(), _ = T(I, N["kit-textarea"],
|
|
24
|
-
return t(K, { label:
|
|
25
|
-
}), R = j, W = w(({ label:
|
|
17
|
+
}, E = w(({ label: n, className: c, helper: d, htmlFor: i, wrapperClassName: o, allowClear: m = !0, required: r, infoIcon: s, actions: u, onInfoClick: f, readonly: p = !1, ...a }, v) => {
|
|
18
|
+
var e, l;
|
|
19
|
+
const { appId: I } = x(), _ = T(I, N["kit-input"], c);
|
|
20
|
+
return t(K, { label: n, helper: d, htmlFor: i, disabled: a.disabled, status: a.status, className: o, required: r, infoIcon: s, actions: u, onInfoClick: f, children: p ? t(g.Text, { weight: "bold", size: "fontSize5", color: a.status === "error" ? "error" : void 0, children: (e = a.value) !== null && e !== void 0 ? e : a.placeholder }) : t(k, { ...a, required: r, ref: v, className: _, id: (l = a.id) !== null && l !== void 0 ? l : i, allowClear: m ? { clearIcon: t(b, { "aria-label": "clear", icon: h }) } : void 0 }) });
|
|
21
|
+
}), j = w(({ label: n, className: c, helper: d, htmlFor: i, wrapperClassName: o, allowClear: m = !0, required: r, infoIcon: s, actions: u, onInfoClick: f, readonly: p = !1, ...a }, v) => {
|
|
22
|
+
var e, l;
|
|
23
|
+
const { appId: I } = x(), _ = T(I, N["kit-textarea"], c);
|
|
24
|
+
return t(K, { label: n, helper: d, htmlFor: i, disabled: a.disabled, status: a.status, className: o, required: r, infoIcon: s, actions: u, onInfoClick: f, children: p ? t(g.Text, { weight: "bold", size: "fontSize5", color: a.status === "error" ? "error" : void 0, children: (e = a.value) !== null && e !== void 0 ? e : a.placeholder }) : t(k.TextArea, { ...a, required: r, ref: v, allowClear: m ? { clearIcon: t(b, { "aria-label": "clear", icon: h }) } : void 0, className: _, id: (l = a.id) !== null && l !== void 0 ? l : i }) });
|
|
25
|
+
}), R = j, W = w(({ label: n, className: c, helper: d, htmlFor: i, iconRender: o, wrapperClassName: m, allowClear: r = !0, required: s, infoIcon: u, actions: f, onInfoClick: p, ...a }, v) => {
|
|
26
26
|
var e;
|
|
27
|
-
const { appId:
|
|
28
|
-
return t(K, { label:
|
|
27
|
+
const { appId: l } = x(), I = T(l, N["kit-password"], c), _ = (z) => z ? t(b, { icon: C }) : t(b, { icon: S });
|
|
28
|
+
return t(K, { label: n, helper: d, htmlFor: i, disabled: a.disabled, status: a.status, className: m, required: s, infoIcon: u, actions: f, onInfoClick: p, children: t(k.Password, { ...a, className: I, required: s, id: (e = a.id) !== null && e !== void 0 ? e : i, ref: v, allowClear: r ? { clearIcon: t(b, { "aria-label": "clear", icon: h }) } : void 0, iconRender: o ?? _ }) });
|
|
29
29
|
}), X = W, y = E;
|
|
30
30
|
y.displayName = "KitInput";
|
|
31
31
|
y.TextArea = R;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import "../../../assets/index6.css";
|
|
2
|
-
import { jsx as
|
|
2
|
+
import { jsx as u } from "react/jsx-runtime";
|
|
3
3
|
import { forwardRef as k, useState as _ } from "react";
|
|
4
4
|
import { InputNumber as N } from "antd";
|
|
5
5
|
import { K as h } from "../../../chunks/InputWrapper.RBqyXNPY.js";
|
|
@@ -7,15 +7,15 @@ import { u as w } from "../../../chunks/useKitTheme.KSAU-Pdv.js";
|
|
|
7
7
|
import y from "classnames";
|
|
8
8
|
const j = {
|
|
9
9
|
"kit-input-number": "_kit-input-number_vfsxr_2"
|
|
10
|
-
}, H = k(({ label:
|
|
11
|
-
var
|
|
12
|
-
const { appId: x } = w(), [I,
|
|
10
|
+
}, H = k(({ label: n, helper: p, htmlFor: r, wrapperClassName: d, className: f, required: o, infoIcon: l, actions: c, onInfoClick: v, onFocus: s, onBlur: i, ...t }, b) => {
|
|
11
|
+
var a;
|
|
12
|
+
const { appId: x } = w(), [I, m] = _(!1), K = y(x, j["kit-input-number"], f, {
|
|
13
13
|
"kit-input-number-affix-wrapper-focused": I
|
|
14
14
|
});
|
|
15
|
-
return
|
|
16
|
-
|
|
17
|
-
}, onBlur: (
|
|
18
|
-
|
|
15
|
+
return u(h, { label: n, helper: p, htmlFor: r, disabled: t.disabled, status: t.status, className: d, required: o, infoIcon: l, actions: c, onInfoClick: v, children: u(N, { ref: b, required: o, id: (a = t.id) !== null && a !== void 0 ? a : r, onFocus: (e) => {
|
|
16
|
+
s == null || s(e), m(!0);
|
|
17
|
+
}, onBlur: (e) => {
|
|
18
|
+
i == null || i(e), m(!1);
|
|
19
19
|
}, className: K, ...t }) });
|
|
20
20
|
});
|
|
21
21
|
H.displayName = "KitInputNumber";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "react/jsx-runtime";
|
|
2
2
|
import "../../../../DataDisplay/Avatar/index.js";
|
|
3
3
|
import "../../../../DataDisplay/Badge/index.js";
|
|
4
|
-
import { t as K } from "../../../../../chunks/index.
|
|
4
|
+
import { t as K } from "../../../../../chunks/index.MNk1kAkw.js";
|
|
5
5
|
import "../../../../DataDisplay/Empty/index.js";
|
|
6
6
|
import "../../../../DataDisplay/IdCard/index.js";
|
|
7
7
|
import "../../../../DataDisplay/Image/index.js";
|
|
@@ -4,7 +4,7 @@ import "../../../../General/Typography/index.js";
|
|
|
4
4
|
import "../../../../General/Icon/index.js";
|
|
5
5
|
import "../../../../Navigation/Breadcrumb/index.js";
|
|
6
6
|
import "../../../../Navigation/DropDown/index.js";
|
|
7
|
-
import { v as F } from "../../../../../chunks/index.
|
|
7
|
+
import { v as F } from "../../../../../chunks/index.MNk1kAkw.js";
|
|
8
8
|
import "../../../../Navigation/Steps/index.js";
|
|
9
9
|
import "antd";
|
|
10
10
|
import "../../../../../chunks/useKitTheme.KSAU-Pdv.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "react/jsx-runtime";
|
|
2
2
|
import "@fortawesome/free-solid-svg-icons";
|
|
3
3
|
import "@fortawesome/react-fontawesome";
|
|
4
|
-
import { w as s } from "../../../../../chunks/index.
|
|
4
|
+
import { w as s } from "../../../../../chunks/index.MNk1kAkw.js";
|
|
5
5
|
import "../../../../../chunks/useKitLocale.96CdK3og.js";
|
|
6
6
|
export {
|
|
7
7
|
s as KitFontStylesButtons
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "react/jsx-runtime";
|
|
2
2
|
import "@fortawesome/free-solid-svg-icons";
|
|
3
3
|
import "@fortawesome/react-fontawesome";
|
|
4
|
-
import { A as n } from "../../../../../chunks/index.
|
|
4
|
+
import { A as n } from "../../../../../chunks/index.MNk1kAkw.js";
|
|
5
5
|
import "../../../../../chunks/useKitLocale.96CdK3og.js";
|
|
6
6
|
export {
|
|
7
7
|
n as KitIndentListButtons
|
|
@@ -2,7 +2,7 @@ import "react/jsx-runtime";
|
|
|
2
2
|
import "@fortawesome/free-solid-svg-icons";
|
|
3
3
|
import "@fortawesome/react-fontawesome";
|
|
4
4
|
import "react";
|
|
5
|
-
import { y as a } from "../../../../../chunks/index.
|
|
5
|
+
import { y as a } from "../../../../../chunks/index.MNk1kAkw.js";
|
|
6
6
|
import "../../../../../chunks/useKitLocale.96CdK3og.js";
|
|
7
7
|
export {
|
|
8
8
|
a as KitLinkButton
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "react/jsx-runtime";
|
|
2
2
|
import "@fortawesome/free-solid-svg-icons";
|
|
3
3
|
import "@fortawesome/react-fontawesome";
|
|
4
|
-
import { z as s } from "../../../../../chunks/index.
|
|
4
|
+
import { z as s } from "../../../../../chunks/index.MNk1kAkw.js";
|
|
5
5
|
import "../../../../../chunks/useKitLocale.96CdK3og.js";
|
|
6
6
|
export {
|
|
7
7
|
s as KitListButtons
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "react/jsx-runtime";
|
|
2
2
|
import "@fortawesome/free-solid-svg-icons";
|
|
3
3
|
import "@fortawesome/react-fontawesome";
|
|
4
|
-
import { x } from "../../../../../chunks/index.
|
|
4
|
+
import { x } from "../../../../../chunks/index.MNk1kAkw.js";
|
|
5
5
|
import "../../../../../chunks/useKitLocale.96CdK3og.js";
|
|
6
6
|
export {
|
|
7
7
|
x as KitTextAlignButtons
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "react/jsx-runtime";
|
|
2
2
|
import "@fortawesome/free-solid-svg-icons";
|
|
3
3
|
import "@fortawesome/react-fontawesome";
|
|
4
|
-
import { u as d } from "../../../../../chunks/index.
|
|
4
|
+
import { u as d } from "../../../../../chunks/index.MNk1kAkw.js";
|
|
5
5
|
import "../../../../../chunks/useKitLocale.96CdK3og.js";
|
|
6
6
|
export {
|
|
7
7
|
d as KitUndoRedoButtons
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "react/jsx-runtime";
|
|
2
2
|
import "classnames";
|
|
3
|
-
import { B as s } from "../../../../chunks/index.
|
|
3
|
+
import { B as s } from "../../../../chunks/index.MNk1kAkw.js";
|
|
4
4
|
import "../../../../chunks/useKitTheme.KSAU-Pdv.js";
|
|
5
5
|
import "../../../Layout/Divider/index.js";
|
|
6
6
|
import "../../../Layout/Space/index.js";
|
|
@@ -3,7 +3,7 @@ import "react";
|
|
|
3
3
|
import "../../../chunks/InputWrapper.RBqyXNPY.js";
|
|
4
4
|
import "../../../chunks/useKitTheme.KSAU-Pdv.js";
|
|
5
5
|
import "classnames";
|
|
6
|
-
import { g as T } from "../../../chunks/index.
|
|
6
|
+
import { g as T } from "../../../chunks/index.MNk1kAkw.js";
|
|
7
7
|
import "@tiptap/react";
|
|
8
8
|
import "@tiptap/starter-kit";
|
|
9
9
|
import "@tiptap/extension-underline";
|
|
@@ -4,7 +4,7 @@ import { KitInputNumber as m } from "./InputNumber/index.js";
|
|
|
4
4
|
import { K } from "../../chunks/InputWrapper.RBqyXNPY.js";
|
|
5
5
|
import { KitRadio as a } from "./Radio/index.js";
|
|
6
6
|
import { KitRate as l } from "./Rate/index.js";
|
|
7
|
-
import { g as h, h as d } from "../../chunks/index.
|
|
7
|
+
import { g as h, h as d } from "../../chunks/index.MNk1kAkw.js";
|
|
8
8
|
import { KitSwitch as n } from "./Switch/index.js";
|
|
9
9
|
import { KitDatePicker as C } from "./DatePicker/index.js";
|
|
10
10
|
import { KitAutoComplete as R } from "./AutoComplete/index.js";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { KitAlert as t } from "./Alert/index.js";
|
|
2
|
-
import { i as e } from "../../chunks/index.
|
|
2
|
+
import { i as e } from "../../chunks/index.MNk1kAkw.js";
|
|
3
3
|
import { KitProgress as K } from "./Progress/index.js";
|
|
4
4
|
import { KitLoader as p } from "./Loader/index.js";
|
|
5
5
|
import { KitSnackBarProvider as n, closeKitSnackBar as s, openKitSnackBar as x } from "./SnackBar/index.js";
|
|
6
|
-
import { K as k, u as l } from "../../chunks/KitNotification.
|
|
6
|
+
import { K as k, u as l } from "../../chunks/KitNotification.lbY6JMru.js";
|
|
7
7
|
import { KitSkeleton as d } from "./Skeleton/index.js";
|
|
8
8
|
export {
|
|
9
9
|
t as KitAlert,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import "../../../assets/
|
|
1
|
+
import "../../../assets/index13.css";
|
|
2
2
|
import { jsxs as O, jsx as s } from "react/jsx-runtime";
|
|
3
3
|
import { forwardRef as $, useState as A, useMemo as P, useEffect as R, cloneElement as D } from "react";
|
|
4
4
|
import F from "@ant-design/icons/LoadingOutlined";
|
package/dist/Kit/Layout/index.js
CHANGED
|
@@ -2,7 +2,7 @@ import { KitDivider as t } from "./Divider/index.js";
|
|
|
2
2
|
import { KitSpace as i } from "./Space/index.js";
|
|
3
3
|
import { KitSection as f } from "./Section/index.js";
|
|
4
4
|
import { KitGrid as x } from "./Grid/index.js";
|
|
5
|
-
import { n as a } from "../../chunks/index.
|
|
5
|
+
import { n as a } from "../../chunks/index.MNk1kAkw.js";
|
|
6
6
|
export {
|
|
7
7
|
t as KitDivider,
|
|
8
8
|
x as KitGrid,
|
|
@@ -10,7 +10,7 @@ import "color-string";
|
|
|
10
10
|
import "lodash/isEmpty";
|
|
11
11
|
import "classnames";
|
|
12
12
|
import "../../../chunks/styles.module.Q_QQjQdX.js";
|
|
13
|
-
import { j as z } from "../../../chunks/index.
|
|
13
|
+
import { j as z } from "../../../chunks/index.MNk1kAkw.js";
|
|
14
14
|
import "../../DataEntry/Checkbox/index.js";
|
|
15
15
|
import "../../DataEntry/Input/index.js";
|
|
16
16
|
import "../../DataEntry/InputNumber/index.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { KitBreadcrumb as t } from "./Breadcrumb/index.js";
|
|
2
2
|
import { KitDropDown as i } from "./DropDown/index.js";
|
|
3
|
-
import { k as K, l as m, j as p, m as f } from "../../chunks/index.
|
|
3
|
+
import { k as K, l as m, j as p, m as f } from "../../chunks/index.MNk1kAkw.js";
|
|
4
4
|
import { KitSteps as s } from "./Steps/index.js";
|
|
5
5
|
import { KitPagination as d } from "./Pagination/index.js";
|
|
6
6
|
export {
|
package/dist/Kit/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { KitAvatar as e } from "./DataDisplay/Avatar/index.js";
|
|
2
2
|
import { KitBadge as o } from "./DataDisplay/Badge/index.js";
|
|
3
|
-
import { b as n, c as s, k as p, a as A, d as m, l as K, i as f, j as l, e as d, g as c, h as x, m as u, f as T } from "../chunks/index.
|
|
3
|
+
import { b as n, c as s, k as p, a as A, d as m, l as K, i as f, j as l, e as d, g as c, h as x, m as u, f as T } from "../chunks/index.MNk1kAkw.js";
|
|
4
4
|
import { KitEmpty as C } from "./DataDisplay/Empty/index.js";
|
|
5
5
|
import { KitIdCard as P } from "./DataDisplay/IdCard/index.js";
|
|
6
6
|
import { KitImage as b } from "./DataDisplay/Image/index.js";
|
|
@@ -25,7 +25,7 @@ import { KitAlert as nt } from "./Feedback/Alert/index.js";
|
|
|
25
25
|
import { KitProgress as pt } from "./Feedback/Progress/index.js";
|
|
26
26
|
import { KitLoader as mt } from "./Feedback/Loader/index.js";
|
|
27
27
|
import { KitSnackBarProvider as ft, closeKitSnackBar as lt, openKitSnackBar as dt } from "./Feedback/SnackBar/index.js";
|
|
28
|
-
import { K as xt, u as ut } from "../chunks/KitNotification.
|
|
28
|
+
import { K as xt, u as ut } from "../chunks/KitNotification.lbY6JMru.js";
|
|
29
29
|
import { KitButton as St } from "./General/Button/index.js";
|
|
30
30
|
import { KitTypography as gt } from "./General/Typography/index.js";
|
|
31
31
|
import { KitIcon as kt } from "./General/Icon/index.js";
|