@uipath/apollo-wind 0.10.0 → 0.11.0-pr295.af4e744
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/components/custom/canvas-studio.cjs +133 -0
- package/dist/components/custom/canvas-studio.d.ts +99 -0
- package/dist/components/custom/canvas-studio.js +93 -0
- package/dist/components/custom/canvas.cjs +44 -0
- package/dist/components/custom/canvas.d.ts +14 -0
- package/dist/components/custom/canvas.js +10 -0
- package/dist/components/custom/chat-composer.cjs +105 -0
- package/dist/components/custom/chat-composer.d.ts +15 -0
- package/dist/components/custom/chat-composer.js +71 -0
- package/dist/components/custom/chat-first-experience.cjs +87 -0
- package/dist/components/custom/chat-first-experience.d.ts +24 -0
- package/dist/components/custom/chat-first-experience.js +53 -0
- package/dist/components/custom/chat-prompt-suggestions.cjs +49 -0
- package/dist/components/custom/chat-prompt-suggestions.d.ts +18 -0
- package/dist/components/custom/chat-prompt-suggestions.js +15 -0
- package/dist/components/custom/chat-steps-view.cjs +308 -0
- package/dist/components/custom/chat-steps-view.d.ts +38 -0
- package/dist/components/custom/chat-steps-view.js +274 -0
- package/dist/components/custom/flow-node.cjs +76 -0
- package/dist/components/custom/flow-node.d.ts +20 -0
- package/dist/components/custom/flow-node.js +42 -0
- package/dist/components/custom/flow-properties-bar.cjs +103 -0
- package/dist/components/custom/flow-properties-bar.d.ts +21 -0
- package/dist/components/custom/flow-properties-bar.js +69 -0
- package/dist/components/custom/flow-properties-expanded.cjs +328 -0
- package/dist/components/custom/flow-properties-expanded.d.ts +21 -0
- package/dist/components/custom/flow-properties-expanded.js +294 -0
- package/dist/components/custom/flow-properties-simple.cjs +364 -0
- package/dist/components/custom/flow-properties-simple.d.ts +62 -0
- package/dist/components/custom/flow-properties-simple.js +330 -0
- package/dist/components/custom/flow-properties.cjs +56 -0
- package/dist/components/custom/flow-properties.d.ts +28 -0
- package/dist/components/custom/flow-properties.js +22 -0
- package/dist/components/custom/global-header.cjs +422 -0
- package/dist/components/custom/global-header.d.ts +38 -0
- package/dist/components/custom/global-header.js +388 -0
- package/dist/components/custom/grid-maestro.cjs +62 -0
- package/dist/components/custom/grid-maestro.d.ts +19 -0
- package/dist/components/custom/grid-maestro.js +22 -0
- package/dist/components/custom/page-header.cjs +92 -0
- package/dist/components/custom/page-header.d.ts +43 -0
- package/dist/components/custom/page-header.js +58 -0
- package/dist/components/custom/panel-delegate.cjs +285 -0
- package/dist/components/custom/panel-delegate.d.ts +34 -0
- package/dist/components/custom/panel-delegate.js +251 -0
- package/dist/components/custom/panel-flow.cjs +262 -0
- package/dist/components/custom/panel-flow.d.ts +38 -0
- package/dist/components/custom/panel-flow.js +225 -0
- package/dist/components/custom/panel-maestro.cjs +74 -0
- package/dist/components/custom/panel-maestro.d.ts +30 -0
- package/dist/components/custom/panel-maestro.js +40 -0
- package/dist/components/custom/panel-studio.cjs +122 -0
- package/dist/components/custom/panel-studio.d.ts +48 -0
- package/dist/components/custom/panel-studio.js +85 -0
- package/dist/components/custom/toolbar-canvas.cjs +124 -0
- package/dist/components/custom/toolbar-canvas.d.ts +15 -0
- package/dist/components/custom/toolbar-canvas.js +90 -0
- package/dist/components/custom/toolbar-view.cjs +121 -0
- package/dist/components/custom/toolbar-view.d.ts +14 -0
- package/dist/components/custom/toolbar-view.js +87 -0
- package/dist/components/custom/viewport-guard.cjs +92 -0
- package/dist/components/custom/viewport-guard.d.ts +23 -0
- package/dist/components/custom/viewport-guard.js +55 -0
- package/dist/components/forms/field-renderer.cjs +3 -1
- package/dist/components/forms/field-renderer.js +3 -1
- package/dist/components/forms/form-designer.cjs +13 -2
- package/dist/components/forms/form-designer.js +13 -2
- package/dist/components/forms/rules-engine.d.ts +1 -1
- package/dist/components/ui/breadcrumb.cjs +1 -2
- package/dist/components/ui/breadcrumb.js +1 -2
- package/dist/components/ui/button-group.cjs +5 -3
- package/dist/components/ui/button-group.d.ts +2 -2
- package/dist/components/ui/button-group.js +5 -3
- package/dist/components/ui/button.cjs +3 -3
- package/dist/components/ui/button.js +3 -3
- package/dist/components/ui/chart.cjs +223 -0
- package/dist/components/ui/chart.d.ts +40 -0
- package/dist/components/ui/chart.js +174 -0
- package/dist/components/ui/code-block.cjs +258 -0
- package/dist/components/ui/code-block.d.ts +48 -0
- package/dist/components/ui/code-block.js +207 -0
- package/dist/components/ui/data-table.cjs +22 -4
- package/dist/components/ui/data-table.d.ts +5 -2
- package/dist/components/ui/data-table.js +23 -5
- package/dist/components/ui/editable-cell.cjs +3 -10
- package/dist/components/ui/editable-cell.js +3 -10
- package/dist/components/ui/empty-state.cjs +17 -6
- package/dist/components/ui/empty-state.d.ts +7 -0
- package/dist/components/ui/empty-state.js +17 -6
- package/dist/components/ui/file-upload.cjs +8 -0
- package/dist/components/ui/file-upload.js +8 -0
- package/dist/components/ui/index.cjs +289 -149
- package/dist/components/ui/index.d.ts +2 -3
- package/dist/components/ui/index.js +2 -3
- package/dist/components/ui/multi-select.cjs +3 -10
- package/dist/components/ui/multi-select.js +3 -10
- package/dist/components/ui/pagination.cjs +0 -1
- package/dist/components/ui/pagination.js +0 -1
- package/dist/components/ui/resizable.d.ts +1 -1
- package/dist/components/ui/tree-view.cjs +1117 -0
- package/dist/components/ui/tree-view.d.ts +95 -0
- package/dist/components/ui/tree-view.js +1083 -0
- package/dist/foundation/Future/colors.cjs +92 -0
- package/dist/foundation/Future/colors.d.ts +132 -0
- package/dist/foundation/Future/colors.js +43 -0
- package/dist/foundation/Future/radius.cjs +46 -0
- package/dist/foundation/Future/radius.d.ts +33 -0
- package/dist/foundation/Future/radius.js +12 -0
- package/dist/foundation/Future/responsive.cjs +49 -0
- package/dist/foundation/Future/responsive.d.ts +40 -0
- package/dist/foundation/Future/responsive.js +12 -0
- package/dist/foundation/Future/shadows.cjs +48 -0
- package/dist/foundation/Future/shadows.d.ts +29 -0
- package/dist/foundation/Future/shadows.js +11 -0
- package/dist/foundation/Future/spacing.cjs +71 -0
- package/dist/foundation/Future/spacing.d.ts +80 -0
- package/dist/foundation/Future/spacing.js +31 -0
- package/dist/foundation/Future/strokes.cjs +59 -0
- package/dist/foundation/Future/strokes.d.ts +49 -0
- package/dist/foundation/Future/strokes.js +19 -0
- package/dist/foundation/Future/types.cjs +18 -0
- package/dist/foundation/Future/types.d.ts +25 -0
- package/dist/foundation/Future/types.js +0 -0
- package/dist/foundation/Future/typography.cjs +79 -0
- package/dist/foundation/Future/typography.d.ts +86 -0
- package/dist/foundation/Future/typography.js +33 -0
- package/dist/index.cjs +131 -221
- package/dist/index.d.ts +4 -3
- package/dist/index.js +3 -4
- package/dist/src/foundation/Future/themes.css +279 -0
- package/dist/styles.css +1941 -605
- package/dist/tailwind.css +874 -87
- package/dist/templates/Admin/settings-admin.d.ts +5 -0
- package/dist/templates/Admin/template-admin.d.ts +86 -0
- package/dist/templates/Delegate/template-delegate.d.ts +26 -0
- package/dist/templates/EmptyErrors/error-components.d.ts +3 -0
- package/dist/templates/Experiments/ideas-AnimatedGradientText.d.ts +23 -0
- package/dist/templates/Flow/template-flow.d.ts +57 -0
- package/dist/templates/Maestro/template-maestro.d.ts +52 -0
- package/dist/templates/Studio/template-studio.d.ts +102 -0
- package/dist/templates/{vscode-example.d.ts → VisualStudio/shell.d.ts} +1 -1
- package/package.json +12 -1
- package/dist/components/ui/menubar.cjs +0 -210
- package/dist/components/ui/menubar.d.ts +0 -28
- package/dist/components/ui/menubar.js +0 -131
- package/dist/components/ui/navigation-menu.cjs +0 -122
- package/dist/components/ui/navigation-menu.d.ts +0 -12
- package/dist/components/ui/navigation-menu.js +0 -64
- package/dist/examples/admin-layout-example.cjs +0 -490
- package/dist/examples/admin-layout-example.d.ts +0 -92
- package/dist/examples/admin-layout-example.js +0 -411
- package/dist/examples/app-shell-example.cjs +0 -452
- package/dist/examples/app-shell-example.d.ts +0 -52
- package/dist/examples/app-shell-example.js +0 -418
- package/dist/examples/dashboard-example.cjs +0 -590
- package/dist/examples/dashboard-example.d.ts +0 -11
- package/dist/examples/dashboard-example.js +0 -556
- package/dist/examples/data-management-example.cjs +0 -584
- package/dist/examples/data-management-example.d.ts +0 -1
- package/dist/examples/data-management-example.js +0 -550
- package/dist/examples/flow-editor-layout-example.cjs +0 -309
- package/dist/examples/flow-editor-layout-example.d.ts +0 -22
- package/dist/examples/flow-editor-layout-example.js +0 -269
- package/dist/examples/flow-start-example.cjs +0 -467
- package/dist/examples/flow-start-example.d.ts +0 -30
- package/dist/examples/flow-start-example.js +0 -433
- package/dist/examples/form-builder-example.cjs +0 -674
- package/dist/examples/form-builder-example.js +0 -640
- package/dist/examples/new-project-example.cjs +0 -550
- package/dist/examples/new-project-example.d.ts +0 -30
- package/dist/examples/new-project-example.js +0 -516
- package/dist/examples/settings-example.cjs +0 -864
- package/dist/examples/settings-example.d.ts +0 -1
- package/dist/examples/settings-example.js +0 -830
- package/dist/examples/vscode-example.cjs +0 -340
- package/dist/examples/vscode-example.d.ts +0 -80
- package/dist/examples/vscode-example.js +0 -270
- package/dist/templates/admin-layout-example.d.ts +0 -92
- package/dist/templates/app-shell-example.d.ts +0 -52
- package/dist/templates/dashboard-example.d.ts +0 -11
- package/dist/templates/data-management-example.d.ts +0 -1
- package/dist/templates/flow-editor-layout-example.d.ts +0 -22
- package/dist/templates/flow-start-example.d.ts +0 -30
- package/dist/templates/form-builder-example.d.ts +0 -1
- package/dist/templates/new-project-example.d.ts +0 -30
- package/dist/templates/settings-example.d.ts +0 -1
- /package/dist/{examples → templates/Forms}/form-builder-example.d.ts +0 -0
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { PageHeader, type PageHeaderProps } from '../../components/custom/page-header';
|
|
3
|
+
import type { Theme } from '../../foundation/Future/types';
|
|
4
|
+
export type { Theme };
|
|
5
|
+
export interface AdminSidebarProps {
|
|
6
|
+
className?: string;
|
|
7
|
+
/** Width in pixels (default 260) */
|
|
8
|
+
width?: number;
|
|
9
|
+
children?: React.ReactNode;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* Fixed-width sidebar container with right border.
|
|
13
|
+
* Renders children in a vertical flex column — callers handle their own
|
|
14
|
+
* headers, nav lists, and scroll areas as needed.
|
|
15
|
+
*/
|
|
16
|
+
export declare function AdminSidebar({ className, width, children }: AdminSidebarProps): import("react/jsx-runtime").JSX.Element;
|
|
17
|
+
export interface AdminSidebarHeaderProps {
|
|
18
|
+
className?: string;
|
|
19
|
+
/** Title text */
|
|
20
|
+
title: string;
|
|
21
|
+
/** Optional icon rendered before the title */
|
|
22
|
+
icon?: React.ReactNode;
|
|
23
|
+
/** Action buttons rendered on the right */
|
|
24
|
+
actions?: React.ReactNode;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Header row for AdminSidebar — title, optional icon, and action buttons.
|
|
28
|
+
*/
|
|
29
|
+
export declare function AdminSidebarHeader({ className, title, icon, actions }: AdminSidebarHeaderProps): import("react/jsx-runtime").JSX.Element;
|
|
30
|
+
export interface AdminNavItem {
|
|
31
|
+
id: string;
|
|
32
|
+
label: string;
|
|
33
|
+
icon?: React.ReactNode;
|
|
34
|
+
badge?: React.ReactNode;
|
|
35
|
+
}
|
|
36
|
+
export interface AdminSidebarNavProps {
|
|
37
|
+
className?: string;
|
|
38
|
+
items: AdminNavItem[];
|
|
39
|
+
selectedId?: string;
|
|
40
|
+
onSelect?: (id: string) => void;
|
|
41
|
+
}
|
|
42
|
+
/**
|
|
43
|
+
* Scrollable nav list for AdminSidebar. Each item has an optional icon and badge.
|
|
44
|
+
*/
|
|
45
|
+
export declare function AdminSidebarNav({ className, items, selectedId, onSelect }: AdminSidebarNavProps): import("react/jsx-runtime").JSX.Element;
|
|
46
|
+
export type AdminPageHeaderProps = PageHeaderProps;
|
|
47
|
+
export { PageHeader as AdminPageHeader };
|
|
48
|
+
export interface AdminToolbarProps {
|
|
49
|
+
className?: string;
|
|
50
|
+
/** Filter or search controls (left side) */
|
|
51
|
+
children?: React.ReactNode;
|
|
52
|
+
/** Action buttons (right side) */
|
|
53
|
+
actions?: React.ReactNode;
|
|
54
|
+
}
|
|
55
|
+
/**
|
|
56
|
+
* Horizontal toolbar row — filters on the left, actions on the right.
|
|
57
|
+
*/
|
|
58
|
+
export declare function AdminToolbar({ className, children, actions }: AdminToolbarProps): import("react/jsx-runtime").JSX.Element;
|
|
59
|
+
export interface AdminTemplateProps {
|
|
60
|
+
className?: string;
|
|
61
|
+
/** Color theme (default "dark") */
|
|
62
|
+
theme?: Theme;
|
|
63
|
+
/** Header title (default "Administration") */
|
|
64
|
+
title?: string;
|
|
65
|
+
/** Content for the global header's slide-out menu drawer */
|
|
66
|
+
menuContent?: React.ReactNode;
|
|
67
|
+
/**
|
|
68
|
+
* Sidebar element — typically an `<AdminSidebar>` with `AdminSidebarHeader`
|
|
69
|
+
* and `AdminSidebarNav` inside. Omit for a full-width layout (no sidebar).
|
|
70
|
+
*/
|
|
71
|
+
sidebar?: React.ReactNode;
|
|
72
|
+
/** Main content area — compose with `AdminPageHeader`, `AdminToolbar`, etc. */
|
|
73
|
+
children?: React.ReactNode;
|
|
74
|
+
}
|
|
75
|
+
/**
|
|
76
|
+
* Full-page Admin template.
|
|
77
|
+
*
|
|
78
|
+
* Composed of:
|
|
79
|
+
* - **MaestroHeader** — global header with logo and slide-out menu
|
|
80
|
+
* - **sidebar** (optional) — fixed-width left sidebar (pass an `AdminSidebar`)
|
|
81
|
+
* - **main area** — flex-1 column for page content
|
|
82
|
+
*
|
|
83
|
+
* Pass `AdminPageHeader`, `AdminToolbar`, and your own content as children
|
|
84
|
+
* to build the main area. See the Admin stories for full examples.
|
|
85
|
+
*/
|
|
86
|
+
export declare function AdminTemplate({ className, theme, title, menuContent, sidebar, children, }: AdminTemplateProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import type { DelegatePanelProps, NavChildItem, NavItem } from '../../components/custom/panel-delegate';
|
|
3
|
+
import type { Theme } from '../../foundation/Future/types';
|
|
4
|
+
export type { NavItem, NavChildItem, DelegatePanelProps };
|
|
5
|
+
export interface DelegateTemplateProps {
|
|
6
|
+
className?: string;
|
|
7
|
+
/** Color theme for the template */
|
|
8
|
+
theme?: Theme;
|
|
9
|
+
/** Whether the left panel starts expanded */
|
|
10
|
+
defaultPanelOpen?: boolean;
|
|
11
|
+
/** Navigation items in the left panel */
|
|
12
|
+
navItems?: NavItem[];
|
|
13
|
+
/** ID of the currently selected nav child */
|
|
14
|
+
selectedChildId?: string;
|
|
15
|
+
/** Callback when a nav child is selected */
|
|
16
|
+
onChildSelect?: (childId: string) => void;
|
|
17
|
+
/** Main content to render in the Canvas */
|
|
18
|
+
children?: React.ReactNode;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* Full-page Delegate template composed of a DelegatePanel and Canvas.
|
|
22
|
+
*
|
|
23
|
+
* This is a convenience wrapper — for more control you can use
|
|
24
|
+
* `DelegatePanel` and `Canvas` directly.
|
|
25
|
+
*/
|
|
26
|
+
export declare function DelegateTemplate({ className, theme, defaultPanelOpen, navItems, selectedChildId, onChildSelect, children, }: DelegateTemplateProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import type { ComponentPropsWithoutRef } from 'react';
|
|
2
|
+
export interface AnimatedGradientIconProps extends ComponentPropsWithoutRef<'span'> {
|
|
3
|
+
speed?: number;
|
|
4
|
+
colorFrom?: string;
|
|
5
|
+
colorTo?: string;
|
|
6
|
+
colorMid?: string;
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* Sparkles icon with animated gradient stroke for Ideas experiment.
|
|
10
|
+
* Uses the Lucide Sparkles icon with gradient applied via stroke.
|
|
11
|
+
*/
|
|
12
|
+
export declare function AnimatedGradientIcon({ className, speed, colorFrom, colorTo, colorMid, style, ...props }: AnimatedGradientIconProps): import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
export interface AnimatedGradientTextProps extends ComponentPropsWithoutRef<'div'> {
|
|
14
|
+
speed?: number;
|
|
15
|
+
colorFrom?: string;
|
|
16
|
+
colorTo?: string;
|
|
17
|
+
colorMid?: string;
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* Animated gradient text effect for Ideas experiment.
|
|
21
|
+
* Based on Magic UI: https://magicui.design/docs/components/animated-gradient-text
|
|
22
|
+
*/
|
|
23
|
+
export declare function AnimatedGradientText({ children, className, speed, colorFrom, colorTo, colorMid, style, ...props }: AnimatedGradientTextProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import type { PropertiesSimpleField, PropertiesSimpleSection } from '../../components/custom/flow-properties-simple';
|
|
3
|
+
import { type FlowPanelChatMessage, type FlowPanelNavItem } from '../../components/custom/panel-flow';
|
|
4
|
+
import type { Theme } from '../../foundation/Future/types';
|
|
5
|
+
export type { FlowPanelNavItem, FlowPanelChatMessage, PropertiesSimpleField, PropertiesSimpleSection, };
|
|
6
|
+
export interface FlowTemplateProps {
|
|
7
|
+
className?: string;
|
|
8
|
+
/** Color theme for the template */
|
|
9
|
+
theme?: Theme;
|
|
10
|
+
/** Navigation items for the icon rail */
|
|
11
|
+
navItems?: FlowPanelNavItem[];
|
|
12
|
+
/** Whether the expanded panel starts open */
|
|
13
|
+
defaultPanelOpen?: boolean;
|
|
14
|
+
/** Chat messages for the expanded panel */
|
|
15
|
+
chatMessages?: FlowPanelChatMessage[];
|
|
16
|
+
/** Custom content for the expanded panel (overrides default chat) */
|
|
17
|
+
expandedContent?: React.ReactNode;
|
|
18
|
+
/** Flow name displayed in the properties bar */
|
|
19
|
+
flowName?: string;
|
|
20
|
+
/** Flow type label (e.g. "Workflow") */
|
|
21
|
+
flowType?: string;
|
|
22
|
+
/** Whether the properties panel starts expanded */
|
|
23
|
+
defaultPropertiesExpanded?: boolean;
|
|
24
|
+
/** Node name for the expanded properties panel */
|
|
25
|
+
propertiesNodeName?: string;
|
|
26
|
+
/** Node type for the expanded properties panel */
|
|
27
|
+
propertiesNodeType?: string;
|
|
28
|
+
/** Whether to show the simple properties panel (right side) */
|
|
29
|
+
defaultPropertiesSimple?: boolean;
|
|
30
|
+
/** Title for the simple properties panel header */
|
|
31
|
+
propertiesSimpleTitle?: string;
|
|
32
|
+
/** Icon for the simple properties panel header */
|
|
33
|
+
propertiesSimpleIcon?: React.ReactNode;
|
|
34
|
+
/** Top-level fields for the simple properties panel */
|
|
35
|
+
propertiesSimpleFields?: PropertiesSimpleField[];
|
|
36
|
+
/** Accordion sections for the simple properties panel */
|
|
37
|
+
propertiesSimpleSections?: PropertiesSimpleSection[];
|
|
38
|
+
/** Canvas content */
|
|
39
|
+
children?: React.ReactNode;
|
|
40
|
+
/**
|
|
41
|
+
* When true, renders only the left sidebar (icon rail) and the canvas —
|
|
42
|
+
* no properties bar, no toolbars, no right-side panels.
|
|
43
|
+
*/
|
|
44
|
+
blank?: boolean;
|
|
45
|
+
}
|
|
46
|
+
/**
|
|
47
|
+
* Full-page Flow template.
|
|
48
|
+
*
|
|
49
|
+
* Composed of:
|
|
50
|
+
* - **FlowPanel** — 60px icon rail + optional 420px expanded chat panel
|
|
51
|
+
* - **Canvas** — main content area (reuses Delegate Canvas)
|
|
52
|
+
* - **FlowProperties** (collapsed) — bar top-right of canvas (default)
|
|
53
|
+
* - **FlowProperties** (expanded) — full properties panel on the right (when expanded)
|
|
54
|
+
* - **FlowCanvasToolbar** — bottom-center of canvas
|
|
55
|
+
* - **FlowViewToolbar** — bottom-right of canvas
|
|
56
|
+
*/
|
|
57
|
+
export declare function FlowTemplate({ className, theme, navItems, defaultPanelOpen, chatMessages, expandedContent, flowName, flowType, defaultPropertiesExpanded, propertiesNodeName, propertiesNodeType, defaultPropertiesSimple, propertiesSimpleTitle, propertiesSimpleIcon, propertiesSimpleFields, propertiesSimpleSections, children, blank, }: FlowTemplateProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import type { MaestroHeaderProps } from '../../components/custom/global-header';
|
|
3
|
+
import { Canvas, Grid, GridItem } from '../../components/custom/grid-maestro';
|
|
4
|
+
import type { MaestroPanelProps } from '../../components/custom/panel-maestro';
|
|
5
|
+
import type { Theme } from '../../foundation/Future/types';
|
|
6
|
+
export type { MaestroHeaderProps, MaestroPanelProps };
|
|
7
|
+
export { Canvas, Grid, GridItem };
|
|
8
|
+
export interface MaestroTemplateProps {
|
|
9
|
+
className?: string;
|
|
10
|
+
/** Color theme for the template */
|
|
11
|
+
theme?: Theme;
|
|
12
|
+
/** Application title shown in the header */
|
|
13
|
+
title?: string;
|
|
14
|
+
/** Tenant name shown in the header */
|
|
15
|
+
tenantName?: string;
|
|
16
|
+
/**
|
|
17
|
+
* Force the left panel to start collapsed on desktop.
|
|
18
|
+
* Below 1024px container width, panels auto-collapse regardless of this value.
|
|
19
|
+
*/
|
|
20
|
+
defaultLeftPanelCollapsed?: boolean;
|
|
21
|
+
/** Content for the left panel (e.g. navigation). The panel itself has no padding — children control their own. */
|
|
22
|
+
leftPanelContent?: React.ReactNode;
|
|
23
|
+
/** Content for the global header's slide-out menu. Falls back to leftPanelContent if not provided. */
|
|
24
|
+
menuContent?: React.ReactNode;
|
|
25
|
+
/**
|
|
26
|
+
* Force the right panel to start collapsed on desktop.
|
|
27
|
+
* Below 1024px container width, panels auto-collapse regardless of this value.
|
|
28
|
+
*/
|
|
29
|
+
defaultRightPanelCollapsed?: boolean;
|
|
30
|
+
/** Content for the right panel. The panel itself has no padding — children control their own (typically p-6). */
|
|
31
|
+
rightPanelContent?: React.ReactNode;
|
|
32
|
+
/** Main content to render in the center canvas area */
|
|
33
|
+
children?: React.ReactNode;
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* Full-page Maestro template.
|
|
37
|
+
*
|
|
38
|
+
* Composed of:
|
|
39
|
+
* - **MaestroHeader** — global header with logo, actions, tenant selector, avatar
|
|
40
|
+
* - **MaestroPanel side="left"** — collapsible left panel (300px expanded / 32px collapsed)
|
|
41
|
+
* - **Canvas** — scrollable main area with ResizeObserver-based grid reflow
|
|
42
|
+
* - **MaestroPanel side="right"** — collapsible right panel (300px expanded / 32px collapsed)
|
|
43
|
+
*
|
|
44
|
+
* ### Responsive auto-collapse
|
|
45
|
+
*
|
|
46
|
+
* A ResizeObserver watches the template body container. When the container
|
|
47
|
+
* width drops below 1024px, both panels automatically collapse to 32px.
|
|
48
|
+
* When it reaches 1024px+, they restore to their user-controlled state.
|
|
49
|
+
* The panel never disappears entirely — it always shows at minimum its
|
|
50
|
+
* 32px collapsed state with the toggle button visible.
|
|
51
|
+
*/
|
|
52
|
+
export declare function MaestroTemplate({ className, theme, title, tenantName, defaultLeftPanelCollapsed, leftPanelContent, menuContent, defaultRightPanelCollapsed, rightPanelContent, children, }: MaestroTemplateProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { StudioCanvas, StudioGrid, StudioGridItem } from '../../components/custom/canvas-studio';
|
|
3
|
+
import { StudioPanel, StudioPanelSelection } from '../../components/custom/panel-studio';
|
|
4
|
+
import type { Theme } from '../../foundation/Future/types';
|
|
5
|
+
export type { Theme };
|
|
6
|
+
export { StudioCanvas, StudioGrid, StudioGridItem, StudioPanel, StudioPanelSelection };
|
|
7
|
+
export interface StudioTemplateProps {
|
|
8
|
+
className?: string;
|
|
9
|
+
/** Color theme for the template */
|
|
10
|
+
theme?: Theme;
|
|
11
|
+
/** Application title shown in the header */
|
|
12
|
+
title?: string;
|
|
13
|
+
/** Tenant name shown in the header */
|
|
14
|
+
tenantName?: string;
|
|
15
|
+
/** Content for the global header's slide-out menu */
|
|
16
|
+
menuContent?: React.ReactNode;
|
|
17
|
+
/**
|
|
18
|
+
* Start with the left panel hidden.
|
|
19
|
+
* Below 1024px the panel auto-hides regardless; the rail remains visible.
|
|
20
|
+
*/
|
|
21
|
+
defaultLeftPanelCollapsed?: boolean;
|
|
22
|
+
/**
|
|
23
|
+
* Single-view content for the left panel.
|
|
24
|
+
* Used when you don't need multiple views — any icon click toggles the panel.
|
|
25
|
+
* Ignored if `leftPanelViews` is also provided.
|
|
26
|
+
*/
|
|
27
|
+
leftPanelContent?: React.ReactNode;
|
|
28
|
+
/**
|
|
29
|
+
* Multi-view content for the left panel — up to 5 entries, one per rail icon.
|
|
30
|
+
* Clicking icon N shows `leftPanelViews[N]`. Clicking the active icon again
|
|
31
|
+
* hides the panel.
|
|
32
|
+
* When provided, `leftPanelContent` is ignored.
|
|
33
|
+
*/
|
|
34
|
+
leftPanelViews?: React.ReactNode[];
|
|
35
|
+
/**
|
|
36
|
+
* Start with the right panel hidden.
|
|
37
|
+
* Below 1440px the panel auto-hides regardless; the rail remains visible.
|
|
38
|
+
*/
|
|
39
|
+
defaultRightPanelCollapsed?: boolean;
|
|
40
|
+
/**
|
|
41
|
+
* Single-view content for the right panel.
|
|
42
|
+
* Ignored if `rightPanelViews` is also provided.
|
|
43
|
+
*/
|
|
44
|
+
rightPanelContent?: React.ReactNode;
|
|
45
|
+
/**
|
|
46
|
+
* Multi-view content for the right panel — up to 5 entries, one per rail icon.
|
|
47
|
+
* Clicking icon N shows `rightPanelViews[N]`. Clicking the active icon again
|
|
48
|
+
* hides the panel.
|
|
49
|
+
* When provided, `rightPanelContent` is ignored.
|
|
50
|
+
*/
|
|
51
|
+
rightPanelViews?: React.ReactNode[];
|
|
52
|
+
/**
|
|
53
|
+
* Optional header rendered above the scrollable canvas — full canvas width,
|
|
54
|
+
* not inside the padded/centered column. Use `PageHeader` here.
|
|
55
|
+
*/
|
|
56
|
+
pageHeader?: React.ReactNode;
|
|
57
|
+
/**
|
|
58
|
+
* Background of the center canvas area.
|
|
59
|
+
* - `'raised'` — slightly elevated surface (default)
|
|
60
|
+
* - `'surface'` — base surface, matches the page header background
|
|
61
|
+
* - `'transparent'` — no background
|
|
62
|
+
*/
|
|
63
|
+
canvasBackground?: 'raised' | 'surface' | 'transparent';
|
|
64
|
+
/**
|
|
65
|
+
* When true, canvas content fills the full available width instead of
|
|
66
|
+
* being centered in a 760px column. Use for data-dense layouts like tables.
|
|
67
|
+
*/
|
|
68
|
+
canvasFullWidth?: boolean;
|
|
69
|
+
/**
|
|
70
|
+
* When true, the left panel is never auto-collapsed by the responsive
|
|
71
|
+
* breakpoint logic. The user can still close it manually via the rail.
|
|
72
|
+
*/
|
|
73
|
+
pinLeftPanel?: boolean;
|
|
74
|
+
/**
|
|
75
|
+
* When true, the right panel is never auto-collapsed by the responsive
|
|
76
|
+
* breakpoint logic. The user can still close it manually via the rail.
|
|
77
|
+
*/
|
|
78
|
+
pinRightPanel?: boolean;
|
|
79
|
+
/** Main content rendered in the center canvas area */
|
|
80
|
+
children?: React.ReactNode;
|
|
81
|
+
}
|
|
82
|
+
/**
|
|
83
|
+
* Full-page Studio template.
|
|
84
|
+
*
|
|
85
|
+
* Composed of:
|
|
86
|
+
* - **MaestroHeader** — global header with logo, actions, tenant selector, avatar
|
|
87
|
+
* - **StudioPanelSelection** — 40px vertical icon rail (always visible when panel content is provided)
|
|
88
|
+
* - **StudioPanel side="left"** — 300px left panel (shown/hidden via rail toggle)
|
|
89
|
+
* - **main** — flex-1 scrollable center canvas
|
|
90
|
+
* - **StudioPanel side="right"** — 300px right panel (shown/hidden via rail toggle)
|
|
91
|
+
* - **StudioPanelSelection** — 40px vertical icon rail (always visible when panel content is provided)
|
|
92
|
+
*
|
|
93
|
+
* ### Responsive auto-hide
|
|
94
|
+
*
|
|
95
|
+
* A ResizeObserver watches the body container width and auto-collapses panels
|
|
96
|
+
* when the container crosses a breakpoint going narrower. User clicks on the
|
|
97
|
+
* rail always override the auto-hide — there is no permanent viewport-based block:
|
|
98
|
+
* - Crossing below 1024px: both panels collapse
|
|
99
|
+
* - Crossing below 1440px (from above): right panel collapses
|
|
100
|
+
* - Widening back above a breakpoint does NOT auto-restore; user re-opens manually
|
|
101
|
+
*/
|
|
102
|
+
export declare function StudioTemplate({ className, theme, title, tenantName, menuContent, defaultLeftPanelCollapsed, leftPanelContent, leftPanelViews, defaultRightPanelCollapsed, rightPanelContent, rightPanelViews, pageHeader, canvasBackground, canvasFullWidth, pinLeftPanel, pinRightPanel, children, }: StudioTemplateProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -23,7 +23,7 @@ interface ShellSidebarHeaderProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
|
23
23
|
onCollapsedChange?: (collapsed: boolean) => void;
|
|
24
24
|
}
|
|
25
25
|
export declare function ShellSidebarHeader({ className, title, collapsed, onCollapsedChange, ...props }: ShellSidebarHeaderProps): import("react/jsx-runtime").JSX.Element;
|
|
26
|
-
interface FileTreeItem {
|
|
26
|
+
export interface FileTreeItem {
|
|
27
27
|
name: string;
|
|
28
28
|
type: 'file' | 'folder';
|
|
29
29
|
children?: FileTreeItem[];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uipath/apollo-wind",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.11.0-pr295.af4e744",
|
|
4
4
|
"description": "UiPath wind design system - A Tailwind CSS based React component library",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -32,6 +32,10 @@
|
|
|
32
32
|
"react-dom": ">=18.0.0"
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
|
+
"@dnd-kit/core": "^6.3.1",
|
|
36
|
+
"@dnd-kit/modifiers": "^9.0.0",
|
|
37
|
+
"@dnd-kit/sortable": "^10.0.0",
|
|
38
|
+
"@dnd-kit/utilities": "^3.2.2",
|
|
35
39
|
"@hookform/resolvers": "^5.2.2",
|
|
36
40
|
"@radix-ui/react-accordion": "^1.2.12",
|
|
37
41
|
"@radix-ui/react-alert-dialog": "^1.1.15",
|
|
@@ -67,12 +71,16 @@
|
|
|
67
71
|
"clsx": "^2.1.1",
|
|
68
72
|
"cmdk": "^1.1.1",
|
|
69
73
|
"date-fns": "^4.1.0",
|
|
74
|
+
"framer-motion": "^12.26.2",
|
|
70
75
|
"jsep": "^1.4.0",
|
|
71
76
|
"lucide-react": "^0.555.0",
|
|
72
77
|
"next-themes": "^0.4.6",
|
|
73
78
|
"react-day-picker": "^9.13.0",
|
|
74
79
|
"react-hook-form": "^7.66.1",
|
|
80
|
+
"react-live": "^4.1.8",
|
|
81
|
+
"react-syntax-highlighter": "^16.1.0",
|
|
75
82
|
"react-resizable-panels": "^3.0.6",
|
|
83
|
+
"recharts": "2.15.4",
|
|
76
84
|
"sonner": "^2.0.7",
|
|
77
85
|
"tailwind-merge": "^3.4.0",
|
|
78
86
|
"tailwindcss": "^4.1.17",
|
|
@@ -85,8 +93,10 @@
|
|
|
85
93
|
"@rslib/core": "^0.17.0",
|
|
86
94
|
"@semantic-release/changelog": "^6.0.3",
|
|
87
95
|
"@semantic-release/git": "^10.0.1",
|
|
96
|
+
"@storybook/addon-a11y": "^10.2.0",
|
|
88
97
|
"@storybook/addon-docs": "^10.2.0",
|
|
89
98
|
"@storybook/addon-links": "^10.2.0",
|
|
99
|
+
"@storybook/addon-mcp": "^0.2.2",
|
|
90
100
|
"@storybook/react-vite": "^10.2.0",
|
|
91
101
|
"@tailwindcss/cli": "^4.1.17",
|
|
92
102
|
"@tailwindcss/postcss": "^4.1.17",
|
|
@@ -96,6 +106,7 @@
|
|
|
96
106
|
"@testing-library/user-event": "^14.6.1",
|
|
97
107
|
"@types/jest-axe": "^3.5.9",
|
|
98
108
|
"@types/node": "^24.10.1",
|
|
109
|
+
"@types/react-syntax-highlighter": "^15.5.13",
|
|
99
110
|
"@types/react": "^19.2.6",
|
|
100
111
|
"@types/react-dom": "^19.2.2",
|
|
101
112
|
"@vitest/coverage-v8": "^4.0.14",
|
|
@@ -1,210 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __webpack_require__ = {};
|
|
3
|
-
(()=>{
|
|
4
|
-
__webpack_require__.d = (exports1, definition)=>{
|
|
5
|
-
for(var key in definition)if (__webpack_require__.o(definition, key) && !__webpack_require__.o(exports1, key)) Object.defineProperty(exports1, key, {
|
|
6
|
-
enumerable: true,
|
|
7
|
-
get: definition[key]
|
|
8
|
-
});
|
|
9
|
-
};
|
|
10
|
-
})();
|
|
11
|
-
(()=>{
|
|
12
|
-
__webpack_require__.o = (obj, prop)=>Object.prototype.hasOwnProperty.call(obj, prop);
|
|
13
|
-
})();
|
|
14
|
-
(()=>{
|
|
15
|
-
__webpack_require__.r = (exports1)=>{
|
|
16
|
-
if ('undefined' != typeof Symbol && Symbol.toStringTag) Object.defineProperty(exports1, Symbol.toStringTag, {
|
|
17
|
-
value: 'Module'
|
|
18
|
-
});
|
|
19
|
-
Object.defineProperty(exports1, '__esModule', {
|
|
20
|
-
value: true
|
|
21
|
-
});
|
|
22
|
-
};
|
|
23
|
-
})();
|
|
24
|
-
var __webpack_exports__ = {};
|
|
25
|
-
__webpack_require__.r(__webpack_exports__);
|
|
26
|
-
__webpack_require__.d(__webpack_exports__, {
|
|
27
|
-
MenubarPortal: ()=>MenubarPortal,
|
|
28
|
-
MenubarSeparator: ()=>MenubarSeparator,
|
|
29
|
-
MenubarGroup: ()=>MenubarGroup,
|
|
30
|
-
MenubarRadioItem: ()=>MenubarRadioItem,
|
|
31
|
-
Menubar: ()=>Menubar,
|
|
32
|
-
MenubarLabel: ()=>MenubarLabel,
|
|
33
|
-
MenubarContent: ()=>MenubarContent,
|
|
34
|
-
MenubarCheckboxItem: ()=>MenubarCheckboxItem,
|
|
35
|
-
MenubarItem: ()=>MenubarItem,
|
|
36
|
-
MenubarShortcut: ()=>MenubarShortcut,
|
|
37
|
-
MenubarSubContent: ()=>MenubarSubContent,
|
|
38
|
-
MenubarTrigger: ()=>MenubarTrigger,
|
|
39
|
-
MenubarMenu: ()=>MenubarMenu,
|
|
40
|
-
MenubarSub: ()=>MenubarSub,
|
|
41
|
-
MenubarRadioGroup: ()=>MenubarRadioGroup,
|
|
42
|
-
MenubarSubTrigger: ()=>MenubarSubTrigger
|
|
43
|
-
});
|
|
44
|
-
const jsx_runtime_namespaceObject = require("react/jsx-runtime");
|
|
45
|
-
const react_menubar_namespaceObject = require("@radix-ui/react-menubar");
|
|
46
|
-
const external_lucide_react_namespaceObject = require("lucide-react");
|
|
47
|
-
const external_react_namespaceObject = require("react");
|
|
48
|
-
const index_cjs_namespaceObject = require("../../lib/index.cjs");
|
|
49
|
-
function MenubarMenu({ ...props }) {
|
|
50
|
-
return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(react_menubar_namespaceObject.Menu, {
|
|
51
|
-
...props
|
|
52
|
-
});
|
|
53
|
-
}
|
|
54
|
-
function MenubarGroup({ ...props }) {
|
|
55
|
-
return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(react_menubar_namespaceObject.Group, {
|
|
56
|
-
...props
|
|
57
|
-
});
|
|
58
|
-
}
|
|
59
|
-
function MenubarPortal({ ...props }) {
|
|
60
|
-
return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(react_menubar_namespaceObject.Portal, {
|
|
61
|
-
...props
|
|
62
|
-
});
|
|
63
|
-
}
|
|
64
|
-
function MenubarRadioGroup({ ...props }) {
|
|
65
|
-
return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(react_menubar_namespaceObject.RadioGroup, {
|
|
66
|
-
...props
|
|
67
|
-
});
|
|
68
|
-
}
|
|
69
|
-
function MenubarSub({ ...props }) {
|
|
70
|
-
return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(react_menubar_namespaceObject.Sub, {
|
|
71
|
-
"data-slot": "menubar-sub",
|
|
72
|
-
...props
|
|
73
|
-
});
|
|
74
|
-
}
|
|
75
|
-
const Menubar = /*#__PURE__*/ external_react_namespaceObject.forwardRef(({ className, ...props }, ref)=>/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(react_menubar_namespaceObject.Root, {
|
|
76
|
-
ref: ref,
|
|
77
|
-
className: (0, index_cjs_namespaceObject.cn)('flex h-10 items-center space-x-1 rounded-md border bg-background p-1', className),
|
|
78
|
-
...props
|
|
79
|
-
}));
|
|
80
|
-
Menubar.displayName = react_menubar_namespaceObject.Root.displayName;
|
|
81
|
-
const MenubarTrigger = /*#__PURE__*/ external_react_namespaceObject.forwardRef(({ className, ...props }, ref)=>/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(react_menubar_namespaceObject.Trigger, {
|
|
82
|
-
ref: ref,
|
|
83
|
-
className: (0, index_cjs_namespaceObject.cn)('flex cursor-default select-none items-center rounded-sm px-3 py-1.5 text-sm font-medium outline-none focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground', className),
|
|
84
|
-
...props
|
|
85
|
-
}));
|
|
86
|
-
MenubarTrigger.displayName = react_menubar_namespaceObject.Trigger.displayName;
|
|
87
|
-
const MenubarSubTrigger = /*#__PURE__*/ external_react_namespaceObject.forwardRef(({ className, inset, children, ...props }, ref)=>/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(react_menubar_namespaceObject.SubTrigger, {
|
|
88
|
-
ref: ref,
|
|
89
|
-
className: (0, index_cjs_namespaceObject.cn)('flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground', inset && 'pl-8', className),
|
|
90
|
-
...props,
|
|
91
|
-
children: [
|
|
92
|
-
children,
|
|
93
|
-
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_lucide_react_namespaceObject.ChevronRight, {
|
|
94
|
-
className: "ml-auto h-4 w-4"
|
|
95
|
-
})
|
|
96
|
-
]
|
|
97
|
-
}));
|
|
98
|
-
MenubarSubTrigger.displayName = react_menubar_namespaceObject.SubTrigger.displayName;
|
|
99
|
-
const MenubarSubContent = /*#__PURE__*/ external_react_namespaceObject.forwardRef(({ className, ...props }, ref)=>/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(react_menubar_namespaceObject.SubContent, {
|
|
100
|
-
ref: ref,
|
|
101
|
-
className: (0, index_cjs_namespaceObject.cn)('z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-[--radix-menubar-content-transform-origin]', className),
|
|
102
|
-
...props
|
|
103
|
-
}));
|
|
104
|
-
MenubarSubContent.displayName = react_menubar_namespaceObject.SubContent.displayName;
|
|
105
|
-
const MenubarContent = /*#__PURE__*/ external_react_namespaceObject.forwardRef(({ className, align = 'start', alignOffset = -4, sideOffset = 8, ...props }, ref)=>/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(react_menubar_namespaceObject.Portal, {
|
|
106
|
-
children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(react_menubar_namespaceObject.Content, {
|
|
107
|
-
ref: ref,
|
|
108
|
-
align: align,
|
|
109
|
-
alignOffset: alignOffset,
|
|
110
|
-
sideOffset: sideOffset,
|
|
111
|
-
className: (0, index_cjs_namespaceObject.cn)('z-50 min-w-[12rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-[--radix-menubar-content-transform-origin]', className),
|
|
112
|
-
...props
|
|
113
|
-
})
|
|
114
|
-
}));
|
|
115
|
-
MenubarContent.displayName = react_menubar_namespaceObject.Content.displayName;
|
|
116
|
-
const MenubarItem = /*#__PURE__*/ external_react_namespaceObject.forwardRef(({ className, inset, ...props }, ref)=>/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(react_menubar_namespaceObject.Item, {
|
|
117
|
-
ref: ref,
|
|
118
|
-
className: (0, index_cjs_namespaceObject.cn)('relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50', inset && 'pl-8', className),
|
|
119
|
-
...props
|
|
120
|
-
}));
|
|
121
|
-
MenubarItem.displayName = react_menubar_namespaceObject.Item.displayName;
|
|
122
|
-
const MenubarCheckboxItem = /*#__PURE__*/ external_react_namespaceObject.forwardRef(({ className, children, checked, ...props }, ref)=>/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(react_menubar_namespaceObject.CheckboxItem, {
|
|
123
|
-
ref: ref,
|
|
124
|
-
className: (0, index_cjs_namespaceObject.cn)('relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50', className),
|
|
125
|
-
checked: checked,
|
|
126
|
-
...props,
|
|
127
|
-
children: [
|
|
128
|
-
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("span", {
|
|
129
|
-
className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center",
|
|
130
|
-
children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(react_menubar_namespaceObject.ItemIndicator, {
|
|
131
|
-
children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_lucide_react_namespaceObject.Check, {
|
|
132
|
-
className: "h-4 w-4"
|
|
133
|
-
})
|
|
134
|
-
})
|
|
135
|
-
}),
|
|
136
|
-
children
|
|
137
|
-
]
|
|
138
|
-
}));
|
|
139
|
-
MenubarCheckboxItem.displayName = react_menubar_namespaceObject.CheckboxItem.displayName;
|
|
140
|
-
const MenubarRadioItem = /*#__PURE__*/ external_react_namespaceObject.forwardRef(({ className, children, ...props }, ref)=>/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(react_menubar_namespaceObject.RadioItem, {
|
|
141
|
-
ref: ref,
|
|
142
|
-
className: (0, index_cjs_namespaceObject.cn)('relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50', className),
|
|
143
|
-
...props,
|
|
144
|
-
children: [
|
|
145
|
-
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("span", {
|
|
146
|
-
className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center",
|
|
147
|
-
children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(react_menubar_namespaceObject.ItemIndicator, {
|
|
148
|
-
children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_lucide_react_namespaceObject.Circle, {
|
|
149
|
-
className: "h-2 w-2 fill-current"
|
|
150
|
-
})
|
|
151
|
-
})
|
|
152
|
-
}),
|
|
153
|
-
children
|
|
154
|
-
]
|
|
155
|
-
}));
|
|
156
|
-
MenubarRadioItem.displayName = react_menubar_namespaceObject.RadioItem.displayName;
|
|
157
|
-
const MenubarLabel = /*#__PURE__*/ external_react_namespaceObject.forwardRef(({ className, inset, ...props }, ref)=>/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(react_menubar_namespaceObject.Label, {
|
|
158
|
-
ref: ref,
|
|
159
|
-
className: (0, index_cjs_namespaceObject.cn)('px-2 py-1.5 text-sm font-semibold', inset && 'pl-8', className),
|
|
160
|
-
...props
|
|
161
|
-
}));
|
|
162
|
-
MenubarLabel.displayName = react_menubar_namespaceObject.Label.displayName;
|
|
163
|
-
const MenubarSeparator = /*#__PURE__*/ external_react_namespaceObject.forwardRef(({ className, ...props }, ref)=>/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(react_menubar_namespaceObject.Separator, {
|
|
164
|
-
ref: ref,
|
|
165
|
-
className: (0, index_cjs_namespaceObject.cn)('-mx-1 my-1 h-px bg-muted', className),
|
|
166
|
-
...props
|
|
167
|
-
}));
|
|
168
|
-
MenubarSeparator.displayName = react_menubar_namespaceObject.Separator.displayName;
|
|
169
|
-
const MenubarShortcut = ({ className, ...props })=>/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("span", {
|
|
170
|
-
className: (0, index_cjs_namespaceObject.cn)('ml-auto text-xs tracking-widest text-muted-foreground', className),
|
|
171
|
-
...props
|
|
172
|
-
});
|
|
173
|
-
MenubarShortcut.displayname = 'MenubarShortcut';
|
|
174
|
-
exports.Menubar = __webpack_exports__.Menubar;
|
|
175
|
-
exports.MenubarCheckboxItem = __webpack_exports__.MenubarCheckboxItem;
|
|
176
|
-
exports.MenubarContent = __webpack_exports__.MenubarContent;
|
|
177
|
-
exports.MenubarGroup = __webpack_exports__.MenubarGroup;
|
|
178
|
-
exports.MenubarItem = __webpack_exports__.MenubarItem;
|
|
179
|
-
exports.MenubarLabel = __webpack_exports__.MenubarLabel;
|
|
180
|
-
exports.MenubarMenu = __webpack_exports__.MenubarMenu;
|
|
181
|
-
exports.MenubarPortal = __webpack_exports__.MenubarPortal;
|
|
182
|
-
exports.MenubarRadioGroup = __webpack_exports__.MenubarRadioGroup;
|
|
183
|
-
exports.MenubarRadioItem = __webpack_exports__.MenubarRadioItem;
|
|
184
|
-
exports.MenubarSeparator = __webpack_exports__.MenubarSeparator;
|
|
185
|
-
exports.MenubarShortcut = __webpack_exports__.MenubarShortcut;
|
|
186
|
-
exports.MenubarSub = __webpack_exports__.MenubarSub;
|
|
187
|
-
exports.MenubarSubContent = __webpack_exports__.MenubarSubContent;
|
|
188
|
-
exports.MenubarSubTrigger = __webpack_exports__.MenubarSubTrigger;
|
|
189
|
-
exports.MenubarTrigger = __webpack_exports__.MenubarTrigger;
|
|
190
|
-
for(var __webpack_i__ in __webpack_exports__)if (-1 === [
|
|
191
|
-
"Menubar",
|
|
192
|
-
"MenubarCheckboxItem",
|
|
193
|
-
"MenubarContent",
|
|
194
|
-
"MenubarGroup",
|
|
195
|
-
"MenubarItem",
|
|
196
|
-
"MenubarLabel",
|
|
197
|
-
"MenubarMenu",
|
|
198
|
-
"MenubarPortal",
|
|
199
|
-
"MenubarRadioGroup",
|
|
200
|
-
"MenubarRadioItem",
|
|
201
|
-
"MenubarSeparator",
|
|
202
|
-
"MenubarShortcut",
|
|
203
|
-
"MenubarSub",
|
|
204
|
-
"MenubarSubContent",
|
|
205
|
-
"MenubarSubTrigger",
|
|
206
|
-
"MenubarTrigger"
|
|
207
|
-
].indexOf(__webpack_i__)) exports[__webpack_i__] = __webpack_exports__[__webpack_i__];
|
|
208
|
-
Object.defineProperty(exports, '__esModule', {
|
|
209
|
-
value: true
|
|
210
|
-
});
|