@app-studio/web 0.8.90 → 0.8.92

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 (48) hide show
  1. package/dist/components/CookieConsent/CookieConsent/CookieConsent.props.d.ts +57 -0
  2. package/dist/components/CookieConsent/CookieConsent/CookieConsent.state.d.ts +13 -0
  3. package/dist/components/CookieConsent/CookieConsent/CookieConsent.style.d.ts +68 -0
  4. package/dist/components/CookieConsent/CookieConsent/CookieConsent.type.d.ts +13 -0
  5. package/dist/components/CookieConsent/CookieConsent/CookieConsent.view.d.ts +8 -0
  6. package/dist/components/CookieConsent/CookieConsent.d.ts +3 -0
  7. package/dist/components/CookieConsent/examples/custom.d.ts +5 -0
  8. package/dist/components/CookieConsent/examples/default.d.ts +5 -0
  9. package/dist/components/CookieConsent/examples/index.d.ts +4 -0
  10. package/dist/components/CookieConsent/examples/positions.d.ts +5 -0
  11. package/dist/components/CookieConsent/examples/variants.d.ts +5 -0
  12. package/dist/components/Icon/Icon.d.ts +4 -1
  13. package/dist/components/Title/Title/Title.props.d.ts +88 -0
  14. package/dist/components/Title/Title/Title.state.d.ts +10 -0
  15. package/dist/components/Title/Title/Title.style.d.ts +25 -0
  16. package/dist/components/Title/Title/Title.type.d.ts +17 -0
  17. package/dist/components/Title/Title/Title.view.d.ts +4 -0
  18. package/dist/components/Title/Title/TypewriterEffect.d.ts +17 -0
  19. package/dist/components/Title/Title/useInView.d.ts +9 -0
  20. package/dist/components/Title/Title.d.ts +3 -0
  21. package/dist/components/Title/examples/alternating.d.ts +5 -0
  22. package/dist/components/Title/examples/animated.d.ts +5 -0
  23. package/dist/components/Title/examples/custom.d.ts +5 -0
  24. package/dist/components/Title/examples/default.d.ts +5 -0
  25. package/dist/components/Title/examples/directAnimation.d.ts +5 -0
  26. package/dist/components/Title/examples/gradient.d.ts +5 -0
  27. package/dist/components/Title/examples/hero.d.ts +5 -0
  28. package/dist/components/Title/examples/highlight.d.ts +5 -0
  29. package/dist/components/Title/examples/highlightStyles.d.ts +5 -0
  30. package/dist/components/Title/examples/highlighted.d.ts +5 -0
  31. package/dist/components/Title/examples/index.d.ts +12 -0
  32. package/dist/components/Title/examples/responsive.d.ts +5 -0
  33. package/dist/components/Title/examples/typewriterHighlight.d.ts +5 -0
  34. package/dist/components/Title/index.d.ts +1 -0
  35. package/dist/components/index.d.ts +4 -0
  36. package/dist/pages/cookieConsent.page.d.ts +6 -0
  37. package/dist/pages/title.page.d.ts +6 -0
  38. package/dist/web.cjs.development.js +842 -133
  39. package/dist/web.cjs.development.js.map +1 -1
  40. package/dist/web.cjs.production.min.js +1 -1
  41. package/dist/web.cjs.production.min.js.map +1 -1
  42. package/dist/web.esm.js +839 -135
  43. package/dist/web.esm.js.map +1 -1
  44. package/dist/web.umd.development.js +843 -135
  45. package/dist/web.umd.development.js.map +1 -1
  46. package/dist/web.umd.production.min.js +1 -1
  47. package/dist/web.umd.production.min.js.map +1 -1
  48. package/package.json +2 -2
