freemium-ui 1.0.271 → 1.0.274

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
  import React from 'react';
2
2
  interface RadioButtonProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>, 'type'> {
3
3
  checked: boolean;
4
- onChange: () => void;
4
+ onChange?: () => void;
5
5
  }
6
6
  export declare const Radio: React.ComponentType<Partial<{
7
7
  checked: boolean;
@@ -1,16 +1,20 @@
1
1
  import React from 'react';
2
2
  import FreemiumUIThemes from '../../theme';
3
3
  export interface TabsItemProps {
4
+ id: string;
5
+ name: string;
6
+ hide?: boolean;
7
+ disabled?: boolean;
4
8
  [key: string]: any;
5
9
  }
6
- declare type TabsProps = {
7
- onChange?: (event: React.MouseEvent<HTMLDivElement>, menuItem: TabsItemProps) => void;
8
- options?: Array<any>;
10
+ declare type TabsProps<T extends TabsItemProps = any> = {
11
+ onChange?: (event: React.MouseEvent<HTMLDivElement>, menuItem: T) => void;
12
+ options?: Array<T>;
9
13
  idAccessor?: string;
10
14
  nameAccessor?: string;
11
15
  ref?: React.RefObject<HTMLDivElement>;
12
16
  value?: string;
13
17
  theme?: FreemiumUIThemes;
14
18
  };
15
- export declare const Tabs: (props: TabsProps) => JSX.Element;
19
+ export declare const Tabs: <T extends TabsItemProps = any>(props: TabsProps<T>) => JSX.Element;
16
20
  export {};
@@ -2,7 +2,7 @@ import * as React from 'react';
2
2
  import { Position, Trigger, Theme } from 'react-tippy';
3
3
  export interface TooltipProps {
4
4
  position?: Position;
5
- label: any;
5
+ label?: any;
6
6
  children: any;
7
7
  arrow?: boolean;
8
8
  interactive?: boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "freemium-ui",
3
- "version": "1.0.271",
3
+ "version": "1.0.274",
4
4
  "description": "React Ui Components for Freemium Apps",
5
5
  "main": "lib/index.cjs.js",
6
6
  "module": "lib/index.esm.js",