digital-rabbit-cl 0.3.21 → 0.4.0
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/package.json +8 -2
- package/src/components/Button/Button.d.ts +22 -0
- package/src/components/Button/index.d.ts +2 -0
- package/src/components/Checkbox/Checkbox.d.ts +20 -0
- package/src/components/Checkbox/index.d.ts +2 -0
- package/src/components/Input/Input.d.ts +22 -0
- package/src/components/Input/index.d.ts +2 -0
- package/src/components/Radio/Radio.d.ts +19 -0
- package/src/components/Radio/index.d.ts +2 -0
- package/src/components/Select/Select.d.ts +21 -0
- package/src/components/Select/index.d.ts +2 -0
- package/src/components/Textarea/Textarea.d.ts +22 -0
- package/src/components/Textarea/index.d.ts +2 -0
- package/src/index.d.ts +6 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "digital-rabbit-cl",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.4.0",
|
|
4
4
|
"dependencies": {
|
|
5
5
|
"react": "^16.13.1",
|
|
6
6
|
"react-dom": "^16.13.1",
|
|
@@ -17,8 +17,10 @@
|
|
|
17
17
|
},
|
|
18
18
|
"license": "MIT",
|
|
19
19
|
"main": "dist/digital-rabbit-cl.js",
|
|
20
|
+
"types": "src/index.d.ts",
|
|
20
21
|
"files": [
|
|
21
|
-
"dist/digital-rabbit-cl.js"
|
|
22
|
+
"dist/digital-rabbit-cl.js",
|
|
23
|
+
"src/**/*.d.ts"
|
|
22
24
|
],
|
|
23
25
|
"browserslist": {
|
|
24
26
|
"production": [
|
|
@@ -40,9 +42,13 @@
|
|
|
40
42
|
"@storybook/addon-links": "^5.3.18",
|
|
41
43
|
"@storybook/addons": "^5.3.18",
|
|
42
44
|
"@storybook/react": "^5.3.18",
|
|
45
|
+
"@types/react": "^19.2.3",
|
|
46
|
+
"@types/react-dom": "^19.2.2",
|
|
47
|
+
"@types/styled-components": "^5.1.35",
|
|
43
48
|
"babel-loader": "^8.1.0",
|
|
44
49
|
"babel-plugin-styled-components": "^1.10.7",
|
|
45
50
|
"styled-components": "^5.1.0",
|
|
51
|
+
"typescript": "^5.9.3",
|
|
46
52
|
"webpack": "^4.43.0",
|
|
47
53
|
"webpack-cli": "^3.3.11"
|
|
48
54
|
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { StyledComponent } from 'styled-components';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
|
|
4
|
+
export interface ButtonProps {
|
|
5
|
+
children?: React.ReactNode;
|
|
6
|
+
className?: string;
|
|
7
|
+
color?: string;
|
|
8
|
+
disabled?: boolean;
|
|
9
|
+
fontSize?: string;
|
|
10
|
+
hoverColor?: string;
|
|
11
|
+
hoverTextColor?: string;
|
|
12
|
+
onClick: (event: React.MouseEvent<HTMLButtonElement>) => void;
|
|
13
|
+
outline?: boolean;
|
|
14
|
+
size?: 'small' | string;
|
|
15
|
+
style?: React.CSSProperties;
|
|
16
|
+
textColor?: string;
|
|
17
|
+
type?: 'button' | 'submit' | 'reset';
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
declare const Button: StyledComponent<'button', any, ButtonProps, never>;
|
|
21
|
+
|
|
22
|
+
export default Button;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
|
|
3
|
+
export interface CheckboxProps {
|
|
4
|
+
checked?: boolean;
|
|
5
|
+
checkmarkColor?: string;
|
|
6
|
+
color?: string;
|
|
7
|
+
disabled?: boolean;
|
|
8
|
+
fontSize?: string;
|
|
9
|
+
id?: string;
|
|
10
|
+
inverted?: boolean;
|
|
11
|
+
label?: string;
|
|
12
|
+
labelStyle?: React.CSSProperties;
|
|
13
|
+
name: string;
|
|
14
|
+
onChange: (event: { target: { checked: boolean; name: string; type: 'checkbox' } }) => void;
|
|
15
|
+
style?: React.CSSProperties;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
declare const Checkbox: React.FC<CheckboxProps>;
|
|
19
|
+
|
|
20
|
+
export default Checkbox;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { StyledComponent } from 'styled-components';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
|
|
4
|
+
export interface InputProps {
|
|
5
|
+
className?: string;
|
|
6
|
+
color?: string;
|
|
7
|
+
disabled?: boolean;
|
|
8
|
+
fontSize?: string;
|
|
9
|
+
name?: string;
|
|
10
|
+
onChange: (event: React.ChangeEvent<HTMLInputElement>) => void;
|
|
11
|
+
outline?: boolean;
|
|
12
|
+
placeholder?: string;
|
|
13
|
+
placeholderOpacity?: string | number;
|
|
14
|
+
size?: 'small' | string;
|
|
15
|
+
style?: React.CSSProperties;
|
|
16
|
+
type?: string;
|
|
17
|
+
value?: string;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
declare const Input: StyledComponent<'input', any, InputProps, never>;
|
|
21
|
+
|
|
22
|
+
export default Input;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
|
|
3
|
+
export interface RadioProps {
|
|
4
|
+
checked?: boolean;
|
|
5
|
+
color?: string;
|
|
6
|
+
disabled?: boolean;
|
|
7
|
+
fontSize?: string;
|
|
8
|
+
id?: string;
|
|
9
|
+
inverted?: boolean;
|
|
10
|
+
label?: string;
|
|
11
|
+
labelStyle?: React.CSSProperties;
|
|
12
|
+
name: string;
|
|
13
|
+
onChange: (event: { target: { checked: boolean; name: string; type: 'radio' } }) => void;
|
|
14
|
+
style?: React.CSSProperties;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
declare const Radio: React.FC<RadioProps>;
|
|
18
|
+
|
|
19
|
+
export default Radio;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { StyledComponent } from 'styled-components';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
|
|
4
|
+
export interface SelectProps {
|
|
5
|
+
children?: React.ReactNode;
|
|
6
|
+
className?: string;
|
|
7
|
+
color?: string;
|
|
8
|
+
disabled?: boolean;
|
|
9
|
+
fontSize?: string;
|
|
10
|
+
name?: string;
|
|
11
|
+
onChange: (event: React.ChangeEvent<HTMLSelectElement>) => void;
|
|
12
|
+
outline?: boolean;
|
|
13
|
+
placeholder?: string;
|
|
14
|
+
size?: 'small' | string;
|
|
15
|
+
style?: React.CSSProperties;
|
|
16
|
+
value?: string;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
declare const Select: StyledComponent<'select', any, SelectProps, never>;
|
|
20
|
+
|
|
21
|
+
export default Select;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { StyledComponent } from 'styled-components';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
|
|
4
|
+
export interface TextareaProps {
|
|
5
|
+
className?: string;
|
|
6
|
+
color?: string;
|
|
7
|
+
disabled?: boolean;
|
|
8
|
+
fontSize?: string;
|
|
9
|
+
name?: string;
|
|
10
|
+
onChange: (event: React.ChangeEvent<HTMLTextAreaElement>) => void;
|
|
11
|
+
outline?: boolean;
|
|
12
|
+
placeholder?: string;
|
|
13
|
+
placeholderOpacity?: string | number;
|
|
14
|
+
rows?: string;
|
|
15
|
+
size?: 'small' | string;
|
|
16
|
+
style?: React.CSSProperties;
|
|
17
|
+
value?: string;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
declare const Textarea: StyledComponent<'textarea', any, TextareaProps, never>;
|
|
21
|
+
|
|
22
|
+
export default Textarea;
|
package/src/index.d.ts
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export { default as Button } from './components/Button';
|
|
2
|
+
export { default as Checkbox } from './components/Checkbox';
|
|
3
|
+
export { default as Input } from './components/Input';
|
|
4
|
+
export { default as Radio } from './components/Radio';
|
|
5
|
+
export { default as Select } from './components/Select';
|
|
6
|
+
export { default as Textarea } from './components/Textarea';
|