@app-studio/web 0.8.73 → 0.8.74

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 (69) hide show
  1. package/dist/components/Accordion/Accordion/Accordion.props.d.ts +91 -0
  2. package/dist/components/Accordion/Accordion/Accordion.state.d.ts +5 -0
  3. package/dist/components/Accordion/Accordion/Accordion.style.d.ts +4 -0
  4. package/dist/components/Accordion/Accordion/Accordion.type.d.ts +15 -0
  5. package/dist/components/Accordion/Accordion/Accordion.view.d.ts +22 -0
  6. package/dist/components/Accordion/Accordion.d.ts +2 -0
  7. package/dist/components/Accordion/examples/default.d.ts +2 -0
  8. package/dist/components/Accordion/examples/disabled.d.ts +2 -0
  9. package/dist/components/Accordion/examples/index.d.ts +4 -0
  10. package/dist/components/Accordion/examples/multiple.d.ts +2 -0
  11. package/dist/components/Accordion/examples/variants.d.ts +2 -0
  12. package/dist/components/ContextMenu/ContextMenu/ContextMenu.props.d.ts +120 -0
  13. package/dist/components/ContextMenu/ContextMenu/ContextMenu.state.d.ts +15 -0
  14. package/dist/components/ContextMenu/ContextMenu/ContextMenu.style.d.ts +20 -0
  15. package/dist/components/ContextMenu/ContextMenu/ContextMenu.type.d.ts +41 -0
  16. package/dist/components/ContextMenu/ContextMenu/ContextMenu.view.d.ts +20 -0
  17. package/dist/components/ContextMenu/ContextMenu.d.ts +2 -0
  18. package/dist/components/ContextMenu/examples/custom.d.ts +2 -0
  19. package/dist/components/ContextMenu/examples/default.d.ts +2 -0
  20. package/dist/components/ContextMenu/examples/index.d.ts +4 -0
  21. package/dist/components/ContextMenu/examples/sizes.d.ts +2 -0
  22. package/dist/components/ContextMenu/examples/variants.d.ts +2 -0
  23. package/dist/components/DropdownMenu/DropdownMenu/DropdownMenu.props.d.ts +117 -0
  24. package/dist/components/DropdownMenu/DropdownMenu/DropdownMenu.state.d.ts +7 -0
  25. package/dist/components/DropdownMenu/DropdownMenu/DropdownMenu.style.d.ts +17 -0
  26. package/dist/components/DropdownMenu/DropdownMenu/DropdownMenu.type.d.ts +34 -0
  27. package/dist/components/DropdownMenu/DropdownMenu/DropdownMenu.view.d.ts +19 -0
  28. package/dist/components/DropdownMenu/DropdownMenu.d.ts +2 -0
  29. package/dist/components/DropdownMenu/examples/custom.d.ts +2 -0
  30. package/dist/components/DropdownMenu/examples/default.d.ts +2 -0
  31. package/dist/components/DropdownMenu/examples/index.d.ts +5 -0
  32. package/dist/components/DropdownMenu/examples/positions.d.ts +2 -0
  33. package/dist/components/DropdownMenu/examples/sizes.d.ts +2 -0
  34. package/dist/components/DropdownMenu/examples/variants.d.ts +2 -0
  35. package/dist/components/Formik/Formik.Slider.d.ts +7 -0
  36. package/dist/components/Formik/examples/FormikSlider.d.ts +2 -0
  37. package/dist/components/Formik/examples/index.d.ts +1 -0
  38. package/dist/components/Formik/index.d.ts +1 -0
  39. package/dist/components/Icon/Icon.d.ts +3 -0
  40. package/dist/components/NavigationMenu/NavigationMenu/NavigationMenu.props.d.ts +126 -0
  41. package/dist/components/NavigationMenu/NavigationMenu/NavigationMenu.state.d.ts +8 -0
  42. package/dist/components/NavigationMenu/NavigationMenu/NavigationMenu.style.d.ts +18 -0
  43. package/dist/components/NavigationMenu/NavigationMenu/NavigationMenu.type.d.ts +34 -0
  44. package/dist/components/NavigationMenu/NavigationMenu/NavigationMenu.view.d.ts +19 -0
  45. package/dist/components/NavigationMenu/NavigationMenu.d.ts +2 -0
  46. package/dist/components/NavigationMenu/examples/default.d.ts +2 -0
  47. package/dist/components/NavigationMenu/examples/horizontal.d.ts +2 -0
  48. package/dist/components/NavigationMenu/examples/index.d.ts +4 -0
  49. package/dist/components/NavigationMenu/examples/sizes.d.ts +2 -0
  50. package/dist/components/NavigationMenu/examples/variants.d.ts +2 -0
  51. package/dist/components/index.d.ts +8 -0
  52. package/dist/pages/accordion.page.d.ts +3 -0
  53. package/dist/pages/components.page.d.ts +5 -0
  54. package/dist/pages/contextMenu.page.d.ts +3 -0
  55. package/dist/pages/dropdownMenu.page.d.ts +3 -0
  56. package/dist/pages/navigationMenu.page.d.ts +3 -0
  57. package/dist/web.cjs.development.js +1840 -378
  58. package/dist/web.cjs.development.js.map +1 -1
  59. package/dist/web.cjs.production.min.js +1 -1
  60. package/dist/web.cjs.production.min.js.map +1 -1
  61. package/dist/web.esm.js +1835 -381
  62. package/dist/web.esm.js.map +1 -1
  63. package/dist/web.umd.development.js +1811 -349
  64. package/dist/web.umd.development.js.map +1 -1
  65. package/dist/web.umd.production.min.js +1 -1
  66. package/dist/web.umd.production.min.js.map +1 -1
  67. package/package.json +1 -1
  68. package/dist/components/Slider/SliderDemo.d.ts +0 -3
  69. package/dist/utils/componentsPageImports.d.ts +0 -6
