@sybilion/uilib 1.4.8 → 1.4.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/agent-glossary/content-prompt.generated.ts +32 -31
- package/dist/agent-glossary/content.generated.ts +32 -31
- package/dist/agent-glossary/content.index.md +5 -1
- package/dist/agent-glossary/content.md +32 -31
- package/dist/agent-glossary/content.prompt.md +32 -31
- package/dist/agent-glossary/workspace.generated.ts +26 -27
- package/dist/agent-glossary/workspace.index.md +25 -26
- package/dist/agent-glossary/workspace.md +25 -26
- package/dist/esm/components/ui/AnalysesSelector/AnalysesSelector.js +2 -2
- package/dist/esm/components/ui/Button/Button.styl.js +1 -1
- package/dist/esm/components/ui/ButtonGroup/ButtonGroup.js +9 -0
- package/dist/esm/components/ui/ButtonGroup/ButtonGroup.styl.js +7 -0
- package/dist/esm/components/ui/Chart/Chart.js +3 -3
- package/dist/esm/components/ui/Chat/ChatPrompt/ChatPrompt.styl.js +1 -1
- package/dist/esm/components/ui/Chat/ChatPrompt/ChatPromptComposer.js +1 -1
- package/dist/esm/components/ui/Chat/ChatSheet/ChatSheet.js +13 -0
- package/dist/esm/components/ui/Chat/ChatSheet/useChatPanelChromeModel.js +10 -7
- package/dist/esm/components/ui/Chip/Chip.js +3 -4
- package/dist/esm/components/ui/Chip/Chip.styl.js +2 -2
- package/dist/esm/components/ui/FileChip/FileChip.js +1 -1
- package/dist/esm/components/ui/Page/pageScrollRestoration.js +22 -0
- package/dist/esm/components/ui/Page/usePageScrollRestoration.js +73 -0
- package/dist/esm/components/ui/Renamer/Renamer.js +1 -1
- package/dist/esm/components/ui/Renamer/Renamer.styl.js +1 -1
- package/dist/esm/components/ui/Sidebar/Sidebar.js +91 -73
- package/dist/esm/components/widgets/DriverCard/DriverCard.js +7 -7
- package/dist/esm/components/widgets/DriverCard/DriverPerformanceChart.js +3 -3
- package/dist/esm/components/widgets/DriverMap/DriverIcon/DriverIcon.js +2 -2
- package/dist/esm/components/widgets/DriverMap/DriverIcon/DriverIcon.styl.js +1 -1
- package/dist/esm/components/widgets/DriversComparisonChart/DriversComparisonChart.js +1 -0
- package/dist/esm/components/widgets/PerformanceChart/PerformanceTable.js +1 -0
- package/dist/esm/components/widgets/SybilionAppHeader/SybilionAppHeader.styl.js +1 -1
- package/dist/esm/index.js +4 -2
- package/dist/esm/types/src/components/ui/ButtonGroup/ButtonGroup.d.ts +3 -0
- package/dist/esm/types/src/components/ui/ButtonGroup/ButtonGroup.types.d.ts +3 -0
- package/dist/esm/types/src/components/ui/ButtonGroup/index.d.ts +2 -0
- package/dist/esm/types/src/components/ui/Chip/Chip.d.ts +1 -1
- package/dist/esm/types/src/components/ui/Chip/Chip.types.d.ts +4 -2
- package/dist/esm/types/src/components/ui/Page/index.d.ts +2 -0
- package/dist/esm/types/src/components/ui/Page/pageScrollRestoration.d.ts +2 -0
- package/dist/esm/types/src/components/ui/Page/usePageScrollRestoration.d.ts +2 -0
- package/dist/esm/types/src/components/ui/Sidebar/Sidebar.d.ts +13 -6
- package/dist/esm/types/src/docs/pages/ButtonGroupPage.d.ts +1 -0
- package/dist/esm/types/src/index.d.ts +1 -1
- package/package.json +1 -1
- package/src/components/ui/AnalysesSelector/AnalysesSelector.tsx +3 -3
- package/src/components/ui/AnalysisLineIcon/AGENT.md +1 -1
- package/src/components/ui/Avatar/AGENT.md +1 -1
- package/src/components/ui/Button/Button.styl +11 -5
- package/src/components/ui/ButtonGroup/AGENT.md +29 -0
- package/src/components/ui/ButtonGroup/ButtonGroup.styl +21 -0
- package/src/components/ui/{Badge/Badge.styl.d.ts → ButtonGroup/ButtonGroup.styl.d.ts} +0 -6
- package/src/components/ui/ButtonGroup/ButtonGroup.tsx +17 -0
- package/src/components/ui/ButtonGroup/ButtonGroup.types.ts +3 -0
- package/src/components/ui/ButtonGroup/index.ts +2 -0
- package/src/components/ui/Chat/ChatPrompt/ChatPrompt.styl +2 -0
- package/src/components/ui/Chat/ChatPrompt/ChatPromptComposer.tsx +1 -0
- package/src/components/ui/Chat/ChatSheet/ChatSheet.tsx +15 -0
- package/src/components/ui/Chat/ChatSheet/useChatPanelChromeModel.tsx +21 -9
- package/src/components/ui/Chip/AGENT.md +4 -3
- package/src/components/ui/Chip/Chip.styl +17 -0
- package/src/components/ui/Chip/Chip.styl.d.ts +2 -0
- package/src/components/ui/Chip/Chip.tsx +10 -6
- package/src/components/ui/Chip/Chip.types.ts +5 -2
- package/src/components/ui/FileChip/FileChip.tsx +1 -1
- package/src/components/ui/Gap/AGENT.md +11 -0
- package/src/components/ui/Page/AGENT.md +5 -31
- package/src/components/ui/Page/index.ts +2 -0
- package/src/components/ui/Page/pageScrollRestoration.ts +22 -0
- package/src/components/ui/Page/usePageScrollRestoration.ts +90 -0
- package/src/components/ui/Renamer/Renamer.styl +1 -1
- package/src/components/ui/Renamer/Renamer.tsx +1 -0
- package/src/{docs/agent-guidance/sidebar.md → components/ui/Sidebar/AGENT.md} +1 -1
- package/src/components/ui/Sidebar/Sidebar.tsx +158 -99
- package/src/{docs/agent-guidance/table.md → components/ui/Table/AGENT.md} +1 -2
- package/src/{docs/agent-guidance/tabs.md → components/ui/Tabs/AGENT.md} +1 -1
- package/src/{docs/agent-guidance/text-shimmer.md → components/ui/TextShimmer/AGENT.md} +1 -1
- package/src/components/widgets/DriverCard/DriverCard.tsx +12 -10
- package/src/components/widgets/DriverMap/DriverIcon/DriverIcon.styl +1 -0
- package/src/components/widgets/DriverMap/DriverIcon/DriverIcon.tsx +3 -3
- package/src/components/widgets/SybilionAppHeader/SybilionAppHeader.styl +2 -2
- package/src/docs/pages/ButtonGroupPage.tsx +45 -0
- package/src/docs/pages/ChipPage.tsx +37 -0
- package/src/docs/pages/LegacyPlatformLinkPage.tsx +0 -3
- package/src/docs/pages/LightweightChartPage.tsx +1 -1
- package/src/docs/pages/ProgressPage.tsx +1 -1
- package/src/docs/pages/PullQuotePage.tsx +1 -1
- package/src/docs/pages/RegionCoordsPage.tsx +1 -1
- package/src/docs/pages/RenamerPage.tsx +1 -1
- package/src/docs/pages/SelectPage.tsx +1 -1
- package/src/docs/pages/SeparatorPage.tsx +1 -1
- package/src/docs/pages/SidebarDatasetsItemsGroupedPage.tsx +1 -1
- package/src/docs/pages/SidebarPage.tsx +1 -1
- package/src/docs/pages/SkeletonPage.tsx +1 -1
- package/src/docs/pages/SliderPage.tsx +1 -1
- package/src/docs/pages/SmartTextTruncatePage.tsx +1 -1
- package/src/docs/pages/SparklinePage.tsx +1 -1
- package/src/docs/pages/TablePage.tsx +1 -1
- package/src/docs/pages/TabsPage.tsx +1 -1
- package/src/docs/pages/TextShimmerPage.tsx +1 -1
- package/src/docs/pages/TextWithDeferTooltipPage.tsx +1 -1
- package/src/docs/pages/TimeRangeControlsPage.tsx +1 -1
- package/src/docs/pages/ToggleGroupPage.tsx +1 -1
- package/src/docs/pages/VimeoEmbedPage.tsx +4 -5
- package/src/docs/pages/WorldMapPage.tsx +1 -1
- package/src/docs/registry.ts +6 -12
- package/src/index.ts +1 -1
- package/dist/esm/components/ui/Badge/Badge.js +0 -11
- package/dist/esm/components/ui/Badge/Badge.styl.js +0 -7
- package/dist/esm/types/src/components/ui/Badge/Badge.d.ts +0 -3
- package/dist/esm/types/src/components/ui/Badge/Badge.types.d.ts +0 -6
- package/dist/esm/types/src/components/ui/Badge/index.d.ts +0 -2
- package/dist/esm/types/src/docs/pages/BadgePage.d.ts +0 -1
- package/dist/esm/types/src/docs/pages/TogglePage.d.ts +0 -1
- package/src/components/ui/Badge/AGENT.md +0 -16
- package/src/components/ui/Badge/Badge.styl +0 -95
- package/src/components/ui/Badge/Badge.tsx +0 -31
- package/src/components/ui/Badge/Badge.types.ts +0 -7
- package/src/components/ui/Badge/index.ts +0 -2
- package/src/components/ui/LegacyPlatformLink/AGENT.md +0 -15
- package/src/docs/agent-guidance/sidebar-datasets-items-grouped.md +0 -11
- package/src/docs/pages/BadgePage.tsx +0 -30
- package/src/docs/pages/TogglePage.tsx +0 -27
- /package/src/{docs/agent-guidance/lightweight-forecast-chart.md → components/ui/Chart/lightweight/AGENT.md} +0 -0
- /package/src/{docs/agent-guidance/progress.md → components/ui/Progress/AGENT.md} +0 -0
- /package/src/{docs/agent-guidance/pull-quote.md → components/ui/PullQuote/AGENT.md} +0 -0
- /package/src/{docs/agent-guidance/region-coords.md → components/ui/RegionCoords/AGENT.md} +0 -0
- /package/src/{docs/agent-guidance/renamer.md → components/ui/Renamer/AGENT.md} +0 -0
- /package/src/{docs/agent-guidance/select.md → components/ui/Select/AGENT.md} +0 -0
- /package/src/{docs/agent-guidance/separator.md → components/ui/Separator/AGENT.md} +0 -0
- /package/src/{docs/agent-guidance/skeleton.md → components/ui/Skeleton/AGENT.md} +0 -0
- /package/src/{docs/agent-guidance/slider.md → components/ui/Slider/AGENT.md} +0 -0
- /package/src/{docs/agent-guidance/smart-text-truncate.md → components/ui/SmartTextTruncate/AGENT.md} +0 -0
- /package/src/{docs/agent-guidance/sparkline.md → components/ui/Sparkline/AGENT.md} +0 -0
- /package/src/{docs/agent-guidance/text-with-defer-tooltip.md → components/ui/TextWithDeferTooltip/AGENT.md} +0 -0
- /package/src/{docs/agent-guidance/time-range-controls.md → components/ui/TimeRangeControls/AGENT.md} +0 -0
- /package/src/{docs/agent-guidance/toggle.md → components/ui/Toggle/AGENT.md} +0 -0
- /package/src/{docs/agent-guidance/toggle-group.md → components/ui/ToggleGroup/AGENT.md} +0 -0
- /package/src/{docs/agent-guidance/vimeo-embed.md → components/ui/VimeoEmbed/AGENT.md} +0 -0
- /package/src/{docs/agent-guidance/world-map.md → components/ui/WorldMap/AGENT.md} +0 -0
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { useState } from 'react';
|
|
2
|
+
|
|
3
|
+
import { Button } from '#uilib/components/ui/Button';
|
|
4
|
+
import { ButtonGroup } from '#uilib/components/ui/ButtonGroup';
|
|
5
|
+
import buttonGroupGuidance from '#uilib/components/ui/ButtonGroup/AGENT.md';
|
|
6
|
+
import { PageContentSection } from '#uilib/components/ui/Page';
|
|
7
|
+
import { ChevronLeft, ChevronRight } from 'lucide-react';
|
|
8
|
+
|
|
9
|
+
import { AppPageHeader } from '../components/AppPageHeader/AppPageHeader';
|
|
10
|
+
import { DocsGuidance } from '../components/DocsGuidance/DocsGuidance';
|
|
11
|
+
import { DocsHeaderActions } from '../docsHeaderActions';
|
|
12
|
+
|
|
13
|
+
export default function ButtonGroupPage() {
|
|
14
|
+
const [value, setValue] = useState('day');
|
|
15
|
+
|
|
16
|
+
return (
|
|
17
|
+
<>
|
|
18
|
+
<AppPageHeader
|
|
19
|
+
breadcrumbs={[{ label: 'ButtonGroup' }]}
|
|
20
|
+
title="ButtonGroup"
|
|
21
|
+
subheader="Mold adjacent buttons into a segmented control."
|
|
22
|
+
actions={<DocsHeaderActions />}
|
|
23
|
+
/>
|
|
24
|
+
<DocsGuidance source={buttonGroupGuidance} />
|
|
25
|
+
<PageContentSection
|
|
26
|
+
style={{ display: 'flex', flexDirection: 'column', gap: '2rem' }}
|
|
27
|
+
>
|
|
28
|
+
<section>
|
|
29
|
+
<ButtonGroup>
|
|
30
|
+
{['day', 'week', 'month'].map(item => (
|
|
31
|
+
<Button
|
|
32
|
+
key={item}
|
|
33
|
+
type="button"
|
|
34
|
+
variant={item === value ? 'default' : 'outline'}
|
|
35
|
+
onClick={() => setValue(item)}
|
|
36
|
+
>
|
|
37
|
+
{item}
|
|
38
|
+
</Button>
|
|
39
|
+
))}
|
|
40
|
+
</ButtonGroup>
|
|
41
|
+
</section>
|
|
42
|
+
</PageContentSection>
|
|
43
|
+
</>
|
|
44
|
+
);
|
|
45
|
+
}
|
|
@@ -15,6 +15,7 @@ const VARIANTS: ChipVariant[] = [
|
|
|
15
15
|
'accent',
|
|
16
16
|
'positive',
|
|
17
17
|
'negative',
|
|
18
|
+
'yellow',
|
|
18
19
|
];
|
|
19
20
|
|
|
20
21
|
export default function ChipPage() {
|
|
@@ -111,6 +112,42 @@ export default function ChipPage() {
|
|
|
111
112
|
<Chip variant="positive">▲ 1.2%</Chip>
|
|
112
113
|
</div>
|
|
113
114
|
</section>
|
|
115
|
+
<section>
|
|
116
|
+
<h3 style={{ marginBottom: '1rem' }}>Squared</h3>
|
|
117
|
+
<p
|
|
118
|
+
style={{
|
|
119
|
+
marginBottom: '0.75rem',
|
|
120
|
+
color: 'var(--muted-foreground)',
|
|
121
|
+
}}
|
|
122
|
+
>
|
|
123
|
+
Pass <code>squared</code> for compact label badges in lists, tables,
|
|
124
|
+
and cards.
|
|
125
|
+
</p>
|
|
126
|
+
<div
|
|
127
|
+
style={{
|
|
128
|
+
display: 'flex',
|
|
129
|
+
flexWrap: 'wrap',
|
|
130
|
+
gap: '0.75rem',
|
|
131
|
+
alignItems: 'center',
|
|
132
|
+
}}
|
|
133
|
+
>
|
|
134
|
+
<Chip variant="neutral" squared>
|
|
135
|
+
Default
|
|
136
|
+
</Chip>
|
|
137
|
+
<Chip variant="line" squared>
|
|
138
|
+
Outline
|
|
139
|
+
</Chip>
|
|
140
|
+
<Chip variant="negative" squared>
|
|
141
|
+
Red
|
|
142
|
+
</Chip>
|
|
143
|
+
<Chip variant="positive" squared>
|
|
144
|
+
Green
|
|
145
|
+
</Chip>
|
|
146
|
+
<Chip variant="yellow" squared>
|
|
147
|
+
Yellow
|
|
148
|
+
</Chip>
|
|
149
|
+
</div>
|
|
150
|
+
</section>
|
|
114
151
|
<section>
|
|
115
152
|
<h3 style={{ marginBottom: '1rem' }}>Dot</h3>
|
|
116
153
|
<p
|
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
import { LegacyPlatformLink } from '#uilib/components/ui/LegacyPlatformLink';
|
|
2
|
-
import LegacyPlatformLinkGuidance from '#uilib/components/ui/LegacyPlatformLink/AGENT.md';
|
|
3
2
|
import { PageContentSection } from '#uilib/components/ui/Page';
|
|
4
3
|
|
|
5
4
|
import { AppPageHeader } from '../components/AppPageHeader/AppPageHeader';
|
|
6
|
-
import { DocsGuidance } from '../components/DocsGuidance/DocsGuidance';
|
|
7
5
|
import { DocsHeaderActions } from '../docsHeaderActions';
|
|
8
6
|
|
|
9
7
|
export default function LegacyPlatformLinkPage() {
|
|
@@ -15,7 +13,6 @@ export default function LegacyPlatformLinkPage() {
|
|
|
15
13
|
subheader="Link styled for legacy platform navigation."
|
|
16
14
|
actions={<DocsHeaderActions />}
|
|
17
15
|
/>
|
|
18
|
-
<DocsGuidance source={LegacyPlatformLinkGuidance} />
|
|
19
16
|
<PageContentSection>
|
|
20
17
|
<LegacyPlatformLink redirectPath="/v1/dashboard">
|
|
21
18
|
Legacy platform link
|
|
@@ -2,11 +2,11 @@ import { useMemo } from 'react';
|
|
|
2
2
|
|
|
3
3
|
import { LightweightForecastChart } from '#uilib/components/ui/Chart';
|
|
4
4
|
import type { QuantileBandConfig } from '#uilib/components/ui/Chart/chartForecastVisualization.types';
|
|
5
|
+
import lightweightForecastChartGuidance from '#uilib/components/ui/Chart/lightweight/AGENT.md';
|
|
5
6
|
import type { ChartDataPoint } from '#uilib/components/ui/ChartAreaInteractive/ChartAreaInteractive.types';
|
|
6
7
|
import type { ForecastItemData } from '#uilib/components/ui/ChartAreaInteractive/ChartLines';
|
|
7
8
|
import { PageContentSection } from '#uilib/components/ui/Page';
|
|
8
9
|
import { useTheme } from '#uilib/contexts/theme-context';
|
|
9
|
-
import lightweightForecastChartGuidance from '#uilib/docs/agent-guidance/lightweight-forecast-chart.md';
|
|
10
10
|
|
|
11
11
|
import { AppPageHeader } from '../components/AppPageHeader/AppPageHeader';
|
|
12
12
|
import { DocsGuidance } from '../components/DocsGuidance/DocsGuidance';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { PageContentSection } from '#uilib/components/ui/Page';
|
|
2
2
|
import { Progress } from '#uilib/components/ui/Progress';
|
|
3
|
-
import progressGuidance from '#uilib/
|
|
3
|
+
import progressGuidance from '#uilib/components/ui/Progress/AGENT.md';
|
|
4
4
|
|
|
5
5
|
import { AppPageHeader } from '../components/AppPageHeader/AppPageHeader';
|
|
6
6
|
import { DocsGuidance } from '../components/DocsGuidance/DocsGuidance';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { PageContentSection } from '#uilib/components/ui/Page';
|
|
2
2
|
import { PullQuote } from '#uilib/components/ui/PullQuote';
|
|
3
|
-
import pullQuoteGuidance from '#uilib/
|
|
3
|
+
import pullQuoteGuidance from '#uilib/components/ui/PullQuote/AGENT.md';
|
|
4
4
|
|
|
5
5
|
import { AppPageHeader } from '../components/AppPageHeader/AppPageHeader';
|
|
6
6
|
import { DocsGuidance } from '../components/DocsGuidance/DocsGuidance';
|
|
@@ -2,7 +2,7 @@ import { useState } from 'react';
|
|
|
2
2
|
|
|
3
3
|
import { PageContentSection } from '#uilib/components/ui/Page';
|
|
4
4
|
import { RegionSelector } from '#uilib/components/ui/RegionCoords';
|
|
5
|
-
import regionCoordsGuidance from '#uilib/
|
|
5
|
+
import regionCoordsGuidance from '#uilib/components/ui/RegionCoords/AGENT.md';
|
|
6
6
|
|
|
7
7
|
import { AppPageHeader } from '../components/AppPageHeader/AppPageHeader';
|
|
8
8
|
import { DocsGuidance } from '../components/DocsGuidance/DocsGuidance';
|
|
@@ -2,7 +2,7 @@ import { useState } from 'react';
|
|
|
2
2
|
|
|
3
3
|
import { PageContentSection } from '#uilib/components/ui/Page';
|
|
4
4
|
import { Renamer } from '#uilib/components/ui/Renamer';
|
|
5
|
-
import renamerGuidance from '#uilib/
|
|
5
|
+
import renamerGuidance from '#uilib/components/ui/Renamer/AGENT.md';
|
|
6
6
|
|
|
7
7
|
import { AppPageHeader } from '../components/AppPageHeader/AppPageHeader';
|
|
8
8
|
import { DocsGuidance } from '../components/DocsGuidance/DocsGuidance';
|
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
SelectTrigger,
|
|
7
7
|
SelectValue,
|
|
8
8
|
} from '#uilib/components/ui/Select';
|
|
9
|
-
import selectGuidance from '#uilib/
|
|
9
|
+
import selectGuidance from '#uilib/components/ui/Select/AGENT.md';
|
|
10
10
|
|
|
11
11
|
import { AppPageHeader } from '../components/AppPageHeader/AppPageHeader';
|
|
12
12
|
import { DocsGuidance } from '../components/DocsGuidance/DocsGuidance';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { PageContentSection } from '#uilib/components/ui/Page';
|
|
2
2
|
import { Separator } from '#uilib/components/ui/Separator';
|
|
3
|
-
import separatorGuidance from '#uilib/
|
|
3
|
+
import separatorGuidance from '#uilib/components/ui/Separator/AGENT.md';
|
|
4
4
|
|
|
5
5
|
import { AppPageHeader } from '../components/AppPageHeader/AppPageHeader';
|
|
6
6
|
import { DocsGuidance } from '../components/DocsGuidance/DocsGuidance';
|
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
SidebarDatasetsItemsGrouped,
|
|
8
8
|
type SidebarDatasetsItemsGroupedDataset,
|
|
9
9
|
} from '#uilib/components/widgets/SidebarDatasetsItemsGrouped';
|
|
10
|
-
import sidebarDatasetsItemsGroupedGuidance from '#uilib/
|
|
10
|
+
import sidebarDatasetsItemsGroupedGuidance from '#uilib/components/widgets/SidebarDatasetsItemsGrouped/AGENT.md';
|
|
11
11
|
|
|
12
12
|
import { AppPageHeader } from '../components/AppPageHeader/AppPageHeader';
|
|
13
13
|
import { DocsGuidance } from '../components/DocsGuidance/DocsGuidance';
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { PageContentSection } from '#uilib/components/ui/Page';
|
|
2
|
+
import sidebarGuidance from '#uilib/components/ui/Sidebar/AGENT.md';
|
|
2
3
|
import {
|
|
3
4
|
SidebarGroup,
|
|
4
5
|
SidebarMenu,
|
|
5
6
|
SidebarMenuButton,
|
|
6
7
|
SidebarMenuItem,
|
|
7
8
|
} from '#uilib/components/ui/Sidebar/Sidebar';
|
|
8
|
-
import sidebarGuidance from '#uilib/docs/agent-guidance/sidebar.md';
|
|
9
9
|
|
|
10
10
|
import { AppPageHeader } from '../components/AppPageHeader/AppPageHeader';
|
|
11
11
|
import { DocsGuidance } from '../components/DocsGuidance/DocsGuidance';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { PageContentSection } from '#uilib/components/ui/Page';
|
|
2
2
|
import { Skeleton } from '#uilib/components/ui/Skeleton';
|
|
3
|
-
import skeletonGuidance from '#uilib/
|
|
3
|
+
import skeletonGuidance from '#uilib/components/ui/Skeleton/AGENT.md';
|
|
4
4
|
|
|
5
5
|
import { AppPageHeader } from '../components/AppPageHeader/AppPageHeader';
|
|
6
6
|
import { DocsGuidance } from '../components/DocsGuidance/DocsGuidance';
|
|
@@ -2,7 +2,7 @@ import { useState } from 'react';
|
|
|
2
2
|
|
|
3
3
|
import { PageContentSection } from '#uilib/components/ui/Page';
|
|
4
4
|
import { Slider } from '#uilib/components/ui/Slider';
|
|
5
|
-
import sliderGuidance from '#uilib/
|
|
5
|
+
import sliderGuidance from '#uilib/components/ui/Slider/AGENT.md';
|
|
6
6
|
|
|
7
7
|
import { AppPageHeader } from '../components/AppPageHeader/AppPageHeader';
|
|
8
8
|
import { DocsGuidance } from '../components/DocsGuidance/DocsGuidance';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { PageContentSection } from '#uilib/components/ui/Page';
|
|
2
2
|
import { SmartTextTruncate } from '#uilib/components/ui/SmartTextTruncate';
|
|
3
|
-
import smartTextTruncateGuidance from '#uilib/
|
|
3
|
+
import smartTextTruncateGuidance from '#uilib/components/ui/SmartTextTruncate/AGENT.md';
|
|
4
4
|
|
|
5
5
|
import { AppPageHeader } from '../components/AppPageHeader/AppPageHeader';
|
|
6
6
|
import { DocsGuidance } from '../components/DocsGuidance/DocsGuidance';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { PageContentSection } from '#uilib/components/ui/Page';
|
|
2
2
|
import { Sparkline } from '#uilib/components/ui/Sparkline';
|
|
3
|
-
import sparklineGuidance from '#uilib/
|
|
3
|
+
import sparklineGuidance from '#uilib/components/ui/Sparkline/AGENT.md';
|
|
4
4
|
|
|
5
5
|
import { AppPageHeader } from '../components/AppPageHeader/AppPageHeader';
|
|
6
6
|
import { DocsGuidance } from '../components/DocsGuidance/DocsGuidance';
|
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
TableRow,
|
|
9
9
|
} from '#uilib/components/ui/Table';
|
|
10
10
|
import type { TableSize } from '#uilib/components/ui/Table';
|
|
11
|
-
import tableGuidance from '#uilib/
|
|
11
|
+
import tableGuidance from '#uilib/components/ui/Table/AGENT.md';
|
|
12
12
|
|
|
13
13
|
import { AppPageHeader } from '../components/AppPageHeader/AppPageHeader';
|
|
14
14
|
import { DocsGuidance } from '../components/DocsGuidance/DocsGuidance';
|
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
TabsTrigger,
|
|
9
9
|
type TabsVariant,
|
|
10
10
|
} from '#uilib/components/ui/Tabs';
|
|
11
|
-
import tabsGuidance from '#uilib/
|
|
11
|
+
import tabsGuidance from '#uilib/components/ui/Tabs/AGENT.md';
|
|
12
12
|
|
|
13
13
|
import { AppPageHeader } from '../components/AppPageHeader/AppPageHeader';
|
|
14
14
|
import { DocsGuidance } from '../components/DocsGuidance/DocsGuidance';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { PageContentSection } from '#uilib/components/ui/Page';
|
|
2
2
|
import { TextShimmer } from '#uilib/components/ui/TextShimmer';
|
|
3
|
-
import textShimmerGuidance from '#uilib/
|
|
3
|
+
import textShimmerGuidance from '#uilib/components/ui/TextShimmer/AGENT.md';
|
|
4
4
|
|
|
5
5
|
import { AppPageHeader } from '../components/AppPageHeader/AppPageHeader';
|
|
6
6
|
import { DocsGuidance } from '../components/DocsGuidance/DocsGuidance';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { PageContentSection } from '#uilib/components/ui/Page';
|
|
2
2
|
import { TextWithDeferTooltip } from '#uilib/components/ui/TextWithDeferTooltip';
|
|
3
|
-
import textWithDeferTooltipGuidance from '#uilib/
|
|
3
|
+
import textWithDeferTooltipGuidance from '#uilib/components/ui/TextWithDeferTooltip/AGENT.md';
|
|
4
4
|
|
|
5
5
|
import { AppPageHeader } from '../components/AppPageHeader/AppPageHeader';
|
|
6
6
|
import { DocsGuidance } from '../components/DocsGuidance/DocsGuidance';
|
|
@@ -2,7 +2,7 @@ import { useState } from 'react';
|
|
|
2
2
|
|
|
3
3
|
import { PageContentSection } from '#uilib/components/ui/Page';
|
|
4
4
|
import { TimeRangeControls } from '#uilib/components/ui/TimeRangeControls';
|
|
5
|
-
import timeRangeControlsGuidance from '#uilib/
|
|
5
|
+
import timeRangeControlsGuidance from '#uilib/components/ui/TimeRangeControls/AGENT.md';
|
|
6
6
|
|
|
7
7
|
import { AppPageHeader } from '../components/AppPageHeader/AppPageHeader';
|
|
8
8
|
import { DocsGuidance } from '../components/DocsGuidance/DocsGuidance';
|
|
@@ -2,7 +2,7 @@ import { useState } from 'react';
|
|
|
2
2
|
|
|
3
3
|
import { PageContentSection } from '#uilib/components/ui/Page';
|
|
4
4
|
import { ToggleGroup, ToggleGroupItem } from '#uilib/components/ui/ToggleGroup';
|
|
5
|
-
import toggleGroupGuidance from '#uilib/
|
|
5
|
+
import toggleGroupGuidance from '#uilib/components/ui/ToggleGroup/AGENT.md';
|
|
6
6
|
|
|
7
7
|
import { AppPageHeader } from '../components/AppPageHeader/AppPageHeader';
|
|
8
8
|
import { DocsGuidance } from '../components/DocsGuidance/DocsGuidance';
|
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
import { PageContentSection } from '#uilib/components/ui/Page';
|
|
2
|
-
import { VimeoEmbed } from '#uilib/components/ui/VimeoEmbed';
|
|
3
|
-
import vimeoEmbedGuidance from '#uilib/docs/agent-guidance/vimeo-embed.md';
|
|
4
|
-
|
|
5
1
|
import { AppPageHeader } from '../components/AppPageHeader/AppPageHeader';
|
|
6
2
|
import { DocsGuidance } from '../components/DocsGuidance/DocsGuidance';
|
|
7
3
|
import { DocsHeaderActions } from '../docsHeaderActions';
|
|
4
|
+
import { PageContentSection } from '#uilib/components/ui/Page';
|
|
5
|
+
import { VimeoEmbed } from '#uilib/components/ui/VimeoEmbed';
|
|
6
|
+
import vimeoEmbedGuidance from '#uilib/components/ui/VimeoEmbed/AGENT.md';
|
|
8
7
|
|
|
9
8
|
export default function VimeoEmbedPage() {
|
|
10
9
|
return (
|
|
@@ -17,7 +16,7 @@ export default function VimeoEmbedPage() {
|
|
|
17
16
|
/>
|
|
18
17
|
<DocsGuidance source={vimeoEmbedGuidance} />
|
|
19
18
|
<PageContentSection style={{ maxWidth: 560 }}>
|
|
20
|
-
<VimeoEmbed videoId="
|
|
19
|
+
<VimeoEmbed videoId="1202135779" videoHash="e26adba036" />
|
|
21
20
|
</PageContentSection>
|
|
22
21
|
</>
|
|
23
22
|
);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { PageContentSection } from '#uilib/components/ui/Page';
|
|
2
2
|
import { WorldMap } from '#uilib/components/ui/WorldMap';
|
|
3
|
-
import worldMapGuidance from '#uilib/
|
|
3
|
+
import worldMapGuidance from '#uilib/components/ui/WorldMap/AGENT.md';
|
|
4
4
|
|
|
5
5
|
import { AppPageHeader } from '../components/AppPageHeader/AppPageHeader';
|
|
6
6
|
import { DocsGuidance } from '../components/DocsGuidance/DocsGuidance';
|
package/src/docs/registry.ts
CHANGED
|
@@ -68,6 +68,12 @@ export const DOC_REGISTRY: DocEntry[] = [
|
|
|
68
68
|
section: 'Forms',
|
|
69
69
|
load: () => import('./pages/ButtonPage'),
|
|
70
70
|
},
|
|
71
|
+
{
|
|
72
|
+
slug: 'button-group',
|
|
73
|
+
title: 'ButtonGroup',
|
|
74
|
+
section: 'Forms',
|
|
75
|
+
load: () => import('./pages/ButtonGroupPage'),
|
|
76
|
+
},
|
|
71
77
|
{
|
|
72
78
|
slug: 'analyses-selector',
|
|
73
79
|
title: 'AnalysesSelector',
|
|
@@ -86,12 +92,6 @@ export const DOC_REGISTRY: DocEntry[] = [
|
|
|
86
92
|
section: 'Data display',
|
|
87
93
|
load: () => import('./pages/AvatarPage'),
|
|
88
94
|
},
|
|
89
|
-
{
|
|
90
|
-
slug: 'badge',
|
|
91
|
-
title: 'Badge',
|
|
92
|
-
section: 'Data display',
|
|
93
|
-
load: () => import('./pages/BadgePage'),
|
|
94
|
-
},
|
|
95
95
|
{
|
|
96
96
|
slug: 'chip',
|
|
97
97
|
title: 'Chip',
|
|
@@ -495,12 +495,6 @@ export const DOC_REGISTRY: DocEntry[] = [
|
|
|
495
495
|
section: 'Forms',
|
|
496
496
|
load: () => import('./pages/TimeRangeControlsPage'),
|
|
497
497
|
},
|
|
498
|
-
{
|
|
499
|
-
slug: 'toggle',
|
|
500
|
-
title: 'Toggle',
|
|
501
|
-
section: 'Forms',
|
|
502
|
-
load: () => import('./pages/TogglePage'),
|
|
503
|
-
},
|
|
504
498
|
{
|
|
505
499
|
slug: 'toggle-group',
|
|
506
500
|
title: 'ToggleGroup',
|
package/src/index.ts
CHANGED
|
@@ -17,7 +17,6 @@ export * from './components/ui/AnalysesSelector';
|
|
|
17
17
|
export * from './components/ui/AnalysisLineIcon';
|
|
18
18
|
export * from './components/ui/AppHeader';
|
|
19
19
|
export * from './components/ui/Avatar';
|
|
20
|
-
export * from './components/ui/Badge';
|
|
21
20
|
export * from './components/ui/Banner';
|
|
22
21
|
export * from './components/ui/Chip';
|
|
23
22
|
export * from './components/ui/Kicker';
|
|
@@ -25,6 +24,7 @@ export * from './components/ui/PullQuote';
|
|
|
25
24
|
export * from './components/ui/SignalCard';
|
|
26
25
|
export * from './components/ui/Breadcrumb';
|
|
27
26
|
export * from './components/ui/Button';
|
|
27
|
+
export * from './components/ui/ButtonGroup';
|
|
28
28
|
export * from './components/ui/Card';
|
|
29
29
|
export * from './components/ui/Chart';
|
|
30
30
|
export * from './components/ui/ChartAreaInteractive';
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { jsx } from 'react/jsx-runtime';
|
|
2
|
-
import cn from 'classnames';
|
|
3
|
-
import { Slot } from '@radix-ui/react-slot';
|
|
4
|
-
import S from './Badge.styl.js';
|
|
5
|
-
|
|
6
|
-
function Badge({ className, variant = 'default', asChild = false, squared = false, ...props }) {
|
|
7
|
-
const Comp = asChild ? Slot : 'div';
|
|
8
|
-
return (jsx(Comp, { "data-slot": "badge", className: cn(S.root, variant && S[`variant-${variant}`], squared && S.squared, className), ...props }));
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
export { Badge };
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import styleInject from 'style-inject';
|
|
2
|
-
|
|
3
|
-
var css_248z = ".Badge_root__gVZZ-{align-items:center;border-color:transparent;border-radius:var(--radius-pill);display:inline-flex;flex-shrink:0;font-family:var(--font-family-body);font-size:11px;font-weight:400;gap:var(--spacing-xs);justify-content:center;line-height:1rem;overflow:hidden;padding:5px 10px;transition:background-color .2s,color .2s;white-space:nowrap;width:-moz-fit-content;width:fit-content}.Badge_root__gVZZ-.Badge_squared__dpe-t{border-radius:var(--p-1)}.Badge_root__gVZZ->svg{height:.75rem;pointer-events:none;width:.75rem}.Badge_root__gVZZ-.Badge_variant-default__pYlwv{background-color:var(--sb-slate-50);color:var(--sb-slate-600)}a.Badge_root__gVZZ-.Badge_variant-default__pYlwv:hover{background-color:var(--sb-slate-100)}.dark .Badge_root__gVZZ-.Badge_variant-default__pYlwv{background-color:var(--sb-slate-900);color:var(--sb-slate-400)}a.dark .Badge_root__gVZZ-.Badge_variant-default__pYlwv:hover{background-color:var(--sb-slate-800)}.Badge_root__gVZZ-.Badge_variant-outline__73s9y{background-color:transparent;border:1px solid var(--border);color:var(--foreground)}a.Badge_root__gVZZ-.Badge_variant-outline__73s9y:hover{background-color:var(--accent);color:var(--accent-foreground)}.Badge_root__gVZZ-.Badge_variant-red__h3aUo{background-color:var(--sb-red-50);color:var(--sb-red-600)}a.Badge_root__gVZZ-.Badge_variant-red__h3aUo:hover{background-color:var(--sb-red-100)}.dark .Badge_root__gVZZ-.Badge_variant-red__h3aUo{background-color:var(--sb-red-900);color:var(--sb-red-400)}a.dark .Badge_root__gVZZ-.Badge_variant-red__h3aUo:hover{background-color:var(--sb-red-800)}.Badge_root__gVZZ-.Badge_variant-green__u7N8I{background-color:var(--sb-green-50);color:var(--sb-green-600)}a.Badge_root__gVZZ-.Badge_variant-green__u7N8I:hover{background-color:var(--sb-green-100)}.dark .Badge_root__gVZZ-.Badge_variant-green__u7N8I{background-color:var(--sb-green-900);color:var(--sb-green-400)}a.dark .Badge_root__gVZZ-.Badge_variant-green__u7N8I:hover{background-color:var(--sb-green-800)}.Badge_root__gVZZ-.Badge_variant-yellow__jEzv5{background-color:var(--sb-yellow-50);color:var(--sb-yellow-600)}a.Badge_root__gVZZ-.Badge_variant-yellow__jEzv5:hover{background-color:var(--sb-yellow-100)}.dark .Badge_root__gVZZ-.Badge_variant-yellow__jEzv5{background-color:var(--sb-yellow-900);color:var(--sb-yellow-400)}a.dark .Badge_root__gVZZ-.Badge_variant-yellow__jEzv5:hover{background-color:var(--sb-yellow-800)}";
|
|
4
|
-
var S = {"root":"Badge_root__gVZZ-","squared":"Badge_squared__dpe-t","variant-default":"Badge_variant-default__pYlwv","variant-outline":"Badge_variant-outline__73s9y","variant-red":"Badge_variant-red__h3aUo","variant-green":"Badge_variant-green__u7N8I","variant-yellow":"Badge_variant-yellow__jEzv5"};
|
|
5
|
-
styleInject(css_248z);
|
|
6
|
-
|
|
7
|
-
export { S as default };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export default function BadgePage(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export default function TogglePage(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
Badges are compact labels that highlight a status, category, or count. Choose a variant that matches the meaning: default or outline for neutral labels, red and green for negative and positive states.
|
|
2
|
-
|
|
3
|
-
## When to use
|
|
4
|
-
|
|
5
|
-
- To show the status of an item, such as active, failed, or done.
|
|
6
|
-
- To label or categorise content in lists, tables, and cards.
|
|
7
|
-
- To surface short metadata next to a title.
|
|
8
|
-
|
|
9
|
-
## When not to use
|
|
10
|
-
|
|
11
|
-
- For interactive actions; badges are not clickable, use Button instead.
|
|
12
|
-
- For long descriptive text; keep badge labels to one or two words.
|
|
13
|
-
|
|
14
|
-
## Do
|
|
15
|
-
|
|
16
|
-
- Use colour variants consistently so a given colour always carries the same meaning across the product.
|
|
@@ -1,95 +0,0 @@
|
|
|
1
|
-
.root
|
|
2
|
-
display inline-flex
|
|
3
|
-
align-items center
|
|
4
|
-
justify-content center
|
|
5
|
-
width fit-content
|
|
6
|
-
flex-shrink 0
|
|
7
|
-
white-space nowrap
|
|
8
|
-
gap var(--spacing-xs)
|
|
9
|
-
padding 5px 10px
|
|
10
|
-
border-radius var(--radius-pill)
|
|
11
|
-
border-color transparent
|
|
12
|
-
font-size 11px
|
|
13
|
-
line-height 1rem
|
|
14
|
-
font-family var(--font-family-body)
|
|
15
|
-
font-weight 400
|
|
16
|
-
overflow hidden
|
|
17
|
-
transition background-color 0.2s, color 0.2s
|
|
18
|
-
|
|
19
|
-
&.squared
|
|
20
|
-
border-radius var(--p-1)
|
|
21
|
-
|
|
22
|
-
& > svg
|
|
23
|
-
width 0.75rem
|
|
24
|
-
height 0.75rem
|
|
25
|
-
pointer-events none
|
|
26
|
-
|
|
27
|
-
// Default variant
|
|
28
|
-
&.variant-default
|
|
29
|
-
background-color var(--sb-slate-50)
|
|
30
|
-
color var(--sb-slate-600)
|
|
31
|
-
|
|
32
|
-
a&:hover
|
|
33
|
-
background-color var(--sb-slate-100)
|
|
34
|
-
|
|
35
|
-
:global(.dark) &
|
|
36
|
-
background-color var(--sb-slate-900)
|
|
37
|
-
color var(--sb-slate-400)
|
|
38
|
-
|
|
39
|
-
a&:hover
|
|
40
|
-
background-color var(--sb-slate-800)
|
|
41
|
-
|
|
42
|
-
// Outline variant
|
|
43
|
-
&.variant-outline
|
|
44
|
-
background-color transparent
|
|
45
|
-
border 1px solid var(--border)
|
|
46
|
-
color var(--foreground)
|
|
47
|
-
|
|
48
|
-
a&:hover
|
|
49
|
-
background-color var(--accent)
|
|
50
|
-
color var(--accent-foreground)
|
|
51
|
-
|
|
52
|
-
// Red variant
|
|
53
|
-
&.variant-red
|
|
54
|
-
background-color var(--sb-red-50)
|
|
55
|
-
color var(--sb-red-600)
|
|
56
|
-
|
|
57
|
-
a&:hover
|
|
58
|
-
background-color var(--sb-red-100)
|
|
59
|
-
|
|
60
|
-
:global(.dark) &
|
|
61
|
-
background-color var(--sb-red-900)
|
|
62
|
-
color var(--sb-red-400)
|
|
63
|
-
|
|
64
|
-
a&:hover
|
|
65
|
-
background-color var(--sb-red-800)
|
|
66
|
-
|
|
67
|
-
// Green variant
|
|
68
|
-
&.variant-green
|
|
69
|
-
background-color var(--sb-green-50)
|
|
70
|
-
color var(--sb-green-600)
|
|
71
|
-
|
|
72
|
-
a&:hover
|
|
73
|
-
background-color var(--sb-green-100)
|
|
74
|
-
|
|
75
|
-
:global(.dark) &
|
|
76
|
-
background-color var(--sb-green-900)
|
|
77
|
-
color var(--sb-green-400)
|
|
78
|
-
|
|
79
|
-
a&:hover
|
|
80
|
-
background-color var(--sb-green-800)
|
|
81
|
-
|
|
82
|
-
// Yellow variant
|
|
83
|
-
&.variant-yellow
|
|
84
|
-
background-color var(--sb-yellow-50)
|
|
85
|
-
color var(--sb-yellow-600)
|
|
86
|
-
|
|
87
|
-
a&:hover
|
|
88
|
-
background-color var(--sb-yellow-100)
|
|
89
|
-
|
|
90
|
-
:global(.dark) &
|
|
91
|
-
background-color var(--sb-yellow-900)
|
|
92
|
-
color var(--sb-yellow-400)
|
|
93
|
-
|
|
94
|
-
a&:hover
|
|
95
|
-
background-color var(--sb-yellow-800)
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import cn from 'classnames';
|
|
2
|
-
|
|
3
|
-
import { Slot } from '@radix-ui/react-slot';
|
|
4
|
-
|
|
5
|
-
import S from './Badge.styl';
|
|
6
|
-
import { BadgeProps } from './Badge.types';
|
|
7
|
-
|
|
8
|
-
function Badge({
|
|
9
|
-
className,
|
|
10
|
-
variant = 'default',
|
|
11
|
-
asChild = false,
|
|
12
|
-
squared = false,
|
|
13
|
-
...props
|
|
14
|
-
}: BadgeProps) {
|
|
15
|
-
const Comp = asChild ? Slot : 'div';
|
|
16
|
-
|
|
17
|
-
return (
|
|
18
|
-
<Comp
|
|
19
|
-
data-slot="badge"
|
|
20
|
-
className={cn(
|
|
21
|
-
S.root,
|
|
22
|
-
variant && S[`variant-${variant}`],
|
|
23
|
-
squared && S.squared,
|
|
24
|
-
className,
|
|
25
|
-
)}
|
|
26
|
-
{...props}
|
|
27
|
-
/>
|
|
28
|
-
);
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
export { Badge };
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
LegacyPlatformLink is an anchor that points at the legacy platform, building the destination from the API domain plus the redirectPath you supply. It renders as a styled link and accepts standard anchor props.
|
|
2
|
-
|
|
3
|
-
## When to use
|
|
4
|
-
|
|
5
|
-
- To send users to a screen that still lives on the legacy platform, such as older dashboards.
|
|
6
|
-
- During migration, where some destinations exist only in the legacy product.
|
|
7
|
-
|
|
8
|
-
## When not to use
|
|
9
|
-
|
|
10
|
-
- For navigation within the current app; use the router link components instead.
|
|
11
|
-
- Once the destination has been migrated; replace the legacy link with an in-app route.
|
|
12
|
-
|
|
13
|
-
## Do
|
|
14
|
-
|
|
15
|
-
- Pass only the path portion in redirectPath, such as /v1/dashboard; the domain is added for you.
|