@tulipfarm/sprout 0.3.0 → 0.4.0
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/README.md +45 -40
- package/dist/components/accordion.d.ts +2 -2
- package/dist/components/accordion.js +9 -9
- package/dist/components/agent-fanout.d.ts +2 -2
- package/dist/components/agent-fanout.js +65 -87
- package/dist/components/alert-dialog.d.ts +6 -6
- package/dist/components/alert-dialog.js +20 -20
- package/dist/components/alert.d.ts +6 -6
- package/dist/components/alert.js +13 -13
- package/dist/components/aspect-ratio.d.ts +2 -2
- package/dist/components/aspect-ratio.js +2 -2
- package/dist/components/attachment.d.ts +17 -17
- package/dist/components/attachment.js +82 -115
- package/dist/components/avatar.d.ts +10 -10
- package/dist/components/avatar.js +14 -14
- package/dist/components/badge.d.ts +4 -4
- package/dist/components/badge.js +18 -18
- package/dist/components/board.d.ts +107 -0
- package/dist/components/board.js +640 -0
- package/dist/components/brand-icon.d.ts +6 -6
- package/dist/components/brand-icon.js +55 -63
- package/dist/components/breadcrumb.d.ts +11 -11
- package/dist/components/breadcrumb.js +16 -18
- package/dist/components/button-group.d.ts +6 -6
- package/dist/components/button-group.js +14 -14
- package/dist/components/button.d.ts +11 -11
- package/dist/components/button.js +46 -56
- package/dist/components/calendar.d.ts +5 -5
- package/dist/components/calendar.js +44 -53
- package/dist/components/canvas.d.ts +4 -4
- package/dist/components/canvas.js +39 -46
- package/dist/components/card.d.ts +6 -6
- package/dist/components/card.js +17 -17
- package/dist/components/carousel.d.ts +7 -7
- package/dist/components/carousel.js +57 -75
- package/dist/components/chart.d.ts +5 -112
- package/dist/components/chart.js +5 -172
- package/dist/components/chat-confirmation.d.ts +13 -11
- package/dist/components/chat-confirmation.js +32 -38
- package/dist/components/chat-input.d.ts +4 -4
- package/dist/components/chat-input.js +74 -81
- package/dist/components/chat-plan.d.ts +2 -2
- package/dist/components/chat-plan.js +15 -20
- package/dist/components/chat-sources.d.ts +8 -8
- package/dist/components/chat-sources.js +18 -27
- package/dist/components/checkbox.d.ts +1 -1
- package/dist/components/checkbox.js +9 -9
- package/dist/components/choice-list.d.ts +2 -2
- package/dist/components/choice-list.js +16 -18
- package/dist/components/code-block.d.ts +5 -5
- package/dist/components/code-block.js +26 -26
- package/dist/components/collapsible.d.ts +1 -1
- package/dist/components/collapsible.js +7 -11
- package/dist/components/combobox.d.ts +3 -3
- package/dist/components/combobox.js +24 -24
- package/dist/components/command.d.ts +13 -13
- package/dist/components/command.js +61 -73
- package/dist/components/context-menu.d.ts +5 -5
- package/dist/components/context-menu.js +22 -22
- package/dist/components/dialog.d.ts +6 -6
- package/dist/components/dialog.js +23 -28
- package/dist/components/direction.d.ts +1 -1
- package/dist/components/direction.js +1 -1
- package/dist/components/dropdown-menu.d.ts +5 -5
- package/dist/components/dropdown-menu.js +20 -20
- package/dist/components/field.d.ts +11 -11
- package/dist/components/field.js +41 -61
- package/dist/components/file-explorer.d.ts +2 -2
- package/dist/components/file-explorer.js +89 -105
- package/dist/components/file-viewer.d.ts +10 -10
- package/dist/components/file-viewer.js +112 -140
- package/dist/components/form.d.ts +7 -7
- package/dist/components/form.js +24 -28
- package/dist/components/glass-banner.d.ts +3 -3
- package/dist/components/glass-banner.js +21 -24
- package/dist/components/gradient-banner.d.ts +5 -5
- package/dist/components/gradient-banner.js +13 -22
- package/dist/components/hover-card.d.ts +4 -4
- package/dist/components/hover-card.js +6 -6
- package/dist/components/input-group.d.ts +11 -11
- package/dist/components/input-group.js +22 -36
- package/dist/components/input-otp.d.ts +10 -10
- package/dist/components/input-otp.js +13 -15
- package/dist/components/input.d.ts +1 -1
- package/dist/components/input.js +7 -7
- package/dist/components/kbd.d.ts +3 -3
- package/dist/components/kbd.js +5 -5
- package/dist/components/label.d.ts +2 -2
- package/dist/components/label.js +2 -2
- package/dist/components/mention-list.d.ts +3 -3
- package/dist/components/mention-list.js +10 -10
- package/dist/components/menubar.d.ts +6 -6
- package/dist/components/menubar.js +22 -22
- package/dist/components/message-actions.d.ts +2 -2
- package/dist/components/message-actions.js +29 -31
- package/dist/components/message-response.d.ts +3 -3
- package/dist/components/message-response.js +18 -18
- package/dist/components/message-scroller.d.ts +12 -12
- package/dist/components/message-scroller.js +44 -56
- package/dist/components/message.d.ts +11 -11
- package/dist/components/message.js +25 -25
- package/dist/components/navigation-menu.d.ts +2 -2
- package/dist/components/navigation-menu.js +15 -15
- package/dist/components/notice-banner.d.ts +2 -2
- package/dist/components/notice-banner.js +2 -2
- package/dist/components/page-content.d.ts +2 -2
- package/dist/components/page-content.js +2 -2
- package/dist/components/page-header.d.ts +1 -1
- package/dist/components/page-header.js +16 -16
- package/dist/components/pagination.d.ts +9 -9
- package/dist/components/pagination.js +17 -17
- package/dist/components/plan-outline.d.ts +2 -2
- package/dist/components/plan-outline.js +43 -60
- package/dist/components/popover.d.ts +6 -6
- package/dist/components/popover.js +15 -15
- package/dist/components/presence-cursor.d.ts +2 -2
- package/dist/components/presence-cursor.js +3 -3
- package/dist/components/progress.d.ts +1 -1
- package/dist/components/progress.js +8 -8
- package/dist/components/prompt-list.d.ts +3 -3
- package/dist/components/prompt-list.js +6 -6
- package/dist/components/questionnaire.d.ts +19 -19
- package/dist/components/questionnaire.js +183 -242
- package/dist/components/radio-group.d.ts +2 -2
- package/dist/components/radio-group.js +6 -6
- package/dist/components/reasoning-effort.d.ts +3 -3
- package/dist/components/reasoning-effort.js +9 -12
- package/dist/components/record-list.d.ts +66 -0
- package/dist/components/record-list.js +151 -0
- package/dist/components/resizable.d.ts +5 -5
- package/dist/components/resizable.js +76 -102
- package/dist/components/result-card.d.ts +10 -5
- package/dist/components/result-card.js +42 -53
- package/dist/components/result-notice.d.ts +18 -0
- package/dist/components/result-notice.js +29 -0
- package/dist/components/review-card.d.ts +6 -6
- package/dist/components/review-card.js +18 -18
- package/dist/components/rich-text-editor.d.ts +2 -2
- package/dist/components/rich-text-editor.js +56 -72
- package/dist/components/schema-diagram.d.ts +3 -3
- package/dist/components/schema-diagram.js +39 -53
- package/dist/components/scroll-area.d.ts +1 -1
- package/dist/components/scroll-area.js +10 -14
- package/dist/components/search-dialog.d.ts +6 -6
- package/dist/components/search-dialog.js +16 -16
- package/dist/components/search-field.d.ts +1 -1
- package/dist/components/search-field.js +11 -11
- package/dist/components/select.d.ts +3 -3
- package/dist/components/select.js +20 -20
- package/dist/components/selection-slot.d.ts +2 -2
- package/dist/components/selection-slot.js +6 -9
- package/dist/components/separator.d.ts +15 -15
- package/dist/components/separator.js +22 -27
- package/dist/components/settings-list.d.ts +3 -3
- package/dist/components/settings-list.js +5 -5
- package/dist/components/sheet.d.ts +6 -6
- package/dist/components/sheet.js +27 -27
- package/dist/components/sidebar.d.ts +22 -22
- package/dist/components/sidebar.js +57 -58
- package/dist/components/skeleton.d.ts +5 -5
- package/dist/components/skeleton.js +14 -21
- package/dist/components/slider.d.ts +2 -2
- package/dist/components/slider.js +6 -6
- package/dist/components/spinner.d.ts +5 -5
- package/dist/components/spinner.js +22 -26
- package/dist/components/sql-viewer.d.ts +14 -14
- package/dist/components/sql-viewer.js +99 -128
- package/dist/components/state-panel-samples.d.ts +2 -2
- package/dist/components/state-panel-samples.js +209 -245
- package/dist/components/state-panel.d.ts +2 -35
- package/dist/components/state-panel.js +2 -29
- package/dist/components/state-sample.d.ts +7 -7
- package/dist/components/state-sample.js +18 -31
- package/dist/components/switch.d.ts +1 -1
- package/dist/components/switch.js +7 -7
- package/dist/components/table-nuqs.d.ts +2 -2
- package/dist/components/table-nuqs.js +11 -12
- package/dist/components/table.d.ts +4 -4
- package/dist/components/table.js +166 -235
- package/dist/components/tabs.d.ts +2 -2
- package/dist/components/tabs.js +12 -12
- package/dist/components/textarea.d.ts +2 -2
- package/dist/components/textarea.js +6 -8
- package/dist/components/timeline.d.ts +3 -0
- package/dist/components/timeline.js +3 -0
- package/dist/components/toast.d.ts +2 -2
- package/dist/components/toast.js +19 -25
- package/dist/components/toggle-group.d.ts +2 -2
- package/dist/components/toggle-group.js +18 -20
- package/dist/components/toggle.d.ts +2 -2
- package/dist/components/toggle.js +8 -8
- package/dist/components/tool-activity.d.ts +1 -1
- package/dist/components/tool-activity.js +83 -110
- package/dist/components/toolbar-status.d.ts +2 -2
- package/dist/components/toolbar-status.js +7 -7
- package/dist/components/tooltip.d.ts +5 -5
- package/dist/components/tooltip.js +12 -11
- package/dist/components/typed-text.d.ts +2 -2
- package/dist/components/typed-text.js +10 -12
- package/dist/components/view-switcher.d.ts +51 -0
- package/dist/components/view-switcher.js +114 -0
- package/dist/index.d.ts +98 -93
- package/dist/index.js +98 -93
- package/dist/internal/chart-kit.d.ts +142 -0
- package/dist/internal/chart-kit.js +200 -0
- package/dist/internal/charts/bars.d.ts +61 -0
- package/dist/internal/charts/bars.js +86 -0
- package/dist/internal/charts/lines.d.ts +67 -0
- package/dist/internal/charts/lines.js +70 -0
- package/dist/internal/charts/more.d.ts +77 -0
- package/dist/internal/charts/more.js +68 -0
- package/dist/internal/charts/parts.d.ts +54 -0
- package/dist/internal/charts/parts.js +82 -0
- package/dist/internal/charts/timeline-dates.d.ts +38 -0
- package/dist/internal/charts/timeline-dates.js +113 -0
- package/dist/internal/charts/timeline-window.d.ts +31 -0
- package/dist/internal/charts/timeline-window.js +26 -0
- package/dist/internal/charts/timeline.d.ts +72 -0
- package/dist/internal/charts/timeline.js +287 -0
- package/dist/internal/classes.d.ts +1 -1
- package/dist/internal/classes.js +7 -9
- package/dist/internal/code-tokens.d.ts +2 -2
- package/dist/internal/code-tokens.js +12 -12
- package/dist/internal/fieldset.d.ts +1 -1
- package/dist/internal/fieldset.js +6 -6
- package/dist/internal/file-kind.d.ts +1 -1
- package/dist/internal/file-kind.js +43 -51
- package/dist/internal/flow.d.ts +4 -4
- package/dist/internal/flow.js +20 -23
- package/dist/internal/languages.js +999 -999
- package/dist/internal/message-scroller.d.ts +3 -3
- package/dist/internal/message-scroller.js +64 -112
- package/dist/internal/pressable.d.ts +1 -1
- package/dist/internal/pressable.js +7 -7
- package/dist/internal/state-panel.d.ts +35 -0
- package/dist/internal/state-panel.js +22 -0
- package/dist/internal/syntax.d.ts +2 -2
- package/dist/internal/syntax.js +36 -47
- package/dist/styles/accordion.css +3 -5
- package/dist/styles/agent-fanout.css +64 -60
- package/dist/styles/alert-dialog.css +12 -26
- package/dist/styles/alert.css +10 -15
- package/dist/styles/attachment.css +51 -93
- package/dist/styles/avatar.css +17 -24
- package/dist/styles/badge.css +11 -36
- package/dist/styles/board.css +571 -0
- package/dist/styles/brand-icon.css +7 -8
- package/dist/styles/breadcrumb.css +4 -7
- package/dist/styles/button-group.css +8 -14
- package/dist/styles/button.css +22 -27
- package/dist/styles/calendar.css +24 -36
- package/dist/styles/canvas.css +2 -3
- package/dist/styles/card.css +7 -23
- package/dist/styles/carousel.css +11 -12
- package/dist/styles/chart.css +215 -31
- package/dist/styles/chat-input.css +15 -39
- package/dist/styles/chat-plan.css +3 -4
- package/dist/styles/chat-sources.css +3 -6
- package/dist/styles/checkbox.css +11 -25
- package/dist/styles/choice-list.css +17 -31
- package/dist/styles/code-block.css +11 -25
- package/dist/styles/collapsible.css +10 -15
- package/dist/styles/combobox.css +11 -15
- package/dist/styles/command.css +5 -8
- package/dist/styles/context-menu.css +2 -2
- package/dist/styles/dialog.css +5 -16
- package/dist/styles/dropdown-menu.css +2 -2
- package/dist/styles/field.css +15 -21
- package/dist/styles/file-explorer.css +19 -33
- package/dist/styles/file-viewer.css +13 -17
- package/dist/styles/form.css +3 -3
- package/dist/styles/glass-banner.css +12 -47
- package/dist/styles/gradient-banner.css +17 -35
- package/dist/styles/hover-card.css +9 -15
- package/dist/styles/index.css +116 -108
- package/dist/styles/input-group.css +25 -41
- package/dist/styles/input-otp.css +5 -6
- package/dist/styles/input.css +5 -5
- package/dist/styles/kbd.css +1 -1
- package/dist/styles/label.css +9 -30
- package/dist/styles/mention-list.css +6 -8
- package/dist/styles/menubar.css +5 -6
- package/dist/styles/message-actions.css +1 -1
- package/dist/styles/message-response.css +3 -5
- package/dist/styles/message-scroller.css +14 -21
- package/dist/styles/message.css +23 -60
- package/dist/styles/navigation-menu.css +14 -29
- package/dist/styles/notice-banner.css +1 -2
- package/dist/styles/page-header.css +7 -10
- package/dist/styles/pagination.css +1 -4
- package/dist/styles/plan-outline.css +20 -37
- package/dist/styles/popover.css +10 -19
- package/dist/styles/presence-cursor.css +1 -2
- package/dist/styles/progress.css +2 -4
- package/dist/styles/prompt-list.css +6 -17
- package/dist/styles/questionnaire.css +16 -40
- package/dist/styles/radio-group.css +12 -23
- package/dist/styles/reasoning-effort.css +8 -15
- package/dist/styles/record-list.css +243 -0
- package/dist/styles/resizable.css +10 -11
- package/dist/styles/result-card.css +17 -3
- package/dist/styles/result-notice.css +80 -0
- package/dist/styles/review-card.css +2 -3
- package/dist/styles/rich-text-editor.css +1 -2
- package/dist/styles/schema-diagram.css +12 -17
- package/dist/styles/scroll-area.css +8 -10
- package/dist/styles/search-dialog.css +1 -5
- package/dist/styles/search-field.css +1 -2
- package/dist/styles/select.css +7 -7
- package/dist/styles/selection-slot.css +1 -2
- package/dist/styles/separator.css +7 -8
- package/dist/styles/settings-list.css +1 -2
- package/dist/styles/sheet.css +40 -73
- package/dist/styles/sidebar.css +17 -21
- package/dist/styles/skeleton.css +9 -11
- package/dist/styles/slider.css +11 -21
- package/dist/styles/spinner.css +2 -2
- package/dist/styles/sql-viewer.css +29 -29
- package/dist/styles/state-panel.css +8 -9
- package/dist/styles/state-sample.css +20 -33
- package/dist/styles/switch.css +11 -18
- package/dist/styles/table.css +51 -77
- package/dist/styles/tabs.css +12 -16
- package/dist/styles/textarea.css +3 -3
- package/dist/styles/themes/chatgpt.css +11 -23
- package/dist/styles/themes/claude.css +12 -24
- package/dist/styles/themes/cloudflare.css +11 -23
- package/dist/styles/themes/discord.css +11 -23
- package/dist/styles/themes/github.css +11 -23
- package/dist/styles/themes/grok.css +11 -23
- package/dist/styles/themes/linear.css +12 -25
- package/dist/styles/themes/neutral.css +11 -23
- package/dist/styles/themes/notion.css +11 -23
- package/dist/styles/themes/perplexity.css +11 -23
- package/dist/styles/themes/raycast.css +11 -23
- package/dist/styles/themes/spotify.css +11 -23
- package/dist/styles/themes/stripe.css +11 -23
- package/dist/styles/themes/supabase.css +11 -23
- package/dist/styles/themes/tulipfarm.css +9 -10
- package/dist/styles/themes/vercel.css +12 -25
- package/dist/styles/timeline.css +276 -0
- package/dist/styles/toast.css +13 -20
- package/dist/styles/toggle-group.css +17 -23
- package/dist/styles/toggle.css +8 -8
- package/dist/styles/tool-activity.css +7 -13
- package/dist/styles/toolbar-status.css +2 -7
- package/dist/styles/tooltip.css +15 -21
- package/dist/styles/view-switcher.css +279 -0
- package/package.json +21 -1
|
@@ -1,252 +1,236 @@
|
|
|
1
1
|
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { BookOpen } from
|
|
3
|
-
import { BranchDown } from
|
|
4
|
-
import { ChatRound } from
|
|
5
|
-
import { Checklist } from
|
|
6
|
-
import { Cpu } from
|
|
7
|
-
import { Database } from
|
|
8
|
-
import { Envelope } from
|
|
9
|
-
import { Files } from
|
|
10
|
-
import { Folder } from
|
|
11
|
-
import { People } from
|
|
12
|
-
import { Plug } from
|
|
13
|
-
import { ShieldUser } from
|
|
14
|
-
import { User } from
|
|
15
|
-
import { Users } from
|
|
16
|
-
import { FileTypeIcon } from
|
|
17
|
-
import { AgentAvatar } from
|
|
18
|
-
import { Badge } from
|
|
19
|
-
import { BrandIcon } from
|
|
20
|
-
import { SampleBar, SampleIconTile, SampleList, SampleMark, SampleTable, SampleText, SampleWindow, } from
|
|
2
|
+
import { BookOpen } from 'reicon-react/icons/BookOpen';
|
|
3
|
+
import { BranchDown } from 'reicon-react/icons/BranchDown';
|
|
4
|
+
import { ChatRound } from 'reicon-react/icons/ChatRound';
|
|
5
|
+
import { Checklist } from 'reicon-react/icons/Checklist';
|
|
6
|
+
import { Cpu } from 'reicon-react/icons/Cpu';
|
|
7
|
+
import { Database } from 'reicon-react/icons/Database';
|
|
8
|
+
import { Envelope } from 'reicon-react/icons/Envelope';
|
|
9
|
+
import { Files } from 'reicon-react/icons/Files';
|
|
10
|
+
import { Folder } from 'reicon-react/icons/Folder';
|
|
11
|
+
import { People } from 'reicon-react/icons/People';
|
|
12
|
+
import { Plug } from 'reicon-react/icons/Plug';
|
|
13
|
+
import { ShieldUser } from 'reicon-react/icons/ShieldUser';
|
|
14
|
+
import { User } from 'reicon-react/icons/User';
|
|
15
|
+
import { Users } from 'reicon-react/icons/Users';
|
|
16
|
+
import { FileTypeIcon } from './attachment.js';
|
|
17
|
+
import { AgentAvatar } from './avatar.js';
|
|
18
|
+
import { Badge } from './badge.js';
|
|
19
|
+
import { BrandIcon } from './brand-icon.js';
|
|
20
|
+
import { SampleBar, SampleIconTile, SampleList, SampleMark, SampleTable, SampleText, SampleWindow, } from './state-sample.js';
|
|
21
21
|
const muted = (text) => _jsx(SampleText, { tone: "muted", children: text });
|
|
22
22
|
const strong = (text) => _jsx(SampleText, { tone: "strong", children: text });
|
|
23
23
|
const named = (tone, text) => (_jsxs(_Fragment, { children: [_jsx(SampleMark, { tone: tone }), strong(text)] }));
|
|
24
|
-
const agent = (id, name) =>
|
|
25
|
-
const badge = (variant, text) => _jsx(Badge, { variant: variant, children: text });
|
|
24
|
+
const agent = (id, name) => _jsx(AgentAvatar, { agentId: id, name: name, size: "sm" });
|
|
25
|
+
const badge = (variant, text) => (_jsx(Badge, { variant: variant, children: text }));
|
|
26
26
|
export function ChatsSample(props) {
|
|
27
27
|
const chat = _jsx(SampleIconTile, { icon: ChatRound });
|
|
28
|
-
return (_jsx(SampleWindow, { ...props, icon: ChatRound, trail: [
|
|
28
|
+
return (_jsx(SampleWindow, { ...props, icon: ChatRound, trail: ['Chats'], tabs: ['Active', 'Archived'], children: _jsx(SampleList, { items: [
|
|
29
29
|
{
|
|
30
30
|
leading: chat,
|
|
31
|
-
title:
|
|
32
|
-
detail:
|
|
33
|
-
trailing: muted(
|
|
31
|
+
title: 'Which invoices are overdue this week?',
|
|
32
|
+
detail: 'Found 7 invoices across 4 customers',
|
|
33
|
+
trailing: muted('2m ago'),
|
|
34
34
|
},
|
|
35
35
|
{
|
|
36
36
|
leading: chat,
|
|
37
|
-
title:
|
|
38
|
-
detail:
|
|
39
|
-
trailing: muted(
|
|
37
|
+
title: 'Draft a follow-up for Northwind',
|
|
38
|
+
detail: 'Draft ready for your review',
|
|
39
|
+
trailing: muted('1h ago'),
|
|
40
40
|
},
|
|
41
41
|
{
|
|
42
42
|
leading: chat,
|
|
43
|
-
title:
|
|
44
|
-
detail:
|
|
45
|
-
trailing: muted(
|
|
43
|
+
title: 'Add a Suppliers table',
|
|
44
|
+
detail: 'Name, contact, payment terms, region',
|
|
45
|
+
trailing: muted('Yesterday'),
|
|
46
46
|
},
|
|
47
47
|
{
|
|
48
48
|
leading: chat,
|
|
49
|
-
title:
|
|
50
|
-
detail:
|
|
51
|
-
trailing: muted(
|
|
49
|
+
title: 'Summarize last month’s orders',
|
|
50
|
+
detail: '312 orders, up 18% on September',
|
|
51
|
+
trailing: muted('Sep 30'),
|
|
52
52
|
},
|
|
53
53
|
{
|
|
54
54
|
leading: chat,
|
|
55
|
-
title:
|
|
56
|
-
detail:
|
|
57
|
-
trailing: muted(
|
|
55
|
+
title: 'Who owns the Acme renewal?',
|
|
56
|
+
detail: 'Assigned to the Sales team',
|
|
57
|
+
trailing: muted('Sep 28'),
|
|
58
58
|
},
|
|
59
59
|
] }) }));
|
|
60
60
|
}
|
|
61
|
-
const file = (name, mediaType) =>
|
|
61
|
+
const file = (name, mediaType) => _jsx(FileTypeIcon, { name: name, mediaType: mediaType });
|
|
62
62
|
export function FilesSample(props) {
|
|
63
63
|
const folder = _jsx(SampleIconTile, { icon: Folder });
|
|
64
|
-
return (_jsx(SampleWindow, { ...props, icon: Files, trail: [
|
|
64
|
+
return (_jsx(SampleWindow, { ...props, icon: Files, trail: ['Files', 'My files'], children: _jsx(SampleList, { items: [
|
|
65
65
|
{
|
|
66
66
|
leading: folder,
|
|
67
|
-
title:
|
|
68
|
-
detail:
|
|
69
|
-
trailing: muted(
|
|
67
|
+
title: 'Supplier contracts',
|
|
68
|
+
detail: 'Folder · Shared with Purchasing',
|
|
69
|
+
trailing: muted('You'),
|
|
70
70
|
},
|
|
71
71
|
{
|
|
72
72
|
leading: folder,
|
|
73
|
-
title:
|
|
74
|
-
detail:
|
|
75
|
-
trailing: muted(
|
|
73
|
+
title: 'Month-end close',
|
|
74
|
+
detail: 'Folder',
|
|
75
|
+
trailing: muted('You'),
|
|
76
76
|
},
|
|
77
77
|
{
|
|
78
|
-
leading: file(
|
|
79
|
-
title:
|
|
80
|
-
detail:
|
|
81
|
-
trailing: muted(
|
|
78
|
+
leading: file('Price list 2026.xlsx', 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet'),
|
|
79
|
+
title: 'Price list 2026.xlsx',
|
|
80
|
+
detail: 'Spreadsheet · 48 KB',
|
|
81
|
+
trailing: muted('You'),
|
|
82
82
|
},
|
|
83
83
|
{
|
|
84
|
-
leading: file(
|
|
85
|
-
title:
|
|
86
|
-
detail:
|
|
87
|
-
trailing: muted(
|
|
84
|
+
leading: file('Returns policy.pdf', 'application/pdf'),
|
|
85
|
+
title: 'Returns policy.pdf',
|
|
86
|
+
detail: 'PDF · 212 KB',
|
|
87
|
+
trailing: muted('You'),
|
|
88
88
|
},
|
|
89
89
|
{
|
|
90
|
-
leading: file(
|
|
91
|
-
title:
|
|
92
|
-
detail:
|
|
93
|
-
trailing: muted(
|
|
90
|
+
leading: file('Onboarding checklist.docx', 'application/vnd.openxmlformats-officedocument.wordprocessingml.document'),
|
|
91
|
+
title: 'Onboarding checklist.docx',
|
|
92
|
+
detail: 'Document · 31 KB',
|
|
93
|
+
trailing: muted('You'),
|
|
94
94
|
},
|
|
95
95
|
] }) }));
|
|
96
96
|
}
|
|
97
97
|
export function AgentsSample(props) {
|
|
98
|
-
return (_jsx(SampleWindow, { ...props, icon: Users, trail: [
|
|
98
|
+
return (_jsx(SampleWindow, { ...props, icon: Users, trail: ['Agents'], children: _jsx(SampleList, { items: [
|
|
99
99
|
{
|
|
100
|
-
leading: agent(
|
|
101
|
-
title:
|
|
102
|
-
detail:
|
|
103
|
-
trailing: badge(
|
|
100
|
+
leading: agent('sample-collections', 'Collections assistant'),
|
|
101
|
+
title: 'Collections assistant',
|
|
102
|
+
detail: 'Follows up on overdue invoices',
|
|
103
|
+
trailing: badge('success', 'Active'),
|
|
104
104
|
},
|
|
105
105
|
{
|
|
106
|
-
leading: agent(
|
|
107
|
-
title:
|
|
108
|
-
detail:
|
|
109
|
-
trailing: badge(
|
|
106
|
+
leading: agent('sample-onboarding', 'Onboarding guide'),
|
|
107
|
+
title: 'Onboarding guide',
|
|
108
|
+
detail: 'Welcomes new customers and books kickoffs',
|
|
109
|
+
trailing: badge('success', 'Active'),
|
|
110
110
|
},
|
|
111
111
|
{
|
|
112
|
-
leading: agent(
|
|
113
|
-
title:
|
|
114
|
-
detail:
|
|
115
|
-
trailing: badge(
|
|
112
|
+
leading: agent('sample-inventory', 'Inventory watcher'),
|
|
113
|
+
title: 'Inventory watcher',
|
|
114
|
+
detail: 'Flags products below reorder level',
|
|
115
|
+
trailing: badge('secondary', 'Draft'),
|
|
116
116
|
},
|
|
117
117
|
{
|
|
118
|
-
leading: agent(
|
|
119
|
-
title:
|
|
120
|
-
detail:
|
|
121
|
-
trailing: badge(
|
|
118
|
+
leading: agent('sample-support', 'Support triage'),
|
|
119
|
+
title: 'Support triage',
|
|
120
|
+
detail: 'Routes new tickets to the right team',
|
|
121
|
+
trailing: badge('success', 'Active'),
|
|
122
122
|
},
|
|
123
123
|
{
|
|
124
|
-
leading: agent(
|
|
125
|
-
title:
|
|
126
|
-
detail:
|
|
127
|
-
trailing: badge(
|
|
124
|
+
leading: agent('sample-reports', 'Weekly reporter'),
|
|
125
|
+
title: 'Weekly reporter',
|
|
126
|
+
detail: 'Posts pipeline numbers every Monday',
|
|
127
|
+
trailing: badge('secondary', 'Draft'),
|
|
128
128
|
},
|
|
129
129
|
] }) }));
|
|
130
130
|
}
|
|
131
131
|
export function ProjectsSample(props) {
|
|
132
|
-
return (_jsxs(SampleWindow, { ...props, icon: Folder, trail: [
|
|
132
|
+
return (_jsxs(SampleWindow, { ...props, icon: Folder, trail: ['Projects'], children: [_jsx("p", { className: "sprout-state-panel-samples-group", children: "Active projects" }), _jsx(SampleList, { items: [
|
|
133
133
|
{
|
|
134
|
-
title:
|
|
135
|
-
detail:
|
|
134
|
+
title: 'Spring launch',
|
|
135
|
+
detail: 'Use the launch brief for dates and messaging.',
|
|
136
136
|
},
|
|
137
137
|
{
|
|
138
|
-
title:
|
|
139
|
-
detail:
|
|
138
|
+
title: 'Customer onboarding',
|
|
139
|
+
detail: 'Keep kickoff notes and customer setup guides here.',
|
|
140
140
|
},
|
|
141
141
|
{
|
|
142
|
-
title:
|
|
143
|
-
detail:
|
|
142
|
+
title: 'Supplier review',
|
|
143
|
+
detail: 'Compare quotes against our purchasing guidelines.',
|
|
144
144
|
},
|
|
145
145
|
] }), _jsx("p", { className: "sprout-state-panel-samples-group", children: "Archived projects" }), _jsx(SampleList, { items: [
|
|
146
146
|
{
|
|
147
|
-
title:
|
|
148
|
-
detail:
|
|
149
|
-
trailing: badge(
|
|
147
|
+
title: 'Summer catalogue',
|
|
148
|
+
detail: 'Use the approved product descriptions.',
|
|
149
|
+
trailing: badge('secondary', 'Archived'),
|
|
150
150
|
},
|
|
151
151
|
] })] }));
|
|
152
152
|
}
|
|
153
153
|
export function AgentTasksSample(props) {
|
|
154
|
-
return (_jsx(SampleWindow, { ...props, icon: Checklist, trail: [
|
|
154
|
+
return (_jsx(SampleWindow, { ...props, icon: Checklist, trail: ['My agent tasks'], children: _jsx(SampleList, { items: [
|
|
155
155
|
{
|
|
156
|
-
leading: agent(
|
|
157
|
-
title:
|
|
158
|
-
detail:
|
|
159
|
-
trailing: badge(
|
|
156
|
+
leading: agent('sample-collections', 'Collections assistant'),
|
|
157
|
+
title: 'Send reminders for invoices past 30 days',
|
|
158
|
+
detail: 'Collections assistant · Started 4m ago',
|
|
159
|
+
trailing: badge('warning', 'Needs review'),
|
|
160
160
|
},
|
|
161
161
|
{
|
|
162
|
-
leading: agent(
|
|
163
|
-
title:
|
|
164
|
-
detail:
|
|
165
|
-
trailing: badge(
|
|
162
|
+
leading: agent('sample-onboarding', 'Onboarding guide'),
|
|
163
|
+
title: 'Book a kickoff with Contoso',
|
|
164
|
+
detail: 'Onboarding guide · Started 1h ago',
|
|
165
|
+
trailing: badge('success', 'Completed'),
|
|
166
166
|
},
|
|
167
167
|
{
|
|
168
|
-
leading: agent(
|
|
169
|
-
title:
|
|
170
|
-
detail:
|
|
171
|
-
trailing: badge(
|
|
168
|
+
leading: agent('sample-inventory', 'Inventory watcher'),
|
|
169
|
+
title: 'List products below reorder level',
|
|
170
|
+
detail: 'Inventory watcher · Started today',
|
|
171
|
+
trailing: badge('success', 'Completed'),
|
|
172
172
|
},
|
|
173
173
|
{
|
|
174
|
-
leading: agent(
|
|
175
|
-
title:
|
|
176
|
-
detail:
|
|
177
|
-
trailing: badge(
|
|
174
|
+
leading: agent('sample-support', 'Support triage'),
|
|
175
|
+
title: 'Tag this week’s billing tickets',
|
|
176
|
+
detail: 'Support triage · Started yesterday',
|
|
177
|
+
trailing: badge('secondary', 'Pending'),
|
|
178
178
|
},
|
|
179
179
|
] }) }));
|
|
180
180
|
}
|
|
181
181
|
export function SkillsSample(props) {
|
|
182
182
|
const skill = _jsx(SampleIconTile, { icon: BookOpen });
|
|
183
|
-
return (_jsx(SampleWindow, { ...props, icon: BookOpen, trail: [
|
|
183
|
+
return (_jsx(SampleWindow, { ...props, icon: BookOpen, trail: ['Skills'], tabs: ['Workspace', 'Built-in'], children: _jsx(SampleList, { items: [
|
|
184
184
|
{
|
|
185
185
|
leading: skill,
|
|
186
|
-
title:
|
|
187
|
-
detail:
|
|
188
|
-
trailing: badge(
|
|
186
|
+
title: 'Qualify an inbound lead',
|
|
187
|
+
detail: 'Check budget, timeline, and decision maker',
|
|
188
|
+
trailing: badge('success', 'Approved'),
|
|
189
189
|
},
|
|
190
190
|
{
|
|
191
191
|
leading: skill,
|
|
192
|
-
title:
|
|
193
|
-
detail:
|
|
194
|
-
trailing: badge(
|
|
192
|
+
title: 'Prepare a quarterly review',
|
|
193
|
+
detail: 'Pull revenue, churn, and open risks',
|
|
194
|
+
trailing: badge('success', 'Approved'),
|
|
195
195
|
},
|
|
196
196
|
{
|
|
197
197
|
leading: skill,
|
|
198
|
-
title:
|
|
199
|
-
detail:
|
|
200
|
-
trailing: badge(
|
|
198
|
+
title: 'Handle a refund request',
|
|
199
|
+
detail: 'Verify the order, then propose a refund',
|
|
200
|
+
trailing: badge('warning', 'In review'),
|
|
201
201
|
},
|
|
202
202
|
{
|
|
203
203
|
leading: skill,
|
|
204
|
-
title:
|
|
205
|
-
detail:
|
|
206
|
-
trailing: badge(
|
|
204
|
+
title: 'Write a supplier follow-up',
|
|
205
|
+
detail: 'Friendly tone, confirm delivery dates',
|
|
206
|
+
trailing: badge('secondary', 'Draft'),
|
|
207
207
|
},
|
|
208
208
|
] }) }));
|
|
209
209
|
}
|
|
210
210
|
export function WorkflowsSample(props) {
|
|
211
|
-
const active = badge(
|
|
212
|
-
const draft = badge(
|
|
213
|
-
return (_jsx(SampleWindow, { ...props, icon: BranchDown, trail: [
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
[
|
|
219
|
-
named("green", "Approve large discounts"),
|
|
220
|
-
muted("New quote"),
|
|
221
|
-
active,
|
|
222
|
-
],
|
|
223
|
-
[named("blue", "Onboard a new customer"), muted("Deal won"), active],
|
|
224
|
-
[named("orange", "Reorder low stock"), muted("Daily, 8:00"), draft],
|
|
225
|
-
[
|
|
226
|
-
named("violet", "Escalate urgent tickets"),
|
|
227
|
-
muted("New ticket"),
|
|
228
|
-
active,
|
|
229
|
-
],
|
|
230
|
-
[
|
|
231
|
-
named("red", "Chase unsigned contracts"),
|
|
232
|
-
muted("Weekly, Mon"),
|
|
233
|
-
draft,
|
|
234
|
-
],
|
|
211
|
+
const active = badge('success', 'Active');
|
|
212
|
+
const draft = badge('secondary', 'Draft');
|
|
213
|
+
return (_jsx(SampleWindow, { ...props, icon: BranchDown, trail: ['Workflows'], children: _jsx(SampleTable, { columns: [{ label: 'Workflow', size: 'wide' }, { label: 'Trigger' }, { label: 'Status', size: 'narrow' }], rows: [
|
|
214
|
+
[named('green', 'Approve large discounts'), muted('New quote'), active],
|
|
215
|
+
[named('blue', 'Onboard a new customer'), muted('Deal won'), active],
|
|
216
|
+
[named('orange', 'Reorder low stock'), muted('Daily, 8:00'), draft],
|
|
217
|
+
[named('violet', 'Escalate urgent tickets'), muted('New ticket'), active],
|
|
218
|
+
[named('red', 'Chase unsigned contracts'), muted('Weekly, Mon'), draft],
|
|
235
219
|
] }) }));
|
|
236
220
|
}
|
|
237
221
|
export function TablesSample(props) {
|
|
238
222
|
const rows = [
|
|
239
|
-
[
|
|
240
|
-
[
|
|
241
|
-
[
|
|
242
|
-
[
|
|
243
|
-
[
|
|
244
|
-
[
|
|
223
|
+
['blue', 'Customers', '12', '1,248'],
|
|
224
|
+
['green', 'Invoices', '9', '3,902'],
|
|
225
|
+
['orange', 'Orders', '14', '8,417'],
|
|
226
|
+
['violet', 'Products', '8', '326'],
|
|
227
|
+
['red', 'Suppliers', '7', '58'],
|
|
228
|
+
['teal', 'Support tickets', '10', '2,031'],
|
|
245
229
|
];
|
|
246
|
-
return (_jsx(SampleWindow, { ...props, icon: Database, trail: [
|
|
247
|
-
{ label:
|
|
248
|
-
{ label:
|
|
249
|
-
{ label:
|
|
230
|
+
return (_jsx(SampleWindow, { ...props, icon: Database, trail: ['Tables'], children: _jsx(SampleTable, { columns: [
|
|
231
|
+
{ label: 'Table', size: 'wide' },
|
|
232
|
+
{ label: 'Fields', size: 'narrow' },
|
|
233
|
+
{ label: 'Rows', size: 'narrow' },
|
|
250
234
|
], rows: rows.map(([tone, name, fields, count]) => [
|
|
251
235
|
named(tone, name),
|
|
252
236
|
_jsx(SampleText, { children: fields }),
|
|
@@ -254,170 +238,150 @@ export function TablesSample(props) {
|
|
|
254
238
|
]) }) }));
|
|
255
239
|
}
|
|
256
240
|
const recordRows = [
|
|
257
|
-
[
|
|
258
|
-
[
|
|
259
|
-
[
|
|
260
|
-
[
|
|
261
|
-
[
|
|
262
|
-
[
|
|
241
|
+
['blue', 'lg', 'md'],
|
|
242
|
+
['green', 'md', 'sm'],
|
|
243
|
+
['orange', 'sm', 'lg'],
|
|
244
|
+
['violet', 'md', 'md'],
|
|
245
|
+
['red', 'lg', 'sm'],
|
|
246
|
+
['teal', 'sm', 'md'],
|
|
263
247
|
];
|
|
264
248
|
export function RecordsSample({ table, fields, ...props }) {
|
|
265
249
|
const shown = fields.slice(0, 3);
|
|
266
250
|
const columns = shown.length
|
|
267
251
|
? shown.map((label, index) => ({
|
|
268
252
|
label,
|
|
269
|
-
size: index === 0 ?
|
|
253
|
+
size: index === 0 ? 'wide' : 'default',
|
|
270
254
|
}))
|
|
271
|
-
: [{ label:
|
|
272
|
-
return (_jsx(SampleWindow, { ...props, icon: Database, trail: [
|
|
255
|
+
: [{ label: 'Row', size: 'wide' }];
|
|
256
|
+
return (_jsx(SampleWindow, { ...props, icon: Database, trail: ['Tables', table], children: _jsx(SampleTable, { columns: columns, rows: recordRows.map(([tone, first, rest]) => columns.map((_, column) => column === 0 ? (_jsxs(_Fragment, { children: [_jsx(SampleMark, { tone: tone }), _jsx(SampleBar, { width: first })] })) : (_jsx(SampleBar, { width: column % 2 ? rest : first })))) }) }));
|
|
273
257
|
}
|
|
274
258
|
export function CreateInChatSample(props) {
|
|
275
|
-
return (_jsx(SampleWindow, { ...props, icon: ChatRound, trail: [
|
|
276
|
-
[strong(
|
|
277
|
-
[strong(
|
|
278
|
-
[strong(
|
|
279
|
-
[strong(
|
|
259
|
+
return (_jsx(SampleWindow, { ...props, icon: ChatRound, trail: ['New chat'], children: _jsxs("div", { className: "sprout-state-panel-samples-chat", children: [_jsx("p", { className: "sprout-state-panel-samples-bubble", children: "Track our suppliers with a name, contact email, payment terms, and region." }), _jsxs("p", { className: "sprout-state-panel-samples-reply", children: ["I\u2019ll create a ", _jsx("strong", { children: "Suppliers" }), " table with these fields. Review the schema before approving."] }), _jsx("div", { className: "sprout-state-panel-samples-schema", children: _jsx(SampleTable, { columns: [{ label: 'Field', size: 'wide' }, { label: 'Type' }], rows: [
|
|
260
|
+
[strong('Name'), muted('Text')],
|
|
261
|
+
[strong('Contact email'), muted('Email')],
|
|
262
|
+
[strong('Payment terms'), muted('Choice')],
|
|
263
|
+
[strong('Region'), muted('Choice')],
|
|
280
264
|
] }) })] }) }));
|
|
281
265
|
}
|
|
282
266
|
export function IntegrationsSample(props) {
|
|
283
|
-
const connected = badge(
|
|
284
|
-
return (_jsx(SampleWindow, { ...props, icon: Plug, trail: [
|
|
267
|
+
const connected = badge('success', 'Connected');
|
|
268
|
+
return (_jsx(SampleWindow, { ...props, icon: Plug, trail: ['Integrations'], tabs: ['Connected', 'All'], children: _jsx(SampleList, { items: [
|
|
285
269
|
{
|
|
286
270
|
leading: _jsx(BrandIcon, { brand: "slack", size: "sm" }),
|
|
287
|
-
title:
|
|
288
|
-
detail:
|
|
271
|
+
title: 'Slack',
|
|
272
|
+
detail: 'Agents reply in #sales and #support',
|
|
289
273
|
trailing: connected,
|
|
290
274
|
},
|
|
291
275
|
{
|
|
292
276
|
leading: _jsx(BrandIcon, { brand: "gmail", size: "sm" }),
|
|
293
|
-
title:
|
|
294
|
-
detail:
|
|
277
|
+
title: 'Gmail',
|
|
278
|
+
detail: 'Reads new mail for heartbeat answers',
|
|
295
279
|
trailing: connected,
|
|
296
280
|
},
|
|
297
281
|
{
|
|
298
282
|
leading: _jsx(BrandIcon, { brand: "google-calendar", size: "sm" }),
|
|
299
|
-
title:
|
|
300
|
-
detail:
|
|
283
|
+
title: 'Google Calendar',
|
|
284
|
+
detail: 'Books meetings after your approval',
|
|
301
285
|
trailing: connected,
|
|
302
286
|
},
|
|
303
287
|
{
|
|
304
288
|
leading: _jsx(BrandIcon, { brand: "github", size: "sm" }),
|
|
305
|
-
title:
|
|
306
|
-
detail:
|
|
289
|
+
title: 'GitHub',
|
|
290
|
+
detail: 'Files issues for the product team',
|
|
307
291
|
trailing: connected,
|
|
308
292
|
},
|
|
309
293
|
{
|
|
310
294
|
leading: _jsx(BrandIcon, { brand: "jira", size: "sm" }),
|
|
311
|
-
title:
|
|
312
|
-
detail:
|
|
313
|
-
trailing: badge(
|
|
295
|
+
title: 'Jira',
|
|
296
|
+
detail: 'Searches the Support board',
|
|
297
|
+
trailing: badge('warning', 'Needs attention'),
|
|
314
298
|
},
|
|
315
299
|
] }) }));
|
|
316
300
|
}
|
|
317
301
|
export function ModelsSample(props) {
|
|
318
|
-
return (_jsx(SampleWindow, { ...props, icon: Cpu, trail: [
|
|
302
|
+
return (_jsx(SampleWindow, { ...props, icon: Cpu, trail: ['Settings', 'Models'], children: _jsx(SampleList, { items: [
|
|
319
303
|
{
|
|
320
304
|
leading: _jsx(BrandIcon, { brand: "claude", size: "sm" }),
|
|
321
|
-
title:
|
|
322
|
-
detail:
|
|
323
|
-
trailing: badge(
|
|
305
|
+
title: 'Claude',
|
|
306
|
+
detail: 'Default for chat and agents',
|
|
307
|
+
trailing: badge('success', 'Enabled'),
|
|
324
308
|
},
|
|
325
309
|
{
|
|
326
310
|
leading: _jsx(BrandIcon, { brand: "openai", size: "sm" }),
|
|
327
|
-
title:
|
|
328
|
-
detail:
|
|
329
|
-
trailing: badge(
|
|
311
|
+
title: 'GPT',
|
|
312
|
+
detail: 'Available to the Analytics team',
|
|
313
|
+
trailing: badge('success', 'Enabled'),
|
|
330
314
|
},
|
|
331
315
|
{
|
|
332
316
|
leading: _jsx(BrandIcon, { brand: "deepseek", size: "sm" }),
|
|
333
|
-
title:
|
|
334
|
-
detail:
|
|
335
|
-
trailing: badge(
|
|
317
|
+
title: 'DeepSeek',
|
|
318
|
+
detail: 'Not available to any team',
|
|
319
|
+
trailing: badge('secondary', 'Off'),
|
|
336
320
|
},
|
|
337
321
|
{
|
|
338
322
|
leading: _jsx(BrandIcon, { brand: "kimi", size: "sm" }),
|
|
339
|
-
title:
|
|
340
|
-
detail:
|
|
341
|
-
trailing: badge(
|
|
323
|
+
title: 'Kimi',
|
|
324
|
+
detail: 'Not available to any team',
|
|
325
|
+
trailing: badge('secondary', 'Off'),
|
|
342
326
|
},
|
|
343
327
|
] }) }));
|
|
344
328
|
}
|
|
345
329
|
export function MembersSample(props) {
|
|
346
|
-
const admin = badge(
|
|
347
|
-
const member = badge(
|
|
348
|
-
return (_jsx(SampleWindow, { ...props, icon: User, trail: [
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
[named(
|
|
354
|
-
[named("orange", "Leo Martins"), member, muted("Sales, Support")],
|
|
355
|
-
[named("green", "Priya Nair"), member, muted("Finance")],
|
|
356
|
-
[named("blue", "Sam Okafor"), member, muted("Support")],
|
|
357
|
-
[named("red", "Ines Duarte"), admin, muted("Operations")],
|
|
330
|
+
const admin = badge('info', 'Admin');
|
|
331
|
+
const member = badge('secondary', 'Member');
|
|
332
|
+
return (_jsx(SampleWindow, { ...props, icon: User, trail: ['Settings', 'Members'], children: _jsx(SampleTable, { columns: [{ label: 'Member', size: 'wide' }, { label: 'Role', size: 'narrow' }, { label: 'Teams' }], rows: [
|
|
333
|
+
[named('violet', 'Maya Chen'), admin, muted('Operations')],
|
|
334
|
+
[named('orange', 'Leo Martins'), member, muted('Sales, Support')],
|
|
335
|
+
[named('green', 'Priya Nair'), member, muted('Finance')],
|
|
336
|
+
[named('blue', 'Sam Okafor'), member, muted('Support')],
|
|
337
|
+
[named('red', 'Ines Duarte'), admin, muted('Operations')],
|
|
358
338
|
] }) }));
|
|
359
339
|
}
|
|
360
340
|
export function TeamsSample(props) {
|
|
361
|
-
return (_jsx(SampleWindow, { ...props, icon: People, trail: [
|
|
341
|
+
return (_jsx(SampleWindow, { ...props, icon: People, trail: ['Settings', 'Teams'], children: _jsx(SampleList, { items: [
|
|
362
342
|
{
|
|
363
343
|
leading: _jsx(SampleMark, { tone: "blue", size: "md" }),
|
|
364
|
-
title:
|
|
365
|
-
detail:
|
|
344
|
+
title: 'Sales',
|
|
345
|
+
detail: 'Pipeline, quotes, and renewals · 8 members',
|
|
366
346
|
},
|
|
367
347
|
{
|
|
368
348
|
leading: _jsx(SampleMark, { tone: "green", size: "md" }),
|
|
369
|
-
title:
|
|
370
|
-
detail:
|
|
349
|
+
title: 'Finance',
|
|
350
|
+
detail: 'Invoices and collections · 3 members',
|
|
371
351
|
},
|
|
372
352
|
{
|
|
373
353
|
leading: _jsx(SampleMark, { tone: "orange", size: "md" }),
|
|
374
|
-
title:
|
|
375
|
-
detail:
|
|
354
|
+
title: 'Support',
|
|
355
|
+
detail: 'Tickets and refunds · 6 members',
|
|
376
356
|
},
|
|
377
357
|
{
|
|
378
358
|
leading: _jsx(SampleMark, { tone: "violet", size: "md" }),
|
|
379
|
-
title:
|
|
380
|
-
detail:
|
|
359
|
+
title: 'Operations',
|
|
360
|
+
detail: 'Inventory and suppliers · 4 members',
|
|
381
361
|
},
|
|
382
362
|
] }) }));
|
|
383
363
|
}
|
|
384
364
|
export function InvitationsSample(props) {
|
|
385
365
|
const link = (email) => _jsx(SampleText, { tone: "link", children: email });
|
|
386
|
-
return (_jsx(SampleWindow, { ...props, icon: Envelope, trail: [
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
[
|
|
392
|
-
link("maya@northwind.co"),
|
|
393
|
-
badge("info", "active"),
|
|
394
|
-
muted("Delivered"),
|
|
395
|
-
],
|
|
396
|
-
[
|
|
397
|
-
link("leo@northwind.co"),
|
|
398
|
-
badge("secondary", "Accepted"),
|
|
399
|
-
muted("Delivered"),
|
|
400
|
-
],
|
|
401
|
-
[link("priya@northwind.co"), badge("info", "active"), muted("Sent")],
|
|
402
|
-
[
|
|
403
|
-
link("sam@northwind.co"),
|
|
404
|
-
badge("secondary", "expired"),
|
|
405
|
-
muted("Delivered"),
|
|
406
|
-
],
|
|
366
|
+
return (_jsx(SampleWindow, { ...props, icon: Envelope, trail: ['Settings', 'Members', 'Invitations'], children: _jsx(SampleTable, { columns: [{ label: 'Email', size: 'wide' }, { label: 'Status', size: 'narrow' }, { label: 'Email delivery' }], rows: [
|
|
367
|
+
[link('maya@northwind.co'), badge('info', 'active'), muted('Delivered')],
|
|
368
|
+
[link('leo@northwind.co'), badge('secondary', 'Accepted'), muted('Delivered')],
|
|
369
|
+
[link('priya@northwind.co'), badge('info', 'active'), muted('Sent')],
|
|
370
|
+
[link('sam@northwind.co'), badge('secondary', 'expired'), muted('Delivered')],
|
|
407
371
|
] }) }));
|
|
408
372
|
}
|
|
409
373
|
export function GrantsSample(props) {
|
|
410
|
-
const granted = badge(
|
|
411
|
-
const none = muted(
|
|
412
|
-
return (_jsx(SampleWindow, { ...props, icon: ShieldUser, trail: [
|
|
413
|
-
{ label:
|
|
414
|
-
{ label:
|
|
415
|
-
{ label:
|
|
374
|
+
const granted = badge('success', 'Granted');
|
|
375
|
+
const none = muted('None');
|
|
376
|
+
return (_jsx(SampleWindow, { ...props, icon: ShieldUser, trail: ['Settings', 'Table access'], tabs: ['Sales', 'Finance', 'Support'], children: _jsx(SampleTable, { columns: [
|
|
377
|
+
{ label: 'Table', size: 'wide' },
|
|
378
|
+
{ label: 'Read', size: 'narrow' },
|
|
379
|
+
{ label: 'Edit', size: 'narrow' },
|
|
416
380
|
], rows: [
|
|
417
|
-
[named(
|
|
418
|
-
[named(
|
|
419
|
-
[named(
|
|
420
|
-
[named(
|
|
421
|
-
[named(
|
|
381
|
+
[named('blue', 'Customers'), granted, granted],
|
|
382
|
+
[named('green', 'Invoices'), granted, none],
|
|
383
|
+
[named('orange', 'Orders'), granted, granted],
|
|
384
|
+
[named('violet', 'Products'), granted, none],
|
|
385
|
+
[named('red', 'Suppliers'), none, none],
|
|
422
386
|
] }) }));
|
|
423
387
|
}
|