@app-studio/web 0.9.5 → 0.9.6

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 (82) hide show
  1. package/dist/components/Background/Background/Background.props.d.ts +42 -0
  2. package/dist/components/Background/Background/Background.style.d.ts +23 -0
  3. package/dist/components/Background/Background/Background.type.d.ts +42 -0
  4. package/dist/components/Background/Background/Background.view.d.ts +12 -0
  5. package/dist/components/Background/Background.d.ts +13 -0
  6. package/dist/components/Background/examples/aurora.d.ts +2 -0
  7. package/dist/components/Background/examples/combinedEffects.d.ts +2 -0
  8. package/dist/components/Background/examples/default.d.ts +2 -0
  9. package/dist/components/Background/examples/index.d.ts +5 -0
  10. package/dist/components/Background/examples/meteors.d.ts +2 -0
  11. package/dist/components/Background/examples/wall.d.ts +2 -0
  12. package/dist/components/Background/index.d.ts +3 -0
  13. package/dist/components/Button/Button/Button.props.d.ts +4 -0
  14. package/dist/components/Button/Button/Button.style.d.ts +4 -0
  15. package/dist/components/Button/examples/animatedStroke.d.ts +2 -0
  16. package/dist/components/Button/examples/borderMoving.d.ts +2 -0
  17. package/dist/components/Button/examples/effectsTest.d.ts +2 -0
  18. package/dist/components/Button/examples/index.d.ts +2 -0
  19. package/dist/components/ColorPicker/ColorPicker/ColorPicker.props.d.ts +45 -0
  20. package/dist/components/ColorPicker/ColorPicker/ColorPicker.state.d.ts +15 -0
  21. package/dist/components/ColorPicker/ColorPicker/ColorPicker.style.d.ts +34 -0
  22. package/dist/components/ColorPicker/ColorPicker/ColorPicker.type.d.ts +34 -0
  23. package/dist/components/ColorPicker/ColorPicker/ColorPicker.view.d.ts +4 -0
  24. package/dist/components/ColorPicker/ColorPicker.d.ts +3 -0
  25. package/dist/components/ColorPicker/examples/controlled.d.ts +2 -0
  26. package/dist/components/ColorPicker/examples/customColors.d.ts +2 -0
  27. package/dist/components/ColorPicker/examples/default.d.ts +2 -0
  28. package/dist/components/ColorPicker/examples/formIntegration.d.ts +2 -0
  29. package/dist/components/ColorPicker/examples/index.d.ts +7 -0
  30. package/dist/components/ColorPicker/examples/shapes.d.ts +2 -0
  31. package/dist/components/ColorPicker/examples/sizes.d.ts +2 -0
  32. package/dist/components/ColorPicker/examples/variants.d.ts +2 -0
  33. package/dist/components/EmojiPicker/EmojiPicker/EmojiPicker.props.d.ts +48 -0
  34. package/dist/components/EmojiPicker/EmojiPicker/EmojiPicker.state.d.ts +18 -0
  35. package/dist/components/EmojiPicker/EmojiPicker/EmojiPicker.style.d.ts +36 -0
  36. package/dist/components/EmojiPicker/EmojiPicker/EmojiPicker.type.d.ts +28 -0
  37. package/dist/components/EmojiPicker/EmojiPicker/EmojiPicker.view.d.ts +4 -0
  38. package/dist/components/EmojiPicker/EmojiPicker.d.ts +3 -0
  39. package/dist/components/EmojiPicker/examples/controlled.d.ts +2 -0
  40. package/dist/components/EmojiPicker/examples/customEmojis.d.ts +2 -0
  41. package/dist/components/EmojiPicker/examples/default.d.ts +2 -0
  42. package/dist/components/EmojiPicker/examples/formIntegration.d.ts +2 -0
  43. package/dist/components/EmojiPicker/examples/index.d.ts +7 -0
  44. package/dist/components/EmojiPicker/examples/shapes.d.ts +2 -0
  45. package/dist/components/EmojiPicker/examples/sizes.d.ts +2 -0
  46. package/dist/components/EmojiPicker/examples/variants.d.ts +2 -0
  47. package/dist/components/Form/ColorInput/ColorInput/ColorInput.props.d.ts +54 -0
  48. package/dist/components/Form/ColorInput/ColorInput/ColorInput.state.d.ts +20 -0
  49. package/dist/components/Form/ColorInput/ColorInput/ColorInput.style.d.ts +31 -0
  50. package/dist/components/Form/ColorInput/ColorInput/ColorInput.type.d.ts +36 -0
  51. package/dist/components/Form/ColorInput/ColorInput/ColorInput.view.d.ts +4 -0
  52. package/dist/components/Form/ColorInput/ColorInput.d.ts +3 -0
  53. package/dist/components/Form/ColorInput/examples/Default.d.ts +2 -0
  54. package/dist/components/Form/ColorInput/examples/FormIntegration.d.ts +2 -0
  55. package/dist/components/Form/ColorInput/examples/Sizes.d.ts +2 -0
  56. package/dist/components/Form/ColorInput/examples/Variants.d.ts +2 -0
  57. package/dist/components/Form/ColorInput/examples/index.d.ts +4 -0
  58. package/dist/components/Form/Form.d.ts +1 -0
  59. package/dist/components/Formik/Formik.ColorInput.d.ts +6 -0
  60. package/dist/components/Formik/examples/FormikColorInput.d.ts +2 -0
  61. package/dist/components/Formik/examples/index.d.ts +1 -0
  62. package/dist/components/Formik/index.d.ts +1 -0
  63. package/dist/components/Title/Title/Title.style.d.ts +0 -5
  64. package/dist/components/Title/Title/Title.type.d.ts +1 -1
  65. package/dist/components/index.d.ts +8 -0
  66. package/dist/pages/background.page.d.ts +3 -0
  67. package/dist/pages/colorInput.page.d.ts +3 -0
  68. package/dist/pages/colorPicker.page.d.ts +3 -0
  69. package/dist/pages/docs/components/CustomLiveCode.component.d.ts +10 -0
  70. package/dist/pages/emojiPicker.page.d.ts +3 -0
  71. package/dist/web.cjs.development.js +4793 -964
  72. package/dist/web.cjs.development.js.map +1 -1
  73. package/dist/web.cjs.production.min.js +1 -1
  74. package/dist/web.cjs.production.min.js.map +1 -1
  75. package/dist/web.esm.js +4789 -965
  76. package/dist/web.esm.js.map +1 -1
  77. package/dist/web.umd.development.js +5173 -1344
  78. package/dist/web.umd.development.js.map +1 -1
  79. package/dist/web.umd.production.min.js +1 -1
  80. package/dist/web.umd.production.min.js.map +1 -1
  81. package/package.json +2 -1
  82. package/dist/pages/docs/components/LiveCode.component.d.ts +0 -3
