@app-studio/web 0.9.10 → 0.9.12

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.
@@ -1,5 +1,7 @@
1
1
  import { ReactNode } from 'react';
2
2
  import { ViewProps } from 'app-studio';
3
+ import { GradientProps } from '../../Gradient/Gradient/Gradient.props';
4
+ import { BackgroundSize, BackgroundPosition, BackgroundRepeat, BlendMode } from './Background.type';
3
5
  /**
4
6
  * Base Background component props
5
7
  */
@@ -58,6 +60,64 @@ export interface RipplesProps extends Omit<ViewProps, 'colors'> {
58
60
  maxSize?: number;
59
61
  frequency?: number;
60
62
  }
63
+ /**
64
+ * Background Image component props
65
+ */
66
+ export interface BackgroundImageProps extends Omit<BackgroundProps, 'position'> {
67
+ /**
68
+ * Image source URL
69
+ */
70
+ src: string;
71
+ /**
72
+ * Background size
73
+ * @default 'cover'
74
+ */
75
+ backgroundSize?: BackgroundSize;
76
+ /**
77
+ * Background position
78
+ * @default 'center'
79
+ */
80
+ backgroundPosition?: BackgroundPosition;
81
+ /**
82
+ * Background repeat
83
+ * @default 'no-repeat'
84
+ */
85
+ backgroundRepeat?: BackgroundRepeat;
86
+ /**
87
+ * Background attachment
88
+ * @default 'scroll'
89
+ */
90
+ backgroundAttachment?: 'scroll' | 'fixed' | 'local';
91
+ /**
92
+ * Image opacity
93
+ * @default 1
94
+ */
95
+ imageOpacity?: number;
96
+ /**
97
+ * Overlay color to blend with image
98
+ */
99
+ overlay?: string;
100
+ /**
101
+ * Blend mode for overlay
102
+ * @default 'normal'
103
+ */
104
+ blendMode?: BlendMode;
105
+ /**
106
+ * Custom views for styling
107
+ */
108
+ views?: {
109
+ container?: ViewProps;
110
+ content?: ViewProps;
111
+ image?: ViewProps;
112
+ overlay?: ViewProps;
113
+ };
114
+ }
115
+ /**
116
+ * Background Gradient component props
117
+ * Extends GradientProps and adds Background-specific functionality
118
+ */
119
+ export interface BackgroundGradientProps extends GradientProps {
120
+ }
61
121
  /**
62
122
  * Background styles for customization
63
123
  */
@@ -66,4 +126,6 @@ export interface BackgroundStyles {
66
126
  content?: ViewProps;
67
127
  aurora?: ViewProps;
68
128
  meteors?: ViewProps;
129
+ image?: ViewProps;
130
+ gradient?: ViewProps;
69
131
  }
@@ -13,6 +13,15 @@ export declare const AuroraStyles: {
13
13
  container: ViewProps;
14
14
  gradient: ViewProps;
15
15
  };
16
+ /**
17
+ * Background Image styles
18
+ */
19
+ export declare const BackgroundImageStyles: {
20
+ container: ViewProps;
21
+ image: ViewProps;
22
+ overlay: ViewProps;
23
+ content: ViewProps;
24
+ };
16
25
  /**
17
26
  * Meteors effect styles
18
27
  */
@@ -2,7 +2,7 @@ import { ViewProps } from 'app-studio';
2
2
  /**
3
3
  * Background effect types
4
4
  */
5
- export declare type BackgroundEffect = 'aurora' | 'meteors' | 'borderMoving' | 'animatedStroke';
5
+ export declare type BackgroundEffect = 'aurora' | 'meteors' | 'particles' | 'grid' | 'ripples' | 'wall' | 'image' | 'gradient' | 'borderMoving' | 'animatedStroke';
6
6
  /**
7
7
  * Aurora gradient direction options
8
8
  */
@@ -32,6 +32,22 @@ export declare type StrokeAnimationStyles = {
32
32
  rect?: ViewProps;
33
33
  text?: ViewProps;
34
34
  };
35
+ /**
36
+ * Background image sizing options
37
+ */
38
+ export declare type BackgroundSize = 'auto' | 'cover' | 'contain' | string;
39
+ /**
40
+ * Background image positioning options
41
+ */
42
+ export declare type BackgroundPosition = 'center' | 'top' | 'right' | 'bottom' | 'left' | 'top-right' | 'top-left' | 'bottom-right' | 'bottom-left' | string;
43
+ /**
44
+ * Background image repeat options
45
+ */
46
+ export declare type BackgroundRepeat = 'repeat' | 'repeat-x' | 'repeat-y' | 'no-repeat' | 'space' | 'round';
47
+ /**
48
+ * CSS blend mode options for overlays
49
+ */
50
+ export declare type BlendMode = 'normal' | 'multiply' | 'screen' | 'overlay' | 'darken' | 'lighten' | 'color-dodge' | 'color-burn' | 'hard-light' | 'soft-light' | 'difference' | 'exclusion';
35
51
  /**
36
52
  * Background context type for compound components
37
53
  */
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { BackgroundProps, AuroraBackgroundProps, MeteorsProps, WallProps, ParticlesProps, GridProps, RipplesProps } from './Background.props';
2
+ import { BackgroundProps, AuroraBackgroundProps, MeteorsProps, WallProps, ParticlesProps, GridProps, RipplesProps, BackgroundImageProps, BackgroundGradientProps } from './Background.props';
3
3
  /**
4
4
  * Main Background View Component with compound pattern
5
5
  */
