@vaneui/ui 1.4.6 → 1.5.0-alpha.20261109184440.a032c63

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 (104) hide show
  1. package/CHANGELOG.md +47 -0
  2. package/README.md +5 -0
  3. package/dist/cjs/components/ui/chip/Chip.cjs +23 -1
  4. package/dist/cjs/components/ui/chip/Chip.cjs.map +1 -1
  5. package/dist/cjs/components/ui/field/Field.cjs +11 -7
  6. package/dist/cjs/components/ui/field/Field.cjs.map +1 -1
  7. package/dist/cjs/components/ui/menu/MenuItem.cjs +2 -1
  8. package/dist/cjs/components/ui/menu/MenuItem.cjs.map +1 -1
  9. package/dist/cjs/components/ui/modal/ModalCloseButton.cjs +22 -7
  10. package/dist/cjs/components/ui/modal/ModalCloseButton.cjs.map +1 -1
  11. package/dist/cjs/components/ui/popup/Popup.cjs +26 -17
  12. package/dist/cjs/components/ui/popup/Popup.cjs.map +1 -1
  13. package/dist/cjs/components/ui/props/propDescriptions.cjs +1 -1
  14. package/dist/cjs/components/ui/props/propDescriptions.cjs.map +1 -1
  15. package/dist/cjs/components/ui/radio/Radio.cjs +6 -4
  16. package/dist/cjs/components/ui/radio/Radio.cjs.map +1 -1
  17. package/dist/cjs/components/ui/radio/RadioGroup.cjs +11 -3
  18. package/dist/cjs/components/ui/radio/RadioGroup.cjs.map +1 -1
  19. package/dist/cjs/components/ui/radio/RadioGroupContext.cjs.map +1 -1
  20. package/dist/cjs/components/ui/select/Select.cjs +9 -2
  21. package/dist/cjs/components/ui/select/Select.cjs.map +1 -1
  22. package/dist/cjs/components/ui/theme/defaults.cjs +0 -1
  23. package/dist/cjs/components/ui/theme/defaults.cjs.map +1 -1
  24. package/dist/cjs/components/ui/theme/layout/indicatorClassMapper.cjs +1 -1
  25. package/dist/cjs/components/ui/theme/layout/indicatorClassMapper.cjs.map +1 -1
  26. package/dist/cjs/components/ui/tooltip/Tooltip.cjs +60 -34
  27. package/dist/cjs/components/ui/tooltip/Tooltip.cjs.map +1 -1
  28. package/dist/cjs/index.cjs +19 -37
  29. package/dist/cjs/index.cjs.map +1 -1
  30. package/dist/esm/components/ui/chip/Chip.mjs +23 -1
  31. package/dist/esm/components/ui/chip/Chip.mjs.map +1 -1
  32. package/dist/esm/components/ui/field/Field.mjs +11 -7
  33. package/dist/esm/components/ui/field/Field.mjs.map +1 -1
  34. package/dist/esm/components/ui/menu/MenuItem.mjs +2 -1
  35. package/dist/esm/components/ui/menu/MenuItem.mjs.map +1 -1
  36. package/dist/esm/components/ui/modal/ModalCloseButton.mjs +23 -8
  37. package/dist/esm/components/ui/modal/ModalCloseButton.mjs.map +1 -1
  38. package/dist/esm/components/ui/popup/Popup.mjs +26 -17
  39. package/dist/esm/components/ui/popup/Popup.mjs.map +1 -1
  40. package/dist/esm/components/ui/props/propDescriptions.mjs +1 -1
  41. package/dist/esm/components/ui/props/propDescriptions.mjs.map +1 -1
  42. package/dist/esm/components/ui/radio/Radio.mjs +6 -4
  43. package/dist/esm/components/ui/radio/Radio.mjs.map +1 -1
  44. package/dist/esm/components/ui/radio/RadioGroup.mjs +11 -3
  45. package/dist/esm/components/ui/radio/RadioGroup.mjs.map +1 -1
  46. package/dist/esm/components/ui/radio/RadioGroupContext.mjs.map +1 -1
  47. package/dist/esm/components/ui/select/Select.mjs +9 -2
  48. package/dist/esm/components/ui/select/Select.mjs.map +1 -1
  49. package/dist/esm/components/ui/theme/defaults.mjs +0 -1
  50. package/dist/esm/components/ui/theme/defaults.mjs.map +1 -1
  51. package/dist/esm/components/ui/theme/layout/indicatorClassMapper.mjs +1 -1
  52. package/dist/esm/components/ui/theme/layout/indicatorClassMapper.mjs.map +1 -1
  53. package/dist/esm/components/ui/tooltip/Tooltip.mjs +61 -35
  54. package/dist/esm/components/ui/tooltip/Tooltip.mjs.map +1 -1
  55. package/dist/esm/index.mjs +10 -28
  56. package/dist/esm/index.mjs.map +1 -1
  57. package/dist/types/components/ui/chip/Chip.d.cts +3 -2
  58. package/dist/types/components/ui/chip/Chip.d.mts +3 -2
  59. package/dist/types/components/ui/chip/Chip.d.ts +3 -2
  60. package/dist/types/components/ui/field/Field.d.cts +1 -0
  61. package/dist/types/components/ui/field/Field.d.mts +1 -0
  62. package/dist/types/components/ui/field/Field.d.ts +1 -0
  63. package/dist/types/components/ui/field/FieldProps.d.cts +3 -1
  64. package/dist/types/components/ui/field/FieldProps.d.mts +3 -1
  65. package/dist/types/components/ui/field/FieldProps.d.ts +3 -1
  66. package/dist/types/components/ui/modal/ModalCloseButton.d.cts +2 -1
  67. package/dist/types/components/ui/modal/ModalCloseButton.d.mts +2 -1
  68. package/dist/types/components/ui/modal/ModalCloseButton.d.ts +2 -1
  69. package/dist/types/components/ui/modal/ModalCloseButtonProps.d.cts +7 -3
  70. package/dist/types/components/ui/modal/ModalCloseButtonProps.d.mts +7 -3
  71. package/dist/types/components/ui/modal/ModalCloseButtonProps.d.ts +7 -3
  72. package/dist/types/components/ui/popup/PopupProps.d.cts +1 -1
  73. package/dist/types/components/ui/popup/PopupProps.d.mts +1 -1
  74. package/dist/types/components/ui/popup/PopupProps.d.ts +1 -1
  75. package/dist/types/components/ui/props/positionProps.d.cts +1 -1
  76. package/dist/types/components/ui/props/positionProps.d.mts +1 -1
  77. package/dist/types/components/ui/props/positionProps.d.ts +1 -1
  78. package/dist/types/components/ui/radio/RadioGroup.d.cts +4 -0
  79. package/dist/types/components/ui/radio/RadioGroup.d.mts +4 -0
  80. package/dist/types/components/ui/radio/RadioGroup.d.ts +4 -0
  81. package/dist/types/components/ui/radio/RadioGroupContext.d.cts +3 -1
  82. package/dist/types/components/ui/radio/RadioGroupContext.d.mts +3 -1
  83. package/dist/types/components/ui/radio/RadioGroupContext.d.ts +3 -1
  84. package/dist/types/components/ui/radio/RadioGroupProps.d.cts +8 -0
  85. package/dist/types/components/ui/radio/RadioGroupProps.d.mts +8 -0
  86. package/dist/types/components/ui/radio/RadioGroupProps.d.ts +8 -0
  87. package/dist/types/components/ui/select/Select.d.cts +1 -0
  88. package/dist/types/components/ui/select/Select.d.mts +1 -0
  89. package/dist/types/components/ui/select/Select.d.ts +1 -0
  90. package/dist/types/components/ui/select/SelectProps.d.cts +2 -0
  91. package/dist/types/components/ui/select/SelectProps.d.mts +2 -0
  92. package/dist/types/components/ui/select/SelectProps.d.ts +2 -0
  93. package/dist/types/components/ui/theme/layout/indicatorClassMapper.d.cts +1 -1
  94. package/dist/types/components/ui/theme/layout/indicatorClassMapper.d.mts +1 -1
  95. package/dist/types/components/ui/theme/layout/indicatorClassMapper.d.ts +1 -1
  96. package/dist/types/components/ui/tooltip/Tooltip.d.cts +13 -5
  97. package/dist/types/components/ui/tooltip/Tooltip.d.mts +13 -5
  98. package/dist/types/components/ui/tooltip/Tooltip.d.ts +13 -5
  99. package/dist/types/components/ui/tooltip/TooltipProps.d.cts +2 -1
  100. package/dist/types/components/ui/tooltip/TooltipProps.d.mts +2 -1
  101. package/dist/types/components/ui/tooltip/TooltipProps.d.ts +2 -1
  102. package/dist/ui.css +1 -1
  103. package/dist/vars.css +1 -1
  104. package/package.json +1 -1
