aristid-ds 20.0.0 → 20.1.0
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 +66 -0
- package/dist/Kit/App/index.js +1 -1
- package/dist/Kit/DataDisplay/Avatar/index.js +1 -1
- package/dist/Kit/DataDisplay/Badge/index.js +1 -1
- package/dist/Kit/DataDisplay/Card/index.js +1 -1
- package/dist/Kit/DataDisplay/Carousel/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 +1 -1
- package/dist/Kit/DataDisplay/ItemCard/index.js +1 -1
- package/dist/Kit/DataDisplay/ItemList/index.js +1 -1
- package/dist/Kit/DataDisplay/Kanban/KanbanCard.d.ts +12 -0
- package/dist/Kit/DataDisplay/Kanban/KanbanColumn.d.ts +20 -0
- package/dist/Kit/DataDisplay/Kanban/KanbanItem.d.ts +14 -0
- package/dist/Kit/DataDisplay/Kanban/index.d.ts +8 -0
- package/dist/Kit/DataDisplay/Kanban/index.js +1 -0
- package/dist/Kit/DataDisplay/Kanban/types.d.ts +114 -0
- package/dist/Kit/DataDisplay/RedirectCard/index.js +1 -1
- package/dist/Kit/DataDisplay/Tab/index.js +1 -1
- package/dist/Kit/DataDisplay/Table/KitTableExpandButton.d.ts +2 -1
- package/dist/Kit/DataDisplay/Table/index.js +1 -1
- package/dist/Kit/DataDisplay/Tag/index.js +1 -1
- package/dist/Kit/DataDisplay/ToolBar/index.d.ts +3 -0
- package/dist/Kit/DataDisplay/ToolBar/index.js +1 -0
- package/dist/Kit/DataDisplay/ToolBar/types.d.ts +11 -0
- package/dist/Kit/DataEntry/AutoComplete/index.js +2 -2
- package/dist/Kit/DataEntry/Checkbox/index.js +1 -1
- package/dist/Kit/DataEntry/ColorPicker/index.js +1 -1
- package/dist/Kit/DataEntry/DatePicker/DatePicker.d.ts +1 -1
- package/dist/Kit/DataEntry/DatePicker/RangePicker.d.ts +1 -1
- package/dist/Kit/DataEntry/DatePicker/index.js +1 -1
- package/dist/Kit/DataEntry/DatePicker/preset/useActiveDatePickerPreset.d.ts +1 -1
- package/dist/Kit/DataEntry/Filter/FilterButton.d.ts +1 -1
- package/dist/Kit/DataEntry/Filter/index.js +1 -1
- package/dist/Kit/DataEntry/Filter/types.d.ts +19 -2
- package/dist/Kit/DataEntry/Input/index.js +1 -1
- package/dist/Kit/DataEntry/InputNumber/index.js +1 -1
- package/dist/Kit/DataEntry/InputWrapper/index.js +1 -1
- package/dist/Kit/DataEntry/Radio/index.js +1 -1
- package/dist/Kit/DataEntry/Rate/index.js +1 -1
- package/dist/Kit/DataEntry/RichText/MenuBar/FontSizeSelect/index.js +1 -1
- package/dist/Kit/DataEntry/RichText/MenuBar/LinkButton/index.js +1 -1
- package/dist/Kit/DataEntry/RichText/MenuBar/MenuActionList/index.d.ts +3 -3
- package/dist/Kit/DataEntry/RichText/MenuBar/MenuActionList/index.js +28 -18
- package/dist/Kit/DataEntry/RichText/MenuBar/MenuActionList/types.d.ts +4 -0
- package/dist/Kit/DataEntry/RichText/MenuBar/ShowMoreButton.d.ts +1 -1
- package/dist/Kit/DataEntry/RichText/MenuBar/index.d.ts +1 -1
- package/dist/Kit/DataEntry/RichText/MenuBar/index.js +1 -1
- package/dist/Kit/DataEntry/RichText/MenuBar/types.d.ts +2 -0
- package/dist/Kit/DataEntry/RichText/index.js +1 -1
- package/dist/Kit/DataEntry/SearchInput/index.js +1 -1
- package/dist/Kit/DataEntry/Select/index.js +1 -1
- package/dist/Kit/DataEntry/TreeSelect/index.js +1 -1
- package/dist/Kit/DataEntry/Upload/index.js +1 -1
- package/dist/Kit/Feedback/Alert/index.js +1 -1
- package/dist/Kit/Feedback/Modal/index.js +1 -1
- package/dist/Kit/Feedback/Notification/index.js +1 -1
- package/dist/Kit/Feedback/Progress/index.js +1 -1
- package/dist/Kit/Feedback/SnackBar/index.js +5 -1
- package/dist/Kit/General/Button/index.js +1 -1
- package/dist/Kit/General/DynamicActions/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/PageLayout/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/index.d.ts +4 -0
- package/dist/Kit/index.js +62 -60
- package/dist/assets/App.css +1 -1
- package/dist/assets/Button.css +1 -1
- package/dist/assets/ColorPicker.css +1 -1
- package/dist/assets/DatePicker.css +1 -1
- package/dist/assets/Filter.css +1 -1
- package/dist/assets/Input.css +1 -1
- package/dist/assets/Kanban.css +1 -0
- package/dist/assets/MenuBar.css +1 -1
- package/dist/assets/RichText.css +1 -1
- package/dist/assets/SideMenu.css +1 -1
- package/dist/assets/Tag.css +1 -1
- package/dist/assets/ToolBar.css +1 -0
- package/dist/assets/styles.css +1 -1
- package/dist/chunks/{Alert.CQaVbuFR.js → Alert.CHcxwc-7.js} +2 -2
- package/dist/chunks/{App.D0rw9orm.js → App.BAznFPGK.js} +4 -4
- package/dist/chunks/{Avatar.BHlNyW0q.js → Avatar.CHhPAXNx.js} +1 -1
- package/dist/chunks/{Avatar.DysCcyLq.js → Avatar.CPy-hK8w.js} +1 -1
- package/dist/chunks/{Badge.B__O4nmc.js → Badge.tu17MdMt.js} +1 -1
- package/dist/chunks/{Button.mFkl13ue.js → Button.BvMCtuy-.js} +10 -5
- package/dist/chunks/{Card.Cq08rN_s.js → Card.CPFdoSwO.js} +1 -1
- package/dist/chunks/{Carousel.BlbPUDYo.js → Carousel.CkzT9Z2U.js} +1 -1
- package/dist/chunks/{Checkbox.CklNShKc.js → Checkbox.C0E-Lf9F.js} +1 -1
- package/dist/chunks/{ColorPicker.gPY0qyUV.js → ColorPicker.BO3g1Ccr.js} +5 -5
- package/dist/chunks/{Comment.DmUzK6J4.js → Comment.D3uQOVRA.js} +1 -1
- package/dist/chunks/{DatePicker.CtiOTI4X.js → DatePicker.DlehA8r8.js} +96 -90
- package/dist/chunks/{DynamicActions.DK0mupe6.js → DynamicActions.D-M49goY.js} +1 -1
- package/dist/chunks/{Empty.kPH-hJ9V.js → Empty.C_H88Lwp.js} +1 -1
- package/dist/chunks/{Error.CYRnZXNg.js → Error.DtFtGSNd.js} +1 -1
- package/dist/chunks/Filter.BrhTPGgi.js +85 -0
- package/dist/chunks/{FontSizeSelect.CFAIqibs.js → FontSizeSelect.BEujUTOk.js} +1 -1
- package/dist/chunks/{Header.C7xrnZDI.js → Header.BG7zjt32.js} +3 -3
- package/dist/chunks/{Icon.DRPmn7dQ.js → Icon.DbHbt0HM.js} +1 -1
- package/dist/chunks/{IdCard.Dx6_WU3t.js → IdCard.DcdzxJ6s.js} +1 -1
- package/dist/chunks/{Input.CNLvspAE.js → Input.DAqyQC25.js} +26 -17
- package/dist/chunks/{InputNumber.CtaH9tBG.js → InputNumber.BVLzytYW.js} +1 -1
- package/dist/chunks/{InputWrapper.DXw2Vcpa.js → InputWrapper.UG5UbUiq.js} +1 -1
- package/dist/chunks/{InternalSizeChanger.CvYkvotd.js → InternalSizeChanger.CY_UQjgi.js} +2 -2
- package/dist/chunks/{ItemCard.CyPAPDy2.js → ItemCard.UAMPsAeG.js} +4 -4
- package/dist/chunks/{ItemList.Cy8wRu3i.js → ItemList.DxIrTW2r.js} +4 -4
- package/dist/chunks/Kanban.DMLzdryr.js +478 -0
- package/dist/chunks/{LinkButton.CzpCbe5U.js → LinkButton.bj3sa3Dz.js} +3 -3
- package/dist/chunks/MenuBar.BKo3YUWL.js +86 -0
- package/dist/chunks/{Modal.Bi8z9VE0.js → Modal.DhO42LCE.js} +5 -5
- package/dist/chunks/{Notification.BrJDgjWr.js → Notification.CmGBpBnD.js} +4 -4
- package/dist/chunks/{PageHeader.CLKSCN4a.js → PageHeader.BNe3xCFg.js} +3 -3
- package/dist/chunks/{PageLayout.D4BnVUAq.js → PageLayout.BjZqP-fP.js} +2 -2
- package/dist/chunks/{Pagination.Dqci6TDr.js → Pagination.DoydgcwL.js} +1 -1
- package/dist/chunks/{Progress.DIpbT4Go.js → Progress.DGZSgm84.js} +1 -1
- package/dist/chunks/{Radio.Cik5u8WU.js → Radio.BpOV2_Ga.js} +1 -1
- package/dist/chunks/{Rate.DOR2Ky6x.js → Rate.ClZk2tCh.js} +1 -1
- package/dist/chunks/{RedirectCard.C-uKjgcb.js → RedirectCard.DZz4x-RC.js} +3 -3
- package/dist/chunks/{RichText.D98AWkBw.js → RichText.D_VsFypi.js} +73 -73
- package/dist/chunks/{SearchInput.De_qSxro.js → SearchInput.DPSQA6Hk.js} +1 -1
- package/dist/chunks/{Select.S4xsr0eN.js → Select.C4L4tjyk.js} +92 -92
- package/dist/chunks/{SideMenu.DQiL42Il.js → SideMenu.BGakreF_.js} +9 -9
- package/dist/chunks/{SidePanel.C5nMMMse.js → SidePanel.e4UuckCP.js} +2 -2
- package/dist/chunks/SnackBar.Bjp5gpjk.js +82 -0
- package/dist/chunks/{Tab.BLLuv1ds.js → Tab.BQlSFTkt.js} +3 -3
- package/dist/chunks/{Table.BN-UWSUv.js → Table.HPOQ6vNr.js} +63 -55
- package/dist/chunks/{Tag.gcpIeECV.js → Tag.8Hoq2HSD.js} +9 -9
- package/dist/chunks/ToolBar.qYFzjJ3S.js +22 -0
- package/dist/chunks/{TreeSelect.BRaAmKyc.js → TreeSelect.C0h4AGX4.js} +35 -35
- package/dist/chunks/{Typography.MRyLnlCD.js → Typography.dSdY4EZz.js} +1 -1
- package/dist/chunks/{Upload.CXHhjlnm.js → Upload.DxOzcNcZ.js} +5 -5
- package/dist/chunks/{functions.Cjvxsib3.js → functions.m4ADIGGk.js} +2 -2
- package/dist/chunks/{styles.module.DRkuoXqe.js → styles.module.CAGtUY-F.js} +1 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.es.js +56 -54
- package/dist/index.umd.js +4 -4
- package/dist/theme/utils/tokens-mapper/DataEntry/DatePicker/index.d.ts +1 -0
- package/dist/theme/utils/tokens-mapper/DataEntry/DatePicker/index.js +1 -0
- package/dist/theme/utils/tokens-mapper/DataEntry/Input/index.d.ts +1 -0
- package/dist/theme/utils/tokens-mapper/DataEntry/Input/index.js +1 -0
- package/dist/theme/utils/tokens-mapper/DataEntry/InputNumber/index.d.ts +1 -0
- package/dist/theme/utils/tokens-mapper/DataEntry/InputNumber/index.js +1 -0
- package/dist/translation/en-US/components/DataDisplay/Kanban/index.d.ts +2 -0
- package/dist/translation/en-US/components/DataDisplay/Kanban/index.js +16 -0
- package/dist/translation/en-US/index.js +32 -30
- package/dist/translation/fr-FR/components/DataDisplay/Kanban/index.d.ts +2 -0
- package/dist/translation/fr-FR/components/DataDisplay/Kanban/index.js +16 -0
- package/dist/translation/fr-FR/index.js +32 -30
- package/dist/translation/pt-PT/components/DataDisplay/Kanban/index.d.ts +2 -0
- package/dist/translation/pt-PT/components/DataDisplay/Kanban/index.js +16 -0
- package/dist/translation/pt-PT/index.js +32 -30
- package/dist/translation/types/components/DataDisplay/Kanban/index.d.ts +16 -0
- package/dist/translation/types/index.d.ts +2 -0
- package/dist/utils/functions/colorVariants.d.ts +18 -0
- package/dist/utils/functions/index.js +1 -1
- package/package.json +16 -17
- package/dist/chunks/Filter.ByG4s-gy.js +0 -83
- package/dist/chunks/MenuBar.DigScTZX.js +0 -68
- package/dist/chunks/SnackBar.CdNbNCdU.js +0 -83
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,71 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [20.1.0](https://www.npmjs.com/package/aristid-ds/v/20.1.0) (2026-11-20)
|
|
4
|
+
|
|
5
|
+
### ✨ Features
|
|
6
|
+
|
|
7
|
+
- **Filter:**
|
|
8
|
+
- Add the `valueColor` prop to recolour the single value with a palette or custom colour, and accept any `ReactNode` in `values` (@evoiron)
|
|
9
|
+
- **Select:**
|
|
10
|
+
- Add the `suffix` prop, replacing the deprecated `suffixIcon` (still accepted), which no longer logs an antd warning (@philippechevieux)
|
|
11
|
+
- **ToolBar:**
|
|
12
|
+
- Add the `KitToolBar` component: a bar whose left content wraps onto several lines while its right `actions` stay on one line (@evoiron)
|
|
13
|
+
- **TreeSelect:**
|
|
14
|
+
- Add the `suffix` prop, replacing the deprecated `suffixIcon` (still accepted), which no longer logs an antd warning (@philippechevieux)
|
|
15
|
+
- **DatePicker:**
|
|
16
|
+
- Add the `suffix` prop, replacing the deprecated `suffixIcon` (still accepted), which no longer logs an antd warning (@philippechevieux)
|
|
17
|
+
- **RangePicker:**
|
|
18
|
+
- Add the `suffix` prop, replacing the deprecated `suffixIcon` (still accepted), which no longer logs an antd warning (@philippechevieux)
|
|
19
|
+
- **Kanban:**
|
|
20
|
+
- Add KitKanban component for drag-and-drop card management across columns (@mel-dalavekia)
|
|
21
|
+
- **Utils:**
|
|
22
|
+
- Export `getColorVariants` (and its `KitColorVariants` type) from the root barrel: the tints, accent and contrast text derived from one colour, as `KitKanban` does for a column (@P0ppoff)
|
|
23
|
+
|
|
24
|
+
### 🐛 Bug Fixes
|
|
25
|
+
|
|
26
|
+
- **Input:**
|
|
27
|
+
- Fix the readonly border changing on hover, to antd's grey or, in AI mode, to a darker purple, instead of keeping its DS color (@philippechevieux)
|
|
28
|
+
- Fix the clear icon's keyboard focus showing antd's thin light-blue ring instead of the DS focus outline (@philippechevieux)
|
|
29
|
+
- **InputNumber:**
|
|
30
|
+
- Fix the readonly border turning antd's grey on hover instead of keeping the DS border color (@philippechevieux)
|
|
31
|
+
- **Select:**
|
|
32
|
+
- Fix the clear icon's keyboard focus showing antd's thin light-blue ring instead of the DS focus outline (@philippechevieux)
|
|
33
|
+
- **TreeSelect:**
|
|
34
|
+
- Fix the clear icon's keyboard focus showing antd's thin light-blue ring instead of the DS focus outline (@philippechevieux)
|
|
35
|
+
- **SideMenu:**
|
|
36
|
+
- Fix the active item leaving a white strip on the menu's right edge and an uneven keyboard focus ring (@philippechevieux)
|
|
37
|
+
- **DatePicker:**
|
|
38
|
+
- Fix the popup's OK and Today buttons losing their DS styling (@philippechevieux)
|
|
39
|
+
- Fix the readonly border turning antd's grey on hover instead of keeping the DS border color (@philippechevieux)
|
|
40
|
+
- Fix the clear icon's keyboard focus showing antd's thin light-blue ring instead of the DS focus outline (@philippechevieux)
|
|
41
|
+
- **RangePicker:**
|
|
42
|
+
- Fix the popup's OK and Today buttons losing their DS styling (@philippechevieux)
|
|
43
|
+
- Fix the readonly border turning antd's grey on hover instead of keeping the DS border color (@philippechevieux)
|
|
44
|
+
- Fix the clear icon's keyboard focus showing antd's thin light-blue ring instead of the DS focus outline (@philippechevieux)
|
|
45
|
+
- **ColorPicker:**
|
|
46
|
+
- Fix the clear icon's keyboard focus showing antd's thin light-blue ring instead of the DS focus outline (@philippechevieux)
|
|
47
|
+
- **Tag:**
|
|
48
|
+
- Fix the close icon showing the browser's default focus outline on keyboard focus instead of the DS focus outline (@philippechevieux)
|
|
49
|
+
- **Table:**
|
|
50
|
+
- Fix the antd deprecation warning logged in the console for `expandable.expandIcon` (@philippechevieux)
|
|
51
|
+
- **Pagination:**
|
|
52
|
+
- Fix the antd deprecation warning logged in the console for `suffixIcon` on the page-size selector (@philippechevieux)
|
|
53
|
+
- **RichText:**
|
|
54
|
+
- Fix the "more options" menu listing every action instead of only those that don't fit in the toolbar (@philippechevieux)
|
|
55
|
+
- Fix ReadOnly, ReadOnlyLight and Disabled RichText opening the editing menu bar on click (@philippechevieux)
|
|
56
|
+
- Fix the text of a ReadOnly RichText touching its bottom border (@philippechevieux)
|
|
57
|
+
- Fix the border of a ReadOnlyLight AI RichText appearing on hover (@philippechevieux)
|
|
58
|
+
- **Button:**
|
|
59
|
+
- Fix a disabled `KitButton` missing the `aria-disabled` attribute in the DOM (@evoiron)
|
|
60
|
+
|
|
61
|
+
### 📝 Documentation
|
|
62
|
+
|
|
63
|
+
- Show, in the code of every Storybook example, the local files it imports (demo data, helpers) as tabs next to its own file (@philippechevieux)
|
|
64
|
+
|
|
65
|
+
### 📦 Upgrade
|
|
66
|
+
|
|
67
|
+
- Upgrade Ant Design from `6.6.2` to `6.7.0` (@philippechevieux)
|
|
68
|
+
|
|
3
69
|
## [20.0.0](https://www.npmjs.com/package/aristid-ds/v/20.0.0) (2026-11-13)
|
|
4
70
|
|
|
5
71
|
### ✨ Features
|
package/dist/Kit/App/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { t as KitApp } from "../../chunks/App.
|
|
1
|
+
export { t as KitApp } from "../../chunks/App.BAznFPGK.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { t as KitAvatar } from "../../../chunks/Avatar.
|
|
1
|
+
export { t as KitAvatar } from "../../../chunks/Avatar.CHhPAXNx.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { t as KitBadge } from "../../../chunks/Badge.
|
|
1
|
+
export { t as KitBadge } from "../../../chunks/Badge.tu17MdMt.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { t as KitCard } from "../../../chunks/Card.
|
|
1
|
+
export { t as KitCard } from "../../../chunks/Card.CPFdoSwO.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { t as KitCarousel } from "../../../chunks/Carousel.
|
|
1
|
+
export { t as KitCarousel } from "../../../chunks/Carousel.CkzT9Z2U.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { n as KitComment, t as KitThread } from "../../../chunks/Comment.
|
|
1
|
+
export { n as KitComment, t as KitThread } from "../../../chunks/Comment.D3uQOVRA.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { t as KitEmpty } from "../../../chunks/Empty.
|
|
1
|
+
export { t as KitEmpty } from "../../../chunks/Empty.C_H88Lwp.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { t as KitError } from "../../../chunks/Error.
|
|
1
|
+
export { t as KitError } from "../../../chunks/Error.DtFtGSNd.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { t as KitIdCard } from "../../../chunks/IdCard.
|
|
1
|
+
export { t as KitIdCard } from "../../../chunks/IdCard.DcdzxJ6s.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { t as KitItemCard } from "../../../chunks/ItemCard.
|
|
1
|
+
export { t as KitItemCard } from "../../../chunks/ItemCard.UAMPsAeG.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { t as KitItemList } from "../../../chunks/ItemList.
|
|
1
|
+
export { t as KitItemList } from "../../../chunks/ItemList.DxIrTW2r.js";
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { KitKanbanItemData, KitKanbanSelectChange } from './types';
|
|
2
|
+
interface KanbanCardProps {
|
|
3
|
+
item: KitKanbanItemData;
|
|
4
|
+
columnId: string;
|
|
5
|
+
/** The card is the ghost, or its column is disabled. */
|
|
6
|
+
disabled: boolean;
|
|
7
|
+
selectable: boolean;
|
|
8
|
+
selected: boolean;
|
|
9
|
+
onSelect?: (change: KitKanbanSelectChange) => void;
|
|
10
|
+
}
|
|
11
|
+
export declare const KanbanCard: ({ item, columnId, disabled, selectable, selected, onSelect }: KanbanCardProps) => import('react').JSX.Element;
|
|
12
|
+
export {};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { KitKanbanColumnData, KitKanbanItemClick, KitKanbanItemData, KitKanbanSelectChange } from './types';
|
|
2
|
+
export type KanbanColumnState = 'default' | 'highlight' | 'disabled';
|
|
3
|
+
export interface KanbanColumnProps<T extends KitKanbanItemData> {
|
|
4
|
+
column: KitKanbanColumnData<T>;
|
|
5
|
+
state: KanbanColumnState;
|
|
6
|
+
/** Position of the drop indicator among the visible cards other than the dragged one. */
|
|
7
|
+
dropIndex: number | null;
|
|
8
|
+
activeItemId: string | null;
|
|
9
|
+
visibleCount: number;
|
|
10
|
+
onSeeMore: (columnId: string) => void;
|
|
11
|
+
isDragging?: boolean;
|
|
12
|
+
draggable?: boolean;
|
|
13
|
+
sortable?: boolean;
|
|
14
|
+
selectable?: boolean;
|
|
15
|
+
selectedIds?: string[];
|
|
16
|
+
onSelect?: (change: KitKanbanSelectChange) => void;
|
|
17
|
+
onItemClick?: (click: KitKanbanItemClick) => void;
|
|
18
|
+
className?: string;
|
|
19
|
+
}
|
|
20
|
+
export declare const KanbanColumn: <T extends KitKanbanItemData>({ column, state, dropIndex, activeItemId, visibleCount, onSeeMore, isDragging, draggable, sortable, selectable, selectedIds, onSelect, onItemClick, className, }: KanbanColumnProps<T>) => import('react').JSX.Element;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { KitKanbanItemClick } from './types';
|
|
3
|
+
interface KanbanItemProps {
|
|
4
|
+
id: string;
|
|
5
|
+
columnId: string;
|
|
6
|
+
disabled: boolean;
|
|
7
|
+
isGhost: boolean;
|
|
8
|
+
draggable: boolean;
|
|
9
|
+
isDragging: boolean;
|
|
10
|
+
onItemClick?: (click: KitKanbanItemClick) => void;
|
|
11
|
+
children: ReactNode;
|
|
12
|
+
}
|
|
13
|
+
export declare const KanbanItem: ({ id, columnId, disabled, isGhost, draggable, isDragging, onItemClick, children, }: KanbanItemProps) => import('react').JSX.Element;
|
|
14
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ReactElement, Ref } from 'react';
|
|
2
|
+
import { KitKanbanItemData, KitKanbanProps } from './types';
|
|
3
|
+
export type { KitKanbanColumnColor, KitKanbanColumnData, KitKanbanDropResult, KitKanbanGrabResult, KitKanbanItemClick, KitKanbanItemData, KitKanbanProps, KitKanbanSelectChange, } from './types';
|
|
4
|
+
export declare const KitKanban: (<T extends KitKanbanItemData>(props: KitKanbanProps<T> & {
|
|
5
|
+
ref?: Ref<HTMLDivElement>;
|
|
6
|
+
}) => ReactElement) & {
|
|
7
|
+
displayName?: string;
|
|
8
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { t as KitKanban } from "../../../chunks/Kanban.DMLzdryr.js";
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
import { CSSProperties, ReactNode } from 'react';
|
|
2
|
+
import { KitHTMLAttributes } from '../../../types';
|
|
3
|
+
import { KitButtonProps } from '../../General/Button/types';
|
|
4
|
+
import { KitActionButton } from '../types';
|
|
5
|
+
export type KitKanbanColumnColor = 'neutral' | 'main' | 'info' | 'success' | 'warning' | 'error' | 'AI';
|
|
6
|
+
|
|
7
|
+
/** A card. Its click, with the mouse or Enter, is the board's `onItemClick`; anything else goes in `children`. */
|
|
8
|
+
export interface KitKanbanItemData {
|
|
9
|
+
/** Unique across the whole board, not only in its column: the drag and `selectedIds` tell the cards apart by it. Not set on the DOM. */
|
|
10
|
+
id: string;
|
|
11
|
+
/** Content of the card. */
|
|
12
|
+
children?: ReactNode;
|
|
13
|
+
/** Greys the card and makes it neither draggable nor selectable. */
|
|
14
|
+
disabled?: boolean;
|
|
15
|
+
/** Set on the card. */
|
|
16
|
+
className?: string;
|
|
17
|
+
/** Inline style of the card. */
|
|
18
|
+
style?: CSSProperties;
|
|
19
|
+
/** Shows or hides the checkbox of this card, whatever the board's `selectable`. */
|
|
20
|
+
selectable?: boolean;
|
|
21
|
+
/** Accessible name of the checkbox of this card. Default: a translated "Select card". */
|
|
22
|
+
selectLabel?: string;
|
|
23
|
+
/** Name of the card in the screen reader announcements of a drag ("… picked up from To do"). Default: its `id`. */
|
|
24
|
+
label?: string;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
export interface KitKanbanColumnData<T extends KitKanbanItemData = KitKanbanItemData> {
|
|
28
|
+
id: string;
|
|
29
|
+
title: string;
|
|
30
|
+
/** Drives the header tint, the left stripe and the highlight border. Default `'neutral'`. */
|
|
31
|
+
color?: KitKanbanColumnColor;
|
|
32
|
+
/** Set on the column root after its colour class, so its rules win over the colour's. */
|
|
33
|
+
className?: string;
|
|
34
|
+
/** Inline style of the column root. Set `--kit-kanban-column-color` to colour the column from the data: the header tint, the stripe, the badge and a readable badge text are derived from it, over `color`. It is read in JavaScript, not by the CSS: only a hex, `rgb(a)` or `hsl(a)` value is understood; a `var()`, a keyword, `oklch()` or `color-mix()` silently leaves `color`. A disabled column keeps the theme's grey. */
|
|
35
|
+
style?: CSSProperties & {'--kit-kanban-column-color'?: string};
|
|
36
|
+
items: T[];
|
|
37
|
+
/** Value of the count badge. Defaults to `items.length`; pass the server total when the items are paginated. */
|
|
38
|
+
count?: number;
|
|
39
|
+
/** Permanently disabled: disabled look, its cards cannot be dragged and it never accepts a drop. */
|
|
40
|
+
disabled?: boolean;
|
|
41
|
+
/** Set it when the server pages the column: every loaded item shows, and "See more" shows while it is `true` and only calls `onLoadMore`. Unset, the board pages the items itself by `pageSize`. */
|
|
42
|
+
hasMore?: boolean;
|
|
43
|
+
/** The column is fetching its cards: a loader shows under the loaded ones, "See more" is hidden, the count only shows when `count` is given, and the column accepts no drop. */
|
|
44
|
+
loading?: boolean;
|
|
45
|
+
/** Props spread on this column's "See more" button, e.g. `{loading: true}` while the next cards are fetched. The click stays handled by `onLoadMore`. */
|
|
46
|
+
seeMoreProps?: Omit<KitButtonProps, 'children' | 'onClick'>;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export interface KitKanbanDropResult {
|
|
50
|
+
itemId: string;
|
|
51
|
+
fromColumnId: string;
|
|
52
|
+
fromIndex: number;
|
|
53
|
+
toColumnId: string;
|
|
54
|
+
/** Index in the destination list once the item has been removed from its source list. */
|
|
55
|
+
toIndex: number;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
export interface KitKanbanGrabResult {
|
|
59
|
+
itemId: string;
|
|
60
|
+
/** Column the card was grabbed from. */
|
|
61
|
+
columnId: string;
|
|
62
|
+
/** Position of the card in that column. */
|
|
63
|
+
index: number;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
export interface KitKanbanSelectChange {
|
|
67
|
+
itemId: string;
|
|
68
|
+
columnId: string;
|
|
69
|
+
selected: boolean;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
export interface KitKanbanItemClick {
|
|
73
|
+
itemId: string;
|
|
74
|
+
columnId: string;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
export interface KitKanbanProps<T extends KitKanbanItemData = KitKanbanItemData>
|
|
78
|
+
extends Omit<KitHTMLAttributes<HTMLDivElement>, 'children' | 'onDrop' | 'draggable'> {
|
|
79
|
+
columns: KitKanbanColumnData<T>[];
|
|
80
|
+
/** The columns themselves are not known yet: a loader, centred in the board, shows instead of `columns`. Default `false`. */
|
|
81
|
+
loading?: boolean;
|
|
82
|
+
/** Default: every non-disabled column accepts every card, including its own column (reorder). */
|
|
83
|
+
canDrop?: (item: T, fromColumnId: string, toColumnId: string) => boolean;
|
|
84
|
+
/** Shows a checkbox on each card, to select cards across columns, and, with `selectionActions` or `onClearSelection`, a snack bar while one is selected. Default `false`. */
|
|
85
|
+
selectable?: boolean;
|
|
86
|
+
/** Ids of the selected cards, from every column. The board keeps no selection itself. */
|
|
87
|
+
selectedIds?: string[];
|
|
88
|
+
/** Number of selected cards told by the snack bar, when the selection holds cards the board has not loaded (e.g. "select everything the filters match"). Default: the length of `selectedIds`. */
|
|
89
|
+
selectedCount?: number;
|
|
90
|
+
/** Actions of the snack bar shown while at least one card is selected, e.g. bulk actions on `selectedIds`. Without them nor `onClearSelection`, there is no snack bar: show the selection in your own bar. */
|
|
91
|
+
selectionActions?: KitActionButton[];
|
|
92
|
+
/** Called when the snack bar of the selection is closed: clear your `selectedIds`. Without it, the snack bar has no close button. */
|
|
93
|
+
onClearSelection?: () => void;
|
|
94
|
+
/** Called when the checkbox of a card is checked or unchecked. */
|
|
95
|
+
onSelect?: (change: KitKanbanSelectChange) => void;
|
|
96
|
+
/** Cards can be dragged, with the mouse and the keyboard. Set it to `false` to turn the drag and drop off. Default `true`. */
|
|
97
|
+
draggable?: boolean;
|
|
98
|
+
/** Cards can be reordered inside their column. Set it to `false` when the order is not stored: a card dropped in its own column stays put, a card dropped in another column lands at its end (`toIndex` is that column's number of visible cards). Default `true`. */
|
|
99
|
+
sortable?: boolean;
|
|
100
|
+
/** Called when a card is clicked, or on Enter while it has the focus: open its details there. Space keeps grabbing it. A click or Enter on a control inside the card (its checkbox, a button of `children`) is left to that control. */
|
|
101
|
+
onItemClick?: (click: KitKanbanItemClick) => void;
|
|
102
|
+
/** Called when a card is grabbed: past the 5px threshold with the mouse, on Space with the keyboard. */
|
|
103
|
+
onGrab?: (grab: KitKanbanGrabResult) => void;
|
|
104
|
+
/** Called when a grabbed card is released without `onDrop`: cancelled, dropped outside, refused, or at its own position. */
|
|
105
|
+
onGrabCancel?: (grab: KitKanbanGrabResult) => void;
|
|
106
|
+
/** Called with where a card was dropped. Not called for a drop outside any column, on a refusing column, or at the card's current position. */
|
|
107
|
+
onDrop?: (result: KitKanbanDropResult) => void;
|
|
108
|
+
/** Called with the id of the column whose "See more" was just clicked: load the next cards there, then append the items. Pass `seeMoreProps` to show a loading state meanwhile. */
|
|
109
|
+
onLoadMore?: (columnId: string) => void;
|
|
110
|
+
/** Cards revealed initially and per "See more" click, in a column without `hasMore`. Default 10. */
|
|
111
|
+
pageSize?: number;
|
|
112
|
+
/** Default 320 (a number is in px). */
|
|
113
|
+
columnWidth?: number | string;
|
|
114
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { t as KitRedirectCard } from "../../../chunks/RedirectCard.
|
|
1
|
+
export { t as KitRedirectCard } from "../../../chunks/RedirectCard.DZz4x-RC.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { t as KitTab } from "../../../chunks/Tab.
|
|
1
|
+
export { t as KitTab } from "../../../chunks/Tab.BQlSFTkt.js";
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
import { RenderExpandIconProps } from '@rc-component/table/lib/interface';
|
|
1
|
+
import { ExpandIconProps, RenderExpandIconProps } from '@rc-component/table/lib/interface';
|
|
2
2
|
export declare function KitTableExpandButton<T>({ record, expanded, onExpand, expandable }: RenderExpandIconProps<T>): import('react').JSX.Element | null;
|
|
3
|
+
export declare function KitTableExpandIcon<T>({ expanded, expandable, onClick }: ExpandIconProps<T>): import('react').JSX.Element | null;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { t as KitTable, n as KitTableExpandButton } from "../../../chunks/Table.
|
|
1
|
+
export { t as KitTable, n as KitTableExpandButton } from "../../../chunks/Table.HPOQ6vNr.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { t as KitTag } from "../../../chunks/Tag.
|
|
1
|
+
export { t as KitTag } from "../../../chunks/Tag.8Hoq2HSD.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { t as KitToolBar } from "../../../chunks/ToolBar.qYFzjJ3S.js";
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { CSSProperties, ReactNode } from 'react';
|
|
2
|
+
import { KitHTMLAttributes } from '../../../types';
|
|
3
|
+
export type KitToolBarGap = 'xxs' | 'xs';
|
|
4
|
+
|
|
5
|
+
export interface KitToolBarProps extends KitHTMLAttributes<HTMLDivElement> {
|
|
6
|
+
className?: string;
|
|
7
|
+
style?: CSSProperties;
|
|
8
|
+
children?: ReactNode;
|
|
9
|
+
actions?: ReactNode;
|
|
10
|
+
gap?: KitToolBarGap;
|
|
11
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { t as e } from "../../../chunks/Input.
|
|
2
|
-
import { t } from "../../../chunks/InputWrapper.
|
|
1
|
+
import { t as e } from "../../../chunks/Input.DAqyQC25.js";
|
|
2
|
+
import { t } from "../../../chunks/InputWrapper.UG5UbUiq.js";
|
|
3
3
|
import { t as n } from "../../../chunks/useDeprecatedInputWrapper.CZ2-c80o.js";
|
|
4
4
|
import { t as r } from "../../../chunks/useGetPopupContainer.Bcn4zw7O.js";
|
|
5
5
|
import { AutoComplete as i } from "antd";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { t as KitCheckbox } from "../../../chunks/Checkbox.
|
|
1
|
+
export { t as KitCheckbox } from "../../../chunks/Checkbox.C0E-Lf9F.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { t as KitColorPicker } from "../../../chunks/ColorPicker.
|
|
1
|
+
export { t as KitColorPicker } from "../../../chunks/ColorPicker.BO3g1Ccr.js";
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { KitDatePickerProps } from './types';
|
|
2
|
-
declare const KitDatePicker: import('react').ForwardRefExoticComponent<Omit<KitDatePickerProps, "ref"> & import('react').RefAttributes<import('node_modules/@rc-component/picker/es').PickerRef>>;
|
|
2
|
+
declare const KitDatePicker: import('react').ForwardRefExoticComponent<Omit<KitDatePickerProps, "ref"> & import('react').RefAttributes<import('node_modules/@rc-component/picker/es/interface.mjs').PickerRef>>;
|
|
3
3
|
export default KitDatePicker;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const KitRangePicker: import('react').ForwardRefExoticComponent<Omit<import('node_modules/antd/es/date-picker').RangePickerProps, "status" | "readOnly"> & import('./types').RangePickerInternalProps & import('../InputWrapper').KitInputWrapperBaseProps & import('react').RefAttributes<import('node_modules/@rc-component/picker/es').PickerRef>>;
|
|
1
|
+
declare const KitRangePicker: import('react').ForwardRefExoticComponent<Omit<import('node_modules/antd/es/date-picker').RangePickerProps, "status" | "readOnly"> & import('./types').RangePickerInternalProps & import('../InputWrapper').KitInputWrapperBaseProps & import('react').RefAttributes<import('node_modules/@rc-component/picker/es/interface.mjs').PickerRef>>;
|
|
2
2
|
export default KitRangePicker;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { t as KitDatePicker } from "../../../chunks/DatePicker.
|
|
1
|
+
export { t as KitDatePicker } from "../../../chunks/DatePicker.DlehA8r8.js";
|
|
@@ -12,6 +12,6 @@ export declare const useActiveDatePickerPreset: ({ presets, picker, showTime, on
|
|
|
12
12
|
value: import('node_modules/dayjs').Dayjs | (() => import('node_modules/dayjs').Dayjs);
|
|
13
13
|
}[] | undefined;
|
|
14
14
|
onChange: (date: import('node_modules/dayjs').Dayjs | import('node_modules/dayjs').Dayjs[] | null, dateString: string | string[] | null) => void;
|
|
15
|
-
onCalendarChange: (date: import('node_modules/dayjs').Dayjs | import('node_modules/dayjs').Dayjs[], dateString: string | string[], info: import('
|
|
15
|
+
onCalendarChange: (date: import('node_modules/dayjs').Dayjs | import('node_modules/dayjs').Dayjs[], dateString: string | string[], info: import('node_modules/@rc-component/picker/es/interface.mjs').BaseInfo) => void;
|
|
16
16
|
};
|
|
17
17
|
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const FilterButton: import('react').ForwardRefExoticComponent<import('react').ButtonHTMLAttributes<HTMLButtonElement> & Pick<import('./types').KitFilterProps, "values" | "disabled" | "label" | "active" | "expandable" | "readonly" | "leftIcon" | "showSingleValue"> & {
|
|
1
|
+
export declare const FilterButton: import('react').ForwardRefExoticComponent<import('react').ButtonHTMLAttributes<HTMLButtonElement> & Pick<import('./types').KitFilterProps, "values" | "disabled" | "label" | "active" | "expandable" | "readonly" | "leftIcon" | "valueColor" | "showSingleValue"> & {
|
|
2
2
|
isDropdownOpen?: boolean;
|
|
3
3
|
buttonKey?: number;
|
|
4
4
|
} & import('react').RefAttributes<HTMLButtonElement>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { t as KitFilter } from "../../../chunks/Filter.
|
|
1
|
+
export { t as KitFilter } from "../../../chunks/Filter.BrhTPGgi.js";
|
|
@@ -1,8 +1,17 @@
|
|
|
1
1
|
import { KitDropdownProps } from '../../Navigation/DropDown/types';
|
|
2
|
+
import { KitColorKeys, KitColorsPalette } from '../../../theme/types/general/colors';
|
|
2
3
|
import { ButtonHTMLAttributes, ReactNode } from 'react';
|
|
4
|
+
export type KitFilterValueColor =
|
|
5
|
+
| 'primary'
|
|
6
|
+
| Exclude<KitColorKeys, 'info'>
|
|
7
|
+
| keyof KitColorsPalette['tertiary']
|
|
8
|
+
| (string & {});
|
|
9
|
+
|
|
3
10
|
export interface KitFilterProps extends ButtonHTMLAttributes<HTMLButtonElement> {
|
|
4
11
|
label?: string;
|
|
5
|
-
values?:
|
|
12
|
+
values?: ReactNode[];
|
|
13
|
+
/** Colour of the single value (shown with `showSingleValue` and exactly one value), a palette name is rendered at shade 400, a custom colour (hex, rgb, rgba, hsl, hsla) is used as is. Defaults to `primary`. */
|
|
14
|
+
valueColor?: KitFilterValueColor;
|
|
6
15
|
active?: boolean;
|
|
7
16
|
readonly?: boolean;
|
|
8
17
|
disabled?: boolean;
|
|
@@ -15,7 +24,15 @@ export interface KitFilterProps extends ButtonHTMLAttributes<HTMLButtonElement>
|
|
|
15
24
|
export type KitFilterButtonProps = ButtonHTMLAttributes<HTMLButtonElement> &
|
|
16
25
|
Pick<
|
|
17
26
|
KitFilterProps,
|
|
18
|
-
|
|
27
|
+
| 'leftIcon'
|
|
28
|
+
| 'values'
|
|
29
|
+
| 'valueColor'
|
|
30
|
+
| 'active'
|
|
31
|
+
| 'readonly'
|
|
32
|
+
| 'disabled'
|
|
33
|
+
| 'showSingleValue'
|
|
34
|
+
| 'expandable'
|
|
35
|
+
| 'label'
|
|
19
36
|
> & {
|
|
20
37
|
isDropdownOpen?: boolean;
|
|
21
38
|
buttonKey?: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { t as KitInput } from "../../../chunks/Input.
|
|
1
|
+
export { t as KitInput } from "../../../chunks/Input.DAqyQC25.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { t as KitInputNumber } from "../../../chunks/InputNumber.
|
|
1
|
+
export { t as KitInputNumber } from "../../../chunks/InputNumber.BVLzytYW.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { t as KitInputWrapper } from "../../../chunks/InputWrapper.
|
|
1
|
+
export { t as KitInputWrapper } from "../../../chunks/InputWrapper.UG5UbUiq.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { t as KitRadio } from "../../../chunks/Radio.
|
|
1
|
+
export { t as KitRadio } from "../../../chunks/Radio.BpOV2_Ga.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { t as KitRate } from "../../../chunks/Rate.
|
|
1
|
+
export { t as KitRate } from "../../../chunks/Rate.ClZk2tCh.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { t as KitFontSizeSelect } from "../../../../../chunks/FontSizeSelect.
|
|
1
|
+
export { t as KitFontSizeSelect } from "../../../../../chunks/FontSizeSelect.BEujUTOk.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { t as KitLinkButton } from "../../../../../chunks/LinkButton.
|
|
1
|
+
export { t as KitLinkButton } from "../../../../../chunks/LinkButton.bj3sa3Dz.js";
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
export declare const KitMenuActionList: ({ editor, onImageUpload }:
|
|
1
|
+
import { KitMenuActionGroup, KitMenuActionListProps } from './types';
|
|
2
|
+
export declare const menuActionGroups: readonly KitMenuActionGroup[];
|
|
3
|
+
export declare const KitMenuActionList: ({ editor, onImageUpload, groups, hiddenGroups, }: KitMenuActionListProps) => import('react').JSX.Element;
|
|
@@ -2,26 +2,36 @@ import { t as e } from "../../../../../chunks/Divider.C-DXVgoI.js";
|
|
|
2
2
|
import { KitFontStylesButtons as t } from "../FontStylesButtons/index.js";
|
|
3
3
|
import { KitImageButton as n } from "../ImageButton/index.js";
|
|
4
4
|
import { KitIndentListButtons as r } from "../IndentListButtons/index.js";
|
|
5
|
-
import { t as i } from "../../../../../chunks/LinkButton.
|
|
5
|
+
import { t as i } from "../../../../../chunks/LinkButton.bj3sa3Dz.js";
|
|
6
6
|
import { KitListButtons as a } from "../ListButtons/index.js";
|
|
7
7
|
import { KitTextAlignButtons as o } from "../TextAlignButtons/index.js";
|
|
8
8
|
import { t as s } from "../../../../../chunks/TextColorButton.CDtNdXxN.js";
|
|
9
9
|
import { Fragment as c, jsx as l, jsxs as u } from "react/jsx-runtime";
|
|
10
|
+
import d from "classnames";
|
|
10
11
|
// src/Kit/DataEntry/RichText/MenuBar/MenuActionList/index.tsx
|
|
11
|
-
var
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
12
|
+
var f = [
|
|
13
|
+
"fontStyles",
|
|
14
|
+
"textAlign",
|
|
15
|
+
"insert",
|
|
16
|
+
"lists",
|
|
17
|
+
"indent"
|
|
18
|
+
], p = ({ editor: p, onImageUpload: m, groups: h = f, hiddenGroups: g = [] }) => {
|
|
19
|
+
let _ = (e) => {
|
|
20
|
+
switch (e) {
|
|
21
|
+
case "fontStyles": return u(c, { children: [l(t, { editor: p }), l(s, { editor: p })] });
|
|
22
|
+
case "textAlign": return l(o, { editor: p });
|
|
23
|
+
case "insert": return u(c, { children: [l(i, { editor: p }), l(n, {
|
|
24
|
+
editor: p,
|
|
25
|
+
onImageUpload: m
|
|
26
|
+
})] });
|
|
27
|
+
case "lists": return l(a, { editor: p });
|
|
28
|
+
case "indent": return l(r, { editor: p });
|
|
29
|
+
}
|
|
30
|
+
};
|
|
31
|
+
return l(c, { children: h.map((t, n) => u("div", {
|
|
32
|
+
"data-menu-action-group": t,
|
|
33
|
+
className: d("menu-action-group", { "menu-action-group-hidden": g.includes(t) }),
|
|
34
|
+
children: [n > 0 && l(e, { orientation: "vertical" }), _(t)]
|
|
35
|
+
}, t)) });
|
|
36
|
+
};
|
|
37
|
+
export { p as KitMenuActionList, f as menuActionGroups };
|
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
import { Editor } from '@tiptap/core';
|
|
2
2
|
import { KitRichTextProps } from '../../types';
|
|
3
|
+
export type KitMenuActionGroup = 'fontStyles' | 'textAlign' | 'insert' | 'lists' | 'indent';
|
|
4
|
+
|
|
3
5
|
export type KitMenuActionListProps = {
|
|
4
6
|
editor: Editor;
|
|
5
7
|
onImageUpload?: KitRichTextProps['onImageUpload'];
|
|
8
|
+
groups?: readonly KitMenuActionGroup[];
|
|
9
|
+
hiddenGroups?: readonly KitMenuActionGroup[];
|
|
6
10
|
};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { KitShowMoreButtonProps } from './types';
|
|
2
|
-
export declare const ShowMoreButton: ({ editor, onImageUpload }: KitShowMoreButtonProps) => import('node_modules/@types/react').JSX.Element;
|
|
2
|
+
export declare const ShowMoreButton: ({ editor, onImageUpload, groups }: KitShowMoreButtonProps) => import('node_modules/@types/react').JSX.Element;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { KitMenuBarProps } from './types';
|
|
2
|
-
export declare const KitMenuBar: ({ editor, onImageUpload }: KitMenuBarProps) => import('
|
|
2
|
+
export declare const KitMenuBar: ({ editor, onImageUpload }: KitMenuBarProps) => import('react').JSX.Element;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { t as KitMenuBar } from "../../../../chunks/MenuBar.
|
|
1
|
+
export { t as KitMenuBar } from "../../../../chunks/MenuBar.BKo3YUWL.js";
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { Editor } from '@tiptap/core';
|
|
2
2
|
import { KitRichTextProps } from '../types';
|
|
3
|
+
import { KitMenuActionGroup } from './MenuActionList/types';
|
|
3
4
|
export type KitMenuBarProps = {
|
|
4
5
|
editor: Editor;
|
|
5
6
|
onImageUpload?: KitRichTextProps['onImageUpload'];
|
|
@@ -8,4 +9,5 @@ export type KitMenuBarProps = {
|
|
|
8
9
|
export type KitShowMoreButtonProps = {
|
|
9
10
|
editor: Editor;
|
|
10
11
|
onImageUpload?: KitRichTextProps['onImageUpload'];
|
|
12
|
+
groups: readonly KitMenuActionGroup[];
|
|
11
13
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { t as KitRichText } from "../../../chunks/RichText.
|
|
1
|
+
export { t as KitRichText } from "../../../chunks/RichText.D_VsFypi.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { t as KitSearchInput } from "../../../chunks/SearchInput.
|
|
1
|
+
export { t as KitSearchInput } from "../../../chunks/SearchInput.DPSQA6Hk.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { t as KitSelect } from "../../../chunks/Select.
|
|
1
|
+
export { t as KitSelect } from "../../../chunks/Select.C4L4tjyk.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { t as KitTreeSelect } from "../../../chunks/TreeSelect.
|
|
1
|
+
export { t as KitTreeSelect } from "../../../chunks/TreeSelect.C0h4AGX4.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { t as KitUpload } from "../../../chunks/Upload.
|
|
1
|
+
export { t as KitUpload } from "../../../chunks/Upload.DxOzcNcZ.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { t as KitAlert } from "../../../chunks/Alert.
|
|
1
|
+
export { t as KitAlert } from "../../../chunks/Alert.CHcxwc-7.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { t as KitModal, n as KitModalContent, r as KitModalFooter, i as KitModalHeader } from "../../../chunks/Modal.
|
|
1
|
+
export { t as KitModal, n as KitModalContent, r as KitModalFooter, i as KitModalHeader } from "../../../chunks/Modal.DhO42LCE.js";
|