@spark-ui/components 17.9.0-beta.1 → 17.9.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/FormFieldRequiredIndicator-CEB8Ez-q.js.map +1 -1
- package/dist/FormFieldRequiredIndicator-CzdpinIz.mjs.map +1 -1
- package/dist/accordion/AccordionItem.d.ts +3 -0
- package/dist/accordion/index.js.map +1 -1
- package/dist/accordion/index.mjs.map +1 -1
- package/dist/alert-dialog/AlertDialogAction.d.ts +3 -0
- package/dist/alert-dialog/AlertDialogBody.d.ts +3 -0
- package/dist/alert-dialog/AlertDialogCancel.d.ts +3 -0
- package/dist/alert-dialog/AlertDialogContent.d.ts +3 -0
- package/dist/alert-dialog/AlertDialogDescription.d.ts +3 -0
- package/dist/alert-dialog/AlertDialogFooter.d.ts +3 -0
- package/dist/alert-dialog/AlertDialogHeader.d.ts +3 -0
- package/dist/alert-dialog/AlertDialogOverlay.d.ts +3 -0
- package/dist/alert-dialog/AlertDialogPortal.d.ts +3 -0
- package/dist/alert-dialog/AlertDialogTitle.d.ts +3 -0
- package/dist/alert-dialog/AlertDialogTrigger.d.ts +3 -0
- package/dist/alert-dialog/index.js.map +1 -1
- package/dist/alert-dialog/index.mjs.map +1 -1
- package/dist/avatar/AvatarAction.d.ts +3 -0
- package/dist/avatar/AvatarImage.d.ts +3 -0
- package/dist/avatar/AvatarOnlineBadge.d.ts +3 -0
- package/dist/avatar/AvatarPlaceholder.d.ts +3 -0
- package/dist/avatar/AvatarUser.d.ts +3 -0
- package/dist/avatar/index.js.map +1 -1
- package/dist/avatar/index.mjs.map +1 -1
- package/dist/badge/index.js +1 -1
- package/dist/badge/index.js.map +1 -1
- package/dist/badge/index.mjs +3 -3
- package/dist/badge/index.mjs.map +1 -1
- package/dist/breadcrumb/BreadcrumbCurrentPage.d.ts +3 -0
- package/dist/breadcrumb/BreadcrumbItem.d.ts +3 -0
- package/dist/breadcrumb/BreadcrumbLink.d.ts +3 -0
- package/dist/breadcrumb/BreadcrumbSeparator.d.ts +3 -0
- package/dist/breadcrumb/index.js +1 -1
- package/dist/breadcrumb/index.js.map +1 -1
- package/dist/breadcrumb/index.mjs +1 -1
- package/dist/breadcrumb/index.mjs.map +1 -1
- package/dist/card/Backdrop.d.ts +17 -0
- package/dist/card/Content.d.ts +3 -0
- package/dist/card/index.js.map +1 -1
- package/dist/card/index.mjs.map +1 -1
- package/dist/carousel/CarouselControls.d.ts +3 -0
- package/dist/carousel/CarouselNextButton.d.ts +3 -0
- package/dist/carousel/CarouselPageIndicator.d.ts +3 -0
- package/dist/carousel/CarouselPagePicker.d.ts +3 -0
- package/dist/carousel/CarouselPrevButton.d.ts +3 -0
- package/dist/carousel/CarouselSlide.d.ts +3 -0
- package/dist/carousel/CarouselSlides.d.ts +3 -0
- package/dist/carousel/CarouselViewport.d.ts +3 -0
- package/dist/carousel/index.js.map +1 -1
- package/dist/carousel/index.mjs.map +1 -1
- package/dist/chip/ChipClearButton.d.ts +3 -0
- package/dist/chip/ChipContent.d.ts +3 -0
- package/dist/chip/ChipLeadingIcon.d.ts +3 -0
- package/dist/chip/ChipTrailingIcon.d.ts +3 -0
- package/dist/chip/index.js.map +1 -1
- package/dist/chip/index.mjs.map +1 -1
- package/dist/circular-meter/CircularMeterContent.d.ts +3 -0
- package/dist/circular-meter/CircularMeterLabel.d.ts +3 -0
- package/dist/circular-meter/CircularMeterTrack.d.ts +3 -0
- package/dist/circular-meter/CircularMeterValue.d.ts +3 -0
- package/dist/circular-meter/index.js.map +1 -1
- package/dist/circular-meter/index.mjs.map +1 -1
- package/dist/collapsible/Content.d.ts +3 -0
- package/dist/collapsible/Trigger.d.ts +3 -0
- package/dist/collapsible/index.js.map +1 -1
- package/dist/collapsible/index.mjs.map +1 -1
- package/dist/combobox/ComboboxClearButton.d.ts +3 -0
- package/dist/combobox/ComboboxDisclosure.d.ts +3 -0
- package/dist/combobox/ComboboxEmpty.d.ts +3 -0
- package/dist/combobox/ComboboxGroup.d.ts +3 -0
- package/dist/combobox/ComboboxInput.d.ts +3 -0
- package/dist/combobox/ComboboxItem.d.ts +3 -0
- package/dist/combobox/ComboboxItemIndicator.d.ts +3 -0
- package/dist/combobox/ComboboxItemText.d.ts +3 -0
- package/dist/combobox/ComboboxItems.d.ts +3 -0
- package/dist/combobox/ComboboxLabel.d.ts +3 -0
- package/dist/combobox/ComboboxLeadingIcon.d.ts +3 -0
- package/dist/combobox/ComboboxPopover.d.ts +3 -0
- package/dist/combobox/ComboboxPortal.d.ts +3 -0
- package/dist/combobox/ComboboxSelectedItems.d.ts +3 -0
- package/dist/combobox/ComboboxTrigger.d.ts +3 -0
- package/dist/combobox/index.js.map +1 -1
- package/dist/combobox/index.mjs.map +1 -1
- package/dist/dialog/DialogBody.d.ts +3 -0
- package/dist/dialog/DialogClose.d.ts +3 -0
- package/dist/dialog/DialogContent.d.ts +3 -0
- package/dist/dialog/DialogDescription.d.ts +3 -0
- package/dist/dialog/DialogFooter.d.ts +3 -0
- package/dist/dialog/DialogHeader.d.ts +3 -0
- package/dist/dialog/DialogOverlay.d.ts +3 -0
- package/dist/dialog/DialogPortal.d.ts +3 -0
- package/dist/dialog/DialogTitle.d.ts +3 -0
- package/dist/dialog/DialogTrigger.d.ts +3 -0
- package/dist/dialog/index.js.map +1 -1
- package/dist/dialog/index.mjs.map +1 -1
- package/dist/divider/DividerContent.d.ts +3 -0
- package/dist/divider/index.js.map +1 -1
- package/dist/divider/index.mjs.map +1 -1
- package/dist/drawer/DrawerBody.d.ts +3 -0
- package/dist/drawer/DrawerClose.d.ts +3 -0
- package/dist/drawer/DrawerCloseButton.d.ts +3 -0
- package/dist/drawer/DrawerContent.d.ts +3 -0
- package/dist/drawer/DrawerDescription.d.ts +3 -0
- package/dist/drawer/DrawerFooter.d.ts +3 -0
- package/dist/drawer/DrawerHeader.d.ts +3 -0
- package/dist/drawer/DrawerOverlay.d.ts +3 -0
- package/dist/drawer/DrawerPortal.d.ts +3 -0
- package/dist/drawer/DrawerTitle.d.ts +3 -0
- package/dist/drawer/DrawerTrigger.d.ts +3 -0
- package/dist/drawer/index.js.map +1 -1
- package/dist/drawer/index.mjs.map +1 -1
- package/dist/dropdown/DropdownDivider.d.ts +3 -0
- package/dist/dropdown/DropdownGroup.d.ts +3 -0
- package/dist/dropdown/DropdownItem.d.ts +3 -0
- package/dist/dropdown/DropdownItemIndicator.d.ts +3 -0
- package/dist/dropdown/DropdownItemText.d.ts +3 -0
- package/dist/dropdown/DropdownItems.d.ts +3 -0
- package/dist/dropdown/DropdownLabel.d.ts +3 -0
- package/dist/dropdown/DropdownLeadingIcon.d.ts +3 -0
- package/dist/dropdown/DropdownPopover.d.ts +3 -0
- package/dist/dropdown/DropdownPortal.d.ts +3 -0
- package/dist/dropdown/DropdownTrigger.d.ts +3 -0
- package/dist/dropdown/DropdownValue.d.ts +3 -0
- package/dist/dropdown/index.js.map +1 -1
- package/dist/dropdown/index.mjs.map +1 -1
- package/dist/file-upload/FileUploadAcceptedFile.d.ts +1 -0
- package/dist/file-upload/FileUploadContext.d.ts +1 -0
- package/dist/file-upload/FileUploadDropzone.d.ts +3 -0
- package/dist/file-upload/FileUploadItemDeleteTrigger.d.ts +3 -0
- package/dist/file-upload/FileUploadPreviewImage.d.ts +1 -0
- package/dist/file-upload/FileUploadRejectedFile.d.ts +1 -0
- package/dist/file-upload/FileUploadRejectedFileDeleteTrigger.d.ts +1 -0
- package/dist/file-upload/FileUploadTrigger.d.ts +3 -0
- package/dist/file-upload/index.js.map +1 -1
- package/dist/file-upload/index.mjs.map +1 -1
- package/dist/form-field/FormFieldAlertMessage.d.ts +1 -0
- package/dist/form-field/FormFieldCharactersCount.d.ts +1 -0
- package/dist/form-field/FormFieldControl.d.ts +1 -0
- package/dist/form-field/FormFieldErrorMessage.d.ts +1 -0
- package/dist/form-field/FormFieldHelperMessage.d.ts +1 -0
- package/dist/form-field/FormFieldLabel.d.ts +1 -0
- package/dist/form-field/FormFieldRequiredIndicator.d.ts +1 -0
- package/dist/form-field/FormFieldStateMessage.d.ts +3 -0
- package/dist/form-field/FormFieldSuccessMessage.d.ts +1 -0
- package/dist/form-field/index.js +1 -1
- package/dist/form-field/index.mjs +1 -1
- package/dist/{form-field-CYGgse45.js → form-field-1sKqNg7F.js} +2 -2
- package/dist/form-field-1sKqNg7F.js.map +1 -0
- package/dist/{form-field-CV5dzt-I.mjs → form-field-OhKW7u5I.mjs} +2 -2
- package/dist/form-field-OhKW7u5I.mjs.map +1 -0
- package/dist/input/InputLeadingIcon.d.ts +1 -0
- package/dist/input/InputTrailingIcon.d.ts +1 -0
- package/dist/input-BIuBpTEq.mjs.map +1 -1
- package/dist/input-Cx5cfgE8.js.map +1 -1
- package/dist/input-otp/InputOTPGroup.d.ts +3 -0
- package/dist/input-otp/InputOTPSeparator.d.ts +3 -0
- package/dist/input-otp/InputOTPSlot.d.ts +3 -0
- package/dist/input-otp/index.js.map +1 -1
- package/dist/input-otp/index.mjs.map +1 -1
- package/dist/kbd/index.js +1 -1
- package/dist/kbd/index.js.map +1 -1
- package/dist/kbd/index.mjs +1 -1
- package/dist/kbd/index.mjs.map +1 -1
- package/dist/label/LabelRequiredIndicator.d.ts +3 -0
- package/dist/label-BCSEss4U.js.map +1 -1
- package/dist/label-DDBRKLUX.mjs.map +1 -1
- package/dist/link-box/LinkBoxLink.d.ts +3 -0
- package/dist/link-box/LinkBoxRaised.d.ts +24 -0
- package/dist/link-box/index.js.map +1 -1
- package/dist/link-box/index.mjs.map +1 -1
- package/dist/menu/Menu.d.ts +15 -0
- package/dist/menu/MenuCheckboxItem.d.ts +20 -0
- package/dist/menu/MenuCheckboxItemIndicator.d.ts +25 -0
- package/dist/menu/MenuGroup.d.ts +12 -0
- package/dist/menu/MenuGroupLabel.d.ts +19 -0
- package/dist/menu/MenuItem.d.ts +19 -0
- package/dist/menu/MenuItemStyles.d.ts +5 -0
- package/dist/menu/MenuLinkItem.d.ts +27 -0
- package/dist/menu/MenuPopup.d.ts +19 -0
- package/dist/menu/MenuPortal.d.ts +12 -0
- package/dist/menu/MenuPositioner.d.ts +12 -0
- package/dist/menu/MenuRadioGroup.d.ts +12 -0
- package/dist/menu/MenuRadioItem.d.ts +20 -0
- package/dist/menu/MenuRadioItemIndicator.d.ts +25 -0
- package/dist/menu/MenuSeparator.d.ts +12 -0
- package/dist/menu/MenuSubmenu.d.ts +16 -0
- package/dist/menu/MenuSubmenuContext.d.ts +8 -0
- package/dist/menu/MenuSubmenuTrigger.d.ts +19 -0
- package/dist/menu/MenuTrigger.d.ts +21 -0
- package/dist/menu/index.d.mts +49 -0
- package/dist/menu/index.d.ts +49 -0
- package/dist/menu/index.js +2 -0
- package/dist/menu/index.js.map +1 -0
- package/dist/menu/index.mjs +289 -0
- package/dist/menu/index.mjs.map +1 -0
- package/dist/menu/useRenderSlot.d.ts +1 -0
- package/dist/meter/MeterLabel.d.ts +3 -0
- package/dist/meter/MeterTrack.d.ts +3 -0
- package/dist/meter/MeterValue.d.ts +3 -0
- package/dist/meter/index.js.map +1 -1
- package/dist/meter/index.mjs.map +1 -1
- package/dist/pagination/PaginationEllipsis.d.ts +3 -0
- package/dist/pagination/PaginationFirstPageTrigger.d.ts +3 -0
- package/dist/pagination/PaginationLastPageTrigger.d.ts +3 -0
- package/dist/pagination/PaginationNextTrigger.d.ts +3 -0
- package/dist/pagination/PaginationPages.d.ts +3 -0
- package/dist/pagination/PaginationPrevTrigger.d.ts +3 -0
- package/dist/pagination/index.js.map +1 -1
- package/dist/pagination/index.mjs.map +1 -1
- package/dist/popover/PopoverAnchor.d.ts +3 -0
- package/dist/popover/PopoverArrow.d.ts +3 -0
- package/dist/popover/PopoverCloseButton.d.ts +3 -0
- package/dist/popover/PopoverContent.d.ts +3 -0
- package/dist/popover/PopoverHeader.d.ts +3 -0
- package/dist/popover/PopoverPortal.d.ts +3 -0
- package/dist/popover/PopoverTrigger.d.ts +3 -0
- package/dist/popover-DKa4WOQV.mjs.map +1 -1
- package/dist/popover-ayPbAw59.js.map +1 -1
- package/dist/progress/ProgressLabel.d.ts +3 -0
- package/dist/progress/ProgressTrack.d.ts +1 -0
- package/dist/progress/ProgressValue.d.ts +1 -0
- package/dist/progress-C-Zs94G2.mjs.map +1 -1
- package/dist/progress-DaQt4olK.js.map +1 -1
- package/dist/progress-tracker/ProgressTrackerStep.d.ts +1 -0
- package/dist/progress-tracker/ProgressTrackerStepIndicator.d.ts +1 -0
- package/dist/progress-tracker/ProgressTrackerStepLabel.d.ts +1 -0
- package/dist/progress-tracker/index.js +1 -1
- package/dist/progress-tracker/index.js.map +1 -1
- package/dist/progress-tracker/index.mjs +2 -2
- package/dist/progress-tracker/index.mjs.map +1 -1
- package/dist/radio-group/Radio.d.ts +3 -0
- package/dist/radio-group/index.js.map +1 -1
- package/dist/radio-group/index.mjs.map +1 -1
- package/dist/rating/index.js +1 -1
- package/dist/rating/index.js.map +1 -1
- package/dist/rating/index.mjs +2 -2
- package/dist/rating/index.mjs.map +1 -1
- package/dist/rating-display/RatingDisplayCount.d.ts +1 -0
- package/dist/rating-display/RatingDisplayStars.d.ts +1 -0
- package/dist/rating-display/RatingDisplayValue.d.ts +1 -0
- package/dist/rating-display/index.js +1 -1
- package/dist/rating-display/index.js.map +1 -1
- package/dist/rating-display/index.mjs +4 -4
- package/dist/rating-display/index.mjs.map +1 -1
- package/dist/scrolling-list/ScrollingListControls.d.ts +1 -0
- package/dist/scrolling-list/ScrollingListItem.d.ts +1 -0
- package/dist/scrolling-list/ScrollingListItems.d.ts +1 -0
- package/dist/scrolling-list/ScrollingListNextButton.d.ts +1 -0
- package/dist/scrolling-list/ScrollingListPrevButton.d.ts +1 -0
- package/dist/scrolling-list/ScrollingListSkipButton.d.ts +1 -0
- package/dist/scrolling-list/index.js.map +1 -1
- package/dist/scrolling-list/index.mjs.map +1 -1
- package/dist/segmented-control/SegmentedControlIndicator.d.ts +1 -0
- package/dist/segmented-control/SegmentedControlItem.d.ts +1 -0
- package/dist/segmented-control/index.js.map +1 -1
- package/dist/segmented-control/index.mjs.map +1 -1
- package/dist/segmented-gauge/SegmentedGaugeLabel.d.ts +1 -0
- package/dist/segmented-gauge/SegmentedGaugeSegment.d.ts +3 -0
- package/dist/segmented-gauge/SegmentedGaugeTrack.d.ts +1 -0
- package/dist/segmented-gauge/index.js.map +1 -1
- package/dist/segmented-gauge/index.mjs.map +1 -1
- package/dist/select/SelectGroup.d.ts +3 -0
- package/dist/select/SelectItem.d.ts +3 -0
- package/dist/select/SelectItems.d.ts +3 -0
- package/dist/select/SelectLabel.d.ts +3 -0
- package/dist/select/SelectLeadingIcon.d.ts +3 -0
- package/dist/select/SelectPlaceholder.d.ts +3 -0
- package/dist/select/SelectTrigger.d.ts +3 -0
- package/dist/select/SelectValue.d.ts +3 -0
- package/dist/select/index.js.map +1 -1
- package/dist/select/index.mjs.map +1 -1
- package/dist/skeleton/SkeletonItem.d.ts +3 -0
- package/dist/skeleton/index.js.map +1 -1
- package/dist/skeleton/index.mjs.map +1 -1
- package/dist/slider/SliderControl.d.ts +1 -0
- package/dist/slider/SliderIndicator.d.ts +1 -0
- package/dist/slider/SliderLabel.d.ts +1 -0
- package/dist/slider/SliderMaxValue.d.ts +1 -0
- package/dist/slider/SliderMinValue.d.ts +1 -0
- package/dist/slider/SliderThumb.d.ts +1 -0
- package/dist/slider/SliderTrack.d.ts +1 -0
- package/dist/slider/SliderValue.d.ts +1 -3
- package/dist/slider/index.js.map +1 -1
- package/dist/slider/index.mjs.map +1 -1
- package/dist/stepper/index.js.map +1 -1
- package/dist/stepper/index.mjs.map +1 -1
- package/dist/table/TableBody.d.ts +1 -0
- package/dist/table/TableBulkBar.d.ts +15 -0
- package/dist/table/TableCell.d.ts +1 -0
- package/dist/table/TableColumn.d.ts +1 -0
- package/dist/table/TableHeader.d.ts +1 -0
- package/dist/table/TableRow.d.ts +1 -0
- package/dist/table/index.js.map +1 -1
- package/dist/table/index.mjs.map +1 -1
- package/dist/tabs/TabsContent.d.ts +1 -0
- package/dist/tabs/TabsList.d.ts +1 -0
- package/dist/tabs/TabsTrigger.d.ts +1 -0
- package/dist/tabs/index.js +1 -1
- package/dist/tabs/index.js.map +1 -1
- package/dist/tabs/index.mjs +1 -1
- package/dist/tabs/index.mjs.map +1 -1
- package/dist/text-link/index.js +1 -1
- package/dist/text-link/index.js.map +1 -1
- package/dist/text-link/index.mjs +1 -1
- package/dist/text-link/index.mjs.map +1 -1
- package/dist/textarea/TextareaClearButton.d.ts +1 -0
- package/dist/textarea/TextareaLeadingIcon.d.ts +1 -0
- package/dist/textarea/TextareaTrailingIcon.d.ts +1 -0
- package/dist/textarea/index.js.map +1 -1
- package/dist/textarea/index.mjs.map +1 -1
- package/package.json +5 -5
- package/dist/form-field-CV5dzt-I.mjs.map +0 -1
- package/dist/form-field-CYGgse45.js.map +0 -1
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Menu as BaseMenu } from '@base-ui/react/menu';
|
|
2
|
+
import { ComponentProps } from 'react';
|
|
3
|
+
export interface MenuSeparatorProps extends ComponentProps<typeof BaseMenu.Separator> {
|
|
4
|
+
}
|
|
5
|
+
/**
|
|
6
|
+
* A visual divider between menu items or groups.
|
|
7
|
+
* Creates clear separation between different sections of the menu.
|
|
8
|
+
*/
|
|
9
|
+
export declare const MenuSeparator: {
|
|
10
|
+
({ className, ...rest }: MenuSeparatorProps): import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
displayName: string;
|
|
12
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { Menu as BaseMenu } from '@base-ui/react/menu';
|
|
2
|
+
import { ComponentProps, ReactNode } from 'react';
|
|
3
|
+
export interface MenuSubmenuProps extends Omit<ComponentProps<typeof BaseMenu.SubmenuRoot>, 'children'> {
|
|
4
|
+
/**
|
|
5
|
+
* The content of the submenu (trigger, positioner, popup, etc.)
|
|
6
|
+
*/
|
|
7
|
+
children: ReactNode;
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* A nested submenu that appears when its trigger is activated.
|
|
11
|
+
* Inherits styling context from the parent menu.
|
|
12
|
+
*/
|
|
13
|
+
export declare const MenuSubmenu: {
|
|
14
|
+
({ children, ...rest }: MenuSubmenuProps): import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
displayName: string;
|
|
16
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { Menu as BaseMenu } from '@base-ui/react/menu';
|
|
2
|
+
import { ComponentProps, Ref } from 'react';
|
|
3
|
+
export interface MenuSubmenuTriggerProps extends Omit<ComponentProps<typeof BaseMenu.SubmenuTrigger>, 'render'> {
|
|
4
|
+
/**
|
|
5
|
+
* Change the component to the HTML tag or custom component of the only child.
|
|
6
|
+
* This will merge the original component props with the props of the supplied element/component and change the underlying DOM node.
|
|
7
|
+
* @default false
|
|
8
|
+
*/
|
|
9
|
+
asChild?: boolean;
|
|
10
|
+
ref?: Ref<HTMLDivElement>;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* A menu item that opens a submenu when activated.
|
|
14
|
+
* Displays an arrow indicator to show submenu availability.
|
|
15
|
+
*/
|
|
16
|
+
export declare const MenuSubmenuTrigger: {
|
|
17
|
+
({ asChild, children, className, ref, ...rest }: MenuSubmenuTriggerProps): import("react/jsx-runtime").JSX.Element;
|
|
18
|
+
displayName: string;
|
|
19
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { Menu as BaseMenu } from '@base-ui/react/menu';
|
|
2
|
+
import { ComponentProps, Ref } from 'react';
|
|
3
|
+
export interface MenuTriggerProps extends Omit<ComponentProps<typeof BaseMenu.Trigger>, 'render'> {
|
|
4
|
+
/**
|
|
5
|
+
* Change the component to the HTML tag or custom component of the only child.
|
|
6
|
+
* This will merge the original component props with the props of the supplied element/component and change the underlying DOM node.
|
|
7
|
+
* @default false
|
|
8
|
+
*/
|
|
9
|
+
asChild?: boolean;
|
|
10
|
+
ref?: Ref<HTMLButtonElement>;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* The button that toggles the menu.
|
|
14
|
+
* Renders a <button> element by default, or uses asChild for custom elements.
|
|
15
|
+
* When used with asChild and a Button component, automatically adds an ArrowHorizontalDown icon.
|
|
16
|
+
* Button components should use design="outlined" and intent="support".
|
|
17
|
+
*/
|
|
18
|
+
export declare const MenuTrigger: {
|
|
19
|
+
({ asChild, children, className, ref, ...rest }: MenuTriggerProps): import("react/jsx-runtime").JSX.Element;
|
|
20
|
+
displayName: string;
|
|
21
|
+
};
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { Menu as Root } from './Menu';
|
|
2
|
+
import { MenuCheckboxItem } from './MenuCheckboxItem';
|
|
3
|
+
import { MenuGroup } from './MenuGroup';
|
|
4
|
+
import { MenuGroupLabel } from './MenuGroupLabel';
|
|
5
|
+
import { MenuItem } from './MenuItem';
|
|
6
|
+
import { MenuLinkItem } from './MenuLinkItem';
|
|
7
|
+
import { MenuPopup } from './MenuPopup';
|
|
8
|
+
import { MenuPortal } from './MenuPortal';
|
|
9
|
+
import { MenuPositioner } from './MenuPositioner';
|
|
10
|
+
import { MenuRadioGroup } from './MenuRadioGroup';
|
|
11
|
+
import { MenuRadioItem } from './MenuRadioItem';
|
|
12
|
+
import { MenuSeparator } from './MenuSeparator';
|
|
13
|
+
import { MenuSubmenu } from './MenuSubmenu';
|
|
14
|
+
import { MenuSubmenuTrigger } from './MenuSubmenuTrigger';
|
|
15
|
+
import { MenuTrigger } from './MenuTrigger';
|
|
16
|
+
/**
|
|
17
|
+
* A menu component that enables users to select options from a dropdown menu triggered by a button or other interactive element.
|
|
18
|
+
*/
|
|
19
|
+
export declare const Menu: typeof Root & {
|
|
20
|
+
Trigger: typeof MenuTrigger;
|
|
21
|
+
Portal: typeof MenuPortal;
|
|
22
|
+
Positioner: typeof MenuPositioner;
|
|
23
|
+
Popup: typeof MenuPopup;
|
|
24
|
+
Item: typeof MenuItem;
|
|
25
|
+
LinkItem: typeof MenuLinkItem;
|
|
26
|
+
Submenu: typeof MenuSubmenu;
|
|
27
|
+
SubmenuTrigger: typeof MenuSubmenuTrigger;
|
|
28
|
+
Group: typeof MenuGroup;
|
|
29
|
+
GroupLabel: typeof MenuGroupLabel;
|
|
30
|
+
RadioGroup: typeof MenuRadioGroup;
|
|
31
|
+
RadioItem: typeof MenuRadioItem;
|
|
32
|
+
CheckboxItem: typeof MenuCheckboxItem;
|
|
33
|
+
Separator: typeof MenuSeparator;
|
|
34
|
+
};
|
|
35
|
+
export { type MenuProps } from './Menu';
|
|
36
|
+
export { type MenuTriggerProps } from './MenuTrigger';
|
|
37
|
+
export { type MenuPortalProps } from './MenuPortal';
|
|
38
|
+
export { type MenuPositionerProps } from './MenuPositioner';
|
|
39
|
+
export { type MenuPopupProps } from './MenuPopup';
|
|
40
|
+
export { type MenuItemProps } from './MenuItem';
|
|
41
|
+
export { type MenuLinkItemProps } from './MenuLinkItem';
|
|
42
|
+
export { type MenuSubmenuProps } from './MenuSubmenu';
|
|
43
|
+
export { type MenuSubmenuTriggerProps } from './MenuSubmenuTrigger';
|
|
44
|
+
export { type MenuGroupProps } from './MenuGroup';
|
|
45
|
+
export { type MenuGroupLabelProps } from './MenuGroupLabel';
|
|
46
|
+
export { type MenuRadioGroupProps } from './MenuRadioGroup';
|
|
47
|
+
export { type MenuRadioItemProps } from './MenuRadioItem';
|
|
48
|
+
export { type MenuCheckboxItemProps } from './MenuCheckboxItem';
|
|
49
|
+
export { type MenuSeparatorProps } from './MenuSeparator';
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { Menu as Root } from './Menu';
|
|
2
|
+
import { MenuCheckboxItem } from './MenuCheckboxItem';
|
|
3
|
+
import { MenuGroup } from './MenuGroup';
|
|
4
|
+
import { MenuGroupLabel } from './MenuGroupLabel';
|
|
5
|
+
import { MenuItem } from './MenuItem';
|
|
6
|
+
import { MenuLinkItem } from './MenuLinkItem';
|
|
7
|
+
import { MenuPopup } from './MenuPopup';
|
|
8
|
+
import { MenuPortal } from './MenuPortal';
|
|
9
|
+
import { MenuPositioner } from './MenuPositioner';
|
|
10
|
+
import { MenuRadioGroup } from './MenuRadioGroup';
|
|
11
|
+
import { MenuRadioItem } from './MenuRadioItem';
|
|
12
|
+
import { MenuSeparator } from './MenuSeparator';
|
|
13
|
+
import { MenuSubmenu } from './MenuSubmenu';
|
|
14
|
+
import { MenuSubmenuTrigger } from './MenuSubmenuTrigger';
|
|
15
|
+
import { MenuTrigger } from './MenuTrigger';
|
|
16
|
+
/**
|
|
17
|
+
* A menu component that enables users to select options from a dropdown menu triggered by a button or other interactive element.
|
|
18
|
+
*/
|
|
19
|
+
export declare const Menu: typeof Root & {
|
|
20
|
+
Trigger: typeof MenuTrigger;
|
|
21
|
+
Portal: typeof MenuPortal;
|
|
22
|
+
Positioner: typeof MenuPositioner;
|
|
23
|
+
Popup: typeof MenuPopup;
|
|
24
|
+
Item: typeof MenuItem;
|
|
25
|
+
LinkItem: typeof MenuLinkItem;
|
|
26
|
+
Submenu: typeof MenuSubmenu;
|
|
27
|
+
SubmenuTrigger: typeof MenuSubmenuTrigger;
|
|
28
|
+
Group: typeof MenuGroup;
|
|
29
|
+
GroupLabel: typeof MenuGroupLabel;
|
|
30
|
+
RadioGroup: typeof MenuRadioGroup;
|
|
31
|
+
RadioItem: typeof MenuRadioItem;
|
|
32
|
+
CheckboxItem: typeof MenuCheckboxItem;
|
|
33
|
+
Separator: typeof MenuSeparator;
|
|
34
|
+
};
|
|
35
|
+
export { type MenuProps } from './Menu';
|
|
36
|
+
export { type MenuTriggerProps } from './MenuTrigger';
|
|
37
|
+
export { type MenuPortalProps } from './MenuPortal';
|
|
38
|
+
export { type MenuPositionerProps } from './MenuPositioner';
|
|
39
|
+
export { type MenuPopupProps } from './MenuPopup';
|
|
40
|
+
export { type MenuItemProps } from './MenuItem';
|
|
41
|
+
export { type MenuLinkItemProps } from './MenuLinkItem';
|
|
42
|
+
export { type MenuSubmenuProps } from './MenuSubmenu';
|
|
43
|
+
export { type MenuSubmenuTriggerProps } from './MenuSubmenuTrigger';
|
|
44
|
+
export { type MenuGroupProps } from './MenuGroup';
|
|
45
|
+
export { type MenuGroupLabelProps } from './MenuGroupLabel';
|
|
46
|
+
export { type MenuRadioGroupProps } from './MenuRadioGroup';
|
|
47
|
+
export { type MenuRadioItemProps } from './MenuRadioItem';
|
|
48
|
+
export { type MenuCheckboxItemProps } from './MenuCheckboxItem';
|
|
49
|
+
export { type MenuSeparatorProps } from './MenuSeparator';
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`}),require(`../chunk-C91j1N6u.js`);const e=require(`../slot/index.js`),t=require(`../icon-CRPcdgYp.js`);let n=require(`class-variance-authority`),r=require(`react`),i=require(`react/jsx-runtime`),a=require(`@spark-ui/icons/ArrowHorizontalDown`),o=require(`@spark-ui/internal-utils`),s=require(`@spark-ui/icons/ArrowVerticalRight`),c=require(`@spark-ui/icons/Check`),l=require(`@base-ui/react/menu`),u=require(`@spark-ui/icons/Link`);var d=({children:e,...t})=>(0,i.jsx)(l.Menu.Root,{"data-spark-component":`menu`,...t,children:e});d.displayName=`Menu`;var f=(0,n.cva)([`gap-md flex w-full cursor-pointer items-center justify-start`,`text-left text-body-1`,`transition-colors duration-100`,`outline-none`,`focus-visible:u-outline focus-visible:-outline-offset-2`,`data-disabled:cursor-not-allowed data-disabled:opacity-dim-3`,`min-h-sz-44`,`px-lg py-md`,`data-highlighted:bg-surface-hovered`,`data-popup-open:bg-surface-hovered`],{variants:{intent:(0,o.makeVariants)({surface:[`text-on-surface`],main:[`text-on-surface`],support:[`text-on-surface`],accent:[`text-on-surface`],success:[`text-on-surface`],alert:[`text-on-surface`],danger:[`text-on-surface`],info:[`text-on-surface`],neutral:[`text-on-surface`]})},defaultVariants:{intent:`surface`}});function p(t){return t?({...t})=>(0,i.jsx)(e.Slot,{...t}):void 0}var m=({asChild:e=!1,children:r,className:a,ref:o,...s})=>{let u=p(e);return(0,i.jsxs)(l.Menu.CheckboxItem,{ref:o,"data-spark-component":`menu-checkbox-item`,render:u,className:(0,n.cx)(f({className:a}),`data-checked:font-bold`),...s,children:[(0,i.jsx)(l.Menu.CheckboxItemIndicator,{keepMounted:!0,className:(0,n.cx)(`mr-md flex shrink-0 items-center justify-center`,`w-sz-16 h-sz-16`,`transition-opacity`,`data-checked:opacity-100`,`opacity-0`),children:(0,i.jsx)(t.t,{size:`sm`,intent:`current`,children:(0,i.jsx)(c.Check,{})})}),r]})};m.displayName=`Menu.CheckboxItem`;var h=({children:e,className:t,...r})=>(0,i.jsx)(l.Menu.Group,{"data-spark-component":`menu-group`,className:(0,n.cx)(`py-sm`,t),...r,children:e});h.displayName=`Menu.Group`;var g=({asChild:e=!1,children:t,className:r,ref:a,...o})=>{let s=p(e);return(0,i.jsx)(l.Menu.GroupLabel,{ref:a,"data-spark-component":`menu-group-label`,render:s,className:(0,n.cx)(`text-on-surface/dim-1 text-body-2 font-bold`,`px-lg py-sm`,r),...o,children:t})};g.displayName=`Menu.GroupLabel`;var _=({asChild:e=!1,children:t,className:n,ref:r,...a})=>{let o=p(e);return(0,i.jsx)(l.Menu.Item,{ref:r,"data-spark-component":`menu-item`,render:o,className:f({className:n}),...a,children:t})};_.displayName=`Menu.Item`;var v=({children:e,href:n,target:r,rel:a,...o})=>(0,i.jsx)(_,{asChild:!0,...o,children:(0,i.jsxs)(`a`,{href:n,target:r,rel:a,children:[(0,i.jsx)(t.t,{size:`sm`,intent:`current`,className:`ml-auto shrink-0`,children:(0,i.jsx)(u.Link,{})}),(0,i.jsx)(`span`,{className:`flex-1`,children:e})]})});v.displayName=`Menu.LinkItem`;var y=({asChild:e=!1,children:t,className:r,ref:a,...o})=>{let s=p(e);return(0,i.jsx)(l.Menu.Popup,{ref:a,"data-spark-component":`menu-popup`,render:s,className:(0,n.cx)([`rounded-md bg-surface shadow-lg min-w-sz-192`,`p-sm`,`overflow-auto`,`z-popover`,`data-starting-style:opacity-0`,`data-ending-style:opacity-0`,`opacity-100`,`transition-opacity duration-200`],r),...o,children:t})};y.displayName=`Menu.Popup`;var b=({children:e,...t})=>(0,i.jsx)(l.Menu.Portal,{...t,children:e});b.displayName=`Menu.Portal`;var x=(0,r.createContext)(!1),S=()=>(0,r.useContext)(x),C=({children:e,sideOffset:t,...n})=>{let r=S()?0:8,a=t??r;return(0,i.jsx)(l.Menu.Positioner,{sideOffset:a,...n,children:e})};C.displayName=`Menu.Positioner`;var w=({children:e,className:t,...r})=>(0,i.jsx)(l.Menu.RadioGroup,{"data-spark-component":`menu-radio-group`,className:(0,n.cx)(`py-sm`,t),...r,children:e});w.displayName=`Menu.RadioGroup`;var T=({asChild:e=!1,children:r,className:a,ref:o,...s})=>{let u=p(e);return(0,i.jsxs)(l.Menu.RadioItem,{ref:o,"data-spark-component":`menu-radio-item`,render:u,className:(0,n.cx)(f({className:a}),`data-checked:font-bold`),...s,children:[(0,i.jsx)(l.Menu.RadioItemIndicator,{keepMounted:!0,className:(0,n.cx)(`mr-md flex shrink-0 items-center justify-center`,`w-sz-16 h-sz-16`,`transition-opacity`,`data-checked:opacity-100`,`opacity-0`),children:(0,i.jsx)(t.t,{size:`sm`,intent:`current`,children:(0,i.jsx)(c.Check,{})})}),r]})};T.displayName=`Menu.RadioItem`;var E=({className:e,...t})=>(0,i.jsx)(l.Menu.Separator,{"data-spark-component":`menu-separator`,className:(0,n.cx)(`my-sm h-px bg-outline/dim-2`,e),...t});E.displayName=`Menu.Separator`;var D=({children:e,...t})=>(0,i.jsx)(l.Menu.SubmenuRoot,{"data-spark-component":`menu-submenu`,...t,children:(0,i.jsx)(x.Provider,{value:!0,children:e})});D.displayName=`Menu.Submenu`;var O=({asChild:e=!1,children:n,className:r,ref:a,...o})=>{let c=p(e);return(0,i.jsxs)(l.Menu.SubmenuTrigger,{ref:a,"data-spark-component":`menu-submenu-trigger`,render:c,className:f({className:r}),...o,children:[(0,i.jsx)(`span`,{className:`flex-1`,children:n}),(0,i.jsx)(t.t,{size:`sm`,intent:`current`,className:`ml-auto shrink-0`,children:(0,i.jsx)(s.ArrowVerticalRight,{})})]})};O.displayName=`Menu.SubmenuTrigger`;var k=({asChild:e=!1,children:o,className:s,ref:c,...u})=>{let d=p(e),f=e&&(0,r.isValidElement)(o)?(0,r.cloneElement)(o,{design:o.props.design??`outlined`,intent:o.props.intent??`support`,children:(0,i.jsxs)(i.Fragment,{children:[o.props.children,(0,i.jsx)(t.t,{size:`sm`,intent:`current`,className:`shrink-0`,children:(0,i.jsx)(a.ArrowHorizontalDown,{})})]})}):o;return(0,i.jsx)(l.Menu.Trigger,{ref:c,"data-spark-component":`menu-trigger`,render:d,className:(0,n.cx)(`inline-flex items-center justify-center`,`focus-visible:u-outline`,s),...u,children:f})};k.displayName=`Menu.Trigger`;var A=Object.assign(d,{Trigger:k,Portal:b,Positioner:C,Popup:y,Item:_,LinkItem:v,Submenu:D,SubmenuTrigger:O,Group:h,GroupLabel:g,RadioGroup:w,RadioItem:T,CheckboxItem:m,Separator:E});A.displayName=`Menu`,k.displayName=`Menu.Trigger`,b.displayName=`Menu.Portal`,C.displayName=`Menu.Positioner`,y.displayName=`Menu.Popup`,_.displayName=`Menu.Item`,v.displayName=`Menu.LinkItem`,D.displayName=`Menu.Submenu`,O.displayName=`Menu.SubmenuTrigger`,h.displayName=`Menu.Group`,g.displayName=`Menu.GroupLabel`,w.displayName=`Menu.RadioGroup`,T.displayName=`Menu.RadioItem`,m.displayName=`Menu.CheckboxItem`,E.displayName=`Menu.Separator`,exports.Menu=A;
|
|
2
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["../../src/menu/Menu.tsx","../../src/menu/MenuItemStyles.tsx","../../src/menu/useRenderSlot.tsx","../../src/menu/MenuCheckboxItem.tsx","../../src/menu/MenuGroup.tsx","../../src/menu/MenuGroupLabel.tsx","../../src/menu/MenuItem.tsx","../../src/menu/MenuLinkItem.tsx","../../src/menu/MenuPopup.tsx","../../src/menu/MenuPortal.tsx","../../src/menu/MenuSubmenuContext.tsx","../../src/menu/MenuPositioner.tsx","../../src/menu/MenuRadioGroup.tsx","../../src/menu/MenuRadioItem.tsx","../../src/menu/MenuSeparator.tsx","../../src/menu/MenuSubmenu.tsx","../../src/menu/MenuSubmenuTrigger.tsx","../../src/menu/MenuTrigger.tsx","../../src/menu/index.ts"],"sourcesContent":["import { Menu as BaseMenu } from '@base-ui/react/menu'\nimport { type ComponentProps, type ReactNode } from 'react'\n\nexport interface MenuProps extends Omit<ComponentProps<typeof BaseMenu.Root>, 'children'> {\n /**\n * The content of the menu (trigger, portal, etc.)\n */\n children: ReactNode\n}\n\n/**\n * Root container for menu state and styling context.\n */\nexport const Menu = ({ children, ...rest }: MenuProps) => {\n return (\n <BaseMenu.Root data-spark-component=\"menu\" {...rest}>\n {children}\n </BaseMenu.Root>\n )\n}\n\nMenu.displayName = 'Menu'\n","import { makeVariants } from '@spark-ui/internal-utils'\nimport { cva, type VariantProps } from 'class-variance-authority'\n\nexport const menuItemStyles = cva(\n [\n 'gap-md flex w-full cursor-pointer items-center justify-start',\n 'text-left text-body-1',\n 'transition-colors duration-100',\n 'outline-none',\n 'focus-visible:u-outline focus-visible:-outline-offset-2',\n 'data-disabled:cursor-not-allowed data-disabled:opacity-dim-3',\n 'min-h-sz-44',\n 'px-lg py-md',\n 'data-highlighted:bg-surface-hovered',\n 'data-popup-open:bg-surface-hovered',\n ],\n {\n variants: {\n intent: makeVariants<\n 'intent',\n ['surface', 'main', 'support', 'accent', 'success', 'alert', 'danger', 'info', 'neutral']\n >({\n surface: ['text-on-surface'],\n main: ['text-on-surface'],\n support: ['text-on-surface'],\n accent: ['text-on-surface'],\n success: ['text-on-surface'],\n alert: ['text-on-surface'],\n danger: ['text-on-surface'],\n info: ['text-on-surface'],\n neutral: ['text-on-surface'],\n }),\n },\n defaultVariants: {\n intent: 'surface',\n },\n }\n)\n\nexport type MenuItemStylesProps = VariantProps<typeof menuItemStyles>\n","import { Slot } from '../slot'\n\nexport function useRenderSlot(asChild: boolean) {\n return asChild ? ({ ...props }: object) => <Slot {...props} /> : undefined\n}\n","import { Menu as BaseMenu } from '@base-ui/react/menu'\nimport { Check } from '@spark-ui/icons/Check'\nimport { cx } from 'class-variance-authority'\nimport { type ComponentProps, type Ref } from 'react'\n\nimport { Icon } from '../icon'\nimport { menuItemStyles } from './MenuItemStyles'\nimport { useRenderSlot } from './useRenderSlot'\n\nexport interface MenuCheckboxItemProps extends Omit<\n ComponentProps<typeof BaseMenu.CheckboxItem>,\n 'render'\n> {\n /**\n * Change the component to the HTML tag or custom component of the only child.\n * This will merge the original component props with the props of the supplied element/component and change the underlying DOM node.\n * @default false\n */\n asChild?: boolean\n ref?: Ref<HTMLDivElement>\n}\n\n/**\n * A menu item with checkbox functionality.\n * Can be toggled on and off, allowing multiple selections.\n * The checkbox indicator is automatically rendered on the left side.\n */\nexport const MenuCheckboxItem = ({\n asChild = false,\n children,\n className,\n ref,\n ...rest\n}: MenuCheckboxItemProps) => {\n const renderSlot = useRenderSlot(asChild)\n\n return (\n <BaseMenu.CheckboxItem\n ref={ref}\n data-spark-component=\"menu-checkbox-item\"\n render={renderSlot}\n className={cx(\n menuItemStyles({\n className,\n }),\n 'data-checked:font-bold'\n )}\n {...rest}\n >\n <BaseMenu.CheckboxItemIndicator\n keepMounted\n className={cx(\n 'mr-md flex shrink-0 items-center justify-center',\n 'w-sz-16 h-sz-16',\n 'transition-opacity',\n 'data-checked:opacity-100',\n 'opacity-0'\n )}\n >\n <Icon size=\"sm\" intent=\"current\">\n <Check />\n </Icon>\n </BaseMenu.CheckboxItemIndicator>\n {children}\n </BaseMenu.CheckboxItem>\n )\n}\n\nMenuCheckboxItem.displayName = 'Menu.CheckboxItem'\n","import { Menu as BaseMenu } from '@base-ui/react/menu'\nimport { cx } from 'class-variance-authority'\nimport { type ComponentProps } from 'react'\n\nexport interface MenuGroupProps extends ComponentProps<typeof BaseMenu.Group> {}\n\n/**\n * A container for grouping related menu items together.\n * Works with Menu.GroupLabel for semantic grouping.\n */\nexport const MenuGroup = ({ children, className, ...rest }: MenuGroupProps) => {\n return (\n <BaseMenu.Group data-spark-component=\"menu-group\" className={cx('py-sm', className)} {...rest}>\n {children}\n </BaseMenu.Group>\n )\n}\n\nMenuGroup.displayName = 'Menu.Group'\n","import { Menu as BaseMenu } from '@base-ui/react/menu'\nimport { cx } from 'class-variance-authority'\nimport { type ComponentProps, type Ref } from 'react'\n\nimport { useRenderSlot } from './useRenderSlot'\n\nexport interface MenuGroupLabelProps extends Omit<\n ComponentProps<typeof BaseMenu.GroupLabel>,\n 'render'\n> {\n /**\n * Change the component to the HTML tag or custom component of the only child.\n * This will merge the original component props with the props of the supplied element/component and change the underlying DOM node.\n * @default false\n */\n asChild?: boolean\n ref?: Ref<HTMLDivElement>\n}\n\n/**\n * A label for a group of menu items.\n * Provides semantic context and visual separation for grouped items.\n */\nexport const MenuGroupLabel = ({\n asChild = false,\n children,\n className,\n ref,\n ...rest\n}: MenuGroupLabelProps) => {\n const renderSlot = useRenderSlot(asChild)\n\n return (\n <BaseMenu.GroupLabel\n ref={ref}\n data-spark-component=\"menu-group-label\"\n render={renderSlot}\n className={cx('text-on-surface/dim-1 text-body-2 font-bold', 'px-lg py-sm', className)}\n {...rest}\n >\n {children}\n </BaseMenu.GroupLabel>\n )\n}\n\nMenuGroupLabel.displayName = 'Menu.GroupLabel'\n","import { Menu as BaseMenu } from '@base-ui/react/menu'\nimport { type ComponentProps, type Ref } from 'react'\n\nimport { menuItemStyles } from './MenuItemStyles'\nimport { useRenderSlot } from './useRenderSlot'\n\nexport interface MenuItemProps extends Omit<ComponentProps<typeof BaseMenu.Item>, 'render'> {\n /**\n * Change the component to the HTML tag or custom component of the only child.\n * This will merge the original component props with the props of the supplied element/component and change the underlying DOM node.\n * @default false\n */\n asChild?: boolean\n ref?: Ref<HTMLDivElement>\n}\n\n/**\n * A menu item that triggers an action when activated.\n * Renders a clickable menu option with keyboard support.\n */\nexport const MenuItem = ({ asChild = false, children, className, ref, ...rest }: MenuItemProps) => {\n const renderSlot = useRenderSlot(asChild)\n\n return (\n <BaseMenu.Item\n ref={ref}\n data-spark-component=\"menu-item\"\n render={renderSlot}\n className={menuItemStyles({\n className,\n })}\n {...rest}\n >\n {children}\n </BaseMenu.Item>\n )\n}\n\nMenuItem.displayName = 'Menu.Item'\n","import { Link } from '@spark-ui/icons/Link'\nimport { type ComponentPropsWithoutRef } from 'react'\n\nimport { Icon } from '../icon'\nimport { MenuItem } from './MenuItem'\n\nexport interface MenuLinkItemProps extends Omit<\n ComponentPropsWithoutRef<typeof MenuItem>,\n 'asChild'\n> {\n /**\n * The URL to navigate to.\n */\n href: string\n /**\n * Where to display the linked URL.\n * @default undefined\n */\n target?: string\n /**\n * The relationship between the current document and the linked document.\n * @default undefined\n */\n rel?: string\n}\n\n/**\n * A menu item that acts as a link.\n * Navigates to a URL when activated, useful for navigation menus.\n * Use with Next.js Link or React Router Link via the children prop.\n */\nexport const MenuLinkItem = ({ children, href, target, rel, ...rest }: MenuLinkItemProps) => {\n return (\n <MenuItem asChild {...rest}>\n <a href={href} target={target} rel={rel}>\n <Icon size=\"sm\" intent=\"current\" className=\"ml-auto shrink-0\">\n <Link />\n </Icon>\n <span className=\"flex-1\">{children}</span>\n </a>\n </MenuItem>\n )\n}\n\nMenuLinkItem.displayName = 'Menu.LinkItem'\n","import { Menu as BaseMenu } from '@base-ui/react/menu'\nimport { cx } from 'class-variance-authority'\nimport { type ComponentProps, type Ref } from 'react'\n\nimport { useRenderSlot } from './useRenderSlot'\n\nexport interface MenuPopupProps extends Omit<ComponentProps<typeof BaseMenu.Popup>, 'render'> {\n /**\n * Change the component to the HTML tag or custom component of the only child.\n * This will merge the original component props with the props of the supplied element/component and change the underlying DOM node.\n * @default false\n */\n asChild?: boolean\n ref?: Ref<HTMLDivElement>\n}\n\n/**\n * The scrollable menu container that holds menu items.\n * Serves as the viewport for menu content with overflow handling.\n */\nexport const MenuPopup = ({\n asChild = false,\n children,\n className,\n ref,\n ...rest\n}: MenuPopupProps) => {\n const renderSlot = useRenderSlot(asChild)\n\n return (\n <BaseMenu.Popup\n ref={ref}\n data-spark-component=\"menu-popup\"\n render={renderSlot}\n className={cx(\n [\n 'rounded-md bg-surface shadow-lg min-w-sz-192',\n 'p-sm',\n 'overflow-auto',\n 'z-popover',\n 'data-starting-style:opacity-0',\n 'data-ending-style:opacity-0',\n 'opacity-100',\n 'transition-opacity duration-200',\n ],\n className\n )}\n {...rest}\n >\n {children}\n </BaseMenu.Popup>\n )\n}\n\nMenuPopup.displayName = 'Menu.Popup'\n","import { Menu as BaseMenu } from '@base-ui/react/menu'\nimport { type ComponentProps } from 'react'\n\nexport interface MenuPortalProps extends ComponentProps<typeof BaseMenu.Portal> {}\n\n/**\n * Portal wrapper that renders the menu in a different part of the DOM tree.\n * Useful for avoiding z-index and overflow issues.\n */\nexport const MenuPortal = ({ children, ...rest }: MenuPortalProps) => {\n return <BaseMenu.Portal {...rest}>{children}</BaseMenu.Portal>\n}\n\nMenuPortal.displayName = 'Menu.Portal'\n","import { createContext, useContext } from 'react'\n\n/**\n * Context to track if we're inside a submenu\n */\nexport const MenuSubmenuContext = createContext<boolean>(false)\n\n/**\n * Hook to check if the current menu is a submenu\n */\nexport const useIsSubmenu = () => {\n return useContext(MenuSubmenuContext)\n}\n","import { Menu as BaseMenu } from '@base-ui/react/menu'\nimport { type ComponentProps } from 'react'\n\nimport { useIsSubmenu } from './MenuSubmenuContext'\n\nexport interface MenuPositionerProps extends ComponentProps<typeof BaseMenu.Positioner> {}\n\n/**\n * Positioning wrapper for the menu with collision detection.\n * Handles menu placement relative to the trigger and viewport boundaries.\n */\nexport const MenuPositioner = ({ children, sideOffset, ...rest }: MenuPositionerProps) => {\n const isSubmenu = useIsSubmenu()\n\n // Apply sideOffset of 8 for root menu, 0 for submenus (unless explicitly overridden)\n const defaultSideOffset = isSubmenu ? 0 : 8\n const finalSideOffset = sideOffset ?? defaultSideOffset\n\n return (\n <BaseMenu.Positioner sideOffset={finalSideOffset} {...rest}>\n {children}\n </BaseMenu.Positioner>\n )\n}\n\nMenuPositioner.displayName = 'Menu.Positioner'\n","import { Menu as BaseMenu } from '@base-ui/react/menu'\nimport { cx } from 'class-variance-authority'\nimport { type ComponentProps } from 'react'\n\nexport interface MenuRadioGroupProps extends ComponentProps<typeof BaseMenu.RadioGroup> {}\n\n/**\n * A container for radio menu items where only one item can be selected at a time.\n * Manages the selection state for its radio items.\n */\nexport const MenuRadioGroup = ({ children, className, ...rest }: MenuRadioGroupProps) => {\n return (\n <BaseMenu.RadioGroup\n data-spark-component=\"menu-radio-group\"\n className={cx('py-sm', className)}\n {...rest}\n >\n {children}\n </BaseMenu.RadioGroup>\n )\n}\n\nMenuRadioGroup.displayName = 'Menu.RadioGroup'\n","import { Menu as BaseMenu } from '@base-ui/react/menu'\nimport { Check } from '@spark-ui/icons/Check'\nimport { cx } from 'class-variance-authority'\nimport { type ComponentProps, type Ref } from 'react'\n\nimport { Icon } from '../icon'\nimport { menuItemStyles } from './MenuItemStyles'\nimport { useRenderSlot } from './useRenderSlot'\n\nexport interface MenuRadioItemProps extends Omit<\n ComponentProps<typeof BaseMenu.RadioItem>,\n 'render'\n> {\n /**\n * Change the component to the HTML tag or custom component of the only child.\n * This will merge the original component props with the props of the supplied element/component and change the underlying DOM node.\n * @default false\n */\n asChild?: boolean\n ref?: Ref<HTMLDivElement>\n}\n\n/**\n * A menu item with radio button functionality.\n * Only one radio item can be selected within its RadioGroup.\n * The radio indicator is automatically rendered on the left side.\n */\nexport const MenuRadioItem = ({\n asChild = false,\n children,\n className,\n ref,\n ...rest\n}: MenuRadioItemProps) => {\n const renderSlot = useRenderSlot(asChild)\n\n return (\n <BaseMenu.RadioItem\n ref={ref}\n data-spark-component=\"menu-radio-item\"\n render={renderSlot}\n className={cx(\n menuItemStyles({\n className,\n }),\n 'data-checked:font-bold'\n )}\n {...rest}\n >\n <BaseMenu.RadioItemIndicator\n keepMounted\n className={cx(\n 'mr-md flex shrink-0 items-center justify-center',\n 'w-sz-16 h-sz-16',\n 'transition-opacity',\n 'data-checked:opacity-100',\n 'opacity-0'\n )}\n >\n <Icon size=\"sm\" intent=\"current\">\n <Check />\n </Icon>\n </BaseMenu.RadioItemIndicator>\n {children}\n </BaseMenu.RadioItem>\n )\n}\n\nMenuRadioItem.displayName = 'Menu.RadioItem'\n","import { Menu as BaseMenu } from '@base-ui/react/menu'\nimport { cx } from 'class-variance-authority'\nimport { type ComponentProps } from 'react'\n\nexport interface MenuSeparatorProps extends ComponentProps<typeof BaseMenu.Separator> {}\n\n/**\n * A visual divider between menu items or groups.\n * Creates clear separation between different sections of the menu.\n */\nexport const MenuSeparator = ({ className, ...rest }: MenuSeparatorProps) => {\n return (\n <BaseMenu.Separator\n data-spark-component=\"menu-separator\"\n className={cx('my-sm h-px bg-outline/dim-2', className)}\n {...rest}\n />\n )\n}\n\nMenuSeparator.displayName = 'Menu.Separator'\n","import { Menu as BaseMenu } from '@base-ui/react/menu'\nimport { type ComponentProps, type ReactNode } from 'react'\n\nimport { MenuSubmenuContext } from './MenuSubmenuContext'\n\nexport interface MenuSubmenuProps extends Omit<\n ComponentProps<typeof BaseMenu.SubmenuRoot>,\n 'children'\n> {\n /**\n * The content of the submenu (trigger, positioner, popup, etc.)\n */\n children: ReactNode\n}\n\n/**\n * A nested submenu that appears when its trigger is activated.\n * Inherits styling context from the parent menu.\n */\nexport const MenuSubmenu = ({ children, ...rest }: MenuSubmenuProps) => {\n return (\n <BaseMenu.SubmenuRoot data-spark-component=\"menu-submenu\" {...rest}>\n <MenuSubmenuContext.Provider value={true}>{children}</MenuSubmenuContext.Provider>\n </BaseMenu.SubmenuRoot>\n )\n}\n\nMenuSubmenu.displayName = 'Menu.Submenu'\n","import { Menu as BaseMenu } from '@base-ui/react/menu'\nimport { ArrowVerticalRight } from '@spark-ui/icons/ArrowVerticalRight'\nimport { type ComponentProps, type Ref } from 'react'\n\nimport { Icon } from '../icon'\nimport { menuItemStyles } from './MenuItemStyles'\nimport { useRenderSlot } from './useRenderSlot'\n\nexport interface MenuSubmenuTriggerProps extends Omit<\n ComponentProps<typeof BaseMenu.SubmenuTrigger>,\n 'render'\n> {\n /**\n * Change the component to the HTML tag or custom component of the only child.\n * This will merge the original component props with the props of the supplied element/component and change the underlying DOM node.\n * @default false\n */\n asChild?: boolean\n ref?: Ref<HTMLDivElement>\n}\n\n/**\n * A menu item that opens a submenu when activated.\n * Displays an arrow indicator to show submenu availability.\n */\nexport const MenuSubmenuTrigger = ({\n asChild = false,\n children,\n className,\n ref,\n ...rest\n}: MenuSubmenuTriggerProps) => {\n const renderSlot = useRenderSlot(asChild)\n\n return (\n <BaseMenu.SubmenuTrigger\n ref={ref}\n data-spark-component=\"menu-submenu-trigger\"\n render={renderSlot}\n className={menuItemStyles({\n className,\n })}\n {...rest}\n >\n <span className=\"flex-1\">{children}</span>\n <Icon size=\"sm\" intent=\"current\" className=\"ml-auto shrink-0\">\n <ArrowVerticalRight />\n </Icon>\n </BaseMenu.SubmenuTrigger>\n )\n}\n\nMenuSubmenuTrigger.displayName = 'Menu.SubmenuTrigger'\n","import { Menu as BaseMenu } from '@base-ui/react/menu'\nimport { ArrowHorizontalDown } from '@spark-ui/icons/ArrowHorizontalDown'\nimport { cx } from 'class-variance-authority'\nimport {\n cloneElement,\n isValidElement,\n type ComponentProps,\n type ReactElement,\n type Ref,\n} from 'react'\n\nimport { Icon } from '../icon'\nimport { useRenderSlot } from './useRenderSlot'\n\nexport interface MenuTriggerProps extends Omit<ComponentProps<typeof BaseMenu.Trigger>, 'render'> {\n /**\n * Change the component to the HTML tag or custom component of the only child.\n * This will merge the original component props with the props of the supplied element/component and change the underlying DOM node.\n * @default false\n */\n asChild?: boolean\n ref?: Ref<HTMLButtonElement>\n}\n\n/**\n * The button that toggles the menu.\n * Renders a <button> element by default, or uses asChild for custom elements.\n * When used with asChild and a Button component, automatically adds an ArrowHorizontalDown icon.\n * Button components should use design=\"outlined\" and intent=\"support\".\n */\nexport const MenuTrigger = ({\n asChild = false,\n children,\n className,\n ref,\n ...rest\n}: MenuTriggerProps) => {\n const renderSlot = useRenderSlot(asChild)\n\n // When asChild is used with a Button, enhance it with the arrow icon\n const enhancedChildren =\n asChild && isValidElement(children)\n ? cloneElement(\n children as ReactElement,\n {\n design: (children.props as { design?: string }).design ?? 'outlined',\n intent: (children.props as { intent?: string }).intent ?? 'support',\n children: (\n <>\n {(children.props as { children: React.ReactNode }).children}\n <Icon size=\"sm\" intent=\"current\" className=\"shrink-0\">\n <ArrowHorizontalDown />\n </Icon>\n </>\n ),\n } as Partial<unknown>\n )\n : children\n\n return (\n <BaseMenu.Trigger\n ref={ref}\n data-spark-component=\"menu-trigger\"\n render={renderSlot}\n className={cx(\n 'inline-flex items-center justify-center',\n 'focus-visible:u-outline',\n className\n )}\n {...rest}\n >\n {enhancedChildren}\n </BaseMenu.Trigger>\n )\n}\n\nMenuTrigger.displayName = 'Menu.Trigger'\n","import { Menu as Root } from './Menu'\nimport { MenuCheckboxItem } from './MenuCheckboxItem'\nimport { MenuGroup } from './MenuGroup'\nimport { MenuGroupLabel } from './MenuGroupLabel'\nimport { MenuItem } from './MenuItem'\nimport { MenuLinkItem } from './MenuLinkItem'\nimport { MenuPopup } from './MenuPopup'\nimport { MenuPortal } from './MenuPortal'\nimport { MenuPositioner } from './MenuPositioner'\nimport { MenuRadioGroup } from './MenuRadioGroup'\nimport { MenuRadioItem } from './MenuRadioItem'\nimport { MenuSeparator } from './MenuSeparator'\nimport { MenuSubmenu } from './MenuSubmenu'\nimport { MenuSubmenuTrigger } from './MenuSubmenuTrigger'\nimport { MenuTrigger } from './MenuTrigger'\n\n/**\n * A menu component that enables users to select options from a dropdown menu triggered by a button or other interactive element.\n */\nexport const Menu: typeof Root & {\n Trigger: typeof MenuTrigger\n Portal: typeof MenuPortal\n Positioner: typeof MenuPositioner\n Popup: typeof MenuPopup\n Item: typeof MenuItem\n LinkItem: typeof MenuLinkItem\n Submenu: typeof MenuSubmenu\n SubmenuTrigger: typeof MenuSubmenuTrigger\n Group: typeof MenuGroup\n GroupLabel: typeof MenuGroupLabel\n RadioGroup: typeof MenuRadioGroup\n RadioItem: typeof MenuRadioItem\n CheckboxItem: typeof MenuCheckboxItem\n Separator: typeof MenuSeparator\n} = Object.assign(Root, {\n Trigger: MenuTrigger,\n Portal: MenuPortal,\n Positioner: MenuPositioner,\n Popup: MenuPopup,\n Item: MenuItem,\n LinkItem: MenuLinkItem,\n Submenu: MenuSubmenu,\n SubmenuTrigger: MenuSubmenuTrigger,\n Group: MenuGroup,\n GroupLabel: MenuGroupLabel,\n RadioGroup: MenuRadioGroup,\n RadioItem: MenuRadioItem,\n CheckboxItem: MenuCheckboxItem,\n Separator: MenuSeparator,\n})\n\nMenu.displayName = 'Menu'\nMenuTrigger.displayName = 'Menu.Trigger'\nMenuPortal.displayName = 'Menu.Portal'\nMenuPositioner.displayName = 'Menu.Positioner'\nMenuPopup.displayName = 'Menu.Popup'\nMenuItem.displayName = 'Menu.Item'\nMenuLinkItem.displayName = 'Menu.LinkItem'\nMenuSubmenu.displayName = 'Menu.Submenu'\nMenuSubmenuTrigger.displayName = 'Menu.SubmenuTrigger'\nMenuGroup.displayName = 'Menu.Group'\nMenuGroupLabel.displayName = 'Menu.GroupLabel'\nMenuRadioGroup.displayName = 'Menu.RadioGroup'\nMenuRadioItem.displayName = 'Menu.RadioItem'\nMenuCheckboxItem.displayName = 'Menu.CheckboxItem'\nMenuSeparator.displayName = 'Menu.Separator'\n\nexport { type MenuProps } from './Menu'\nexport { type MenuTriggerProps } from './MenuTrigger'\nexport { type MenuPortalProps } from './MenuPortal'\nexport { type MenuPositionerProps } from './MenuPositioner'\nexport { type MenuPopupProps } from './MenuPopup'\nexport { type MenuItemProps } from './MenuItem'\nexport { type MenuLinkItemProps } from './MenuLinkItem'\nexport { type MenuSubmenuProps } from './MenuSubmenu'\nexport { type MenuSubmenuTriggerProps } from './MenuSubmenuTrigger'\nexport { type MenuGroupProps } from './MenuGroup'\nexport { type MenuGroupLabelProps } from './MenuGroupLabel'\nexport { type MenuRadioGroupProps } from './MenuRadioGroup'\nexport { type MenuRadioItemProps } from './MenuRadioItem'\nexport { type MenuCheckboxItemProps } from './MenuCheckboxItem'\nexport { type MenuSeparatorProps } from './MenuSeparator'\n"],"mappings":"ifAaA,IAAa,GAAQ,CAAE,WAAU,GAAG,MAEhC,EAAA,EAAA,KAAC,EAAA,KAAS,KAAV,CAAe,uBAAqB,OAAO,GAAI,EAC5C,WACa,CAAA,CAIpB,EAAK,YAAc,OClBnB,IAAa,GAAA,EAAA,EAAA,KACX,CACE,+DACA,wBACA,iCACA,eACA,0DACA,+DACA,cACA,cACA,sCACA,qCACD,CACD,CACE,SAAU,CACR,QAAA,EAAA,EAAA,cAGE,CACA,QAAS,CAAC,kBAAkB,CAC5B,KAAM,CAAC,kBAAkB,CACzB,QAAS,CAAC,kBAAkB,CAC5B,OAAQ,CAAC,kBAAkB,CAC3B,QAAS,CAAC,kBAAkB,CAC5B,MAAO,CAAC,kBAAkB,CAC1B,OAAQ,CAAC,kBAAkB,CAC3B,KAAM,CAAC,kBAAkB,CACzB,QAAS,CAAC,kBAAkB,CAC7B,CAAC,CACH,CACD,gBAAiB,CACf,OAAQ,UACT,CACF,CACF,CCnCD,SAAgB,EAAc,EAAkB,CAC9C,OAAO,GAAW,CAAE,GAAG,MAAoB,EAAA,EAAA,KAAC,EAAA,KAAD,CAAM,GAAI,EAAS,CAAA,CAAG,IAAA,GCwBnE,IAAa,GAAoB,CAC/B,UAAU,GACV,WACA,YACA,MACA,GAAG,KACwB,CAC3B,IAAM,EAAa,EAAc,EAAQ,CAEzC,OACE,EAAA,EAAA,MAAC,EAAA,KAAS,aAAV,CACO,MACL,uBAAqB,qBACrB,OAAQ,EACR,WAAA,EAAA,EAAA,IACE,EAAe,CACb,YACD,CAAC,CACF,yBACD,CACD,GAAI,WAVN,EAYE,EAAA,EAAA,KAAC,EAAA,KAAS,sBAAV,CACE,YAAA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|
+
import { cva as n, cx as r } from "class-variance-authority";
|
|
4
|
+
import { cloneElement as i, createContext as a, isValidElement as o, useContext as s } from "react";
|
|
5
|
+
import { Fragment as c, jsx as l, jsxs as u } from "react/jsx-runtime";
|
|
6
|
+
import { ArrowHorizontalDown as d } from "@spark-ui/icons/ArrowHorizontalDown";
|
|
7
|
+
import { makeVariants as f } from "@spark-ui/internal-utils";
|
|
8
|
+
import { ArrowVerticalRight as p } from "@spark-ui/icons/ArrowVerticalRight";
|
|
9
|
+
import { Check as m } from "@spark-ui/icons/Check";
|
|
10
|
+
import { Menu as h } from "@base-ui/react/menu";
|
|
11
|
+
import { Link as g } from "@spark-ui/icons/Link";
|
|
12
|
+
//#region src/menu/Menu.tsx
|
|
13
|
+
var _ = ({ children: e, ...t }) => /* @__PURE__ */ l(h.Root, {
|
|
14
|
+
"data-spark-component": "menu",
|
|
15
|
+
...t,
|
|
16
|
+
children: e
|
|
17
|
+
});
|
|
18
|
+
_.displayName = "Menu";
|
|
19
|
+
//#endregion
|
|
20
|
+
//#region src/menu/MenuItemStyles.tsx
|
|
21
|
+
var v = n([
|
|
22
|
+
"gap-md flex w-full cursor-pointer items-center justify-start",
|
|
23
|
+
"text-left text-body-1",
|
|
24
|
+
"transition-colors duration-100",
|
|
25
|
+
"outline-none",
|
|
26
|
+
"focus-visible:u-outline focus-visible:-outline-offset-2",
|
|
27
|
+
"data-disabled:cursor-not-allowed data-disabled:opacity-dim-3",
|
|
28
|
+
"min-h-sz-44",
|
|
29
|
+
"px-lg py-md",
|
|
30
|
+
"data-highlighted:bg-surface-hovered",
|
|
31
|
+
"data-popup-open:bg-surface-hovered"
|
|
32
|
+
], {
|
|
33
|
+
variants: { intent: f({
|
|
34
|
+
surface: ["text-on-surface"],
|
|
35
|
+
main: ["text-on-surface"],
|
|
36
|
+
support: ["text-on-surface"],
|
|
37
|
+
accent: ["text-on-surface"],
|
|
38
|
+
success: ["text-on-surface"],
|
|
39
|
+
alert: ["text-on-surface"],
|
|
40
|
+
danger: ["text-on-surface"],
|
|
41
|
+
info: ["text-on-surface"],
|
|
42
|
+
neutral: ["text-on-surface"]
|
|
43
|
+
}) },
|
|
44
|
+
defaultVariants: { intent: "surface" }
|
|
45
|
+
});
|
|
46
|
+
//#endregion
|
|
47
|
+
//#region src/menu/useRenderSlot.tsx
|
|
48
|
+
function y(t) {
|
|
49
|
+
return t ? ({ ...t }) => /* @__PURE__ */ l(e, { ...t }) : void 0;
|
|
50
|
+
}
|
|
51
|
+
//#endregion
|
|
52
|
+
//#region src/menu/MenuCheckboxItem.tsx
|
|
53
|
+
var b = ({ asChild: e = !1, children: n, className: i, ref: a, ...o }) => {
|
|
54
|
+
let s = y(e);
|
|
55
|
+
return /* @__PURE__ */ u(h.CheckboxItem, {
|
|
56
|
+
ref: a,
|
|
57
|
+
"data-spark-component": "menu-checkbox-item",
|
|
58
|
+
render: s,
|
|
59
|
+
className: r(v({ className: i }), "data-checked:font-bold"),
|
|
60
|
+
...o,
|
|
61
|
+
children: [/* @__PURE__ */ l(h.CheckboxItemIndicator, {
|
|
62
|
+
keepMounted: !0,
|
|
63
|
+
className: r("mr-md flex shrink-0 items-center justify-center", "w-sz-16 h-sz-16", "transition-opacity", "data-checked:opacity-100", "opacity-0"),
|
|
64
|
+
children: /* @__PURE__ */ l(t, {
|
|
65
|
+
size: "sm",
|
|
66
|
+
intent: "current",
|
|
67
|
+
children: /* @__PURE__ */ l(m, {})
|
|
68
|
+
})
|
|
69
|
+
}), n]
|
|
70
|
+
});
|
|
71
|
+
};
|
|
72
|
+
b.displayName = "Menu.CheckboxItem";
|
|
73
|
+
//#endregion
|
|
74
|
+
//#region src/menu/MenuGroup.tsx
|
|
75
|
+
var x = ({ children: e, className: t, ...n }) => /* @__PURE__ */ l(h.Group, {
|
|
76
|
+
"data-spark-component": "menu-group",
|
|
77
|
+
className: r("py-sm", t),
|
|
78
|
+
...n,
|
|
79
|
+
children: e
|
|
80
|
+
});
|
|
81
|
+
x.displayName = "Menu.Group";
|
|
82
|
+
//#endregion
|
|
83
|
+
//#region src/menu/MenuGroupLabel.tsx
|
|
84
|
+
var S = ({ asChild: e = !1, children: t, className: n, ref: i, ...a }) => {
|
|
85
|
+
let o = y(e);
|
|
86
|
+
return /* @__PURE__ */ l(h.GroupLabel, {
|
|
87
|
+
ref: i,
|
|
88
|
+
"data-spark-component": "menu-group-label",
|
|
89
|
+
render: o,
|
|
90
|
+
className: r("text-on-surface/dim-1 text-body-2 font-bold", "px-lg py-sm", n),
|
|
91
|
+
...a,
|
|
92
|
+
children: t
|
|
93
|
+
});
|
|
94
|
+
};
|
|
95
|
+
S.displayName = "Menu.GroupLabel";
|
|
96
|
+
//#endregion
|
|
97
|
+
//#region src/menu/MenuItem.tsx
|
|
98
|
+
var C = ({ asChild: e = !1, children: t, className: n, ref: r, ...i }) => {
|
|
99
|
+
let a = y(e);
|
|
100
|
+
return /* @__PURE__ */ l(h.Item, {
|
|
101
|
+
ref: r,
|
|
102
|
+
"data-spark-component": "menu-item",
|
|
103
|
+
render: a,
|
|
104
|
+
className: v({ className: n }),
|
|
105
|
+
...i,
|
|
106
|
+
children: t
|
|
107
|
+
});
|
|
108
|
+
};
|
|
109
|
+
C.displayName = "Menu.Item";
|
|
110
|
+
//#endregion
|
|
111
|
+
//#region src/menu/MenuLinkItem.tsx
|
|
112
|
+
var w = ({ children: e, href: n, target: r, rel: i, ...a }) => /* @__PURE__ */ l(C, {
|
|
113
|
+
asChild: !0,
|
|
114
|
+
...a,
|
|
115
|
+
children: /* @__PURE__ */ u("a", {
|
|
116
|
+
href: n,
|
|
117
|
+
target: r,
|
|
118
|
+
rel: i,
|
|
119
|
+
children: [/* @__PURE__ */ l(t, {
|
|
120
|
+
size: "sm",
|
|
121
|
+
intent: "current",
|
|
122
|
+
className: "ml-auto shrink-0",
|
|
123
|
+
children: /* @__PURE__ */ l(g, {})
|
|
124
|
+
}), /* @__PURE__ */ l("span", {
|
|
125
|
+
className: "flex-1",
|
|
126
|
+
children: e
|
|
127
|
+
})]
|
|
128
|
+
})
|
|
129
|
+
});
|
|
130
|
+
w.displayName = "Menu.LinkItem";
|
|
131
|
+
//#endregion
|
|
132
|
+
//#region src/menu/MenuPopup.tsx
|
|
133
|
+
var T = ({ asChild: e = !1, children: t, className: n, ref: i, ...a }) => {
|
|
134
|
+
let o = y(e);
|
|
135
|
+
return /* @__PURE__ */ l(h.Popup, {
|
|
136
|
+
ref: i,
|
|
137
|
+
"data-spark-component": "menu-popup",
|
|
138
|
+
render: o,
|
|
139
|
+
className: r([
|
|
140
|
+
"rounded-md bg-surface shadow-lg min-w-sz-192",
|
|
141
|
+
"p-sm",
|
|
142
|
+
"overflow-auto",
|
|
143
|
+
"z-popover",
|
|
144
|
+
"data-starting-style:opacity-0",
|
|
145
|
+
"data-ending-style:opacity-0",
|
|
146
|
+
"opacity-100",
|
|
147
|
+
"transition-opacity duration-200"
|
|
148
|
+
], n),
|
|
149
|
+
...a,
|
|
150
|
+
children: t
|
|
151
|
+
});
|
|
152
|
+
};
|
|
153
|
+
T.displayName = "Menu.Popup";
|
|
154
|
+
//#endregion
|
|
155
|
+
//#region src/menu/MenuPortal.tsx
|
|
156
|
+
var E = ({ children: e, ...t }) => /* @__PURE__ */ l(h.Portal, {
|
|
157
|
+
...t,
|
|
158
|
+
children: e
|
|
159
|
+
});
|
|
160
|
+
E.displayName = "Menu.Portal";
|
|
161
|
+
//#endregion
|
|
162
|
+
//#region src/menu/MenuSubmenuContext.tsx
|
|
163
|
+
var D = a(!1), O = () => s(D), k = ({ children: e, sideOffset: t, ...n }) => {
|
|
164
|
+
let r = O() ? 0 : 8, i = t ?? r;
|
|
165
|
+
return /* @__PURE__ */ l(h.Positioner, {
|
|
166
|
+
sideOffset: i,
|
|
167
|
+
...n,
|
|
168
|
+
children: e
|
|
169
|
+
});
|
|
170
|
+
};
|
|
171
|
+
k.displayName = "Menu.Positioner";
|
|
172
|
+
//#endregion
|
|
173
|
+
//#region src/menu/MenuRadioGroup.tsx
|
|
174
|
+
var A = ({ children: e, className: t, ...n }) => /* @__PURE__ */ l(h.RadioGroup, {
|
|
175
|
+
"data-spark-component": "menu-radio-group",
|
|
176
|
+
className: r("py-sm", t),
|
|
177
|
+
...n,
|
|
178
|
+
children: e
|
|
179
|
+
});
|
|
180
|
+
A.displayName = "Menu.RadioGroup";
|
|
181
|
+
//#endregion
|
|
182
|
+
//#region src/menu/MenuRadioItem.tsx
|
|
183
|
+
var j = ({ asChild: e = !1, children: n, className: i, ref: a, ...o }) => {
|
|
184
|
+
let s = y(e);
|
|
185
|
+
return /* @__PURE__ */ u(h.RadioItem, {
|
|
186
|
+
ref: a,
|
|
187
|
+
"data-spark-component": "menu-radio-item",
|
|
188
|
+
render: s,
|
|
189
|
+
className: r(v({ className: i }), "data-checked:font-bold"),
|
|
190
|
+
...o,
|
|
191
|
+
children: [/* @__PURE__ */ l(h.RadioItemIndicator, {
|
|
192
|
+
keepMounted: !0,
|
|
193
|
+
className: r("mr-md flex shrink-0 items-center justify-center", "w-sz-16 h-sz-16", "transition-opacity", "data-checked:opacity-100", "opacity-0"),
|
|
194
|
+
children: /* @__PURE__ */ l(t, {
|
|
195
|
+
size: "sm",
|
|
196
|
+
intent: "current",
|
|
197
|
+
children: /* @__PURE__ */ l(m, {})
|
|
198
|
+
})
|
|
199
|
+
}), n]
|
|
200
|
+
});
|
|
201
|
+
};
|
|
202
|
+
j.displayName = "Menu.RadioItem";
|
|
203
|
+
//#endregion
|
|
204
|
+
//#region src/menu/MenuSeparator.tsx
|
|
205
|
+
var M = ({ className: e, ...t }) => /* @__PURE__ */ l(h.Separator, {
|
|
206
|
+
"data-spark-component": "menu-separator",
|
|
207
|
+
className: r("my-sm h-px bg-outline/dim-2", e),
|
|
208
|
+
...t
|
|
209
|
+
});
|
|
210
|
+
M.displayName = "Menu.Separator";
|
|
211
|
+
//#endregion
|
|
212
|
+
//#region src/menu/MenuSubmenu.tsx
|
|
213
|
+
var N = ({ children: e, ...t }) => /* @__PURE__ */ l(h.SubmenuRoot, {
|
|
214
|
+
"data-spark-component": "menu-submenu",
|
|
215
|
+
...t,
|
|
216
|
+
children: /* @__PURE__ */ l(D.Provider, {
|
|
217
|
+
value: !0,
|
|
218
|
+
children: e
|
|
219
|
+
})
|
|
220
|
+
});
|
|
221
|
+
N.displayName = "Menu.Submenu";
|
|
222
|
+
//#endregion
|
|
223
|
+
//#region src/menu/MenuSubmenuTrigger.tsx
|
|
224
|
+
var P = ({ asChild: e = !1, children: n, className: r, ref: i, ...a }) => {
|
|
225
|
+
let o = y(e);
|
|
226
|
+
return /* @__PURE__ */ u(h.SubmenuTrigger, {
|
|
227
|
+
ref: i,
|
|
228
|
+
"data-spark-component": "menu-submenu-trigger",
|
|
229
|
+
render: o,
|
|
230
|
+
className: v({ className: r }),
|
|
231
|
+
...a,
|
|
232
|
+
children: [/* @__PURE__ */ l("span", {
|
|
233
|
+
className: "flex-1",
|
|
234
|
+
children: n
|
|
235
|
+
}), /* @__PURE__ */ l(t, {
|
|
236
|
+
size: "sm",
|
|
237
|
+
intent: "current",
|
|
238
|
+
className: "ml-auto shrink-0",
|
|
239
|
+
children: /* @__PURE__ */ l(p, {})
|
|
240
|
+
})]
|
|
241
|
+
});
|
|
242
|
+
};
|
|
243
|
+
P.displayName = "Menu.SubmenuTrigger";
|
|
244
|
+
//#endregion
|
|
245
|
+
//#region src/menu/MenuTrigger.tsx
|
|
246
|
+
var F = ({ asChild: e = !1, children: n, className: a, ref: s, ...f }) => {
|
|
247
|
+
let p = y(e), m = e && o(n) ? i(n, {
|
|
248
|
+
design: n.props.design ?? "outlined",
|
|
249
|
+
intent: n.props.intent ?? "support",
|
|
250
|
+
children: /* @__PURE__ */ u(c, { children: [n.props.children, /* @__PURE__ */ l(t, {
|
|
251
|
+
size: "sm",
|
|
252
|
+
intent: "current",
|
|
253
|
+
className: "shrink-0",
|
|
254
|
+
children: /* @__PURE__ */ l(d, {})
|
|
255
|
+
})] })
|
|
256
|
+
}) : n;
|
|
257
|
+
return /* @__PURE__ */ l(h.Trigger, {
|
|
258
|
+
ref: s,
|
|
259
|
+
"data-spark-component": "menu-trigger",
|
|
260
|
+
render: p,
|
|
261
|
+
className: r("inline-flex items-center justify-center", "focus-visible:u-outline", a),
|
|
262
|
+
...f,
|
|
263
|
+
children: m
|
|
264
|
+
});
|
|
265
|
+
};
|
|
266
|
+
F.displayName = "Menu.Trigger";
|
|
267
|
+
//#endregion
|
|
268
|
+
//#region src/menu/index.ts
|
|
269
|
+
var I = Object.assign(_, {
|
|
270
|
+
Trigger: F,
|
|
271
|
+
Portal: E,
|
|
272
|
+
Positioner: k,
|
|
273
|
+
Popup: T,
|
|
274
|
+
Item: C,
|
|
275
|
+
LinkItem: w,
|
|
276
|
+
Submenu: N,
|
|
277
|
+
SubmenuTrigger: P,
|
|
278
|
+
Group: x,
|
|
279
|
+
GroupLabel: S,
|
|
280
|
+
RadioGroup: A,
|
|
281
|
+
RadioItem: j,
|
|
282
|
+
CheckboxItem: b,
|
|
283
|
+
Separator: M
|
|
284
|
+
});
|
|
285
|
+
I.displayName = "Menu", F.displayName = "Menu.Trigger", E.displayName = "Menu.Portal", k.displayName = "Menu.Positioner", T.displayName = "Menu.Popup", C.displayName = "Menu.Item", w.displayName = "Menu.LinkItem", N.displayName = "Menu.Submenu", P.displayName = "Menu.SubmenuTrigger", x.displayName = "Menu.Group", S.displayName = "Menu.GroupLabel", A.displayName = "Menu.RadioGroup", j.displayName = "Menu.RadioItem", b.displayName = "Menu.CheckboxItem", M.displayName = "Menu.Separator";
|
|
286
|
+
//#endregion
|
|
287
|
+
export { I as Menu };
|
|
288
|
+
|
|
289
|
+
//# sourceMappingURL=index.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.mjs","names":[],"sources":["../../src/menu/Menu.tsx","../../src/menu/MenuItemStyles.tsx","../../src/menu/useRenderSlot.tsx","../../src/menu/MenuCheckboxItem.tsx","../../src/menu/MenuGroup.tsx","../../src/menu/MenuGroupLabel.tsx","../../src/menu/MenuItem.tsx","../../src/menu/MenuLinkItem.tsx","../../src/menu/MenuPopup.tsx","../../src/menu/MenuPortal.tsx","../../src/menu/MenuSubmenuContext.tsx","../../src/menu/MenuPositioner.tsx","../../src/menu/MenuRadioGroup.tsx","../../src/menu/MenuRadioItem.tsx","../../src/menu/MenuSeparator.tsx","../../src/menu/MenuSubmenu.tsx","../../src/menu/MenuSubmenuTrigger.tsx","../../src/menu/MenuTrigger.tsx","../../src/menu/index.ts"],"sourcesContent":["import { Menu as BaseMenu } from '@base-ui/react/menu'\nimport { type ComponentProps, type ReactNode } from 'react'\n\nexport interface MenuProps extends Omit<ComponentProps<typeof BaseMenu.Root>, 'children'> {\n /**\n * The content of the menu (trigger, portal, etc.)\n */\n children: ReactNode\n}\n\n/**\n * Root container for menu state and styling context.\n */\nexport const Menu = ({ children, ...rest }: MenuProps) => {\n return (\n <BaseMenu.Root data-spark-component=\"menu\" {...rest}>\n {children}\n </BaseMenu.Root>\n )\n}\n\nMenu.displayName = 'Menu'\n","import { makeVariants } from '@spark-ui/internal-utils'\nimport { cva, type VariantProps } from 'class-variance-authority'\n\nexport const menuItemStyles = cva(\n [\n 'gap-md flex w-full cursor-pointer items-center justify-start',\n 'text-left text-body-1',\n 'transition-colors duration-100',\n 'outline-none',\n 'focus-visible:u-outline focus-visible:-outline-offset-2',\n 'data-disabled:cursor-not-allowed data-disabled:opacity-dim-3',\n 'min-h-sz-44',\n 'px-lg py-md',\n 'data-highlighted:bg-surface-hovered',\n 'data-popup-open:bg-surface-hovered',\n ],\n {\n variants: {\n intent: makeVariants<\n 'intent',\n ['surface', 'main', 'support', 'accent', 'success', 'alert', 'danger', 'info', 'neutral']\n >({\n surface: ['text-on-surface'],\n main: ['text-on-surface'],\n support: ['text-on-surface'],\n accent: ['text-on-surface'],\n success: ['text-on-surface'],\n alert: ['text-on-surface'],\n danger: ['text-on-surface'],\n info: ['text-on-surface'],\n neutral: ['text-on-surface'],\n }),\n },\n defaultVariants: {\n intent: 'surface',\n },\n }\n)\n\nexport type MenuItemStylesProps = VariantProps<typeof menuItemStyles>\n","import { Slot } from '../slot'\n\nexport function useRenderSlot(asChild: boolean) {\n return asChild ? ({ ...props }: object) => <Slot {...props} /> : undefined\n}\n","import { Menu as BaseMenu } from '@base-ui/react/menu'\nimport { Check } from '@spark-ui/icons/Check'\nimport { cx } from 'class-variance-authority'\nimport { type ComponentProps, type Ref } from 'react'\n\nimport { Icon } from '../icon'\nimport { menuItemStyles } from './MenuItemStyles'\nimport { useRenderSlot } from './useRenderSlot'\n\nexport interface MenuCheckboxItemProps extends Omit<\n ComponentProps<typeof BaseMenu.CheckboxItem>,\n 'render'\n> {\n /**\n * Change the component to the HTML tag or custom component of the only child.\n * This will merge the original component props with the props of the supplied element/component and change the underlying DOM node.\n * @default false\n */\n asChild?: boolean\n ref?: Ref<HTMLDivElement>\n}\n\n/**\n * A menu item with checkbox functionality.\n * Can be toggled on and off, allowing multiple selections.\n * The checkbox indicator is automatically rendered on the left side.\n */\nexport const MenuCheckboxItem = ({\n asChild = false,\n children,\n className,\n ref,\n ...rest\n}: MenuCheckboxItemProps) => {\n const renderSlot = useRenderSlot(asChild)\n\n return (\n <BaseMenu.CheckboxItem\n ref={ref}\n data-spark-component=\"menu-checkbox-item\"\n render={renderSlot}\n className={cx(\n menuItemStyles({\n className,\n }),\n 'data-checked:font-bold'\n )}\n {...rest}\n >\n <BaseMenu.CheckboxItemIndicator\n keepMounted\n className={cx(\n 'mr-md flex shrink-0 items-center justify-center',\n 'w-sz-16 h-sz-16',\n 'transition-opacity',\n 'data-checked:opacity-100',\n 'opacity-0'\n )}\n >\n <Icon size=\"sm\" intent=\"current\">\n <Check />\n </Icon>\n </BaseMenu.CheckboxItemIndicator>\n {children}\n </BaseMenu.CheckboxItem>\n )\n}\n\nMenuCheckboxItem.displayName = 'Menu.CheckboxItem'\n","import { Menu as BaseMenu } from '@base-ui/react/menu'\nimport { cx } from 'class-variance-authority'\nimport { type ComponentProps } from 'react'\n\nexport interface MenuGroupProps extends ComponentProps<typeof BaseMenu.Group> {}\n\n/**\n * A container for grouping related menu items together.\n * Works with Menu.GroupLabel for semantic grouping.\n */\nexport const MenuGroup = ({ children, className, ...rest }: MenuGroupProps) => {\n return (\n <BaseMenu.Group data-spark-component=\"menu-group\" className={cx('py-sm', className)} {...rest}>\n {children}\n </BaseMenu.Group>\n )\n}\n\nMenuGroup.displayName = 'Menu.Group'\n","import { Menu as BaseMenu } from '@base-ui/react/menu'\nimport { cx } from 'class-variance-authority'\nimport { type ComponentProps, type Ref } from 'react'\n\nimport { useRenderSlot } from './useRenderSlot'\n\nexport interface MenuGroupLabelProps extends Omit<\n ComponentProps<typeof BaseMenu.GroupLabel>,\n 'render'\n> {\n /**\n * Change the component to the HTML tag or custom component of the only child.\n * This will merge the original component props with the props of the supplied element/component and change the underlying DOM node.\n * @default false\n */\n asChild?: boolean\n ref?: Ref<HTMLDivElement>\n}\n\n/**\n * A label for a group of menu items.\n * Provides semantic context and visual separation for grouped items.\n */\nexport const MenuGroupLabel = ({\n asChild = false,\n children,\n className,\n ref,\n ...rest\n}: MenuGroupLabelProps) => {\n const renderSlot = useRenderSlot(asChild)\n\n return (\n <BaseMenu.GroupLabel\n ref={ref}\n data-spark-component=\"menu-group-label\"\n render={renderSlot}\n className={cx('text-on-surface/dim-1 text-body-2 font-bold', 'px-lg py-sm', className)}\n {...rest}\n >\n {children}\n </BaseMenu.GroupLabel>\n )\n}\n\nMenuGroupLabel.displayName = 'Menu.GroupLabel'\n","import { Menu as BaseMenu } from '@base-ui/react/menu'\nimport { type ComponentProps, type Ref } from 'react'\n\nimport { menuItemStyles } from './MenuItemStyles'\nimport { useRenderSlot } from './useRenderSlot'\n\nexport interface MenuItemProps extends Omit<ComponentProps<typeof BaseMenu.Item>, 'render'> {\n /**\n * Change the component to the HTML tag or custom component of the only child.\n * This will merge the original component props with the props of the supplied element/component and change the underlying DOM node.\n * @default false\n */\n asChild?: boolean\n ref?: Ref<HTMLDivElement>\n}\n\n/**\n * A menu item that triggers an action when activated.\n * Renders a clickable menu option with keyboard support.\n */\nexport const MenuItem = ({ asChild = false, children, className, ref, ...rest }: MenuItemProps) => {\n const renderSlot = useRenderSlot(asChild)\n\n return (\n <BaseMenu.Item\n ref={ref}\n data-spark-component=\"menu-item\"\n render={renderSlot}\n className={menuItemStyles({\n className,\n })}\n {...rest}\n >\n {children}\n </BaseMenu.Item>\n )\n}\n\nMenuItem.displayName = 'Menu.Item'\n","import { Link } from '@spark-ui/icons/Link'\nimport { type ComponentPropsWithoutRef } from 'react'\n\nimport { Icon } from '../icon'\nimport { MenuItem } from './MenuItem'\n\nexport interface MenuLinkItemProps extends Omit<\n ComponentPropsWithoutRef<typeof MenuItem>,\n 'asChild'\n> {\n /**\n * The URL to navigate to.\n */\n href: string\n /**\n * Where to display the linked URL.\n * @default undefined\n */\n target?: string\n /**\n * The relationship between the current document and the linked document.\n * @default undefined\n */\n rel?: string\n}\n\n/**\n * A menu item that acts as a link.\n * Navigates to a URL when activated, useful for navigation menus.\n * Use with Next.js Link or React Router Link via the children prop.\n */\nexport const MenuLinkItem = ({ children, href, target, rel, ...rest }: MenuLinkItemProps) => {\n return (\n <MenuItem asChild {...rest}>\n <a href={href} target={target} rel={rel}>\n <Icon size=\"sm\" intent=\"current\" className=\"ml-auto shrink-0\">\n <Link />\n </Icon>\n <span className=\"flex-1\">{children}</span>\n </a>\n </MenuItem>\n )\n}\n\nMenuLinkItem.displayName = 'Menu.LinkItem'\n","import { Menu as BaseMenu } from '@base-ui/react/menu'\nimport { cx } from 'class-variance-authority'\nimport { type ComponentProps, type Ref } from 'react'\n\nimport { useRenderSlot } from './useRenderSlot'\n\nexport interface MenuPopupProps extends Omit<ComponentProps<typeof BaseMenu.Popup>, 'render'> {\n /**\n * Change the component to the HTML tag or custom component of the only child.\n * This will merge the original component props with the props of the supplied element/component and change the underlying DOM node.\n * @default false\n */\n asChild?: boolean\n ref?: Ref<HTMLDivElement>\n}\n\n/**\n * The scrollable menu container that holds menu items.\n * Serves as the viewport for menu content with overflow handling.\n */\nexport const MenuPopup = ({\n asChild = false,\n children,\n className,\n ref,\n ...rest\n}: MenuPopupProps) => {\n const renderSlot = useRenderSlot(asChild)\n\n return (\n <BaseMenu.Popup\n ref={ref}\n data-spark-component=\"menu-popup\"\n render={renderSlot}\n className={cx(\n [\n 'rounded-md bg-surface shadow-lg min-w-sz-192',\n 'p-sm',\n 'overflow-auto',\n 'z-popover',\n 'data-starting-style:opacity-0',\n 'data-ending-style:opacity-0',\n 'opacity-100',\n 'transition-opacity duration-200',\n ],\n className\n )}\n {...rest}\n >\n {children}\n </BaseMenu.Popup>\n )\n}\n\nMenuPopup.displayName = 'Menu.Popup'\n","import { Menu as BaseMenu } from '@base-ui/react/menu'\nimport { type ComponentProps } from 'react'\n\nexport interface MenuPortalProps extends ComponentProps<typeof BaseMenu.Portal> {}\n\n/**\n * Portal wrapper that renders the menu in a different part of the DOM tree.\n * Useful for avoiding z-index and overflow issues.\n */\nexport const MenuPortal = ({ children, ...rest }: MenuPortalProps) => {\n return <BaseMenu.Portal {...rest}>{children}</BaseMenu.Portal>\n}\n\nMenuPortal.displayName = 'Menu.Portal'\n","import { createContext, useContext } from 'react'\n\n/**\n * Context to track if we're inside a submenu\n */\nexport const MenuSubmenuContext = createContext<boolean>(false)\n\n/**\n * Hook to check if the current menu is a submenu\n */\nexport const useIsSubmenu = () => {\n return useContext(MenuSubmenuContext)\n}\n","import { Menu as BaseMenu } from '@base-ui/react/menu'\nimport { type ComponentProps } from 'react'\n\nimport { useIsSubmenu } from './MenuSubmenuContext'\n\nexport interface MenuPositionerProps extends ComponentProps<typeof BaseMenu.Positioner> {}\n\n/**\n * Positioning wrapper for the menu with collision detection.\n * Handles menu placement relative to the trigger and viewport boundaries.\n */\nexport const MenuPositioner = ({ children, sideOffset, ...rest }: MenuPositionerProps) => {\n const isSubmenu = useIsSubmenu()\n\n // Apply sideOffset of 8 for root menu, 0 for submenus (unless explicitly overridden)\n const defaultSideOffset = isSubmenu ? 0 : 8\n const finalSideOffset = sideOffset ?? defaultSideOffset\n\n return (\n <BaseMenu.Positioner sideOffset={finalSideOffset} {...rest}>\n {children}\n </BaseMenu.Positioner>\n )\n}\n\nMenuPositioner.displayName = 'Menu.Positioner'\n","import { Menu as BaseMenu } from '@base-ui/react/menu'\nimport { cx } from 'class-variance-authority'\nimport { type ComponentProps } from 'react'\n\nexport interface MenuRadioGroupProps extends ComponentProps<typeof BaseMenu.RadioGroup> {}\n\n/**\n * A container for radio menu items where only one item can be selected at a time.\n * Manages the selection state for its radio items.\n */\nexport const MenuRadioGroup = ({ children, className, ...rest }: MenuRadioGroupProps) => {\n return (\n <BaseMenu.RadioGroup\n data-spark-component=\"menu-radio-group\"\n className={cx('py-sm', className)}\n {...rest}\n >\n {children}\n </BaseMenu.RadioGroup>\n )\n}\n\nMenuRadioGroup.displayName = 'Menu.RadioGroup'\n","import { Menu as BaseMenu } from '@base-ui/react/menu'\nimport { Check } from '@spark-ui/icons/Check'\nimport { cx } from 'class-variance-authority'\nimport { type ComponentProps, type Ref } from 'react'\n\nimport { Icon } from '../icon'\nimport { menuItemStyles } from './MenuItemStyles'\nimport { useRenderSlot } from './useRenderSlot'\n\nexport interface MenuRadioItemProps extends Omit<\n ComponentProps<typeof BaseMenu.RadioItem>,\n 'render'\n> {\n /**\n * Change the component to the HTML tag or custom component of the only child.\n * This will merge the original component props with the props of the supplied element/component and change the underlying DOM node.\n * @default false\n */\n asChild?: boolean\n ref?: Ref<HTMLDivElement>\n}\n\n/**\n * A menu item with radio button functionality.\n * Only one radio item can be selected within its RadioGroup.\n * The radio indicator is automatically rendered on the left side.\n */\nexport const MenuRadioItem = ({\n asChild = false,\n children,\n className,\n ref,\n ...rest\n}: MenuRadioItemProps) => {\n const renderSlot = useRenderSlot(asChild)\n\n return (\n <BaseMenu.RadioItem\n ref={ref}\n data-spark-component=\"menu-radio-item\"\n render={renderSlot}\n className={cx(\n menuItemStyles({\n className,\n }),\n 'data-checked:font-bold'\n )}\n {...rest}\n >\n <BaseMenu.RadioItemIndicator\n keepMounted\n className={cx(\n 'mr-md flex shrink-0 items-center justify-center',\n 'w-sz-16 h-sz-16',\n 'transition-opacity',\n 'data-checked:opacity-100',\n 'opacity-0'\n )}\n >\n <Icon size=\"sm\" intent=\"current\">\n <Check />\n </Icon>\n </BaseMenu.RadioItemIndicator>\n {children}\n </BaseMenu.RadioItem>\n )\n}\n\nMenuRadioItem.displayName = 'Menu.RadioItem'\n","import { Menu as BaseMenu } from '@base-ui/react/menu'\nimport { cx } from 'class-variance-authority'\nimport { type ComponentProps } from 'react'\n\nexport interface MenuSeparatorProps extends ComponentProps<typeof BaseMenu.Separator> {}\n\n/**\n * A visual divider between menu items or groups.\n * Creates clear separation between different sections of the menu.\n */\nexport const MenuSeparator = ({ className, ...rest }: MenuSeparatorProps) => {\n return (\n <BaseMenu.Separator\n data-spark-component=\"menu-separator\"\n className={cx('my-sm h-px bg-outline/dim-2', className)}\n {...rest}\n />\n )\n}\n\nMenuSeparator.displayName = 'Menu.Separator'\n","import { Menu as BaseMenu } from '@base-ui/react/menu'\nimport { type ComponentProps, type ReactNode } from 'react'\n\nimport { MenuSubmenuContext } from './MenuSubmenuContext'\n\nexport interface MenuSubmenuProps extends Omit<\n ComponentProps<typeof BaseMenu.SubmenuRoot>,\n 'children'\n> {\n /**\n * The content of the submenu (trigger, positioner, popup, etc.)\n */\n children: ReactNode\n}\n\n/**\n * A nested submenu that appears when its trigger is activated.\n * Inherits styling context from the parent menu.\n */\nexport const MenuSubmenu = ({ children, ...rest }: MenuSubmenuProps) => {\n return (\n <BaseMenu.SubmenuRoot data-spark-component=\"menu-submenu\" {...rest}>\n <MenuSubmenuContext.Provider value={true}>{children}</MenuSubmenuContext.Provider>\n </BaseMenu.SubmenuRoot>\n )\n}\n\nMenuSubmenu.displayName = 'Menu.Submenu'\n","import { Menu as BaseMenu } from '@base-ui/react/menu'\nimport { ArrowVerticalRight } from '@spark-ui/icons/ArrowVerticalRight'\nimport { type ComponentProps, type Ref } from 'react'\n\nimport { Icon } from '../icon'\nimport { menuItemStyles } from './MenuItemStyles'\nimport { useRenderSlot } from './useRenderSlot'\n\nexport interface MenuSubmenuTriggerProps extends Omit<\n ComponentProps<typeof BaseMenu.SubmenuTrigger>,\n 'render'\n> {\n /**\n * Change the component to the HTML tag or custom component of the only child.\n * This will merge the original component props with the props of the supplied element/component and change the underlying DOM node.\n * @default false\n */\n asChild?: boolean\n ref?: Ref<HTMLDivElement>\n}\n\n/**\n * A menu item that opens a submenu when activated.\n * Displays an arrow indicator to show submenu availability.\n */\nexport const MenuSubmenuTrigger = ({\n asChild = false,\n children,\n className,\n ref,\n ...rest\n}: MenuSubmenuTriggerProps) => {\n const renderSlot = useRenderSlot(asChild)\n\n return (\n <BaseMenu.SubmenuTrigger\n ref={ref}\n data-spark-component=\"menu-submenu-trigger\"\n render={renderSlot}\n className={menuItemStyles({\n className,\n })}\n {...rest}\n >\n <span className=\"flex-1\">{children}</span>\n <Icon size=\"sm\" intent=\"current\" className=\"ml-auto shrink-0\">\n <ArrowVerticalRight />\n </Icon>\n </BaseMenu.SubmenuTrigger>\n )\n}\n\nMenuSubmenuTrigger.displayName = 'Menu.SubmenuTrigger'\n","import { Menu as BaseMenu } from '@base-ui/react/menu'\nimport { ArrowHorizontalDown } from '@spark-ui/icons/ArrowHorizontalDown'\nimport { cx } from 'class-variance-authority'\nimport {\n cloneElement,\n isValidElement,\n type ComponentProps,\n type ReactElement,\n type Ref,\n} from 'react'\n\nimport { Icon } from '../icon'\nimport { useRenderSlot } from './useRenderSlot'\n\nexport interface MenuTriggerProps extends Omit<ComponentProps<typeof BaseMenu.Trigger>, 'render'> {\n /**\n * Change the component to the HTML tag or custom component of the only child.\n * This will merge the original component props with the props of the supplied element/component and change the underlying DOM node.\n * @default false\n */\n asChild?: boolean\n ref?: Ref<HTMLButtonElement>\n}\n\n/**\n * The button that toggles the menu.\n * Renders a <button> element by default, or uses asChild for custom elements.\n * When used with asChild and a Button component, automatically adds an ArrowHorizontalDown icon.\n * Button components should use design=\"outlined\" and intent=\"support\".\n */\nexport const MenuTrigger = ({\n asChild = false,\n children,\n className,\n ref,\n ...rest\n}: MenuTriggerProps) => {\n const renderSlot = useRenderSlot(asChild)\n\n // When asChild is used with a Button, enhance it with the arrow icon\n const enhancedChildren =\n asChild && isValidElement(children)\n ? cloneElement(\n children as ReactElement,\n {\n design: (children.props as { design?: string }).design ?? 'outlined',\n intent: (children.props as { intent?: string }).intent ?? 'support',\n children: (\n <>\n {(children.props as { children: React.ReactNode }).children}\n <Icon size=\"sm\" intent=\"current\" className=\"shrink-0\">\n <ArrowHorizontalDown />\n </Icon>\n </>\n ),\n } as Partial<unknown>\n )\n : children\n\n return (\n <BaseMenu.Trigger\n ref={ref}\n data-spark-component=\"menu-trigger\"\n render={renderSlot}\n className={cx(\n 'inline-flex items-center justify-center',\n 'focus-visible:u-outline',\n className\n )}\n {...rest}\n >\n {enhancedChildren}\n </BaseMenu.Trigger>\n )\n}\n\nMenuTrigger.displayName = 'Menu.Trigger'\n","import { Menu as Root } from './Menu'\nimport { MenuCheckboxItem } from './MenuCheckboxItem'\nimport { MenuGroup } from './MenuGroup'\nimport { MenuGroupLabel } from './MenuGroupLabel'\nimport { MenuItem } from './MenuItem'\nimport { MenuLinkItem } from './MenuLinkItem'\nimport { MenuPopup } from './MenuPopup'\nimport { MenuPortal } from './MenuPortal'\nimport { MenuPositioner } from './MenuPositioner'\nimport { MenuRadioGroup } from './MenuRadioGroup'\nimport { MenuRadioItem } from './MenuRadioItem'\nimport { MenuSeparator } from './MenuSeparator'\nimport { MenuSubmenu } from './MenuSubmenu'\nimport { MenuSubmenuTrigger } from './MenuSubmenuTrigger'\nimport { MenuTrigger } from './MenuTrigger'\n\n/**\n * A menu component that enables users to select options from a dropdown menu triggered by a button or other interactive element.\n */\nexport const Menu: typeof Root & {\n Trigger: typeof MenuTrigger\n Portal: typeof MenuPortal\n Positioner: typeof MenuPositioner\n Popup: typeof MenuPopup\n Item: typeof MenuItem\n LinkItem: typeof MenuLinkItem\n Submenu: typeof MenuSubmenu\n SubmenuTrigger: typeof MenuSubmenuTrigger\n Group: typeof MenuGroup\n GroupLabel: typeof MenuGroupLabel\n RadioGroup: typeof MenuRadioGroup\n RadioItem: typeof MenuRadioItem\n CheckboxItem: typeof MenuCheckboxItem\n Separator: typeof MenuSeparator\n} = Object.assign(Root, {\n Trigger: MenuTrigger,\n Portal: MenuPortal,\n Positioner: MenuPositioner,\n Popup: MenuPopup,\n Item: MenuItem,\n LinkItem: MenuLinkItem,\n Submenu: MenuSubmenu,\n SubmenuTrigger: MenuSubmenuTrigger,\n Group: MenuGroup,\n GroupLabel: MenuGroupLabel,\n RadioGroup: MenuRadioGroup,\n RadioItem: MenuRadioItem,\n CheckboxItem: MenuCheckboxItem,\n Separator: MenuSeparator,\n})\n\nMenu.displayName = 'Menu'\nMenuTrigger.displayName = 'Menu.Trigger'\nMenuPortal.displayName = 'Menu.Portal'\nMenuPositioner.displayName = 'Menu.Positioner'\nMenuPopup.displayName = 'Menu.Popup'\nMenuItem.displayName = 'Menu.Item'\nMenuLinkItem.displayName = 'Menu.LinkItem'\nMenuSubmenu.displayName = 'Menu.Submenu'\nMenuSubmenuTrigger.displayName = 'Menu.SubmenuTrigger'\nMenuGroup.displayName = 'Menu.Group'\nMenuGroupLabel.displayName = 'Menu.GroupLabel'\nMenuRadioGroup.displayName = 'Menu.RadioGroup'\nMenuRadioItem.displayName = 'Menu.RadioItem'\nMenuCheckboxItem.displayName = 'Menu.CheckboxItem'\nMenuSeparator.displayName = 'Menu.Separator'\n\nexport { type MenuProps } from './Menu'\nexport { type MenuTriggerProps } from './MenuTrigger'\nexport { type MenuPortalProps } from './MenuPortal'\nexport { type MenuPositionerProps } from './MenuPositioner'\nexport { type MenuPopupProps } from './MenuPopup'\nexport { type MenuItemProps } from './MenuItem'\nexport { type MenuLinkItemProps } from './MenuLinkItem'\nexport { type MenuSubmenuProps } from './MenuSubmenu'\nexport { type MenuSubmenuTriggerProps } from './MenuSubmenuTrigger'\nexport { type MenuGroupProps } from './MenuGroup'\nexport { type MenuGroupLabelProps } from './MenuGroupLabel'\nexport { type MenuRadioGroupProps } from './MenuRadioGroup'\nexport { type MenuRadioItemProps } from './MenuRadioItem'\nexport { type MenuCheckboxItemProps } from './MenuCheckboxItem'\nexport { type MenuSeparatorProps } from './MenuSeparator'\n"],"mappings":";;;;;;;;;;;;AAaA,IAAa,KAAQ,EAAE,aAAU,GAAG,QAEhC,kBAAC,EAAS,MAAV;CAAe,wBAAqB;CAAO,GAAI;CAC5C;CACa,CAAA;AAIpB,EAAK,cAAc;;;AClBnB,IAAa,IAAiB,EAC5B;CACE;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACD,EACD;CACE,UAAU,EACR,QAAQ,EAGN;EACA,SAAS,CAAC,kBAAkB;EAC5B,MAAM,CAAC,kBAAkB;EACzB,SAAS,CAAC,kBAAkB;EAC5B,QAAQ,CAAC,kBAAkB;EAC3B,SAAS,CAAC,kBAAkB;EAC5B,OAAO,CAAC,kBAAkB;EAC1B,QAAQ,CAAC,kBAAkB;EAC3B,MAAM,CAAC,kBAAkB;EACzB,SAAS,CAAC,kBAAkB;EAC7B,CAAC,EACH;CACD,iBAAiB,EACf,QAAQ,WACT;CACF,CACF;;;ACnCD,SAAgB,EAAc,GAAkB;AAC9C,QAAO,KAAW,EAAE,GAAG,QAAoB,kBAAC,GAAD,EAAM,GAAI,GAAS,CAAA,GAAG,KAAA;;;;ACwBnE,IAAa,KAAoB,EAC/B,aAAU,IACV,aACA,cACA,QACA,GAAG,QACwB;CAC3B,IAAM,IAAa,EAAc,EAAQ;AAEzC,QACE,kBAAC,EAAS,cAAV;EACO;EACL,wBAAqB;EACrB,QAAQ;EACR,WAAW,EACT,EAAe,EACb,cACD,CAAC,EACF,yBACD;EACD,GAAI;YAVN,CAYE,kBAAC,EAAS,uBAAV;GACE,aAAA;GACA,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AY,cAAc;;;ACzD1B,IAAa,IAeT,OAAO,OAAO,GAAM;CACtB,SAAS;CACT,QAAQ;CACR,YAAY;CACZ,OAAO;CACP,MAAM;CACN,UAAU;CACV,SAAS;CACT,gBAAgB;CAChB,OAAO;CACP,YAAY;CACZ,YAAY;CACZ,WAAW;CACX,cAAc;CACd,WAAW;CACZ,CAAC;AAEF,EAAK,cAAc,QACnB,EAAY,cAAc,gBAC1B,EAAW,cAAc,eACzB,EAAe,cAAc,mBAC7B,EAAU,cAAc,cACxB,EAAS,cAAc,aACvB,EAAa,cAAc,iBAC3B,EAAY,cAAc,gBAC1B,EAAmB,cAAc,uBACjC,EAAU,cAAc,cACxB,EAAe,cAAc,mBAC7B,EAAe,cAAc,mBAC7B,EAAc,cAAc,kBAC5B,EAAiB,cAAc,qBAC/B,EAAc,cAAc"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function useRenderSlot(asChild: boolean): (({ ...props }: object) => import("react/jsx-runtime").JSX.Element) | undefined;
|