react-ui-basics 0.0.172 → 0.0.175

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.js.map ADDED
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-ui-basics",
3
- "version": "0.0.172",
3
+ "version": "0.0.175",
4
4
  "description": "",
5
5
  "module": "index.js",
6
6
  "_main": "index.cjs.js",
@@ -15,9 +15,9 @@
15
15
  },
16
16
  "sideEffects": false,
17
17
  "peerDependencies": {
18
- "prop-types": "^15.7.2",
19
- "react": "^17.0.0",
20
- "react-dom": "^17.0.0",
18
+ "prop-types": ">= 15.7.2",
19
+ "react": ">= 17.0.0",
20
+ "react-dom": ">= 17.0.0",
21
21
  "tslib": "^2.3.1"
22
22
  },
23
23
  "scripts": {
package/FilteredList.d.ts DELETED
@@ -1,61 +0,0 @@
1
- import { ClassType, CSSProperties, DOMElement, FunctionComponent, MouseEventHandler, ReactElement } from 'react';
2
- import './FilteredList.css';
3
- import { SCROLLBAR_MODE_AUTO, SCROLLBAR_MODE_HIDDEN, SCROLLBAR_MODE_VISIBLE } from "./Scrollable";
4
- import { PureComponent } from "./ReactConstants";
5
- export declare const getLabel: (labels: any, id: any) => any;
6
- export interface FilteredListProps<T extends (number | string | boolean)> {
7
- data: T[];
8
- labels: ((id: T) => string | ReactElement) | {
9
- [id: string]: string | ReactElement;
10
- };
11
- selected: T | {
12
- [id: string]: T;
13
- };
14
- inline: boolean;
15
- selectSingle?: boolean;
16
- childComponent: FunctionComponent | ClassType<any, any, any>;
17
- scroll?: typeof SCROLLBAR_MODE_AUTO | typeof SCROLLBAR_MODE_HIDDEN | typeof SCROLLBAR_MODE_VISIBLE;
18
- style?: CSSProperties;
19
- childProps?: any;
20
- className?: string;
21
- filter: (id: T) => boolean;
22
- onSelect: (id: T) => void;
23
- nextProvider: (next: () => void) => void;
24
- prevProvider: (prev: () => void) => void;
25
- resetProvider: (reset: () => void) => void;
26
- selectedProvider: (reset: () => T) => void;
27
- }
28
- interface FilteredListState {
29
- selected: number | string | boolean;
30
- }
31
- declare class FilteredList<T extends (number | string | boolean)> extends PureComponent<FilteredListProps<T>, FilteredListState> {
32
- hidden: {};
33
- list: any[];
34
- elements: {};
35
- el: any;
36
- constructor(props: any);
37
- componentDidMount(): void;
38
- componentDidUpdate(prevProps: any, prevState: any, snapshot: any): void;
39
- updateList: (props: any) => void;
40
- render(): JSX.Element;
41
- onSelect: (id: T) => void;
42
- selected: () => any;
43
- next: () => void;
44
- prev: () => void;
45
- updateScroll: (id: any) => void;
46
- reset: () => void;
47
- scrollTo: (id: any) => any;
48
- }
49
- export default FilteredList;
50
- export interface ItemWrapperProps<T> {
51
- id: number | string | boolean;
52
- label: string | ReactElement;
53
- onClick: MouseEventHandler;
54
- onMouseEnter: MouseEventHandler;
55
- onMouseLeave: MouseEventHandler;
56
- classProvider: (data: any) => string;
57
- className?: string;
58
- childComponent: FunctionComponent | ClassType<any, any, any>;
59
- childProps?: any;
60
- element?: (el: DOMElement<any, any>) => void;
61
- }