@@ -14,7 +14,7 @@ export type PopupProps = BaseProps & SizeProps & HideProps & ItemsProps & AlignS
14
14
  onOpenChange?: (open: boolean) => void;
15
15
  /** Reference to anchor element */
16
16
  anchorRef: React.RefObject<HTMLElement | null>;
17
- /** Offset from anchor in pixels (default: 4) */
17
+ /** Gap to the anchor in pixels (default: 4); with `arrow`, measured from the arrow tip */
18
18
  offset?: number;
19
19
  /** Close when pressing Escape (default: true) */
20
20
  closeOnEscape?: boolean;
@@ -14,7 +14,7 @@ export type PopupProps = BaseProps & SizeProps & HideProps & ItemsProps & AlignS
14
14
  onOpenChange?: (open: boolean) => void;
15
15
  /** Reference to anchor element */
16
16
  anchorRef: React.RefObject<HTMLElement | null>;
17
- /** Offset from anchor in pixels (default: 4) */
17
+ /** Gap to the anchor in pixels (default: 4); with `arrow`, measured from the arrow tip */
18
18
  offset?: number;
19
19
  /** Close when pressing Escape (default: true) */
20
20
  closeOnEscape?: boolean;
@@ -14,7 +14,7 @@ export type PopupProps = BaseProps & SizeProps & HideProps & ItemsProps & AlignS
14
14
  onOpenChange?: (open: boolean) => void;
