acsi-core 0.1.3 → 0.1.5

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.
@@ -7,6 +7,7 @@ interface IProps {
7
7
  disabled?: boolean;
8
8
  background?: string;
9
9
  color?: string;
10
+ htmlType?: "button" | "submit";
10
11
  }
11
12
  declare const CoreButton: (props: IProps) => React.JSX.Element;
12
13
  export default CoreButton;
@@ -6,7 +6,7 @@ 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;
@@ -14,6 +14,10 @@ interface IProps {
14
14
  placeholder?: string;
15
15
  error?: boolean;
16
16
  errorMessage?: string;
17
+ type?: "outline" | "no-outline";
18
+ isMulti?: boolean;
19
+ closeMenuOnSelect?: boolean;
20
+ hideSelectedOptions?: boolean;
17
21
  }
18
22
  declare const CoreSelect: (props: IProps) => React.JSX.Element;
19
23
  export default CoreSelect;
package/dist/index.css CHANGED
@@ -1,11 +1,6 @@
1
1
  ._1KLz9 {
2
2
  margin: 40px;
3
3
  height: 90vh;
4
- position: fixed;
5
- top: 0;
6
- left: 0;
7
- right: 0;
8
- bottom: 0;
9
4
  font-family: "Nunito", sans-serif; }
10
5
  ._1KLz9 ._2Jo1o {
11
6
  width: 324px;
@@ -26,7 +21,7 @@
26
21
  padding: 12px;
27
22
  border-radius: 12px;
28
23
  border: none;
29
- background-color: #FFCE09;
24
+ background-color: #ffce09;
30
25
  font-size: 16px;
31
26
  font-weight: 600;
32
27
  color: #101129;
@@ -51,7 +46,7 @@
51
46
  display: block;
52
47
  width: 144px;
53
48
  height: 1px;
54
- background-color: #E6E6EB;
49
+ background-color: #e6e6eb;
55
50
  position: absolute;
56
51
  top: 50%;
57
52
  transform: translateY(-50%); }
@@ -64,10 +59,10 @@
64
59
  ._1KLz9 ._2Jo1o ._3zXRp input {
65
60
  width: 100%;
66
61
  outline: none;
67
- border: 1px solid #E6E6EB;
62
+ border: 1px solid #e6e6eb;
68
63
  border-radius: 8px;
69
64
  font-size: 14px;
70
- color: #A6A6AD;
65
+ color: #a6a6ad;
71
66
  height: 48px;
72
67
  padding: 15px 16px; }
73
68
  ._1KLz9 ._2Jo1o ._21FPk {
@@ -99,7 +94,7 @@
99
94
  text-align: center;
100
95
  position: absolute;
101
96
  top: 0;
102
- left: 0; }
97
+ left: 30px; }
103
98
  ._1KLz9 ._3qndF {
104
99
  border-radius: 40px;
105
100
  background-repeat: "no-repeat";
@@ -108,11 +103,10 @@
108
103
  position: relative;
109
104
  height: 100%; }
110
105
  ._1KLz9 ._3qndF ._JzdCr {
111
- padding-top: 64px;
112
- padding-left: 56px; }
113
- @media (min-width: 1024px) {
114
- ._1KLz9 ._3qndF ._JzdCr {
115
- padding-right: 21px; } }
106
+ padding: 64px 56px; }
107
+ ._1KLz9 ._3qndF ._JzdCr p, ._1KLz9 ._3qndF ._JzdCr li {
108
+ font-size: 14px;
109
+ font-weight: 400; }
116
110
  ._1KLz9 ._3qndF ._19aCA {
117
111
  display: flex;
118
112
  position: absolute;
@@ -121,6 +115,9 @@
121
115
  justify-content: space-between;
122
116
  align-items: center; }
123
117
 
