@carbonid1/design-system 5.19.0 → 6.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (47) hide show
  1. package/README.md +26 -7
  2. package/dist/Button/Button.js +2 -1
  3. package/dist/ContextMenu/ContextMenu.js +9 -8
  4. package/dist/Dialog/Dialog.js +4 -3
  5. package/dist/Field/Field.d.ts +10 -0
  6. package/dist/Field/Field.js +19 -0
  7. package/dist/Field/Field.types.d.ts +24 -0
  8. package/dist/Field/Field.types.js +1 -0
  9. package/dist/Input/Input.js +2 -1
  10. package/dist/InputGroup/InputGroup.js +4 -3
  11. package/dist/Menu/Menu.js +9 -8
  12. package/dist/MeterRing/MeterRing.d.ts +2 -0
  13. package/dist/MeterRing/MeterRing.js +9 -0
  14. package/dist/MeterRing/MeterRing.types.d.ts +9 -0
  15. package/dist/MeterRing/MeterRing.types.js +1 -0
  16. package/dist/ProgressRing/ProgressRing.d.ts +2 -10
  17. package/dist/ProgressRing/ProgressRing.js +8 -11
  18. package/dist/ProgressRing/ProgressRing.types.d.ts +13 -0
  19. package/dist/ProgressRing/ProgressRing.types.js +1 -0
  20. package/dist/RingVisual/RingVisual.d.ts +11 -0
  21. package/dist/RingVisual/RingVisual.js +20 -0
  22. package/dist/RingVisual/RingVisual.types.d.ts +1 -0
  23. package/dist/RingVisual/RingVisual.types.js +1 -0
  24. package/dist/ScrollArea/ScrollArea.js +7 -6
  25. package/dist/Select/Select.d.ts +48 -1
  26. package/dist/Select/Select.js +51 -91
  27. package/dist/Select/Select.types.d.ts +7 -0
  28. package/dist/Slider/Slider.d.ts +12 -12
  29. package/dist/Slider/Slider.js +25 -3
  30. package/dist/Slider/Slider.types.d.ts +34 -0
  31. package/dist/Slider/Slider.types.js +1 -0
  32. package/dist/ThemeCycler/ThemeCycler.js +1 -1
  33. package/dist/Toaster/Toaster.d.ts +4 -2
  34. package/dist/Toaster/Toaster.js +58 -3
  35. package/dist/Toaster/Toaster.types.d.ts +26 -0
  36. package/dist/Toaster/Toaster.types.js +1 -0
  37. package/dist/Tooltip/Tooltip.d.ts +25 -2
  38. package/dist/Tooltip/Tooltip.js +30 -114
  39. package/dist/helpers/mergeStatefulClassName/mergeStatefulClassName.d.ts +3 -0
  40. package/dist/helpers/mergeStatefulClassName/mergeStatefulClassName.js +4 -0
  41. package/dist/index.d.ts +11 -4
  42. package/dist/index.js +3 -2
  43. package/package.json +3 -5
  44. package/dist/helpers/tooltipPlacement/tooltipPlacement.d.ts +0 -38
  45. package/dist/helpers/tooltipPlacement/tooltipPlacement.js +0 -26
  46. /package/dist/{ProgressRing/ProgressRing.consts.d.ts → RingVisual/RingVisual.consts.d.ts} +0 -0
  47. /package/dist/{ProgressRing/ProgressRing.consts.js → RingVisual/RingVisual.consts.js} +0 -0
package/README.md CHANGED
@@ -5,7 +5,7 @@ Shared React UI primitives + Tailwind v4 theme presets (`reader`, `dashboard`) +
5
5
  ## Install
6
6
 
7
7
  ```sh
8
- pnpm add @carbonid1/design-system react react-dom @base-ui/react class-variance-authority clsx tailwind-merge lucide-react sonner next-themes react-hotkeys-hook
8
+ pnpm add @carbonid1/design-system react react-dom @base-ui/react class-variance-authority clsx tailwind-merge lucide-react next-themes react-hotkeys-hook
9
9
  ```
10
10
 
11
11
  And Tailwind CSS v4 (with `tw-animate-css` + `shadcn/tailwind.css` if you want matching utilities/base):
@@ -68,18 +68,37 @@ export default function RootLayout({ children }: { children: React.ReactNode })
68
68
  | --------------- | ------------------------------------------------------------------------------------------------------------------------------- |
69
69
  | `Badge` | Compact status/label chip with variants |
70
70
  | `Button` | Standard button primitive with variants (`ghost`, `primary`, `outline`, `destructive`, `attention`, `subtle`, `danger`, `link`) |
71
+ | `Field` | Base UI-backed labeling and validation with compound `Root` / `Label` / `Description` / `Error` / `Control` parts |
71
72
  | `Kbd` | Keyboard key display (`⌘K`, `⇧B`) |
72
- | `ProgressRing` | Circular progress indicator |
73
- | `Slider` | Range slider |
73
+ | `ProgressRing` | Base UI-backed circular task progress indicator, including indeterminate work |
74
+ | `MeterRing` | Base UI-backed circular meter for bounded resource or capacity usage |
75
+ | `Slider` | Base UI-backed range slider with a convenience wrapper and compound `Root` / `Control` / `Track` / `Thumb` parts |
74
76
  | `Switch` | Boolean setting control with a compound `Root` / `Thumb` API |
75
77
  | `ContextMenu` | Right-click / long-press menu (compound API) |
76
- | `Select` | Custom dropdown — never use native `<select>` |
77
- | `Tooltip` | Hover/focus tooltip (wraps a single child) |
78
- | `Toaster` | Toast notification root (renders once in layout) |
79
- | `toast` | Imperative toast trigger (re-export from `sonner`) |
78
+ | `Select` | Base UI-backed dropdown with a convenience wrapper and compound `Root` / `Trigger` / `Popup` / `Item` parts |
79
+ | `Tooltip` | Hover/focus tooltip with a convenience wrapper and compound `Provider` / `Root` / `Trigger` / `Popup` parts |
80
+ | `Toaster` | Base UI-backed toast notification root (renders once in layout) |
81
+ | `toast` | Imperative toast trigger for default, success, error, action, persistent, and dismissible notifications |
80
82
  | `ThemeProvider` | Wraps `next-themes` — provides dark/light mode |
81
83
  | `ThemeCycler` | `shift+t` hotkey cycles `system → light → dark` with toast |
82
84
 
