@agentiffai/design 1.2.1 → 1.3.3
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.
- package/dist/copilotkit/index.cjs +8 -8
- package/dist/copilotkit/index.cjs.map +1 -1
- package/dist/copilotkit/index.js +8 -8
- package/dist/copilotkit/index.js.map +1 -1
- package/dist/icons/index.cjs.map +1 -1
- package/dist/icons/index.js.map +1 -1
- package/dist/index.cjs +167 -66
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +167 -66
- package/dist/index.js.map +1 -1
- package/dist/layout/index.cjs +123 -47
- package/dist/layout/index.cjs.map +1 -1
- package/dist/layout/index.d.cts +14 -9
- package/dist/layout/index.d.ts +14 -9
- package/dist/layout/index.js +123 -47
- package/dist/layout/index.js.map +1 -1
- package/dist/theme/index.cjs +12 -11
- package/dist/theme/index.cjs.map +1 -1
- package/dist/theme/index.d.cts +12 -9
- package/dist/theme/index.d.ts +12 -9
- package/dist/theme/index.js +12 -11
- package/dist/theme/index.js.map +1 -1
- package/dist/workflow/index.cjs +21 -6
- package/dist/workflow/index.cjs.map +1 -1
- package/dist/workflow/index.js +21 -6
- package/dist/workflow/index.js.map +1 -1
- package/package.json +1 -1
- package/public/assets/icon-set/Icon-arrow-up-fill.svg +1 -0
- package/public/assets/icon-set/Icon-box-3-fill.svg +1 -0
- package/public/assets/icon-set/Icon-briefcase-fill.svg +1 -0
- package/public/assets/icon-set/Icon-clipboard-fill.svg +1 -0
- package/public/assets/icon-set/Icon-edit-fill.svg +1 -0
- package/public/assets/icon-set/Icon-emotion-happy-fill.svg +1 -0
- package/public/assets/icon-set/Icon-external-link-fill.svg +1 -0
- package/public/assets/icon-set/Icon-flow-chart.svg +1 -0
- package/public/assets/icon-set/Icon-git-branch-fill.svg +1 -0
- package/public/assets/icon-set/Icon-lightbulb-fill.svg +1 -0
- package/public/assets/icon-set/Icon-logout-circle-r-fill.svg +1 -0
- package/public/assets/icon-set/Icon-logout-circle-r-line.svg +1 -0
- package/public/assets/icon-set/Icon-map-pin-fill.svg +1 -0
- package/public/assets/icon-set/Icon-refresh-fill.svg +1 -0
- package/public/assets/icon-set/Icon-settings-3-line.svg +1 -0
- package/public/assets/icon-set/Icon-side-bar-fill.svg +1 -0
- package/public/assets/icon-set/Icon-skip-forward-fill.svg +1 -0
- package/public/assets/icon-set/Icon-time-fill.svg +1 -0
package/dist/layout/index.d.cts
CHANGED
|
@@ -61,9 +61,7 @@ declare const IconNames: {
|
|
|
61
61
|
readonly MIC_OFF: "mic-off-fill";
|
|
62
62
|
readonly HEADPHONE: "headphone-fill";
|
|
63
63
|
readonly VOLUME_MUTE: "volume-mute-fill";
|
|
64
|
-
readonly
|
|
65
|
-
readonly SETTINGS_FILL: "settings-fill";
|
|
66
|
-
readonly SETTINGS_LINE: "settings-line";
|
|
64
|
+
readonly SETTINGS_3_LINE: "settings-3-line";
|
|
67
65
|
readonly HOME: "home-fill";
|
|
68
66
|
readonly ADD_CIRCLE: "add-circle-fill";
|
|
69
67
|
readonly COMPASS_DISCOVER: "compass-discover-fill";
|
|
@@ -71,6 +69,10 @@ declare const IconNames: {
|
|
|
71
69
|
readonly ARROW_LEFT: "arrow-left-fill";
|
|
72
70
|
readonly CALENDAR: "calendar-fill";
|
|
73
71
|
readonly CHAT: "chat-1-fill";
|
|
72
|
+
readonly FLOW_CHART: "flow-chart";
|
|
73
|
+
readonly LOGOUT_CIRCLE_R_FILL: "logout-circle-r-fill";
|
|
74
|
+
readonly LOGOUT_CIRCLE_R_LINE: "logout-circle-r-line";
|
|
75
|
+
readonly SIDE_BAR_FILL: "side-bar-fill";
|
|
74
76
|
};
|
|
75
77
|
type IconName = (typeof IconNames)[keyof typeof IconNames];
|
|
76
78
|
|
|
@@ -93,9 +95,12 @@ interface LayoutProps {
|
|
|
93
95
|
navHorizontalUserSlot?: ReactNode;
|
|
94
96
|
navHorizontalActionsSlot?: ReactNode;
|
|
95
97
|
onNavBackClick?: () => void;
|
|
98
|
+
onNavHomeClick?: () => void;
|
|
99
|
+
onNavSettingsClick?: () => void;
|
|
100
|
+
onNavLogoutClick?: () => void;
|
|
96
101
|
className?: string;
|
|
97
102
|
}
|
|
98
|
-
declare function Layout({ mainPaneSlot, backgroundSlot, navVerticalSlot, navHorizontalUserSlot, navHorizontalActionsSlot, onNavBackClick, className, }: LayoutProps): react_jsx_runtime.JSX.Element;
|
|
103
|
+
declare function Layout({ mainPaneSlot, backgroundSlot, navVerticalSlot, navHorizontalUserSlot, navHorizontalActionsSlot, onNavBackClick, onNavHomeClick, onNavSettingsClick, onNavLogoutClick, className, }: LayoutProps): react_jsx_runtime.JSX.Element;
|
|
99
104
|
declare namespace Layout {
|
|
100
105
|
var displayName: string;
|
|
101
106
|
}
|
|
@@ -113,14 +118,12 @@ declare namespace NavHorizontal {
|
|
|
113
118
|
|
|
114
119
|
interface ActionButtonsProps {
|
|
115
120
|
onCalendarClick?: () => void;
|
|
116
|
-
onSettingsClick?: () => void;
|
|
117
121
|
onChatClick?: () => void;
|
|
118
122
|
isCalendarActive?: boolean;
|
|
119
|
-
isSettingsActive?: boolean;
|
|
120
123
|
isChatActive?: boolean;
|
|
121
124
|
className?: string;
|
|
122
125
|
}
|
|
123
|
-
declare function ActionButtons({ onCalendarClick,
|
|
126
|
+
declare function ActionButtons({ onCalendarClick, onChatClick, isCalendarActive, isChatActive, className, }: ActionButtonsProps): react_jsx_runtime.JSX.Element;
|
|
124
127
|
declare namespace ActionButtons {
|
|
125
128
|
var displayName: string;
|
|
126
129
|
}
|
|
@@ -141,11 +144,13 @@ declare namespace WorkflowStatusCard {
|
|
|
141
144
|
interface NavVerticalProps {
|
|
142
145
|
onBackClick?: () => void;
|
|
143
146
|
onHomeClick?: () => void;
|
|
147
|
+
onSettingsClick?: () => void;
|
|
148
|
+
onLogoutClick?: () => void;
|
|
144
149
|
folderGroupsSlot?: ReactNode;
|
|
145
150
|
className?: string;
|
|
146
151
|
'aria-label'?: string;
|
|
147
152
|
}
|
|
148
|
-
declare function NavVertical({ onBackClick, onHomeClick, folderGroupsSlot, className, 'aria-label': ariaLabel, }: NavVerticalProps): react_jsx_runtime.JSX.Element;
|
|
153
|
+
declare function NavVertical({ onBackClick, onHomeClick, onSettingsClick, onLogoutClick, folderGroupsSlot, className, 'aria-label': ariaLabel, }: NavVerticalProps): react_jsx_runtime.JSX.Element;
|
|
149
154
|
declare namespace NavVertical {
|
|
150
155
|
var displayName: string;
|
|
151
156
|
}
|
|
@@ -217,7 +222,7 @@ interface PaneSectionHeaderProps {
|
|
|
217
222
|
onSettingsClick?: () => void;
|
|
218
223
|
/**
|
|
219
224
|
* Icon name for the settings button
|
|
220
|
-
* @default '
|
|
225
|
+
* @default 'flow-chart'
|
|
221
226
|
*/
|
|
222
227
|
settingsIcon?: string;
|
|
223
228
|
/**
|
package/dist/layout/index.d.ts
CHANGED
|
@@ -61,9 +61,7 @@ declare const IconNames: {
|
|
|
61
61
|
readonly MIC_OFF: "mic-off-fill";
|
|
62
62
|
readonly HEADPHONE: "headphone-fill";
|
|
63
63
|
readonly VOLUME_MUTE: "volume-mute-fill";
|
|
64
|
-
readonly
|
|
65
|
-
readonly SETTINGS_FILL: "settings-fill";
|
|
66
|
-
readonly SETTINGS_LINE: "settings-line";
|
|
64
|
+
readonly SETTINGS_3_LINE: "settings-3-line";
|
|
67
65
|
readonly HOME: "home-fill";
|
|
68
66
|
readonly ADD_CIRCLE: "add-circle-fill";
|
|
69
67
|
readonly COMPASS_DISCOVER: "compass-discover-fill";
|
|
@@ -71,6 +69,10 @@ declare const IconNames: {
|
|
|
71
69
|
readonly ARROW_LEFT: "arrow-left-fill";
|
|
72
70
|
readonly CALENDAR: "calendar-fill";
|
|
73
71
|
readonly CHAT: "chat-1-fill";
|
|
72
|
+
readonly FLOW_CHART: "flow-chart";
|
|
73
|
+
readonly LOGOUT_CIRCLE_R_FILL: "logout-circle-r-fill";
|
|
74
|
+
readonly LOGOUT_CIRCLE_R_LINE: "logout-circle-r-line";
|
|
75
|
+
readonly SIDE_BAR_FILL: "side-bar-fill";
|
|
74
76
|
};
|
|
75
77
|
type IconName = (typeof IconNames)[keyof typeof IconNames];
|
|
76
78
|
|
|
@@ -93,9 +95,12 @@ interface LayoutProps {
|
|
|
93
95
|
navHorizontalUserSlot?: ReactNode;
|
|
94
96
|
navHorizontalActionsSlot?: ReactNode;
|
|
95
97
|
onNavBackClick?: () => void;
|
|
98
|
+
onNavHomeClick?: () => void;
|
|
99
|
+
onNavSettingsClick?: () => void;
|
|
100
|
+
onNavLogoutClick?: () => void;
|
|
96
101
|
className?: string;
|
|
97
102
|
}
|
|
98
|
-
declare function Layout({ mainPaneSlot, backgroundSlot, navVerticalSlot, navHorizontalUserSlot, navHorizontalActionsSlot, onNavBackClick, className, }: LayoutProps): react_jsx_runtime.JSX.Element;
|
|
103
|
+
declare function Layout({ mainPaneSlot, backgroundSlot, navVerticalSlot, navHorizontalUserSlot, navHorizontalActionsSlot, onNavBackClick, onNavHomeClick, onNavSettingsClick, onNavLogoutClick, className, }: LayoutProps): react_jsx_runtime.JSX.Element;
|
|
99
104
|
declare namespace Layout {
|
|
100
105
|
var displayName: string;
|
|
101
106
|
}
|
|
@@ -113,14 +118,12 @@ declare namespace NavHorizontal {
|
|
|
113
118
|
|
|
114
119
|
interface ActionButtonsProps {
|
|
115
120
|
onCalendarClick?: () => void;
|
|
116
|
-
onSettingsClick?: () => void;
|
|
117
121
|
onChatClick?: () => void;
|
|
118
122
|
isCalendarActive?: boolean;
|
|
119
|
-
isSettingsActive?: boolean;
|
|
120
123
|
isChatActive?: boolean;
|
|
121
124
|
className?: string;
|
|
122
125
|
}
|
|
123
|
-
declare function ActionButtons({ onCalendarClick,
|
|
126
|
+
declare function ActionButtons({ onCalendarClick, onChatClick, isCalendarActive, isChatActive, className, }: ActionButtonsProps): react_jsx_runtime.JSX.Element;
|
|
124
127
|
declare namespace ActionButtons {
|
|
125
128
|
var displayName: string;
|
|
126
129
|
}
|
|
@@ -141,11 +144,13 @@ declare namespace WorkflowStatusCard {
|
|
|
141
144
|
interface NavVerticalProps {
|
|
142
145
|
onBackClick?: () => void;
|
|
143
146
|
onHomeClick?: () => void;
|
|
147
|
+
onSettingsClick?: () => void;
|
|
148
|
+
onLogoutClick?: () => void;
|
|
144
149
|
folderGroupsSlot?: ReactNode;
|
|
145
150
|
className?: string;
|
|
146
151
|
'aria-label'?: string;
|
|
147
152
|
}
|
|
148
|
-
declare function NavVertical({ onBackClick, onHomeClick, folderGroupsSlot, className, 'aria-label': ariaLabel, }: NavVerticalProps): react_jsx_runtime.JSX.Element;
|
|
153
|
+
declare function NavVertical({ onBackClick, onHomeClick, onSettingsClick, onLogoutClick, folderGroupsSlot, className, 'aria-label': ariaLabel, }: NavVerticalProps): react_jsx_runtime.JSX.Element;
|
|
149
154
|
declare namespace NavVertical {
|
|
150
155
|
var displayName: string;
|
|
151
156
|
}
|
|
@@ -217,7 +222,7 @@ interface PaneSectionHeaderProps {
|
|
|
217
222
|
onSettingsClick?: () => void;
|
|
218
223
|
/**
|
|
219
224
|
* Icon name for the settings button
|
|
220
|
-
* @default '
|
|
225
|
+
* @default 'flow-chart'
|
|
221
226
|
*/
|
|
222
227
|
settingsIcon?: string;
|
|
223
228
|
/**
|
package/dist/layout/index.js
CHANGED
|
@@ -78,12 +78,12 @@ var tokens = {
|
|
|
78
78
|
fontFamily: {
|
|
79
79
|
primary: "'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', sans-serif"},
|
|
80
80
|
fontSize: {
|
|
81
|
-
xs: "0.
|
|
82
|
-
// 12px
|
|
83
|
-
sm: "
|
|
84
|
-
// 14px
|
|
85
|
-
base: "
|
|
86
|
-
// 18px
|
|
81
|
+
xs: "0.875rem",
|
|
82
|
+
// 14px (was 12px, increased for better readability)
|
|
83
|
+
sm: "1rem",
|
|
84
|
+
// 16px (was 14px, increased for better readability)
|
|
85
|
+
base: "1.125rem",
|
|
86
|
+
// 18px (heading size, unchanged)
|
|
87
87
|
xl: "1.25rem"},
|
|
88
88
|
fontWeight: {
|
|
89
89
|
regular: 400,
|
|
@@ -431,32 +431,36 @@ var IconNames = {
|
|
|
431
431
|
MIC_OFF: "mic-off-fill",
|
|
432
432
|
HEADPHONE: "headphone-fill",
|
|
433
433
|
VOLUME_MUTE: "volume-mute-fill",
|
|
434
|
-
|
|
435
|
-
SETTINGS_FILL: "settings-fill",
|
|
436
|
-
SETTINGS_LINE: "settings-line",
|
|
434
|
+
SETTINGS_3_LINE: "settings-3-line",
|
|
437
435
|
HOME: "home-fill",
|
|
438
436
|
ADD_CIRCLE: "add-circle-fill",
|
|
439
437
|
COMPASS_DISCOVER: "compass-discover-fill",
|
|
440
438
|
DOWNLOAD: "download-2-fill",
|
|
441
439
|
ARROW_LEFT: "arrow-left-fill",
|
|
442
440
|
CALENDAR: "calendar-fill",
|
|
443
|
-
CHAT: "chat-1-fill"
|
|
441
|
+
CHAT: "chat-1-fill",
|
|
442
|
+
FLOW_CHART: "flow-chart",
|
|
443
|
+
LOGOUT_CIRCLE_R_FILL: "logout-circle-r-fill",
|
|
444
|
+
LOGOUT_CIRCLE_R_LINE: "logout-circle-r-line",
|
|
445
|
+
SIDE_BAR_FILL: "side-bar-fill"
|
|
444
446
|
};
|
|
445
447
|
var iconFiles = {
|
|
446
448
|
"mic-fill": "Icon-mic-fill.svg",
|
|
447
449
|
"mic-off-fill": "Icon-mic-off-fill.svg",
|
|
448
450
|
"headphone-fill": "Icon-headphone-fill.svg",
|
|
449
451
|
"volume-mute-fill": "Icon-volume-mute-fill.svg",
|
|
450
|
-
"settings-3-
|
|
451
|
-
"settings-fill": "Icon-settings-fill.svg",
|
|
452
|
-
"settings-line": "Icon-settings-line.svg",
|
|
452
|
+
"settings-3-line": "Icon-settings-3-line.svg",
|
|
453
453
|
"home-fill": "Icon-home-fill.svg",
|
|
454
454
|
"add-circle-fill": "Icon-add-circle-fill.svg",
|
|
455
455
|
"compass-discover-fill": "Icon-compass-discover-fill.svg",
|
|
456
456
|
"download-2-fill": "Icon-download-2-fill.svg",
|
|
457
457
|
"arrow-left-fill": "Icon-arrow-left-fill.svg",
|
|
458
458
|
"calendar-fill": "Icon-calendar-fill.svg",
|
|
459
|
-
"chat-1-fill": "Icon-chat-1-fill.svg"
|
|
459
|
+
"chat-1-fill": "Icon-chat-1-fill.svg",
|
|
460
|
+
"flow-chart": "Icon-flow-chart.svg",
|
|
461
|
+
"logout-circle-r-fill": "Icon-logout-circle-r-fill.svg",
|
|
462
|
+
"logout-circle-r-line": "Icon-logout-circle-r-line.svg",
|
|
463
|
+
"side-bar-fill": "Icon-side-bar-fill.svg"
|
|
460
464
|
};
|
|
461
465
|
function getIconPath(name) {
|
|
462
466
|
return `${ICON_BASE_PATH}/${iconFiles[name]}`;
|
|
@@ -479,6 +483,8 @@ var Container = styled9.nav`
|
|
|
479
483
|
right: 0;
|
|
480
484
|
background-color: ${tokens.colors.background.darker};
|
|
481
485
|
border-top: 1px solid ${tokens.colors.border.subtle};
|
|
486
|
+
/* Add vertical padding to prevent content overlap */
|
|
487
|
+
padding-top: 4px;
|
|
482
488
|
/* Use safe-area-inset-bottom for Android navigation buttons.
|
|
483
489
|
The env() value will be 0 on devices without soft nav buttons.
|
|
484
490
|
Fallback to 0 if env() is not supported. */
|
|
@@ -508,7 +514,7 @@ var UserStatusSlot = styled9.div`
|
|
|
508
514
|
display: flex;
|
|
509
515
|
align-items: center;
|
|
510
516
|
min-width: 0; /* Allow flex item to shrink */
|
|
511
|
-
flex:
|
|
517
|
+
flex: 1 1 auto; /* Allow slot to grow and take available space */
|
|
512
518
|
|
|
513
519
|
/* Handle overflow for long usernames */
|
|
514
520
|
> * {
|
|
@@ -636,6 +642,7 @@ var FolderGroupsSlot = styled9.div`
|
|
|
636
642
|
gap: ${tokens.spacing.sm};
|
|
637
643
|
padding: 0 ${tokens.spacing.md} ${tokens.spacing.md};
|
|
638
644
|
flex: 1;
|
|
645
|
+
padding-bottom: 120px; /* Prevent overlap with bottom section (2 buttons @ 40px + 1 gap @ 8px + padding @ 32px) */
|
|
639
646
|
|
|
640
647
|
/* Server/workspace icons styling */
|
|
641
648
|
> * {
|
|
@@ -652,18 +659,68 @@ var FolderGroupsSlot = styled9.div`
|
|
|
652
659
|
|
|
653
660
|
/* Responsive adjustments */
|
|
654
661
|
@media (max-width: ${tokens.breakpoints.tablet}px) {
|
|
655
|
-
padding: 0 6px ${tokens.spacing.md}; /* Reduce horizontal padding on mobile */
|
|
662
|
+
padding: 0 6px ${tokens.spacing.md} 96px; /* Reduce horizontal padding on mobile */
|
|
663
|
+
}
|
|
664
|
+
`;
|
|
665
|
+
var BottomSection = styled9.div`
|
|
666
|
+
position: absolute;
|
|
667
|
+
bottom: 0; /* At the bottom of the nav container */
|
|
668
|
+
left: 0;
|
|
669
|
+
right: 0;
|
|
670
|
+
display: flex;
|
|
671
|
+
flex-direction: column;
|
|
672
|
+
align-items: center;
|
|
673
|
+
gap: ${tokens.spacing.sm};
|
|
674
|
+
padding: ${tokens.spacing.md} 0;
|
|
675
|
+
background-color: ${tokens.colors.background.darker};
|
|
676
|
+
|
|
677
|
+
@media (prefers-color-scheme: dark) {
|
|
678
|
+
background-color: ${tokens.colors.background.darkest};
|
|
679
|
+
}
|
|
680
|
+
`;
|
|
681
|
+
var BottomButton = styled9.button`
|
|
682
|
+
width: 40px;
|
|
683
|
+
height: 40px;
|
|
684
|
+
border-radius: 0;
|
|
685
|
+
border: none;
|
|
686
|
+
background-color: transparent;
|
|
687
|
+
color: white;
|
|
688
|
+
cursor: pointer;
|
|
689
|
+
display: flex;
|
|
690
|
+
align-items: center;
|
|
691
|
+
justify-content: center;
|
|
692
|
+
transition: all ${tokens.transitions.normal};
|
|
693
|
+
|
|
694
|
+
&:hover {
|
|
695
|
+
opacity: 0.7;
|
|
696
|
+
}
|
|
697
|
+
|
|
698
|
+
&:active {
|
|
699
|
+
transform: scale(0.95);
|
|
700
|
+
}
|
|
701
|
+
|
|
702
|
+
&:focus {
|
|
703
|
+
outline: none;
|
|
704
|
+
}
|
|
705
|
+
|
|
706
|
+
&:focus-visible {
|
|
707
|
+
outline: 2px solid ${tokens.colors.border.focus};
|
|
708
|
+
outline-offset: 2px;
|
|
656
709
|
}
|
|
657
710
|
`;
|
|
658
711
|
function NavVertical({
|
|
659
712
|
onBackClick,
|
|
660
713
|
onHomeClick,
|
|
714
|
+
onSettingsClick,
|
|
715
|
+
onLogoutClick,
|
|
661
716
|
folderGroupsSlot,
|
|
662
717
|
className,
|
|
663
718
|
"aria-label": ariaLabel = "Vertical navigation sidebar"
|
|
664
719
|
}) {
|
|
665
720
|
const backButtonRef = useRef(null);
|
|
666
721
|
const homeButtonRef = useRef(null);
|
|
722
|
+
const settingsButtonRef = useRef(null);
|
|
723
|
+
const logoutButtonRef = useRef(null);
|
|
667
724
|
const { buttonProps: backButtonProps } = useButton(
|
|
668
725
|
{
|
|
669
726
|
onPress: onBackClick,
|
|
@@ -678,10 +735,28 @@ function NavVertical({
|
|
|
678
735
|
},
|
|
679
736
|
homeButtonRef
|
|
680
737
|
);
|
|
738
|
+
const { buttonProps: settingsButtonProps } = useButton(
|
|
739
|
+
{
|
|
740
|
+
onPress: onSettingsClick,
|
|
741
|
+
"aria-label": "Settings"
|
|
742
|
+
},
|
|
743
|
+
settingsButtonRef
|
|
744
|
+
);
|
|
745
|
+
const { buttonProps: logoutButtonProps } = useButton(
|
|
746
|
+
{
|
|
747
|
+
onPress: onLogoutClick,
|
|
748
|
+
"aria-label": "Logout"
|
|
749
|
+
},
|
|
750
|
+
logoutButtonRef
|
|
751
|
+
);
|
|
681
752
|
return /* @__PURE__ */ jsxs(Container2, { className, role: "navigation", "aria-label": ariaLabel, children: [
|
|
682
|
-
/* @__PURE__ */ jsx(TopSection, { children: onBackClick ? /* @__PURE__ */ jsx(BackButton, { ...backButtonProps, ref: backButtonRef, children: /* @__PURE__ */ jsx(Icon, { name: "
|
|
753
|
+
/* @__PURE__ */ jsx(TopSection, { children: onBackClick ? /* @__PURE__ */ jsx(BackButton, { ...backButtonProps, ref: backButtonRef, children: /* @__PURE__ */ jsx(Icon, { name: "side-bar-fill", size: 20, color: "white" }) }) : onHomeClick ? /* @__PURE__ */ jsx(BackButton, { ...homeButtonProps, ref: homeButtonRef, children: /* @__PURE__ */ jsx(Icon, { name: "side-bar-fill", size: 24, color: "white" }) }) : null }),
|
|
683
754
|
/* @__PURE__ */ jsx(Separator, {}),
|
|
684
|
-
/* @__PURE__ */ jsx(FolderGroupsSlot, { children: folderGroupsSlot })
|
|
755
|
+
/* @__PURE__ */ jsx(FolderGroupsSlot, { children: folderGroupsSlot }),
|
|
756
|
+
(onSettingsClick || onLogoutClick) && /* @__PURE__ */ jsxs(BottomSection, { children: [
|
|
757
|
+
onSettingsClick && /* @__PURE__ */ jsx(BottomButton, { ...settingsButtonProps, ref: settingsButtonRef, children: /* @__PURE__ */ jsx(Icon, { name: "settings-3-line", size: 24, color: "white" }) }),
|
|
758
|
+
onLogoutClick && /* @__PURE__ */ jsx(BottomButton, { ...logoutButtonProps, ref: logoutButtonRef, children: /* @__PURE__ */ jsx(Icon, { name: "logout-circle-r-line", size: 24, color: "white" }) })
|
|
759
|
+
] })
|
|
685
760
|
] });
|
|
686
761
|
}
|
|
687
762
|
NavVertical.displayName = "NavVertical";
|
|
@@ -781,10 +856,22 @@ function Layout({
|
|
|
781
856
|
navHorizontalUserSlot,
|
|
782
857
|
navHorizontalActionsSlot,
|
|
783
858
|
onNavBackClick,
|
|
859
|
+
onNavHomeClick,
|
|
860
|
+
onNavSettingsClick,
|
|
861
|
+
onNavLogoutClick,
|
|
784
862
|
className
|
|
785
863
|
}) {
|
|
786
864
|
return /* @__PURE__ */ jsxs(Container3, { className, children: [
|
|
787
|
-
/* @__PURE__ */ jsx(
|
|
865
|
+
/* @__PURE__ */ jsx(
|
|
866
|
+
NavVertical,
|
|
867
|
+
{
|
|
868
|
+
folderGroupsSlot: navVerticalSlot,
|
|
869
|
+
onBackClick: onNavBackClick,
|
|
870
|
+
onHomeClick: onNavHomeClick,
|
|
871
|
+
onSettingsClick: onNavSettingsClick,
|
|
872
|
+
onLogoutClick: onNavLogoutClick
|
|
873
|
+
}
|
|
874
|
+
),
|
|
788
875
|
backgroundSlot && /* @__PURE__ */ jsx(BackgroundPane, { children: backgroundSlot }),
|
|
789
876
|
/* @__PURE__ */ jsx(MainPane, { children: mainPaneSlot }),
|
|
790
877
|
/* @__PURE__ */ jsx(
|
|
@@ -871,10 +958,8 @@ function ActionButtonItem({ icon, label, onClick, isActive, size, isPrimary }) {
|
|
|
871
958
|
}
|
|
872
959
|
function ActionButtons({
|
|
873
960
|
onCalendarClick,
|
|
874
|
-
onSettingsClick,
|
|
875
961
|
onChatClick,
|
|
876
962
|
isCalendarActive = false,
|
|
877
|
-
isSettingsActive = false,
|
|
878
963
|
isChatActive = false,
|
|
879
964
|
className
|
|
880
965
|
}) {
|
|
@@ -889,16 +974,6 @@ function ActionButtons({
|
|
|
889
974
|
size: 32
|
|
890
975
|
}
|
|
891
976
|
),
|
|
892
|
-
/* @__PURE__ */ jsx(
|
|
893
|
-
ActionButtonItem,
|
|
894
|
-
{
|
|
895
|
-
icon: /* @__PURE__ */ jsx(Icon, { name: "settings-3-fill", size: 16, color: tokens.colors.text.secondary }),
|
|
896
|
-
label: "Settings",
|
|
897
|
-
onClick: onSettingsClick,
|
|
898
|
-
isActive: isSettingsActive,
|
|
899
|
-
size: 32
|
|
900
|
-
}
|
|
901
|
-
),
|
|
902
977
|
/* @__PURE__ */ jsx(
|
|
903
978
|
ActionButtonItem,
|
|
904
979
|
{
|
|
@@ -922,30 +997,31 @@ var Container5 = styled9.button`
|
|
|
922
997
|
display: grid;
|
|
923
998
|
grid-template-columns: auto 1fr;
|
|
924
999
|
align-items: center;
|
|
925
|
-
gap: ${tokens.spacing.
|
|
926
|
-
padding:
|
|
1000
|
+
gap: ${tokens.spacing.xs};
|
|
1001
|
+
padding: 6px;
|
|
1002
|
+
margin: ${tokens.spacing.sm};
|
|
927
1003
|
border-radius: ${tokens.borderRadius.md};
|
|
928
1004
|
border: none;
|
|
929
1005
|
background: ${tokens.colors.surface.subtle};
|
|
930
1006
|
color: inherit;
|
|
931
1007
|
font-family: ${tokens.typography.fontFamily.primary};
|
|
932
1008
|
transition: background-color ${tokens.transitions.fast}, opacity ${tokens.transitions.fast};
|
|
933
|
-
cursor: ${(props) => props.$isDisabled ? "
|
|
934
|
-
opacity: ${(props) => props.$isDisabled ? 0.
|
|
1009
|
+
cursor: ${(props) => props.$isDisabled ? "default" : "pointer"};
|
|
1010
|
+
opacity: ${(props) => props.$isDisabled ? 0.7 : 1};
|
|
935
1011
|
text-align: left;
|
|
936
|
-
width: 100
|
|
1012
|
+
width: calc(100% - ${tokens.spacing.lg});
|
|
937
1013
|
|
|
938
1014
|
&:hover:not(:disabled) {
|
|
939
|
-
background-color: ${tokens.colors.surface.overlay};
|
|
1015
|
+
background-color: ${(props) => props.$isDisabled ? tokens.colors.surface.subtle : tokens.colors.surface.overlay};
|
|
940
1016
|
}
|
|
941
1017
|
|
|
942
1018
|
&:focus-visible {
|
|
943
|
-
outline: 2px solid ${tokens.colors.border.focus};
|
|
1019
|
+
outline: ${(props) => props.$isDisabled ? "none" : `2px solid ${tokens.colors.border.focus}`};
|
|
944
1020
|
outline-offset: 2px;
|
|
945
1021
|
}
|
|
946
1022
|
|
|
947
1023
|
&:active:not(:disabled) {
|
|
948
|
-
background-color: ${tokens.colors.surface.overlayActive};
|
|
1024
|
+
background-color: ${(props) => props.$isDisabled ? tokens.colors.surface.subtle : tokens.colors.surface.overlayActive};
|
|
949
1025
|
}
|
|
950
1026
|
`;
|
|
951
1027
|
var IconWrapper2 = styled9.div`
|
|
@@ -1539,7 +1615,7 @@ styled9.button`
|
|
|
1539
1615
|
|
|
1540
1616
|
@media (max-width: ${tokens.breakpoints.mobile}px) {
|
|
1541
1617
|
padding: ${tokens.spacing.sm} ${tokens.spacing.md};
|
|
1542
|
-
font-size:
|
|
1618
|
+
font-size: ${tokens.typography.fontSize.sm};
|
|
1543
1619
|
gap: ${tokens.spacing.sm};
|
|
1544
1620
|
}
|
|
1545
1621
|
|
|
@@ -1800,7 +1876,7 @@ var ItemName = styled9.span`
|
|
|
1800
1876
|
min-width: 0;
|
|
1801
1877
|
|
|
1802
1878
|
@media (max-width: ${tokens.breakpoints.mobile}px) {
|
|
1803
|
-
font-size:
|
|
1879
|
+
font-size: ${tokens.typography.fontSize.sm};
|
|
1804
1880
|
}
|
|
1805
1881
|
|
|
1806
1882
|
${ItemContainer}:hover & {
|
|
@@ -1892,7 +1968,7 @@ styled9.div`
|
|
|
1892
1968
|
padding-top: 0;
|
|
1893
1969
|
background-color: ${tokens.colors.overlay};
|
|
1894
1970
|
color: ${tokens.colors.text.secondary};
|
|
1895
|
-
font-size:
|
|
1971
|
+
font-size: ${tokens.typography.fontSize.sm};
|
|
1896
1972
|
line-height: ${tokens.typography.lineHeight.relaxed};
|
|
1897
1973
|
animation: slideDown ${tokens.transitions.normal};
|
|
1898
1974
|
|
|
@@ -1979,7 +2055,7 @@ var ConnectionDescription = styled9.p`
|
|
|
1979
2055
|
var GoogleButton = styled9.button`
|
|
1980
2056
|
width: 100%;
|
|
1981
2057
|
padding: ${tokens.spacing.md} ${tokens.spacing.lg};
|
|
1982
|
-
font-size:
|
|
2058
|
+
font-size: ${tokens.typography.fontSize.sm};
|
|
1983
2059
|
font-weight: ${tokens.typography.fontWeight.semibold};
|
|
1984
2060
|
color: ${(props) => props.$isConnected ? tokens.colors.text.primary : tokens.colors.text.primary};
|
|
1985
2061
|
background: ${(props) => props.$isConnected ? tokens.colors.background.light : `linear-gradient(135deg, ${tokens.colors.platform.facebook}, ${tokens.colors.platform.whatsapp})`};
|
|
@@ -2115,8 +2191,8 @@ function WorkflowGroupItem({
|
|
|
2115
2191
|
return /* @__PURE__ */ jsxs(CategoryDisclosure, { id: groupId, children: [
|
|
2116
2192
|
/* @__PURE__ */ jsx(Heading, { level: 4, children: /* @__PURE__ */ jsxs(CategoryHeader, { slot: "trigger", style: { paddingLeft: "8px" }, children: [
|
|
2117
2193
|
/* @__PURE__ */ jsxs(CategoryTitle, { children: [
|
|
2118
|
-
/* @__PURE__ */ jsx("span", { style: { fontSize:
|
|
2119
|
-
/* @__PURE__ */ jsxs("span", { style: { fontSize:
|
|
2194
|
+
/* @__PURE__ */ jsx("span", { style: { fontSize: tokens.typography.fontSize.base, fontWeight: 500 }, children: group.workflowName }),
|
|
2195
|
+
/* @__PURE__ */ jsxs("span", { style: { fontSize: tokens.typography.fontSize.sm, color: tokens.colors.text.tertiary, marginLeft: "8px" }, children: [
|
|
2120
2196
|
"(",
|
|
2121
2197
|
group.runs.length,
|
|
2122
2198
|
")"
|
|
@@ -2593,7 +2669,7 @@ function PaneSectionHeader({
|
|
|
2593
2669
|
brand = "Google",
|
|
2594
2670
|
onBackClick,
|
|
2595
2671
|
onSettingsClick,
|
|
2596
|
-
settingsIcon = "
|
|
2672
|
+
settingsIcon = "flow-chart",
|
|
2597
2673
|
className,
|
|
2598
2674
|
"aria-label": ariaLabel = "Pane section header"
|
|
2599
2675
|
}) {
|
|
@@ -2611,7 +2687,7 @@ function PaneSectionHeader({
|
|
|
2611
2687
|
const { buttonProps: settingsButtonProps } = useButton(
|
|
2612
2688
|
{
|
|
2613
2689
|
onPress: onSettingsClick,
|
|
2614
|
-
"aria-label": "
|
|
2690
|
+
"aria-label": "Workflow configuration"
|
|
2615
2691
|
},
|
|
2616
2692
|
settingsButtonRef
|
|
2617
2693
|
);
|