Skip to content

Commit 264b1d3

Browse files
committed
chore: revert components
1 parent 96a10bd commit 264b1d3

File tree

11 files changed

+43
-43
lines changed

11 files changed

+43
-43
lines changed

src/client/components/Badge.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* @see {@link https://ui.shadcn.com/docs/components/badge}
44
*/
55
import { Slot } from "@radix-ui/react-slot";
6-
import { cva, type VariantProps } from "class-variance-authority";
6+
import { type VariantProps, cva } from "class-variance-authority";
77
import { forwardRef } from "react";
88
import { cn } from "@/utils/cn";
99

src/client/components/Button.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* @see {@link https://ui.shadcn.com/docs/components/button}
44
*/
55
import { Slot } from "@radix-ui/react-slot";
6-
import { cva, type VariantProps } from "class-variance-authority";
6+
import { type VariantProps, cva } from "class-variance-authority";
77
import { forwardRef } from "react";
88
import { cn } from "@/utils/cn";
99

src/client/components/Command.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44
*/
55
import type { DialogProps } from "@radix-ui/react-dialog";
66
import { Command as CommandPrimitive } from "cmdk";
7+
import { Dialog, DialogContent } from "@/client/components/Dialog";
78
import { Search } from "lucide-react";
89
import { type FC, forwardRef } from "react";
9-
import { Dialog, DialogContent } from "@/client/components/Dialog";
1010
import { cn } from "@/utils/cn";
1111

1212
export const Command = forwardRef<

src/client/components/Dialog.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ import {
77
type ComponentPropsWithoutRef,
88
type ElementRef,
99
type FC,
10-
forwardRef,
1110
type HTMLAttributes,
11+
forwardRef,
1212
} from "react";
1313
import { cn } from "@/utils/cn";
1414

src/client/components/DropdownMenu.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,15 @@
66
* @see {@link https://www.figma.com/design/WfqIgsTFXN2BscBSSyXWF8/Coder-kit?node-id=656-2354&t=CiGt5le3yJEwMH4M-0}
77
*/
88

9+
import { cn } from "@/utils/cn";
910
import * as DropdownMenuPrimitive from "@radix-ui/react-dropdown-menu";
1011
import { Check, ChevronRight, Circle } from "lucide-react";
1112
import {
1213
type ComponentPropsWithoutRef,
1314
type ElementRef,
14-
forwardRef,
1515
type HTMLAttributes,
16+
forwardRef,
1617
} from "react";
17-
import { cn } from "@/utils/cn";
1818

1919
export const DropdownMenu = DropdownMenuPrimitive.Root;
2020

src/client/components/DynamicParameter.tsx

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,5 @@
1-
import {
2-
CircleAlert,
3-
Info,
4-
LinkIcon,
5-
Settings,
6-
TriangleAlert,
7-
} from "lucide-react";
8-
import { type FC, useEffect, useId, useRef, useState } from "react";
9-
import * as Yup from "yup";
101
import { Badge } from "@/client/components/Badge";
2+
113
import { Checkbox } from "@/client/components/Checkbox";
124
import { Input } from "@/client/components/Input";
135
import { Label } from "@/client/components/Label";
@@ -34,14 +26,23 @@ import {
3426
TooltipProvider,
3527
TooltipTrigger,
3628
} from "@/client/components/Tooltip";
37-
import { useEditor } from "@/client/contexts/editor";
3829
import { useDebouncedValue } from "@/client/hooks/debounce";
3930
import { useEffectEvent } from "@/client/hooks/hookPolyfills";
4031
import type {
4132
NullHCLString,
4233
ParameterWithSource as Parameter,
4334
ParameterOption,
4435
} from "@/gen/types";
36+
import {
37+
CircleAlert,
38+
Info,
39+
LinkIcon,
40+
Settings,
41+
TriangleAlert,
42+
} from "lucide-react";
43+
import { type FC, useEffect, useId, useRef, useState } from "react";
44+
import * as Yup from "yup";
45+
import { useEditor } from "@/client/contexts/editor";
4546

4647
interface WorkspaceBuildParameter {
4748
readonly name: string;
@@ -679,7 +680,7 @@ const isValidParameterOption = (
679680
if (Array.isArray(parsed)) {
680681
values = parsed;
681682
}
682-
} catch (_e) {
683+
} catch (e) {
683684
return false;
684685
}
685686

src/client/components/Label.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* @see {@link https://ui.shadcn.com/docs/components/label}
44
*/
55
import * as LabelPrimitive from "@radix-ui/react-label";
6-
import { cva, type VariantProps } from "class-variance-authority";
6+
import { type VariantProps, cva } from "class-variance-authority";
77
import { forwardRef } from "react";
88

99
import { cn } from "@/utils/cn";

src/client/components/Markdown.tsx

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,25 @@
1+
import {
2+
Table,
3+
TableBody,
4+
TableCell,
5+
TableHeader,
6+
TableRow,
7+
} from "@/client/components/Table";
18
import isEqual from "lodash/isEqual";
29
import {
310
type FC,
411
type HTMLProps,
5-
isValidElement,
6-
memo,
712
type ReactElement,
813
type ReactNode,
14+
isValidElement,
15+
memo,
916
} from "react";
1017
import ReactMarkdown, { type Options } from "react-markdown";
11-
import { NavLink } from "react-router";
1218
import { Prism as SyntaxHighlighter } from "react-syntax-highlighter";
1319
import { dracula } from "react-syntax-highlighter/dist/cjs/styles/prism";
1420
import gfm from "remark-gfm";
15-
import {
16-
Table,
17-
TableBody,
18-
TableCell,
19-
TableHeader,
20-
TableRow,
21-
} from "@/client/components/Table";
2221
import { cn } from "@/utils/cn";
22+
import { NavLink } from "react-router";
2323

2424
interface MarkdownProps {
2525
/**

src/client/components/MultiSelectCombobox.tsx

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -3,28 +3,28 @@
33
* @see {@link https://shadcnui-expansions.typeart.cc/docs/multiple-selector}
44
*/
55
import { Command as CommandPrimitive, useCommandState } from "cmdk";
6+
import { Badge } from "@/client/components/Badge";
7+
import {
8+
Command,
9+
CommandGroup,
10+
CommandItem,
11+
CommandList,
12+
} from "@/client/components/Command";
13+
import { useDebouncedValue } from "@/client/hooks/debounce";
614
import { ChevronDown, X } from "lucide-react";
715
import {
816
type ComponentProps,
917
type ComponentPropsWithoutRef,
10-
forwardRef,
1118
type KeyboardEvent,
1219
type ReactNode,
20+
forwardRef,
1321
useCallback,
1422
useEffect,
1523
useImperativeHandle,
1624
useMemo,
1725
useRef,
1826
useState,
1927
} from "react";
20-
import { Badge } from "@/client/components/Badge";
21-
import {
22-
Command,
23-
CommandGroup,
24-
CommandItem,
25-
CommandList,
26-
} from "@/client/components/Command";
27-
import { useDebouncedValue } from "@/client/hooks/debounce";
2828
import { cn } from "@/utils/cn";
2929

3030
export interface Option {
@@ -458,7 +458,6 @@ export const MultiSelectCombobox = forwardRef<
458458
filter={commandFilter()}
459459
>
460460
{/* biome-ignore lint/a11y/useKeyWithClickEvents: onKeyDown is not needed here */}
461-
{/* biome-ignore lint/a11y/noStaticElementInteractions: This code is pulled from coder/coder and should be fixed there */}
462461
<div
463462
className={cn(
464463
"h-10 min-h-10 rounded-md border border-border border-solid pr-3 text-sm focus-within:ring-2 focus-within:ring-content-link",
@@ -473,7 +472,7 @@ export const MultiSelectCombobox = forwardRef<
473472
inputRef?.current?.focus();
474473
}}
475474
>
476-
<div className="flex h-full items-center justify-between">
475+
<div className="flex items-center justify-between h-full">
477476
<div className="relative flex flex-wrap gap-1">
478477
{selected.map((option) => {
479478
return (
@@ -594,7 +593,7 @@ export const MultiSelectCombobox = forwardRef<
594593
}}
595594
>
596595
{isLoading ? (
597-
loadingIndicator
596+
<>{loadingIndicator}</>
598597
) : (
599598
<>
600599
{EmptyItem()}

src/client/components/Table.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* @see {@link https://ui.shadcn.com/docs/components/table}
44
*/
55

6-
import { cva, type VariantProps } from "class-variance-authority";
6+
import { type VariantProps, cva } from "class-variance-authority";
77
import * as React from "react";
88
import { cn } from "@/utils/cn";
99

0 commit comments

Comments
 (0)