@economic/taco 1.10.2 → 1.10.4

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.
@@ -0,0 +1,6 @@
1
+ import { Container, SortableContainerProps } from './components/Container';
2
+ import { Item, SortableListItemProps } from './components/Item';
3
+ import { List, SortableListProps } from './components/List';
4
+ export { Container, Item, List };
5
+ export type { SortableContainerProps, SortableListItemProps, SortableListProps };
6
+ export { arrayMove } from '@dnd-kit/sortable';
@@ -0,0 +1,14 @@
1
+ /// <reference types="react" />
2
+ declare const _default: {
3
+ title: string;
4
+ };
5
+ export default _default;
6
+ export declare const List: {
7
+ (): JSX.Element;
8
+ storyName: string;
9
+ };
10
+ export declare const Multiple: {
11
+ (): JSX.Element;
12
+ storyName: string;
13
+ };
14
+ export declare const Example: () => JSX.Element;
@@ -0,0 +1,11 @@
1
+ import { ReactNode } from 'react';
2
+ import { SortableItemId } from './Item';
3
+ export declare type SortableContainerProps = {
4
+ children: ReactNode;
5
+ move?: (activeId: SortableItemId, overId: SortableItemId, listId: string) => void;
6
+ reorder: (activeId: SortableItemId, oldListId: string, listId: string) => void;
7
+ };
8
+ export declare function Container(externalProps: any): JSX.Element;
9
+ export declare namespace Container {
10
+ var displayName: string;
11
+ }
@@ -0,0 +1,9 @@
1
+ import React from 'react';
2
+ export declare type SortableItemId = string | number;
3
+ export declare type SortableListItemProps = Omit<React.HTMLAttributes<HTMLDivElement>, 'id'> & {
4
+ id: SortableItemId;
5
+ };
6
+ export declare function Item(props: any): JSX.Element;
7
+ export declare namespace Item {
8
+ var displayName: string;
9
+ }
@@ -0,0 +1,8 @@
1
+ import React from 'react';
2
+ export declare type SortableListProps = Omit<React.HTMLAttributes<HTMLDivElement>, 'id'> & {
3
+ id: string;
4
+ };
5
+ export declare function List(externalProps: SortableListProps): JSX.Element;
6
+ export declare namespace List {
7
+ var displayName: string;
8
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@economic/taco",
3
- "version": "1.10.2",
3
+ "version": "1.10.4",
4
4
  "description": "> TODO: description",
5
5
  "author": "Matt Daly <matthew.daly@visma.com>",
6
6
  "homepage": "https://github.com/e-conomic/taco#readme",
@@ -41,6 +41,7 @@
41
41
  "url": "https://github.com/e-conomic/taco/issues"
42
42
  },
43
43
  "dependencies": {
44
+ "@dnd-kit/sortable": "^7.0.1",
44
45
  "@economic/taco-tokens": "^1.3.0",
45
46
  "@radix-ui/react-accordion": "^1.0.0",
46
47
  "@radix-ui/react-checkbox": "^1.0.0",
@@ -127,5 +128,5 @@
127
128
  "not ie < 11"
128
129
  ]
129
130
  },
130
- "gitHead": "c2cd62d894356c1f9da0228d6426f1586e9efe5c"
131
+ "gitHead": "058dc42266d226419b60eed3e811324993103ea0"
131
132
  }