aristid-ds 16.2.0-3ed127f → 16.2.0-be63a2e
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 +9 -0
- package/dist/Kit/DataDisplay/Collapse/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/KitTableExpandButton.d.ts +1 -1
- package/dist/Kit/DataDisplay/Table/Table.d.ts +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/Tree/index.js +1 -1
- package/dist/Kit/DataDisplay/Tree/types.d.ts +1 -1
- package/dist/Kit/DataDisplay/types.d.ts +3 -0
- package/dist/Kit/DataEntry/AutoComplete/index.js +60 -2
- package/dist/Kit/DataEntry/AutoComplete/types.d.ts +3 -2
- package/dist/Kit/DataEntry/Checkbox/index.js +1 -1
- package/dist/Kit/DataEntry/DatePicker/DatePicker.d.ts +1 -1
- package/dist/Kit/DataEntry/DatePicker/RangePicker.d.ts +2 -2
- package/dist/Kit/DataEntry/DatePicker/index.js +1 -1
- package/dist/Kit/DataEntry/DatePicker/preset/useActiveDatePickerPreset.d.ts +2 -2
- package/dist/Kit/DataEntry/DatePicker/types.d.ts +7 -3
- package/dist/Kit/DataEntry/Input/types.d.ts +5 -2
- package/dist/Kit/DataEntry/InputNumber/index.d.ts +1 -1
- package/dist/Kit/DataEntry/InputNumber/types.d.ts +3 -2
- package/dist/Kit/DataEntry/InputWrapper/types.d.ts +8 -1
- package/dist/Kit/DataEntry/Radio/index.js +1 -1
- package/dist/Kit/DataEntry/Rate/index.d.ts +1 -1
- package/dist/Kit/DataEntry/RichText/MenuBar/LinkButton/index.js +1 -1
- package/dist/Kit/DataEntry/RichText/MenuBar/MenuActionList/index.js +5 -5
- 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/Select/renders.d.ts +1 -1
- package/dist/Kit/DataEntry/Select/types.d.ts +3 -1
- package/dist/Kit/DataEntry/Slider/index.d.ts +1 -1
- package/dist/Kit/DataEntry/TreeSelect/index.js +1 -1
- package/dist/Kit/DataEntry/TreeSelect/renders.d.ts +1 -1
- package/dist/Kit/DataEntry/TreeSelect/types.d.ts +3 -1
- package/dist/Kit/DataEntry/Upload/index.js +1 -1
- package/dist/Kit/Feedback/Alert/types.d.ts +9 -5
- package/dist/Kit/Feedback/Modal/index.js +1 -1
- package/dist/Kit/Feedback/Notification/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/DynamicActions/index.js +1 -1
- package/dist/Kit/General/Icon/types.d.ts +1 -2
- package/dist/Kit/General/Typography/types.d.ts +1 -1
- package/dist/Kit/Layout/Divider/types.d.ts +2 -1
- package/dist/Kit/Layout/PageLayout/index.js +1 -1
- package/dist/Kit/Layout/Space/index.js +18 -12
- package/dist/Kit/Navigation/DropDown/index.js +16 -15
- 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/Navigation/Steps/types.d.ts +2 -1
- package/dist/Kit/index.js +27 -27
- package/dist/assets/App.css +1 -1
- package/dist/assets/Checkbox.css +1 -1
- package/dist/assets/Collapse.css +1 -1
- package/dist/assets/DatePicker.css +1 -1
- package/dist/assets/Pagination.css +1 -1
- package/dist/assets/Radio.css +1 -1
- package/dist/assets/Steps.css +1 -1
- package/dist/assets/Table.css +1 -1
- package/dist/assets/Tag.css +1 -1
- package/dist/assets/Tree.css +1 -1
- package/dist/assets/styles.css +1 -1
- package/dist/chunks/{Button.W4yUc4_g.js → Button.DmRv-H9s.js} +7 -4
- package/dist/chunks/{Checkbox.8DbUhikH.js → Checkbox.UZ_xOkpB.js} +58 -57
- package/dist/chunks/{Collapse.DDyXtllX.js → Collapse.Da1efDpC.js} +5 -5
- package/dist/chunks/{DatePicker.BX-3xOaO.js → DatePicker.B6MnduRh.js} +5 -5
- package/dist/chunks/{DynamicActions.DLAChqhe.js → DynamicActions.BOGaMJhF.js} +1 -1
- package/dist/chunks/{Header.ClXEpDBN.js → Header.DC6a4_Th.js} +1 -1
- package/dist/chunks/{ItemCard.2yWiClP_.js → ItemCard.Bon8-rbT.js} +3 -3
- package/dist/chunks/{ItemList.Dn0DS_Op.js → ItemList.CnBqgKgY.js} +2 -2
- package/dist/chunks/{LinkButton.DNGz3WyA.js → LinkButton.5Hanj1Jg.js} +2 -2
- package/dist/chunks/{MenuBar.DV9DO3jw.js → MenuBar.CMHSAtol.js} +3 -3
- package/dist/chunks/{Modal.C5zlmYgf.js → Modal.BjG07ryG.js} +1 -1
- package/dist/chunks/{Notification.I8yHYHOY.js → Notification.AiRuvGex.js} +1 -1
- package/dist/chunks/{PageHeader.CCyz70vA.js → PageHeader.CQ-HRfgv.js} +1 -1
- package/dist/chunks/{PageLayout.B2GOnyAw.js → PageLayout.TDUnBQXX.js} +2 -2
- package/dist/chunks/{Pagination.D4RHg4eu.js → Pagination.D0KoqOs0.js} +1 -1
- package/dist/chunks/Radio.CEJd1j6E.js +118 -0
- package/dist/chunks/{RedirectCard.Cd0tR_8G.js → RedirectCard.Bs1P9Slc.js} +1 -1
- package/dist/chunks/{RichText.CZSWMVDz.js → RichText.mJKHbN6t.js} +1 -1
- package/dist/chunks/{Select.0t-UwdAE.js → Select.Dfn6HJU5.js} +83 -77
- package/dist/chunks/{SideMenu.BKPxinRS.js → SideMenu.DJOhShpV.js} +1 -1
- package/dist/chunks/{SidePanel.VGPbD0_b.js → SidePanel.pUAE5F4h.js} +1 -1
- package/dist/chunks/{SnackBar.BMP6l6Un.js → SnackBar.B9gWAzUf.js} +3 -3
- package/dist/chunks/{Steps.CF_4sPDw.js → Steps.Cv9QH9E2.js} +10 -6
- package/dist/chunks/{Table.DvFA660k.js → Table.GMmn5LLb.js} +3 -3
- package/dist/chunks/{Tabs.Co5yHo4r.js → Tabs.CQFyziwA.js} +1 -1
- package/dist/chunks/{Tag.B0L04V6f.js → Tag.BE7o-WtV.js} +6 -6
- package/dist/chunks/{Tree.DI2X_dWa.js → Tree.UCxeoAGW.js} +1 -1
- package/dist/chunks/{TreeSelect.DXM58R8r.js → TreeSelect.CTaSXUDE.js} +65 -59
- package/dist/chunks/{Upload.TGa64kqv.js → Upload.D0Cwdfgu.js} +2 -2
- package/dist/chunks/{styles.module.Bfe7jTpt.js → styles.module.I-VT2CFc.js} +1 -1
- package/dist/index.es.js +27 -27
- package/dist/index.umd.js +3 -3
- package/dist/utils/hooks/useGetPopupContainer.d.ts +2 -2
- package/package.json +3 -3
- package/dist/Kit/DataEntry/DatePicker/preset/useActiveRangePickerPreset.d.ts +0 -17
- package/dist/assets/AutoComplete.css +0 -1
- package/dist/chunks/AutoComplete.CJeR7BBD.js +0 -55
- package/dist/chunks/Radio.C6-PSdRy.js +0 -117
package/CHANGELOG.md
CHANGED
|
@@ -21,6 +21,15 @@
|
|
|
21
21
|
- **RichText:**
|
|
22
22
|
- Fix a11y errors: add an accessible name to the editor (`aria-input-field-name`) and make the read-only scrollable region keyboard-focusable (`scrollable-region-focusable`) (@evoiron)
|
|
23
23
|
|
|
24
|
+
### 📦 Upgrade
|
|
25
|
+
|
|
26
|
+
- Upgrade Ant Design from `5.22.2` to `5.29.3` (@philippechevieux)
|
|
27
|
+
- Resolve antd deprecation warnings ahead of v6 (public component props unchanged)
|
|
28
|
+
- **InputNumber**: the forwarded `ref` is now typed as antd's `InputNumberRef` (previously `HTMLInputElement`)
|
|
29
|
+
- **⚠️ Breaking change** — Upgrade Ant Design from `5.29.3` to `6.4.5` (@philippechevieux)
|
|
30
|
+
- **Divider**: the title alignment prop `orientation` is renamed to `titlePlacement`. In v6 `orientation` now controls the divider direction (`horizontal` / `vertical`)
|
|
31
|
+
- Adopt antd's new `@rc-component/*` scope (`rc-util` → `@rc-component/util`, internal `rc-*` imports rewritten to `@rc-component/*`)
|
|
32
|
+
|
|
24
33
|
## [16.2.0](https://www.npmjs.com/package/aristid-ds/v/16.2.0) (2026-06-19)
|
|
25
34
|
|
|
26
35
|
### 🐛 Bug Fixes
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../../../chunks/Collapse.
|
|
1
|
+
import { t as e } from "../../../chunks/Collapse.Da1efDpC.js";
|
|
2
2
|
export { e as KitCollapse };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../../../chunks/ItemCard.
|
|
1
|
+
import { t as e } from "../../../chunks/ItemCard.Bon8-rbT.js";
|
|
2
2
|
export { e as KitItemCard };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../../../chunks/ItemList.
|
|
1
|
+
import { t as e } from "../../../chunks/ItemList.CnBqgKgY.js";
|
|
2
2
|
export { e as KitItemList };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../../../chunks/RedirectCard.
|
|
1
|
+
import { t as e } from "../../../chunks/RedirectCard.Bs1P9Slc.js";
|
|
2
2
|
export { e as KitRedirectCard };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { RenderExpandIconProps } from 'rc-table/lib/interface';
|
|
1
|
+
import { RenderExpandIconProps } from '@rc-component/table/lib/interface';
|
|
2
2
|
export declare function KitTableExpandButton<T>({ record, expanded, onExpand, expandable }: RenderExpandIconProps<T>): import("react/jsx-runtime").JSX.Element | null;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { IKitTable } from './types';
|
|
2
|
-
import { DefaultRecordType } from 'rc-table/lib/interface';
|
|
2
|
+
import { DefaultRecordType } from '@rc-component/table/lib/interface';
|
|
3
3
|
export declare function KitTable<T extends DefaultRecordType>({ className, style, cellsBackgroundColor, backgroundColor, borderedRows, columns, onChange, components, showDragHandle, showHeader, dragHandleElement, headerLineSize, lineSize, ...tableProps }: IKitTable<T>): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as e, t } from "../../../chunks/Table.
|
|
1
|
+
import { n as e, t } from "../../../chunks/Table.GMmn5LLb.js";
|
|
2
2
|
export { t as KitTable, e as KitTableExpandButton };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../../../chunks/Tabs.
|
|
1
|
+
import { t as e } from "../../../chunks/Tabs.CQFyziwA.js";
|
|
2
2
|
export { e as KitTabs };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../../../chunks/Tag.
|
|
1
|
+
import { t as e } from "../../../chunks/Tag.BE7o-WtV.js";
|
|
2
2
|
export { e as KitTag };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../../../chunks/Tree.
|
|
1
|
+
import { t as e } from "../../../chunks/Tree.UCxeoAGW.js";
|
|
2
2
|
export { e as KitTree };
|
|
@@ -7,4 +7,7 @@ export interface IKitActionButton {
|
|
|
7
7
|
disabled?: boolean;
|
|
8
8
|
title?: string;
|
|
9
9
|
className?: string;
|
|
10
|
+
// antd 5.29 added a `data-${string}` index signature to MenuItemType (DataAttributes).
|
|
11
|
+
// Mirror it so action buttons stay assignable to KitDropDown's `menu.items`.
|
|
12
|
+
[dataAttribute: `data-${string}`]: unknown;
|
|
10
13
|
}
|
|
@@ -1,2 +1,60 @@
|
|
|
1
|
-
import { t as e } from "../../../chunks/
|
|
2
|
-
|
|
1
|
+
import { t as e } from "../../../chunks/InputWrapper.By9kN0xU.js";
|
|
2
|
+
import { t } from "../../../chunks/useGetPopupContainer.C6KjVnVk.js";
|
|
3
|
+
import { t as n } from "../../../chunks/Input.DrLszrjk.js";
|
|
4
|
+
import { jsx as r } from "react/jsx-runtime";
|
|
5
|
+
import { forwardRef as i, useRef as a, useState as o } from "react";
|
|
6
|
+
import { AutoComplete as s } from "antd";
|
|
7
|
+
import c from "classnames";
|
|
8
|
+
import { FontAwesomeIcon as l } from "@fortawesome/react-fontawesome";
|
|
9
|
+
import { faMagnifyingGlass as u } from "@fortawesome/free-solid-svg-icons";
|
|
10
|
+
//#region src/Kit/DataEntry/AutoComplete/index.tsx
|
|
11
|
+
var d = (e, t, n) => c(e, "ant-select-dropdown", "kit-select-dropdown-bottom", {
|
|
12
|
+
"kit-select-dropdown-focus": t,
|
|
13
|
+
"kit-select-dropdown-error": n === "error",
|
|
14
|
+
"kit-select-dropdown-warning": n === "warning"
|
|
15
|
+
}), f = i(({ allowClear: i, label: c, helper: f, htmlFor: p, autoFocus: m, defaultValue: h, disabled: g, placeholder: _, status: v, value: y, getPopupContainer: b, onFocus: x, onBlur: S, popupClassName: C, wrapperClassName: w, required: T, actions: E, size: D = "large", extra: O, ...k }, A) => {
|
|
16
|
+
let [j, M] = o(!1), N = a(null), P = A ?? N, F = t(P, b), I = (e) => {
|
|
17
|
+
M(!0), x && x(e);
|
|
18
|
+
}, L = (e) => {
|
|
19
|
+
M(!1), S && S(e);
|
|
20
|
+
}, R = typeof k.classNames == "function" ? void 0 : k.classNames;
|
|
21
|
+
return r(e, {
|
|
22
|
+
label: c,
|
|
23
|
+
helper: f,
|
|
24
|
+
htmlFor: p,
|
|
25
|
+
disabled: g,
|
|
26
|
+
status: v,
|
|
27
|
+
className: w,
|
|
28
|
+
extra: O ?? E,
|
|
29
|
+
children: r(s, {
|
|
30
|
+
...k,
|
|
31
|
+
id: k.id ?? p,
|
|
32
|
+
disabled: g,
|
|
33
|
+
ref: P,
|
|
34
|
+
getPopupContainer: F,
|
|
35
|
+
classNames: {
|
|
36
|
+
...R,
|
|
37
|
+
popup: {
|
|
38
|
+
...R?.popup,
|
|
39
|
+
root: d(C, j, v)
|
|
40
|
+
}
|
|
41
|
+
},
|
|
42
|
+
children: r(n, {
|
|
43
|
+
prefix: r(l, { icon: u }),
|
|
44
|
+
allowClear: i,
|
|
45
|
+
autoFocus: m,
|
|
46
|
+
required: T,
|
|
47
|
+
size: D,
|
|
48
|
+
defaultValue: h,
|
|
49
|
+
placeholder: _,
|
|
50
|
+
status: v,
|
|
51
|
+
value: y,
|
|
52
|
+
onBlur: L,
|
|
53
|
+
onFocus: I
|
|
54
|
+
})
|
|
55
|
+
})
|
|
56
|
+
});
|
|
57
|
+
});
|
|
58
|
+
f.displayName = "KitAutoComplete";
|
|
59
|
+
//#endregion
|
|
60
|
+
export { f as KitAutoComplete };
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { AutoCompleteProps } from 'antd';
|
|
2
2
|
import { KitHTMLAttributes } from '../../../types';
|
|
3
|
-
import { IKitInputWrapperBase } from '../InputWrapper/types';
|
|
3
|
+
import { IKitInputWrapperBase, KitInputStatus } from '../InputWrapper/types';
|
|
4
4
|
export interface IKitAutoComplete
|
|
5
|
-
extends AutoCompleteProps<T, E>, KitHTMLAttributes<HTMLInputElement>, IKitInputWrapperBase {
|
|
5
|
+
extends Omit<AutoCompleteProps<T, E>, 'status'>, KitHTMLAttributes<HTMLInputElement>, IKitInputWrapperBase {
|
|
6
6
|
allowClear?: boolean;
|
|
7
7
|
placeholder?: string;
|
|
8
8
|
wrapperClassName?: string;
|
|
9
9
|
required?: boolean;
|
|
10
|
+
status?: KitInputStatus;
|
|
10
11
|
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../../../chunks/Checkbox.
|
|
1
|
+
import { t as e } from "../../../chunks/Checkbox.UZ_xOkpB.js";
|
|
2
2
|
export { e as KitCheckbox };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { PickerRef } from 'rc-picker';
|
|
1
|
+
import { PickerRef } from '@rc-component/picker';
|
|
2
2
|
import { IKitDatePicker } from './types';
|
|
3
3
|
declare const KitDatePicker: import('react').ForwardRefExoticComponent<Omit<IKitDatePicker, "ref"> & import('react').RefAttributes<PickerRef>>;
|
|
4
4
|
export default KitDatePicker;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { PickerRef } from 'rc-picker';
|
|
2
|
-
declare const KitRangePicker: import('react').ForwardRefExoticComponent<Omit<import('antd/es/date-picker').RangePickerProps, "readOnly"> & import('./types').IInternalRangerPicker & import('../InputWrapper/types').IKitInputWrapperBase & import('react').RefAttributes<PickerRef>>;
|
|
1
|
+
import { PickerRef } from '@rc-component/picker';
|
|
2
|
+
declare const KitRangePicker: import('react').ForwardRefExoticComponent<Omit<import('antd/es/date-picker').RangePickerProps, "status" | "readOnly"> & import('./types').IInternalRangerPicker & import('../InputWrapper/types').IKitInputWrapperBase & import('react').RefAttributes<PickerRef>>;
|
|
3
3
|
export default KitRangePicker;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../../../chunks/DatePicker.
|
|
1
|
+
import { t as e } from "../../../chunks/DatePicker.B6MnduRh.js";
|
|
2
2
|
export { e as KitDatePicker };
|
|
@@ -11,7 +11,7 @@ export declare const useActiveDatePickerPreset: ({ presets, picker, showTime, on
|
|
|
11
11
|
label: import("react/jsx-runtime").JSX.Element;
|
|
12
12
|
value: import('dayjs').Dayjs | (() => import('dayjs').Dayjs);
|
|
13
13
|
}[] | undefined;
|
|
14
|
-
onChange: (date: import('dayjs').Dayjs, dateString: string | string[]) => void;
|
|
15
|
-
onCalendarChange: (date: import('dayjs').Dayjs | import('dayjs').Dayjs[], dateString: string | string[], info: import('rc-picker/
|
|
14
|
+
onChange: (date: import('dayjs').Dayjs | import('dayjs').Dayjs[] | null, dateString: string | string[] | null) => void;
|
|
15
|
+
onCalendarChange: (date: import('dayjs').Dayjs | import('dayjs').Dayjs[], dateString: string | string[], info: import('@rc-component/picker/interface').BaseInfo) => void;
|
|
16
16
|
};
|
|
17
17
|
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { DatePickerProps, RangePickerProps } from 'antd/es/date-picker';
|
|
2
|
-
import { IKitInputWrapperBase } from '../InputWrapper/types';
|
|
2
|
+
import { IKitInputWrapperBase, KitInputStatus } from '../InputWrapper/types';
|
|
3
3
|
// Use "never" instead of Omit properties to avoid issues with Antd type/interface declarations
|
|
4
4
|
interface IInternalDatePicker {
|
|
5
5
|
size?: 'small' | 'middle' | 'large';
|
|
@@ -11,9 +11,10 @@ interface IInternalDatePicker {
|
|
|
11
11
|
required?: boolean;
|
|
12
12
|
readonlyLight?: boolean;
|
|
13
13
|
readonly?: boolean;
|
|
14
|
+
status?: KitInputStatus;
|
|
14
15
|
}
|
|
15
16
|
|
|
16
|
-
interface IDatePickerProps extends Omit<DatePickerProps, 'picker' | 'readOnly'> {
|
|
17
|
+
interface IDatePickerProps extends Omit<DatePickerProps, 'picker' | 'readOnly' | 'status'> {
|
|
17
18
|
picker?: 'time' | 'date' | 'week' | 'month' | 'year' | 'quarter';
|
|
18
19
|
showTime?: boolean | object;
|
|
19
20
|
}
|
|
@@ -27,6 +28,9 @@ interface IInternalRangerPicker {
|
|
|
27
28
|
required?: boolean;
|
|
28
29
|
readonlyLight?: boolean;
|
|
29
30
|
readonly?: boolean;
|
|
31
|
+
status?: KitInputStatus;
|
|
30
32
|
}
|
|
31
33
|
|
|
32
|
-
export type IKitRangePicker = Omit<RangePickerProps, 'readOnly'
|
|
34
|
+
export type IKitRangePicker = Omit<RangePickerProps, 'readOnly' | 'status'> &
|
|
35
|
+
IInternalRangerPicker &
|
|
36
|
+
IKitInputWrapperBase;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { InputProps } from 'antd';
|
|
2
2
|
import { PasswordProps, TextAreaProps } from 'antd/es/input';
|
|
3
3
|
import { KitHTMLAttributes } from '../../../types';
|
|
4
|
-
import { IKitInputWrapper, IKitInputWrapperBase } from '../InputWrapper/types';
|
|
5
|
-
type AntdInputTypesToOmit = 'styles' | 'bordered' | 'addonBefore' | 'addonAfter' | 'readOnly';
|
|
4
|
+
import { IKitInputWrapper, IKitInputWrapperBase, KitInputStatus } from '../InputWrapper/types';
|
|
5
|
+
type AntdInputTypesToOmit = 'styles' | 'bordered' | 'addonBefore' | 'addonAfter' | 'readOnly' | 'status';
|
|
6
6
|
|
|
7
7
|
export interface IKitInput
|
|
8
8
|
extends
|
|
@@ -17,6 +17,7 @@ export interface IKitInput
|
|
|
17
17
|
readonlyLight?: boolean;
|
|
18
18
|
enableSpellCheck?: boolean;
|
|
19
19
|
AI?: boolean;
|
|
20
|
+
status?: KitInputStatus;
|
|
20
21
|
}
|
|
21
22
|
|
|
22
23
|
export interface IKitTextArea
|
|
@@ -31,6 +32,7 @@ export interface IKitTextArea
|
|
|
31
32
|
readonlyLight?: boolean;
|
|
32
33
|
enableSpellCheck?: boolean;
|
|
33
34
|
AI?: boolean;
|
|
35
|
+
status?: KitInputStatus;
|
|
34
36
|
}
|
|
35
37
|
|
|
36
38
|
export interface IKitPassword
|
|
@@ -42,4 +44,5 @@ export interface IKitPassword
|
|
|
42
44
|
wrapperClassName?: string;
|
|
43
45
|
required?: boolean;
|
|
44
46
|
readonly?: boolean;
|
|
47
|
+
status?: KitInputStatus;
|
|
45
48
|
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { KitInputNumberProps } from './types';
|
|
2
|
-
export declare const KitInputNumber: import('react').ForwardRefExoticComponent<KitInputNumberProps & import('react').RefAttributes<
|
|
2
|
+
export declare const KitInputNumber: import('react').ForwardRefExoticComponent<KitInputNumberProps & import('react').RefAttributes<import('@rc-component/input-number').InputNumberRef>>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { InputNumberProps } from 'antd';
|
|
2
2
|
import { KitHTMLAttributes } from '../../../types';
|
|
3
|
-
import { IKitInputWrapperBase } from '../InputWrapper/types';
|
|
4
|
-
type AntdInputNumberTypesToOmit = 'addonBefore' | 'addonAfter' | 'borderless' | 'suffix' | 'readOnly';
|
|
3
|
+
import { IKitInputWrapperBase, KitInputStatus } from '../InputWrapper/types';
|
|
4
|
+
type AntdInputNumberTypesToOmit = 'addonBefore' | 'addonAfter' | 'borderless' | 'suffix' | 'readOnly' | 'status';
|
|
5
5
|
|
|
6
6
|
export interface KitInputNumberProps
|
|
7
7
|
extends
|
|
@@ -11,4 +11,5 @@ export interface KitInputNumberProps
|
|
|
11
11
|
wrapperClassName?: string;
|
|
12
12
|
required?: boolean;
|
|
13
13
|
readonly?: boolean;
|
|
14
|
+
status?: KitInputStatus;
|
|
14
15
|
}
|
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
import { KitHTMLAttributes } from '../../../types';
|
|
2
2
|
import { ReactNode } from 'react';
|
|
3
|
+
/**
|
|
4
|
+
* Only `error` and `warning` have a dedicated rendering in KitInputWrapper.
|
|
5
|
+
* antd v6 widens its `InputStatus` to also include `success`/`validating`, but we
|
|
6
|
+
* intentionally don't expose those since the wrapper has no rendering for them.
|
|
7
|
+
*/
|
|
8
|
+
export type KitInputStatus = '' | 'warning' | 'error';
|
|
9
|
+
|
|
3
10
|
export interface IKitInputWrapperBase {
|
|
4
11
|
label?: string;
|
|
5
12
|
helper?: string;
|
|
@@ -14,7 +21,7 @@ export interface IKitInputWrapperBase {
|
|
|
14
21
|
export interface IKitInputWrapper extends IKitInputWrapperBase, KitHTMLAttributes<HTMLDivElement> {
|
|
15
22
|
childrenOnly?: boolean;
|
|
16
23
|
disabled?: boolean;
|
|
17
|
-
status?:
|
|
24
|
+
status?: KitInputStatus;
|
|
18
25
|
className?: string;
|
|
19
26
|
bordered?: boolean;
|
|
20
27
|
hoverable?: boolean;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../../../chunks/Radio.
|
|
1
|
+
import { t as e } from "../../../chunks/Radio.CEJd1j6E.js";
|
|
2
2
|
export { e as KitRadio };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../../../../../chunks/LinkButton.
|
|
1
|
+
import { t as e } from "../../../../../chunks/LinkButton.5Hanj1Jg.js";
|
|
2
2
|
export { e as KitLinkButton };
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import { t as e } from "../../../../../chunks/Divider.BmAL40z9.js";
|
|
2
2
|
import { KitFontStylesButtons as t } from "../FontStylesButtons/index.js";
|
|
3
3
|
import { KitTextAlignButtons as n } from "../TextAlignButtons/index.js";
|
|
4
|
-
import { t as r } from "../../../../../chunks/LinkButton.
|
|
4
|
+
import { t as r } from "../../../../../chunks/LinkButton.5Hanj1Jg.js";
|
|
5
5
|
import { KitListButtons as i } from "../ListButtons/index.js";
|
|
6
6
|
import { KitIndentListButtons as a } from "../IndentListButtons/index.js";
|
|
7
7
|
import { Fragment as o, jsx as s, jsxs as c } from "react/jsx-runtime";
|
|
8
8
|
//#region src/Kit/DataEntry/RichText/MenuBar/MenuActionList/index.tsx
|
|
9
9
|
var l = ({ editor: l }) => c(o, { children: [
|
|
10
10
|
s(t, { editor: l }),
|
|
11
|
-
s(e, {
|
|
11
|
+
s(e, { orientation: "vertical" }),
|
|
12
12
|
s(n, { editor: l }),
|
|
13
|
-
s(e, {
|
|
13
|
+
s(e, { orientation: "vertical" }),
|
|
14
14
|
s(r, { editor: l }),
|
|
15
|
-
s(e, {
|
|
15
|
+
s(e, { orientation: "vertical" }),
|
|
16
16
|
s(i, { editor: l }),
|
|
17
|
-
s(e, {
|
|
17
|
+
s(e, { orientation: "vertical" }),
|
|
18
18
|
s(a, { editor: l })
|
|
19
19
|
] });
|
|
20
20
|
//#endregion
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../../../../chunks/MenuBar.
|
|
1
|
+
import { t as e } from "../../../../chunks/MenuBar.CMHSAtol.js";
|
|
2
2
|
export { e as KitMenuBar };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../../../chunks/RichText.
|
|
1
|
+
import { t as e } from "../../../chunks/RichText.mJKHbN6t.js";
|
|
2
2
|
export { e as KitRichText };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../../../chunks/Select.
|
|
1
|
+
import { t as e } from "../../../chunks/Select.Dfn6HJU5.js";
|
|
2
2
|
export { e as KitSelect };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ReactElement, ReactNode } from 'react';
|
|
2
|
-
import { CustomTagProps } from 'rc-select/es/BaseSelect';
|
|
2
|
+
import { CustomTagProps } from '@rc-component/select/es/BaseSelect';
|
|
3
3
|
import { IKitInternalOption, IKitOption, IKitSelect } from './types';
|
|
4
4
|
export declare const getTagRender: (customTag: CustomTagProps, disabled: IKitSelect['disabled'], status: IKitSelect['status'], options: IKitInternalOption[], readonly: boolean, size: IKitSelect['size']) => import("react/jsx-runtime").JSX.Element;
|
|
5
5
|
export declare const getMaxTagRender_HACKED: (omittedValues: {
|
|
@@ -2,7 +2,7 @@ import { SelectProps } from 'antd';
|
|
|
2
2
|
import { KitHTMLAttributes } from '../../../types';
|
|
3
3
|
import { ReactNode, MouseEvent } from 'react';
|
|
4
4
|
import { IKitIdCard } from '../../DataDisplay/IdCard/types';
|
|
5
|
-
import { IKitInputWrapperBase } from '../InputWrapper/types';
|
|
5
|
+
import { IKitInputWrapperBase, KitInputStatus } from '../InputWrapper/types';
|
|
6
6
|
export type {RefSelectProps} from 'antd';
|
|
7
7
|
|
|
8
8
|
type AntdSelectTypesToOmit =
|
|
@@ -26,6 +26,7 @@ type AntdSelectTypesToOmit =
|
|
|
26
26
|
| 'menuItemSelectedIcon'
|
|
27
27
|
| 'labelRender'
|
|
28
28
|
| 'optionRender'
|
|
29
|
+
| 'status'
|
|
29
30
|
| 'readOnly';
|
|
30
31
|
|
|
31
32
|
type OptionCommons = {
|
|
@@ -68,4 +69,5 @@ export interface IKitSelect
|
|
|
68
69
|
required?: boolean;
|
|
69
70
|
readonlyLight?: boolean;
|
|
70
71
|
readonly?: boolean;
|
|
72
|
+
status?: KitInputStatus;
|
|
71
73
|
}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { IKitSliderRange, IKitSliderSingle } from './types';
|
|
2
|
-
import { SliderRef } from 'rc-slider/es/Slider';
|
|
2
|
+
import { SliderRef } from '@rc-component/slider/es/Slider';
|
|
3
3
|
export declare const KitSlider: import('react').ForwardRefExoticComponent<(IKitSliderSingle | IKitSliderRange) & import('react').RefAttributes<SliderRef>>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../../../chunks/TreeSelect.
|
|
1
|
+
import { t as e } from "../../../chunks/TreeSelect.CTaSXUDE.js";
|
|
2
2
|
export { e as KitTreeSelect };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ReactElement } from 'react';
|
|
2
|
-
import { CustomTagProps } from 'rc-select/es/BaseSelect';
|
|
2
|
+
import { CustomTagProps } from '@rc-component/select/es/BaseSelect';
|
|
3
3
|
import { IKitSelect } from '../Select/types';
|
|
4
4
|
import { IKitTreeSelect } from './types';
|
|
5
5
|
export declare const getTagRender: (customTag: CustomTagProps, disabled: IKitTreeSelect['disabled'], status: IKitTreeSelect['status'], readonly: boolean) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { TreeSelectProps } from 'antd';
|
|
2
2
|
import { KitHTMLAttributes } from '../../../types';
|
|
3
|
-
import { IKitInputWrapperBase } from '../InputWrapper/types';
|
|
3
|
+
import { IKitInputWrapperBase, KitInputStatus } from '../InputWrapper/types';
|
|
4
4
|
export type {RefSelectProps} from 'antd';
|
|
5
5
|
|
|
6
6
|
type AntdSelectTypesToOmit =
|
|
@@ -19,6 +19,7 @@ type AntdSelectTypesToOmit =
|
|
|
19
19
|
| 'variant'
|
|
20
20
|
| 'clearIcon'
|
|
21
21
|
| 'dropdownStyle'
|
|
22
|
+
| 'status'
|
|
22
23
|
| 'readOnly';
|
|
23
24
|
|
|
24
25
|
export interface IKitTreeSelect
|
|
@@ -29,4 +30,5 @@ export interface IKitTreeSelect
|
|
|
29
30
|
readonlyLight?: boolean;
|
|
30
31
|
readonly?: boolean;
|
|
31
32
|
styles?: TreeSelectProps['styles'];
|
|
33
|
+
status?: KitInputStatus;
|
|
32
34
|
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../../../chunks/Upload.
|
|
1
|
+
import { t as e } from "../../../chunks/Upload.D0Cwdfgu.js";
|
|
2
2
|
export { e as KitUpload };
|
|
@@ -1,11 +1,15 @@
|
|
|
1
|
-
import { FunctionComponent, ReactNode } from 'react';
|
|
2
|
-
import { AlertProps } from 'antd';
|
|
1
|
+
import { FunctionComponent, MouseEvent as ReactMouseEvent, ReactNode } from 'react';
|
|
3
2
|
import { KitHTMLAttributes } from '../../../types';
|
|
4
3
|
import { ToastPosition } from 'react-hot-toast';
|
|
5
|
-
type
|
|
4
|
+
export type KitAlertType = 'info' | 'success' | 'warning' | 'error';
|
|
6
5
|
|
|
7
|
-
export interface IKitAlert
|
|
8
|
-
|
|
6
|
+
export interface IKitAlert extends Omit<KitHTMLAttributes<HTMLDivElement>, 'role'> {
|
|
7
|
+
type?: KitAlertType;
|
|
8
|
+
message?: ReactNode;
|
|
9
|
+
description?: ReactNode;
|
|
10
|
+
showIcon?: boolean;
|
|
11
|
+
closable?: boolean;
|
|
12
|
+
onClose?: (e: ReactMouseEvent<HTMLButtonElement>) => void;
|
|
9
13
|
details?: ReactNode;
|
|
10
14
|
customContent?: ReactNode;
|
|
11
15
|
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { i as e, n as t, r as n, t as r } from "../../../chunks/Modal.
|
|
1
|
+
import { i as e, n as t, r as n, t as r } from "../../../chunks/Modal.BjG07ryG.js";
|
|
2
2
|
export { r as KitModal, t as KitModalContent, n as KitModalFooter, e as KitModalHeader };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../../../chunks/Notification.
|
|
1
|
+
import { t as e } from "../../../chunks/Notification.AiRuvGex.js";
|
|
2
2
|
export { e as KitNotification };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as e, r as t, t as n } from "../../../chunks/SnackBar.
|
|
1
|
+
import { n as e, r as t, t as n } from "../../../chunks/SnackBar.B9gWAzUf.js";
|
|
2
2
|
export { n as KitSnackBarProvider, e as closeKitSnackBar, t as openKitSnackBar };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../../../chunks/Button.
|
|
1
|
+
import { t as e } from "../../../chunks/Button.DmRv-H9s.js";
|
|
2
2
|
export { e as KitButton };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../../../chunks/DynamicActions.
|
|
1
|
+
import { t as e } from "../../../chunks/DynamicActions.BOGaMJhF.js";
|
|
2
2
|
export { e as default };
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { ReactNode, MouseEvent } from 'react';
|
|
2
2
|
import { KitHTMLAttributes } from '../../../types';
|
|
3
|
-
import { IconComponentProps } from '@ant-design/icons/es/components/Icon';
|
|
4
3
|
import { KitColorProp } from '../../../utils/functions/types';
|
|
5
|
-
export interface IKitIcon extends
|
|
4
|
+
export interface IKitIcon extends KitHTMLAttributes<HTMLSpanElement> {
|
|
6
5
|
on?: boolean;
|
|
7
6
|
color?: KitColorProp;
|
|
8
7
|
displayName?: string;
|
|
@@ -2,7 +2,7 @@ import { BlockProps, EllipsisConfig } from 'antd/es/typography/Base';
|
|
|
2
2
|
import { AllHTMLAttributes, ForwardedRef, FunctionComponent, CSSProperties } from 'react';
|
|
3
3
|
import { KitHTMLAttributes } from '../../../types';
|
|
4
4
|
export interface IInternalKitTitle extends Base {
|
|
5
|
-
component?:
|
|
5
|
+
component?: keyof JSX.IntrinsicElements;
|
|
6
6
|
ref: ForwardedRef;
|
|
7
7
|
style?: CSSProperties;
|
|
8
8
|
className?: string;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { DividerProps } from 'antd';
|
|
2
2
|
import { KitHTMLAttributes } from '../../../types';
|
|
3
|
-
type
|
|
3
|
+
// `type` (use `orientation` for direction) and `orientationMargin` (use `styles.content.margin`) are deprecated in antd v6
|
|
4
|
+
type AntdDividerTypesToOmit = 'style' | 'plain' | 'variant' | 'type' | 'orientationMargin';
|
|
4
5
|
|
|
5
6
|
export interface IKitDivider extends Omit<DividerProps, AntdDividerTypesToOmit>, KitHTMLAttributes<HTMLDivElement> {
|
|
6
7
|
noMargin?: boolean;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../../../chunks/PageLayout.
|
|
1
|
+
import { t as e } from "../../../chunks/PageLayout.TDUnBQXX.js";
|
|
2
2
|
export { e as KitPageLayout };
|
|
@@ -2,19 +2,25 @@ import { n as e } from "../../../chunks/useKitTheme.Bcv-etUA.js";
|
|
|
2
2
|
import { jsx as t } from "react/jsx-runtime";
|
|
3
3
|
import { useCallback as n, useMemo as r } from "react";
|
|
4
4
|
import { Space as i } from "antd";
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
5
|
+
//#region src/Kit/Layout/Space/index.tsx
|
|
6
|
+
var a = ({ size: a, direction: o, orientation: s, split: c, separator: l, ...u }) => {
|
|
7
|
+
let { spacing: d } = e(), f = a ?? "xs", p = n((e) => typeof e == "number" ? e : typeof e == "string" ? d[e] : 0, [d]), m = r(() => {
|
|
8
|
+
if (typeof f == "object") {
|
|
9
|
+
let [e, t] = f;
|
|
10
|
+
return e = p(e), t = p(t), [e, t];
|
|
10
11
|
}
|
|
11
|
-
return
|
|
12
|
-
}, [
|
|
12
|
+
return p(f);
|
|
13
|
+
}, [f, p]);
|
|
13
14
|
return t(i, {
|
|
14
|
-
...
|
|
15
|
-
|
|
15
|
+
...u,
|
|
16
|
+
orientation: s ?? o,
|
|
17
|
+
separator: l ?? c,
|
|
18
|
+
size: m
|
|
16
19
|
});
|
|
17
|
-
}
|
|
18
|
-
|
|
20
|
+
}, o = ({ direction: e, orientation: n, ...r }) => t(i.Compact, {
|
|
21
|
+
...r,
|
|
22
|
+
orientation: n ?? e
|
|
23
|
+
}), s = a;
|
|
24
|
+
s.displayName = "KitSpace", s.Compact = o;
|
|
19
25
|
//#endregion
|
|
20
|
-
export {
|
|
26
|
+
export { s as KitSpace };
|