diff --git a/apps/web/components/booking/BookingListItem.tsx b/apps/web/components/booking/BookingListItem.tsx index 7af2db8944..3dc01a2dcb 100644 --- a/apps/web/components/booking/BookingListItem.tsx +++ b/apps/web/components/booking/BookingListItem.tsx @@ -29,7 +29,7 @@ import { TableActions, TextAreaField, } from "@calcom/ui"; -import { Check, Clock, MapPin, RefreshCcw, Send, Slash, X, CreditCard } from "@calcom/ui/components/icon"; +import { Check, Clock, MapPin, RefreshCcw, Send, Ban, X, CreditCard } from "@calcom/ui/components/icon"; import useMeQuery from "@lib/hooks/useMeQuery"; @@ -119,7 +119,7 @@ function BookingListItem(booking: BookingItemProps) { onClick: () => { setRejectionDialogIsOpen(true); }, - icon: Slash, + icon: Ban, disabled: mutation.isLoading, }, // For bookings with payment, only confirm if the booking is paid for diff --git a/apps/web/components/getting-started/steps-views/ConnectCalendars.tsx b/apps/web/components/getting-started/steps-views/ConnectCalendars.tsx index d2e91f7c09..2109f01a4c 100644 --- a/apps/web/components/getting-started/steps-views/ConnectCalendars.tsx +++ b/apps/web/components/getting-started/steps-views/ConnectCalendars.tsx @@ -1,9 +1,8 @@ -import { ArrowRightIcon } from "@heroicons/react/solid"; - import classNames from "@calcom/lib/classNames"; import { useLocale } from "@calcom/lib/hooks/useLocale"; import { trpc } from "@calcom/trpc/react"; import { List } from "@calcom/ui"; +import { ArrowRight } from "@calcom/ui/components/icon"; import { AppConnectionItem } from "../components/AppConnectionItem"; import { ConnectedCalendarItem } from "../components/ConnectedCalendarItem"; @@ -85,7 +84,7 @@ const ConnectedCalendars = (props: IConnectCalendarsProps) => { onClick={() => nextStep()} disabled={disabledNextButton}> {firstCalendar ? `${t("continue")}` : `${t("next_step_text")}`} - + > ); diff --git a/apps/web/components/getting-started/steps-views/ConnectedVideoStep.tsx b/apps/web/components/getting-started/steps-views/ConnectedVideoStep.tsx index 9de22c66fd..e00a7e36a2 100644 --- a/apps/web/components/getting-started/steps-views/ConnectedVideoStep.tsx +++ b/apps/web/components/getting-started/steps-views/ConnectedVideoStep.tsx @@ -1,9 +1,8 @@ -import { ArrowRightIcon } from "@heroicons/react/solid"; - import classNames from "@calcom/lib/classNames"; import { useLocale } from "@calcom/lib/hooks/useLocale"; import { trpc } from "@calcom/trpc/react"; import { List } from "@calcom/ui"; +import { ArrowRight } from "@calcom/ui/components/icon"; import { AppConnectionItem } from "../components/AppConnectionItem"; import { StepConnectionLoader } from "../components/StepConnectionLoader"; @@ -59,7 +58,7 @@ const ConnectedVideoStep = (props: ConnectedAppStepProps) => { disabled={!hasAnyInstalledVideoApps} onClick={() => nextStep()}> {t("next_step_text")} - + > ); diff --git a/apps/web/components/getting-started/steps-views/SetupAvailability.tsx b/apps/web/components/getting-started/steps-views/SetupAvailability.tsx index 93861095d3..bd021820e5 100644 --- a/apps/web/components/getting-started/steps-views/SetupAvailability.tsx +++ b/apps/web/components/getting-started/steps-views/SetupAvailability.tsx @@ -1,4 +1,3 @@ -import { ArrowRightIcon } from "@heroicons/react/solid"; import { useRouter } from "next/router"; import { useForm } from "react-hook-form"; @@ -9,6 +8,7 @@ import type { TRPCClientErrorLike } from "@calcom/trpc/react"; import { trpc } from "@calcom/trpc/react"; import type { AppRouter } from "@calcom/trpc/server/routers/_app"; import { Button, Form } from "@calcom/ui"; +import { ArrowRight } from "@calcom/ui/components/icon"; interface ISetupAvailabilityProps { nextStep: () => void; @@ -81,7 +81,7 @@ const SetupAvailability = (props: ISetupAvailabilityProps) => { type="submit" className="mt-2 w-full justify-center p-2 text-sm sm:mt-8" disabled={availabilityForm.formState.isSubmitting}> - {t("next_step_text")} + {t("next_step_text")} diff --git a/apps/web/components/getting-started/steps-views/UserProfile.tsx b/apps/web/components/getting-started/steps-views/UserProfile.tsx index 1657da0044..3867c43adb 100644 --- a/apps/web/components/getting-started/steps-views/UserProfile.tsx +++ b/apps/web/components/getting-started/steps-views/UserProfile.tsx @@ -1,4 +1,3 @@ -import { ArrowRightIcon } from "@heroicons/react/solid"; import { useRouter } from "next/router"; import type { FormEvent } from "react"; import { useRef, useState } from "react"; @@ -11,6 +10,7 @@ import turndown from "@calcom/lib/turndownService"; import { trpc } from "@calcom/trpc/react"; import { Button, Editor, ImageUploader, Label, showToast } from "@calcom/ui"; import { Avatar } from "@calcom/ui"; +import { ArrowRight } from "@calcom/ui/components/icon"; import type { IOnboardingPageProps } from "../../../pages/getting-started/[[...step]]"; @@ -159,7 +159,7 @@ const UserProfile = (props: IUserProfileProps) => { type="submit" className="text-inverted mt-8 flex w-full flex-row justify-center rounded-md border border-black bg-black p-2 text-center text-sm"> {t("finish")} - + ); diff --git a/apps/web/components/getting-started/steps-views/UserSettings.tsx b/apps/web/components/getting-started/steps-views/UserSettings.tsx index 7832f15cd9..5a353325e5 100644 --- a/apps/web/components/getting-started/steps-views/UserSettings.tsx +++ b/apps/web/components/getting-started/steps-views/UserSettings.tsx @@ -1,4 +1,3 @@ -import { ArrowRightIcon } from "@heroicons/react/outline"; import { zodResolver } from "@hookform/resolvers/zod"; import { useEffect, useState } from "react"; import { useForm } from "react-hook-form"; @@ -10,6 +9,7 @@ import { useLocale } from "@calcom/lib/hooks/useLocale"; import { telemetryEventTypes, useTelemetry } from "@calcom/lib/telemetry"; import { trpc } from "@calcom/trpc/react"; import { Button, TimezoneSelect } from "@calcom/ui"; +import { ArrowRight } from "@calcom/ui/components/icon"; import { UsernameAvailabilityField } from "@components/ui/UsernameAvailability"; @@ -116,7 +116,7 @@ const UserSettings = (props: IUserSettingsProps) => { className="mt-8 flex w-full flex-row justify-center" disabled={mutation.isLoading}> {t("next_step_text")} - + ); diff --git a/apps/web/components/ui/UsernameAvailability/PremiumTextfield.tsx b/apps/web/components/ui/UsernameAvailability/PremiumTextfield.tsx index 52d0cbbae2..27e3b0f6f9 100644 --- a/apps/web/components/ui/UsernameAvailability/PremiumTextfield.tsx +++ b/apps/web/components/ui/UsernameAvailability/PremiumTextfield.tsx @@ -1,4 +1,3 @@ -import { StarIcon as StarIconSolid } from "@heroicons/react/solid"; import classNames from "classnames"; import { debounce, noop } from "lodash"; import { useRouter } from "next/router"; @@ -15,6 +14,7 @@ import type { RouterOutputs } from "@calcom/trpc/react"; import { trpc } from "@calcom/trpc/react"; import type { AppRouter } from "@calcom/trpc/server/routers/_app"; import { Button, Dialog, DialogClose, DialogContent, Input, Label } from "@calcom/ui"; +import { Star as StarSolid } from "@calcom/ui/components/icon"; import { Check, Edit2, ExternalLink } from "@calcom/ui/components/icon"; export enum UsernameChangeStatusEnum { @@ -231,11 +231,15 @@ const PremiumTextfield = (props: ICustomUsernameProps) => { - {isInputUsernamePremium ? : <>>} - {!isInputUsernamePremium && usernameIsAvailable ? : <>>} + {isInputUsernamePremium ? : <>>} + {!isInputUsernamePremium && usernameIsAvailable ? ( + + ) : ( + <>> + )} diff --git a/apps/web/next.config.js b/apps/web/next.config.js index f859499763..3295c7c57c 100644 --- a/apps/web/next.config.js +++ b/apps/web/next.config.js @@ -111,12 +111,6 @@ const nextConfig = { transform: "lucide-react/dist/esm/icons/{{ kebabCase member }}", preventFullImport: true, }, - "@heroicons/react/solid": { - transform: "@heroicons/react/solid/esm/{{ member }}", - }, - "@heroicons/react/outline": { - transform: "@heroicons/react/outline/esm/{{ member }}", - }, "@calcom/features/insights/components": { transform: "@calcom/features/insights/components/{{member}}", skipDefaultConversion: true, diff --git a/apps/web/package.json b/apps/web/package.json index da2db5a857..aa2b25f9ac 100644 --- a/apps/web/package.json +++ b/apps/web/package.json @@ -41,7 +41,6 @@ "@daily-co/daily-js": "^0.37.0", "@formkit/auto-animate": "^1.0.0-beta.5", "@glidejs/glide": "^3.5.2", - "@heroicons/react": "^1.0.6", "@hookform/error-message": "^2.0.0", "@hookform/resolvers": "^2.9.7", "@next-auth/prisma-adapter": "^1.0.4", diff --git a/apps/web/pages/[user].tsx b/apps/web/pages/[user].tsx index caa96f6c62..6ef8f4c8b0 100644 --- a/apps/web/pages/[user].tsx +++ b/apps/web/pages/[user].tsx @@ -1,4 +1,3 @@ -import { BadgeCheckIcon } from "@heroicons/react/solid"; import classNames from "classnames"; import type { GetServerSidePropsContext } from "next"; import Link from "next/link"; @@ -28,7 +27,7 @@ import prisma from "@calcom/prisma"; import { baseEventTypeSelect } from "@calcom/prisma/selects"; import { EventTypeMetaDataSchema } from "@calcom/prisma/zod-utils"; import { Avatar, AvatarGroup, HeadSeo } from "@calcom/ui"; -import { ArrowRight } from "@calcom/ui/components/icon"; +import { Verified, ArrowRight } from "@calcom/ui/components/icon"; import type { inferSSRProps } from "@lib/types/inferSSRProps"; import type { EmbedProps } from "@lib/withEmbedSsr"; @@ -139,7 +138,9 @@ export default function User(props: inferSSRProps & E {nameOrUsername} - {user.verified && } + {user.verified && ( + + )} {!isBioEmpty && ( <> diff --git a/apps/web/pages/auth/verify.tsx b/apps/web/pages/auth/verify.tsx index 06433aa783..fa41ad4d5e 100644 --- a/apps/web/pages/auth/verify.tsx +++ b/apps/web/pages/auth/verify.tsx @@ -1,4 +1,3 @@ -import { CheckIcon, MailOpenIcon, ExclamationIcon } from "@heroicons/react/outline"; import { signIn } from "next-auth/react"; import Head from "next/head"; import { useRouter } from "next/router"; @@ -9,6 +8,7 @@ import z from "zod"; import { APP_NAME, WEBAPP_URL } from "@calcom/lib/constants"; import { trpc } from "@calcom/trpc/react"; import { Button, showToast } from "@calcom/ui"; +import { Check, MailOpen, AlertTriangle } from "@calcom/ui/components/icon"; import Loader from "@components/Loader"; import PageWrapper from "@components/PageWrapper"; @@ -118,11 +118,11 @@ export default function Verify() { {hasPaymentFailed ? ( - + ) : sessionId ? ( - + ) : ( - + )} diff --git a/package.json b/package.json index e3856d2561..8864cab3f3 100644 --- a/package.json +++ b/package.json @@ -97,7 +97,7 @@ "dependencies": { "city-timezones": "^1.2.1", "eslint": "^8.34.0", - "lucide-react": "^0.130.0", + "lucide-react": "^0.171.0", "turbo": "^1.8.3" }, "resolutions": { diff --git a/packages/app-store/giphy/components/SearchDialog.tsx b/packages/app-store/giphy/components/SearchDialog.tsx index 17d7e2fc3b..ed38fee5da 100644 --- a/packages/app-store/giphy/components/SearchDialog.tsx +++ b/packages/app-store/giphy/components/SearchDialog.tsx @@ -1,10 +1,10 @@ -import { LinkIcon, SearchIcon } from "@heroicons/react/outline"; import type { Dispatch, SetStateAction } from "react"; import { useState } from "react"; import classNames from "@calcom/lib/classNames"; import { useLocale } from "@calcom/lib/hooks/useLocale"; import { Alert, Button, Dialog, DialogClose, DialogContent, DialogFooter, Input } from "@calcom/ui"; +import { Link, Search } from "@calcom/ui/components/icon"; interface ISearchDialog { isOpenDialog: boolean; @@ -118,8 +118,8 @@ export const SearchDialog = (props: ISearchDialog) => { {t("find_gif_spice_confirmation")} - {renderTab(SearchIcon, t("search_giphy"), MODE_SEARCH)} - {renderTab(LinkIcon, t("add_link_from_giphy"), MODE_URL)} + {renderTab(Search, t("search_giphy"), MODE_SEARCH)} + {renderTab(Link, t("add_link_from_giphy"), MODE_URL)} {selectedGif ? ( - setShowDialog(true)}> + setShowDialog(true)}> Change ) : ( - setShowDialog(true)}> + setShowDialog(true)}> Add from Giphy )} @@ -37,7 +37,7 @@ export default function SelectGifInput(props: ISelectGifInput) { { setSelectedGif(""); props.onChange(""); diff --git a/packages/app-store/wipemycalother/components/confirmDialog.tsx b/packages/app-store/wipemycalother/components/confirmDialog.tsx index 7ccd8dced1..390268e2b3 100644 --- a/packages/app-store/wipemycalother/components/confirmDialog.tsx +++ b/packages/app-store/wipemycalother/components/confirmDialog.tsx @@ -1,4 +1,3 @@ -import { ClockIcon } from "@heroicons/react/outline"; import { useMutation } from "@tanstack/react-query"; import type { Dispatch, SetStateAction } from "react"; import { useState } from "react"; @@ -8,6 +7,7 @@ import { useLocale } from "@calcom/lib/hooks/useLocale"; import logger from "@calcom/lib/logger"; import { trpc } from "@calcom/trpc/react"; import { Button, Dialog, DialogContent, DialogFooter, DialogHeader, showToast } from "@calcom/ui"; +import { Clock } from "@calcom/ui/components/icon"; interface IConfirmDialogWipe { isOpenDialog: boolean; @@ -82,7 +82,7 @@ export const ConfirmDialog = (props: IConfirmDialogWipe) => { e.preventDefault()}> - + diff --git a/packages/features/calendars/DatePicker.tsx b/packages/features/calendars/DatePicker.tsx index 53a31852c7..d480555227 100644 --- a/packages/features/calendars/DatePicker.tsx +++ b/packages/features/calendars/DatePicker.tsx @@ -1,5 +1,3 @@ -import { ChevronLeftIcon, ChevronRightIcon } from "@heroicons/react/solid"; - import type { Dayjs } from "@calcom/dayjs"; import dayjs from "@calcom/dayjs"; import { useEmbedStyles } from "@calcom/embed-core/embed-iframe"; @@ -8,6 +6,7 @@ import { daysInMonth, yyyymmdd } from "@calcom/lib/date-fns"; import { useLocale } from "@calcom/lib/hooks/useLocale"; import { weekdayNames } from "@calcom/lib/weekday"; import { Button, SkeletonText } from "@calcom/ui"; +import { ChevronLeft, ChevronRight } from "@calcom/ui/components/icon"; import { ArrowRight } from "@calcom/ui/components/icon"; export type DatePickerProps = { @@ -223,7 +222,7 @@ const DatePicker = ({ data-testid="decrementMonth" color="minimal" variant="icon" - StartIcon={ChevronLeftIcon} + StartIcon={ChevronLeft} /> diff --git a/packages/features/ee/teams/components/TeamInviteListItem.tsx b/packages/features/ee/teams/components/TeamInviteListItem.tsx index ae5da43829..84d69ed751 100644 --- a/packages/features/ee/teams/components/TeamInviteListItem.tsx +++ b/packages/features/ee/teams/components/TeamInviteListItem.tsx @@ -12,7 +12,7 @@ import { DropdownItem, DropdownMenuTrigger, } from "@calcom/ui"; -import { Slash, Check, MoreHorizontal, X } from "@calcom/ui/components/icon"; +import { Ban, Check, MoreHorizontal, X } from "@calcom/ui/components/icon"; interface Props { team: { @@ -92,7 +92,7 @@ export default function TeamInviteListItem(props: Props) { variant="icon" color="secondary" onClick={declineInvite} - StartIcon={Slash} + StartIcon={Ban} /> ((props, ref) => { {severity === "error" && ( - + )} {severity === "warning" && ( - )} {severity === "info" && ( - )} {severity === "neutral" && ( - + )} {severity === "success" && ( - + )} diff --git a/packages/ui/components/form/dropdown/Dropdown.tsx b/packages/ui/components/form/dropdown/Dropdown.tsx index 316c5439ce..945f2de115 100644 --- a/packages/ui/components/form/dropdown/Dropdown.tsx +++ b/packages/ui/components/form/dropdown/Dropdown.tsx @@ -1,4 +1,3 @@ -import { CheckCircleIcon } from "@heroicons/react/outline"; import * as DropdownMenuPrimitive from "@radix-ui/react-dropdown-menu"; import Link from "next/link"; import type { ComponentProps } from "react"; @@ -6,6 +5,7 @@ import { forwardRef } from "react"; import { classNames } from "@calcom/lib"; import type { SVGComponent } from "@calcom/types/SVGComponent"; +import { CheckCircle } from "@calcom/ui/components/icon"; import type { ButtonColor } from "../../button/Button"; @@ -76,7 +76,7 @@ export const DropdownMenuCheckboxItem = forwardRef {children} - + ); @@ -93,7 +93,7 @@ export const DropdownMenuRadioItem = forwardRef {children} - + ); diff --git a/packages/ui/components/top-banner/TopBanner.tsx b/packages/ui/components/top-banner/TopBanner.tsx index 6863a7153d..4fdd500b7c 100644 --- a/packages/ui/components/top-banner/TopBanner.tsx +++ b/packages/ui/components/top-banner/TopBanner.tsx @@ -1,9 +1,8 @@ -import { XIcon } from "@heroicons/react/solid"; import classNames from "classnames"; import { noop } from "lodash"; import type { ReactNode } from "react"; -import { AlertTriangle, Info } from "../icon"; +import { X, AlertTriangle, Info } from "@calcom/ui/components/icon"; export type TopBannerProps = { text: string; @@ -44,7 +43,7 @@ export function TopBanner(props: TopBannerProps) { type="button" onClick={noop} className="hover:bg-gray-20 text-muted flex items-center rounded-lg p-1.5 text-sm"> - + )} diff --git a/packages/ui/form/radio-area/Select.tsx b/packages/ui/form/radio-area/Select.tsx index 025235c462..6834d8c9b2 100644 --- a/packages/ui/form/radio-area/Select.tsx +++ b/packages/ui/form/radio-area/Select.tsx @@ -1,10 +1,10 @@ -import { ChevronDownIcon } from "@heroicons/react/solid"; import { Collapsible, CollapsibleContent, CollapsibleTrigger } from "@radix-ui/react-collapsible"; import React from "react"; import type { FieldValues, Path, UseFormReturn } from "react-hook-form"; import classNames from "@calcom/lib/classNames"; import { useLocale } from "@calcom/lib/hooks/useLocale"; +import { ChevronDown } from "@calcom/ui/components/icon"; import { RadioArea, RadioAreaGroup } from "./RadioAreaGroup"; @@ -46,7 +46,7 @@ export const Select = function RadioAreaSelect disabled && "bg-emphasis cursor-default focus:ring-0 " )}> {getLabel(props.value) ?? placeholder} - + diff --git a/yarn.lock b/yarn.lock index b4592b7e09..943e37229a 100644 --- a/yarn.lock +++ b/yarn.lock @@ -4917,7 +4917,6 @@ __metadata: "@daily-co/daily-js": ^0.37.0 "@formkit/auto-animate": ^1.0.0-beta.5 "@glidejs/glide": ^3.5.2 - "@heroicons/react": ^1.0.6 "@hookform/error-message": ^2.0.0 "@hookform/resolvers": ^2.9.7 "@microsoft/microsoft-graph-types-beta": 0.15.0-preview @@ -5067,7 +5066,6 @@ __metadata: "@calcom/ui": "*" "@floating-ui/react-dom": ^1.0.0 "@headlessui/react": ^1.5.0 - "@heroicons/react": ^1.0.6 "@hookform/resolvers": ^2.9.7 "@juggle/resize-observer": ^3.4.0 "@next/bundle-analyzer": ^13.1.6 @@ -6886,15 +6884,6 @@ __metadata: languageName: node linkType: hard -"@heroicons/react@npm:^1.0.6": - version: 1.0.6 - resolution: "@heroicons/react@npm:1.0.6" - peerDependencies: - react: ">= 16" - checksum: 372b1eda3ce735ef069777bc96304f70de585ebb71a6d1cedc121bb695f9bca235619112e3ee14e8779e95a03096813cbbe3b755927a54b7580d1ce084fa4096 - languageName: node - linkType: hard - "@hookform/error-message@npm:^2.0.0": version: 2.0.0 resolution: "@hookform/error-message@npm:2.0.0"
{t("find_gif_spice_confirmation")}