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,22 @@
|
|
|
1
|
+
import type { ChartDatum } from "../shared/chartMath";
|
|
2
|
+
|
|
3
|
+
export type PieChartVariant = "donut" | "pie";
|
|
4
|
+
export type PieChartLayout = "split" | "stack";
|
|
5
|
+
|
|
6
|
+
export interface PieChartProps {
|
|
7
|
+
data?: ChartDatum[];
|
|
8
|
+
title?: string;
|
|
9
|
+
description?: string;
|
|
10
|
+
variant?: PieChartVariant;
|
|
11
|
+
layout?: PieChartLayout;
|
|
12
|
+
size?: number;
|
|
13
|
+
maxSegments?: number;
|
|
14
|
+
sort?: boolean;
|
|
15
|
+
otherLabel?: string;
|
|
16
|
+
centerLabel?: string;
|
|
17
|
+
showCenterTotal?: boolean;
|
|
18
|
+
showTable?: boolean;
|
|
19
|
+
emptyLabel?: string;
|
|
20
|
+
isLoading?: boolean;
|
|
21
|
+
className?: string;
|
|
22
|
+
}
|
|
@@ -0,0 +1,226 @@
|
|
|
1
|
+
.root {
|
|
2
|
+
display: grid;
|
|
3
|
+
gap: var(--space-2);
|
|
4
|
+
width: 100%;
|
|
5
|
+
min-width: 0;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
.circle,
|
|
9
|
+
.semicircle {
|
|
10
|
+
width: fit-content;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.meta {
|
|
14
|
+
display: flex;
|
|
15
|
+
align-items: baseline;
|
|
16
|
+
justify-content: space-between;
|
|
17
|
+
gap: var(--space-3);
|
|
18
|
+
min-width: 0;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.label {
|
|
22
|
+
min-width: 0;
|
|
23
|
+
font-family: var(--font-sans);
|
|
24
|
+
font-size: var(--type-size-body-sm);
|
|
25
|
+
font-weight: var(--type-weight-label);
|
|
26
|
+
line-height: var(--type-line-body);
|
|
27
|
+
color: var(--text-primary);
|
|
28
|
+
overflow-wrap: anywhere;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.value {
|
|
32
|
+
flex-shrink: 0;
|
|
33
|
+
font-family: var(--font-sans);
|
|
34
|
+
font-size: var(--type-size-caption);
|
|
35
|
+
line-height: var(--type-line-body);
|
|
36
|
+
font-variant-numeric: tabular-nums;
|
|
37
|
+
color: var(--text-primary);
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.track {
|
|
41
|
+
width: 100%;
|
|
42
|
+
overflow: hidden;
|
|
43
|
+
border-radius: var(--radius-pill);
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.brand .track {
|
|
47
|
+
background-color: var(--fill-brand-subtle);
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
.brand .fill {
|
|
51
|
+
background-color: var(--fill-brand);
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
.brand .trackArc {
|
|
55
|
+
stroke: var(--fill-brand-subtle);
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
.brand .valueArc {
|
|
59
|
+
stroke: var(--fill-brand);
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
.danger .track {
|
|
63
|
+
background-color: var(--fill-danger-subtle);
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
.danger .fill {
|
|
67
|
+
background-color: var(--fill-danger);
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
.danger .trackArc {
|
|
71
|
+
stroke: var(--fill-danger-subtle);
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
.danger .valueArc {
|
|
75
|
+
stroke: var(--fill-danger);
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
.muted .track {
|
|
79
|
+
background-color: var(--fill-subtle);
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
.muted .fill {
|
|
83
|
+
background-color: var(--fill-strong);
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
.muted .trackArc {
|
|
87
|
+
stroke: var(--fill-subtle);
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
.muted .valueArc {
|
|
91
|
+
stroke: var(--fill-strong);
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
.sm .track {
|
|
95
|
+
height: var(--space-1);
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
.md .track {
|
|
99
|
+
height: var(--space-2);
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
.lg .track {
|
|
103
|
+
height: var(--space-3);
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
.overlay .track {
|
|
107
|
+
height: var(--space-5);
|
|
108
|
+
position: relative;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
.overlayValue {
|
|
112
|
+
position: absolute;
|
|
113
|
+
left: 50%;
|
|
114
|
+
top: 50%;
|
|
115
|
+
transform: translate(-50%, -50%);
|
|
116
|
+
pointer-events: none;
|
|
117
|
+
padding: 0 var(--space-1);
|
|
118
|
+
border-radius: var(--radius-control-sm);
|
|
119
|
+
background: var(--surface-card);
|
|
120
|
+
font-family: var(--font-sans);
|
|
121
|
+
font-size: var(--type-size-caption);
|
|
122
|
+
font-weight: var(--type-weight-label);
|
|
123
|
+
line-height: var(--type-line-body);
|
|
124
|
+
font-variant-numeric: tabular-nums;
|
|
125
|
+
color: var(--text-primary);
|
|
126
|
+
white-space: nowrap;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
.row {
|
|
130
|
+
display: flex;
|
|
131
|
+
align-items: center;
|
|
132
|
+
gap: var(--space-2);
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
.row .track {
|
|
136
|
+
flex: 1;
|
|
137
|
+
min-width: 0;
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
.fill {
|
|
141
|
+
height: 100%;
|
|
142
|
+
border-radius: inherit;
|
|
143
|
+
transform-origin: left center;
|
|
144
|
+
animation: progressLoad var(--motion-duration-400) var(--motion-ease-out) both;
|
|
145
|
+
transition: width var(--motion-interaction-duration) var(--motion-interaction-easing);
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
.meter {
|
|
149
|
+
position: relative;
|
|
150
|
+
width: var(--progress-size);
|
|
151
|
+
height: var(--progress-size);
|
|
152
|
+
overflow: hidden;
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
.semicircle .meter {
|
|
156
|
+
display: grid;
|
|
157
|
+
align-items: end; /* U sits in the bottom half */
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
.ring {
|
|
161
|
+
display: block;
|
|
162
|
+
overflow: hidden;
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
.semicircle .ring {
|
|
166
|
+
justify-self: stretch;
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
.trackArc,
|
|
170
|
+
.valueArc {
|
|
171
|
+
fill: none;
|
|
172
|
+
stroke-linecap: butt;
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
.valueArc {
|
|
176
|
+
stroke-dashoffset: var(--progress-offset);
|
|
177
|
+
animation: progressArcLoad var(--motion-duration-400) var(--motion-ease-out) both;
|
|
178
|
+
transition: stroke-dashoffset var(--motion-interaction-duration) var(--motion-interaction-easing);
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
.holeValue {
|
|
182
|
+
position: absolute;
|
|
183
|
+
left: 50%;
|
|
184
|
+
top: 50%;
|
|
185
|
+
transform: translate(-50%, -50%);
|
|
186
|
+
pointer-events: none;
|
|
187
|
+
font-family: var(--font-sans);
|
|
188
|
+
font-size: var(--type-size-caption);
|
|
189
|
+
font-weight: var(--type-weight-label);
|
|
190
|
+
line-height: var(--type-line-body);
|
|
191
|
+
font-variant-numeric: tabular-nums;
|
|
192
|
+
color: var(--text-primary);
|
|
193
|
+
white-space: nowrap;
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
.semicircle .holeValue {
|
|
197
|
+
top: 50%;
|
|
198
|
+
transform: translate(-50%, 0);
|
|
199
|
+
padding-top: var(--space-2);
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
@keyframes progressLoad {
|
|
203
|
+
from {
|
|
204
|
+
transform: scaleX(0);
|
|
205
|
+
}
|
|
206
|
+
to {
|
|
207
|
+
transform: scaleX(1);
|
|
208
|
+
}
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
@keyframes progressArcLoad {
|
|
212
|
+
from {
|
|
213
|
+
stroke-dashoffset: var(--progress-c);
|
|
214
|
+
}
|
|
215
|
+
to {
|
|
216
|
+
stroke-dashoffset: var(--progress-offset);
|
|
217
|
+
}
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
@media (prefers-reduced-motion: reduce) {
|
|
221
|
+
.fill,
|
|
222
|
+
.valueArc {
|
|
223
|
+
animation: none;
|
|
224
|
+
transition: none;
|
|
225
|
+
}
|
|
226
|
+
}
|
|
@@ -0,0 +1,167 @@
|
|
|
1
|
+
import type { CSSProperties } from "react";
|
|
2
|
+
import { useId } from "react";
|
|
3
|
+
import type { ProgressProps } from "./Progress.types";
|
|
4
|
+
import styles from "./Progress.module.css";
|
|
5
|
+
|
|
6
|
+
export type {
|
|
7
|
+
ProgressProps,
|
|
8
|
+
ProgressShape,
|
|
9
|
+
ProgressSize,
|
|
10
|
+
ProgressValuePosition,
|
|
11
|
+
ProgressTone,
|
|
12
|
+
} from "./Progress.types";
|
|
13
|
+
|
|
14
|
+
const RING = {
|
|
15
|
+
sm: { size: 56, stroke: 5 },
|
|
16
|
+
md: { size: 96, stroke: 8 },
|
|
17
|
+
lg: { size: 196, stroke: 16 },
|
|
18
|
+
} as const;
|
|
19
|
+
|
|
20
|
+
function clamp(value: number): number {
|
|
21
|
+
if (!Number.isFinite(value)) return 0;
|
|
22
|
+
return Math.min(100, Math.max(0, value));
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
export function Progress({
|
|
26
|
+
value = 0,
|
|
27
|
+
size = "md",
|
|
28
|
+
shape = "bar",
|
|
29
|
+
label,
|
|
30
|
+
showValue = false,
|
|
31
|
+
valuePosition = "end",
|
|
32
|
+
tone = "brand",
|
|
33
|
+
ariaLabel,
|
|
34
|
+
}: ProgressProps) {
|
|
35
|
+
const uid = useId();
|
|
36
|
+
const percent = clamp(value);
|
|
37
|
+
const rounded = Math.round(percent);
|
|
38
|
+
const labelId = label ? `${uid}-label` : undefined;
|
|
39
|
+
const isRing = shape === "circle" || shape === "semicircle";
|
|
40
|
+
const isSemi = shape === "semicircle";
|
|
41
|
+
const overlay = !isRing && showValue && valuePosition === "overlay";
|
|
42
|
+
const metaValue = !isRing && showValue && valuePosition === "end" && Boolean(label);
|
|
43
|
+
const endBeside = !isRing && showValue && valuePosition === "end" && !label;
|
|
44
|
+
const holeValue = isRing && showValue;
|
|
45
|
+
const showMeta = Boolean(label) || metaValue;
|
|
46
|
+
const unnamed = ariaLabel || `${rounded}%`;
|
|
47
|
+
|
|
48
|
+
const a11y = {
|
|
49
|
+
role: "progressbar" as const,
|
|
50
|
+
"aria-valuemin": 0,
|
|
51
|
+
"aria-valuemax": 100,
|
|
52
|
+
"aria-valuenow": rounded,
|
|
53
|
+
"aria-valuetext": `${rounded}%`,
|
|
54
|
+
"aria-labelledby": labelId,
|
|
55
|
+
"aria-label": label ? undefined : unnamed,
|
|
56
|
+
};
|
|
57
|
+
|
|
58
|
+
const track = (
|
|
59
|
+
<div className={styles.track} {...a11y}>
|
|
60
|
+
<div className={styles.fill} style={{ width: `${percent}%` }} />
|
|
61
|
+
{overlay ? <span className={styles.overlayValue}>{rounded}%</span> : null}
|
|
62
|
+
</div>
|
|
63
|
+
);
|
|
64
|
+
|
|
65
|
+
let meter = null;
|
|
66
|
+
if (isRing) {
|
|
67
|
+
const ring = RING[size];
|
|
68
|
+
const ringSize = ring.size;
|
|
69
|
+
const stroke = ring.stroke;
|
|
70
|
+
const radius = (ringSize - stroke) / 2;
|
|
71
|
+
const circumference = 2 * Math.PI * radius;
|
|
72
|
+
const visible = isSemi ? circumference / 2 : circumference;
|
|
73
|
+
const dashOffset = visible * (1 - percent / 100);
|
|
74
|
+
const cx = ringSize / 2;
|
|
75
|
+
const cy = ringSize / 2;
|
|
76
|
+
const viewBox = isSemi
|
|
77
|
+
? `0 ${ringSize / 2} ${ringSize} ${ringSize / 2}`
|
|
78
|
+
: `0 0 ${ringSize} ${ringSize}`;
|
|
79
|
+
const svgH = isSemi ? ringSize / 2 : ringSize;
|
|
80
|
+
const semiDash = `${circumference / 2} ${circumference}`;
|
|
81
|
+
const groupTransform = isSemi
|
|
82
|
+
? `translate(${cx} ${cy}) scale(-1 1) translate(${-cx} ${-cy})`
|
|
83
|
+
: `rotate(-90 ${cx} ${cy})`;
|
|
84
|
+
const arcStyle = {
|
|
85
|
+
"--progress-c": `${visible}`,
|
|
86
|
+
"--progress-offset": `${dashOffset}`,
|
|
87
|
+
} as CSSProperties;
|
|
88
|
+
|
|
89
|
+
meter = (
|
|
90
|
+
<div
|
|
91
|
+
className={styles.meter}
|
|
92
|
+
style={{ "--progress-size": `${ringSize}px` } as CSSProperties}
|
|
93
|
+
{...a11y}
|
|
94
|
+
>
|
|
95
|
+
<svg
|
|
96
|
+
className={styles.ring}
|
|
97
|
+
width={ringSize}
|
|
98
|
+
height={svgH}
|
|
99
|
+
viewBox={viewBox}
|
|
100
|
+
overflow="hidden"
|
|
101
|
+
aria-hidden="true"
|
|
102
|
+
focusable="false"
|
|
103
|
+
>
|
|
104
|
+
<g transform={groupTransform}>
|
|
105
|
+
<circle
|
|
106
|
+
className={styles.trackArc}
|
|
107
|
+
cx={cx}
|
|
108
|
+
cy={cy}
|
|
109
|
+
r={radius}
|
|
110
|
+
fill="none"
|
|
111
|
+
strokeWidth={stroke}
|
|
112
|
+
strokeDasharray={isSemi ? semiDash : undefined}
|
|
113
|
+
/>
|
|
114
|
+
<circle
|
|
115
|
+
className={styles.valueArc}
|
|
116
|
+
cx={cx}
|
|
117
|
+
cy={cy}
|
|
118
|
+
r={radius}
|
|
119
|
+
fill="none"
|
|
120
|
+
strokeWidth={stroke}
|
|
121
|
+
strokeDasharray={isSemi ? semiDash : circumference}
|
|
122
|
+
style={arcStyle}
|
|
123
|
+
/>
|
|
124
|
+
</g>
|
|
125
|
+
</svg>
|
|
126
|
+
{holeValue ? <span className={styles.holeValue}>{rounded}%</span> : null}
|
|
127
|
+
</div>
|
|
128
|
+
);
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
const rootClass = [
|
|
132
|
+
styles.root,
|
|
133
|
+
styles[size],
|
|
134
|
+
styles[tone],
|
|
135
|
+
styles[shape],
|
|
136
|
+
overlay ? styles.overlay : "",
|
|
137
|
+
]
|
|
138
|
+
.filter(Boolean)
|
|
139
|
+
.join(" ");
|
|
140
|
+
|
|
141
|
+
return (
|
|
142
|
+
<div className={rootClass}>
|
|
143
|
+
{showMeta ? (
|
|
144
|
+
<div className={styles.meta}>
|
|
145
|
+
{label ? (
|
|
146
|
+
<span id={labelId} className={styles.label}>
|
|
147
|
+
{label}
|
|
148
|
+
</span>
|
|
149
|
+
) : (
|
|
150
|
+
<span />
|
|
151
|
+
)}
|
|
152
|
+
{metaValue ? <span className={styles.value}>{rounded}%</span> : null}
|
|
153
|
+
</div>
|
|
154
|
+
) : null}
|
|
155
|
+
{isRing ? (
|
|
156
|
+
meter
|
|
157
|
+
) : endBeside ? (
|
|
158
|
+
<div className={styles.row}>
|
|
159
|
+
{track}
|
|
160
|
+
<span className={styles.value}>{rounded}%</span>
|
|
161
|
+
</div>
|
|
162
|
+
) : (
|
|
163
|
+
track
|
|
164
|
+
)}
|
|
165
|
+
</div>
|
|
166
|
+
);
|
|
167
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export type ProgressSize = "sm" | "md" | "lg";
|
|
2
|
+
export type ProgressValuePosition = "overlay" | "end";
|
|
3
|
+
export type ProgressTone = "brand" | "danger" | "muted";
|
|
4
|
+
export type ProgressShape = "bar" | "circle" | "semicircle";
|
|
5
|
+
|
|
6
|
+
export interface ProgressProps {
|
|
7
|
+
value?: number;
|
|
8
|
+
size?: ProgressSize;
|
|
9
|
+
shape?: ProgressShape;
|
|
10
|
+
label?: string;
|
|
11
|
+
showValue?: boolean;
|
|
12
|
+
valuePosition?: ProgressValuePosition;
|
|
13
|
+
tone?: ProgressTone;
|
|
14
|
+
ariaLabel?: string;
|
|
15
|
+
}
|
|
@@ -0,0 +1,210 @@
|
|
|
1
|
+
.root {
|
|
2
|
+
width: 100%;
|
|
3
|
+
min-width: 0;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
.list {
|
|
7
|
+
display: flex;
|
|
8
|
+
width: 100%;
|
|
9
|
+
margin: 0;
|
|
10
|
+
padding: 0;
|
|
11
|
+
list-style: none;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.horizontal .list {
|
|
15
|
+
align-items: flex-start;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.vertical .list {
|
|
19
|
+
display: grid;
|
|
20
|
+
width: 100%;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.step {
|
|
24
|
+
position: relative;
|
|
25
|
+
display: flex;
|
|
26
|
+
flex-direction: column;
|
|
27
|
+
align-items: center;
|
|
28
|
+
flex: 1;
|
|
29
|
+
min-width: 0;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
.vertical .step {
|
|
33
|
+
display: grid;
|
|
34
|
+
grid-template-columns: auto minmax(0, 1fr);
|
|
35
|
+
column-gap: var(--space-4);
|
|
36
|
+
align-items: stretch;
|
|
37
|
+
flex: none;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.markerRow {
|
|
41
|
+
display: flex;
|
|
42
|
+
align-items: center;
|
|
43
|
+
width: 100%;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.rail {
|
|
47
|
+
display: flex;
|
|
48
|
+
flex-direction: column;
|
|
49
|
+
align-items: center;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
.line {
|
|
53
|
+
flex: 1;
|
|
54
|
+
min-width: var(--space-2);
|
|
55
|
+
height: var(--border-width-medium);
|
|
56
|
+
background: var(--border-faint);
|
|
57
|
+
transition: background-color var(--motion-interaction-duration) var(--motion-interaction-easing);
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
.lineComplete {
|
|
61
|
+
background: var(--fill-strong);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
.horizontal .step:first-child .lineStart,
|
|
65
|
+
.horizontal .step:last-child .lineEnd {
|
|
66
|
+
visibility: hidden;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
.vertical .line {
|
|
70
|
+
width: var(--border-width-medium);
|
|
71
|
+
min-width: 0;
|
|
72
|
+
min-height: var(--space-6);
|
|
73
|
+
height: auto;
|
|
74
|
+
margin-block: var(--space-1);
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
.marker {
|
|
78
|
+
display: flex;
|
|
79
|
+
align-items: center;
|
|
80
|
+
justify-content: center;
|
|
81
|
+
flex-shrink: 0;
|
|
82
|
+
box-sizing: border-box;
|
|
83
|
+
border-radius: var(--radius-full);
|
|
84
|
+
font-family: var(--font-sans);
|
|
85
|
+
font-weight: var(--type-weight-label);
|
|
86
|
+
font-variant-numeric: tabular-nums;
|
|
87
|
+
line-height: 1;
|
|
88
|
+
transition:
|
|
89
|
+
background-color var(--motion-interaction-duration) var(--motion-interaction-easing),
|
|
90
|
+
border-color var(--motion-interaction-duration) var(--motion-interaction-easing),
|
|
91
|
+
color var(--motion-interaction-duration) var(--motion-interaction-easing),
|
|
92
|
+
box-shadow var(--motion-interaction-duration) var(--motion-interaction-easing);
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
.sm .marker {
|
|
96
|
+
width: var(--space-6);
|
|
97
|
+
height: var(--space-6);
|
|
98
|
+
font-size: var(--type-size-caption);
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
.md .marker {
|
|
102
|
+
width: var(--space-8);
|
|
103
|
+
height: var(--space-8);
|
|
104
|
+
font-size: var(--type-size-body-sm);
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
.complete .marker {
|
|
108
|
+
border: var(--border-width-medium) solid var(--fill-strong);
|
|
109
|
+
background: var(--fill-strong);
|
|
110
|
+
color: var(--icon-inverse);
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
.current .marker {
|
|
114
|
+
border: var(--border-width-medium) solid var(--border-brand);
|
|
115
|
+
background: var(--surface-card);
|
|
116
|
+
color: var(--text-brand);
|
|
117
|
+
box-shadow: 0 0 0 var(--space-1) var(--fill-brand-subtle);
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
.upcoming .marker {
|
|
121
|
+
border: var(--border-width-thin) solid var(--border-strong);
|
|
122
|
+
background: var(--surface-card);
|
|
123
|
+
color: var(--text-muted);
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
.error .marker {
|
|
127
|
+
border: var(--border-width-medium) solid var(--fill-danger);
|
|
128
|
+
background: var(--fill-danger);
|
|
129
|
+
color: var(--icon-inverse);
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
.number {
|
|
133
|
+
font: inherit;
|
|
134
|
+
color: inherit;
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
.copy {
|
|
138
|
+
display: grid;
|
|
139
|
+
gap: var(--space-1);
|
|
140
|
+
margin-top: var(--space-3);
|
|
141
|
+
padding-inline: var(--space-2);
|
|
142
|
+
width: 100%;
|
|
143
|
+
min-width: 0;
|
|
144
|
+
text-align: center;
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
.vertical .copy {
|
|
148
|
+
margin-top: 0;
|
|
149
|
+
padding-inline: 0;
|
|
150
|
+
padding-block-end: var(--space-6);
|
|
151
|
+
text-align: start;
|
|
152
|
+
align-self: start;
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
.vertical .step:last-child .copy {
|
|
156
|
+
padding-block-end: 0;
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
.label {
|
|
160
|
+
font-family: var(--font-sans);
|
|
161
|
+
font-size: var(--type-size-label);
|
|
162
|
+
font-weight: var(--type-weight-label);
|
|
163
|
+
line-height: var(--type-line-body);
|
|
164
|
+
color: var(--text-primary);
|
|
165
|
+
overflow-wrap: anywhere;
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
.sm .label {
|
|
169
|
+
font-size: var(--type-size-caption);
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
.upcoming .label {
|
|
173
|
+
color: var(--text-secondary);
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
.error .label {
|
|
177
|
+
color: var(--text-danger);
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
.description {
|
|
181
|
+
font-family: var(--font-sans);
|
|
182
|
+
font-size: var(--type-size-caption);
|
|
183
|
+
font-weight: var(--type-weight-body);
|
|
184
|
+
line-height: var(--type-line-body);
|
|
185
|
+
color: var(--text-secondary);
|
|
186
|
+
overflow-wrap: anywhere;
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
.upcoming .description {
|
|
190
|
+
color: var(--text-muted);
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
.srOnly {
|
|
194
|
+
position: absolute;
|
|
195
|
+
width: 1px;
|
|
196
|
+
height: 1px;
|
|
197
|
+
padding: 0;
|
|
198
|
+
margin: -1px;
|
|
199
|
+
overflow: hidden;
|
|
200
|
+
clip: rect(0, 0, 0, 0);
|
|
201
|
+
white-space: nowrap;
|
|
202
|
+
border: 0;
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
@media (prefers-reduced-motion: reduce) {
|
|
206
|
+
.line,
|
|
207
|
+
.marker {
|
|
208
|
+
transition: none;
|
|
209
|
+
}
|
|
210
|
+
}
|