@nurihaus/web-design-system 1.4.9 → 1.4.11

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.
@@ -3,8 +3,10 @@ import { DropDownContentProps, DropDownItemProps, DropDownRootProps, DropDownTri
3
3
  declare const DropDownRoot: {
4
4
  (props: PropsWithChildren<DropDownRootProps>): import("react/jsx-runtime").JSX.Element;
5
5
  Trigger: (props: PropsWithChildren<DropDownTriggerProps>) => import("react/jsx-runtime").JSX.Element;
6
- Value: import("react").ForwardRefExoticComponent<DropDownValueProps & import("react").RefAttributes<HTMLSpanElement>>;
6
+ Value: import("react").ForwardRefExoticComponent<DropDownValueProps & {
7
+ children?: import("react").ReactNode | undefined;
8
+ } & import("react").RefAttributes<HTMLSpanElement>>;
7
9
  Content: (props: PropsWithChildren<DropDownContentProps>) => import("react/jsx-runtime").JSX.Element;
8
- Item: (props: PropsWithChildren<DropDownItemProps>) => import("react/jsx-runtime").JSX.Element;
10
+ Item: (props: DropDownItemProps) => import("react/jsx-runtime").JSX.Element;
9
11
  };
10
12
  export default DropDownRoot;
@@ -1,4 +1,4 @@
1
- import { CSSProperties, ReactNode } from 'react';
1
+ import { CSSProperties, ComponentPropsWithoutRef, ReactNode } from 'react';
2
2
  export interface DropDownRootProps {
3
3
  defaultOpen?: boolean;
4
4
  open?: boolean;
@@ -8,16 +8,15 @@ export interface DropDownRootProps {
8
8
  onValueChange?: (value: string) => void;
9
9
  disabled?: boolean;
10
10
  }
11
- export interface DropDownTriggerProps {
11
+ export interface DropDownTriggerProps extends ComponentPropsWithoutRef<'button'> {
12
12
  asChild?: boolean;
13
- className?: string;
14
- style?: CSSProperties;
15
13
  }
16
14
  export interface DropDownValueProps {
17
- asChild?: boolean;
18
15
  defaultValue?: string;
19
- className?: string;
20
16
  placeholder?: ReactNode;
17
+ value?: string;
18
+ asChild?: boolean;
19
+ className?: string;
21
20
  }
22
21
  export interface DropDownContentProps {
23
22
  asChild?: boolean;
@@ -28,7 +27,7 @@ export interface DropDownContentProps {
28
27
  export interface DropDownItemProps {
29
28
  asChild?: boolean;
30
29
  className?: string;
31
- value: string;
30
+ label: ReactNode;
32
31
  disabled?: boolean;
33
32
  onClick?: () => void;
34
33
  }
@@ -3,5 +3,5 @@ interface ExternalStateType<T> {
3
3
  handler?: (state: T) => void;
4
4
  defaultProp: T;
5
5
  }
6
- export declare const useExternalState: <T>({ prop, handler, defaultProp, }: ExternalStateType<T>) => readonly [T, (handledValue: T | ((prevState: T) => T)) => void];
6
+ export declare const useExternalState: <T>({ prop, handler, defaultProp }: ExternalStateType<T>) => readonly [T, (handledValue: T | ((prevState: T) => T)) => void];
7
7
  export {};