1mpacto-react-ui 0.0.66 → 0.0.67
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/assets/core.css +1 -1
- package/dist/assets/style.css +1 -1
- package/dist/index.cjs +55 -49
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +6231 -6105
- package/dist/index.mjs.map +1 -1
- package/dist/src/components/Tabs/Tabs.d.ts +1 -1
- package/dist/src/components/Textarea/Textarea.d.ts +4 -0
- package/dist/src/components/index.d.ts +4 -2
- package/dist/src/hooks/index.d.ts +2 -1
- package/dist/src/hooks/useCombinedResizeObserver.d.ts +2 -1
- package/dist/src/hooks/useMergeRefs.d.ts +4 -0
- package/dist/src/interfaces/components/Tabs/index.d.ts +2 -0
- package/dist/src/interfaces/components/Textarea/index.d.ts +16 -0
- package/package.json +1 -1
@@ -1,4 +1,4 @@
|
|
1
1
|
import { ITabs } from '../../interfaces/components/Tabs';
|
2
2
|
|
3
|
-
declare const Tabs: ({ id, value, keyValueTab, tabsList, className, classNameButton, variant, size, borderRadius, disabled, onChange, }: ITabs) => import("react/jsx-runtime").JSX.Element;
|
3
|
+
declare const Tabs: ({ id, value, keyValueTab, tabsList, className, classNameContainer, classNameButton, variant, size, borderRadius, disabled, onChange, }: ITabs) => import("react/jsx-runtime").JSX.Element;
|
4
4
|
export default Tabs;
|
@@ -43,9 +43,11 @@ import { default as UploadFile } from './Upload/UploadFile';
|
|
43
43
|
import { ITabsList } from '../interfaces/components/Tabs';
|
44
44
|
import { default as TruncateComponent } from './TruncateComponent/TruncateComponent';
|
45
45
|
import { default as UploadImage } from './Upload/UploadImage';
|
46
|
+
import { default as Textarea } from './Textarea/Textarea';
|
47
|
+
import { ITextarea } from '../interfaces/components/Textarea';
|
46
48
|
|
47
49
|
import * as utilTable from '@tanstack/react-table';
|
48
50
|
import type * as SelectDropdownContainerType from 'react-select';
|
49
51
|
import type * as FilterContainerType from '../interfaces/components/FilterContainer';
|
50
|
-
export { TPublish, Button, Popover, Calendar, CalendarRange, DatePicker, DateRangePicker, FilterDate, InputFloatingInner, InputReguler, Pagination, Tabs, TabPanel, Table, TableVirtualization, ListVirtualization, SelectDropdownContainer, utilTable, Switch, ButtonIcon, Badges, Chips, RadioCheckbox, RadioCheckboxLabel, Breadcrumbs, Sidebar, Collapse, ModalDialog, SelectDropdownContainerComponents, Timeline, FilterContainer, NumberFormat, PatternFormat, DefaultCheckedChecboxIcon, DefaultRadioChecboxIcon, ConfigTable, PortalComponent, AlertContainer, UploadFile, TruncateComponent, UploadImage, };
|
51
|
-
export type { ITableColumnDef, IRefPopover, IRefTableVirtualization, IRefListVirtualization, IRefSelectDropdownContainer, IChildrenSelectDropdownContainer, ISidebarModule, SelectDropdownContainerType, FilterContainerType, IInputReguler, IInputFloatingInner, ITableConfig, TButtonVariants, TButtonSize, ITabsList, };
|
52
|
+
export { TPublish, Button, Popover, Calendar, CalendarRange, DatePicker, DateRangePicker, FilterDate, InputFloatingInner, InputReguler, Pagination, Tabs, TabPanel, Table, TableVirtualization, ListVirtualization, SelectDropdownContainer, utilTable, Switch, ButtonIcon, Badges, Chips, RadioCheckbox, RadioCheckboxLabel, Breadcrumbs, Sidebar, Collapse, ModalDialog, SelectDropdownContainerComponents, Timeline, FilterContainer, NumberFormat, PatternFormat, DefaultCheckedChecboxIcon, DefaultRadioChecboxIcon, ConfigTable, PortalComponent, AlertContainer, UploadFile, TruncateComponent, UploadImage, Textarea, };
|
53
|
+
export type { ITableColumnDef, IRefPopover, IRefTableVirtualization, IRefListVirtualization, IRefSelectDropdownContainer, IChildrenSelectDropdownContainer, ISidebarModule, SelectDropdownContainerType, FilterContainerType, IInputReguler, IInputFloatingInner, ITableConfig, TButtonVariants, TButtonSize, ITabsList, ITextarea, };
|
@@ -3,6 +3,7 @@ import { default as useCountdown } from './useCountdown';
|
|
3
3
|
import { default as useAsyncDebounce } from './useAsyncDebounce';
|
4
4
|
import { default as useCombinedResizeObserver } from './useCombinedResizeObserver';
|
5
5
|
import { default as useStateRef } from './useStateRef';
|
6
|
+
import { useMergeRefs } from './useMergeRefs';
|
6
7
|
import { useDeepCompareEffect, useDeepCompareMemoize } from './useDeepCompareEffect';
|
7
8
|
|
8
|
-
export { useElementOrWindowMediaQuery, useCountdown, useAsyncDebounce, useCombinedResizeObserver, useStateRef, useDeepCompareEffect, useDeepCompareMemoize, };
|
9
|
+
export { useElementOrWindowMediaQuery, useCountdown, useAsyncDebounce, useCombinedResizeObserver, useStateRef, useDeepCompareEffect, useDeepCompareMemoize, useMergeRefs, };
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { RefObject } from 'react';
|
1
|
+
import { useEffect, RefObject } from 'react';
|
2
2
|
|
3
3
|
interface ContentRect {
|
4
4
|
width: number;
|
@@ -18,5 +18,6 @@ interface CombinedResizeObserverHook<T extends HTMLElement> {
|
|
18
18
|
};
|
19
19
|
contentRect: ContentRect;
|
20
20
|
}
|
21
|
+
export declare const useIsomorphicLayoutEffect: typeof useEffect;
|
21
22
|
declare const useCombinedResizeObserver: <T extends HTMLElement>(dependencies?: unknown[], selector?: string) => CombinedResizeObserverHook<T>;
|
22
23
|
export default useCombinedResizeObserver;
|
@@ -0,0 +1,4 @@
|
|
1
|
+
export type ReactRef<T> = React.RefCallback<T> | React.MutableRefObject<T>;
|
2
|
+
export declare function assignRef<T = any>(ref: ReactRef<T> | null | undefined, value: T): void;
|
3
|
+
export declare function mergeRefs<T>(...refs: (ReactRef<T> | null | undefined)[]): (node: T | null) => void;
|
4
|
+
export declare function useMergeRefs<T>(...refs: (ReactRef<T> | null | undefined)[]): (node: T | null) => void;
|
@@ -6,12 +6,14 @@ export interface ITabsList {
|
|
6
6
|
id: string | number;
|
7
7
|
label: string | number;
|
8
8
|
isHide?: boolean;
|
9
|
+
activeColor?: string;
|
9
10
|
}
|
10
11
|
export interface ITabs {
|
11
12
|
id?: string;
|
12
13
|
value?: string | number;
|
13
14
|
tabsList: ITabsList[];
|
14
15
|
keyValueTab?: string;
|
16
|
+
classNameContainer?: string;
|
15
17
|
className?: string;
|
16
18
|
classNameButton?: string;
|
17
19
|
variant?: TVariantTabs;
|
@@ -0,0 +1,16 @@
|
|
1
|
+
import { InputHTMLAttributes } from 'react';
|
2
|
+
|
3
|
+
export interface ITextarea extends InputHTMLAttributes<HTMLTextAreaElement> {
|
4
|
+
classNameContainer?: string | undefined;
|
5
|
+
id?: string | undefined;
|
6
|
+
label?: string;
|
7
|
+
type?: string;
|
8
|
+
isRequired?: boolean;
|
9
|
+
error?: string | undefined;
|
10
|
+
sizeInput?: 'medium' | 'm';
|
11
|
+
variant?: 'solid-blue-300' | 'dashed-blue-300' | 'solid-laba-blue-10' | 'dashed-laba-blue-10';
|
12
|
+
classNameLabel?: string | undefined;
|
13
|
+
classNameLabelError?: string | undefined;
|
14
|
+
maxHeight?: number;
|
15
|
+
minHeight?: number;
|
16
|
+
}
|
package/package.json
CHANGED