15
15
  /** Reference to anchor element */
16
16
  anchorRef: React.RefObject<HTMLElement | null>;
17
- /** Offset from anchor in pixels (default: 4) */
17
+ /** Gap to the anchor in pixels (default: 4); with `arrow`, measured from the arrow tip */
18
18
  offset?: number;
19
19
  /** Close when pressing Escape (default: true) */
20
20
  closeOnEscape?: boolean;
@@ -8,7 +8,7 @@ export interface PositionProps {
8
8
  absolute?: boolean;
9
9
  /** Fixed positioning */
10
10
  fixed?: boolean;
11
- /** Sticky positioning */
11
+ /** Sticky positioning at the top edge; set --sticky-top to stick below a fixed header */
12
12
  sticky?: boolean;
13
13
  /** Static positioning */
14
14
  static?: boolean;
@@ -8,7 +8,7 @@ export interface PositionProps {
8
8
  absolute?: boolean;
9
9
  /** Fixed positioning */
10
10
  fixed?: boolean;
11
- /** Sticky positioning */
11
+ /** Sticky positioning at the top edge; set --sticky-top to stick below a fixed header */
12
12
  sticky?: boolean;
13
13
  /** Static positioning */
14
14
  static?: boolean;
@@ -8,7 +8,7 @@ export interface PositionProps {
8
8
  absolute?: boolean;
9
9
  /** Fixed positioning */
10
10
  fixed?: boolean;
11
- /** Sticky positioning */
11
+ /** Sticky positioning at the top edge; set --sticky-top to stick below a fixed header */
12
12
  sticky?: boolean;
13
13
  /** Static positioning */
14
14
  static?: boolean;
@@ -4,4 +4,8 @@ export declare const RadioGroup: import("react").ForwardRefExoticComponent<impor
4
4
  value?: string;
5
5
  defaultValue?: string;
6
6
  onChange?: React.ChangeEventHandler<HTMLInputElement>;
7
+ disabled?: boolean;
8
+ readOnly?: boolean;
9
+ required?: boolean;
10
+ invalid?: boolean;
7
11
  } & import("react").RefAttributes<HTMLDivElement>>;
@@ -4,4 +4,8 @@ export declare const RadioGroup: import("react").ForwardRefExoticComponent<impor
4
4
  value?: string;
5
5
  defaultValue?: string;
6
6
  onChange?: React.ChangeEventHandler<HTMLInputElement>;
7
+ disabled?: boolean;
8
+ readOnly?: boolean;
9
+ required?: boolean;
10
+ invalid?: boolean;
7
11
  } & import("react").RefAttributes<HTMLDivElement>>;
@@ -4,4 +4,8 @@ export declare const RadioGroup: import("react").ForwardRefExoticComponent<impor
4
4
  value?: string;
5
5
  defaultValue?: string;
6
6
  onChange?: React.ChangeEventHandler<HTMLInputElement>;
7
+ disabled?: boolean;
8
+ readOnly?: boolean;
9
+ required?: boolean;
10
+ invalid?: boolean;
7
11
  } & import("react").RefAttributes<HTMLDivElement>>;
