Compare commits

...

2 Commits

Author SHA1 Message Date
Anmol Singh Bhatia
2dbfca01aa chore: use client directive 2024-06-10 13:17:17 +05:30
Prateek Shourya
b78ae85eb9 chore: add use client directive to UI packages. 2024-06-10 12:57:34 +05:30
77 changed files with 154 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, { Fragment } from "react";
// headless ui
import { Combobox } from "@headlessui/react";

View File

@@ -1,3 +1,5 @@
"use client";
import React, { FC, useEffect, useRef } from "react";
// headless ui
import { Combobox } from "@headlessui/react";

View File

@@ -1,3 +1,5 @@
"use client";
import React from "react";
export const DropdownOptionsLoader = () => (

View File

@@ -1,3 +1,5 @@
"use client";
import React from "react";
// headless ui
import { Combobox } from "@headlessui/react";

View File

@@ -1,3 +1,5 @@
"use client";
import React, { FC, useMemo, useRef, useState } from "react";
import sortBy from "lodash/sortBy";
// headless ui

View File

@@ -1,3 +1,5 @@
"use client";
import React, { FC, useMemo, useRef, useState } from "react";
import sortBy from "lodash/sortBy";
// headless ui

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 { Placement } from "@popperjs/core";
import { EmojiClickData, Theme } from "emoji-picker-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 * as React from "react";
import { ISvgIcons } from "./type";

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@@ -1,3 +1,5 @@
"use client";
import * as React from "react";
import { AlertCircle, Ban, SignalHigh, SignalLow, SignalMedium } from "lucide-react";
import { cn } from "../../helpers";

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@@ -1,3 +1,5 @@
"use client";
import * as React from "react";
import { BacklogGroupIcon } from "./backlog-group-icon";

View File

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

View File

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

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";