@@ -10,6 +10,8 @@ interface BackgroundViewComponent extends React.FC<BackgroundProps> {
10
10
  Particles: React.FC<ParticlesProps>;
11
11
  Grid: React.FC<GridProps>;
12
12
  Ripples: React.FC<RipplesProps>;
13
+ Image: React.FC<BackgroundImageProps>;
14
+ Gradient: React.FC<BackgroundGradientProps>;
13
15
  }
14
16
  export declare const BackgroundView: BackgroundViewComponent;
15
17
  export {};
@@ -1,8 +1,10 @@
1
1
  /**
2
2
  * Background Component
3
3
  *
4
- * A collection of animated background effects including Aurora, Meteors,
5
- * and animated border effects following the design system guidelines.
4
+ * A comprehensive collection of background effects including animated backgrounds
5
+ * (Aurora, Meteors, Particles, Grid, Ripples, Wall), background images with overlays,
6
+ * and gradient backgrounds. All components follow the design system guidelines and
7
+ * integrate seamlessly with the app-studio theme system.
6
8
  */
7
9
  import React from 'react';
8
10
  import { BackgroundProps } from './Background/Background.props';
@@ -13,4 +15,6 @@ export declare const Background: React.ForwardRefExoticComponent<Pick<Background
13
15
  Particles: React.FC<import("./Background/Background.props").ParticlesProps>;
14
16
  Grid: React.FC<import("./Background/Background.props").GridProps>;
15
17
  Ripples: React.FC<import("./Background/Background.props").RipplesProps>;
18
+ Image: React.FC<import("./Background/Background.props").BackgroundImageProps>;
19
+ Gradient: React.FC<import("./Background/Background.props").BackgroundGradientProps>;
16
20
  };
@@ -1,3 +1,3 @@
1
1
  export { Background } from './Background';
2
- export type { BackgroundProps, AuroraBackgroundProps, MeteorsProps, WallProps, ParticlesProps, GridProps, RipplesProps, BackgroundStyles, } from './Background/Background.props';
3
- export type { BackgroundEffect, AuroraDirection, MeteorTiming, BorderAnimationStyles, StrokeAnimationStyles, BackgroundContextType, } from './Background/Background.type';
2
+ export type { BackgroundProps, AuroraBackgroundProps, MeteorsProps, WallProps, ParticlesProps, GridProps, RipplesProps, BackgroundImageProps, BackgroundGradientProps, BackgroundStyles, } from './Background/Background.props';
3
+ export type { BackgroundEffect, AuroraDirection, MeteorTiming, BorderAnimationStyles, StrokeAnimationStyles, BackgroundContextType, BackgroundSize, BackgroundPosition, BackgroundRepeat, BlendMode, } from './Background/Background.type';
@@ -0,0 +1,12 @@
1
+ import React from 'react';
2
+ import { ChatInputProps } from '../ChatInput/ChatInput/ChatInput.props';
3
+ interface FormikChatInputProps extends Omit<ChatInputProps, 'value' | 'onChange' | 'onSubmit' | 'getPendingFiles' | 'clearPendingFiles'> {
4
+ name: string;
5
+ onSubmit?: (message: string, options?: any) => void;
6
+ }
7
+ /**
8
+ * ChatInput is a component used to create a chat input field with file upload support,
9
+ * auto-completion, mentions, and other advanced features, integrated with Formik.
10
+ */
11
+ export declare const FormikChatInput: React.FC<FormikChatInputProps>;
12
+ export {};
@@ -4,4 +4,6 @@ import { TagInputProps } from '../Form/TagInput/TagInput/TagInput.props';
4
4
  * TagInput allows users to add and manage a list of tags.
5
5
  * Integrated with Formik for form validation and state management.
6
6
  */
7
- export declare const FormikTagInput: React.FC<TagInputProps>;
7
+ export declare const FormikTagInput: React.FC<TagInputProps & {
8
+ name: string;
9
+ }>;
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ export declare const FormikChatInputExample: () => React.JSX.Element;
3
+ export declare const FormikChatInputSimpleExample: () => React.JSX.Element;
@@ -1,4 +1,5 @@
1
1
  export * from './FormikCheckbox';
2
+ export * from './FormikChatInput';
2
3
  export * from './FormikColorInput';
3
4
  export * from './FormikComboBox';
4
5
  export * from './FormikCountryPicker';
@@ -1,9 +1,11 @@
1
1
  export { FormikCheckbox } from './Formik.Checkbox';
2
+ export { FormikChatInput } from './Formik.ChatInput';
2
3
  export { FormikColorInput } from './Formik.ColorInput';
3
4
  export { FormikDatePicker } from './Formik.DatePicker';
4
5
  export { FormikCountryPicker } from './Formik.CountryPicker';
5
6
  export { FormikSelect } from './Formik.Select';
6
7
  export { FormikSwitch } from './Formik.Switch';
8
+ export { FormikTagInput } from './Formik.TagInput';
7
9
  export { FormikTextArea } from './Formik.TextArea';
8
10
  export { FormikTextField } from './Formik.TextField';
9
11
  export { FormikPassword } from './Formik.Password';