@@ -11,9 +11,11 @@ export interface RadioGroupContextValue {
11
11
  defaultValue?: string;
12
12
  /** Called after the Radio's own onChange whenever a Radio in the group changes. */
13
13
  onChange?: ChangeEventHandler<HTMLInputElement>;
14
- /** Set by an enclosing Field; a Radio's own prop wins. */
14
+ /** Set on the group or by an enclosing Field; a Radio's own prop wins. */
15
15
  disabled?: boolean;
16
16
  required?: boolean;
17
+ readOnly?: boolean;
18
+ invalid?: boolean;
17
19
  }
18
20
  export declare const RadioGroupContext: import("react").Context<RadioGroupContextValue | null>;
19
21
  export declare function useRadioGroupContext(): RadioGroupContextValue | null;
@@ -11,9 +11,11 @@ export interface RadioGroupContextValue {
11
11
  defaultValue?: string;
12
12
  /** Called after the Radio's own onChange whenever a Radio in the group changes. */
13
13
  onChange?: ChangeEventHandler<HTMLInputElement>;
14
- /** Set by an enclosing Field; a Radio's own prop wins. */
14
+ /** Set on the group or by an enclosing Field; a Radio's own prop wins. */
15
15
  disabled?: boolean;
16
16
  required?: boolean;
17
+ readOnly?: boolean;
18
+ invalid?: boolean;
17
19
  }
18
20
  export declare const RadioGroupContext: import("react").Context<RadioGroupContextValue | null>;
19
21
  export declare function useRadioGroupContext(): RadioGroupContextValue | null;
@@ -11,9 +11,11 @@ export interface RadioGroupContextValue {
11
11
  defaultValue?: string;
12
12
  /** Called after the Radio's own onChange whenever a Radio in the group changes. */
13
13
  onChange?: ChangeEventHandler<HTMLInputElement>;
14
- /** Set by an enclosing Field; a Radio's own prop wins. */
14
+ /** Set on the group or by an enclosing Field; a Radio's own prop wins. */
15
15
  disabled?: boolean;
16
16
  required?: boolean;
17
+ readOnly?: boolean;
18
+ invalid?: boolean;
17
19
  }
18
20
  export declare const RadioGroupContext: import("react").Context<RadioGroupContextValue | null>;
19
21
  export declare function useRadioGroupContext(): RadioGroupContextValue | null;
@@ -12,4 +12,12 @@ export type RadioGroupProps = BaseProps & SizeProps & HideProps & ItemsProps & J
12
12
  defaultValue?: string;
13
13
  /** Fires when any Radio in the group changes */
14
14
  onChange?: React.ChangeEventHandler<HTMLInputElement>;
15
+ /** Disables every Radio in the group; a Radio's own `disabled` wins */
16
+ disabled?: boolean;
17
+ /** Makes every Radio in the group read-only; a Radio's own `readOnly` wins */
18
+ readOnly?: boolean;
19
+ /** Marks every Radio in the group required; a Radio's own `required` wins */
20
+ required?: boolean;
21
+ /** Marks every Radio in the group invalid; a Radio's own `invalid` wins */
22
+ invalid?: boolean;
15
23
  };
@@ -12,4 +12,12 @@ export type RadioGroupProps = BaseProps & SizeProps & HideProps & ItemsProps & J
12
12
  defaultValue?: string;
13
13
  /** Fires when any Radio in the group changes */
14
14
  onChange?: React.ChangeEventHandler<HTMLInputElement>;
15
+ /** Disables every Radio in the group; a Radio's own `disabled` wins */
16
+ disabled?: boolean;
17
+ /** Makes every Radio in the group read-only; a Radio's own `readOnly` wins */
18
+ readOnly?: boolean;
19
+ /** Marks every Radio in the group required; a Radio's own `required` wins */
20
+ required?: boolean;
21
+ /** Marks every Radio in the group invalid; a Radio's own `invalid` wins */
22
+ invalid?: boolean;
15
23
  };
@@ -12,4 +12,12 @@ export type RadioGroupProps = BaseProps & SizeProps & HideProps & ItemsProps & J
12
12
  defaultValue?: string;
13
13
  /** Fires when any Radio in the group changes */
14
14
  onChange?: React.ChangeEventHandler<HTMLInputElement>;
