acsi-core 0.1.8 → 0.1.10

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.
@@ -14,6 +14,7 @@ interface IProps {
14
14
  fontWeight?: string;
15
15
  onKeyDown?: (e: any) => void;
16
16
  ref?: any;
17
+ maxLength?: number;
17
18
  }
18
19
  declare const CoreInput: (props: IProps) => React.JSX.Element;
19
20
  export default CoreInput;
@@ -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 CoreInputCompact: (props: IProps) => React.JSX.Element;
13
+ export default CoreInputCompact;
@@ -7,6 +7,7 @@ interface IProps {
7
7
  footer?: JSX.Element;
8
8
  handleSubmit?: any;
9
9
  onSubmit?: any;
10
+ bodyPadding?: string;
10
11
  }
11
12
  declare const CoreModal: (props: IProps) => React.JSX.Element;
12
13
  export default CoreModal;
@@ -0,0 +1,9 @@
1
+ import React from "react";
2
+ interface IProps {
3
+ name?: string;
4
+ value: string;
5
+ onChange: (name: string, value: string) => void;
6
+ width?: number;
7
+ }
8
+ declare const CoreSearch: (props: IProps) => React.JSX.Element;
9
+ export default CoreSearch;
@@ -0,0 +1,20 @@
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 | string[];
10
+ onChange: (name: string, value: string) => void;
11
+ disabled?: boolean;
12
+ label?: string;
13
+ width?: number;
14
+ placeholder?: string;
15
+ isMulti?: boolean;
16
+ isShowDropdown?: boolean;
17
+ error?: boolean;
18
+ }
19
+ declare const CoreSelectCompact: (props: IProps) => React.JSX.Element;
20
+ export default CoreSelectCompact;
@@ -8,6 +8,8 @@ interface IProps {
8
8
  cols?: number;
9
9
  rows?: number;
10
10
  width?: number;
11
+ tooltip?: string;
12
+ isOptional?: boolean;
11
13
  }
12
14
  declare const CoreTextArea: (props: IProps) => React.JSX.Element;
13
15
  export default CoreTextArea;
@@ -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
+ width?: number;
8
+ placeholder?: string;
9
+ error?: boolean;
10
+ size?: "h1" | "h2";
11
+ }
12
+ declare const CoreTitleInput: (props: IProps) => React.JSX.Element;
13
+ export default CoreTitleInput;
@@ -7,3 +7,7 @@ export { default as CoreError } from "./CoreError";
7
7
  export { default as CoreModal } from "./CoreModal";
8
8
  export { default as CoreRange } from "./CoreRange";
9
9
  export { default as CoreTextArea } from "./CoreTextArea";
10
+ export { default as CoreSearch } from "./CoreSearch";
11
+ export { default as CoreSelectCompact } from "./CoreSelectCompact";
12
+ export { default as CoreInputCompact } from "./CoreInputCompact";
13
+ export { default as CoreTitleInput } from "./CoreTitleInput";
package/dist/index.css CHANGED
@@ -104,7 +104,8 @@
104
104
  height: 100%; }
105
105
  ._1KLz9 ._3qndF ._JzdCr {
106
106
  padding: 64px 56px; }
