ingred-ui 19.3.0 → 19.4.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.
|
@@ -30,3 +30,4 @@ export declare const WithSwitch: StoryObj<typeof ContextMenu2>;
|
|
|
30
30
|
export declare const WithTextInput: StoryObj<typeof ContextMenu2>;
|
|
31
31
|
export declare const Nest: StoryObj<typeof ContextMenu2>;
|
|
32
32
|
export declare const Anchor: StoryObj<typeof ContextMenu2>;
|
|
33
|
+
export declare const Sortable: StoryObj<typeof ContextMenu2>;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import React, { type ReactNode, type ReactElement } from "react";
|
|
2
|
+
import { type UniqueIdentifier } from "@dnd-kit/core";
|
|
3
|
+
export declare const ContextMenu2SortableContext: React.Context<{
|
|
4
|
+
isSorting: boolean;
|
|
5
|
+
setIsSorting: (_: boolean) => void;
|
|
6
|
+
}>;
|
|
7
|
+
type ContextMenu2SortableContainerProps = {
|
|
8
|
+
order: UniqueIdentifier[];
|
|
9
|
+
children: ReactElement[];
|
|
10
|
+
onOrderChange: (order: UniqueIdentifier[]) => void;
|
|
11
|
+
};
|
|
12
|
+
export declare const ContextMenu2SortableGroup: ({ order, children, onOrderChange, }: ContextMenu2SortableContainerProps) => JSX.Element;
|
|
13
|
+
type ContextMenu2SortableItemProps = {
|
|
14
|
+
id: UniqueIdentifier;
|
|
15
|
+
disabled?: boolean;
|
|
16
|
+
children: ReactNode;
|
|
17
|
+
};
|
|
18
|
+
export declare const ContextMenu2SortableItem: {
|
|
19
|
+
({ id, disabled, children, }: ContextMenu2SortableItemProps): JSX.Element;
|
|
20
|
+
displayName: string;
|
|
21
|
+
};
|
|
22
|
+
export {};
|
|
@@ -6,6 +6,6 @@ export declare const ContextMenu2SwitchItem: import("styled-components").StyledC
|
|
|
6
6
|
checked?: boolean | undefined;
|
|
7
7
|
disabled?: boolean | undefined;
|
|
8
8
|
children: ReactNode;
|
|
9
|
-
onChange
|
|
9
|
+
onChange?: ((checked: boolean) => void) | undefined;
|
|
10
10
|
} & React.ButtonHTMLAttributes<HTMLButtonElement> & React.RefAttributes<HTMLButtonElement>>, import("styled-components").DefaultTheme, Theme, never>;
|
|
11
11
|
export {};
|
|
@@ -8,3 +8,4 @@ export { ContextMenu2SwitchItem } from "./ContextMenu2SwitchItem";
|
|
|
8
8
|
export { ContextMenu2TextInputItem } from "./ContextMenu2TextInputItem";
|
|
9
9
|
export { ContextMenu2SeparatorItem } from "./ContextMenu2SeparatorItem";
|
|
10
10
|
export { ContextMenu2ButtonControlsItem } from "./ContextMenu2ButtonControlsItem";
|
|
11
|
+
export { ContextMenu2SortableGroup, ContextMenu2SortableItem, } from "./ContextMenu2SortableItem";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ingred-ui",
|
|
3
|
-
"version": "19.
|
|
3
|
+
"version": "19.4.0",
|
|
4
4
|
"description": "",
|
|
5
5
|
"author": "CARTA HOLDINGS, Inc.",
|
|
6
6
|
"license": "MIT",
|
|
@@ -26,6 +26,10 @@
|
|
|
26
26
|
"release": "changeset tag && changeset publish"
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
|
+
"@dnd-kit/core": "^6.3.1",
|
|
30
|
+
"@dnd-kit/modifiers": "^9.0.0",
|
|
31
|
+
"@dnd-kit/sortable": "^10.0.0",
|
|
32
|
+
"@dnd-kit/utilities": "^3.2.2",
|
|
29
33
|
"@floating-ui/react": "^0.26.0",
|
|
30
34
|
"dayjs": "^1.11.6",
|
|
31
35
|
"react-select": "^5.7.0",
|