@rafal.lemieszewski/tide-ui 0.42.0 → 0.43.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.
@@ -4,6 +4,8 @@ export { Chart, generateChartColors, createChartConfig, chartColorSchemes } from
4
4
  export type { ChartProps, ChartConfig, ChartDataPoint, ChartType, ChartColorScheme } from './ui/chart';
5
5
  export { Avatar, AvatarImage, AvatarFallback, avatarVariants, avatarFallbackVariants } from './ui/avatar';
6
6
  export type { AvatarProps, AvatarFallbackProps } from './ui/avatar';
7
+ export { AvatarGroup } from './ui/avatar-group';
8
+ export type { AvatarGroupProps, AvatarGroupSize } from './ui/avatar-group';
7
9
  export { Badge } from './ui/badge';
8
10
  export type { BadgeProps } from './ui/badge';
9
11
  export { Collapsible, CollapsibleTrigger, CollapsibleContent } from './ui/collapsible';
@@ -27,8 +29,10 @@ export type { FixtureStatusProps, StatusValue, StatusConfig } from './ui/fixture
27
29
  export { Switch } from './ui/switch';
28
30
  export { Textarea } from './ui/textarea';
29
31
  export type { TextareaProps } from './ui/textarea';
30
- export { Timeline, TimelineItem, TimelineSeparator, TimelineHeader, TimelineContent, TimelineDescription, TimelineTime, TimelineChevron, } from './ui/timeline';
31
- export type { TimelineProps, TimelineItemProps, TimelineSeparatorProps, TimelineHeaderProps, TimelineContentProps, TimelineDescriptionProps, TimelineTimeProps, TimelineChevronProps, } from './ui/timeline';
32
+ export { ActivityLog, ActivityLogItem, ActivityLogSeparator, ActivityLogHeader, ActivityLogContent, ActivityLogDescription, ActivityLogTime, ActivityLogChevron, ActivityLogValue, } from './ui/activity-log';
33
+ export type { ActivityLogProps, ActivityLogItemProps, ActivityLogSeparatorProps, ActivityLogHeaderProps, ActivityLogContentProps, ActivityLogDescriptionProps, ActivityLogTimeProps, ActivityLogChevronProps, ActivityLogValueProps, } from './ui/activity-log';
34
+ export { AttributesList, AttributesSeparator, AttributesGroup, AttributesItem, AttributesRow, AttributesLabel, AttributesValue, AttributesContent, AttributesChevron, } from './ui/attributes-list';
35
+ export type { AttributesListProps, AttributesSeparatorProps, AttributesGroupProps, AttributesItemProps, AttributesRowProps, AttributesLabelProps, AttributesValueProps, AttributesContentProps, AttributesChevronProps, } from './ui/attributes-list';
32
36
  export { Editable, EditablePreview, EditableInput, EditableDisplay, EditableField } from './ui/editable';
33
37
  export type { EditableProps, EditablePreviewProps, EditableInputProps } from './ui/editable';
34
38
  export { FormField, FormLabel, FormControl, FormHelperText, FormErrorMessage } from './ui/form-field';
