chore: add use client directive to UI packages.

This commit is contained in:
Prateek Shourya 2024-06-10 12:57:34 +05:30
parent 5d807db69e
commit b78ae85eb9
34 changed files with 68 additions and 0 deletions

View File

@ -1,3 +1,5 @@
"use client";
import React from "react";
// ui
import { Tooltip } from "../tooltip";

View File

@ -1,3 +1,5 @@
"use client";
import React from "react";
// ui
import { Tooltip } from "../tooltip";

View File

@ -1,3 +1,5 @@
"use client";
import * as React from "react";
// helpers
import { getIconStyling, getBadgeStyling, TBadgeVariant, TBadgeSizes } from "./helper";

View File

@ -1,3 +1,5 @@
"use client";
import * as React from "react";
import { ChevronRight } from "lucide-react";

View File

@ -1,3 +1,5 @@
"use client";
import * as React from "react";
import { getIconStyling, getButtonStyling, TButtonVariant, TButtonSizes } from "./helper";

View File

@ -1,3 +1,5 @@
"use client";
import * as React from "react";
import { Switch } from "@headlessui/react";
// helpers

View File

@ -1,3 +1,5 @@
"use client";
import * as React from "react";
export type TControlLink = React.AnchorHTMLAttributes<HTMLAnchorElement> & {

View File

@ -1,3 +1,5 @@
"use client";
import React, { forwardRef } from "react";
import { MoreVertical } from "lucide-react";
// helpers

View File

@ -1,3 +1,5 @@
"use client";
import React from "react";
import { cn } from "../helpers";

View File

@ -1,3 +1,5 @@
"use client";
import React from "react";
// helpers
import { cn } from "../../../helpers";

View File

@ -1,3 +1,5 @@
"use client";
import React, { useEffect, useRef, useState } from "react";
import ReactDOM from "react-dom";
// components

View File

@ -1,3 +1,5 @@
"use client";
import * as React from "react";
import ReactDOM from "react-dom";
import { Menu } from "@headlessui/react";

View File

@ -1,3 +1,5 @@
"use client";
import React, { useRef, useState } from "react";
import { usePopper } from "react-popper";
import { Combobox } from "@headlessui/react";

View File

@ -1,3 +1,5 @@
"use client";
import React, { useRef, useState } from "react";
import { usePopper } from "react-popper";
import { Listbox } from "@headlessui/react";

View File

@ -1,3 +1,5 @@
"use client";
import React, { useRef, useState } from "react";
import { usePopper } from "react-popper";
import { Popover, Tab } from "@headlessui/react";

View File

@ -1,3 +1,5 @@
"use client";
import React, { useRef, useState } from "react";
import { usePopper } from "react-popper";
import EmojiPicker from "emoji-picker-react";

View File

@ -1,3 +1,5 @@
"use client";
import React, { useEffect, useState } from "react";
// components
import { Input } from "../form-fields";

View File

@ -1,3 +1,5 @@
"use client";
import React, { useEffect, useState } from "react";
// components
import { Input } from "../form-fields";

View File

@ -1,3 +1,5 @@
"use client";
import * as React from "react";
// helpers
import { cn } from "../../helpers";

View File

@ -1,3 +1,5 @@
"use client";
import * as React from "react";
import { Popover, Transition } from "@headlessui/react";
import { ColorResult, SketchPicker } from "react-color";

View File

@ -1,3 +1,5 @@
"use client";
import * as React from "react";
// helpers
import { cn } from "../../helpers";

View File

@ -1,3 +1,5 @@
"use client";
import React, { useRef } from "react";
// helpers
import { cn } from "../../helpers";

View File

@ -1,3 +1,5 @@
"use client";
import React from "react";
// helpers
import { cn } from "../helpers";

View File

@ -1,3 +1,5 @@
"use client";
import React from "react";
interface ICircularProgressIndicator {

View File

@ -1,3 +1,5 @@
"use client";
import React from "react";
import { Tooltip } from "../tooltip";
import { cn } from "../../helpers";

View File

@ -1,3 +1,5 @@
"use client";
import React from "react";
type Props = {

View File

@ -1,3 +1,5 @@
"use client";
import React, { useState, useEffect, FC } from "react";
interface IRadialProgressBar {

View File

@ -1,3 +1,5 @@
"use client";
import React, { useEffect, useRef, useState } from "react";
import { combine } from "@atlaskit/pragmatic-drag-and-drop/combine";
import { draggable, dropTargetForElements } from "@atlaskit/pragmatic-drag-and-drop/element/adapter";

View File

@ -1,3 +1,5 @@
"use client";
import React, { Fragment, useEffect, useMemo } from "react";
import { monitorForElements } from "@atlaskit/pragmatic-drag-and-drop/element/adapter";
import { Draggable } from "./draggable";

View File

@ -1,3 +1,5 @@
"use client";
import * as React from "react";
interface ICircularBarSpinner extends React.SVGAttributes<SVGElement> {

View File

@ -1,3 +1,5 @@
"use client";
import * as React from "react";
// helpers
import { cn } from "../../helpers";

View File

@ -1,3 +1,5 @@
"use client";
import * as React from "react";
import { Toaster, toast } from "sonner";
// icons

View File

@ -1,3 +1,5 @@
"use client";
import React from "react";
import { Tooltip2 } from "@blueprintjs/popover2";
// helpers

View File

@ -1,3 +1,5 @@
"use client";
import React from "react";
import { cn } from "../../helpers";