85
+ `ProgressRing` accepts fractional task progress from `0` to `1`; pass `null` for
86
+ indeterminate work. Use `MeterRing` with actual `value`, `min`, and `max` bounds for
87
+ resource or capacity usage. Both use semantic `tone` values. The deprecated
88
+ `ProgressRing.colorClass` prop remains available while consumers migrate.
89
+
90
+ `Input` and `Select` work directly inside `Field.Root`; use `Field.Control` when
91
+ you want the same styled native input through the Field namespace:
92
+
93
+ ```tsx
94
+ <Field.Root validationMode="onBlur">
95
+ <Field.Label>Email address</Field.Label>
96
+ <Input required type="email" />
97
+ <Field.Description>Used only for account recovery.</Field.Description>
98
+ <Field.Error />
99
+ </Field.Root>
100
+ ```
101
+
83
102
  ## Helpers
84
103
 
85
104
  - `cn(...inputs)` — `clsx` + `tailwind-merge`
@@ -1,6 +1,7 @@
1
1
  'use client';
2
2
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
3
  import { cn } from '../helpers/cn/cn';
4
+ import { mergeStatefulClassName } from '../helpers/mergeStatefulClassName/mergeStatefulClassName';
4
5
  import { Button as ButtonPrimitive } from '@base-ui/react/button';
5
6
  import { cva } from 'class-variance-authority';
6
7
  import { Loader2 } from 'lucide-react';
@@ -68,5 +69,5 @@ const buttonVariants = cva("group/button inline-flex shrink-0 items-center justi
68
69
  selected: false,
69
70
  },
70
71
  });
71
- const Button = ({ className, variant, size, contentSpacing, selected, fullWidth, loading, disabled, children, ...props }) => (_jsxs(ButtonPrimitive, { "data-slot": "button", className: cn(buttonVariants({ variant, size, contentSpacing, selected }), fullWidth && 'w-full justify-start', className), disabled: disabled ?? loading, "aria-busy": loading ?? undefined, ...props, children: [loading && _jsx(Loader2, { className: "size-4 animate-spin", "aria-hidden": "true" }), children] }));
72
+ const Button = ({ className, variant, size, contentSpacing, selected, fullWidth, loading, disabled, children, ...props }) => (_jsxs(ButtonPrimitive, { "data-slot": "button", className: mergeStatefulClassName(cn(buttonVariants({ variant, size, contentSpacing, selected }), fullWidth && 'w-full justify-start'), className), disabled: disabled ?? loading, "aria-busy": loading ?? undefined, ...props, children: [loading && _jsx(Loader2, { className: "size-4 animate-spin", "aria-hidden": "true" }), children] }));
72
73
  export { Button, buttonVariants };
@@ -3,20 +3,21 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
3
  import { ContextMenu as BaseContextMenu } from '@base-ui/react/context-menu';
4
4
  import { ChevronRight } from 'lucide-react';
5
5
  import { cn } from '../helpers/cn/cn';
6
+ import { mergeStatefulClassName } from '../helpers/mergeStatefulClassName/mergeStatefulClassName';
6
7
  const popupClasses = 'bg-popover text-popover-foreground border-border shadow-popover z-50 min-w-45 origin-[var(--transform-origin)] rounded-lg border py-1 outline-hidden transition-[transform,opacity] data-[ending-style]:scale-95 data-[ending-style]:opacity-0 data-[starting-style]:scale-95 data-[starting-style]:opacity-0';
7
8
  const itemBaseClasses = 'relative flex h-7 cursor-default items-center gap-1.5 rounded-[calc(var(--radius)-0.25rem)] px-2.5 text-[0.8rem] outline-hidden select-none [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*=size-])]:size-4 data-[disabled]:pointer-events-none data-[disabled]:opacity-50';
8
9
  const itemVariantClasses = {
9
10
  default: 'data-[highlighted]:bg-accent data-[highlighted]:text-accent-foreground',
10
11
  destructive: 'text-destructive data-[highlighted]:bg-destructive/10 data-[highlighted]:text-destructive',
11
12
  };
12
- const Positioner = ({ className, sideOffset = 4, ...props }) => (_jsx(BaseContextMenu.Positioner, { sideOffset: sideOffset, className: cn('z-50 outline-hidden', className), ...props }));
13
- const Popup = ({ className, ...props }) => (_jsx(BaseContextMenu.Popup, { className: cn(popupClasses, className), ...props }));
14
- const Item = ({ className, variant = 'default', ...props }) => (_jsx(BaseContextMenu.Item, { className: cn(itemBaseClasses, itemVariantClasses[variant], className), ...props }));
15
- const Separator = ({ className, ...props }) => (_jsx(BaseContextMenu.Separator, { className: cn('bg-border my-1 h-px', className), ...props }));
16
- const GroupLabel = ({ className, ...props }) => (_jsx(BaseContextMenu.GroupLabel, { className: cn('text-muted-foreground px-2.5 py-1 text-xs', className), ...props }));
17
- const CheckboxItem = ({ className, children, ...props }) => (_jsxs(BaseContextMenu.CheckboxItem, { className: cn(itemBaseClasses, itemVariantClasses.default, 'pl-7', className), ...props, children: [_jsx("span", { "aria-hidden": true, className: "absolute left-2 flex size-3.5 items-center justify-center", children: _jsx(BaseContextMenu.CheckboxItemIndicator, { className: "size-3.5", children: _jsx(CheckIcon, {}) }) }), children] }));
18
- const RadioItem = ({ className, children, ...props }) => (_jsxs(BaseContextMenu.RadioItem, { className: cn(itemBaseClasses, itemVariantClasses.default, 'pl-7', className), ...props, children: [_jsx("span", { "aria-hidden": true, className: "absolute left-2 flex size-3.5 items-center justify-center", children: _jsx(BaseContextMenu.RadioItemIndicator, { className: "size-3.5", children: _jsx(DotIcon, {}) }) }), children] }));
19
- const SubmenuTrigger = ({ className, children, ...props }) => (_jsxs(BaseContextMenu.SubmenuTrigger, { className: cn(itemBaseClasses, itemVariantClasses.default, 'data-popup-open:bg-accent data-popup-open:text-accent-foreground pr-2', className), ...props, children: [children, _jsx(ChevronRight, { className: "ml-auto size-4 opacity-60", "aria-hidden": true })] }));
13
+ const Positioner = ({ className, sideOffset = 4, ...props }) => (_jsx(BaseContextMenu.Positioner, { sideOffset: sideOffset, className: mergeStatefulClassName('z-50 outline-hidden', className), ...props }));
14
+ const Popup = ({ className, ...props }) => (_jsx(BaseContextMenu.Popup, { className: mergeStatefulClassName(popupClasses, className), ...props }));
15
+ const Item = ({ className, variant = 'default', ...props }) => (_jsx(BaseContextMenu.Item, { className: mergeStatefulClassName(cn(itemBaseClasses, itemVariantClasses[variant]), className), ...props }));
16
+ const Separator = ({ className, ...props }) => (_jsx(BaseContextMenu.Separator, { className: mergeStatefulClassName('bg-border my-1 h-px', className), ...props }));
17
+ const GroupLabel = ({ className, ...props }) => (_jsx(BaseContextMenu.GroupLabel, { className: mergeStatefulClassName('text-muted-foreground px-2.5 py-1 text-xs', className), ...props }));
18
+ const CheckboxItem = ({ className, children, ...props }) => (_jsxs(BaseContextMenu.CheckboxItem, { className: mergeStatefulClassName(cn(itemBaseClasses, itemVariantClasses.default, 'pl-7'), className), ...props, children: [_jsx("span", { "aria-hidden": true, className: "absolute left-2 flex size-3.5 items-center justify-center", children: _jsx(BaseContextMenu.CheckboxItemIndicator, { className: "size-3.5", children: _jsx(CheckIcon, {}) }) }), children] }));
19
+ const RadioItem = ({ className, children, ...props }) => (_jsxs(BaseContextMenu.RadioItem, { className: mergeStatefulClassName(cn(itemBaseClasses, itemVariantClasses.default, 'pl-7'), className), ...props, children: [_jsx("span", { "aria-hidden": true, className: "absolute left-2 flex size-3.5 items-center justify-center", children: _jsx(BaseContextMenu.RadioItemIndicator, { className: "size-3.5", children: _jsx(DotIcon, {}) }) }), children] }));
20
+ const SubmenuTrigger = ({ className, children, ...props }) => (_jsxs(BaseContextMenu.SubmenuTrigger, { className: mergeStatefulClassName(cn(itemBaseClasses, itemVariantClasses.default, 'data-popup-open:bg-accent data-popup-open:text-accent-foreground pr-2'), className), ...props, children: [children, _jsx(ChevronRight, { className: "ml-auto size-4 opacity-60", "aria-hidden": true })] }));
20
21
  const CheckIcon = () => (_jsx("svg", { viewBox: "0 0 14 14", fill: "none", className: "size-3.5", children: _jsx("path", { d: "M3 7.5 6 10.5 11 4.5", stroke: "currentColor", strokeWidth: "1.75", strokeLinecap: "round", strokeLinejoin: "round" }) }));
