acsi-core 0.1.2 → 0.1.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/components/CoreButton/index.d.ts +4 -1
- package/dist/components/CoreInput/index.d.ts +6 -0
- package/dist/components/CoreModal/index.d.ts +1 -0
- package/dist/components/CoreRange/index.d.ts +14 -0
- package/dist/components/CoreSelect/index.d.ts +6 -1
- package/dist/components/CoreTextArea/index.d.ts +13 -0
- package/dist/components/index.d.ts +2 -0
- package/dist/index.css +112 -60
- package/dist/index.d.ts +4 -4
- package/dist/index.js +332 -112
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +321 -105
- package/dist/index.modern.js.map +1 -1
- package/dist/redux/commons/action.d.ts +1 -0
- package/dist/utils/constants.d.ts +19 -0
- package/package.json +2 -1
|
@@ -2,9 +2,12 @@ import React from "react";
|
|
|
2
2
|
interface IProps {
|
|
3
3
|
type?: "primary" | "secondary" | "text";
|
|
4
4
|
children: string | JSX.Element;
|
|
5
|
-
onClick?:
|
|
5
|
+
onClick?: any;
|
|
6
6
|
icon?: JSX.Element | string;
|
|
7
7
|
disabled?: boolean;
|
|
8
|
+
background?: string;
|
|
9
|
+
color?: string;
|
|
10
|
+
htmlType?: "button" | "submit";
|
|
8
11
|
}
|
|
9
12
|
declare const CoreButton: (props: IProps) => React.JSX.Element;
|
|
10
13
|
export default CoreButton;
|
|
@@ -2,12 +2,18 @@ import React from "react";
|
|
|
2
2
|
interface IProps {
|
|
3
3
|
name: string;
|
|
4
4
|
value: string;
|
|
5
|
+
type?: "no-outline" | "outline";
|
|
5
6
|
onChange: (name: string, value: string) => void;
|
|
6
7
|
disabled?: boolean;
|
|
7
8
|
label?: string;
|
|
8
9
|
width?: number;
|
|
9
10
|
placeholder?: string;
|
|
10
11
|
error?: boolean;
|
|
12
|
+
errorMessage?: string;
|
|
13
|
+
fontSize?: string;
|
|
14
|
+
fontWeight?: string;
|
|
15
|
+
onKeyDown?: (e: any) => void;
|
|
16
|
+
ref?: any;
|
|
11
17
|
}
|
|
12
18
|
declare const CoreInput: (props: IProps) => React.JSX.Element;
|
|
13
19
|
export default CoreInput;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
interface IProps {
|
|
3
|
+
name: string;
|
|
4
|
+
value: number;
|
|
5
|
+
onChange: (name: string, value: number) => void;
|
|
6
|
+
disabled?: boolean;
|
|
7
|
+
label?: string;
|
|
8
|
+
width?: number;
|
|
9
|
+
min?: number;
|
|
10
|
+
max?: number;
|
|
11
|
+
step?: number;
|
|
12
|
+
}
|
|
13
|
+
declare const CoreRange: (props: IProps) => React.JSX.Element;
|
|
14
|
+
export default CoreRange;
|
|
@@ -6,13 +6,18 @@ interface IOprion {
|
|
|
6
6
|
interface IProps {
|
|
7
7
|
name: string;
|
|
8
8
|
options: IOprion[];
|
|
9
|
-
value: string | null;
|
|
9
|
+
value: string | null | string[];
|
|
10
10
|
onChange: (name: string, value: string) => void;
|
|
11
11
|
disabled?: boolean;
|
|
12
12
|
label?: string;
|
|
13
13
|
width?: number;
|
|
14
14
|
placeholder?: string;
|
|
15
15
|
error?: boolean;
|
|
16
|
+
errorMessage?: string;
|
|
17
|
+
type?: "outline" | "no-outline";
|
|
18
|
+
isMulti?: boolean;
|
|
19
|
+
closeMenuOnSelect?: boolean;
|
|
20
|
+
hideSelectedOptions?: boolean;
|
|
16
21
|
}
|
|
17
22
|
declare const CoreSelect: (props: IProps) => React.JSX.Element;
|
|
18
23
|
export default CoreSelect;
|
|
@@ -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
|
+
placeholder?: string;
|
|
7
|
+
label?: string;
|
|
8
|
+
cols?: number;
|
|
9
|
+
rows?: number;
|
|
10
|
+
width?: number;
|
|
11
|
+
}
|
|
12
|
+
declare const CoreTextArea: (props: IProps) => React.JSX.Element;
|
|
13
|
+
export default CoreTextArea;
|
|
@@ -5,3 +5,5 @@ export { default as CoreCheckbox } from "./CoreCheckbox";
|
|
|
5
5
|
export { default as CoreRadio } from "./CoreRadio";
|
|
6
6
|
export { default as CoreError } from "./CoreError";
|
|
7
7
|
export { default as CoreModal } from "./CoreModal";
|
|
8
|
+
export { default as CoreRange } from "./CoreRange";
|
|
9
|
+
export { default as CoreTextArea } from "./CoreTextArea";
|
package/dist/index.css
CHANGED
|
@@ -1,13 +1,7 @@
|
|
|
1
|
-
@import url("https://fonts.googleapis.com/css2?family=Nunito:wght@400;700&family=Nunito+Sans:wght@400;700&display=swap");
|
|
2
1
|
._1KLz9 {
|
|
3
|
-
margin: 40px
|
|
2
|
+
margin: 40px;
|
|
4
3
|
height: 90vh;
|
|
5
|
-
|
|
6
|
-
top: 0;
|
|
7
|
-
left: 0;
|
|
8
|
-
right: 0;
|
|
9
|
-
bottom: 0;
|
|
10
|
-
font-family: 'Nunito', sans-serif; }
|
|
4
|
+
font-family: "Nunito", sans-serif; }
|
|
11
5
|
._1KLz9 ._2Jo1o {
|
|
12
6
|
width: 324px;
|
|
13
7
|
text-align: center; }
|
|
@@ -27,7 +21,7 @@
|
|
|
27
21
|
padding: 12px;
|
|
28
22
|
border-radius: 12px;
|
|
29
23
|
border: none;
|
|
30
|
-
background-color: #
|
|
24
|
+
background-color: #ffce09;
|
|
31
25
|
font-size: 16px;
|
|
32
26
|
font-weight: 600;
|
|
33
27
|
color: #101129;
|
|
@@ -38,7 +32,7 @@
|
|
|
38
32
|
margin-bottom: 19px; }
|
|
39
33
|
._1KLz9 ._2Jo1o ._2e9xO {
|
|
40
34
|
font-size: 13px;
|
|
41
|
-
color: #
|
|
35
|
+
color: #c6c6cc;
|
|
42
36
|
height: 18px;
|
|
43
37
|
width: 100%;
|
|
44
38
|
position: relative;
|
|
@@ -48,11 +42,11 @@
|
|
|
48
42
|
gap: 8px; }
|
|
49
43
|
._1KLz9 ._2Jo1o ._2e9xO::before,
|
|
50
44
|
._1KLz9 ._2Jo1o ._2e9xO::after {
|
|
51
|
-
content:
|
|
45
|
+
content: "";
|
|
52
46
|
display: block;
|
|
53
47
|
width: 144px;
|
|
54
48
|
height: 1px;
|
|
55
|
-
background-color: #
|
|
49
|
+
background-color: #e6e6eb;
|
|
56
50
|
position: absolute;
|
|
57
51
|
top: 50%;
|
|
58
52
|
transform: translateY(-50%); }
|
|
@@ -65,14 +59,14 @@
|
|
|
65
59
|
._1KLz9 ._2Jo1o ._3zXRp input {
|
|
66
60
|
width: 100%;
|
|
67
61
|
outline: none;
|
|
68
|
-
border: 1px solid #
|
|
62
|
+
border: 1px solid #e6e6eb;
|
|
69
63
|
border-radius: 8px;
|
|
70
64
|
font-size: 14px;
|
|
71
|
-
color: #
|
|
65
|
+
color: #a6a6ad;
|
|
72
66
|
height: 48px;
|
|
73
67
|
padding: 15px 16px; }
|
|
74
68
|
._1KLz9 ._2Jo1o ._21FPk {
|
|
75
|
-
background-color: #
|
|
69
|
+
background-color: #e5f9ff;
|
|
76
70
|
font-size: 16px;
|
|
77
71
|
font-weight: 600;
|
|
78
72
|
border-radius: 12px;
|
|
@@ -100,17 +94,19 @@
|
|
|
100
94
|
text-align: center;
|
|
101
95
|
position: absolute;
|
|
102
96
|
top: 0;
|
|
103
|
-
left:
|
|
97
|
+
left: 30px; }
|
|
104
98
|
._1KLz9 ._3qndF {
|
|
105
99
|
border-radius: 40px;
|
|
106
|
-
background-repeat:
|
|
100
|
+
background-repeat: "no-repeat";
|
|
107
101
|
background-position: center;
|
|
108
102
|
background-size: cover;
|
|
109
103
|
position: relative;
|
|
110
104
|
height: 100%; }
|
|
111
105
|
._1KLz9 ._3qndF ._JzdCr {
|
|
112
|
-
padding
|
|
113
|
-
|
|
106
|
+
padding: 64px 56px; }
|
|
107
|
+
._1KLz9 ._3qndF ._JzdCr p, ._1KLz9 ._3qndF ._JzdCr li {
|
|
108
|
+
font-size: 14px;
|
|
109
|
+
font-weight: 400; }
|
|
114
110
|
._1KLz9 ._3qndF ._19aCA {
|
|
115
111
|
display: flex;
|
|
116
112
|
position: absolute;
|
|
@@ -119,29 +115,40 @@
|
|
|
119
115
|
justify-content: space-between;
|
|
120
116
|
align-items: center; }
|
|
121
117
|
|
|
118
|
+
._2HB5r {
|
|
119
|
+
padding-right: 30px !important; }
|
|
120
|
+
|
|
122
121
|
._xvNBN {
|
|
123
122
|
border-radius: 8px;
|
|
124
123
|
font-size: 14px;
|
|
125
124
|
border: none;
|
|
126
125
|
line-height: 18px;
|
|
127
126
|
font-weight: 600;
|
|
128
|
-
padding: 7px 12px;
|
|
127
|
+
padding: 7px 12px;
|
|
128
|
+
display: flex;
|
|
129
|
+
gap: 4px;
|
|
130
|
+
align-items: center;
|
|
131
|
+
transition: all 0.3s; }
|
|
129
132
|
._xvNBN:disabled {
|
|
130
133
|
pointer-events: none;
|
|
131
|
-
background-color: #
|
|
134
|
+
background-color: #f5f9fa;
|
|
132
135
|
color: #585869; }
|
|
136
|
+
._xvNBN:disabled path {
|
|
137
|
+
fill: #585869; }
|
|
133
138
|
|
|
134
139
|
._U9Qyp {
|
|
135
140
|
background-color: #025675;
|
|
136
|
-
color: #
|
|
141
|
+
color: #ffffff; }
|
|
142
|
+
._U9Qyp path {
|
|
143
|
+
fill: #ffffff; }
|
|
137
144
|
._U9Qyp:hover {
|
|
138
|
-
background-color: #
|
|
145
|
+
background-color: #007a99; }
|
|
139
146
|
|
|
140
147
|
._1VzMy {
|
|
141
|
-
background-color: #
|
|
148
|
+
background-color: #f5f9fa;
|
|
142
149
|
color: #101129; }
|
|
143
150
|
._1VzMy:hover {
|
|
144
|
-
background-color: #
|
|
151
|
+
background-color: #e6e6eb; }
|
|
145
152
|
|
|
146
153
|
._pZNuj {
|
|
147
154
|
background-color: transparent;
|
|
@@ -156,36 +163,60 @@
|
|
|
156
163
|
margin-bottom: 4px; }
|
|
157
164
|
._1WdX2 input {
|
|
158
165
|
border-radius: 8px;
|
|
159
|
-
border: 1px solid #
|
|
166
|
+
border: 1px solid #e6e6eb;
|
|
160
167
|
height: 32px;
|
|
161
168
|
font-size: 14px;
|
|
162
169
|
font-weight: 400;
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
170
|
+
color: #212126; }
|
|
171
|
+
|
|
172
|
+
._3X2RJ input {
|
|
173
|
+
padding: 7px 12px; }
|
|
174
|
+
._3X2RJ input:disabled {
|
|
175
|
+
pointer-events: none;
|
|
176
|
+
background-color: #f5f9fa; }
|
|
177
|
+
._3X2RJ input:focus-visible {
|
|
178
|
+
border: 2px solid #00afda;
|
|
179
|
+
outline: none; }
|
|
180
|
+
._3X2RJ input::-moz-placeholder {
|
|
181
|
+
color: #a6a6ad; }
|
|
182
|
+
._3X2RJ input::placeholder {
|
|
183
|
+
color: #a6a6ad; }
|
|
184
|
+
._3X2RJ input:hover {
|
|
185
|
+
background-color: #e5f9ff; }
|
|
186
|
+
|
|
187
|
+
._bVYtv input {
|
|
188
|
+
border: none;
|
|
189
|
+
outline: none; }
|
|
190
|
+
._bVYtv input::-moz-placeholder {
|
|
191
|
+
color: #a6a6ad; }
|
|
192
|
+
._bVYtv input::placeholder {
|
|
193
|
+
color: #a6a6ad; }
|
|
176
194
|
|
|
177
195
|
._n7n3Q input {
|
|
178
|
-
border-color: #
|
|
196
|
+
border-color: #ce3636; }
|
|
179
197
|
._n7n3Q input:focus-visible {
|
|
180
|
-
border-color: #
|
|
198
|
+
border-color: #ce3636; }
|
|
199
|
+
|
|
200
|
+
._1Mmxr {
|
|
201
|
+
display: flex;
|
|
202
|
+
color: #ce3636;
|
|
203
|
+
margin-top: 2px; }
|
|
204
|
+
._1Mmxr p {
|
|
205
|
+
font-size: 13px;
|
|
206
|
+
font-weight: 400;
|
|
207
|
+
margin: 0; }
|
|
181
208
|
|
|
182
209
|
._2sg12 {
|
|
183
210
|
display: flex;
|
|
184
211
|
flex-direction: column; }
|
|
185
|
-
._2sg12
|
|
212
|
+
._2sg12 ._1-XBo {
|
|
186
213
|
font-size: 13px;
|
|
187
214
|
font-weight: 600;
|
|
188
215
|
margin-bottom: 4px; }
|
|
216
|
+
._2sg12 label {
|
|
217
|
+
font-weight: 400 !important;
|
|
218
|
+
color: #212126 !important;
|
|
219
|
+
margin-top: 2px; }
|
|
189
220
|
|
|
190
221
|
._3HY4f {
|
|
191
222
|
display: inline-flex;
|
|
@@ -197,16 +228,17 @@
|
|
|
197
228
|
width: 16px;
|
|
198
229
|
height: 16px;
|
|
199
230
|
border-radius: 4px !important;
|
|
200
|
-
border: 1px solid #
|
|
231
|
+
border: 1px solid #a6a6ad;
|
|
232
|
+
transition: all 0.3s; }
|
|
201
233
|
._3HY4f input:focus {
|
|
202
234
|
box-shadow: none; }
|
|
203
235
|
._3HY4f input:checked {
|
|
204
|
-
background-color: #
|
|
205
|
-
border-color: #
|
|
236
|
+
background-color: #00afda;
|
|
237
|
+
border-color: #00afda; }
|
|
206
238
|
._3HY4f input:hover {
|
|
207
239
|
cursor: pointer; }
|
|
208
240
|
._3HY4f input:not(:checked):not(:disabled):hover {
|
|
209
|
-
background-color: #
|
|
241
|
+
background-color: #e6e6eb; }
|
|
210
242
|
|
|
211
243
|
._kvUpe {
|
|
212
244
|
display: inline-flex;
|
|
@@ -220,30 +252,50 @@
|
|
|
220
252
|
width: 16px;
|
|
221
253
|
height: 16px;
|
|
222
254
|
border-radius: 4px;
|
|
223
|
-
border: 1px solid #
|
|
255
|
+
border: 1px solid #a6a6ad;
|
|
256
|
+
transition: all .3s; }
|
|
224
257
|
._kvUpe input:focus {
|
|
225
258
|
box-shadow: none; }
|
|
226
259
|
._kvUpe input:checked {
|
|
227
|
-
background-color: #
|
|
228
|
-
border-color: #
|
|
260
|
+
background-color: #00afda;
|
|
261
|
+
border-color: #00afda;
|
|
229
262
|
background-image: none; }
|
|
230
263
|
._kvUpe input:hover {
|
|
231
264
|
cursor: pointer; }
|
|
232
265
|
._kvUpe input:not(:checked):not(:disabled):hover {
|
|
233
|
-
background-color: #
|
|
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; }
|
|
266
|
+
background-color: #e6e6eb; }
|
|
244
267
|
|
|
245
268
|
._2y5ln {
|
|
246
269
|
padding: 16px 24px !important; }
|
|
247
270
|
._2y5ln h5 {
|
|
248
271
|
font-size: 18px;
|
|
249
272
|
font-weight: 700; }
|
|
273
|
+
|
|
274
|
+
._1dzD7 {
|
|
275
|
+
display: flex;
|
|
276
|
+
flex-direction: column; }
|
|
277
|
+
._1dzD7 label {
|
|
278
|
+
font-size: 13px;
|
|
279
|
+
font-weight: 600;
|
|
280
|
+
margin-bottom: 4px; }
|
|
281
|
+
|
|
282
|
+
._1b_C3 textarea {
|
|
283
|
+
width: 100%;
|
|
284
|
+
outline: none;
|
|
285
|
+
border-radius: 8px;
|
|
286
|
+
border: 1px solid #e6e6eb;
|
|
287
|
+
padding: 8px 12px;
|
|
288
|
+
font-size: 14px;
|
|
289
|
+
font-weight: 400;
|
|
290
|
+
color: #212126; }
|
|
291
|
+
._1b_C3 textarea:hover {
|
|
292
|
+
background-color: #e5f9ff; }
|
|
293
|
+
._1b_C3 textarea::-moz-placeholder {
|
|
294
|
+
color: #a6a6ad; }
|
|
295
|
+
._1b_C3 textarea::placeholder {
|
|
296
|
+
color: #a6a6ad; }
|
|
297
|
+
|
|
298
|
+
._1b_C3 label {
|
|
299
|
+
font-size: 13px;
|
|
300
|
+
font-weight: 600;
|
|
301
|
+
margin-bottom: 4px; }
|
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
declare const historyCore: import("history").History<unknown>;
|
|
2
|
-
import { setLoading, setAlert, setUser } from "./redux/commons/action";
|
|
3
|
-
import { BASE_URL, ACCESS_TOKEN } from "./utils/constants";
|
|
2
|
+
import { setLoading, setAlert, setUser, setMenuCollapse } from "./redux/commons/action";
|
|
3
|
+
import { BASE_URL, ACCESS_TOKEN, DATE_TIME_MIN_VALUE } from "./utils/constants";
|
|
4
4
|
import Login from "./containers/Login/views/Login";
|
|
5
5
|
import store from "./store";
|
|
6
6
|
import NotFound from "./components/Commons/NotFound";
|
|
@@ -13,10 +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
|
-
import { CoreButton, CoreInput, CoreSelect, CoreCheckbox, CoreRadio, CoreError, CoreModal } from "./components";
|
|
16
|
+
import { CoreButton, CoreInput, CoreSelect, CoreCheckbox, CoreRadio, CoreError, CoreModal, CoreRange, CoreTextArea } from "./components";
|
|
17
17
|
import { getErrorMessage } from "./utils/getErrorMessage";
|
|
18
18
|
import CustomSelect from "./components/Selects/CustomSelect";
|
|
19
19
|
import CustomAsyncSelect from "./components/Selects/CustomAsyncSelect";
|
|
20
20
|
import CustomCreatable from "./components/Selects/CustomCreatable";
|
|
21
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 };
|
|
22
|
+
export { setLoading, BASE_URL, ACCESS_TOKEN, DATE_TIME_MIN_VALUE, Login, store, historyCore, setAlert, setUser, setMenuCollapse, Loading, NotFound, LayoutContext, api, apiUpload, ConfirmDialog, CommonDialog, ToastContainer, toast, Role, CustomPagination, useGoogleSignOut, CoreButton, CoreInput, CoreSelect, CoreCheckbox, CoreRadio, CoreError, CoreModal, CoreRange, CoreTextArea, getErrorMessage, CustomSelect, CustomAsyncSelect, CustomCreatable, CustomSelectOption };
|