@@ -4,6 +4,7 @@ export * from './FormikCountryPicker';
4
4
  export * from './FormikDatePicker';
5
5
  export * from './FormikPassword';
6
6
  export * from './FormikSelect';
7
+ export * from './FormikSlider';
7
8
  export * from './FormikSwitch';
8
9
  export * from './FormikTextArea';
9
10
  export * from './FormikTextField';
@@ -8,3 +8,4 @@ export { FormikTextField } from './Formik.TextField';
8
8
  export { FormikPassword } from './Formik.Password';
9
9
  export { FormikForm } from './Formik.Form';
10
10
  export { FormikComboBox } from './Formik.ComboBox';
11
+ export { FormikSlider } from './Formik.Slider';
@@ -5,6 +5,8 @@ export interface IconProps extends ViewProps {
5
5
  filled?: boolean;
6
6
  orientation?: 'left' | 'right' | 'up' | 'down';
7
7
  }
8
+ export declare const UserIcon: React.FC<IconProps>;
9
+ export declare const HelpIcon: ({ widthHeight, color, filled, strokeWidth, ...props }: IconProps) => React.JSX.Element;
8
10
  export declare const ChevronIcon: React.FC<IconProps>;
9
11
  export declare const DragHandleIcon: React.FC<IconProps>;
10
12
  export declare const FileIcon: React.FC<IconProps>;
@@ -32,6 +34,7 @@ export declare const BookmarkIcon: React.FC<IconProps>;
32
34
  export declare const CloudIcon: React.FC<IconProps>;
33
35
  export declare const CopyIcon: React.FC<IconProps>;
34
36
  export declare const DustBinIcon: React.FC<IconProps>;
37
+ export declare const DeleteIcon: React.FC<IconProps>;
35
38
  export declare const EditIcon: React.FC<IconProps>;
36
39
  export declare const ErrorIcon: React.FC<IconProps>;
37
40
  export declare const DownloadIcon: React.FC<IconProps>;
