react-asc 25.0.5 → 25.0.6
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/components/Alert/Alert.d.ts +4 -2
- package/components/AppBar/AppBar.d.ts +4 -2
- package/components/AppBar/AppBarTitle.d.ts +2 -1
- package/components/AutoComplete/AutoComplete.d.ts +1 -1
- package/components/Breadcrumb/Breadcrumb.d.ts +2 -1
- package/components/Button/ButtonContext.d.ts +1 -1
- package/components/Chip/Chip.d.ts +1 -1
- package/components/ConditionalWrapper/ConditionalWrapper.d.ts +1 -1
- package/components/ExpansionPanel/ExpansionPanel.d.ts +2 -1
- package/components/ExpansionPanel/ExpansionPanelContent.d.ts +1 -1
- package/components/ExpansionPanel/ExpansionPanelHeader.d.ts +2 -1
- package/components/Form/Form.d.ts +2 -2
- package/components/Form/FormError.d.ts +1 -1
- package/components/Form/FormGroup.d.ts +1 -1
- package/components/Form/FormInput/FormInput.d.ts +2 -2
- package/components/Form/form.interfaces.d.ts +1 -1
- package/components/Form/form.models.d.ts +2 -2
- package/components/Icon/Icon.d.ts +3 -2
- package/components/List/ListItem.d.ts +1 -1
- package/components/List/ListItemText.d.ts +2 -1
- package/components/List/list.models.d.ts +2 -2
- package/components/Menu/Menu.d.ts +4 -3
- package/components/Menu/MenuBody.d.ts +4 -3
- package/components/Menu/MenuContext.d.ts +1 -1
- package/components/Menu/MenuItem.d.ts +1 -1
- package/components/Menu/MenuToggle.d.ts +1 -1
- package/components/Modal/GlobalModal.d.ts +3 -3
- package/components/Modal/Modal.d.ts +2 -2
- package/components/Modal/ModalBody.d.ts +1 -1
- package/components/Modal/modal.interfaces.d.ts +2 -2
- package/components/Modal/modal.service.d.ts +4 -4
- package/components/Select/Select.d.ts +1 -1
- package/components/Sidebar/Sidebar.d.ts +1 -1
- package/components/Snackbar/Snackbar.d.ts +2 -1
- package/components/SpeedDial/SpeedDialIcon.d.ts +2 -1
- package/components/Stepper/Step/Step.d.ts +2 -1
- package/components/Stepper/StepPanel/StepPanel.d.ts +1 -1
- package/components/Stepper/Stepper.d.ts +2 -2
- package/components/Table/Table.d.ts +1 -1
- package/components/Table/TableContext.d.ts +1 -1
- package/components/Tabs/Tab.d.ts +2 -1
- package/components/Tabs/TabContext.d.ts +1 -1
- package/components/Tabs/Tabs.d.ts +2 -2
- package/hooks/useDebounce.d.ts +1 -1
- package/index.es.js +4 -7
- package/index.js +4 -7
- package/package.json +1 -1
|
@@ -1,6 +1,8 @@
|
|
|
1
|
-
import
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
import React from 'react';
|
|
2
3
|
import { VARIANT } from '../component.enums';
|
|
3
|
-
import {
|
|
4
|
+
import type { SIZE } from '../component.enums';
|
|
5
|
+
import { COLOR } from '../component.enums';
|
|
4
6
|
export interface IAlertProps extends React.ComponentProps<'div'> {
|
|
5
7
|
children?: ReactNode;
|
|
6
8
|
className?: string;
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import type { SIZE } from '../component.enums';
|
|
4
|
+
import { COLOR } from '../component.enums';
|
|
3
5
|
export interface IAppBarProps extends React.ComponentProps<'nav'> {
|
|
4
6
|
children?: ReactNode;
|
|
5
7
|
className?: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { Component } from 'react';
|
|
2
|
-
import { IControls, IFormValues } from './form.interfaces';
|
|
3
|
-
import { FormControl } from './form.models';
|
|
2
|
+
import type { IControls, IFormValues } from './form.interfaces';
|
|
3
|
+
import type { FormControl } from './form.models';
|
|
4
4
|
export interface IFormProps {
|
|
5
5
|
controls: IControls;
|
|
6
6
|
validateOnBlur?: boolean;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { IFormInputOptions, IFormTextAreaOptions, IFormSelectOptions, IFormAutoCompleteOptions } from '../form.interfaces';
|
|
3
|
-
import { IFormControlType } from '../form.types';
|
|
2
|
+
import type { IFormInputOptions, IFormTextAreaOptions, IFormSelectOptions, IFormAutoCompleteOptions } from '../form.interfaces';
|
|
3
|
+
import type { IFormControlType } from '../form.types';
|
|
4
4
|
export interface IFormInputEvent {
|
|
5
5
|
value: any;
|
|
6
6
|
type?: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { IFormControlConfig, IFormInputError } from './form.interfaces';
|
|
2
|
-
import { IFormControlType } from './form.types';
|
|
1
|
+
import type { IFormControlConfig, IFormInputError } from './form.interfaces';
|
|
2
|
+
import type { IFormControlType } from './form.types';
|
|
3
3
|
export declare class FormControl {
|
|
4
4
|
value: any;
|
|
5
5
|
validators: string[];
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
1
|
+
import type { ComponentProps } from 'react';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import type { COLOR } from '../component.enums';
|
|
3
4
|
export interface IIconProps extends ComponentProps<'div'> {
|
|
4
5
|
iconColor?: COLOR;
|
|
5
6
|
children?: React.ReactNode;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ReactElement } from 'react';
|
|
2
|
-
import { IListItemProps } from './ListItem';
|
|
1
|
+
import type { ReactElement } from 'react';
|
|
2
|
+
import type { IListItemProps } from './ListItem';
|
|
3
3
|
export declare class ListItemModel {
|
|
4
4
|
constructor(dto: ReactElement<IListItemProps>);
|
|
5
5
|
key: unknown;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
1
|
+
import type { ReactElement } from 'react';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import type { MenuPosition } from './menu.types';
|
|
4
|
+
import type { IListItemProps } from '../List';
|
|
4
5
|
export interface IMenuProps extends React.DetailedHTMLProps<React.HtmlHTMLAttributes<HTMLDivElement>, HTMLDivElement> {
|
|
5
6
|
toggle?: ReactElement;
|
|
6
7
|
open?: boolean;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
1
|
+
import type { ReactElement } from 'react';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import type { MenuPosition } from './menu.types';
|
|
4
|
+
import type { IListItemProps } from '../List';
|
|
4
5
|
export interface IMenuBodyProps {
|
|
5
6
|
children?: ReactElement<IListItemProps> | ReactElement<IListItemProps>[];
|
|
6
7
|
className?: string;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { ReactElement } from 'react';
|
|
1
|
+
import type { ReactElement } from 'react';
|
|
2
2
|
import { SIZE } from '../component.enums';
|
|
3
|
-
import { IControls, IFormValues } from '../Form';
|
|
3
|
+
import type { IControls, IFormValues } from '../Form';
|
|
4
4
|
import { MODALTYPE } from './modal.enum';
|
|
5
|
-
import { IModalButton } from './modal.interfaces';
|
|
5
|
+
import type { IModalButton } from './modal.interfaces';
|
|
6
6
|
interface IModalProps {
|
|
7
7
|
title?: string;
|
|
8
8
|
description?: string | ReactElement;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ReactElement, ReactNode } from 'react';
|
|
2
|
-
import { SIZE } from '../component.enums';
|
|
1
|
+
import type { ReactElement, ReactNode } from 'react';
|
|
2
|
+
import type { SIZE } from '../component.enums';
|
|
3
3
|
export interface IModalProps {
|
|
4
4
|
target?: HTMLElement;
|
|
5
5
|
className?: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { COLOR, VARIANT } from '../component.enums';
|
|
2
|
-
import { MODALBUTTONTYPE } from './modal.enum';
|
|
1
|
+
import type { COLOR, VARIANT } from '../component.enums';
|
|
2
|
+
import type { MODALBUTTONTYPE } from './modal.enum';
|
|
3
3
|
export interface IModalButton {
|
|
4
4
|
label: string;
|
|
5
5
|
variant?: VARIANT;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { IControls } from '../Form';
|
|
2
|
-
import { ReactElement } from 'react';
|
|
3
|
-
import { IModalButton } from './modal.interfaces';
|
|
4
|
-
import { SIZE } from '../component.enums';
|
|
1
|
+
import type { IControls } from '../Form';
|
|
2
|
+
import type { ReactElement } from 'react';
|
|
3
|
+
import type { IModalButton } from './modal.interfaces';
|
|
4
|
+
import type { SIZE } from '../component.enums';
|
|
5
5
|
export interface IModalService {
|
|
6
6
|
show(title: string, description: string | ReactElement, options?: IModalOptions): Promise<void>;
|
|
7
7
|
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import
|
|
1
|
+
import type { ReactElement } from 'react';
|
|
2
|
+
import React from 'react';
|
|
2
3
|
export interface ISpeedDialIconProps extends React.DetailedHTMLProps<React.HtmlHTMLAttributes<HTMLDivElement>, HTMLDivElement> {
|
|
3
4
|
openIcon?: ReactElement;
|
|
4
5
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ReactElement } from 'react';
|
|
2
|
-
import { IStepProps } from './Step';
|
|
1
|
+
import type { ReactElement } from 'react';
|
|
2
|
+
import type { IStepProps } from './Step';
|
|
3
3
|
export interface IStepperProps {
|
|
4
4
|
children?: ReactElement<IStepProps> | ReactElement<IStepProps>[];
|
|
5
5
|
isLinear?: boolean;
|
package/components/Tabs/Tab.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { ReactElement } from 'react';
|
|
1
|
+
import type { ReactElement } from 'react';
|
|
2
2
|
import { COLOR } from '../component.enums';
|
|
3
|
-
import { ITabProps } from './Tab';
|
|
3
|
+
import type { ITabProps } from './Tab';
|
|
4
4
|
export interface ITabsProps {
|
|
5
5
|
color?: COLOR;
|
|
6
6
|
indicatorColor?: COLOR;
|
package/hooks/useDebounce.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import React from 'react';
|
|
1
|
+
import type React from 'react';
|
|
2
2
|
export declare function useDebounce(callback: () => void, timeout: number, deps: React.DependencyList): void;
|
package/index.es.js
CHANGED
|
@@ -235,12 +235,9 @@ function useDebounce(callback, timeout, deps) {
|
|
|
235
235
|
}
|
|
236
236
|
|
|
237
237
|
const useConstructor = (callBack) => {
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
}
|
|
242
|
-
callBack();
|
|
243
|
-
setHasBeenCalled(true);
|
|
238
|
+
useEffect(() => {
|
|
239
|
+
callBack();
|
|
240
|
+
}, []);
|
|
244
241
|
};
|
|
245
242
|
|
|
246
243
|
function useCssClasses(cssClasses) {
|
|
@@ -879,7 +876,7 @@ const CssTransition = (props) => {
|
|
|
879
876
|
};
|
|
880
877
|
useEffect(() => {
|
|
881
878
|
if (isShow !== undefined && (isShow === true || isShow === false)) {
|
|
882
|
-
renderAnimation(isShow);
|
|
879
|
+
void renderAnimation(isShow);
|
|
883
880
|
}
|
|
884
881
|
}, [isShow]);
|
|
885
882
|
const getCssClasses = () => {
|
package/index.js
CHANGED
|
@@ -244,12 +244,9 @@ function useDebounce(callback, timeout, deps) {
|
|
|
244
244
|
}
|
|
245
245
|
|
|
246
246
|
const useConstructor = (callBack) => {
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
}
|
|
251
|
-
callBack();
|
|
252
|
-
setHasBeenCalled(true);
|
|
247
|
+
React.useEffect(() => {
|
|
248
|
+
callBack();
|
|
249
|
+
}, []);
|
|
253
250
|
};
|
|
254
251
|
|
|
255
252
|
function useCssClasses(cssClasses) {
|
|
@@ -888,7 +885,7 @@ const CssTransition = (props) => {
|
|
|
888
885
|
};
|
|
889
886
|
React.useEffect(() => {
|
|
890
887
|
if (isShow !== undefined && (isShow === true || isShow === false)) {
|
|
891
|
-
renderAnimation(isShow);
|
|
888
|
+
void renderAnimation(isShow);
|
|
892
889
|
}
|
|
893
890
|
}, [isShow]);
|
|
894
891
|
const getCssClasses = () => {
|