@app-studio/web 0.9.34 → 0.9.36

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 (37) hide show
  1. package/dist/components/Calendar/Calendar/Calendar.style.d.ts +4 -0
  2. package/dist/components/OKR/OKR/OKR.props.d.ts +72 -0
  3. package/dist/components/OKR/OKR/OKR.style.d.ts +19 -0
  4. package/dist/components/OKR/OKR/OKR.view.d.ts +4 -0
  5. package/dist/components/OKR/OKR.d.ts +4 -0
  6. package/dist/components/index.d.ts +4 -3
  7. package/dist/pages/okr.page.d.ts +3 -0
  8. package/dist/web.cjs.development.js +595 -760
  9. package/dist/web.cjs.development.js.map +1 -1
  10. package/dist/web.cjs.production.min.js +1 -1
  11. package/dist/web.cjs.production.min.js.map +1 -1
  12. package/dist/web.esm.js +595 -760
  13. package/dist/web.esm.js.map +1 -1
  14. package/dist/web.umd.development.js +598 -762
  15. package/dist/web.umd.development.js.map +1 -1
  16. package/dist/web.umd.production.min.js +1 -1
  17. package/dist/web.umd.production.min.js.map +1 -1
  18. package/docs/README.md +2 -1
  19. package/docs/components/Calendar.mdx +22 -110
  20. package/docs/components/Flow.mdx +1 -0
  21. package/docs/components/KanbanBoard.mdx +156 -0
  22. package/docs/components/OKR.mdx +475 -0
  23. package/docs/components/Title.mdx +1 -0
  24. package/docs/components/Tree.mdx +1 -0
  25. package/docs/components.md +178 -0
  26. package/package.json +1 -1
  27. package/dist/components/CalendarWeek/CalendarWeek/CalendarWeek.props.d.ts +0 -51
  28. package/dist/components/CalendarWeek/CalendarWeek/CalendarWeek.style.d.ts +0 -90
  29. package/dist/components/CalendarWeek/CalendarWeek/CalendarWeek.utils.d.ts +0 -51
  30. package/dist/components/CalendarWeek/CalendarWeek/CalendarWeek.view.d.ts +0 -3
  31. package/dist/components/CalendarWeek/CalendarWeek.d.ts +0 -1
  32. package/docs/api-reference/README.md +0 -103
  33. package/docs/api-reference/data-display/flow.md +0 -220
  34. package/docs/api-reference/data-display/tree.md +0 -210
  35. package/docs/api-reference/form/chat-input.md +0 -206
  36. package/docs/api-reference/utility/button.md +0 -145
  37. package/docs/api-reference/utility/title.md +0 -301
@@ -61,6 +61,10 @@ export declare const weekdayLabelStyles: ViewProps;
61
61
  * Individual day cell styles
62
62
  */
63
63
  export declare const dayCellStyles: ViewProps;
64
+ /**
65
+ * Day date styles (the circular number)
66
+ */
67
+ export declare const dayDateStyles: ViewProps;
64
68
  /**
65
69
  * Day cell from different month
66
70
  */
@@ -0,0 +1,72 @@
1
+ import type { ViewProps } from 'app-studio';
2
+ import type { ReactNode } from 'react';
3
+ import type { ProgressBarStyles } from '../../ProgressBar/ProgressBar/ProgressBar.props';
4
+ import type { StatusIndicatorStyles } from '../../StatusIndicator/StatusIndicator/StatusIndicator.type';
5
+ import type { TextProps } from '../../Text/Text/Text.props';
6
+ export declare type OKRStatus = 'notStarted' | 'onTrack' | 'atRisk' | 'offTrack' | 'achieved';
7
+ export interface OKRKeyResult {
8
+ id: string;
9
+ title: string;
10
+ description?: string;
11
+ progress?: number;
12
+ metric?: string;
13
+ target?: string;
14
+ current?: string;
15
+ owner?: string;
16
+ status?: OKRStatus;
17
+ confidence?: 'low' | 'medium' | 'high';
18
+ lastUpdated?: string;
19
+ tags?: string[];
20
+ }
21
+ export interface OKRObjective {
22
+ id: string;
23
+ title: string;
24
+ description?: string;
25
+ owner?: string;
26
+ timeframe?: string;
27
+ tags?: string[];
28
+ progress?: number;
29
+ status?: OKRStatus;
30
+ keyResults: OKRKeyResult[];
31
+ }
32
+ export interface OKRViews {
33
+ container?: ViewProps;
34
+ objectiveCard?: ViewProps;
35
+ objectiveHeader?: ViewProps;
36
+ objectiveTitle?: TextProps;
37
+ objectiveDescription?: TextProps;
38
+ objectiveMeta?: ViewProps;
39
+ objectiveOwner?: TextProps;
40
+ objectiveTimeframe?: TextProps;
41
+ objectiveTags?: ViewProps;
42
+ tag?: ViewProps;
43
+ tagText?: TextProps;
44
+ objectiveProgressSection?: ViewProps;
45
+ objectiveProgressLabel?: TextProps;
46
+ objectiveProgressValue?: TextProps;
47
+ objectiveProgressBar?: ProgressBarStyles;
48
+ objectiveStatus?: StatusIndicatorStyles;
49
+ keyResultList?: ViewProps;
50
+ keyResultItem?: ViewProps;
51
+ keyResultHeader?: ViewProps;
52
+ keyResultTitle?: TextProps;
53
+ keyResultDescription?: TextProps;
54
+ keyResultMeta?: ViewProps;
55
+ keyResultOwner?: TextProps;
56
+ keyResultStatus?: StatusIndicatorStyles;
57
+ keyResultTags?: ViewProps;
58
+ keyResultTag?: ViewProps;
59
+ keyResultTagText?: TextProps;
60
+ keyResultProgressSection?: ViewProps;
61
+ keyResultProgressValue?: TextProps;
62
+ keyResultProgressBar?: ProgressBarStyles;
63
+ footer?: ViewProps;
64
+ }
65
+ export interface OKRProps {
66
+ objectives: OKRObjective[];
67
+ themeMode?: 'light' | 'dark';
68
+ views?: OKRViews;
69
+ onKeyResultClick?: (keyResult: OKRKeyResult, objective: OKRObjective) => void;
70
+ renderObjectiveFooter?: (objective: OKRObjective) => ReactNode;
71
+ renderKeyResultFooter?: (keyResult: OKRKeyResult, objective: OKRObjective) => ReactNode;
72
+ }
@@ -0,0 +1,19 @@
1
+ import type { ViewProps } from 'app-studio';
2
+ import type { Status } from '../../StatusIndicator/StatusIndicator/StatusIndicator.type';
3
+ import type { OKRStatus } from './OKR.props';
4
+ declare type ThemeMode = 'light' | 'dark';
5
+ declare type OKRTheme = {
6
+ container: ViewProps;
7
+ objectiveCard: ViewProps;
8
+ tag: ViewProps;
9
+ keyResultItem: ViewProps;
10
+ divider: ViewProps;
11
+ };
12
+ export declare const getOKRTheme: (mode: ThemeMode) => OKRTheme;
13
+ export declare const STATUS_METADATA: Record<OKRStatus, {
14
+ indicator: Status;
15
+ label: string;
16
+ }>;
17
+ export declare const deriveStatusFromProgress: (progress: number) => OKRStatus;
18
+ export declare const clampProgress: (value?: number | undefined) => number;
19
+ export {};
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import { OKRProps } from './OKR.props';
3
+ declare const OKRView: React.FC<OKRProps>;
4
+ export default OKRView;
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import { OKRProps } from './OKR/OKR.props';
3
+ export declare const OKR: React.FC<OKRProps>;
4
+ export default OKR;
@@ -11,8 +11,6 @@ export * from './Carousel/Carousel';
11
11
  export * from './Chart/Chart';