@@ -0,0 +1,126 @@
1
+ import React from 'react';
2
+ import { ViewProps } from 'app-studio';
3
+ import { NavigationItem, NavigationMenuStyles, Orientation, Size, Variant } from './NavigationMenu.type';
4
+ export interface NavigationMenuProps {
5
+ /**
6
+ * The items to display in the navigation menu
7
+ */
8
+ items: NavigationItem[];
9
+ /**
10
+ * The orientation of the navigation menu
11
+ */
12
+ orientation?: Orientation;
13
+ /**
14
+ * The size of the navigation menu items
15
+ */
16
+ size?: Size;
17
+ /**
18
+ * The visual style variant of the navigation menu
19
+ */
20
+ variant?: Variant;
21
+ /**
22
+ * The ID of the initially active item
23
+ */
24
+ defaultActiveItemId?: string;
25
+ /**
26
+ * The IDs of the initially expanded items (for items with sub-items)
27
+ */
28
+ defaultExpandedItemIds?: string[];
29
+ /**
30
+ * Callback when an item is activated
31
+ */
32
+ onItemActivate?: (itemId: string) => void;
33
+ /**
34
+ * Custom styles for different parts of the navigation menu
35
+ */
36
+ views?: NavigationMenuStyles;
37
+ /**
38
+ * Additional props to be spread to the container element
39
+ */
40
+ [key: string]: any;
41
+ }
42
+ export interface NavigationMenuListProps {
43
+ /**
44
+ * The content of the navigation menu list
45
+ */
46
+ children: React.ReactNode;
47
+ /**
48
+ * Custom styles for the list
49
+ */
50
+ views?: {
51
+ container?: ViewProps;
52
+ };
53
+ }
54
+ export interface NavigationMenuItemProps {
55
+ /**
56
+ * The navigation item data
57
+ */
58
+ item: NavigationItem;
59
+ /**
60
+ * Custom styles for the item
61
+ */
62
+ views?: {
63
+ item?: ViewProps;
64
+ trigger?: ViewProps;
65
+ content?: ViewProps;
66
+ icon?: ViewProps;
67
+ indicator?: ViewProps;
68
+ };
69
+ }
70
+ export interface NavigationMenuTriggerProps {
71
+ /**
72
+ * The content of the navigation menu trigger
73
+ */
74
+ children: React.ReactNode;
75
+ /**
76
+ * The ID of the item this trigger belongs to
77
+ */
78
+ itemId: string;
79
+ /**
80
+ * Whether the item is disabled
81
+ */
82
+ disabled?: boolean;
83
+ /**
84
+ * Custom styles for the trigger
85
+ */
86
+ views?: {
87
+ container?: ViewProps;
88
+ icon?: ViewProps;
89
+ trigger?: ViewProps;
90
+ indicator?: ViewProps;
91
+ };
92
+ }
93
+ export interface NavigationMenuContentProps {
94
+ /**
95
+ * The content to be displayed
96
+ */
97
+ children: React.ReactNode;
98
+ /**
99
+ * The ID of the item this content belongs to
100
+ */
101
+ itemId: string;
102
+ /**
103
+ * Custom styles for the content
104
+ */
105
+ views?: {
106
+ container?: ViewProps;
107
+ };
108
+ }
109
+ export interface NavigationMenuType extends React.FC<NavigationMenuProps> {
110
+ /**
111
+ * The list component for the navigation menu
112
+ */
113
+ List: React.FC<NavigationMenuListProps>;
114
+ /**
115
+ * The item component for the navigation menu
116
+ */
117
+ Item: React.FC<NavigationMenuItemProps>;
118
+ /**
119
+ * The trigger component for navigation menu items with sub-items
120
+ */
121
+ Trigger: React.FC<NavigationMenuTriggerProps>;
122
+ /**
123
+ * The content component for navigation menu items with sub-items
124
+ */
125
+ Content: React.FC<NavigationMenuContentProps>;
126
+ }
@@ -0,0 +1,8 @@
1
+ /// <reference types="react" />
2
+ export declare const useNavigationMenuState: (defaultActiveItemId?: string | null, defaultExpandedItemIds?: string[]) => {
3
+ activeItemId: string | null;
4
+ setActiveItemId: import("react").Dispatch<import("react").SetStateAction<string | null>>;
5
+ expandedItemIds: string[];
6
+ toggleExpandedItem: (itemId: string) => void;
7
+ isItemExpanded: (itemId: string) => boolean;
8
+ };
@@ -0,0 +1,18 @@
1
+ import { ViewProps } from 'app-studio';
2
+ import { Orientation, Size, Variant } from './NavigationMenu.type';
3
+ export declare const NavigationMenuSizes: Record<Size, ViewProps>;
4
+ export declare const NavigationMenuVariants: Record<Variant, ViewProps>;
5
+ export declare const NavigationMenuOrientations: Record<Orientation, ViewProps>;
6
+ export declare const NavigationMenuItemStates: {
7
+ active: {
8
+ backgroundColor: string;
9
+ fontWeight: string;
10
+ };
11
+ hover: {
12
+ backgroundColor: string;
13
+ };
14
+ disabled: {
15
+ opacity: number;
16
+ cursor: string;
17
+ };
18
+ };
@@ -0,0 +1,34 @@
1
+ import { ViewProps } from 'app-studio';
2
+ import React from 'react';
3
+ export declare type Orientation = 'horizontal' | 'vertical';
4
+ export declare type Size = 'sm' | 'md' | 'lg';
5
+ export declare type Variant = 'default' | 'filled' | 'outline';
6
+ export interface NavigationItem {
7
+ id: string;
8
+ label: string;
9
+ icon?: React.ReactNode;
10
+ href?: string;
11
+ items?: NavigationItem[];
12
+ disabled?: boolean;
13
+ }
14
+ export interface NavigationMenuContextType {
15
+ activeItemId: string | null;
16
+ setActiveItemId: (id: string | null) => void;
17
+ expandedItemIds: string[];
18
+ toggleExpandedItem: (id: string) => void;
19
+ isItemExpanded: (id: string) => boolean;
20
+ onItemActivate?: (itemId: string) => void;
21
+ orientation: Orientation;
22
+ size: Size;
23
+ variant: Variant;
24
+ }
25
+ export interface NavigationMenuStyles {
26
+ container?: ViewProps;
27
+ list?: ViewProps;
28
+ item?: ViewProps;
29
+ activeItem?: ViewProps;
30
+ content?: ViewProps;
31
+ trigger?: ViewProps;
32
+ icon?: ViewProps;
33
+ indicator?: ViewProps;
34
+ }
@@ -0,0 +1,19 @@
1
+ import React from 'react';
2
+ import { NavigationMenuContextType, NavigationItem, Orientation, Size, Variant } from './NavigationMenu.type';
3
+ import { NavigationMenuItemProps, NavigationMenuListProps, NavigationMenuTriggerProps, NavigationMenuContentProps } from './NavigationMenu.props';
4
+ export declare const NavigationMenuProvider: React.FC<{
5
+ children: React.ReactNode;
6
+ value: NavigationMenuContextType;
7
+ }>;
8
+ export declare const useNavigationMenuContext: () => NavigationMenuContextType;
9
+ export declare const NavigationMenuList: React.FC<NavigationMenuListProps>;
10
+ export declare const NavigationMenuItem: React.FC<NavigationMenuItemProps>;
11
+ export declare const NavigationMenuTrigger: React.FC<NavigationMenuTriggerProps>;
12
+ export declare const NavigationMenuContent: React.FC<NavigationMenuContentProps>;
13
+ export declare const NavigationMenuView: React.FC<{
14
+ items: NavigationItem[];
15
+ orientation: Orientation;
16
+ size: Size;
17
+ variant: Variant;
18
+ views?: any;
19
+ }>;
@@ -0,0 +1,2 @@
1
+ import { NavigationMenuType } from './NavigationMenu/NavigationMenu.props';
2
+ export declare const NavigationMenu: NavigationMenuType;
@@ -0,0 +1,2 @@
1
+ import React from 'react';
2
+ export declare const DefaultNavigationMenu: () => React.JSX.Element;
@@ -0,0 +1,2 @@
1
+ import React from 'react';
2
+ export declare const HorizontalNavigationMenu: () => React.JSX.Element;
@@ -0,0 +1,4 @@
1
+ export * from './default';
2
+ export * from './horizontal';
3
+ export * from './variants';
4
+ export * from './sizes';
@@ -0,0 +1,2 @@
1
+ import React from 'react';
2
+ export declare const NavigationMenuSizes: () => React.JSX.Element;
@@ -0,0 +1,2 @@
1
+ import React from 'react';
2
+ export declare const NavigationMenuVariants: () => React.JSX.Element;
@@ -1,8 +1,10 @@
1
+ export * from './Accordion/Accordion';
1
2
  export * from './Alert/Alert';
