@app-studio/web 0.8.65 → 0.8.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.
Files changed (90) hide show
  1. package/dist/components/Alert/Alert/Alert.props.d.ts +1 -1
  2. package/dist/components/Alert/Alert/Alert.type.d.ts +5 -5
  3. package/dist/components/Alert/Alert/Alert.view.d.ts +1 -1
  4. package/dist/components/Alert/Alert.d.ts +1 -1
  5. package/dist/components/AspectRatio/AspectRatio/AspectRatio.props.d.ts +5 -0
  6. package/dist/components/AspectRatio/AspectRatio/AspectRatio.view.d.ts +1 -1
  7. package/dist/components/Avatar/Avatar/Avatar.props.d.ts +1 -1
  8. package/dist/components/Avatar/Avatar/Avatar.type.d.ts +4 -4
  9. package/dist/components/Avatar/Avatar/Avatar.view.d.ts +1 -1
  10. package/dist/components/Avatar/Avatar.d.ts +1 -1
  11. package/dist/components/Badge/Badge/Badge.props.d.ts +1 -2
  12. package/dist/components/Badge/Badge/Badge.style.d.ts +3 -2
  13. package/dist/components/Badge/Badge/Badge.type.d.ts +3 -3
  14. package/dist/components/Badge/Badge.d.ts +1 -1
  15. package/dist/components/Badge/examples/index.d.ts +0 -1
  16. package/dist/components/Button/Button/Button.props.d.ts +2 -3
  17. package/dist/components/Button/Button/Button.style.d.ts +3 -3
  18. package/dist/components/Button/Button/Button.view.d.ts +9 -1
  19. package/dist/components/Button/examples/index.d.ts +0 -1
  20. package/dist/components/DragAndDrop/DragAndDrop/DragAndDrop.props.d.ts +10 -0
  21. package/dist/components/DragAndDrop/DragAndDrop/DragAndDrop.view.d.ts +1 -8
  22. package/dist/components/File/File.d.ts +7 -3
  23. package/dist/components/Form/Checkbox/Checkbox/Checkbox.props.d.ts +4 -4
  24. package/dist/components/Form/Checkbox/Checkbox/Checkbox.style.d.ts +2 -2
  25. package/dist/components/Form/ComboBox/ComboBox/ComboBox.props.d.ts +1 -1
  26. package/dist/components/Form/CountryPicker/CountryPicker/CountryPicker.props.d.ts +8 -10
  27. package/dist/components/Form/CountryPicker/CountryPicker/CountryPicker.view.d.ts +1 -2
  28. package/dist/components/Form/DatePicker/DatePicker/DatePicker.props.d.ts +3 -4
  29. package/dist/components/Form/Password/Password/Password.state.d.ts +1 -2
  30. package/dist/components/Form/Select/Select/Select.props.d.ts +5 -7
  31. package/dist/components/Form/Select/Select/Select.style.d.ts +2 -2
  32. package/dist/components/Form/Switch/Switch/Switch.props.d.ts +4 -5
  33. package/dist/components/Form/Switch/Switch/Switch.style.d.ts +3 -3
  34. package/dist/components/Form/TextArea/TextArea/TextArea.props.d.ts +3 -5
  35. package/dist/components/Form/TextArea/TextArea/TextArea.type.d.ts +6 -6
  36. package/dist/components/Form/TextField/TextField/TextField.props.d.ts +4 -5
  37. package/dist/components/Icon/Icon.d.ts +1 -3
  38. package/dist/components/Layout/Center/Center.d.ts +2 -2
  39. package/dist/components/Layout/Center/Center.props.d.ts +1 -1
  40. package/dist/components/Layout/Horizontal/Horizontal.d.ts +2 -2
  41. package/dist/components/Layout/Input/FieldContainer/FieldContainer/FieldContainer.props.d.ts +1 -1
  42. package/dist/components/Layout/Input/FieldContent/FieldContent/FieldContent.props.d.ts +3 -7
  43. package/dist/components/Layout/Input/FieldLabel/FieldLabel/FieldLabel.props.d.ts +2 -2
  44. package/dist/components/Layout/Input/FieldLayout/FieldLayout/FieldLayout.props.d.ts +1 -1
  45. package/dist/components/Layout/Input/HelperText/HelperText.props.d.ts +1 -1
  46. package/dist/components/Layout/Vertical/Vertical.d.ts +2 -2
  47. package/dist/components/Layout/View/View.d.ts +1 -2
  48. package/dist/components/Layout/configs/Input.style.d.ts +3 -3
  49. package/dist/components/Layout/configs/Input.type.d.ts +5 -5
  50. package/dist/components/Link/Link/Link.props.d.ts +1 -2
  51. package/dist/components/Loader/Loader/Loader.view.d.ts +8 -1
  52. package/dist/components/Message/Message/Message.props.d.ts +3 -3
  53. package/dist/components/Message/Message/Message.style.d.ts +2 -2
  54. package/dist/components/Message/Message/Message.type.d.ts +9 -8
  55. package/dist/components/Message/Message/Message.view.d.ts +1 -1
  56. package/dist/components/Modal/Modal/Modal.props.d.ts +19 -6
  57. package/dist/components/Modal/Modal/Modal.style.d.ts +4 -4
  58. package/dist/components/Modal/Modal/Modal.view.d.ts +16 -2
  59. package/dist/components/Table/Table/Table.context.d.ts +17 -14
  60. package/dist/components/Table/Table/Table.props.d.ts +2 -2
  61. package/dist/components/Table/Table/Table.view.d.ts +9 -8
  62. package/dist/components/Table/Table.d.ts +1 -1
  63. package/dist/components/Tabs/Tabs/Tabs.props.d.ts +2 -2
  64. package/dist/components/Text/Text/Text.props.d.ts +2 -2
  65. package/dist/components/Text/Text/Text.view.d.ts +7 -1
  66. package/dist/components/Text/Text.d.ts +1 -2
  67. package/dist/components/Toggle/Toggle/Toggle.props.d.ts +1 -2
  68. package/dist/components/Toggle/Toggle/Toggle.view.d.ts +7 -1
  69. package/dist/components/Toggle/Toggle.d.ts +1 -1
  70. package/dist/components/Toggle/examples/index.d.ts +0 -1
  71. package/dist/components/ToggleGroup/ToggleGroup/ToggleGroup.props.d.ts +6 -3
  72. package/dist/components/ToggleGroup/ToggleGroup/ToggleGroup.view.d.ts +1 -1
  73. package/dist/components/ToggleGroup/ToggleGroup.d.ts +1 -1
  74. package/dist/components/ToggleGroup/examples/index.d.ts +0 -1
  75. package/dist/components/Uploader/{Uploader.props.d.ts → Uploader/Uploader.props.d.ts} +30 -10
  76. package/dist/components/Uploader/Uploader/Uploader.state.d.ts +13 -0
  77. package/dist/components/Uploader/Uploader/Uploader.view.d.ts +3 -0
  78. package/dist/components/Uploader/Uploader.d.ts +1 -12
  79. package/dist/components/index.d.ts +1 -1
  80. package/dist/web.cjs.development.js +602 -588
  81. package/dist/web.cjs.development.js.map +1 -1
  82. package/dist/web.cjs.production.min.js +1 -1
  83. package/dist/web.cjs.production.min.js.map +1 -1
  84. package/dist/web.esm.js +604 -588
  85. package/dist/web.esm.js.map +1 -1
  86. package/dist/web.umd.development.js +605 -592
  87. package/dist/web.umd.development.js.map +1 -1
  88. package/dist/web.umd.production.min.js +1 -1
  89. package/dist/web.umd.production.min.js.map +1 -1
  90. package/package.json +6 -4
