Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions packages/ui/src/components/activity-log/activity-log.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
"use client";

import { forwardRef, useMemo, useState } from "react";

import { ArrowRight, ChevronLeft, ChevronRight } from "lucide-react";
Expand Down
2 changes: 2 additions & 0 deletions packages/ui/src/components/animated-text/animated-text.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
"use client";

import * as React from "react";

import { cn } from "../../lib/utils";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,16 @@ import type { Meta, StoryObj } from "@storybook/react-vite";
import { ConnectorEdge } from "./connector-edge";

const meta = {
args: {
end: { x: 320, y: 120 },
label: "artifact stream",
start: { x: 0, y: 0 },
state: "active",
},
component: ConnectorEdge,
render: () => (
render: (args) => (
<div className="rounded-2xl border border-dashed border-border/70 bg-muted/10 p-6">
<ConnectorEdge end={{ x: 320, y: 120 }} label="artifact stream" start={{ x: 0, y: 0 }} state="active" />
<ConnectorEdge {...args} />
</div>
),
title: "Canvas/ConnectorEdge",
Expand Down
2 changes: 2 additions & 0 deletions packages/ui/src/components/data-list/data-list.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
"use client";

import * as React from "react";

import { cva, type VariantProps } from "class-variance-authority";
Expand Down
20 changes: 10 additions & 10 deletions packages/ui/src/components/multi-select/multi-select.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,35 +12,35 @@ const options = [
];

const meta = {
args: {
options: options,
placeholder: "Select frameworks",
},
component: MultiSelect,
title: "Form/MultiSelect",
} satisfies Meta<typeof MultiSelect>;

export default meta;
type Story = StoryObj<typeof meta>;

export const Default: Story = {
args: {
options,
placeholder: "Select frameworks",
},
};
export const Default: Story = {};

export const Searchable: Story = {
args: {
options,
placeholder: "Select frameworks",
searchable: true,
},
};

export const Controlled: Story = {
render: () => {
args: {
searchable: true,
},
render: (args) => {
const [value, setValue] = React.useState(["react", "vue"]);

return (
<div className="w-full max-w-sm">
<MultiSelect onValueChange={setValue} options={options} searchable value={value} />
<MultiSelect {...args} onValueChange={setValue} value={value} />
</div>
);
},
Expand Down
2 changes: 2 additions & 0 deletions packages/ui/src/components/spinner/unicode-spinner.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
"use client";

import * as React from "react";

import { cn } from "../../lib/utils";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
"use client";

import { forwardRef, type ReactNode, useMemo } from "react";

import { ArrowDownRight, ArrowUpRight } from "lucide-react";
Expand Down