15
+ /** Disables every Radio in the group; a Radio's own `disabled` wins */
16
+ disabled?: boolean;
17
+ /** Makes every Radio in the group read-only; a Radio's own `readOnly` wins */
18
+ readOnly?: boolean;
19
+ /** Marks every Radio in the group required; a Radio's own `required` wins */
20
+ required?: boolean;
21
+ /** Marks every Radio in the group invalid; a Radio's own `invalid` wins */
22
+ invalid?: boolean;
15
23
  };
@@ -1,3 +1,4 @@
1
1
  export declare const Select: import("react").ForwardRefExoticComponent<import("../props/index.cjs").BaseProps & import("../props/index.cjs").SizeProps & import("../props/index.cjs").HideProps & import("../props/index.cjs").ItemsProps & import("../props/index.cjs").JustifyProps & import("../props/index.cjs").PositionProps & import("../props/index.cjs").DisplayProps & import("../props/index.cjs").OverflowProps & import("../props/index.cjs").WrapProps & import("../props/index.cjs").FlexProps & import("../props/index.cjs").ShrinkProps & import("../props/index.cjs").GapProps & import("../props/index.cjs").FlexDirectionProps & import("../props/index.cjs").AppearanceProps & import("../props/index.cjs").BorderProps & import("../props/index.cjs").ShadowProps & import("../props/index.cjs").RingProps & import("../props/index.cjs").FocusVisibleProps & import("../props/index.cjs").ShapeProps & import("../props/index.cjs").FontWeightProps & import("../props/index.cjs").FontStyleProps & import("../props/index.cjs").TextDecorationProps & import("../props/index.cjs").TextTransformProps & import("../props/index.cjs").FontFamilyProps & import("../props/index.cjs").TextAlignProps & import("../props/index.cjs").PaddingProps & import("../props/index.cjs").VariantProps & import("../props/index.cjs").CursorProps & import("../props/index.cjs").TransparentProps & import("../props/index.cjs").ResponsiveProps & import("../props/index.cjs").TransitionProps & import("../props/index.cjs").WidthProps & import("../props/index.cjs").HeightProps & import("../props/index.cjs").StatusProps & import("../props/index.cjs").TruncateProps & import("../props/index.cjs").WhitespaceProps & import("../props/index.cjs").WordBreakProps & Omit<import("react").SelectHTMLAttributes<HTMLSelectElement>, "className" | "children"> & {
2
2
  tag?: React.ElementType;
3
+ placeholder?: string;
3
4
  } & import("react").RefAttributes<HTMLSelectElement>>;
@@ -1,3 +1,4 @@
1
1
  export declare const Select: import("react").ForwardRefExoticComponent<import("../props/index.mjs").BaseProps & import("../props/index.mjs").SizeProps & import("../props/index.mjs").HideProps & import("../props/index.mjs").ItemsProps & import("../props/index.mjs").JustifyProps & import("../props/index.mjs").PositionProps & import("../props/index.mjs").DisplayProps & import("../props/index.mjs").OverflowProps & import("../props/index.mjs").WrapProps & import("../props/index.mjs").FlexProps & import("../props/index.mjs").ShrinkProps & import("../props/index.mjs").GapProps & import("../props/index.mjs").FlexDirectionProps & import("../props/index.mjs").AppearanceProps & import("../props/index.mjs").BorderProps & import("../props/index.mjs").ShadowProps & import("../props/index.mjs").RingProps & import("../props/index.mjs").FocusVisibleProps & import("../props/index.mjs").ShapeProps & import("../props/index.mjs").FontWeightProps & import("../props/index.mjs").FontStyleProps & import("../props/index.mjs").TextDecorationProps & import("../props/index.mjs").TextTransformProps & import("../props/index.mjs").FontFamilyProps & import("../props/index.mjs").TextAlignProps & import("../props/index.mjs").PaddingProps & import("../props/index.mjs").VariantProps & import("../props/index.mjs").CursorProps & import("../props/index.mjs").TransparentProps & import("../props/index.mjs").ResponsiveProps & import("../props/index.mjs").TransitionProps & import("../props/index.mjs").WidthProps & import("../props/index.mjs").HeightProps & import("../props/index.mjs").StatusProps & import("../props/index.mjs").TruncateProps & import("../props/index.mjs").WhitespaceProps & import("../props/index.mjs").WordBreakProps & Omit<import("react").SelectHTMLAttributes<HTMLSelectElement>, "className" | "children"> & {
2
2
  tag?: React.ElementType;
3
+ placeholder?: string;
3
4
  } & import("react").RefAttributes<HTMLSelectElement>>;