107
- ._1KLz9 ._3qndF ._JzdCr p, ._1KLz9 ._3qndF ._JzdCr li {
107
+ ._1KLz9 ._3qndF ._JzdCr p,
108
+ ._1KLz9 ._3qndF ._JzdCr li {
108
109
  font-size: 14px;
109
110
  font-weight: 400; }
110
111
  ._1KLz9 ._3qndF ._19aCA {
@@ -271,9 +272,6 @@
271
272
  font-size: 18px;
272
273
  font-weight: 700; }
273
274
 
274
- ._2GdIt {
275
- padding: 16px 24px 40px 24px !important; }
276
-
277
275
  ._1dzD7 {
278
276
  display: flex;
279
277
  flex-direction: column; }
@@ -298,7 +296,113 @@
298
296
  ._1b_C3 textarea::placeholder {
299
297
  color: #a6a6ad; }
300
298
 
301
- ._1b_C3 label {
302
- font-size: 13px;
303
- font-weight: 600;
304
- margin-bottom: 4px; }
299
+ ._1b_C3 ._15n2K {
300
+ font-size: 14px;
301
+ font-weight: 400;
302
+ margin-bottom: 4px;
303
+ color: #585869;
304
+ display: flex;
305
+ align-items: center;
306
+ gap: 2px; }
307
+ ._1b_C3 ._15n2K ._1fHZB {
308
+ color: #a6a6ad; }
309
+ ._1b_C3 ._15n2K ._38AfS {
310
+ cursor: pointer; }
311
+
312
+ ._wyI1K {
313
+ height: 32px;
314
+ border: 1px solid #e6e6eb;
315
+ border-radius: 8px;
316
+ padding-inline: 12px;
317
+ display: flex;
318
+ align-items: center;
319
+ gap: 2px; }
320
+ ._wyI1K:focus-within {
321
+ border: 2px solid #00afda; }
322
+ ._wyI1K::-moz-placeholder {
323
+ color: #a6a6ad; }
324
+ ._wyI1K::placeholder {
325
+ color: #a6a6ad; }
326
+ ._wyI1K:hover {
327
+ background-color: #e5f9ff; }
328
+ ._wyI1K:hover ._9XW-D {
329
+ background-color: #e5f9ff; }
330
+ ._wyI1K ._9XW-D {
331
+ font-size: 14px;
332
+ font-weight: 400;
333
+ flex: 1;
334
+ height: 18px;
335
+ border: none;
336
+ outline: none;
337
+ min-width: 0; }
338
+ ._wyI1K ._1nhXy {
339
+ cursor: pointer; }
340
+
341
+ ._3ql5D label {
342
+ font-weight: 400 !important;
343
+ color: #212126 !important;
344
+ margin-top: 2px; }
345
+
346
+ ._3ql5D ._3fPQC {
347
+ display: flex;
348
+ align-items: center;
349
+ gap: 4px;
350
+ font-size: 14px;
351
+ font-weight: 400;
352
+ color: #585869;
353
+ padding: 4px; }
354
+
355
+ ._1qmXW {
356
+ display: flex;
357
+ flex-direction: column; }
358
+ ._1qmXW ._1argp {
359
+ display: flex;
360
+ align-items: center;
361
+ gap: 4px;
362
+ font-size: 14px;
363
+ font-weight: 400;
364
+ color: #585869;
365
+ padding: 4px; }
366
+ ._1qmXW input {
367
+ border: none;
368
+ outline: none;
369
+ border-radius: 6px;
370
+ height: 26px;
371
+ font-size: 14px;
372
+ font-weight: 400;
373
+ color: #212126; }
374
+ ._1qmXW input:hover {
375
+ background-color: #e5f9ff !important; }
376
+ ._1qmXW input::-moz-placeholder {
377
+ color: #a6a6ad; }
378
+ ._1qmXW input::placeholder {
379
+ color: #a6a6ad; }
380
+ ._1qmXW input:disabled {
381
+ pointer-events: none;
382
+ background-color: transparent;
383
+ color: #212126; }
384
+ ._1qmXW input:focus-visible {
385
+ box-shadow: 0px 6px 16px 0px rgba(0, 0, 0, 0.1); }
386
+
387
+ ._2YqZu {
388
+ display: flex;
389
+ flex-direction: column; }
390
+ ._2YqZu input {
391
+ border: none;
392
+ outline: none;
393
+ border-radius: 6px;
394
+ color: #212126; }
395
+ ._2YqZu input::-moz-placeholder {
396
+ color: #a6a6ad; }
397
+ ._2YqZu input::placeholder {
398
+ color: #a6a6ad; }
399
+
400
+ ._23-uu {
401
+ font-size: 24px;
402
+ font-weight: 700;
403
+ line-height: 32.74px; }
404
+
405
+ ._16lQL {
406
+ font-size: 18px;
407
+ font-weight: 700;
408
+ line-height: 24.55px; }
package/dist/index.d.ts CHANGED
@@ -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, CoreRange, CoreTextArea } from "./components";
16
+ import { CoreButton, CoreInput, CoreSelect, CoreCheckbox, CoreRadio, CoreError, CoreModal, CoreRange, CoreTextArea, CoreSearch, CoreSelectCompact, CoreInputCompact, CoreTitleInput } 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, 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 };
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, CoreSearch, CoreSelectCompact, CoreInputCompact, CoreTitleInput, getErrorMessage, CustomSelect, CustomAsyncSelect, CustomCreatable, CustomSelectOption };