@@ -0,0 +1,42 @@
1
+ import { ReactNode } from 'react';
2
+ import { ViewProps } from 'app-studio';
3
+ /**
4
+ * Base Background component props
5
+ */
6
+ export interface BackgroundProps extends ViewProps {
7
+ children?: ReactNode;
8
+ views?: {
9
+ container?: ViewProps;
10
+ content?: ViewProps;
11
+ };
12
+ themeMode?: 'light' | 'dark';
13
+ }
14
+ /**
15
+ * Aurora Background component props
16
+ */
17
+ export interface AuroraBackgroundProps extends BackgroundProps {
18
+ showRadialGradient?: boolean;
19
+ }
20
+ /**
21
+ * Meteors component props
22
+ */
23
+ export interface MeteorsProps extends ViewProps {
24
+ number?: number;
25
+ }
26
+ /**
27
+ * Wall component props
28
+ */
29
+ export interface WallProps extends ViewProps {
30
+ rows?: number;
31
+ cols?: number;
32
+ squareSize?: number;
33
+ }
34
+ /**
35
+ * Background styles for customization
36
+ */
37
+ export interface BackgroundStyles {
38
+ container?: ViewProps;
39
+ content?: ViewProps;
40
+ aurora?: ViewProps;
41
+ meteors?: ViewProps;
42
+ }
@@ -0,0 +1,23 @@
1
+ import { ViewProps } from 'app-studio';
2
+ /**
3
+ * Default styles for Background components
4
+ */
5
+ export declare const DefaultBackgroundStyles: {
6
+ container: ViewProps;
7
+ content: ViewProps;
8
+ };
9
+ /**
10
+ * Aurora background styles
11
+ */
12
+ export declare const AuroraStyles: {
13
+ container: ViewProps;
14
+ gradient: ViewProps;
15
+ };
16
+ /**
17
+ * Meteors effect styles
18
+ */
19
+ export declare const MeteorsStyles: {
20
+ container: ViewProps;
21
+ meteor: ViewProps;
22
+ meteorTail: ViewProps;
23
+ };
@@ -0,0 +1,42 @@
1
+ import { ViewProps } from 'app-studio';
2
+ /**
3
+ * Background effect types
4
+ */
5
+ export declare type BackgroundEffect = 'aurora' | 'meteors' | 'borderMoving' | 'animatedStroke';
6
+ /**
7
+ * Aurora gradient direction options
8
+ */
9
+ export declare type AuroraDirection = 'horizontal' | 'vertical' | 'diagonal';
10
+ /**
11
+ * Meteor animation timing options
12
+ */
13
+ export declare type MeteorTiming = {
14
+ delay: string;
15
+ duration: string;
16
+ target: string;
17
+ };
18
+ /**
19
+ * Border animation styles
20
+ */
21
+ export declare type BorderAnimationStyles = {
22
+ container?: ViewProps;
23
+ svg?: ViewProps;
24
+ button?: ViewProps;
25
+ };
26
+ /**
27
+ * Stroke animation styles
28
+ */
29
+ export declare type StrokeAnimationStyles = {
30
+ container?: ViewProps;
31
+ svg?: ViewProps;
32
+ rect?: ViewProps;
33
+ text?: ViewProps;
34
+ };
35
+ /**
36
+ * Background context type for compound components
37
+ */
38
+ export interface BackgroundContextType {
39
+ effect?: BackgroundEffect;
40
+ isAnimated?: boolean;
41
+ duration?: number;
42
+ }
@@ -0,0 +1,12 @@
1
+ import React from 'react';
2
+ import { BackgroundProps, AuroraBackgroundProps, MeteorsProps, WallProps } from './Background.props';
3
+ /**
4
+ * Main Background View Component with compound pattern
5
+ */
6
+ interface BackgroundViewComponent extends React.FC<BackgroundProps> {
7
+ Aurora: React.FC<AuroraBackgroundProps>;
8
+ Meteors: React.FC<MeteorsProps>;
9
+ Wall: React.FC<WallProps>;
10
+ }
11
+ export declare const BackgroundView: BackgroundViewComponent;
12
+ export {};
@@ -0,0 +1,13 @@
1
+ /**
2
+ * Background Component
3
+ *
4
+ * A collection of animated background effects including Aurora, Meteors,
5
+ * and animated border effects following the design system guidelines.
6
+ */
7
+ import React from 'react';
8
+ import { BackgroundProps } from './Background/Background.props';
9
+ export declare const Background: React.ForwardRefExoticComponent<Pick<BackgroundProps, string | number> & React.RefAttributes<HTMLDivElement>> & {
10
+ Aurora: React.FC<import("./Background/Background.props").AuroraBackgroundProps>;
11
+ Meteors: React.FC<import("./Background/Background.props").MeteorsProps>;
12
+ Wall: React.FC<import("./Background/Background.props").WallProps>;
13
+ };
@@ -0,0 +1,2 @@
1
+ import React from 'react';
2
+ export declare const AuroraDemo: () => React.JSX.Element;
@@ -0,0 +1,2 @@
1
+ import React from 'react';
2
+ export declare const CombinedEffectsDemo: () => React.JSX.Element;
@@ -0,0 +1,2 @@
1
+ import React from 'react';
2
+ export declare const DefaultDemo: () => React.JSX.Element;
@@ -0,0 +1,5 @@
1
+ export { DefaultDemo } from './default';
2
+ export { AuroraDemo } from './aurora';
3
+ export { MeteorsDemo } from './meteors';
4
+ export { WallDemo } from './wall';
5
+ export { CombinedEffectsDemo } from './combinedEffects';
@@ -0,0 +1,2 @@
1
+ import React from 'react';
2
+ export declare const MeteorsDemo: () => React.JSX.Element;
@@ -0,0 +1,2 @@
1
+ import React from 'react';
2
+ export declare const WallDemo: () => React.JSX.Element;
@@ -0,0 +1,3 @@
1
+ export { Background } from './Background';
2
+ export type { BackgroundProps, AuroraBackgroundProps, MeteorsProps, BackgroundStyles, } from './Background/Background.props';
3
+ export type { BackgroundEffect, AuroraDirection, MeteorTiming, BorderAnimationStyles, StrokeAnimationStyles, BackgroundContextType, } from './Background/Background.type';
@@ -22,6 +22,10 @@ export interface ButtonProps extends Omit<$ButtonProps, 'size'> {
22
22
  ariaLabel?: string;
23
23
  variant?: Variant;
24
24
  color?: string;
25
+ borderMovingDuration?: number;
26
+ borderMovingGradientColors?: string[];
27
+ animatedStrokeAccentColor?: string;
28
+ animatedStrokeTextColor?: string;
25
29
  views?: {
26
30
  container?: ViewProps;
27
31
  content?: ViewProps;
@@ -22,3 +22,7 @@ export declare const ButtonShapes: Record<Shape, number | string>;
22
22
  */
23
23
  export declare const IconSizes: Record<Size, ViewProps>;
24
24
  export declare const getButtonVariants: (color: string, isLight: boolean) => Record<Variant, ViewProps>;
25
+ /**
26
+ * Generate offset path for border animation
27
+ */
28
+ export declare function generateOffsetPath(width: number, height: number, borderRadius: number | string): string;
@@ -0,0 +1,2 @@
1
+ import React from 'react';
2
+ export declare const AnimatedStrokeButtons: () => React.JSX.Element;
@@ -0,0 +1,2 @@
1
+ import React from 'react';
2
+ export declare const BorderMovingButtons: () => React.JSX.Element;
@@ -0,0 +1,2 @@
1
+ import React from 'react';
2
+ export declare const EffectsTestButtons: () => React.JSX.Element;
@@ -1,4 +1,6 @@
1
+ export * from './animatedStroke';
1
2
  export * from './autofocus';
3
+ export * from './borderMoving';
2
4
  export * from './default';
3
5
  export * from './designSystem';
4
6
  export * from './icon';
@@ -0,0 +1,45 @@
1
+ /// <reference types="react" />
2
+ import { ViewProps } from 'app-studio';
3
+ import { Variant, Shape, Size, ColorPickerStyles, ColorFormat, PredefinedColor } from './ColorPicker.type';
4
+ export interface ColorPickerProps extends ViewProps {
5
+ id?: string;
6
+ name?: string;
7
+ label?: string;
8
+ placeholder?: string;
9
+ helperText?: string;
10
+ value?: string;
11
+ defaultValue?: string;
12
+ onChange?: (color: string) => void;
13
+ onChangeComplete?: (color: string) => void;
14
+ views?: ColorPickerStyles;
15
+ size?: Size;
16
+ shape?: Shape;
17
+ variant?: Variant;
18
+ error?: boolean;
19
+ isDisabled?: boolean;
20
+ isReadOnly?: boolean;
21
+ predefinedColors?: PredefinedColor[];
22
+ showCustomInput?: boolean;
23
+ showRecentColors?: boolean;
24
+ colorFormat?: ColorFormat;
25
+ maxRecentColors?: number;
26
+ isOpen?: boolean;
27
+ onOpen?: () => void;
28
+ onClose?: () => void;
29
+ closeOnSelect?: boolean;
30
+ 'aria-label'?: string;
31
+ 'aria-describedby'?: string;
32
+ }
33
+ export interface ColorPickerViewProps extends ColorPickerProps {
34
+ isOpen: boolean;
35
+ selectedColor: string;
36
+ recentColors: string[];
37
+ customColor: string;
38
+ handleToggle: () => void;
39
+ handleColorSelect: (color: string) => void;
40
+ handleCustomColorChange: (color: string) => void;
41
+ handleCustomColorSubmit: () => void;
42
+ handleClose: () => void;
43
+ triggerRef: React.RefObject<HTMLDivElement>;
44
+ dropdownRef: React.RefObject<HTMLDivElement>;
45
+ }
@@ -0,0 +1,15 @@
1
+ /// <reference types="react" />
2
+ import { ColorPickerProps } from './ColorPicker.props';
3
+ export declare const useColorPickerState: (props: ColorPickerProps) => {
4
+ isOpen: boolean;
5
+ selectedColor: string;
6
+ recentColors: string[];
7
+ customColor: string;
8
+ handleToggle: () => void;
9
+ handleColorSelect: (color: string) => void;
10
+ handleCustomColorChange: (color: string) => void;
11
+ handleCustomColorSubmit: () => void;
12
+ handleClose: () => void;
13
+ triggerRef: import("react").RefObject<HTMLDivElement>;
14
+ dropdownRef: import("react").RefObject<HTMLDivElement>;
15
+ };
@@ -0,0 +1,34 @@
1
+ import { ViewProps } from 'app-studio';
2
+ import { Size, Variant, Shape } from './ColorPicker.type';
3
+ /**
4
+ * Default styles for the ColorPicker component
5
+ */
6
+ export declare const DefaultColorPickerStyles: {
7
+ container: ViewProps;
8
+ trigger: ViewProps;
9
+ dropdown: ViewProps;
10
+ colorGrid: ViewProps;
11
+ colorSwatch: ViewProps;
12
+ customInput: ViewProps;
13
+ recentColors: ViewProps;
14
+ };
15
+ /**
16
+ * Size styles for the ColorPicker component
17
+ */
18
+ export declare const Sizes: Record<Size, ViewProps>;
19
+ /**
20
+ * Shape styles for the ColorPicker component
21
+ */
22
+ export declare const Shapes: Record<Shape, ViewProps>;
23
+ /**
24
+ * Variant styles for the ColorPicker component
25
+ */
26
+ export declare const Variants: Record<Variant, ViewProps>;
27
+ /**
28
+ * Predefined color palette based on the design system
29
+ */
30
+ export declare const DefaultColorPalette: {
31
+ name: string;
32
+ value: string;
33
+ category: string;
34
+ }[];
@@ -0,0 +1,34 @@
1
+ import { ViewProps } from 'app-studio';
2
+ export declare type Variant = 'outline' | 'default' | 'filled';
3
+ export declare type Shape = 'default' | 'sharp' | 'rounded' | 'pillShaped';
4
+ export declare type Size = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
5
+ export declare type ColorPickerStyles = {
6
+ container?: ViewProps;
7
+ trigger?: ViewProps;
8
+ dropdown?: ViewProps;
9
+ colorGrid?: ViewProps;
10
+ colorSwatch?: ViewProps;
11
+ customInput?: ViewProps;
12
+ recentColors?: ViewProps;
13
+ label?: ViewProps;
14
+ helperText?: ViewProps;
15
+ };
16
+ export declare type ColorFormat = 'hex' | 'rgb' | 'hsl';
17
+ export declare type ColorValue = {
18
+ hex: string;
19
+ rgb: {
20
+ r: number;
21
+ g: number;
22
+ b: number;
23
+ };
24
+ hsl: {
25
+ h: number;
26
+ s: number;
27
+ l: number;
28
+ };
29
+ };
30
+ export declare type PredefinedColor = {
31
+ name: string;
32
+ value: string;
33
+ category?: string;
34
+ };
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import { ColorPickerViewProps } from './ColorPicker.props';
3
+ declare const ColorPickerView: React.FC<ColorPickerViewProps>;
4
+ export default ColorPickerView;
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ import { ColorPickerProps } from './ColorPicker/ColorPicker.props';
3
+ export declare const ColorPicker: React.FC<ColorPickerProps>;
@@ -0,0 +1,2 @@
1
+ import React from 'react';
2
+ export declare const ControlledColorPicker: () => React.JSX.Element;
@@ -0,0 +1,2 @@
1
+ import React from 'react';
2
+ export declare const CustomColorsColorPicker: () => React.JSX.Element;
@@ -0,0 +1,2 @@
1
+ import React from 'react';
2
+ export declare const DefaultColorPicker: () => React.JSX.Element;
@@ -0,0 +1,2 @@
1
+ import React from 'react';
2
+ export declare const FormIntegrationColorPicker: () => React.JSX.Element;
@@ -0,0 +1,7 @@
1
+ export * from './default';
2
+ export * from './variants';
3
+ export * from './sizes';
4
+ export * from './shapes';
5
+ export * from './customColors';
6
+ export * from './formIntegration';
7
+ export * from './controlled';
@@ -0,0 +1,2 @@
1
+ import React from 'react';
2
+ export declare const ColorPickerShapes: () => React.JSX.Element;
@@ -0,0 +1,2 @@
1
+ import React from 'react';
2
+ export declare const ColorPickerSizes: () => React.JSX.Element;
@@ -0,0 +1,2 @@
1
+ import React from 'react';
2
+ export declare const ColorPickerVariants: () => React.JSX.Element;
@@ -0,0 +1,48 @@
1
+ /// <reference types="react" />
2
+ import { ViewProps } from 'app-studio';
3
+ import { Variant, Shape, Size, EmojiPickerStyles, EmojiCategory, Emoji } from './EmojiPicker.type';
4
+ export interface EmojiPickerProps extends ViewProps {
5
+ id?: string;
6
+ name?: string;
7
+ label?: string;
8
+ placeholder?: string;
9
+ helperText?: string;
10
+ value?: string;
11
+ defaultValue?: string;
12
+ onChange?: (emoji: string) => void;
13
+ onEmojiSelect?: (emoji: Emoji) => void;
14
+ views?: EmojiPickerStyles;
15
+ size?: Size;
16
+ shape?: Shape;
17
+ variant?: Variant;
18
+ error?: boolean;
19
+ isDisabled?: boolean;
20
+ isReadOnly?: boolean;
21
+ showSearch?: boolean;
22
+ showCategories?: boolean;
23
+ showRecentEmojis?: boolean;
24
+ maxRecentEmojis?: number;
25
+ enabledCategories?: EmojiCategory[];
26
+ customEmojis?: Emoji[];
27
+ isOpen?: boolean;
28
+ onOpen?: () => void;
29
+ onClose?: () => void;
30
+ closeOnSelect?: boolean;
31
+ 'aria-label'?: string;
32
+ 'aria-describedby'?: string;
33
+ }
34
+ export interface EmojiPickerViewProps extends EmojiPickerProps {
35
+ isOpen: boolean;
36
+ selectedEmoji: string;
37
+ recentEmojis: Emoji[];
38
+ searchQuery: string;
39
+ activeCategory: EmojiCategory;
40
+ filteredEmojis: Emoji[];
41
+ handleToggle: () => void;
42
+ handleEmojiSelect: (emoji: Emoji) => void;
43
+ handleSearchChange: (query: string) => void;
44
+ handleCategoryChange: (category: EmojiCategory) => void;
45
+ handleClose: () => void;
46
+ triggerRef: React.RefObject<HTMLDivElement>;
47
+ dropdownRef: React.RefObject<HTMLDivElement>;
48
+ }
@@ -0,0 +1,18 @@
1
+ /// <reference types="react" />
2
+ import { EmojiPickerProps } from './EmojiPicker.props';
3
+ import { Emoji, EmojiCategory } from './EmojiPicker.type';
4
+ export declare const useEmojiPickerState: (props: EmojiPickerProps) => {
5
+ isOpen: boolean;
6
+ selectedEmoji: string;
7
+ recentEmojis: Emoji[];
8
+ searchQuery: string;
9
+ activeCategory: EmojiCategory;
10
+ filteredEmojis: Emoji[];
11
+ handleToggle: () => void;
12
+ handleEmojiSelect: (emoji: Emoji) => void;
13
+ handleSearchChange: (query: string) => void;
14
+ handleCategoryChange: (category: EmojiCategory) => void;
15
+ handleClose: () => void;
16
+ triggerRef: import("react").RefObject<HTMLDivElement>;
17
+ dropdownRef: import("react").RefObject<HTMLDivElement>;
18
+ };
@@ -0,0 +1,36 @@
1
+ import { ViewProps } from 'app-studio';
2
+ import { Size, Variant, Shape, EmojiCategory, Emoji } from './EmojiPicker.type';
3
+ /**
4
+ * Default styles for the EmojiPicker component
5
+ */
6
+ export declare const DefaultEmojiPickerStyles: {
7
+ container: ViewProps;
8
+ trigger: ViewProps;
9
+ dropdown: ViewProps;
10
+ searchInput: ViewProps;
11
+ categoryTabs: ViewProps;
12
+ categoryTab: ViewProps;
13
+ emojiGrid: ViewProps;
14
+ emoji: ViewProps;
15
+ recentEmojis: ViewProps;
16
+ };
17
+ /**
18
+ * Size styles for the EmojiPicker component
19
+ */
20
+ export declare const Sizes: Record<Size, ViewProps>;
21
+ /**
22
+ * Shape styles for the EmojiPicker component
23
+ */
24
+ export declare const Shapes: Record<Shape, ViewProps>;
25
+ /**
26
+ * Variant styles for the EmojiPicker component
27
+ */
28
+ export declare const Variants: Record<Variant, ViewProps>;
29
+ /**
30
+ * Category labels for display
31
+ */
32
+ export declare const CategoryLabels: Record<EmojiCategory, string>;
33
+ /**
34
+ * Default emoji data - a subset of popular emojis
35
+ */
36
+ export declare const DefaultEmojiData: Emoji[];
@@ -0,0 +1,28 @@
1
+ import { ViewProps } from 'app-studio';
2
+ export declare type Variant = 'outline' | 'default' | 'filled';
3
+ export declare type Shape = 'default' | 'sharp' | 'rounded' | 'pillShaped';
4
+ export declare type Size = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
5
+ export declare type EmojiPickerStyles = {
6
+ container?: ViewProps;
7
+ trigger?: ViewProps;
8
+ dropdown?: ViewProps;
9
+ searchInput?: ViewProps;
10
+ categoryTabs?: ViewProps;
11
+ categoryTab?: ViewProps;
12
+ emojiGrid?: ViewProps;
13
+ emoji?: ViewProps;
14
+ recentEmojis?: ViewProps;
15
+ label?: ViewProps;
16
+ helperText?: ViewProps;
17
+ };
18
+ export declare type EmojiCategory = 'recent' | 'smileys' | 'people' | 'animals' | 'food' | 'activities' | 'travel' | 'objects' | 'symbols' | 'flags';
19
+ export declare type Emoji = {
20
+ emoji: string;
21
+ name: string;
22
+ category: EmojiCategory;
23
+ keywords: string[];
24
+ skinTones?: string[];
25
+ };
26
+ export declare type EmojiData = {
27
+ [key in EmojiCategory]?: Emoji[];
28
+ };
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import { EmojiPickerViewProps } from './EmojiPicker.props';
3
+ declare const EmojiPickerView: React.FC<EmojiPickerViewProps>;
4
+ export default EmojiPickerView;
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ import { EmojiPickerProps } from './EmojiPicker/EmojiPicker.props';
3
+ export declare const EmojiPicker: React.FC<EmojiPickerProps>;
@@ -0,0 +1,2 @@
1
+ import React from 'react';
2
+ export declare const ControlledEmojiPicker: () => React.JSX.Element;
@@ -0,0 +1,2 @@
1
+ import React from 'react';
2
+ export declare const CustomEmojisEmojiPicker: () => React.JSX.Element;
@@ -0,0 +1,2 @@
1
+ import React from 'react';
2
+ export declare const DefaultEmojiPicker: () => React.JSX.Element;
@@ -0,0 +1,2 @@
1
+ import React from 'react';
2
+ export declare const FormIntegrationEmojiPicker: () => React.JSX.Element;
@@ -0,0 +1,7 @@
1
+ export * from './default';
2
+ export * from './variants';
3
+ export * from './sizes';
4
+ export * from './shapes';
5
+ export * from './customEmojis';
6
+ export * from './formIntegration';
7
+ export * from './controlled';
@@ -0,0 +1,2 @@
1
+ import React from 'react';
2
+ export declare const EmojiPickerShapes: () => React.JSX.Element;
@@ -0,0 +1,2 @@
1
+ import React from 'react';
2
+ export declare const EmojiPickerSizes: () => React.JSX.Element;
@@ -0,0 +1,2 @@
1
+ import React from 'react';
2
+ export declare const EmojiPickerVariants: () => React.JSX.Element;
@@ -0,0 +1,54 @@
1
+ import React from 'react';
2
+ import { InputProps, Shadow, ViewProps } from 'app-studio';
3
+ import { Elevation } from '../../../../utils/elevation';
4
+ import { Shape, Size, ColorInputStyles, Variant, PredefinedColor, ColorFormat } from './ColorInput.type';
5
+ export interface ColorInputProps extends Omit<InputProps, 'size'> {
6
+ id?: string;
7
+ error?: any;
8
+ helperText?: string;
9
+ name?: string;
10
+ label?: string;
11
+ placeholder?: string;
12
+ isReadOnly?: boolean;
13
+ isDisabled?: boolean;
14
+ isAutoFocus?: boolean;
15
+ onChange?: (value: string) => void;
16
+ onBlur?: (value: any) => void;
17
+ onClick?: () => void;
18
+ onFocus?: () => void;
19
+ size?: Size;
20
+ shadow?: Shadow | Elevation | ViewProps;
21
+ shape?: Shape;
22
+ views?: ColorInputStyles;
23
+ value?: string;
24
+ defaultValue?: string;
25
+ variant?: Variant;
26
+ predefinedColors?: PredefinedColor[];
27
+ showCustomInput?: boolean;
28
+ showRecentColors?: boolean;
29
+ colorFormat?: ColorFormat;
30
+ maxRecentColors?: number;
31
+ closeOnSelect?: boolean;
32
+ onChangeComplete?: (color: string) => void;
33
+ onOpen?: () => void;
34
+ onClose?: () => void;
35
+ }
36
+ export interface ColorInputViewProps extends ColorInputProps {
37
+ isFocused?: boolean;
38
+ setIsFocused?: Function;
39
+ isHovered?: boolean;
40
+ setIsHovered?: Function;
41
+ value?: string;
42
+ setValue?: Function;
43
+ isOpen?: boolean;
44
+ selectedColor?: string;
45
+ recentColors?: string[];
46
+ customColor?: string;
47
+ handleToggle?: () => void;
48
+ handleColorSelect?: (color: string) => void;
49
+ handleCustomColorChange?: (color: string) => void;
50
+ handleCustomColorSubmit?: () => void;
51
+ handleClose?: () => void;
52
+ triggerRef?: React.RefObject<HTMLDivElement>;
53
+ dropdownRef?: React.RefObject<HTMLDivElement>;
54
+ }