bianic-ui 0.3.2 → 0.3.4
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/dist/cjs/index.js +148 -22
- package/dist/cjs/lib.css +1 -1
- package/dist/cjs/types/components/Button/Button.d.ts +7 -8
- package/dist/cjs/types/components/Forms/Checkbox.d.ts +8 -0
- package/dist/cjs/types/components/Forms/LiveSearch.d.ts +13 -0
- package/dist/cjs/types/components/Forms/Radio.d.ts +4 -3
- package/dist/cjs/types/components/Forms/SelectInput.d.ts +13 -0
- package/dist/cjs/types/components/Forms/TextArea.d.ts +10 -0
- package/dist/cjs/types/components/Forms/TextInput.d.ts +2 -1
- package/dist/cjs/types/components/Forms/Toggle.d.ts +8 -0
- package/dist/cjs/types/components/Forms/index.d.ts +5 -0
- package/dist/cjs/types/components/Modal/Modal.d.ts +10 -0
- package/dist/cjs/types/components/Modal/ModalBody.d.ts +10 -0
- package/dist/cjs/types/components/Modal/ModalContent.d.ts +6 -0
- package/dist/cjs/types/components/Modal/ModalFooter.d.ts +7 -0
- package/dist/cjs/types/components/Modal/index.d.ts +3 -0
- package/dist/cjs/types/components/Table/Table.d.ts +6 -0
- package/dist/cjs/types/components/index.d.ts +2 -1
- package/dist/esm/index.js +141 -23
- package/dist/esm/lib.css +1 -1
- package/dist/esm/types/components/Button/Button.d.ts +7 -8
- package/dist/esm/types/components/Forms/Checkbox.d.ts +8 -0
- package/dist/esm/types/components/Forms/LiveSearch.d.ts +13 -0
- package/dist/esm/types/components/Forms/Radio.d.ts +4 -3
- package/dist/esm/types/components/Forms/SelectInput.d.ts +13 -0
- package/dist/esm/types/components/Forms/TextArea.d.ts +10 -0
- package/dist/esm/types/components/Forms/TextInput.d.ts +2 -1
- package/dist/esm/types/components/Forms/Toggle.d.ts +8 -0
- package/dist/esm/types/components/Forms/index.d.ts +5 -0
- package/dist/esm/types/components/Modal/Modal.d.ts +10 -0
- package/dist/esm/types/components/Modal/ModalBody.d.ts +10 -0
- package/dist/esm/types/components/Modal/ModalContent.d.ts +6 -0
- package/dist/esm/types/components/Modal/ModalFooter.d.ts +7 -0
- package/dist/esm/types/components/Modal/index.d.ts +3 -0
- package/dist/esm/types/components/Table/Table.d.ts +6 -0
- package/dist/esm/types/components/index.d.ts +2 -1
- package/dist/index.d.ts +79 -13
- package/package.json +3 -2
package/dist/index.d.ts
CHANGED
|
@@ -1,15 +1,14 @@
|
|
|
1
|
-
import React, { ComponentPropsWithoutRef
|
|
1
|
+
import React, { ComponentPropsWithoutRef } from 'react';
|
|
2
2
|
|
|
3
3
|
interface ButtonProps extends ComponentPropsWithoutRef<"button"> {
|
|
4
|
-
label
|
|
5
|
-
variant
|
|
6
|
-
size
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
right: string;
|
|
4
|
+
label?: string;
|
|
5
|
+
variant?: string;
|
|
6
|
+
size?: string;
|
|
7
|
+
rounded?: boolean;
|
|
8
|
+
left?: any;
|
|
9
|
+
right?: any;
|
|
11
10
|
}
|
|
12
|
-
declare const Button: ({ label, variant, size,
|
|
11
|
+
declare const Button: ({ label, variant, size, rounded, left, right, ...rest }: ButtonProps) => React.JSX.Element;
|
|
13
12
|
|
|
14
13
|
declare const Dump: () => React.JSX.Element;
|
|
15
14
|
|
|
@@ -22,14 +21,63 @@ interface TextInputProps extends ComponentPropsWithoutRef<"input"> {
|
|
|
22
21
|
errText: string;
|
|
23
22
|
placeholder: string;
|
|
24
23
|
icon: string;
|
|
24
|
+
inputSize: string;
|
|
25
25
|
}
|
|
26
|
-
declare const TextInput: ({ variant, label, important, descText, errText, icon, ...rest }: TextInputProps) => React.JSX.Element;
|
|
26
|
+
declare const TextInput: ({ variant, label, important, descText, errText, icon, inputSize, ...rest }: TextInputProps) => React.JSX.Element;
|
|
27
27
|
|
|
28
|
-
interface RadioProps extends
|
|
28
|
+
interface RadioProps extends ComponentPropsWithoutRef<"input"> {
|
|
29
29
|
data: any;
|
|
30
30
|
label: string;
|
|
31
|
+
InputSize: string;
|
|
32
|
+
}
|
|
33
|
+
declare const Radio: ({ label, data, InputSize, ...rest }: RadioProps) => React.JSX.Element;
|
|
34
|
+
|
|
35
|
+
interface TextAreaProps extends ComponentPropsWithoutRef<"textarea"> {
|
|
36
|
+
state: string;
|
|
37
|
+
label: string;
|
|
38
|
+
important: boolean;
|
|
39
|
+
descText: string;
|
|
40
|
+
errText: string;
|
|
41
|
+
}
|
|
42
|
+
declare const TextArea: ({ label, important, descText, errText, ...rest }: TextAreaProps) => React.JSX.Element;
|
|
43
|
+
|
|
44
|
+
interface CheckboxProps$1 extends ComponentPropsWithoutRef<"input"> {
|
|
45
|
+
label: string;
|
|
46
|
+
inputSize: string;
|
|
47
|
+
data: string;
|
|
48
|
+
}
|
|
49
|
+
declare const Checkbox: ({ label, inputSize, ...rest }: CheckboxProps$1) => React.JSX.Element;
|
|
50
|
+
|
|
51
|
+
interface SelectInputProps extends ComponentPropsWithoutRef<"input"> {
|
|
52
|
+
label: string;
|
|
53
|
+
descText: string;
|
|
54
|
+
isOpen: boolean;
|
|
55
|
+
setIsOpen: any;
|
|
56
|
+
options: any;
|
|
57
|
+
selected: object;
|
|
58
|
+
setSelected: any;
|
|
59
|
+
inputSize: string;
|
|
60
|
+
}
|
|
61
|
+
declare const SelectInput: ({ label, descText, isOpen, setIsOpen, options, selected, setSelected, inputSize, ...rest }: SelectInputProps) => React.JSX.Element;
|
|
62
|
+
|
|
63
|
+
interface LiveSearchProps extends ComponentPropsWithoutRef<"input"> {
|
|
64
|
+
label: string;
|
|
65
|
+
inputSize: string;
|
|
66
|
+
searchData: any;
|
|
67
|
+
isOpen: boolean;
|
|
68
|
+
setIsOpen: any;
|
|
69
|
+
value: any;
|
|
70
|
+
setValue: any;
|
|
71
|
+
descText: string;
|
|
31
72
|
}
|
|
32
|
-
declare const
|
|
73
|
+
declare const LiveSearch: ({ isOpen, setIsOpen, value, setValue, inputSize, ...rest }: LiveSearchProps) => React.JSX.Element;
|
|
74
|
+
|
|
75
|
+
interface CheckboxProps extends ComponentPropsWithoutRef<"input"> {
|
|
76
|
+
label: string;
|
|
77
|
+
inputSize: string;
|
|
78
|
+
data: string;
|
|
79
|
+
}
|
|
80
|
+
declare const Toggle: ({ label, inputSize, onClick, ...rest }: CheckboxProps) => React.JSX.Element;
|
|
33
81
|
|
|
34
82
|
interface DisplayProps extends ComponentPropsWithoutRef<"h1"> {
|
|
35
83
|
}
|
|
@@ -49,4 +97,22 @@ interface TextProps extends ComponentPropsWithoutRef<"span"> {
|
|
|
49
97
|
}
|
|
50
98
|
declare const Text: ({ variant, ...rest }: TextProps) => React.JSX.Element;
|
|
51
99
|
|
|
52
|
-
|
|
100
|
+
interface ModalProps extends ComponentPropsWithoutRef<"div"> {
|
|
101
|
+
modalSize: string;
|
|
102
|
+
title: string;
|
|
103
|
+
isShow: boolean;
|
|
104
|
+
setIsShow: any;
|
|
105
|
+
atribut: any;
|
|
106
|
+
}
|
|
107
|
+
declare const ModalBody: ({ ...rest }: ModalProps) => React.JSX.Element;
|
|
108
|
+
|
|
109
|
+
interface ModalContentProps extends ComponentPropsWithoutRef<"div"> {
|
|
110
|
+
}
|
|
111
|
+
declare const ModalContent: ({ ...rest }: ModalContentProps) => React.JSX.Element;
|
|
112
|
+
|
|
113
|
+
interface ModalFooterProps extends ComponentPropsWithoutRef<"div"> {
|
|
114
|
+
position?: string;
|
|
115
|
+
}
|
|
116
|
+
declare const ModalFooter: ({ ...rest }: ModalFooterProps) => React.JSX.Element;
|
|
117
|
+
|
|
118
|
+
export { Button, Checkbox, Dump as Color, Display, Heading, LiveSearch, ModalBody, ModalContent, ModalFooter, P, Radio, SelectInput, Text, TextArea, TextInput, Toggle };
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"publishConfig": {
|
|
4
4
|
"@biaenergi:registry": "https://gitlab.com/api/v4/projects/50905269/packages/npm/"
|
|
5
5
|
},
|
|
6
|
-
"version": "0.3.
|
|
6
|
+
"version": "0.3.4",
|
|
7
7
|
"description": "Design Language System develop by BIAENERGI",
|
|
8
8
|
"scripts": {
|
|
9
9
|
"rollup": "rollup -c"
|
|
@@ -14,6 +14,7 @@
|
|
|
14
14
|
"@rollup/plugin-commonjs": "^25.0.4",
|
|
15
15
|
"@rollup/plugin-node-resolve": "^15.2.1",
|
|
16
16
|
"@rollup/plugin-typescript": "^11.1.4",
|
|
17
|
+
"@rollup/plugin-url": "^8.0.2",
|
|
17
18
|
"@types/react": "^18.2.24",
|
|
18
19
|
"autoprefixer": "^10.4.16",
|
|
19
20
|
"postcss": "^8.4.31",
|
|
@@ -21,6 +22,7 @@
|
|
|
21
22
|
"prettier-plugin-tailwindcss": "^0.5.6",
|
|
22
23
|
"react": "^18.2.0",
|
|
23
24
|
"rollup": "^3.29.4",
|
|
25
|
+
"rollup-plugin-copy": "^3.5.0",
|
|
24
26
|
"rollup-plugin-dts": "^6.0.2",
|
|
25
27
|
"rollup-plugin-image": "^1.0.2",
|
|
26
28
|
"tailwindcss": "^3.3.3",
|
|
@@ -38,7 +40,6 @@
|
|
|
38
40
|
"peerDependencies": {
|
|
39
41
|
"react": "^18.2.0",
|
|
40
42
|
"react-dom": "^18.2.0"
|
|
41
|
-
|
|
42
43
|
},
|
|
43
44
|
"types": "dist/index.d.ts",
|
|
44
45
|
"dependencies": {
|