118
+ ._2HB5r {
119
+ padding-right: 30px !important; }
120
+
124
121
  ._xvNBN {
125
122
  border-radius: 8px;
126
123
  font-size: 14px;
@@ -129,28 +126,29 @@
129
126
  font-weight: 600;
130
127
  padding: 7px 12px;
131
128
  display: flex;
129
+ gap: 4px;
132
130
  align-items: center;
133
- transition: all .3s; }
134
- ._xvNBN svg {
135
- margin-right: 4px; }
131
+ transition: all 0.3s; }
136
132
  ._xvNBN:disabled {
137
- pointer-events: none; }
133
+ pointer-events: none;
134
+ background-color: #f5f9fa;
135
+ color: #585869; }
138
136
  ._xvNBN:disabled path {
139
137
  fill: #585869; }
140
138
 
141
139
  ._U9Qyp {
142
140
  background-color: #025675;
143
- color: #FFFFFF; }
141
+ color: #ffffff; }
144
142
  ._U9Qyp path {
145
- fill: #FFFFFF; }
143
+ fill: #ffffff; }
146
144
  ._U9Qyp:hover {
147
- background-color: #007A99; }
145
+ background-color: #007a99; }
148
146
 
149
147
  ._1VzMy {
150
- background-color: #F5F9FA;
148
+ background-color: #f5f9fa;
151
149
  color: #101129; }
152
150
  ._1VzMy:hover {
153
- background-color: #E6E6EB; }
151
+ background-color: #e6e6eb; }
154
152
 
155
153
  ._pZNuj {
156
154
  background-color: transparent;
@@ -163,58 +161,62 @@
163
161
  font-size: 13px;
164
162
  font-weight: 600;
165
163
  margin-bottom: 4px; }
164
+ ._1WdX2 input {
165
+ border-radius: 8px;
166
+ border: 1px solid #e6e6eb;
167
+ height: 32px;
168
+ font-size: 14px;
169
+ font-weight: 400;
170
+ color: #212126; }
166
171
 
167
172
  ._3X2RJ input {
168
- border-radius: 8px;
169
- border: 1px solid #E6E6EB;
170
- height: 32px;
171
- font-size: 14px;
172
- font-weight: 400;
173
173
  padding: 7px 12px; }
174
174
  ._3X2RJ input:disabled {
175
175
  pointer-events: none;
176
- background-color: #F5F9FA; }
176
+ background-color: #f5f9fa; }
177
177
  ._3X2RJ input:focus-visible {
178
- border: 2px solid #00AFDA;
178
+ border: 2px solid #00afda;
179
179
  outline: none; }
180
180
  ._3X2RJ input::-moz-placeholder {
181
- color: #A6A6AD; }
181
+ color: #a6a6ad; }
182
182
  ._3X2RJ input::placeholder {
183
- color: #A6A6AD; }
183
+ color: #a6a6ad; }
184
184
  ._3X2RJ input:hover {
185
- background-color: #F5F9FA; }
185
+ background-color: #e5f9ff; }
186
186
 
187
187
  ._bVYtv input {
188
188
  border: none;
189
- outline: none;
190
- color: #A6A6AD; }
189
+ outline: none; }
191
190
  ._bVYtv input::-moz-placeholder {
192
- color: #A6A6AD; }
191
+ color: #a6a6ad; }
193
192
  ._bVYtv input::placeholder {
194
- color: #A6A6AD; }
193
+ color: #a6a6ad; }
195
194
 
196
195
  ._n7n3Q input {
197
- border-color: #CE3636; }
196
+ border-color: #ce3636; }
198
197
  ._n7n3Q input:focus-visible {
199
- border-color: #CE3636; }
198
+ border-color: #ce3636; }
200
199
 
201
200
  ._1Mmxr {
202
201
  display: flex;
203
- color: #CE3636;
202
+ color: #ce3636;
204
203
  margin-top: 2px; }
205
204
  ._1Mmxr p {
206
205
  font-size: 13px;
207
206
  font-weight: 400;
208
- margin: 0;
209
- margin-left: 4px; }
207
+ margin: 0; }
210
208
 
211
209
  ._2sg12 {
212
210
  display: flex;
213
211
  flex-direction: column; }
214
- ._2sg12 label {
212
+ ._2sg12 ._1-XBo {
215
213
  font-size: 13px;
216
214
  font-weight: 600;
217
215
  margin-bottom: 4px; }
216
+ ._2sg12 label {
217
+ font-weight: 400 !important;
218
+ color: #212126 !important;
219
+ margin-top: 2px; }
218
220
 
219
221
  ._3HY4f {
220
222
  display: inline-flex;
@@ -226,17 +228,17 @@
226
228
  width: 16px;
227
229
  height: 16px;
228
230
  border-radius: 4px !important;
229
- border: 1px solid #A6A6AD;
230
- transition: all .3s; }
231
+ border: 1px solid #a6a6ad;
232
+ transition: all 0.3s; }
231
233
  ._3HY4f input:focus {
232
234
  box-shadow: none; }
233
235
  ._3HY4f input:checked {
234
- background-color: #00AFDA;
235
- border-color: #00AFDA; }
236
+ background-color: #00afda;
237
+ border-color: #00afda; }
236
238
  ._3HY4f input:hover {
237
239
  cursor: pointer; }
238
240
  ._3HY4f input:not(:checked):not(:disabled):hover {
239
- background-color: #E6E6EB; }
241
+ background-color: #e6e6eb; }
240
242
 
241
243
  ._kvUpe {
242
244
  display: inline-flex;
@@ -250,18 +252,18 @@
250
252
  width: 16px;
251
253
  height: 16px;
252
254
  border-radius: 4px;
253
- border: 1px solid #A6A6AD;
255
+ border: 1px solid #a6a6ad;
254
256
  transition: all .3s; }
255
257
  ._kvUpe input:focus {
256
258
  box-shadow: none; }
257
259
  ._kvUpe input:checked {
258
- background-color: #00AFDA;
259
- border-color: #00AFDA;
260
+ background-color: #00afda;
261
+ border-color: #00afda;
260
262
  background-image: none; }
261
263
  ._kvUpe input:hover {
262
264
  cursor: pointer; }
263
265
  ._kvUpe input:not(:checked):not(:disabled):hover {
264
- background-color: #E6E6EB; }
266
+ background-color: #e6e6eb; }
265
267
 
266
268
  ._2y5ln {
267
269
  padding: 16px 24px !important; }
@@ -278,11 +280,22 @@
278
280
  margin-bottom: 4px; }
279
281
 
280
282
  ._1b_C3 textarea {
281
- border: none;
283
+ width: 100%;
282
284
  outline: none;
283
285
  border-radius: 8px;
284
- border: 1px solid #E6E6EB;
286
+ border: 1px solid #e6e6eb;
285
287
  padding: 8px 12px;
286
- color: #a6a6ad;
287
288
  font-size: 14px;
288
- font-weight: 400; }
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
2
  import { setLoading, setAlert, setUser, setMenuCollapse } from "./redux/commons/action";
3
- import { BASE_URL, ACCESS_TOKEN } from "./utils/constants";
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";
@@ -19,4 +19,4 @@ 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, 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 };
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 };