@sybilion/uilib 1.3.93 → 1.3.96
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/assets/globals.css +98 -0
- package/dist/esm/components/ui/Badge/Badge.styl.js +1 -1
- package/dist/esm/components/ui/BarChart/BarChart.js +32 -0
- package/dist/esm/components/ui/BarChart/BarChart.styl.js +7 -0
- package/dist/esm/components/ui/Button/Button.js +1 -1
- package/dist/esm/components/ui/Button/Button.styl.js +1 -1
- package/dist/esm/components/ui/Card/Card.styl.js +1 -1
- package/dist/esm/components/ui/Chart/Chart.helpers.js +15 -3
- package/dist/esm/components/ui/Chart/chartSeriesPalette.js +17 -0
- package/dist/esm/components/ui/Chat/ChatSheet/ChatSelector.js +2 -2
- package/dist/esm/components/ui/Checkbox/Checkbox.styl.js +1 -1
- package/dist/esm/components/ui/Chip/Chip.js +12 -0
- package/dist/esm/components/ui/Chip/Chip.styl.js +7 -0
- package/dist/esm/components/ui/DonutChart/DonutChart.js +35 -0
- package/dist/esm/components/ui/DonutChart/DonutChart.styl.js +7 -0
- package/dist/esm/components/ui/Input/Input.styl.js +1 -1
- package/dist/esm/components/ui/Kicker/Kicker.js +9 -0
- package/dist/esm/components/ui/Kicker/Kicker.styl.js +7 -0
- package/dist/esm/components/ui/LabeledInput/LabeledInput.styl.js +1 -1
- package/dist/esm/components/ui/PullQuote/PullQuote.js +9 -0
- package/dist/esm/components/ui/PullQuote/PullQuote.styl.js +7 -0
- package/dist/esm/components/ui/Select/Select.styl.js +1 -1
- package/dist/esm/components/ui/Sidebar/Sidebar.styl.js +1 -1
- package/dist/esm/components/ui/SignalCard/SignalCard.js +17 -0
- package/dist/esm/components/ui/SignalCard/SignalCard.styl.js +7 -0
- package/dist/esm/components/ui/Switch/Switch.styl.js +1 -1
- package/dist/esm/components/ui/Table/Table.js +4 -4
- package/dist/esm/components/ui/Table/Table.styl.js +2 -2
- package/dist/esm/components/ui/Tooltip/Tooltip.styl.js +1 -1
- package/dist/esm/components/widgets/PerformanceChart/PerformanceChart.styl.js +2 -2
- package/dist/esm/components/widgets/PerformanceChart/PerformanceTable.js +5 -5
- package/dist/esm/index.js +6 -0
- package/dist/esm/types/src/components/ui/BarChart/BarChart.d.ts +3 -0
- package/dist/esm/types/src/components/ui/BarChart/BarChart.types.d.ts +28 -0
- package/dist/esm/types/src/components/ui/BarChart/index.d.ts +2 -0
- package/dist/esm/types/src/components/ui/Chart/chartSeriesPalette.d.ts +6 -0
- package/dist/esm/types/src/components/ui/Chip/Chip.d.ts +3 -0
- package/dist/esm/types/src/components/ui/Chip/Chip.types.d.ts +13 -0
- package/dist/esm/types/src/components/ui/Chip/index.d.ts +2 -0
- package/dist/esm/types/src/components/ui/DonutChart/DonutChart.d.ts +3 -0
- package/dist/esm/types/src/components/ui/DonutChart/DonutChart.types.d.ts +25 -0
- package/dist/esm/types/src/components/ui/DonutChart/index.d.ts +2 -0
- package/dist/esm/types/src/components/ui/Kicker/Kicker.d.ts +3 -0
- package/dist/esm/types/src/components/ui/Kicker/Kicker.types.d.ts +5 -0
- package/dist/esm/types/src/components/ui/Kicker/index.d.ts +2 -0
- package/dist/esm/types/src/components/ui/PullQuote/PullQuote.d.ts +3 -0
- package/dist/esm/types/src/components/ui/PullQuote/PullQuote.types.d.ts +7 -0
- package/dist/esm/types/src/components/ui/PullQuote/index.d.ts +2 -0
- package/dist/esm/types/src/components/ui/Select/Select.types.d.ts +1 -1
- package/dist/esm/types/src/components/ui/SignalCard/SignalCard.d.ts +3 -0
- package/dist/esm/types/src/components/ui/SignalCard/SignalCard.types.d.ts +23 -0
- package/dist/esm/types/src/components/ui/SignalCard/index.d.ts +2 -0
- package/dist/esm/types/src/components/ui/Table/Table.d.ts +2 -5
- package/dist/esm/types/src/components/ui/Table/Table.types.d.ts +4 -1
- package/dist/esm/types/src/components/ui/Table/index.d.ts +1 -1
- package/dist/esm/types/src/docs/components/DocsGuidance/DocsGuidance.d.ts +14 -0
- package/dist/esm/types/src/docs/pages/BarChartPage.d.ts +1 -0
- package/dist/esm/types/src/docs/pages/ChipPage.d.ts +1 -0
- package/dist/esm/types/src/docs/pages/ColorsPage.d.ts +1 -0
- package/dist/esm/types/src/docs/pages/DonutChartPage.d.ts +1 -0
- package/dist/esm/types/src/docs/pages/IconsPage.d.ts +1 -0
- package/dist/esm/types/src/docs/pages/KickerPage.d.ts +1 -0
- package/dist/esm/types/src/docs/pages/MotionPage.d.ts +1 -0
- package/dist/esm/types/src/docs/pages/PullQuotePage.d.ts +1 -0
- package/dist/esm/types/src/docs/pages/RadiiShadowsPage.d.ts +1 -0
- package/dist/esm/types/src/docs/pages/SignalCardPage.d.ts +1 -0
- package/dist/esm/types/src/docs/pages/SpacingPage.d.ts +1 -0
- package/dist/esm/types/src/docs/pages/TypographyPage.d.ts +1 -0
- package/dist/esm/types/src/docs/registry.d.ts +1 -1
- package/dist/esm/types/src/index.d.ts +6 -0
- package/dist/esm/types/tests/charts.test.d.ts +1 -0
- package/dist/esm/types/tests/chip.test.d.ts +1 -0
- package/dist/esm/types/tests/componentsSmoke.test.d.ts +1 -0
- package/dist/esm/types/tests/docsRegistry.test.d.ts +1 -0
- package/dist/esm/types/tests/iconsPageFilter.test.d.ts +1 -0
- package/dist/esm/types/tests/mocks/homecodeUiMock.d.ts +32 -1
- package/dist/esm/types/tests/mocks/lightweightChartsMock.d.ts +29 -0
- package/dist/esm/types/tests/pullQuoteKicker.test.d.ts +1 -0
- package/dist/esm/types/tests/signalCard.test.d.ts +1 -0
- package/dist/esm/types/tests/tokenSync.test.d.ts +1 -0
- package/package.json +1 -1
- package/src/components/ui/Badge/Badge.styl +4 -4
- package/src/components/ui/BarChart/BarChart.styl +2 -0
- package/src/components/ui/BarChart/BarChart.styl.d.ts +7 -0
- package/src/components/ui/BarChart/BarChart.tsx +142 -0
- package/src/components/ui/BarChart/BarChart.types.ts +36 -0
- package/src/components/ui/BarChart/index.ts +2 -0
- package/src/components/ui/Button/Button.styl +30 -28
- package/src/components/ui/Button/Button.tsx +2 -1
- package/src/components/ui/Card/Card.styl +4 -3
- package/src/components/ui/Chart/Chart.helpers.ts +17 -3
- package/src/components/ui/Chart/chartSeriesPalette.ts +16 -0
- package/src/components/ui/Chat/ChatSheet/ChatSelector.tsx +2 -2
- package/src/components/ui/Checkbox/Checkbox.styl +1 -1
- package/src/components/ui/Chip/Chip.styl +78 -0
- package/src/components/ui/Chip/Chip.styl.d.ts +16 -0
- package/src/components/ui/Chip/Chip.tsx +35 -0
- package/src/components/ui/Chip/Chip.types.ts +23 -0
- package/src/components/ui/Chip/index.ts +2 -0
- package/src/components/ui/DonutChart/DonutChart.styl +16 -0
- package/src/components/ui/DonutChart/DonutChart.styl.d.ts +10 -0
- package/src/components/ui/DonutChart/DonutChart.tsx +112 -0
- package/src/components/ui/DonutChart/DonutChart.types.ts +30 -0
- package/src/components/ui/DonutChart/index.ts +2 -0
- package/src/components/ui/Input/Input.styl +2 -2
- package/src/components/ui/Kicker/Kicker.styl +10 -0
- package/src/components/ui/Kicker/Kicker.styl.d.ts +7 -0
- package/src/components/ui/Kicker/Kicker.tsx +15 -0
- package/src/components/ui/Kicker/Kicker.types.ts +6 -0
- package/src/components/ui/Kicker/index.ts +2 -0
- package/src/components/ui/LabeledInput/LabeledInput.styl +4 -1
- package/src/components/ui/PullQuote/PullQuote.styl +32 -0
- package/src/components/ui/PullQuote/PullQuote.styl.d.ts +10 -0
- package/src/components/ui/PullQuote/PullQuote.tsx +31 -0
- package/src/components/ui/PullQuote/PullQuote.types.ts +8 -0
- package/src/components/ui/PullQuote/index.ts +2 -0
- package/src/components/ui/Select/Select.styl +21 -14
- package/src/components/ui/Select/Select.types.ts +1 -1
- package/src/components/ui/Sidebar/Sidebar.styl +1 -0
- package/src/components/ui/SignalCard/SignalCard.styl +104 -0
- package/src/components/ui/SignalCard/SignalCard.styl.d.ts +20 -0
- package/src/components/ui/SignalCard/SignalCard.tsx +87 -0
- package/src/components/ui/SignalCard/SignalCard.types.ts +24 -0
- package/src/components/ui/SignalCard/index.ts +2 -0
- package/src/components/ui/Switch/Switch.styl +7 -7
- package/src/components/ui/Table/Table.styl +37 -19
- package/src/components/ui/Table/Table.styl.d.ts +0 -1
- package/src/components/ui/Table/Table.tsx +5 -3
- package/src/components/ui/Table/Table.types.ts +8 -4
- package/src/components/ui/Table/index.ts +1 -1
- package/src/components/ui/Tooltip/Tooltip.styl +2 -2
- package/src/components/widgets/PerformanceChart/PerformanceChart.styl +3 -0
- package/src/components/widgets/PerformanceChart/PerformanceChart.styl.d.ts +1 -0
- package/src/components/widgets/PerformanceChart/PerformanceTable.tsx +8 -8
- package/src/contexts/chatPersistence.test.ts +13 -2
- package/src/docs/components/DocsGuidance/DocsGuidance.styl +33 -0
- package/src/docs/components/DocsGuidance/DocsGuidance.styl.d.ts +11 -0
- package/src/docs/components/DocsGuidance/DocsGuidance.tsx +57 -0
- package/src/docs/pages/AnalysesSelectorPage.tsx +16 -0
- package/src/docs/pages/AnalysisLineIconPage.tsx +12 -0
- package/src/docs/pages/AvatarPage.tsx +15 -0
- package/src/docs/pages/BadgePage.tsx +16 -0
- package/src/docs/pages/BarChartPage.tsx +109 -0
- package/src/docs/pages/BreadcrumbPage.tsx +15 -0
- package/src/docs/pages/ButtonPage.tsx +17 -0
- package/src/docs/pages/CardPage.tsx +190 -17
- package/src/docs/pages/ChartAreaInteractivePage.tsx +24 -7
- package/src/docs/pages/ChartPage.tsx +14 -0
- package/src/docs/pages/ChatAttachmentsDropzonePage.tsx +15 -0
- package/src/docs/pages/ChatComposerPrefillPage.tsx +15 -0
- package/src/docs/pages/ChatPage.tsx +15 -0
- package/src/docs/pages/ChatSheetPage.tsx +14 -0
- package/src/docs/pages/ChatSlashCommandsPage.tsx +15 -0
- package/src/docs/pages/ChatUserCsvAttachmentPage.tsx +14 -0
- package/src/docs/pages/CheckboxPage.tsx +37 -4
- package/src/docs/pages/ChipPage.tsx +160 -0
- package/src/docs/pages/ColorsPage.styl +27 -0
- package/src/docs/pages/ColorsPage.styl.d.ts +12 -0
- package/src/docs/pages/ColorsPage.tsx +102 -0
- package/src/docs/pages/ConfirmPage.tsx +15 -0
- package/src/docs/pages/DialogPage.tsx +15 -0
- package/src/docs/pages/DonutChartPage.tsx +80 -0
- package/src/docs/pages/DrawerPage.tsx +17 -0
- package/src/docs/pages/DriverMapPage.tsx +17 -0
- package/src/docs/pages/DriversComparisonChartPage.tsx +17 -0
- package/src/docs/pages/DropZonePage.tsx +16 -0
- package/src/docs/pages/DropdownMenuPage.tsx +16 -0
- package/src/docs/pages/FileChipPage.tsx +17 -0
- package/src/docs/pages/FlickeringGridPage.tsx +15 -0
- package/src/docs/pages/FoldablePage.tsx +16 -0
- package/src/docs/pages/GridLayoutPage.tsx +16 -0
- package/src/docs/pages/IconsPage.styl +74 -0
- package/src/docs/pages/IconsPage.styl.d.ts +17 -0
- package/src/docs/pages/IconsPage.tsx +125 -0
- package/src/docs/pages/ImagePage.tsx +16 -0
- package/src/docs/pages/ImageWithFallbackPage.tsx +15 -0
- package/src/docs/pages/IncludeHiddenInYScalePage.tsx +14 -0
- package/src/docs/pages/InputPage.tsx +134 -19
- package/src/docs/pages/InteractiveContentPage.tsx +15 -0
- package/src/docs/pages/KickerPage.tsx +62 -0
- package/src/docs/pages/LabelPage.tsx +15 -0
- package/src/docs/pages/LabelWithIdPage.tsx +11 -0
- package/src/docs/pages/LabeledInputPage.tsx +12 -0
- package/src/docs/pages/LegacyPlatformLinkPage.tsx +15 -0
- package/src/docs/pages/LightweightChartPage.styl +0 -1
- package/src/docs/pages/LightweightChartPage.tsx +17 -0
- package/src/docs/pages/LogoPage.tsx +15 -0
- package/src/docs/pages/MobileAdaptiveSelectorPage.tsx +15 -0
- package/src/docs/pages/MotionPage.styl +71 -0
- package/src/docs/pages/MotionPage.styl.d.ts +17 -0
- package/src/docs/pages/MotionPage.tsx +176 -0
- package/src/docs/pages/NavUserHeaderPage.tsx +15 -0
- package/src/docs/pages/NumberControlPage.tsx +15 -0
- package/src/docs/pages/PageColumnsPage.tsx +15 -0
- package/src/docs/pages/PageFooterPage.tsx +15 -0
- package/src/docs/pages/PagePage.tsx +15 -0
- package/src/docs/pages/PageTabsPage.tsx +18 -0
- package/src/docs/pages/PerformanceChartPage.tsx +15 -0
- package/src/docs/pages/ProgressPage.tsx +66 -3
- package/src/docs/pages/PullQuotePage.tsx +59 -0
- package/src/docs/pages/RadiiShadowsPage.styl +47 -0
- package/src/docs/pages/RadiiShadowsPage.styl.d.ts +14 -0
- package/src/docs/pages/RadiiShadowsPage.tsx +109 -0
- package/src/docs/pages/RegionCoordsPage.tsx +12 -0
- package/src/docs/pages/RenamerPage.tsx +15 -0
- package/src/docs/pages/SelectPage.tsx +160 -6
- package/src/docs/pages/SeparatorPage.tsx +12 -0
- package/src/docs/pages/SheetPage.tsx +15 -0
- package/src/docs/pages/SidebarDatasetsItemsGroupedPage.tsx +12 -0
- package/src/docs/pages/SidebarPage.tsx +15 -0
- package/src/docs/pages/SignalCardPage.tsx +126 -0
- package/src/docs/pages/SkeletonPage.tsx +16 -0
- package/src/docs/pages/SliderPage.tsx +70 -4
- package/src/docs/pages/SmartTextTruncatePage.styl +13 -0
- package/src/docs/pages/SmartTextTruncatePage.styl.d.ts +8 -0
- package/src/docs/pages/SmartTextTruncatePage.tsx +17 -4
- package/src/docs/pages/SpacingPage.styl +31 -0
- package/src/docs/pages/SpacingPage.styl.d.ts +12 -0
- package/src/docs/pages/SpacingPage.tsx +50 -0
- package/src/docs/pages/SparklinePage.tsx +15 -0
- package/src/docs/pages/StandaloneAppLayoutPage/StandaloneAppLayoutPage.tsx +16 -0
- package/src/docs/pages/SwitchPage.tsx +147 -8
- package/src/docs/pages/SybilionAuthLayoutPage.tsx +15 -0
- package/src/docs/pages/TablePage.tsx +134 -22
- package/src/docs/pages/TabsPage.tsx +20 -0
- package/src/docs/pages/TextShimmerPage.tsx +12 -0
- package/src/docs/pages/TextWithDeferTooltipPage.tsx +15 -0
- package/src/docs/pages/TimeRangeControlsPage.tsx +15 -0
- package/src/docs/pages/ToggleGroupPage.tsx +15 -0
- package/src/docs/pages/TogglePage.tsx +13 -0
- package/src/docs/pages/TooltipPage.tsx +17 -0
- package/src/docs/pages/TypographyPage.styl +42 -0
- package/src/docs/pages/TypographyPage.styl.d.ts +12 -0
- package/src/docs/pages/TypographyPage.tsx +226 -0
- package/src/docs/pages/VimeoEmbedPage.tsx +12 -0
- package/src/docs/pages/WorldMapPage.tsx +12 -0
- package/src/docs/registry.ts +79 -0
- package/src/index.ts +6 -0
|
@@ -0,0 +1,226 @@
|
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
|
|
3
|
+
import { PageContentSection } from '#uilib/components/ui/Page';
|
|
4
|
+
|
|
5
|
+
import { AppPageHeader } from '../components/AppPageHeader/AppPageHeader';
|
|
6
|
+
import { DocsGuidance } from '../components/DocsGuidance/DocsGuidance';
|
|
7
|
+
import { DocsHeaderActions } from '../docsHeaderActions';
|
|
8
|
+
import S from './TypographyPage.styl';
|
|
9
|
+
|
|
10
|
+
const TEXT_SCALE = [
|
|
11
|
+
{ token: '--text-2xs', px: '10px' },
|
|
12
|
+
{ token: '--text-xs', px: '12px' },
|
|
13
|
+
{ token: '--text-sm', px: '14px' },
|
|
14
|
+
{ token: '--text-base', px: '16px' },
|
|
15
|
+
{ token: '--text-lg', px: '18px' },
|
|
16
|
+
{ token: '--text-xl', px: '20px' },
|
|
17
|
+
{ token: '--text-2xl', px: '24px' },
|
|
18
|
+
{ token: '--text-3xl', px: '30px' },
|
|
19
|
+
{ token: '--text-4xl', px: '36px' },
|
|
20
|
+
{ token: '--text-5xl', px: '48px' },
|
|
21
|
+
];
|
|
22
|
+
|
|
23
|
+
const DISPLAY_SCALE = [
|
|
24
|
+
{ token: '--text-display-s', px: '48px' },
|
|
25
|
+
{ token: '--text-display-m', px: '64px' },
|
|
26
|
+
{ token: '--text-display-l', px: '88px' },
|
|
27
|
+
{ token: '--text-display-xl', px: '124px' },
|
|
28
|
+
];
|
|
29
|
+
|
|
30
|
+
const BODY_WEIGHTS = [400, 500, 600, 700, 800];
|
|
31
|
+
const HEADING_WEIGHTS = [300, 400, 500];
|
|
32
|
+
|
|
33
|
+
const LINE_HEIGHTS = [
|
|
34
|
+
{ token: '--lh-tight', value: '1.02' },
|
|
35
|
+
{ token: '--lh-snug', value: '1.15' },
|
|
36
|
+
{ token: '--lh-normal', value: '1.45' },
|
|
37
|
+
{ token: '--lh-loose', value: '1.6' },
|
|
38
|
+
];
|
|
39
|
+
|
|
40
|
+
const TRACKINGS = [
|
|
41
|
+
{ token: '--tracking-display', value: '-0.02em' },
|
|
42
|
+
{ token: '--tracking-heading', value: '-0.01em' },
|
|
43
|
+
{ token: '--tracking-body', value: '0em' },
|
|
44
|
+
{ token: '--tracking-label', value: '0.04em' },
|
|
45
|
+
];
|
|
46
|
+
|
|
47
|
+
const SAMPLE = 'The decision layer';
|
|
48
|
+
const PARAGRAPH =
|
|
49
|
+
'Body copy in Manrope is the operational voice of the system: calm, precise, and industry-fluent. It holds at small sizes and stays legible across dense tables and long reports.';
|
|
50
|
+
|
|
51
|
+
function SpecimenTable({
|
|
52
|
+
rows,
|
|
53
|
+
valueHeading,
|
|
54
|
+
}: {
|
|
55
|
+
rows: { token: string; value: string; specimen: ReactNode }[];
|
|
56
|
+
valueHeading: string;
|
|
57
|
+
}) {
|
|
58
|
+
return (
|
|
59
|
+
<table className={S.table}>
|
|
60
|
+
<thead>
|
|
61
|
+
<tr>
|
|
62
|
+
<th>Token</th>
|
|
63
|
+
<th>{valueHeading}</th>
|
|
64
|
+
<th>Specimen</th>
|
|
65
|
+
</tr>
|
|
66
|
+
</thead>
|
|
67
|
+
<tbody>
|
|
68
|
+
{rows.map(({ token, value, specimen }) => (
|
|
69
|
+
<tr key={token}>
|
|
70
|
+
<td className={S.token}>{token}</td>
|
|
71
|
+
<td className={S.value}>{value}</td>
|
|
72
|
+
<td>{specimen}</td>
|
|
73
|
+
</tr>
|
|
74
|
+
))}
|
|
75
|
+
</tbody>
|
|
76
|
+
</table>
|
|
77
|
+
);
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
export default function TypographyPage() {
|
|
81
|
+
return (
|
|
82
|
+
<>
|
|
83
|
+
<AppPageHeader
|
|
84
|
+
breadcrumbs={[{ label: 'Typography' }]}
|
|
85
|
+
title="Typography"
|
|
86
|
+
subheader="Type scale, weights, line heights, and tracking tokens."
|
|
87
|
+
actions={<DocsHeaderActions />}
|
|
88
|
+
/>
|
|
89
|
+
<DocsGuidance
|
|
90
|
+
overview="The system pairs KMR Apparat for display and headings with Manrope for body copy. Sizes come from the --text-* scale, display sizes from --text-display-*, and rhythm from the --lh-* and --tracking-* tokens. Set sizes through tokens rather than raw pixel values."
|
|
91
|
+
whenToUse={[
|
|
92
|
+
'The --text-* scale for UI text, labels, and headings.',
|
|
93
|
+
'The --text-display-* sizes for hero and editorial moments only.',
|
|
94
|
+
]}
|
|
95
|
+
whenNotToUse={[
|
|
96
|
+
'Display sizes inside dense product UI; the largest heading there should be --text-3xl.',
|
|
97
|
+
]}
|
|
98
|
+
/>
|
|
99
|
+
<PageContentSection>
|
|
100
|
+
<h3>Type scale</h3>
|
|
101
|
+
<SpecimenTable
|
|
102
|
+
valueHeading="Size"
|
|
103
|
+
rows={TEXT_SCALE.map(({ token, px }) => ({
|
|
104
|
+
token,
|
|
105
|
+
value: px,
|
|
106
|
+
specimen: (
|
|
107
|
+
<div
|
|
108
|
+
className={S.specimen}
|
|
109
|
+
style={{ fontSize: `var(${token})`, lineHeight: 1.2 }}
|
|
110
|
+
>
|
|
111
|
+
{SAMPLE}
|
|
112
|
+
</div>
|
|
113
|
+
),
|
|
114
|
+
}))}
|
|
115
|
+
/>
|
|
116
|
+
</PageContentSection>
|
|
117
|
+
<PageContentSection>
|
|
118
|
+
<h3>Display scale</h3>
|
|
119
|
+
<p className={S.sectionNote}>
|
|
120
|
+
KMR Apparat at the --text-display-* sizes, tracking
|
|
121
|
+
var(--tracking-display).
|
|
122
|
+
</p>
|
|
123
|
+
<SpecimenTable
|
|
124
|
+
valueHeading="Size"
|
|
125
|
+
rows={DISPLAY_SCALE.map(({ token, px }) => ({
|
|
126
|
+
token,
|
|
127
|
+
value: px,
|
|
128
|
+
specimen: (
|
|
129
|
+
<div
|
|
130
|
+
className={S.specimen}
|
|
131
|
+
style={{
|
|
132
|
+
fontSize: `var(${token})`,
|
|
133
|
+
fontFamily: 'var(--font-family-heading)',
|
|
134
|
+
letterSpacing: 'var(--tracking-display)',
|
|
135
|
+
lineHeight: 'var(--lh-tight)',
|
|
136
|
+
}}
|
|
137
|
+
>
|
|
138
|
+
{SAMPLE}
|
|
139
|
+
</div>
|
|
140
|
+
),
|
|
141
|
+
}))}
|
|
142
|
+
/>
|
|
143
|
+
</PageContentSection>
|
|
144
|
+
<PageContentSection>
|
|
145
|
+
<h3>Weights</h3>
|
|
146
|
+
<p className={S.sectionNote}>Manrope — body font.</p>
|
|
147
|
+
<SpecimenTable
|
|
148
|
+
valueHeading="Weight"
|
|
149
|
+
rows={BODY_WEIGHTS.map(weight => ({
|
|
150
|
+
token: `Manrope ${weight}`,
|
|
151
|
+
value: String(weight),
|
|
152
|
+
specimen: (
|
|
153
|
+
<div
|
|
154
|
+
className={S.specimen}
|
|
155
|
+
style={{ fontWeight: weight, fontSize: 'var(--text-lg)' }}
|
|
156
|
+
>
|
|
157
|
+
{SAMPLE}
|
|
158
|
+
</div>
|
|
159
|
+
),
|
|
160
|
+
}))}
|
|
161
|
+
/>
|
|
162
|
+
<p className={S.sectionNote} style={{ marginTop: 'var(--p-6)' }}>
|
|
163
|
+
KMR Apparat — heading font.
|
|
164
|
+
</p>
|
|
165
|
+
<SpecimenTable
|
|
166
|
+
valueHeading="Weight"
|
|
167
|
+
rows={HEADING_WEIGHTS.map(weight => ({
|
|
168
|
+
token: `KMR Apparat ${weight}`,
|
|
169
|
+
value: String(weight),
|
|
170
|
+
specimen: (
|
|
171
|
+
<div
|
|
172
|
+
className={S.specimen}
|
|
173
|
+
style={{
|
|
174
|
+
fontWeight: weight,
|
|
175
|
+
fontSize: 'var(--text-2xl)',
|
|
176
|
+
fontFamily: 'var(--font-family-heading)',
|
|
177
|
+
}}
|
|
178
|
+
>
|
|
179
|
+
{SAMPLE}
|
|
180
|
+
</div>
|
|
181
|
+
),
|
|
182
|
+
}))}
|
|
183
|
+
/>
|
|
184
|
+
</PageContentSection>
|
|
185
|
+
<PageContentSection>
|
|
186
|
+
<h3>Line heights</h3>
|
|
187
|
+
<SpecimenTable
|
|
188
|
+
valueHeading="Value"
|
|
189
|
+
rows={LINE_HEIGHTS.map(({ token, value }) => ({
|
|
190
|
+
token,
|
|
191
|
+
value,
|
|
192
|
+
specimen: (
|
|
193
|
+
<p
|
|
194
|
+
className={S.paragraphSpecimen}
|
|
195
|
+
style={{ lineHeight: `var(${token})` }}
|
|
196
|
+
>
|
|
197
|
+
{PARAGRAPH}
|
|
198
|
+
</p>
|
|
199
|
+
),
|
|
200
|
+
}))}
|
|
201
|
+
/>
|
|
202
|
+
</PageContentSection>
|
|
203
|
+
<PageContentSection>
|
|
204
|
+
<h3>Tracking</h3>
|
|
205
|
+
<SpecimenTable
|
|
206
|
+
valueHeading="Value"
|
|
207
|
+
rows={TRACKINGS.map(({ token, value }) => ({
|
|
208
|
+
token,
|
|
209
|
+
value,
|
|
210
|
+
specimen: (
|
|
211
|
+
<div
|
|
212
|
+
className={S.specimen}
|
|
213
|
+
style={{
|
|
214
|
+
letterSpacing: `var(${token})`,
|
|
215
|
+
fontSize: 'var(--text-lg)',
|
|
216
|
+
}}
|
|
217
|
+
>
|
|
218
|
+
{SAMPLE}
|
|
219
|
+
</div>
|
|
220
|
+
),
|
|
221
|
+
}))}
|
|
222
|
+
/>
|
|
223
|
+
</PageContentSection>
|
|
224
|
+
</>
|
|
225
|
+
);
|
|
226
|
+
}
|
|
@@ -2,6 +2,7 @@ import { PageContentSection } from '#uilib/components/ui/Page';
|
|
|
2
2
|
import { VimeoEmbed } from '#uilib/components/ui/VimeoEmbed';
|
|
3
3
|
|
|
4
4
|
import { AppPageHeader } from '../components/AppPageHeader/AppPageHeader';
|
|
5
|
+
import { DocsGuidance } from '../components/DocsGuidance/DocsGuidance';
|
|
5
6
|
import { DocsHeaderActions } from '../docsHeaderActions';
|
|
6
7
|
|
|
7
8
|
export default function VimeoEmbedPage() {
|
|
@@ -13,6 +14,17 @@ export default function VimeoEmbedPage() {
|
|
|
13
14
|
subheader="Vimeo player embed."
|
|
14
15
|
actions={<DocsHeaderActions />}
|
|
15
16
|
/>
|
|
17
|
+
<DocsGuidance
|
|
18
|
+
overview="VimeoEmbed renders a responsive Vimeo player from a video ID, handling the iframe markup and aspect ratio for you. Constrain its width with the surrounding container."
|
|
19
|
+
whenToUse={[
|
|
20
|
+
'To embed product videos, tutorials, or demos hosted on Vimeo.',
|
|
21
|
+
'When a consistent, responsive player is needed without writing iframe markup by hand.',
|
|
22
|
+
]}
|
|
23
|
+
whenNotToUse={[
|
|
24
|
+
'For video hosted elsewhere or self-hosted files; use the appropriate player or a video element.',
|
|
25
|
+
'For decorative background video, which needs autoplay and loop control beyond an embedded player.',
|
|
26
|
+
]}
|
|
27
|
+
/>
|
|
16
28
|
<PageContentSection style={{ maxWidth: 560 }}>
|
|
17
29
|
<VimeoEmbed videoId="148751763" />
|
|
18
30
|
</PageContentSection>
|
|
@@ -2,6 +2,7 @@ import { PageContentSection } from '#uilib/components/ui/Page';
|
|
|
2
2
|
import { WorldMap } from '#uilib/components/ui/WorldMap';
|
|
3
3
|
|
|
4
4
|
import { AppPageHeader } from '../components/AppPageHeader/AppPageHeader';
|
|
5
|
+
import { DocsGuidance } from '../components/DocsGuidance/DocsGuidance';
|
|
5
6
|
import { DocsHeaderActions } from '../docsHeaderActions';
|
|
6
7
|
import S from './WorldMapPage.styl';
|
|
7
8
|
|
|
@@ -14,6 +15,17 @@ export default function WorldMapPage() {
|
|
|
14
15
|
subheader="Bundled SVG world map for layouts such as DriverMap — optional className for positioning."
|
|
15
16
|
actions={<DocsHeaderActions />}
|
|
16
17
|
/>
|
|
18
|
+
<DocsGuidance
|
|
19
|
+
overview="WorldMap renders a bundled SVG map of the world, intended as a backdrop for geographic visualisations such as DriverMap. It scales to its container and accepts a className for positioning."
|
|
20
|
+
whenToUse={[
|
|
21
|
+
'As the base layer for geographic overlays, such as markers or regional highlights.',
|
|
22
|
+
'For decorative or contextual world imagery that should ship with the bundle rather than load from a network.',
|
|
23
|
+
]}
|
|
24
|
+
whenNotToUse={[
|
|
25
|
+
'When interactive map features such as zooming, panning, or tiles are needed; use a mapping library instead.',
|
|
26
|
+
'For precise geographic data where projection accuracy matters.',
|
|
27
|
+
]}
|
|
28
|
+
/>
|
|
17
29
|
<PageContentSection>
|
|
18
30
|
<div className={S.demoFrame}>
|
|
19
31
|
<div className={S.demoFill}>
|
package/src/docs/registry.ts
CHANGED
|
@@ -9,6 +9,7 @@ export type DocEntry = {
|
|
|
9
9
|
|
|
10
10
|
/** Sidebar group order */
|
|
11
11
|
export const DOC_SECTION_ORDER = [
|
|
12
|
+
'Foundations',
|
|
12
13
|
'Forms',
|
|
13
14
|
'Feedback',
|
|
14
15
|
'Layout',
|
|
@@ -25,6 +26,42 @@ export const DOC_SECTION_ORDER = [
|
|
|
25
26
|
export const DOC_DEFAULT_SLUG = 'button';
|
|
26
27
|
|
|
27
28
|
export const DOC_REGISTRY: DocEntry[] = [
|
|
29
|
+
{
|
|
30
|
+
slug: 'icons',
|
|
31
|
+
title: 'Icons',
|
|
32
|
+
section: 'Foundations',
|
|
33
|
+
load: () => import('./pages/IconsPage'),
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
slug: 'colors',
|
|
37
|
+
title: 'Colors',
|
|
38
|
+
section: 'Foundations',
|
|
39
|
+
load: () => import('./pages/ColorsPage'),
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
slug: 'typography',
|
|
43
|
+
title: 'Typography',
|
|
44
|
+
section: 'Foundations',
|
|
45
|
+
load: () => import('./pages/TypographyPage'),
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
slug: 'radii-shadows',
|
|
49
|
+
title: 'Radii and shadows',
|
|
50
|
+
section: 'Foundations',
|
|
51
|
+
load: () => import('./pages/RadiiShadowsPage'),
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
slug: 'motion',
|
|
55
|
+
title: 'Motion',
|
|
56
|
+
section: 'Foundations',
|
|
57
|
+
load: () => import('./pages/MotionPage'),
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
slug: 'spacing',
|
|
61
|
+
title: 'Spacing',
|
|
62
|
+
section: 'Foundations',
|
|
63
|
+
load: () => import('./pages/SpacingPage'),
|
|
64
|
+
},
|
|
28
65
|
{
|
|
29
66
|
slug: 'button',
|
|
30
67
|
title: 'Button',
|
|
@@ -55,6 +92,30 @@ export const DOC_REGISTRY: DocEntry[] = [
|
|
|
55
92
|
section: 'Data display',
|
|
56
93
|
load: () => import('./pages/BadgePage'),
|
|
57
94
|
},
|
|
95
|
+
{
|
|
96
|
+
slug: 'chip',
|
|
97
|
+
title: 'Chip',
|
|
98
|
+
section: 'Data display',
|
|
99
|
+
load: () => import('./pages/ChipPage'),
|
|
100
|
+
},
|
|
101
|
+
{
|
|
102
|
+
slug: 'signal-card',
|
|
103
|
+
title: 'SignalCard',
|
|
104
|
+
section: 'Widgets',
|
|
105
|
+
load: () => import('./pages/SignalCardPage'),
|
|
106
|
+
},
|
|
107
|
+
{
|
|
108
|
+
slug: 'pull-quote',
|
|
109
|
+
title: 'PullQuote',
|
|
110
|
+
section: 'Data display',
|
|
111
|
+
load: () => import('./pages/PullQuotePage'),
|
|
112
|
+
},
|
|
113
|
+
{
|
|
114
|
+
slug: 'kicker',
|
|
115
|
+
title: 'Kicker',
|
|
116
|
+
section: 'Data display',
|
|
117
|
+
load: () => import('./pages/KickerPage'),
|
|
118
|
+
},
|
|
58
119
|
{
|
|
59
120
|
slug: 'file-chip',
|
|
60
121
|
title: 'FileChip',
|
|
@@ -103,6 +164,18 @@ export const DOC_REGISTRY: DocEntry[] = [
|
|
|
103
164
|
section: 'Charts',
|
|
104
165
|
load: () => import('./pages/LightweightChartPage'),
|
|
105
166
|
},
|
|
167
|
+
{
|
|
168
|
+
slug: 'donut-chart',
|
|
169
|
+
title: 'DonutChart',
|
|
170
|
+
section: 'Charts',
|
|
171
|
+
load: () => import('./pages/DonutChartPage'),
|
|
172
|
+
},
|
|
173
|
+
{
|
|
174
|
+
slug: 'bar-chart',
|
|
175
|
+
title: 'BarChart',
|
|
176
|
+
section: 'Charts',
|
|
177
|
+
load: () => import('./pages/BarChartPage'),
|
|
178
|
+
},
|
|
106
179
|
{
|
|
107
180
|
slug: 'chat',
|
|
108
181
|
title: 'Chat',
|
|
@@ -157,6 +230,12 @@ export const DOC_REGISTRY: DocEntry[] = [
|
|
|
157
230
|
section: 'Overlays',
|
|
158
231
|
load: () => import('./pages/ConfirmPage'),
|
|
159
232
|
},
|
|
233
|
+
{
|
|
234
|
+
slug: 'drawer',
|
|
235
|
+
title: 'Drawer',
|
|
236
|
+
section: 'Overlays',
|
|
237
|
+
load: () => import('./pages/DrawerPage'),
|
|
238
|
+
},
|
|
160
239
|
{
|
|
161
240
|
slug: 'driver-map',
|
|
162
241
|
title: 'DriverMap & DriverCard',
|
package/src/index.ts
CHANGED
|
@@ -18,11 +18,17 @@ export * from './components/ui/AnalysisLineIcon';
|
|
|
18
18
|
export * from './components/ui/AppHeader';
|
|
19
19
|
export * from './components/ui/Avatar';
|
|
20
20
|
export * from './components/ui/Badge';
|
|
21
|
+
export * from './components/ui/Chip';
|
|
22
|
+
export * from './components/ui/Kicker';
|
|
23
|
+
export * from './components/ui/PullQuote';
|
|
24
|
+
export * from './components/ui/SignalCard';
|
|
21
25
|
export * from './components/ui/Breadcrumb';
|
|
22
26
|
export * from './components/ui/Button';
|
|
23
27
|
export * from './components/ui/Card';
|
|
24
28
|
export * from './components/ui/Chart';
|
|
25
29
|
export * from './components/ui/ChartAreaInteractive';
|
|
30
|
+
export * from './components/ui/DonutChart';
|
|
31
|
+
export * from './components/ui/BarChart';
|
|
26
32
|
export * from './components/ui/Chat';
|
|
27
33
|
export * from './components/ui/Checkbox';
|
|
28
34
|
export * from './components/ui/Confirm';
|