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,68 @@
|
|
|
1
|
+
|
|
2
|
+
.root {
|
|
3
|
+
display: flex;
|
|
4
|
+
flex-direction: column;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
.item {
|
|
8
|
+
border-bottom: var(--border-divider) solid var(--border-faint);
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.item:first-child {
|
|
12
|
+
border-top: var(--border-divider) solid var(--border-faint);
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.trigger {
|
|
16
|
+
display: flex;
|
|
17
|
+
align-items: center;
|
|
18
|
+
justify-content: space-between;
|
|
19
|
+
gap: var(--space-3);
|
|
20
|
+
width: 100%;
|
|
21
|
+
margin: 0;
|
|
22
|
+
padding: var(--space-4) 0;
|
|
23
|
+
border: 0;
|
|
24
|
+
background: transparent;
|
|
25
|
+
color: var(--text-primary);
|
|
26
|
+
cursor: pointer;
|
|
27
|
+
text-align: left;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.trigger:focus-visible {
|
|
31
|
+
outline: var(--border-focus-width) solid var(--focus-ring);
|
|
32
|
+
outline-offset: var(--space-inset-2xs);
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.title {
|
|
36
|
+
font-family: var(--font-sans);
|
|
37
|
+
font-size: var(--type-size-body);
|
|
38
|
+
font-weight: var(--type-weight-heading);
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
.chevron {
|
|
42
|
+
flex-shrink: 0;
|
|
43
|
+
color: var(--icon-muted);
|
|
44
|
+
transition: transform var(--motion-expand-duration) var(--motion-ease-out);
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
.chevronOpen {
|
|
48
|
+
transform: rotate(180deg);
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
.panel {
|
|
52
|
+
padding: 0 0 var(--space-4);
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
.body {
|
|
56
|
+
margin: 0;
|
|
57
|
+
padding-top: var(--space-1);
|
|
58
|
+
font-family: var(--font-sans);
|
|
59
|
+
font-size: var(--type-size-body-sm);
|
|
60
|
+
line-height: var(--type-line-body);
|
|
61
|
+
color: var(--text-primary);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
@media (prefers-reduced-motion: reduce) {
|
|
65
|
+
.chevron {
|
|
66
|
+
transition: none;
|
|
67
|
+
}
|
|
68
|
+
}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
|
|
3
|
+
import { useState } from "react";
|
|
4
|
+
import { ChevronDown } from "lucide-react";
|
|
5
|
+
import type { AccordionProps } from "./Accordion.types";
|
|
6
|
+
import styles from "./Accordion.module.css";
|
|
7
|
+
|
|
8
|
+
export type { AccordionProps, AccordionItem } from "./Accordion.types";
|
|
9
|
+
|
|
10
|
+
export function Accordion({ items, defaultOpen }: AccordionProps) {
|
|
11
|
+
const [openId, setOpenId] = useState<string | null>(defaultOpen ?? null);
|
|
12
|
+
|
|
13
|
+
return (
|
|
14
|
+
<div className={styles.root}>
|
|
15
|
+
{items.map((item) => {
|
|
16
|
+
const open = openId === item.id;
|
|
17
|
+
const panelId = `accordion-panel-${item.id}`;
|
|
18
|
+
const buttonId = `accordion-button-${item.id}`;
|
|
19
|
+
return (
|
|
20
|
+
<div key={item.id} className={styles.item}>
|
|
21
|
+
<button
|
|
22
|
+
type="button"
|
|
23
|
+
id={buttonId}
|
|
24
|
+
className={`${styles.trigger} ${open ? styles.triggerOpen : ""}`}
|
|
25
|
+
aria-expanded={open}
|
|
26
|
+
aria-controls={panelId}
|
|
27
|
+
onClick={() => setOpenId((current) => (current === item.id ? null : item.id))}
|
|
28
|
+
>
|
|
29
|
+
<span className={styles.title}>{item.title}</span>
|
|
30
|
+
<ChevronDown
|
|
31
|
+
className={`${styles.chevron} ${open ? styles.chevronOpen : ""}`}
|
|
32
|
+
size={16}
|
|
33
|
+
strokeWidth={2}
|
|
34
|
+
aria-hidden
|
|
35
|
+
/>
|
|
36
|
+
</button>
|
|
37
|
+
<div
|
|
38
|
+
id={panelId}
|
|
39
|
+
role="region"
|
|
40
|
+
aria-labelledby={buttonId}
|
|
41
|
+
className={styles.panel}
|
|
42
|
+
hidden={!open}
|
|
43
|
+
>
|
|
44
|
+
<p className={styles.body}>{item.content}</p>
|
|
45
|
+
</div>
|
|
46
|
+
</div>
|
|
47
|
+
);
|
|
48
|
+
})}
|
|
49
|
+
</div>
|
|
50
|
+
);
|
|
51
|
+
}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
|
|
2
|
+
.alert {
|
|
3
|
+
display: grid;
|
|
4
|
+
grid-template-columns: auto 1fr;
|
|
5
|
+
gap: var(--space-3);
|
|
6
|
+
padding: var(--space-3) var(--space-4);
|
|
7
|
+
border: var(--border-100) solid var(--status-info-border);
|
|
8
|
+
border-radius: var(--radius-surface-sm);
|
|
9
|
+
background: var(--status-info-subtle);
|
|
10
|
+
color: var(--status-info);
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.success {
|
|
14
|
+
border-color: var(--status-success-border);
|
|
15
|
+
background: var(--status-success-subtle);
|
|
16
|
+
color: var(--status-success);
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.warning {
|
|
20
|
+
border-color: var(--status-warning-border);
|
|
21
|
+
background: var(--status-warning-subtle);
|
|
22
|
+
color: var(--status-warning);
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.danger {
|
|
26
|
+
border-color: var(--status-danger-border);
|
|
27
|
+
background: var(--status-danger-subtle);
|
|
28
|
+
color: var(--status-danger);
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.icon {
|
|
32
|
+
margin-top: 0.1rem;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.copy {
|
|
36
|
+
display: grid;
|
|
37
|
+
gap: 0.15rem;
|
|
38
|
+
min-width: 0;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
.title {
|
|
42
|
+
margin: 0;
|
|
43
|
+
font-family: var(--font-sans);
|
|
44
|
+
font-size: var(--type-size-label);
|
|
45
|
+
font-weight: var(--type-weight-label);
|
|
46
|
+
color: inherit;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
.body {
|
|
50
|
+
margin: 0;
|
|
51
|
+
font-family: var(--font-sans);
|
|
52
|
+
font-size: var(--type-size-body-sm);
|
|
53
|
+
line-height: var(--type-line-body);
|
|
54
|
+
color: var(--text-primary);
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
.info .body,
|
|
58
|
+
.success .body,
|
|
59
|
+
.warning .body,
|
|
60
|
+
.danger .body {
|
|
61
|
+
color: var(--text-primary);
|
|
62
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { CircleAlert, CircleCheck, Info, TriangleAlert } from "lucide-react";
|
|
2
|
+
import type { AlertProps, AlertVariant } from "./Alert.types";
|
|
3
|
+
import styles from "./Alert.module.css";
|
|
4
|
+
|
|
5
|
+
export type { AlertProps, AlertVariant } from "./Alert.types";
|
|
6
|
+
|
|
7
|
+
const ICONS: Record<AlertVariant, typeof Info> = {
|
|
8
|
+
info: Info,
|
|
9
|
+
success: CircleCheck,
|
|
10
|
+
warning: TriangleAlert,
|
|
11
|
+
danger: CircleAlert,
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
export function Alert({ children, variant = "info", title }: AlertProps) {
|
|
15
|
+
const Icon = ICONS[variant];
|
|
16
|
+
const role = variant === "warning" || variant === "danger" ? "alert" : "status";
|
|
17
|
+
|
|
18
|
+
return (
|
|
19
|
+
<div className={`${styles.alert} ${styles[variant]}`} role={role}>
|
|
20
|
+
<Icon className={styles.icon} size={18} strokeWidth={2} aria-hidden />
|
|
21
|
+
<div className={styles.copy}>
|
|
22
|
+
{title ? <p className={styles.title}>{title}</p> : null}
|
|
23
|
+
<p className={styles.body}>{children}</p>
|
|
24
|
+
</div>
|
|
25
|
+
</div>
|
|
26
|
+
);
|
|
27
|
+
}
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
.overlay {
|
|
2
|
+
position: fixed;
|
|
3
|
+
inset: 0;
|
|
4
|
+
z-index: var(--z-overlay);
|
|
5
|
+
display: flex;
|
|
6
|
+
align-items: center;
|
|
7
|
+
justify-content: center;
|
|
8
|
+
padding: var(--space-4);
|
|
9
|
+
background-color: var(--surface-overlay);
|
|
10
|
+
animation: overlayEnter var(--motion-overlay-duration) var(--motion-overlay-easing);
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.dialog {
|
|
14
|
+
z-index: var(--z-modal);
|
|
15
|
+
width: 100%;
|
|
16
|
+
padding: var(--space-6);
|
|
17
|
+
background-color: var(--surface-elevated);
|
|
18
|
+
border: var(--border-width-thin) solid var(--border-faint);
|
|
19
|
+
border-radius: var(--radius-surface-md);
|
|
20
|
+
box-shadow: var(--shadow-md);
|
|
21
|
+
animation: dialogEnter var(--motion-modal-duration) var(--motion-modal-easing);
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.sm {
|
|
25
|
+
max-width: 20rem;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.md {
|
|
29
|
+
max-width: 28rem;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
.title {
|
|
33
|
+
margin: 0;
|
|
34
|
+
font-family: var(--font-sans);
|
|
35
|
+
font-size: var(--type-size-heading);
|
|
36
|
+
font-weight: var(--type-weight-heading);
|
|
37
|
+
line-height: var(--type-line-heading);
|
|
38
|
+
color: var(--text-primary);
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
.description {
|
|
42
|
+
margin: var(--space-3) 0 0;
|
|
43
|
+
font-family: var(--font-sans);
|
|
44
|
+
font-size: var(--type-size-body);
|
|
45
|
+
line-height: var(--type-line-body);
|
|
46
|
+
color: var(--text-muted);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
.footer {
|
|
50
|
+
display: flex;
|
|
51
|
+
justify-content: flex-end;
|
|
52
|
+
margin-top: var(--space-6);
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
@keyframes overlayEnter {
|
|
56
|
+
from {
|
|
57
|
+
opacity: var(--opacity-0);
|
|
58
|
+
}
|
|
59
|
+
to {
|
|
60
|
+
opacity: var(--opacity-full);
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
@keyframes dialogEnter {
|
|
65
|
+
from {
|
|
66
|
+
opacity: var(--opacity-0);
|
|
67
|
+
}
|
|
68
|
+
to {
|
|
69
|
+
opacity: var(--opacity-full);
|
|
70
|
+
}
|
|
71
|
+
}
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
|
|
3
|
+
import { useEffect, useId, useRef } from "react";
|
|
4
|
+
import { Button } from "../Button";
|
|
5
|
+
import { ButtonGroup } from "../ButtonGroup";
|
|
6
|
+
import type { AlertDialogProps } from "./AlertDialog.types";
|
|
7
|
+
import styles from "./AlertDialog.module.css";
|
|
8
|
+
|
|
9
|
+
export type { AlertDialogProps, AlertDialogActionVariant, AlertDialogSize } from "./AlertDialog.types";
|
|
10
|
+
|
|
11
|
+
export function AlertDialog({
|
|
12
|
+
open,
|
|
13
|
+
title,
|
|
14
|
+
description,
|
|
15
|
+
cancelLabel = "Cancel",
|
|
16
|
+
actionLabel,
|
|
17
|
+
actionVariant = "primary",
|
|
18
|
+
size = "md",
|
|
19
|
+
onCancel,
|
|
20
|
+
onAction,
|
|
21
|
+
}: AlertDialogProps) {
|
|
22
|
+
const titleId = useId();
|
|
23
|
+
const descriptionId = useId();
|
|
24
|
+
const dialogRef = useRef<HTMLDivElement>(null);
|
|
25
|
+
const cancelRef = useRef<HTMLButtonElement | null>(null);
|
|
26
|
+
const onCancelRef = useRef(onCancel);
|
|
27
|
+
|
|
28
|
+
onCancelRef.current = onCancel;
|
|
29
|
+
|
|
30
|
+
useEffect(() => {
|
|
31
|
+
if (!open) return;
|
|
32
|
+
|
|
33
|
+
const root = dialogRef.current;
|
|
34
|
+
if (!root) return;
|
|
35
|
+
|
|
36
|
+
const cancelButton = root.querySelector<HTMLButtonElement>("button");
|
|
37
|
+
cancelRef.current = cancelButton;
|
|
38
|
+
cancelButton?.focus();
|
|
39
|
+
|
|
40
|
+
const onKeyDown = (event: KeyboardEvent) => {
|
|
41
|
+
if (event.key === "Escape") {
|
|
42
|
+
event.preventDefault();
|
|
43
|
+
onCancelRef.current();
|
|
44
|
+
return;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
if (event.key !== "Tab") return;
|
|
48
|
+
|
|
49
|
+
const buttons = Array.from(root.querySelectorAll<HTMLButtonElement>("button"));
|
|
50
|
+
if (buttons.length === 0) return;
|
|
51
|
+
|
|
52
|
+
const first = buttons[0];
|
|
53
|
+
const last = buttons[buttons.length - 1];
|
|
54
|
+
const active = document.activeElement;
|
|
55
|
+
const inside = active instanceof Node && root.contains(active);
|
|
56
|
+
|
|
57
|
+
if (event.shiftKey) {
|
|
58
|
+
if (!inside || active === first) {
|
|
59
|
+
event.preventDefault();
|
|
60
|
+
last.focus();
|
|
61
|
+
}
|
|
62
|
+
} else if (!inside || active === last) {
|
|
63
|
+
event.preventDefault();
|
|
64
|
+
first.focus();
|
|
65
|
+
}
|
|
66
|
+
};
|
|
67
|
+
|
|
68
|
+
document.addEventListener("keydown", onKeyDown);
|
|
69
|
+
return () => document.removeEventListener("keydown", onKeyDown);
|
|
70
|
+
}, [open]);
|
|
71
|
+
|
|
72
|
+
if (!open) return null;
|
|
73
|
+
|
|
74
|
+
return (
|
|
75
|
+
<div
|
|
76
|
+
className={styles.overlay}
|
|
77
|
+
role="presentation"
|
|
78
|
+
onMouseDown={(event) => {
|
|
79
|
+
if (event.target === event.currentTarget) event.preventDefault();
|
|
80
|
+
}}
|
|
81
|
+
>
|
|
82
|
+
<div
|
|
83
|
+
ref={dialogRef}
|
|
84
|
+
role="alertdialog"
|
|
85
|
+
aria-modal="true"
|
|
86
|
+
aria-labelledby={titleId}
|
|
87
|
+
aria-describedby={descriptionId}
|
|
88
|
+
className={`${styles.dialog} ${styles[size]}`}
|
|
89
|
+
>
|
|
90
|
+
<h2 id={titleId} className={styles.title}>
|
|
91
|
+
{title}
|
|
92
|
+
</h2>
|
|
93
|
+
<p id={descriptionId} className={styles.description}>
|
|
94
|
+
{description}
|
|
95
|
+
</p>
|
|
96
|
+
<div className={styles.footer}>
|
|
97
|
+
<ButtonGroup ariaLabel="Dialog actions">
|
|
98
|
+
<Button variant="secondary" size="md" onClick={onCancel}>
|
|
99
|
+
{cancelLabel}
|
|
100
|
+
</Button>
|
|
101
|
+
<Button variant={actionVariant} size="md" onClick={onAction}>
|
|
102
|
+
{actionLabel}
|
|
103
|
+
</Button>
|
|
104
|
+
</ButtonGroup>
|
|
105
|
+
</div>
|
|
106
|
+
</div>
|
|
107
|
+
</div>
|
|
108
|
+
);
|
|
109
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export type AlertDialogSize = "sm" | "md";
|
|
2
|
+
export type AlertDialogActionVariant = "primary" | "danger";
|
|
3
|
+
|
|
4
|
+
export interface AlertDialogProps {
|
|
5
|
+
open: boolean;
|
|
6
|
+
title: string;
|
|
7
|
+
description: string;
|
|
8
|
+
cancelLabel?: string;
|
|
9
|
+
actionLabel: string;
|
|
10
|
+
actionVariant?: AlertDialogActionVariant;
|
|
11
|
+
size?: AlertDialogSize;
|
|
12
|
+
onCancel: () => void;
|
|
13
|
+
onAction: () => void;
|
|
14
|
+
}
|
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
.header {
|
|
2
|
+
display: grid;
|
|
3
|
+
grid-template-columns: minmax(0, 1fr) minmax(0, var(--layout-rail)) minmax(0, 1fr);
|
|
4
|
+
align-items: center;
|
|
5
|
+
column-gap: var(--space-4);
|
|
6
|
+
box-sizing: border-box;
|
|
7
|
+
width: 100%;
|
|
8
|
+
min-width: 0;
|
|
9
|
+
min-height: calc(var(--space-10) + var(--space-2) + var(--space-2));
|
|
10
|
+
flex-shrink: 0;
|
|
11
|
+
padding: var(--space-2) var(--space-5);
|
|
12
|
+
border-bottom: var(--border-divider) solid var(--border-faint);
|
|
13
|
+
border-radius: var(--radius-0);
|
|
14
|
+
background: var(--surface-card);
|
|
15
|
+
color: var(--text-primary);
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.radiusMd {
|
|
19
|
+
border: var(--border-surface) solid var(--border-faint);
|
|
20
|
+
border-radius: var(--radius-surface-md);
|
|
21
|
+
overflow: hidden;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.start {
|
|
25
|
+
display: flex;
|
|
26
|
+
align-items: center;
|
|
27
|
+
gap: var(--space-3);
|
|
28
|
+
min-width: 0;
|
|
29
|
+
justify-self: start;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
.logo {
|
|
33
|
+
display: flex;
|
|
34
|
+
align-items: center;
|
|
35
|
+
flex-shrink: 0;
|
|
36
|
+
max-height: var(--space-8);
|
|
37
|
+
overflow: hidden;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.mark {
|
|
41
|
+
display: grid;
|
|
42
|
+
place-items: center;
|
|
43
|
+
flex-shrink: 0;
|
|
44
|
+
width: var(--space-8);
|
|
45
|
+
height: var(--space-8);
|
|
46
|
+
margin: 0;
|
|
47
|
+
border-radius: var(--radius-control-md);
|
|
48
|
+
background: var(--fill-brand);
|
|
49
|
+
color: var(--brand-on-brand);
|
|
50
|
+
font-family: var(--font-sans);
|
|
51
|
+
font-size: var(--type-size-label);
|
|
52
|
+
font-weight: var(--type-weight-label);
|
|
53
|
+
line-height: 1;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
.title {
|
|
57
|
+
min-width: 0;
|
|
58
|
+
margin: 0;
|
|
59
|
+
overflow: hidden;
|
|
60
|
+
text-overflow: ellipsis;
|
|
61
|
+
white-space: nowrap;
|
|
62
|
+
font-family: var(--font-sans);
|
|
63
|
+
font-size: var(--type-size-heading);
|
|
64
|
+
font-weight: var(--type-weight-heading);
|
|
65
|
+
line-height: var(--type-line-heading);
|
|
66
|
+
color: var(--text-primary);
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
.center {
|
|
70
|
+
display: flex;
|
|
71
|
+
align-items: center;
|
|
72
|
+
justify-content: center;
|
|
73
|
+
width: 100%;
|
|
74
|
+
min-width: 0;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
.search {
|
|
78
|
+
width: 100%;
|
|
79
|
+
min-width: 0;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
.end {
|
|
83
|
+
display: flex;
|
|
84
|
+
align-items: center;
|
|
85
|
+
justify-content: flex-end;
|
|
86
|
+
gap: var(--space-1);
|
|
87
|
+
min-width: 0;
|
|
88
|
+
justify-self: end;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
.header[data-search="false"] {
|
|
92
|
+
grid-template-columns: minmax(0, 1fr) auto;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
@media (max-width: 40rem) {
|
|
96
|
+
.header {
|
|
97
|
+
grid-template-columns: minmax(0, 1fr) auto;
|
|
98
|
+
grid-template-areas:
|
|
99
|
+
"start end"
|
|
100
|
+
"search search";
|
|
101
|
+
row-gap: var(--space-2);
|
|
102
|
+
padding: var(--space-2) var(--space-4);
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
.header[data-search="false"] {
|
|
106
|
+
grid-template-areas: "start end";
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
.start {
|
|
110
|
+
grid-area: start;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
.center {
|
|
114
|
+
grid-area: search;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
.end {
|
|
118
|
+
grid-area: end;
|
|
119
|
+
}
|
|
120
|
+
}
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import { useId } from "react";
|
|
2
|
+
import { Input } from "../Input";
|
|
3
|
+
import type { AppHeaderProps } from "./AppHeader.types";
|
|
4
|
+
import styles from "./AppHeader.module.css";
|
|
5
|
+
|
|
6
|
+
export type { AppHeaderProps, AppHeaderRadius } from "./AppHeader.types";
|
|
7
|
+
|
|
8
|
+
export function AppHeader({
|
|
9
|
+
title,
|
|
10
|
+
mark,
|
|
11
|
+
logo,
|
|
12
|
+
search = true,
|
|
13
|
+
searchPlaceholder = "Search",
|
|
14
|
+
searchValue,
|
|
15
|
+
defaultSearchValue,
|
|
16
|
+
onSearch,
|
|
17
|
+
searchShortcut,
|
|
18
|
+
searchId,
|
|
19
|
+
actions,
|
|
20
|
+
className = "",
|
|
21
|
+
ariaLabel,
|
|
22
|
+
radius = "none",
|
|
23
|
+
}: AppHeaderProps) {
|
|
24
|
+
const generatedId = useId();
|
|
25
|
+
const inputId = searchId ?? generatedId;
|
|
26
|
+
const markLetter = (mark && mark.length > 0 ? mark : title?.charAt(0)) || "·";
|
|
27
|
+
const label = ariaLabel ?? title ?? "Application";
|
|
28
|
+
|
|
29
|
+
return (
|
|
30
|
+
<header
|
|
31
|
+
className={`${styles.header} ${radius === "md" ? styles.radiusMd : ""} ${className}`.trim()}
|
|
32
|
+
aria-label={label}
|
|
33
|
+
data-search={search ? undefined : "false"}
|
|
34
|
+
>
|
|
35
|
+
<div className={styles.start}>
|
|
36
|
+
{logo ? (
|
|
37
|
+
<div className={styles.logo}>{logo}</div>
|
|
38
|
+
) : (
|
|
39
|
+
<span className={styles.mark} aria-hidden>
|
|
40
|
+
{markLetter}
|
|
41
|
+
</span>
|
|
42
|
+
)}
|
|
43
|
+
{title ? <p className={styles.title}>{title}</p> : null}
|
|
44
|
+
</div>
|
|
45
|
+
|
|
46
|
+
{search ? (
|
|
47
|
+
<div className={styles.center}>
|
|
48
|
+
<div className={styles.search}>
|
|
49
|
+
<Input
|
|
50
|
+
id={inputId}
|
|
51
|
+
type="search"
|
|
52
|
+
size="md"
|
|
53
|
+
placeholder={searchPlaceholder}
|
|
54
|
+
value={searchValue}
|
|
55
|
+
defaultValue={defaultSearchValue}
|
|
56
|
+
onChange={onSearch}
|
|
57
|
+
iconStart="Search"
|
|
58
|
+
end={searchShortcut}
|
|
59
|
+
ariaLabel={searchPlaceholder}
|
|
60
|
+
/>
|
|
61
|
+
</div>
|
|
62
|
+
</div>
|
|
63
|
+
) : null}
|
|
64
|
+
|
|
65
|
+
<div className={styles.end} role={actions ? "group" : undefined} aria-label={actions ? "Actions" : undefined}>
|
|
66
|
+
{actions}
|
|
67
|
+
</div>
|
|
68
|
+
</header>
|
|
69
|
+
);
|
|
70
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import type { ReactNode } from "react";
|
|
2
|
+
|
|
3
|
+
export type AppHeaderRadius = "md" | "none";
|
|
4
|
+
|
|
5
|
+
export interface AppHeaderProps {
|
|
6
|
+
/** Product name next to the mark. Ignored as a heading — this is chrome, not PageHeader. */
|
|
7
|
+
title?: string;
|
|
8
|
+
/** Brand letter. Defaults to the first character of title. Used when logo is omitted. */
|
|
9
|
+
mark?: string;
|
|
10
|
+
/** Custom mark or wordmark. Replaces the default letter mark. Pass the consumer’s logo here. */
|
|
11
|
+
logo?: ReactNode;
|
|
12
|
+
/** Show the centered kit Input. Default true. */
|
|
13
|
+
search?: boolean;
|
|
14
|
+
searchPlaceholder?: string;
|
|
15
|
+
searchValue?: string;
|
|
16
|
+
defaultSearchValue?: string;
|
|
17
|
+
/** Input onChange. */
|
|
18
|
+
onSearch?: (value: string) => void;
|
|
19
|
+
/** Decorative shortcut in the Input end slot, e.g. ⌘K. */
|
|
20
|
+
searchShortcut?: string;
|
|
21
|
+
searchId?: string;
|
|
22
|
+
/** Trailing kit Buttons (and optional Avatar). At most one primary. */
|
|
23
|
+
actions?: ReactNode;
|
|
24
|
+
className?: string;
|
|
25
|
+
ariaLabel?: string;
|
|
26
|
+
/** Bar corners. none is flush; md is radius-surface-md. */
|
|
27
|
+
radius?: AppHeaderRadius;
|
|
28
|
+
}
|