Skip to content

Commit

Permalink
fix: tailwind.config.ts paths (#269)
Browse files Browse the repository at this point in the history
  • Loading branch information
Yonom authored Jun 21, 2024
1 parent 2ecfa5e commit 1ea9d44
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 12 deletions.
4 changes: 2 additions & 2 deletions apps/www/tailwind.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ const config = {
"./app/**/*.{ts,tsx,mdx}",
"./pages/**/*.{ts,tsx,mdx}",
"./components/**/*.{ts,tsx,mdx}",
"../../packages/cli/components/**/*.{ts,tsx,mdx}",
"../../packages/cli/registry/**/*.{ts,tsx,mdx}",
"../../packages/shadcn-registry/components/**/*.{ts,tsx,mdx}",
"../../packages/shadcn-registry/registry/**/*.{ts,tsx,mdx}",
"./theme.config.tsx",
],
prefix: "",
Expand Down
2 changes: 1 addition & 1 deletion packages/shadcn-registry/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
"private": true,
"license": "MIT",
"type": "module",
"dependencies": {},
"devDependencies": {
"@assistant-ui/react": "workspace:*",
"@assistant-ui/react-markdown": "workspace:*",
Expand All @@ -19,6 +18,7 @@
"@types/react-syntax-highlighter": "^15.5.13",
"class-variance-authority": "^0.7.0",
"clsx": "^2.1.1",
"eslint": "^8",
"lucide-react": "^0.395.0",
"react": "^18.3.1",
"react-resizable-panels": "^2.0.19",
Expand Down
17 changes: 10 additions & 7 deletions packages/shadcn-registry/registry/assistant-ui/assistant-modal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import {
} from "@/components/ui/tooltip";
import { cn } from "@/lib/utils";
import { TooltipProvider } from "@radix-ui/react-tooltip";
import { type FC, useState } from "react";
import { useState, forwardRef } from "react";

export const AssistantModal = () => {
const [open, setOpen] = useState(false);
Expand All @@ -39,10 +39,10 @@ export const AssistantModal = () => {

type FloatingAssistantButtonProps = { "data-state"?: "open" | "closed" };

const FloatingAssistantButton: FC<FloatingAssistantButtonProps> = ({
"data-state": state,
...rest
}) => {
const FloatingAssistantButton = forwardRef<
HTMLButtonElement,
FloatingAssistantButtonProps
>(({ "data-state": state, ...rest }, ref) => {
const tooltip = state === "open" ? "Close Assistant" : "Open Assistant";
return (
<TooltipProvider>
Expand All @@ -51,8 +51,9 @@ const FloatingAssistantButton: FC<FloatingAssistantButtonProps> = ({
<Button
variant="default"
size="icon"
className="hover:scale-70 absolute bottom-4 right-4 size-12 rounded-full shadow"
{...rest}
className="hover:scale-70 absolute bottom-4 right-4 size-12 rounded-full shadow"
ref={ref}
>
<BotIcon
className={cn(
Expand All @@ -76,4 +77,6 @@ const FloatingAssistantButton: FC<FloatingAssistantButtonProps> = ({
</Tooltip>
</TooltipProvider>
);
};
});

FloatingAssistantButton.displayName = "FloatingAssistantButton";
13 changes: 11 additions & 2 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 1ea9d44

Please sign in to comment.