@@ -1,3 +1,4 @@
1
1
  export declare const Select: import("react").ForwardRefExoticComponent<import("../props").BaseProps & import("../props").SizeProps & import("../props").HideProps & import("../props").ItemsProps & import("../props").JustifyProps & import("../props").PositionProps & import("../props").DisplayProps & import("../props").OverflowProps & import("../props").WrapProps & import("../props").FlexProps & import("../props").ShrinkProps & import("../props").GapProps & import("../props").FlexDirectionProps & import("../props").AppearanceProps & import("../props").BorderProps & import("../props").ShadowProps & import("../props").RingProps & import("../props").FocusVisibleProps & import("../props").ShapeProps & import("../props").FontWeightProps & import("../props").FontStyleProps & import("../props").TextDecorationProps & import("../props").TextTransformProps & import("../props").FontFamilyProps & import("../props").TextAlignProps & import("../props").PaddingProps & import("../props").VariantProps & import("../props").CursorProps & import("../props").TransparentProps & import("../props").ResponsiveProps & import("../props").TransitionProps & import("../props").WidthProps & import("../props").HeightProps & import("../props").StatusProps & import("../props").TruncateProps & import("../props").WhitespaceProps & import("../props").WordBreakProps & Omit<import("react").SelectHTMLAttributes<HTMLSelectElement>, "className" | "children"> & {
2
2
  tag?: React.ElementType;
3
+ placeholder?: string;
3
4
  } & import("react").RefAttributes<HTMLSelectElement>>;
