@cronocode/react-box 3.0.20 → 3.0.21

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/box.d.ts CHANGED
@@ -18,7 +18,7 @@ interface Props<TTag extends keyof React.JSX.IntrinsicElements, TKey extends key
18
18
  style?: React.ComponentProps<TTag>['style'];
19
19
  id?: string;
20
20
  }
21
- interface BoxType extends React.FunctionComponent {
21
+ interface BoxType {
22
22
  <TTag extends keyof React.JSX.IntrinsicElements = 'div', TKey extends keyof ComponentsAndVariants = never>(props: Props<TTag, TKey> & RefAttributes<ExtractElementFromTag<TTag>>): React.ReactNode;
23
23
  extend: typeof BoxExtends.extend;
24
24
  components: typeof BoxExtends.components;
@@ -17,7 +17,7 @@ interface DropdownItemProps<TVal> extends BoxProps {
17
17
  interface DropdownDisplayProps<TVal> extends Omit<BoxProps, 'children'> {
18
18
  children: ((selectedValues: TVal[], isOpen: boolean) => React.ReactNode) | React.ReactNode;
19
19
  }
20
- interface DropdownType extends React.FunctionComponent {
20
+ interface DropdownType {
21
21
  <TVal>(props: Props<TVal> & RefAttributes<HTMLInputElement>): React.ReactNode;
22
22
  Item: <TVal>(props: DropdownItemProps<TVal>) => React.ReactNode;
23
23
  Unselect: (props: BoxProps) => React.ReactNode;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cronocode/react-box",
3
- "version": "3.0.20",
3
+ "version": "3.0.21",
4
4
  "type": "module",
5
5
  "main": "./box.cjs",
6
6
  "module": "./box.mjs",