@rafal.lemieszewski/tide-ui 0.1.1 → 0.1.2
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/dist/components/index.d.ts +9 -0
- package/dist/components/ui/chart.d.ts +1 -1
- package/dist/components/ui/data-table.d.ts +44 -0
- package/dist/components/ui/date-picker.d.ts +30 -0
- package/dist/components/ui/editable.d.ts +51 -0
- package/dist/components/ui/empty-state.d.ts +47 -0
- package/dist/components/ui/file-upload.d.ts +76 -0
- package/dist/components/ui/listbox.d.ts +40 -0
- package/dist/components/ui/mention.d.ts +69 -0
- package/dist/components/ui/number-scrubber.d.ts +21 -0
- package/dist/components/ui/progress.d.ts +13 -0
- package/dist/components/ui/scroll-area.d.ts +5 -0
- package/dist/components/ui/sortable.d.ts +41 -0
- package/dist/components/ui/spinner.d.ts +92 -0
- package/dist/components/ui/tag.d.ts +82 -0
- package/dist/components/ui/tree.d.ts +34 -0
- package/dist/components/ui/typography.d.ts +10 -0
- package/dist/index.cjs.js +1677 -1633
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +17655 -12149
- package/dist/index.es.js.map +1 -1
- package/dist/style.css +1 -1
- package/package.json +19 -6
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
export interface TreeDataItem {
|
|
3
|
+
id: string;
|
|
4
|
+
name: string;
|
|
5
|
+
icon?: React.ComponentType<{
|
|
6
|
+
className?: string;
|
|
7
|
+
}>;
|
|
8
|
+
selectedIcon?: React.ComponentType<{
|
|
9
|
+
className?: string;
|
|
10
|
+
}>;
|
|
11
|
+
openIcon?: React.ComponentType<{
|
|
12
|
+
className?: string;
|
|
13
|
+
}>;
|
|
14
|
+
children?: TreeDataItem[];
|
|
15
|
+
actions?: React.ReactNode;
|
|
16
|
+
onClick?: () => void;
|
|
17
|
+
draggable?: boolean;
|
|
18
|
+
droppable?: boolean;
|
|
19
|
+
disabled?: boolean;
|
|
20
|
+
}
|
|
21
|
+
export interface TreeProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
22
|
+
data: TreeDataItem[] | TreeDataItem;
|
|
23
|
+
initialSelectedItemId?: string;
|
|
24
|
+
onSelectChange?: (item: TreeDataItem | undefined) => void;
|
|
25
|
+
expandAll?: boolean;
|
|
26
|
+
defaultNodeIcon?: React.ComponentType<{
|
|
27
|
+
className?: string;
|
|
28
|
+
}>;
|
|
29
|
+
defaultLeafIcon?: React.ComponentType<{
|
|
30
|
+
className?: string;
|
|
31
|
+
}>;
|
|
32
|
+
}
|
|
33
|
+
export declare const Tree: React.ForwardRefExoticComponent<TreeProps & React.RefAttributes<HTMLDivElement>>;
|
|
34
|
+
export type { TreeDataItem, TreeProps };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { VariantProps } from 'class-variance-authority';
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
declare const typographyVariants: (props?: ({
|
|
4
|
+
variant?: "h2" | "h3" | "p" | "blockquote" | "code" | "h1" | "h4" | "h5" | "h6" | "small" | "large" | "lead" | "muted" | null | undefined;
|
|
5
|
+
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
6
|
+
export interface TypographyProps extends React.HTMLAttributes<HTMLElement>, VariantProps<typeof typographyVariants> {
|
|
7
|
+
as?: React.ElementType;
|
|
8
|
+
}
|
|
9
|
+
declare const Typography: React.ForwardRefExoticComponent<TypographyProps & React.RefAttributes<HTMLElement>>;
|
|
10
|
+
export { Typography };
|