@soadtech/cli 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/dist/index.js +272 -0
- package/package.json +24 -0
- package/registry/base/cn.ts +5 -0
- package/registry/base/css-modules.d.ts +4 -0
- package/registry/base/theme/reset.css +43 -0
- package/registry/base/theme/tokens.css +154 -0
- package/registry/components/Accordion/Accordion.module.css +3 -0
- package/registry/components/Accordion/Accordion.tsx +54 -0
- package/registry/components/Accordion/Accordion.types.ts +17 -0
- package/registry/components/Accordion/AccordionContext.ts +18 -0
- package/registry/components/Accordion/AccordionItem.module.css +124 -0
- package/registry/components/Accordion/AccordionItem.tsx +148 -0
- package/registry/components/Accordion/AccordionItem.types.ts +14 -0
- package/registry/components/Accordion/index.ts +8 -0
- package/registry/components/ActionBar/ActionBar.module.css +18 -0
- package/registry/components/ActionBar/ActionBar.tsx +21 -0
- package/registry/components/ActionBar/ActionBar.types.ts +8 -0
- package/registry/components/ActionBar/ActionBarLink.module.css +31 -0
- package/registry/components/ActionBar/ActionBarLink.tsx +55 -0
- package/registry/components/ActionBar/ActionBarLink.types.ts +7 -0
- package/registry/components/ActionBar/index.ts +4 -0
- package/registry/components/Alert/Alert.module.css +172 -0
- package/registry/components/Alert/Alert.tsx +146 -0
- package/registry/components/Alert/Alert.types.ts +25 -0
- package/registry/components/Alert/index.ts +7 -0
- package/registry/components/Avatar/Avatar.module.css +100 -0
- package/registry/components/Avatar/Avatar.tsx +54 -0
- package/registry/components/Avatar/Avatar.types.ts +18 -0
- package/registry/components/Avatar/AvatarGroup.module.css +64 -0
- package/registry/components/Avatar/AvatarGroup.tsx +65 -0
- package/registry/components/Avatar/AvatarGroup.types.ts +13 -0
- package/registry/components/Avatar/index.ts +8 -0
- package/registry/components/Badge/Badge.module.css +92 -0
- package/registry/components/Badge/Badge.tsx +89 -0
- package/registry/components/Badge/Badge.types.ts +20 -0
- package/registry/components/Badge/TrendBadge.module.css +47 -0
- package/registry/components/Badge/TrendBadge.tsx +65 -0
- package/registry/components/Badge/TrendBadge.types.ts +15 -0
- package/registry/components/Badge/index.ts +14 -0
- package/registry/components/Breadcrumbs/BreadcrumbItem.tsx +41 -0
- package/registry/components/Breadcrumbs/Breadcrumbs.module.css +81 -0
- package/registry/components/Breadcrumbs/Breadcrumbs.tsx +71 -0
- package/registry/components/Breadcrumbs/Breadcrumbs.types.ts +22 -0
- package/registry/components/Breadcrumbs/index.ts +7 -0
- package/registry/components/Button/Button.module.css +169 -0
- package/registry/components/Button/Button.tsx +43 -0
- package/registry/components/Button/Button.types.ts +18 -0
- package/registry/components/Button/index.ts +7 -0
- package/registry/components/ButtonLink/ButtonLink.module.css +85 -0
- package/registry/components/ButtonLink/ButtonLink.tsx +42 -0
- package/registry/components/ButtonLink/ButtonLink.types.ts +18 -0
- package/registry/components/ButtonLink/index.ts +6 -0
- package/registry/components/Calendar/Calendar.module.css +213 -0
- package/registry/components/Calendar/Calendar.tsx +370 -0
- package/registry/components/Calendar/Calendar.types.ts +28 -0
- package/registry/components/Calendar/CalendarDialog.module.css +29 -0
- package/registry/components/Calendar/CalendarDialog.tsx +173 -0
- package/registry/components/Calendar/CalendarDialog.types.ts +30 -0
- package/registry/components/Calendar/index.ts +9 -0
- package/registry/components/Card/Card.module.css +35 -0
- package/registry/components/Card/Card.tsx +36 -0
- package/registry/components/Card/Card.types.ts +37 -0
- package/registry/components/Card/CardContent.module.css +3 -0
- package/registry/components/Card/CardContent.tsx +16 -0
- package/registry/components/Card/CardFooter.module.css +31 -0
- package/registry/components/Card/CardFooter.tsx +34 -0
- package/registry/components/Card/CardHeader.module.css +61 -0
- package/registry/components/Card/CardHeader.tsx +46 -0
- package/registry/components/Card/InsightCard.module.css +106 -0
- package/registry/components/Card/InsightCard.tsx +68 -0
- package/registry/components/Card/InsightCard.types.ts +24 -0
- package/registry/components/Card/KPICard.module.css +31 -0
- package/registry/components/Card/KPICard.tsx +29 -0
- package/registry/components/Card/KPICard.types.ts +13 -0
- package/registry/components/Card/ListItemCard.module.css +59 -0
- package/registry/components/Card/ListItemCard.tsx +37 -0
- package/registry/components/Card/ListItemCard.types.ts +18 -0
- package/registry/components/Card/PlanCard.module.css +125 -0
- package/registry/components/Card/PlanCard.tsx +108 -0
- package/registry/components/Card/PlanCard.types.ts +30 -0
- package/registry/components/Card/ProductCard.module.css +118 -0
- package/registry/components/Card/ProductCard.tsx +56 -0
- package/registry/components/Card/ProductCard.types.ts +24 -0
- package/registry/components/Card/StatCard.module.css +20 -0
- package/registry/components/Card/StatCard.tsx +26 -0
- package/registry/components/Card/StatCard.types.ts +12 -0
- package/registry/components/Card/UserGroupCard.module.css +50 -0
- package/registry/components/Card/UserGroupCard.tsx +59 -0
- package/registry/components/Card/UserGroupCard.types.ts +23 -0
- package/registry/components/Card/index.ts +38 -0
- package/registry/components/Chart/BarChart.module.css +54 -0
- package/registry/components/Chart/BarChart.tsx +196 -0
- package/registry/components/Chart/BarChart.types.ts +20 -0
- package/registry/components/Chart/ChartAction.module.css +43 -0
- package/registry/components/Chart/ChartAction.tsx +35 -0
- package/registry/components/Chart/ChartAction.types.ts +17 -0
- package/registry/components/Chart/ChartAxis.module.css +47 -0
- package/registry/components/Chart/ChartAxis.tsx +79 -0
- package/registry/components/Chart/ChartAxis.types.ts +14 -0
- package/registry/components/Chart/ChartLegend.module.css +31 -0
- package/registry/components/Chart/ChartLegend.tsx +49 -0
- package/registry/components/Chart/ChartLegend.types.ts +18 -0
- package/registry/components/Chart/ChartTooltip.module.css +54 -0
- package/registry/components/Chart/ChartTooltip.tsx +44 -0
- package/registry/components/Chart/ChartTooltip.types.ts +19 -0
- package/registry/components/Chart/DonutChart.module.css +32 -0
- package/registry/components/Chart/DonutChart.tsx +107 -0
- package/registry/components/Chart/DonutChart.types.ts +20 -0
- package/registry/components/Chart/GridChart.module.css +26 -0
- package/registry/components/Chart/GridChart.tsx +61 -0
- package/registry/components/Chart/GridChart.types.ts +14 -0
- package/registry/components/Chart/HoverTooltip.module.css +16 -0
- package/registry/components/Chart/HoverTooltip.tsx +22 -0
- package/registry/components/Chart/KPIIndicator.module.css +48 -0
- package/registry/components/Chart/KPIIndicator.tsx +28 -0
- package/registry/components/Chart/KPIIndicator.types.ts +16 -0
- package/registry/components/Chart/LineChart.module.css +54 -0
- package/registry/components/Chart/LineChart.tsx +282 -0
- package/registry/components/Chart/LineChart.types.ts +22 -0
- package/registry/components/Chart/ProgressChart.module.css +54 -0
- package/registry/components/Chart/ProgressChart.tsx +64 -0
- package/registry/components/Chart/ProgressChart.types.ts +18 -0
- package/registry/components/Chart/TrendLineChart.module.css +5 -0
- package/registry/components/Chart/TrendLineChart.tsx +131 -0
- package/registry/components/Chart/TrendLineChart.types.ts +19 -0
- package/registry/components/Chart/chart.utils.ts +131 -0
- package/registry/components/Chart/index.ts +47 -0
- package/registry/components/Chart/useChartHover.ts +24 -0
- package/registry/components/Checkbox/Checkbox.module.css +101 -0
- package/registry/components/Checkbox/Checkbox.tsx +100 -0
- package/registry/components/Checkbox/Checkbox.types.ts +11 -0
- package/registry/components/Checkbox/CheckboxField.module.css +69 -0
- package/registry/components/Checkbox/CheckboxField.tsx +54 -0
- package/registry/components/Checkbox/CheckboxField.types.ts +9 -0
- package/registry/components/Checkbox/CheckboxGroup.module.css +41 -0
- package/registry/components/Checkbox/CheckboxGroup.tsx +60 -0
- package/registry/components/Checkbox/CheckboxGroup.types.ts +11 -0
- package/registry/components/Checkbox/CheckboxGroupContext.ts +13 -0
- package/registry/components/Checkbox/index.ts +11 -0
- package/registry/components/Chip/Chip.module.css +143 -0
- package/registry/components/Chip/Chip.tsx +93 -0
- package/registry/components/Chip/Chip.types.ts +19 -0
- package/registry/components/Chip/ChipGroup.module.css +5 -0
- package/registry/components/Chip/ChipGroup.tsx +16 -0
- package/registry/components/Chip/ChipGroup.types.ts +3 -0
- package/registry/components/Chip/index.ts +9 -0
- package/registry/components/Datepicker/Datepicker.module.css +133 -0
- package/registry/components/Datepicker/Datepicker.tsx +236 -0
- package/registry/components/Datepicker/Datepicker.types.ts +36 -0
- package/registry/components/Datepicker/index.ts +2 -0
- package/registry/components/Dialog/Dialog.module.css +18 -0
- package/registry/components/Dialog/Dialog.tsx +69 -0
- package/registry/components/Dialog/Dialog.types.ts +45 -0
- package/registry/components/Dialog/DialogBody.module.css +3 -0
- package/registry/components/Dialog/DialogBody.tsx +16 -0
- package/registry/components/Dialog/DialogContext.ts +11 -0
- package/registry/components/Dialog/DialogFooter.module.css +38 -0
- package/registry/components/Dialog/DialogFooter.tsx +30 -0
- package/registry/components/Dialog/DialogHeader.module.css +70 -0
- package/registry/components/Dialog/DialogHeader.tsx +72 -0
- package/registry/components/Dialog/DialogIcon.module.css +31 -0
- package/registry/components/Dialog/DialogIcon.tsx +89 -0
- package/registry/components/Dialog/index.ts +14 -0
- package/registry/components/Divider/Divider.module.css +19 -0
- package/registry/components/Divider/Divider.tsx +20 -0
- package/registry/components/Divider/Divider.types.ts +9 -0
- package/registry/components/Divider/index.ts +2 -0
- package/registry/components/DropdownMenu/DropdownMenu.module.css +9 -0
- package/registry/components/DropdownMenu/DropdownMenu.tsx +21 -0
- package/registry/components/DropdownMenu/DropdownMenu.types.ts +22 -0
- package/registry/components/DropdownMenu/DropdownMenuDivider.module.css +5 -0
- package/registry/components/DropdownMenu/DropdownMenuDivider.tsx +20 -0
- package/registry/components/DropdownMenu/DropdownMenuHeader.module.css +7 -0
- package/registry/components/DropdownMenu/DropdownMenuHeader.tsx +17 -0
- package/registry/components/DropdownMenu/DropdownMenuItem.module.css +78 -0
- package/registry/components/DropdownMenu/DropdownMenuItem.tsx +40 -0
- package/registry/components/DropdownMenu/index.ts +10 -0
- package/registry/components/FileUpload/FileUpload.module.css +122 -0
- package/registry/components/FileUpload/FileUpload.tsx +354 -0
- package/registry/components/FileUpload/FileUpload.types.ts +89 -0
- package/registry/components/FileUpload/FileUploadIcon.module.css +61 -0
- package/registry/components/FileUpload/FileUploadIcon.tsx +84 -0
- package/registry/components/FileUpload/FileUploadInput.module.css +140 -0
- package/registry/components/FileUpload/FileUploadInput.tsx +113 -0
- package/registry/components/FileUpload/FileUploadItem.module.css +41 -0
- package/registry/components/FileUpload/FileUploadItem.tsx +39 -0
- package/registry/components/FileUpload/index.ts +12 -0
- package/registry/components/InputCounter/InputCounter.module.css +146 -0
- package/registry/components/InputCounter/InputCounter.tsx +232 -0
- package/registry/components/InputCounter/InputCounter.types.ts +37 -0
- package/registry/components/InputCounter/index.ts +7 -0
- package/registry/components/InputMessage/InputMessage.module.css +148 -0
- package/registry/components/InputMessage/InputMessage.tsx +294 -0
- package/registry/components/InputMessage/InputMessage.types.ts +30 -0
- package/registry/components/InputMessage/index.ts +2 -0
- package/registry/components/InputSearch/InputSearch.module.css +168 -0
- package/registry/components/InputSearch/InputSearch.tsx +251 -0
- package/registry/components/InputSearch/InputSearch.types.ts +35 -0
- package/registry/components/InputSearch/index.ts +6 -0
- package/registry/components/InputText/InputText.module.css +183 -0
- package/registry/components/InputText/InputText.tsx +244 -0
- package/registry/components/InputText/InputText.types.ts +32 -0
- package/registry/components/InputText/index.ts +7 -0
- package/registry/components/InputTextArea/InputTextArea.module.css +141 -0
- package/registry/components/InputTextArea/InputTextArea.tsx +170 -0
- package/registry/components/InputTextArea/InputTextArea.types.ts +18 -0
- package/registry/components/InputTextArea/index.ts +6 -0
- package/registry/components/NavbarUser/NavbarUser.module.css +265 -0
- package/registry/components/NavbarUser/NavbarUser.tsx +202 -0
- package/registry/components/NavbarUser/NavbarUser.types.ts +31 -0
- package/registry/components/NavbarUser/index.ts +2 -0
- package/registry/components/Notification/Notification.types.ts +65 -0
- package/registry/components/Notification/NotificationItem.module.css +143 -0
- package/registry/components/Notification/NotificationItem.tsx +157 -0
- package/registry/components/Notification/NotificationPanel.module.css +75 -0
- package/registry/components/Notification/NotificationPanel.tsx +68 -0
- package/registry/components/Notification/NotificationReply.module.css +56 -0
- package/registry/components/Notification/NotificationReply.tsx +52 -0
- package/registry/components/Notification/index.ts +9 -0
- package/registry/components/Pagination/Pagination.module.css +123 -0
- package/registry/components/Pagination/Pagination.tsx +212 -0
- package/registry/components/Pagination/Pagination.types.ts +24 -0
- package/registry/components/Pagination/PaginationDots.module.css +60 -0
- package/registry/components/Pagination/PaginationDots.tsx +48 -0
- package/registry/components/Pagination/PaginationDots.types.ts +17 -0
- package/registry/components/Pagination/index.ts +12 -0
- package/registry/components/Persona/MessageDropdown.module.css +76 -0
- package/registry/components/Persona/MessageDropdown.tsx +68 -0
- package/registry/components/Persona/Persona.module.css +92 -0
- package/registry/components/Persona/Persona.tsx +90 -0
- package/registry/components/Persona/Persona.types.ts +71 -0
- package/registry/components/Persona/PersonaAction.module.css +80 -0
- package/registry/components/Persona/PersonaAction.tsx +49 -0
- package/registry/components/Persona/PersonaMessage.module.css +156 -0
- package/registry/components/Persona/PersonaMessage.tsx +70 -0
- package/registry/components/Persona/index.ts +11 -0
- package/registry/components/Progress/Progress.module.css +41 -0
- package/registry/components/Progress/Progress.tsx +43 -0
- package/registry/components/Progress/Progress.types.ts +10 -0
- package/registry/components/Progress/index.ts +2 -0
- package/registry/components/RadioButton/RadioButton.module.css +103 -0
- package/registry/components/RadioButton/RadioButton.tsx +59 -0
- package/registry/components/RadioButton/RadioButton.types.ts +19 -0
- package/registry/components/RadioButton/RadioField.module.css +68 -0
- package/registry/components/RadioButton/RadioField.tsx +68 -0
- package/registry/components/RadioButton/RadioGroup.module.css +41 -0
- package/registry/components/RadioButton/RadioGroup.tsx +76 -0
- package/registry/components/RadioButton/RadioGroupContext.ts +16 -0
- package/registry/components/RadioButton/index.ts +12 -0
- package/registry/components/RangeSlider/RangeSlider.module.css +133 -0
- package/registry/components/RangeSlider/RangeSlider.tsx +251 -0
- package/registry/components/RangeSlider/RangeSlider.types.ts +25 -0
- package/registry/components/RangeSlider/index.ts +2 -0
- package/registry/components/Rating/Rating.module.css +56 -0
- package/registry/components/Rating/Rating.tsx +142 -0
- package/registry/components/Rating/Rating.types.ts +14 -0
- package/registry/components/Rating/index.ts +7 -0
- package/registry/components/SegmentedControl/SegmentedControl.module.css +56 -0
- package/registry/components/SegmentedControl/SegmentedControl.tsx +46 -0
- package/registry/components/SegmentedControl/SegmentedControl.types.ts +27 -0
- package/registry/components/SegmentedControl/SegmentedControlContext.ts +20 -0
- package/registry/components/SegmentedControl/SegmentedControlItem.module.css +55 -0
- package/registry/components/SegmentedControl/SegmentedControlItem.tsx +32 -0
- package/registry/components/SegmentedControl/index.ts +8 -0
- package/registry/components/SelectDropdown/SelectDropdown.module.css +214 -0
- package/registry/components/SelectDropdown/SelectDropdown.tsx +375 -0
- package/registry/components/SelectDropdown/SelectDropdown.types.ts +50 -0
- package/registry/components/SelectDropdown/SelectDropdownOption.module.css +101 -0
- package/registry/components/SelectDropdown/SelectDropdownOption.tsx +86 -0
- package/registry/components/SelectDropdown/SelectDropdownOverlay.module.css +74 -0
- package/registry/components/SelectDropdown/SelectDropdownOverlay.tsx +202 -0
- package/registry/components/SelectDropdown/index.ts +11 -0
- package/registry/components/Sidebar/Sidebar.module.css +14 -0
- package/registry/components/Sidebar/Sidebar.tsx +41 -0
- package/registry/components/Sidebar/Sidebar.types.ts +41 -0
- package/registry/components/Sidebar/SidebarContent.module.css +5 -0
- package/registry/components/Sidebar/SidebarContent.tsx +14 -0
- package/registry/components/Sidebar/SidebarContext.ts +15 -0
- package/registry/components/Sidebar/SidebarDivider.module.css +5 -0
- package/registry/components/Sidebar/SidebarDivider.tsx +17 -0
- package/registry/components/Sidebar/SidebarFooter.module.css +5 -0
- package/registry/components/Sidebar/SidebarFooter.tsx +14 -0
- package/registry/components/Sidebar/SidebarGroup.module.css +12 -0
- package/registry/components/Sidebar/SidebarGroup.tsx +22 -0
- package/registry/components/Sidebar/SidebarHeader.module.css +5 -0
- package/registry/components/Sidebar/SidebarHeader.tsx +14 -0
- package/registry/components/Sidebar/SidebarNavItem.module.css +176 -0
- package/registry/components/Sidebar/SidebarNavItem.tsx +96 -0
- package/registry/components/Sidebar/index.ts +16 -0
- package/registry/components/Stepper/Stepper.module.css +11 -0
- package/registry/components/Stepper/Stepper.tsx +47 -0
- package/registry/components/Stepper/Stepper.types.ts +26 -0
- package/registry/components/Stepper/StepperContext.ts +17 -0
- package/registry/components/Stepper/StepperStep.module.css +183 -0
- package/registry/components/Stepper/StepperStep.tsx +204 -0
- package/registry/components/Stepper/index.ts +9 -0
- package/registry/components/Switch/Switch.module.css +145 -0
- package/registry/components/Switch/Switch.tsx +96 -0
- package/registry/components/Switch/Switch.types.ts +19 -0
- package/registry/components/Switch/SwitchField.module.css +69 -0
- package/registry/components/Switch/SwitchField.tsx +49 -0
- package/registry/components/Switch/index.ts +8 -0
- package/registry/components/Tab/Tab.module.css +20 -0
- package/registry/components/Tab/Tab.tsx +35 -0
- package/registry/components/Tab/Tab.types.ts +21 -0
- package/registry/components/Tab/TabAdd.module.css +36 -0
- package/registry/components/Tab/TabAdd.tsx +41 -0
- package/registry/components/Tab/TabContext.ts +19 -0
- package/registry/components/Tab/TabItem.module.css +145 -0
- package/registry/components/Tab/TabItem.tsx +87 -0
- package/registry/components/Tab/index.ts +9 -0
- package/registry/components/Table/Table.module.css +33 -0
- package/registry/components/Table/Table.tsx +74 -0
- package/registry/components/Table/Table.types.ts +64 -0
- package/registry/components/Table/TableBody.tsx +23 -0
- package/registry/components/Table/TableCell.module.css +21 -0
- package/registry/components/Table/TableCell.tsx +20 -0
- package/registry/components/Table/TableContext.ts +22 -0
- package/registry/components/Table/TableFooter.module.css +27 -0
- package/registry/components/Table/TableFooter.tsx +20 -0
- package/registry/components/Table/TableHeader.module.css +3 -0
- package/registry/components/Table/TableHeader.tsx +17 -0
- package/registry/components/Table/TableHeaderCell.module.css +55 -0
- package/registry/components/Table/TableHeaderCell.tsx +98 -0
- package/registry/components/Table/TableRow.module.css +53 -0
- package/registry/components/Table/TableRow.tsx +31 -0
- package/registry/components/Table/TableToolbar.module.css +7 -0
- package/registry/components/Table/TableToolbar.tsx +16 -0
- package/registry/components/Table/index.ts +22 -0
- package/registry/components/Tag/Tag.module.css +46 -0
- package/registry/components/Tag/Tag.tsx +38 -0
- package/registry/components/Tag/Tag.types.ts +37 -0
- package/registry/components/Tag/TagBrand.module.css +42 -0
- package/registry/components/Tag/TagBrand.tsx +38 -0
- package/registry/components/Tag/TagStatus.module.css +43 -0
- package/registry/components/Tag/TagStatus.tsx +119 -0
- package/registry/components/Tag/index.ts +15 -0
- package/registry/components/Tooltip/Tooltip.module.css +208 -0
- package/registry/components/Tooltip/Tooltip.tsx +81 -0
- package/registry/components/Tooltip/Tooltip.types.ts +27 -0
- package/registry/components/Tooltip/index.ts +7 -0
- package/registry/components/TreeviewList/TreeviewItem.module.css +89 -0
- package/registry/components/TreeviewList/TreeviewItem.tsx +142 -0
- package/registry/components/TreeviewList/TreeviewList.module.css +3 -0
- package/registry/components/TreeviewList/TreeviewList.tsx +19 -0
- package/registry/components/TreeviewList/TreeviewList.types.ts +18 -0
- package/registry/components/TreeviewList/TreeviewListContext.ts +13 -0
- package/registry/components/TreeviewList/index.ts +6 -0
- package/registry/components/VerificationCode/VerificationCode.module.css +49 -0
- package/registry/components/VerificationCode/VerificationCode.tsx +147 -0
- package/registry/components/VerificationCode/VerificationCode.types.ts +21 -0
- package/registry/components/VerificationCode/index.ts +2 -0
- package/registry/registry.json +746 -0
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
/* ═══ MessageDropdown ═══ */
|
|
2
|
+
|
|
3
|
+
.root {
|
|
4
|
+
display: flex;
|
|
5
|
+
flex-direction: column;
|
|
6
|
+
width: 380px;
|
|
7
|
+
max-height: 520px;
|
|
8
|
+
background-color: var(--st-color-surface);
|
|
9
|
+
border: 1px solid var(--st-color-border);
|
|
10
|
+
border-radius: var(--st-radius-xl);
|
|
11
|
+
box-shadow: var(--st-shadow-lg);
|
|
12
|
+
overflow: hidden;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
/* ─── Header ─── */
|
|
16
|
+
|
|
17
|
+
.header {
|
|
18
|
+
display: flex;
|
|
19
|
+
align-items: center;
|
|
20
|
+
justify-content: space-between;
|
|
21
|
+
flex-shrink: 0;
|
|
22
|
+
padding: var(--st-space-4);
|
|
23
|
+
border-bottom: 1px solid var(--st-color-border);
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.title {
|
|
27
|
+
font-family: var(--st-font-family);
|
|
28
|
+
font-size: var(--st-font-size-md);
|
|
29
|
+
font-weight: var(--st-font-weight-semibold);
|
|
30
|
+
color: var(--st-color-foreground);
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.closeBtn {
|
|
34
|
+
display: inline-flex;
|
|
35
|
+
align-items: center;
|
|
36
|
+
justify-content: center;
|
|
37
|
+
width: 28px;
|
|
38
|
+
height: 28px;
|
|
39
|
+
padding: 0;
|
|
40
|
+
border: none;
|
|
41
|
+
border-radius: var(--st-radius-md);
|
|
42
|
+
background: transparent;
|
|
43
|
+
color: var(--st-color-muted);
|
|
44
|
+
cursor: pointer;
|
|
45
|
+
transition: color var(--st-transition-fast),
|
|
46
|
+
background-color var(--st-transition-fast);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
.closeBtn:hover {
|
|
50
|
+
color: var(--st-color-foreground);
|
|
51
|
+
background-color: var(--st-color-neutral-100);
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
.closeBtn:focus-visible {
|
|
55
|
+
outline: 2px solid var(--st-color-primary);
|
|
56
|
+
outline-offset: 2px;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
/* ─── Body ─── */
|
|
60
|
+
|
|
61
|
+
.body {
|
|
62
|
+
flex: 1;
|
|
63
|
+
overflow-y: auto;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
/* ─── Footer ─── */
|
|
67
|
+
|
|
68
|
+
.footer {
|
|
69
|
+
flex-shrink: 0;
|
|
70
|
+
padding: var(--st-space-3) var(--st-space-4);
|
|
71
|
+
border-top: 1px solid var(--st-color-border);
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
.footerBtn {
|
|
75
|
+
width: 100%;
|
|
76
|
+
}
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import { forwardRef } from 'react';
|
|
2
|
+
import { cn } from '../../utils/cn';
|
|
3
|
+
import { Button } from '../Button';
|
|
4
|
+
import type { MessageDropdownProps } from './Persona.types';
|
|
5
|
+
import styles from './MessageDropdown.module.css';
|
|
6
|
+
|
|
7
|
+
function CloseIcon() {
|
|
8
|
+
return (
|
|
9
|
+
<svg width="16" height="16" viewBox="0 0 16 16" fill="none">
|
|
10
|
+
<path
|
|
11
|
+
d="M4 4L12 12M12 4L4 12"
|
|
12
|
+
stroke="currentColor"
|
|
13
|
+
strokeWidth="1.5"
|
|
14
|
+
strokeLinecap="round"
|
|
15
|
+
/>
|
|
16
|
+
</svg>
|
|
17
|
+
);
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
export const MessageDropdown = forwardRef<HTMLDivElement, MessageDropdownProps>(
|
|
21
|
+
(
|
|
22
|
+
{
|
|
23
|
+
title = 'Message',
|
|
24
|
+
onClose,
|
|
25
|
+
footerLabel = 'View in message center',
|
|
26
|
+
onFooterClick,
|
|
27
|
+
children,
|
|
28
|
+
className,
|
|
29
|
+
...rest
|
|
30
|
+
},
|
|
31
|
+
ref
|
|
32
|
+
) => {
|
|
33
|
+
return (
|
|
34
|
+
<div ref={ref} className={cn(styles.root, className)} {...rest}>
|
|
35
|
+
<div className={styles.header}>
|
|
36
|
+
<span className={styles.title}>{title}</span>
|
|
37
|
+
{onClose && (
|
|
38
|
+
<button
|
|
39
|
+
type="button"
|
|
40
|
+
className={styles.closeBtn}
|
|
41
|
+
onClick={onClose}
|
|
42
|
+
aria-label="Close messages"
|
|
43
|
+
>
|
|
44
|
+
<CloseIcon />
|
|
45
|
+
</button>
|
|
46
|
+
)}
|
|
47
|
+
</div>
|
|
48
|
+
|
|
49
|
+
<div className={styles.body}>{children}</div>
|
|
50
|
+
|
|
51
|
+
{onFooterClick && (
|
|
52
|
+
<div className={styles.footer}>
|
|
53
|
+
<Button
|
|
54
|
+
variant="fill"
|
|
55
|
+
size="sm"
|
|
56
|
+
className={styles.footerBtn}
|
|
57
|
+
onClick={onFooterClick}
|
|
58
|
+
>
|
|
59
|
+
{footerLabel}
|
|
60
|
+
</Button>
|
|
61
|
+
</div>
|
|
62
|
+
)}
|
|
63
|
+
</div>
|
|
64
|
+
);
|
|
65
|
+
}
|
|
66
|
+
);
|
|
67
|
+
|
|
68
|
+
MessageDropdown.displayName = 'MessageDropdown';
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
/* ═══ Persona ═══ */
|
|
2
|
+
|
|
3
|
+
.root {
|
|
4
|
+
display: flex;
|
|
5
|
+
align-items: center;
|
|
6
|
+
gap: var(--st-space-3);
|
|
7
|
+
padding: var(--st-space-2) var(--st-space-3);
|
|
8
|
+
border-radius: var(--st-radius-md);
|
|
9
|
+
cursor: pointer;
|
|
10
|
+
transition: background-color var(--st-transition-fast);
|
|
11
|
+
font-family: var(--st-font-family);
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.root:hover {
|
|
15
|
+
background-color: var(--st-color-neutral-100);
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.root:active {
|
|
19
|
+
background-color: var(--st-color-neutral-200);
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.root:focus-visible {
|
|
23
|
+
outline: 2px solid var(--st-color-primary);
|
|
24
|
+
outline-offset: 2px;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
/* ─── Body ─── */
|
|
28
|
+
|
|
29
|
+
.body {
|
|
30
|
+
display: flex;
|
|
31
|
+
flex-direction: column;
|
|
32
|
+
min-width: 0;
|
|
33
|
+
flex: 1;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
.nameRow {
|
|
37
|
+
display: flex;
|
|
38
|
+
align-items: center;
|
|
39
|
+
gap: var(--st-space-1);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
.name {
|
|
43
|
+
font-weight: var(--st-font-weight-semibold);
|
|
44
|
+
color: var(--st-color-foreground);
|
|
45
|
+
white-space: nowrap;
|
|
46
|
+
overflow: hidden;
|
|
47
|
+
text-overflow: ellipsis;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
.verifiedBadge {
|
|
51
|
+
flex-shrink: 0;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
.username {
|
|
55
|
+
color: var(--st-color-muted);
|
|
56
|
+
white-space: nowrap;
|
|
57
|
+
overflow: hidden;
|
|
58
|
+
text-overflow: ellipsis;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
/* ─── Chevron ─── */
|
|
62
|
+
|
|
63
|
+
.chevron {
|
|
64
|
+
flex-shrink: 0;
|
|
65
|
+
color: var(--st-color-muted);
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
/* ─── Sizes ─── */
|
|
69
|
+
|
|
70
|
+
.lg .name {
|
|
71
|
+
font-size: var(--st-font-size-md);
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
.lg .username {
|
|
75
|
+
font-size: var(--st-font-size-sm);
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
.md .name {
|
|
79
|
+
font-size: var(--st-font-size-sm);
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
.md .username {
|
|
83
|
+
font-size: var(--st-font-size-xs);
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
.sm .name {
|
|
87
|
+
font-size: var(--st-font-size-sm);
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
.sm .username {
|
|
91
|
+
font-size: var(--st-font-size-xs);
|
|
92
|
+
}
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
import { forwardRef } from 'react';
|
|
2
|
+
import { cn } from '../../utils/cn';
|
|
3
|
+
import { Avatar } from '../Avatar';
|
|
4
|
+
import type { PersonaProps, PersonaSize } from './Persona.types';
|
|
5
|
+
import styles from './Persona.module.css';
|
|
6
|
+
|
|
7
|
+
const avatarSizeMap: Record<PersonaSize, 'lg' | 'md' | 'sm'> = {
|
|
8
|
+
lg: 'lg',
|
|
9
|
+
md: 'md',
|
|
10
|
+
sm: 'sm',
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
export function VerifiedBadge() {
|
|
14
|
+
return (
|
|
15
|
+
<svg
|
|
16
|
+
width="14"
|
|
17
|
+
height="14"
|
|
18
|
+
viewBox="0 0 14 14"
|
|
19
|
+
fill="none"
|
|
20
|
+
className={styles.verifiedBadge}
|
|
21
|
+
aria-label="Verified"
|
|
22
|
+
>
|
|
23
|
+
<circle cx="7" cy="7" r="7" fill="var(--st-color-primary)" />
|
|
24
|
+
<path
|
|
25
|
+
d="M4.5 7L6.2 8.7L9.5 5.3"
|
|
26
|
+
stroke="#ffffff"
|
|
27
|
+
strokeWidth="1.5"
|
|
28
|
+
strokeLinecap="round"
|
|
29
|
+
strokeLinejoin="round"
|
|
30
|
+
/>
|
|
31
|
+
</svg>
|
|
32
|
+
);
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
function ChevronDown() {
|
|
36
|
+
return (
|
|
37
|
+
<svg
|
|
38
|
+
width="16"
|
|
39
|
+
height="16"
|
|
40
|
+
viewBox="0 0 16 16"
|
|
41
|
+
fill="none"
|
|
42
|
+
className={styles.chevron}
|
|
43
|
+
>
|
|
44
|
+
<path
|
|
45
|
+
d="M4 6L8 10L12 6"
|
|
46
|
+
stroke="currentColor"
|
|
47
|
+
strokeWidth="1.5"
|
|
48
|
+
strokeLinecap="round"
|
|
49
|
+
strokeLinejoin="round"
|
|
50
|
+
/>
|
|
51
|
+
</svg>
|
|
52
|
+
);
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
export const Persona = forwardRef<HTMLDivElement, PersonaProps>(
|
|
56
|
+
(
|
|
57
|
+
{
|
|
58
|
+
avatarSrc,
|
|
59
|
+
avatarAlt = '',
|
|
60
|
+
name,
|
|
61
|
+
username,
|
|
62
|
+
verified = false,
|
|
63
|
+
size = 'md',
|
|
64
|
+
className,
|
|
65
|
+
...rest
|
|
66
|
+
},
|
|
67
|
+
ref
|
|
68
|
+
) => {
|
|
69
|
+
return (
|
|
70
|
+
<div
|
|
71
|
+
ref={ref}
|
|
72
|
+
className={cn(styles.root, styles[size], className)}
|
|
73
|
+
tabIndex={0}
|
|
74
|
+
{...rest}
|
|
75
|
+
>
|
|
76
|
+
<Avatar src={avatarSrc} alt={avatarAlt} size={avatarSizeMap[size]} />
|
|
77
|
+
<div className={styles.body}>
|
|
78
|
+
<span className={styles.nameRow}>
|
|
79
|
+
<span className={styles.name}>{name}</span>
|
|
80
|
+
{verified && <VerifiedBadge />}
|
|
81
|
+
</span>
|
|
82
|
+
{username && <span className={styles.username}>{username}</span>}
|
|
83
|
+
</div>
|
|
84
|
+
<ChevronDown />
|
|
85
|
+
</div>
|
|
86
|
+
);
|
|
87
|
+
}
|
|
88
|
+
);
|
|
89
|
+
|
|
90
|
+
Persona.displayName = 'Persona';
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import type { HTMLAttributes, ReactNode } from 'react';
|
|
2
|
+
|
|
3
|
+
export type PersonaSize = 'lg' | 'md' | 'sm';
|
|
4
|
+
|
|
5
|
+
export interface PersonaProps extends HTMLAttributes<HTMLDivElement> {
|
|
6
|
+
/** Image URL */
|
|
7
|
+
avatarSrc?: string;
|
|
8
|
+
/** Alt text for avatar */
|
|
9
|
+
avatarAlt?: string;
|
|
10
|
+
/** Display name */
|
|
11
|
+
name: string;
|
|
12
|
+
/** Username e.g. "@johndoe" */
|
|
13
|
+
username?: string;
|
|
14
|
+
/** Show verified badge */
|
|
15
|
+
verified?: boolean;
|
|
16
|
+
/** Size variant */
|
|
17
|
+
size?: PersonaSize;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
export interface PersonaMessageProps extends HTMLAttributes<HTMLDivElement> {
|
|
21
|
+
/** Image URL */
|
|
22
|
+
avatarSrc?: string;
|
|
23
|
+
/** Alt text for avatar */
|
|
24
|
+
avatarAlt?: string;
|
|
25
|
+
/** Display name */
|
|
26
|
+
name: string;
|
|
27
|
+
/** Username e.g. "@johndoe" */
|
|
28
|
+
username?: string;
|
|
29
|
+
/** Show verified badge */
|
|
30
|
+
verified?: boolean;
|
|
31
|
+
/** Message preview text */
|
|
32
|
+
message?: string;
|
|
33
|
+
/** Timestamp e.g. "10m" */
|
|
34
|
+
time?: string;
|
|
35
|
+
/** Green badge count (lg/md = number, sm = dot) */
|
|
36
|
+
badgeCount?: number;
|
|
37
|
+
/** Blue unread dot */
|
|
38
|
+
unread?: boolean;
|
|
39
|
+
/** Size variant */
|
|
40
|
+
size?: PersonaSize;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
export interface PersonaActionProps extends HTMLAttributes<HTMLDivElement> {
|
|
44
|
+
/** Image URL */
|
|
45
|
+
avatarSrc?: string;
|
|
46
|
+
/** Alt text for avatar */
|
|
47
|
+
avatarAlt?: string;
|
|
48
|
+
/** Display name (rendered bold) */
|
|
49
|
+
name: string;
|
|
50
|
+
/** Action description e.g. "commented on" */
|
|
51
|
+
actionText?: string;
|
|
52
|
+
/** Action target e.g. "Project X" (rendered bold) */
|
|
53
|
+
actionTarget?: string;
|
|
54
|
+
/** Timestamp e.g. "6 November 2025 - 9:12 PM" */
|
|
55
|
+
timestamp?: string;
|
|
56
|
+
/** Size variant */
|
|
57
|
+
size?: PersonaSize;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export interface MessageDropdownProps extends HTMLAttributes<HTMLDivElement> {
|
|
61
|
+
/** Header title */
|
|
62
|
+
title?: string;
|
|
63
|
+
/** Close button handler */
|
|
64
|
+
onClose?: () => void;
|
|
65
|
+
/** Footer button text */
|
|
66
|
+
footerLabel?: string;
|
|
67
|
+
/** Footer button click handler */
|
|
68
|
+
onFooterClick?: () => void;
|
|
69
|
+
/** Message items */
|
|
70
|
+
children?: ReactNode;
|
|
71
|
+
}
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
/* ═══ PersonaAction ═══ */
|
|
2
|
+
|
|
3
|
+
.root {
|
|
4
|
+
display: flex;
|
|
5
|
+
align-items: center;
|
|
6
|
+
gap: var(--st-space-3);
|
|
7
|
+
padding: var(--st-space-2) var(--st-space-3);
|
|
8
|
+
border-radius: var(--st-radius-md);
|
|
9
|
+
cursor: pointer;
|
|
10
|
+
transition: background-color var(--st-transition-fast);
|
|
11
|
+
font-family: var(--st-font-family);
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.root:hover {
|
|
15
|
+
background-color: var(--st-color-neutral-100);
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.root:active {
|
|
19
|
+
background-color: var(--st-color-neutral-200);
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.root:focus-visible {
|
|
23
|
+
outline: 2px solid var(--st-color-primary);
|
|
24
|
+
outline-offset: 2px;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
/* ─── Body ─── */
|
|
28
|
+
|
|
29
|
+
.body {
|
|
30
|
+
display: flex;
|
|
31
|
+
flex-direction: column;
|
|
32
|
+
min-width: 0;
|
|
33
|
+
flex: 1;
|
|
34
|
+
gap: var(--st-space-1);
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.actionLine {
|
|
38
|
+
color: var(--st-color-muted);
|
|
39
|
+
line-height: var(--st-line-height-normal);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
.name {
|
|
43
|
+
font-weight: var(--st-font-weight-semibold);
|
|
44
|
+
color: var(--st-color-foreground);
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
.target {
|
|
48
|
+
font-weight: var(--st-font-weight-semibold);
|
|
49
|
+
color: var(--st-color-foreground);
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
.timestamp {
|
|
53
|
+
color: var(--st-color-muted);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
/* ─── Sizes ─── */
|
|
57
|
+
|
|
58
|
+
.lg .actionLine {
|
|
59
|
+
font-size: var(--st-font-size-md);
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
.lg .timestamp {
|
|
63
|
+
font-size: var(--st-font-size-sm);
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
.md .actionLine {
|
|
67
|
+
font-size: var(--st-font-size-sm);
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
.md .timestamp {
|
|
71
|
+
font-size: var(--st-font-size-xs);
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
.sm .actionLine {
|
|
75
|
+
font-size: var(--st-font-size-sm);
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
.sm .timestamp {
|
|
79
|
+
font-size: var(--st-font-size-xs);
|
|
80
|
+
}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { forwardRef } from 'react';
|
|
2
|
+
import { cn } from '../../utils/cn';
|
|
3
|
+
import { Avatar } from '../Avatar';
|
|
4
|
+
import type { PersonaActionProps, PersonaSize } from './Persona.types';
|
|
5
|
+
import styles from './PersonaAction.module.css';
|
|
6
|
+
|
|
7
|
+
const avatarSizeMap: Record<PersonaSize, 'lg' | 'md' | 'sm'> = {
|
|
8
|
+
lg: 'lg',
|
|
9
|
+
md: 'md',
|
|
10
|
+
sm: 'sm',
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
export const PersonaAction = forwardRef<HTMLDivElement, PersonaActionProps>(
|
|
14
|
+
(
|
|
15
|
+
{
|
|
16
|
+
avatarSrc,
|
|
17
|
+
avatarAlt = '',
|
|
18
|
+
name,
|
|
19
|
+
actionText,
|
|
20
|
+
actionTarget,
|
|
21
|
+
timestamp,
|
|
22
|
+
size = 'md',
|
|
23
|
+
className,
|
|
24
|
+
...rest
|
|
25
|
+
},
|
|
26
|
+
ref
|
|
27
|
+
) => {
|
|
28
|
+
return (
|
|
29
|
+
<div
|
|
30
|
+
ref={ref}
|
|
31
|
+
className={cn(styles.root, styles[size], className)}
|
|
32
|
+
tabIndex={0}
|
|
33
|
+
{...rest}
|
|
34
|
+
>
|
|
35
|
+
<Avatar src={avatarSrc} alt={avatarAlt} size={avatarSizeMap[size]} />
|
|
36
|
+
<div className={styles.body}>
|
|
37
|
+
<span className={styles.actionLine}>
|
|
38
|
+
<strong className={styles.name}>{name}</strong>
|
|
39
|
+
{actionText && <> {actionText}</>}
|
|
40
|
+
{actionTarget && <> <strong className={styles.target}>{actionTarget}</strong></>}
|
|
41
|
+
</span>
|
|
42
|
+
{timestamp && <span className={styles.timestamp}>{timestamp}</span>}
|
|
43
|
+
</div>
|
|
44
|
+
</div>
|
|
45
|
+
);
|
|
46
|
+
}
|
|
47
|
+
);
|
|
48
|
+
|
|
49
|
+
PersonaAction.displayName = 'PersonaAction';
|
|
@@ -0,0 +1,156 @@
|
|
|
1
|
+
/* ═══ PersonaMessage ═══ */
|
|
2
|
+
|
|
3
|
+
.root {
|
|
4
|
+
display: flex;
|
|
5
|
+
align-items: center;
|
|
6
|
+
gap: var(--st-space-3);
|
|
7
|
+
padding: var(--st-space-2) var(--st-space-3);
|
|
8
|
+
border-radius: var(--st-radius-md);
|
|
9
|
+
cursor: pointer;
|
|
10
|
+
transition: background-color var(--st-transition-fast);
|
|
11
|
+
font-family: var(--st-font-family);
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.root:hover {
|
|
15
|
+
background-color: var(--st-color-neutral-100);
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.root:active {
|
|
19
|
+
background-color: var(--st-color-neutral-200);
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.root:focus-visible {
|
|
23
|
+
outline: 2px solid var(--st-color-primary);
|
|
24
|
+
outline-offset: 2px;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
/* ─── Body ─── */
|
|
28
|
+
|
|
29
|
+
.body {
|
|
30
|
+
display: flex;
|
|
31
|
+
flex-direction: column;
|
|
32
|
+
min-width: 0;
|
|
33
|
+
flex: 1;
|
|
34
|
+
gap: var(--st-space-1);
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.header {
|
|
38
|
+
display: flex;
|
|
39
|
+
align-items: center;
|
|
40
|
+
justify-content: space-between;
|
|
41
|
+
gap: var(--st-space-2);
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
.nameRow {
|
|
45
|
+
display: flex;
|
|
46
|
+
align-items: center;
|
|
47
|
+
gap: var(--st-space-1);
|
|
48
|
+
min-width: 0;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
.name {
|
|
52
|
+
font-weight: var(--st-font-weight-semibold);
|
|
53
|
+
color: var(--st-color-foreground);
|
|
54
|
+
white-space: nowrap;
|
|
55
|
+
overflow: hidden;
|
|
56
|
+
text-overflow: ellipsis;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
.username {
|
|
60
|
+
color: var(--st-color-muted);
|
|
61
|
+
white-space: nowrap;
|
|
62
|
+
overflow: hidden;
|
|
63
|
+
text-overflow: ellipsis;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
.trailing {
|
|
67
|
+
display: flex;
|
|
68
|
+
align-items: center;
|
|
69
|
+
gap: var(--st-space-2);
|
|
70
|
+
flex-shrink: 0;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
.time {
|
|
74
|
+
color: var(--st-color-muted);
|
|
75
|
+
white-space: nowrap;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
.message {
|
|
79
|
+
color: var(--st-color-muted);
|
|
80
|
+
white-space: nowrap;
|
|
81
|
+
overflow: hidden;
|
|
82
|
+
text-overflow: ellipsis;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
/* ─── Unread dot ─── */
|
|
86
|
+
|
|
87
|
+
.unreadDot {
|
|
88
|
+
width: 8px;
|
|
89
|
+
height: 8px;
|
|
90
|
+
border-radius: var(--st-radius-full);
|
|
91
|
+
background-color: var(--st-color-primary);
|
|
92
|
+
flex-shrink: 0;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
/* ─── Badge area ─── */
|
|
96
|
+
|
|
97
|
+
.badgeArea {
|
|
98
|
+
display: flex;
|
|
99
|
+
align-items: center;
|
|
100
|
+
justify-content: center;
|
|
101
|
+
flex-shrink: 0;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
.badge {
|
|
105
|
+
display: inline-flex;
|
|
106
|
+
align-items: center;
|
|
107
|
+
justify-content: center;
|
|
108
|
+
min-width: 20px;
|
|
109
|
+
height: 20px;
|
|
110
|
+
padding: 0 var(--st-space-1);
|
|
111
|
+
border-radius: var(--st-radius-full);
|
|
112
|
+
background-color: var(--st-color-success);
|
|
113
|
+
color: #ffffff;
|
|
114
|
+
font-size: var(--st-font-size-xs);
|
|
115
|
+
font-weight: var(--st-font-weight-semibold);
|
|
116
|
+
line-height: 1;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
.badgeDot {
|
|
120
|
+
width: 6px;
|
|
121
|
+
height: 6px;
|
|
122
|
+
border-radius: var(--st-radius-full);
|
|
123
|
+
background-color: var(--st-color-success);
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
/* ─── Sizes ─── */
|
|
127
|
+
|
|
128
|
+
.lg .name {
|
|
129
|
+
font-size: var(--st-font-size-md);
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
.lg .username,
|
|
133
|
+
.lg .time,
|
|
134
|
+
.lg .message {
|
|
135
|
+
font-size: var(--st-font-size-sm);
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
.md .name {
|
|
139
|
+
font-size: var(--st-font-size-sm);
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
.md .username,
|
|
143
|
+
.md .time,
|
|
144
|
+
.md .message {
|
|
145
|
+
font-size: var(--st-font-size-xs);
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
.sm .name {
|
|
149
|
+
font-size: var(--st-font-size-sm);
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
.sm .username,
|
|
153
|
+
.sm .time,
|
|
154
|
+
.sm .message {
|
|
155
|
+
font-size: var(--st-font-size-xs);
|
|
156
|
+
}
|