agentic-ds-kit 0.1.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/AGENTS.md +10 -0
- package/CLAUDE.md +1 -0
- package/LICENSE +21 -0
- package/README.md +38 -0
- package/contracts/accordion.json +38 -0
- package/contracts/alert.json +57 -0
- package/contracts/alertdialog.json +89 -0
- package/contracts/appheader.json +140 -0
- package/contracts/appnav.json +72 -0
- package/contracts/avatar.json +63 -0
- package/contracts/avatargroup.json +83 -0
- package/contracts/badge.json +92 -0
- package/contracts/barchart.json +55 -0
- package/contracts/breadcrumb.json +76 -0
- package/contracts/button.json +120 -0
- package/contracts/buttongroup.json +48 -0
- package/contracts/calendar.json +93 -0
- package/contracts/card.json +123 -0
- package/contracts/carousel.json +98 -0
- package/contracts/cell.json +203 -0
- package/contracts/chat.json +131 -0
- package/contracts/checkbox.json +101 -0
- package/contracts/collapsible.json +66 -0
- package/contracts/command.json +84 -0
- package/contracts/datatable.json +126 -0
- package/contracts/datepicker.json +102 -0
- package/contracts/drawer.json +93 -0
- package/contracts/dropdownmenu.json +190 -0
- package/contracts/empty.json +79 -0
- package/contracts/field.json +49 -0
- package/contracts/fieldset.json +29 -0
- package/contracts/headercell.json +107 -0
- package/contracts/index.json +478 -0
- package/contracts/input.json +119 -0
- package/contracts/inputotp.json +119 -0
- package/contracts/insightcard.json +130 -0
- package/contracts/linechart.json +51 -0
- package/contracts/loadinganimation.json +33 -0
- package/contracts/modal.json +100 -0
- package/contracts/modalcard.json +88 -0
- package/contracts/navigationmenu.json +65 -0
- package/contracts/numbertransition.json +33 -0
- package/contracts/pageheader.json +101 -0
- package/contracts/pagination.json +85 -0
- package/contracts/patterns/activity.json +30 -0
- package/contracts/patterns/assistant-workspace.json +16 -0
- package/contracts/patterns/dashboard.json +12 -0
- package/contracts/patterns/empty-first-run.json +15 -0
- package/contracts/patterns/inbox.json +32 -0
- package/contracts/patterns/invite-members.json +14 -0
- package/contracts/patterns/list-detail.json +13 -0
- package/contracts/patterns/settings-form.json +13 -0
- package/contracts/piechart.json +68 -0
- package/contracts/progress.json +124 -0
- package/contracts/progresssteps.json +91 -0
- package/contracts/radiogroup.json +132 -0
- package/contracts/scoreboard.json +46 -0
- package/contracts/scorecard.json +124 -0
- package/contracts/section.json +97 -0
- package/contracts/select.json +130 -0
- package/contracts/shimmertext.json +33 -0
- package/contracts/sidenav.json +133 -0
- package/contracts/slider.json +81 -0
- package/contracts/spinner.json +52 -0
- package/contracts/switch.json +94 -0
- package/contracts/table.json +92 -0
- package/contracts/tabs.json +90 -0
- package/contracts/textarea.json +54 -0
- package/contracts/thinkinganimation.json +32 -0
- package/contracts/timeline.json +49 -0
- package/contracts/toast.json +104 -0
- package/contracts/tooltip.json +66 -0
- package/lib/tokens.css +637 -0
- package/package.json +60 -0
- package/skills/prototype-from-kit/SKILL.md +29 -0
- package/src/index.ts +71 -0
- package/tokens/tokens.json +725 -0
- package/ui/Accordion/Accordion.module.css +68 -0
- package/ui/Accordion/Accordion.tsx +51 -0
- package/ui/Accordion/Accordion.types.ts +10 -0
- package/ui/Accordion/index.ts +2 -0
- package/ui/Alert/Alert.module.css +62 -0
- package/ui/Alert/Alert.tsx +27 -0
- package/ui/Alert/Alert.types.ts +7 -0
- package/ui/Alert/index.ts +2 -0
- package/ui/AlertDialog/AlertDialog.module.css +71 -0
- package/ui/AlertDialog/AlertDialog.tsx +109 -0
- package/ui/AlertDialog/AlertDialog.types.ts +14 -0
- package/ui/AlertDialog/index.ts +6 -0
- package/ui/AppHeader/AppHeader.module.css +120 -0
- package/ui/AppHeader/AppHeader.tsx +70 -0
- package/ui/AppHeader/AppHeader.types.ts +28 -0
- package/ui/AppHeader/index.ts +2 -0
- package/ui/AppNav/AppNav.module.css +168 -0
- package/ui/AppNav/AppNav.tsx +137 -0
- package/ui/AppNav/AppNav.types.ts +24 -0
- package/ui/AppNav/index.ts +2 -0
- package/ui/Avatar/Avatar.module.css +52 -0
- package/ui/Avatar/Avatar.tsx +62 -0
- package/ui/Avatar/Avatar.types.ts +8 -0
- package/ui/Avatar/index.ts +2 -0
- package/ui/AvatarGroup/AvatarGroup.module.css +49 -0
- package/ui/AvatarGroup/AvatarGroup.tsx +29 -0
- package/ui/AvatarGroup/AvatarGroup.types.ts +16 -0
- package/ui/AvatarGroup/index.ts +2 -0
- package/ui/Badge/Badge.module.css +92 -0
- package/ui/Badge/Badge.tsx +43 -0
- package/ui/Badge/Badge.types.ts +11 -0
- package/ui/Badge/index.ts +2 -0
- package/ui/BarChart/BarChart.module.css +56 -0
- package/ui/BarChart/BarChart.tsx +380 -0
- package/ui/BarChart/BarChart.types.ts +18 -0
- package/ui/BarChart/index.ts +2 -0
- package/ui/Breadcrumb/Breadcrumb.module.css +64 -0
- package/ui/Breadcrumb/Breadcrumb.tsx +89 -0
- package/ui/Breadcrumb/Breadcrumb.types.ts +14 -0
- package/ui/Breadcrumb/index.ts +2 -0
- package/ui/Button/Button.module.css +101 -0
- package/ui/Button/Button.tsx +49 -0
- package/ui/Button/Button.types.ts +18 -0
- package/ui/Button/index.ts +2 -0
- package/ui/Button/lucideName.tsx +188 -0
- package/ui/ButtonGroup/ButtonGroup.module.css +31 -0
- package/ui/ButtonGroup/ButtonGroup.tsx +12 -0
- package/ui/ButtonGroup/ButtonGroup.types.ts +6 -0
- package/ui/ButtonGroup/index.ts +2 -0
- package/ui/Calendar/Calendar.module.css +146 -0
- package/ui/Calendar/Calendar.tsx +296 -0
- package/ui/Calendar/Calendar.types.ts +11 -0
- package/ui/Calendar/index.ts +2 -0
- package/ui/Card/Card.module.css +95 -0
- package/ui/Card/Card.tsx +69 -0
- package/ui/Card/Card.types.ts +23 -0
- package/ui/Card/index.ts +2 -0
- package/ui/Carousel/Carousel.module.css +114 -0
- package/ui/Carousel/Carousel.tsx +152 -0
- package/ui/Carousel/Carousel.types.ts +17 -0
- package/ui/Carousel/index.ts +7 -0
- package/ui/Cell/Cell.module.css +133 -0
- package/ui/Cell/Cell.tsx +300 -0
- package/ui/Cell/Cell.types.ts +69 -0
- package/ui/Cell/index.ts +11 -0
- package/ui/Chat/Chat.module.css +149 -0
- package/ui/Chat/Chat.tsx +175 -0
- package/ui/Chat/Chat.types.ts +39 -0
- package/ui/Chat/index.ts +2 -0
- package/ui/Checkbox/Checkbox.module.css +135 -0
- package/ui/Checkbox/Checkbox.tsx +70 -0
- package/ui/Checkbox/Checkbox.types.ts +15 -0
- package/ui/Checkbox/index.ts +2 -0
- package/ui/Collapsible/Collapsible.module.css +68 -0
- package/ui/Collapsible/Collapsible.tsx +59 -0
- package/ui/Collapsible/Collapsible.types.ts +9 -0
- package/ui/Collapsible/index.ts +2 -0
- package/ui/Command/Command.module.css +138 -0
- package/ui/Command/Command.tsx +152 -0
- package/ui/Command/Command.types.ts +20 -0
- package/ui/Command/index.ts +2 -0
- package/ui/DataTable/DataTable.module.css +211 -0
- package/ui/DataTable/DataTable.tsx +429 -0
- package/ui/DataTable/DataTable.types.ts +35 -0
- package/ui/DataTable/index.ts +8 -0
- package/ui/DatePicker/DatePicker.module.css +44 -0
- package/ui/DatePicker/DatePicker.tsx +123 -0
- package/ui/DatePicker/DatePicker.types.ts +15 -0
- package/ui/DatePicker/index.ts +2 -0
- package/ui/Drawer/Drawer.module.css +204 -0
- package/ui/Drawer/Drawer.tsx +112 -0
- package/ui/Drawer/Drawer.types.ts +14 -0
- package/ui/Drawer/index.ts +2 -0
- package/ui/DropdownMenu/DropdownMenu.module.css +319 -0
- package/ui/DropdownMenu/DropdownMenu.tsx +580 -0
- package/ui/DropdownMenu/DropdownMenu.types.ts +48 -0
- package/ui/DropdownMenu/index.ts +8 -0
- package/ui/Empty/Empty.module.css +68 -0
- package/ui/Empty/Empty.tsx +35 -0
- package/ui/Empty/Empty.types.ts +10 -0
- package/ui/Empty/index.ts +2 -0
- package/ui/Field/Field.module.css +66 -0
- package/ui/Field/Field.tsx +46 -0
- package/ui/Field/Field.types.ts +12 -0
- package/ui/Field/index.ts +2 -0
- package/ui/FieldSet/FieldSet.module.css +30 -0
- package/ui/FieldSet/FieldSet.tsx +14 -0
- package/ui/FieldSet/FieldSet.types.ts +7 -0
- package/ui/FieldSet/index.ts +2 -0
- package/ui/HeaderCell/HeaderCell.module.css +85 -0
- package/ui/HeaderCell/HeaderCell.tsx +71 -0
- package/ui/HeaderCell/HeaderCell.types.ts +18 -0
- package/ui/HeaderCell/index.ts +2 -0
- package/ui/Input/Input.module.css +59 -0
- package/ui/Input/Input.tsx +65 -0
- package/ui/Input/Input.types.ts +22 -0
- package/ui/Input/index.ts +2 -0
- package/ui/InputOTP/InputOTP.module.css +139 -0
- package/ui/InputOTP/InputOTP.tsx +136 -0
- package/ui/InputOTP/InputOTP.types.ts +19 -0
- package/ui/InputOTP/index.ts +2 -0
- package/ui/InsightCard/InsightCard.module.css +166 -0
- package/ui/InsightCard/InsightCard.tsx +90 -0
- package/ui/InsightCard/InsightCard.types.ts +20 -0
- package/ui/InsightCard/index.ts +7 -0
- package/ui/LineChart/LineChart.module.css +93 -0
- package/ui/LineChart/LineChart.tsx +424 -0
- package/ui/LineChart/LineChart.types.ts +19 -0
- package/ui/LineChart/index.ts +2 -0
- package/ui/LoadingAnimation/LoadingAnimation.module.css +66 -0
- package/ui/LoadingAnimation/LoadingAnimation.tsx +41 -0
- package/ui/LoadingAnimation/LoadingAnimation.types.ts +9 -0
- package/ui/LoadingAnimation/index.ts +6 -0
- package/ui/Modal/Modal.module.css +48 -0
- package/ui/Modal/Modal.tsx +114 -0
- package/ui/Modal/Modal.types.ts +15 -0
- package/ui/Modal/index.ts +2 -0
- package/ui/ModalCard/ModalCard.module.css +137 -0
- package/ui/ModalCard/ModalCard.tsx +58 -0
- package/ui/ModalCard/ModalCard.types.ts +15 -0
- package/ui/ModalCard/index.ts +2 -0
- package/ui/NavigationMenu/NavigationMenu.module.css +31 -0
- package/ui/NavigationMenu/NavigationMenu.tsx +57 -0
- package/ui/NavigationMenu/NavigationMenu.types.ts +22 -0
- package/ui/NavigationMenu/index.ts +7 -0
- package/ui/NumberTransition/NumberTransition.module.css +110 -0
- package/ui/NumberTransition/NumberTransition.tsx +78 -0
- package/ui/NumberTransition/NumberTransition.types.ts +9 -0
- package/ui/NumberTransition/index.ts +2 -0
- package/ui/PageHeader/PageHeader.module.css +57 -0
- package/ui/PageHeader/PageHeader.tsx +39 -0
- package/ui/PageHeader/PageHeader.types.ts +12 -0
- package/ui/PageHeader/index.ts +2 -0
- package/ui/Pagination/Pagination.module.css +19 -0
- package/ui/Pagination/Pagination.tsx +147 -0
- package/ui/Pagination/Pagination.types.ts +12 -0
- package/ui/Pagination/index.ts +2 -0
- package/ui/PieChart/PieChart.module.css +116 -0
- package/ui/PieChart/PieChart.tsx +293 -0
- package/ui/PieChart/PieChart.types.ts +22 -0
- package/ui/PieChart/index.ts +2 -0
- package/ui/Progress/Progress.module.css +226 -0
- package/ui/Progress/Progress.tsx +167 -0
- package/ui/Progress/Progress.types.ts +15 -0
- package/ui/Progress/index.ts +8 -0
- package/ui/ProgressSteps/ProgressSteps.module.css +210 -0
- package/ui/ProgressSteps/ProgressSteps.tsx +105 -0
- package/ui/ProgressSteps/ProgressSteps.types.ts +19 -0
- package/ui/ProgressSteps/index.ts +8 -0
- package/ui/RadioGroup/RadioGroup.module.css +284 -0
- package/ui/RadioGroup/RadioGroup.tsx +116 -0
- package/ui/RadioGroup/RadioGroup.types.ts +30 -0
- package/ui/RadioGroup/index.ts +8 -0
- package/ui/Scoreboard/Scoreboard.module.css +53 -0
- package/ui/Scoreboard/Scoreboard.tsx +41 -0
- package/ui/Scoreboard/Scoreboard.types.ts +7 -0
- package/ui/Scoreboard/index.ts +2 -0
- package/ui/Scorecard/Scorecard.module.css +150 -0
- package/ui/Scorecard/Scorecard.tsx +92 -0
- package/ui/Scorecard/Scorecard.types.ts +18 -0
- package/ui/Scorecard/index.ts +2 -0
- package/ui/Section/Section.module.css +104 -0
- package/ui/Section/Section.tsx +75 -0
- package/ui/Section/Section.types.ts +15 -0
- package/ui/Section/index.ts +2 -0
- package/ui/Select/Select.module.css +7 -0
- package/ui/Select/Select.tsx +113 -0
- package/ui/Select/Select.types.ts +26 -0
- package/ui/Select/index.ts +2 -0
- package/ui/ShimmerText/ShimmerText.module.css +46 -0
- package/ui/ShimmerText/ShimmerText.tsx +48 -0
- package/ui/ShimmerText/ShimmerText.types.ts +12 -0
- package/ui/ShimmerText/index.ts +2 -0
- package/ui/SideNav/SideNav.module.css +347 -0
- package/ui/SideNav/SideNav.tsx +222 -0
- package/ui/SideNav/SideNav.types.ts +42 -0
- package/ui/SideNav/index.ts +8 -0
- package/ui/Slider/Slider.module.css +105 -0
- package/ui/Slider/Slider.tsx +187 -0
- package/ui/Slider/Slider.types.ts +11 -0
- package/ui/Slider/index.ts +2 -0
- package/ui/Spinner/Spinner.module.css +58 -0
- package/ui/Spinner/Spinner.tsx +19 -0
- package/ui/Spinner/Spinner.types.ts +6 -0
- package/ui/Spinner/index.ts +2 -0
- package/ui/Switch/Switch.module.css +189 -0
- package/ui/Switch/Switch.tsx +65 -0
- package/ui/Switch/Switch.types.ts +12 -0
- package/ui/Switch/index.ts +2 -0
- package/ui/Table/Table.module.css +132 -0
- package/ui/Table/Table.tsx +108 -0
- package/ui/Table/Table.types.ts +26 -0
- package/ui/Table/index.ts +8 -0
- package/ui/Tabs/Tabs.module.css +162 -0
- package/ui/Tabs/Tabs.tsx +150 -0
- package/ui/Tabs/Tabs.types.ts +21 -0
- package/ui/Tabs/index.ts +2 -0
- package/ui/Textarea/Textarea.module.css +74 -0
- package/ui/Textarea/Textarea.tsx +38 -0
- package/ui/Textarea/Textarea.types.ts +14 -0
- package/ui/Textarea/index.ts +2 -0
- package/ui/ThinkingAnimation/ThinkingAnimation.module.css +75 -0
- package/ui/ThinkingAnimation/ThinkingAnimation.tsx +31 -0
- package/ui/ThinkingAnimation/ThinkingAnimation.types.ts +8 -0
- package/ui/ThinkingAnimation/index.ts +2 -0
- package/ui/Timeline/Timeline.module.css +99 -0
- package/ui/Timeline/Timeline.tsx +47 -0
- package/ui/Timeline/Timeline.types.ts +16 -0
- package/ui/Timeline/index.ts +2 -0
- package/ui/Toast/Toast.module.css +133 -0
- package/ui/Toast/Toast.tsx +89 -0
- package/ui/Toast/Toast.types.ts +17 -0
- package/ui/Toast/index.ts +2 -0
- package/ui/Tooltip/Tooltip.module.css +111 -0
- package/ui/Tooltip/Tooltip.tsx +101 -0
- package/ui/Tooltip/index.ts +2 -0
- package/ui/patterns/ActivityPattern/ActivityFeed.tsx +77 -0
- package/ui/patterns/ActivityPattern/ActivityPattern.tsx +120 -0
- package/ui/patterns/ActivityPattern/ActivityTasks.tsx +86 -0
- package/ui/patterns/ActivityPattern/TaskDrawer.module.css +39 -0
- package/ui/patterns/ActivityPattern/TaskDrawer.tsx +186 -0
- package/ui/patterns/ActivityPattern/index.ts +2 -0
- package/ui/patterns/AssistantWorkspacePattern/AssistantWorkspacePattern.module.css +16 -0
- package/ui/patterns/AssistantWorkspacePattern/AssistantWorkspacePattern.tsx +159 -0
- package/ui/patterns/AssistantWorkspacePattern/index.ts +2 -0
- package/ui/patterns/DashboardPattern/DashboardPattern.tsx +102 -0
- package/ui/patterns/DashboardPattern/index.ts +1 -0
- package/ui/patterns/DashboardPattern/patterns.module.css +6 -0
- package/ui/patterns/EmptyFirstRunPattern/EmptyFirstRunPattern.tsx +125 -0
- package/ui/patterns/EmptyFirstRunPattern/index.ts +2 -0
- package/ui/patterns/InboxPattern/InboxPattern.module.css +40 -0
- package/ui/patterns/InboxPattern/InboxPattern.tsx +192 -0
- package/ui/patterns/InboxPattern/InboxReplyDrawer.tsx +97 -0
- package/ui/patterns/InboxPattern/inbox-data.ts +101 -0
- package/ui/patterns/InboxPattern/index.ts +2 -0
- package/ui/patterns/InviteMembersPattern/InviteMembersPattern.tsx +148 -0
- package/ui/patterns/InviteMembersPattern/index.ts +2 -0
- package/ui/patterns/ListDetailPattern/ListDetailPattern.module.css +34 -0
- package/ui/patterns/ListDetailPattern/ListDetailPattern.tsx +145 -0
- package/ui/patterns/ListDetailPattern/index.ts +2 -0
- package/ui/patterns/SettingsFormPattern/SettingsFormPattern.module.css +12 -0
- package/ui/patterns/SettingsFormPattern/SettingsFormPattern.tsx +89 -0
- package/ui/patterns/SettingsFormPattern/index.ts +3 -0
- package/ui/shared/ChartFrame.module.css +295 -0
- package/ui/shared/ChartFrame.tsx +87 -0
- package/ui/shared/chartMath.ts +228 -0
- package/ui/shared/controls.module.css +48 -0
- package/ui/shared/useChartSize.ts +22 -0
|
@@ -0,0 +1,149 @@
|
|
|
1
|
+
.panel {
|
|
2
|
+
box-sizing: border-box;
|
|
3
|
+
display: grid;
|
|
4
|
+
grid-template-rows: auto minmax(0, 1fr) auto auto;
|
|
5
|
+
width: 100%;
|
|
6
|
+
min-block-size: 32rem;
|
|
7
|
+
block-size: 100%;
|
|
8
|
+
max-block-size: 100%;
|
|
9
|
+
overflow: hidden;
|
|
10
|
+
border: var(--border-width-thin) solid var(--border-faint);
|
|
11
|
+
border-radius: var(--radius-surface-lg);
|
|
12
|
+
background: var(--surface-card);
|
|
13
|
+
color: var(--text-primary);
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.radiusNone {
|
|
17
|
+
border-radius: var(--radius-0);
|
|
18
|
+
border-block-width: 0;
|
|
19
|
+
border-inline-end-width: 0;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.header {
|
|
23
|
+
display: flex;
|
|
24
|
+
align-items: center;
|
|
25
|
+
gap: var(--space-2);
|
|
26
|
+
padding: var(--space-3) var(--space-4);
|
|
27
|
+
background: var(--fill-brand-subtle);
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.identity {
|
|
31
|
+
flex: 1;
|
|
32
|
+
display: grid;
|
|
33
|
+
gap: var(--space-1);
|
|
34
|
+
min-width: 0;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.title {
|
|
38
|
+
margin: 0;
|
|
39
|
+
font-family: var(--font-sans);
|
|
40
|
+
font-size: var(--type-size-label);
|
|
41
|
+
font-weight: var(--type-weight-heading);
|
|
42
|
+
color: var(--text-primary);
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.status {
|
|
46
|
+
display: inline-flex;
|
|
47
|
+
align-items: center;
|
|
48
|
+
gap: var(--space-1);
|
|
49
|
+
font-family: var(--font-sans);
|
|
50
|
+
font-size: var(--type-size-caption);
|
|
51
|
+
color: var(--text-secondary);
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
.statusDot {
|
|
55
|
+
width: var(--space-1);
|
|
56
|
+
height: var(--space-1);
|
|
57
|
+
border-radius: var(--radius-full);
|
|
58
|
+
background: var(--status-success);
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
.headerActions {
|
|
62
|
+
display: flex;
|
|
63
|
+
flex: none;
|
|
64
|
+
align-items: center;
|
|
65
|
+
gap: var(--space-1);
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
.thread {
|
|
69
|
+
display: grid;
|
|
70
|
+
align-content: start;
|
|
71
|
+
gap: var(--space-4);
|
|
72
|
+
min-block-size: 0;
|
|
73
|
+
padding: var(--space-4);
|
|
74
|
+
overflow-y: auto;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
.empty {
|
|
78
|
+
margin: 0;
|
|
79
|
+
color: var(--text-muted);
|
|
80
|
+
font-family: var(--font-sans);
|
|
81
|
+
font-size: var(--type-size-body-sm);
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
.message {
|
|
85
|
+
display: flex;
|
|
86
|
+
align-items: flex-start;
|
|
87
|
+
gap: var(--space-3);
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
.messageUser {
|
|
91
|
+
justify-content: flex-end;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
.messageAssistant {
|
|
95
|
+
justify-content: flex-start;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
.mark {
|
|
99
|
+
flex: none;
|
|
100
|
+
width: var(--space-5);
|
|
101
|
+
height: var(--space-5);
|
|
102
|
+
border-radius: var(--radius-full);
|
|
103
|
+
background: var(--fill-brand);
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
.body {
|
|
107
|
+
display: grid;
|
|
108
|
+
gap: var(--space-1);
|
|
109
|
+
min-width: 0;
|
|
110
|
+
max-width: 85%;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
.copy {
|
|
114
|
+
margin: 0;
|
|
115
|
+
font-family: var(--font-sans);
|
|
116
|
+
font-size: var(--type-size-body-sm);
|
|
117
|
+
line-height: var(--type-line-body);
|
|
118
|
+
color: var(--text-primary);
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
.messageUser .copy {
|
|
122
|
+
text-align: right;
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
.timestamp {
|
|
126
|
+
font-family: var(--font-sans);
|
|
127
|
+
font-size: var(--type-size-caption);
|
|
128
|
+
color: var(--text-muted);
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
.messageUser .timestamp {
|
|
132
|
+
text-align: right;
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
.suggestions {
|
|
136
|
+
display: flex;
|
|
137
|
+
flex-wrap: wrap;
|
|
138
|
+
gap: var(--space-2);
|
|
139
|
+
padding: 0 var(--space-4) var(--space-3);
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
.composer {
|
|
143
|
+
display: grid;
|
|
144
|
+
grid-template-columns: minmax(0, 1fr) auto;
|
|
145
|
+
gap: var(--space-2);
|
|
146
|
+
align-items: center;
|
|
147
|
+
padding: var(--space-3) var(--space-4) var(--space-4);
|
|
148
|
+
border-top: var(--border-width-thin) solid var(--border-faint);
|
|
149
|
+
}
|
package/ui/Chat/Chat.tsx
ADDED
|
@@ -0,0 +1,175 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
|
|
3
|
+
import { useEffect, useId, useRef, useState } from "react";
|
|
4
|
+
import { Button } from "../Button";
|
|
5
|
+
import { DropdownMenu } from "../DropdownMenu";
|
|
6
|
+
import { Input } from "../Input";
|
|
7
|
+
import { ThinkingAnimation } from "../ThinkingAnimation";
|
|
8
|
+
import type { ChatProps } from "./Chat.types";
|
|
9
|
+
import styles from "./Chat.module.css";
|
|
10
|
+
|
|
11
|
+
export type { ChatMessage, ChatMessageRole, ChatMenuItem, ChatProps, ChatRadius } from "./Chat.types";
|
|
12
|
+
|
|
13
|
+
export function Chat({
|
|
14
|
+
title = "Assistant",
|
|
15
|
+
status,
|
|
16
|
+
messages = [],
|
|
17
|
+
suggestions = [],
|
|
18
|
+
placeholder = "How can we help you?",
|
|
19
|
+
emptyState = "Start a conversation.",
|
|
20
|
+
isThinking = false,
|
|
21
|
+
disabled = false,
|
|
22
|
+
value,
|
|
23
|
+
defaultValue = "",
|
|
24
|
+
onValueChange,
|
|
25
|
+
onSend,
|
|
26
|
+
onClose,
|
|
27
|
+
closeLabel = "Close",
|
|
28
|
+
menuItems = [],
|
|
29
|
+
menuLabel = "More",
|
|
30
|
+
radius = "lg",
|
|
31
|
+
className = "",
|
|
32
|
+
}: ChatProps) {
|
|
33
|
+
const [internalValue, setInternalValue] = useState(defaultValue);
|
|
34
|
+
const threadRef = useRef<HTMLDivElement>(null);
|
|
35
|
+
const inputId = useId();
|
|
36
|
+
const draft = value ?? internalValue;
|
|
37
|
+
|
|
38
|
+
useEffect(() => {
|
|
39
|
+
const thread = threadRef.current;
|
|
40
|
+
if (!thread) return;
|
|
41
|
+
thread.scrollTop = thread.scrollHeight;
|
|
42
|
+
}, [isThinking, messages.length]);
|
|
43
|
+
|
|
44
|
+
function updateDraft(nextValue: string) {
|
|
45
|
+
if (value === undefined) setInternalValue(nextValue);
|
|
46
|
+
onValueChange?.(nextValue);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
function sendMessage(message = draft) {
|
|
50
|
+
const nextMessage = message.trim();
|
|
51
|
+
if (!nextMessage || disabled) return;
|
|
52
|
+
onSend?.(nextMessage);
|
|
53
|
+
updateDraft("");
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
return (
|
|
57
|
+
<section
|
|
58
|
+
className={`${styles.panel} ${radius === "none" ? styles.radiusNone : ""} ${className}`.trim()}
|
|
59
|
+
aria-label={title}
|
|
60
|
+
>
|
|
61
|
+
<header className={styles.header}>
|
|
62
|
+
<span className={styles.identity}>
|
|
63
|
+
<span className={styles.title}>{title}</span>
|
|
64
|
+
{status ? (
|
|
65
|
+
<span className={styles.status}>
|
|
66
|
+
<span className={styles.statusDot} aria-hidden="true" />
|
|
67
|
+
{status}
|
|
68
|
+
</span>
|
|
69
|
+
) : null}
|
|
70
|
+
</span>
|
|
71
|
+
<div className={styles.headerActions}>
|
|
72
|
+
{menuItems.length > 0 ? (
|
|
73
|
+
<DropdownMenu
|
|
74
|
+
ariaLabel={menuLabel}
|
|
75
|
+
iconStart="MoreHorizontal"
|
|
76
|
+
variant="tertiary"
|
|
77
|
+
size="sm"
|
|
78
|
+
align="end"
|
|
79
|
+
groups={[
|
|
80
|
+
{
|
|
81
|
+
items: menuItems.map((item, index) => ({
|
|
82
|
+
id: item.id ?? `${item.label}-${index}`,
|
|
83
|
+
label: item.label,
|
|
84
|
+
danger: item.tone === "danger",
|
|
85
|
+
})),
|
|
86
|
+
},
|
|
87
|
+
]}
|
|
88
|
+
onSelect={(id) => {
|
|
89
|
+
const item = menuItems.find((entry, index) => (entry.id ?? `${entry.label}-${index}`) === id);
|
|
90
|
+
item?.onSelect?.();
|
|
91
|
+
}}
|
|
92
|
+
/>
|
|
93
|
+
) : null}
|
|
94
|
+
{onClose ? (
|
|
95
|
+
<Button type="button" variant="tertiary" size="sm" iconStart="X" ariaLabel={closeLabel} onClick={onClose} />
|
|
96
|
+
) : null}
|
|
97
|
+
</div>
|
|
98
|
+
</header>
|
|
99
|
+
|
|
100
|
+
<div
|
|
101
|
+
ref={threadRef}
|
|
102
|
+
className={styles.thread}
|
|
103
|
+
role="log"
|
|
104
|
+
aria-label="Conversation"
|
|
105
|
+
aria-live="polite"
|
|
106
|
+
aria-busy={isThinking}
|
|
107
|
+
>
|
|
108
|
+
{messages.length === 0 && !isThinking ? <p className={styles.empty}>{emptyState}</p> : null}
|
|
109
|
+
{messages.map((message, index) => {
|
|
110
|
+
const isUser = message.role === "user";
|
|
111
|
+
return (
|
|
112
|
+
<article
|
|
113
|
+
key={message.id ?? index}
|
|
114
|
+
className={`${styles.message} ${isUser ? styles.messageUser : styles.messageAssistant}`}
|
|
115
|
+
>
|
|
116
|
+
{isUser ? null : <span className={styles.mark} aria-hidden="true" />}
|
|
117
|
+
<div className={styles.body}>
|
|
118
|
+
<p className={styles.copy}>{message.content}</p>
|
|
119
|
+
{message.timestamp ? <span className={styles.timestamp}>{message.timestamp}</span> : null}
|
|
120
|
+
</div>
|
|
121
|
+
</article>
|
|
122
|
+
);
|
|
123
|
+
})}
|
|
124
|
+
{isThinking ? (
|
|
125
|
+
<div className={`${styles.message} ${styles.messageAssistant}`}>
|
|
126
|
+
<span className={styles.mark} aria-hidden="true" />
|
|
127
|
+
<ThinkingAnimation label="Thinking" size="md" />
|
|
128
|
+
</div>
|
|
129
|
+
) : null}
|
|
130
|
+
</div>
|
|
131
|
+
|
|
132
|
+
{suggestions.length > 0 ? (
|
|
133
|
+
<div className={styles.suggestions} aria-label="Suggested prompts">
|
|
134
|
+
{suggestions.map((suggestion) => (
|
|
135
|
+
<Button
|
|
136
|
+
key={suggestion}
|
|
137
|
+
type="button"
|
|
138
|
+
variant="tertiary"
|
|
139
|
+
size="sm"
|
|
140
|
+
disabled={disabled}
|
|
141
|
+
onClick={() => sendMessage(suggestion)}
|
|
142
|
+
>
|
|
143
|
+
{suggestion}
|
|
144
|
+
</Button>
|
|
145
|
+
))}
|
|
146
|
+
</div>
|
|
147
|
+
) : null}
|
|
148
|
+
|
|
149
|
+
<form
|
|
150
|
+
className={styles.composer}
|
|
151
|
+
onSubmit={(event) => {
|
|
152
|
+
event.preventDefault();
|
|
153
|
+
sendMessage();
|
|
154
|
+
}}
|
|
155
|
+
>
|
|
156
|
+
<Input
|
|
157
|
+
id={inputId}
|
|
158
|
+
value={draft}
|
|
159
|
+
placeholder={placeholder}
|
|
160
|
+
ariaLabel={placeholder}
|
|
161
|
+
disabled={disabled}
|
|
162
|
+
onChange={updateDraft}
|
|
163
|
+
/>
|
|
164
|
+
<Button
|
|
165
|
+
type="submit"
|
|
166
|
+
variant="primary"
|
|
167
|
+
size="md"
|
|
168
|
+
ariaLabel="Send"
|
|
169
|
+
disabled={disabled || !draft.trim()}
|
|
170
|
+
iconStart="Send"
|
|
171
|
+
/>
|
|
172
|
+
</form>
|
|
173
|
+
</section>
|
|
174
|
+
);
|
|
175
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
export type ChatMessageRole = "user" | "assistant";
|
|
2
|
+
|
|
3
|
+
export interface ChatMessage {
|
|
4
|
+
id?: string;
|
|
5
|
+
role: ChatMessageRole;
|
|
6
|
+
content: string;
|
|
7
|
+
timestamp?: string;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
export interface ChatMenuItem {
|
|
11
|
+
id?: string;
|
|
12
|
+
label: string;
|
|
13
|
+
tone?: "default" | "danger";
|
|
14
|
+
onSelect?: () => void;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export type ChatRadius = "lg" | "none";
|
|
18
|
+
|
|
19
|
+
export interface ChatProps {
|
|
20
|
+
title?: string;
|
|
21
|
+
status?: string;
|
|
22
|
+
messages?: ChatMessage[];
|
|
23
|
+
suggestions?: string[];
|
|
24
|
+
placeholder?: string;
|
|
25
|
+
emptyState?: string;
|
|
26
|
+
isThinking?: boolean;
|
|
27
|
+
disabled?: boolean;
|
|
28
|
+
value?: string;
|
|
29
|
+
defaultValue?: string;
|
|
30
|
+
onValueChange?: (value: string) => void;
|
|
31
|
+
onSend?: (message: string) => void;
|
|
32
|
+
onClose?: () => void;
|
|
33
|
+
closeLabel?: string;
|
|
34
|
+
menuItems?: ChatMenuItem[];
|
|
35
|
+
menuLabel?: string;
|
|
36
|
+
/** `lg` is the standalone card. `none` squares the panel and drops the outer block/end borders so Chat can sit flush in a workspace rail. */
|
|
37
|
+
radius?: ChatRadius;
|
|
38
|
+
className?: string;
|
|
39
|
+
}
|
package/ui/Chat/index.ts
ADDED
|
@@ -0,0 +1,135 @@
|
|
|
1
|
+
.label {
|
|
2
|
+
position: relative;
|
|
3
|
+
display: inline-flex;
|
|
4
|
+
align-items: center;
|
|
5
|
+
gap: var(--space-2);
|
|
6
|
+
cursor: pointer;
|
|
7
|
+
font-family: var(--font-sans);
|
|
8
|
+
font-weight: var(--type-weight-body);
|
|
9
|
+
color: var(--text-primary);
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
.label[data-disabled] {
|
|
13
|
+
opacity: 0.5;
|
|
14
|
+
cursor: not-allowed;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.input {
|
|
18
|
+
appearance: none;
|
|
19
|
+
position: absolute;
|
|
20
|
+
left: 0;
|
|
21
|
+
top: 50%;
|
|
22
|
+
transform: translateY(-50%);
|
|
23
|
+
margin: 0;
|
|
24
|
+
opacity: 0;
|
|
25
|
+
cursor: pointer;
|
|
26
|
+
z-index: 1;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.label[data-disabled] .input {
|
|
30
|
+
cursor: not-allowed;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.box {
|
|
34
|
+
position: relative;
|
|
35
|
+
display: inline-flex;
|
|
36
|
+
align-items: center;
|
|
37
|
+
justify-content: center;
|
|
38
|
+
flex-shrink: 0;
|
|
39
|
+
box-sizing: border-box;
|
|
40
|
+
border: var(--border-width-thin) solid var(--border-strong);
|
|
41
|
+
border-radius: var(--radius-control-sm);
|
|
42
|
+
background-color: var(--surface-card);
|
|
43
|
+
color: var(--action-on-primary);
|
|
44
|
+
transition:
|
|
45
|
+
border-color var(--motion-interaction-duration) var(--motion-interaction-easing),
|
|
46
|
+
background var(--motion-interaction-duration) var(--motion-interaction-easing),
|
|
47
|
+
color var(--motion-interaction-duration) var(--motion-interaction-easing);
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
.icon {
|
|
51
|
+
position: absolute;
|
|
52
|
+
inset: 0;
|
|
53
|
+
width: 100%;
|
|
54
|
+
height: 100%;
|
|
55
|
+
padding: 0.12rem;
|
|
56
|
+
transform-origin: center;
|
|
57
|
+
transform: scale(0);
|
|
58
|
+
opacity: 0;
|
|
59
|
+
transition:
|
|
60
|
+
transform var(--motion-expand-duration) var(--motion-ease-spring),
|
|
61
|
+
opacity var(--motion-interaction-duration) var(--motion-interaction-easing);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
.sm {
|
|
65
|
+
font-size: var(--type-size-caption);
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
.md {
|
|
69
|
+
font-size: var(--type-size-body-sm);
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
.lg {
|
|
73
|
+
font-size: var(--type-size-body);
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
.sm .input,
|
|
77
|
+
.sm .box {
|
|
78
|
+
width: 1rem;
|
|
79
|
+
height: 1rem;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
.md .input,
|
|
83
|
+
.md .box {
|
|
84
|
+
width: 1.15rem;
|
|
85
|
+
height: 1.15rem;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
.lg .input,
|
|
89
|
+
.lg .box {
|
|
90
|
+
width: 1.25rem;
|
|
91
|
+
height: 1.25rem;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
.input:checked + .box,
|
|
95
|
+
.input:indeterminate + .box {
|
|
96
|
+
background-color: var(--action-primary);
|
|
97
|
+
border-color: var(--action-primary);
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
.input:checked + .box .icon,
|
|
101
|
+
.input:indeterminate + .box .icon {
|
|
102
|
+
transform: scale(1);
|
|
103
|
+
opacity: 1;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
.label[data-error] .box {
|
|
107
|
+
border-color: var(--status-danger);
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
.label[data-error] .input:checked + .box,
|
|
111
|
+
.label[data-error] .input:indeterminate + .box {
|
|
112
|
+
background-color: var(--action-primary);
|
|
113
|
+
border-color: var(--status-danger);
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
.input:focus-visible + .box {
|
|
117
|
+
outline: var(--border-focus-width) solid var(--focus-ring);
|
|
118
|
+
outline-offset: var(--space-inset-2xs);
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
.text {
|
|
122
|
+
line-height: var(--type-line-body);
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
@media (prefers-reduced-motion: reduce) {
|
|
126
|
+
.box,
|
|
127
|
+
.icon {
|
|
128
|
+
transition: none;
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
.input:checked + .box .icon,
|
|
132
|
+
.input:indeterminate + .box .icon {
|
|
133
|
+
transform: none;
|
|
134
|
+
}
|
|
135
|
+
}
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
|
|
3
|
+
import { useEffect, useRef, useState } from "react";
|
|
4
|
+
import { Check, Minus } from "lucide-react";
|
|
5
|
+
import type { CheckboxProps } from "./Checkbox.types";
|
|
6
|
+
import styles from "./Checkbox.module.css";
|
|
7
|
+
|
|
8
|
+
export type { CheckboxProps, CheckboxSize } from "./Checkbox.types";
|
|
9
|
+
|
|
10
|
+
const ICON_SIZE = { sm: 12, md: 14, lg: 16 } as const;
|
|
11
|
+
|
|
12
|
+
export function Checkbox({
|
|
13
|
+
id,
|
|
14
|
+
label,
|
|
15
|
+
ariaLabel,
|
|
16
|
+
size = "md",
|
|
17
|
+
disabled = false,
|
|
18
|
+
error = false,
|
|
19
|
+
checked,
|
|
20
|
+
defaultChecked = false,
|
|
21
|
+
indeterminate = false,
|
|
22
|
+
onChange,
|
|
23
|
+
name,
|
|
24
|
+
}: CheckboxProps) {
|
|
25
|
+
const inputRef = useRef<HTMLInputElement>(null);
|
|
26
|
+
const isControlled = typeof checked === "boolean";
|
|
27
|
+
const [uncontrolledChecked, setUncontrolledChecked] = useState(defaultChecked);
|
|
28
|
+
const isChecked = isControlled ? checked : uncontrolledChecked;
|
|
29
|
+
const iconPx = ICON_SIZE[size];
|
|
30
|
+
|
|
31
|
+
useEffect(() => {
|
|
32
|
+
const el = inputRef.current;
|
|
33
|
+
if (el) el.indeterminate = Boolean(indeterminate);
|
|
34
|
+
}, [indeterminate]);
|
|
35
|
+
|
|
36
|
+
return (
|
|
37
|
+
<label
|
|
38
|
+
className={`${styles.label} ${styles[size]}`}
|
|
39
|
+
htmlFor={id}
|
|
40
|
+
data-disabled={disabled || undefined}
|
|
41
|
+
data-error={error || undefined}
|
|
42
|
+
>
|
|
43
|
+
<input
|
|
44
|
+
ref={inputRef}
|
|
45
|
+
className={styles.input}
|
|
46
|
+
type="checkbox"
|
|
47
|
+
id={id}
|
|
48
|
+
name={name}
|
|
49
|
+
disabled={disabled}
|
|
50
|
+
checked={isControlled ? checked : undefined}
|
|
51
|
+
defaultChecked={isControlled ? undefined : defaultChecked}
|
|
52
|
+
onChange={(event) => {
|
|
53
|
+
if (!isControlled) setUncontrolledChecked(event.target.checked);
|
|
54
|
+
onChange?.(event.target.checked);
|
|
55
|
+
}}
|
|
56
|
+
aria-label={label ? undefined : ariaLabel}
|
|
57
|
+
aria-invalid={error || undefined}
|
|
58
|
+
aria-checked={indeterminate ? "mixed" : undefined}
|
|
59
|
+
/>
|
|
60
|
+
<span className={styles.box} aria-hidden>
|
|
61
|
+
{indeterminate ? (
|
|
62
|
+
<Minus className={styles.icon} size={iconPx} strokeWidth={2.5} color="currentColor" />
|
|
63
|
+
) : isChecked ? (
|
|
64
|
+
<Check className={styles.icon} size={iconPx} strokeWidth={2.5} color="currentColor" />
|
|
65
|
+
) : null}
|
|
66
|
+
</span>
|
|
67
|
+
{label ? <span className={styles.text}>{label}</span> : null}
|
|
68
|
+
</label>
|
|
69
|
+
);
|
|
70
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export type CheckboxSize = "sm" | "md" | "lg";
|
|
2
|
+
|
|
3
|
+
export interface CheckboxProps {
|
|
4
|
+
id: string;
|
|
5
|
+
label?: string;
|
|
6
|
+
ariaLabel?: string;
|
|
7
|
+
size?: CheckboxSize;
|
|
8
|
+
disabled?: boolean;
|
|
9
|
+
error?: boolean;
|
|
10
|
+
checked?: boolean;
|
|
11
|
+
defaultChecked?: boolean;
|
|
12
|
+
indeterminate?: boolean;
|
|
13
|
+
onChange?: (checked: boolean) => void;
|
|
14
|
+
name?: string;
|
|
15
|
+
}
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
.root {
|
|
2
|
+
display: flex;
|
|
3
|
+
flex-direction: column;
|
|
4
|
+
width: 100%;
|
|
5
|
+
min-width: 0;
|
|
6
|
+
padding: var(--space-4);
|
|
7
|
+
gap: var(--space-3);
|
|
8
|
+
background-color: var(--surface-muted);
|
|
9
|
+
border: var(--border-width-thin) solid var(--border-faint);
|
|
10
|
+
border-radius: var(--radius-surface-md);
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.header {
|
|
14
|
+
display: flex;
|
|
15
|
+
align-items: center;
|
|
16
|
+
justify-content: space-between;
|
|
17
|
+
gap: var(--space-3);
|
|
18
|
+
min-width: 0;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.title {
|
|
22
|
+
min-width: 0;
|
|
23
|
+
margin: 0;
|
|
24
|
+
overflow-wrap: anywhere;
|
|
25
|
+
font-family: var(--font-sans);
|
|
26
|
+
font-size: var(--type-size-body);
|
|
27
|
+
font-weight: var(--type-weight-heading);
|
|
28
|
+
color: var(--text-primary);
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.toggle {
|
|
32
|
+
display: inline-flex;
|
|
33
|
+
align-items: center;
|
|
34
|
+
justify-content: center;
|
|
35
|
+
flex-shrink: 0;
|
|
36
|
+
margin: 0;
|
|
37
|
+
padding: var(--space-2);
|
|
38
|
+
color: var(--icon-muted);
|
|
39
|
+
background-color: var(--surface-card);
|
|
40
|
+
border: var(--border-width-thin) solid var(--border-faint);
|
|
41
|
+
border-radius: var(--radius-control-sm);
|
|
42
|
+
cursor: pointer;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.toggle:focus-visible {
|
|
46
|
+
outline: var(--border-focus-width) solid var(--focus-ring);
|
|
47
|
+
outline-offset: var(--space-inset-2xs);
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
.panel {
|
|
51
|
+
min-width: 0;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
.body {
|
|
55
|
+
display: flex;
|
|
56
|
+
flex-direction: column;
|
|
57
|
+
gap: var(--space-2);
|
|
58
|
+
min-width: 0;
|
|
59
|
+
margin: 0;
|
|
60
|
+
font-family: var(--font-sans);
|
|
61
|
+
font-size: var(--type-size-body-sm);
|
|
62
|
+
line-height: var(--type-line-body);
|
|
63
|
+
color: var(--text-primary);
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
.body p {
|
|
67
|
+
margin: 0;
|
|
68
|
+
}
|