acsi-core 0.1.9 → 0.1.11

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,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;
@@ -4,6 +4,7 @@ interface IProps {
4
4
  value: string;
5
5
  onChange: (name: string, value: string) => void;
6
6
  width?: number;
7
+ onPressEnter?: () => void;
7
8
  }
8
9
  declare const CoreSearch: (props: IProps) => React.JSX.Element;
9
10
  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;
@@ -8,3 +8,6 @@ export { default as CoreModal } from "./CoreModal";
8
8
  export { default as CoreRange } from "./CoreRange";
9
9
  export { default as CoreTextArea } from "./CoreTextArea";
10
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
@@ -296,10 +296,18 @@
296
296
  ._1b_C3 textarea::placeholder {
297
297
  color: #a6a6ad; }
298
298
 
299
- ._1b_C3 label {
300
- font-size: 13px;
301
- font-weight: 600;
302
- 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; }
303
311
 
304
312
  ._wyI1K {
305
313
  height: 32px;
@@ -329,3 +337,72 @@
329
337
  min-width: 0; }
330
338
  ._wyI1K ._1nhXy {
331
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, CoreSearch } 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, CoreSearch, 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 };