@orion-ds/react 4.9.1 → 4.9.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/blocks/sections/AgentFolder/AgentFolder.cjs +1 -1
- package/dist/blocks/sections/AgentFolder/AgentFolder.mjs +4 -6
- package/dist/blocks/templates/app/AgentEditor/AgentEditor.cjs +1 -1
- package/dist/blocks/templates/app/AgentEditor/AgentEditor.mjs +15 -18
- package/dist/blocks/templates/app/AgentWorkspace/AgentWorkspace.cjs +1 -1
- package/dist/blocks/templates/app/AgentWorkspace/AgentWorkspace.mjs +9 -11
- package/dist/blocks/templates/app/ChatPageTemplate/ChatPageTemplate.cjs +1 -1
- package/dist/blocks/templates/app/ChatPageTemplate/ChatPageTemplate.mjs +6 -6
- package/dist/blocks/templates/app/DashboardTemplate/DashboardTemplate.cjs +1 -1
- package/dist/blocks/templates/app/DashboardTemplate/DashboardTemplate.mjs +6 -7
- package/dist/blocks/templates/app/KanbanPageTemplate/KanbanPageTemplate.cjs +1 -1
- package/dist/blocks/templates/app/KanbanPageTemplate/KanbanPageTemplate.mjs +8 -9
- package/dist/blocks/templates/app/LoginTemplate/LoginTemplate.cjs +1 -1
- package/dist/blocks/templates/app/LoginTemplate/LoginTemplate.mjs +42 -44
- package/dist/blocks/templates/app/ProfilePageTemplate/ProfilePageTemplate.cjs +1 -1
- package/dist/blocks/templates/app/ProfilePageTemplate/ProfilePageTemplate.mjs +1 -2
- package/dist/blocks/templates/app/SettingsTemplate/SettingsTemplate.cjs +1 -1
- package/dist/blocks/templates/app/SettingsTemplate/SettingsTemplate.mjs +14 -15
- package/dist/styles.css +34 -19
- package/dist/theme.css +34 -19
- package/package.json +2 -2
- package/dist/blocks/sections/ActivityFeed/ActivityFeed.stories.d.ts +0 -18
- package/dist/blocks/sections/ActivityFeed/ActivityFeed.stories.d.ts.map +0 -1
- package/dist/blocks/sections/AgentFolder/AgentFolder.stories.d.ts +0 -17
- package/dist/blocks/sections/AgentFolder/AgentFolder.stories.d.ts.map +0 -1
- package/dist/blocks/sections/AppDownload/AppDownload.stories.d.ts +0 -19
- package/dist/blocks/sections/AppDownload/AppDownload.stories.d.ts.map +0 -1
- package/dist/blocks/sections/Blog/Blog.stories.d.ts +0 -17
- package/dist/blocks/sections/Blog/Blog.stories.d.ts.map +0 -1
- package/dist/blocks/sections/Breadcrumbs/Breadcrumbs.stories.d.ts +0 -16
- package/dist/blocks/sections/Breadcrumbs/Breadcrumbs.stories.d.ts.map +0 -1
- package/dist/blocks/sections/CTA/CTA.stories.d.ts +0 -17
- package/dist/blocks/sections/CTA/CTA.stories.d.ts.map +0 -1
- package/dist/blocks/sections/CarouselSection/CarouselSection.stories.d.ts +0 -18
- package/dist/blocks/sections/CarouselSection/CarouselSection.stories.d.ts.map +0 -1
- package/dist/blocks/sections/Chat/Chat.stories.d.ts +0 -16
- package/dist/blocks/sections/Chat/Chat.stories.d.ts.map +0 -1
- package/dist/blocks/sections/Comparison/Comparison.stories.d.ts +0 -16
- package/dist/blocks/sections/Comparison/Comparison.stories.d.ts.map +0 -1
- package/dist/blocks/sections/Contact/Contact.stories.d.ts +0 -16
- package/dist/blocks/sections/Contact/Contact.stories.d.ts.map +0 -1
- package/dist/blocks/sections/EmptyState/EmptyState.stories.d.ts +0 -16
- package/dist/blocks/sections/EmptyState/EmptyState.stories.d.ts.map +0 -1
- package/dist/blocks/sections/FAQ/FAQ.stories.d.ts +0 -18
- package/dist/blocks/sections/FAQ/FAQ.stories.d.ts.map +0 -1
- package/dist/blocks/sections/Features/Features.stories.d.ts +0 -19
- package/dist/blocks/sections/Features/Features.stories.d.ts.map +0 -1
- package/dist/blocks/sections/Footer/Footer.stories.d.ts +0 -17
- package/dist/blocks/sections/Footer/Footer.stories.d.ts.map +0 -1
- package/dist/blocks/sections/Gallery/Gallery.stories.d.ts +0 -16
- package/dist/blocks/sections/Gallery/Gallery.stories.d.ts.map +0 -1
- package/dist/blocks/sections/Hero/Hero.stories.d.ts +0 -21
- package/dist/blocks/sections/Hero/Hero.stories.d.ts.map +0 -1
- package/dist/blocks/sections/LogoCloud/LogoCloud.stories.d.ts +0 -17
- package/dist/blocks/sections/LogoCloud/LogoCloud.stories.d.ts.map +0 -1
- package/dist/blocks/sections/Newsletter/Newsletter.stories.d.ts +0 -17
- package/dist/blocks/sections/Newsletter/Newsletter.stories.d.ts.map +0 -1
- package/dist/blocks/sections/Pricing/Pricing.stories.d.ts +0 -18
- package/dist/blocks/sections/Pricing/Pricing.stories.d.ts.map +0 -1
- package/dist/blocks/sections/SettingsLayout/SettingsLayout.stories.d.ts +0 -16
- package/dist/blocks/sections/SettingsLayout/SettingsLayout.stories.d.ts.map +0 -1
- package/dist/blocks/sections/SocialProof/SocialProof.stories.d.ts +0 -16
- package/dist/blocks/sections/SocialProof/SocialProof.stories.d.ts.map +0 -1
- package/dist/blocks/sections/Stats/Stats.stories.d.ts +0 -17
- package/dist/blocks/sections/Stats/Stats.stories.d.ts.map +0 -1
- package/dist/blocks/sections/Stepper/Stepper.stories.d.ts +0 -18
- package/dist/blocks/sections/Stepper/Stepper.stories.d.ts.map +0 -1
- package/dist/blocks/sections/Team/Team.stories.d.ts +0 -19
- package/dist/blocks/sections/Team/Team.stories.d.ts.map +0 -1
- package/dist/blocks/sections/Testimonials/Testimonials.stories.d.ts +0 -19
- package/dist/blocks/sections/Testimonials/Testimonials.stories.d.ts.map +0 -1
- package/dist/blocks/sections/Timeline/Timeline.stories.d.ts +0 -17
- package/dist/blocks/sections/Timeline/Timeline.stories.d.ts.map +0 -1
- package/dist/blocks/templates/app/AgentEditor/AgentEditor.stories.d.ts +0 -17
- package/dist/blocks/templates/app/AgentEditor/AgentEditor.stories.d.ts.map +0 -1
- package/dist/blocks/templates/app/AgentWorkspace/AgentWorkspace.stories.d.ts +0 -17
- package/dist/blocks/templates/app/AgentWorkspace/AgentWorkspace.stories.d.ts.map +0 -1
- package/dist/blocks/templates/app/ChatPageTemplate/ChatPageTemplate.stories.d.ts +0 -18
- package/dist/blocks/templates/app/ChatPageTemplate/ChatPageTemplate.stories.d.ts.map +0 -1
- package/dist/blocks/templates/app/DashboardTemplate/DashboardTemplate.stories.d.ts +0 -17
- package/dist/blocks/templates/app/DashboardTemplate/DashboardTemplate.stories.d.ts.map +0 -1
- package/dist/blocks/templates/app/KanbanPageTemplate/KanbanPageTemplate.stories.d.ts +0 -17
- package/dist/blocks/templates/app/KanbanPageTemplate/KanbanPageTemplate.stories.d.ts.map +0 -1
- package/dist/blocks/templates/app/LoginTemplate/LoginTemplate.stories.d.ts +0 -18
- package/dist/blocks/templates/app/LoginTemplate/LoginTemplate.stories.d.ts.map +0 -1
- package/dist/blocks/templates/app/ProfilePageTemplate/ProfilePageTemplate.stories.d.ts +0 -18
- package/dist/blocks/templates/app/ProfilePageTemplate/ProfilePageTemplate.stories.d.ts.map +0 -1
- package/dist/blocks/templates/app/SettingsTemplate/SettingsTemplate.stories.d.ts +0 -19
- package/dist/blocks/templates/app/SettingsTemplate/SettingsTemplate.stories.d.ts.map +0 -1
- package/dist/components/Accordion/Accordion.stories.d.ts +0 -17
- package/dist/components/Accordion/Accordion.stories.d.ts.map +0 -1
- package/dist/components/ActivityFeed/ActivityFeed.stories.d.ts +0 -16
- package/dist/components/ActivityFeed/ActivityFeed.stories.d.ts.map +0 -1
- package/dist/components/AgentCard/AgentCard.stories.d.ts +0 -16
- package/dist/components/AgentCard/AgentCard.stories.d.ts.map +0 -1
- package/dist/components/Alert/Alert.stories.d.ts +0 -27
- package/dist/components/Alert/Alert.stories.d.ts.map +0 -1
- package/dist/components/AlertDialog/AlertDialog.stories.d.ts +0 -13
- package/dist/components/AlertDialog/AlertDialog.stories.d.ts.map +0 -1
- package/dist/components/Avatar/Avatar.stories.d.ts +0 -51
- package/dist/components/Avatar/Avatar.stories.d.ts.map +0 -1
- package/dist/components/Badge/Badge.stories.d.ts +0 -38
- package/dist/components/Badge/Badge.stories.d.ts.map +0 -1
- package/dist/components/Banner/Banner.stories.d.ts +0 -33
- package/dist/components/Banner/Banner.stories.d.ts.map +0 -1
- package/dist/components/Breadcrumb/Breadcrumb.stories.d.ts +0 -52
- package/dist/components/Breadcrumb/Breadcrumb.stories.d.ts.map +0 -1
- package/dist/components/Button/Button.stories.d.ts +0 -56
- package/dist/components/Button/Button.stories.d.ts.map +0 -1
- package/dist/components/Calendar/Calendar.stories.d.ts +0 -37
- package/dist/components/Calendar/Calendar.stories.d.ts.map +0 -1
- package/dist/components/Card/Card.stories.d.ts +0 -33
- package/dist/components/Card/Card.stories.d.ts.map +0 -1
- package/dist/components/Carousel/Carousel.stories.d.ts +0 -92
- package/dist/components/Carousel/Carousel.stories.d.ts.map +0 -1
- package/dist/components/Chart/Chart.stories.d.ts +0 -36
- package/dist/components/Chart/Chart.stories.d.ts.map +0 -1
- package/dist/components/Chat/Chat.stories.d.ts +0 -24
- package/dist/components/Chat/Chat.stories.d.ts.map +0 -1
- package/dist/components/Checkbox/Checkbox.stories.d.ts +0 -42
- package/dist/components/Checkbox/Checkbox.stories.d.ts.map +0 -1
- package/dist/components/Chip/Chip.stories.d.ts +0 -17
- package/dist/components/Chip/Chip.stories.d.ts.map +0 -1
- package/dist/components/CodeEditor/CodeEditor.stories.d.ts +0 -35
- package/dist/components/CodeEditor/CodeEditor.stories.d.ts.map +0 -1
- package/dist/components/Collapsible/Collapsible.stories.d.ts +0 -33
- package/dist/components/Collapsible/Collapsible.stories.d.ts.map +0 -1
- package/dist/components/CollapsibleFolder/CollapsibleFolder.stories.d.ts +0 -17
- package/dist/components/CollapsibleFolder/CollapsibleFolder.stories.d.ts.map +0 -1
- package/dist/components/Combobox/Combobox.stories.d.ts +0 -26
- package/dist/components/Combobox/Combobox.stories.d.ts.map +0 -1
- package/dist/components/Command/Command.stories.d.ts +0 -13
- package/dist/components/Command/Command.stories.d.ts.map +0 -1
- package/dist/components/CommandBar/CommandBar.stories.d.ts +0 -12
- package/dist/components/CommandBar/CommandBar.stories.d.ts.map +0 -1
- package/dist/components/DataTable/DataTable.stories.d.ts +0 -21
- package/dist/components/DataTable/DataTable.stories.d.ts.map +0 -1
- package/dist/components/DatePicker/DatePicker.stories.d.ts +0 -36
- package/dist/components/DatePicker/DatePicker.stories.d.ts.map +0 -1
- package/dist/components/DetailPanel/DetailPanel.stories.d.ts +0 -14
- package/dist/components/DetailPanel/DetailPanel.stories.d.ts.map +0 -1
- package/dist/components/Divider/Divider.stories.d.ts +0 -16
- package/dist/components/Divider/Divider.stories.d.ts.map +0 -1
- package/dist/components/Drawer/Drawer.stories.d.ts +0 -19
- package/dist/components/Drawer/Drawer.stories.d.ts.map +0 -1
- package/dist/components/Dropdown/Dropdown.stories.d.ts +0 -18
- package/dist/components/Dropdown/Dropdown.stories.d.ts.map +0 -1
- package/dist/components/EmptyState/EmptyState.stories.d.ts +0 -18
- package/dist/components/EmptyState/EmptyState.stories.d.ts.map +0 -1
- package/dist/components/ErrorBoundary/ErrorBoundary.stories.d.ts +0 -17
- package/dist/components/ErrorBoundary/ErrorBoundary.stories.d.ts.map +0 -1
- package/dist/components/Field/Field.stories.d.ts +0 -65
- package/dist/components/Field/Field.stories.d.ts.map +0 -1
- package/dist/components/FileUploader/FileUploader.stories.d.ts +0 -59
- package/dist/components/FileUploader/FileUploader.stories.d.ts.map +0 -1
- package/dist/components/FilterBar/FilterBar.stories.d.ts +0 -13
- package/dist/components/FilterBar/FilterBar.stories.d.ts.map +0 -1
- package/dist/components/FontLoader/FontLoader.stories.d.ts +0 -41
- package/dist/components/FontLoader/FontLoader.stories.d.ts.map +0 -1
- package/dist/components/FormSection/FormSection.stories.d.ts +0 -15
- package/dist/components/FormSection/FormSection.stories.d.ts.map +0 -1
- package/dist/components/Icon/Icon.stories.d.ts +0 -69
- package/dist/components/Icon/Icon.stories.d.ts.map +0 -1
- package/dist/components/IconGallery/IconGallery.stories.d.ts +0 -8
- package/dist/components/IconGallery/IconGallery.stories.d.ts.map +0 -1
- package/dist/components/InputOTP/InputOTP.stories.d.ts +0 -48
- package/dist/components/InputOTP/InputOTP.stories.d.ts.map +0 -1
- package/dist/components/KanbanBoard/KanbanBoard.stories.d.ts +0 -35
- package/dist/components/KanbanBoard/KanbanBoard.stories.d.ts.map +0 -1
- package/dist/components/Link/Link.stories.d.ts +0 -22
- package/dist/components/Link/Link.stories.d.ts.map +0 -1
- package/dist/components/List/List.stories.d.ts +0 -22
- package/dist/components/List/List.stories.d.ts.map +0 -1
- package/dist/components/MetricCards/MetricCards.stories.d.ts +0 -16
- package/dist/components/MetricCards/MetricCards.stories.d.ts.map +0 -1
- package/dist/components/Modal/Modal.stories.d.ts +0 -16
- package/dist/components/Modal/Modal.stories.d.ts.map +0 -1
- package/dist/components/NavTree/NavTree.stories.d.ts +0 -27
- package/dist/components/NavTree/NavTree.stories.d.ts.map +0 -1
- package/dist/components/Navbar/Navbar.stories.d.ts +0 -23
- package/dist/components/Navbar/Navbar.stories.d.ts.map +0 -1
- package/dist/components/NotificationCenter/NotificationCenter.stories.d.ts +0 -43
- package/dist/components/NotificationCenter/NotificationCenter.stories.d.ts.map +0 -1
- package/dist/components/PageHeader/PageHeader.stories.d.ts +0 -15
- package/dist/components/PageHeader/PageHeader.stories.d.ts.map +0 -1
- package/dist/components/Pagination/Pagination.stories.d.ts +0 -20
- package/dist/components/Pagination/Pagination.stories.d.ts.map +0 -1
- package/dist/components/Popover/Popover.stories.d.ts +0 -19
- package/dist/components/Popover/Popover.stories.d.ts.map +0 -1
- package/dist/components/ProgressBar/ProgressBar.stories.d.ts +0 -30
- package/dist/components/ProgressBar/ProgressBar.stories.d.ts.map +0 -1
- package/dist/components/QuickActions/QuickActions.stories.d.ts +0 -20
- package/dist/components/QuickActions/QuickActions.stories.d.ts.map +0 -1
- package/dist/components/Radio/Radio.stories.d.ts +0 -54
- package/dist/components/Radio/Radio.stories.d.ts.map +0 -1
- package/dist/components/SearchInput/SearchInput.stories.d.ts +0 -19
- package/dist/components/SearchInput/SearchInput.stories.d.ts.map +0 -1
- package/dist/components/Select/Select.stories.d.ts +0 -25
- package/dist/components/Select/Select.stories.d.ts.map +0 -1
- package/dist/components/Sidebar/Sidebar.stories.d.ts +0 -19
- package/dist/components/Sidebar/Sidebar.stories.d.ts.map +0 -1
- package/dist/components/Skeleton/Skeleton.stories.d.ts +0 -20
- package/dist/components/Skeleton/Skeleton.stories.d.ts.map +0 -1
- package/dist/components/Slider/Slider.stories.d.ts +0 -24
- package/dist/components/Slider/Slider.stories.d.ts.map +0 -1
- package/dist/components/Spinner/Spinner.stories.d.ts +0 -52
- package/dist/components/Spinner/Spinner.stories.d.ts.map +0 -1
- package/dist/components/Stack/Stack.stories.d.ts +0 -52
- package/dist/components/Stack/Stack.stories.d.ts.map +0 -1
- package/dist/components/Stepper/Stepper.stories.d.ts +0 -37
- package/dist/components/Stepper/Stepper.stories.d.ts.map +0 -1
- package/dist/components/Switch/Switch.stories.d.ts +0 -39
- package/dist/components/Switch/Switch.stories.d.ts.map +0 -1
- package/dist/components/Table/Table.stories.d.ts +0 -56
- package/dist/components/Table/Table.stories.d.ts.map +0 -1
- package/dist/components/Tabs/Tabs.stories.d.ts +0 -41
- package/dist/components/Tabs/Tabs.stories.d.ts.map +0 -1
- package/dist/components/Textarea/Textarea.stories.d.ts +0 -74
- package/dist/components/Textarea/Textarea.stories.d.ts.map +0 -1
- package/dist/components/ThemeController/ThemeController.stories.d.ts +0 -21
- package/dist/components/ThemeController/ThemeController.stories.d.ts.map +0 -1
- package/dist/components/Toast/Toast.stories.d.ts +0 -20
- package/dist/components/Toast/Toast.stories.d.ts.map +0 -1
- package/dist/components/Toggle/Toggle.stories.d.ts +0 -45
- package/dist/components/Toggle/Toggle.stories.d.ts.map +0 -1
- package/dist/components/ToggleGroup/ToggleGroup.stories.d.ts +0 -45
- package/dist/components/ToggleGroup/ToggleGroup.stories.d.ts.map +0 -1
- package/dist/components/Tooltip/Tooltip.stories.d.ts +0 -42
- package/dist/components/Tooltip/Tooltip.stories.d.ts.map +0 -1
- package/dist/components/UserMenu/UserMenu.stories.d.ts +0 -47
- package/dist/components/UserMenu/UserMenu.stories.d.ts.map +0 -1
- package/dist/components/WorkspaceSwitcher/WorkspaceSwitcher.stories.d.ts +0 -16
- package/dist/components/WorkspaceSwitcher/WorkspaceSwitcher.stories.d.ts.map +0 -1
- package/dist/dist/index146.cjs +0 -1
- package/dist/dist/index146.mjs +0 -41
- package/dist/dist/index149.cjs +0 -1
- package/dist/dist/index149.mjs +0 -43
- package/dist/dist/index172.cjs +0 -1
- package/dist/dist/index172.mjs +0 -27
- package/dist/dist/index175.cjs +0 -1
- package/dist/dist/index175.mjs +0 -59
- package/dist/dist/index180.cjs +0 -1
- package/dist/dist/index180.mjs +0 -29
- package/dist/dist/index189.cjs +0 -1
- package/dist/dist/index189.mjs +0 -49
- package/dist/dist/index19.cjs +0 -1
- package/dist/dist/index19.mjs +0 -120
- package/dist/dist/index22.cjs +0 -1
- package/dist/dist/index22.mjs +0 -77
- package/dist/dist/index225.cjs +0 -1
- package/dist/dist/index225.mjs +0 -43
- package/dist/dist/index23.cjs +0 -1
- package/dist/dist/index23.mjs +0 -20
- package/dist/dist/index232.cjs +0 -1
- package/dist/dist/index232.mjs +0 -31
- package/dist/dist/index240.cjs +0 -1
- package/dist/dist/index240.mjs +0 -15
- package/dist/dist/index26.cjs +0 -1
- package/dist/dist/index26.mjs +0 -71
- package/dist/dist/index28.cjs +0 -1
- package/dist/dist/index28.mjs +0 -106
- package/dist/dist/index36.cjs +0 -1
- package/dist/dist/index36.mjs +0 -114
- package/dist/dist/index37.cjs +0 -1
- package/dist/dist/index37.mjs +0 -196
- package/dist/dist/index47.cjs +0 -1
- package/dist/dist/index47.mjs +0 -176
- package/dist/dist/index50.cjs +0 -1
- package/dist/dist/index50.mjs +0 -107
- package/dist/sections/Container/Container.stories.d.ts +0 -29
- package/dist/sections/Container/Container.stories.d.ts.map +0 -1
- package/dist/sections/Section/Section.stories.d.ts +0 -41
- package/dist/sections/Section/Section.stories.d.ts.map +0 -1
- package/dist/sections/index.cjs +0 -1
- package/dist/sections/index.mjs +0 -43
- package/dist/templates/index.cjs +0 -1
- package/dist/templates/index.d.ts +0 -1
- package/dist/templates/index.mjs +0 -18
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime")
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),t=require("@orion-ds/react"),r=({agents:a,agentCount:n,...l})=>e.jsx(t.CollapsibleFolder,{...l,items:a,itemCount:n,itemLabel:"Agente",itemLabelPlural:"Agentes",emptyText:"No hay agentes en esta carpeta",sortLabel:"Ordenar",renderItem:o=>e.jsx(t.AgentCard,{...o})});r.displayName="AgentFolder";exports.AgentFolder=r;
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
import { jsx as e } from "react/jsx-runtime";
|
|
2
|
-
import "
|
|
3
|
-
|
|
4
|
-
import { CollapsibleFolder as l } from "../../../dist/index37.mjs";
|
|
5
|
-
const s = ({
|
|
2
|
+
import { CollapsibleFolder as l, AgentCard as m } from "@orion-ds/react";
|
|
3
|
+
const n = ({
|
|
6
4
|
agents: t,
|
|
7
5
|
agentCount: r,
|
|
8
6
|
...a
|
|
@@ -19,7 +17,7 @@ const s = ({
|
|
|
19
17
|
renderItem: (o) => /* @__PURE__ */ e(m, { ...o })
|
|
20
18
|
}
|
|
21
19
|
);
|
|
22
|
-
|
|
20
|
+
n.displayName = "AgentFolder";
|
|
23
21
|
export {
|
|
24
|
-
|
|
22
|
+
n as AgentFolder
|
|
25
23
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),o=require("react"),r=require("@orion-ds/react"),t=require("./AgentEditor.module.css.cjs"),c=o.forwardRef(({title:u="Edit Agent",agent:p,availableModels:n=["gpt-4","gpt-3.5-turbo","claude-3-opus"],onSave:i,onCancel:h,isLoading:s=!1,error:m,className:x,...f},j)=>{const[l,v]=o.useState(p||{id:"",name:"",description:"",model:n[0]||"gpt-4",systemPrompt:"",temperature:.7,maxTokens:2e3}),d=o.useCallback((a,g)=>{v(N=>({...N,[a]:g}))},[]),b=o.useCallback(()=>{l.name.trim()&&i?.(l)},[l,i]);return e.jsx("div",{ref:j,className:[t.default.root,x].filter(Boolean).join(" "),...f,children:e.jsxs(r.Card,{children:[e.jsx(r.Card.Header,{children:e.jsx("h2",{className:t.default.title,children:u})}),e.jsxs(r.Card.Body,{className:t.default.body,children:[m&&e.jsx("div",{className:t.default.error,children:m}),e.jsx("div",{className:t.default.formGroup,children:e.jsx(r.Field,{label:"Agent Name",type:"text",placeholder:"e.g., Customer Support Bot",value:l.name,onChange:a=>d("name",a.target.value),disabled:s})}),e.jsx("div",{className:t.default.formGroup,children:e.jsx(r.Field,{label:"Description",placeholder:"Brief description of the agent's purpose",value:l.description,onChange:a=>d("description",a.target.value),disabled:s})}),e.jsxs("div",{className:t.default.formRow,children:[e.jsxs("div",{className:t.default.formGroup,children:[e.jsx("label",{htmlFor:"model",className:t.default.label,children:"Model"}),e.jsx("select",{id:"model",className:t.default.select,value:l.model,onChange:a=>d("model",a.target.value),disabled:s,children:n.map(a=>e.jsx("option",{value:a,children:a},a))})]}),e.jsx("div",{className:t.default.formGroup,children:e.jsx(r.Field,{label:"Temperature",type:"number",min:"0",max:"2",step:"0.1",value:l.temperature,onChange:a=>d("temperature",parseFloat(a.target.value)),disabled:s})})]}),e.jsx("div",{className:t.default.formGroup,children:e.jsx(r.Field,{label:"Max Tokens",type:"number",min:"1",max:"32000",value:l.maxTokens,onChange:a=>d("maxTokens",parseInt(a.target.value,10)),disabled:s})}),e.jsxs("div",{className:t.default.formGroup,children:[e.jsx("label",{htmlFor:"system-prompt",className:t.default.label,children:"System Prompt"}),e.jsx("textarea",{id:"system-prompt",className:t.default.textarea,placeholder:"Define the agent's behavior and instructions",value:l.systemPrompt,onChange:a=>d("systemPrompt",a.target.value),disabled:s,rows:6})]})]}),e.jsxs(r.Card.Footer,{className:t.default.footer,children:[e.jsx(r.Button,{variant:"ghost",onClick:h,disabled:s,children:"Cancel"}),e.jsx(r.Button,{variant:"primary",onClick:b,isLoading:s,disabled:!l.name.trim(),children:"Save Agent"})]})]})})});c.displayName="AgentEditor";exports.AgentEditor=c;
|
|
@@ -1,20 +1,17 @@
|
|
|
1
1
|
import { jsx as e, jsxs as s } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef as F, useState as G, useCallback as p } from "react";
|
|
3
|
-
import "
|
|
4
|
-
import { Button as h } from "../../../../dist/index26.mjs";
|
|
5
|
-
import { Card as m } from "../../../../dist/index28.mjs";
|
|
6
|
-
import { Field as n } from "../../../../dist/index50.mjs";
|
|
3
|
+
import { Card as m, Field as n, Button as h } from "@orion-ds/react";
|
|
7
4
|
import r from "./AgentEditor.module.css.mjs";
|
|
8
5
|
const A = F(
|
|
9
6
|
({
|
|
10
7
|
title: u = "Edit Agent",
|
|
11
8
|
agent: v,
|
|
12
|
-
availableModels:
|
|
13
|
-
onSave:
|
|
14
|
-
onCancel:
|
|
9
|
+
availableModels: d = ["gpt-4", "gpt-3.5-turbo", "claude-3-opus"],
|
|
10
|
+
onSave: i,
|
|
11
|
+
onCancel: b,
|
|
15
12
|
isLoading: l = !1,
|
|
16
13
|
error: c,
|
|
17
|
-
className:
|
|
14
|
+
className: f,
|
|
18
15
|
...g
|
|
19
16
|
}, N) => {
|
|
20
17
|
const [t, y] = G(
|
|
@@ -22,27 +19,27 @@ const A = F(
|
|
|
22
19
|
id: "",
|
|
23
20
|
name: "",
|
|
24
21
|
description: "",
|
|
25
|
-
model:
|
|
22
|
+
model: d[0] || "gpt-4",
|
|
26
23
|
systemPrompt: "",
|
|
27
24
|
temperature: 0.7,
|
|
28
25
|
maxTokens: 2e3
|
|
29
26
|
}
|
|
30
27
|
), o = p(
|
|
31
|
-
(a,
|
|
28
|
+
(a, x) => {
|
|
32
29
|
y((k) => ({
|
|
33
30
|
...k,
|
|
34
|
-
[a]:
|
|
31
|
+
[a]: x
|
|
35
32
|
}));
|
|
36
33
|
},
|
|
37
34
|
[]
|
|
38
|
-
),
|
|
39
|
-
t.name.trim() &&
|
|
40
|
-
}, [t,
|
|
35
|
+
), C = p(() => {
|
|
36
|
+
t.name.trim() && i?.(t);
|
|
37
|
+
}, [t, i]);
|
|
41
38
|
return /* @__PURE__ */ e(
|
|
42
39
|
"div",
|
|
43
40
|
{
|
|
44
41
|
ref: N,
|
|
45
|
-
className: [r.root,
|
|
42
|
+
className: [r.root, f].filter(Boolean).join(" "),
|
|
46
43
|
...g,
|
|
47
44
|
children: /* @__PURE__ */ s(m, { children: [
|
|
48
45
|
/* @__PURE__ */ e(m.Header, { children: /* @__PURE__ */ e("h2", { className: r.title, children: u }) }),
|
|
@@ -80,7 +77,7 @@ const A = F(
|
|
|
80
77
|
value: t.model,
|
|
81
78
|
onChange: (a) => o("model", a.target.value),
|
|
82
79
|
disabled: l,
|
|
83
|
-
children:
|
|
80
|
+
children: d.map((a) => /* @__PURE__ */ e("option", { value: a, children: a }, a))
|
|
84
81
|
}
|
|
85
82
|
)
|
|
86
83
|
] }),
|
|
@@ -131,7 +128,7 @@ const A = F(
|
|
|
131
128
|
h,
|
|
132
129
|
{
|
|
133
130
|
variant: "ghost",
|
|
134
|
-
onClick:
|
|
131
|
+
onClick: b,
|
|
135
132
|
disabled: l,
|
|
136
133
|
children: "Cancel"
|
|
137
134
|
}
|
|
@@ -140,7 +137,7 @@ const A = F(
|
|
|
140
137
|
h,
|
|
141
138
|
{
|
|
142
139
|
variant: "primary",
|
|
143
|
-
onClick:
|
|
140
|
+
onClick: C,
|
|
144
141
|
isLoading: l,
|
|
145
142
|
disabled: !t.name.trim(),
|
|
146
143
|
children: "Save Agent"
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),r=require("react"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),r=require("react"),l=require("@orion-ds/react"),i=require("lucide-react"),a=require("./AgentWorkspace.module.css.cjs");function b(d){switch(d){case"active":return"success";case"inactive":return"info";case"error":return"error";default:return"info"}}function k(d){return d.charAt(0).toUpperCase()+d.slice(1)}const j=r.forwardRef(({title:d="Agent Workspace",agents:c=[],selectedAgentId:x,onSelectAgent:p,onCreateAgent:n,onDeleteAgent:o,onEditAgent:u,isLoading:m=!1,error:f,subtitle:h,className:N,...g},C)=>{const v=r.useCallback((t,s)=>{s.stopPropagation(),window.confirm("Are you sure you want to delete this agent?")&&o?.(t)},[o]),y=r.useCallback((t,s)=>{s.stopPropagation(),u?.(t)},[u]);return e.jsxs("div",{ref:C,className:[a.default.root,N].filter(Boolean).join(" "),...g,children:[e.jsxs("div",{className:a.default.header,children:[e.jsxs("div",{className:a.default.headerContent,children:[e.jsx("h1",{className:a.default.title,children:d}),h&&e.jsx("p",{className:a.default.subtitle,children:h})]}),e.jsx(l.Button,{variant:"primary",icon:e.jsx(i.Plus,{size:20}),onClick:n,disabled:m,children:"New Agent"})]}),f&&e.jsx("div",{className:a.default.error,children:f}),e.jsx("div",{className:a.default.grid,children:c.length===0?e.jsx(l.Card,{className:a.default.emptyState,children:e.jsxs(l.Card.Body,{className:a.default.emptyStateBody,children:[e.jsx("div",{className:a.default.emptyStateIcon,children:"📋"}),e.jsx("h3",{className:a.default.emptyStateTitle,children:"No agents yet"}),e.jsx("p",{className:a.default.emptyStateText,children:"Create your first agent to get started"}),e.jsx(l.Button,{variant:"primary",onClick:n,disabled:m,children:"Create Agent"})]})}):c.map(t=>e.jsx(l.Card,{className:[a.default.agentCard,x===t.id&&a.default.agentCardSelected].filter(Boolean).join(" "),onClick:()=>p?.(t.id),children:e.jsxs(l.Card.Body,{className:a.default.agentCardBody,children:[e.jsxs("div",{className:a.default.agentHeader,children:[e.jsxs("div",{className:a.default.agentInfo,children:[e.jsx("h3",{className:a.default.agentName,children:t.name}),e.jsx(l.Badge,{variant:b(t.status),size:"sm",children:k(t.status)})]}),e.jsxs("div",{className:a.default.agentActions,children:[e.jsx("button",{className:a.default.actionButton,onClick:s=>y(t.id,s),"aria-label":"Edit agent",title:"Edit agent",children:e.jsx(i.Edit2,{size:18})}),e.jsx("button",{className:[a.default.actionButton,a.default.actionButtonDanger].join(" "),onClick:s=>v(t.id,s),"aria-label":"Delete agent",title:"Delete agent",children:e.jsx(i.Trash2,{size:18})})]})]}),e.jsx("p",{className:a.default.agentDescription,children:t.description}),e.jsxs("div",{className:a.default.agentMeta,children:[e.jsxs("div",{className:a.default.metaItem,children:[e.jsx(i.Clock,{size:14}),e.jsxs("span",{className:a.default.metaLabel,children:["Updated"," ",new Date(t.lastUpdated).toLocaleDateString()]})]}),t.usageCount!==void 0&&e.jsx("div",{className:a.default.metaItem,children:e.jsxs("span",{className:a.default.metaLabel,children:[t.usageCount," uses"]})})]})]})},t.id))})]})});j.displayName="AgentWorkspace";exports.AgentWorkspace=j;
|
|
@@ -1,11 +1,9 @@
|
|
|
1
1
|
import { jsxs as i, jsx as a } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef as k, useCallback as u } from "react";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import { Button as N } from "../../../../dist/index26.mjs";
|
|
6
|
-
import { Card as l } from "../../../../dist/index28.mjs";
|
|
3
|
+
import { Button as N, Card as l, Badge as S } from "@orion-ds/react";
|
|
4
|
+
import { Plus as w, Edit2 as D, Trash2 as j, Clock as z } from "lucide-react";
|
|
7
5
|
import e from "./AgentWorkspace.module.css.mjs";
|
|
8
|
-
function
|
|
6
|
+
function A(r) {
|
|
9
7
|
switch (r) {
|
|
10
8
|
case "active":
|
|
11
9
|
return "success";
|
|
@@ -17,7 +15,7 @@ function z(r) {
|
|
|
17
15
|
return "info";
|
|
18
16
|
}
|
|
19
17
|
}
|
|
20
|
-
function
|
|
18
|
+
function x(r) {
|
|
21
19
|
return r.charAt(0).toUpperCase() + r.slice(1);
|
|
22
20
|
}
|
|
23
21
|
const I = k(
|
|
@@ -62,7 +60,7 @@ const I = k(
|
|
|
62
60
|
N,
|
|
63
61
|
{
|
|
64
62
|
variant: "primary",
|
|
65
|
-
icon: /* @__PURE__ */ a(
|
|
63
|
+
icon: /* @__PURE__ */ a(w, { size: 20 }),
|
|
66
64
|
onClick: c,
|
|
67
65
|
disabled: m,
|
|
68
66
|
children: "New Agent"
|
|
@@ -95,7 +93,7 @@ const I = k(
|
|
|
95
93
|
/* @__PURE__ */ i("div", { className: e.agentHeader, children: [
|
|
96
94
|
/* @__PURE__ */ i("div", { className: e.agentInfo, children: [
|
|
97
95
|
/* @__PURE__ */ a("h3", { className: e.agentName, children: t.name }),
|
|
98
|
-
/* @__PURE__ */ a(
|
|
96
|
+
/* @__PURE__ */ a(S, { variant: A(t.status), size: "sm", children: x(t.status) })
|
|
99
97
|
] }),
|
|
100
98
|
/* @__PURE__ */ i("div", { className: e.agentActions, children: [
|
|
101
99
|
/* @__PURE__ */ a(
|
|
@@ -105,7 +103,7 @@ const I = k(
|
|
|
105
103
|
onClick: (s) => b(t.id, s),
|
|
106
104
|
"aria-label": "Edit agent",
|
|
107
105
|
title: "Edit agent",
|
|
108
|
-
children: /* @__PURE__ */ a(
|
|
106
|
+
children: /* @__PURE__ */ a(D, { size: 18 })
|
|
109
107
|
}
|
|
110
108
|
),
|
|
111
109
|
/* @__PURE__ */ a(
|
|
@@ -118,7 +116,7 @@ const I = k(
|
|
|
118
116
|
onClick: (s) => B(t.id, s),
|
|
119
117
|
"aria-label": "Delete agent",
|
|
120
118
|
title: "Delete agent",
|
|
121
|
-
children: /* @__PURE__ */ a(
|
|
119
|
+
children: /* @__PURE__ */ a(j, { size: 18 })
|
|
122
120
|
}
|
|
123
121
|
)
|
|
124
122
|
] })
|
|
@@ -126,7 +124,7 @@ const I = k(
|
|
|
126
124
|
/* @__PURE__ */ a("p", { className: e.agentDescription, children: t.description }),
|
|
127
125
|
/* @__PURE__ */ i("div", { className: e.agentMeta, children: [
|
|
128
126
|
/* @__PURE__ */ i("div", { className: e.metaItem, children: [
|
|
129
|
-
/* @__PURE__ */ a(
|
|
127
|
+
/* @__PURE__ */ a(z, { size: 14 }),
|
|
130
128
|
/* @__PURE__ */ i("span", { className: e.metaLabel, children: [
|
|
131
129
|
"Updated",
|
|
132
130
|
" ",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),t=require("react"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),t=require("react"),C=require("@orion-ds/react"),r=require("lucide-react"),a=require("./ChatPageTemplate.module.css.cjs"),h=t.forwardRef(({title:j="Chat",messages:d=[],inputPlaceholder:x="Type a message...",onSendMessage:c,participants:u=[],selectedParticipantId:N,onSelectParticipant:p,isTyping:v=!1,isLoading:l=!1,error:m,className:b,...g},y)=>{const[i,o]=t.useState(""),f=t.useRef(null);t.useEffect(()=>{f.current?.scrollIntoView({behavior:"smooth"})},[d]);const n=t.useCallback(()=>{i.trim()&&(c?.(i.trim()),o(""))},[i,c]),S=t.useCallback(s=>{s.key==="Enter"&&!s.shiftKey&&(s.preventDefault(),n())},[n]);return e.jsxs("div",{ref:y,className:[a.default.root,b].filter(Boolean).join(" "),...g,children:[u.length>0&&e.jsxs("div",{className:a.default.sidebar,children:[e.jsx("h3",{className:a.default.sidebarTitle,children:"Participants"}),e.jsx("div",{className:a.default.participantsList,children:u.map(s=>e.jsxs("div",{className:[a.default.participant,N===s.id&&a.default.participantActive].filter(Boolean).join(" "),onClick:()=>p?.(s.id),children:[s.avatar&&e.jsx("img",{src:s.avatar,alt:s.name,className:a.default.participantAvatar}),e.jsxs("div",{className:a.default.participantInfo,children:[e.jsx("div",{className:a.default.participantName,children:s.name}),s.status&&e.jsx("div",{className:[a.default.participantStatus,a.default[`status${s.status}`]].filter(Boolean).join(" "),children:s.status})]})]},s.id))})]}),e.jsxs("div",{className:a.default.mainArea,children:[e.jsxs("div",{className:a.default.header,children:[e.jsx("h2",{className:a.default.title,children:j}),m&&e.jsx("div",{className:a.default.errorBadge,children:m})]}),e.jsxs("div",{className:a.default.messagesContainer,children:[d.length===0?e.jsxs("div",{className:a.default.emptyState,children:[e.jsx("div",{className:a.default.emptyStateIcon,children:"💬"}),e.jsx("h3",{className:a.default.emptyStateTitle,children:"No messages yet"}),e.jsx("p",{className:a.default.emptyStateText,children:"Start the conversation by sending a message"})]}):e.jsxs(e.Fragment,{children:[d.map(s=>e.jsxs("div",{className:[a.default.messageWrapper,a.default[`message${s.role}`]].filter(Boolean).join(" "),children:[e.jsxs("div",{className:a.default.messageBubble,children:[e.jsx("p",{className:a.default.messageContent,children:s.content}),s.timestamp&&e.jsx("span",{className:a.default.messageTime,children:new Date(s.timestamp).toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"})})]}),s.status&&e.jsxs("span",{className:[a.default.messageStatus,a.default[`status${s.status}`]].filter(Boolean).join(" "),title:s.status,children:[s.status==="sending"&&"⏱",s.status==="sent"&&"✓",s.status==="error"&&"✗"]})]},s.id)),v&&e.jsx("div",{className:[a.default.messageWrapper,a.default.messageAssistant].join(" "),children:e.jsx("div",{className:a.default.messageBubble,children:e.jsxs("div",{className:a.default.typingIndicator,children:[e.jsx("span",{}),e.jsx("span",{}),e.jsx("span",{})]})})})]}),e.jsx("div",{ref:f})]}),e.jsx("div",{className:a.default.inputArea,children:e.jsxs("div",{className:a.default.inputGroup,children:[e.jsx("button",{className:a.default.actionButton,"aria-label":"Attach file",disabled:l,children:e.jsx(r.Paperclip,{size:20})}),e.jsx("textarea",{className:a.default.input,placeholder:x,value:i,onChange:s=>o(s.target.value),onKeyDown:S,disabled:l,rows:1}),e.jsx("button",{className:a.default.actionButton,"aria-label":"Add emoji",disabled:l,children:e.jsx(r.Smile,{size:20})}),e.jsx(C.Button,{variant:"primary",iconOnly:!0,icon:e.jsx(r.Send,{size:20}),onClick:n,disabled:!i.trim()||l,isLoading:l,"aria-label":"Send message"})]})})]})]})});h.displayName="ChatPageTemplate";exports.ChatPageTemplate=h;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsxs as s, jsx as t, Fragment as j } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef as C, useState as T, useRef as A, useEffect as w, useCallback as u } from "react";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
3
|
+
import { Button as x } from "@orion-ds/react";
|
|
4
|
+
import { Paperclip as I, Smile as k, Send as D } from "lucide-react";
|
|
5
5
|
import e from "./ChatPageTemplate.module.css.mjs";
|
|
6
6
|
const P = C(
|
|
7
7
|
({
|
|
@@ -143,7 +143,7 @@ const P = C(
|
|
|
143
143
|
className: e.actionButton,
|
|
144
144
|
"aria-label": "Attach file",
|
|
145
145
|
disabled: i,
|
|
146
|
-
children: /* @__PURE__ */ t(
|
|
146
|
+
children: /* @__PURE__ */ t(I, { size: 20 })
|
|
147
147
|
}
|
|
148
148
|
),
|
|
149
149
|
/* @__PURE__ */ t(
|
|
@@ -164,15 +164,15 @@ const P = C(
|
|
|
164
164
|
className: e.actionButton,
|
|
165
165
|
"aria-label": "Add emoji",
|
|
166
166
|
disabled: i,
|
|
167
|
-
children: /* @__PURE__ */ t(
|
|
167
|
+
children: /* @__PURE__ */ t(k, { size: 20 })
|
|
168
168
|
}
|
|
169
169
|
),
|
|
170
170
|
/* @__PURE__ */ t(
|
|
171
|
-
|
|
171
|
+
x,
|
|
172
172
|
{
|
|
173
173
|
variant: "primary",
|
|
174
174
|
iconOnly: !0,
|
|
175
|
-
icon: /* @__PURE__ */ t(
|
|
175
|
+
icon: /* @__PURE__ */ t(D, { size: 20 }),
|
|
176
176
|
onClick: r,
|
|
177
177
|
disabled: !l.trim() || i,
|
|
178
178
|
isLoading: i,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),m=require("react"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),m=require("react"),l=require("@orion-ds/react"),i=require("lucide-react"),a=require("./DashboardTemplate.module.css.cjs");function x({metric:s}){return e.jsx(l.Card,{className:a.default.metricCard,children:e.jsxs(l.Card.Body,{className:a.default.metricBody,children:[e.jsxs("div",{className:a.default.metricHeader,children:[e.jsx("div",{className:a.default.metricLabel,children:s.label}),s.icon&&e.jsx("div",{className:a.default.metricIcon,children:s.icon})]}),e.jsx("div",{className:a.default.metricValue,children:s.value}),s.change!==void 0&&e.jsxs("div",{className:a.default.metricChange,children:[s.trend==="up"&&e.jsxs(e.Fragment,{children:[e.jsx(i.TrendingUp,{size:16}),e.jsxs("span",{className:a.default.changeUp,children:["+",s.change,"%"]})]}),s.trend==="down"&&e.jsxs(e.Fragment,{children:[e.jsx(i.TrendingDown,{size:16}),e.jsxs("span",{className:a.default.changeDown,children:[s.change,"%"]})]}),s.trend==="neutral"&&e.jsxs("span",{className:a.default.changeNeutral,children:[s.change,"%"]})]})]})})}function f({item:s}){return e.jsxs("div",{className:a.default.activityItem,children:[e.jsx("div",{className:[a.default.activityDot,a.default[`type${s.type}`]].filter(Boolean).join(" ")}),e.jsxs("div",{className:a.default.activityContent,children:[e.jsx("div",{className:a.default.activityTitle,children:s.title}),s.description&&e.jsx("div",{className:a.default.activityDescription,children:s.description}),e.jsxs("div",{className:a.default.activityTime,children:[e.jsx(i.Clock,{size:14}),new Date(s.timestamp).toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"})]})]})]})}const h=m.forwardRef(({title:s="Dashboard",subtitle:t,metrics:c=[],charts:n=[],activity:r=[],className:o,...u},j)=>e.jsxs("div",{ref:j,className:[a.default.root,o].filter(Boolean).join(" "),...u,children:[e.jsx("div",{className:a.default.header,children:e.jsxs("div",{children:[e.jsx("h1",{className:a.default.title,children:s}),t&&e.jsx("p",{className:a.default.subtitle,children:t})]})}),c.length>0&&e.jsx("div",{className:a.default.metricsGrid,children:c.map(d=>e.jsx(x,{metric:d},d.id))}),e.jsxs("div",{className:a.default.contentGrid,children:[n.length>0&&e.jsx("div",{className:a.default.chartsSection,children:n.map(d=>e.jsxs(l.Card,{className:a.default.chartCard,children:[e.jsxs(l.Card.Header,{children:[e.jsx("h3",{className:a.default.chartTitle,children:d.title}),e.jsx(l.Badge,{variant:"info",size:"sm",children:d.type})]}),e.jsx(l.Card.Body,{className:a.default.chartBody,children:e.jsxs("div",{className:a.default.chartPlaceholder,children:["Chart: ",d.title]})})]},d.id))}),r.length>0&&e.jsxs(l.Card,{className:a.default.activityCard,children:[e.jsx(l.Card.Header,{children:e.jsx("h3",{className:a.default.activityTitle,children:"Recent Activity"})}),e.jsx(l.Card.Body,{className:a.default.activityBody,children:e.jsx("div",{className:a.default.activityList,children:r.map(d=>e.jsx(f,{item:d},d.id))})})]})]})]}));h.displayName="DashboardTemplate";exports.DashboardTemplate=h;
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { jsxs as c, jsx as a, Fragment as h } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef as N } from "react";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import { Card as n } from "../../../../dist/index28.mjs";
|
|
3
|
+
import { Card as n, Badge as p } from "@orion-ds/react";
|
|
4
|
+
import { TrendingUp as y, TrendingDown as g, Clock as f } from "lucide-react";
|
|
6
5
|
import e from "./DashboardTemplate.module.css.mjs";
|
|
7
6
|
function u({ metric: i }) {
|
|
8
7
|
return /* @__PURE__ */ a(n, { className: e.metricCard, children: /* @__PURE__ */ c(n.Body, { className: e.metricBody, children: [
|
|
@@ -13,7 +12,7 @@ function u({ metric: i }) {
|
|
|
13
12
|
/* @__PURE__ */ a("div", { className: e.metricValue, children: i.value }),
|
|
14
13
|
i.change !== void 0 && /* @__PURE__ */ c("div", { className: e.metricChange, children: [
|
|
15
14
|
i.trend === "up" && /* @__PURE__ */ c(h, { children: [
|
|
16
|
-
/* @__PURE__ */ a(
|
|
15
|
+
/* @__PURE__ */ a(y, { size: 16 }),
|
|
17
16
|
/* @__PURE__ */ c("span", { className: e.changeUp, children: [
|
|
18
17
|
"+",
|
|
19
18
|
i.change,
|
|
@@ -21,7 +20,7 @@ function u({ metric: i }) {
|
|
|
21
20
|
] })
|
|
22
21
|
] }),
|
|
23
22
|
i.trend === "down" && /* @__PURE__ */ c(h, { children: [
|
|
24
|
-
/* @__PURE__ */ a(
|
|
23
|
+
/* @__PURE__ */ a(g, { size: 16 }),
|
|
25
24
|
/* @__PURE__ */ c("span", { className: e.changeDown, children: [
|
|
26
25
|
i.change,
|
|
27
26
|
"%"
|
|
@@ -46,7 +45,7 @@ function C({ item: i }) {
|
|
|
46
45
|
/* @__PURE__ */ a("div", { className: e.activityTitle, children: i.title }),
|
|
47
46
|
i.description && /* @__PURE__ */ a("div", { className: e.activityDescription, children: i.description }),
|
|
48
47
|
/* @__PURE__ */ c("div", { className: e.activityTime, children: [
|
|
49
|
-
/* @__PURE__ */ a(
|
|
48
|
+
/* @__PURE__ */ a(f, { size: 14 }),
|
|
50
49
|
new Date(i.timestamp).toLocaleTimeString([], {
|
|
51
50
|
hour: "2-digit",
|
|
52
51
|
minute: "2-digit"
|
|
@@ -80,7 +79,7 @@ const B = N(
|
|
|
80
79
|
s.length > 0 && /* @__PURE__ */ a("div", { className: e.chartsSection, children: s.map((l) => /* @__PURE__ */ c(n, { className: e.chartCard, children: [
|
|
81
80
|
/* @__PURE__ */ c(n.Header, { children: [
|
|
82
81
|
/* @__PURE__ */ a("h3", { className: e.chartTitle, children: l.title }),
|
|
83
|
-
/* @__PURE__ */ a(
|
|
82
|
+
/* @__PURE__ */ a(p, { variant: "info", size: "sm", children: l.type })
|
|
84
83
|
] }),
|
|
85
84
|
/* @__PURE__ */ a(n.Body, { className: e.chartBody, children: /* @__PURE__ */ c("div", { className: e.chartPlaceholder, children: [
|
|
86
85
|
"Chart: ",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),m=require("react"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),m=require("react"),h=require("@orion-ds/react"),n=require("lucide-react"),a=require("./KanbanPageTemplate.module.css.cjs");function y(s){switch(s){case"high":return"error";case"medium":return"warning";case"low":return"success";default:return"info"}}function T({task:s,onEdit:t,onDelete:d}){return e.jsxs("div",{className:a.default.taskCard,children:[e.jsxs("div",{className:a.default.taskHeader,children:[e.jsx("h4",{className:a.default.taskTitle,children:s.title}),e.jsxs("div",{className:a.default.taskActions,children:[e.jsx("button",{className:a.default.taskActionButton,onClick:()=>t?.(s.id),"aria-label":"Edit task",children:e.jsx(n.Edit2,{size:16})}),e.jsx("button",{className:[a.default.taskActionButton,a.default.taskActionButtonDanger].filter(Boolean).join(" "),onClick:()=>d?.(s.id),"aria-label":"Delete task",children:e.jsx(n.Trash2,{size:16})})]})]}),s.description&&e.jsx("p",{className:a.default.taskDescription,children:s.description}),e.jsxs("div",{className:a.default.taskMeta,children:[s.priority&&e.jsx(h.Badge,{variant:y(s.priority),size:"sm",children:s.priority}),s.dueDate&&e.jsxs("div",{className:a.default.dueDateBadge,children:[e.jsx(n.Calendar,{size:12}),new Date(s.dueDate).toLocaleDateString()]})]}),s.labels&&s.labels.length>0&&e.jsx("div",{className:a.default.labels,children:s.labels.map(r=>e.jsx("span",{className:a.default.label,children:r},r))}),s.assignee&&e.jsxs("div",{className:a.default.assignee,children:[s.assignee.avatar&&e.jsx("img",{src:s.assignee.avatar,alt:s.assignee.name,className:a.default.assigneeAvatar}),e.jsx("span",{className:a.default.assigneeName,children:s.assignee.name})]})]})}const f=m.forwardRef(({title:s="Kanban Board",columns:t=[],tasks:d=[],onTaskMove:r,onCreateTask:j,onEditTask:x,onDeleteTask:u,isLoading:N=!1,error:o,className:g,...p},v)=>{const b=m.useCallback(l=>{window.confirm("Are you sure you want to delete this task?")&&u?.(l)},[u]);return e.jsxs("div",{ref:v,className:[a.default.root,g].filter(Boolean).join(" "),...p,children:[e.jsxs("div",{className:a.default.header,children:[e.jsx("h1",{className:a.default.title,children:s}),o&&e.jsx("div",{className:a.default.error,children:o})]}),e.jsx("div",{className:a.default.board,children:t.length===0?e.jsx("div",{className:a.default.emptyState,children:e.jsx("p",{className:a.default.emptyStateText,children:"No columns configured"})}):t.map(l=>{const c=d.filter(i=>i.columnId===l.id);return e.jsxs("div",{className:a.default.column,children:[e.jsxs("div",{className:a.default.columnHeader,children:[e.jsxs("div",{children:[e.jsx("h3",{className:a.default.columnTitle,children:l.title}),e.jsx("span",{className:a.default.columnCount,children:c.length})]}),e.jsx(h.Button,{variant:"ghost",iconOnly:!0,icon:e.jsx(n.Plus,{size:18}),onClick:()=>j?.(l.id),disabled:N,"aria-label":"Add task"})]}),e.jsx("div",{className:a.default.tasks,children:c.length===0?e.jsx("div",{className:a.default.emptyColumn,children:e.jsx("p",{className:a.default.emptyColumnText,children:"No tasks"})}):c.map(i=>e.jsx(T,{task:i,onEdit:x,onDelete:b},i.id))})]},l.id)})})]})});f.displayName="KanbanPageTemplate";exports.KanbanPageTemplate=f;
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { jsxs as s, jsx as a } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef as b, useCallback as y } from "react";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import { Button as A } from "../../../../dist/index26.mjs";
|
|
3
|
+
import { Button as C, Badge as T } from "@orion-ds/react";
|
|
4
|
+
import { Plus as B, Edit2 as D, Trash2 as w, Calendar as A } from "lucide-react";
|
|
6
5
|
import e from "./KanbanPageTemplate.module.css.mjs";
|
|
7
6
|
function x(i) {
|
|
8
7
|
switch (i) {
|
|
@@ -31,7 +30,7 @@ function z({
|
|
|
31
30
|
className: e.taskActionButton,
|
|
32
31
|
onClick: () => n?.(i.id),
|
|
33
32
|
"aria-label": "Edit task",
|
|
34
|
-
children: /* @__PURE__ */ a(
|
|
33
|
+
children: /* @__PURE__ */ a(D, { size: 16 })
|
|
35
34
|
}
|
|
36
35
|
),
|
|
37
36
|
/* @__PURE__ */ a(
|
|
@@ -40,16 +39,16 @@ function z({
|
|
|
40
39
|
className: [e.taskActionButton, e.taskActionButtonDanger].filter(Boolean).join(" "),
|
|
41
40
|
onClick: () => t?.(i.id),
|
|
42
41
|
"aria-label": "Delete task",
|
|
43
|
-
children: /* @__PURE__ */ a(
|
|
42
|
+
children: /* @__PURE__ */ a(w, { size: 16 })
|
|
44
43
|
}
|
|
45
44
|
)
|
|
46
45
|
] })
|
|
47
46
|
] }),
|
|
48
47
|
i.description && /* @__PURE__ */ a("p", { className: e.taskDescription, children: i.description }),
|
|
49
48
|
/* @__PURE__ */ s("div", { className: e.taskMeta, children: [
|
|
50
|
-
i.priority && /* @__PURE__ */ a(
|
|
49
|
+
i.priority && /* @__PURE__ */ a(T, { variant: x(i.priority), size: "sm", children: i.priority }),
|
|
51
50
|
i.dueDate && /* @__PURE__ */ s("div", { className: e.dueDateBadge, children: [
|
|
52
|
-
/* @__PURE__ */ a(
|
|
51
|
+
/* @__PURE__ */ a(A, { size: 12 }),
|
|
53
52
|
new Date(i.dueDate).toLocaleDateString()
|
|
54
53
|
] })
|
|
55
54
|
] }),
|
|
@@ -109,11 +108,11 @@ const j = b(
|
|
|
109
108
|
/* @__PURE__ */ a("span", { className: e.columnCount, children: d.length })
|
|
110
109
|
] }),
|
|
111
110
|
/* @__PURE__ */ a(
|
|
112
|
-
|
|
111
|
+
C,
|
|
113
112
|
{
|
|
114
113
|
variant: "ghost",
|
|
115
114
|
iconOnly: !0,
|
|
116
|
-
icon: /* @__PURE__ */ a(
|
|
115
|
+
icon: /* @__PURE__ */ a(B, { size: 18 }),
|
|
117
116
|
onClick: () => h?.(l.id),
|
|
118
117
|
disabled: N,
|
|
119
118
|
"aria-label": "Add task"
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),t=require("react"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),t=require("react"),i=require("@orion-ds/react"),x=require("lucide-react"),a=require("./LoginTemplate.module.css.cjs"),b=t.forwardRef(({title:j="Sign in",subtitle:n="Welcome back",logo:u,onSubmit:m,isLoading:s=!1,error:h,successMessage:p,onSignupClick:f,onForgotPasswordClick:N,className:w,...v},y)=>{const[d,S]=t.useState(""),[r,k]=t.useState(""),[c,C]=t.useState(!1),[o,g]=t.useState(!1),q=t.useCallback(l=>{l.preventDefault(),m?.(d,r,o)},[d,r,o,m]),R=!d.trim()||!r.trim()||s;return e.jsx("div",{ref:y,className:[a.default.root,w].filter(Boolean).join(" "),...v,children:e.jsx(i.Card,{className:a.default.card,children:e.jsxs(i.Card.Body,{className:a.default.body,children:[u&&e.jsx("div",{className:a.default.logo,children:u}),e.jsxs("div",{className:a.default.header,children:[e.jsx("h1",{className:a.default.title,children:j}),n&&e.jsx("p",{className:a.default.subtitle,children:n})]}),h&&e.jsx("div",{className:a.default.error,children:h}),p&&e.jsx("div",{className:a.default.success,children:p}),e.jsxs("form",{onSubmit:q,className:a.default.form,children:[e.jsx("div",{className:a.default.formGroup,children:e.jsx(i.Field,{label:"Email address",type:"email",placeholder:"you@example.com",value:d,onChange:l=>S(l.target.value),disabled:s,autoComplete:"email",required:!0})}),e.jsxs("div",{className:a.default.formGroup,children:[e.jsxs("div",{className:a.default.passwordLabel,children:[e.jsx("label",{className:a.default.label,children:"Password"}),e.jsx("button",{type:"button",className:a.default.showPasswordButton,onClick:()=>C(!c),"aria-label":c?"Hide password":"Show password",disabled:s,children:c?e.jsx(x.EyeOff,{size:18}):e.jsx(x.Eye,{size:18})})]}),e.jsx("input",{type:c?"text":"password",className:a.default.input,placeholder:"••••••••",value:r,onChange:l=>k(l.target.value),disabled:s,autoComplete:"current-password",required:!0})]}),e.jsxs("div",{className:a.default.optionsRow,children:[e.jsxs("label",{className:a.default.checkbox,children:[e.jsx("input",{type:"checkbox",checked:o,onChange:l=>g(l.target.checked),disabled:s}),e.jsx("span",{children:"Remember me"})]}),e.jsx("button",{type:"button",className:a.default.link,onClick:N,disabled:s,children:"Forgot password?"})]}),e.jsx(i.Button,{type:"submit",variant:"primary",fullWidth:!0,isLoading:s,disabled:R,children:"Sign in"})]}),f&&e.jsxs("p",{className:a.default.signupText,children:["Don't have an account?"," ",e.jsx("button",{type:"button",className:a.default.link,onClick:f,disabled:s,children:"Sign up"})]})]})})})});b.displayName="LoginTemplate";exports.LoginTemplate=b;
|
|
@@ -1,96 +1,94 @@
|
|
|
1
|
-
import { jsx as a, jsxs as
|
|
2
|
-
import { forwardRef as
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import { Card as N } from "../../../../dist/index28.mjs";
|
|
6
|
-
import { Field as q } from "../../../../dist/index50.mjs";
|
|
1
|
+
import { jsx as a, jsxs as s } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as E, useState as d, useCallback as R } from "react";
|
|
3
|
+
import { Card as N, Field as j, Button as D } from "@orion-ds/react";
|
|
4
|
+
import { EyeOff as T, Eye as q } from "lucide-react";
|
|
7
5
|
import e from "./LoginTemplate.module.css.mjs";
|
|
8
|
-
const z =
|
|
6
|
+
const z = E(
|
|
9
7
|
({
|
|
10
8
|
title: f = "Sign in",
|
|
11
|
-
subtitle:
|
|
12
|
-
logo:
|
|
13
|
-
onSubmit:
|
|
14
|
-
isLoading:
|
|
15
|
-
error:
|
|
9
|
+
subtitle: n = "Welcome back",
|
|
10
|
+
logo: m,
|
|
11
|
+
onSubmit: h,
|
|
12
|
+
isLoading: l = !1,
|
|
13
|
+
error: p,
|
|
16
14
|
successMessage: u,
|
|
17
15
|
onSignupClick: b,
|
|
18
16
|
onForgotPasswordClick: w,
|
|
19
17
|
className: v,
|
|
20
18
|
...y
|
|
21
19
|
}, k) => {
|
|
22
|
-
const [t,
|
|
20
|
+
const [t, C] = d(""), [o, x] = d(""), [c, S] = d(!1), [i, P] = d(!1), g = R(
|
|
23
21
|
(r) => {
|
|
24
|
-
r.preventDefault(),
|
|
22
|
+
r.preventDefault(), h?.(t, o, i);
|
|
25
23
|
},
|
|
26
|
-
[t, o,
|
|
27
|
-
),
|
|
24
|
+
[t, o, i, h]
|
|
25
|
+
), B = !t.trim() || !o.trim() || l;
|
|
28
26
|
return /* @__PURE__ */ a(
|
|
29
27
|
"div",
|
|
30
28
|
{
|
|
31
29
|
ref: k,
|
|
32
30
|
className: [e.root, v].filter(Boolean).join(" "),
|
|
33
31
|
...y,
|
|
34
|
-
children: /* @__PURE__ */ a(N, { className: e.card, children: /* @__PURE__ */
|
|
35
|
-
|
|
36
|
-
/* @__PURE__ */
|
|
32
|
+
children: /* @__PURE__ */ a(N, { className: e.card, children: /* @__PURE__ */ s(N.Body, { className: e.body, children: [
|
|
33
|
+
m && /* @__PURE__ */ a("div", { className: e.logo, children: m }),
|
|
34
|
+
/* @__PURE__ */ s("div", { className: e.header, children: [
|
|
37
35
|
/* @__PURE__ */ a("h1", { className: e.title, children: f }),
|
|
38
|
-
|
|
36
|
+
n && /* @__PURE__ */ a("p", { className: e.subtitle, children: n })
|
|
39
37
|
] }),
|
|
40
|
-
|
|
38
|
+
p && /* @__PURE__ */ a("div", { className: e.error, children: p }),
|
|
41
39
|
u && /* @__PURE__ */ a("div", { className: e.success, children: u }),
|
|
42
|
-
/* @__PURE__ */
|
|
40
|
+
/* @__PURE__ */ s("form", { onSubmit: g, className: e.form, children: [
|
|
43
41
|
/* @__PURE__ */ a("div", { className: e.formGroup, children: /* @__PURE__ */ a(
|
|
44
|
-
|
|
42
|
+
j,
|
|
45
43
|
{
|
|
46
44
|
label: "Email address",
|
|
47
45
|
type: "email",
|
|
48
46
|
placeholder: "you@example.com",
|
|
49
47
|
value: t,
|
|
50
|
-
onChange: (r) =>
|
|
51
|
-
disabled:
|
|
48
|
+
onChange: (r) => C(r.target.value),
|
|
49
|
+
disabled: l,
|
|
52
50
|
autoComplete: "email",
|
|
53
51
|
required: !0
|
|
54
52
|
}
|
|
55
53
|
) }),
|
|
56
|
-
/* @__PURE__ */
|
|
57
|
-
/* @__PURE__ */
|
|
54
|
+
/* @__PURE__ */ s("div", { className: e.formGroup, children: [
|
|
55
|
+
/* @__PURE__ */ s("div", { className: e.passwordLabel, children: [
|
|
58
56
|
/* @__PURE__ */ a("label", { className: e.label, children: "Password" }),
|
|
59
57
|
/* @__PURE__ */ a(
|
|
60
58
|
"button",
|
|
61
59
|
{
|
|
62
60
|
type: "button",
|
|
63
61
|
className: e.showPasswordButton,
|
|
64
|
-
onClick: () => S(!
|
|
65
|
-
"aria-label":
|
|
66
|
-
disabled:
|
|
67
|
-
children:
|
|
62
|
+
onClick: () => S(!c),
|
|
63
|
+
"aria-label": c ? "Hide password" : "Show password",
|
|
64
|
+
disabled: l,
|
|
65
|
+
children: c ? /* @__PURE__ */ a(T, { size: 18 }) : /* @__PURE__ */ a(q, { size: 18 })
|
|
68
66
|
}
|
|
69
67
|
)
|
|
70
68
|
] }),
|
|
71
69
|
/* @__PURE__ */ a(
|
|
72
70
|
"input",
|
|
73
71
|
{
|
|
74
|
-
type:
|
|
72
|
+
type: c ? "text" : "password",
|
|
75
73
|
className: e.input,
|
|
76
74
|
placeholder: "••••••••",
|
|
77
75
|
value: o,
|
|
78
|
-
onChange: (r) =>
|
|
79
|
-
disabled:
|
|
76
|
+
onChange: (r) => x(r.target.value),
|
|
77
|
+
disabled: l,
|
|
80
78
|
autoComplete: "current-password",
|
|
81
79
|
required: !0
|
|
82
80
|
}
|
|
83
81
|
)
|
|
84
82
|
] }),
|
|
85
|
-
/* @__PURE__ */
|
|
86
|
-
/* @__PURE__ */
|
|
83
|
+
/* @__PURE__ */ s("div", { className: e.optionsRow, children: [
|
|
84
|
+
/* @__PURE__ */ s("label", { className: e.checkbox, children: [
|
|
87
85
|
/* @__PURE__ */ a(
|
|
88
86
|
"input",
|
|
89
87
|
{
|
|
90
88
|
type: "checkbox",
|
|
91
|
-
checked:
|
|
89
|
+
checked: i,
|
|
92
90
|
onChange: (r) => P(r.target.checked),
|
|
93
|
-
disabled:
|
|
91
|
+
disabled: l
|
|
94
92
|
}
|
|
95
93
|
),
|
|
96
94
|
/* @__PURE__ */ a("span", { children: "Remember me" })
|
|
@@ -101,24 +99,24 @@ const z = B(
|
|
|
101
99
|
type: "button",
|
|
102
100
|
className: e.link,
|
|
103
101
|
onClick: w,
|
|
104
|
-
disabled:
|
|
102
|
+
disabled: l,
|
|
105
103
|
children: "Forgot password?"
|
|
106
104
|
}
|
|
107
105
|
)
|
|
108
106
|
] }),
|
|
109
107
|
/* @__PURE__ */ a(
|
|
110
|
-
|
|
108
|
+
D,
|
|
111
109
|
{
|
|
112
110
|
type: "submit",
|
|
113
111
|
variant: "primary",
|
|
114
112
|
fullWidth: !0,
|
|
115
|
-
isLoading:
|
|
116
|
-
disabled:
|
|
113
|
+
isLoading: l,
|
|
114
|
+
disabled: B,
|
|
117
115
|
children: "Sign in"
|
|
118
116
|
}
|
|
119
117
|
)
|
|
120
118
|
] }),
|
|
121
|
-
b && /* @__PURE__ */
|
|
119
|
+
b && /* @__PURE__ */ s("p", { className: e.signupText, children: [
|
|
122
120
|
"Don't have an account?",
|
|
123
121
|
" ",
|
|
124
122
|
/* @__PURE__ */ a(
|
|
@@ -127,7 +125,7 @@ const z = B(
|
|
|
127
125
|
type: "button",
|
|
128
126
|
className: e.link,
|
|
129
127
|
onClick: b,
|
|
130
|
-
disabled:
|
|
128
|
+
disabled: l,
|
|
131
129
|
children: "Sign up"
|
|
132
130
|
}
|
|
133
131
|
)
|