@televet/kibble-ui 1.17.18 → 1.18.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.
@@ -0,0 +1,2 @@
1
+ import { ButtonProps } from '../../../../Forms';
2
+ export declare const DragHandle: ({ ...rest }: ButtonProps) => JSX.Element;
@@ -0,0 +1 @@
1
+ export { DragHandle } from './dragHandle.component';
@@ -0,0 +1 @@
1
+ export { SortableItem } from './sortableItem.component';
@@ -0,0 +1,8 @@
1
+ import type { CSSProperties, PropsWithChildren } from 'react';
2
+ import type { UniqueIdentifier } from '@dnd-kit/core';
3
+ export interface SortableItemProps {
4
+ id: UniqueIdentifier;
5
+ style?: CSSProperties;
6
+ onRemove?(id: UniqueIdentifier): void;
7
+ }
8
+ export declare const SortableItem: ({ children, id, style: userStyle, onRemove, }: PropsWithChildren<SortableItemProps>) => JSX.Element;
@@ -0,0 +1,9 @@
1
+ /// <reference types="react" />
2
+ import { DraggableSyntheticListeners } from '@dnd-kit/core';
3
+ interface Context {
4
+ attributes: Record<string, any>;
5
+ listeners: DraggableSyntheticListeners;
6
+ ref(node: HTMLElement | null): void;
7
+ }
8
+ export declare const SortableItemContext: import("react").Context<Context>;
9
+ export {};
@@ -0,0 +1 @@
1
+ export { SortableOverlay } from './sortableOverlay.component';
@@ -0,0 +1,5 @@
1
+ import type { PropsWithChildren } from 'react';
2
+ interface Props {
3
+ }
4
+ export declare const SortableOverlay: ({ children }: PropsWithChildren<Props>) => JSX.Element;
5
+ export {};
@@ -0,0 +1,3 @@
1
+ export { DragHandle } from './DragHandle';
2
+ export { SortableItem } from './SortableItem';
3
+ export { SortableOverlay } from './SortableOverlay';
@@ -0,0 +1,2 @@
1
+ export * from './sortableList.component';
2
+ export * from './components';
@@ -0,0 +1,4 @@
1
+ export declare const findManyChannelStatus: {
2
+ id: string;
3
+ name: string;
4
+ }[];
@@ -0,0 +1,13 @@
1
+ import { CSSProperties } from 'react';
2
+ import type { ReactNode } from 'react';
3
+ import type { UniqueIdentifier } from '@dnd-kit/core';
4
+ export interface SortableItemProps {
5
+ id: UniqueIdentifier;
6
+ }
7
+ export interface SortableProps<T extends SortableItemProps> {
8
+ items: T[];
9
+ onChange(items: T[]): void;
10
+ renderItem(item: T, index?: number): ReactNode;
11
+ style?: CSSProperties;
12
+ }
13
+ export declare const SortableList: <T extends SortableItemProps>({ items, onChange, renderItem, style: userStyle, }: SortableProps<T>) => JSX.Element;
@@ -0,0 +1 @@
1
+ export * from './SortableList';
@@ -0,0 +1 @@
1
+ export declare function createRange<T = number>(length: number, initializer?: (index: number) => any): T[];
@@ -0,0 +1 @@
1
+ export { createRange } from './createRange';
@@ -1,4 +1,5 @@
1
1
  export * from './DataDisplay';
2
+ export * from './Draggable';
2
3
  export * from './Feedback';
3
4
  export * from './Disclosure';
4
5
  export * from './Forms';