@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,16 @@
|
|
|
1
|
+
import { forwardRef } from 'react';
|
|
2
|
+
import { cn } from '../../utils/cn';
|
|
3
|
+
import type { TableToolbarProps } from './Table.types';
|
|
4
|
+
import styles from './TableToolbar.module.css';
|
|
5
|
+
|
|
6
|
+
export const TableToolbar = forwardRef<HTMLDivElement, TableToolbarProps>(
|
|
7
|
+
({ className, children, ...rest }, ref) => {
|
|
8
|
+
return (
|
|
9
|
+
<div ref={ref} className={cn(styles.root, className)} {...rest}>
|
|
10
|
+
{children}
|
|
11
|
+
</div>
|
|
12
|
+
);
|
|
13
|
+
}
|
|
14
|
+
);
|
|
15
|
+
|
|
16
|
+
TableToolbar.displayName = 'TableToolbar';
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
export { Table } from './Table';
|
|
2
|
+
export { TableToolbar } from './TableToolbar';
|
|
3
|
+
export { TableHeader } from './TableHeader';
|
|
4
|
+
export { TableBody } from './TableBody';
|
|
5
|
+
export { TableRow } from './TableRow';
|
|
6
|
+
export { TableHeaderCell } from './TableHeaderCell';
|
|
7
|
+
export { TableCell } from './TableCell';
|
|
8
|
+
export { TableFooter } from './TableFooter';
|
|
9
|
+
export type {
|
|
10
|
+
TableProps,
|
|
11
|
+
TableSortDirection,
|
|
12
|
+
TableSize,
|
|
13
|
+
TableCellAlign,
|
|
14
|
+
TableToolbarProps,
|
|
15
|
+
TableHeaderProps,
|
|
16
|
+
TableBodyProps,
|
|
17
|
+
TableRowProps,
|
|
18
|
+
TableHeaderCellProps,
|
|
19
|
+
TableCellProps,
|
|
20
|
+
TableFooterProps,
|
|
21
|
+
TableFooterAlign,
|
|
22
|
+
} from './Table.types';
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
/* ─── Root ─── */
|
|
2
|
+
|
|
3
|
+
.root {
|
|
4
|
+
display: inline-flex;
|
|
5
|
+
align-items: center;
|
|
6
|
+
border-radius: var(--st-radius-full);
|
|
7
|
+
font-family: var(--st-font-family);
|
|
8
|
+
font-weight: var(--st-font-weight-medium);
|
|
9
|
+
white-space: nowrap;
|
|
10
|
+
line-height: 1;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
/* ─── Colors ─── */
|
|
14
|
+
|
|
15
|
+
.brand { --_tag-color: var(--st-color-primary); --_tag-fg: var(--st-color-primary-foreground); }
|
|
16
|
+
.neutral { --_tag-color: var(--st-color-neutral-500); --_tag-fg: #ffffff; }
|
|
17
|
+
.inverse { --_tag-color: var(--st-color-neutral-900); --_tag-fg: #ffffff; }
|
|
18
|
+
.info { --_tag-color: var(--st-color-info); --_tag-fg: var(--st-color-info-foreground); }
|
|
19
|
+
.success { --_tag-color: var(--st-color-success); --_tag-fg: var(--st-color-success-foreground); }
|
|
20
|
+
.warning { --_tag-color: var(--st-color-warning); --_tag-fg: var(--st-color-warning-foreground); }
|
|
21
|
+
.error { --_tag-color: var(--st-color-error); --_tag-fg: var(--st-color-error-foreground); }
|
|
22
|
+
|
|
23
|
+
/* ─── Variants ─── */
|
|
24
|
+
|
|
25
|
+
.filled { background-color: var(--_tag-color); color: var(--_tag-fg); border: 1px solid transparent; }
|
|
26
|
+
.stroke { background-color: transparent; color: var(--_tag-color); border: 1px solid var(--_tag-color); }
|
|
27
|
+
|
|
28
|
+
/* ─── Sizes ─── */
|
|
29
|
+
|
|
30
|
+
.lg { height: 28px; padding: 0 var(--st-space-3); gap: var(--st-space-1); font-size: var(--st-font-size-sm); }
|
|
31
|
+
.md { height: 24px; padding: 0 var(--st-space-2); gap: var(--st-space-1); font-size: var(--st-font-size-xs); }
|
|
32
|
+
.sm { height: 20px; padding: 0 6px; gap: 2px; font-size: var(--st-font-size-xs); }
|
|
33
|
+
|
|
34
|
+
/* ─── Icon ─── */
|
|
35
|
+
|
|
36
|
+
.icon {
|
|
37
|
+
display: inline-flex;
|
|
38
|
+
align-items: center;
|
|
39
|
+
flex-shrink: 0;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
/* ─── Label ─── */
|
|
43
|
+
|
|
44
|
+
.label {
|
|
45
|
+
white-space: nowrap;
|
|
46
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { forwardRef } from 'react';
|
|
2
|
+
import { cn } from '../../utils/cn';
|
|
3
|
+
import type { TagProps } from './Tag.types';
|
|
4
|
+
import styles from './Tag.module.css';
|
|
5
|
+
|
|
6
|
+
export const Tag = forwardRef<HTMLSpanElement, TagProps>(
|
|
7
|
+
(
|
|
8
|
+
{
|
|
9
|
+
variant = 'filled',
|
|
10
|
+
color = 'brand',
|
|
11
|
+
size = 'md',
|
|
12
|
+
icon,
|
|
13
|
+
className,
|
|
14
|
+
children,
|
|
15
|
+
...rest
|
|
16
|
+
},
|
|
17
|
+
ref
|
|
18
|
+
) => {
|
|
19
|
+
return (
|
|
20
|
+
<span
|
|
21
|
+
ref={ref}
|
|
22
|
+
className={cn(
|
|
23
|
+
styles.root,
|
|
24
|
+
styles[variant],
|
|
25
|
+
styles[color],
|
|
26
|
+
styles[size],
|
|
27
|
+
className
|
|
28
|
+
)}
|
|
29
|
+
{...rest}
|
|
30
|
+
>
|
|
31
|
+
{icon && <span className={styles.icon}>{icon}</span>}
|
|
32
|
+
<span className={styles.label}>{children}</span>
|
|
33
|
+
</span>
|
|
34
|
+
);
|
|
35
|
+
}
|
|
36
|
+
);
|
|
37
|
+
|
|
38
|
+
Tag.displayName = 'Tag';
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import type { HTMLAttributes, ReactNode } from 'react';
|
|
2
|
+
|
|
3
|
+
// ─── Tag ───
|
|
4
|
+
|
|
5
|
+
export type TagVariant = 'filled' | 'stroke';
|
|
6
|
+
export type TagColor = 'brand' | 'neutral' | 'inverse' | 'info' | 'success' | 'warning' | 'error';
|
|
7
|
+
export type TagSize = 'lg' | 'md' | 'sm';
|
|
8
|
+
|
|
9
|
+
export interface TagProps extends HTMLAttributes<HTMLSpanElement> {
|
|
10
|
+
variant?: TagVariant;
|
|
11
|
+
color?: TagColor;
|
|
12
|
+
size?: TagSize;
|
|
13
|
+
icon?: ReactNode;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
// ─── TagStatus ───
|
|
17
|
+
|
|
18
|
+
export type TagStatusType = 'active' | 'archived' | 'scheduled' | 'draft' | 'new';
|
|
19
|
+
export type TagStatusSize = 'lg' | 'md';
|
|
20
|
+
|
|
21
|
+
export interface TagStatusProps extends HTMLAttributes<HTMLSpanElement> {
|
|
22
|
+
status: TagStatusType;
|
|
23
|
+
variant?: TagVariant;
|
|
24
|
+
size?: TagStatusSize;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
// ─── TagBrand ───
|
|
28
|
+
|
|
29
|
+
export type TagBrandVariant = 'default' | 'inverse';
|
|
30
|
+
export type TagBrandColor = 'primary' | 'secondary' | 'tertiary';
|
|
31
|
+
|
|
32
|
+
export interface TagBrandProps extends HTMLAttributes<HTMLSpanElement> {
|
|
33
|
+
variant?: TagBrandVariant;
|
|
34
|
+
color?: TagBrandColor;
|
|
35
|
+
size?: TagSize;
|
|
36
|
+
icon?: ReactNode;
|
|
37
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
/* ─── Root ─── */
|
|
2
|
+
|
|
3
|
+
.root {
|
|
4
|
+
display: inline-flex;
|
|
5
|
+
align-items: center;
|
|
6
|
+
border-radius: var(--st-radius-full);
|
|
7
|
+
font-family: var(--st-font-family);
|
|
8
|
+
font-weight: var(--st-font-weight-medium);
|
|
9
|
+
white-space: nowrap;
|
|
10
|
+
line-height: 1;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
/* ─── Colors ─── */
|
|
14
|
+
|
|
15
|
+
.primary { --_tag-color: var(--st-color-primary); --_tag-fg: var(--st-color-primary-foreground); --_tag-subtle: var(--st-color-primary-subtle); }
|
|
16
|
+
.secondary { --_tag-color: var(--st-color-secondary); --_tag-fg: var(--st-color-secondary-foreground); --_tag-subtle: var(--st-color-secondary-subtle); }
|
|
17
|
+
.tertiary { --_tag-color: var(--st-color-tertiary); --_tag-fg: var(--st-color-tertiary-foreground); --_tag-subtle: var(--st-color-tertiary-subtle); }
|
|
18
|
+
|
|
19
|
+
/* ─── Variants ─── */
|
|
20
|
+
|
|
21
|
+
.default { background-color: var(--_tag-color); color: var(--_tag-fg); border: 1px solid transparent; }
|
|
22
|
+
.inverse { background-color: var(--_tag-subtle); color: var(--_tag-color); border: 1px solid transparent; }
|
|
23
|
+
|
|
24
|
+
/* ─── Sizes ─── */
|
|
25
|
+
|
|
26
|
+
.lg { height: 28px; padding: 0 var(--st-space-3); gap: var(--st-space-1); font-size: var(--st-font-size-sm); }
|
|
27
|
+
.md { height: 24px; padding: 0 var(--st-space-2); gap: var(--st-space-1); font-size: var(--st-font-size-xs); }
|
|
28
|
+
.sm { height: 20px; padding: 0 6px; gap: 2px; font-size: var(--st-font-size-xs); }
|
|
29
|
+
|
|
30
|
+
/* ─── Icon ─── */
|
|
31
|
+
|
|
32
|
+
.icon {
|
|
33
|
+
display: inline-flex;
|
|
34
|
+
align-items: center;
|
|
35
|
+
flex-shrink: 0;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
/* ─── Label ─── */
|
|
39
|
+
|
|
40
|
+
.label {
|
|
41
|
+
white-space: nowrap;
|
|
42
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { forwardRef } from 'react';
|
|
2
|
+
import { cn } from '../../utils/cn';
|
|
3
|
+
import type { TagBrandProps } from './Tag.types';
|
|
4
|
+
import styles from './TagBrand.module.css';
|
|
5
|
+
|
|
6
|
+
export const TagBrand = forwardRef<HTMLSpanElement, TagBrandProps>(
|
|
7
|
+
(
|
|
8
|
+
{
|
|
9
|
+
variant = 'default',
|
|
10
|
+
color = 'primary',
|
|
11
|
+
size = 'md',
|
|
12
|
+
icon,
|
|
13
|
+
className,
|
|
14
|
+
children,
|
|
15
|
+
...rest
|
|
16
|
+
},
|
|
17
|
+
ref
|
|
18
|
+
) => {
|
|
19
|
+
return (
|
|
20
|
+
<span
|
|
21
|
+
ref={ref}
|
|
22
|
+
className={cn(
|
|
23
|
+
styles.root,
|
|
24
|
+
styles[color],
|
|
25
|
+
styles[variant],
|
|
26
|
+
styles[size],
|
|
27
|
+
className
|
|
28
|
+
)}
|
|
29
|
+
{...rest}
|
|
30
|
+
>
|
|
31
|
+
{icon && <span className={styles.icon}>{icon}</span>}
|
|
32
|
+
<span className={styles.label}>{children}</span>
|
|
33
|
+
</span>
|
|
34
|
+
);
|
|
35
|
+
}
|
|
36
|
+
);
|
|
37
|
+
|
|
38
|
+
TagBrand.displayName = 'TagBrand';
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
/* ─── Root ─── */
|
|
2
|
+
|
|
3
|
+
.root {
|
|
4
|
+
display: inline-flex;
|
|
5
|
+
align-items: center;
|
|
6
|
+
border-radius: var(--st-radius-full);
|
|
7
|
+
font-family: var(--st-font-family);
|
|
8
|
+
font-weight: var(--st-font-weight-medium);
|
|
9
|
+
white-space: nowrap;
|
|
10
|
+
line-height: 1;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
/* ─── Status colors ─── */
|
|
14
|
+
|
|
15
|
+
.active { --_tag-color: var(--st-color-success); --_tag-fg: var(--st-color-success-foreground); }
|
|
16
|
+
.archived { --_tag-color: var(--st-color-error); --_tag-fg: var(--st-color-error-foreground); }
|
|
17
|
+
.scheduled { --_tag-color: var(--st-color-warning); --_tag-fg: var(--st-color-warning-foreground); }
|
|
18
|
+
.draft { --_tag-color: var(--st-color-info); --_tag-fg: var(--st-color-info-foreground); }
|
|
19
|
+
.new { --_tag-color: var(--st-color-primary); --_tag-fg: var(--st-color-primary-foreground); }
|
|
20
|
+
|
|
21
|
+
/* ─── Variants ─── */
|
|
22
|
+
|
|
23
|
+
.filled { background-color: var(--_tag-color); color: var(--_tag-fg); border: 1px solid transparent; }
|
|
24
|
+
.stroke { background-color: transparent; color: var(--_tag-color); border: 1px solid var(--_tag-color); }
|
|
25
|
+
|
|
26
|
+
/* ─── Sizes ─── */
|
|
27
|
+
|
|
28
|
+
.lg { height: 28px; padding: 0 var(--st-space-3); gap: var(--st-space-1); font-size: var(--st-font-size-sm); }
|
|
29
|
+
.md { height: 24px; padding: 0 var(--st-space-2); gap: var(--st-space-1); font-size: var(--st-font-size-xs); }
|
|
30
|
+
|
|
31
|
+
/* ─── Icon ─── */
|
|
32
|
+
|
|
33
|
+
.icon {
|
|
34
|
+
display: inline-flex;
|
|
35
|
+
align-items: center;
|
|
36
|
+
flex-shrink: 0;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
/* ─── Label ─── */
|
|
40
|
+
|
|
41
|
+
.label {
|
|
42
|
+
white-space: nowrap;
|
|
43
|
+
}
|
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
import { forwardRef } from 'react';
|
|
2
|
+
import { cn } from '../../utils/cn';
|
|
3
|
+
import type { TagStatusProps, TagStatusType } from './Tag.types';
|
|
4
|
+
import styles from './TagStatus.module.css';
|
|
5
|
+
|
|
6
|
+
function CheckIcon() {
|
|
7
|
+
return (
|
|
8
|
+
<svg width="12" height="12" viewBox="0 0 12 12" fill="none" aria-hidden="true">
|
|
9
|
+
<path
|
|
10
|
+
d="M2.5 6l2.5 2.5 4.5-5"
|
|
11
|
+
stroke="currentColor"
|
|
12
|
+
strokeWidth="1.5"
|
|
13
|
+
strokeLinecap="round"
|
|
14
|
+
strokeLinejoin="round"
|
|
15
|
+
/>
|
|
16
|
+
</svg>
|
|
17
|
+
);
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
function XIcon() {
|
|
21
|
+
return (
|
|
22
|
+
<svg width="12" height="12" viewBox="0 0 12 12" fill="none" aria-hidden="true">
|
|
23
|
+
<path
|
|
24
|
+
d="M3 3l6 6M9 3l-6 6"
|
|
25
|
+
stroke="currentColor"
|
|
26
|
+
strokeWidth="1.5"
|
|
27
|
+
strokeLinecap="round"
|
|
28
|
+
strokeLinejoin="round"
|
|
29
|
+
/>
|
|
30
|
+
</svg>
|
|
31
|
+
);
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
function CalendarIcon() {
|
|
35
|
+
return (
|
|
36
|
+
<svg width="12" height="12" viewBox="0 0 12 12" fill="none" aria-hidden="true">
|
|
37
|
+
<rect x="1.5" y="2.5" width="9" height="8" rx="1" stroke="currentColor" strokeWidth="1.5" />
|
|
38
|
+
<path d="M4 1.5v2M8 1.5v2M1.5 5.5h9" stroke="currentColor" strokeWidth="1.5" strokeLinecap="round" />
|
|
39
|
+
</svg>
|
|
40
|
+
);
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
function PencilIcon() {
|
|
44
|
+
return (
|
|
45
|
+
<svg width="12" height="12" viewBox="0 0 12 12" fill="none" aria-hidden="true">
|
|
46
|
+
<path
|
|
47
|
+
d="M8.5 1.5l2 2L4 10H2v-2l6.5-6.5z"
|
|
48
|
+
stroke="currentColor"
|
|
49
|
+
strokeWidth="1.5"
|
|
50
|
+
strokeLinecap="round"
|
|
51
|
+
strokeLinejoin="round"
|
|
52
|
+
/>
|
|
53
|
+
</svg>
|
|
54
|
+
);
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
function DiamondIcon() {
|
|
58
|
+
return (
|
|
59
|
+
<svg width="12" height="12" viewBox="0 0 12 12" fill="none" aria-hidden="true">
|
|
60
|
+
<path
|
|
61
|
+
d="M6 1l4 5-4 5-4-5 4-5z"
|
|
62
|
+
stroke="currentColor"
|
|
63
|
+
strokeWidth="1.5"
|
|
64
|
+
strokeLinejoin="round"
|
|
65
|
+
/>
|
|
66
|
+
</svg>
|
|
67
|
+
);
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
const statusIcons: Record<TagStatusType, () => JSX.Element> = {
|
|
71
|
+
active: CheckIcon,
|
|
72
|
+
archived: XIcon,
|
|
73
|
+
scheduled: CalendarIcon,
|
|
74
|
+
draft: PencilIcon,
|
|
75
|
+
new: DiamondIcon,
|
|
76
|
+
};
|
|
77
|
+
|
|
78
|
+
const statusLabels: Record<TagStatusType, string> = {
|
|
79
|
+
active: 'Active',
|
|
80
|
+
archived: 'Archived',
|
|
81
|
+
scheduled: 'Scheduled',
|
|
82
|
+
draft: 'Draft',
|
|
83
|
+
new: 'New',
|
|
84
|
+
};
|
|
85
|
+
|
|
86
|
+
export const TagStatus = forwardRef<HTMLSpanElement, TagStatusProps>(
|
|
87
|
+
(
|
|
88
|
+
{
|
|
89
|
+
status,
|
|
90
|
+
variant = 'filled',
|
|
91
|
+
size = 'md',
|
|
92
|
+
className,
|
|
93
|
+
children,
|
|
94
|
+
...rest
|
|
95
|
+
},
|
|
96
|
+
ref
|
|
97
|
+
) => {
|
|
98
|
+
const StatusIcon = statusIcons[status];
|
|
99
|
+
|
|
100
|
+
return (
|
|
101
|
+
<span
|
|
102
|
+
ref={ref}
|
|
103
|
+
className={cn(
|
|
104
|
+
styles.root,
|
|
105
|
+
styles[status],
|
|
106
|
+
styles[variant],
|
|
107
|
+
styles[size],
|
|
108
|
+
className
|
|
109
|
+
)}
|
|
110
|
+
{...rest}
|
|
111
|
+
>
|
|
112
|
+
<span className={styles.icon}><StatusIcon /></span>
|
|
113
|
+
<span className={styles.label}>{children || statusLabels[status]}</span>
|
|
114
|
+
</span>
|
|
115
|
+
);
|
|
116
|
+
}
|
|
117
|
+
);
|
|
118
|
+
|
|
119
|
+
TagStatus.displayName = 'TagStatus';
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export { Tag } from './Tag';
|
|
2
|
+
export { TagStatus } from './TagStatus';
|
|
3
|
+
export { TagBrand } from './TagBrand';
|
|
4
|
+
export type {
|
|
5
|
+
TagProps,
|
|
6
|
+
TagVariant,
|
|
7
|
+
TagColor,
|
|
8
|
+
TagSize,
|
|
9
|
+
TagStatusProps,
|
|
10
|
+
TagStatusType,
|
|
11
|
+
TagStatusSize,
|
|
12
|
+
TagBrandProps,
|
|
13
|
+
TagBrandVariant,
|
|
14
|
+
TagBrandColor,
|
|
15
|
+
} from './Tag.types';
|
|
@@ -0,0 +1,208 @@
|
|
|
1
|
+
/* ─── Root wrapper ─── */
|
|
2
|
+
|
|
3
|
+
.root {
|
|
4
|
+
position: relative;
|
|
5
|
+
display: inline-flex;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
/* ─── Tooltip bubble ─── */
|
|
9
|
+
|
|
10
|
+
.tooltip {
|
|
11
|
+
position: absolute;
|
|
12
|
+
z-index: 1000;
|
|
13
|
+
border-radius: var(--st-radius-md);
|
|
14
|
+
font-family: var(--st-font-family);
|
|
15
|
+
font-size: var(--st-font-size-sm);
|
|
16
|
+
line-height: var(--st-line-height-normal);
|
|
17
|
+
color: var(--_tooltip-fg);
|
|
18
|
+
background-color: var(--_tooltip-bg);
|
|
19
|
+
pointer-events: none;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
/* ─── Variants ─── */
|
|
23
|
+
|
|
24
|
+
.default {
|
|
25
|
+
--_tooltip-bg: var(--st-color-surface);
|
|
26
|
+
--_tooltip-fg: var(--st-color-foreground);
|
|
27
|
+
filter: drop-shadow(0 4px 6px rgb(0 0 0 / 0.07)) drop-shadow(0 2px 4px rgb(0 0 0 / 0.05));
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.inverted {
|
|
31
|
+
--_tooltip-bg: var(--st-color-neutral-900);
|
|
32
|
+
--_tooltip-fg: #ffffff;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
/* ─── Modes ─── */
|
|
36
|
+
|
|
37
|
+
.rich {
|
|
38
|
+
width: 240px;
|
|
39
|
+
padding: var(--st-space-3);
|
|
40
|
+
display: flex;
|
|
41
|
+
flex-direction: column;
|
|
42
|
+
gap: var(--st-space-2);
|
|
43
|
+
pointer-events: auto;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.inline {
|
|
47
|
+
width: max-content;
|
|
48
|
+
padding: var(--st-space-1) var(--st-space-2);
|
|
49
|
+
white-space: nowrap;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
/* ─── Rich mode inner elements ─── */
|
|
53
|
+
|
|
54
|
+
.title {
|
|
55
|
+
font-weight: var(--st-font-weight-semibold);
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
.body {
|
|
59
|
+
color: var(--_tooltip-fg);
|
|
60
|
+
opacity: 0.8;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
.action {
|
|
64
|
+
display: flex;
|
|
65
|
+
margin-top: var(--st-space-1);
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
.content {
|
|
69
|
+
/* inline content inherits */
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
/* ─── Beak ─── */
|
|
73
|
+
|
|
74
|
+
.beak {
|
|
75
|
+
position: absolute;
|
|
76
|
+
width: 8px;
|
|
77
|
+
height: 8px;
|
|
78
|
+
background-color: var(--_tooltip-bg);
|
|
79
|
+
transform: rotate(45deg);
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
/* drop-shadow on .default handles the beak shadow via the parent filter */
|
|
83
|
+
|
|
84
|
+
/* ─── Placement × Alignment ─── */
|
|
85
|
+
|
|
86
|
+
/* ── Top ── */
|
|
87
|
+
|
|
88
|
+
.top_start {
|
|
89
|
+
bottom: calc(100% + 8px);
|
|
90
|
+
left: 0;
|
|
91
|
+
}
|
|
92
|
+
.top_start > .beak {
|
|
93
|
+
bottom: -4px;
|
|
94
|
+
left: 16px;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
.top_center {
|
|
98
|
+
bottom: calc(100% + 8px);
|
|
99
|
+
left: 50%;
|
|
100
|
+
transform: translateX(-50%);
|
|
101
|
+
}
|
|
102
|
+
.top_center > .beak {
|
|
103
|
+
bottom: -4px;
|
|
104
|
+
left: 50%;
|
|
105
|
+
transform: translateX(-50%) rotate(45deg);
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
.top_end {
|
|
109
|
+
bottom: calc(100% + 8px);
|
|
110
|
+
right: 0;
|
|
111
|
+
}
|
|
112
|
+
.top_end > .beak {
|
|
113
|
+
bottom: -4px;
|
|
114
|
+
right: 16px;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
/* ── Bottom ── */
|
|
118
|
+
|
|
119
|
+
.bottom_start {
|
|
120
|
+
top: calc(100% + 8px);
|
|
121
|
+
left: 0;
|
|
122
|
+
}
|
|
123
|
+
.bottom_start > .beak {
|
|
124
|
+
top: -4px;
|
|
125
|
+
left: 16px;
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
.bottom_center {
|
|
129
|
+
top: calc(100% + 8px);
|
|
130
|
+
left: 50%;
|
|
131
|
+
transform: translateX(-50%);
|
|
132
|
+
}
|
|
133
|
+
.bottom_center > .beak {
|
|
134
|
+
top: -4px;
|
|
135
|
+
left: 50%;
|
|
136
|
+
transform: translateX(-50%) rotate(45deg);
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
.bottom_end {
|
|
140
|
+
top: calc(100% + 8px);
|
|
141
|
+
right: 0;
|
|
142
|
+
}
|
|
143
|
+
.bottom_end > .beak {
|
|
144
|
+
top: -4px;
|
|
145
|
+
right: 16px;
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
/* ── Start (left side) ── */
|
|
149
|
+
|
|
150
|
+
.start_start {
|
|
151
|
+
right: calc(100% + 8px);
|
|
152
|
+
top: 0;
|
|
153
|
+
}
|
|
154
|
+
.start_start > .beak {
|
|
155
|
+
right: -4px;
|
|
156
|
+
top: 8px;
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
.start_center {
|
|
160
|
+
right: calc(100% + 8px);
|
|
161
|
+
top: 50%;
|
|
162
|
+
transform: translateY(-50%);
|
|
163
|
+
}
|
|
164
|
+
.start_center > .beak {
|
|
165
|
+
right: -4px;
|
|
166
|
+
top: 50%;
|
|
167
|
+
transform: translateY(-50%) rotate(45deg);
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
.start_end {
|
|
171
|
+
right: calc(100% + 8px);
|
|
172
|
+
bottom: 0;
|
|
173
|
+
}
|
|
174
|
+
.start_end > .beak {
|
|
175
|
+
right: -4px;
|
|
176
|
+
bottom: 8px;
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
/* ── End (right side) ── */
|
|
180
|
+
|
|
181
|
+
.end_start {
|
|
182
|
+
left: calc(100% + 8px);
|
|
183
|
+
top: 0;
|
|
184
|
+
}
|
|
185
|
+
.end_start > .beak {
|
|
186
|
+
left: -4px;
|
|
187
|
+
top: 8px;
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
.end_center {
|
|
191
|
+
left: calc(100% + 8px);
|
|
192
|
+
top: 50%;
|
|
193
|
+
transform: translateY(-50%);
|
|
194
|
+
}
|
|
195
|
+
.end_center > .beak {
|
|
196
|
+
left: -4px;
|
|
197
|
+
top: 50%;
|
|
198
|
+
transform: translateY(-50%) rotate(45deg);
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
.end_end {
|
|
202
|
+
left: calc(100% + 8px);
|
|
203
|
+
bottom: 0;
|
|
204
|
+
}
|
|
205
|
+
.end_end > .beak {
|
|
206
|
+
left: -4px;
|
|
207
|
+
bottom: 8px;
|
|
208
|
+
}
|