@knkcs/anker 1.1.0 → 1.2.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 +176 -1
- package/dist/components/index.js +496 -16
- package/dist/components/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -176,6 +176,41 @@ interface ChipPickerProps<T> {
|
|
|
176
176
|
}
|
|
177
177
|
declare const ChipPicker: <T>(props: ChipPickerProps<T>) => React$1.ReactElement;
|
|
178
178
|
|
|
179
|
+
interface ContextRailProps {
|
|
180
|
+
storageKey?: string;
|
|
181
|
+
children: React__default.ReactNode;
|
|
182
|
+
}
|
|
183
|
+
interface ContextRailHeaderProps {
|
|
184
|
+
eyebrow?: React__default.ReactNode;
|
|
185
|
+
title: React__default.ReactNode;
|
|
186
|
+
onClose?: () => void;
|
|
187
|
+
}
|
|
188
|
+
interface ContextRailSectionProps {
|
|
189
|
+
id: string;
|
|
190
|
+
icon?: React__default.ReactNode;
|
|
191
|
+
label: string;
|
|
192
|
+
children: React__default.ReactNode;
|
|
193
|
+
}
|
|
194
|
+
declare const ContextRail: {
|
|
195
|
+
({ storageKey, children }: ContextRailProps): react_jsx_runtime.JSX.Element;
|
|
196
|
+
displayName: string;
|
|
197
|
+
} & {
|
|
198
|
+
Header: {
|
|
199
|
+
({ eyebrow, title, onClose: _onClose, }: ContextRailHeaderProps): react_jsx_runtime.JSX.Element;
|
|
200
|
+
displayName: string;
|
|
201
|
+
};
|
|
202
|
+
Section: {
|
|
203
|
+
({ id, icon, label, children, }: ContextRailSectionProps): react_jsx_runtime.JSX.Element;
|
|
204
|
+
displayName: string;
|
|
205
|
+
};
|
|
206
|
+
Footer: {
|
|
207
|
+
({ children }: {
|
|
208
|
+
children: React__default.ReactNode;
|
|
209
|
+
}): react_jsx_runtime.JSX.Element;
|
|
210
|
+
displayName: string;
|
|
211
|
+
};
|
|
212
|
+
};
|
|
213
|
+
|
|
179
214
|
interface ActionCellAction {
|
|
180
215
|
icon: React__default.ElementType;
|
|
181
216
|
label: string;
|
|
@@ -463,6 +498,22 @@ interface ModalProps extends Omit<DialogRootProps, "open" | "onOpenChange"> {
|
|
|
463
498
|
}
|
|
464
499
|
declare const Modal: React.FC<ModalProps>;
|
|
465
500
|
|
|
501
|
+
interface PageHeaderBreadcrumb {
|
|
502
|
+
label: string;
|
|
503
|
+
to?: string;
|
|
504
|
+
}
|
|
505
|
+
interface PageHeaderProps {
|
|
506
|
+
breadcrumbs?: PageHeaderBreadcrumb[];
|
|
507
|
+
title: React__default.ReactNode;
|
|
508
|
+
subtitle?: React__default.ReactNode;
|
|
509
|
+
actions?: React__default.ReactNode;
|
|
510
|
+
eyebrow?: React__default.ReactNode;
|
|
511
|
+
}
|
|
512
|
+
declare const PageHeader: {
|
|
513
|
+
({ breadcrumbs, title, subtitle, actions, eyebrow, }: PageHeaderProps): react_jsx_runtime.JSX.Element;
|
|
514
|
+
displayName: string;
|
|
515
|
+
};
|
|
516
|
+
|
|
466
517
|
interface PaginationProps {
|
|
467
518
|
/** Current page (1-based). */
|
|
468
519
|
page: number;
|
|
@@ -522,6 +573,85 @@ declare const SelectableCard: {
|
|
|
522
573
|
};
|
|
523
574
|
};
|
|
524
575
|
|
|
576
|
+
interface SidebarProps {
|
|
577
|
+
children: React__default.ReactNode;
|
|
578
|
+
}
|
|
579
|
+
interface SidebarLogoProps {
|
|
580
|
+
wordmark: string;
|
|
581
|
+
subtitle?: string;
|
|
582
|
+
}
|
|
583
|
+
interface SidebarSectionProps$1 {
|
|
584
|
+
label: string;
|
|
585
|
+
children: React__default.ReactNode;
|
|
586
|
+
}
|
|
587
|
+
interface SidebarItemProps {
|
|
588
|
+
icon?: React__default.ReactNode;
|
|
589
|
+
children: React__default.ReactNode;
|
|
590
|
+
asChild?: boolean;
|
|
591
|
+
active?: boolean;
|
|
592
|
+
}
|
|
593
|
+
interface SidebarUserMenuProps {
|
|
594
|
+
user: {
|
|
595
|
+
name?: string;
|
|
596
|
+
email?: string;
|
|
597
|
+
};
|
|
598
|
+
children: React__default.ReactNode;
|
|
599
|
+
}
|
|
600
|
+
interface SidebarUserMenuItemProps {
|
|
601
|
+
asChild?: boolean;
|
|
602
|
+
onClick?: () => void;
|
|
603
|
+
children: React__default.ReactNode;
|
|
604
|
+
}
|
|
605
|
+
declare const Sidebar: {
|
|
606
|
+
({ children }: SidebarProps): react_jsx_runtime.JSX.Element;
|
|
607
|
+
displayName: string;
|
|
608
|
+
} & {
|
|
609
|
+
Header: {
|
|
610
|
+
({ children }: {
|
|
611
|
+
children: React__default.ReactNode;
|
|
612
|
+
}): react_jsx_runtime.JSX.Element;
|
|
613
|
+
displayName: string;
|
|
614
|
+
};
|
|
615
|
+
Body: {
|
|
616
|
+
({ children }: {
|
|
617
|
+
children?: React__default.ReactNode;
|
|
618
|
+
}): react_jsx_runtime.JSX.Element;
|
|
619
|
+
displayName: string;
|
|
620
|
+
};
|
|
621
|
+
Footer: {
|
|
622
|
+
({ children }: {
|
|
623
|
+
children: React__default.ReactNode;
|
|
624
|
+
}): react_jsx_runtime.JSX.Element;
|
|
625
|
+
displayName: string;
|
|
626
|
+
};
|
|
627
|
+
Logo: {
|
|
628
|
+
({ wordmark, subtitle }: SidebarLogoProps): react_jsx_runtime.JSX.Element;
|
|
629
|
+
displayName: string;
|
|
630
|
+
};
|
|
631
|
+
Slot: {
|
|
632
|
+
({ children }: {
|
|
633
|
+
children: React__default.ReactNode;
|
|
634
|
+
}): react_jsx_runtime.JSX.Element;
|
|
635
|
+
displayName: string;
|
|
636
|
+
};
|
|
637
|
+
Section: {
|
|
638
|
+
({ label, children }: SidebarSectionProps$1): react_jsx_runtime.JSX.Element;
|
|
639
|
+
displayName: string;
|
|
640
|
+
};
|
|
641
|
+
Item: {
|
|
642
|
+
({ icon, children, asChild, active }: SidebarItemProps): react_jsx_runtime.JSX.Element;
|
|
643
|
+
displayName: string;
|
|
644
|
+
};
|
|
645
|
+
UserMenu: {
|
|
646
|
+
({ user, children }: SidebarUserMenuProps): react_jsx_runtime.JSX.Element;
|
|
647
|
+
displayName: string;
|
|
648
|
+
};
|
|
649
|
+
UserMenuItem: {
|
|
650
|
+
({ asChild, onClick, children, }: SidebarUserMenuItemProps): react_jsx_runtime.JSX.Element;
|
|
651
|
+
displayName: string;
|
|
652
|
+
};
|
|
653
|
+
};
|
|
654
|
+
|
|
525
655
|
interface SidebarSectionProps {
|
|
526
656
|
label: string;
|
|
527
657
|
children: React__default.ReactNode | ((state: {
|
|
@@ -711,6 +841,51 @@ declare const TimelineDescription: React$1.ForwardRefExoticComponent<Timeline.De
|
|
|
711
841
|
type TimelineRootProps = Timeline.RootProps;
|
|
712
842
|
type TimelineItemProps = Timeline.ItemProps;
|
|
713
843
|
|
|
844
|
+
interface ToolbarSearchProps {
|
|
845
|
+
placeholder?: string;
|
|
846
|
+
value: string;
|
|
847
|
+
onChange: (next: string) => void;
|
|
848
|
+
}
|
|
849
|
+
interface ToolbarFilterChipProps {
|
|
850
|
+
icon?: React__default.ReactNode;
|
|
851
|
+
active?: boolean;
|
|
852
|
+
onClick: () => void;
|
|
853
|
+
children: React__default.ReactNode;
|
|
854
|
+
}
|
|
855
|
+
declare const Toolbar: {
|
|
856
|
+
({ children }: {
|
|
857
|
+
children: React__default.ReactNode;
|
|
858
|
+
}): react_jsx_runtime.JSX.Element;
|
|
859
|
+
displayName: string;
|
|
860
|
+
} & {
|
|
861
|
+
Search: {
|
|
862
|
+
({ placeholder, value, onChange, }: ToolbarSearchProps): react_jsx_runtime.JSX.Element;
|
|
863
|
+
displayName: string;
|
|
864
|
+
};
|
|
865
|
+
Filters: {
|
|
866
|
+
({ children }: {
|
|
867
|
+
children: React__default.ReactNode;
|
|
868
|
+
}): react_jsx_runtime.JSX.Element;
|
|
869
|
+
displayName: string;
|
|
870
|
+
};
|
|
871
|
+
FilterChip: {
|
|
872
|
+
({ icon, active, onClick, children, }: ToolbarFilterChipProps): react_jsx_runtime.JSX.Element;
|
|
873
|
+
displayName: string;
|
|
874
|
+
};
|
|
875
|
+
Right: {
|
|
876
|
+
({ children }: {
|
|
877
|
+
children: React__default.ReactNode;
|
|
878
|
+
}): react_jsx_runtime.JSX.Element;
|
|
879
|
+
displayName: string;
|
|
880
|
+
};
|
|
881
|
+
Count: {
|
|
882
|
+
({ children }: {
|
|
883
|
+
children: React__default.ReactNode;
|
|
884
|
+
}): react_jsx_runtime.JSX.Element;
|
|
885
|
+
displayName: string;
|
|
886
|
+
};
|
|
887
|
+
};
|
|
888
|
+
|
|
714
889
|
declare const TreeViewRoot: React$1.ForwardRefExoticComponent<TreeView.RootProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
715
890
|
declare const TreeViewTree: React$1.ForwardRefExoticComponent<TreeView.TreeProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
716
891
|
declare const TreeViewBranch: React$1.ForwardRefExoticComponent<TreeView.BranchProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
@@ -758,4 +933,4 @@ interface WidgetProps {
|
|
|
758
933
|
}
|
|
759
934
|
declare const Widget: React__default.FC<WidgetProps>;
|
|
760
935
|
|
|
761
|
-
export { ActionCell, type ActionCellAction, type ActionCellProps, AuthCard, type AuthCardProps, BooleanCell, type BooleanCellProps, BulkActionBar, type BulkActionBarProps, type BulkActionProps, type BulkPopoverActionProps, Card, CardList, CardListData, type CardListDataProps, CardListItem, type CardListItemProps, type CardListMenuItem, type CardListProps, type CardProps, ChipPicker, type ChipPickerProps, CodeCell, type CodeCellProps, ColorSwatchCell, type ColorSwatchCellProps, CountCell, type CountCellProps, DataTable, type DataTableProps, DateCell, type DateCellProps, type DrawerProps, DrawerRoot, FactBox, type FactBoxAction, type FactBoxProps, InlineCreatableList, type InlineCreatableListProps, LabeledSwitch, type LabeledSwitchProps, LinkCell, type LinkCellProps, MenuCell, type MenuCellAction, type MenuCellProps, Modal, type ModalProps, NumberCell, type NumberCellProps, Pagination, type PaginationProps, SelectableCard, type SelectableCardBodyProps, type SelectableCardFooterProps, type SelectableCardProps, type SelectableCardThumbnailProps, SidebarSection, type SidebarSectionProps, SlugCell, type SlugCellProps, StatusBadgeCell, type StatusBadgeCellProps, Stepper, StepperCompleted, StepperContainer, StepperContent, type StepperContentProps, StepperIcon, type StepperIconProps, type StepperProps, StepperProvider, StepperSeparator, type StepperSeparatorProps, StepperStep, type StepperStepProps, StepperStepTitle, StepperSteps, type StepperStepsProps, SwitchCell, type SwitchCellProps, CardList as Table, CardListData as TableData, type CardListDataProps as TableDataProps, CardListItem as TableItem, type CardListItemProps as TableItemProps, type CardListMenuItem as TableMenuItem, type CardListProps as TableProps, TimelineConnector, TimelineContent, TimelineDescription, TimelineIndicator, TimelineItem, type TimelineItemProps, TimelineRoot, type TimelineRootProps, TimelineSeparator, TimelineTitle, TreeViewBranch, TreeViewBranchContent, TreeViewBranchControl, TreeViewBranchIndicator, type TreeViewBranchProps, TreeViewBranchText, TreeViewBranchTrigger, TreeViewItem, TreeViewItemIndicator, type TreeViewItemProps, TreeViewItemText, TreeViewLabel, TreeViewNode, TreeViewRoot, type TreeViewRootProps, TreeViewTree, TruncatedTextCell, type TruncatedTextCellProps, UploadDropZone, type UploadDropZoneProps, UrlCell, type UrlCellProps, type UseStepProps, type UseStepperProps, type UseStepperReturn, Widget, type WidgetProps, emptyCellValue, pluralize, truncateText, useStep, useStepper, useStepperContext, useStepperNextButton, useStepperPrevButton };
|
|
936
|
+
export { ActionCell, type ActionCellAction, type ActionCellProps, AuthCard, type AuthCardProps, BooleanCell, type BooleanCellProps, BulkActionBar, type BulkActionBarProps, type BulkActionProps, type BulkPopoverActionProps, Card, CardList, CardListData, type CardListDataProps, CardListItem, type CardListItemProps, type CardListMenuItem, type CardListProps, type CardProps, ChipPicker, type ChipPickerProps, CodeCell, type CodeCellProps, ColorSwatchCell, type ColorSwatchCellProps, ContextRail, type ContextRailHeaderProps, type ContextRailProps, type ContextRailSectionProps, CountCell, type CountCellProps, DataTable, type DataTableProps, DateCell, type DateCellProps, type DrawerProps, DrawerRoot, FactBox, type FactBoxAction, type FactBoxProps, InlineCreatableList, type InlineCreatableListProps, LabeledSwitch, type LabeledSwitchProps, LinkCell, type LinkCellProps, MenuCell, type MenuCellAction, type MenuCellProps, Modal, type ModalProps, NumberCell, type NumberCellProps, PageHeader, type PageHeaderBreadcrumb, type PageHeaderProps, Pagination, type PaginationProps, SelectableCard, type SelectableCardBodyProps, type SelectableCardFooterProps, type SelectableCardProps, type SelectableCardThumbnailProps, Sidebar, type SidebarItemProps, type SidebarLogoProps, type SidebarSectionProps$1 as SidebarNavSectionProps, type SidebarProps, SidebarSection, type SidebarSectionProps, type SidebarUserMenuItemProps, type SidebarUserMenuProps, SlugCell, type SlugCellProps, StatusBadgeCell, type StatusBadgeCellProps, Stepper, StepperCompleted, StepperContainer, StepperContent, type StepperContentProps, StepperIcon, type StepperIconProps, type StepperProps, StepperProvider, StepperSeparator, type StepperSeparatorProps, StepperStep, type StepperStepProps, StepperStepTitle, StepperSteps, type StepperStepsProps, SwitchCell, type SwitchCellProps, CardList as Table, CardListData as TableData, type CardListDataProps as TableDataProps, CardListItem as TableItem, type CardListItemProps as TableItemProps, type CardListMenuItem as TableMenuItem, type CardListProps as TableProps, TimelineConnector, TimelineContent, TimelineDescription, TimelineIndicator, TimelineItem, type TimelineItemProps, TimelineRoot, type TimelineRootProps, TimelineSeparator, TimelineTitle, Toolbar, type ToolbarFilterChipProps, type ToolbarSearchProps, TreeViewBranch, TreeViewBranchContent, TreeViewBranchControl, TreeViewBranchIndicator, type TreeViewBranchProps, TreeViewBranchText, TreeViewBranchTrigger, TreeViewItem, TreeViewItemIndicator, type TreeViewItemProps, TreeViewItemText, TreeViewLabel, TreeViewNode, TreeViewRoot, type TreeViewRootProps, TreeViewTree, TruncatedTextCell, type TruncatedTextCellProps, UploadDropZone, type UploadDropZoneProps, UrlCell, type UrlCellProps, type UseStepProps, type UseStepperProps, type UseStepperReturn, Widget, type WidgetProps, emptyCellValue, pluralize, truncateText, useStep, useStepper, useStepperContext, useStepperNextButton, useStepperPrevButton };
|