@bodynarf/react.components 1.4.0 → 1.4.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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bodynarf/react.components",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.2",
|
|
4
4
|
"author": {
|
|
5
5
|
"name": "Artem",
|
|
6
6
|
"email": "bodynar@gmail.com"
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
],
|
|
23
23
|
"scripts": {
|
|
24
24
|
"build": "npx tsc",
|
|
25
|
-
"
|
|
25
|
+
"publish_pkg": "npx tsc && copy package.json dist && copy readme.md dist && cd dist && npm publish --access=public"
|
|
26
26
|
},
|
|
27
27
|
"devDependencies": {
|
|
28
28
|
"@types/react": "^18.0.11",
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
import { BaseElementProps } from "../types";
|
|
2
|
-
/** Base properties for input components */
|
|
3
|
-
export declare type BaseInputElementProps<TValue> = BaseElementProps & {
|
|
4
|
-
/** Value change handler. Changed value must be stored outside of component */
|
|
5
|
-
onValueChange: (value: TValue) => void;
|
|
6
|
-
/** Default value of input component*/
|
|
7
|
-
defaultValue?: TValue;
|
|
8
|
-
/** Input element placeholder */
|
|
9
|
-
placeholder?: string;
|
|
10
|
-
/** Is component borders are rounded */
|
|
11
|
-
rounded?: boolean;
|
|
12
|
-
/** Should be component disabled. Selecting is not allowed */
|
|
13
|
-
disabled?: boolean;
|
|
14
|
-
/** Should be component int read only mode. Selecting is allowed */
|
|
15
|
-
readonly?: boolean;
|
|
16
|
-
/** Component size */
|
|
17
|
-
size?: InputSize;
|
|
18
|
-
/** Label configuration */
|
|
19
|
-
label?: InputLabel;
|
|
20
|
-
/** Displaying loading state of component as spinner in right end of component */
|
|
21
|
-
loading?: boolean;
|
|
22
|
-
/** Style. Colors the border */
|
|
23
|
-
style?: InputColor;
|
|
24
|
-
/** Name of element. Required for form elements */
|
|
25
|
-
name?: string;
|
|
26
|
-
};
|
|
27
|
-
/** Input label configuration */
|
|
28
|
-
export declare type InputLabel = {
|
|
29
|
-
/** Label textual content to describe input requirements */
|
|
30
|
-
caption: string;
|
|
31
|
-
/** Should component be on same line with label */
|
|
32
|
-
horizontal?: boolean;
|
|
33
|
-
/** Additional class names */
|
|
34
|
-
className?: string;
|
|
35
|
-
/** Class name for label parent container in horizontal mode */
|
|
36
|
-
horizontalContainerClassName?: string;
|
|
37
|
-
/** Class name for input parent container in horizontal mode */
|
|
38
|
-
horizontalFieldContainerClassName?: string;
|
|
39
|
-
};
|
|
40
|
-
/** Input component size variety */
|
|
41
|
-
export declare type InputSize = 'small' | 'normal' | 'medium' | 'large';
|
|
42
|
-
/** Input component border-color type */
|
|
43
|
-
export declare type InputColor = 'default' /** color: transparent */ | 'primary' /** color: seawave green */ | 'link' /** color: blue-violet */ | 'info' /** color: sky-blue */ | 'success' /** color: green */ | 'warning' /** color: yellow */ | 'danger' /** color: red */;
|
|
44
|
-
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/primitives/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAE5C,2CAA2C;AAC3C,oBAAY,qBAAqB,CAAC,MAAM,IAAI,gBAAgB,GAAG;IAC3D,8EAA8E;IAC9E,aAAa,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAEvC,sCAAsC;IACtC,YAAY,CAAC,EAAE,MAAM,CAAC;IAEtB,gCAAgC;IAChC,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB,uCAAuC;IACvC,OAAO,CAAC,EAAE,OAAO,CAAC;IAElB,6DAA6D;IAC7D,QAAQ,CAAC,EAAE,OAAO,CAAC;IAEnB,mEAAmE;IACnE,QAAQ,CAA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