@alpic-ai/ui 0.0.0-dev.g20c64d3 → 0.0.0-dev.g20fd91c
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/components/accordion-card.d.mts +5 -6
- package/dist/components/accordion.d.mts +5 -6
- package/dist/components/alert.d.mts +9 -11
- package/dist/components/area-chart.d.mts +64 -0
- package/dist/components/area-chart.mjs +275 -0
- package/dist/components/attachment-tile.d.mts +1 -3
- package/dist/components/avatar.d.mts +8 -10
- package/dist/components/badge.d.mts +2 -4
- package/dist/components/bar-chart.d.mts +50 -0
- package/dist/components/bar-chart.mjs +262 -0
- package/dist/components/bar-list.d.mts +31 -0
- package/dist/components/bar-list.mjs +111 -0
- package/dist/components/breadcrumb.d.mts +10 -11
- package/dist/components/button.d.mts +6 -8
- package/dist/components/card.d.mts +9 -10
- package/dist/components/chart-card.d.mts +25 -0
- package/dist/components/chart-card.mjs +48 -0
- package/dist/components/chart-container.d.mts +20 -0
- package/dist/components/chart-container.mjs +37 -0
- package/dist/components/chart-legend.d.mts +21 -0
- package/dist/components/chart-legend.mjs +35 -0
- package/dist/components/chart-tooltip.d.mts +33 -0
- package/dist/components/chart-tooltip.mjs +52 -0
- package/dist/components/checkbox.d.mts +2 -3
- package/dist/components/collapsible.d.mts +4 -5
- package/dist/components/combobox.d.mts +12 -11
- package/dist/components/combobox.mjs +7 -4
- package/dist/components/command.d.mts +9 -10
- package/dist/components/copyable.d.mts +2 -3
- package/dist/components/description-list.d.mts +5 -6
- package/dist/components/dialog.d.mts +15 -17
- package/dist/components/donut-chart.d.mts +46 -0
- package/dist/components/donut-chart.mjs +189 -0
- package/dist/components/dropdown-menu.d.mts +18 -20
- package/dist/components/form.d.mts +38 -21
- package/dist/components/form.mjs +7 -7
- package/dist/components/github-button.d.mts +1 -2
- package/dist/components/heatmap-chart.d.mts +48 -0
- package/dist/components/heatmap-chart.mjs +229 -0
- package/dist/components/input-group.d.mts +5 -7
- package/dist/components/input.d.mts +4 -5
- package/dist/components/input.mjs +2 -2
- package/dist/components/label.d.mts +2 -3
- package/dist/components/line-chart.d.mts +57 -0
- package/dist/components/line-chart.mjs +218 -0
- package/dist/components/page-loader.d.mts +1 -3
- package/dist/components/pagination.d.mts +3 -4
- package/dist/components/popover.d.mts +5 -6
- package/dist/components/radio-group.d.mts +3 -4
- package/dist/components/scroll-area.d.mts +3 -4
- package/dist/components/select-trigger-variants.d.mts +1 -3
- package/dist/components/select.d.mts +9 -10
- package/dist/components/separator.d.mts +2 -3
- package/dist/components/sheet.d.mts +11 -12
- package/dist/components/shimmer-text.d.mts +2 -2
- package/dist/components/sidebar.d.mts +34 -36
- package/dist/components/sidebar.mjs +10 -10
- package/dist/components/skeleton.d.mts +2 -4
- package/dist/components/sonner.d.mts +5 -6
- package/dist/components/spinner.d.mts +3 -5
- package/dist/components/stat.d.mts +32 -0
- package/dist/components/stat.mjs +117 -0
- package/dist/components/status-dot.d.mts +2 -4
- package/dist/components/switch.d.mts +2 -3
- package/dist/components/table.d.mts +10 -11
- package/dist/components/tabs.d.mts +12 -14
- package/dist/components/tag.d.mts +3 -5
- package/dist/components/task-progress.d.mts +1 -3
- package/dist/components/textarea.d.mts +3 -4
- package/dist/components/textarea.mjs +3 -3
- package/dist/components/toggle-group.d.mts +4 -6
- package/dist/components/toggle-group.mjs +3 -3
- package/dist/components/tooltip-icon-button.d.mts +1 -2
- package/dist/components/tooltip.d.mts +5 -6
- package/dist/components/typography.d.mts +4 -5
- package/dist/components/wizard.d.mts +4 -23
- package/dist/components/wizard.mjs +1 -19
- package/dist/hooks/use-chart-theme.d.mts +18 -0
- package/dist/hooks/use-chart-theme.mjs +57 -0
- package/dist/hooks/use-mobile.mjs +3 -3
- package/dist/hooks/use-reduced-motion.d.mts +4 -0
- package/dist/hooks/use-reduced-motion.mjs +16 -0
- package/dist/lib/chart-palette.d.mts +4 -0
- package/dist/lib/chart-palette.mjs +95 -0
- package/dist/lib/chart.d.mts +14 -0
- package/dist/lib/chart.mjs +42 -0
- package/package.json +30 -29
- package/src/components/area-chart.tsx +347 -0
- package/src/components/bar-chart.tsx +317 -0
- package/src/components/bar-list.tsx +166 -0
- package/src/components/chart-card.tsx +65 -0
- package/src/components/chart-container.tsx +51 -0
- package/src/components/chart-legend.tsx +49 -0
- package/src/components/chart-tooltip.tsx +93 -0
- package/src/components/combobox.tsx +9 -2
- package/src/components/donut-chart.tsx +217 -0
- package/src/components/form.tsx +1 -1
- package/src/components/heatmap-chart.tsx +331 -0
- package/src/components/line-chart.tsx +277 -0
- package/src/components/stat.tsx +113 -0
- package/src/components/textarea.tsx +1 -1
- package/src/components/wizard.tsx +1 -35
- package/src/hooks/use-chart-theme.ts +75 -0
- package/src/hooks/use-reduced-motion.ts +17 -0
- package/src/lib/chart-palette.ts +110 -0
- package/src/lib/chart.ts +90 -0
- package/src/stories/area-chart.stories.tsx +198 -0
- package/src/stories/bar-chart.stories.tsx +167 -0
- package/src/stories/bar-list.stories.tsx +83 -0
- package/src/stories/donut-chart.stories.tsx +110 -0
- package/src/stories/heatmap-chart.stories.tsx +105 -0
- package/src/stories/line-chart.stories.tsx +144 -0
- package/src/stories/stat.stories.tsx +64 -0
- package/src/stories/textarea.stories.tsx +7 -0
- package/src/stories/wizard.stories.tsx +23 -5
- package/src/styles/tokens.css +18 -0
|
@@ -55,6 +55,13 @@ export const AllVariants = () => {
|
|
|
55
55
|
hint="This is a hint text to help user."
|
|
56
56
|
disabled
|
|
57
57
|
/>
|
|
58
|
+
|
|
59
|
+
<span className={SECTION_HEADER}>Long pre-filled (auto-grows, no crop)</span>
|
|
60
|
+
<Textarea
|
|
61
|
+
id="long-prefilled"
|
|
62
|
+
label="Subtitle"
|
|
63
|
+
defaultValue="The fastest way to deploy, host, and scale remote MCP servers for your AI agents — with zero infrastructure to manage, built-in observability, and one-command rollbacks straight from your terminal."
|
|
64
|
+
/>
|
|
58
65
|
</div>
|
|
59
66
|
);
|
|
60
67
|
};
|
|
@@ -1,18 +1,36 @@
|
|
|
1
1
|
import type { Story } from "@ladle/react";
|
|
2
2
|
import { useState } from "react";
|
|
3
3
|
|
|
4
|
-
import {
|
|
4
|
+
import { TabsNav, TabsNavList, TabsNavTrigger } from "../components/tabs";
|
|
5
|
+
import { WizardProgress } from "../components/wizard";
|
|
5
6
|
|
|
6
7
|
const SECTION_HEADER = "type-text-xs font-medium text-muted-foreground uppercase tracking-wide pt-4";
|
|
7
8
|
|
|
8
|
-
const steps
|
|
9
|
+
const steps = [
|
|
9
10
|
{ id: "overview", label: "Overview" },
|
|
10
11
|
{ id: "branding", label: "Branding & metadata" },
|
|
11
12
|
{ id: "auth", label: "Authentication" },
|
|
12
13
|
{ id: "tools", label: "Tools & test cases" },
|
|
13
|
-
{ id: "review", label: "Review &
|
|
14
|
+
{ id: "review", label: "Review & export" },
|
|
14
15
|
];
|
|
15
16
|
|
|
17
|
+
/** The step rail is a vertical `TabsNav` composed with the consumer's selection state. */
|
|
18
|
+
function StepRail({ activeIdx, onSelect }: { activeIdx: number; onSelect: (idx: number) => void }) {
|
|
19
|
+
return (
|
|
20
|
+
<TabsNav orientation="vertical" aria-label="Submission steps">
|
|
21
|
+
<TabsNavList>
|
|
22
|
+
{steps.map((step, idx) => (
|
|
23
|
+
<TabsNavTrigger key={step.id} active={idx === activeIdx} asChild>
|
|
24
|
+
<button type="button" onClick={() => onSelect(idx)} className="w-full justify-start text-left">
|
|
25
|
+
{step.label}
|
|
26
|
+
</button>
|
|
27
|
+
</TabsNavTrigger>
|
|
28
|
+
))}
|
|
29
|
+
</TabsNavList>
|
|
30
|
+
</TabsNav>
|
|
31
|
+
);
|
|
32
|
+
}
|
|
33
|
+
|
|
16
34
|
export const AllVariants: Story = () => {
|
|
17
35
|
const [activeIdx, setActiveIdx] = useState(1);
|
|
18
36
|
|
|
@@ -23,7 +41,7 @@ export const AllVariants: Story = () => {
|
|
|
23
41
|
<p className={SECTION_HEADER}>Full rail — steps + progress</p>
|
|
24
42
|
<div className="mt-4 flex gap-6">
|
|
25
43
|
<aside className="basis-56 shrink-0 flex flex-col gap-4 self-start">
|
|
26
|
-
<
|
|
44
|
+
<StepRail activeIdx={activeIdx} onSelect={setActiveIdx} />
|
|
27
45
|
<WizardProgress current={activeIdx + 1} total={steps.length} />
|
|
28
46
|
</aside>
|
|
29
47
|
<div className="flex-1 rounded-md border p-4">
|
|
@@ -36,7 +54,7 @@ export const AllVariants: Story = () => {
|
|
|
36
54
|
<div>
|
|
37
55
|
<p className={SECTION_HEADER}>Steps only</p>
|
|
38
56
|
<div className="mt-4 max-w-56">
|
|
39
|
-
<
|
|
57
|
+
<StepRail activeIdx={activeIdx} onSelect={setActiveIdx} />
|
|
40
58
|
</div>
|
|
41
59
|
</div>
|
|
42
60
|
|
package/src/styles/tokens.css
CHANGED
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
--font-sans: "Inter", system-ui, sans-serif;
|
|
5
5
|
--font-display: "Inter", sans-serif;
|
|
6
6
|
--font-body: "Inter", sans-serif;
|
|
7
|
+
--font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
|
|
7
8
|
|
|
8
9
|
--color-background: #ffffff; /* Figma: bg-primary */
|
|
9
10
|
--color-foreground: #121e1e; /* Figma: fg-primary */
|
|
@@ -446,6 +447,23 @@
|
|
|
446
447
|
}
|
|
447
448
|
}
|
|
448
449
|
|
|
450
|
+
@media (prefers-reduced-motion: no-preference) {
|
|
451
|
+
.chart-rise {
|
|
452
|
+
animation: chart-rise 0.65s cubic-bezier(0.2, 0.7, 0.2, 1) both;
|
|
453
|
+
}
|
|
454
|
+
}
|
|
455
|
+
|
|
456
|
+
@keyframes chart-rise {
|
|
457
|
+
from {
|
|
458
|
+
opacity: 0;
|
|
459
|
+
transform: translateY(12px);
|
|
460
|
+
}
|
|
461
|
+
to {
|
|
462
|
+
opacity: 1;
|
|
463
|
+
transform: none;
|
|
464
|
+
}
|
|
465
|
+
}
|
|
466
|
+
|
|
449
467
|
/* ─── Typography ──────────────────────────────────────────────────────────── */
|
|
450
468
|
|
|
451
469
|
:root {
|