2
3
  export * from './AspectRatio/AspectRatio';
3
4
  export * from './Avatar/Avatar';
4
5
  export * from './Badge/Badge';
5
6
  export * from './Button/Button';
7
+ export * from './ContextMenu/ContextMenu';
6
8
  export * from './File/File';
7
9
  export * from './Form/Select/Select';
8
10
  export * from './Form/Switch/Switch';
@@ -25,6 +27,7 @@ export * from './Loader/Loader';
25
27
  export * from './Uploader/Uploader';
26
28
  export * from './Message/Message';
27
29
  export * from './Modal/Modal';
30
+ export * from './NavigationMenu/NavigationMenu';
28
31
  export * from './Table/Table';
29
32
  export * from './Tabs/Tabs';
30
33
  export * from './Text/Text';
@@ -33,12 +36,15 @@ export * as Icon from './Icon/Icon';
33
36
  export * from './Toggle/Toggle';
34
37
  export * from './ToggleGroup/ToggleGroup';
35
38
  export * from './DragAndDrop/DragAndDrop';
39
+ export * from './DropdownMenu/DropdownMenu';
36
40
  export * from './HoverCard/HoverCard';
41
+ export * from './Accordion/Accordion/Accordion.props';
37
42
  export * from './Alert/Alert/Alert.props';
