diff --git a/packages/components/accordion/src/accordion-tree.tsx b/packages/components/accordion/src/accordion-tree.tsx deleted file mode 100644 index 2ad0a46fa6..0000000000 --- a/packages/components/accordion/src/accordion-tree.tsx +++ /dev/null @@ -1,63 +0,0 @@ -import {forwardRef, ReactNode} from "react"; - -import AccordionItem, {AccordionItemProps} from "./accordion-item"; -import Accordion, {AccordionProps} from "./accordion"; - -export interface AccordionTreeItemProps extends Omit { - contentMain?: ReactNode; - contentChildren?: AccordionTreeItemProps[]; -} - -export interface AccordionTreeProps extends Omit { - items: AccordionTreeItemProps[]; -} - -const AccordionTree = forwardRef((props, ref) => { - const { - items, - itemClasses: propsItemClasses, - className, - isCompact = true, - selectionMode = "multiple", - ...otherProps - } = props; - - const itemClasses = { - ...propsItemClasses, - trigger: propsItemClasses?.trigger ?? "py-1", - base: propsItemClasses?.base ?? "py-0", - }; - - return ( - - {items.map((item, index) => { - const {contentMain, contentChildren, ...itemProps} = item; - - return ( - - {contentMain && contentMain} - {contentChildren && ( - - )} - - ); - })} - - ); -}); - -AccordionTree.displayName = "NextUI.AccordionTree"; - -export default AccordionTree; diff --git a/packages/components/calendar/src/calendar-header.tsx b/packages/components/calendar/src/calendar-header.tsx index 7e04926dd1..9abc782aea 100644 --- a/packages/components/calendar/src/calendar-header.tsx +++ b/packages/components/calendar/src/calendar-header.tsx @@ -18,6 +18,8 @@ export interface CalendarHeaderProps extends HTMLNextUIProps<"header"> { buttonPickerProps?: ButtonProps; } +export const monthAndYearPickerToggle = "Month and year picker toggle"; + export function CalendarHeader(props: CalendarHeaderProps) { const {direction, date, currentMonth, buttonPickerProps} = props; @@ -99,6 +101,7 @@ export function CalendarHeader(props: CalendarHeaderProps) { return showMonthAndYearPickers ? (