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.
Files changed (38) hide show
  1. package/index.d.ts +37 -35
  2. package/index.es.js +86 -93
  3. package/index.js +85 -92
  4. package/lib/components/Alert/Alert.d.ts +3 -3
  5. package/lib/components/AppBar/AppBar.d.ts +3 -3
  6. package/lib/components/Badge/Badge.d.ts +2 -2
  7. package/lib/components/Button/Button.d.ts +2 -2
  8. package/lib/components/Button/ButtonContext.d.ts +2 -2
  9. package/lib/components/ButtonGroup/ButtonGroup.d.ts +2 -2
  10. package/lib/components/Chip/Chip.d.ts +2 -2
  11. package/lib/components/FloatingActionButton/FloatingActionButton.d.ts +2 -2
  12. package/lib/components/Grid/Column/Column.d.ts +2 -5
  13. package/lib/components/Grid/Column/column.types.d.ts +1 -0
  14. package/lib/components/Grid/Column/index.d.ts +1 -0
  15. package/lib/components/Icon/Icon.d.ts +2 -2
  16. package/lib/components/IconButton/IconButton.d.ts +2 -2
  17. package/lib/components/List/ListItem.d.ts +2 -2
  18. package/lib/components/Modal/GlobalModal.d.ts +2 -2
  19. package/lib/components/Modal/Modal.d.ts +1 -1
  20. package/lib/components/Modal/modal.interfaces.d.ts +2 -2
  21. package/lib/components/Modal/modal.service.d.ts +2 -2
  22. package/lib/components/ProgressBar/ProgressBar.d.ts +2 -2
  23. package/lib/components/Snackbar/Snackbar.d.ts +2 -2
  24. package/lib/components/Snackbar/snackbar.service.d.ts +2 -2
  25. package/lib/components/SpeedDial/SpeedDialAction.d.ts +2 -2
  26. package/lib/components/Stepper/Dot/Dot.d.ts +2 -2
  27. package/lib/components/Tabs/TabIndicator.d.ts +2 -2
  28. package/lib/components/Tabs/Tabs.d.ts +3 -3
  29. package/lib/components/index.d.ts +1 -2
  30. package/lib/enums/color.enum.d.ts +9 -0
  31. package/lib/enums/index.d.ts +5 -0
  32. package/lib/enums/position.enum.d.ts +4 -0
  33. package/lib/enums/size.enum.d.ts +5 -0
  34. package/lib/enums/status.enum.d.ts +4 -0
  35. package/lib/enums/variant.enum.d.ts +5 -0
  36. package/lib/index.d.ts +1 -0
  37. package/package.json +1 -1
  38. package/lib/components/component.enums.d.ts +0 -27
@@ -1,9 +1,9 @@
1
- import type { COLOR, VARIANT } from '../component.enums';
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?: 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 { COLOR } from '../component.enums';
2
+ import { Color } from '../../enums';
3
3
  export interface IProgressBarProps extends React.ComponentProps<'div'> {
4
4
  className?: string;
5
- color?: 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 { COLOR } from '../component.enums';
3
+ import { Color } from '../../enums';
4
4
  export interface ISnackbarProps extends ComponentProps<'div'> {
5
- color?: 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 { COLOR } from '../component.enums';
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?: 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 { COLOR } from '../component.enums';
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?: 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 { COLOR } from '../../component.enums';
2
+ import { Color } from '../../../enums';
3
3
  export interface IDot extends React.ComponentProps<'div'> {
4
- color?: 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 { COLOR } from '../component.enums';
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?: 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 { COLOR } from '../component.enums';
2
+ import { Color } from '../../enums';
3
3
  import type { ITabProps } from './Tab';
4
4
  export interface ITabsProps {
5
- color?: COLOR;
6
- indicatorColor?: COLOR;
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';
@@ -0,0 +1,9 @@
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
+ }
@@ -0,0 +1,5 @@
1
+ export * from './color.enum';
2
+ export * from './position.enum';
3
+ export * from './size.enum';
4
+ export * from './status.enum';
5
+ export * from './variant.enum';
@@ -0,0 +1,4 @@
1
+ export declare enum POSITION {
2
+ right = "right",
3
+ left = "left"
4
+ }
@@ -0,0 +1,5 @@
1
+ export declare enum SIZE {
2
+ sm = "sm",
3
+ md = "md",
4
+ lg = "lg"
5
+ }
@@ -0,0 +1,4 @@
1
+ export declare enum STATUS {
2
+ HOVERED = "hovered",
3
+ NORMAL = "normal"
4
+ }
@@ -0,0 +1,5 @@
1
+ export declare enum VARIANT {
2
+ contained = "contained",
3
+ outline = "outline",
4
+ text = "text"
5
+ }
package/lib/index.d.ts CHANGED
@@ -1,4 +1,5 @@
1
1
  export * from './components';
2
+ export * from './enums';
2
3
  export * from './hooks';
3
4
  export * from './icons';
4
5
  export * from './interfaces';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-asc",
3
- "version": "25.14.1",
3
+ "version": "25.15.0",
4
4
  "description": "handcrafted react components",
5
5
  "main": "index.js",
6
6
  "module": "index.es.js",
@@ -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
- }