@@ -5,5 +5,5 @@ export interface AlertProps {
5
5
  title: string;
6
6
  description: string;
7
7
  variant?: Variant;
8
- styles?: AlertStyles;
8
+ views?: AlertStyles;
9
9
  }
@@ -1,8 +1,8 @@
1
- import { CSSProperties } from 'react';
1
+ import { ViewProps } from 'app-studio';
2
2
  export declare type Variant = 'default' | 'info' | 'success' | 'error' | 'warning';
3
3
  export declare type AlertStyles = {
4
- container?: CSSProperties;
5
- title?: any;
6
- description?: any;
7
- icon?: any;
4
+ container?: ViewProps;
5
+ title?: ViewProps;
6
+ description?: ViewProps;
7
+ icon?: ViewProps;
8
8
  };
@@ -1,3 +1,3 @@
1
1
  import React from 'react';
2
2
  import { AlertProps } from './Alert.props';
3
- export declare const AlertView: ({ icon, title, styles, description, variant, }: AlertProps) => React.JSX.Element;
3
+ export declare const AlertView: ({ icon, title, views, description, variant, }: AlertProps) => React.JSX.Element;
@@ -1,3 +1,3 @@
1
1
  import React from 'react';
2
2
  import { AlertProps } from './Alert/Alert.props';
3
- export declare const Alert: ({ icon, title, styles, description, variant, }: AlertProps) => React.JSX.Element;
3
+ export declare const Alert: ({ icon, title, views, description, variant, }: AlertProps) => React.JSX.Element;
@@ -1,4 +1,9 @@
1
1
  import { ViewProps } from 'app-studio';
2
2
  export interface AspectRatioProps extends ViewProps {
3
3
  ratio?: number;
4
+ views?: {
5
+ container?: ViewProps;
6
+ center?: ViewProps;
7
+ view?: ViewProps;
8
+ };
4
9
  }
