@brijbyte/agentic-ui 0.0.1-beta → 0.0.2
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/README.md +808 -0
- package/dist/accordion/accordion.css +85 -0
- package/dist/accordion/accordion.d.ts +28 -0
- package/dist/accordion/accordion.d.ts.map +1 -0
- package/dist/accordion/accordion.js +51 -0
- package/dist/accordion/accordion.js.map +1 -0
- package/dist/accordion/accordion.module.css.d.ts +2 -0
- package/dist/accordion/accordion.module.js +14 -0
- package/dist/accordion/accordion.module.js.map +1 -0
- package/dist/accordion/index.d.ts +3 -0
- package/dist/accordion/index.js +4 -0
- package/dist/accordion/parts.d.ts +28 -0
- package/dist/accordion/parts.d.ts.map +1 -0
- package/dist/accordion/parts.js +55 -0
- package/dist/accordion/parts.js.map +1 -0
- package/dist/alert-dialog/alert-dialog.css +84 -0
- package/dist/alert-dialog/alert-dialog.d.ts +44 -0
- package/dist/alert-dialog/alert-dialog.d.ts.map +1 -0
- package/dist/alert-dialog/alert-dialog.js +46 -0
- package/dist/alert-dialog/alert-dialog.js.map +1 -0
- package/dist/alert-dialog/alert-dialog.module.css.d.ts +2 -0
- package/dist/alert-dialog/alert-dialog.module.js +14 -0
- package/dist/alert-dialog/alert-dialog.module.js.map +1 -0
- package/dist/alert-dialog/index.d.ts +3 -0
- package/dist/alert-dialog/index.js +4 -0
- package/dist/alert-dialog/parts.d.ts +28 -0
- package/dist/alert-dialog/parts.d.ts.map +1 -0
- package/dist/alert-dialog/parts.js +62 -0
- package/dist/alert-dialog/parts.js.map +1 -0
- package/dist/badge/badge.css +66 -0
- package/dist/badge/badge.d.ts +20 -0
- package/dist/badge/badge.d.ts.map +1 -0
- package/dist/badge/badge.js +21 -0
- package/dist/badge/badge.js.map +1 -0
- package/dist/badge/badge.module.css.d.ts +2 -0
- package/dist/badge/badge.module.js +16 -0
- package/dist/badge/badge.module.js.map +1 -0
- package/dist/badge/index.d.ts +2 -0
- package/dist/badge/index.js +3 -0
- package/dist/button/button.css +242 -0
- package/dist/button/button.d.ts +28 -0
- package/dist/button/button.d.ts.map +1 -0
- package/dist/button/button.js +34 -0
- package/dist/button/button.js.map +1 -0
- package/dist/button/button.module.css.d.ts +2 -0
- package/dist/button/button.module.js +27 -0
- package/dist/button/button.module.js.map +1 -0
- package/dist/button/index.d.ts +2 -0
- package/dist/button/index.js +3 -0
- package/dist/card/card.css +64 -0
- package/dist/card/card.d.ts +41 -0
- package/dist/card/card.d.ts.map +1 -0
- package/dist/card/card.js +50 -0
- package/dist/card/card.js.map +1 -0
- package/dist/card/card.module.css.d.ts +2 -0
- package/dist/card/card.module.js +15 -0
- package/dist/card/card.module.js.map +1 -0
- package/dist/card/index.d.ts +2 -0
- package/dist/card/index.js +3 -0
- package/dist/checkbox/checkbox.css +72 -0
- package/dist/checkbox/checkbox.d.ts +29 -0
- package/dist/checkbox/checkbox.d.ts.map +1 -0
- package/dist/checkbox/checkbox.js +40 -0
- package/dist/checkbox/checkbox.js.map +1 -0
- package/dist/checkbox/checkbox.module.css.d.ts +2 -0
- package/dist/checkbox/checkbox.module.js +11 -0
- package/dist/checkbox/checkbox.module.js.map +1 -0
- package/dist/checkbox/index.d.ts +3 -0
- package/dist/checkbox/index.js +4 -0
- package/dist/checkbox/parts.d.ts +20 -0
- package/dist/checkbox/parts.d.ts.map +1 -0
- package/dist/checkbox/parts.js +51 -0
- package/dist/checkbox/parts.js.map +1 -0
- package/dist/collapsible/collapsible.css +88 -0
- package/dist/collapsible/collapsible.d.ts +24 -0
- package/dist/collapsible/collapsible.d.ts.map +1 -0
- package/dist/collapsible/collapsible.js +44 -0
- package/dist/collapsible/collapsible.js.map +1 -0
- package/dist/collapsible/collapsible.module.css.d.ts +2 -0
- package/dist/collapsible/collapsible.module.js +12 -0
- package/dist/collapsible/collapsible.module.js.map +1 -0
- package/dist/collapsible/index.d.ts +3 -0
- package/dist/collapsible/index.js +4 -0
- package/dist/collapsible/parts.d.ts +23 -0
- package/dist/collapsible/parts.d.ts.map +1 -0
- package/dist/collapsible/parts.js +44 -0
- package/dist/collapsible/parts.js.map +1 -0
- package/dist/context-menu/context-menu.css +151 -0
- package/dist/context-menu/context-menu.d.ts +36 -0
- package/dist/context-menu/context-menu.d.ts.map +1 -0
- package/dist/context-menu/context-menu.js +54 -0
- package/dist/context-menu/context-menu.js.map +1 -0
- package/dist/context-menu/context-menu.module.css.d.ts +2 -0
- package/dist/context-menu/context-menu.module.js +18 -0
- package/dist/context-menu/context-menu.module.js.map +1 -0
- package/dist/context-menu/index.d.ts +3 -0
- package/dist/context-menu/index.js +4 -0
- package/dist/context-menu/parts.d.ts +38 -0
- package/dist/context-menu/parts.d.ts.map +1 -0
- package/dist/context-menu/parts.js +91 -0
- package/dist/context-menu/parts.js.map +1 -0
- package/dist/dialog/dialog.css +125 -0
- package/dist/dialog/dialog.d.ts +40 -0
- package/dist/dialog/dialog.d.ts.map +1 -0
- package/dist/dialog/dialog.js +57 -0
- package/dist/dialog/dialog.js.map +1 -0
- package/dist/dialog/dialog.module.css.d.ts +2 -0
- package/dist/dialog/dialog.module.js +17 -0
- package/dist/dialog/dialog.module.js.map +1 -0
- package/dist/dialog/index.d.ts +3 -0
- package/dist/dialog/index.js +4 -0
- package/dist/dialog/parts.d.ts +38 -0
- package/dist/dialog/parts.d.ts.map +1 -0
- package/dist/dialog/parts.js +75 -0
- package/dist/dialog/parts.js.map +1 -0
- package/dist/drawer/drawer.css +253 -0
- package/dist/drawer/drawer.d.ts +38 -0
- package/dist/drawer/drawer.d.ts.map +1 -0
- package/dist/drawer/drawer.js +87 -0
- package/dist/drawer/drawer.js.map +1 -0
- package/dist/drawer/drawer.module.css.d.ts +2 -0
- package/dist/drawer/drawer.module.js +20 -0
- package/dist/drawer/drawer.module.js.map +1 -0
- package/dist/drawer/index.d.ts +3 -0
- package/dist/drawer/index.js +4 -0
- package/dist/drawer/parts.d.ts +58 -0
- package/dist/drawer/parts.d.ts.map +1 -0
- package/dist/drawer/parts.js +107 -0
- package/dist/drawer/parts.js.map +1 -0
- package/dist/index.css +2701 -0
- package/dist/index.d.ts +39 -0
- package/dist/index.js +62 -0
- package/dist/input/index.d.ts +2 -0
- package/dist/input/index.js +3 -0
- package/dist/input/input.css +103 -0
- package/dist/input/input.d.ts +17 -0
- package/dist/input/input.d.ts.map +1 -0
- package/dist/input/input.js +37 -0
- package/dist/input/input.js.map +1 -0
- package/dist/input/input.module.css.d.ts +2 -0
- package/dist/input/input.module.js +18 -0
- package/dist/input/input.module.js.map +1 -0
- package/dist/layer-order.css +22 -0
- package/dist/menu/index.d.ts +4 -0
- package/dist/menu/index.js +5 -0
- package/dist/menu/menu.css +154 -0
- package/dist/menu/menu.d.ts +50 -0
- package/dist/menu/menu.d.ts.map +1 -0
- package/dist/menu/menu.js +69 -0
- package/dist/menu/menu.js.map +1 -0
- package/dist/menu/menu.module.css.d.ts +2 -0
- package/dist/menu/menu.module.js +19 -0
- package/dist/menu/menu.module.js.map +1 -0
- package/dist/menu/menuitemshortcut.d.ts +9 -0
- package/dist/menu/menuitemshortcut.d.ts.map +1 -0
- package/dist/menu/menuitemshortcut.js +15 -0
- package/dist/menu/menuitemshortcut.js.map +1 -0
- package/dist/menu/parts.d.ts +39 -0
- package/dist/menu/parts.d.ts.map +1 -0
- package/dist/menu/parts.js +76 -0
- package/dist/menu/parts.js.map +1 -0
- package/dist/number-field/index.d.ts +3 -0
- package/dist/number-field/index.js +4 -0
- package/dist/number-field/number-field.css +111 -0
- package/dist/number-field/number-field.d.ts +31 -0
- package/dist/number-field/number-field.d.ts.map +1 -0
- package/dist/number-field/number-field.js +78 -0
- package/dist/number-field/number-field.js.map +1 -0
- package/dist/number-field/number-field.module.css.d.ts +2 -0
- package/dist/number-field/number-field.module.js +16 -0
- package/dist/number-field/number-field.module.js.map +1 -0
- package/dist/number-field/parts.d.ts +38 -0
- package/dist/number-field/parts.d.ts.map +1 -0
- package/dist/number-field/parts.js +74 -0
- package/dist/number-field/parts.js.map +1 -0
- package/dist/progress/index.d.ts +3 -0
- package/dist/progress/index.js +4 -0
- package/dist/progress/parts.d.ts +20 -0
- package/dist/progress/parts.d.ts.map +1 -0
- package/dist/progress/parts.js +42 -0
- package/dist/progress/parts.js.map +1 -0
- package/dist/progress/progress.css +71 -0
- package/dist/progress/progress.d.ts +27 -0
- package/dist/progress/progress.d.ts.map +1 -0
- package/dist/progress/progress.js +27 -0
- package/dist/progress/progress.js.map +1 -0
- package/dist/progress/progress.module.css.d.ts +2 -0
- package/dist/progress/progress.module.js +19 -0
- package/dist/progress/progress.module.js.map +1 -0
- package/dist/reset.css +91 -0
- package/dist/select/index.d.ts +3 -0
- package/dist/select/index.js +4 -0
- package/dist/select/parts.d.ts +65 -0
- package/dist/select/parts.d.ts.map +1 -0
- package/dist/select/parts.js +134 -0
- package/dist/select/parts.js.map +1 -0
- package/dist/select/select.css +157 -0
- package/dist/select/select.d.ts +41 -0
- package/dist/select/select.d.ts.map +1 -0
- package/dist/select/select.js +89 -0
- package/dist/select/select.js.map +1 -0
- package/dist/select/select.module.css.d.ts +2 -0
- package/dist/select/select.module.js +17 -0
- package/dist/select/select.module.js.map +1 -0
- package/dist/separator/index.d.ts +2 -0
- package/dist/separator/index.js +3 -0
- package/dist/separator/separator.css +16 -0
- package/dist/separator/separator.d.ts +16 -0
- package/dist/separator/separator.d.ts.map +1 -0
- package/dist/separator/separator.js +17 -0
- package/dist/separator/separator.js.map +1 -0
- package/dist/separator/separator.module.css.d.ts +2 -0
- package/dist/separator/separator.module.js +6 -0
- package/dist/separator/separator.module.js.map +1 -0
- package/dist/slider/index.d.ts +3 -0
- package/dist/slider/index.js +4 -0
- package/dist/slider/parts.d.ts +38 -0
- package/dist/slider/parts.d.ts.map +1 -0
- package/dist/slider/parts.js +69 -0
- package/dist/slider/parts.js.map +1 -0
- package/dist/slider/slider.css +97 -0
- package/dist/slider/slider.d.ts +38 -0
- package/dist/slider/slider.d.ts.map +1 -0
- package/dist/slider/slider.js +41 -0
- package/dist/slider/slider.js.map +1 -0
- package/dist/slider/slider.module.css.d.ts +2 -0
- package/dist/slider/slider.module.js +15 -0
- package/dist/slider/slider.module.js.map +1 -0
- package/dist/styles/reset.css +69 -0
- package/dist/styles/tokens.css +276 -0
- package/dist/switch/index.d.ts +3 -0
- package/dist/switch/index.js +4 -0
- package/dist/switch/parts.d.ts +18 -0
- package/dist/switch/parts.d.ts.map +1 -0
- package/dist/switch/parts.js +39 -0
- package/dist/switch/parts.js.map +1 -0
- package/dist/switch/switch.css +64 -0
- package/dist/switch/switch.d.ts +28 -0
- package/dist/switch/switch.d.ts.map +1 -0
- package/dist/switch/switch.js +26 -0
- package/dist/switch/switch.js.map +1 -0
- package/dist/switch/switch.module.css.d.ts +2 -0
- package/dist/switch/switch.module.js +11 -0
- package/dist/switch/switch.module.js.map +1 -0
- package/dist/tabs/index.d.ts +3 -0
- package/dist/tabs/index.js +4 -0
- package/dist/tabs/parts.d.ts +23 -0
- package/dist/tabs/parts.d.ts.map +1 -0
- package/dist/tabs/parts.js +48 -0
- package/dist/tabs/parts.js.map +1 -0
- package/dist/tabs/tabs.css +86 -0
- package/dist/tabs/tabs.d.ts +28 -0
- package/dist/tabs/tabs.d.ts.map +1 -0
- package/dist/tabs/tabs.js +30 -0
- package/dist/tabs/tabs.js.map +1 -0
- package/dist/tabs/tabs.module.css.d.ts +2 -0
- package/dist/tabs/tabs.module.js +11 -0
- package/dist/tabs/tabs.module.js.map +1 -0
- package/dist/tailwind-theme.css +142 -0
- package/dist/toast/index.d.ts +3 -0
- package/dist/toast/index.js +4 -0
- package/dist/toast/parts.d.ts +33 -0
- package/dist/toast/parts.d.ts.map +1 -0
- package/dist/toast/parts.js +62 -0
- package/dist/toast/parts.js.map +1 -0
- package/dist/toast/toast.css +207 -0
- package/dist/toast/toast.d.ts +43 -0
- package/dist/toast/toast.d.ts.map +1 -0
- package/dist/toast/toast.js +156 -0
- package/dist/toast/toast.js.map +1 -0
- package/dist/toast/toast.module.css.d.ts +2 -0
- package/dist/toast/toast.module.js +25 -0
- package/dist/toast/toast.module.js.map +1 -0
- package/dist/tokens.css +404 -0
- package/dist/tooltip/index.d.ts +3 -0
- package/dist/tooltip/index.js +4 -0
- package/dist/tooltip/parts.d.ts +23 -0
- package/dist/tooltip/parts.d.ts.map +1 -0
- package/dist/tooltip/parts.js +53 -0
- package/dist/tooltip/parts.js.map +1 -0
- package/dist/tooltip/tooltip.css +60 -0
- package/dist/tooltip/tooltip.d.ts +22 -0
- package/dist/tooltip/tooltip.d.ts.map +1 -0
- package/dist/tooltip/tooltip.js +23 -0
- package/dist/tooltip/tooltip.js.map +1 -0
- package/dist/tooltip/tooltip.module.css.d.ts +2 -0
- package/dist/tooltip/tooltip.module.js +10 -0
- package/dist/tooltip/tooltip.module.js.map +1 -0
- package/package.json +153 -4
- package/src/accordion/accordion.module.css +75 -0
- package/src/accordion/accordion.tsx +50 -0
- package/src/accordion/index.ts +6 -0
- package/src/accordion/parts.tsx +68 -0
- package/src/alert-dialog/alert-dialog.module.css +91 -0
- package/src/alert-dialog/alert-dialog.tsx +69 -0
- package/src/alert-dialog/index.ts +7 -0
- package/src/alert-dialog/parts.tsx +73 -0
- package/src/badge/badge.module.css +60 -0
- package/src/badge/badge.tsx +19 -0
- package/src/badge/index.ts +3 -0
- package/src/button/button.module.css +229 -0
- package/src/button/button.tsx +67 -0
- package/src/button/index.ts +3 -0
- package/src/card/card.module.css +56 -0
- package/src/card/card.tsx +54 -0
- package/src/card/index.ts +3 -0
- package/src/checkbox/checkbox.module.css +69 -0
- package/src/checkbox/checkbox.tsx +38 -0
- package/src/checkbox/index.ts +6 -0
- package/src/checkbox/parts.tsx +54 -0
- package/src/collapsible/collapsible.module.css +81 -0
- package/src/collapsible/collapsible.tsx +38 -0
- package/src/collapsible/index.ts +6 -0
- package/src/collapsible/parts.tsx +52 -0
- package/src/context-menu/context-menu.module.css +168 -0
- package/src/context-menu/context-menu.tsx +75 -0
- package/src/context-menu/index.ts +21 -0
- package/src/context-menu/parts.tsx +99 -0
- package/src/css.d.ts +8 -0
- package/src/dialog/dialog.module.css +116 -0
- package/src/dialog/dialog.tsx +73 -0
- package/src/dialog/index.ts +13 -0
- package/src/dialog/parts.tsx +96 -0
- package/src/drawer/drawer.module.css +240 -0
- package/src/drawer/drawer.tsx +96 -0
- package/src/drawer/index.ts +24 -0
- package/src/drawer/parts.tsx +122 -0
- package/src/index.ts +237 -0
- package/src/input/index.ts +3 -0
- package/src/input/input.module.css +93 -0
- package/src/input/input.tsx +39 -0
- package/src/menu/index.ts +7 -0
- package/src/menu/menu.module.css +142 -0
- package/src/menu/menu.tsx +108 -0
- package/src/menu/menuitemshortcut.tsx +9 -0
- package/src/menu/parts.tsx +90 -0
- package/src/number-field/index.ts +20 -0
- package/src/number-field/number-field.module.css +98 -0
- package/src/number-field/number-field.tsx +75 -0
- package/src/number-field/parts.tsx +91 -0
- package/src/progress/index.ts +6 -0
- package/src/progress/parts.tsx +51 -0
- package/src/progress/progress.module.css +61 -0
- package/src/progress/progress.tsx +42 -0
- package/src/select/index.ts +30 -0
- package/src/select/parts.tsx +171 -0
- package/src/select/select.module.css +146 -0
- package/src/select/select.tsx +98 -0
- package/src/separator/index.ts +3 -0
- package/src/separator/separator.module.css +14 -0
- package/src/separator/separator.tsx +20 -0
- package/src/slider/index.ts +14 -0
- package/src/slider/parts.tsx +90 -0
- package/src/slider/slider.module.css +110 -0
- package/src/slider/slider.tsx +68 -0
- package/src/styles/layer-order.css +22 -0
- package/src/styles/reset.css +91 -0
- package/src/styles/tailwind-theme.css +142 -0
- package/src/styles/tokens.css +404 -0
- package/src/switch/index.ts +6 -0
- package/src/switch/parts.tsx +44 -0
- package/src/switch/switch.module.css +57 -0
- package/src/switch/switch.tsx +33 -0
- package/src/tabs/index.ts +6 -0
- package/src/tabs/parts.tsx +48 -0
- package/src/tabs/tabs.module.css +79 -0
- package/src/tabs/tabs.tsx +48 -0
- package/src/toast/index.ts +6 -0
- package/src/toast/parts.tsx +76 -0
- package/src/toast/toast.module.css +212 -0
- package/src/toast/toast.tsx +129 -0
- package/src/tooltip/index.ts +6 -0
- package/src/tooltip/parts.tsx +62 -0
- package/src/tooltip/tooltip.module.css +56 -0
- package/src/tooltip/tooltip.tsx +30 -0
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { Accordion, AccordionItem, AccordionProps, styles } from "./accordion/accordion.js";
|
|
2
|
+
import { AccordionHeader, AccordionHeaderProps, AccordionItem as AccordionItem$1, AccordionItemProps, AccordionPanel, AccordionPanelProps, AccordionTrigger, AccordionTriggerProps } from "./accordion/parts.js";
|
|
3
|
+
import { AlertAction, AlertDialog, AlertDialogProps, styles as styles$1 } from "./alert-dialog/alert-dialog.js";
|
|
4
|
+
import { AlertDialogBackdrop, AlertDialogBackdropProps, AlertDialogDescription, AlertDialogDescriptionProps, AlertDialogPopup, AlertDialogPopupProps, AlertDialogTitle, AlertDialogTitleProps } from "./alert-dialog/parts.js";
|
|
5
|
+
import { Badge, BadgeProps, BadgeVariant, styles as styles$2 } from "./badge/badge.js";
|
|
6
|
+
import { Button, ButtonProps, ButtonSize, ButtonVariant, styles as styles$3 } from "./button/button.js";
|
|
7
|
+
import { Card, CardBody, CardFooter, CardHeader, CardHeaderProps, CardProps, styles as styles$4 } from "./card/card.js";
|
|
8
|
+
import { Checkbox, CheckboxProps, styles as styles$5 } from "./checkbox/checkbox.js";
|
|
9
|
+
import { CheckboxIndicator, CheckboxIndicatorProps, CheckboxRoot, CheckboxRootProps } from "./checkbox/parts.js";
|
|
10
|
+
import { Collapsible, CollapsibleProps, styles as styles$6 } from "./collapsible/collapsible.js";
|
|
11
|
+
import { CollapsiblePanel, CollapsiblePanelProps, CollapsibleRoot, CollapsibleRootProps, CollapsibleTrigger, CollapsibleTriggerProps } from "./collapsible/parts.js";
|
|
12
|
+
import { ContextMenu, ContextMenuEntry, ContextMenuGroupDef, ContextMenuItemDef, ContextMenuProps, ContextMenuSeparatorDef, styles as styles$7 } from "./context-menu/context-menu.js";
|
|
13
|
+
import { ContextMenuGroup, ContextMenuGroupLabel, ContextMenuGroupLabelProps, ContextMenuGroupProps, ContextMenuItem, ContextMenuItemProps, ContextMenuPopup, ContextMenuPopupProps, ContextMenuSeparator, ContextMenuSeparatorProps } from "./context-menu/parts.js";
|
|
14
|
+
import { Dialog, DialogProps, styles as styles$8 } from "./dialog/dialog.js";
|
|
15
|
+
import { DialogBackdrop, DialogBackdropProps, DialogClose, DialogCloseProps, DialogDescription, DialogDescriptionProps, DialogPopup, DialogPopupProps, DialogTitle, DialogTitleProps, DialogViewport, DialogViewportProps } from "./dialog/parts.js";
|
|
16
|
+
import { Drawer, DrawerProps, DrawerSide, styles as styles$9 } from "./drawer/drawer.js";
|
|
17
|
+
import { DrawerBackdrop, DrawerBackdropProps, DrawerClose, DrawerCloseProps, DrawerContent, DrawerContentProps, DrawerDescription, DrawerDescriptionProps, DrawerFooter, DrawerHandleBar, DrawerPopup, DrawerPopupProps, DrawerTitle, DrawerTitleProps, DrawerViewport, DrawerViewportProps } from "./drawer/parts.js";
|
|
18
|
+
import { Input, InputProps, InputSize, styles as styles$10 } from "./input/input.js";
|
|
19
|
+
import { Switch, SwitchProps, styles as styles$17 } from "./switch/switch.js";
|
|
20
|
+
import { SwitchRoot, SwitchRootProps, SwitchThumb, SwitchThumbProps } from "./switch/parts.js";
|
|
21
|
+
import { Select, SelectGroup, SelectOption, SelectProps, styles as styles$14 } from "./select/select.js";
|
|
22
|
+
import { SelectGroup as SelectGroup$1, SelectGroupLabel, SelectGroupLabelProps, SelectGroupProps, SelectItem, SelectItemIndicator, SelectItemIndicatorProps, SelectItemProps, SelectItemText, SelectItemTextProps, SelectList, SelectListProps, SelectPopup, SelectPopupProps, SelectPositioner, SelectPositionerProps, SelectSeparator, SelectSeparatorProps, SelectTrigger, SelectTriggerProps, SelectValue, SelectValueProps } from "./select/parts.js";
|
|
23
|
+
import { Tooltip, TooltipProps, styles as styles$20 } from "./tooltip/tooltip.js";
|
|
24
|
+
import { TooltipArrow, TooltipArrowProps, TooltipPopup, TooltipPopupProps, TooltipPositioner, TooltipPositionerProps } from "./tooltip/parts.js";
|
|
25
|
+
import { TabItem, Tabs, TabsProps, styles as styles$18 } from "./tabs/tabs.js";
|
|
26
|
+
import { TabsList, TabsListProps, TabsPanel, TabsPanelProps, TabsTab, TabsTabProps } from "./tabs/parts.js";
|
|
27
|
+
import { Progress, ProgressProps, ProgressSize, ProgressStatus, styles as styles$13 } from "./progress/progress.js";
|
|
28
|
+
import { ProgressIndicator, ProgressIndicatorProps, ProgressTrack, ProgressTrackProps } from "./progress/parts.js";
|
|
29
|
+
import { ToastType, ToastViewport, styles as styles$19, useToastManager } from "./toast/toast.js";
|
|
30
|
+
import { ToastClose, ToastCloseProps, ToastDescription, ToastDescriptionProps, ToastRoot, ToastRootProps, ToastTitle, ToastTitleProps, ToastViewportPart, ToastViewportPartProps } from "./toast/parts.js";
|
|
31
|
+
import { Separator, SeparatorProps, styles as styles$15 } from "./separator/separator.js";
|
|
32
|
+
import { Slider, SliderProps, styles as styles$16 } from "./slider/slider.js";
|
|
33
|
+
import { SliderControl, SliderControlProps, SliderIndicator, SliderIndicatorProps, SliderLabel, SliderLabelProps, SliderThumb, SliderThumbProps, SliderTrack, SliderTrackProps, SliderValue, SliderValueProps } from "./slider/parts.js";
|
|
34
|
+
import { NumberField, NumberFieldProps, styles as styles$12 } from "./number-field/number-field.js";
|
|
35
|
+
import { NumberFieldDecrement, NumberFieldDecrementProps, NumberFieldGroup, NumberFieldGroupProps, NumberFieldIncrement, NumberFieldIncrementProps, NumberFieldInput, NumberFieldInputProps, NumberFieldScrubArea, NumberFieldScrubAreaCursor, NumberFieldScrubAreaCursorProps, NumberFieldScrubAreaProps } from "./number-field/parts.js";
|
|
36
|
+
import { Menu, MenuEntry, MenuGroupDef, MenuItemDef, MenuProps, MenuSeparatorDef, styles as styles$11 } from "./menu/menu.js";
|
|
37
|
+
import { MenuItemShortcut, MenuItemShortcutProps } from "./menu/menuitemshortcut.js";
|
|
38
|
+
import { MenuArrow, MenuArrowProps, MenuGroupLabel, MenuGroupLabelProps, MenuItem, MenuItemProps, MenuPopup, MenuPopupProps, MenuPositioner, MenuPositionerProps, MenuSeparator, MenuSeparatorProps } from "./menu/parts.js";
|
|
39
|
+
export { Accordion, AccordionHeader, type AccordionHeaderProps, type AccordionItem, AccordionItem$1 as AccordionItemPart, type AccordionItemProps, AccordionPanel, type AccordionPanelProps, type AccordionProps, styles as AccordionStyles, AccordionTrigger, type AccordionTriggerProps, type AlertAction, AlertDialog, AlertDialogBackdrop, type AlertDialogBackdropProps, AlertDialogDescription, type AlertDialogDescriptionProps, AlertDialogPopup, type AlertDialogPopupProps, type AlertDialogProps, styles$1 as AlertDialogStyles, AlertDialogTitle, type AlertDialogTitleProps, Badge, type BadgeProps, styles$2 as BadgeStyles, type BadgeVariant, Button, type ButtonProps, type ButtonSize, styles$3 as ButtonStyles, type ButtonVariant, Card, CardBody, CardFooter, CardHeader, type CardHeaderProps, type CardProps, styles$4 as CardStyles, Checkbox, CheckboxIndicator, type CheckboxIndicatorProps, type CheckboxProps, CheckboxRoot, type CheckboxRootProps, styles$5 as CheckboxStyles, Collapsible, CollapsiblePanel, type CollapsiblePanelProps, type CollapsibleProps, CollapsibleRoot, type CollapsibleRootProps, styles$6 as CollapsibleStyles, CollapsibleTrigger, type CollapsibleTriggerProps, ContextMenu, type ContextMenuEntry, ContextMenuGroup, type ContextMenuGroupDef, ContextMenuGroupLabel, type ContextMenuGroupLabelProps, type ContextMenuGroupProps, ContextMenuItem, type ContextMenuItemDef, type ContextMenuItemProps, ContextMenuPopup, type ContextMenuPopupProps, type ContextMenuProps, ContextMenuSeparator, type ContextMenuSeparatorDef, type ContextMenuSeparatorProps, styles$7 as ContextMenuStyles, Dialog, DialogBackdrop, type DialogBackdropProps, DialogClose, type DialogCloseProps, DialogDescription, type DialogDescriptionProps, DialogPopup, type DialogPopupProps, type DialogProps, styles$8 as DialogStyles, DialogTitle, type DialogTitleProps, DialogViewport, type DialogViewportProps, Drawer, DrawerBackdrop, type DrawerBackdropProps, DrawerClose, type DrawerCloseProps, DrawerContent, type DrawerContentProps, DrawerDescription, type DrawerDescriptionProps, DrawerFooter, DrawerHandleBar, DrawerPopup, type DrawerPopupProps, type DrawerProps, type DrawerSide, styles$9 as DrawerStyles, DrawerTitle, type DrawerTitleProps, DrawerViewport, type DrawerViewportProps, Input, type InputProps, type InputSize, styles$10 as InputStyles, Menu, MenuArrow, type MenuArrowProps, type MenuEntry, type MenuGroupDef, MenuGroupLabel, type MenuGroupLabelProps, MenuItem, type MenuItemDef, type MenuItemProps, MenuItemShortcut, type MenuItemShortcutProps, MenuPopup, type MenuPopupProps, MenuPositioner, type MenuPositionerProps, type MenuProps, MenuSeparator, type MenuSeparatorDef, type MenuSeparatorProps, styles$11 as MenuStyles, NumberField, NumberFieldDecrement, type NumberFieldDecrementProps, NumberFieldGroup, type NumberFieldGroupProps, NumberFieldIncrement, type NumberFieldIncrementProps, NumberFieldInput, type NumberFieldInputProps, type NumberFieldProps, NumberFieldScrubArea, NumberFieldScrubAreaCursor, type NumberFieldScrubAreaCursorProps, type NumberFieldScrubAreaProps, styles$12 as NumberFieldStyles, Progress, ProgressIndicator, type ProgressIndicatorProps, type ProgressProps, type ProgressSize, type ProgressStatus, styles$13 as ProgressStyles, ProgressTrack, type ProgressTrackProps, Select, type SelectGroup, SelectGroup$1 as SelectGroupContainer, SelectGroupLabel, type SelectGroupLabelProps, type SelectGroupProps, SelectItem, SelectItemIndicator, type SelectItemIndicatorProps, type SelectItemProps, SelectItemText, type SelectItemTextProps, SelectList, type SelectListProps, type SelectOption, SelectPopup, type SelectPopupProps, SelectPositioner, type SelectPositionerProps, type SelectProps, SelectSeparator, type SelectSeparatorProps, styles$14 as SelectStyles, SelectTrigger, type SelectTriggerProps, SelectValue, type SelectValueProps, Separator, type SeparatorProps, styles$15 as SeparatorStyles, Slider, SliderControl, type SliderControlProps, SliderIndicator, type SliderIndicatorProps, SliderLabel, type SliderLabelProps, type SliderProps, styles$16 as SliderStyles, SliderThumb, type SliderThumbProps, SliderTrack, type SliderTrackProps, SliderValue, type SliderValueProps, Switch, type SwitchProps, SwitchRoot, type SwitchRootProps, styles$17 as SwitchStyles, SwitchThumb, type SwitchThumbProps, type TabItem, Tabs, TabsList, type TabsListProps, TabsPanel, type TabsPanelProps, type TabsProps, styles$18 as TabsStyles, TabsTab, type TabsTabProps, ToastClose, type ToastCloseProps, ToastDescription, type ToastDescriptionProps, ToastRoot, type ToastRootProps, styles$19 as ToastStyles, ToastTitle, type ToastTitleProps, type ToastType, ToastViewport, ToastViewportPart, type ToastViewportPartProps, Tooltip, TooltipArrow, type TooltipArrowProps, TooltipPopup, type TooltipPopupProps, TooltipPositioner, type TooltipPositionerProps, type TooltipProps, styles$20 as TooltipStyles, useToastManager };
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
/* empty css */
|
|
2
|
+
/* empty css */
|
|
3
|
+
import button_module_default from "./button/button.module.js";
|
|
4
|
+
import { Button } from "./button/button.js";
|
|
5
|
+
import alert_dialog_module_default from "./alert-dialog/alert-dialog.module.js";
|
|
6
|
+
import { AlertDialog } from "./alert-dialog/alert-dialog.js";
|
|
7
|
+
import { AlertDialogBackdrop, AlertDialogDescription, AlertDialogPopup, AlertDialogTitle } from "./alert-dialog/parts.js";
|
|
8
|
+
import context_menu_module_default from "./context-menu/context-menu.module.js";
|
|
9
|
+
import { ContextMenu } from "./context-menu/context-menu.js";
|
|
10
|
+
import { ContextMenuGroup, ContextMenuGroupLabel, ContextMenuItem, ContextMenuPopup, ContextMenuSeparator } from "./context-menu/parts.js";
|
|
11
|
+
import badge_module_default from "./badge/badge.module.js";
|
|
12
|
+
import { Badge } from "./badge/badge.js";
|
|
13
|
+
import card_module_default from "./card/card.module.js";
|
|
14
|
+
import { Card, CardBody, CardFooter, CardHeader } from "./card/card.js";
|
|
15
|
+
import input_module_default from "./input/input.module.js";
|
|
16
|
+
import { Input } from "./input/input.js";
|
|
17
|
+
import checkbox_module_default from "./checkbox/checkbox.module.js";
|
|
18
|
+
import { Checkbox } from "./checkbox/checkbox.js";
|
|
19
|
+
import { CheckboxIndicator, CheckboxRoot } from "./checkbox/parts.js";
|
|
20
|
+
import switch_module_default from "./switch/switch.module.js";
|
|
21
|
+
import { Switch } from "./switch/switch.js";
|
|
22
|
+
import { SwitchRoot, SwitchThumb } from "./switch/parts.js";
|
|
23
|
+
import select_module_default from "./select/select.module.js";
|
|
24
|
+
import { Select } from "./select/select.js";
|
|
25
|
+
import { SelectGroup, SelectGroupLabel, SelectItem, SelectItemIndicator, SelectItemText, SelectList, SelectPopup, SelectPositioner, SelectSeparator, SelectTrigger, SelectValue } from "./select/parts.js";
|
|
26
|
+
import dialog_module_default from "./dialog/dialog.module.js";
|
|
27
|
+
import { Dialog } from "./dialog/dialog.js";
|
|
28
|
+
import { DialogBackdrop, DialogClose, DialogDescription, DialogPopup, DialogTitle, DialogViewport } from "./dialog/parts.js";
|
|
29
|
+
import tooltip_module_default from "./tooltip/tooltip.module.js";
|
|
30
|
+
import { Tooltip } from "./tooltip/tooltip.js";
|
|
31
|
+
import { TooltipArrow, TooltipPopup, TooltipPositioner } from "./tooltip/parts.js";
|
|
32
|
+
import tabs_module_default from "./tabs/tabs.module.js";
|
|
33
|
+
import { Tabs } from "./tabs/tabs.js";
|
|
34
|
+
import { TabsList, TabsPanel, TabsTab } from "./tabs/parts.js";
|
|
35
|
+
import accordion_module_default from "./accordion/accordion.module.js";
|
|
36
|
+
import { Accordion } from "./accordion/accordion.js";
|
|
37
|
+
import { AccordionHeader, AccordionItem, AccordionPanel, AccordionTrigger } from "./accordion/parts.js";
|
|
38
|
+
import progress_module_default from "./progress/progress.module.js";
|
|
39
|
+
import { Progress } from "./progress/progress.js";
|
|
40
|
+
import { ProgressIndicator, ProgressTrack } from "./progress/parts.js";
|
|
41
|
+
import toast_module_default from "./toast/toast.module.js";
|
|
42
|
+
import { ToastViewport, useToastManager } from "./toast/toast.js";
|
|
43
|
+
import { ToastClose, ToastDescription, ToastRoot, ToastTitle, ToastViewportPart } from "./toast/parts.js";
|
|
44
|
+
import drawer_module_default from "./drawer/drawer.module.js";
|
|
45
|
+
import { Drawer } from "./drawer/drawer.js";
|
|
46
|
+
import { DrawerBackdrop, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHandleBar, DrawerPopup, DrawerTitle, DrawerViewport } from "./drawer/parts.js";
|
|
47
|
+
import separator_module_default from "./separator/separator.module.js";
|
|
48
|
+
import { Separator } from "./separator/separator.js";
|
|
49
|
+
import slider_module_default from "./slider/slider.module.js";
|
|
50
|
+
import { Slider } from "./slider/slider.js";
|
|
51
|
+
import { SliderControl, SliderIndicator, SliderLabel, SliderThumb, SliderTrack, SliderValue } from "./slider/parts.js";
|
|
52
|
+
import collapsible_module_default from "./collapsible/collapsible.module.js";
|
|
53
|
+
import { Collapsible } from "./collapsible/collapsible.js";
|
|
54
|
+
import { CollapsiblePanel, CollapsibleRoot, CollapsibleTrigger } from "./collapsible/parts.js";
|
|
55
|
+
import number_field_module_default from "./number-field/number-field.module.js";
|
|
56
|
+
import { NumberField } from "./number-field/number-field.js";
|
|
57
|
+
import { NumberFieldDecrement, NumberFieldGroup, NumberFieldIncrement, NumberFieldInput, NumberFieldScrubArea, NumberFieldScrubAreaCursor } from "./number-field/parts.js";
|
|
58
|
+
import menu_module_default from "./menu/menu.module.js";
|
|
59
|
+
import { Menu } from "./menu/menu.js";
|
|
60
|
+
import { MenuItemShortcut } from "./menu/menuitemshortcut.js";
|
|
61
|
+
import { MenuArrow, MenuGroupLabel, MenuItem, MenuPopup, MenuPositioner, MenuSeparator } from "./menu/parts.js";
|
|
62
|
+
export { Accordion, AccordionHeader, AccordionItem as AccordionItemPart, AccordionPanel, accordion_module_default as AccordionStyles, AccordionTrigger, AlertDialog, AlertDialogBackdrop, AlertDialogDescription, AlertDialogPopup, alert_dialog_module_default as AlertDialogStyles, AlertDialogTitle, Badge, badge_module_default as BadgeStyles, Button, button_module_default as ButtonStyles, Card, CardBody, CardFooter, CardHeader, card_module_default as CardStyles, Checkbox, CheckboxIndicator, CheckboxRoot, checkbox_module_default as CheckboxStyles, Collapsible, CollapsiblePanel, CollapsibleRoot, collapsible_module_default as CollapsibleStyles, CollapsibleTrigger, ContextMenu, ContextMenuGroup, ContextMenuGroupLabel, ContextMenuItem, ContextMenuPopup, ContextMenuSeparator, context_menu_module_default as ContextMenuStyles, Dialog, DialogBackdrop, DialogClose, DialogDescription, DialogPopup, dialog_module_default as DialogStyles, DialogTitle, DialogViewport, Drawer, DrawerBackdrop, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHandleBar, DrawerPopup, drawer_module_default as DrawerStyles, DrawerTitle, DrawerViewport, Input, input_module_default as InputStyles, Menu, MenuArrow, MenuGroupLabel, MenuItem, MenuItemShortcut, MenuPopup, MenuPositioner, MenuSeparator, menu_module_default as MenuStyles, NumberField, NumberFieldDecrement, NumberFieldGroup, NumberFieldIncrement, NumberFieldInput, NumberFieldScrubArea, NumberFieldScrubAreaCursor, number_field_module_default as NumberFieldStyles, Progress, ProgressIndicator, progress_module_default as ProgressStyles, ProgressTrack, Select, SelectGroup as SelectGroupContainer, SelectGroupLabel, SelectItem, SelectItemIndicator, SelectItemText, SelectList, SelectPopup, SelectPositioner, SelectSeparator, select_module_default as SelectStyles, SelectTrigger, SelectValue, Separator, separator_module_default as SeparatorStyles, Slider, SliderControl, SliderIndicator, SliderLabel, slider_module_default as SliderStyles, SliderThumb, SliderTrack, SliderValue, Switch, SwitchRoot, switch_module_default as SwitchStyles, SwitchThumb, Tabs, TabsList, TabsPanel, tabs_module_default as TabsStyles, TabsTab, ToastClose, ToastDescription, ToastRoot, toast_module_default as ToastStyles, ToastTitle, ToastViewport, ToastViewportPart, Tooltip, TooltipArrow, TooltipPopup, TooltipPositioner, tooltip_module_default as TooltipStyles, useToastManager };
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
@layer components {
|
|
2
|
+
.wrapper_ZbafIa {
|
|
3
|
+
gap: var(--space-1);
|
|
4
|
+
flex-direction: column;
|
|
5
|
+
width: 100%;
|
|
6
|
+
display: flex;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
.inputWrapper_ZbafIa {
|
|
10
|
+
align-items: center;
|
|
11
|
+
display: flex;
|
|
12
|
+
position: relative;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.root_ZbafIa {
|
|
16
|
+
width: 100%;
|
|
17
|
+
font-family: var(--font-mono);
|
|
18
|
+
font-size: var(--font-size-sm);
|
|
19
|
+
color: var(--color-primary);
|
|
20
|
+
background-color: var(--color-surface-1);
|
|
21
|
+
border: var(--border-width-base) solid var(--color-line);
|
|
22
|
+
border-radius: var(--radius-md);
|
|
23
|
+
transition: border-color var(--duration-fast) var(--easing-standard),
|
|
24
|
+
box-shadow var(--duration-fast) var(--easing-standard),
|
|
25
|
+
background-color var(--duration-fast) var(--easing-standard);
|
|
26
|
+
-webkit-appearance: none;
|
|
27
|
+
appearance: none;
|
|
28
|
+
outline: none;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.root_ZbafIa::placeholder {
|
|
32
|
+
color: var(--color-tertiary);
|
|
33
|
+
font-family: var(--font-mono);
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
.root_ZbafIa:hover:not(:disabled):not([data-invalid]) {
|
|
37
|
+
border-color: var(--color-line-strong);
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.root_ZbafIa:focus:not(:disabled) {
|
|
41
|
+
border-color: var(--color-accent);
|
|
42
|
+
box-shadow: var(--shadow-focus);
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.root_ZbafIa:disabled {
|
|
46
|
+
opacity: .44;
|
|
47
|
+
cursor: not-allowed;
|
|
48
|
+
background-color: var(--color-surface-2);
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
.root_ZbafIa[data-invalid], .root_ZbafIa[aria-invalid="true"] {
|
|
52
|
+
border-color: var(--color-error-solid);
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
.root_ZbafIa[data-invalid]:focus, .root_ZbafIa[aria-invalid="true"]:focus {
|
|
56
|
+
box-shadow: 0 0 0 3px #dc262640;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
.size-sm_ZbafIa {
|
|
60
|
+
height: 26px;
|
|
61
|
+
padding-inline: var(--space-2);
|
|
62
|
+
font-size: var(--font-size-xs);
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
.size-md_ZbafIa {
|
|
66
|
+
height: 30px;
|
|
67
|
+
padding-inline: var(--space-2-5);
|
|
68
|
+
font-size: var(--font-size-sm);
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
.size-lg_ZbafIa {
|
|
72
|
+
height: 36px;
|
|
73
|
+
padding-inline: var(--space-3);
|
|
74
|
+
font-size: var(--font-size-md);
|
|
75
|
+
border-radius: var(--radius-lg);
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
.has-left-icon_ZbafIa {
|
|
79
|
+
padding-left: var(--space-8);
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
.has-right-icon_ZbafIa {
|
|
83
|
+
padding-right: var(--space-8);
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
.adornment_ZbafIa {
|
|
87
|
+
color: var(--color-tertiary);
|
|
88
|
+
pointer-events: none;
|
|
89
|
+
width: var(--space-8);
|
|
90
|
+
justify-content: center;
|
|
91
|
+
align-items: center;
|
|
92
|
+
display: flex;
|
|
93
|
+
position: absolute;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
.adornment-left_ZbafIa {
|
|
97
|
+
left: 0;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
.adornment-right_ZbafIa {
|
|
101
|
+
right: 0;
|
|
102
|
+
}
|
|
103
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import * as react from "react";
|
|
2
|
+
import { ComponentPropsWithoutRef, ReactNode } from "react";
|
|
3
|
+
import styles from "./input.module.css";
|
|
4
|
+
|
|
5
|
+
//#region src/input/input.d.ts
|
|
6
|
+
type InputSize = "sm" | "md" | "lg";
|
|
7
|
+
interface InputProps extends Omit<ComponentPropsWithoutRef<"input">, "size"> {
|
|
8
|
+
/** Visual size. Maps to height + font-size design tokens. Default: `"md"`. */
|
|
9
|
+
size?: InputSize;
|
|
10
|
+
leftAdornment?: ReactNode;
|
|
11
|
+
rightAdornment?: ReactNode;
|
|
12
|
+
invalid?: boolean;
|
|
13
|
+
}
|
|
14
|
+
declare const Input: react.ForwardRefExoticComponent<InputProps & react.RefAttributes<HTMLInputElement>>;
|
|
15
|
+
//#endregion
|
|
16
|
+
export { Input, InputProps, InputSize, styles };
|
|
17
|
+
//# sourceMappingURL=input.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"input.d.ts","names":[],"sources":["../../src/input/input.tsx"],"mappings":";;;;;KAKY,SAAA;AAAA,UAGK,UAAA,SAAmB,IAAA,CAAK,wBAAA;;EAEvC,IAAA,GAAO,SAAA;EACP,aAAA,GAAgB,SAAA;EAChB,cAAA,GAAiB,SAAA;EACjB,OAAA;AAAA;AAAA,cAGW,KAAA,EAAK,KAAA,CAAA,yBAAA,CAAA,UAAA,GAAA,KAAA,CAAA,aAAA,CAAA,gBAAA"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import input_module_default from "./input.module.js";
|
|
2
|
+
import { forwardRef } from "react";
|
|
3
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
4
|
+
import { Input } from "@base-ui/react/input";
|
|
5
|
+
//#region src/input/input.tsx
|
|
6
|
+
const Input$1 = forwardRef(function Input$2({ size = "md", leftAdornment, rightAdornment, invalid, className, ...props }, ref) {
|
|
7
|
+
const classes = [
|
|
8
|
+
input_module_default.root,
|
|
9
|
+
input_module_default[`size-${size}`],
|
|
10
|
+
leftAdornment ? input_module_default["has-left-icon"] : "",
|
|
11
|
+
rightAdornment ? input_module_default["has-right-icon"] : "",
|
|
12
|
+
className ?? ""
|
|
13
|
+
].filter(Boolean).join(" ");
|
|
14
|
+
return /* @__PURE__ */ jsxs("div", {
|
|
15
|
+
className: input_module_default.inputWrapper,
|
|
16
|
+
children: [
|
|
17
|
+
leftAdornment && /* @__PURE__ */ jsx("span", {
|
|
18
|
+
className: `${input_module_default.adornment} ${input_module_default["adornment-left"]}`,
|
|
19
|
+
children: leftAdornment
|
|
20
|
+
}),
|
|
21
|
+
/* @__PURE__ */ jsx(Input, {
|
|
22
|
+
ref,
|
|
23
|
+
className: classes,
|
|
24
|
+
"aria-invalid": invalid,
|
|
25
|
+
...props
|
|
26
|
+
}),
|
|
27
|
+
rightAdornment && /* @__PURE__ */ jsx("span", {
|
|
28
|
+
className: `${input_module_default.adornment} ${input_module_default["adornment-right"]}`,
|
|
29
|
+
children: rightAdornment
|
|
30
|
+
})
|
|
31
|
+
]
|
|
32
|
+
});
|
|
33
|
+
});
|
|
34
|
+
//#endregion
|
|
35
|
+
export { Input$1 as Input };
|
|
36
|
+
|
|
37
|
+
//# sourceMappingURL=input.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"input.js","names":["Input","styles","BaseInput"],"sources":["../../src/input/input.tsx"],"sourcesContent":["import { forwardRef } from \"react\";\nimport type { ComponentPropsWithoutRef, ReactNode } from \"react\";\nimport { Input as BaseInput } from \"@base-ui/react/input\";\nimport styles from \"./input.module.css\";\n\nexport type InputSize = \"sm\" | \"md\" | \"lg\";\n\n// Omit native `size` (number) so we can use string-based size tokens\nexport interface InputProps extends Omit<ComponentPropsWithoutRef<\"input\">, \"size\"> {\n /** Visual size. Maps to height + font-size design tokens. Default: `\"md\"`. */\n size?: InputSize;\n leftAdornment?: ReactNode;\n rightAdornment?: ReactNode;\n invalid?: boolean;\n}\n\nexport const Input = forwardRef<HTMLInputElement, InputProps>(function Input(\n { size = \"md\", leftAdornment, rightAdornment, invalid, className, ...props },\n ref,\n) {\n const classes = [\n styles.root,\n styles[`size-${size}`],\n leftAdornment ? styles[\"has-left-icon\"] : \"\",\n rightAdornment ? styles[\"has-right-icon\"] : \"\",\n className ?? \"\",\n ]\n .filter(Boolean)\n .join(\" \");\n\n return (\n <div className={styles.inputWrapper}>\n {leftAdornment && <span className={`${styles.adornment} ${styles[\"adornment-left\"]}`}>{leftAdornment}</span>}\n <BaseInput ref={ref} className={classes} aria-invalid={invalid} {...props} />\n {rightAdornment && <span className={`${styles.adornment} ${styles[\"adornment-right\"]}`}>{rightAdornment}</span>}\n </div>\n );\n});\nexport { styles as InputStyles };\n"],"mappings":";;;;;AAgBA,MAAaA,UAAQ,WAAyC,SAASA,QACrE,EAAE,OAAO,MAAM,eAAe,gBAAgB,SAAS,WAAW,GAAG,SACrE,KACA;CACA,MAAM,UAAU;EACdC,qBAAO;EACPA,qBAAO,QAAQ;EACf,gBAAgBA,qBAAO,mBAAmB;EAC1C,iBAAiBA,qBAAO,oBAAoB;EAC5C,aAAa;EACd,CACE,OAAO,QAAQ,CACf,KAAK,IAAI;AAEZ,QACE,qBAAC,OAAD;EAAK,WAAWA,qBAAO;YAAvB;GACG,iBAAiB,oBAAC,QAAD;IAAM,WAAW,GAAGA,qBAAO,UAAU,GAAGA,qBAAO;cAAsB;IAAqB,CAAA;GAC5G,oBAACC,OAAD;IAAgB;IAAK,WAAW;IAAS,gBAAc;IAAS,GAAI;IAAS,CAAA;GAC5E,kBAAkB,oBAAC,QAAD;IAAM,WAAW,GAAGD,qBAAO,UAAU,GAAGA,qBAAO;cAAuB;IAAsB,CAAA;GAC3G;;EAER"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
//#region src/input/input.module.css
|
|
2
|
+
var input_module_default = {
|
|
3
|
+
"adornment": "adornment_ZbafIa",
|
|
4
|
+
"adornment-left": "adornment-left_ZbafIa",
|
|
5
|
+
"adornment-right": "adornment-right_ZbafIa",
|
|
6
|
+
"has-left-icon": "has-left-icon_ZbafIa",
|
|
7
|
+
"has-right-icon": "has-right-icon_ZbafIa",
|
|
8
|
+
"inputWrapper": "inputWrapper_ZbafIa",
|
|
9
|
+
"root": "root_ZbafIa",
|
|
10
|
+
"size-lg": "size-lg_ZbafIa",
|
|
11
|
+
"size-md": "size-md_ZbafIa",
|
|
12
|
+
"size-sm": "size-sm_ZbafIa",
|
|
13
|
+
"wrapper": "wrapper_ZbafIa"
|
|
14
|
+
};
|
|
15
|
+
//#endregion
|
|
16
|
+
export { input_module_default as default };
|
|
17
|
+
|
|
18
|
+
//# sourceMappingURL=input.module.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"input.module.js","names":[],"sources":["../../src/input/input.module.css"],"sourcesContent":["@layer components {\n .wrapper {\n display: flex;\n flex-direction: column;\n gap: var(--space-1);\n width: 100%;\n }\n .inputWrapper {\n position: relative;\n display: flex;\n align-items: center;\n }\n .root {\n width: 100%;\n font-family: var(--font-mono);\n font-size: var(--font-size-sm);\n color: var(--color-primary);\n background-color: var(--color-surface-1);\n border: var(--border-width-base) solid var(--color-line);\n border-radius: var(--radius-md);\n outline: none;\n transition:\n border-color var(--duration-fast) var(--easing-standard),\n box-shadow var(--duration-fast) var(--easing-standard),\n background-color var(--duration-fast) var(--easing-standard);\n appearance: none;\n -webkit-appearance: none;\n }\n .root::placeholder {\n color: var(--color-tertiary);\n font-family: var(--font-mono);\n }\n .root:hover:not(:disabled):not([data-invalid]) {\n border-color: var(--color-line-strong);\n }\n .root:focus:not(:disabled) {\n border-color: var(--color-accent);\n box-shadow: var(--shadow-focus);\n }\n .root:disabled {\n opacity: 0.44;\n cursor: not-allowed;\n background-color: var(--color-surface-2);\n }\n .root[data-invalid],\n .root[aria-invalid=\"true\"] {\n border-color: var(--color-error-solid);\n }\n .root[data-invalid]:focus,\n .root[aria-invalid=\"true\"]:focus {\n box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.25);\n }\n /* ─── Sizes ─────────────────────────────────────────── */\n .size-sm {\n height: 26px;\n padding-inline: var(--space-2);\n font-size: var(--font-size-xs);\n }\n .size-md {\n height: 30px;\n padding-inline: var(--space-2-5);\n font-size: var(--font-size-sm);\n }\n .size-lg {\n height: 36px;\n padding-inline: var(--space-3);\n font-size: var(--font-size-md);\n border-radius: var(--radius-lg);\n }\n /* Padding adjustments for icons */\n .has-left-icon {\n padding-left: var(--space-8);\n }\n .has-right-icon {\n padding-right: var(--space-8);\n }\n /* ─── Adornments ────────────────────────────────────── */\n .adornment {\n position: absolute;\n display: flex;\n align-items: center;\n justify-content: center;\n color: var(--color-tertiary);\n pointer-events: none;\n width: var(--space-8);\n }\n .adornment-left {\n left: 0;\n }\n .adornment-right {\n right: 0;\n }\n}\n"],"mappings":";AAsBA,IAAA,uBAAa;CAAA,aAAY;CAAqB,kBAAgB;CAAA,mBAAA;CAAA,iBAAA;CAAA,kBAAA;CAAA,gBAAA;CAAA,QAAA;CAAA,WAAA;CAAA,WAAA;CAAA,WAAA;CAAA,WAAA;CAAA"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* @brijbyte/agentic-ui — CSS layer order declaration
|
|
3
|
+
*
|
|
4
|
+
* Import this ONCE, before any other stylesheet in your app entry.
|
|
5
|
+
* It establishes the cascade order so component styles always beat
|
|
6
|
+
* Tailwind preflight resets, and Tailwind utilities always beat components.
|
|
7
|
+
*
|
|
8
|
+
* If you use the full bundle (@brijbyte/agentic-ui/styles) or tokens.css,
|
|
9
|
+
* this is already included — you don't need to import it separately.
|
|
10
|
+
*
|
|
11
|
+
* Manual setup (without Tailwind):
|
|
12
|
+
* @import "@brijbyte/agentic-ui/layer-order";
|
|
13
|
+
* @import "@brijbyte/agentic-ui/tokens";
|
|
14
|
+
* @import "@brijbyte/agentic-ui/reset";
|
|
15
|
+
*
|
|
16
|
+
* With Tailwind v4:
|
|
17
|
+
* @import "tailwindcss";
|
|
18
|
+
* @import "@brijbyte/agentic-ui/layer-order"; ← before tokens
|
|
19
|
+
* @import "@brijbyte/agentic-ui/tokens";
|
|
20
|
+
*/
|
|
21
|
+
|
|
22
|
+
@layer theme, base, components, utilities;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { Menu, MenuEntry, MenuGroupDef, MenuItemDef, MenuProps, MenuSeparatorDef, styles } from "./menu.js";
|
|
2
|
+
import { MenuItemShortcut, MenuItemShortcutProps } from "./menuitemshortcut.js";
|
|
3
|
+
import { MenuArrow, MenuArrowProps, MenuGroupLabel, MenuGroupLabelProps, MenuItem, MenuItemProps, MenuPopup, MenuPopupProps, MenuPositioner, MenuPositionerProps, MenuSeparator, MenuSeparatorProps } from "./parts.js";
|
|
4
|
+
export { Menu, MenuArrow, type MenuArrowProps, type MenuEntry, type MenuGroupDef, MenuGroupLabel, type MenuGroupLabelProps, MenuItem, type MenuItemDef, type MenuItemProps, MenuItemShortcut, type MenuItemShortcutProps, MenuPopup, type MenuPopupProps, MenuPositioner, type MenuPositionerProps, type MenuProps, MenuSeparator, type MenuSeparatorDef, type MenuSeparatorProps, styles as MenuStyles };
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import menu_module_default from "./menu.module.js";
|
|
2
|
+
import { Menu } from "./menu.js";
|
|
3
|
+
import { MenuItemShortcut } from "./menuitemshortcut.js";
|
|
4
|
+
import { MenuArrow, MenuGroupLabel, MenuItem, MenuPopup, MenuPositioner, MenuSeparator } from "./parts.js";
|
|
5
|
+
export { Menu, MenuArrow, MenuGroupLabel, MenuItem, MenuItemShortcut, MenuPopup, MenuPositioner, MenuSeparator, menu_module_default as MenuStyles };
|
|
@@ -0,0 +1,154 @@
|
|
|
1
|
+
@layer components {
|
|
2
|
+
.positioner_HVPjPa {
|
|
3
|
+
z-index: var(--z-dropdown);
|
|
4
|
+
outline: none;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
.popup_HVPjPa {
|
|
8
|
+
box-sizing: border-box;
|
|
9
|
+
padding: var(--space-1) 0;
|
|
10
|
+
border-radius: var(--radius-lg);
|
|
11
|
+
background-color: var(--color-overlay);
|
|
12
|
+
border: var(--border-width-base) solid var(--color-line);
|
|
13
|
+
box-shadow: var(--shadow-popover);
|
|
14
|
+
color: var(--color-primary);
|
|
15
|
+
font-family: var(--font-mono);
|
|
16
|
+
font-size: var(--font-size-sm);
|
|
17
|
+
min-width: 200px;
|
|
18
|
+
transform-origin: var(--transform-origin);
|
|
19
|
+
outline: none;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
@supports (backdrop-filter: blur(12px)) {
|
|
23
|
+
.popup_HVPjPa {
|
|
24
|
+
-webkit-backdrop-filter: blur(20px) saturate(1.8);
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.popup_HVPjPa[data-starting-style] {
|
|
29
|
+
opacity: 0;
|
|
30
|
+
transition: opacity .15s var(--easing-ease-out),
|
|
31
|
+
transform .15s var(--easing-ease-out);
|
|
32
|
+
transform: scale(.95);
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.popup_HVPjPa[data-ending-style] {
|
|
36
|
+
opacity: 0;
|
|
37
|
+
transition: opacity 75ms var(--easing-ease-in),
|
|
38
|
+
transform 75ms var(--easing-ease-in);
|
|
39
|
+
transform: scale(.98);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
.item_HVPjPa {
|
|
43
|
+
align-items: center;
|
|
44
|
+
gap: var(--space-2);
|
|
45
|
+
padding: var(--space-1-5) var(--space-3);
|
|
46
|
+
margin: 1px var(--space-1);
|
|
47
|
+
border-radius: var(--radius-md);
|
|
48
|
+
font-family: var(--font-mono);
|
|
49
|
+
font-size: var(--font-size-sm);
|
|
50
|
+
color: var(--color-primary);
|
|
51
|
+
cursor: default;
|
|
52
|
+
user-select: none;
|
|
53
|
+
outline: none;
|
|
54
|
+
transition: none;
|
|
55
|
+
display: flex;
|
|
56
|
+
position: relative;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
.item_HVPjPa[data-highlighted] {
|
|
60
|
+
background-color: var(--color-accent);
|
|
61
|
+
color: var(--color-on-accent);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
.item_HVPjPa[data-disabled] {
|
|
65
|
+
opacity: .44;
|
|
66
|
+
cursor: not-allowed;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
.item-indicator_HVPjPa {
|
|
70
|
+
width: 16px;
|
|
71
|
+
color: inherit;
|
|
72
|
+
flex-shrink: 0;
|
|
73
|
+
justify-content: center;
|
|
74
|
+
align-items: center;
|
|
75
|
+
display: flex;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
.item-text_HVPjPa {
|
|
79
|
+
flex: 1;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
.item-shortcut_HVPjPa {
|
|
83
|
+
margin-left: var(--space-6);
|
|
84
|
+
font-size: var(--font-size-xs);
|
|
85
|
+
color: var(--color-tertiary);
|
|
86
|
+
letter-spacing: .02em;
|
|
87
|
+
flex-shrink: 0;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
.item_HVPjPa[data-highlighted] .item-shortcut_HVPjPa {
|
|
91
|
+
color: color-mix(in srgb, var(--color-on-accent) 60%, transparent);
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
.group-label_HVPjPa {
|
|
95
|
+
padding: var(--space-1-5) var(--space-3) var(--space-0-5);
|
|
96
|
+
font-family: var(--font-mono);
|
|
97
|
+
font-size: var(--font-size-xs);
|
|
98
|
+
font-weight: var(--font-weight-semibold);
|
|
99
|
+
color: var(--color-tertiary);
|
|
100
|
+
text-transform: uppercase;
|
|
101
|
+
letter-spacing: var(--letter-spacing-wide);
|
|
102
|
+
cursor: default;
|
|
103
|
+
user-select: none;
|
|
104
|
+
margin-inline: var(--space-1);
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
.separator_HVPjPa {
|
|
108
|
+
margin: var(--space-1) 0;
|
|
109
|
+
height: var(--border-width-base);
|
|
110
|
+
background-color: var(--color-line-subtle);
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
.submenu-trigger-icon_HVPjPa {
|
|
114
|
+
color: var(--color-tertiary);
|
|
115
|
+
flex-shrink: 0;
|
|
116
|
+
margin-left: auto;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
.item_HVPjPa[data-highlighted] .submenu-trigger-icon_HVPjPa {
|
|
120
|
+
color: color-mix(in srgb, var(--color-on-accent) 70%, transparent);
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
.arrow_HVPjPa {
|
|
124
|
+
display: flex;
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
.arrow_HVPjPa[data-side="top"] {
|
|
128
|
+
bottom: -8px;
|
|
129
|
+
rotate: 180deg;
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
.arrow_HVPjPa[data-side="bottom"] {
|
|
133
|
+
top: -8px;
|
|
134
|
+
rotate: 0deg;
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
.arrow_HVPjPa[data-side="left"] {
|
|
138
|
+
right: -13px;
|
|
139
|
+
rotate: 90deg;
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
.arrow_HVPjPa[data-side="right"] {
|
|
143
|
+
left: -13px;
|
|
144
|
+
rotate: -90deg;
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
.arrow-fill_HVPjPa {
|
|
148
|
+
fill: var(--color-overlay);
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
.arrow-stroke_HVPjPa {
|
|
152
|
+
fill: var(--color-line);
|
|
153
|
+
}
|
|
154
|
+
}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { ReactElement, ReactNode } from "react";
|
|
2
|
+
import * as react_jsx_runtime0 from "react/jsx-runtime";
|
|
3
|
+
import styles from "./menu.module.css";
|
|
4
|
+
|
|
5
|
+
//#region src/menu/menu.d.ts
|
|
6
|
+
interface MenuItemDef {
|
|
7
|
+
type?: "item";
|
|
8
|
+
label: ReactNode;
|
|
9
|
+
value?: string;
|
|
10
|
+
disabled?: boolean;
|
|
11
|
+
shortcut?: ReactNode;
|
|
12
|
+
onSelect?: () => void;
|
|
13
|
+
}
|
|
14
|
+
interface MenuSeparatorDef {
|
|
15
|
+
type: "separator";
|
|
16
|
+
}
|
|
17
|
+
interface MenuGroupDef {
|
|
18
|
+
type: "group";
|
|
19
|
+
label?: ReactNode;
|
|
20
|
+
items: MenuItemDef[];
|
|
21
|
+
}
|
|
22
|
+
type MenuEntry = MenuItemDef | MenuSeparatorDef | MenuGroupDef;
|
|
23
|
+
interface MenuProps {
|
|
24
|
+
/** The button/element that opens the menu. */
|
|
25
|
+
trigger: ReactElement;
|
|
26
|
+
items: MenuEntry[];
|
|
27
|
+
/** @default "bottom" */
|
|
28
|
+
side?: "top" | "bottom" | "left" | "right";
|
|
29
|
+
/** @default "start" */
|
|
30
|
+
align?: "start" | "center" | "end";
|
|
31
|
+
/** @default 4 */
|
|
32
|
+
sideOffset?: number;
|
|
33
|
+
/** controlled open state */
|
|
34
|
+
open?: boolean;
|
|
35
|
+
onOpenChange?: (open: boolean) => void;
|
|
36
|
+
className?: string;
|
|
37
|
+
}
|
|
38
|
+
declare function Menu({
|
|
39
|
+
trigger,
|
|
40
|
+
items,
|
|
41
|
+
side,
|
|
42
|
+
align,
|
|
43
|
+
sideOffset,
|
|
44
|
+
className,
|
|
45
|
+
onOpenChange,
|
|
46
|
+
...props
|
|
47
|
+
}: MenuProps): react_jsx_runtime0.JSX.Element;
|
|
48
|
+
//#endregion
|
|
49
|
+
export { Menu, MenuEntry, MenuGroupDef, MenuItemDef, MenuProps, MenuSeparatorDef, styles };
|
|
50
|
+
//# sourceMappingURL=menu.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"menu.d.ts","names":[],"sources":["../../src/menu/menu.tsx"],"mappings":";;;;;UAMiB,WAAA;EACf,IAAA;EACA,KAAA,EAAO,SAAA;EACP,KAAA;EACA,QAAA;EACA,QAAA,GAAW,SAAA;EACX,QAAA;AAAA;AAAA,UAGe,gBAAA;EACf,IAAA;AAAA;AAAA,UAGe,YAAA;EACf,IAAA;EACA,KAAA,GAAQ,SAAA;EACR,KAAA,EAAO,WAAA;AAAA;AAAA,KAGG,SAAA,GAAY,WAAA,GAAc,gBAAA,GAAmB,YAAA;AAAA,UAExC,SAAA;EAZgB;EAc/B,OAAA,EAAS,YAAA;EACT,KAAA,EAAO,SAAA;EAdH;EAgBJ,IAAA;EAb2B;EAe3B,KAAA;EAZkB;EAclB,UAAA;EAfA;EAiBA,IAAA;EACA,YAAA,IAAgB,IAAA;EAChB,SAAA;AAAA;AAAA,iBAkDc,IAAA,CAAA;EAAO,OAAA;EAAS,KAAA;EAAO,IAAA;EAAiB,KAAA;EAAiB,UAAA;EAAgB,SAAA;EAAW,YAAA;EAAA,GAAiB;AAAA,GAAS,SAAA,GAAS,kBAAA,CAAA,GAAA,CAAA,OAAA"}
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import menu_module_default from "./menu.module.js";
|
|
2
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
|
+
import { Menu } from "@base-ui/react/menu";
|
|
4
|
+
//#region src/menu/menu.tsx
|
|
5
|
+
function ArrowSvg() {
|
|
6
|
+
return /* @__PURE__ */ jsxs("svg", {
|
|
7
|
+
width: "20",
|
|
8
|
+
height: "10",
|
|
9
|
+
viewBox: "0 0 20 10",
|
|
10
|
+
fill: "none",
|
|
11
|
+
"aria-hidden": true,
|
|
12
|
+
children: [
|
|
13
|
+
/* @__PURE__ */ jsx("path", {
|
|
14
|
+
d: "M9.66437 2.60207L4.80758 6.97318C4.07308 7.63423 3.11989 8 2.13172 8H0V10H20V8H18.5349C17.5468 8 16.5936 7.63423 15.8591 6.97318L11.0023 2.60207C10.622 2.2598 10.0447 2.25979 9.66437 2.60207Z",
|
|
15
|
+
className: menu_module_default["arrow-fill"]
|
|
16
|
+
}),
|
|
17
|
+
/* @__PURE__ */ jsx("path", {
|
|
18
|
+
d: "M8.99542 1.85876C9.75604 1.17425 10.9106 1.17422 11.6713 1.85878L16.5281 6.22989C17.0789 6.72568 17.7938 7.00001 18.5349 7.00001L15.89 7L11.0023 2.60207C10.622 2.2598 10.0447 2.2598 9.66436 2.60207L4.77734 7L2.13171 7.00001C2.87284 7.00001 3.58774 6.72568 4.13861 6.22989L8.99542 1.85876Z",
|
|
19
|
+
className: menu_module_default["arrow-stroke"]
|
|
20
|
+
}),
|
|
21
|
+
/* @__PURE__ */ jsx("path", {
|
|
22
|
+
d: "M10.3333 3.34539L5.47654 7.71648C4.55842 8.54279 3.36693 9 2.13172 9H0V8H2.13172C3.11989 8 4.07308 7.63423 4.80758 6.97318L9.66437 2.60207C10.0447 2.25979 10.622 2.2598 11.0023 2.60207L15.8591 6.97318C16.5936 7.63423 17.5468 8 18.5349 8H20V9H18.5349C17.2998 9 16.1083 8.54278 15.1901 7.71648L10.3333 3.34539Z",
|
|
23
|
+
className: menu_module_default["arrow-stroke"]
|
|
24
|
+
})
|
|
25
|
+
]
|
|
26
|
+
});
|
|
27
|
+
}
|
|
28
|
+
function renderEntry(entry, index) {
|
|
29
|
+
if (entry.type === "separator") return /* @__PURE__ */ jsx(Menu.Separator, { className: menu_module_default.separator }, index);
|
|
30
|
+
if (entry.type === "group") return /* @__PURE__ */ jsxs(Menu.Group, { children: [entry.label && /* @__PURE__ */ jsx(Menu.GroupLabel, {
|
|
31
|
+
className: menu_module_default["group-label"],
|
|
32
|
+
children: entry.label
|
|
33
|
+
}), entry.items.map((item, i) => renderEntry(item, i))] }, index);
|
|
34
|
+
return /* @__PURE__ */ jsxs(Menu.Item, {
|
|
35
|
+
className: menu_module_default.item,
|
|
36
|
+
disabled: entry.disabled,
|
|
37
|
+
onClick: entry.onSelect,
|
|
38
|
+
children: [/* @__PURE__ */ jsx("span", {
|
|
39
|
+
className: menu_module_default["item-text"],
|
|
40
|
+
children: entry.label
|
|
41
|
+
}), entry.shortcut && /* @__PURE__ */ jsx("span", {
|
|
42
|
+
className: menu_module_default["item-shortcut"],
|
|
43
|
+
children: entry.shortcut
|
|
44
|
+
})]
|
|
45
|
+
}, entry.value ?? index);
|
|
46
|
+
}
|
|
47
|
+
function Menu$1({ trigger, items, side = "bottom", align = "start", sideOffset = 4, className, onOpenChange, ...props }) {
|
|
48
|
+
return /* @__PURE__ */ jsxs(Menu.Root, {
|
|
49
|
+
onOpenChange,
|
|
50
|
+
...props,
|
|
51
|
+
children: [/* @__PURE__ */ jsx(Menu.Trigger, { render: trigger }), /* @__PURE__ */ jsx(Menu.Portal, { children: /* @__PURE__ */ jsx(Menu.Positioner, {
|
|
52
|
+
className: `${menu_module_default.positioner} ${className ?? ""}`,
|
|
53
|
+
side,
|
|
54
|
+
align,
|
|
55
|
+
sideOffset,
|
|
56
|
+
children: /* @__PURE__ */ jsxs(Menu.Popup, {
|
|
57
|
+
className: menu_module_default.popup,
|
|
58
|
+
children: [/* @__PURE__ */ jsx(Menu.Arrow, {
|
|
59
|
+
className: menu_module_default.arrow,
|
|
60
|
+
children: /* @__PURE__ */ jsx(ArrowSvg, {})
|
|
61
|
+
}), items.map((entry, i) => renderEntry(entry, i))]
|
|
62
|
+
})
|
|
63
|
+
}) })]
|
|
64
|
+
});
|
|
65
|
+
}
|
|
66
|
+
//#endregion
|
|
67
|
+
export { Menu$1 as Menu };
|
|
68
|
+
|
|
69
|
+
//# sourceMappingURL=menu.js.map
|