1mpacto-react-ui 0.2.0-beta.14 → 0.2.0-beta.16

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.
@@ -1,7 +1,7 @@
1
1
  declare const _default: {
2
2
  "name": "1mpacto-react-ui",
3
3
  "private": false,
4
- "version": "0.2.0-beta.14",
4
+ "version": "0.2.0-beta.16",
5
5
  "type": "module",
6
6
  "engines": {
7
7
  "node": ">=20.19.4",
@@ -1,3 +1,3 @@
1
1
  import { IPaginationProps } from '../../interfaces/components/Pagination';
2
- declare const Pagination: ({ totalData, totalPage, pageNumber, pageSize, className, id, kind, prevIcon, nextIcon, onChange, optionPageSize, offset, zIndex, withGotoPage, withMorePage, withOptionPageSize, }: IPaginationProps) => import("react/jsx-runtime").JSX.Element;
2
+ declare const Pagination: ({ totalData, totalPage, pageNumber, pageSize, className, id, kind, prevIcon, nextIcon, onChange, optionPageSize, offset, zIndex, withGotoPage, withMorePage, withOptionPageSize, locale, }: IPaginationProps) => import("react/jsx-runtime").JSX.Element;
3
3
  export default Pagination;
@@ -1,7 +1,7 @@
1
1
  import { StoryObj } from '@storybook/react-vite';
2
2
  declare const meta: {
3
3
  title: string;
4
- component: ({ totalData, totalPage, pageNumber, pageSize, className, id, kind, prevIcon, nextIcon, onChange, optionPageSize, offset, zIndex, withGotoPage, withMorePage, withOptionPageSize, }: import('../../interfaces/components/Pagination').IPaginationProps) => import("react/jsx-runtime").JSX.Element;
4
+ component: ({ totalData, totalPage, pageNumber, pageSize, className, id, kind, prevIcon, nextIcon, onChange, optionPageSize, offset, zIndex, withGotoPage, withMorePage, withOptionPageSize, locale, }: import('../../interfaces/components/Pagination').IPaginationProps) => import("react/jsx-runtime").JSX.Element;
5
5
  parameters: {
6
6
  layout: string;
7
7
  };
@@ -1,3 +1,3 @@
1
1
  import { ITabs } from '../../interfaces/components/Tabs';
2
- declare const Tabs: ({ id, value, keyValueTab, tabsList, className, classNameContainer, classNameButton, variant, size, borderRadius, disabled, animation, mountedExecuteChange, typeButton, onChange, }: ITabs) => import("react/jsx-runtime").JSX.Element;
2
+ declare const Tabs: ({ id, value, keyValueTab, tabsList, className, classNameContainer, classNameButton, variant, size, borderRadius, disabled, animation, mountedExecuteChange, typeButton, onChange, locale, }: ITabs) => import("react/jsx-runtime").JSX.Element;
3
3
  export default Tabs;
@@ -1,7 +1,7 @@
1
1
  import { StoryObj } from '@storybook/react-vite';
2
2
  declare const meta: {
3
3
  title: string;
4
- component: ({ id, value, keyValueTab, tabsList, className, classNameContainer, classNameButton, variant, size, borderRadius, disabled, animation, mountedExecuteChange, typeButton, onChange, }: import('../../interfaces/components/Tabs').ITabs) => import("react/jsx-runtime").JSX.Element;
4
+ component: ({ id, value, keyValueTab, tabsList, className, classNameContainer, classNameButton, variant, size, borderRadius, disabled, animation, mountedExecuteChange, typeButton, onChange, locale, }: import('../../interfaces/components/Tabs').ITabs) => import("react/jsx-runtime").JSX.Element;
5
5
  parameters: {
6
6
  layout: string;
7
7
  };
@@ -1,3 +1,3 @@
1
1
  import { IUploadImage } from '../../interfaces/components/UploadFile';
2
- declare const UploadImage: ({ onChange, valueUrl, validateFile, validateFileDesc, maxSize, icon, desc, classNameContainer, classNameImage, classNameAction, }: IUploadImage) => import("react/jsx-runtime").JSX.Element;
2
+ declare const UploadImage: ({ onChange, valueUrl, validateFile, validateFileDesc, maxSize, icon, desc, classNameContainer, classNameImage, classNameAction, id, }: IUploadImage) => import("react/jsx-runtime").JSX.Element;
3
3
  export default UploadImage;
@@ -1,7 +1,7 @@
1
1
  import { StoryObj } from '@storybook/react-vite';
2
2
  declare const meta: {
3
3
  title: string;
4
- component: ({ onChange, valueUrl, validateFile, validateFileDesc, maxSize, icon, desc, classNameContainer, classNameImage, classNameAction, }: import('../../interfaces/components/UploadFile').IUploadImage) => import("react/jsx-runtime").JSX.Element;
4
+ component: ({ onChange, valueUrl, validateFile, validateFileDesc, maxSize, icon, desc, classNameContainer, classNameImage, classNameAction, id, }: import('../../interfaces/components/UploadFile').IUploadImage) => import("react/jsx-runtime").JSX.Element;
5
5
  parameters: {
6
6
  layout: string;
7
7
  };
@@ -1,3 +1,3 @@
1
1
  import { IUploadMultipleFile } from '../../interfaces/components/UploadFile';
2
- declare const UploadMultipleFile: ({ value, validateFile, classNameContainer, classNameButton, textUpload, buttonProps, maxFile, maxSize, error, removeElement, onChange, handlerDownload, priorityError, eventError, }: IUploadMultipleFile) => import("react/jsx-runtime").JSX.Element;
2
+ declare const UploadMultipleFile: ({ value, validateFile, classNameContainer, classNameButton, textUpload, buttonProps, maxFile, maxSize, error, removeElement, onChange, handlerDownload, priorityError, eventError, locationRemoveElement, }: IUploadMultipleFile) => import("react/jsx-runtime").JSX.Element;
3
3
  export default UploadMultipleFile;
@@ -1,7 +1,7 @@
1
1
  import { StoryObj } from '@storybook/react-vite';
2
2
  declare const meta: {
3
3
  title: string;
4
- component: ({ value, validateFile, classNameContainer, classNameButton, textUpload, buttonProps, maxFile, maxSize, error, removeElement, onChange, handlerDownload, priorityError, eventError, }: import('../../interfaces/components/UploadFile').IUploadMultipleFile) => import("react/jsx-runtime").JSX.Element;
4
+ component: ({ value, validateFile, classNameContainer, classNameButton, textUpload, buttonProps, maxFile, maxSize, error, removeElement, onChange, handlerDownload, priorityError, eventError, locationRemoveElement, }: import('../../interfaces/components/UploadFile').IUploadMultipleFile) => import("react/jsx-runtime").JSX.Element;
5
5
  parameters: {
6
6
  layout: string;
7
7
  };
@@ -1,5 +1,6 @@
1
1
  import { OffsetOptions } from '@floating-ui/react';
2
2
  import { ReactNode } from 'react';
3
+ import { TKeyLocale } from '../Calendar';
3
4
  export type TKindPaginationType = 'box' | 'nude';
4
5
  export interface IPagination {
5
6
  pageNumber: number;
@@ -20,4 +21,5 @@ export interface IPaginationProps extends IPagination {
20
21
  withOptionPageSize?: boolean;
21
22
  withGotoPage?: boolean;
22
23
  withMorePage?: boolean;
24
+ locale?: TKeyLocale;
23
25
  }
@@ -1,5 +1,6 @@
1
1
  import { IBorderRadius } from '../../../config/components/borderRadius';
2
- export type TVariantTabs = 'original-laba-blue-10' | 'container-payhere-brand-base' | 'container-laba-blue-10' | 'container-laba-blue-10-bg_white';
2
+ import { TKeyLocale } from '../Calendar';
3
+ export type TVariantTabs = 'original-laba-blue-10' | 'container-payhere-brand-base' | 'container-payhere-brand-base-bg_white' | 'container-laba-blue-10' | 'container-laba-blue-10-bg_white';
3
4
  export type TSizeTabs = 'tabs-m' | 'tabs-s' | 'tabs-medium' | 'tabs-small';
4
5
  export type TTypeEventTabs = 'change' | 'mounted';
5
6
  export interface ITabsList {
@@ -8,6 +9,7 @@ export interface ITabsList {
8
9
  isHide?: boolean;
9
10
  className?: string;
10
11
  activeColor?: string;
12
+ locale?: Partial<Record<TKeyLocale, string>>;
11
13
  }
12
14
  export interface ITabs {
13
15
  id?: string;
@@ -25,6 +27,7 @@ export interface ITabs {
25
27
  mountedExecuteChange?: boolean;
26
28
  onChange?: (v: ITabsList, sourceEvent: TTypeEventTabs) => void;
27
29
  typeButton?: 'button' | 'submit';
30
+ locale?: TKeyLocale;
28
31
  }
29
32
  export interface IStyleTabs {
30
33
  width: number;
@@ -24,6 +24,7 @@ export interface IUploadImage {
24
24
  classNameContainer?: string | undefined;
25
25
  classNameImage?: string | undefined;
26
26
  classNameAction?: string | undefined;
27
+ id?: string;
27
28
  }
28
29
  export interface IUploadMultipleFile {
29
30
  onChange?: (v?: File[] | null) => void;
@@ -40,6 +41,7 @@ export interface IUploadMultipleFile {
40
41
  handlerDownload?: (value: IUploadMultipleFileValue) => void;
41
42
  priorityError?: 'internal' | 'external';
42
43
  eventError?: (message: string) => void;
44
+ locationRemoveElement?: 'left' | 'right';
43
45
  }
44
46
  export interface IUploadMultipleFileValue {
45
47
  name?: string;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "1mpacto-react-ui",
3
3
  "private": false,
4
- "version": "0.2.0-beta.14",
4
+ "version": "0.2.0-beta.16",
5
5
  "type": "module",
6
6
  "engines": {
7
7
  "node": ">=20.19.4",