@brijbyte/agentic-ui 0.0.2 → 0.0.4
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 +132 -35
- package/dist/accordion/accordion.d.ts +15 -1
- package/dist/accordion/accordion.d.ts.map +1 -1
- package/dist/accordion/accordion.js +6 -1
- package/dist/accordion/accordion.js.map +1 -1
- package/dist/accordion/parts.d.ts +1 -1
- package/dist/accordion/parts.js +2 -2
- package/dist/alert-dialog/alert-dialog.d.ts +12 -1
- package/dist/alert-dialog/alert-dialog.d.ts.map +1 -1
- package/dist/alert-dialog/alert-dialog.js +6 -1
- package/dist/alert-dialog/alert-dialog.js.map +1 -1
- package/dist/alert-dialog/parts.d.ts +1 -1
- package/dist/alert-dialog/parts.js +2 -2
- package/dist/badge/badge.d.ts +7 -1
- package/dist/badge/badge.d.ts.map +1 -1
- package/dist/badge/badge.js +4 -0
- package/dist/badge/badge.js.map +1 -1
- package/dist/button/button.css +22 -8
- package/dist/button/button.d.ts +19 -8
- package/dist/button/button.d.ts.map +1 -1
- package/dist/button/button.js +6 -1
- package/dist/button/button.js.map +1 -1
- package/dist/button/button.module.js.map +1 -1
- package/dist/card/card.d.ts +11 -1
- package/dist/card/card.d.ts.map +1 -1
- package/dist/card/card.js +7 -0
- package/dist/card/card.js.map +1 -1
- package/dist/checkbox/checkbox.d.ts +14 -1
- package/dist/checkbox/checkbox.d.ts.map +1 -1
- package/dist/checkbox/checkbox.js +5 -1
- package/dist/checkbox/checkbox.js.map +1 -1
- package/dist/checkbox/parts.js +1 -1
- package/dist/collapsible/collapsible.d.ts +12 -1
- package/dist/collapsible/collapsible.d.ts.map +1 -1
- package/dist/collapsible/collapsible.js +5 -0
- package/dist/collapsible/collapsible.js.map +1 -1
- package/dist/collapsible/parts.js +1 -1
- package/dist/context-menu/context-menu.d.ts +6 -1
- package/dist/context-menu/context-menu.d.ts.map +1 -1
- package/dist/context-menu/context-menu.js +4 -0
- package/dist/context-menu/context-menu.js.map +1 -1
- package/dist/context-menu/parts.js +1 -1
- package/dist/dialog/dialog.d.ts +14 -2
- package/dist/dialog/dialog.d.ts.map +1 -1
- package/dist/dialog/dialog.js +6 -0
- package/dist/dialog/dialog.js.map +1 -1
- package/dist/dialog/parts.js +1 -1
- package/dist/drawer/drawer.d.ts +12 -1
- package/dist/drawer/drawer.d.ts.map +1 -1
- package/dist/drawer/drawer.js +5 -0
- package/dist/drawer/drawer.js.map +1 -1
- package/dist/drawer/parts.d.ts +1 -1
- package/dist/drawer/parts.js +1 -1
- package/dist/index.css +1773 -1316
- package/dist/index.d.ts +29 -20
- package/dist/index.js +50 -37
- package/dist/input/input.d.ts +8 -0
- package/dist/input/input.d.ts.map +1 -1
- package/dist/input/input.js +6 -1
- package/dist/input/input.js.map +1 -1
- package/dist/menu/menu.css +3 -8
- package/dist/menu/menu.d.ts +12 -5
- package/dist/menu/menu.d.ts.map +1 -1
- package/dist/menu/menu.js +10 -24
- package/dist/menu/menu.js.map +1 -1
- package/dist/menu/menu.module.js +1 -1
- package/dist/menu/menu.module.js.map +1 -1
- package/dist/menu/menuitemshortcut.js +1 -1
- package/dist/menu/parts.js +1 -1
- package/dist/meter/circular-meter.d.ts +48 -0
- package/dist/meter/circular-meter.d.ts.map +1 -0
- package/dist/meter/circular-meter.js +86 -0
- package/dist/meter/circular-meter.js.map +1 -0
- package/dist/meter/index.d.ts +4 -0
- package/dist/meter/index.js +5 -0
- package/dist/meter/meter.css +152 -0
- package/dist/meter/meter.d.ts +58 -0
- package/dist/meter/meter.d.ts.map +1 -0
- package/dist/meter/meter.js +50 -0
- package/dist/meter/meter.js.map +1 -0
- package/dist/meter/meter.module.css.d.ts +2 -0
- package/dist/meter/meter.module.js +27 -0
- package/dist/meter/meter.module.js.map +1 -0
- package/dist/meter/meterState.js +18 -0
- package/dist/meter/meterState.js.map +1 -0
- package/dist/meter/parts.d.ts +31 -0
- package/dist/meter/parts.d.ts.map +1 -0
- package/dist/meter/parts.js +56 -0
- package/dist/meter/parts.js.map +1 -0
- package/dist/number-field/number-field.d.ts +17 -1
- package/dist/number-field/number-field.d.ts.map +1 -1
- package/dist/number-field/number-field.js +5 -1
- package/dist/number-field/number-field.js.map +1 -1
- package/dist/number-field/parts.js +1 -1
- package/dist/popover/index.d.ts +3 -0
- package/dist/popover/index.js +4 -0
- package/dist/popover/parts.d.ts +43 -0
- package/dist/popover/parts.d.ts.map +1 -0
- package/dist/popover/parts.js +96 -0
- package/dist/popover/parts.js.map +1 -0
- package/dist/popover/popover.css +173 -0
- package/dist/popover/popover.d.ts +49 -0
- package/dist/popover/popover.d.ts.map +1 -0
- package/dist/popover/popover.js +68 -0
- package/dist/popover/popover.js.map +1 -0
- package/dist/popover/popover.module.css.d.ts +2 -0
- package/dist/popover/popover.module.js +16 -0
- package/dist/popover/popover.module.js.map +1 -0
- package/dist/progress/parts.js +1 -1
- package/dist/progress/progress.d.ts +11 -0
- package/dist/progress/progress.d.ts.map +1 -1
- package/dist/progress/progress.js +5 -0
- package/dist/progress/progress.js.map +1 -1
- package/dist/radio/index.d.ts +3 -0
- package/dist/radio/index.js +4 -0
- package/dist/radio/parts.d.ts +18 -0
- package/dist/radio/parts.d.ts.map +1 -0
- package/dist/radio/parts.js +42 -0
- package/dist/radio/parts.js.map +1 -0
- package/dist/radio/radio.css +84 -0
- package/dist/radio/radio.d.ts +31 -0
- package/dist/radio/radio.d.ts.map +1 -0
- package/dist/radio/radio.js +33 -0
- package/dist/radio/radio.js.map +1 -0
- package/dist/radio/radio.module.css.d.ts +2 -0
- package/dist/radio/radio.module.js +11 -0
- package/dist/radio/radio.module.js.map +1 -0
- package/dist/radio-group/index.d.ts +3 -0
- package/dist/radio-group/index.js +4 -0
- package/dist/radio-group/parts.d.ts +13 -0
- package/dist/radio-group/parts.d.ts.map +1 -0
- package/dist/radio-group/parts.js +31 -0
- package/dist/radio-group/parts.js.map +1 -0
- package/dist/radio-group/radio-group.css +17 -0
- package/dist/radio-group/radio-group.d.ts +37 -0
- package/dist/radio-group/radio-group.d.ts.map +1 -0
- package/dist/radio-group/radio-group.js +28 -0
- package/dist/radio-group/radio-group.js.map +1 -0
- package/dist/radio-group/radio-group.module.css.d.ts +2 -0
- package/dist/radio-group/radio-group.module.js +9 -0
- package/dist/radio-group/radio-group.module.js.map +1 -0
- package/dist/select/parts.js +1 -1
- package/dist/select/select.d.ts +15 -2
- package/dist/select/select.d.ts.map +1 -1
- package/dist/select/select.js +5 -1
- package/dist/select/select.js.map +1 -1
- package/dist/separator/separator.d.ts +4 -0
- package/dist/separator/separator.d.ts.map +1 -1
- package/dist/separator/separator.js +5 -1
- package/dist/separator/separator.js.map +1 -1
- package/dist/shared/PopupArrow.js +22 -0
- package/dist/shared/PopupArrow.js.map +1 -0
- package/dist/slider/parts.js +1 -1
- package/dist/slider/slider.d.ts +19 -1
- package/dist/slider/slider.d.ts.map +1 -1
- package/dist/slider/slider.js +6 -0
- package/dist/slider/slider.js.map +1 -1
- package/dist/styles/tokens.css +21 -8
- package/dist/switch/parts.js +1 -1
- package/dist/switch/switch.css +11 -2
- package/dist/switch/switch.d.ts +13 -1
- package/dist/switch/switch.d.ts.map +1 -1
- package/dist/switch/switch.js +5 -1
- package/dist/switch/switch.js.map +1 -1
- package/dist/switch/switch.module.js.map +1 -1
- package/dist/tabs/parts.js +1 -1
- package/dist/tabs/tabs.d.ts +9 -2
- package/dist/tabs/tabs.d.ts.map +1 -1
- package/dist/tabs/tabs.js +4 -0
- package/dist/tabs/tabs.js.map +1 -1
- package/dist/toast/parts.js +1 -1
- package/dist/toast/toast.d.ts +12 -1
- package/dist/toast/toast.d.ts.map +1 -1
- package/dist/toast/toast.js +8 -0
- package/dist/toast/toast.js.map +1 -1
- package/dist/tokens.css +23 -11
- package/dist/tooltip/parts.js +1 -1
- package/dist/tooltip/tooltip.d.ts +10 -1
- package/dist/tooltip/tooltip.d.ts.map +1 -1
- package/dist/tooltip/tooltip.js +4 -0
- package/dist/tooltip/tooltip.js.map +1 -1
- package/package.json +23 -2
- package/src/accordion/accordion.tsx +14 -0
- package/src/alert-dialog/alert-dialog.tsx +11 -0
- package/src/badge/badge.tsx +6 -0
- package/src/button/button.module.css +29 -13
- package/src/button/button.tsx +19 -8
- package/src/card/card.tsx +10 -0
- package/src/checkbox/checkbox.tsx +13 -0
- package/src/collapsible/collapsible.tsx +11 -0
- package/src/context-menu/context-menu.tsx +5 -0
- package/src/dialog/dialog.tsx +13 -1
- package/src/drawer/drawer.tsx +11 -0
- package/src/index.ts +25 -233
- package/src/input/input.tsx +8 -0
- package/src/menu/menu.module.css +3 -10
- package/src/menu/menu.tsx +13 -26
- package/src/meter/circular-meter.tsx +114 -0
- package/src/meter/index.ts +9 -0
- package/src/meter/meter.module.css +162 -0
- package/src/meter/meter.tsx +86 -0
- package/src/meter/meterState.ts +29 -0
- package/src/meter/parts.tsx +72 -0
- package/src/number-field/number-field.tsx +16 -0
- package/src/popover/index.ts +14 -0
- package/src/popover/parts.tsx +120 -0
- package/src/popover/popover.module.css +189 -0
- package/src/popover/popover.tsx +80 -0
- package/src/progress/progress.tsx +11 -0
- package/src/radio/index.ts +6 -0
- package/src/radio/parts.tsx +43 -0
- package/src/radio/radio.module.css +96 -0
- package/src/radio/radio.tsx +37 -0
- package/src/radio-group/index.ts +5 -0
- package/src/radio-group/parts.tsx +32 -0
- package/src/radio-group/radio-group.module.css +17 -0
- package/src/radio-group/radio-group.tsx +63 -0
- package/src/select/select.tsx +14 -1
- package/src/separator/separator.tsx +4 -0
- package/src/shared/PopupArrow.tsx +41 -0
- package/src/slider/slider.tsx +18 -0
- package/src/styles/tokens.css +23 -11
- package/src/switch/switch.module.css +11 -2
- package/src/switch/switch.tsx +12 -0
- package/src/tabs/tabs.tsx +8 -1
- package/src/toast/toast.tsx +11 -0
- package/src/tooltip/tooltip.tsx +9 -0
package/dist/index.d.ts
CHANGED
|
@@ -3,37 +3,46 @@ import { AccordionHeader, AccordionHeaderProps, AccordionItem as AccordionItem$1
|
|
|
3
3
|
import { AlertAction, AlertDialog, AlertDialogProps, styles as styles$1 } from "./alert-dialog/alert-dialog.js";
|
|
4
4
|
import { AlertDialogBackdrop, AlertDialogBackdropProps, AlertDialogDescription, AlertDialogDescriptionProps, AlertDialogPopup, AlertDialogPopupProps, AlertDialogTitle, AlertDialogTitleProps } from "./alert-dialog/parts.js";
|
|
5
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";
|
|
6
|
+
import { Button, ButtonProps, ButtonSize, ButtonTone, ButtonVariant, styles as styles$3 } from "./button/button.js";
|
|
7
7
|
import { Card, CardBody, CardFooter, CardHeader, CardHeaderProps, CardProps, styles as styles$4 } from "./card/card.js";
|
|
8
8
|
import { Checkbox, CheckboxProps, styles as styles$5 } from "./checkbox/checkbox.js";
|
|
9
9
|
import { CheckboxIndicator, CheckboxIndicatorProps, CheckboxRoot, CheckboxRootProps } from "./checkbox/parts.js";
|
|
10
10
|
import { Collapsible, CollapsibleProps, styles as styles$6 } from "./collapsible/collapsible.js";
|
|
11
11
|
import { CollapsiblePanel, CollapsiblePanelProps, CollapsibleRoot, CollapsibleRootProps, CollapsibleTrigger, CollapsibleTriggerProps } from "./collapsible/parts.js";
|
|
12
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";
|
|
13
|
+
import { ContextMenuGroup, ContextMenuGroupLabel, ContextMenuGroupLabelProps, ContextMenuGroupProps, ContextMenuItem, ContextMenuItemProps, ContextMenuPopup, ContextMenuPopupProps, ContextMenuSeparator, ContextMenuSeparatorProps, ContextMenuSubmenuTrigger, ContextMenuSubmenuTriggerProps } from "./context-menu/parts.js";
|
|
14
14
|
import { Dialog, DialogProps, styles as styles$8 } from "./dialog/dialog.js";
|
|
15
15
|
import { DialogBackdrop, DialogBackdropProps, DialogClose, DialogCloseProps, DialogDescription, DialogDescriptionProps, DialogPopup, DialogPopupProps, DialogTitle, DialogTitleProps, DialogViewport, DialogViewportProps } from "./dialog/parts.js";
|
|
16
16
|
import { Drawer, DrawerProps, DrawerSide, styles as styles$9 } from "./drawer/drawer.js";
|
|
17
17
|
import { DrawerBackdrop, DrawerBackdropProps, DrawerClose, DrawerCloseProps, DrawerContent, DrawerContentProps, DrawerDescription, DrawerDescriptionProps, DrawerFooter, DrawerHandleBar, DrawerPopup, DrawerPopupProps, DrawerTitle, DrawerTitleProps, DrawerViewport, DrawerViewportProps } from "./drawer/parts.js";
|
|
18
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
19
|
import { Menu, MenuEntry, MenuGroupDef, MenuItemDef, MenuProps, MenuSeparatorDef, styles as styles$11 } from "./menu/menu.js";
|
|
37
20
|
import { MenuItemShortcut, MenuItemShortcutProps } from "./menu/menuitemshortcut.js";
|
|
38
21
|
import { MenuArrow, MenuArrowProps, MenuGroupLabel, MenuGroupLabelProps, MenuItem, MenuItemProps, MenuPopup, MenuPopupProps, MenuPositioner, MenuPositionerProps, MenuSeparator, MenuSeparatorProps } from "./menu/parts.js";
|
|
39
|
-
|
|
22
|
+
import { Meter, MeterProps, MeterSize, styles as styles$12 } from "./meter/meter.js";
|
|
23
|
+
import { CircularMeter, CircularMeterProps, CircularMeterSize } from "./meter/circular-meter.js";
|
|
24
|
+
import { MeterIndicator, MeterIndicatorProps, MeterLabel, MeterLabelProps, MeterTrack, MeterTrackProps, MeterValue, MeterValueProps } from "./meter/parts.js";
|
|
25
|
+
import { NumberField, NumberFieldProps, styles as styles$13 } from "./number-field/number-field.js";
|
|
26
|
+
import { NumberFieldDecrement, NumberFieldDecrementProps, NumberFieldGroup, NumberFieldGroupProps, NumberFieldIncrement, NumberFieldIncrementProps, NumberFieldInput, NumberFieldInputProps, NumberFieldScrubArea, NumberFieldScrubAreaCursor, NumberFieldScrubAreaCursorProps, NumberFieldScrubAreaProps } from "./number-field/parts.js";
|
|
27
|
+
import { Popover, PopoverProps, styles as styles$14 } from "./popover/popover.js";
|
|
28
|
+
import { PopoverArrow, PopoverArrowProps, PopoverClose, PopoverCloseProps, PopoverDescription, PopoverDescriptionProps, PopoverPopup, PopoverPopupProps, PopoverPositioner, PopoverPositionerProps, PopoverTitle, PopoverTitleProps, PopoverViewport, PopoverViewportProps } from "./popover/parts.js";
|
|
29
|
+
import { Progress, ProgressProps, ProgressSize, ProgressStatus, styles as styles$15 } from "./progress/progress.js";
|
|
30
|
+
import { ProgressIndicator, ProgressIndicatorProps, ProgressTrack, ProgressTrackProps } from "./progress/parts.js";
|
|
31
|
+
import { Radio, RadioProps, styles as styles$17 } from "./radio/radio.js";
|
|
32
|
+
import { RadioIndicator, RadioIndicatorProps, RadioRoot, RadioRootProps } from "./radio/parts.js";
|
|
33
|
+
import { RadioGroup, RadioGroupProps, RadioOption, styles as styles$16 } from "./radio-group/radio-group.js";
|
|
34
|
+
import { RadioGroupRoot, RadioGroupRootProps } from "./radio-group/parts.js";
|
|
35
|
+
import { Select, SelectGroup, SelectOption, SelectProps, styles as styles$18 } from "./select/select.js";
|
|
36
|
+
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";
|
|
37
|
+
import { Separator, SeparatorProps, styles as styles$19 } from "./separator/separator.js";
|
|
38
|
+
import { Slider, SliderProps, styles as styles$20 } from "./slider/slider.js";
|
|
39
|
+
import { SliderControl, SliderControlProps, SliderIndicator, SliderIndicatorProps, SliderLabel, SliderLabelProps, SliderThumb, SliderThumbProps, SliderTrack, SliderTrackProps, SliderValue, SliderValueProps } from "./slider/parts.js";
|
|
40
|
+
import { Switch, SwitchProps, styles as styles$21 } from "./switch/switch.js";
|
|
41
|
+
import { SwitchRoot, SwitchRootProps, SwitchThumb, SwitchThumbProps } from "./switch/parts.js";
|
|
42
|
+
import { TabItem, Tabs, TabsProps, styles as styles$22 } from "./tabs/tabs.js";
|
|
43
|
+
import { TabsList, TabsListProps, TabsPanel, TabsPanelProps, TabsTab, TabsTabProps } from "./tabs/parts.js";
|
|
44
|
+
import { ToastProvider, ToastProviderProps, ToastType, ToastViewport, ToastViewportProps, styles as styles$23, useToastManager } from "./toast/toast.js";
|
|
45
|
+
import { ToastClose, ToastCloseProps, ToastDescription, ToastDescriptionProps, ToastRoot, ToastRootProps, ToastTitle, ToastTitleProps, ToastViewportPart, ToastViewportPartProps } from "./toast/parts.js";
|
|
46
|
+
import { Tooltip, TooltipProps, styles as styles$24 } from "./tooltip/tooltip.js";
|
|
47
|
+
import { TooltipArrow, TooltipArrowProps, TooltipPopup, TooltipPopupProps, TooltipPositioner, TooltipPositionerProps } from "./tooltip/parts.js";
|
|
48
|
+
export { Accordion, AccordionHeader, AccordionHeaderProps, AccordionItem, AccordionItem$1 as AccordionItemPart, AccordionItemProps, AccordionPanel, AccordionPanelProps, AccordionProps, styles as AccordionStyles, AccordionTrigger, AccordionTriggerProps, AlertAction, AlertDialog, AlertDialogBackdrop, AlertDialogBackdropProps, AlertDialogDescription, AlertDialogDescriptionProps, AlertDialogPopup, AlertDialogPopupProps, AlertDialogProps, styles$1 as AlertDialogStyles, AlertDialogTitle, AlertDialogTitleProps, Badge, BadgeProps, styles$2 as BadgeStyles, BadgeVariant, Button, ButtonProps, ButtonSize, styles$3 as ButtonStyles, ButtonTone, ButtonVariant, Card, CardBody, CardFooter, CardHeader, CardHeaderProps, CardProps, styles$4 as CardStyles, Checkbox, CheckboxIndicator, CheckboxIndicatorProps, CheckboxProps, CheckboxRoot, CheckboxRootProps, styles$5 as CheckboxStyles, CircularMeter, CircularMeterProps, CircularMeterSize, Collapsible, CollapsiblePanel, CollapsiblePanelProps, CollapsibleProps, CollapsibleRoot, CollapsibleRootProps, styles$6 as CollapsibleStyles, CollapsibleTrigger, CollapsibleTriggerProps, ContextMenu, ContextMenuEntry, ContextMenuGroup, ContextMenuGroupDef, ContextMenuGroupLabel, ContextMenuGroupLabelProps, ContextMenuGroupProps, ContextMenuItem, ContextMenuItemDef, ContextMenuItemProps, ContextMenuPopup, ContextMenuPopupProps, ContextMenuProps, ContextMenuSeparator, ContextMenuSeparatorDef, ContextMenuSeparatorProps, styles$7 as ContextMenuStyles, ContextMenuSubmenuTrigger, ContextMenuSubmenuTriggerProps, Dialog, DialogBackdrop, DialogBackdropProps, DialogClose, DialogCloseProps, DialogDescription, DialogDescriptionProps, DialogPopup, DialogPopupProps, DialogProps, styles$8 as DialogStyles, DialogTitle, DialogTitleProps, DialogViewport, DialogViewportProps, Drawer, DrawerBackdrop, DrawerBackdropProps, DrawerClose, DrawerCloseProps, DrawerContent, DrawerContentProps, DrawerDescription, DrawerDescriptionProps, DrawerFooter, DrawerHandleBar, DrawerPopup, DrawerPopupProps, DrawerProps, DrawerSide, styles$9 as DrawerStyles, DrawerTitle, DrawerTitleProps, DrawerViewport, DrawerViewportProps, Input, InputProps, InputSize, styles$10 as InputStyles, Menu, MenuArrow, MenuArrowProps, MenuEntry, MenuGroupDef, MenuGroupLabel, MenuGroupLabelProps, MenuItem, MenuItemDef, MenuItemProps, MenuItemShortcut, MenuItemShortcutProps, MenuPopup, MenuPopupProps, MenuPositioner, MenuPositionerProps, MenuProps, MenuSeparator, MenuSeparatorDef, MenuSeparatorProps, styles$11 as MenuStyles, Meter, MeterIndicator, MeterIndicatorProps, MeterLabel, MeterLabelProps, MeterProps, MeterSize, styles$12 as MeterStyles, MeterTrack, MeterTrackProps, MeterValue, MeterValueProps, NumberField, NumberFieldDecrement, NumberFieldDecrementProps, NumberFieldGroup, NumberFieldGroupProps, NumberFieldIncrement, NumberFieldIncrementProps, NumberFieldInput, NumberFieldInputProps, NumberFieldProps, NumberFieldScrubArea, NumberFieldScrubAreaCursor, NumberFieldScrubAreaCursorProps, NumberFieldScrubAreaProps, styles$13 as NumberFieldStyles, Popover, PopoverArrow, PopoverArrowProps, PopoverClose, PopoverCloseProps, PopoverDescription, PopoverDescriptionProps, PopoverPopup, PopoverPopupProps, PopoverPositioner, PopoverPositionerProps, PopoverProps, styles$14 as PopoverStyles, PopoverTitle, PopoverTitleProps, PopoverViewport, PopoverViewportProps, Progress, ProgressIndicator, ProgressIndicatorProps, ProgressProps, ProgressSize, ProgressStatus, styles$15 as ProgressStyles, ProgressTrack, ProgressTrackProps, Radio, RadioGroup, RadioGroupProps, RadioGroupRoot, RadioGroupRootProps, styles$16 as RadioGroupStyles, RadioIndicator, RadioIndicatorProps, RadioOption, RadioProps, RadioRoot, RadioRootProps, styles$17 as RadioStyles, Select, SelectGroup, SelectGroup$1 as SelectGroupContainer, SelectGroupLabel, SelectGroupLabelProps, SelectGroupProps, SelectItem, SelectItemIndicator, SelectItemIndicatorProps, SelectItemProps, SelectItemText, SelectItemTextProps, SelectList, SelectListProps, SelectOption, SelectPopup, SelectPopupProps, SelectPositioner, SelectPositionerProps, SelectProps, SelectSeparator, SelectSeparatorProps, styles$18 as SelectStyles, SelectTrigger, SelectTriggerProps, SelectValue, SelectValueProps, Separator, SeparatorProps, styles$19 as SeparatorStyles, Slider, SliderControl, SliderControlProps, SliderIndicator, SliderIndicatorProps, SliderLabel, SliderLabelProps, SliderProps, styles$20 as SliderStyles, SliderThumb, SliderThumbProps, SliderTrack, SliderTrackProps, SliderValue, SliderValueProps, Switch, SwitchProps, SwitchRoot, SwitchRootProps, styles$21 as SwitchStyles, SwitchThumb, SwitchThumbProps, TabItem, Tabs, TabsList, TabsListProps, TabsPanel, TabsPanelProps, TabsProps, styles$22 as TabsStyles, TabsTab, TabsTabProps, ToastClose, ToastCloseProps, ToastDescription, ToastDescriptionProps, ToastProvider, ToastProviderProps, ToastRoot, ToastRootProps, styles$23 as ToastStyles, ToastTitle, ToastTitleProps, ToastType, ToastViewport, ToastViewportPart, ToastViewportPartProps, ToastViewportProps, Tooltip, TooltipArrow, TooltipArrowProps, TooltipPopup, TooltipPopupProps, TooltipPositioner, TooltipPositionerProps, TooltipProps, styles$24 as TooltipStyles, useToastManager };
|
package/dist/index.js
CHANGED
|
@@ -1,62 +1,75 @@
|
|
|
1
1
|
/* empty css */
|
|
2
2
|
/* empty css */
|
|
3
|
+
import accordion_module_default from "./accordion/accordion.module.js";
|
|
4
|
+
import { Accordion } from "./accordion/accordion.js";
|
|
5
|
+
import { AccordionHeader, AccordionItem, AccordionPanel, AccordionTrigger } from "./accordion/parts.js";
|
|
3
6
|
import button_module_default from "./button/button.module.js";
|
|
4
7
|
import { Button } from "./button/button.js";
|
|
5
8
|
import alert_dialog_module_default from "./alert-dialog/alert-dialog.module.js";
|
|
6
9
|
import { AlertDialog } from "./alert-dialog/alert-dialog.js";
|
|
7
10
|
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
11
|
import badge_module_default from "./badge/badge.module.js";
|
|
12
12
|
import { Badge } from "./badge/badge.js";
|
|
13
13
|
import card_module_default from "./card/card.module.js";
|
|
14
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
15
|
import checkbox_module_default from "./checkbox/checkbox.module.js";
|
|
18
16
|
import { Checkbox } from "./checkbox/checkbox.js";
|
|
19
17
|
import { CheckboxIndicator, CheckboxRoot } from "./checkbox/parts.js";
|
|
20
|
-
import
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
23
|
-
import
|
|
24
|
-
import {
|
|
25
|
-
import {
|
|
18
|
+
import collapsible_module_default from "./collapsible/collapsible.module.js";
|
|
19
|
+
import { Collapsible } from "./collapsible/collapsible.js";
|
|
20
|
+
import { CollapsiblePanel, CollapsibleRoot, CollapsibleTrigger } from "./collapsible/parts.js";
|
|
21
|
+
import context_menu_module_default from "./context-menu/context-menu.module.js";
|
|
22
|
+
import { ContextMenu } from "./context-menu/context-menu.js";
|
|
23
|
+
import { ContextMenuGroup, ContextMenuGroupLabel, ContextMenuItem, ContextMenuPopup, ContextMenuSeparator, ContextMenuSubmenuTrigger } from "./context-menu/parts.js";
|
|
26
24
|
import dialog_module_default from "./dialog/dialog.module.js";
|
|
27
25
|
import { Dialog } from "./dialog/dialog.js";
|
|
28
26
|
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
27
|
import drawer_module_default from "./drawer/drawer.module.js";
|
|
45
28
|
import { Drawer } from "./drawer/drawer.js";
|
|
46
29
|
import { DrawerBackdrop, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHandleBar, DrawerPopup, DrawerTitle, DrawerViewport } from "./drawer/parts.js";
|
|
30
|
+
import input_module_default from "./input/input.module.js";
|
|
31
|
+
import { Input } from "./input/input.js";
|
|
32
|
+
import menu_module_default from "./menu/menu.module.js";
|
|
33
|
+
import { Menu } from "./menu/menu.js";
|
|
34
|
+
import { MenuItemShortcut } from "./menu/menuitemshortcut.js";
|
|
35
|
+
import { MenuArrow, MenuGroupLabel, MenuItem, MenuPopup, MenuPositioner, MenuSeparator } from "./menu/parts.js";
|
|
36
|
+
import meter_module_default from "./meter/meter.module.js";
|
|
37
|
+
import { Meter } from "./meter/meter.js";
|
|
38
|
+
import { CircularMeter } from "./meter/circular-meter.js";
|
|
39
|
+
import { MeterIndicator, MeterLabel, MeterTrack, MeterValue } from "./meter/parts.js";
|
|
40
|
+
import number_field_module_default from "./number-field/number-field.module.js";
|
|
41
|
+
import { NumberField } from "./number-field/number-field.js";
|
|
42
|
+
import { NumberFieldDecrement, NumberFieldGroup, NumberFieldIncrement, NumberFieldInput, NumberFieldScrubArea, NumberFieldScrubAreaCursor } from "./number-field/parts.js";
|
|
43
|
+
import popover_module_default from "./popover/popover.module.js";
|
|
44
|
+
import { Popover } from "./popover/popover.js";
|
|
45
|
+
import { PopoverArrow, PopoverClose, PopoverDescription, PopoverPopup, PopoverPositioner, PopoverTitle, PopoverViewport } from "./popover/parts.js";
|
|
46
|
+
import progress_module_default from "./progress/progress.module.js";
|
|
47
|
+
import { Progress } from "./progress/progress.js";
|
|
48
|
+
import { ProgressIndicator, ProgressTrack } from "./progress/parts.js";
|
|
49
|
+
import radio_module_default from "./radio/radio.module.js";
|
|
50
|
+
import { Radio } from "./radio/radio.js";
|
|
51
|
+
import { RadioIndicator, RadioRoot } from "./radio/parts.js";
|
|
52
|
+
import radio_group_module_default from "./radio-group/radio-group.module.js";
|
|
53
|
+
import { RadioGroup } from "./radio-group/radio-group.js";
|
|
54
|
+
import { RadioGroupRoot } from "./radio-group/parts.js";
|
|
55
|
+
import select_module_default from "./select/select.module.js";
|
|
56
|
+
import { Select } from "./select/select.js";
|
|
57
|
+
import { SelectGroup, SelectGroupLabel, SelectItem, SelectItemIndicator, SelectItemText, SelectList, SelectPopup, SelectPositioner, SelectSeparator, SelectTrigger, SelectValue } from "./select/parts.js";
|
|
47
58
|
import separator_module_default from "./separator/separator.module.js";
|
|
48
59
|
import { Separator } from "./separator/separator.js";
|
|
49
60
|
import slider_module_default from "./slider/slider.module.js";
|
|
50
61
|
import { Slider } from "./slider/slider.js";
|
|
51
62
|
import { SliderControl, SliderIndicator, SliderLabel, SliderThumb, SliderTrack, SliderValue } from "./slider/parts.js";
|
|
52
|
-
import
|
|
53
|
-
import {
|
|
54
|
-
import {
|
|
55
|
-
import
|
|
56
|
-
import {
|
|
57
|
-
import {
|
|
58
|
-
import
|
|
59
|
-
import {
|
|
60
|
-
import {
|
|
61
|
-
import
|
|
62
|
-
|
|
63
|
+
import switch_module_default from "./switch/switch.module.js";
|
|
64
|
+
import { Switch } from "./switch/switch.js";
|
|
65
|
+
import { SwitchRoot, SwitchThumb } from "./switch/parts.js";
|
|
66
|
+
import tabs_module_default from "./tabs/tabs.module.js";
|
|
67
|
+
import { Tabs } from "./tabs/tabs.js";
|
|
68
|
+
import { TabsList, TabsPanel, TabsTab } from "./tabs/parts.js";
|
|
69
|
+
import toast_module_default from "./toast/toast.module.js";
|
|
70
|
+
import { ToastProvider, ToastViewport, useToastManager } from "./toast/toast.js";
|
|
71
|
+
import { ToastClose, ToastDescription, ToastRoot, ToastTitle, ToastViewportPart } from "./toast/parts.js";
|
|
72
|
+
import tooltip_module_default from "./tooltip/tooltip.module.js";
|
|
73
|
+
import { Tooltip } from "./tooltip/tooltip.js";
|
|
74
|
+
import { TooltipArrow, TooltipPopup, TooltipPositioner } from "./tooltip/parts.js";
|
|
75
|
+
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, CircularMeter, Collapsible, CollapsiblePanel, CollapsibleRoot, collapsible_module_default as CollapsibleStyles, CollapsibleTrigger, ContextMenu, ContextMenuGroup, ContextMenuGroupLabel, ContextMenuItem, ContextMenuPopup, ContextMenuSeparator, context_menu_module_default as ContextMenuStyles, ContextMenuSubmenuTrigger, 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, Meter, MeterIndicator, MeterLabel, meter_module_default as MeterStyles, MeterTrack, MeterValue, NumberField, NumberFieldDecrement, NumberFieldGroup, NumberFieldIncrement, NumberFieldInput, NumberFieldScrubArea, NumberFieldScrubAreaCursor, number_field_module_default as NumberFieldStyles, Popover, PopoverArrow, PopoverClose, PopoverDescription, PopoverPopup, PopoverPositioner, popover_module_default as PopoverStyles, PopoverTitle, PopoverViewport, Progress, ProgressIndicator, progress_module_default as ProgressStyles, ProgressTrack, Radio, RadioGroup, RadioGroupRoot, radio_group_module_default as RadioGroupStyles, RadioIndicator, RadioRoot, radio_module_default as RadioStyles, 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, ToastProvider, ToastRoot, toast_module_default as ToastStyles, ToastTitle, ToastViewport, ToastViewportPart, Tooltip, TooltipArrow, TooltipPopup, TooltipPositioner, tooltip_module_default as TooltipStyles, useToastManager };
|
package/dist/input/input.d.ts
CHANGED
|
@@ -7,10 +7,18 @@ type InputSize = "sm" | "md" | "lg";
|
|
|
7
7
|
interface InputProps extends Omit<ComponentPropsWithoutRef<"input">, "size"> {
|
|
8
8
|
/** Visual size. Maps to height + font-size design tokens. Default: `"md"`. */
|
|
9
9
|
size?: InputSize;
|
|
10
|
+
/** Icon or element rendered before the input text. */
|
|
10
11
|
leftAdornment?: ReactNode;
|
|
12
|
+
/** Icon or element rendered after the input text. */
|
|
11
13
|
rightAdornment?: ReactNode;
|
|
14
|
+
/** Applies error styling and sets `aria-invalid`. */
|
|
12
15
|
invalid?: boolean;
|
|
13
16
|
}
|
|
17
|
+
/**
|
|
18
|
+
* Text input with optional left and right adornment slots. Extends the
|
|
19
|
+
* native `<input>` API — replaces the numeric `size` attribute with a
|
|
20
|
+
* token-based size prop.
|
|
21
|
+
*/
|
|
14
22
|
declare const Input: react.ForwardRefExoticComponent<InputProps & react.RefAttributes<HTMLInputElement>>;
|
|
15
23
|
//#endregion
|
|
16
24
|
export { Input, InputProps, InputSize, styles };
|
|
@@ -1 +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;
|
|
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;EALY;EAOnB,aAAA,GAAgB,SAAA;EAPG;EASnB,cAAA,GAAiB,SAAA;EANF;EAQf,OAAA;AAAA;;;;;;cAQW,KAAA,EAAK,KAAA,CAAA,yBAAA,CAAA,UAAA,GAAA,KAAA,CAAA,aAAA,CAAA,gBAAA"}
|
package/dist/input/input.js
CHANGED
|
@@ -1,8 +1,13 @@
|
|
|
1
1
|
import input_module_default from "./input.module.js";
|
|
2
|
-
import { forwardRef } from "react";
|
|
3
2
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
|
+
import { forwardRef } from "react";
|
|
4
4
|
import { Input } from "@base-ui/react/input";
|
|
5
5
|
//#region src/input/input.tsx
|
|
6
|
+
/**
|
|
7
|
+
* Text input with optional left and right adornment slots. Extends the
|
|
8
|
+
* native `<input>` API — replaces the numeric `size` attribute with a
|
|
9
|
+
* token-based size prop.
|
|
10
|
+
*/
|
|
6
11
|
const Input$1 = forwardRef(function Input$2({ size = "md", leftAdornment, rightAdornment, invalid, className, ...props }, ref) {
|
|
7
12
|
const classes = [
|
|
8
13
|
input_module_default.root,
|
package/dist/input/input.js.map
CHANGED
|
@@ -1 +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":"
|
|
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 /** Icon or element rendered before the input text. */\n leftAdornment?: ReactNode;\n /** Icon or element rendered after the input text. */\n rightAdornment?: ReactNode;\n /** Applies error styling and sets `aria-invalid`. */\n invalid?: boolean;\n}\n\n/**\n * Text input with optional left and right adornment slots. Extends the\n * native `<input>` API — replaces the numeric `size` attribute with a\n * token-based size prop.\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":";;;;;;;;;;AAwBA,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"}
|
package/dist/menu/menu.css
CHANGED
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
font-family: var(--font-mono);
|
|
16
16
|
font-size: var(--font-size-sm);
|
|
17
17
|
min-width: 200px;
|
|
18
|
-
|
|
18
|
+
transition: opacity .15s var(--easing-ease-out);
|
|
19
19
|
outline: none;
|
|
20
20
|
}
|
|
21
21
|
|
|
@@ -27,16 +27,11 @@
|
|
|
27
27
|
|
|
28
28
|
.popup_HVPjPa[data-starting-style] {
|
|
29
29
|
opacity: 0;
|
|
30
|
-
transition: opacity .15s var(--easing-ease-out),
|
|
31
|
-
transform .15s var(--easing-ease-out);
|
|
32
|
-
transform: scale(.95);
|
|
33
30
|
}
|
|
34
31
|
|
|
35
32
|
.popup_HVPjPa[data-ending-style] {
|
|
36
33
|
opacity: 0;
|
|
37
|
-
transition: opacity 75ms var(--easing-ease-in)
|
|
38
|
-
transform 75ms var(--easing-ease-in);
|
|
39
|
-
transform: scale(.98);
|
|
34
|
+
transition: opacity 75ms var(--easing-ease-in);
|
|
40
35
|
}
|
|
41
36
|
|
|
42
37
|
.item_HVPjPa {
|
|
@@ -148,7 +143,7 @@
|
|
|
148
143
|
fill: var(--color-overlay);
|
|
149
144
|
}
|
|
150
145
|
|
|
151
|
-
.arrow-
|
|
146
|
+
.arrow-seam_HVPjPa {
|
|
152
147
|
fill: var(--color-line);
|
|
153
148
|
}
|
|
154
149
|
}
|
package/dist/menu/menu.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ReactElement, ReactNode } from "react";
|
|
2
1
|
import * as react_jsx_runtime0 from "react/jsx-runtime";
|
|
2
|
+
import { ReactElement, ReactNode } from "react";
|
|
3
3
|
import styles from "./menu.module.css";
|
|
4
4
|
|
|
5
5
|
//#region src/menu/menu.d.ts
|
|
@@ -23,18 +23,25 @@ type MenuEntry = MenuItemDef | MenuSeparatorDef | MenuGroupDef;
|
|
|
23
23
|
interface MenuProps {
|
|
24
24
|
/** The button/element that opens the menu. */
|
|
25
25
|
trigger: ReactElement;
|
|
26
|
+
/** Array of menu entries: items, separators, and groups. */
|
|
26
27
|
items: MenuEntry[];
|
|
27
|
-
/** @default "bottom" */
|
|
28
|
+
/** Which edge of the trigger the menu appears on. @default "bottom" */
|
|
28
29
|
side?: "top" | "bottom" | "left" | "right";
|
|
29
|
-
/** @default "start" */
|
|
30
|
+
/** Alignment along the side axis. @default "start" */
|
|
30
31
|
align?: "start" | "center" | "end";
|
|
31
|
-
/** @default 4 */
|
|
32
|
+
/** Gap between the trigger and the menu popup in pixels. @default 4 */
|
|
32
33
|
sideOffset?: number;
|
|
33
|
-
/**
|
|
34
|
+
/** Controlled open state. */
|
|
34
35
|
open?: boolean;
|
|
36
|
+
/** Called when the menu opens or closes. */
|
|
35
37
|
onOpenChange?: (open: boolean) => void;
|
|
36
38
|
className?: string;
|
|
37
39
|
}
|
|
40
|
+
/**
|
|
41
|
+
* A dropdown list of actions with full keyboard navigation. Supports
|
|
42
|
+
* separators, groups, and keyboard shortcuts. Items can be disabled
|
|
43
|
+
* individually.
|
|
44
|
+
*/
|
|
38
45
|
declare function Menu({
|
|
39
46
|
trigger,
|
|
40
47
|
items,
|
package/dist/menu/menu.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"menu.d.ts","names":[],"sources":["../../src/menu/menu.tsx"],"mappings":";;;;;
|
|
1
|
+
{"version":3,"file":"menu.d.ts","names":[],"sources":["../../src/menu/menu.tsx"],"mappings":";;;;;UAOiB,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;EAbT;EAeA,KAAA,EAAO,SAAA;EAZQ;EAcf,IAAA;;EAEA,KAAA;EAfA;EAiBA,UAAA;EAhBQ;EAkBR,IAAA;EAjBO;EAmBP,YAAA,IAAgB,IAAA;EAChB,SAAA;AAAA;;;;;;iBAkCc,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"}
|
package/dist/menu/menu.js
CHANGED
|
@@ -1,30 +1,8 @@
|
|
|
1
1
|
import menu_module_default from "./menu.module.js";
|
|
2
|
+
import { PopupArrow } from "../shared/PopupArrow.js";
|
|
2
3
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
4
|
import { Menu } from "@base-ui/react/menu";
|
|
4
5
|
//#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
6
|
function renderEntry(entry, index) {
|
|
29
7
|
if (entry.type === "separator") return /* @__PURE__ */ jsx(Menu.Separator, { className: menu_module_default.separator }, index);
|
|
30
8
|
if (entry.type === "group") return /* @__PURE__ */ jsxs(Menu.Group, { children: [entry.label && /* @__PURE__ */ jsx(Menu.GroupLabel, {
|
|
@@ -44,6 +22,11 @@ function renderEntry(entry, index) {
|
|
|
44
22
|
})]
|
|
45
23
|
}, entry.value ?? index);
|
|
46
24
|
}
|
|
25
|
+
/**
|
|
26
|
+
* A dropdown list of actions with full keyboard navigation. Supports
|
|
27
|
+
* separators, groups, and keyboard shortcuts. Items can be disabled
|
|
28
|
+
* individually.
|
|
29
|
+
*/
|
|
47
30
|
function Menu$1({ trigger, items, side = "bottom", align = "start", sideOffset = 4, className, onOpenChange, ...props }) {
|
|
48
31
|
return /* @__PURE__ */ jsxs(Menu.Root, {
|
|
49
32
|
onOpenChange,
|
|
@@ -57,7 +40,10 @@ function Menu$1({ trigger, items, side = "bottom", align = "start", sideOffset =
|
|
|
57
40
|
className: menu_module_default.popup,
|
|
58
41
|
children: [/* @__PURE__ */ jsx(Menu.Arrow, {
|
|
59
42
|
className: menu_module_default.arrow,
|
|
60
|
-
children: /* @__PURE__ */ jsx(
|
|
43
|
+
children: /* @__PURE__ */ jsx(PopupArrow, {
|
|
44
|
+
fillClass: menu_module_default["arrow-fill"],
|
|
45
|
+
seamClass: menu_module_default["arrow-seam"]
|
|
46
|
+
})
|
|
61
47
|
}), items.map((entry, i) => renderEntry(entry, i))]
|
|
62
48
|
})
|
|
63
49
|
}) })]
|
package/dist/menu/menu.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"menu.js","names":["
|
|
1
|
+
{"version":3,"file":"menu.js","names":["BaseMenu","styles","Menu"],"sources":["../../src/menu/menu.tsx"],"sourcesContent":["import type { ReactNode, ReactElement } from \"react\";\nimport { Menu as BaseMenu } from \"@base-ui/react/menu\";\nimport styles from \"./menu.module.css\";\nimport { PopupArrow } from \"../shared/PopupArrow\";\n\n// ─── Types ──────────────────────────────────────────────────────────────────\n\nexport interface MenuItemDef {\n type?: \"item\";\n label: ReactNode;\n value?: string;\n disabled?: boolean;\n shortcut?: ReactNode;\n onSelect?: () => void;\n}\n\nexport interface MenuSeparatorDef {\n type: \"separator\";\n}\n\nexport interface MenuGroupDef {\n type: \"group\";\n label?: ReactNode;\n items: MenuItemDef[];\n}\n\nexport type MenuEntry = MenuItemDef | MenuSeparatorDef | MenuGroupDef;\n\nexport interface MenuProps {\n /** The button/element that opens the menu. */\n trigger: ReactElement;\n /** Array of menu entries: items, separators, and groups. */\n items: MenuEntry[];\n /** Which edge of the trigger the menu appears on. @default \"bottom\" */\n side?: \"top\" | \"bottom\" | \"left\" | \"right\";\n /** Alignment along the side axis. @default \"start\" */\n align?: \"start\" | \"center\" | \"end\";\n /** Gap between the trigger and the menu popup in pixels. @default 4 */\n sideOffset?: number;\n /** Controlled open state. */\n open?: boolean;\n /** Called when the menu opens or closes. */\n onOpenChange?: (open: boolean) => void;\n className?: string;\n}\n\n// ─── Item renderer ──────────────────────────────────────────────────────────\n\nfunction renderEntry(entry: MenuEntry, index: number): ReactNode {\n if (entry.type === \"separator\") {\n return <BaseMenu.Separator key={index} className={styles.separator} />;\n }\n\n if (entry.type === \"group\") {\n return (\n <BaseMenu.Group key={index}>\n {entry.label && <BaseMenu.GroupLabel className={styles[\"group-label\"]}>{entry.label}</BaseMenu.GroupLabel>}\n {entry.items.map((item, i) => renderEntry(item, i))}\n </BaseMenu.Group>\n );\n }\n\n return (\n <BaseMenu.Item key={entry.value ?? index} className={styles.item} disabled={entry.disabled} onClick={entry.onSelect}>\n <span className={styles[\"item-text\"]}>{entry.label}</span>\n {entry.shortcut && <span className={styles[\"item-shortcut\"]}>{entry.shortcut}</span>}\n </BaseMenu.Item>\n );\n}\n\n// ─── High-level Menu ────────────────────────────────────────────────────────\n\n/**\n * A dropdown list of actions with full keyboard navigation. Supports\n * separators, groups, and keyboard shortcuts. Items can be disabled\n * individually.\n */\nexport function Menu({ trigger, items, side = \"bottom\", align = \"start\", sideOffset = 4, className, onOpenChange, ...props }: MenuProps) {\n return (\n <BaseMenu.Root onOpenChange={onOpenChange as never} {...props}>\n <BaseMenu.Trigger render={trigger} />\n <BaseMenu.Portal>\n <BaseMenu.Positioner className={`${styles.positioner} ${className ?? \"\"}`} side={side} align={align} sideOffset={sideOffset}>\n <BaseMenu.Popup className={styles.popup}>\n <BaseMenu.Arrow className={styles.arrow}>\n <PopupArrow fillClass={styles[\"arrow-fill\"]!} seamClass={styles[\"arrow-seam\"]!} />\n </BaseMenu.Arrow>\n {items.map((entry, i) => renderEntry(entry, i))}\n </BaseMenu.Popup>\n </BaseMenu.Positioner>\n </BaseMenu.Portal>\n </BaseMenu.Root>\n );\n}\nexport { styles as MenuStyles };\n"],"mappings":";;;;;AAgDA,SAAS,YAAY,OAAkB,OAA0B;AAC/D,KAAI,MAAM,SAAS,YACjB,QAAO,oBAACA,KAAS,WAAV,EAAgC,WAAWC,oBAAO,WAAa,EAAtC,MAAsC;AAGxE,KAAI,MAAM,SAAS,QACjB,QACE,qBAACD,KAAS,OAAV,EAAA,UAAA,CACG,MAAM,SAAS,oBAACA,KAAS,YAAV;EAAqB,WAAWC,oBAAO;YAAiB,MAAM;EAA4B,CAAA,EACzG,MAAM,MAAM,KAAK,MAAM,MAAM,YAAY,MAAM,EAAE,CAAC,CACpC,EAAA,EAHI,MAGJ;AAIrB,QACE,qBAACD,KAAS,MAAV;EAA0C,WAAWC,oBAAO;EAAM,UAAU,MAAM;EAAU,SAAS,MAAM;YAA3G,CACE,oBAAC,QAAD;GAAM,WAAWA,oBAAO;aAAe,MAAM;GAAa,CAAA,EACzD,MAAM,YAAY,oBAAC,QAAD;GAAM,WAAWA,oBAAO;aAAmB,MAAM;GAAgB,CAAA,CACtE;IAHI,MAAM,SAAS,MAGnB;;;;;;;AAWpB,SAAgBC,OAAK,EAAE,SAAS,OAAO,OAAO,UAAU,QAAQ,SAAS,aAAa,GAAG,WAAW,cAAc,GAAG,SAAoB;AACvI,QACE,qBAACF,KAAS,MAAV;EAA6B;EAAuB,GAAI;YAAxD,CACE,oBAACA,KAAS,SAAV,EAAkB,QAAQ,SAAW,CAAA,EACrC,oBAACA,KAAS,QAAV,EAAA,UACE,oBAACA,KAAS,YAAV;GAAqB,WAAW,GAAGC,oBAAO,WAAW,GAAG,aAAa;GAAY;GAAa;GAAmB;aAC/G,qBAACD,KAAS,OAAV;IAAgB,WAAWC,oBAAO;cAAlC,CACE,oBAACD,KAAS,OAAV;KAAgB,WAAWC,oBAAO;eAChC,oBAAC,YAAD;MAAY,WAAWA,oBAAO;MAAgB,WAAWA,oBAAO;MAAkB,CAAA;KACnE,CAAA,EAChB,MAAM,KAAK,OAAO,MAAM,YAAY,OAAO,EAAE,CAAC,CAChC;;GACG,CAAA,EACN,CAAA,CACJ"}
|
package/dist/menu/menu.module.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
var menu_module_default = {
|
|
3
3
|
"arrow": "arrow_HVPjPa",
|
|
4
4
|
"arrow-fill": "arrow-fill_HVPjPa",
|
|
5
|
-
"arrow-
|
|
5
|
+
"arrow-seam": "arrow-seam_HVPjPa",
|
|
6
6
|
"group-label": "group-label_HVPjPa",
|
|
7
7
|
"item": "item_HVPjPa",
|
|
8
8
|
"item-indicator": "item-indicator_HVPjPa",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"menu.module.js","names":[],"sources":["../../src/menu/menu.module.css"],"sourcesContent":["@layer components {\n .positioner {\n outline: none;\n z-index: var(--z-dropdown);\n }\n .popup {\n box-sizing: border-box;\n padding: var(--space-1) 0;\n border-radius: var(--radius-lg);\n background-color: var(--color-overlay);\n border: var(--border-width-base) solid var(--color-line);\n box-shadow: var(--shadow-popover);\n color: var(--color-primary);\n font-family: var(--font-mono);\n font-size: var(--font-size-sm);\n min-width: 200px;\n
|
|
1
|
+
{"version":3,"file":"menu.module.js","names":[],"sources":["../../src/menu/menu.module.css"],"sourcesContent":["@layer components {\n .positioner {\n outline: none;\n z-index: var(--z-dropdown);\n }\n .popup {\n box-sizing: border-box;\n padding: var(--space-1) 0;\n border-radius: var(--radius-lg);\n background-color: var(--color-overlay);\n border: var(--border-width-base) solid var(--color-line);\n box-shadow: var(--shadow-popover);\n color: var(--color-primary);\n font-family: var(--font-mono);\n font-size: var(--font-size-sm);\n min-width: 200px;\n outline: none;\n transition: opacity 150ms var(--easing-ease-out);\n }\n @supports (backdrop-filter: blur(12px)) {\n .popup {\n backdrop-filter: blur(20px) saturate(1.8);\n -webkit-backdrop-filter: blur(20px) saturate(1.8);\n }\n }\n .popup[data-starting-style] {\n opacity: 0;\n }\n .popup[data-ending-style] {\n opacity: 0;\n transition: opacity 75ms var(--easing-ease-in);\n }\n /* ─── Item ───────────────────────────────────────────────────────── */\n .item {\n display: flex;\n align-items: center;\n gap: var(--space-2);\n /* Horizontal padding leaves room for the highlight inset */\n padding: var(--space-1-5) var(--space-3);\n margin: 1px var(--space-1);\n border-radius: var(--radius-md);\n font-family: var(--font-mono);\n font-size: var(--font-size-sm);\n color: var(--color-primary);\n cursor: default;\n outline: none;\n user-select: none;\n position: relative;\n transition: none;\n }\n .item[data-highlighted] {\n background-color: var(--color-accent);\n color: var(--color-on-accent);\n }\n .item[data-disabled] {\n opacity: 0.44;\n cursor: not-allowed;\n }\n /* ─── Item internals ─────────────────────────────────────────────── */\n .item-indicator {\n display: flex;\n align-items: center;\n justify-content: center;\n width: 16px;\n flex-shrink: 0;\n color: inherit;\n }\n .item-text {\n flex: 1;\n }\n .item-shortcut {\n margin-left: var(--space-6);\n font-size: var(--font-size-xs);\n color: var(--color-tertiary);\n letter-spacing: 0.02em;\n flex-shrink: 0;\n }\n .item[data-highlighted] .item-shortcut {\n color: color-mix(in srgb, var(--color-on-accent) 60%, transparent);\n }\n /* ─── Group label ────────────────────────────────────────────────── */\n .group-label {\n padding: var(--space-1-5) var(--space-3) var(--space-0-5);\n font-family: var(--font-mono);\n font-size: var(--font-size-xs);\n font-weight: var(--font-weight-semibold);\n color: var(--color-tertiary);\n text-transform: uppercase;\n letter-spacing: var(--letter-spacing-wide);\n cursor: default;\n user-select: none;\n margin-inline: var(--space-1);\n }\n /* ─── Separator ──────────────────────────────────────────────────── */\n .separator {\n margin: var(--space-1) 0;\n height: var(--border-width-base);\n background-color: var(--color-line-subtle);\n }\n /* ─── Submenu ────────────────────────────────────────────────────── */\n .submenu-trigger-icon {\n margin-left: auto;\n color: var(--color-tertiary);\n flex-shrink: 0;\n }\n .item[data-highlighted] .submenu-trigger-icon {\n color: color-mix(in srgb, var(--color-on-accent) 70%, transparent);\n }\n /* ─── Arrow ──────────────────────────────────────────────────────── */\n .arrow {\n display: flex;\n }\n .arrow[data-side=\"top\"] {\n bottom: -8px;\n rotate: 180deg;\n }\n .arrow[data-side=\"bottom\"] {\n top: -8px;\n rotate: 0deg;\n }\n .arrow[data-side=\"left\"] {\n right: -13px;\n rotate: 90deg;\n }\n .arrow[data-side=\"right\"] {\n left: -13px;\n rotate: -90deg;\n }\n .arrow-fill {\n fill: var(--color-overlay);\n }\n .arrow-seam {\n fill: var(--color-line);\n }\n}\n"],"mappings":";AAwBA,IAAA,sBAAE;CAAA,SAAA;CAAA,cAAA;CAAA,cAAA;CAAA,eAAA;CAAA,QAAA;CAAA,kBAAA;CAAA,iBAAA;CAAA,aAAA;CAAA,SAAA;CAAA,cAAA;CAAA,aAAA;CAAA,wBAAA;CAAA"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import menu_module_default from "./menu.module.js";
|
|
2
|
-
import { forwardRef } from "react";
|
|
3
2
|
import { jsx } from "react/jsx-runtime";
|
|
3
|
+
import { forwardRef } from "react";
|
|
4
4
|
//#region src/menu/menuitemshortcut.tsx
|
|
5
5
|
const MenuItemShortcut = forwardRef(function MenuItemShortcut({ className, ...props }, ref) {
|
|
6
6
|
return /* @__PURE__ */ jsx("span", {
|
package/dist/menu/parts.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import menu_module_default from "./menu.module.js";
|
|
2
2
|
import "./menuitemshortcut.js";
|
|
3
|
-
import { forwardRef } from "react";
|
|
4
3
|
import { jsx } from "react/jsx-runtime";
|
|
4
|
+
import { forwardRef } from "react";
|
|
5
5
|
import { Menu } from "@base-ui/react/menu";
|
|
6
6
|
//#region src/menu/parts.tsx
|
|
7
7
|
/**
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import * as react_jsx_runtime0 from "react/jsx-runtime";
|
|
2
|
+
import { ReactNode } from "react";
|
|
3
|
+
|
|
4
|
+
//#region src/meter/circular-meter.d.ts
|
|
5
|
+
type CircularMeterSize = "sm" | "md" | "lg";
|
|
6
|
+
interface CircularMeterProps {
|
|
7
|
+
/** Current value. Must be between `min` and `max`. */
|
|
8
|
+
value: number;
|
|
9
|
+
/** @default 0 */
|
|
10
|
+
min?: number;
|
|
11
|
+
/** @default 100 */
|
|
12
|
+
max?: number;
|
|
13
|
+
/** Upper boundary of the low zone. Values ≤ this are "low". */
|
|
14
|
+
low?: number;
|
|
15
|
+
/** Lower boundary of the high zone. Values ≥ this are "high". */
|
|
16
|
+
high?: number;
|
|
17
|
+
/**
|
|
18
|
+
* Which zone is optimal — determines stroke colour:
|
|
19
|
+
* - `"high"` (default) → high=green, mid=amber, low=red (battery, signal)
|
|
20
|
+
* - `"low"` → low=green, mid=amber, high=red (CPU load, disk)
|
|
21
|
+
* - `"mid"` → mid=green, low/high=amber (temperature)
|
|
22
|
+
*/
|
|
23
|
+
optimum?: "low" | "mid" | "high";
|
|
24
|
+
/** Accessible + visible label shown below the value inside the circle. */
|
|
25
|
+
label?: ReactNode;
|
|
26
|
+
/** Show the formatted value inside the circle. @default false */
|
|
27
|
+
showValue?: boolean;
|
|
28
|
+
/** `Intl.NumberFormatOptions` for value formatting. */
|
|
29
|
+
format?: Intl.NumberFormatOptions;
|
|
30
|
+
size?: CircularMeterSize;
|
|
31
|
+
className?: string;
|
|
32
|
+
}
|
|
33
|
+
declare function CircularMeter({
|
|
34
|
+
value,
|
|
35
|
+
min,
|
|
36
|
+
max,
|
|
37
|
+
low,
|
|
38
|
+
high,
|
|
39
|
+
optimum,
|
|
40
|
+
label,
|
|
41
|
+
showValue,
|
|
42
|
+
format,
|
|
43
|
+
size,
|
|
44
|
+
className
|
|
45
|
+
}: CircularMeterProps): react_jsx_runtime0.JSX.Element;
|
|
46
|
+
//#endregion
|
|
47
|
+
export { CircularMeter, CircularMeterProps, CircularMeterSize };
|
|
48
|
+
//# sourceMappingURL=circular-meter.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"circular-meter.d.ts","names":[],"sources":["../../src/meter/circular-meter.tsx"],"mappings":";;;;KAKY,iBAAA;AAAA,UAEK,kBAAA;;EAEf,KAAA;EAJ2B;EAM3B,GAAA;EAN2B;EAQ3B,GAAA;EANe;EAQf,GAAA;;EAEA,IAAA;EAaS;;;;;;EANT,OAAA;EATA;EAWA,KAAA,GAAQ,SAAA;EAFR;EAIA,SAAA;EAFQ;EAIR,MAAA,GAAS,IAAA,CAAK,mBAAA;EACd,IAAA,GAAO,iBAAA;EACP,SAAA;AAAA;AAAA,iBASc,aAAA,CAAA;EACd,KAAA;EACA,GAAA;EACA,GAAA;EACA,GAAA;EACA,IAAA;EACA,OAAA;EACA,KAAA;EACA,SAAA;EACA,MAAA;EACA,IAAA;EACA;AAAA,GACC,kBAAA,GAAkB,kBAAA,CAAA,GAAA,CAAA,OAAA"}
|