@@ -0,0 +1,57 @@
1
+ /// <reference types="react" />
2
+ import { ViewProps } from 'app-studio';
3
+ import { CookieConsentPosition, CookieConsentStyles, CookieConsentVariant } from './CookieConsent.type';
4
+ /**
5
+ * Props for the CookieConsent component
6
+ */
7
+ export interface CookieConsentProps extends Omit<ViewProps, 'position'> {
8
+ /**
9
+ * Title of the cookie consent banner
10
+ */
11
+ title?: string;
12
+ /**
13
+ * Description text explaining cookie usage
14
+ */
15
+ description?: string | React.ReactNode;
16
+ /**
17
+ * Text for the accept button
18
+ */
19
+ acceptButtonText?: string;
20
+ /**
21
+ * Text for the customize button
22
+ */
23
+ customizeButtonText?: string;
24
+ /**
25
+ * Position of the banner on the screen
26
+ */
27
+ position?: CookieConsentPosition;
28
+ /**
29
+ * Visual variant of the banner
30
+ */
31
+ variant?: CookieConsentVariant;
32
+ /**
33
+ * Function called when user accepts cookies
34
+ */
35
+ onAccept?: () => void;
36
+ /**
37
+ * Function called when user wants to customize cookie preferences
38
+ */
39
+ onCustomize?: () => void;
40
+ /**
41
+ * Custom styles for the component
42
+ */
43
+ views?: CookieConsentStyles;
44
+ /**
45
+ * Whether to show the customize button
46
+ */
47
+ showCustomizeButton?: boolean;
48
+ /**
49
+ * Cookie expiration in days
50
+ */
51
+ cookieExpiration?: number;
52
+ /**
53
+ * Optional theme mode override ('light' or 'dark')
54
+ * If not provided, the component will use the theme mode from context
55
+ */
56
+ themeMode?: 'light' | 'dark';
57
+ }
@@ -0,0 +1,13 @@
1
+ /// <reference types="react" />
2
+ /**
3
+ * Custom hook to manage cookie consent state
4
+ * @param cookieExpiration Number of days until the cookie expires
5
+ * @returns State and functions for managing cookie consent
6
+ */
7
+ export declare const useCookieConsentState: (cookieExpiration?: number) => {
8
+ isHovered: boolean;
9
+ setIsHovered: import("react").Dispatch<import("react").SetStateAction<boolean>>;
10
+ hasConsent: boolean | null;
11
+ acceptCookies: () => void;
12
+ resetConsent: () => void;
13
+ };
@@ -0,0 +1,68 @@
1
+ /**
2
+ * Get theme-based styles for the CookieConsent component
3
+ */
4
+ export declare const getThemes: (themeMode: 'light' | 'dark') => {
5
+ default: {
6
+ container: {
7
+ backgroundColor: string;
8
+ borderColor: string;
9
+ boxShadow: string;
10
+ };
11
+ content: {
12
+ color: string;
13
+ };
14
+ acceptButton: {
15
+ backgroundColor: string;
16
+ color: string;
17
+ hoverBackgroundColor: string;
18
+ };
19
+ customizeButton: {
20
+ backgroundColor: string;
21
+ color: string;
22
+ borderColor: string;
23
+ hoverBackgroundColor: string;
24
+ };
25
+ };
26
+ info: {
27
+ container: {
28
+ backgroundColor: string;
29
+ borderColor: string;
30
+ boxShadow: string;
31
+ };
32
+ content: {
33
+ color: string;
34
+ };
35
+ acceptButton: {
36
+ backgroundColor: string;
37
+ color: string;
38
+ hoverBackgroundColor: string;
39
+ };
40
+ customizeButton: {
41
+ backgroundColor: string;
42
+ color: string;
43
+ borderColor: string;
44
+ hoverBackgroundColor: string;
45
+ };
46
+ };
47
+ primary: {
48
+ container: {
49
+ backgroundColor: string;
50
+ borderColor: string;
51
+ boxShadow: string;
52
+ };
53
+ content: {
54
+ color: string;
55
+ };
56
+ acceptButton: {
57
+ backgroundColor: string;
58
+ color: string;
59
+ hoverBackgroundColor: string;
60
+ };
61
+ customizeButton: {
62
+ backgroundColor: string;
63
+ color: string;
64
+ borderColor: string;
65
+ hoverBackgroundColor: string;
66
+ };
67
+ };
68
+ };
@@ -0,0 +1,13 @@
1
+ /**
2
+ * CookieConsent component types
3
+ */
4
+ export declare type CookieConsentPosition = 'bottom' | 'top';
5
+ export declare type CookieConsentVariant = 'default' | 'info' | 'primary';
6
+ export declare type CookieConsentStyles = {
7
+ container?: any;
8
+ title?: any;
9
+ description?: any;
10
+ buttonGroup?: any;
11
+ acceptButton?: any;
12
+ customizeButton?: any;
13
+ };
@@ -0,0 +1,8 @@
1
+ import React from 'react';
2
+ import { CookieConsentProps } from './CookieConsent.props';
3
+ /**
4
+ * CookieConsent View Component
5
+ *
6
+ * Renders a cookie consent banner with customizable styling, position, and content.
7
+ */
8
+ export declare const CookieConsentView: React.FC<CookieConsentProps>;
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ import { CookieConsentProps } from './CookieConsent/CookieConsent.props';
3
+ export declare const CookieConsent: React.FC<CookieConsentProps>;
@@ -0,0 +1,5 @@
1
+ import React from 'react';
2
+ /**
3
+ * Custom styled CookieConsent example
4
+ */
5
+ export declare const CustomCookieConsent: () => React.JSX.Element;
@@ -0,0 +1,5 @@
1
+ import React from 'react';
2
+ /**
3
+ * Default CookieConsent example
4
+ */
5
+ export declare const DefaultCookieConsent: () => React.JSX.Element;
@@ -0,0 +1,4 @@
1
+ export * from './default';
2
+ export * from './variants';
3
+ export * from './positions';
4
+ export * from './custom';
@@ -0,0 +1,5 @@
1
+ import React from 'react';
2
+ /**
3
+ * CookieConsent positions example
4
+ */
5
+ export declare const CookieConsentPositions: () => React.JSX.Element;
@@ -0,0 +1,5 @@
1
+ import React from 'react';
2
+ /**
3
+ * CookieConsent variants example
4
+ */
5
+ export declare const CookieConsentVariants: () => React.JSX.Element;
@@ -6,7 +6,7 @@ export interface IconProps extends ViewProps {
6
6
  orientation?: 'left' | 'right' | 'up' | 'down';
7
7
  }