12
12
  export * from './KanbanBoard/KanbanBoard';
13
13
  export * from './Calendar/Calendar';
14
- export * from './CalendarWeek/CalendarWeek';
15
- export * from './Calendar/Calendar';
16
14
  export * from './CookieConsent/CookieConsent';
17
15
  export * from './ContextMenu/ContextMenu';
18
16
  export * from './File/File';
@@ -38,6 +36,7 @@ export * from './Message/Message';
38
36
  export * from './MediaPreview';
39
37
  export * from './Modal/Modal';
40
38
  export * from './NavigationMenu/NavigationMenu';
39
+ export * from './OKR/OKR';
41
40
  export * from './Table/Table';
42
41
  export * from './Tabs/Tabs';
43
42
  export * from './Text/Text';
@@ -64,6 +63,7 @@ export * from './Command/Command';
64
63
  export * from './Tooltip/Tooltip';
65
64
  export * from './Tree/Tree';
66
65
  export * from './Flow/Flow';
66
+ export * from './OKR/OKR';
67
67
  export * from './ChatInput/ChatInput';
68
68
  export * from './Background/Background';
69
69
  export { default as AgentChat } from './adk/AgentChat/AgentChat';
@@ -82,7 +82,6 @@ export * from './KanbanBoard/KanbanBoard/KanbanBoard.props';
82
82
  export * from './Carousel/Carousel/Carousel.props';
83
83
  export * from './Chart/Chart/Chart.props';
84
84
  export * from './Calendar/Calendar/Calendar.props';
85
- export * from './CalendarWeek/CalendarWeek/CalendarWeek.props';
86
85
  export * from './CookieConsent/CookieConsent/CookieConsent.props';
87
86
  export * from './ContextMenu/ContextMenu/ContextMenu.props';
88
87
  export * from './Form/Select/Select/Select.props';
@@ -109,6 +108,7 @@ export * from './Toggle/Toggle/Toggle.props';
109
108
  export * from './ToggleGroup/ToggleGroup/ToggleGroup.props';
110
109
  export * from './HoverCard/HoverCard/HoverCard.props';
111
110
  export * from './NavigationMenu/NavigationMenu/NavigationMenu.props';
111
+ export * from './OKR/OKR/OKR.props';
112
112
  export * from './DropdownMenu/DropdownMenu/DropdownMenu.props';
113
113
  export * from './ColorPicker/ColorPicker/ColorPicker.props';
114
114
  export * from './EmojiPicker/EmojiPicker/EmojiPicker.props';
@@ -125,6 +125,7 @@ export * from './Command/Command/Command.props';
125
125
  export * from './Tooltip/Tooltip/Tooltip.props';
126
126
  export * from './Tree/Tree/Tree.props';
127
127
  export * from './Flow/Flow/Flow.props';
128
+ export * from './OKR/OKR/OKR.props';
128
129
  export * from './ChatInput/ChatInput/ChatInput.props';
129
130
  export * from './Background/Background/Background.props';
130
131
  export type { AgentRunRequest, MessagePart, AgentMessage, MessageAttachment, AgentChatViews, AgentChatEventHandlers, AgentChatProps, } from './adk/AgentChat/AgentChat/AgentChat.props';
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ declare const CalendarPage: () => React.JSX.Element;
3
+ export default CalendarPage;