38
43
  export * from './AspectRatio/AspectRatio/AspectRatio.props';
39
44
  export * from './Avatar/Avatar/Avatar.props';
40
45
  export * from './Badge/Badge/Badge.props';
41
46
  export * from './Button/Button/Button.props';
47
+ export * from './ContextMenu/ContextMenu/ContextMenu.props';
42
48
  export * from './Form/Select/Select/Select.props';
43
49
  export * from './Form/Switch/Switch/Switch.props';
44
50
  export * from './Form/Switch/Switch/Switch.props';
@@ -63,3 +69,5 @@ export * from './Text/Text/Text.props';
63
69
  export * from './Toggle/Toggle/Toggle.props';
64
70
  export * from './ToggleGroup/ToggleGroup/ToggleGroup.props';
65
71
  export * from './HoverCard/HoverCard/HoverCard.props';
72
+ export * from './NavigationMenu/NavigationMenu/NavigationMenu.props';
73
+ export * from './DropdownMenu/DropdownMenu/DropdownMenu.props';
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ declare const AccordionPage: () => React.JSX.Element;
3
+ export default AccordionPage;
@@ -1,3 +1,8 @@
1
1
  import React from 'react';
2
+ export declare const componentList: {
3
+ name: string;
4
+ path: string;
5
+ element: React.JSX.Element;
6
+ }[];
2
7
  export declare const ComponentsPage: () => React.JSX.Element;
3
8
  export default ComponentsPage;
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ declare const ContextMenuPage: () => React.JSX.Element;
3
+ export default ContextMenuPage;
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ declare const DropdownMenuPage: () => React.JSX.Element;
3
+ export default DropdownMenuPage;
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ declare const NavigationMenuPage: () => React.JSX.Element;
3
+ export default NavigationMenuPage;