@bolttech/molecules-dropdown 0.21.0 → 0.22.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.
package/index.cjs CHANGED
@@ -2517,7 +2517,7 @@ const ReusableDropdownComponent = _a => {
2517
2517
  setShowSelectComponent(false);
2518
2518
  onBlur && onBlur(event);
2519
2519
  }
2520
- }, uiUtils.applyDataAttributes(props, 'input')))
2520
+ }, props, uiUtils.applyDataAttributes(props, 'input')))
2521
2521
  })]
2522
2522
  }), jsxRuntime.jsx(ClickableElement, {
2523
2523
  onClick: () => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bolttech/molecules-dropdown",
3
- "version": "0.21.0",
3
+ "version": "0.22.0",
4
4
  "main": "./index.cjs",
5
5
  "type": "commonjs",
6
6
  "types": "./src/index.d.ts",
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  import { OptionWithHeaderType, OptionType } from '@bolttech/atoms-select';
3
- export declare const DropdownWithHeaders: import("react").ForwardRefExoticComponent<import("@bolttech/ui-utils").DefaultProps & {
3
+ export declare const DropdownWithHeaders: import("react").ForwardRefExoticComponent<Omit<import("react").DOMAttributes<HTMLInputElement>, "children" | "dangerouslySetInnerHTML" | "onChange" | "onBlur" | "onFocus"> & import("@bolttech/ui-utils").DefaultProps & {
4
4
  label: string;
5
5
  placeholder?: string | undefined;
6
6
  disabled?: boolean | undefined;
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  import { OptionType } from '@bolttech/atoms-select';
3
- export declare const Dropdown: import("react").ForwardRefExoticComponent<import("@bolttech/ui-utils").DefaultProps & {
3
+ export declare const Dropdown: import("react").ForwardRefExoticComponent<Omit<import("react").DOMAttributes<HTMLInputElement>, "children" | "dangerouslySetInnerHTML" | "onChange" | "onBlur" | "onFocus"> & import("@bolttech/ui-utils").DefaultProps & {
4
4
  label: string;
5
5
  placeholder?: string | undefined;
6
6
  disabled?: boolean | undefined;
@@ -1,6 +1,6 @@
1
- /// <reference types="react" />
2
1
  import { OptionType, OptionWithHeaderType } from '@bolttech/atoms-select';
3
2
  import { DefaultProps } from '@bolttech/ui-utils';
3
+ import { DOMAttributes } from 'react';
4
4
  /**
5
5
  * @typedef {StyleVariants}
6
6
  The string value possibilities to affect the theme
@@ -40,7 +40,7 @@ type DefaultDropdownProps = {
40
40
  @property setSelectedOption - A function to set the selected option
41
41
  @property selectedOption - An optional object representing the currently selected option
42
42
  */
43
- export type DropdownProps = DefaultProps & DefaultDropdownProps & {
43
+ export type DropdownProps = Omit<DOMAttributes<HTMLInputElement>, 'children' | 'dangerouslySetInnerHTML' | 'onChange' | 'onBlur' | 'onFocus'> & DefaultProps & DefaultDropdownProps & {
44
44
  optionList?: OptionType[];
45
45
  /**
46
46
  * An optional function that filters the option list based on input value
@@ -100,7 +100,7 @@ export type DropdownProps = DefaultProps & DefaultDropdownProps & {
100
100
  @property setSelectedOption - A function to set the selected option
101
101
  @property selectedOption - An optional object representing the currently selected option
102
102
  */
103
- export type DropdownWithHeadersProps = DefaultProps & DefaultDropdownProps & {
103
+ export type DropdownWithHeadersProps = Omit<DOMAttributes<HTMLInputElement>, 'children' | 'dangerouslySetInnerHTML' | 'onChange' | 'onBlur' | 'onFocus'> & DefaultProps & DefaultDropdownProps & {
104
104
  optionList?: OptionWithHeaderType[];
105
105
  /**
106
106
  * An optional function that filters the option list based on input value
@@ -170,7 +170,7 @@ export type DropdownWithHeadersProps = DefaultProps & DefaultDropdownProps & {
170
170
  @property setSelectedOptionOnInputValue - A function to set the selected option based on the input value
171
171
  @property inputRef - A ref to the input element of the dropdown
172
172
  */
173
- export type ReusableDropdownComponentProps = DefaultProps & DefaultDropdownProps & {
173
+ export type ReusableDropdownComponentProps = DefaultProps & Omit<DOMAttributes<HTMLInputElement>, 'children' | 'dangerouslySetInnerHTML' | 'onChange' | 'onBlur' | 'onFocus'> & DefaultDropdownProps & {
174
174
  setShowSelectComponent: React.Dispatch<React.SetStateAction<boolean>>;
175
175
  showSelectComponent: boolean;
176
176
  onChangeInputValue: React.Dispatch<React.SetStateAction<string>>;