8
8
  export declare const UserIcon: React.FC<IconProps>;
9
- export declare const HelpIcon: ({ widthHeight, color, filled, strokeWidth, ...props }: IconProps) => React.JSX.Element;
9
+ export declare const HelpIcon: React.FC<IconProps>;
10
10
  export declare const ChevronIcon: React.FC<IconProps>;
11
11
  export declare const DragHandleIcon: React.FC<IconProps>;
12
12
  export declare const FileIcon: React.FC<IconProps>;
@@ -82,3 +82,6 @@ export declare const ShapeIcon: React.FC<IconProps>;
82
82
  export declare const RotateIcon: React.FC<IconProps>;
83
83
  export declare const DocumentIcon: React.FC<IconProps>;
84
84
  export declare const ChartIcon: React.FC<IconProps>;
85
+ export declare const GiftIcon: React.FC<IconProps>;
86
+ export declare const ShieldIcon: React.FC<IconProps>;
87
+ export declare const CheckIcon: React.FC<IconProps>;
@@ -0,0 +1,88 @@
1
+ /// <reference types="react" />
2
+ import { ViewProps } from 'app-studio';
3
+ import { HighlightStyle, TitleSize, TitleStyles } from './Title.type';
4
+ import { AnimationProps } from 'app-studio/dist/utils/constants';
5
+ /**
6
+ * Props for the Title component
7
+ */
8
+ export interface TitleProps extends ViewProps {
9
+ /**
10
+ * Internal prop to indicate if the component is in view
11
+ * @internal
12
+ */
13
+ _isInView?: boolean;
14
+ /**
15
+ * The main text content of the title
16
+ */
17
+ children: React.ReactNode;
18
+ /**
19
+ * Text to be highlighted within the title
20
+ * If not provided, no highlighting will be applied
21
+ */
22
+ highlightText?: string | string[];
23
+ /**
24
+ * Array of strings to cycle through, replacing the text specified in highlightText
25
+ * Used with alternateAnimation to create an infinite loop of changing words
26
+ */
27
+ alternateHighlightText?: string[];
28
+ /**
29
+ * Animation for the highlighted text
30
+ * This can be a single animation object or an array of animation objects
31
+ * for multiple highlighted words
32
+ */
33
+ highlightAnimate?: AnimationProps | AnimationProps[];
34
+ /**
35
+ * Whether to apply a typewriter effect to the highlighted text
36
+ * @default false
37
+ */
38
+ highlightTypewriter?: boolean;
39
+ /**
40
+ * Duration in milliseconds for the typewriter effect on highlighted text
41
+ * @default 1500
42
+ */
43
+ highlightTypewriterDuration?: number;
44
+ /**
45
+ * Style of the highlight effect
46
+ * @default 'background'
47
+ */
48
+ highlightStyle?: HighlightStyle;
49
+ /**
50
+ * Color for the highlight effect
51
+ * @default 'theme.primary'
52
+ */
53
+ highlightColor?: string;
54
+ /**
55
+ * Secondary color for gradient highlights
56
+ * @default 'theme.secondary'
57
+ */
58
+ highlightSecondaryColor?: string;
59
+ /**
60
+ * Animation for the title
61
+ * This should be an animation object with properties like from, to, duration, etc.
62
+ */
63
+ animate?: AnimationProps | AnimationProps[];
64
+ /**
65
+ * Size of the title
66
+ * @default 'xl'
67
+ */
68
+ size?: TitleSize;
69
+ /**
70
+ * Whether to center the title
71
+ * @default false
72
+ */
73
+ centered?: boolean;
74
+ /**
75
+ * Custom styles for different parts of the component
76
+ */
77
+ views?: TitleStyles;
78
+ /**
79
+ * Whether to animate the alternating highlight text
80
+ * @default false
81
+ */
82
+ alternateAnimation?: boolean;
83
+ /**
84
+ * Duration in milliseconds for each alternating highlight text
85
+ * @default 3000
86
+ */
87
+ alternateDuration?: number;
88
+ }
@@ -0,0 +1,10 @@
1
+ /// <reference types="react" />
2
+ import { TitleProps } from './Title.props';
3
+ /**
4
+ * Custom hook for managing Title component state
5
+ */
6
+ export declare const useTitleState: (props: TitleProps) => {
7
+ finalDisplayedText: import("react").ReactNode;
8
+ activeHighlightTarget: string | string[] | undefined;
9
+ highlightTypewriter: boolean;
10
+ };
@@ -0,0 +1,25 @@
1
+ import { ViewProps } from 'app-studio';
2
+ import { TitleSize, HighlightStyle } from './Title.type';
3
+ /**
4
+ * Font sizes for different title sizes
5
+ */
6
+ export declare const TitleSizes: {
7
+ xs: number;
8
+ sm: number;
9
+ md: number;
10
+ lg: number;
11
+ xl: number;
12
+ '2xl': number;
13
+ '3xl': number;
14
+ '4xl': number;
15
+ '5xl': number;
16
+ '6xl': number;
17
+ };
18
+ /**
19
+ * Line heights for different title sizes
20
+ */
21
+ export declare const LineHeights: Record<TitleSize, number>;
22
+ /**
23
+ * Default styles for different highlight types
24
+ */
25
+ export declare const HighlightStyles: Record<HighlightStyle, (color: string, secondaryColor?: string) => ViewProps>;
@@ -0,0 +1,17 @@
1
+ import { ViewProps } from 'app-studio';
2
+ /**
3
+ * Highlight style options for the Title component
4
+ */
5
+ export declare type HighlightStyle = 'underline' | 'background' | 'gradient' | 'outline' | 'glow';
6
+ /**
7
+ * Title size options
8
+ */
9
+ export declare type TitleSize = 'xs' | 'sm' | 'md' | 'lg' | 'xl' | '2xl' | '3xl' | '4xl' | '5xl' | '6xl';
10
+ /**
11
+ * Title styles for customization
12
+ */
13
+ export declare type TitleStyles = {
14
+ container?: ViewProps;
15
+ text?: ViewProps;
16
+ highlight?: ViewProps;
17
+ };
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import { TitleProps } from './Title.props';
3
+ declare const TitleView: React.FC<TitleProps>;
4
+ export default TitleView;
@@ -0,0 +1,17 @@
1
+ import React from 'react';
2
+ interface TypewriterEffectProps {
3
+ text: string | string[];
4
+ typingSpeed?: number;
5
+ pauseTime?: number;
6
+ onComplete?: () => void;
7
+ showCursor?: boolean;
8
+ cursorColor?: string;
9
+ textStyle?: React.CSSProperties;
10
+ as?: React.ElementType;
11
+ [key: string]: any;
12
+ }
13
+ /**
14
+ * A component that creates a typewriter effect for text
15
+ */
16
+ export declare const TypewriterEffect: React.FC<TypewriterEffectProps>;
17
+ export default TypewriterEffect;
@@ -0,0 +1,9 @@
1
+ /// <reference types="react" />
2
+ /**
3
+ * Custom hook to detect when an element is in the viewport
4
+ * @returns An object with a ref to attach to the element and a boolean indicating if the element is in view
5
+ */
6
+ export declare const useInView: () => {
7
+ ref: import("react").MutableRefObject<HTMLElement | null>;
8
+ isInView: boolean;
9
+ };
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ import { TitleProps } from './Title/Title.props';
3
+ export declare const Title: React.FC<TitleProps>;
@@ -0,0 +1,5 @@
1
+ import React from 'react';
2
+ /**
3
+ * Examples of Title with alternating highlight text
4
+ */
5
+ export declare const AlternatingTitle: () => React.JSX.Element;
@@ -0,0 +1,5 @@
1
+ import React from 'react';
2
+ /**
3
+ * Examples of Title with different animation types
4
+ */
5
+ export declare const AnimatedTitle: () => React.JSX.Element;
@@ -0,0 +1,5 @@
1
+ import React from 'react';
2
+ /**
3
+ * Example of Title with custom styling using the views prop
4
+ */
5
+ export declare const CustomTitle: () => React.JSX.Element;
@@ -0,0 +1,5 @@
1
+ import React from 'react';
2
+ /**
3
+ * Default Title examples showing different sizes
4
+ */
5
+ export declare const DefaultTitle: () => React.JSX.Element;
@@ -0,0 +1,5 @@
1
+ import React from 'react';
2
+ /**
3
+ * Example of Title with direct animation props
4
+ */
5
+ export declare const DirectAnimationExample: () => React.JSX.Element;
@@ -0,0 +1,5 @@
1
+ import React from 'react';
2
+ /**
3
+ * Examples of Title with gradient highlight styles
4
+ */
5
+ export declare const GradientTest: () => React.JSX.Element;
@@ -0,0 +1,5 @@
1
+ import React from 'react';
2
+ /**
3
+ * Example of Title in a hero section context
4
+ */
5
+ export declare const HeroTitle: () => React.JSX.Element;
@@ -0,0 +1,5 @@
1
+ import React from 'react';
2
+ /**
3
+ * Examples of Title with different highlight animations
4
+ */
5
+ export declare const HighlightTest: () => React.JSX.Element;
@@ -0,0 +1,5 @@
1
+ import React from 'react';
2
+ /**
3
+ * Examples of Title with different highlight styles applied to the entire title
4
+ */
5
+ export declare const HighlightStylesDemo: () => React.JSX.Element;
@@ -0,0 +1,5 @@
1
+ import React from 'react';
2
+ /**
3
+ * Examples of Title with different highlight styles
4
+ */
5
+ export declare const HighlightedTitle: () => React.JSX.Element;
@@ -0,0 +1,12 @@
1
+ export * from './default';
2
+ export * from './highlighted';
3
+ export * from './animated';
4
+ export * from './hero';
5
+ export * from './responsive';
6
+ export * from './custom';
7
+ export * from './directAnimation';
8
+ export * from './gradient';
9
+ export * from './highlight';
10
+ export * from './alternating';
11
+ export * from './highlightStyles';
12
+ export * from './typewriterHighlight';
@@ -0,0 +1,5 @@
1
+ import React from 'react';
2
+ /**
3
+ * Example of responsive Title using media queries
4
+ */
5
+ export declare const ResponsiveTitle: () => React.JSX.Element;
@@ -0,0 +1,5 @@
1
+ import React from 'react';
2
+ /**
3
+ * Examples of Title with typewriter effect on highlighted text
4
+ */
5
+ export declare const TypewriterHighlightDemo: () => React.JSX.Element;
@@ -0,0 +1 @@
1
+ export * from './Title';
@@ -7,6 +7,7 @@ export * from './Button/Button';
7
7
  export * from './Card/Card';