@@ -4,4 +4,6 @@ import type { BaseProps, SizeProps, HideProps, ItemsProps, JustifyProps, Positio
4
4
  export type SelectProps = BaseProps & SizeProps & HideProps & ItemsProps & JustifyProps & PositionProps & DisplayProps & OverflowProps & WrapProps & FlexProps & ShrinkProps & GapProps & FlexDirectionProps & AppearanceProps & BorderProps & ShadowProps & RingProps & FocusVisibleProps & ShapeProps & FontWeightProps & FontStyleProps & TextDecorationProps & TextTransformProps & FontFamilyProps & TextAlignProps & PaddingProps & VariantProps & CursorProps & TransparentProps & ResponsiveProps & TransitionProps & WidthProps & HeightProps & StatusProps & TruncateProps & WhitespaceProps & WordBreakProps & Omit<React.SelectHTMLAttributes<HTMLSelectElement>, 'className' | 'children'> & {
5
5
  /** Custom HTML tag or React component to render as */
6
6
  tag?: React.ElementType;
7
+ /** Muted prompt shown until an option is picked: a first, empty option that can't be chosen again. With `required`, the empty value fails validation. Ignored with `multiple` */
8
+ placeholder?: string;
7
9
  };
@@ -4,4 +4,6 @@ import type { BaseProps, SizeProps, HideProps, ItemsProps, JustifyProps, Positio
4
4
  export type SelectProps = BaseProps & SizeProps & HideProps & ItemsProps & JustifyProps & PositionProps & DisplayProps & OverflowProps & WrapProps & FlexProps & ShrinkProps & GapProps & FlexDirectionProps & AppearanceProps & BorderProps & ShadowProps & RingProps & FocusVisibleProps & ShapeProps & FontWeightProps & FontStyleProps & TextDecorationProps & TextTransformProps & FontFamilyProps & TextAlignProps & PaddingProps & VariantProps & CursorProps & TransparentProps & ResponsiveProps & TransitionProps & WidthProps & HeightProps & StatusProps & TruncateProps & WhitespaceProps & WordBreakProps & Omit<React.SelectHTMLAttributes<HTMLSelectElement>, 'className' | 'children'> & {
5
5
  /** Custom HTML tag or React component to render as */
6
6
  tag?: React.ElementType;
7
+ /** Muted prompt shown until an option is picked: a first, empty option that can't be chosen again. With `required`, the empty value fails validation. Ignored with `multiple` */
8
+ placeholder?: string;
7
9
  };
@@ -4,4 +4,6 @@ import type { BaseProps, SizeProps, HideProps, ItemsProps, JustifyProps, Positio
4
4
  export type SelectProps = BaseProps & SizeProps & HideProps & ItemsProps & JustifyProps & PositionProps & DisplayProps & OverflowProps & WrapProps & FlexProps & ShrinkProps & GapProps & FlexDirectionProps & AppearanceProps & BorderProps & ShadowProps & RingProps & FocusVisibleProps & ShapeProps & FontWeightProps & FontStyleProps & TextDecorationProps & TextTransformProps & FontFamilyProps & TextAlignProps & PaddingProps & VariantProps & CursorProps & TransparentProps & ResponsiveProps & TransitionProps & WidthProps & HeightProps & StatusProps & TruncateProps & WhitespaceProps & WordBreakProps & Omit<React.SelectHTMLAttributes<HTMLSelectElement>, 'className' | 'children'> & {
5
5
  /** Custom HTML tag or React component to render as */
6
6
  tag?: React.ElementType;
7
+ /** Muted prompt shown until an option is picked: a first, empty option that can't be chosen again. With `required`, the empty value fails validation. Ignored with `multiple` */
8
+ placeholder?: string;
7
9
  };
@@ -1,6 +1,6 @@
1
1
  import { BaseClassMapper } from "../common/BaseClassMapper.cjs";
2
2
  import type { CategoryProps, IndicatorKey } from "../../props/index.cjs";
3
- /** NavLink indicator as shadows: a start rail (2px accent when active), or a bottom bar. */
3
+ /** NavLink indicator as shadows: a start rail (2px accent when active or aria-selected), or a bottom bar (accent when active or aria-selected). */
4
4
  export declare class IndicatorClassMapper extends BaseClassMapper implements Record<IndicatorKey, string> {
5
5
  indicatorStart: string;
6
6
  indicatorBottom: string;
@@ -1,6 +1,6 @@
1
1
  import { BaseClassMapper } from "../common/BaseClassMapper.mjs";
2
2
  import type { CategoryProps, IndicatorKey } from "../../props/index.mjs";
3
- /** NavLink indicator as shadows: a start rail (2px accent when active), or a bottom bar. */
3
+ /** NavLink indicator as shadows: a start rail (2px accent when active or aria-selected), or a bottom bar (accent when active or aria-selected). */
4
4
  export declare class IndicatorClassMapper extends BaseClassMapper implements Record<IndicatorKey, string> {
5
5
  indicatorStart: string;
6
6
  indicatorBottom: string;
@@ -1,6 +1,6 @@
1
1
  import { BaseClassMapper } from "../common/BaseClassMapper";
2
2
  import type { CategoryProps, IndicatorKey } from "../../props";
3
- /** NavLink indicator as shadows: a start rail (2px accent when active), or a bottom bar. */
3
+ /** NavLink indicator as shadows: a start rail (2px accent when active or aria-selected), or a bottom bar (accent when active or aria-selected). */
4
4
  export declare class IndicatorClassMapper extends BaseClassMapper implements Record<IndicatorKey, string> {
5
5
  indicatorStart: string;
6
6
  indicatorBottom: string;
@@ -1,5 +1,13 @@
1
- import type { TooltipProps } from "./TooltipProps.cjs";
2
- export declare function Tooltip({ children, content, open, defaultOpen, onOpenChange, openDelay, closeDelay, popupProps, popupId, disabled, ...directPopupProps }: TooltipProps): import("react/jsx-runtime").JSX.Element;
3
- export declare namespace Tooltip {
4
- var displayName: string;
5
- }
1
+ import type React from 'react';
2
+ export declare const Tooltip: React.ForwardRefExoticComponent<Omit<import("../popup/index.cjs").PopupProps, "disabled" | "children" | "id" | "role" | "content" | "open" | "onClose" | "defaultOpen" | "onOpenChange" | "anchorRef"> & {
3
+ children: React.ReactElement;
4
+ content: React.ReactNode;
5
+ open?: boolean;
6
+ defaultOpen?: boolean;
7
+ onOpenChange?: (open: boolean) => void;
8
+ openDelay?: number;
9
+ closeDelay?: number;
10
+ popupProps?: Partial<Omit<import("../popup/index.cjs").PopupProps, "open" | "onClose" | "anchorRef" | "children">>;
11
+ popupId?: string;
12
+ disabled?: boolean;
13
+ } & React.RefAttributes<HTMLElement>>;
@@ -1,5 +1,13 @@
1
- import type { TooltipProps } from "./TooltipProps.mjs";
2
- export declare function Tooltip({ children, content, open, defaultOpen, onOpenChange, openDelay, closeDelay, popupProps, popupId, disabled, ...directPopupProps }: TooltipProps): import("react/jsx-runtime").JSX.Element;
3
- export declare namespace Tooltip {
4
- var displayName: string;
5
- }
1
+ import type React from 'react';
2
+ export declare const Tooltip: React.ForwardRefExoticComponent<Omit<import("../popup/index.mjs").PopupProps, "disabled" | "children" | "id" | "role" | "content" | "open" | "onClose" | "defaultOpen" | "onOpenChange" | "anchorRef"> & {
3
+ children: React.ReactElement;
4
+ content: React.ReactNode;
5
+ open?: boolean;
6
+ defaultOpen?: boolean;
7
+ onOpenChange?: (open: boolean) => void;
8
+ openDelay?: number;
9
+ closeDelay?: number;
10
+ popupProps?: Partial<Omit<import("../popup/index.mjs").PopupProps, "open" | "onClose" | "anchorRef" | "children">>;
11
+ popupId?: string;
12
+ disabled?: boolean;
13
+ } & React.RefAttributes<HTMLElement>>;
@@ -1,5 +1,13 @@
1
- import type { TooltipProps } from "./TooltipProps";
2
- export declare function Tooltip({ children, content, open, defaultOpen, onOpenChange, openDelay, closeDelay, popupProps, popupId, disabled, ...directPopupProps }: TooltipProps): import("react/jsx-runtime").JSX.Element;
3
- export declare namespace Tooltip {
4
- var displayName: string;
5
- }
1
+ import type React from 'react';
2
+ export declare const Tooltip: React.ForwardRefExoticComponent<Omit<import("../popup").PopupProps, "disabled" | "children" | "id" | "role" | "content" | "open" | "onClose" | "defaultOpen" | "onOpenChange" | "anchorRef"> & {
3
+ children: React.ReactElement;
4
+ content: React.ReactNode;
5
+ open?: boolean;
6
+ defaultOpen?: boolean;
7
+ onOpenChange?: (open: boolean) => void;
8
+ openDelay?: number;
9
+ closeDelay?: number;
10
+ popupProps?: Partial<Omit<import("../popup").PopupProps, "open" | "onClose" | "anchorRef" | "children">>;
11
+ popupId?: string;
12
+ disabled?: boolean;
13
+ } & React.RefAttributes<HTMLElement>>;
@@ -2,7 +2,8 @@ import type React from 'react';
2
2
  import type { PopupProps } from "../popup/PopupProps.cjs";
3
3
  /**
4
4
  * Tooltip component props. Popup props (size, appearance, variant, shape, placement, arrow, offset, ...)
5
- * are accepted directly and styled onto the tooltip.
5
+ * are accepted directly and styled onto the tooltip. The ref, event handlers and aria-* attributes
6
+ * go to the child instead, so a Tooltip can itself be the trigger of a Menu or PopupTrigger.
6
7
  */
7
8
  export type TooltipProps = Omit<PopupProps, 'anchorRef' | 'open' | 'onClose' | 'defaultOpen' | 'onOpenChange' | 'disabled' | 'children' | 'content' | 'id' | 'role'> & {
8
9
  /** The element the tooltip describes (must accept ref) */
@@ -2,7 +2,8 @@ import type React from 'react';
2
2
  import type { PopupProps } from "../popup/PopupProps.mjs";
3
3
  /**
4
4
  * Tooltip component props. Popup props (size, appearance, variant, shape, placement, arrow, offset, ...)
5
- * are accepted directly and styled onto the tooltip.
5
+ * are accepted directly and styled onto the tooltip. The ref, event handlers and aria-* attributes
6
+ * go to the child instead, so a Tooltip can itself be the trigger of a Menu or PopupTrigger.
6
7
  */
7
8
  export type TooltipProps = Omit<PopupProps, 'anchorRef' | 'open' | 'onClose' | 'defaultOpen' | 'onOpenChange' | 'disabled' | 'children' | 'content' | 'id' | 'role'> & {
8
9
  /** The element the tooltip describes (must accept ref) */
@@ -2,7 +2,8 @@ import type React from 'react';
2
2
  import type { PopupProps } from "../popup/PopupProps";
3
3
  /**
4
4
  * Tooltip component props. Popup props (size, appearance, variant, shape, placement, arrow, offset, ...)
5
- * are accepted directly and styled onto the tooltip.
5
+ * are accepted directly and styled onto the tooltip. The ref, event handlers and aria-* attributes
6
+ * go to the child instead, so a Tooltip can itself be the trigger of a Menu or PopupTrigger.
6
7
  */
7
8
  export type TooltipProps = Omit<PopupProps, 'anchorRef' | 'open' | 'onClose' | 'defaultOpen' | 'onOpenChange' | 'disabled' | 'children' | 'content' | 'id' | 'role'> & {
8
9
  /** The element the tooltip describes (must accept ref) */