@rebasepro/ui 0.6.1 → 0.8.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/VirtualTable/fields/VirtualTableDateField.d.ts +13 -0
- package/dist/components/VirtualTable/fields/VirtualTableInput.d.ts +10 -0
- package/dist/components/VirtualTable/fields/VirtualTableNumberInput.d.ts +9 -0
- package/dist/components/VirtualTable/fields/VirtualTableSelect.d.ts +17 -0
- package/dist/components/VirtualTable/fields/VirtualTableSwitch.d.ts +8 -0
- package/dist/components/VirtualTable/index.d.ts +7 -0
- package/dist/components/VirtualTable/selection/SelectionContext.d.ts +11 -0
- package/dist/components/VirtualTable/selection/SelectionStore.d.ts +14 -0
- package/dist/icons/index.d.ts +1 -1
- package/dist/index.d.ts +13 -3
- package/dist/index.es.js +2322 -23
- package/dist/index.es.js.map +1 -1
- package/dist/styles.d.ts +1 -1
- package/dist/views/CardView.d.ts +32 -0
- package/dist/views/CollectionView/CollectionCardView.d.ts +30 -0
- package/dist/views/CollectionView/CollectionKanbanView.d.ts +31 -0
- package/dist/views/CollectionView/CollectionListView.d.ts +30 -0
- package/dist/views/CollectionView/CollectionTableView.d.ts +37 -0
- package/dist/views/CollectionView/CollectionView.d.ts +121 -0
- package/dist/views/CollectionView/CollectionViewToolbar.d.ts +31 -0
- package/dist/views/CollectionView/CollectionViewTypes.d.ts +106 -0
- package/dist/views/CollectionView/DefaultCellRenderer.d.ts +9 -0
- package/dist/views/CollectionView/index.d.ts +24 -0
- package/dist/views/CollectionView/utils.d.ts +5 -0
- package/dist/views/Kanban/Board.d.ts +3 -0
- package/dist/views/Kanban/BoardColumn.d.ts +20 -0
- package/dist/views/Kanban/BoardColumnTitle.d.ts +8 -0
- package/dist/views/Kanban/BoardSortableList.d.ts +14 -0
- package/dist/views/Kanban/board_types.d.ts +61 -0
- package/dist/views/Kanban/index.d.ts +5 -0
- package/dist/views/KanbanView.d.ts +24 -0
- package/dist/views/ListView.d.ts +40 -0
- package/dist/views/TableView.d.ts +6 -0
- package/dist/views/index.d.ts +5 -0
- package/package.json +1 -1
- package/src/components/Sheet.tsx +8 -4
- package/src/components/VirtualTable/fields/VirtualTableDateField.tsx +32 -0
- package/src/components/VirtualTable/fields/VirtualTableInput.tsx +82 -0
- package/src/components/VirtualTable/fields/VirtualTableNumberInput.tsx +71 -0
- package/src/components/VirtualTable/fields/VirtualTableSelect.tsx +107 -0
- package/src/components/VirtualTable/fields/VirtualTableSwitch.tsx +28 -0
- package/src/components/VirtualTable/index.tsx +7 -0
- package/src/components/VirtualTable/selection/SelectionContext.tsx +36 -0
- package/src/components/VirtualTable/selection/SelectionStore.ts +54 -0
- package/src/icons/index.ts +3 -0
- package/src/index.ts +43 -3
- package/src/styles.ts +1 -1
- package/src/views/CardView.tsx +281 -0
- package/src/views/CollectionView/CollectionCardView.tsx +270 -0
- package/src/views/CollectionView/CollectionKanbanView.tsx +251 -0
- package/src/views/CollectionView/CollectionListView.tsx +245 -0
- package/src/views/CollectionView/CollectionTableView.tsx +229 -0
- package/src/views/CollectionView/CollectionView.tsx +388 -0
- package/src/views/CollectionView/CollectionViewToolbar.tsx +229 -0
- package/src/views/CollectionView/CollectionViewTypes.ts +137 -0
- package/src/views/CollectionView/DefaultCellRenderer.tsx +404 -0
- package/src/views/CollectionView/index.ts +44 -0
- package/src/views/CollectionView/utils.ts +14 -0
- package/src/views/Kanban/Board.tsx +421 -0
- package/src/views/Kanban/BoardColumn.tsx +135 -0
- package/src/views/Kanban/BoardColumnTitle.tsx +47 -0
- package/src/views/Kanban/BoardSortableList.tsx +170 -0
- package/src/views/Kanban/board_types.ts +70 -0
- package/src/views/Kanban/index.tsx +5 -0
- package/src/views/KanbanView.tsx +32 -0
- package/src/views/ListView.tsx +281 -0
- package/src/views/TableView.tsx +7 -0
- package/src/views/index.ts +5 -0
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
export declare function VirtualTableDateField(props: {
|
|
3
|
+
name?: string;
|
|
4
|
+
error?: Error;
|
|
5
|
+
mode?: "date" | "date_time";
|
|
6
|
+
timezone?: string;
|
|
7
|
+
internalValue: Date | undefined | null;
|
|
8
|
+
updateValue: (newValue: (Date | null)) => void;
|
|
9
|
+
focused: boolean;
|
|
10
|
+
disabled: boolean;
|
|
11
|
+
locale?: string;
|
|
12
|
+
onBlur?: React.FocusEventHandler<HTMLInputElement | HTMLTextAreaElement>;
|
|
13
|
+
}): React.JSX.Element;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
export declare function VirtualTableInput(props: {
|
|
3
|
+
error?: Error;
|
|
4
|
+
value: string;
|
|
5
|
+
multiline?: boolean;
|
|
6
|
+
focused: boolean;
|
|
7
|
+
disabled: boolean;
|
|
8
|
+
updateValue: (newValue: (string | null)) => void;
|
|
9
|
+
onBlur?: () => void;
|
|
10
|
+
}): React.JSX.Element;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
export declare function VirtualTableNumberInput(props: {
|
|
3
|
+
error?: Error;
|
|
4
|
+
value: number;
|
|
5
|
+
align?: "right" | "left" | "center";
|
|
6
|
+
updateValue: (newValue: (number | null)) => void;
|
|
7
|
+
focused: boolean;
|
|
8
|
+
disabled: boolean;
|
|
9
|
+
}): React.JSX.Element;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
export interface VirtualTableSelectOption {
|
|
3
|
+
value: string | number;
|
|
4
|
+
label: string;
|
|
5
|
+
color?: string;
|
|
6
|
+
}
|
|
7
|
+
export declare function VirtualTableSelect(props: {
|
|
8
|
+
options: VirtualTableSelectOption[];
|
|
9
|
+
error?: Error;
|
|
10
|
+
multiple?: boolean;
|
|
11
|
+
disabled: boolean;
|
|
12
|
+
small?: boolean;
|
|
13
|
+
value: string | number | string[] | number[] | undefined;
|
|
14
|
+
updateValue: (newValue: (string | number | string[] | number[] | null)) => void;
|
|
15
|
+
focused: boolean;
|
|
16
|
+
onBlur?: React.FocusEventHandler<HTMLInputElement | HTMLTextAreaElement>;
|
|
17
|
+
}): React.JSX.Element;
|
|
@@ -1,3 +1,10 @@
|
|
|
1
1
|
export { VirtualTable } from "./VirtualTable";
|
|
2
2
|
export * from "./VirtualTableProps";
|
|
3
3
|
export type { FilterFormFieldProps } from "./VirtualTableHeader";
|
|
4
|
+
export * from "./selection/SelectionStore";
|
|
5
|
+
export * from "./selection/SelectionContext";
|
|
6
|
+
export * from "./fields/VirtualTableInput";
|
|
7
|
+
export * from "./fields/VirtualTableNumberInput";
|
|
8
|
+
export * from "./fields/VirtualTableSwitch";
|
|
9
|
+
export * from "./fields/VirtualTableDateField";
|
|
10
|
+
export * from "./fields/VirtualTableSelect";
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { VirtualTableSelectionStore, SelectedCell } from "./SelectionStore";
|
|
3
|
+
export interface VirtualTableSelectionContextProps<T extends SelectedCell = SelectedCell> {
|
|
4
|
+
selectionStore: VirtualTableSelectionStore<T>;
|
|
5
|
+
select: (cell: T | undefined) => void;
|
|
6
|
+
}
|
|
7
|
+
export declare const VirtualTableSelectionProvider: <T extends SelectedCell = SelectedCell>({ store, children }: {
|
|
8
|
+
store: VirtualTableSelectionStore<T>;
|
|
9
|
+
children: React.ReactNode;
|
|
10
|
+
}) => React.JSX.Element;
|
|
11
|
+
export declare const useVirtualTableSelection: <T extends SelectedCell = SelectedCell>() => VirtualTableSelectionContextProps<T>;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export interface SelectedCell {
|
|
2
|
+
columnKey: string;
|
|
3
|
+
rowId: string | number;
|
|
4
|
+
cellRect?: DOMRect;
|
|
5
|
+
width?: number;
|
|
6
|
+
height?: number;
|
|
7
|
+
}
|
|
8
|
+
export declare function createVirtualTableSelectionStore<T extends SelectedCell = SelectedCell>(): {
|
|
9
|
+
getSnapshot: () => T | undefined;
|
|
10
|
+
subscribe: (listener: () => void) => () => void;
|
|
11
|
+
select: (cell: T | undefined) => void;
|
|
12
|
+
};
|
|
13
|
+
export type VirtualTableSelectionStore<T extends SelectedCell = SelectedCell> = ReturnType<typeof createVirtualTableSelectionStore<T>>;
|
|
14
|
+
export declare function useVirtualTableCellSelected<T extends SelectedCell = SelectedCell>(store: VirtualTableSelectionStore<T>, columnKey: string, rowId: string | number): boolean;
|
package/dist/icons/index.d.ts
CHANGED
|
@@ -5,4 +5,4 @@ export * from "./GitHubIcon";
|
|
|
5
5
|
export * from "./HandleIcon";
|
|
6
6
|
export type { LucideProps, LucideIcon } from "lucide-react";
|
|
7
7
|
export { icons as lucideIcons } from "lucide-react";
|
|
8
|
-
export { AlertCircleIcon, AlertTriangleIcon, AlignLeftIcon, AppWindow, ArrowDownToLineIcon, ArrowLeftIcon, ArrowRightFromLineIcon, ArrowRightIcon, ArrowRightToLineIcon, ArrowUpToLineIcon, BoldIcon, BookOpenIcon, CalendarIcon, CheckCircleIcon, CheckIcon, CheckSquareIcon, ChevronDownIcon, ChevronLeftIcon, ChevronRightIcon, ChevronUpIcon, ChevronsLeftIcon, ChevronsRightIcon, ChevronsUpDownIcon, CircleIcon, CircleUserIcon, CodeIcon, ColumnsIcon, CopyIcon, DatabaseIcon, DownloadIcon, ExternalLinkIcon, EyeIcon, EyeOffIcon, FileIcon, FileSearchIcon, FileTextIcon, FilterIcon, FilterXIcon, FlagIcon, FolderIcon, FolderPlusIcon, FolderUpIcon, FunctionSquareIcon, GitBranchIcon, GlobeIcon, HashIcon, Heading1Icon, Heading2Icon, Heading3Icon, HelpCircleIcon, HistoryIcon, HomeIcon, ImageIcon, ImageOffIcon, InfoIcon, ItalicIcon, KanbanIcon, KeyIcon, KeyRoundIcon, LanguagesIcon, LayoutGridIcon, LinkIcon, ListIcon, ListOrderedIcon, LoaderIcon, LogOutIcon, MailIcon, Maximize2Icon, MenuIcon, MinusCircleIcon, MinusIcon, MoonIcon, MoreVerticalIcon, Music2Icon, PanelLeftIcon, PauseIcon, PencilIcon, PhoneIcon, PlayIcon, PlusIcon, QuoteIcon, RefreshCcwIcon, RefreshCwIcon, RepeatIcon, Rows3Icon, SaveIcon, SearchIcon, SendIcon, SettingsIcon, ShieldIcon, ShoppingCartIcon, SlidersHorizontalIcon, SquareIcon, StarIcon, StrikethroughIcon, SunIcon, SunMoonIcon, TableIcon, TagIcon, TerminalIcon, TextIcon, Trash2Icon, TypeIcon, UnderlineIcon, UndoIcon, UploadCloudIcon, UploadIcon, UserCheckIcon, UserIcon, VideoIcon, VoteIcon, Wand2Icon, XCircleIcon, XIcon } from "lucide-react";
|
|
8
|
+
export { AlertCircleIcon, AlertTriangleIcon, AlignLeftIcon, AppWindow, ArrowDownToLineIcon, ArrowLeftIcon, ArrowRightFromLineIcon, ArrowRightIcon, ArrowRightToLineIcon, ArrowUpToLineIcon, BoldIcon, BookOpenIcon, CalendarIcon, CheckCircleIcon, CheckIcon, CheckSquareIcon, ChevronDownIcon, ChevronLeftIcon, ChevronRightIcon, ChevronUpIcon, ChevronsLeftIcon, ChevronsRightIcon, ChevronsUpDownIcon, CircleIcon, CircleUserIcon, CodeIcon, ColumnsIcon, CopyIcon, DatabaseIcon, DownloadIcon, ExternalLinkIcon, EyeIcon, EyeOffIcon, FileIcon, FileSearchIcon, FileTextIcon, FilterIcon, FilterXIcon, FlagIcon, FolderIcon, FolderPlusIcon, FolderUpIcon, FunctionSquareIcon, GitBranchIcon, GlobeIcon, HashIcon, Heading1Icon, Heading2Icon, Heading3Icon, HelpCircleIcon, HistoryIcon, HomeIcon, ImageIcon, ImageOffIcon, InfoIcon, ItalicIcon, KanbanIcon, KeyIcon, KeyRoundIcon, LanguagesIcon, LayoutGridIcon, LinkIcon, Link2Icon, ListIcon, LockIcon, ListOrderedIcon, LoaderIcon, LogOutIcon, MailIcon, Maximize2Icon, MenuIcon, MinusCircleIcon, MinusIcon, MoonIcon, MoreVerticalIcon, Music2Icon, PanelLeftIcon, PauseIcon, PencilIcon, PhoneIcon, PlayIcon, PlusIcon, QuoteIcon, RefreshCcwIcon, RefreshCwIcon, RepeatIcon, Rows3Icon, SaveIcon, SearchIcon, SendIcon, SettingsIcon, ShieldIcon, ShoppingCartIcon, SlidersHorizontalIcon, SquareIcon, StarIcon, StrikethroughIcon, SunIcon, SunMoonIcon, TableIcon, TagIcon, TerminalIcon, TextIcon, Trash2Icon, TypeIcon, UnderlineIcon, UndoIcon, UploadCloudIcon, UploadIcon, UserCheckIcon, UserIcon, UserPlus, VideoIcon, VoteIcon, Wand2Icon, XCircleIcon, XIcon } from "lucide-react";
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,15 @@
|
|
|
1
1
|
export * from "./components";
|
|
2
|
-
export * from "./
|
|
3
|
-
export * from "./util";
|
|
2
|
+
export * from "./views";
|
|
4
3
|
export * from "./icons";
|
|
5
|
-
export * from "./
|
|
4
|
+
export * from "./styles";
|
|
5
|
+
export { cls } from "./util/cls";
|
|
6
|
+
export { CHIP_COLORS, getColorSchemeForKey, getColorSchemeForSeed } from "./util/chip_colors";
|
|
7
|
+
export { useOutsideAlerter } from "./hooks/useOutsideAlerter";
|
|
8
|
+
export { useDebouncedCallback } from "./hooks/useDebouncedCallback";
|
|
9
|
+
export { useDebounceCallback } from "./hooks/useDebounceCallback";
|
|
10
|
+
export { useDebounceValue } from "./hooks/useDebounceValue";
|
|
11
|
+
export { useInjectStyles } from "./hooks/useInjectStyles";
|
|
12
|
+
export { PortalContainerProvider, usePortalContainer } from "./hooks/PortalContainerContext";
|
|
13
|
+
export type { PortalContainerContextType, PortalContainerProviderProps } from "./hooks/PortalContainerContext";
|
|
14
|
+
export { debounce } from "./util/debounce";
|
|
15
|
+
export type { Cancelable } from "./util/debounce";
|