@app-studio/web 0.9.79 → 0.9.81

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/dist/components/Accordion/Accordion/Accordion.type.d.ts +1 -1
  2. package/dist/components/Accordion/Accordion/Accordion.view.d.ts +1 -1
  3. package/dist/components/Badge/Badge/Badge.type.d.ts +1 -1
  4. package/dist/components/Card/Card/Card.style.d.ts +0 -4
  5. package/dist/components/Card/Card/Card.type.d.ts +1 -1
  6. package/dist/components/ChatInput/ChatInput/ChatInput.type.d.ts +1 -1
  7. package/dist/components/ColorPicker/ColorPicker/ColorPicker.type.d.ts +1 -1
  8. package/dist/components/EmojiPicker/EmojiPicker/EmojiPicker.type.d.ts +1 -1
  9. package/dist/components/Form/ColorInput/ColorInput/ColorInput.type.d.ts +1 -1
  10. package/dist/components/Form/Switch/Switch/Switch.style.d.ts +3 -6
  11. package/dist/components/Form/TagInput/TagInput/TagInput.type.d.ts +1 -1
  12. package/dist/components/Form/TextArea/TextArea/TextArea.type.d.ts +1 -1
  13. package/dist/components/Input/Input.type.d.ts +1 -1
  14. package/dist/components/Message/Message/Message.type.d.ts +1 -1
  15. package/dist/components/Modal/Modal/Modal.props.d.ts +2 -2
  16. package/dist/components/Slider/Slider/Slider.type.d.ts +1 -1
  17. package/dist/components/Title/Title/Title.props.d.ts +0 -5
  18. package/dist/components/Toggle/Toggle/Toggle.type.d.ts +1 -1
  19. package/dist/components/ToggleGroup/ToggleGroup/ToggleGroup.type.d.ts +1 -1
  20. package/dist/pages/tabs.page.d.ts +1 -1
  21. package/dist/providers/index.d.ts +5 -0
  22. package/dist/web.cjs.development.js +170 -155
  23. package/dist/web.cjs.development.js.map +1 -1
  24. package/dist/web.cjs.production.min.js +1 -1
  25. package/dist/web.cjs.production.min.js.map +1 -1
  26. package/dist/web.esm.js +170 -155
  27. package/dist/web.esm.js.map +1 -1
  28. package/dist/web.umd.development.js +170 -155
  29. package/dist/web.umd.development.js.map +1 -1
  30. package/dist/web.umd.production.min.js +1 -1
  31. package/dist/web.umd.production.min.js.map +1 -1
  32. package/docs/components/Background.mdx +133 -134
  33. package/docs/components/Button.mdx +154 -131
  34. package/docs/components/Chart.mdx +93 -368
  35. package/docs/components/ProgressBar.mdx +77 -394
  36. package/docs/components/Title.mdx +102 -290
  37. package/package.json +1 -1
  38. package/docs/components/ChatInput.mdx +0 -1039
@@ -1,5 +1,5 @@
1
1
  import { ViewProps } from 'app-studio';
2
- export declare type Shape = 'sharp' | 'rounded';
2
+ export declare type Shape = 'square' | 'rounded';
3
3
  export declare type Variant = 'default' | 'outline' | 'filled';
4
4
  export declare type AccordionType = 'single' | 'multiple';
