freemium-ui 1.0.166 → 1.0.170

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,6 +1,8 @@
1
1
  import React from 'react';
2
2
  interface CheckboxProps {
3
3
  checked: boolean;
4
+ isRequired?: boolean;
5
+ isErrored?: boolean;
4
6
  disabled?: boolean;
5
7
  readOnly?: boolean;
6
8
  sizeVariant?: 'sm' | 'md';
@@ -13,5 +15,5 @@ interface CheckboxProps {
13
15
  export declare const Checkbox: React.ComponentType<Partial<{
14
16
  checked: boolean;
15
17
  sizeVariant: string;
16
- }> & Pick<CheckboxProps & React.RefAttributes<HTMLInputElement>, "ref" | "disabled" | "readOnly" | "children" | "name" | "value" | "onChange" | "id" | "key">>;
18
+ }> & Pick<CheckboxProps & React.RefAttributes<HTMLInputElement>, "ref" | "isRequired" | "isErrored" | "disabled" | "readOnly" | "children" | "name" | "value" | "onChange" | "id" | "key">>;
17
19
  export {};
@@ -103,7 +103,7 @@ declare type TableProps = {
103
103
  onLastClick?: (pageNumber?: number) => void;
104
104
  onPrevious?: (pageNumber?: number) => void;
105
105
  onNext?: (pageNumber?: number) => void;
106
- onRowSelect?: (selectedRowIds: Record<IdType, boolean>) => void;
106
+ onRowSelect?: (selectedRowIds: Record<IdType, boolean>, selectedFlatRows?: any[]) => void;
107
107
  onRowClick?: (row: RowProps, column: HeaderProps) => void;
108
108
  columns?: Array<ColumnOptions> | Array<ColumnGroupOptions>;
109
109
  hideTableHeaderOnEmpty?: boolean;
@@ -131,7 +131,6 @@ declare type TableProps = {
131
131
  paginationOptions?: Array<number>;
132
132
  theme?: FreemiumUIThemes;
133
133
  initialState?: TableInitialState;
134
- state?: TableInitialState;
135
134
  };
136
135
  export declare const Table: (props: TableProps) => JSX.Element;
137
136
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "freemium-ui",
3
- "version": "1.0.166",
3
+ "version": "1.0.170",
4
4
  "description": "React Ui Components for Freemium Apps",
5
5
  "main": "lib/index.cjs.js",
6
6
  "module": "lib/index.esm.js",