Skip to content

Commit

Permalink
chore: simplify folders
Browse files Browse the repository at this point in the history
  • Loading branch information
nahoc committed Apr 2, 2024
1 parent 7b4c4af commit 5739e8c
Show file tree
Hide file tree
Showing 32 changed files with 58 additions and 26 deletions.
32 changes: 32 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,38 @@
# Changelog


## v0.0.14


### 📖 Documentation

- Update readme ([7b4c4af](https://github.com/risc0/risc0-ui/commit/7b4c4af))

### 🏡 Chore

- Try something ([dbde503](https://github.com/risc0/risc0-ui/commit/dbde503))
- Try something2 ([999c1ef](https://github.com/risc0/risc0-ui/commit/999c1ef))
- Cleanup ([9cf2e21](https://github.com/risc0/risc0-ui/commit/9cf2e21))
- Move up one folder ([9aa2924](https://github.com/risc0/risc0-ui/commit/9aa2924))
- Cleanup package.json ([1e7653c](https://github.com/risc0/risc0-ui/commit/1e7653c))
- Cleanup everything ([736bf4f](https://github.com/risc0/risc0-ui/commit/736bf4f))
- Try to remove files ([2cffc4d](https://github.com/risc0/risc0-ui/commit/2cffc4d))
- Re-add files ([8201f83](https://github.com/risc0/risc0-ui/commit/8201f83))
- Add husky hook for versioning ([a810503](https://github.com/risc0/risc0-ui/commit/a810503))
- Remove prerelease flag ([d6adc0d](https://github.com/risc0/risc0-ui/commit/d6adc0d))
- Wrapping up ([3a1f07e](https://github.com/risc0/risc0-ui/commit/3a1f07e))
- Add release flow ([a0ccfb8](https://github.com/risc0/risc0-ui/commit/a0ccfb8))
- Add release flow ([5da2311](https://github.com/risc0/risc0-ui/commit/5da2311))
- Add release flow ([4bd49bd](https://github.com/risc0/risc0-ui/commit/4bd49bd))
- Fix yml ([bf4398b](https://github.com/risc0/risc0-ui/commit/bf4398b))
- Better pipelin ([03e8a90](https://github.com/risc0/risc0-ui/commit/03e8a90))
- Bunx -> npx ([1cb00f2](https://github.com/risc0/risc0-ui/commit/1cb00f2))
- Put changelog in there ([60adc7b](https://github.com/risc0/risc0-ui/commit/60adc7b))

### ❤️ Contributors

- Cohan Carpentier <[email protected]>

## v0.0.13


Expand Down
2 changes: 1 addition & 1 deletion alert.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import type { VariantProps } from "class-variance-authority";
import { type HTMLAttributes, forwardRef } from "react";
import { tv } from "tailwind-variants";
import cn from "./shared/cn";
import cn from "./cn";

const alertVariants = tv({
base: "relative w-full rounded-lg border px-4 py-3 text-sm [&>svg+div]:translate-y-[-3px] [&>svg]:absolute [&>svg]:left-4 [&>svg]:text-foreground [&>svg~*]:pl-7",
Expand Down
2 changes: 1 addition & 1 deletion badge.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { type VariantProps, cva } from "class-variance-authority";
import type { HTMLAttributes } from "react";
import cn from "./shared/cn";
import cn from "./cn";

const badgeVariants = cva(
"inline-flex items-center rounded-md border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",
Expand Down
2 changes: 1 addition & 1 deletion button.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { Slot } from "@radix-ui/react-slot";
import { type VariantProps, cva } from "class-variance-authority";
import { Loader2Icon } from "lucide-react";
import { type ButtonHTMLAttributes, type ReactElement, cloneElement, forwardRef } from "react";
import cn from "./shared/cn";
import cn from "./cn";

const buttonVariants = cva(
"inline-flex items-center justify-center whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50",
Expand Down
2 changes: 1 addition & 1 deletion card.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { type HTMLAttributes, forwardRef } from "react";
import cn from "./shared/cn";
import cn from "./cn";

const Card = forwardRef<HTMLDivElement, HTMLAttributes<HTMLDivElement>>(({ className, ...rest }, ref) => (
<div ref={ref} className={cn("rounded-xl border bg-card text-card-foreground", className)} {...rest} />
Expand Down
2 changes: 1 addition & 1 deletion checkbox.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import * as CheckboxPrimitive from "@radix-ui/react-checkbox";
import { CheckIcon } from "lucide-react";
import { type ComponentPropsWithoutRef, type ElementRef, forwardRef } from "react";
import cn from "./shared/cn";
import cn from "./cn";

const Checkbox = forwardRef<
ElementRef<typeof CheckboxPrimitive.Root>,
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion command.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import type { DialogProps } from "@radix-ui/react-dialog";
import { Command as CommandPrimitive } from "cmdk";
import { SearchIcon } from "lucide-react";
import { type ComponentPropsWithoutRef, type ElementRef, type HTMLAttributes, forwardRef } from "react";
import cn from "./cn";
import { Dialog, DialogContent } from "./dialog";
import cn from "./shared/cn";

const Command = forwardRef<ElementRef<typeof CommandPrimitive>, ComponentPropsWithoutRef<typeof CommandPrimitive>>(
({ className, ...props }, ref) => (
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion dialog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import * as DialogPrimitive from "@radix-ui/react-dialog";
import { XIcon } from "lucide-react";
import { type ComponentPropsWithoutRef, type ElementRef, type HTMLAttributes, forwardRef } from "react";
import cn from "./shared/cn";
import cn from "./cn";

const DialogOverlay = forwardRef<
ElementRef<typeof DialogPrimitive.Overlay>,
Expand Down
2 changes: 1 addition & 1 deletion dropdown-menu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import * as DropdownMenuPrimitive from "@radix-ui/react-dropdown-menu";
import { CheckIcon, ChevronRightIcon, DotIcon } from "lucide-react";
import { type ComponentPropsWithoutRef, type ElementRef, type HTMLAttributes, forwardRef } from "react";
import cn from "./shared/cn";
import cn from "./cn";

const DropdownMenuSubTrigger = forwardRef<
ElementRef<typeof DropdownMenuPrimitive.SubTrigger>,
Expand Down
2 changes: 1 addition & 1 deletion form.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ import {
FormProvider,
useFormContext,
} from "react-hook-form";
import cn from "./cn";
import Label from "./label";
import cn from "./shared/cn";

const Form = FormProvider;

Expand Down
2 changes: 1 addition & 1 deletion input.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { type InputHTMLAttributes, forwardRef } from "react";
import cn from "./shared/cn";
import cn from "./cn";

export interface InputProps extends InputHTMLAttributes<HTMLInputElement> {
// any other prop goes here
Expand Down
2 changes: 1 addition & 1 deletion label.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import * as LabelPrimitive from "@radix-ui/react-label";
import type { VariantProps } from "class-variance-authority";
import { type ComponentPropsWithoutRef, type ElementRef, forwardRef } from "react";
import { tv } from "tailwind-variants";
import cn from "./shared/cn";
import cn from "./cn";

const labelVariants = tv({
base: "text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70",
Expand Down
2 changes: 1 addition & 1 deletion link.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { addBasePath } from "next/dist/client/add-base-path";
import NextLink from "next/link";
import NProgress from "nprogress";
import { type ComponentProps, type MouseEvent, forwardRef } from "react";
import cn from "./shared/cn";
import cn from "./cn";

function onStart() {
NProgress.start();
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@risc0/ui",
"version": "0.0.13",
"version": "0.0.14",
"type": "module",
"scripts": {
"bump:version": "bunx changelogen --bump",
Expand Down
2 changes: 1 addition & 1 deletion popover.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import * as PopoverPrimitive from "@radix-ui/react-popover";
import { type ComponentPropsWithoutRef, type ElementRef, forwardRef } from "react";
import cn from "./shared/cn";
import cn from "./cn";

const Popover = PopoverPrimitive.Root;
const PopoverTrigger = PopoverPrimitive.Trigger;
Expand Down
2 changes: 1 addition & 1 deletion progress.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import * as ProgressPrimitive from "@radix-ui/react-progress";
import { type ComponentPropsWithoutRef, type ElementRef, forwardRef } from "react";
import cn from "./shared/cn";
import cn from "./cn";

const Progress = forwardRef<
ElementRef<typeof ProgressPrimitive.Root>,
Expand Down
2 changes: 1 addition & 1 deletion radio-group.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import * as RadioGroupPrimitive from "@radix-ui/react-radio-group";
import { type ComponentPropsWithoutRef, type ElementRef, forwardRef } from "react";
import cn from "./shared/cn";
import cn from "./cn";

const RadioGroup = forwardRef<
ElementRef<typeof RadioGroupPrimitive.Root>,
Expand Down
2 changes: 1 addition & 1 deletion select.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import * as SelectPrimitive from "@radix-ui/react-select";
import { CheckIcon, ChevronDownIcon, ChevronUpIcon, ChevronsUpDownIcon } from "lucide-react";
import { type ComponentPropsWithoutRef, type ElementRef, forwardRef } from "react";
import cn from "./shared/cn";
import cn from "./cn";

const SelectTrigger = forwardRef<
ElementRef<typeof SelectPrimitive.Trigger>,
Expand Down
2 changes: 1 addition & 1 deletion separator.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import * as SeparatorPrimitive from "@radix-ui/react-separator";
import { type ComponentPropsWithoutRef, type ElementRef, forwardRef } from "react";
import cn from "./shared/cn";
import cn from "./cn";

const Separator = forwardRef<
ElementRef<typeof SeparatorPrimitive.Root>,
Expand Down
2 changes: 1 addition & 1 deletion sheet.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import * as SheetPrimitive from "@radix-ui/react-dialog";
import { type VariantProps, cva } from "class-variance-authority";
import { XIcon } from "lucide-react";
import { type ComponentPropsWithoutRef, type ElementRef, type HTMLAttributes, forwardRef } from "react";
import cn from "./shared/cn";
import cn from "./cn";

const Sheet = SheetPrimitive.Root;
const SheetTrigger = SheetPrimitive.Trigger;
Expand Down
2 changes: 1 addition & 1 deletion skeleton.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type { HTMLAttributes } from "react";
import cn from "./shared/cn";
import cn from "./cn";

export default function Skeleton({ className, ...rest }: HTMLAttributes<HTMLDivElement>) {
return <div className={cn("animate-pulse rounded-md bg-primary/10", className)} {...rest} />;
Expand Down
2 changes: 1 addition & 1 deletion slider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import * as SliderPrimitive from "@radix-ui/react-slider";
import { type ComponentPropsWithoutRef, type ElementRef, forwardRef } from "react";
import cn from "./shared/cn";
import cn from "./cn";

const Slider = forwardRef<
ElementRef<typeof SliderPrimitive.Root>,
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion table.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { type HTMLAttributes, type TdHTMLAttributes, type ThHTMLAttributes, forwardRef } from "react";
import cn from "./shared/cn";
import cn from "./cn";

const Table = forwardRef<HTMLTableElement, HTMLAttributes<HTMLTableElement>>(({ className, ...rest }, ref) => (
<div className="relative w-full overflow-auto">
Expand Down
2 changes: 1 addition & 1 deletion tabs.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import * as TabsPrimitive from "@radix-ui/react-tabs";
import { type ComponentPropsWithoutRef, type ElementRef, forwardRef } from "react";
import cn from "./shared/cn";
import cn from "./cn";

const Tabs = TabsPrimitive.Root;

Expand Down
2 changes: 1 addition & 1 deletion tailwind.config.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export * from "./shared/config/tailwind.config";
export * from "./config/tailwind.config";
2 changes: 1 addition & 1 deletion textarea.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { type TextareaHTMLAttributes, forwardRef } from "react";
import cn from "./shared/cn";
import cn from "./cn";

export interface TextareaProps extends TextareaHTMLAttributes<HTMLTextAreaElement> {
// any other prop goes here
Expand Down
2 changes: 1 addition & 1 deletion tooltip.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import * as TooltipPrimitive from "@radix-ui/react-tooltip";
import { type ComponentPropsWithoutRef, type ElementRef, forwardRef } from "react";
import cn from "./shared/cn";
import cn from "./cn";

const TooltipContent = forwardRef<
ElementRef<typeof TooltipPrimitive.Content>,
Expand Down

0 comments on commit 5739e8c

Please sign in to comment.