5
5
  export interface AccordionContextType {
@@ -23,7 +23,7 @@ export declare const AccordionContent: React.FC<AccordionContentProps & {
23
23
  }>;
24
24
  export declare const AccordionView: React.FC<{
25
25
  children: React.ReactNode;
26
- shape?: 'sharp' | 'rounded';
26
+ shape?: 'square' | 'rounded';
27
27
  variant?: 'default' | 'outline' | 'filled';
28
28
  views?: any;
29
29
  baseId: string;
@@ -1,5 +1,5 @@
1
1
  import { ViewProps } from 'app-studio';
2
- export declare type Shape = 'sharp' | 'rounded' | 'pillShaped';
2
+ export declare type Shape = 'square' | 'rounded' | 'pill';
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';
@@ -22,10 +22,6 @@ export declare const CardShapes: Record<Shape, number | string>;
22
22
  * Get card variants with consistent styling based on theme mode
23
23
  */
24
24
  export declare const getCardVariants: (themeMode: string) => Record<Variant, ViewProps>;
25
- /**
26
- * Default card variants (for backward compatibility)
27
- */
28
- export declare const CardVariants: Record<Variant, ViewProps>;
29
25
  /**
30
26
  * Function to get default styles for Card components
31
27
  * @param theme - Theme object from useTheme hook
@@ -1,7 +1,7 @@
1
1
  import { ViewProps } from 'app-studio';
2
2
  export declare type Variant = 'default' | 'outlined' | 'elevated';
3
3
  export declare type Size = 'sm' | 'md' | 'lg';
4
- export declare type Shape = 'sharp' | 'rounded' | 'pillShaped';
4
+ export declare type Shape = 'square' | 'rounded' | 'pill';
5
5
  export interface CardStyles {
6
6
  container?: ViewProps;
7
7
  header?: ViewProps;
@@ -6,7 +6,7 @@ export declare type Size = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
6
6
  /**
7
7
  * Shape options for the ChatInput component
8
8
  */
9
- export declare type Shape = 'default' | 'sharp' | 'rounded';
9
+ export declare type Shape = 'default' | 'square' | 'rounded';
10
10
  /**
11
11
  * Variant options for the ChatInput component
12
12
  */
@@ -1,6 +1,6 @@
1
1
  import { ViewProps } from 'app-studio';
2
2
  export declare type Variant = 'outline' | 'default' | 'filled';
3
- export declare type Shape = 'default' | 'sharp' | 'rounded' | 'pillShaped';
3
+ export declare type Shape = 'default' | 'square' | 'rounded' | 'pill';
4
4
  export declare type Size = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
5
5
  export declare type ColorPickerStyles = {
6
6
  container?: ViewProps;
@@ -1,6 +1,6 @@
1
1
  import { ViewProps } from 'app-studio';
2
2
  export declare type Variant = 'outline' | 'default' | 'filled';
3
- export declare type Shape = 'default' | 'sharp' | 'rounded' | 'pillShaped';
3
+ export declare type Shape = 'default' | 'square' | 'rounded' | 'pill';
4
4
  export declare type Size = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
5
5
  export declare type EmojiPickerStyles = {
6
6
  container?: ViewProps;
@@ -1,6 +1,6 @@
1
1
  import { ViewProps } from 'app-studio';
2
2
  export declare type Variant = 'outline' | 'default' | 'none';
3
- export declare type Shape = 'default' | 'sharp' | 'rounded' | 'pillShaped';
3
+ export declare type Shape = 'default' | 'square' | 'rounded' | 'pill';
4
4
  export declare type Size = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
5
5
  export declare type ColorInputStyles = {
6
6
  text?: ViewProps;
@@ -37,12 +37,9 @@ export declare const ColorSchemes: {
37
37
  };
38
38
  states: {
39
39
  hover: {
40
- active: {
41
- opacity: number;
42
- };
43
- inactive: {
44
- backgroundColor: string;
45
- };
40
+ active: string;
41
+ inactive: string;
42
+ activeOpacity: number;
46
43
  };
47
44
  focus: {
48
45
  active: {
@@ -6,7 +6,7 @@ export declare type Size = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
6
6
  /**
7
7
  * Shape options for the TagInput component
8
8
  */
9
- export declare type Shape = 'default' | 'sharp' | 'rounded' | 'pillShaped';
9
+ export declare type Shape = 'default' | 'square' | 'rounded' | 'pill';
10
10
  /**
11
11
  * Variant options for the TagInput component
12
12
  */
@@ -1,6 +1,6 @@
1
1
  import { ViewProps } from 'app-studio';
2
2
  export declare type Variant = 'outline' | 'default' | 'none';
3
- export declare type Shape = 'default' | 'sharp' | 'rounded';
3
+ export declare type Shape = 'default' | 'square' | 'rounded';
4
4
  export declare type Size = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
5
5
  export declare type TextAreaStyles = {
6
6
  warper?: ViewProps;
@@ -1,6 +1,6 @@
1
1
  import { ViewProps } from 'app-studio';
2
2
  export declare type Variant = 'outline' | 'default' | 'none';
3
- export declare type Shape = 'default' | 'sharp' | 'rounded' | 'pillShaped';
3
+ export declare type Shape = 'default' | 'square' | 'rounded' | 'pill';
4
4
  export declare type Size = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
5
5
  export declare type TextFieldStyles = {
6
6
  text?: ViewProps;
@@ -1,6 +1,6 @@
1
1
  import { ViewProps } from 'app-studio';
2
2
  export declare type Position = 'topLeft' | 'topRight' | 'bottomLeft' | 'bottomRight';
3
- export declare type Shape = 'sharp' | 'rounded';
3
+ export declare type Shape = 'square' | 'rounded';
4
4
  export declare type CloseButtonPosition = 'left' | 'right' | 'none';
5
5
  export declare type Size = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
6
6
  export declare type MessageType = 'info' | 'warning' | 'error' | 'success';
@@ -12,7 +12,7 @@ export interface ModalProps extends Omit<ViewProps, 'size'> {
12
12
  */
13
13
  iconSize?: Size;
14
14
  /**
15
- * Determines whether the modal should have sharp or rounded edges.
15
+ * Determines whether the modal should have square or rounded edges.
16
16
  */
17
17
  shape?: Shape;
18
18
  /**
@@ -142,7 +142,7 @@ export interface ContainerProps extends Omit<ViewProps, 'size'> {
142
142
  */
143
143
  children: React.ReactNode;
144
144
  /**
145
- * To give a sharp or rounded edges to the modal
145
+ * To give a square or rounded edges to the modal
146
146
  */
147
147
  shape?: Shape;
148
148
  /**
@@ -1,5 +1,5 @@
1
1
  import { ViewProps, TextProps } from 'app-studio';
2
- export declare type Shape = 'sharp' | 'rounded' | 'pillShaped';
2
+ export declare type Shape = 'square' | 'rounded' | 'pill';
3
3
  export declare type Size = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
4
4
  export declare type Variant = 'default' | 'outline';
5
5
  export declare type Orientation = 'horizontal' | 'vertical';
@@ -116,9 +116,4 @@ export interface TitleProps extends ViewProps {
116
116
  * @default 3000
117
117
  */
118
118
  alternateDuration?: number;
119
- /**
120
- * Component to use for rendering text content
121
- * Defaults to Text from app-studio
122
- */
123
- textComponent?: any;
124
119
  }
@@ -1,2 +1,2 @@
1
- export declare type Shape = 'sharp' | 'rounded' | 'pillShaped';
1
+ export declare type Shape = 'square' | 'rounded' | 'pill';
2
2
  export declare type Variant = 'outline' | 'link' | 'ghost';
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- export declare type Shape = 'sharp' | 'rounded' | 'pillShaped';
2
+ export declare type Shape = 'square' | 'rounded' | 'pill';
3
3
  export declare type Variant = 'outline' | 'link' | 'ghost';
4
4
  export declare type ToggleItem = {
5
5
  id: string;
@@ -1,3 +1,3 @@
1
1
  import React from 'react';
2
- export declare const TabsPage: () => React.JSX.Element;
2
+ declare const TabsPage: () => React.JSX.Element;
3
3
  export default TabsPage;
@@ -1,4 +1,9 @@
1
1
  import React, { ReactNode } from 'react';
2
+ interface ThemeModeContextType {
3
+ mode: 'light' | 'dark';
4
+ toggleThemeMode: () => void;
5
+ }
6
+ export declare const useThemeActions: () => ThemeModeContextType;
2
7
  interface WrapperProps {
3
8
  children: ReactNode;
4
9
  }