@rafal.lemieszewski/tide-ui 0.1.1 → 0.2.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.
Files changed (34) hide show
  1. package/dist/components/index.d.ts +16 -0
  2. package/dist/components/ui/alert-dialog.d.ts +6 -3
  3. package/dist/components/ui/avatar.d.ts +3 -3
  4. package/dist/components/ui/badge.d.ts +3 -2
  5. package/dist/components/ui/button.d.ts +1 -1
  6. package/dist/components/ui/chart.d.ts +12 -7
  7. package/dist/components/ui/data-table.d.ts +44 -0
  8. package/dist/components/ui/date-picker.d.ts +30 -0
  9. package/dist/components/ui/dialog.d.ts +5 -2
  10. package/dist/components/ui/editable.d.ts +51 -0
  11. package/dist/components/ui/empty-state.d.ts +47 -0
  12. package/dist/components/ui/file-upload.d.ts +75 -0
  13. package/dist/components/ui/icon.d.ts +2 -2
  14. package/dist/components/ui/linked-chart.d.ts +1 -1
  15. package/dist/components/ui/listbox.d.ts +43 -0
  16. package/dist/components/ui/mention.d.ts +68 -0
  17. package/dist/components/ui/number-scrubber.d.ts +21 -0
  18. package/dist/components/ui/progress.d.ts +13 -0
  19. package/dist/components/ui/scroll-area.d.ts +5 -0
  20. package/dist/components/ui/sortable.d.ts +41 -0
  21. package/dist/components/ui/spinner.d.ts +91 -0
  22. package/dist/components/ui/tag.d.ts +81 -0
  23. package/dist/components/ui/tree.d.ts +33 -0
  24. package/dist/components/ui/typography.d.ts +10 -0
  25. package/dist/index.cjs.js +1683 -1633
  26. package/dist/index.cjs.js.map +1 -1
  27. package/dist/index.es.js +18724 -12261
  28. package/dist/index.es.js.map +1 -1
  29. package/dist/style.css +1 -1
  30. package/package.json +19 -6
  31. package/dist/avatars/acme.png +0 -0
  32. package/dist/avatars/rl.png +0 -0
  33. package/dist/avatars/sea.png +0 -0
  34. package/dist/components/product/app-frame.d.ts +0 -10
