react-asc 25.14.1 → 25.15.0
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/index.d.ts +37 -35
- package/index.es.js +86 -93
- package/index.js +85 -92
- package/lib/components/Alert/Alert.d.ts +3 -3
- package/lib/components/AppBar/AppBar.d.ts +3 -3
- package/lib/components/Badge/Badge.d.ts +2 -2
- package/lib/components/Button/Button.d.ts +2 -2
- package/lib/components/Button/ButtonContext.d.ts +2 -2
- package/lib/components/ButtonGroup/ButtonGroup.d.ts +2 -2
- package/lib/components/Chip/Chip.d.ts +2 -2
- package/lib/components/FloatingActionButton/FloatingActionButton.d.ts +2 -2
- package/lib/components/Grid/Column/Column.d.ts +2 -5
- package/lib/components/Grid/Column/column.types.d.ts +1 -0
- package/lib/components/Grid/Column/index.d.ts +1 -0
- package/lib/components/Icon/Icon.d.ts +2 -2
- package/lib/components/IconButton/IconButton.d.ts +2 -2
- package/lib/components/List/ListItem.d.ts +2 -2
- package/lib/components/Modal/GlobalModal.d.ts +2 -2
- package/lib/components/Modal/Modal.d.ts +1 -1
- package/lib/components/Modal/modal.interfaces.d.ts +2 -2
- package/lib/components/Modal/modal.service.d.ts +2 -2
- package/lib/components/ProgressBar/ProgressBar.d.ts +2 -2
- package/lib/components/Snackbar/Snackbar.d.ts +2 -2
- package/lib/components/Snackbar/snackbar.service.d.ts +2 -2
- package/lib/components/SpeedDial/SpeedDialAction.d.ts +2 -2
- package/lib/components/Stepper/Dot/Dot.d.ts +2 -2
- package/lib/components/Tabs/TabIndicator.d.ts +2 -2
- package/lib/components/Tabs/Tabs.d.ts +3 -3
- package/lib/components/index.d.ts +1 -2
- package/lib/enums/color.enum.d.ts +9 -0
- package/lib/enums/index.d.ts +5 -0
- package/lib/enums/position.enum.d.ts +4 -0
- package/lib/enums/size.enum.d.ts +5 -0
- package/lib/enums/status.enum.d.ts +4 -0
- package/lib/enums/variant.enum.d.ts +5 -0
- package/lib/index.d.ts +1 -0
- package/package.json +1 -1
- package/lib/components/component.enums.d.ts +0 -27
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { Color, VARIANT } from '../../enums';
|
|
2
2
|
import type { MODALBUTTONTYPE } from './modal.enum';
|
|
3
3
|
export interface IModalButton {
|
|
4
4
|
label: string;
|
|
5
5
|
variant?: VARIANT;
|
|
6
|
-
color?:
|
|
6
|
+
color?: Color;
|
|
7
7
|
handler?: () => void;
|
|
8
8
|
autoFocus?: boolean;
|
|
9
9
|
type?: MODALBUTTONTYPE;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import type { IControls } from '../Form';
|
|
2
1
|
import type { ReactElement } from 'react';
|
|
2
|
+
import type { SIZE } from '../../enums';
|
|
3
|
+
import type { IControls } from '../Form';
|
|
3
4
|
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,8 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { Color } from '../../enums';
|
|
3
3
|
export interface IProgressBarProps extends React.ComponentProps<'div'> {
|
|
4
4
|
className?: string;
|
|
5
|
-
color?:
|
|
5
|
+
color?: Color;
|
|
6
6
|
value?: number;
|
|
7
7
|
indeterminate?: boolean;
|
|
8
8
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import type { ComponentProps } from 'react';
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import {
|
|
3
|
+
import { Color } from '../../enums';
|
|
4
4
|
export interface ISnackbarProps extends ComponentProps<'div'> {
|
|
5
|
-
color?:
|
|
5
|
+
color?: Color;
|
|
6
6
|
actionText?: string;
|
|
7
7
|
onOk?: (e: React.MouseEvent) => void;
|
|
8
8
|
}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { Color } from '../../enums';
|
|
3
3
|
export interface ISnackbarService {
|
|
4
4
|
show(message: React.ReactNode | string, options?: ISnackbarOptions): Promise<void>;
|
|
5
5
|
}
|
|
6
6
|
export interface ISnackbarOptions {
|
|
7
7
|
actionText?: string;
|
|
8
8
|
timeout?: number;
|
|
9
|
-
color?:
|
|
9
|
+
color?: Color;
|
|
10
10
|
target?: HTMLElement;
|
|
11
11
|
}
|
|
12
12
|
declare class SnackbarService implements ISnackbarService {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { Color } from '../../enums';
|
|
3
3
|
export interface ISpeedDialActionProps extends React.DetailedHTMLProps<React.HtmlHTMLAttributes<HTMLDivElement>, HTMLDivElement> {
|
|
4
4
|
icon: React.ReactNode;
|
|
5
5
|
tooltipTitle?: string;
|
|
6
|
-
color?:
|
|
6
|
+
color?: Color;
|
|
7
7
|
onClick?: (e: React.MouseEvent) => void;
|
|
8
8
|
}
|
|
9
9
|
export declare const SpeedDialAction: (props: ISpeedDialActionProps) => JSX.Element;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { Color } from '../../../enums';
|
|
3
3
|
export interface IDot extends React.ComponentProps<'div'> {
|
|
4
|
-
color?:
|
|
4
|
+
color?: Color;
|
|
5
5
|
isActive?: boolean;
|
|
6
6
|
}
|
|
7
7
|
export declare const Dot: (props: IDot) => JSX.Element;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { Color } from '../../enums';
|
|
3
3
|
export interface ITabIndicatorProps extends React.DetailedHTMLProps<React.HtmlHTMLAttributes<HTMLDivElement>, HTMLDivElement> {
|
|
4
4
|
amount?: number;
|
|
5
5
|
index?: number;
|
|
6
|
-
color?:
|
|
6
|
+
color?: Color;
|
|
7
7
|
width?: string;
|
|
8
8
|
left?: number;
|
|
9
9
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import type { ReactElement } from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { Color } from '../../enums';
|
|
3
3
|
import type { ITabProps } from './Tab';
|
|
4
4
|
export interface ITabsProps {
|
|
5
|
-
color?:
|
|
6
|
-
indicatorColor?:
|
|
5
|
+
color?: Color;
|
|
6
|
+
indicatorColor?: Color;
|
|
7
7
|
children?: ReactElement<ITabProps> | ReactElement<ITabProps>[];
|
|
8
8
|
className?: string;
|
|
9
9
|
fixed?: boolean;
|
|
@@ -9,8 +9,6 @@ export * from './ButtonGroup';
|
|
|
9
9
|
export * from './Card';
|
|
10
10
|
export * from './Checkbox';
|
|
11
11
|
export * from './Chip';
|
|
12
|
-
export * from './component.enums';
|
|
13
|
-
export * from './component.interfaces';
|
|
14
12
|
export * from './ConditionalWrapper';
|
|
15
13
|
export * from './CssTransition';
|
|
16
14
|
export * from './DatePicker';
|
|
@@ -44,3 +42,4 @@ export * from './TimeSelect';
|
|
|
44
42
|
export * from './Tooltip';
|
|
45
43
|
export * from './TreeView';
|
|
46
44
|
export * from './Typography';
|
|
45
|
+
export * from './component.interfaces';
|
package/lib/index.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
export declare enum COLOR {
|
|
2
|
-
primary = "primary",
|
|
3
|
-
accent = "accent",
|
|
4
|
-
secondary = "secondary",
|
|
5
|
-
success = "success",
|
|
6
|
-
error = "error",
|
|
7
|
-
light = "light",
|
|
8
|
-
dark = "dark"
|
|
9
|
-
}
|
|
10
|
-
export declare enum VARIANT {
|
|
11
|
-
contained = "contained",
|
|
12
|
-
outline = "outline",
|
|
13
|
-
text = "text"
|
|
14
|
-
}
|
|
15
|
-
export declare enum SIZE {
|
|
16
|
-
sm = "sm",
|
|
17
|
-
md = "md",
|
|
18
|
-
lg = "lg"
|
|
19
|
-
}
|
|
20
|
-
export declare enum POSITION {
|
|
21
|
-
right = "right",
|
|
22
|
-
left = "left"
|
|
23
|
-
}
|
|
24
|
-
export declare enum STATUS {
|
|
25
|
-
HOVERED = "hovered",
|
|
26
|
-
NORMAL = "normal"
|
|
27
|
-
}
|