@bolttech/molecules-dropdown 0.34.0 → 0.34.1

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/index.d.ts ADDED
@@ -0,0 +1 @@
1
+ export * from "./src/index";
package/package.json CHANGED
@@ -1,20 +1,17 @@
1
1
  {
2
2
  "name": "@bolttech/molecules-dropdown",
3
- "version": "0.34.0",
4
- "main": "./index.cjs",
5
- "type": "commonjs",
6
- "types": "./src/index.d.ts",
3
+ "version": "0.34.1",
7
4
  "dependencies": {
8
- "@bolttech/atoms-icon": "0.24.0",
9
- "@bolttech/atoms-input": "0.28.0",
10
- "@bolttech/atoms-select": "0.24.0",
11
- "@bolttech/default-theme": "0.14.1",
12
- "@bolttech/form-engine": "3.1.0-beta.21",
13
- "@bolttech/frontend-foundations": "0.10.0",
5
+ "react": "19.1.1",
6
+ "@bolttech/atoms-select": "0.24.1",
7
+ "react-dom": "19.1.1",
14
8
  "@bolttech/ui-utils": "0.5.0",
15
- "react": "18.2.0",
16
- "react-dom": "18.2.0",
17
- "styled-components": "6.1.1"
9
+ "styled-components": "6.1.1",
10
+ "@bolttech/atoms-icon": "0.24.0",
11
+ "@bolttech/atoms-input": "0.28.1",
12
+ "@bolttech/default-theme": "0.15.0"
18
13
  },
19
- "peerDependencies": {}
20
- }
14
+ "main": "./index.cjs.js",
15
+ "type": "commonjs",
16
+ "types": "./index.d.ts"
17
+ }
@@ -1,24 +1,23 @@
1
- /// <reference types="react" />
2
1
  import { OptionWithHeaderType, OptionType } from '@bolttech/atoms-select';
3
2
  export declare const DropdownWithHeaders: import("react").ForwardRefExoticComponent<Pick<import("react").DOMAttributes<HTMLInputElement>, "onKeyUp" | "onKeyDown"> & import("@bolttech/ui-utils").DefaultProps & {
4
3
  label: string;
5
- placeholder?: string | undefined;
6
- disabled?: boolean | undefined;
7
- id?: string | undefined;
8
- dataTestId?: string | undefined;
9
- errorMessage?: string | undefined;
10
- helperMessage?: string | undefined;
11
- required?: boolean | undefined;
12
- variant?: import("./molecules-dropdown.type").StyleVariants | undefined;
13
- disableSearch?: boolean | undefined;
14
- onBlur?: ((value?: unknown) => void) | ((evt: import("react").FocusEvent<HTMLElement, Element>) => void) | undefined;
15
- onFocus?: ((value?: unknown) => void) | ((evt: import("react").FocusEvent<HTMLElement, Element>) => void) | undefined;
4
+ placeholder?: string;
5
+ disabled?: boolean;
6
+ id?: string;
7
+ dataTestId?: string;
8
+ errorMessage?: string;
9
+ helperMessage?: string;
10
+ required?: boolean;
11
+ variant?: import("./molecules-dropdown.type").StyleVariants;
12
+ disableSearch?: boolean;
13
+ onBlur?: ((value?: unknown) => void) | ((evt: React.FocusEvent<HTMLElement, Element>) => void);
14
+ onFocus?: ((value?: unknown) => void) | ((evt: React.FocusEvent<HTMLElement, Element>) => void);
16
15
  } & {
17
- optionList?: OptionWithHeaderType[] | undefined;
18
- filterOptionsParam?: ((inputValue: string, optionList?: OptionWithHeaderType[] | undefined, urlValue?: string | undefined) => OptionWithHeaderType[] | Promise<OptionWithHeaderType[]>) | undefined;
19
- urlFilterOptions?: string | undefined;
20
- onChange: (selectedOption?: OptionType | undefined) => void | import("react").Dispatch<import("react").SetStateAction<OptionType>>;
21
- value?: string | undefined;
22
- asyncOptionList?: boolean | undefined;
16
+ optionList?: OptionWithHeaderType[];
17
+ filterOptionsParam?: (inputValue: string, optionList?: OptionWithHeaderType[], urlValue?: string) => OptionWithHeaderType[] | Promise<OptionWithHeaderType[]>;
18
+ urlFilterOptions?: string;
19
+ onChange: (selectedOption?: OptionType) => void | React.Dispatch<React.SetStateAction<OptionType>>;
20
+ value?: string;
21
+ asyncOptionList?: boolean;
23
22
  } & import("react").RefAttributes<HTMLElement>>;
24
23
  export default DropdownWithHeaders;
@@ -1,24 +1,23 @@
1
- /// <reference types="react" />
2
1
  import { OptionType } from '@bolttech/atoms-select';
3
2
  export declare const Dropdown: import("react").ForwardRefExoticComponent<Pick<import("react").DOMAttributes<HTMLInputElement>, "onKeyUp" | "onKeyDown"> & import("@bolttech/ui-utils").DefaultProps & {
4
3
  label: string;
5
- placeholder?: string | undefined;
6
- disabled?: boolean | undefined;
7
- id?: string | undefined;
8
- dataTestId?: string | undefined;
9
- errorMessage?: string | undefined;
10
- helperMessage?: string | undefined;
11
- required?: boolean | undefined;
12
- variant?: import("./molecules-dropdown.type").StyleVariants | undefined;
13
- disableSearch?: boolean | undefined;
14
- onBlur?: ((value?: unknown) => void) | ((evt: import("react").FocusEvent<HTMLElement, Element>) => void) | undefined;
15
- onFocus?: ((value?: unknown) => void) | ((evt: import("react").FocusEvent<HTMLElement, Element>) => void) | undefined;
4
+ placeholder?: string;
5
+ disabled?: boolean;
6
+ id?: string;
7
+ dataTestId?: string;
8
+ errorMessage?: string;
9
+ helperMessage?: string;
10
+ required?: boolean;
11
+ variant?: import("./molecules-dropdown.type").StyleVariants;
12
+ disableSearch?: boolean;
13
+ onBlur?: ((value?: unknown) => void) | ((evt: React.FocusEvent<HTMLElement, Element>) => void);
14
+ onFocus?: ((value?: unknown) => void) | ((evt: React.FocusEvent<HTMLElement, Element>) => void);
16
15
  } & {
17
- optionList?: OptionType[] | undefined;
18
- filterOptionsParam?: ((inputValue: string, optionList?: OptionType[] | undefined, urlValue?: string | undefined) => OptionType[] | Promise<OptionType[]>) | undefined;
19
- urlFilterOptions?: string | undefined;
20
- onChange: (selectedOption?: OptionType | undefined) => void | import("react").Dispatch<import("react").SetStateAction<OptionType>>;
21
- value?: string | undefined;
22
- asyncOptionList?: boolean | undefined;
16
+ optionList?: OptionType[];
17
+ filterOptionsParam?: (inputValue: string, optionList?: OptionType[], urlValue?: string) => OptionType[] | Promise<OptionType[]>;
18
+ urlFilterOptions?: string;
19
+ onChange: (selectedOption?: OptionType) => void | React.Dispatch<React.SetStateAction<OptionType>>;
20
+ value?: string;
21
+ asyncOptionList?: boolean;
23
22
  } & import("react").RefAttributes<HTMLElement>>;
24
23
  export default Dropdown;