@@ -0,0 +1,61 @@
1
+ import { CollapsibleContent } from './collapsible';
2
+ import * as React from "react";
3
+ export interface ActivityLogProps extends React.HTMLAttributes<HTMLDivElement> {
4
+ /**
5
+ * Time threshold in milliseconds. If the time difference between consecutive
6
+ * ActivityLogItem timestamps exceeds this value, a ActivityLogSeparator will be
7
+ * automatically inserted between them.
8
+ */
9
+ separatorThreshold?: number;
10
+ }
11
+ declare const ActivityLog: React.ForwardRefExoticComponent<ActivityLogProps & React.RefAttributes<HTMLDivElement>>;
12
+ export interface ActivityLogItemProps extends React.HTMLAttributes<HTMLDivElement> {
13
+ /**
14
+ * Whether this timeline item can be expanded/collapsed
15
+ */
16
+ collapsible?: boolean;
17
+ /**
18
+ * Default open state for uncontrolled collapsible items
19
+ */
20
+ defaultOpen?: boolean;
21
+ /**
22
+ * Controlled open state
23
+ */
24
+ open?: boolean;
25
+ /**
26
+ * Callback when open state changes
27
+ */
28
+ onOpenChange?: (open: boolean) => void;
29
+ /**
30
+ * Timestamp for this activity log item (used for automatic separator insertion)
31
+ */
32
+ timestamp?: Date | number | string;
33
+ }
34
+ declare const ActivityLogItem: React.ForwardRefExoticComponent<ActivityLogItemProps & React.RefAttributes<HTMLDivElement>>;
35
+ export interface ActivityLogSeparatorProps extends React.HTMLAttributes<HTMLDivElement> {
36
+ }
37
+ declare const ActivityLogSeparator: React.ForwardRefExoticComponent<ActivityLogSeparatorProps & React.RefAttributes<HTMLDivElement>>;
38
+ export interface ActivityLogHeaderProps extends React.HTMLAttributes<HTMLDivElement> {
39
+ /**
40
+ * If true, the header will render as a CollapsibleTrigger
41
+ * This is automatically set when ActivityLogItem has collapsible={true}
42
+ */
43
+ asCollapsibleTrigger?: boolean;
44
+ }
45
+ declare const ActivityLogHeader: React.ForwardRefExoticComponent<ActivityLogHeaderProps & React.RefAttributes<HTMLDivElement>>;
46
+ export interface ActivityLogContentProps extends React.ComponentPropsWithoutRef<typeof CollapsibleContent> {
47
+ }
48
+ declare const ActivityLogContent: React.ForwardRefExoticComponent<ActivityLogContentProps & React.RefAttributes<HTMLDivElement>>;
49
+ export interface ActivityLogDescriptionProps extends React.HTMLAttributes<HTMLDivElement> {
50
+ }
51
+ declare const ActivityLogDescription: React.ForwardRefExoticComponent<ActivityLogDescriptionProps & React.RefAttributes<HTMLDivElement>>;
52
+ export interface ActivityLogTimeProps extends React.HTMLAttributes<HTMLParagraphElement> {
53
+ }
54
+ declare const ActivityLogTime: React.ForwardRefExoticComponent<ActivityLogTimeProps & React.RefAttributes<HTMLParagraphElement>>;
55
+ export interface ActivityLogChevronProps extends React.HTMLAttributes<HTMLDivElement> {
56
+ }
57
+ declare const ActivityLogChevron: React.ForwardRefExoticComponent<ActivityLogChevronProps & React.RefAttributes<HTMLDivElement>>;
58
+ export interface ActivityLogValueProps extends React.HTMLAttributes<HTMLDivElement> {
59
+ }
60
+ declare const ActivityLogValue: React.ForwardRefExoticComponent<ActivityLogValueProps & React.RefAttributes<HTMLDivElement>>;
61
+ export { ActivityLog, ActivityLogItem, ActivityLogSeparator, ActivityLogHeader, ActivityLogContent, ActivityLogDescription, ActivityLogTime, ActivityLogChevron, ActivityLogValue, };
@@ -0,0 +1,94 @@
1
+ import { CollapsibleContent } from './collapsible';
2
+ import * as React from "react";
3
+ export interface AttributesListProps extends React.HTMLAttributes<HTMLDivElement> {
4
+ /**
5
+ * Label for the "View all" button that shows hidden items
6
+ * @default "More details"
7
+ */
8
+ showHiddenLabel?: string;
9
+ /**
10
+ * Label for the "View less" button that hides hidden items
11
+ * @default "Less details"
12
+ */
13
+ hideLabel?: string;
14
+ /**
15
+ * Default visibility state for hidden items
16
+ */
17
+ defaultShowHidden?: boolean;
18
+ }
19
+ declare const AttributesList: React.ForwardRefExoticComponent<AttributesListProps & React.RefAttributes<HTMLDivElement>>;
20
+ export interface AttributesSeparatorProps extends React.HTMLAttributes<HTMLDivElement> {
21
+ }
22
+ declare const AttributesSeparator: React.ForwardRefExoticComponent<AttributesSeparatorProps & React.RefAttributes<HTMLDivElement>>;
23
+ export interface AttributesGroupProps extends React.HTMLAttributes<HTMLDivElement> {
24
+ /**
25
+ * Section label/header
26
+ */
27
+ label?: string;
28
+ /**
29
+ * Label for the "View all" button that shows hidden items
30
+ * @default "More details"
31
+ */
32
+ showHiddenLabel?: string;
33
+ /**
34
+ * Label for the "View less" button that hides hidden items
35
+ * @default "Less details"
36
+ */
37
+ hideLabel?: string;
38
+ /**
39
+ * Default visibility state for hidden items
40
+ */
41
+ defaultShowHidden?: boolean;
42
+ }
43
+ declare const AttributesGroup: React.ForwardRefExoticComponent<AttributesGroupProps & React.RefAttributes<HTMLDivElement>>;
44
+ export interface AttributesItemProps extends React.HTMLAttributes<HTMLDivElement> {
45
+ /**
46
+ * Whether this item can be expanded/collapsed
47
+ */
48
+ collapsible?: boolean;
49
+ /**
50
+ * Default open state for uncontrolled collapsible items
51
+ */
52
+ defaultOpen?: boolean;
53
+ /**
54
+ * Controlled open state
55
+ */
56
+ open?: boolean;
57
+ /**
58
+ * Callback when open state changes
59
+ */
60
+ onOpenChange?: (open: boolean) => void;
61
+ /**
62
+ * Whether this item should be hidden until "View all" is clicked
63
+ */
64
+ hidden?: boolean;
65
+ }
66
+ declare const AttributesItem: React.ForwardRefExoticComponent<AttributesItemProps & React.RefAttributes<HTMLDivElement>>;
67
+ export interface AttributesRowProps extends React.HTMLAttributes<HTMLDivElement> {
68
+ /**
69
+ * If true, the row will render as a CollapsibleTrigger
70
+ * This is automatically set when AttributesItem has collapsible={true}
71
+ */
72
+ asCollapsibleTrigger?: boolean;
73
+ /**
74
+ * Optional external link configuration
75
+ */
76
+ externalLink?: {
77
+ href: string;
78
+ label: string;
79
+ };
80
+ }
81
+ declare const AttributesRow: React.ForwardRefExoticComponent<AttributesRowProps & React.RefAttributes<HTMLDivElement>>;
82
+ export interface AttributesLabelProps extends React.HTMLAttributes<HTMLDivElement> {
83
+ }
84
+ declare const AttributesLabel: React.ForwardRefExoticComponent<AttributesLabelProps & React.RefAttributes<HTMLDivElement>>;
85
+ export interface AttributesValueProps extends React.HTMLAttributes<HTMLDivElement> {
86
+ }
87
+ declare const AttributesValue: React.ForwardRefExoticComponent<AttributesValueProps & React.RefAttributes<HTMLDivElement>>;
88
+ export interface AttributesContentProps extends React.ComponentPropsWithoutRef<typeof CollapsibleContent> {
89
+ }
90
+ declare const AttributesContent: React.ForwardRefExoticComponent<AttributesContentProps & React.RefAttributes<HTMLDivElement>>;
91
+ export interface AttributesChevronProps extends React.HTMLAttributes<HTMLDivElement> {
92
+ }
93
+ declare const AttributesChevron: React.ForwardRefExoticComponent<AttributesChevronProps & React.RefAttributes<HTMLDivElement>>;
94
+ export { AttributesList, AttributesSeparator, AttributesGroup, AttributesItem, AttributesRow, AttributesLabel, AttributesValue, AttributesContent, AttributesChevron, };
@@ -0,0 +1,16 @@
1
+ import * as React from "react";
2
+ declare const avatarGroupOverlapClasses: {
3
+ readonly xxs: "-ml-[6px]";
4
+ readonly xs: "-ml-[var(--space-xsm)]";
5
+ readonly sm: "-ml-[var(--space-sm)]";
6
+ readonly md: "-ml-[var(--space-md)]";
7
+ readonly lg: "-ml-[var(--space-lg)]";
8
+ readonly xl: "-ml-[var(--space-lg)]";
9
+ };
10
+ export type AvatarGroupSize = keyof typeof avatarGroupOverlapClasses;
11
+ export interface AvatarGroupProps extends React.HTMLAttributes<HTMLDivElement> {
12
+ /** Size of avatars in the group (determines overlap amount) */
13
+ size?: AvatarGroupSize;
14
+ }
15
+ declare const AvatarGroup: React.ForwardRefExoticComponent<AvatarGroupProps & React.RefAttributes<HTMLDivElement>>;
16
+ export { AvatarGroup };
@@ -3,11 +3,11 @@ import * as React from "react";
3
3
  import * as AvatarPrimitive from "@radix-ui/react-avatar";
4
4
  declare const avatarVariants: (props?: ({
5
5
  size?: "xxs" | "xs" | "sm" | "md" | "lg" | "xl" | null | undefined;
6
- shape?: "circle" | "rounded" | null | undefined;
6
+ type?: "user" | "organization" | null | undefined;
7
7
  } & import('class-variance-authority/types').ClassProp) | undefined) => string;
8
8
  declare const avatarFallbackVariants: (props?: ({
9
9
  size?: "xxs" | "xs" | "sm" | "md" | "lg" | "xl" | null | undefined;
10
- shape?: "circle" | "rounded" | null | undefined;
10
+ type?: "user" | "organization" | null | undefined;
11
11
  variant?: "success" | "warning" | "magenta" | "violet" | "information" | "error" | null | undefined;
12
12
  } & import('class-variance-authority/types').ClassProp) | undefined) => string;
13
13
  interface AvatarProps extends React.ComponentPropsWithoutRef<typeof AvatarPrimitive.Root>, VariantProps<typeof avatarVariants> {