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,150 @@
|
|
|
1
|
+
.card {
|
|
2
|
+
display: grid;
|
|
3
|
+
gap: var(--space-stack-sm);
|
|
4
|
+
width: min(100%, 16rem);
|
|
5
|
+
min-width: 0;
|
|
6
|
+
margin: 0;
|
|
7
|
+
padding: var(--space-inset-md);
|
|
8
|
+
border: var(--border-highlight) solid var(--border-faint);
|
|
9
|
+
border-radius: var(--radius-surface-md);
|
|
10
|
+
background: var(--surface-card);
|
|
11
|
+
font-family: var(--font-sans);
|
|
12
|
+
text-align: start;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.sm {
|
|
16
|
+
width: min(100%, 12.5rem);
|
|
17
|
+
gap: var(--space-stack-xs);
|
|
18
|
+
padding: var(--space-inset-sm);
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.md {
|
|
22
|
+
width: min(100%, 16rem);
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.lg {
|
|
26
|
+
width: min(100%, 20rem);
|
|
27
|
+
gap: var(--space-stack-md);
|
|
28
|
+
padding: var(--space-inset-lg);
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.fill {
|
|
32
|
+
width: 100%;
|
|
33
|
+
max-width: none;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
.header {
|
|
37
|
+
display: flex;
|
|
38
|
+
align-items: center;
|
|
39
|
+
justify-content: space-between;
|
|
40
|
+
gap: var(--space-inline-sm);
|
|
41
|
+
min-width: 0;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
.badgeSlot {
|
|
45
|
+
flex-shrink: 0;
|
|
46
|
+
margin-inline-start: auto;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
.label {
|
|
50
|
+
min-width: 0;
|
|
51
|
+
color: var(--text-secondary);
|
|
52
|
+
font-size: var(--type-size-caption);
|
|
53
|
+
font-weight: var(--type-weight-caption);
|
|
54
|
+
line-height: var(--type-line-body);
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
.value {
|
|
58
|
+
color: var(--text-primary);
|
|
59
|
+
font-size: var(--type-size-title);
|
|
60
|
+
font-weight: var(--type-weight-metric);
|
|
61
|
+
line-height: var(--type-line-heading);
|
|
62
|
+
font-variant-numeric: tabular-nums;
|
|
63
|
+
font-feature-settings: "tnum";
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
.sm .value {
|
|
67
|
+
font-size: var(--type-size-heading);
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
.lg .value {
|
|
71
|
+
font-size: var(--type-size-metric);
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
.footer {
|
|
75
|
+
display: flex;
|
|
76
|
+
flex-wrap: wrap;
|
|
77
|
+
align-items: center;
|
|
78
|
+
gap: var(--space-inline-xs) var(--space-inline-sm);
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
.delta {
|
|
82
|
+
display: inline-flex;
|
|
83
|
+
align-items: center;
|
|
84
|
+
gap: var(--space-inline-xs);
|
|
85
|
+
font-size: var(--type-size-caption);
|
|
86
|
+
font-weight: var(--type-weight-caption);
|
|
87
|
+
line-height: var(--type-line-body);
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
.icon {
|
|
91
|
+
display: block;
|
|
92
|
+
flex-shrink: 0;
|
|
93
|
+
width: 0.95rem;
|
|
94
|
+
height: 0.95rem;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
.up {
|
|
98
|
+
color: var(--text-success);
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
.down {
|
|
102
|
+
color: var(--text-danger);
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
.flat,
|
|
106
|
+
.neutral {
|
|
107
|
+
color: var(--text-secondary);
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
.hint {
|
|
111
|
+
color: var(--text-muted);
|
|
112
|
+
font-size: var(--type-size-caption);
|
|
113
|
+
font-weight: var(--type-weight-caption);
|
|
114
|
+
line-height: var(--type-line-body);
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
.interactive {
|
|
118
|
+
appearance: none;
|
|
119
|
+
font: inherit;
|
|
120
|
+
color: inherit;
|
|
121
|
+
text-align: start;
|
|
122
|
+
background: var(--surface-card);
|
|
123
|
+
cursor: pointer;
|
|
124
|
+
transition:
|
|
125
|
+
transform var(--motion-interaction-duration) var(--motion-interaction-easing),
|
|
126
|
+
border-color var(--motion-interaction-duration) var(--motion-interaction-easing);
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
.interactive:hover {
|
|
130
|
+
border-color: var(--border-strong);
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
.interactive:active {
|
|
134
|
+
transform: scale(0.98);
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
.interactive:focus-visible {
|
|
138
|
+
outline: var(--border-focus-width) solid var(--focus-ring);
|
|
139
|
+
outline-offset: var(--space-inset-2xs);
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
@media (prefers-reduced-motion: reduce) {
|
|
143
|
+
.interactive {
|
|
144
|
+
transition: none;
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
.interactive:active {
|
|
148
|
+
transform: none;
|
|
149
|
+
}
|
|
150
|
+
}
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
|
|
3
|
+
import { useId } from "react";
|
|
4
|
+
import { Badge } from "../Badge";
|
|
5
|
+
import { LucideByName } from "../Button/lucideName";
|
|
6
|
+
import type { ScorecardProps, ScorecardTrend } from "./Scorecard.types";
|
|
7
|
+
import styles from "./Scorecard.module.css";
|
|
8
|
+
|
|
9
|
+
export type { ScorecardProps, ScorecardTrend, ScorecardSize } from "./Scorecard.types";
|
|
10
|
+
|
|
11
|
+
const TREND_ICON: Record<ScorecardTrend, string> = {
|
|
12
|
+
up: "TrendingUp",
|
|
13
|
+
down: "TrendingDown",
|
|
14
|
+
flat: "Minus",
|
|
15
|
+
neutral: "Minus",
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
const TREND_CLASS: Record<ScorecardTrend, string> = {
|
|
19
|
+
up: styles.up,
|
|
20
|
+
down: styles.down,
|
|
21
|
+
flat: styles.flat,
|
|
22
|
+
neutral: styles.neutral,
|
|
23
|
+
};
|
|
24
|
+
|
|
25
|
+
export function Scorecard({
|
|
26
|
+
label,
|
|
27
|
+
value,
|
|
28
|
+
delta,
|
|
29
|
+
trend = "neutral",
|
|
30
|
+
hint,
|
|
31
|
+
size = "md",
|
|
32
|
+
badge,
|
|
33
|
+
badgeTone = "neutral",
|
|
34
|
+
onClick,
|
|
35
|
+
fill = false,
|
|
36
|
+
}: ScorecardProps) {
|
|
37
|
+
const labelId = useId();
|
|
38
|
+
const valueId = useId();
|
|
39
|
+
const labelledBy = label ? `${labelId} ${valueId}` : valueId;
|
|
40
|
+
const className = [styles.card, styles[size], fill ? styles.fill : "", onClick ? styles.interactive : ""]
|
|
41
|
+
.filter(Boolean)
|
|
42
|
+
.join(" ");
|
|
43
|
+
|
|
44
|
+
const body = (
|
|
45
|
+
<>
|
|
46
|
+
{label || badge ? (
|
|
47
|
+
<span className={styles.header}>
|
|
48
|
+
{label ? (
|
|
49
|
+
<span id={labelId} className={styles.label}>
|
|
50
|
+
{label}
|
|
51
|
+
</span>
|
|
52
|
+
) : null}
|
|
53
|
+
{badge ? (
|
|
54
|
+
<span className={styles.badgeSlot}>
|
|
55
|
+
<Badge size="sm" tone={badgeTone}>
|
|
56
|
+
{badge}
|
|
57
|
+
</Badge>
|
|
58
|
+
</span>
|
|
59
|
+
) : null}
|
|
60
|
+
</span>
|
|
61
|
+
) : null}
|
|
62
|
+
<span id={valueId} className={styles.value}>
|
|
63
|
+
{value}
|
|
64
|
+
</span>
|
|
65
|
+
{delta || hint ? (
|
|
66
|
+
<span className={styles.footer}>
|
|
67
|
+
{delta ? (
|
|
68
|
+
<span className={`${styles.delta} ${TREND_CLASS[trend]}`}>
|
|
69
|
+
<LucideByName name={TREND_ICON[trend]} size={15} className={styles.icon} />
|
|
70
|
+
{delta}
|
|
71
|
+
</span>
|
|
72
|
+
) : null}
|
|
73
|
+
{hint ? <span className={styles.hint}>{hint}</span> : null}
|
|
74
|
+
</span>
|
|
75
|
+
) : null}
|
|
76
|
+
</>
|
|
77
|
+
);
|
|
78
|
+
|
|
79
|
+
if (onClick) {
|
|
80
|
+
return (
|
|
81
|
+
<button type="button" className={className} onClick={onClick} aria-labelledby={labelledBy}>
|
|
82
|
+
{body}
|
|
83
|
+
</button>
|
|
84
|
+
);
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
return (
|
|
88
|
+
<article className={className} aria-labelledby={labelledBy}>
|
|
89
|
+
{body}
|
|
90
|
+
</article>
|
|
91
|
+
);
|
|
92
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { BadgeTone } from "../Badge/Badge.types";
|
|
2
|
+
|
|
3
|
+
export type ScorecardTrend = "up" | "down" | "flat" | "neutral";
|
|
4
|
+
|
|
5
|
+
export type ScorecardSize = "sm" | "md" | "lg";
|
|
6
|
+
|
|
7
|
+
export interface ScorecardProps {
|
|
8
|
+
label: string;
|
|
9
|
+
value: string;
|
|
10
|
+
delta?: string;
|
|
11
|
+
trend?: ScorecardTrend;
|
|
12
|
+
hint?: string;
|
|
13
|
+
size?: ScorecardSize;
|
|
14
|
+
badge?: string;
|
|
15
|
+
badgeTone?: BadgeTone;
|
|
16
|
+
onClick?: () => void;
|
|
17
|
+
fill?: boolean;
|
|
18
|
+
}
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
.section {
|
|
2
|
+
--section-space: var(--space-section-md);
|
|
3
|
+
--section-header-gap: var(--space-stack-sm);
|
|
4
|
+
width: 100%;
|
|
5
|
+
min-width: 0;
|
|
6
|
+
margin: 0 0 var(--section-space);
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
.sm {
|
|
10
|
+
--section-space: var(--space-section-sm);
|
|
11
|
+
--section-header-gap: var(--space-stack-sm);
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.md {
|
|
15
|
+
--section-space: var(--space-section-md);
|
|
16
|
+
--section-header-gap: var(--space-stack-md);
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.lg {
|
|
20
|
+
--section-space: var(--space-section-lg);
|
|
21
|
+
--section-header-gap: var(--space-stack-lg);
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.header {
|
|
25
|
+
display: flex;
|
|
26
|
+
flex-wrap: wrap;
|
|
27
|
+
align-items: flex-start;
|
|
28
|
+
justify-content: space-between;
|
|
29
|
+
gap: var(--space-inline-sm) var(--space-inline-lg);
|
|
30
|
+
margin: 0;
|
|
31
|
+
padding-bottom: var(--section-header-gap);
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.collapsible:has(> .body[hidden]) .header {
|
|
35
|
+
padding-bottom: 0;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.heading {
|
|
39
|
+
display: grid;
|
|
40
|
+
gap: var(--space-stack-xs);
|
|
41
|
+
min-width: 0;
|
|
42
|
+
flex: 1;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.title {
|
|
46
|
+
margin: 0;
|
|
47
|
+
font-family: var(--font-sans);
|
|
48
|
+
font-size: var(--type-size-heading);
|
|
49
|
+
font-weight: var(--type-weight-heading);
|
|
50
|
+
line-height: var(--type-line-heading);
|
|
51
|
+
color: var(--text-primary);
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
.trigger {
|
|
55
|
+
display: inline-flex;
|
|
56
|
+
align-items: center;
|
|
57
|
+
gap: var(--space-2);
|
|
58
|
+
max-width: 100%;
|
|
59
|
+
margin: 0;
|
|
60
|
+
padding: 0;
|
|
61
|
+
border: 0;
|
|
62
|
+
background: transparent;
|
|
63
|
+
color: inherit;
|
|
64
|
+
font: inherit;
|
|
65
|
+
text-align: start;
|
|
66
|
+
cursor: pointer;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
.trigger:focus-visible {
|
|
70
|
+
outline: var(--border-focus-width) solid var(--focus-ring);
|
|
71
|
+
outline-offset: var(--space-inset-2xs);
|
|
72
|
+
border-radius: var(--radius-control-sm);
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
.chevron {
|
|
76
|
+
flex-shrink: 0;
|
|
77
|
+
color: var(--icon-muted);
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
.collapsible .description {
|
|
81
|
+
padding-inline-start: calc(18px + var(--space-2));
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
.description {
|
|
85
|
+
margin: 0;
|
|
86
|
+
font-family: var(--font-sans);
|
|
87
|
+
font-size: var(--type-size-body-sm);
|
|
88
|
+
line-height: var(--type-line-body);
|
|
89
|
+
color: var(--text-secondary);
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
.actions {
|
|
93
|
+
display: flex;
|
|
94
|
+
flex-wrap: wrap;
|
|
95
|
+
align-items: center;
|
|
96
|
+
gap: var(--space-inline-sm);
|
|
97
|
+
flex-shrink: 0;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
.body {
|
|
101
|
+
width: 100%;
|
|
102
|
+
min-width: 0;
|
|
103
|
+
}
|
|
104
|
+
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
|
|
3
|
+
import { useId, useState } from "react";
|
|
4
|
+
import { LucideByName } from "../Button/lucideName";
|
|
5
|
+
import type { SectionProps } from "./Section.types";
|
|
6
|
+
import styles from "./Section.module.css";
|
|
7
|
+
|
|
8
|
+
export type { SectionProps, SectionSize } from "./Section.types";
|
|
9
|
+
|
|
10
|
+
export function Section({
|
|
11
|
+
title,
|
|
12
|
+
description,
|
|
13
|
+
size = "md",
|
|
14
|
+
actions,
|
|
15
|
+
children,
|
|
16
|
+
collapsible = true,
|
|
17
|
+
defaultOpen = true,
|
|
18
|
+
open: openProp,
|
|
19
|
+
onOpenChange,
|
|
20
|
+
}: SectionProps) {
|
|
21
|
+
const headingId = useId();
|
|
22
|
+
const panelId = useId();
|
|
23
|
+
const canCollapse = Boolean(collapsible && title);
|
|
24
|
+
const isControlled = typeof openProp === "boolean";
|
|
25
|
+
const [uncontrolledOpen, setUncontrolledOpen] = useState(defaultOpen);
|
|
26
|
+
const open = canCollapse ? (isControlled ? openProp : uncontrolledOpen) : true;
|
|
27
|
+
|
|
28
|
+
function setOpen(next: boolean) {
|
|
29
|
+
if (!isControlled) setUncontrolledOpen(next);
|
|
30
|
+
onOpenChange?.(next);
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
const showHeader = Boolean(title || description || actions);
|
|
34
|
+
|
|
35
|
+
return (
|
|
36
|
+
<section
|
|
37
|
+
className={`${styles.section} ${styles[size]}${canCollapse ? ` ${styles.collapsible}` : ""}`}
|
|
38
|
+
aria-labelledby={title ? headingId : undefined}
|
|
39
|
+
>
|
|
40
|
+
{showHeader ? (
|
|
41
|
+
<header className={styles.header}>
|
|
42
|
+
<div className={styles.heading}>
|
|
43
|
+
{title ? (
|
|
44
|
+
<h2 id={headingId} className={styles.title}>
|
|
45
|
+
{canCollapse ? (
|
|
46
|
+
<button
|
|
47
|
+
type="button"
|
|
48
|
+
className={styles.trigger}
|
|
49
|
+
aria-expanded={open}
|
|
50
|
+
aria-controls={panelId}
|
|
51
|
+
onClick={() => setOpen(!open)}
|
|
52
|
+
>
|
|
53
|
+
<LucideByName
|
|
54
|
+
name={open ? "ChevronDown" : "ChevronRight"}
|
|
55
|
+
size={18}
|
|
56
|
+
className={styles.chevron}
|
|
57
|
+
/>
|
|
58
|
+
{title}
|
|
59
|
+
</button>
|
|
60
|
+
) : (
|
|
61
|
+
title
|
|
62
|
+
)}
|
|
63
|
+
</h2>
|
|
64
|
+
) : null}
|
|
65
|
+
{description ? <p className={styles.description}>{description}</p> : null}
|
|
66
|
+
</div>
|
|
67
|
+
{actions ? <div className={styles.actions}>{actions}</div> : null}
|
|
68
|
+
</header>
|
|
69
|
+
) : null}
|
|
70
|
+
<div id={canCollapse ? panelId : undefined} className={styles.body} hidden={canCollapse ? !open : undefined}>
|
|
71
|
+
{children}
|
|
72
|
+
</div>
|
|
73
|
+
</section>
|
|
74
|
+
);
|
|
75
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { ReactNode } from "react";
|
|
2
|
+
|
|
3
|
+
export type SectionSize = "sm" | "md" | "lg";
|
|
4
|
+
|
|
5
|
+
export interface SectionProps {
|
|
6
|
+
title?: string;
|
|
7
|
+
description?: string;
|
|
8
|
+
size?: SectionSize;
|
|
9
|
+
actions?: ReactNode;
|
|
10
|
+
children: ReactNode;
|
|
11
|
+
collapsible?: boolean;
|
|
12
|
+
defaultOpen?: boolean;
|
|
13
|
+
open?: boolean;
|
|
14
|
+
onOpenChange?: (open: boolean) => void;
|
|
15
|
+
}
|
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
|
|
3
|
+
import { useState } from "react";
|
|
4
|
+
import { DropdownMenu } from "../DropdownMenu";
|
|
5
|
+
import type { SelectProps } from "./Select.types";
|
|
6
|
+
|
|
7
|
+
export type { SelectProps, SelectOption, SelectSize, SelectItemCheck } from "./Select.types";
|
|
8
|
+
|
|
9
|
+
function optionId(value: string): string {
|
|
10
|
+
return value === "" ? "__empty" : value;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
function asList(value: string | string[] | undefined): string[] {
|
|
14
|
+
if (value === undefined) return [];
|
|
15
|
+
if (Array.isArray(value)) return value;
|
|
16
|
+
return [value];
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
function initialValue(
|
|
20
|
+
multiple: boolean,
|
|
21
|
+
placeholder: string | undefined,
|
|
22
|
+
defaultValue: string | string[] | undefined,
|
|
23
|
+
first: string | undefined,
|
|
24
|
+
): string | string[] {
|
|
25
|
+
if (defaultValue !== undefined) return defaultValue;
|
|
26
|
+
if (multiple) return [];
|
|
27
|
+
if (placeholder) return "";
|
|
28
|
+
return first ?? "";
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
export function Select({
|
|
32
|
+
id,
|
|
33
|
+
size = "md",
|
|
34
|
+
options,
|
|
35
|
+
disabled = false,
|
|
36
|
+
error = false,
|
|
37
|
+
multiple = false,
|
|
38
|
+
itemCheck = "check",
|
|
39
|
+
maxVisible,
|
|
40
|
+
searchable = false,
|
|
41
|
+
placeholder,
|
|
42
|
+
defaultValue,
|
|
43
|
+
value: valueProp,
|
|
44
|
+
onChange,
|
|
45
|
+
name,
|
|
46
|
+
ariaLabel,
|
|
47
|
+
describedBy,
|
|
48
|
+
}: SelectProps) {
|
|
49
|
+
const [uncontrolled, setUncontrolled] = useState<string | string[]>(() =>
|
|
50
|
+
initialValue(multiple, placeholder, defaultValue, options[0]?.value),
|
|
51
|
+
);
|
|
52
|
+
const isControlled = valueProp !== undefined;
|
|
53
|
+
const raw = isControlled ? valueProp : uncontrolled;
|
|
54
|
+
const values = asList(raw);
|
|
55
|
+
const selectedOptions = options.filter((option) => values.includes(option.value));
|
|
56
|
+
const overflow =
|
|
57
|
+
multiple && maxVisible !== undefined && selectedOptions.length > maxVisible
|
|
58
|
+
? selectedOptions.length - maxVisible
|
|
59
|
+
: 0;
|
|
60
|
+
const shown = overflow > 0 ? selectedOptions.slice(0, maxVisible) : selectedOptions;
|
|
61
|
+
const trigger =
|
|
62
|
+
shown.length > 0 ? shown.map((option) => option.label).join(", ") : placeholder || "Select";
|
|
63
|
+
const muted = selectedOptions.length === 0;
|
|
64
|
+
const useCheckbox = multiple && itemCheck === "checkbox";
|
|
65
|
+
|
|
66
|
+
function emit(next: string | string[]) {
|
|
67
|
+
if (!isControlled) setUncontrolled(next);
|
|
68
|
+
onChange?.(next);
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
return (
|
|
72
|
+
<>
|
|
73
|
+
{name ? (
|
|
74
|
+
<input type="hidden" name={name} value={multiple ? values.join(",") : (values[0] ?? "")} />
|
|
75
|
+
) : null}
|
|
76
|
+
<DropdownMenu
|
|
77
|
+
id={id}
|
|
78
|
+
triggerStyle="field"
|
|
79
|
+
trigger={trigger}
|
|
80
|
+
triggerMuted={muted}
|
|
81
|
+
triggerBadge={overflow > 0 ? `+${overflow}` : undefined}
|
|
82
|
+
iconEnd="ChevronsUpDown"
|
|
83
|
+
size={size === "sm" ? "sm" : "md"}
|
|
84
|
+
disabled={disabled}
|
|
85
|
+
error={error}
|
|
86
|
+
describedBy={describedBy}
|
|
87
|
+
ariaLabel={ariaLabel}
|
|
88
|
+
closeOnSelect={!multiple}
|
|
89
|
+
searchable={searchable}
|
|
90
|
+
groups={[
|
|
91
|
+
{
|
|
92
|
+
items: options.map((option) => ({
|
|
93
|
+
id: optionId(option.value),
|
|
94
|
+
label: option.label,
|
|
95
|
+
selected: values.includes(option.value),
|
|
96
|
+
checkbox: useCheckbox || undefined,
|
|
97
|
+
})),
|
|
98
|
+
},
|
|
99
|
+
]}
|
|
100
|
+
onSelect={(next) => {
|
|
101
|
+
const match = options.find((option) => optionId(option.value) === next);
|
|
102
|
+
if (!match) return;
|
|
103
|
+
if (multiple) {
|
|
104
|
+
const has = values.includes(match.value);
|
|
105
|
+
emit(has ? values.filter((value) => value !== match.value) : [...values, match.value]);
|
|
106
|
+
return;
|
|
107
|
+
}
|
|
108
|
+
emit(match.value);
|
|
109
|
+
}}
|
|
110
|
+
/>
|
|
111
|
+
</>
|
|
112
|
+
);
|
|
113
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
export type SelectSize = "sm" | "md";
|
|
2
|
+
export type SelectItemCheck = "check" | "checkbox";
|
|
3
|
+
|
|
4
|
+
export interface SelectOption {
|
|
5
|
+
value: string;
|
|
6
|
+
label: string;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
export interface SelectProps {
|
|
10
|
+
id: string;
|
|
11
|
+
size?: SelectSize;
|
|
12
|
+
options: SelectOption[];
|
|
13
|
+
disabled?: boolean;
|
|
14
|
+
error?: boolean;
|
|
15
|
+
multiple?: boolean;
|
|
16
|
+
itemCheck?: SelectItemCheck;
|
|
17
|
+
maxVisible?: number;
|
|
18
|
+
searchable?: boolean;
|
|
19
|
+
placeholder?: string;
|
|
20
|
+
defaultValue?: string | string[];
|
|
21
|
+
value?: string | string[];
|
|
22
|
+
onChange?: (value: string | string[]) => void;
|
|
23
|
+
name?: string;
|
|
24
|
+
ariaLabel?: string;
|
|
25
|
+
describedBy?: string;
|
|
26
|
+
}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
.root {
|
|
2
|
+
--shimmer-text-duration: calc(var(--motion-modal-duration) * var(--shimmer-duration-factor, 4));
|
|
3
|
+
display: inline-block;
|
|
4
|
+
color: var(--text-primary);
|
|
5
|
+
font-family: var(--font-sans);
|
|
6
|
+
font-size: var(--type-size-body);
|
|
7
|
+
line-height: var(--type-line-body);
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
.content {
|
|
11
|
+
white-space: pre-wrap;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.character {
|
|
15
|
+
display: inline-block;
|
|
16
|
+
opacity: 0.45;
|
|
17
|
+
animation: shimmer-wave var(--shimmer-text-duration) var(--motion-expand-easing) infinite;
|
|
18
|
+
animation-delay: calc(var(--shimmer-text-duration) * var(--shimmer-phase) * -1);
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.sm {
|
|
22
|
+
font-size: var(--type-size-body-sm);
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.lg {
|
|
26
|
+
font-size: var(--type-size-heading-sm);
|
|
27
|
+
font-weight: var(--type-weight-heading);
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
@keyframes shimmer-wave {
|
|
31
|
+
0%,
|
|
32
|
+
100% {
|
|
33
|
+
opacity: 0.35;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
50% {
|
|
37
|
+
opacity: 1;
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
@media (prefers-reduced-motion: reduce) {
|
|
42
|
+
.character {
|
|
43
|
+
opacity: 1;
|
|
44
|
+
animation: none;
|
|
45
|
+
}
|
|
46
|
+
}
|