@@ -0,0 +1,91 @@
1
+ import { VariantProps } from 'class-variance-authority';
2
+ import * as React from "react";
3
+ declare const spinnerVariants: (props?: ({
4
+ size?: "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | null | undefined;
5
+ variant?: "success" | "error" | "warning" | "default" | "secondary" | "primary" | "tertiary" | "disabled" | "inverse" | null | undefined;
6
+ speed?: "normal" | "slow" | "fast" | null | undefined;
7
+ } & import('class-variance-authority/types').ClassProp) | undefined) => string;
8
+ export interface SpinnerProps extends React.HTMLAttributes<HTMLDivElement>, VariantProps<typeof spinnerVariants> {
9
+ /**
10
+ * Text to display alongside the spinner
11
+ */
12
+ label?: string;
13
+ /**
14
+ * Whether to show the loading text
15
+ */
16
+ showLabel?: boolean;
17
+ /**
18
+ * Custom loading text
19
+ */
20
+ loadingText?: string;
21
+ }
22
+ declare const Spinner: React.ForwardRefExoticComponent<SpinnerProps & React.RefAttributes<HTMLDivElement>>;
23
+ export interface LoadingOverlayProps extends React.HTMLAttributes<HTMLDivElement> {
24
+ /**
25
+ * Whether the overlay is visible
26
+ */
27
+ visible: boolean;
28
+ /**
29
+ * Loading message to display
30
+ */
31
+ message?: string;
32
+ /**
33
+ * Spinner size
34
+ */
35
+ spinnerSize?: VariantProps<typeof spinnerVariants>["size"];
36
+ /**
37
+ * Background opacity
38
+ */
39
+ opacity?: "light" | "medium" | "heavy";
40
+ }
41
+ declare const LoadingOverlay: React.ForwardRefExoticComponent<LoadingOverlayProps & React.RefAttributes<HTMLDivElement>>;
42
+ export interface SkeletonProps extends React.HTMLAttributes<HTMLDivElement> {
43
+ /**
44
+ * Width of the skeleton
45
+ */
46
+ width?: string | number;
47
+ /**
48
+ * Height of the skeleton
49
+ */
50
+ height?: string | number;
51
+ /**
52
+ * Border radius variant
53
+ */
54
+ radius?: "none" | "sm" | "md" | "lg" | "full";
55
+ /**
56
+ * Whether to animate the skeleton
57
+ */
58
+ animate?: boolean;
59
+ }
60
+ declare const Skeleton: React.ForwardRefExoticComponent<SkeletonProps & React.RefAttributes<HTMLDivElement>>;
61
+ export interface PulseProps extends React.HTMLAttributes<HTMLDivElement> {
62
+ /**
63
+ * Color variant
64
+ */
65
+ variant?: "default" | "primary" | "success" | "warning" | "error";
66
+ /**
67
+ * Size of the pulse dot
68
+ */
69
+ size?: "sm" | "md" | "lg";
70
+ }
71
+ declare const Pulse: React.ForwardRefExoticComponent<PulseProps & React.RefAttributes<HTMLDivElement>>;
72
+ export interface ProgressDotsProps extends React.HTMLAttributes<HTMLDivElement> {
73
+ /**
74
+ * Total number of dots
75
+ */
76
+ total: number;
77
+ /**
78
+ * Current active dot (0-indexed)
79
+ */
80
+ current: number;
81
+ /**
82
+ * Size of the dots
83
+ */
84
+ size?: "sm" | "md" | "lg";
85
+ /**
86
+ * Whether to animate the transition
87
+ */
88
+ animate?: boolean;
89
+ }
90
+ declare const ProgressDots: React.ForwardRefExoticComponent<ProgressDotsProps & React.RefAttributes<HTMLDivElement>>;
91
+ export { Spinner, LoadingOverlay, Skeleton, Pulse, ProgressDots, spinnerVariants };
@@ -0,0 +1,81 @@
1
+ import { VariantProps } from 'class-variance-authority';
2
+ import * as React from "react";
3
+ declare const tagVariants: (props?: ({
4
+ intent?: "success" | "warning" | "destructive" | "neutral" | "brand" | null | undefined;
5
+ appearance?: "solid" | "subtle" | null | undefined;
6
+ size?: "sm" | "md" | "lg" | null | undefined;
7
+ closable?: boolean | null | undefined;
8
+ } & import('class-variance-authority/types').ClassProp) | undefined) => string;
9
+ export interface TagProps extends Omit<React.HTMLAttributes<HTMLDivElement>, "onClick">, VariantProps<typeof tagVariants> {
10
+ /**
11
+ * Content of the tag
12
+ */
13
+ children: React.ReactNode;
14
+ /**
15
+ * Whether the tag can be closed/removed
16
+ */
17
+ closable?: boolean;
18
+ /**
19
+ * Callback when the close button is clicked
20
+ */
21
+ onClose?: () => void;
22
+ /**
23
+ * Whether the tag is disabled
24
+ */
25
+ disabled?: boolean;
26
+ /**
27
+ * Callback when the tag itself is clicked (not the close button)
28
+ */
29
+ onClick?: () => void;
30
+ /**
31
+ * Whether the tag is clickable/interactive
32
+ */
33
+ interactive?: boolean;
34
+ }
35
+ declare const Tag: React.ForwardRefExoticComponent<TagProps & React.RefAttributes<HTMLDivElement>>;
36
+ export interface TagGroupProps extends React.HTMLAttributes<HTMLDivElement> {
37
+ /**
38
+ * Array of tag data
39
+ */
40
+ tags: Array<{
41
+ id: string;
42
+ label: string;
43
+ intent?: TagProps["intent"];
44
+ appearance?: TagProps["appearance"];
45
+ disabled?: boolean;
46
+ }>;
47
+ /**
48
+ * Callback when a tag is removed
49
+ */
50
+ onTagRemove?: (tagId: string) => void;
51
+ /**
52
+ * Callback when a tag is clicked
53
+ */
54
+ onTagClick?: (tagId: string) => void;
55
+ /**
56
+ * Whether tags are closable by default
57
+ */
58
+ closable?: boolean;
59
+ /**
60
+ * Whether tags are interactive by default
61
+ */
62
+ interactive?: boolean;
63
+ /**
64
+ * Default size for all tags
65
+ */
66
+ size?: TagProps["size"];
67
+ /**
68
+ * Default intent for all tags
69
+ */
70
+ intent?: TagProps["intent"];
71
+ /**
72
+ * Default appearance for all tags
73
+ */
74
+ appearance?: TagProps["appearance"];
75
+ /**
76
+ * Maximum number of tags to show before collapsing
77
+ */
78
+ maxVisible?: number;
79
+ }
80
+ declare const TagGroup: React.ForwardRefExoticComponent<TagGroupProps & React.RefAttributes<HTMLDivElement>>;
81
+ export { Tag, TagGroup, tagVariants };
@@ -0,0 +1,33 @@
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>>;
@@ -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 };