21
22
  const DotIcon = () => (_jsx("svg", { viewBox: "0 0 14 14", className: "size-3.5", children: _jsx("circle", { cx: "7", cy: "7", r: "3", fill: "currentColor" }) }));
22
23
  export const ContextMenu = {
@@ -3,15 +3,16 @@ import { jsx as _jsx } from "react/jsx-runtime";
3
3
  import { Dialog as BaseDialog } from '@base-ui/react/dialog';
4
4
  import { buttonVariants } from '../Button/Button';
5
5
  import { cn } from '../helpers/cn/cn';
6
+ import { mergeStatefulClassName } from '../helpers/mergeStatefulClassName/mergeStatefulClassName';
6
7
  // Backdrop and popup fade share one duration so the scrim and the modal resolve together. Placement
7
8
  // and size stay the caller's job — Base UI's Dialog.Popup isn't self-positioning, and consumers
8
9
  // legitimately differ (a centred lightbox vs a command palette pinned near the top).
9
10
  const backdropClasses = 'bg-overlay fixed inset-0 z-40 transition-opacity duration-200 data-[ending-style]:opacity-0 data-[starting-style]:opacity-0 motion-reduce:transition-none';
10
11
  const popupBaseClasses = 'outline-hidden z-50 transition-opacity duration-200 data-[ending-style]:opacity-0 data-[starting-style]:opacity-0 motion-reduce:transition-none';
11
12
  const popupSurfaceClasses = 'bg-popover text-popover-foreground shadow-popover border-border rounded-xl border';
12
- const Backdrop = ({ className, ...props }) => (_jsx(BaseDialog.Backdrop, { className: cn(backdropClasses, className), ...props }));
13
- const Popup = ({ className, surface = true, ...props }) => (_jsx(BaseDialog.Popup, { className: cn(popupBaseClasses, surface && popupSurfaceClasses, className), ...props }));
14
- const Close = ({ className, ...props }) => (_jsx(BaseDialog.Close, { className: cn(buttonVariants({ variant: 'ghost', size: 'icon' }), className), ...props }));
13
+ const Backdrop = ({ className, ...props }) => (_jsx(BaseDialog.Backdrop, { className: mergeStatefulClassName(backdropClasses, className), ...props }));
14
+ const Popup = ({ className, surface = true, ...props }) => (_jsx(BaseDialog.Popup, { className: mergeStatefulClassName(cn(popupBaseClasses, surface && popupSurfaceClasses), className), ...props }));
15
+ const Close = ({ className, ...props }) => (_jsx(BaseDialog.Close, { className: mergeStatefulClassName(buttonVariants({ variant: 'ghost', size: 'icon' }), className), ...props }));
15
16
  /** Modal/overlay primitive over Base UI Dialog, exposing its compound parts with design-system
16
17
  * styling. Compose `Dialog.Root` → `Dialog.Trigger` + `Dialog.Portal` (holding `Backdrop` + `Popup`).
17
18
  *
@@ -0,0 +1,10 @@
1
+ import type { FieldDescriptionProps, FieldErrorProps, FieldItemProps, FieldLabelProps, FieldRootProps } from './Field.types';
2
+ export declare const Field: {
3
+ Root: ({ className, ...props }: FieldRootProps) => import("react/jsx-runtime").JSX.Element;
4
+ Label: ({ className, ...props }: FieldLabelProps) => import("react/jsx-runtime").JSX.Element;
5
+ Description: ({ className, ...props }: FieldDescriptionProps) => import("react/jsx-runtime").JSX.Element;
6
+ Error: ({ className, ...props }: FieldErrorProps) => import("react/jsx-runtime").JSX.Element;
7
+ Validity: import("react").FC<import("@base-ui/react").FieldValidityProps>;
8
+ Item: ({ className, ...props }: FieldItemProps) => import("react/jsx-runtime").JSX.Element;
9
+ Control: ({ className, ...props }: import("..").InputProps) => import("react/jsx-runtime").JSX.Element;
10
+ };
@@ -0,0 +1,19 @@
1
+ 'use client';
2
+ import { jsx as _jsx } from "react/jsx-runtime";
3
+ import { Field as BaseField } from '@base-ui/react/field';
4
+ import { mergeStatefulClassName } from '../helpers/mergeStatefulClassName/mergeStatefulClassName';
5
+ import { Input } from '../Input/Input';
6
+ const Root = ({ className, ...props }) => (_jsx(BaseField.Root, { "data-slot": "field", className: mergeStatefulClassName('grid w-full gap-1.5', className), ...props }));
7
+ const Label = ({ className, ...props }) => (_jsx(BaseField.Label, { "data-slot": "field-label", className: mergeStatefulClassName('text-foreground w-fit text-sm leading-5 font-medium data-[disabled]:cursor-not-allowed data-[disabled]:opacity-50', className), ...props }));
8
+ const Description = ({ className, ...props }) => (_jsx(BaseField.Description, { "data-slot": "field-description", className: mergeStatefulClassName('text-muted-foreground text-sm leading-5 data-[disabled]:opacity-50', className), ...props }));
9
+ const Error = ({ className, ...props }) => (_jsx(BaseField.Error, { "data-slot": "field-error", className: mergeStatefulClassName('text-destructive text-sm leading-5', className), ...props }));
10
+ const Item = ({ className, ...props }) => (_jsx(BaseField.Item, { "data-slot": "field-item", className: mergeStatefulClassName('grid grid-cols-[auto_1fr] items-start gap-x-2 gap-y-1 [&>[data-slot=field-description]]:col-start-2 [&>[data-slot=field-error]]:col-start-2', className), ...props }));
11
+ export const Field = {
12
+ Root,
13
+ Label,
14
+ Description,
15
+ Error,
16
+ Validity: BaseField.Validity,
17
+ Item,
18
+ Control: Input,
19
+ };
@@ -0,0 +1,24 @@
1
+ import type { Field as BaseField } from '@base-ui/react/field';
2
+ import type { Ref } from 'react';
3
+ import type { InputProps } from '../Input/Input.types';
4
+ export type FieldRootProps = BaseField.Root.Props & {
5
+ ref?: Ref<HTMLDivElement>;
6
+ };
7
+ export type FieldLabelProps = BaseField.Label.Props & {
8
+ ref?: Ref<HTMLElement>;
9
+ };
10
+ export type FieldDescriptionProps = BaseField.Description.Props & {
11
+ ref?: Ref<HTMLParagraphElement>;
12
+ };
13
+ export type FieldErrorProps = BaseField.Error.Props & {
14
+ ref?: Ref<HTMLDivElement>;
15
+ };
16
+ export type FieldValidityProps = BaseField.Validity.Props;
17
+ export type FieldItemProps = BaseField.Item.Props & {
18
+ ref?: Ref<HTMLDivElement>;
19
+ };
20
+ export type FieldControlProps = InputProps & {
21
+ ref?: Ref<HTMLElement>;
22
+ };
23
+ export type FieldRootActions = BaseField.Root.Actions;
24
+ export type FieldValidityState = BaseField.Validity.State;
@@ -0,0 +1 @@
1
+ export {};
@@ -2,5 +2,6 @@
2
2
  import { jsx as _jsx } from "react/jsx-runtime";
3
3
  import { Input as BaseInput } from '@base-ui/react/input';
4
4
  import { cn } from '../helpers/cn/cn';
5
- const Input = ({ className, ...props }) => (_jsx(BaseInput, { ...props, "data-slot": "input", className: cn('border-input-border bg-surface-inset inset-shadow-surface text-foreground placeholder:text-muted-foreground h-9 w-full min-w-0 rounded-lg border px-3 py-1 text-sm outline-hidden dark:inset-shadow-none', 'enabled:hover:border-ring', 'focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-3', 'forced-colors:focus-visible:ring-0 forced-colors:focus-visible:outline-2 forced-colors:focus-visible:outline-offset-2 forced-colors:focus-visible:outline-[Highlight]', 'disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50', 'aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 aria-invalid:ring-3', className) }));
5
+ import { mergeStatefulClassName } from '../helpers/mergeStatefulClassName/mergeStatefulClassName';
6
+ const Input = ({ className, ...props }) => (_jsx(BaseInput, { ...props, "data-slot": "input", className: mergeStatefulClassName(cn('border-input-border bg-surface-inset inset-shadow-surface text-foreground placeholder:text-muted-foreground h-9 w-full min-w-0 rounded-lg border px-3 py-1 text-sm outline-hidden dark:inset-shadow-none', 'enabled:hover:border-ring', 'focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-3', 'forced-colors:focus-visible:ring-0 forced-colors:focus-visible:outline-2 forced-colors:focus-visible:outline-offset-2 forced-colors:focus-visible:outline-[Highlight]', 'disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50', 'aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 aria-invalid:ring-3'), className) }));
6
7
  export { Input };
@@ -3,6 +3,7 @@ import { jsx as _jsx } from "react/jsx-runtime";
3
3
  import { Input as BaseInput } from '@base-ui/react/input';
4
4
  import { Button } from '../Button/Button';
5
5
  import { cn } from '../helpers/cn/cn';
6
+ import { mergeStatefulClassName } from '../helpers/mergeStatefulClassName/mergeStatefulClassName';
6
7
  const Root = ({ className, onPointerDown, ...props }) => {
7
8
  const focusControlFromShell = (event) => {
8
9
  onPointerDown?.(event);
@@ -15,11 +16,11 @@ const Root = ({ className, onPointerDown, ...props }) => {
15
16
  };
16
17
  return (_jsx("div", { ...props, "data-slot": "input-group", onPointerDown: focusControlFromShell, className: cn('border-input-border bg-surface-inset inset-shadow-surface flex min-h-11 w-full min-w-0 items-center gap-1 rounded-lg border p-2 dark:inset-shadow-none', 'has-[[data-slot=input-group-control]:enabled]:hover:border-ring', 'has-[[data-slot=input-group-control]:focus-visible]:border-ring has-[[data-slot=input-group-control]:focus-visible]:ring-ring/50 has-[[data-slot=input-group-control]:focus-visible]:ring-3', 'has-[[data-slot=input-group-control][aria-invalid=true]]:border-destructive has-[[data-slot=input-group-control][aria-invalid=true]]:ring-destructive/20 dark:has-[[data-slot=input-group-control][aria-invalid=true]]:border-destructive/50 dark:has-[[data-slot=input-group-control][aria-invalid=true]]:ring-destructive/40 has-[[data-slot=input-group-control][aria-invalid=true]]:ring-3', 'forced-colors:has-[[data-slot=input-group-control]:focus-visible]:ring-0 forced-colors:has-[[data-slot=input-group-control]:focus-visible]:outline-2 forced-colors:has-[[data-slot=input-group-control]:focus-visible]:outline-offset-2 forced-colors:has-[[data-slot=input-group-control]:focus-visible]:outline-[Highlight]', '[&:has([data-native-picker-action])_[data-slot=input-group-control]::-webkit-calendar-picker-indicator]:hidden', className) }));
17
18
  };
18
- const Control = ({ className, ...props }) => (_jsx(BaseInput, { ...props, "data-slot": "input-group-control", className: cn('text-foreground placeholder:text-muted-foreground min-w-0 flex-1 bg-transparent px-2 py-1 text-sm outline-hidden disabled:cursor-not-allowed disabled:opacity-50 forced-colors:focus-visible:outline-none', className) }));
19
- const Action = ({ className, variant = 'subtle', size = 'icon', replacesNativePicker = false, ...props }) => (_jsx(Button, { ...props, "data-slot": "input-group-action", "data-native-picker-action": replacesNativePicker ? '' : undefined, variant: variant, size: size, className: cn('rounded-md',
19
+ const Control = ({ className, ...props }) => (_jsx(BaseInput, { ...props, "data-slot": "input-group-control", className: mergeStatefulClassName('text-foreground placeholder:text-muted-foreground min-w-0 flex-1 bg-transparent px-2 py-1 text-sm outline-hidden disabled:cursor-not-allowed disabled:opacity-50 forced-colors:focus-visible:outline-none', className) }));
20
+ const Action = ({ className, variant = 'subtle', size = 'icon', replacesNativePicker = false, ...props }) => (_jsx(Button, { ...props, "data-slot": "input-group-action", "data-native-picker-action": replacesNativePicker ? '' : undefined, variant: variant, size: size, className: mergeStatefulClassName(cn('rounded-md',
20
21
  // Firefox does not expose its native date indicator to author CSS, so it keeps that
21
22
  // affordance and omits the replacement action instead of rendering two calendar buttons.
22
- replacesNativePicker && 'supports-[-moz-appearance:none]:hidden', className) }));
23
+ replacesNativePicker && 'supports-[-moz-appearance:none]:hidden'), className) }));
23
24
  export const InputGroup = {
24
25
  Root,
25
26
  Control,
package/dist/Menu/Menu.js CHANGED
@@ -3,20 +3,21 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
3
  import { Menu as BaseMenu } from '@base-ui/react/menu';
4
4
  import { ChevronRight } from 'lucide-react';
5
5
  import { cn } from '../helpers/cn/cn';
6
+ import { mergeStatefulClassName } from '../helpers/mergeStatefulClassName/mergeStatefulClassName';
6
7
  const popupClasses = 'bg-popover text-popover-foreground border-border shadow-popover z-50 min-w-36 origin-[var(--transform-origin)] rounded-lg border py-1 outline-hidden transition-[transform,opacity] data-[ending-style]:scale-95 data-[ending-style]:opacity-0 data-[starting-style]:scale-95 data-[starting-style]:opacity-0';
7
8
  const itemBaseClasses = 'relative flex h-7 cursor-default items-center gap-1.5 rounded-[calc(var(--radius)-0.25rem)] px-2.5 text-[0.8rem] outline-hidden select-none [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*=size-])]:size-4 data-[disabled]:pointer-events-none data-[disabled]:opacity-50';
8
9
  const itemVariantClasses = {
9
10
  default: 'data-[highlighted]:bg-accent data-[highlighted]:text-accent-foreground',
10
11
  destructive: 'text-destructive data-[highlighted]:bg-destructive/10 data-[highlighted]:text-destructive',
11
12
  };
12
- const Positioner = ({ className, sideOffset = 4, ...props }) => (_jsx(BaseMenu.Positioner, { sideOffset: sideOffset, className: cn('z-50 outline-hidden', className), ...props }));
13
- const Popup = ({ className, ...props }) => (_jsx(BaseMenu.Popup, { className: cn(popupClasses, className), ...props }));
14
- const Item = ({ className, variant = 'default', ...props }) => (_jsx(BaseMenu.Item, { className: cn(itemBaseClasses, itemVariantClasses[variant], className), ...props }));
15
- const Separator = ({ className, ...props }) => (_jsx(BaseMenu.Separator, { className: cn('bg-border my-1 h-px', className), ...props }));
16
- const GroupLabel = ({ className, ...props }) => (_jsx(BaseMenu.GroupLabel, { className: cn('text-muted-foreground px-2.5 py-1 text-xs', className), ...props }));
17
- const CheckboxItem = ({ className, children, ...props }) => (_jsxs(BaseMenu.CheckboxItem, { className: cn(itemBaseClasses, itemVariantClasses.default, 'pl-7', className), ...props, children: [_jsx("span", { "aria-hidden": true, className: "absolute left-2 flex size-3.5 items-center justify-center", children: _jsx(BaseMenu.CheckboxItemIndicator, { className: "size-3.5", children: _jsx(CheckIcon, {}) }) }), children] }));
18
- const RadioItem = ({ className, children, ...props }) => (_jsxs(BaseMenu.RadioItem, { className: cn(itemBaseClasses, itemVariantClasses.default, 'pl-7', className), ...props, children: [_jsx("span", { "aria-hidden": true, className: "absolute left-2 flex size-3.5 items-center justify-center", children: _jsx(BaseMenu.RadioItemIndicator, { className: "size-3.5", children: _jsx(DotIcon, {}) }) }), children] }));
19
- const SubmenuTrigger = ({ className, children, ...props }) => (_jsxs(BaseMenu.SubmenuTrigger, { className: cn(itemBaseClasses, itemVariantClasses.default, 'data-popup-open:bg-accent data-popup-open:text-accent-foreground pr-2', className), ...props, children: [children, _jsx(ChevronRight, { className: "ml-auto size-4 opacity-60", "aria-hidden": true })] }));
13
+ const Positioner = ({ className, sideOffset = 4, ...props }) => (_jsx(BaseMenu.Positioner, { sideOffset: sideOffset, className: mergeStatefulClassName('z-50 outline-hidden', className), ...props }));
14
+ const Popup = ({ className, ...props }) => (_jsx(BaseMenu.Popup, { className: mergeStatefulClassName(popupClasses, className), ...props }));
15
+ const Item = ({ className, variant = 'default', ...props }) => (_jsx(BaseMenu.Item, { className: mergeStatefulClassName(cn(itemBaseClasses, itemVariantClasses[variant]), className), ...props }));
16
+ const Separator = ({ className, ...props }) => (_jsx(BaseMenu.Separator, { className: mergeStatefulClassName('bg-border my-1 h-px', className), ...props }));
17
+ const GroupLabel = ({ className, ...props }) => (_jsx(BaseMenu.GroupLabel, { className: mergeStatefulClassName('text-muted-foreground px-2.5 py-1 text-xs', className), ...props }));
18
+ const CheckboxItem = ({ className, children, ...props }) => (_jsxs(BaseMenu.CheckboxItem, { className: mergeStatefulClassName(cn(itemBaseClasses, itemVariantClasses.default, 'pl-7'), className), ...props, children: [_jsx("span", { "aria-hidden": true, className: "absolute left-2 flex size-3.5 items-center justify-center", children: _jsx(BaseMenu.CheckboxItemIndicator, { className: "size-3.5", children: _jsx(CheckIcon, {}) }) }), children] }));
19
+ const RadioItem = ({ className, children, ...props }) => (_jsxs(BaseMenu.RadioItem, { className: mergeStatefulClassName(cn(itemBaseClasses, itemVariantClasses.default, 'pl-7'), className), ...props, children: [_jsx("span", { "aria-hidden": true, className: "absolute left-2 flex size-3.5 items-center justify-center", children: _jsx(BaseMenu.RadioItemIndicator, { className: "size-3.5", children: _jsx(DotIcon, {}) }) }), children] }));
20
+ const SubmenuTrigger = ({ className, children, ...props }) => (_jsxs(BaseMenu.SubmenuTrigger, { className: mergeStatefulClassName(cn(itemBaseClasses, itemVariantClasses.default, 'data-popup-open:bg-accent data-popup-open:text-accent-foreground pr-2'), className), ...props, children: [children, _jsx(ChevronRight, { className: "ml-auto size-4 opacity-60", "aria-hidden": true })] }));
20
21
  const CheckIcon = () => (_jsx("svg", { viewBox: "0 0 14 14", fill: "none", className: "size-3.5", children: _jsx("path", { d: "M3 7.5 6 10.5 11 4.5", stroke: "currentColor", strokeWidth: "1.75", strokeLinecap: "round", strokeLinejoin: "round" }) }));
21
22
  const DotIcon = () => (_jsx("svg", { viewBox: "0 0 14 14", className: "size-3.5", children: _jsx("circle", { cx: "7", cy: "7", r: "3", fill: "currentColor" }) }));
22
23
  export const Menu = {
@@ -0,0 +1,2 @@
1
+ import type { MeterRingProps } from './MeterRing.types';
2
+ export declare const MeterRing: ({ value, min, max, label, tone, testId, }: MeterRingProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,9 @@
1
+ 'use client';
2
+ import { jsx as _jsx } from "react/jsx-runtime";
3
+ import { Meter as BaseMeter } from '@base-ui/react/meter';
4
+ import { RingVisual } from '../RingVisual/RingVisual';
5
+ export const MeterRing = ({ value, min = 0, max, label, tone = 'primary', testId, }) => {
6
+ const range = max - min;
7
+ const normalizedValue = range <= 0 ? 0 : Math.min(Math.max((value - min) / range, 0), 1);
8
+ return (_jsx(BaseMeter.Root, { value: value, min: min, max: max, "aria-label": label, className: "inline-flex size-4 shrink-0", children: _jsx(RingVisual, { progress: normalizedValue, tone: tone, testId: testId }) }));
9
+ };
@@ -0,0 +1,9 @@
1
+ import type { RingTone } from '../RingVisual/RingVisual.types';
2
+ export type MeterRingProps = {
3
+ value: number;
4
+ min?: number;
5
+ max: number;
6
+ label: string;
7
+ tone?: RingTone;
8
+ testId?: string;
9
+ };
@@ -0,0 +1 @@
1
+ export {};
@@ -1,10 +1,2 @@
1
- type ProgressRingProps = {
2
- progress: number;
3
- colorClass: string;
4
- label: string;
5
- animate?: boolean;
6
- pendingStyle?: 'none' | 'dashed';
7
- testId?: string;
8
- };
9
- export declare const ProgressRing: ({ progress, colorClass, label, animate, pendingStyle, testId, }: ProgressRingProps) => import("react/jsx-runtime").JSX.Element;
10
- export {};
1
+ import type { ProgressRingProps } from './ProgressRing.types';
2
+ export declare const ProgressRing: ({ progress, colorClass, label, tone, animate, pendingStyle, testId, }: ProgressRingProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,12 +1,9 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import { CIRCUMFERENCE, RADIUS, RING_SIZE, STROKE_WIDTH } from './ProgressRing.consts';
3
- const DASH_SEGMENT = CIRCUMFERENCE / 8;
4
- export const ProgressRing = ({ progress, colorClass, label, animate = false, pendingStyle = 'none', testId, }) => {
5
- const MIN_VISIBLE = 0.08;
6
- const visibleProgress = animate ? Math.max(progress, MIN_VISIBLE) : progress;
7
- const dashoffset = CIRCUMFERENCE * (1 - visibleProgress);
8
- const shouldSpin = animate && progress < 0.15;
9
- const isDashed = !animate && pendingStyle === 'dashed';
10
- const center = RING_SIZE / 2;
11
- return (_jsxs("svg", { width: RING_SIZE, height: RING_SIZE, viewBox: `0 0 ${RING_SIZE} ${RING_SIZE}`, role: "img", "aria-label": label, className: animate && !shouldSpin ? 'animate-buffer-pulse motion-reduce:animate-none' : '', children: [_jsx("circle", { cx: center, cy: center, r: RADIUS, fill: "none", stroke: "currentColor", strokeWidth: STROKE_WIDTH, className: `text-border ${isDashed ? 'animate-ring-drift motion-reduce:animate-none' : ''}`, strokeDasharray: isDashed ? `${DASH_SEGMENT * 0.6} ${DASH_SEGMENT * 0.4}` : undefined, style: isDashed ? { transformOrigin: `${center}px ${center}px` } : undefined }), _jsx("circle", { "data-testid": testId, cx: center, cy: center, r: RADIUS, fill: "none", stroke: "currentColor", strokeWidth: STROKE_WIDTH, strokeDasharray: CIRCUMFERENCE, strokeDashoffset: dashoffset, strokeLinecap: "round", className: `${colorClass} transition-[stroke-dashoffset,color] duration-500 ${shouldSpin ? 'animate-ring-spin motion-reduce:animate-none' : ''}`, style: { transformOrigin: `${center}px ${center}px` } })] }));
1
+ 'use client';
2
+ import { jsx as _jsx } from "react/jsx-runtime";
3
+ import { Progress as BaseProgress } from '@base-ui/react/progress';
4
+ import { RingVisual } from '../RingVisual/RingVisual';
5
+ export const ProgressRing = ({ progress, colorClass, label, tone = 'primary', animate = false, pendingStyle = 'none', testId, }) => {
6
+ const normalizedProgress = progress === null ? 0 : Math.min(Math.max(progress, 0), 1);
7
+ const isIndeterminate = progress === null;
8
+ return (_jsx(BaseProgress.Root, { value: isIndeterminate ? null : normalizedProgress * 100, "aria-label": label, className: "inline-flex size-4 shrink-0", children: _jsx(RingVisual, { progress: normalizedProgress, tone: tone, colorClass: colorClass, animate: isIndeterminate || animate, pendingStyle: pendingStyle, testId: testId }) }));
12
9
  };
@@ -0,0 +1,13 @@
1
+ import type { RingTone } from '../RingVisual/RingVisual.types';
2
+ export type ProgressRingProps = {
3
+ progress: number | null;
4
+ label: string;
5
+ tone?: RingTone;
6
+ /**
7
+ * @deprecated Use `tone` for semantic color selection.
8
+ */
9
+ colorClass?: string;
10
+ animate?: boolean;
11
+ pendingStyle?: 'none' | 'dashed';
12
+ testId?: string;
13
+ };
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,11 @@
1
+ import type { RingTone } from './RingVisual.types';
2
+ type RingVisualProps = {
3
+ progress: number;
4
+ tone: RingTone;
5
+ colorClass?: string;
6
+ animate?: boolean;
7
+ pendingStyle?: 'none' | 'dashed';
8
+ testId?: string;
9
+ };
10
+ export declare const RingVisual: ({ progress, tone, colorClass, animate, pendingStyle, testId, }: RingVisualProps) => import("react/jsx-runtime").JSX.Element;
11
+ export {};
@@ -0,0 +1,20 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { cn } from '../helpers/cn/cn';
3
+ import { CIRCUMFERENCE, RADIUS, RING_SIZE, STROKE_WIDTH } from './RingVisual.consts';
4
+ const DASH_SEGMENT = CIRCUMFERENCE / 8;
5
+ const toneClasses = {
6
+ primary: 'text-primary',
7
+ success: 'text-success',
8
+ muted: 'text-muted-foreground',
9
+ warning: 'text-attention',
10
+ danger: 'text-destructive',
11
+ };
12
+ export const RingVisual = ({ progress, tone, colorClass, animate = false, pendingStyle = 'none', testId, }) => {
13
+ const minimumVisibleProgress = 0.08;
14
+ const visibleProgress = animate ? Math.max(progress, minimumVisibleProgress) : progress;
15
+ const dashoffset = CIRCUMFERENCE * (1 - visibleProgress);
16
+ const shouldSpin = animate && progress < 0.15;
17
+ const isDashed = !animate && pendingStyle === 'dashed';
18
+ const center = RING_SIZE / 2;
19
+ return (_jsxs("svg", { "aria-hidden": "true", focusable: "false", width: RING_SIZE, height: RING_SIZE, viewBox: `0 0 ${RING_SIZE} ${RING_SIZE}`, className: animate && !shouldSpin ? 'animate-buffer-pulse motion-reduce:animate-none' : '', children: [_jsx("circle", { cx: center, cy: center, r: RADIUS, fill: "none", stroke: "currentColor", strokeWidth: STROKE_WIDTH, className: cn('text-border', isDashed && 'animate-ring-drift motion-reduce:animate-none'), strokeDasharray: isDashed ? `${DASH_SEGMENT * 0.6} ${DASH_SEGMENT * 0.4}` : undefined, style: isDashed ? { transformOrigin: `${center}px ${center}px` } : undefined }), _jsx("circle", { "data-testid": testId, cx: center, cy: center, r: RADIUS, fill: "none", stroke: "currentColor", strokeWidth: STROKE_WIDTH, strokeDasharray: CIRCUMFERENCE, strokeDashoffset: dashoffset, strokeLinecap: "round", className: cn(toneClasses[tone], 'transition-[stroke-dashoffset,color] duration-500 motion-reduce:transition-none', shouldSpin && 'animate-ring-spin motion-reduce:animate-none', colorClass), style: { transformOrigin: `${center}px ${center}px` } })] }));
20
+ };
@@ -0,0 +1 @@
1
+ export type RingTone = 'primary' | 'success' | 'muted' | 'warning' | 'danger';
@@ -0,0 +1 @@
1
+ export {};
@@ -2,13 +2,14 @@
2
2
  import { jsx as _jsx } from "react/jsx-runtime";
