acsi-core 0.1.1 → 0.1.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.
@@ -0,0 +1,10 @@
1
+ import React from "react";
2
+ interface IProps {
3
+ type?: "primary" | "secondary" | "text";
4
+ children: string | JSX.Element;
5
+ onClick?: () => void;
6
+ icon?: JSX.Element | string;
7
+ disabled?: boolean;
8
+ }
9
+ declare const CoreButton: (props: IProps) => React.JSX.Element;
10
+ export default CoreButton;
@@ -0,0 +1,10 @@
1
+ import React from "react";
2
+ interface IProps {
3
+ name: string;
4
+ checked: boolean;
5
+ onChange: (name: string, checked: boolean) => void;
6
+ disabled?: boolean;
7
+ label?: string;
8
+ }
9
+ declare const CoreInput: (props: IProps) => React.JSX.Element;
10
+ export default CoreInput;
@@ -0,0 +1,6 @@
1
+ import React from "react";
2
+ interface IProps {
3
+ message: string;
4
+ }
5
+ declare const CoreError: (props: IProps) => React.JSX.Element;
6
+ export default CoreError;
@@ -0,0 +1,13 @@
1
+ import React from "react";
2
+ interface IProps {
3
+ name: string;
4
+ value: string;
5
+ onChange: (name: string, value: string) => void;
6
+ disabled?: boolean;
7
+ label?: string;
8
+ width?: number;
9
+ placeholder?: string;
10
+ error?: boolean;
11
+ }
12
+ declare const CoreInput: (props: IProps) => React.JSX.Element;
13
+ export default CoreInput;
@@ -0,0 +1,9 @@
1
+ import React from "react";
2
+ interface IProps {
3
+ open: boolean;
4
+ onClose: () => void;
5
+ children: JSX.Element;
6
+ title: string;
7
+ }
8
+ declare const CoreModal: (props: IProps) => React.JSX.Element;
9
+ export default CoreModal;
@@ -0,0 +1,14 @@
1
+ import React from "react";
2
+ interface IOption {
3
+ label: string;
4
+ value: string;
5
+ }
6
+ interface IProps {
7
+ name: string;
8
+ value: string;
9
+ options: IOption[];
10
+ onChange: (name: string, value: string) => void;
11
+ disabled?: boolean;
12
+ }
13
+ declare const CoreRadio: (props: IProps) => React.JSX.Element;
14
+ export default CoreRadio;
@@ -0,0 +1,18 @@
1
+ import React from "react";
2
+ interface IOprion {
3
+ label: string;
4
+ value: string;
5
+ }
6
+ interface IProps {
7
+ name: string;
8
+ options: IOprion[];
9
+ value: string | null;
10
+ onChange: (name: string, value: string) => void;
11
+ disabled?: boolean;
12
+ label?: string;
13
+ width?: number;
14
+ placeholder?: string;
15
+ error?: boolean;
16
+ }
17
+ declare const CoreSelect: (props: IProps) => React.JSX.Element;
18
+ export default CoreSelect;
@@ -0,0 +1,3 @@
1
+ import React from "react";
2
+ declare const CustomAsyncSelect: ({ isDefault, defaultValue, options, isDisabled, scrollBottom, value, isMulti, ...rest }: any) => React.JSX.Element;
3
+ export default CustomAsyncSelect;
@@ -0,0 +1,3 @@
1
+ import React from "react";
2
+ declare const CustomCreatable: ({ defaultValue, options, isDisabled, scrollBottom, value, isMulti, ...rest }: any) => React.JSX.Element;
3
+ export default CustomCreatable;
@@ -0,0 +1,3 @@
1
+ import React from "react";
2
+ declare const CustomSelect: ({ isDefault, defaultValue, options, isDisabled, scrollBottom, value, isMulti, ...rest }: any) => React.JSX.Element;
3
+ export default CustomSelect;
@@ -0,0 +1,3 @@
1
+ import React from "react";
2
+ declare const CustomSelectOption: ({ defaultValue, options, isDisabled, scrollBottom, value, isMulti, ...rest }: any) => React.JSX.Element;
3
+ export default CustomSelectOption;
@@ -0,0 +1,4 @@
1
+ import React from "react";
2
+ import { DropdownIndicatorProps } from 'react-select';
3
+ export declare const DropdownIndicator: (props: DropdownIndicatorProps) => React.JSX.Element;
4
+ export declare const CustomOption: (props: any) => React.JSX.Element;
@@ -0,0 +1,6 @@
1
+ export declare const customStyles: {
2
+ control: (baseStyles: any, state: any) => any;
3
+ input: (baseStyles: any, _: any) => any;
4
+ singleValue: (baseStyles: any) => any;
5
+ option: (baseStyles: any, state: any) => any;
6
+ };
@@ -0,0 +1,7 @@
1
+ export { default as CoreButton } from "./CoreButton";
2
+ export { default as CoreInput } from "./CoreInput";
3
+ export { default as CoreSelect } from "./CoreSelect";
4
+ export { default as CoreCheckbox } from "./CoreCheckbox";
5
+ export { default as CoreRadio } from "./CoreRadio";
6
+ export { default as CoreError } from "./CoreError";
7
+ export { default as CoreModal } from "./CoreModal";
@@ -0,0 +1 @@
1
+ export declare const itemLogin: string[];
package/dist/index.css CHANGED
@@ -1,36 +1,249 @@
1
- ._18HOc ._397BX {
2
- border: 0;
3
- background: transparent;
4
- margin-left: 1.5rem;
5
- background-color: #02b1e1 !important;
6
- color: white;
7
- font-family: "Roboto Slab", serif;
8
- padding: 0.3rem 1rem;
9
- border-radius: 8px;
10
- margin-top: 1rem; }
11
- ._18HOc ._397BX img {
12
- height: 0.9rem;
13
- margin-right: 0.3rem; }
14
-
15
- ._18HOc ._2ZRO9 {
16
- width: 760px;
17
- box-shadow: 0px 1px 8px rgba(0, 0, 0, 0.25098);
18
- border-radius: 10px; }
19
- ._18HOc ._2ZRO9 ._ii7EY {
20
- background-color: #00b1e1;
21
- color: white;
1
+ @import url("https://fonts.googleapis.com/css2?family=Nunito:wght@400;700&family=Nunito+Sans:wght@400;700&display=swap");
2
+ ._1KLz9 {
3
+ margin: 40px 40px 0 40px;
4
+ height: 90vh;
5
+ position: fixed;
6
+ top: 0;
7
+ left: 0;
8
+ right: 0;
9
+ bottom: 0;
10
+ font-family: 'Nunito', sans-serif; }
11
+ ._1KLz9 ._2Jo1o {
12
+ width: 324px;
13
+ text-align: center; }
14
+ ._1KLz9 ._2Jo1o ._3egBO {
15
+ margin-bottom: 8px; }
16
+ ._1KLz9 ._2Jo1o ._3egBO span {
17
+ font-weight: 700;
18
+ font-size: 2rem; }
19
+ ._1KLz9 ._2Jo1o ._1DoIT {
20
+ font-weight: 400;
21
+ font-size: 1rem;
22
+ line-height: 21.82px;
23
+ color: #585869;
24
+ margin-bottom: 40px; }
25
+ ._1KLz9 ._2Jo1o ._34hK_ button {
26
+ width: 100%;
27
+ padding: 12px;
28
+ border-radius: 12px;
29
+ border: none;
30
+ background-color: #FFCE09;
31
+ font-size: 16px;
32
+ font-weight: 600;
33
+ color: #101129;
34
+ display: flex;
35
+ align-items: center;
36
+ justify-content: center;
37
+ gap: 8px;
38
+ margin-bottom: 19px; }
39
+ ._1KLz9 ._2Jo1o ._2e9xO {
40
+ font-size: 13px;
41
+ color: #C6C6CC;
42
+ height: 18px;
43
+ width: 100%;
44
+ position: relative;
45
+ display: flex;
46
+ align-items: center;
47
+ justify-content: center;
48
+ gap: 8px; }
49
+ ._1KLz9 ._2Jo1o ._2e9xO::before,
50
+ ._1KLz9 ._2Jo1o ._2e9xO::after {
51
+ content: '';
52
+ display: block;
53
+ width: 144px;
54
+ height: 1px;
55
+ background-color: #E6E6EB;
56
+ position: absolute;
57
+ top: 50%;
58
+ transform: translateY(-50%); }
59
+ ._1KLz9 ._2Jo1o ._2e9xO::before {
60
+ left: 0; }
61
+ ._1KLz9 ._2Jo1o ._2e9xO::after {
62
+ right: 0; }
63
+ ._1KLz9 ._2Jo1o ._3zXRp {
64
+ margin-top: 17px; }
65
+ ._1KLz9 ._2Jo1o ._3zXRp input {
66
+ width: 100%;
67
+ outline: none;
68
+ border: 1px solid #E6E6EB;
69
+ border-radius: 8px;
70
+ font-size: 14px;
71
+ color: #A6A6AD;
72
+ height: 48px;
73
+ padding: 15px 16px; }
74
+ ._1KLz9 ._2Jo1o ._21FPk {
75
+ background-color: #E5F9FF;
76
+ font-size: 16px;
77
+ font-weight: 600;
78
+ border-radius: 12px;
79
+ border: none;
80
+ width: 100%;
81
+ padding: 14px 24px;
82
+ margin-top: 12px;
83
+ display: flex;
84
+ align-items: center;
85
+ justify-content: center;
86
+ gap: 8px; }
87
+ ._1KLz9 ._1QERu {
88
+ display: flex;
89
+ justify-content: center;
90
+ align-items: center;
91
+ position: relative;
92
+ height: 100%;
93
+ flex-direction: column;
94
+ width: 100%; }
95
+ ._1KLz9 ._2-znH {
96
+ text-align: center;
97
+ position: absolute;
98
+ bottom: 0; }
99
+ ._1KLz9 ._1aB2m {
22
100
  text-align: center;
23
- font-family: "Roboto Slab", serif;
24
- font-size: 1.8rem;
25
- padding: 1.4rem 1rem;
26
- border-top-left-radius: 10px;
27
- border-top-right-radius: 10px; }
28
- ._18HOc ._2ZRO9 ._LLdCT button {
29
- box-shadow: 0px 1px 8px #00000040;
30
- font-size: 1.2rem;
31
- margin-bottom: 0.6rem;
32
- color: white;
101
+ position: absolute;
102
+ top: 0;
103
+ left: 0; }
104
+ ._1KLz9 ._3qndF {
105
+ border-radius: 40px;
106
+ background-repeat: 'no-repeat';
107
+ background-position: center;
108
+ background-size: cover;
109
+ position: relative;
110
+ height: 100%; }
111
+ ._1KLz9 ._3qndF ._JzdCr {
112
+ padding-top: 64px;
113
+ padding-left: 56px; }
114
+ ._1KLz9 ._3qndF ._19aCA {
115
+ display: flex;
116
+ position: absolute;
117
+ bottom: 0;
118
+ left: 37px;
119
+ justify-content: space-between;
120
+ align-items: center; }
121
+
122
+ ._xvNBN {
123
+ border-radius: 8px;
124
+ font-size: 14px;
125
+ border: none;
126
+ line-height: 18px;
127
+ font-weight: 600;
128
+ padding: 7px 12px; }
129
+ ._xvNBN:disabled {
130
+ pointer-events: none;
131
+ background-color: #F5F9FA;
132
+ color: #585869; }
133
+
134
+ ._U9Qyp {
135
+ background-color: #025675;
136
+ color: #FFFFFF; }
137
+ ._U9Qyp:hover {
138
+ background-color: #007A99; }
139
+
140
+ ._1VzMy {
141
+ background-color: #A6A6AD;
142
+ color: #101129; }
143
+ ._1VzMy:hover {
144
+ background-color: #E6E6EB; }
145
+
146
+ ._pZNuj {
147
+ background-color: transparent;
148
+ color: #101129; }
149
+
150
+ ._1WdX2 {
151
+ display: flex;
152
+ flex-direction: column; }
153
+ ._1WdX2 label {
154
+ font-size: 13px;
155
+ font-weight: 600;
156
+ margin-bottom: 4px; }
157
+ ._1WdX2 input {
33
158
  border-radius: 8px;
34
- border: 0px;
35
- padding-bottom: 0.4rem;
36
- padding-top: 0.4rem; }
159
+ border: 1px solid #E6E6EB;
160
+ height: 32px;
161
+ font-size: 14px;
162
+ font-weight: 400;
163
+ padding: 7px 12px; }
164
+ ._1WdX2 input:disabled {
165
+ pointer-events: none;
166
+ background-color: #F5F9FA; }
167
+ ._1WdX2 input:focus-visible {
168
+ border: 2px solid #00AFDA;
169
+ outline: none; }
170
+ ._1WdX2 input::-moz-placeholder {
171
+ color: #A6A6AD; }
172
+ ._1WdX2 input::placeholder {
173
+ color: #A6A6AD; }
174
+ ._1WdX2 input:hover {
175
+ background-color: #F5F9FA; }
176
+
177
+ ._n7n3Q input {
178
+ border-color: #CE3636; }
179
+ ._n7n3Q input:focus-visible {
180
+ border-color: #CE3636; }
181
+
182
+ ._2sg12 {
183
+ display: flex;
184
+ flex-direction: column; }
185
+ ._2sg12 label {
186
+ font-size: 13px;
187
+ font-weight: 600;
188
+ margin-bottom: 4px; }
189
+
190
+ ._3HY4f {
191
+ display: inline-flex;
192
+ align-items: center; }
193
+ ._3HY4f label {
194
+ font-size: 14px;
195
+ font-weight: 600; }
196
+ ._3HY4f input {
197
+ width: 16px;
198
+ height: 16px;
199
+ border-radius: 4px !important;
200
+ border: 1px solid #A6A6AD; }
201
+ ._3HY4f input:focus {
202
+ box-shadow: none; }
203
+ ._3HY4f input:checked {
204
+ background-color: #00AFDA;
205
+ border-color: #00AFDA; }
206
+ ._3HY4f input:hover {
207
+ cursor: pointer; }
208
+ ._3HY4f input:not(:checked):not(:disabled):hover {
209
+ background-color: #E6E6EB; }
210
+
211
+ ._kvUpe {
212
+ display: inline-flex;
213
+ align-items: center; }
214
+ ._kvUpe ._3ToPe {
215
+ display: flex; }
216
+ ._kvUpe label {
217
+ font-size: 14px;
218
+ font-weight: 600; }
219
+ ._kvUpe input {
220
+ width: 16px;
221
+ height: 16px;
222
+ border-radius: 4px;
223
+ border: 1px solid #A6A6AD; }
224
+ ._kvUpe input:focus {
225
+ box-shadow: none; }
226
+ ._kvUpe input:checked {
227
+ background-color: #00AFDA;
228
+ border-color: #00AFDA;
229
+ background-image: none; }
230
+ ._kvUpe input:hover {
231
+ cursor: pointer; }
232
+ ._kvUpe input:not(:checked):not(:disabled):hover {
233
+ background-color: #E6E6EB; }
234
+
235
+ ._1Mmxr {
236
+ display: flex;
237
+ color: #CE3636;
238
+ margin-top: 2px; }
239
+ ._1Mmxr p {
240
+ font-size: 13px;
241
+ font-weight: 400;
242
+ margin: 0;
243
+ margin-left: 4px; }
244
+
245
+ ._2y5ln {
246
+ padding: 16px 24px !important; }
247
+ ._2y5ln h5 {
248
+ font-size: 18px;
249
+ font-weight: 700; }
package/dist/index.d.ts CHANGED
@@ -13,4 +13,10 @@ import { ToastContainer, toast } from "react-toastify";
13
13
  import { Role } from "./containers/Login/configs/constants";
14
14
  import CustomPagination from "./components/Paginations/CustomPagination";
15
15
  import useGoogleSignOut from "./utils/hooks/useGoogleSignOut";
16
- export { setLoading, BASE_URL, ACCESS_TOKEN, Login, store, historyCore, setAlert, setUser, Loading, NotFound, LayoutContext, api, apiUpload, ConfirmDialog, CommonDialog, ToastContainer, toast, Role, CustomPagination, useGoogleSignOut };
16
+ import { CoreButton, CoreInput, CoreSelect, CoreCheckbox, CoreRadio, CoreError, CoreModal } from "./components";
17
+ import { getErrorMessage } from "./utils/getErrorMessage";
18
+ import CustomSelect from "./components/Selects/CustomSelect";
19
+ import CustomAsyncSelect from "./components/Selects/CustomAsyncSelect";
20
+ import CustomCreatable from "./components/Selects/CustomCreatable";
21
+ import CustomSelectOption from "./components/Selects/CustomSelectOption";
22
+ export { setLoading, BASE_URL, ACCESS_TOKEN, Login, store, historyCore, setAlert, setUser, Loading, NotFound, LayoutContext, api, apiUpload, ConfirmDialog, CommonDialog, ToastContainer, toast, Role, CustomPagination, useGoogleSignOut, CoreButton, CoreInput, CoreSelect, CoreCheckbox, CoreRadio, CoreError, CoreModal, getErrorMessage, CustomSelect, CustomAsyncSelect, CustomCreatable, CustomSelectOption };