@alpic-ai/ui 0.0.0-dev.g20a247a → 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.
Files changed (112) hide show
  1. package/dist/components/accordion-card.d.mts +5 -5
  2. package/dist/components/accordion.d.mts +5 -5
  3. package/dist/components/alert.d.mts +8 -8
  4. package/dist/components/area-chart.d.mts +64 -0
  5. package/dist/components/area-chart.mjs +275 -0
  6. package/dist/components/attachment-tile.d.mts +1 -1
  7. package/dist/components/avatar.d.mts +7 -7
  8. package/dist/components/badge.d.mts +1 -1
  9. package/dist/components/bar-chart.d.mts +50 -0
  10. package/dist/components/bar-chart.mjs +262 -0
  11. package/dist/components/bar-list.d.mts +31 -0
  12. package/dist/components/bar-list.mjs +111 -0
  13. package/dist/components/breadcrumb.d.mts +10 -10
  14. package/dist/components/button.d.mts +5 -5
  15. package/dist/components/card.d.mts +9 -9
  16. package/dist/components/chart-card.d.mts +25 -0
  17. package/dist/components/chart-card.mjs +48 -0
  18. package/dist/components/chart-container.d.mts +20 -0
  19. package/dist/components/chart-container.mjs +37 -0
  20. package/dist/components/chart-legend.d.mts +21 -0
  21. package/dist/components/chart-legend.mjs +35 -0
  22. package/dist/components/chart-tooltip.d.mts +33 -0
  23. package/dist/components/chart-tooltip.mjs +52 -0
  24. package/dist/components/checkbox.d.mts +2 -2
  25. package/dist/components/collapsible.d.mts +4 -4
  26. package/dist/components/combobox.d.mts +10 -10
  27. package/dist/components/command.d.mts +9 -9
  28. package/dist/components/copyable.d.mts +2 -2
  29. package/dist/components/description-list.d.mts +5 -5
  30. package/dist/components/dialog.d.mts +13 -13
  31. package/dist/components/donut-chart.d.mts +46 -0
  32. package/dist/components/donut-chart.mjs +189 -0
  33. package/dist/components/dropdown-menu.d.mts +17 -17
  34. package/dist/components/form.d.mts +18 -18
  35. package/dist/components/form.mjs +7 -7
  36. package/dist/components/github-button.d.mts +1 -1
  37. package/dist/components/heatmap-chart.d.mts +48 -0
  38. package/dist/components/heatmap-chart.mjs +229 -0
  39. package/dist/components/input-group.d.mts +4 -4
  40. package/dist/components/input.d.mts +4 -4
  41. package/dist/components/input.mjs +2 -2
  42. package/dist/components/label.d.mts +2 -2
  43. package/dist/components/line-chart.d.mts +57 -0
  44. package/dist/components/line-chart.mjs +218 -0
  45. package/dist/components/page-loader.d.mts +1 -1
  46. package/dist/components/pagination.d.mts +3 -3
  47. package/dist/components/popover.d.mts +5 -5
  48. package/dist/components/radio-group.d.mts +3 -3
  49. package/dist/components/scroll-area.d.mts +3 -3
  50. package/dist/components/select.d.mts +9 -9
  51. package/dist/components/separator.d.mts +2 -2
  52. package/dist/components/sheet.d.mts +11 -11
  53. package/dist/components/shimmer-text.d.mts +3 -1
  54. package/dist/components/sidebar.d.mts +33 -33
  55. package/dist/components/sidebar.mjs +10 -10
  56. package/dist/components/skeleton.d.mts +1 -1
  57. package/dist/components/sonner.d.mts +5 -5
  58. package/dist/components/spinner.d.mts +2 -2
  59. package/dist/components/stat.d.mts +32 -0
  60. package/dist/components/stat.mjs +117 -0
  61. package/dist/components/status-dot.d.mts +1 -1
  62. package/dist/components/switch.d.mts +2 -2
  63. package/dist/components/table.d.mts +10 -10
  64. package/dist/components/tabs.d.mts +10 -10
  65. package/dist/components/tag.d.mts +3 -3
  66. package/dist/components/task-progress.d.mts +1 -1
  67. package/dist/components/textarea.d.mts +3 -3
  68. package/dist/components/textarea.mjs +3 -3
  69. package/dist/components/toggle-group.d.mts +3 -3
  70. package/dist/components/toggle-group.mjs +3 -3
  71. package/dist/components/tooltip.d.mts +5 -5
  72. package/dist/components/typography.d.mts +4 -4
  73. package/dist/components/wizard.d.mts +4 -22
  74. package/dist/components/wizard.mjs +1 -19
  75. package/dist/hooks/use-chart-theme.d.mts +18 -0
  76. package/dist/hooks/use-chart-theme.mjs +57 -0
  77. package/dist/hooks/use-mobile.mjs +3 -3
  78. package/dist/hooks/use-reduced-motion.d.mts +4 -0
  79. package/dist/hooks/use-reduced-motion.mjs +16 -0
  80. package/dist/lib/chart-palette.d.mts +4 -0
  81. package/dist/lib/chart-palette.mjs +95 -0
  82. package/dist/lib/chart.d.mts +14 -0
  83. package/dist/lib/chart.mjs +42 -0
  84. package/package.json +30 -29
  85. package/src/components/area-chart.tsx +347 -0
  86. package/src/components/bar-chart.tsx +317 -0
  87. package/src/components/bar-list.tsx +166 -0
  88. package/src/components/chart-card.tsx +65 -0
  89. package/src/components/chart-container.tsx +51 -0
  90. package/src/components/chart-legend.tsx +49 -0
  91. package/src/components/chart-tooltip.tsx +93 -0
  92. package/src/components/donut-chart.tsx +217 -0
  93. package/src/components/form.tsx +1 -1
  94. package/src/components/heatmap-chart.tsx +331 -0
  95. package/src/components/line-chart.tsx +277 -0
  96. package/src/components/stat.tsx +113 -0
  97. package/src/components/textarea.tsx +1 -1
  98. package/src/components/wizard.tsx +1 -35
  99. package/src/hooks/use-chart-theme.ts +75 -0
  100. package/src/hooks/use-reduced-motion.ts +17 -0
  101. package/src/lib/chart-palette.ts +110 -0
  102. package/src/lib/chart.ts +90 -0
  103. package/src/stories/area-chart.stories.tsx +198 -0
  104. package/src/stories/bar-chart.stories.tsx +167 -0
  105. package/src/stories/bar-list.stories.tsx +83 -0
  106. package/src/stories/donut-chart.stories.tsx +110 -0
  107. package/src/stories/heatmap-chart.stories.tsx +105 -0
  108. package/src/stories/line-chart.stories.tsx +144 -0
  109. package/src/stories/stat.stories.tsx +64 -0
  110. package/src/stories/textarea.stories.tsx +7 -0
  111. package/src/stories/wizard.stories.tsx +23 -5
  112. 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 { WizardProgress, type WizardStep, WizardSteps } from "../components/wizard";
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: WizardStep[] = [
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 & submit" },
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
- <WizardSteps steps={steps} activeIdx={activeIdx} onSelect={setActiveIdx} ariaLabel="Submission steps" />
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
- <WizardSteps steps={steps} activeIdx={activeIdx} onSelect={setActiveIdx} />
57
+ <StepRail activeIdx={activeIdx} onSelect={setActiveIdx} />
40
58
  </div>
41
59
  </div>
42
60
 
@@ -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 {