@rafal.lemieszewski/tide-ui 0.30.1 → 0.32.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.
- package/dist/components/index.d.ts +1 -1
- package/dist/components/ui/bookmarks.d.ts +42 -2
- package/dist/components/ui/custom-icons.d.ts +28 -0
- package/dist/components/ui/tabs.d.ts +5 -0
- package/dist/index.cjs.js +1690 -1690
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +22207 -21094
- package/dist/index.es.js.map +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
|
@@ -67,7 +67,7 @@ export { DataTableSettingsMenu } from './ui/data-table-settings-menu';
|
|
|
67
67
|
export type { DataTableSettingsMenuProps, ColumnOption } from './ui/data-table-settings-menu';
|
|
68
68
|
export { Filters, FilterPanelContent, FilterDropdownMenu } from './ui/filters';
|
|
69
69
|
export type { FiltersProps, FilterDefinition, FilterOption, FilterOptionGroup, FilterValue, GlobalSearchTerm, } from './ui/filters';
|
|
70
|
-
export { Bookmarks } from './ui/bookmarks';
|
|
70
|
+
export { Bookmarks, BookmarksContent, BookmarksActions, BookmarksSettings, BookmarksDefaultActions, BookmarksRevertButton, BookmarksCreateButton, BookmarksSaveButton, BookmarksResetButton, BookmarksSaveDropdown, useBookmarksActions, } from './ui/bookmarks';
|
|
71
71
|
export type { Bookmark, BookmarksProps, FiltersState, TableState, } from './ui/bookmarks';
|
|
72
72
|
export { LinkedChart, createLinkedChartColumns } from './ui/linked-chart';
|
|
73
73
|
export type { LinkedChartProps, LinkedChartColumn } from './ui/linked-chart';
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { FilterValue } from './filters';
|
|
2
2
|
import { SortingState, VisibilityState, GroupingState, ColumnOrderState } from '@tanstack/react-table';
|
|
3
|
+
import * as React from "react";
|
|
3
4
|
export interface FiltersState {
|
|
4
5
|
activeFilters: Record<string, FilterValue>;
|
|
5
6
|
pinnedFilters?: string[];
|
|
@@ -30,7 +31,7 @@ export interface BookmarksProps {
|
|
|
30
31
|
activeBookmarkId?: string;
|
|
31
32
|
defaultBookmarkId?: string;
|
|
32
33
|
isDirty: boolean;
|
|
33
|
-
|
|
34
|
+
children?: React.ReactNode;
|
|
34
35
|
onSelect: (bookmark: Bookmark) => void;
|
|
35
36
|
onRevert: () => void;
|
|
36
37
|
onSave: (action: "update" | "create", name?: string) => Promise<void>;
|
|
@@ -38,4 +39,43 @@ export interface BookmarksProps {
|
|
|
38
39
|
onDelete: (id: string) => Promise<void>;
|
|
39
40
|
onSetDefault: (id: string) => Promise<void>;
|
|
40
41
|
}
|
|
41
|
-
|
|
42
|
+
interface BookmarksContextValue {
|
|
43
|
+
isDirty: boolean;
|
|
44
|
+
isSystemBookmark: boolean;
|
|
45
|
+
activeBookmark?: Bookmark;
|
|
46
|
+
openCreateDialog: () => void;
|
|
47
|
+
openRenameDialog: (id?: string) => void;
|
|
48
|
+
handleRevert: () => void;
|
|
49
|
+
handleUpdate: () => void;
|
|
50
|
+
handleDelete: (id?: string) => void;
|
|
51
|
+
handleSetDefault: (id?: string) => void;
|
|
52
|
+
}
|
|
53
|
+
export declare function useBookmarksActions(): BookmarksContextValue;
|
|
54
|
+
export declare function BookmarksContent({ children }: {
|
|
55
|
+
children?: React.ReactNode;
|
|
56
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
57
|
+
export declare function BookmarksActions({ children }: {
|
|
58
|
+
children?: React.ReactNode;
|
|
59
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
60
|
+
export declare function BookmarksSettings({ children }: {
|
|
61
|
+
children?: React.ReactNode;
|
|
62
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
63
|
+
export declare function BookmarksRevertButton(): import("react/jsx-runtime").JSX.Element | null;
|
|
64
|
+
export declare function BookmarksCreateButton(): import("react/jsx-runtime").JSX.Element | null;
|
|
65
|
+
export declare function BookmarksSaveButton(): import("react/jsx-runtime").JSX.Element | null;
|
|
66
|
+
export declare function BookmarksResetButton(): import("react/jsx-runtime").JSX.Element | null;
|
|
67
|
+
export declare function BookmarksSaveDropdown(): import("react/jsx-runtime").JSX.Element | null;
|
|
68
|
+
export declare function BookmarksDefaultActions(): import("react/jsx-runtime").JSX.Element | null;
|
|
69
|
+
export declare function Bookmarks({ variant, bookmarks, systemBookmarks, activeBookmarkId, isDirty, children, onSelect, onRevert, onSave, onRename, onDelete, onSetDefault, }: BookmarksProps): import("react/jsx-runtime").JSX.Element;
|
|
70
|
+
export declare namespace Bookmarks {
|
|
71
|
+
var Content: typeof BookmarksContent;
|
|
72
|
+
var Actions: typeof BookmarksActions;
|
|
73
|
+
var Settings: typeof BookmarksSettings;
|
|
74
|
+
var DefaultActions: typeof BookmarksDefaultActions;
|
|
75
|
+
var RevertButton: typeof BookmarksRevertButton;
|
|
76
|
+
var CreateButton: typeof BookmarksCreateButton;
|
|
77
|
+
var SaveButton: typeof BookmarksSaveButton;
|
|
78
|
+
var ResetButton: typeof BookmarksResetButton;
|
|
79
|
+
var SaveDropdown: typeof BookmarksSaveDropdown;
|
|
80
|
+
}
|
|
81
|
+
export {};
|
|
@@ -12,6 +12,34 @@ export declare const customIcons: {
|
|
|
12
12
|
readonly "ship-unload": import("react/jsx-runtime").JSX.Element;
|
|
13
13
|
readonly "ship-load": import("react/jsx-runtime").JSX.Element;
|
|
14
14
|
readonly "star-full": import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
readonly "user-created-by": import("react/jsx-runtime").JSX.Element;
|
|
16
|
+
readonly "user-owner": import("react/jsx-runtime").JSX.Element;
|
|
17
|
+
readonly "user-charterer": import("react/jsx-runtime").JSX.Element;
|
|
18
|
+
readonly "user-broker": import("react/jsx-runtime").JSX.Element;
|
|
19
|
+
readonly "order-distributed": import("react/jsx-runtime").JSX.Element;
|
|
20
|
+
readonly "order-withdrawn": import("react/jsx-runtime").JSX.Element;
|
|
21
|
+
readonly "order-draft": import("react/jsx-runtime").JSX.Element;
|
|
22
|
+
readonly "negotiation-indicative-bid": import("react/jsx-runtime").JSX.Element;
|
|
23
|
+
readonly "negotiation-indicative-offer": import("react/jsx-runtime").JSX.Element;
|
|
24
|
+
readonly "negotiation-firm-bid": import("react/jsx-runtime").JSX.Element;
|
|
25
|
+
readonly "negotiation-firm-offer": import("react/jsx-runtime").JSX.Element;
|
|
26
|
+
readonly "negotiation-expired": import("react/jsx-runtime").JSX.Element;
|
|
27
|
+
readonly "negotiation-withdrawn": import("react/jsx-runtime").JSX.Element;
|
|
28
|
+
readonly "negotiation-subs-failed": import("react/jsx-runtime").JSX.Element;
|
|
29
|
+
readonly "negotiation-firm": import("react/jsx-runtime").JSX.Element;
|
|
30
|
+
readonly "on-subs": import("react/jsx-runtime").JSX.Element;
|
|
31
|
+
readonly "negotiation-on-subs-amendment": import("react/jsx-runtime").JSX.Element;
|
|
32
|
+
readonly "negotiation-fixed": import("react/jsx-runtime").JSX.Element;
|
|
33
|
+
readonly "contract-draft": import("react/jsx-runtime").JSX.Element;
|
|
34
|
+
readonly "addenda-draft": import("react/jsx-runtime").JSX.Element;
|
|
35
|
+
readonly "contract-working-copy": import("react/jsx-runtime").JSX.Element;
|
|
36
|
+
readonly "addenda-working-copy": import("react/jsx-runtime").JSX.Element;
|
|
37
|
+
readonly "contract-final": import("react/jsx-runtime").JSX.Element;
|
|
38
|
+
readonly "contract-rejected": import("react/jsx-runtime").JSX.Element;
|
|
39
|
+
readonly "addenda-final": import("react/jsx-runtime").JSX.Element;
|
|
40
|
+
readonly "contract-on-subs": import("react/jsx-runtime").JSX.Element;
|
|
41
|
+
readonly approved: import("react/jsx-runtime").JSX.Element;
|
|
42
|
+
readonly "pending-approval": import("react/jsx-runtime").JSX.Element;
|
|
15
43
|
};
|
|
16
44
|
export type CustomIconName = keyof typeof customIcons;
|
|
17
45
|
export declare function addCustomIcon(name: string, iconElement: React.ReactNode): void;
|
|
@@ -2,10 +2,14 @@ import { VariantProps } from 'class-variance-authority';
|
|
|
2
2
|
import * as React from "react";
|
|
3
3
|
import * as TabsPrimitive from "@radix-ui/react-tabs";
|
|
4
4
|
declare const tabsListVariants: (props?: ({
|
|
5
|
+
variant?: "line" | "pill" | null | undefined;
|
|
5
6
|
size?: "sm" | "md" | "lg" | null | undefined;
|
|
7
|
+
fullWidth?: boolean | null | undefined;
|
|
6
8
|
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
7
9
|
declare const tabsTriggerVariants: (props?: ({
|
|
10
|
+
variant?: "line" | "pill" | null | undefined;
|
|
8
11
|
size?: "sm" | "md" | "lg" | null | undefined;
|
|
12
|
+
fullWidth?: boolean | null | undefined;
|
|
9
13
|
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
10
14
|
interface TabsProps extends React.ComponentPropsWithoutRef<typeof TabsPrimitive.Root> {
|
|
11
15
|
}
|
|
@@ -14,6 +18,7 @@ interface TabsListProps extends React.ComponentPropsWithoutRef<typeof TabsPrimit
|
|
|
14
18
|
}
|
|
15
19
|
declare const TabsList: React.ForwardRefExoticComponent<TabsListProps & React.RefAttributes<HTMLDivElement>>;
|
|
16
20
|
interface TabsTriggerProps extends React.ComponentPropsWithoutRef<typeof TabsPrimitive.Trigger>, VariantProps<typeof tabsTriggerVariants> {
|
|
21
|
+
icon?: React.ReactNode;
|
|
17
22
|
}
|
|
18
23
|
declare const TabsTrigger: React.ForwardRefExoticComponent<TabsTriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
|
19
24
|
declare const TabsContent: React.ForwardRefExoticComponent<Omit<TabsPrimitive.TabsContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|