@@ -1,3 +1,3 @@
1
1
  import React from 'react';
2
2
  import { AspectRatioProps } from './AspectRatio.props';
3
- export declare const AspectRatioView: ({ ratio, children, ...props }: AspectRatioProps) => React.JSX.Element;
3
+ export declare const AspectRatioView: ({ ratio, children, views, ...props }: AspectRatioProps) => React.JSX.Element;
@@ -4,7 +4,7 @@ export interface AvatarProps {
4
4
  src: string;
5
5
  size?: Size;
6
6
  fallback?: string;
7
- styles?: AvatarStyles;
7
+ views?: AvatarStyles;
8
8
  onClick?: Function;
9
9
  }
10
10
  export interface AvatarViewProps extends AvatarProps {
@@ -1,7 +1,7 @@
1
- import { CSSProperties } from 'react';
1
+ import { ViewProps } from 'app-studio';
2
2
  export declare type Size = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
3
3
  export declare type AvatarStyles = {
4
- container?: CSSProperties;
5
- image?: CSSProperties;
6
- fallback?: any;
4
+ container?: ViewProps;
5
+ image?: ViewProps;
6
+ fallback?: ViewProps;
7
7
  };
@@ -1,3 +1,3 @@
1
1
  import React from 'react';
2
2
  import { AvatarViewProps } from './Avatar.props';
3
- export declare const AvatarView: ({ src, size, fallback, styles, imageError, setImageError, onClick, }: AvatarViewProps) => React.JSX.Element;
3
+ export declare const AvatarView: ({ src, size, fallback, views, imageError, setImageError, onClick, }: AvatarViewProps) => React.JSX.Element;
@@ -1,3 +1,3 @@
1
1
  import React from 'react';
2
2
  import { AvatarProps } from './Avatar/Avatar.props';
3
- export declare const Avatar: ({ src, size, styles, fallback, onClick, }: AvatarProps) => React.JSX.Element;
3
+ export declare const Avatar: ({ src, size, views, fallback, onClick, }: AvatarProps) => React.JSX.Element;
@@ -3,9 +3,8 @@ import { ViewProps } from 'app-studio';
3
3
  export interface BadgeProps extends Omit<ViewProps, 'content'> {
4
4
  content: string | number;
5
5
  variant?: Variant;
6
- colorScheme?: string;
7
6
  position?: Position;
8
7
  size?: Size;
9
8
  shape?: Shape;
10
- styles?: BadgeStyles;
9
+ views?: BadgeStyles;
11
10
  }
@@ -1,7 +1,8 @@
1
- import { CSSProperties } from 'react';
1
+ /// <reference types="react" />
2
+ import { ViewProps } from 'app-studio';
2
3
  import { Shape, Size } from './Badge.type';
3
4
  export declare type BadgeSize = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
4
- export declare const BadgeSizes: Record<Size, CSSProperties>;
5
+ export declare const BadgeSizes: Record<Size, ViewProps>;
5
6
  export declare const BadgeShapes: Record<Shape, number | string>;
6
7
  export declare const PositionStyles: {
7
8
  [key: string]: React.CSSProperties;
@@ -1,9 +1,9 @@
1
- import { CSSProperties } from 'react';
1
+ import { ViewProps } from 'app-studio';
2
2
  export declare type Shape = 'sharp' | 'rounded' | 'pillShaped';
3
3
  export declare type Size = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
4
4
  export declare type Variant = 'filled' | 'outline' | 'link' | 'ghost';
5
5
  export declare type Position = 'top-right' | 'top-left' | 'bottom-right' | 'bottom-left';
6
6
  export declare type BadgeStyles = {
7
- container?: CSSProperties;
8
- text?: any;
7
+ container?: ViewProps;
8
+ text?: ViewProps;
9
9
  };
@@ -1,3 +1,3 @@
1
1
  import React from 'react';
2
2
  import { BadgeProps } from './Badge/Badge.props';
3
- export declare const Badge: ({ content, shape, colorScheme, position, variant, size, styles, }: BadgeProps) => React.JSX.Element;
3
+ export declare const Badge: ({ content, shape, position, variant, size, views, }: BadgeProps) => React.JSX.Element;
@@ -1,4 +1,3 @@
1
- export * from './colorScheme';
2
1
  export * from './content';
3
2
  export * from './default';
4
3
  export * from './position';
@@ -1,11 +1,10 @@
1
- import React, { CSSProperties } from 'react';
1
+ import React from 'react';
2
2
  import { ButtonProps as $ButtonProps, Shadow, ViewProps } from 'app-studio';
3
3
  import { Elevation } from '../../../utils/elevation';
4
4
  import { IconPosition, Shape, Size, Variant, LoaderPosition, Effects } from './Button.type';
5
5
  import { LoaderProps } from '../../Loader/Loader/Loader.props';
6
6
  export interface ButtonProps extends Omit<$ButtonProps, 'size'> {
7
7
  children?: React.ReactNode;
8
- colorScheme?: any;
9
8
  to?: string;
10
9
  isLoading?: boolean;
11
10
  loaderProps?: LoaderProps;
@@ -18,7 +17,7 @@ export interface ButtonProps extends Omit<$ButtonProps, 'size'> {
18
17
  isIconRounded?: boolean;
19
18
  onClick?: Function;
20
19
  size?: Size;
21
- shadow?: Shadow | Elevation | CSSProperties;
20
+ shadow?: Shadow | Elevation | ViewProps;
22
21
  shape?: Shape;
23
22
  ariaLabel?: string;
24
23
  variant?: Variant;
@@ -1,5 +1,5 @@
1
- import { CSSProperties } from 'react';
1
+ import { ViewProps } from 'app-studio';
2
2
  import { Shape, Size } from './Button.type';
3
- export declare const ButtonSizes: Record<Size, CSSProperties>;
3
+ export declare const ButtonSizes: Record<Size, ViewProps>;
4
4
  export declare const ButtonShapes: Record<Shape, number | string>;
5
- export declare const IconSizes: Record<Size, CSSProperties>;
5
+ export declare const IconSizes: Record<Size, ViewProps>;
@@ -1,4 +1,12 @@
1
1
  import React from 'react';
2
+ import { ViewProps } from 'app-studio';
2
3
  import { ButtonProps } from './Button.props';
3
- declare const ButtonView: React.FC<ButtonProps>;
4
+ interface Props extends ButtonProps {
5
+ views?: {
6
+ container?: ViewProps;
7
+ link?: ViewProps;
8
+ horizontal?: ViewProps;
9
+ };
10
+ }
11
+ declare const ButtonView: React.FC<Props>;
4
12
  export default ButtonView;
@@ -1,5 +1,4 @@
1
1
  export * from './autofocus';
2
- export * from './colorScheme';
3
2
  export * from './default';
4
3
  export * from './effect';
5
4
  export * from './icon';
@@ -7,3 +7,13 @@ export interface DragAndDropProps {
7
7
  containerProps?: ViewProps;
8
8
  itemProps?: ViewProps;
9
9
  }
10
+ export interface DragAndDropViewProps extends DragAndDropProps {
11
+ draggedIndex: number | null;
12
+ itemRefs: React.MutableRefObject<(HTMLDivElement | null)[]>;
13
+ renderItem?: (item: any, index: number) => React.ReactNode;
14
+ handleDragStart: (e: React.MouseEvent | React.TouchEvent, index: number) => void;
15
+ views?: {
16
+ container?: ViewProps;
17
+ item?: ViewProps;
18
+ };
19
+ }
@@ -1,10 +1,3 @@
1
1
  import React from 'react';
2
- import { DragAndDropProps } from './DragAndDrop.props';
3
- interface DragAndDropViewProps extends DragAndDropProps {
4
- draggedIndex: number | null;
5
- itemRefs: React.MutableRefObject<(HTMLDivElement | null)[]>;
6
- renderItem?: (item: any, index: number) => React.ReactNode;
7
- handleDragStart: (e: React.MouseEvent | React.TouchEvent, index: number) => void;
8
- }
2
+ import { DragAndDropViewProps } from './DragAndDrop.props';
9
3
  export declare const DragAndDropView: React.FC<DragAndDropViewProps>;
10
- export {};
@@ -1,10 +1,14 @@
1
1
  import React from 'react';
2
2
  import { ViewProps, ImageProps } from 'app-studio';
3
- export declare type FileProps = {
3
+ export interface FileProps extends ViewProps {
4
4
  src: string;
5
5
  color?: string;
6
- } & ViewProps;
7
- export declare const FileSVG: ({ src, color, themeMode: elementMode, ...props }: FileProps) => React.JSX.Element;
6
+ views?: {
7
+ container?: ViewProps;
8
+ image?: ImageProps;
9
+ };
10
+ }
11
+ export declare const FileSVG: ({ src, color, views, themeMode: elementMode, ...props }: FileProps) => React.JSX.Element;
8
12
  export declare const FileImage: ({ path, ...props }: {
9
13
  path: string;
10
14
  } & ImageProps) => React.JSX.Element;
@@ -1,14 +1,14 @@
1
- import React, { CSSProperties } from 'react';
1
+ import React from 'react';
2
2
  import { Elevation } from '../../../../utils/elevation';
3
3
  import { InputProps, Shadow } from 'app-studio';
4
4
  import { CheckboxStyles, Size } from './Checkbox.type';
5
+ import { ViewProps } from 'app-studio';
5
6
  export interface CheckboxProps extends Omit<InputProps, 'size'> {
6
7
  id?: string;
7
8
  icon?: React.ReactNode;
8
9
  error?: any;
9
10
  name?: string;
10
11
  label?: string;
11
- colorScheme?: string;
12
12
  isChecked?: boolean;
13
13
  defaultIsSelected?: boolean;
14
14
  isReadOnly?: boolean;
@@ -17,9 +17,9 @@ export interface CheckboxProps extends Omit<InputProps, 'size'> {
17
17
  labelPosition?: 'left' | 'right';
18
18
  onChange?: Function;
19
19
  onValueChange?: Function;
20
- styles?: CheckboxStyles;
20
+ views?: CheckboxStyles;
21
21
  size?: Size;
22
- shadow?: Shadow | Elevation | CSSProperties;
22
+ shadow?: Shadow | Elevation | ViewProps;
23
23
  infoText?: string;
24
24
  }
25
25
  export interface CheckboxViewProps extends CheckboxProps {
@@ -1,4 +1,4 @@
1
- import { CSSProperties } from 'react';
1
+ import { ViewProps } from 'app-studio';
2
2
  import { Size } from './Checkbox.type';
3
- export declare const Sizes: Record<Size, CSSProperties>;
3
+ export declare const Sizes: Record<Size, ViewProps>;
4
4
  export declare const IconSizes: Record<Size, number>;
@@ -12,7 +12,7 @@ export interface ComboBoxProps extends Omit<InputProps, 'size'> {
12
12
  label?: string;
13
13
  showTick?: boolean;
14
14
  placeholder?: string;
15
- styles?: ComboBoxStyles;
15
+ views?: ComboBoxStyles;
16
16
  searchPlaceholder?: string;
17
17
  }
18
18
  export interface ComboBoxItem {
@@ -1,13 +1,11 @@
1
- import { CSSProperties } from 'react';
2
1
  import { Elevation } from '../../../../utils/elevation';
3
- import { InputProps, Shadow } from 'app-studio';
2
+ import { InputProps, Shadow, ViewProps } from 'app-studio';
4
3
  import { Country, CountryPickerStyles, Shape, Size, Variant } from './CountryPicker.type';
5
4
  export interface CountryPickerProps extends Omit<InputProps, 'size'> {
6
5
  id?: string;
7
6
  error?: boolean;
8
7
  name?: string;
9
8
  label?: string;
10
- colorScheme?: string;
11
9
  helperText?: string;
12
10
  placeholder?: string;
13
11
  shape?: Shape;
@@ -16,11 +14,11 @@ export interface CountryPickerProps extends Omit<InputProps, 'size'> {
16
14
  isDisabled?: boolean;
17
15
  onBlur?: (value: any) => void;
18
16
  onChange?: (value: any) => void;
19
- styles?: CountryPickerStyles;
17
+ views?: CountryPickerStyles;
20
18
  size?: Size;
21
19
  value?: string | number;
22
20
  variant?: Variant;
23
- shadow?: Shadow | Elevation | CSSProperties;
21
+ shadow?: Shadow | Elevation | ViewProps;
24
22
  }
25
23
  export interface CountryPickerViewProps extends CountryPickerProps {
26
24
  isHovered?: boolean;
@@ -37,12 +35,12 @@ export interface CountryPickerViewProps extends CountryPickerProps {
37
35
  export interface CountryPickerDropDownProps extends Omit<InputProps, 'size'> {
38
36
  size?: Size;
39
37
  callback?: Function;
40
- options: Array<Country>;
41
- styles?: CountryPickerStyles;
38
+ options?: Array<Country>;
39
+ views?: CountryPickerStyles;
42
40
  }
43
- export interface DropDownItemProps extends Omit<InputProps, 'size'> {
41
+ export interface DropDownItemProps extends InputProps {
44
42
  callback?: Function;
45
- option: string;
43
+ option?: string;
46
44
  size?: Size;
47
- styles?: CountryPickerStyles;
45
+ views?: CountryPickerStyles;
48
46
  }
@@ -2,5 +2,4 @@ import React from 'react';
2
2
  import { CountryPickerViewProps, DropDownItemProps, CountryPickerDropDownProps } from './CountryPicker.props';
3
3
  export declare const DropDownItem: React.FC<DropDownItemProps>;
4
4
  export declare const DropDown: React.FC<CountryPickerDropDownProps>;
5
- declare const CountryPickerView: React.FC<CountryPickerViewProps>;
6
- export default CountryPickerView;
5
+ export declare const CountryPickerView: React.FC<CountryPickerViewProps>;
@@ -1,4 +1,4 @@
1
- import React, { CSSProperties } from 'react';
1
+ import React from 'react';
2
2
  import { Elevation } from '../../../../utils/elevation';
3
3
  import { Shadow, ViewProps } from 'app-studio';
4
4
  import { DatePickerStyles, Shape, Size, Variant } from './DatePicker.type';
@@ -23,7 +23,6 @@ export interface DatePickerProps extends Omit<ViewProps, 'size'> {
23
23
  /**
24
24
  * The color scheme that changes the background color of the DatePicker.
25
25
  */
26
- colorScheme?: string;
27
26
  /**
28
27
  * If true, the DatePicker cannot be selected.
29
28
  */
@@ -47,7 +46,7 @@ export interface DatePickerProps extends Omit<ViewProps, 'size'> {
47
46
  /**
48
47
  * CSS styles for the DatePicker container and label.
49
48
  */
50
- styles?: DatePickerStyles;
49
+ views?: DatePickerStyles;
51
50
  /**
52
51
  * The shape that changes the outlines of the field.
53
52
  */
@@ -63,7 +62,7 @@ export interface DatePickerProps extends Omit<ViewProps, 'size'> {
63
62
  /**
64
63
  * Adds a shadow effect to the DatePicker.
65
64
  */
66
- shadow?: Shadow | Elevation | CSSProperties;
65
+ shadow?: Shadow | Elevation | ViewProps;
67
66
  }
68
67
  export interface DatePickerViewProps extends DatePickerProps {
69
68
  /**
@@ -17,7 +17,6 @@ export declare const usePasswordState: (props: PasswordProps) => {
17
17
  error?: any;
18
18
  helperText?: string | undefined;
19
19
  label?: string | undefined;
20
- colorScheme?: string | undefined;
21
20
  left?: import("react").ReactNode;
22
21
  right?: import("react").ReactNode;
23
22
  placeholder?: string | undefined;
@@ -32,7 +31,7 @@ export declare const usePasswordState: (props: PasswordProps) => {
32
31
  size?: "xs" | "sm" | "md" | "lg" | "xl" | undefined;
33
32
  shadow?: import("react").CSSProperties | import("app-studio").Shadow | import("../../../../utils/elevation").Elevation | undefined;
34
33
  shape?: "default" | "sharp" | "rounded" | "pillShaped" | undefined;
35
- styles?: import("../../TextField/TextField/TextField.type").TextFieldStyles | undefined;
34
+ views?: import("../../TextField/TextField/TextField.type").TextFieldStyles | undefined;
36
35
  variant?: "outline" | "default" | "none" | undefined;
37
36
  isVisible: boolean;
38
37
  setIsVisible: import("react").Dispatch<import("react").SetStateAction<boolean>>;
@@ -1,13 +1,11 @@
1
- import { CSSProperties } from 'react';
2
1
  import { Elevation } from '../../../../utils/elevation';
3
- import { InputProps, Shadow } from 'app-studio';
2
+ import { InputProps, Shadow, ViewProps } from 'app-studio';
4
3
  import { SelectStyles, Shape, Size, Variant, Option } from './Select.type';
5
4
  export interface SelectProps extends Omit<InputProps, 'size'> {
6
5
  id?: string;
7
6
  error?: boolean;
8
7
  name?: string;
9
8
  label?: string;
10
- colorScheme?: string;
11
9
  helperText?: string;
12
10
  placeholder?: string;
13
11
  options: Option[];
@@ -17,9 +15,9 @@ export interface SelectProps extends Omit<InputProps, 'size'> {
17
15
  onChange?: (value: any) => void;
18
16
  shape?: Shape;
19
17
  variant?: Variant;
20
- styles?: SelectStyles;
18
+ views?: SelectStyles;
21
19
  size?: Size;
22
- shadow?: Shadow | Elevation | CSSProperties;
20
+ shadow?: Shadow | Elevation | ViewProps;
23
21
  isScrollable?: boolean;
24
22
  }
25
23
  export interface SelectViewProps extends SelectProps {
@@ -38,7 +36,7 @@ export interface SelectBoxProps {
38
36
  isDisabled?: boolean;
39
37
  placeholder?: string;
40
38
  removeOption?: Function;
41
- styles?: SelectStyles;
39
+ views?: SelectStyles;
42
40
  size?: Size;
43
41
  }
44
42
  export interface MultiSelectProps extends Omit<InputProps, 'size'> {
@@ -66,5 +64,5 @@ export interface DropDownProps extends Omit<InputProps, 'size'> {
66
64
  size?: Size;
67
65
  callback?: Function;
68
66
  options: Option[];
69
- styles?: SelectStyles;
67
+ views?: SelectStyles;
70
68
  }
@@ -1,4 +1,4 @@
1
- import { CSSProperties } from 'react';
1
+ import { ViewProps } from 'app-studio';
2
2
  import { Size } from './Select.type';
3
- export declare const Sizes: Record<Size, CSSProperties>;
3
+ export declare const Sizes: Record<Size, ViewProps>;
4
4
  export declare const IconSizes: Record<Size, number>;
@@ -1,18 +1,17 @@
1
- import { CSSProperties } from 'react';
1
+ /// <reference types="react" />
2
2
  import { Elevation } from '../../../../utils/elevation';
3
- import { InputProps, Shadow } from 'app-studio';
3
+ import { InputProps, Shadow, ViewProps } from 'app-studio';
4
4
  import { Size, SwitchStyles } from './Switch.type';
5
5
  export interface SwitchProps extends Omit<InputProps, 'size'> {
6
6
  activeChild?: React.ReactNode;
7
- colorScheme?: string;
8
7
  id?: string;
9
8
  isDisabled?: boolean;
10
9
  isReadOnly?: boolean;
11
10
  onChange?: Function;
12
11
  name?: string;
13
12
  inActiveChild?: React.ReactNode;
14
- styles?: SwitchStyles;
15
- shadow?: Shadow | Elevation | CSSProperties;
13
+ views?: SwitchStyles;
14
+ shadow?: Shadow | Elevation | ViewProps;
16
15
  size?: Size;
17
16
  labelPosition?: 'left' | 'right';
18
17
  }
@@ -1,5 +1,5 @@
1
- import { CSSProperties } from 'react';
1
+ import { ViewProps } from 'app-studio';
2
2
  import { Size } from './Switch.type';
3
- export declare const KnobSizes: Record<Size, CSSProperties>;
4
- export declare const SliderSizes: Record<Size, CSSProperties>;
3
+ export declare const KnobSizes: Record<Size, ViewProps>;
4
+ export declare const SliderSizes: Record<Size, ViewProps>;
5
5
  export declare const SliderPadding: Record<Size, Record<string, number>>;
@@ -1,9 +1,7 @@
1
- import { CSSProperties } from 'react';
2
- import { InputProps, Shadow } from 'app-studio';
1
+ import { InputProps, Shadow, ViewProps } from 'app-studio';
3
2
  import { Elevation } from '../../../../utils/elevation';
4
3
  import { Shape, Size, TextAreaStyles, Variant } from './TextArea.type';
5
4
  export interface TextAreaProps extends Omit<InputProps, 'size'> {
6
- colorScheme?: string;
7
5
  defaultValue?: string;
8
6
  error?: boolean;
9
7
  isEditable?: boolean;
@@ -23,9 +21,9 @@ export interface TextAreaProps extends Omit<InputProps, 'size'> {
23
21
  onBlur?: (value: any) => void;
24
22
  onFocus?: () => void;
25
23
  size?: Size;
26
- shadow?: Shadow | Elevation | CSSProperties;
24
+ shadow?: Shadow | Elevation | ViewProps;
27
25
  shape?: Shape;
28
- styles?: TextAreaStyles;
26
+ views?: TextAreaStyles;
29
27
  value?: string | number;
30
28
  variant?: Variant;
31
29
  }
@@ -1,11 +1,11 @@
1
- import { CSSProperties } from 'react';
1
+ import { ViewProps } from 'app-studio';
2
2
  export declare type Variant = 'outline' | 'default' | 'none';
3
3
  export declare type Shape = 'default' | 'sharp' | 'rounded';
4
4
  export declare type Size = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
5
5
  export declare type TextAreaStyles = {
6
- box?: CSSProperties;
7
- text?: CSSProperties;
8
- label?: CSSProperties;
9
- helperText?: CSSProperties;
10
- field?: CSSProperties;
6
+ box?: ViewProps;
7
+ text?: ViewProps;
8
+ label?: ViewProps;
9
+ helperText?: ViewProps;
10
+ field?: ViewProps;
11
11
  };
@@ -1,5 +1,5 @@
1
- import React, { CSSProperties } from 'react';
2
- import { InputProps, Shadow } from 'app-studio';
1
+ import React from 'react';
2
+ import { InputProps, Shadow, ViewProps } from 'app-studio';
3
3
  import { Elevation } from '../../../../utils/elevation';
4
4
  import { Shape, Size, TextFieldStyles, Variant } from './TextField.type';
5
5
  export interface TextFieldProps extends Omit<InputProps, 'size'> {
@@ -8,7 +8,6 @@ export interface TextFieldProps extends Omit<InputProps, 'size'> {
8
8
  helperText?: string;
9
9
  name?: string;
10
10
  label?: string;
11
- colorScheme?: string;
12
11
  left?: React.ReactNode;
13
12
  right?: React.ReactNode;
14
13
  placeholder?: string;
@@ -22,9 +21,9 @@ export interface TextFieldProps extends Omit<InputProps, 'size'> {
22
21
  onClick?: () => void;
23
22
  onFocus?: () => void;
24
23
  size?: Size;
25
- shadow?: Shadow | Elevation | CSSProperties;
24
+ shadow?: Shadow | Elevation | ViewProps;
26
25
  shape?: Shape;
27
- styles?: TextFieldStyles;
26
+ views?: TextFieldStyles;
28
27
  value?: string;
29
28
  variant?: Variant;
30
29
  }
@@ -1,10 +1,8 @@
1
1
  import { ViewProps } from 'app-studio';
2
2
  import React from 'react';
3
- export interface IconProps extends Omit<ViewProps, 'size'> {
4
- size?: number;
3
+ export interface IconProps extends ViewProps {
5
4
  color?: string;
6
5
  filled?: boolean;
7
- strokeWidth?: number;
8
6
  orientation?: 'left' | 'right' | 'up' | 'down';
9
7
  }
10
8
  export declare const ChevronIcon: React.FC<IconProps>;
@@ -1,4 +1,4 @@
1
1
  import React from 'react';
2
2
  import { CenterProps } from './Center.props';
3
- export declare const CenterBase: React.ForwardRefExoticComponent<Pick<import("app-studio").ElementProps & React.RefAttributes<HTMLElement> & import("app-studio").ViewProps & CenterProps, string | number> & React.RefAttributes<HTMLElement>>;
4
- export declare const Center: React.ForwardRefExoticComponent<import("app-studio").ElementProps & React.RefAttributes<HTMLElement> & import("app-studio").ViewProps & CenterProps>;
3
+ export declare const CenterBase: React.ForwardRefExoticComponent<Pick<Pick<import("app-studio").ElementProps, string | number> & React.RefAttributes<HTMLElement> & import("app-studio").ViewProps & CenterProps, string | number> & React.RefAttributes<HTMLElement>>;
4
+ export declare const Center: React.ForwardRefExoticComponent<Pick<import("app-studio").ElementProps, string | number> & React.RefAttributes<HTMLElement> & import("app-studio").ViewProps & CenterProps>;
@@ -1,3 +1,3 @@
1
- import { ViewProps } from '../View/View';
1
+ import { ViewProps } from 'app-studio';
2
2
  export interface CenterProps extends ViewProps {
3
3
  }
@@ -1,4 +1,4 @@
1
1
  import React from 'react';
2
2
  import { HorizontalProps } from './Horizontal.props';
3
- export declare const HorizontalBase: React.ForwardRefExoticComponent<Pick<import("app-studio").ElementProps & React.RefAttributes<HTMLElement> & import("app-studio").ViewProps & HorizontalProps, string | number> & React.RefAttributes<HTMLElement>>;
4
- export declare const Horizontal: React.ForwardRefExoticComponent<import("app-studio").ElementProps & React.RefAttributes<HTMLElement> & import("app-studio").ViewProps & HorizontalProps>;
3
+ export declare const HorizontalBase: React.ForwardRefExoticComponent<Pick<Pick<import("app-studio").ElementProps, string | number> & React.RefAttributes<HTMLElement> & import("app-studio").ViewProps & HorizontalProps, string | number> & React.RefAttributes<HTMLElement>>;
4
+ export declare const Horizontal: React.ForwardRefExoticComponent<Pick<import("app-studio").ElementProps, string | number> & React.RefAttributes<HTMLElement> & import("app-studio").ViewProps & HorizontalProps>;
@@ -17,5 +17,5 @@ export interface ContainerProps extends ViewProps {
17
17
  /**
18
18
  * CSS styles for the select box and dropdown.
19
19
  */
20
- styles?: TextFieldStyles;
20
+ views?: TextFieldStyles;
21
21
  }
@@ -1,4 +1,4 @@
1
- import React, { CSSProperties } from 'react';
1
+ import React from 'react';
2
2
  import { Shape, Size, TextFieldStyles, Variant } from '../../../../Layout/configs/Input.type';
3
3
  import { Elevation } from '../../../../../utils/elevation';
4
4
  import { Shadow, ViewProps } from 'app-studio';
@@ -7,10 +7,6 @@ export interface ContentProps extends Omit<ViewProps, 'size'> {
7
7
  * The color of the Content component.
8
8
  */
9
9
  color?: string;
10
- /**
11
- * Changes the color style of the field.
12
- */
13
- colorScheme?: string;
14
10
  /**
15
11
  * The content to be rendered inside the Content component.
16
12
  */
@@ -62,9 +58,9 @@ export interface ContentProps extends Omit<ViewProps, 'size'> {
62
58
  /**
63
59
  * CSS styles applied to the Content component. Default value is an empty object.
64
60
  */
65
- styles?: TextFieldStyles;
61
+ views?: TextFieldStyles;
66
62
  /**
67
63
  * The shadow effect applied to the Content component.
68
64
  */
69
- shadow?: Shadow | Elevation | CSSProperties;
65
+ shadow?: Shadow | Elevation | ViewProps;
70
66
  }