gridsmith-ui 0.3.3 → 0.3.5
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/index.d.ts +12 -5
- package/dist/index.js +781 -378
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -43,6 +43,7 @@ declare function DropdownMenu({ trigger, items, align, className, container }: D
|
|
|
43
43
|
|
|
44
44
|
interface BulkAction {
|
|
45
45
|
label: string;
|
|
46
|
+
icon?: IconName;
|
|
46
47
|
onClick: () => void;
|
|
47
48
|
variant?: "default" | "destructive";
|
|
48
49
|
}
|
|
@@ -332,15 +333,17 @@ interface TransferListProps {
|
|
|
332
333
|
}
|
|
333
334
|
declare function TransferList({ available, selected, onChange, availableTitle, selectedTitle, searchable, className, ref, }: TransferListProps): react_jsx_runtime.JSX.Element;
|
|
334
335
|
|
|
336
|
+
type ToolbarGroup = "blockType" | "fontFamily" | "textSize" | "formatting" | "colors" | "alignment" | "lists" | "blocks" | "insert" | "extras" | "history";
|
|
335
337
|
interface RichTextEditorProps {
|
|
336
338
|
content?: string;
|
|
337
339
|
placeholder?: string;
|
|
338
340
|
onChange?: (html: string) => void;
|
|
339
341
|
editable?: boolean;
|
|
342
|
+
toolbar?: ToolbarGroup[] | "full" | "minimal";
|
|
340
343
|
className?: string;
|
|
341
344
|
ref?: Ref<HTMLDivElement>;
|
|
342
345
|
}
|
|
343
|
-
declare function RichTextEditor({ content, placeholder, onChange, editable, className, ref, }: RichTextEditorProps): react_jsx_runtime.JSX.Element | null;
|
|
346
|
+
declare function RichTextEditor({ content, placeholder, onChange, editable, toolbar, className, ref, }: RichTextEditorProps): react_jsx_runtime.JSX.Element | null;
|
|
344
347
|
|
|
345
348
|
interface MentionSuggestion {
|
|
346
349
|
id: string;
|
|
@@ -494,6 +497,7 @@ interface EventCategory {
|
|
|
494
497
|
label: string;
|
|
495
498
|
}
|
|
496
499
|
type CalendarView = "month" | "week" | "year";
|
|
500
|
+
type CalendarSize = "default" | "compact";
|
|
497
501
|
interface CalendarProps {
|
|
498
502
|
events?: CalendarEvent[];
|
|
499
503
|
view?: CalendarView;
|
|
@@ -510,10 +514,11 @@ interface CalendarProps {
|
|
|
510
514
|
onDayClick?: (date: Date) => void;
|
|
511
515
|
categories?: Record<string, EventCategory>;
|
|
512
516
|
weekStartsOn?: 0 | 1;
|
|
517
|
+
size?: CalendarSize;
|
|
513
518
|
className?: string;
|
|
514
519
|
}
|
|
515
520
|
|
|
516
|
-
declare function Calendar({ events, view: controlledView, defaultView, onViewChange, date: controlledDate, defaultDate, onDateChange, onDateRangeChange, onEventClick, onDayClick, categories, weekStartsOn, className, }: CalendarProps): react_jsx_runtime.JSX.Element;
|
|
521
|
+
declare function Calendar({ events, view: controlledView, defaultView, onViewChange, date: controlledDate, defaultDate, onDateChange, onDateRangeChange, onEventClick, onDayClick, categories, weekStartsOn, size, className, }: CalendarProps): react_jsx_runtime.JSX.Element;
|
|
517
522
|
|
|
518
523
|
type BadgeVariant = "default" | "neutral" | "subtle" | "success" | "success-soft" | "warning" | "warning-soft" | "error" | "error-soft" | "outline";
|
|
519
524
|
type BadgeSize = "xs" | "sm" | "md";
|
|
@@ -570,7 +575,7 @@ interface TimelineItem {
|
|
|
570
575
|
}
|
|
571
576
|
interface TimelineProps {
|
|
572
577
|
items: TimelineItem[];
|
|
573
|
-
orientation?: "vertical" | "horizontal";
|
|
578
|
+
orientation?: "vertical" | "horizontal" | "responsive";
|
|
574
579
|
className?: string;
|
|
575
580
|
ref?: Ref<HTMLDivElement>;
|
|
576
581
|
}
|
|
@@ -733,6 +738,7 @@ interface StackedListItem {
|
|
|
733
738
|
interface StackedListProps {
|
|
734
739
|
items: StackedListItem[];
|
|
735
740
|
divided?: boolean;
|
|
741
|
+
flush?: boolean;
|
|
736
742
|
className?: string;
|
|
737
743
|
}
|
|
738
744
|
declare const StackedList: react.ForwardRefExoticComponent<StackedListProps & react.RefAttributes<HTMLUListElement>>;
|
|
@@ -1043,7 +1049,7 @@ interface DrawerProps {
|
|
|
1043
1049
|
onClose: () => void;
|
|
1044
1050
|
position?: "left" | "right" | "bottom";
|
|
1045
1051
|
width?: string;
|
|
1046
|
-
title?:
|
|
1052
|
+
title?: ReactNode;
|
|
1047
1053
|
children: ReactNode;
|
|
1048
1054
|
footer?: ReactNode;
|
|
1049
1055
|
container?: Element | DocumentFragment;
|
|
@@ -1262,9 +1268,10 @@ type PanelGroupProps = ComponentProps<typeof Group>;
|
|
|
1262
1268
|
type Direction = "horizontal" | "vertical";
|
|
1263
1269
|
interface ResizablePanelGroupProps extends Omit<PanelGroupProps, "className" | "orientation"> {
|
|
1264
1270
|
direction?: Direction;
|
|
1271
|
+
stackOnMobile?: boolean;
|
|
1265
1272
|
className?: string;
|
|
1266
1273
|
}
|
|
1267
|
-
declare function ResizablePanelGroup({ className, direction, ...props }: ResizablePanelGroupProps): react_jsx_runtime.JSX.Element;
|
|
1274
|
+
declare function ResizablePanelGroup({ className, direction, stackOnMobile, ...props }: ResizablePanelGroupProps): react_jsx_runtime.JSX.Element;
|
|
1268
1275
|
type PanelProps = ComponentProps<typeof Panel>;
|
|
1269
1276
|
interface ResizablePanelProps extends Omit<PanelProps, "className"> {
|
|
1270
1277
|
className?: string;
|