8
8
  export * from './Carousel/Carousel';
9
9
  export * from './Chart/Chart';
10
+ export * from './CookieConsent/CookieConsent';
10
11
  export * from './ContextMenu/ContextMenu';
11
12
  export * from './File/File';
12
13
  export * from './Form/Select/Select';
@@ -31,6 +32,7 @@ export * from './NavigationMenu/NavigationMenu';
31
32
  export * from './Table/Table';
32
33
  export * from './Tabs/Tabs';
33
34
  export * from './Text/Text';
35
+ export * from './Title/Title';
34
36
  export * from './Icon/Icon';
35
37
  export * as Icon from './Icon/Icon';
36
38
  export * from './Toggle/Toggle';
@@ -55,6 +57,7 @@ export * from './Button/Button/Button.props';
55
57
  export * from './Card/Card/Card.props';
56
58
  export * from './Carousel/Carousel/Carousel.props';
57
59
  export * from './Chart/Chart/Chart.props';
60
+ export * from './CookieConsent/CookieConsent/CookieConsent.props';
58
61
  export * from './ContextMenu/ContextMenu/ContextMenu.props';
59
62
  export * from './Form/Select/Select/Select.props';
60
63
  export * from './Form/Switch/Switch/Switch.props';
@@ -75,6 +78,7 @@ export * from './Uploader/Uploader/Uploader.props';
75
78
  export * from './Table/Table/Table.props';
76
79
  export * from './Tabs/Tabs/Tabs.props';
77
80
  export * from './Text/Text/Text.props';
81
+ export * from './Title/Title/Title.props';
78
82
  export * from './Toggle/Toggle/Toggle.props';
79
83
  export * from './ToggleGroup/ToggleGroup/ToggleGroup.props';
80
84
  export * from './HoverCard/HoverCard/HoverCard.props';
@@ -0,0 +1,6 @@
1
+ import React from 'react';
2
+ /**
3
+ * CookieConsent component showcase page
4
+ */
5
+ declare const CookieConsentPage: () => React.JSX.Element;
6
+ export default CookieConsentPage;
@@ -0,0 +1,6 @@
1
+ import React from 'react';
2
+ /**
3
+ * Title component showcase page
4
+ */
5
+ declare const TitlePage: () => React.JSX.Element;
6
+ export default TitlePage;