ibd-ui-component-library 1.634.2

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/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License Copyright (c) 2021
2
+
3
+ Permission is hereby granted, free
4
+ of charge, to any person obtaining a copy of this software and associated
5
+ documentation files (the "Software"), to deal in the Software without
6
+ restriction, including without limitation the rights to use, copy, modify, merge,
7
+ publish, distribute, sublicense, and/or sell copies of the Software, and to
8
+ permit persons to whom the Software is furnished to do so, subject to the
9
+ following conditions:
10
+
11
+ The above copyright notice and this permission notice
12
+ (including the next paragraph) shall be included in all copies or substantial
13
+ portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF
16
+ ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
17
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO
18
+ EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR
19
+ OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
20
+ FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,56 @@
1
+ # ibd-ui-component-library
2
+
3
+ IDB react UI components
4
+
5
+ ## Features
6
+
7
+ - ES6 syntax, managed with Prettier + Eslint
8
+ - Typescript
9
+ - React 17
10
+
11
+ ## Install
12
+
13
+ ```sh
14
+ yarn add ibd-ui-component-library
15
+ // or
16
+ npm i ibd-ui-component-library
17
+ ```
18
+
19
+ ### Requirements
20
+
21
+ - React 17
22
+ - styled-components
23
+
24
+ ### Usage
25
+
26
+ ```js
27
+ import { SearchPicker } from "ibd-ui-component-library";
28
+ import ReactDom from "react-dom";
29
+ import { App } from "./App";
30
+
31
+ ReactDom.render(
32
+ <App>
33
+ <SearchPicker
34
+ locked={readOnly}
35
+ placeholder="Select Wolfsberg Questionnaire Countries"
36
+ leftButtonProps={{
37
+ label: 'Cancel'
38
+ }}
39
+ rightButtonProps={{
40
+ label: 'Ok'
41
+ }}
42
+ defaultValue={defaultCountries}
43
+ multiple
44
+ label="Wolfsberg Questionnaire Countries"
45
+ name={wolfsbergQuestionnaireCountries}
46
+ options={countriesAsOptions}
47
+ onSelect={(selected) => {
48
+ const selectedValue = selected.map((s) => s.value);
49
+ handleOnChange(wolfsbergQuestionnaireCountries, selectedValue);
50
+ }}
51
+ icon={null}
52
+ />
53
+ </App>,
54
+ document.getElementById("root")
55
+ );
56
+ ```