3
3
  import { ScrollArea as BaseScrollArea } from '@base-ui/react/scroll-area';
4
4
  import { cn } from '../helpers/cn/cn';
5
+ import { mergeStatefulClassName } from '../helpers/mergeStatefulClassName/mergeStatefulClassName';
5
6
  const scrollbarClasses = 'm-1 flex touch-none select-none justify-center rounded-full opacity-0 transition-opacity delay-100 duration-150 data-[hovering]:delay-0 data-[hovering]:opacity-100 data-[scrolling]:opacity-100 motion-reduce:transition-none';
6
- const Root = ({ className, ...props }) => (_jsx(BaseScrollArea.Root, { className: cn('relative overflow-hidden', className), ...props }));
7
- const Viewport = ({ className, ...props }) => (_jsx(BaseScrollArea.Viewport, { className: cn('focus-visible:ring-ring/50 h-full w-full overscroll-contain rounded-[inherit] outline-hidden focus-visible:ring-2', className), ...props }));
8
- const Content = ({ className, ...props }) => (_jsx(BaseScrollArea.Content, { className: cn(className), ...props }));
9
- const Scrollbar = ({ className, orientation = 'vertical', ...props }) => (_jsx(BaseScrollArea.Scrollbar, { orientation: orientation, className: cn(scrollbarClasses, orientation === 'vertical' && 'w-1.5', orientation === 'horizontal' && 'h-1.5 flex-col', className), ...props }));
10
- const Thumb = ({ className, ...props }) => (_jsx(BaseScrollArea.Thumb, { className: cn('bg-muted-foreground/30 rounded-full data-[orientation=horizontal]:h-full data-[orientation=vertical]:w-full', className), ...props }));
11
- const Corner = ({ className, ...props }) => (_jsx(BaseScrollArea.Corner, { className: cn('bg-transparent', className), ...props }));
7
+ const Root = ({ className, ...props }) => (_jsx(BaseScrollArea.Root, { className: mergeStatefulClassName('relative overflow-hidden', className), ...props }));
8
+ const Viewport = ({ className, ...props }) => (_jsx(BaseScrollArea.Viewport, { className: mergeStatefulClassName('focus-visible:ring-ring/50 h-full w-full overscroll-contain rounded-[inherit] outline-hidden focus-visible:ring-2', className), ...props }));
9
+ const Content = ({ className, ...props }) => (_jsx(BaseScrollArea.Content, { className: mergeStatefulClassName('', className), ...props }));
10
+ const Scrollbar = ({ className, orientation = 'vertical', ...props }) => (_jsx(BaseScrollArea.Scrollbar, { orientation: orientation, className: mergeStatefulClassName(cn(scrollbarClasses, orientation === 'vertical' && 'w-1.5', orientation === 'horizontal' && 'h-1.5 flex-col'), className), ...props }));
11
+ const Thumb = ({ className, ...props }) => (_jsx(BaseScrollArea.Thumb, { className: mergeStatefulClassName('bg-muted-foreground/30 rounded-full data-[orientation=horizontal]:h-full data-[orientation=vertical]:w-full', className), ...props }));
12
+ const Corner = ({ className, ...props }) => (_jsx(BaseScrollArea.Corner, { className: mergeStatefulClassName('bg-transparent', className), ...props }));
12
13
  export const ScrollArea = {
13
14
  Root,
14
15
  Viewport,
@@ -1,2 +1,49 @@
1
+ import { Select as BaseSelect } from '@base-ui/react/select';
2
+ import type { ComponentPropsWithoutRef, Ref } from 'react';
1
3
  import type { SelectProps } from './Select.types';
2
- export declare const Select: ({ value, onChange, options, groups, placeholder, id, className, menuClassName, renderOption, onOpenChange, "aria-label": ariaLabel, }: SelectProps) => import("react/jsx-runtime").JSX.Element;
4
+ type TriggerProps = ComponentPropsWithoutRef<typeof BaseSelect.Trigger> & {
5
+ ref?: Ref<HTMLButtonElement>;
6
+ };
7
+ type PositionerProps = ComponentPropsWithoutRef<typeof BaseSelect.Positioner> & {
8
+ ref?: Ref<HTMLDivElement>;
9
+ };
10
+ type PopupProps = ComponentPropsWithoutRef<typeof BaseSelect.Popup> & {
11
+ ref?: Ref<HTMLDivElement>;
12
+ };
13
+ type ListProps = ComponentPropsWithoutRef<typeof BaseSelect.List> & {
14
+ ref?: Ref<HTMLDivElement>;
15
+ };
16
+ type ItemProps = ComponentPropsWithoutRef<typeof BaseSelect.Item> & {
17
+ ref?: Ref<HTMLElement>;
18
+ };
19
+ type ItemTextProps = ComponentPropsWithoutRef<typeof BaseSelect.ItemText> & {
20
+ ref?: Ref<HTMLDivElement>;
21
+ };
22
+ type GroupLabelProps = ComponentPropsWithoutRef<typeof BaseSelect.GroupLabel> & {
23
+ ref?: Ref<HTMLDivElement>;
24
+ };
25
+ export declare const Select: {
26
+ ({ value, onChange, options, groups, placeholder, id, className, menuClassName, menuAlign, renderOption, onOpenChange, name, form, autoComplete, required, disabled, readOnly, "aria-label": ariaLabel, }: SelectProps): import("react/jsx-runtime").JSX.Element;
27
+ displayName: string;
28
+ } & {
29
+ Root: typeof BaseSelect.Root;
30
+ Label: import("react").ForwardRefExoticComponent<Omit<import("@base-ui/react").SelectLabelProps, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
31
+ Trigger: ({ className, ...props }: TriggerProps) => import("react/jsx-runtime").JSX.Element;
32
+ Value: import("react").ForwardRefExoticComponent<Omit<import("@base-ui/react").SelectValueProps, "ref"> & import("react").RefAttributes<HTMLSpanElement>>;
33
+ Icon: import("react").ForwardRefExoticComponent<Omit<import("@base-ui/react").SelectIconProps, "ref"> & import("react").RefAttributes<HTMLSpanElement>>;
34
+ Portal: import("react").ForwardRefExoticComponent<Omit<import("@base-ui/react").SelectPortalProps, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
35
+ Backdrop: import("react").ForwardRefExoticComponent<Omit<import("@base-ui/react").SelectBackdropProps, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
36
+ Positioner: ({ className, alignItemWithTrigger, sideOffset, collisionPadding, positionMethod, ...props }: PositionerProps) => import("react/jsx-runtime").JSX.Element;
37
+ Popup: ({ className, ...props }: PopupProps) => import("react/jsx-runtime").JSX.Element;
38
+ List: ({ className, ...props }: ListProps) => import("react/jsx-runtime").JSX.Element;
39
+ Item: ({ className, ...props }: ItemProps) => import("react/jsx-runtime").JSX.Element;
40
+ ItemIndicator: import("react").ForwardRefExoticComponent<Omit<import("@base-ui/react").SelectItemIndicatorProps, "ref"> & import("react").RefAttributes<HTMLSpanElement>>;
41
+ ItemText: ({ className, ...props }: ItemTextProps) => import("react/jsx-runtime").JSX.Element;
42
+ Arrow: import("react").ForwardRefExoticComponent<Omit<import("@base-ui/react").SelectArrowProps, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
43
+ ScrollDownArrow: import("react").ForwardRefExoticComponent<Omit<import("@base-ui/react").SelectScrollDownArrowProps, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
44
+ ScrollUpArrow: import("react").ForwardRefExoticComponent<Omit<import("@base-ui/react").SelectScrollUpArrowProps, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
45
+ Group: import("react").ForwardRefExoticComponent<Omit<import("@base-ui/react").SelectGroupProps, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
46
+ GroupLabel: ({ className, ...props }: GroupLabelProps) => import("react/jsx-runtime").JSX.Element;
47
+ Separator: import("react").ForwardRefExoticComponent<Omit<import("@base-ui/react").SeparatorProps, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
48
+ };
49
+ export {};