From 7b64cfb04226a09530a90ca7e18b7d35e7dac442 Mon Sep 17 00:00:00 2001 From: Cohan Carpentier Date: Tue, 2 Apr 2024 11:41:46 -0400 Subject: [PATCH] chore: try with npm token --- .github/workflows/release-package.yml | 1 + checkbox.tsx | 4 ++-- command.tsx | 34 +++++++++++++-------------- package.json | 2 +- popover.tsx | 4 ++-- progress.tsx | 4 ++-- sheet.tsx | 26 ++++++++++---------- slider.tsx | 4 ++-- tabs.tsx | 12 +++++----- 9 files changed, 46 insertions(+), 45 deletions(-) diff --git a/.github/workflows/release-package.yml b/.github/workflows/release-package.yml index e9d762a..7a307d3 100644 --- a/.github/workflows/release-package.yml +++ b/.github/workflows/release-package.yml @@ -11,6 +11,7 @@ jobs: with: node-version: 20 registry-url: https://registry.npmjs.org + - run: npm run typecheck - run: npm publish --access public env: NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} \ No newline at end of file diff --git a/checkbox.tsx b/checkbox.tsx index 65e4cd4..97a2736 100644 --- a/checkbox.tsx +++ b/checkbox.tsx @@ -8,14 +8,14 @@ import cn from "./cn"; const Checkbox = forwardRef< ElementRef, ComponentPropsWithoutRef ->(({ className, ...props }, ref) => ( +>(({ className, ...rest }, ref) => ( diff --git a/command.tsx b/command.tsx index 96cbd5c..12d39b6 100644 --- a/command.tsx +++ b/command.tsx @@ -8,14 +8,14 @@ import cn from "./cn"; import { Dialog, DialogContent } from "./dialog"; const Command = forwardRef, ComponentPropsWithoutRef>( - ({ className, ...props }, ref) => ( + ({ className, ...rest }, ref) => ( ), ); @@ -23,9 +23,9 @@ Command.displayName = CommandPrimitive.displayName; interface CommandDialogProps extends DialogProps {} -const CommandDialog = ({ children, ...props }: CommandDialogProps) => { +const CommandDialog = ({ children, ...rest }: CommandDialogProps) => { return ( - + {children} @@ -38,16 +38,16 @@ const CommandDialog = ({ children, ...props }: CommandDialogProps) => { const CommandInput = forwardRef< ElementRef, ComponentPropsWithoutRef ->(({ className, ...props }, ref) => ( +>(({ className, ...rest }, ref) => (
- +
)); @@ -57,11 +57,11 @@ CommandInput.displayName = CommandPrimitive.Input.displayName; const CommandList = forwardRef< ElementRef, ComponentPropsWithoutRef ->(({ className, ...props }, ref) => ( +>(({ className, ...rest }, ref) => ( )); @@ -77,14 +77,14 @@ CommandEmpty.displayName = CommandPrimitive.Empty.displayName; const CommandGroup = forwardRef< ElementRef, ComponentPropsWithoutRef ->(({ className, ...props }, ref) => ( +>(({ className, ...rest }, ref) => ( )); @@ -93,29 +93,29 @@ CommandGroup.displayName = CommandPrimitive.Group.displayName; const CommandSeparator = forwardRef< ElementRef, ComponentPropsWithoutRef ->(({ className, ...props }, ref) => ( - +>(({ className, ...rest }, ref) => ( + )); CommandSeparator.displayName = CommandPrimitive.Separator.displayName; const CommandItem = forwardRef< ElementRef, ComponentPropsWithoutRef ->(({ className, ...props }, ref) => ( +>(({ className, ...rest }, ref) => ( )); CommandItem.displayName = CommandPrimitive.Item.displayName; -const CommandShortcut = ({ className, ...props }: HTMLAttributes) => { - return ; +const CommandShortcut = ({ className, ...rest }: HTMLAttributes) => { + return ; }; CommandShortcut.displayName = "CommandShortcut"; diff --git a/package.json b/package.json index c8263c7..fc73c03 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@risc0/ui", - "version": "0.0.18", + "version": "0.0.19", "type": "module", "scripts": { "bump:version": "bunx changelogen --bump --no-output", diff --git a/popover.tsx b/popover.tsx index cab27cc..71f563e 100644 --- a/popover.tsx +++ b/popover.tsx @@ -11,7 +11,7 @@ const PopoverAnchor = PopoverPrimitive.Anchor; const PopoverContent = forwardRef< ElementRef, ComponentPropsWithoutRef ->(({ className, align = "center", sideOffset = 4, ...props }, ref) => ( +>(({ className, align = "center", sideOffset = 4, ...rest }, ref) => ( )); diff --git a/progress.tsx b/progress.tsx index 8a27269..c5f3444 100644 --- a/progress.tsx +++ b/progress.tsx @@ -7,11 +7,11 @@ import cn from "./cn"; const Progress = forwardRef< ElementRef, ComponentPropsWithoutRef ->(({ className, value, ...props }, ref) => ( +>(({ className, value, ...rest }, ref) => ( , ComponentPropsWithoutRef ->(({ className, ...props }, ref) => ( +>(({ className, ...rest }, ref) => ( )); @@ -49,13 +49,13 @@ interface SheetContentProps VariantProps {} const SheetContent = forwardRef, SheetContentProps>( - ({ side = "right", className, children, ...props }, ref) => ( + ({ side = "right", className, children, ...rest }, ref) => ( - + {children} - + Close @@ -63,26 +63,26 @@ const SheetContent = forwardRef, Sheet ), ); -const SheetHeader = ({ className, ...props }: HTMLAttributes) => ( -
+const SheetHeader = ({ className, ...rest }: HTMLAttributes) => ( +
); -const SheetFooter = ({ className, ...props }: HTMLAttributes) => ( -
+const SheetFooter = ({ className, ...rest }: HTMLAttributes) => ( +
); const SheetTitle = forwardRef< ElementRef, ComponentPropsWithoutRef ->(({ className, ...props }, ref) => ( - +>(({ className, ...rest }, ref) => ( + )); const SheetDescription = forwardRef< ElementRef, ComponentPropsWithoutRef ->(({ className, ...props }, ref) => ( - +>(({ className, ...rest }, ref) => ( + )); SheetOverlay.displayName = SheetPrimitive.Overlay.displayName; diff --git a/slider.tsx b/slider.tsx index ae91504..949befc 100644 --- a/slider.tsx +++ b/slider.tsx @@ -7,11 +7,11 @@ import cn from "./cn"; const Slider = forwardRef< ElementRef, ComponentPropsWithoutRef ->(({ className, ...props }, ref) => ( +>(({ className, ...rest }, ref) => ( diff --git a/tabs.tsx b/tabs.tsx index 5983a2d..1a0458d 100644 --- a/tabs.tsx +++ b/tabs.tsx @@ -7,14 +7,14 @@ import cn from "./cn"; const Tabs = TabsPrimitive.Root; const TabsList = forwardRef, ComponentPropsWithoutRef>( - ({ className, ...props }, ref) => ( + ({ className, ...rest }, ref) => ( ), ); @@ -22,28 +22,28 @@ const TabsList = forwardRef, ComponentProp const TabsTrigger = forwardRef< ElementRef, ComponentPropsWithoutRef ->(({ className, ...props }, ref) => ( +>(({ className, ...rest }, ref) => ( )); const TabsContent = forwardRef< ElementRef, ComponentPropsWithoutRef ->(({ className, ...props }, ref) => ( +>(({ className, ...rest }, ref) => ( ));