@rebasepro/ui 0.1.2 → 0.2.3
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/LICENSE +1 -1
- package/dist/components/FilterChip.d.ts +42 -0
- package/dist/components/index.d.ts +5 -0
- package/dist/icons/index.d.ts +2 -0
- package/dist/index.es.js +576 -154
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +924 -156
- package/dist/index.umd.js.map +1 -1
- package/package.json +20 -18
- package/src/components/BooleanSwitch.tsx +1 -1
- package/src/components/BooleanSwitchWithLabel.tsx +1 -1
- package/src/components/Button.tsx +2 -2
- package/src/components/Chip.tsx +43 -10
- package/src/components/FilterChip.tsx +84 -0
- package/src/components/Markdown.tsx +1 -2
- package/src/components/SearchBar.tsx +1 -1
- package/src/components/Select.tsx +1 -1
- package/src/components/TextField.tsx +2 -1
- package/src/components/TextareaAutosize.tsx +2 -2
- package/src/components/VirtualTable/VirtualTable.tsx +2 -1
- package/src/components/VirtualTable/VirtualTableHeader.tsx +1 -1
- package/src/components/index.tsx +8 -0
- package/src/icons/index.ts +123 -0
package/LICENSE
CHANGED
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
export interface FilterChipProps {
|
|
3
|
+
/**
|
|
4
|
+
* The text label displayed on the chip.
|
|
5
|
+
*/
|
|
6
|
+
children: React.ReactNode;
|
|
7
|
+
/**
|
|
8
|
+
* Whether the chip is currently in an active/selected state.
|
|
9
|
+
*/
|
|
10
|
+
active?: boolean;
|
|
11
|
+
/**
|
|
12
|
+
* Callback when the chip is clicked.
|
|
13
|
+
*/
|
|
14
|
+
onClick?: () => void;
|
|
15
|
+
/**
|
|
16
|
+
* Optional icon rendered before the label.
|
|
17
|
+
*/
|
|
18
|
+
icon?: React.ReactNode;
|
|
19
|
+
/**
|
|
20
|
+
* Size variant.
|
|
21
|
+
* @default "medium"
|
|
22
|
+
*/
|
|
23
|
+
size?: "small" | "medium";
|
|
24
|
+
/**
|
|
25
|
+
* Additional class names.
|
|
26
|
+
*/
|
|
27
|
+
className?: string;
|
|
28
|
+
/**
|
|
29
|
+
* Whether the chip is disabled.
|
|
30
|
+
*/
|
|
31
|
+
disabled?: boolean;
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* A toggle chip used for filter presets and similar multi-select controls.
|
|
35
|
+
*
|
|
36
|
+
* Uses an inset box-shadow for the active ring instead of `border` so the
|
|
37
|
+
* chip size stays stable across states and the ring cannot be clipped by
|
|
38
|
+
* parent `overflow-hidden` containers.
|
|
39
|
+
*
|
|
40
|
+
* @group Interactive components
|
|
41
|
+
*/
|
|
42
|
+
export declare function FilterChip({ children, active, onClick, icon, size, className, disabled }: FilterChipProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -22,6 +22,7 @@ export * from "./DialogContent";
|
|
|
22
22
|
export * from "./DialogTitle";
|
|
23
23
|
export * from "./ExpandablePanel";
|
|
24
24
|
export * from "./FileUpload";
|
|
25
|
+
export * from "./FilterChip";
|
|
25
26
|
export * from "./IconButton";
|
|
26
27
|
export * from "./InputLabel";
|
|
27
28
|
export * from "./InfoLabel";
|
|
@@ -51,3 +52,7 @@ export * from "./DebouncedTextField";
|
|
|
51
52
|
export * from "./Skeleton";
|
|
52
53
|
export * from "./ToggleButtonGroup";
|
|
53
54
|
export * from "./VirtualTable";
|
|
55
|
+
import * as Portal from "@radix-ui/react-portal";
|
|
56
|
+
import * as PopoverPrimitive from "@radix-ui/react-popover";
|
|
57
|
+
export { Portal, PopoverPrimitive };
|
|
58
|
+
export { Slot } from "@radix-ui/react-slot";
|
package/dist/icons/index.d.ts
CHANGED
|
@@ -4,3 +4,5 @@ export * from "./Icon";
|
|
|
4
4
|
export * from "./GitHubIcon";
|
|
5
5
|
export * from "./HandleIcon";
|
|
6
6
|
export type { LucideProps, LucideIcon } from "lucide-react";
|
|
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";
|