@helpscout/ui-kit-react 0.1.9 → 0.1.10

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.
@@ -1,7 +1,7 @@
1
1
  /// <reference types="react" />
2
2
  import type { ListBoxItemProps } from "react-aria-components";
3
- import { PopoverProps } from "react-aria-components";
4
- interface SelectProps {
3
+ import { ComboBoxProps, PopoverProps, SelectProps as SelectPropsRAC } from "react-aria-components";
4
+ interface SelectProps extends Omit<SelectPropsRAC<object> & ComboBoxProps<object>, "children"> {
5
5
  /** Optional class name to apply to the Select. */
6
6
  className?: string;
7
7
  /** If true, the select is filterable. */
@@ -10,12 +10,14 @@ interface SelectProps {
10
10
  children: React.ReactNode;
11
11
  /** The label for the select. */
12
12
  label?: string;
13
+ /** Hide the label visually. */
14
+ hideLabel?: boolean;
13
15
  /** Optional props to pass to the popover. */
14
16
  popoverProps?: PopoverProps;
15
17
  /** Callback function that is called when the selection changes. */
16
18
  onSelectionChange: (key: string | number | null) => void;
17
19
  }
18
- declare function Select({ filterable, children, className, label, popoverProps, ...rest }: SelectProps): import("react/jsx-runtime").JSX.Element;
19
- declare function SelectItem(props: ListBoxItemProps): import("react/jsx-runtime").JSX.Element;
20
+ declare function Select({ filterable, children, className, label, popoverProps, hideLabel, placeholder, ...rest }: SelectProps): import("react/jsx-runtime").JSX.Element;
21
+ declare function SelectItem({ className, ...props }: ListBoxItemProps): import("react/jsx-runtime").JSX.Element;
20
22
  export { Select, SelectItem, type SelectProps };
21
23
  //# sourceMappingURL=select.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"select.d.ts","sourceRoot":"","sources":["../../../../lib/components/select/select.tsx"],"names":[],"mappings":";AACA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAC9D,OAAO,EAKL,YAAY,EAGb,MAAM,uBAAuB,CAAC;AAa/B,UAAU,WAAW;IACnB,kDAAkD;IAClD,SAAS,CAAC,EAAE,MAAM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