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"; import React from "react";
// ui // ui
import { Tooltip } from "../tooltip"; import { Tooltip } from "../tooltip";

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -1,3 +1,5 @@
"use client";
import React, { useEffect, useRef, useState } from "react"; import React, { useEffect, useRef, useState } from "react";
import { combine } from "@atlaskit/pragmatic-drag-and-drop/combine"; import { combine } from "@atlaskit/pragmatic-drag-and-drop/combine";
import { draggable, dropTargetForElements } from "@atlaskit/pragmatic-drag-and-drop/element/adapter"; 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 React, { Fragment, useEffect, useMemo } from "react";
import { monitorForElements } from "@atlaskit/pragmatic-drag-and-drop/element/adapter"; import { monitorForElements } from "@atlaskit/pragmatic-drag-and-drop/element/adapter";
import { Draggable } from "./draggable"; import { Draggable } from "./draggable";

View File

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

View File

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

View File

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

View File

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

View File

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