@bodynarf/react.components 1.0.2 → 1.1.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/anchor.ts +10 -0
- package/button.ts +11 -0
- package/date.ts +7 -0
- package/dropdown.ts +9 -0
- package/hooks.ts +5 -0
- package/icon.ts +7 -0
- package/index.ts +14 -0
- package/multiline.ts +7 -0
- package/package.json +3 -2
- package/search.ts +7 -0
- package/src/components/button/index.tsx +1 -1
- package/src/components/dropdown/index.tsx +1 -1
- package/src/components/icon/index.tsx +1 -1
- package/src/components/primitives/date/index.tsx +1 -1
- package/src/components/search/index.tsx +1 -1
- package/text.ts +7 -0
- package/tsconfig.json +2 -1
package/anchor.ts
ADDED
package/button.ts
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import Button, { ButtonProps } from "@app/components/button";
|
|
2
|
+
import { ButtonType, ButtonWithIconProps, SimpleButtonProps } from "@app/components/button/types";
|
|
3
|
+
|
|
4
|
+
export default Button;
|
|
5
|
+
|
|
6
|
+
export {
|
|
7
|
+
ButtonProps,
|
|
8
|
+
ButtonType,
|
|
9
|
+
ButtonWithIconProps,
|
|
10
|
+
SimpleButtonProps,
|
|
11
|
+
};
|
package/date.ts
ADDED
package/dropdown.ts
ADDED
package/hooks.ts
ADDED
package/icon.ts
ADDED
package/index.ts
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { BaseInputElementProps, InputColor, InputLabel, InputSize } from "@app/components/primitives/types";
|
|
2
|
+
import { BaseElementProps, ElementIcon, IconPosition, IconSize } from "@app/components/types";
|
|
3
|
+
|
|
4
|
+
export {
|
|
5
|
+
BaseInputElementProps,
|
|
6
|
+
InputColor,
|
|
7
|
+
InputLabel,
|
|
8
|
+
InputSize,
|
|
9
|
+
|
|
10
|
+
BaseElementProps,
|
|
11
|
+
ElementIcon,
|
|
12
|
+
IconPosition,
|
|
13
|
+
IconSize,
|
|
14
|
+
};
|
package/multiline.ts
ADDED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bodynarf/react.components",
|
|
3
|
-
"version": "1.0
|
|
3
|
+
"version": "1.1.0",
|
|
4
4
|
"author": {
|
|
5
5
|
"name": "Artem",
|
|
6
6
|
"email": "bodynar@gmail.com"
|
|
@@ -32,6 +32,7 @@
|
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|
|
34
34
|
"@bodynarf/utils": "^1.0.0",
|
|
35
|
+
"@types/babel__core": "^7.1.19",
|
|
35
36
|
"@types/node": "^17.0.25",
|
|
36
37
|
"@types/react": "^18.0.5",
|
|
37
38
|
"@types/react-dom": "^18.0.1",
|
|
@@ -41,4 +42,4 @@
|
|
|
41
42
|
"typescript": "^4.6.3",
|
|
42
43
|
"vite": "^2.9.2"
|
|
43
44
|
}
|
|
44
|
-
}
|
|
45
|
+
}
|
package/search.ts
ADDED
|
@@ -8,7 +8,7 @@ import { ButtonType } from './types';
|
|
|
8
8
|
import { ButtonWithIcon } from './components/buttonWithIcon/buttonWithIcon';
|
|
9
9
|
import { SimpleButton } from './components/simpleButton/simpleButton';
|
|
10
10
|
|
|
11
|
-
type ButtonProps = {
|
|
11
|
+
export type ButtonProps = {
|
|
12
12
|
/** Button displaying text */
|
|
13
13
|
caption?: string;
|
|
14
14
|
|
|
@@ -12,7 +12,7 @@ import { BaseElementProps } from '../types';
|
|
|
12
12
|
import DropdownItem from './components/dropdownItem/dropdownItem';
|
|
13
13
|
import DropdownLabel from './components/dropdownLabel/dropdownLabel';
|
|
14
14
|
|
|
15
|
-
type DropdownProps = BaseElementProps & {
|
|
15
|
+
export type DropdownProps = BaseElementProps & {
|
|
16
16
|
/** Items which can be selected */
|
|
17
17
|
items: Array<SelectableItem>;
|
|
18
18
|
|
|
@@ -7,7 +7,7 @@ import { isStringEmpty } from '@bodynarf/utils/common';
|
|
|
7
7
|
import { BaseInputElementProps, InputLabel } from '../types';
|
|
8
8
|
|
|
9
9
|
/** Date input conponent props type */
|
|
10
|
-
type DateProps = Omit<BaseInputElementProps<Date | undefined>, 'placeholder'> & {
|
|
10
|
+
export type DateProps = Omit<BaseInputElementProps<Date | undefined>, 'placeholder'> & {
|
|
11
11
|
/** Label configuration */
|
|
12
12
|
label: InputLabel;
|
|
13
13
|
}
|
package/text.ts
ADDED