refactor: migrate Icon to component icons from @coss/ui/icons (#27458)
* feat: add @coss/ui/icons package and migrate static icon usages
Create a new icon system in @coss/ui/icons that wraps lucide-react icons
with controlled props (size and className only). Migrate 44 component
files from <Icon name="xxx" /> to <XxxIcon /> pattern.
This is Phase 1 of the icon migration, covering only static icon names.
Dynamic icon usages (e.g., name={variable}) are skipped for now.
Co-Authored-By: Claude Opus 4.5 <[email protected]>
* refactor: migrate more static icons to @coss/ui/icons (batch 2)
Migrated 18 files from <Icon name="xxx" /> to <XxxIcon /> pattern:
- Event meta, insights, shell, user table bulk actions
- Webhooks, blocklist, form-builder, form components
Co-Authored-By: Claude Opus 4.5 <[email protected]>
* refactor: migrate more static icons to @coss/ui/icons (batch 3)
Migrated 7 files:
- CancelBooking, AddGuestsDialog, ChargeCardDialog
- ReassignDialog, RescheduleDialog
- Categories, Slider
Co-Authored-By: Claude Opus 4.5 <[email protected]>
* refactor: migrate more static icons to @coss/ui/icons (batch 4)
Migrated 6 files:
- Organizations: AboutOrganizationForm, PaymentStatusView, profile
- Workflows: CallDetailsSheet, SkeletonLoaderList, TimeTimeUnitInput
Co-Authored-By: Claude Opus 4.5 <[email protected]>
* refactor: migrate more static icons to @coss/ui/icons (batch 5)
Migrated 4 files:
- TwoFactorModalHeader
- App setups: alby, make, btcpayserver
Co-Authored-By: Claude Opus 4.5 <[email protected]>
* refactor: migrate static icons to @coss/ui/icons (batch 6)
- confirmDialog.tsx: clock icon
- ics-feedcalendar/Setup.tsx: trash, plus icons
- hitpay/Setup.tsx: info icon
- paypal/Setup.tsx: circle-alert icons
Co-Authored-By: Claude Opus 4.5 <[email protected]>
* refactor: migrate static icons to @coss/ui/icons (batch 7)
- webhook-edit-view.tsx: external-link icon
- webhook-new-view.tsx: external-link icon
- UserDropdown.tsx: chevron-down, user, settings, moon, map, circle-help, download, blocks, log-out icons
- TopNav.tsx: settings icon
Co-Authored-By: Claude Opus 4.5 <[email protected]>
* refactor: migrate static icons to @coss/ui/icons (batch 8)
- EmailInviteForm.tsx: x icon
- InviteOptions.tsx: mail, upload, link icons
- SkeletonLoader.tsx: search, clock, user icons
- Embed.tsx: sun, arrow-left icons
- CalendarSwitch.tsx: arrow-left, rotate-cw icons
Co-Authored-By: Claude Opus 4.5 <[email protected]>
* refactor: migrate static icons to @coss/ui/icons (batch 9)
- apps-view.tsx: search icon
- categories-view.tsx: arrow-left, arrow-right icons
- DatePicker.tsx: calendar icon
- EditLocationDialog.tsx: map-pin icon
- AppPage.tsx: circle-alert, book-open, external-link, mail, file, shield, flag icons
Co-Authored-By: Claude Opus 4.5 <[email protected]>
* refactor: migrate static icons to @coss/ui/icons (batch 10)
- LicenseSelection.tsx: loader, check icons
- AppConnectionItem.tsx: circle-alert, arrow-right icons
- oauth-client-form/index.tsx: info icons (x2)
- auth/error/page.tsx: x icon
- troubleshoot/layout.tsx: loader icon
Co-Authored-By: Claude Opus 4.5 <[email protected]>
* refactor: migrate static icons to @coss/ui/icons (batch 11)
- UpgradeTipWrapper.tsx: users, refresh-ccw, user-plus icons
- PbacOptInModal.tsx: shield-check, lock, users, shield icons
- AdvancedPermissionGroup.tsx: chevron-right, info icons
Co-Authored-By: Claude Opus 4.5 <[email protected]>
* refactor: migrate static icons to @coss/ui/icons (batch 12)
- AdminAppsList.tsx: pencil icon
- AvailableTimes.tsx: calendar-x-2 icon
- BookingDetailsSheet.tsx: external-link (x2), repeat icons
- BookingCalendarContainer.tsx: chevron-left, chevron-right icons
Co-Authored-By: Claude Opus 4.5 <[email protected]>
* refactor: migrate static icons to @coss/ui/icons (batch 13)
- videos-single-view.tsx: chevron-right icon
- TroubleshooterSidebar.tsx: arrow-left icon
- RuleBuilder.tsx: filter icon
Co-Authored-By: Claude Opus 4.5 <[email protected]>
* refactor: migrate static icons to @coss/ui/icons (batch 14)
- FieldMappingBuilder.tsx: arrow-right, link icons
- IntegrationAttributeSyncCard.tsx: key icon
- onboarding-view.tsx: loader icon
Co-Authored-By: Claude Opus 4.5 <[email protected]>
* refactor: migrate static icons to @coss/ui/icons (batch 15)
- team-profile-view.tsx: copy icon
- DateRangeFilter.tsx: check icon
- ColumnVisibilityButton.tsx: check icon
Co-Authored-By: Claude Opus 4.5 <[email protected]>
* refactor: migrate static Icon to @coss/ui/icons (batch 16)
- EventWorkflowsTab.tsx: lock
- event-types-listing-view.tsx: search
- onboarding-migrate-members-browser-view.tsx: arrow-left, arrow-right, rotate-cw, lock, ellipsis-vertical, check, user-plus
- onboarding-migrate-teams-browser-view.tsx: arrow-left, arrow-right, rotate-cw, lock, ellipsis-vertical, check, arrow-right, users
- EventAvailabilityTab.tsx: globe, user
- onboarding-teams-browser-view.tsx: arrow-left, arrow-right, rotate-cw, lock, ellipsis-vertical, check, arrow-right, users
- FormBuilder.tsx: mail, phone, arrow-up, arrow-down
- AIEventController.tsx: info
- EventTeamAssignmentTab.tsx: x
Co-Authored-By: Claude Opus 4.5 <[email protected]>
* refactor: migrate static Icon to @coss/ui/icons (batch 17)
- EventAdvancedTab.tsx: pencil, info
- HostLocations.tsx: triangle-alert, loader
- EventTypeLayout.tsx: loader
- Locations.tsx: x, corner-down-right, check
- EditWeightsForAllTeamMembers.tsx: upload, search, info, chevron-down
- WorkflowPage.tsx: pencil
Co-Authored-By: Claude Opus 4.5 <[email protected]>
* refactor: migrate static Icon to @coss/ui/icons (batch 18)
- TestPhoneCallDialog.tsx: phone
- WorkflowListPage.tsx: link
- UsersTable.tsx: building, lock
- TeamList.tsx: building, paintbrush, chart-line, user-plus, users, pencil
- bookings-single-view.tsx: chevron-left, check, calendar, x, external-link
Co-Authored-By: Claude Opus 4.5 <[email protected]>
* refactor: migrate static Icon to @coss/ui/icons (batch 19)
- TeamsListing.tsx: users, refresh-ccw, user-plus, mail, video, eye-off, info
- ConnectionInfo.tsx: clipboard
- IntercomContactForm.tsx: message-circle, loader, send
Co-Authored-By: Claude Opus 4.5 <[email protected]>
* fix: migrate static Icon to @coss/ui/icons in teams components
- EventTypesList.tsx: check → CheckIcon
- MemberInvitationModal.tsx: user, users, building → UserIcon, UsersIcon, BuildingIcon
Co-Authored-By: Claude Opus 4.5 <[email protected]>
* fix: migrate static Icon to @coss/ui/icons in workflow components
- ImportNumberDialog.tsx: info → InfoIcon
- VoiceSelector.tsx: user → UserIcon
- IncomingCallsTab.tsx: info, phone-incoming → InfoIcon, PhoneIncomingIcon
- PhoneNumberTab.tsx: loader, phone → LoaderIcon, PhoneIcon
- VoiceSelectionDialog.tsx: pause, play, user → PauseIcon, PlayIcon, UserIcon
- WebCallDialog.tsx: loader, phone, phone-off, triangle-alert, trash, message-circle → new icons (kept Icon import for dynamic mic icon)
- WorkflowDetailsPage.tsx: zap, arrow-right → ZapIcon, ArrowRightIcon
- AddActionDialog.tsx: info → InfoIcon
Co-Authored-By: Claude Opus 4.5 <[email protected]>
* fix: migrate static Icon to @coss/ui/icons in WorkflowStepContainer
- info → InfoIcon (2 instances)
- phone → PhoneIcon (2 instances)
- circle-help → CircleHelpIcon
Co-Authored-By: Claude Opus 4.5 <[email protected]>
* fix: migrate static Icon to @coss/ui/icons in data-table and org components
- attributes-list-view.tsx: tags → TagsIcon
- AddFilterButton.tsx: plus, eye-off → PlusIcon, EyeOffIcon
- BaseSelectFilterOptions.tsx: check → CheckIcon
- DataTable.tsx: arrow-up, arrow-down, check, chevrons-up-down, eye-off → new icons
- booking-dry-run-success-view.tsx: check → CheckIcon
Co-Authored-By: Claude Opus 4.5 <[email protected]>
* fix: migrate static Icon to @coss/ui/icons in username and routing components
- UsernameTextfield.tsx: check → CheckIcon
- PremiumTextfield.tsx: check, external-link → CheckIcon, ExternalLinkIcon (kept Icon for star with fill prop)
- Header.tsx (routing-forms): pencil, menu, waypoints → PencilIcon, MenuIcon, WaypointsIcon
Co-Authored-By: Claude Opus 4.5 <[email protected]>
* refactor: migrate Icon to component icons in routing-forms pages
Batch 25: Migrate static Icon usages to @coss/ui/icons components.
Files changed:
- Forms.tsx: file-text, shuffle, chart-bar, circle-check, mail, download → FileTextIcon, ShuffleIcon, ChartBarIcon, CircleCheckIcon, MailIcon, DownloadIcon
- FormEdit.tsx: chevron-down, menu → ChevronDownIcon, MenuIcon
- IncompleteBooking.tsx: globe → GlobeIcon
Co-Authored-By: Claude Opus 4.5 <[email protected]>
* refactor: migrate Icon to component icons in UI package
Batch 26: Migrate static Icon usages to @coss/ui/icons components.
Files changed:
- ProgressToast.tsx: file-down, x → FileDownIcon, XIcon
- showToast.tsx: check, info, x → CheckIcon, InfoIcon, XIcon
- InfoBadge.tsx: info → InfoIcon
- MeetingTimeInTimezones.tsx: globe → GlobeIcon
- InputError.tsx: info → InfoIcon
- ConfirmationDialogContent.tsx: circle-alert, check → CircleAlertIcon, CheckIcon
- CalendarSwitch.tsx: arrow-left, rotate-cw → ArrowLeftIcon, RotateCwIcon
- ArrowButton.tsx: arrow-up, arrow-down → ArrowUpIcon, ArrowDownIcon
- FileUploader.tsx: upload → UploadIcon (kept Icon for dynamic)
- Checkbox.tsx: check → CheckIcon
- EditableHeading.tsx: pencil → PencilIcon
Co-Authored-By: Claude Opus 4.5 <[email protected]>
* refactor: migrate Icon to component icons in UI and app-store packages
Batch 27: Migrate static Icon usages to @coss/ui/icons components.
Files changed:
- MultiEmail.tsx: x → XIcon (converted width to size)
- AppListCard.tsx: circle-alert → CircleAlertIcon
- SplitButton.tsx: chevron-down → ChevronDownIcon (kept Icon for dynamic)
- Calendar.tsx: chevron-left, chevron-right → ChevronLeftIcon, ChevronRightIcon
- AppDependencyComponent.tsx: check, circle-x, arrow-right → CheckIcon, CircleXIcon, ArrowRightIcon
Co-Authored-By: Claude Opus 4.5 <[email protected]>
* refactor: migrate Icon to component icons in form input components
Batch 28: Migrate static Icon usages to @coss/ui/icons components.
Files changed:
- TextField.tsx: info → InfoIcon (kept Icon for x with onClick)
- Input.tsx: eye, eye-off, search → EyeIcon, EyeOffIcon, SearchIcon
Co-Authored-By: Claude Opus 4.5 <[email protected]>
* fix: use @coss/ui/src/icons in packages with legacy moduleResolution
Packages like packages/ui and packages/app-store use a legacy moduleResolution
setting that doesn't support subpath exports. This changes the import path from
@coss/ui/icons to @coss/ui/src/icons for these packages.
Co-Authored-By: Claude Opus 4.5 <[email protected]>
* refactor: migrate Icon to component icons in UI form and editor components
Migrates static Icon usages:
- MultiOptionInput: x (2x), arrow-up, arrow-down
- components (select): check
- AddVariablesDropdown: chevron-down (3x)
- ToolbarPlugin: chevron-down
Co-Authored-By: Claude Opus 4.5 <[email protected]>
* refactor: migrate Icon to component icons in settings and platform atoms
Migrates static Icon usages:
- SettingsLayoutAppDirClient: chevron-down (2x), chevron-right (2x), arrow-left
- platform/atoms dialog: x
- platform/atoms toast: x
Co-Authored-By: Claude Opus 4.5 <[email protected]>
* fix: resolve @coss/ui/icons module resolution for legacy moduleResolution
Add typesVersions to @coss/ui package.json to help TypeScript resolve
subpath exports even with legacy moduleResolution: "node" setting.
Change imports from @coss/ui/src/icons to @coss/ui/icons to avoid
double-src path issue when Next.js applies import maps.
Co-Authored-By: Claude Opus 4.5 <[email protected]>
* fix: localize 'Select field type' fallback label in FormEdit
Address Cubic AI review feedback (confidence 9/10) by using t() for
the hardcoded 'Select field type' string to ensure proper i18n support.
Co-Authored-By: unknown <>
* fix: add typesVersions wildcards for @coss/ui subpath imports
Add lib/*, components/*, and hooks/* to typesVersions to support
legacy moduleResolution with all package subpath patterns.
Co-Authored-By: Claude Opus 4.5 <[email protected]>
* fix: resolve missing Icon references in settings and workflows
- Add Icon import for dynamic icon usages in SettingsLayoutAppDirClient
- Replace static Icon usages with component icons (InfoIcon, PhoneIcon)
Co-Authored-By: Claude Opus 4.5 <[email protected]>
* fix: resolve icon component type errors
- Add onClick prop support to IconProps
- Fix size prop type (use number instead of string)
- Rename local MailOpenIcon to MailOpenIconWrapper to avoid shadowing
Co-Authored-By: Claude Opus 4.5 <[email protected]>
* fix: add data-testid to icon components for test compatibility
- Add testId parameter to createIcon function
- Auto-generate data-testid for all icons (e.g., "check-icon", "search-icon")
- Remove outdated mock for @calcom/ui/components/icon in tests
Co-Authored-By: Claude Opus 4.5 <[email protected]>
* Update package.json
* Update package.json
* fix: migrate Icon to CalendarDaysIcon in videos-single-view.tsx
Co-Authored-By: unknown <>
---------
Co-authored-by: Claude Opus 4.5 <[email protected]>
Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
This commit is contained in:
192 files changed
+1337
-1033
No files matched your search
@@ -12,7 +12,7 @@ import type { AppCategories } from "@calcom/prisma/enums";
|
||||
import type { AppFrontendPayload } from "@calcom/types/App";
|
||||
import classNames from "@calcom/ui/classNames";
|
||||
import { TextField } from "@calcom/ui/components/form";
|
||||
import { Icon } from "@calcom/ui/components/icon";
|
||||
import { SearchIcon } from "@coss/ui/icons";
|
||||
import type { HorizontalTabItemProps } from "@calcom/ui/components/navigation";
|
||||
import { HorizontalTabs } from "@calcom/ui/components/navigation";
|
||||
|
||||
@@ -39,7 +39,7 @@ function AppsSearch({
|
||||
const { t } = useLocale();
|
||||
return (
|
||||
<TextField
|
||||
addOnLeading={<Icon name="search" className="text-subtle h-4 w-4" />}
|
||||
addOnLeading={<SearchIcon className="text-subtle h-4 w-4" />}
|
||||
addOnClassname="!border-muted"
|
||||
containerClassName={classNames("focus:ring-offset-0! m-1", className)}
|
||||
type="search"
|
||||
|
||||
@@ -4,7 +4,7 @@ import Link from "next/link";
|
||||
|
||||
import { useLocale } from "@calcom/lib/hooks/useLocale";
|
||||
import type { inferSSRProps } from "@calcom/types/inferSSRProps";
|
||||
import { Icon } from "@calcom/ui/components/icon";
|
||||
import { ArrowLeftIcon, ArrowRightIcon } from "@coss/ui/icons";
|
||||
import { SkeletonText } from "@calcom/ui/components/skeleton";
|
||||
|
||||
import type { getServerSideProps } from "@lib/apps/categories/getServerSideProps";
|
||||
@@ -22,7 +22,7 @@ export default function Apps({ categories }: PageProps) {
|
||||
<Link
|
||||
href="/apps"
|
||||
className="text-emphasis inline-flex items-center justify-start gap-1 rounded-sm py-2">
|
||||
<Icon name="arrow-left" className="h-4 w-4" />
|
||||
<ArrowLeftIcon className="h-4 w-4" />
|
||||
{isLocaleReady ? t("app_store") : <SkeletonText className="h-6 w-24" />}{" "}
|
||||
</Link>
|
||||
</div>
|
||||
@@ -38,7 +38,7 @@ export default function Apps({ categories }: PageProps) {
|
||||
<h3 className="font-medium capitalize">{category.name}</h3>
|
||||
<p className="text-subtle text-sm">
|
||||
{t("number_apps", { count: category.count })}{" "}
|
||||
<Icon name="arrow-right" className="inline-block h-4 w-4" />
|
||||
<ArrowRightIcon className="inline-block h-4 w-4" />
|
||||
</p>
|
||||
</div>
|
||||
</Link>
|
||||
|
||||
@@ -29,8 +29,8 @@ import { EmptyScreen } from "@calcom/ui/components/empty-screen";
|
||||
import { Form } from "@calcom/ui/components/form";
|
||||
import { TextField } from "@calcom/ui/components/form";
|
||||
import { Switch } from "@calcom/ui/components/form";
|
||||
import { Icon } from "@calcom/ui/components/icon";
|
||||
import { List } from "@calcom/ui/components/list";
|
||||
import { PencilIcon } from "@coss/ui/icons";
|
||||
import { SkeletonButton, SkeletonContainer, SkeletonText } from "@calcom/ui/components/skeleton";
|
||||
import { showToast } from "@calcom/ui/components/toast";
|
||||
|
||||
@@ -92,7 +92,7 @@ const IntegrationContainer = ({
|
||||
<div className="flex items-center justify-self-end">
|
||||
{app.keys && (
|
||||
<Button color="secondary" className="mr-2" onClick={() => showKeyModal()}>
|
||||
<Icon name="pencil" />
|
||||
<PencilIcon />
|
||||
</Button>
|
||||
)}
|
||||
|
||||
|
||||
@@ -11,7 +11,7 @@ import type { AppFrontendPayload as App } from "@calcom/types/App";
|
||||
import type { CredentialFrontendPayload as Credential } from "@calcom/types/Credential";
|
||||
import classNames from "@calcom/ui/classNames";
|
||||
import { EmptyScreen } from "@calcom/ui/components/empty-screen";
|
||||
import { Icon } from "@calcom/ui/components/icon";
|
||||
import { ChevronLeftIcon, ChevronRightIcon } from "@coss/ui/icons";
|
||||
|
||||
import { AppCard } from "./AppCard";
|
||||
|
||||
@@ -90,7 +90,7 @@ function CategoryTab({ selectedCategory, categories, searchText, onCategoryChang
|
||||
{leftVisible && (
|
||||
<button onClick={handleLeft} className="absolute bottom-0 flex lg:left-1/2">
|
||||
<div className="bg-default flex h-12 w-5 items-center justify-end">
|
||||
<Icon name="chevron-left" className="text-subtle h-4 w-4" />
|
||||
<ChevronLeftIcon className="text-subtle h-4 w-4" />
|
||||
</div>
|
||||
<div className="to-default flex h-12 w-5 bg-linear-to-l from-transparent" />
|
||||
</button>
|
||||
@@ -131,7 +131,7 @@ function CategoryTab({ selectedCategory, categories, searchText, onCategoryChang
|
||||
<button onClick={handleRight} className="absolute bottom-0 right-0 flex ">
|
||||
<div className="to-default flex h-12 w-5 bg-linear-to-r from-transparent" />
|
||||
<div className="bg-default flex h-12 w-5 items-center justify-end">
|
||||
<Icon name="chevron-right" className="text-subtle h-4 w-4" />
|
||||
<ChevronRightIcon className="text-subtle h-4 w-4" />
|
||||
</div>
|
||||
</button>
|
||||
)}
|
||||
|
||||
@@ -2,8 +2,8 @@ import Image from "next/image";
|
||||
import Link from "next/link";
|
||||
|
||||
import { useLocale } from "@calcom/lib/hooks/useLocale";
|
||||
import { Icon } from "@calcom/ui/components/icon";
|
||||
import { SkeletonText } from "@calcom/ui/components/skeleton";
|
||||
import { ArrowRightIcon } from "@coss/ui/icons";
|
||||
|
||||
import { Slider } from "./Slider";
|
||||
|
||||
@@ -52,7 +52,7 @@ export function AppStoreCategories({
|
||||
)}
|
||||
<p className="text-subtle pt-2 text-sm font-medium">
|
||||
{isLocaleReady ? t("number_apps", { count: category.count }) : <SkeletonText invisible />}{" "}
|
||||
<Icon name="arrow-right" className="inline-block h-4 w-4" />
|
||||
<ArrowRightIcon className="inline-block h-4 w-4" />
|
||||
</p>
|
||||
</div>
|
||||
</Link>
|
||||
|
||||
@@ -8,8 +8,8 @@ import type { ComponentProps, FC } from "react";
|
||||
import { useEffect, useRef } from "react";
|
||||
|
||||
import { useLocale } from "@calcom/lib/hooks/useLocale";
|
||||
import { Icon } from "@calcom/ui/components/icon";
|
||||
import { SkeletonText } from "@calcom/ui/components/skeleton";
|
||||
import { ArrowLeftIcon, ArrowRightIcon } from "@coss/ui/icons";
|
||||
|
||||
const SliderButton: FC<ComponentProps<"button">> = (props) => {
|
||||
const { children, ...rest } = props;
|
||||
@@ -64,10 +64,10 @@ export const Slider = <T extends string | unknown>({
|
||||
)}
|
||||
<div className="glide__arrows ml-auto flex items-center gap-x-1" data-glide-el="controls">
|
||||
<SliderButton data-glide-dir="<">
|
||||
<Icon name="arrow-left" className="h-5 w-5" />
|
||||
<ArrowLeftIcon className="h-5 w-5" />
|
||||
</SliderButton>
|
||||
<SliderButton data-glide-dir=">">
|
||||
<Icon name="arrow-right" className="h-5 w-5" />
|
||||
<ArrowRightIcon className="h-5 w-5" />
|
||||
</SliderButton>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -8,7 +8,7 @@ import { useEffect, useState } from "react";
|
||||
import { WEBSITE_URL } from "@calcom/lib/constants";
|
||||
import { useLocale } from "@calcom/lib/hooks/useLocale";
|
||||
import { Button } from "@calcom/ui/components/button";
|
||||
import { Icon } from "@calcom/ui/components/icon";
|
||||
import { CheckIcon } from "@coss/ui/icons";
|
||||
|
||||
import AuthContainer from "@components/ui/AuthContainer";
|
||||
|
||||
@@ -44,7 +44,7 @@ export function Logout(props: PageProps) {
|
||||
<AuthContainer showLogo>
|
||||
<div className="mb-4">
|
||||
<div className="bg-cal-success mx-auto flex h-12 w-12 items-center justify-center rounded-full">
|
||||
<Icon name="check" className="h-6 w-6 text-green-600" />
|
||||
<CheckIcon className="h-6 w-6 text-green-600" />
|
||||
</div>
|
||||
<div className="mt-3 text-center sm:mt-5">
|
||||
<h3 className="text-emphasis text-lg font-medium leading-6" id="modal-title">
|
||||
|
||||
@@ -13,7 +13,7 @@ import useMeQuery from "@calcom/trpc/react/hooks/useMeQuery";
|
||||
import { Avatar } from "@calcom/ui/components/avatar";
|
||||
import { Button } from "@calcom/ui/components/button";
|
||||
import { Select } from "@calcom/ui/components/form";
|
||||
import { Icon } from "@calcom/ui/components/icon";
|
||||
import { InfoIcon, PlusIcon } from "@coss/ui/icons";
|
||||
import { Tooltip } from "@calcom/ui/components/tooltip";
|
||||
|
||||
export function Authorize() {
|
||||
@@ -147,7 +147,7 @@ export function Authorize() {
|
||||
<div className="flex justify-center items-center">
|
||||
<Avatar
|
||||
alt=""
|
||||
fallback={<Icon name="plus" className="w-6 h-6 text-subtle" />}
|
||||
fallback={<PlusIcon className="w-6 h-6 text-subtle" />}
|
||||
className="items-center"
|
||||
imageSrc={client.logo}
|
||||
size="lg"
|
||||
@@ -231,7 +231,7 @@ export function Authorize() {
|
||||
</ul>
|
||||
<div className="flex p-3 mt-8 mb-8 rounded-md bg-subtle">
|
||||
<div>
|
||||
<Icon name="info" className="mr-1 mt-0.5 h-4 w-4" />
|
||||
<InfoIcon className="mr-1 mt-0.5 h-4 w-4" />
|
||||
</div>
|
||||
<div className="ml-1">
|
||||
<div className="mb-1 text-sm font-medium">
|
||||
|
||||
@@ -8,7 +8,7 @@ import { useLocale } from "@calcom/lib/hooks/useLocale";
|
||||
import { PERMISSIONS_GROUPED_MAP } from "@calcom/platform-constants/permissions";
|
||||
import { Avatar } from "@calcom/ui/components/avatar";
|
||||
import { Button } from "@calcom/ui/components/button";
|
||||
import { Icon } from "@calcom/ui/components/icon";
|
||||
import { InfoIcon, PlusIcon } from "@coss/ui/icons";
|
||||
|
||||
import { hasPermission } from "../../../../../packages/platform/utils/permissions";
|
||||
|
||||
@@ -67,7 +67,7 @@ export default function Authorize() {
|
||||
{client.logo ? (
|
||||
<Avatar
|
||||
alt=""
|
||||
fallback={<Icon name="plus" className="text-subtle h-6 w-6" />}
|
||||
fallback={<PlusIcon className="text-subtle h-6 w-6" />}
|
||||
className="items-center"
|
||||
imageSrc={client.logo}
|
||||
size="lg"
|
||||
@@ -75,7 +75,7 @@ export default function Authorize() {
|
||||
) : (
|
||||
<Avatar
|
||||
alt=""
|
||||
fallback={<Icon name="plus" className="text-subtle h-6 w-6" />}
|
||||
fallback={<PlusIcon className="text-subtle h-6 w-6" />}
|
||||
className="items-center"
|
||||
imageSrc="/cal-com-icon.svg"
|
||||
size="lg"
|
||||
@@ -98,7 +98,7 @@ export default function Authorize() {
|
||||
<ul className="stack-y-4 text-sm text-black">{permissions}</ul>
|
||||
<div className="bg-subtle mb-8 mt-8 flex rounded-md p-3">
|
||||
<div>
|
||||
<Icon name="info" className="mr-1 mt-0.5 h-4 w-4" />
|
||||
<InfoIcon className="mr-1 mt-0.5 h-4 w-4" />
|
||||
</div>
|
||||
<div className="ml-1 ">
|
||||
<div className="mb-1 text-sm font-medium">
|
||||
|
||||
@@ -1,19 +1,18 @@
|
||||
"use client";
|
||||
|
||||
import { motion } from "framer-motion";
|
||||
import { signIn } from "next-auth/react";
|
||||
import { usePathname, useRouter } from "next/navigation";
|
||||
import { useEffect, useRef, useState } from "react";
|
||||
import z from "zod";
|
||||
|
||||
import { WEBAPP_URL } from "@calcom/lib/constants";
|
||||
import { useCompatSearchParams } from "@calcom/lib/hooks/useCompatSearchParams";
|
||||
import { useLocale } from "@calcom/lib/hooks/useLocale";
|
||||
import { useRouterQuery } from "@calcom/lib/hooks/useRouterQuery";
|
||||
import classNames from "@calcom/ui/classNames";
|
||||
import { Button } from "@calcom/ui/components/button";
|
||||
import { Icon } from "@calcom/ui/components/icon";
|
||||
import { showToast } from "@calcom/ui/components/toast";
|
||||
import { MailOpenIcon, TriangleAlertIcon } from "@coss/ui/icons";
|
||||
import { motion } from "framer-motion";
|
||||
import { usePathname, useRouter } from "next/navigation";
|
||||
import { signIn } from "next-auth/react";
|
||||
import { useEffect, useRef, useState } from "react";
|
||||
import z from "zod";
|
||||
|
||||
async function sendVerificationLogin(email: string, username: string, t: (key: string) => string) {
|
||||
await signIn("email", {
|
||||
@@ -59,7 +58,7 @@ const querySchema = z.object({
|
||||
|
||||
const PaymentFailedIcon = () => (
|
||||
<div className="rounded-full bg-orange-900 p-3">
|
||||
<Icon name="triangle-alert" className="h-6 w-6 shrink-0 p-0.5 font-extralight text-orange-100" />
|
||||
<TriangleAlertIcon className="h-6 w-6 shrink-0 p-0.5 font-extralight text-orange-100" />
|
||||
</div>
|
||||
);
|
||||
|
||||
@@ -106,9 +105,9 @@ const PaymentSuccess = () => (
|
||||
</div>
|
||||
);
|
||||
|
||||
const MailOpenIcon = () => (
|
||||
const MailOpenIconWrapper = () => (
|
||||
<div className="bg-default rounded-full p-3">
|
||||
<Icon name="mail-open" className="text-emphasis h-12 w-12 shrink-0 p-0.5 font-extralight" />
|
||||
<MailOpenIcon className="text-emphasis h-12 w-12 shrink-0 p-0.5 font-extralight" />
|
||||
</div>
|
||||
);
|
||||
|
||||
@@ -170,7 +169,7 @@ export default function Verify({ EMAIL_FROM }: { EMAIL_FROM?: string }) {
|
||||
) : isPremiumUsername ? (
|
||||
<PaymentSuccess />
|
||||
) : (
|
||||
<MailOpenIcon />
|
||||
<MailOpenIconWrapper />
|
||||
)}
|
||||
<h3 className="font-cal text-emphasis my-6 text-2xl font-normal leading-none">
|
||||
{hasPaymentFailed
|
||||
|
||||
@@ -6,7 +6,7 @@ import Link from "next/link";
|
||||
import { useLocale } from "@calcom/lib/hooks/useLocale";
|
||||
import { Badge } from "@calcom/ui/components/badge";
|
||||
import { Button } from "@calcom/ui/components/button";
|
||||
import { Icon } from "@calcom/ui/components/icon";
|
||||
import { ExternalLinkIcon } from "@coss/ui/icons";
|
||||
import {
|
||||
Sheet,
|
||||
SheetContent,
|
||||
@@ -132,7 +132,7 @@ export function BlocklistEntryDetailsSheet<T extends BlocklistEntry>({
|
||||
<Link key={report.booking.uid} href={`/booking/${report.booking.uid}`}>
|
||||
<div className="text-subtle flex items-center gap-1 text-sm">
|
||||
{report.booking.title}
|
||||
<Icon name="external-link" className="h-4 w-4" />
|
||||
<ExternalLinkIcon className="h-4 w-4" />
|
||||
</div>
|
||||
</Link>
|
||||
);
|
||||
|
||||
@@ -8,7 +8,7 @@ import { WatchlistType } from "@calcom/prisma/enums";
|
||||
import { Button } from "@calcom/ui/components/button";
|
||||
import { Dialog, DialogContent, DialogFooter, DialogHeader } from "@calcom/ui/components/dialog";
|
||||
import { ToggleGroup } from "@calcom/ui/components/form";
|
||||
import { Icon } from "@calcom/ui/components/icon";
|
||||
import { ExternalLinkIcon, GlobeIcon, MailIcon } from "@coss/ui/icons";
|
||||
|
||||
import type { GroupedBookingReport, BlocklistScope } from "@calcom/features/blocklist/types";
|
||||
|
||||
@@ -130,7 +130,7 @@ export function BookingReportDetailsModal<T extends GroupedBookingReport>({
|
||||
<Link key={report.id} href={`/booking/${report.booking.uid}`}>
|
||||
<div className="text-subtle hover:text-emphasis flex items-center gap-1 text-sm">
|
||||
{report.booking.title || t("untitled")}
|
||||
<Icon name="external-link" className="h-3 w-3" />
|
||||
<ExternalLinkIcon className="h-3 w-3" />
|
||||
</div>
|
||||
</Link>
|
||||
))}
|
||||
@@ -157,12 +157,12 @@ export function BookingReportDetailsModal<T extends GroupedBookingReport>({
|
||||
{
|
||||
value: WatchlistType.EMAIL,
|
||||
label: t("block_this_email"),
|
||||
iconLeft: <Icon name="mail" className="h-4 w-4" />,
|
||||
iconLeft: <MailIcon className="h-4 w-4" />,
|
||||
},
|
||||
{
|
||||
value: WatchlistType.DOMAIN,
|
||||
label: t("block_all_from_domain"),
|
||||
iconLeft: <Icon name="globe" className="h-4 w-4" />,
|
||||
iconLeft: <GlobeIcon className="h-4 w-4" />,
|
||||
},
|
||||
]}
|
||||
/>
|
||||
|
||||
@@ -10,7 +10,7 @@ import { Alert } from "@calcom/ui/components/alert";
|
||||
import { Button } from "@calcom/ui/components/button";
|
||||
import { Dialog, DialogContent, DialogFooter, DialogHeader } from "@calcom/ui/components/dialog";
|
||||
import { Input, Label, TextArea, ToggleGroup } from "@calcom/ui/components/form";
|
||||
import { Icon } from "@calcom/ui/components/icon";
|
||||
import { GlobeIcon, MailIcon } from "@coss/ui/icons";
|
||||
|
||||
import type { BlocklistScope, CreateBlocklistEntryFormData } from "@calcom/features/blocklist/types";
|
||||
|
||||
@@ -82,8 +82,8 @@ export function CreateBlocklistEntryModal({
|
||||
};
|
||||
|
||||
const typeOptions = [
|
||||
{ label: t("email"), value: WatchlistType.EMAIL, iconLeft: <Icon name="mail" className="h-4 w-4" /> },
|
||||
{ label: t("domain"), value: WatchlistType.DOMAIN, iconLeft: <Icon name="globe" className="h-4 w-4" /> },
|
||||
{ label: t("email"), value: WatchlistType.EMAIL, iconLeft: <MailIcon className="h-4 w-4" /> },
|
||||
{ label: t("domain"), value: WatchlistType.DOMAIN, iconLeft: <GlobeIcon className="h-4 w-4" /> },
|
||||
];
|
||||
|
||||
return (
|
||||
|
||||
@@ -16,8 +16,8 @@ import { useLocale } from "@calcom/lib/hooks/useLocale";
|
||||
import { localStorage } from "@calcom/lib/webstorage";
|
||||
import classNames from "@calcom/ui/classNames";
|
||||
import { Button } from "@calcom/ui/components/button";
|
||||
import { Icon } from "@calcom/ui/components/icon";
|
||||
import { SkeletonText } from "@calcom/ui/components/skeleton";
|
||||
import { CalendarX2Icon } from "@coss/ui/icons";
|
||||
|
||||
import { useBookerTime } from "@calcom/features/bookings/Booker/hooks/useBookerTime";
|
||||
import { getQueryParam } from "@calcom/features/bookings/Booker/utils/query-param";
|
||||
@@ -284,7 +284,7 @@ export const AvailableTimes = ({
|
||||
<div
|
||||
data-testId="no-slots-available"
|
||||
className="bg-subtle border-subtle flex h-full flex-col items-center rounded-md border p-6 dark:bg-transparent">
|
||||
<Icon name="calendar-x-2" className="text-muted mb-2 h-4 w-4" />
|
||||
<CalendarX2Icon className="text-muted mb-2 h-4 w-4" />
|
||||
<p className={classNames("text-muted", showTimeFormatToggle ? "-mt-1 text-lg" : "text-sm")}>
|
||||
{t("all_booked_today")}
|
||||
</p>
|
||||
|
||||
@@ -7,7 +7,7 @@ import useMeQuery from "@calcom/trpc/react/hooks/useMeQuery";
|
||||
import { Alert } from "@calcom/ui/components/alert";
|
||||
import { Button } from "@calcom/ui/components/button";
|
||||
import { ButtonGroup } from "@calcom/ui/components/buttonGroup";
|
||||
import { Icon } from "@calcom/ui/components/icon";
|
||||
import { ChevronLeftIcon, ChevronRightIcon } from "@coss/ui/icons";
|
||||
import { getCoreRowModel, getSortedRowModel, useReactTable } from "@tanstack/react-table";
|
||||
import React, { useEffect, useMemo } from "react";
|
||||
import { useBookingCalendarData } from "~/bookings/hooks/useBookingCalendarData";
|
||||
@@ -136,11 +136,11 @@ function BookingCalendarInner({
|
||||
<ButtonGroup combined>
|
||||
<Button color="secondary" onClick={goToPreviousWeek}>
|
||||
<span className="sr-only">{t("view_previous_week")}</span>
|
||||
<Icon name="chevron-left" className="h-4 w-4" />
|
||||
<ChevronLeftIcon className="h-4 w-4" />
|
||||
</Button>
|
||||
<Button color="secondary" onClick={goToNextWeek}>
|
||||
<span className="sr-only">{t("view_next_week")}</span>
|
||||
<Icon name="chevron-right" className="h-4 w-4" />
|
||||
<ChevronRightIcon className="h-4 w-4" />
|
||||
</Button>
|
||||
</ButtonGroup>
|
||||
<ViewToggleButton bookingsV3Enabled={bookingsV3Enabled} />
|
||||
|
||||
@@ -20,7 +20,6 @@ import classNames from "@calcom/ui/classNames";
|
||||
import { Avatar } from "@calcom/ui/components/avatar";
|
||||
import { Badge } from "@calcom/ui/components/badge";
|
||||
import { Button } from "@calcom/ui/components/button";
|
||||
import { Icon } from "@calcom/ui/components/icon";
|
||||
import { SegmentedControl } from "@calcom/ui/components/segmented-control";
|
||||
import {
|
||||
Sheet,
|
||||
@@ -30,6 +29,7 @@ import {
|
||||
SheetHeader,
|
||||
SheetTitle,
|
||||
} from "@calcom/ui/components/sheet";
|
||||
import { ExternalLinkIcon, RepeatIcon } from "@coss/ui/icons";
|
||||
import { BookingHistory } from "@calcom/web/modules/booking-audit/components/BookingHistory";
|
||||
import assignmentReasonBadgeTitleMap from "@lib/booking/assignmentReasonBadgeTitleMap";
|
||||
import Link from "next/link";
|
||||
@@ -755,7 +755,7 @@ function OldRescheduledBookingInfo({
|
||||
<Link href={`/booking/${rescheduledToBooking.uid}`}>
|
||||
<div className="text-default flex items-center gap-1 text-sm underline">
|
||||
{t("view_booking")}
|
||||
<Icon name="external-link" className="h-4 w-4" />
|
||||
<ExternalLinkIcon className="h-4 w-4" />
|
||||
</div>
|
||||
</Link>
|
||||
</Section>
|
||||
@@ -798,7 +798,7 @@ function NewRescheduledBookingInfo({ booking }: { booking: BookingOutput }) {
|
||||
<Link href={`/booking/${booking.fromReschedule}`}>
|
||||
<div className="text-default flex items-center gap-1 text-sm underline">
|
||||
{t("original_booking")}
|
||||
<Icon name="external-link" className="h-4 w-4" />
|
||||
<ExternalLinkIcon className="h-4 w-4" />
|
||||
</div>
|
||||
</Link>
|
||||
</Section>
|
||||
@@ -894,7 +894,7 @@ function BookingHeaderBadges({
|
||||
) : null}
|
||||
{recurringInfo && (
|
||||
<Badge variant="gray">
|
||||
<Icon name="repeat" className="mr-1 h-3 w-3" />
|
||||
<RepeatIcon className="mr-1 h-3 w-3" />
|
||||
{recurringInfo.count}
|
||||
</Badge>
|
||||
)}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { useLocale } from "@calcom/lib/hooks/useLocale";
|
||||
import { Badge } from "@calcom/ui/components/badge";
|
||||
import { Icon } from "@calcom/ui/components/icon";
|
||||
import { CheckIcon } from "@coss/ui/icons";
|
||||
|
||||
export interface BookingSuccessCardProps {
|
||||
title: string;
|
||||
@@ -42,7 +42,7 @@ export function BookingSuccessCard({
|
||||
aria-labelledby="modal-headline">
|
||||
<div>
|
||||
<div className="bg-cal-success mx-auto flex h-12 w-12 items-center justify-center rounded-full">
|
||||
<Icon name="check" className="h-5 w-5 text-green-600 dark:text-green-400" />
|
||||
<CheckIcon className="h-5 w-5 text-green-600 dark:text-green-400" />
|
||||
</div>
|
||||
</div>
|
||||
<div className="mb-8 mt-6 text-center last:mb-0">
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { useLocale } from "@calcom/lib/hooks/useLocale";
|
||||
import { Badge } from "@calcom/ui/components/badge";
|
||||
import { Icon } from "@calcom/ui/components/icon";
|
||||
import { CheckIcon } from "@coss/ui/icons";
|
||||
|
||||
export interface DecoyBookingSuccessCardProps {
|
||||
title: string;
|
||||
@@ -42,7 +42,7 @@ export function DecoyBookingSuccessCard({
|
||||
aria-labelledby="modal-headline">
|
||||
<div>
|
||||
<div className="bg-cal-success mx-auto flex h-12 w-12 items-center justify-center rounded-full">
|
||||
<Icon name="check" className="h-5 w-5 text-green-600 dark:text-green-400" />
|
||||
<CheckIcon className="h-5 w-5 text-green-600 dark:text-green-400" />
|
||||
</div>
|
||||
</div>
|
||||
<div className="mb-8 mt-6 text-center last:mb-0">
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import { useState } from "react";
|
||||
|
||||
import { useLocale } from "@calcom/lib/hooks/useLocale";
|
||||
import { Icon } from "@calcom/ui/components/icon";
|
||||
import { InfoIcon } from "@coss/ui/icons";
|
||||
|
||||
export const DryRunMessage = ({ isEmbed }: { isEmbed?: boolean }) => {
|
||||
const { t } = useLocale();
|
||||
@@ -17,7 +17,7 @@ export const DryRunMessage = ({ isEmbed }: { isEmbed?: boolean }) => {
|
||||
} z-50 -translate-x-1/2 transform cursor-pointer items-center gap-3 rounded-xl border p-3 text-sm shadow-md`}>
|
||||
<div className="flex items-center gap-3">
|
||||
<div className="relative">
|
||||
<Icon name="info" className="h-5 w-5 text-orange-500" />
|
||||
<InfoIcon className="h-5 w-5 text-orange-500" />
|
||||
</div>
|
||||
<div className="text-emphasis font-medium" data-testid="dry-run-msg">
|
||||
{t("dry_run_mode_active")}
|
||||
|
||||
@@ -2,7 +2,7 @@ import { useState } from "react";
|
||||
|
||||
import { BOOKER_NUMBER_OF_DAYS_TO_LOAD } from "@calcom/lib/constants";
|
||||
import { useLocale } from "@calcom/lib/hooks/useLocale";
|
||||
import { Icon } from "@calcom/ui/components/icon";
|
||||
import { ArrowRightIcon, InfoIcon } from "@coss/ui/icons";
|
||||
|
||||
type Props = {
|
||||
onButtonClick: () => void;
|
||||
@@ -30,7 +30,7 @@ export function HavingTroubleFindingTime(props: Props) {
|
||||
return (
|
||||
<div className="bg-default border-subtle mt-6 flex w-1/2 min-w-0 items-center justify-between rounded-[32px] border p-3 text-sm leading-none shadow-sm lg:w-1/3">
|
||||
<div className="flex items-center gap-2 overflow-x-hidden">
|
||||
<Icon name="info" className="text-default h-4 w-4" />
|
||||
<InfoIcon className="text-default h-4 w-4" />
|
||||
<p className="w-full leading-none">{t("having_trouble_finding_time")}</p>
|
||||
</div>
|
||||
{/* TODO: we should give this more of a touch target on mobile */}
|
||||
@@ -41,7 +41,7 @@ export function HavingTroubleFindingTime(props: Props) {
|
||||
props.onButtonClick();
|
||||
setInternalClick(true);
|
||||
}}>
|
||||
{t("show_more")} <Icon name="arrow-right" className="h-4 w-4" />
|
||||
{t("show_more")} <ArrowRightIcon className="h-4 w-4" />
|
||||
</button>
|
||||
</div>
|
||||
);
|
||||
|
||||
@@ -9,7 +9,7 @@ import type { TimezoneSelectComponentProps } from "@calcom/features/timezone/com
|
||||
import { useLocale } from "@calcom/lib/hooks/useLocale";
|
||||
import { CURRENT_TIMEZONE } from "@calcom/lib/timezoneConstants";
|
||||
import { Button } from "@calcom/ui/components/button";
|
||||
import { Icon } from "@calcom/ui/components/icon";
|
||||
import { GlobeIcon } from "@coss/ui/icons";
|
||||
import dynamic from "next/dynamic";
|
||||
import type { ComponentType } from "react";
|
||||
import { useMemo } from "react";
|
||||
@@ -104,7 +104,7 @@ export const SlotSelectionModalHeader = ({
|
||||
{event && <EventDetails event={event} blocks={[EventDetailBlocks.DURATION]} />}
|
||||
|
||||
<div className="mb-0 flex items-center gap-2 text-default text-sm">
|
||||
<Icon name="globe" className="h-4 w-4 shrink-0 text-subtle" />
|
||||
<GlobeIcon className="h-4 w-4 shrink-0 text-subtle" />
|
||||
{TimezoneSelect && (
|
||||
<span className="-mt-[2px] flex h-6 min-w-32 max-w-full items-center justify-start">
|
||||
<TimezoneSelect
|
||||
|
||||
@@ -9,7 +9,7 @@ import { Button } from "@calcom/ui/components/button";
|
||||
import { DialogContent, DialogFooter, DialogHeader, DialogClose } from "@calcom/ui/components/dialog";
|
||||
import { Input } from "@calcom/ui/components/form";
|
||||
import { Label } from "@calcom/ui/components/form";
|
||||
import { Icon } from "@calcom/ui/components/icon";
|
||||
import { InfoIcon } from "@coss/ui/icons";
|
||||
|
||||
export const VerifyCodeDialog = ({
|
||||
isOpenDialog,
|
||||
@@ -113,7 +113,7 @@ export const VerifyCodeDialog = ({
|
||||
{error && (
|
||||
<div className="mt-2 flex items-center gap-x-2 text-sm text-red-700">
|
||||
<div>
|
||||
<Icon name="info" className="h-3 w-3" />
|
||||
<InfoIcon className="h-3 w-3" />
|
||||
</div>
|
||||
<p>{error}</p>
|
||||
</div>
|
||||
|
||||
@@ -5,7 +5,7 @@ import { useEffect } from "react";
|
||||
import { useLocale } from "@calcom/lib/hooks/useLocale";
|
||||
import useMediaQuery from "@calcom/lib/hooks/useMediaQuery";
|
||||
import { ToggleGroup } from "@calcom/ui/components/form";
|
||||
import { Icon } from "@calcom/ui/components/icon";
|
||||
import { CalendarIcon, MenuIcon } from "@coss/ui/icons";
|
||||
|
||||
import { useBookingsView } from "../hooks/useBookingsView";
|
||||
|
||||
@@ -42,13 +42,13 @@ export function ViewToggleButton({ bookingsV3Enabled }: ViewToggleButtonProps) {
|
||||
value: "list",
|
||||
label: "",
|
||||
tooltip: t("list_view"),
|
||||
iconLeft: <Icon name="menu" className="h-4 w-4" />,
|
||||
iconLeft: <MenuIcon className="h-4 w-4" />,
|
||||
},
|
||||
{
|
||||
value: "calendar",
|
||||
label: "",
|
||||
tooltip: t("calendar_view"),
|
||||
iconLeft: <Icon name="calendar" className="h-4 w-4" />,
|
||||
iconLeft: <CalendarIcon className="h-4 w-4" />,
|
||||
},
|
||||
]}
|
||||
/>
|
||||
|
||||
@@ -8,8 +8,8 @@ import { useIsPlatform } from "@calcom/atoms/hooks/useIsPlatform";
|
||||
import { useLocale } from "@calcom/lib/hooks/useLocale";
|
||||
import invertLogoOnDark from "@calcom/lib/invertLogoOnDark";
|
||||
import classNames from "@calcom/ui/classNames";
|
||||
import { Icon } from "@calcom/ui/components/icon";
|
||||
import { Tooltip } from "@calcom/ui/components/tooltip";
|
||||
import { LinkIcon, MapPinIcon } from "@coss/ui/icons";
|
||||
|
||||
const excludeNullValues = (value: unknown) => !!value;
|
||||
|
||||
@@ -81,7 +81,7 @@ export function AvailableEventLocations({ locations }: { locations: LocationObje
|
||||
return (
|
||||
<div key={`${location.type}-${index}`} className="flex flex-row items-center text-sm font-medium">
|
||||
{eventLocationType.iconUrl === "/link.svg" ? (
|
||||
<Icon name="link" className="text-default h-4 w-4 ltr:mr-[10px] rtl:ml-[10px]" />
|
||||
<LinkIcon className="text-default h-4 w-4 ltr:mr-[10px] rtl:ml-[10px]" />
|
||||
) : (
|
||||
<RenderIcon eventLocationType={eventLocationType} isTooltip={false} />
|
||||
)}
|
||||
@@ -98,7 +98,7 @@ export function AvailableEventLocations({ locations }: { locations: LocationObje
|
||||
return filteredLocations.length > 1 ? (
|
||||
<div className="flex flex-row items-center text-sm font-medium">
|
||||
{isPlatform ? (
|
||||
<Icon name="map-pin" className={classNames("me-[10px] h-4 w-4 opacity-70 dark:invert")} />
|
||||
<MapPinIcon className={classNames("me-[10px] h-4 w-4 opacity-70 dark:invert")} />
|
||||
) : (
|
||||
<img
|
||||
src="/map-pin-dark.svg"
|
||||
|
||||
@@ -8,7 +8,7 @@ import { useBookerStoreContext } from "@calcom/features/bookings/Booker/BookerSt
|
||||
import type { BookerEvent } from "@calcom/features/bookings/types";
|
||||
import { useLocale } from "@calcom/lib/hooks/useLocale";
|
||||
import classNames from "@calcom/ui/classNames";
|
||||
import { Icon } from "@calcom/ui/components/icon";
|
||||
import { ChevronLeftIcon, ChevronRightIcon } from "@coss/ui/icons";
|
||||
|
||||
/** Render X mins as X hours or X hours Y mins instead of in minutes once >= 60 minutes */
|
||||
export const getDurationFormatted = (mins: number | undefined, t: TFunction) => {
|
||||
@@ -106,7 +106,7 @@ export const EventDuration = ({
|
||||
{leftVisible && (
|
||||
<button onClick={handleLeft} className="absolute bottom-0 left-0 flex">
|
||||
<div className="bg-default flex h-9 w-5 items-center justify-end rounded-md">
|
||||
<Icon name="chevron-left" className="text-subtle h-4 w-4" />
|
||||
<ChevronLeftIcon className="text-subtle h-4 w-4" />
|
||||
</div>
|
||||
<div className="to-default flex h-9 w-5 bg-linear-to-l from-transparent" />
|
||||
</button>
|
||||
@@ -136,7 +136,7 @@ export const EventDuration = ({
|
||||
<button onClick={handleRight} className="absolute bottom-0 right-0 flex">
|
||||
<div className="to-default flex h-9 w-5 bg-linear-to-r from-transparent" />
|
||||
<div className="bg-default flex h-9 w-5 items-center justify-end rounded-md">
|
||||
<Icon name="chevron-right" className="text-subtle h-4 w-4" />
|
||||
<ChevronRightIcon className="text-subtle h-4 w-4" />
|
||||
</div>
|
||||
</button>
|
||||
)}
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
import { Icon } from "@calcom/ui/components/icon";
|
||||
import { SatSymbol } from "@calcom/ui/components/icon";
|
||||
import { CreditCardIcon } from "@coss/ui/icons";
|
||||
|
||||
export function PriceIcon(props: { currency: string; className?: string }) {
|
||||
const { className, currency } = props;
|
||||
if (currency !== "BTC") return <Icon name="credit-card" className={className} />;
|
||||
if (currency !== "BTC") return <CreditCardIcon className={className} />;
|
||||
return <SatSymbol className={className} />;
|
||||
}
|
||||
@@ -1,7 +1,7 @@
|
||||
"use client";
|
||||
|
||||
import { useLocale } from "@calcom/lib/hooks/useLocale";
|
||||
import { Icon } from "@calcom/ui/components/icon";
|
||||
import { CheckIcon } from "@coss/ui/icons";
|
||||
|
||||
export default function DryRunSuccessful() {
|
||||
const { t } = useLocale();
|
||||
@@ -40,7 +40,7 @@ export default function DryRunSuccessful() {
|
||||
<div className="flex h-screen">
|
||||
<div className="bg-default m-auto rounded-md p-10 text-center">
|
||||
<div className="bg-cal-success mx-auto mb-4 flex h-12 w-12 items-center justify-center rounded-full">
|
||||
<Icon name="check" className="h-6 w-6 text-green-600 dark:text-green-400" />
|
||||
<CheckIcon className="h-6 w-6 text-green-600 dark:text-green-400" />
|
||||
</div>
|
||||
<h1 className="text-emphasis mb-4 text-2xl font-medium" data-testid="dry-run-success-msg">
|
||||
{t("booking_dry_run_successful")}
|
||||
|
||||
@@ -54,6 +54,13 @@ import { Button } from "@calcom/ui/components/button";
|
||||
import { EmptyScreen } from "@calcom/ui/components/empty-screen";
|
||||
import { EmailInput, TextArea } from "@calcom/ui/components/form";
|
||||
import { Icon } from "@calcom/ui/components/icon";
|
||||
import {
|
||||
CalendarIcon,
|
||||
CheckIcon,
|
||||
ChevronLeftIcon,
|
||||
ExternalLinkIcon,
|
||||
XIcon,
|
||||
} from "@coss/ui/icons";
|
||||
import { showToast } from "@calcom/ui/components/toast";
|
||||
import { useCalcomTheme } from "@calcom/ui/styles";
|
||||
import CancelBooking from "@calcom/web/components/booking/CancelBooking";
|
||||
@@ -476,7 +483,7 @@ export default function Success(props: PageProps) {
|
||||
href={allRemainingBookings ? "/bookings/recurring" : "/bookings/upcoming"}
|
||||
data-testid="back-to-bookings"
|
||||
className="hover:bg-subtle text-subtle hover:text-default mt-2 inline-flex px-1 py-2 text-sm transition dark:hover:bg-transparent">
|
||||
<Icon name="chevron-left" className="h-5 w-5 rtl:rotate-180" /> {t("back_to_bookings")}
|
||||
<ChevronLeftIcon className="h-5 w-5 rtl:rotate-180" /> {t("back_to_bookings")}
|
||||
</Link>
|
||||
</div>
|
||||
)}
|
||||
@@ -536,12 +543,12 @@ export default function Success(props: PageProps) {
|
||||
isCancelled ? "bg-error" : ""
|
||||
)}>
|
||||
{!giphyImage && !needsConfirmation && !isAwaitingPayment && isReschedulable && (
|
||||
<Icon name="check" className="h-5 w-5 text-green-600 dark:text-green-400" />
|
||||
<CheckIcon className="h-5 w-5 text-green-600 dark:text-green-400" />
|
||||
)}
|
||||
{(needsConfirmation || isAwaitingPayment) && isReschedulable && (
|
||||
<Icon name="calendar" className="text-emphasis h-5 w-5" />
|
||||
<CalendarIcon className="text-emphasis h-5 w-5" />
|
||||
)}
|
||||
{isCancelled && <Icon name="x" className="h-5 w-5 text-red-600 dark:text-red-200" />}
|
||||
{isCancelled && <XIcon className="h-5 w-5 text-red-600 dark:text-red-200" />}
|
||||
</div>
|
||||
</div>
|
||||
<div className="mb-8 mt-6 text-center last:mb-0">
|
||||
@@ -1172,7 +1179,7 @@ const RescheduledToLink = ({ rescheduledToUid }: { rescheduledToUid: string }) =
|
||||
<Link href={`/booking/${rescheduledToUid}`}>
|
||||
<div className="flex items-center gap-1">
|
||||
{t("view_booking")}
|
||||
<Icon name="external-link" className="h-4 w-4" />
|
||||
<ExternalLinkIcon className="h-4 w-4" />
|
||||
</div>
|
||||
</Link>
|
||||
</span>
|
||||
@@ -1198,7 +1205,7 @@ const DisplayLocation = ({
|
||||
className={classNames("text-default flex items-center gap-2", className)}
|
||||
rel="noreferrer">
|
||||
{providerName || "Link"}
|
||||
<Icon name="external-link" className="text-default inline h-4 w-4" />
|
||||
<ExternalLinkIcon className="text-default inline h-4 w-4" />
|
||||
</a>
|
||||
) : (
|
||||
<p className={className}>{locationToDisplay}</p>
|
||||
|
||||
@@ -7,7 +7,7 @@ import { useLocale } from "@calcom/lib/hooks/useLocale";
|
||||
import { trpc } from "@calcom/trpc/react";
|
||||
import classNames from "@calcom/ui/classNames";
|
||||
import { Switch } from "@calcom/ui/components/form";
|
||||
import { Icon } from "@calcom/ui/components/icon";
|
||||
import { ArrowLeftIcon, RotateCwIcon } from "@coss/ui/icons";
|
||||
import { showToast } from "@calcom/ui/components/toast";
|
||||
import type { ICalendarSwitchProps } from "@calcom/ui/components/calendar-switch";
|
||||
|
||||
@@ -100,12 +100,12 @@ const CalendarSwitch = (props: ICalendarSwitchProps) => {
|
||||
</label>
|
||||
{!!props.destination && (
|
||||
<span className="bg-subtle text-default ml-8 inline-flex items-center gap-1 rounded-md px-2 py-1 text-sm font-normal sm:ml-4">
|
||||
<Icon name="arrow-left" className="h-4 w-4" />
|
||||
<ArrowLeftIcon className="h-4 w-4" />
|
||||
{t("adding_events_to")}
|
||||
</span>
|
||||
)}
|
||||
{mutation.isPending && (
|
||||
<Icon name="rotate-cw" className="text-muted h-4 w-4 animate-spin ltr:ml-1 rtl:mr-1" />
|
||||
<RotateCwIcon className="text-muted h-4 w-4 animate-spin ltr:ml-1 rtl:mr-1" />
|
||||
)}
|
||||
</div>
|
||||
);
|
||||
|
||||
@@ -10,7 +10,7 @@ import { useEffect, useState, memo, useMemo } from "react";
|
||||
import { useLocale } from "@calcom/lib/hooks/useLocale";
|
||||
import classNames from "@calcom/ui/classNames";
|
||||
import { Command, CommandList, CommandItem } from "@calcom/ui/components/command";
|
||||
import { Icon } from "@calcom/ui/components/icon";
|
||||
import { ArrowDownIcon, ArrowUpIcon, CheckIcon, ChevronsUpDownIcon, EyeOffIcon } from "@coss/ui/icons";
|
||||
import { Popover, PopoverTrigger, PopoverContent } from "@calcom/ui/components/popover";
|
||||
import {
|
||||
TableNew,
|
||||
@@ -481,11 +481,10 @@ const TableHeadLabel = <TData,>({ header }: { header: Header<TData, unknown> })
|
||||
}>
|
||||
{header.isPlaceholder ? null : flexRender(header.column.columnDef.header, header.getContext())}
|
||||
</div>
|
||||
{header.column.getIsSorted() === "asc" && <Icon name="arrow-up" className="h-4 w-4 shrink-0" />}
|
||||
{header.column.getIsSorted() === "desc" && <Icon name="arrow-down" className="h-4 w-4 shrink-0" />}
|
||||
{header.column.getIsSorted() === "asc" && <ArrowUpIcon className="h-4 w-4 shrink-0" />}
|
||||
{header.column.getIsSorted() === "desc" && <ArrowDownIcon className="h-4 w-4 shrink-0" />}
|
||||
<div className="grow" />
|
||||
<Icon
|
||||
name="chevrons-up-down"
|
||||
<ChevronsUpDownIcon
|
||||
className={classNames(
|
||||
"text-subtle h-4 w-4 shrink-0",
|
||||
!open && "opacity-0 group-hover:opacity-100"
|
||||
@@ -507,10 +506,10 @@ const TableHeadLabel = <TData,>({ header }: { header: Header<TData, unknown> })
|
||||
header.column.toggleSorting(false, true);
|
||||
}
|
||||
}}>
|
||||
<Icon name="arrow-up" className="h-4 w-4" />
|
||||
<ArrowUpIcon className="h-4 w-4" />
|
||||
{t("asc")}
|
||||
<div className="flex-1" />
|
||||
{header.column.getIsSorted() === "asc" && <Icon name="check" className="h-4 w-4" />}
|
||||
{header.column.getIsSorted() === "asc" && <CheckIcon className="h-4 w-4" />}
|
||||
</CommandItem>
|
||||
<CommandItem
|
||||
className="flex cursor-pointer items-center gap-2 px-3 py-2"
|
||||
@@ -521,10 +520,10 @@ const TableHeadLabel = <TData,>({ header }: { header: Header<TData, unknown> })
|
||||
header.column.toggleSorting(true, true);
|
||||
}
|
||||
}}>
|
||||
<Icon name="arrow-down" className="h-4 w-4" />
|
||||
<ArrowDownIcon className="h-4 w-4" />
|
||||
{t("desc")}
|
||||
<div className="flex-1" />
|
||||
{header.column.getIsSorted() === "desc" && <Icon name="check" className="h-4 w-4" />}
|
||||
{header.column.getIsSorted() === "desc" && <CheckIcon className="h-4 w-4" />}
|
||||
</CommandItem>
|
||||
</>
|
||||
)}
|
||||
@@ -535,7 +534,7 @@ const TableHeadLabel = <TData,>({ header }: { header: Header<TData, unknown> })
|
||||
header.column.toggleVisibility(false);
|
||||
setOpen(false);
|
||||
}}>
|
||||
<Icon name="eye-off" className="h-4 w-4" />
|
||||
<EyeOffIcon className="h-4 w-4" />
|
||||
{t("hide")}
|
||||
</CommandItem>
|
||||
)}
|
||||
|
||||
@@ -7,7 +7,7 @@ import { forwardRef, useState } from "react";
|
||||
import { useLocale } from "@calcom/lib/hooks/useLocale";
|
||||
import { Button } from "@calcom/ui/components/button";
|
||||
import { Command, CommandInput, CommandList, CommandEmpty, CommandItem } from "@calcom/ui/components/command";
|
||||
import { Icon } from "@calcom/ui/components/icon";
|
||||
import { EyeOffIcon, PlusIcon } from "@coss/ui/icons";
|
||||
import { Popover, PopoverTrigger, PopoverContent } from "@calcom/ui/components/popover";
|
||||
import { Tooltip } from "@calcom/ui/components/tooltip";
|
||||
|
||||
@@ -55,7 +55,7 @@ function AddFilterButtonComponent<TData>(
|
||||
<PopoverTrigger asChild>
|
||||
<Button ref={ref} color="secondary" data-testid="add-filter-button" className="h-full">
|
||||
<span className="sr-only">{t("filter")}</span>
|
||||
<Icon name="plus" />
|
||||
<PlusIcon />
|
||||
</Button>
|
||||
</PopoverTrigger>
|
||||
</Tooltip>
|
||||
@@ -81,7 +81,7 @@ function AddFilterButtonComponent<TData>(
|
||||
className="flex items-center justify-between rounded-none px-4 py-2"
|
||||
data-testid={`add-filter-item-${column.id}`}>
|
||||
<span>{startCase(column.title)}</span>
|
||||
{showHiddenIndicator && <Icon name="eye-off" className="h-4 w-4 opacity-50" />}
|
||||
{showHiddenIndicator && <EyeOffIcon className="h-4 w-4 opacity-50" />}
|
||||
</CommandItem>
|
||||
);
|
||||
})}
|
||||
|
||||
@@ -14,7 +14,7 @@ import {
|
||||
CommandSeparator,
|
||||
CommandGroup,
|
||||
} from "@calcom/ui/components/command";
|
||||
import { Icon } from "@calcom/ui/components/icon";
|
||||
import { CheckIcon } from "@coss/ui/icons";
|
||||
|
||||
import { useDataTable, useFilterValue } from "@calcom/features/data-table/hooks";
|
||||
import type {
|
||||
@@ -141,7 +141,7 @@ export function BaseSelectFilterOptions<T extends Extract<FilterType, "ms" | "ss
|
||||
isOptionSelected(filterValue, optionValue) ? "bg-primary-default" : "border opacity-50"
|
||||
)}>
|
||||
{isOptionSelected(filterValue, optionValue) && (
|
||||
<Icon name="check" className="text-primary-foreground h-4 w-4" />
|
||||
<CheckIcon className="text-primary-foreground h-4 w-4" />
|
||||
)}
|
||||
</div>
|
||||
{optionLabel}
|
||||
|
||||
@@ -16,8 +16,8 @@ import {
|
||||
CommandItem,
|
||||
CommandSeparator,
|
||||
} from "@calcom/ui/components/command";
|
||||
import { Icon } from "@calcom/ui/components/icon";
|
||||
import { Popover, PopoverTrigger, PopoverContent } from "@calcom/ui/components/popover";
|
||||
import { CheckIcon } from "@coss/ui/icons";
|
||||
|
||||
export interface ColumnVisiblityProps<TData> {
|
||||
table: Table<TData>;
|
||||
@@ -66,7 +66,7 @@ function ColumnVisibilityButtonComponent<TData>(
|
||||
"border-subtle mr-2 flex h-4 w-4 items-center justify-center rounded-sm border",
|
||||
isVisible ? "text-emphasis" : "opacity-50 [&_svg]:invisible"
|
||||
)}>
|
||||
<Icon name="check" className={classNames("h-4 w-4", !isVisible && "invisible")} />
|
||||
<CheckIcon className={classNames("h-4 w-4", !isVisible && "invisible")} />
|
||||
</div>
|
||||
{column.columnDef.header}
|
||||
</CommandItem>
|
||||
|
||||
@@ -16,8 +16,8 @@ import {
|
||||
CommandSeparator,
|
||||
} from "@calcom/ui/components/command";
|
||||
import { DateRangePicker } from "@calcom/ui/components/form";
|
||||
import { Icon } from "@calcom/ui/components/icon";
|
||||
import { Popover, PopoverContent, PopoverTrigger } from "@calcom/ui/components/popover";
|
||||
import { CheckIcon } from "@coss/ui/icons";
|
||||
|
||||
import { useDataTable, useFilterValue } from "@calcom/features/data-table/hooks";
|
||||
import {
|
||||
@@ -236,7 +236,7 @@ export const DateRangeFilter = ({
|
||||
updateDateRangeFromPreset(option.value);
|
||||
}}>
|
||||
<span className="capitalize">{t(option.labelKey, option.i18nOptions)}</span>
|
||||
{selectedPreset.value === option.value && <Icon name="check" />}
|
||||
{selectedPreset.value === option.value && <CheckIcon />}
|
||||
</CommandItem>
|
||||
))}
|
||||
</CommandList>
|
||||
|
||||
@@ -5,8 +5,8 @@ import { trpc } from "@calcom/trpc/react";
|
||||
import classNames from "@calcom/ui/classNames";
|
||||
import { Badge } from "@calcom/ui/components/badge";
|
||||
import { TextField } from "@calcom/ui/components/form";
|
||||
import { Icon } from "@calcom/ui/components/icon";
|
||||
import { showToast } from "@calcom/ui/components/toast";
|
||||
import { PlusIcon, XIcon } from "@coss/ui/icons";
|
||||
|
||||
interface GroupNameCellProps {
|
||||
groupNames: string[];
|
||||
@@ -78,7 +78,7 @@ const GroupNameCell = ({ groupNames, teamId, directoryId }: GroupNameCellProps)
|
||||
<div className="flex min-w-0 items-center gap-2">
|
||||
<p className="min-w-0 wrap-break-word">{name}</p>
|
||||
<div className="hover:bg-emphasis shrink-0 rounded p-1">
|
||||
<Icon name="x" className="h-4 w-4 stroke-[3px]" onClick={() => removeGroupName(name)} />
|
||||
<XIcon className="h-4 w-4 stroke-[3px]" onClick={() => removeGroupName(name)} />
|
||||
</div>
|
||||
</div>
|
||||
</Badge>
|
||||
@@ -111,7 +111,7 @@ const GroupNameCell = ({ groupNames, teamId, directoryId }: GroupNameCellProps)
|
||||
<p>{t("add_group_name")}</p>
|
||||
)}
|
||||
<div className={classNames("rounded p-1", showTextInput && "hover:bg-emphasis ml-2")}>
|
||||
<Icon name="plus" className="h-4 w-4 stroke-[3px]" onClick={() => addGroupName(newGroupName)} />
|
||||
<PlusIcon className="h-4 w-4 stroke-[3px]" onClick={() => addGroupName(newGroupName)} />
|
||||
</div>
|
||||
</div>
|
||||
</Badge>
|
||||
|
||||
@@ -4,7 +4,7 @@ import LicenseRequired from "~/ee/common/components/LicenseRequired";
|
||||
import { useLocale } from "@calcom/lib/hooks/useLocale";
|
||||
import { Button } from "@calcom/ui/components/button";
|
||||
import { ButtonGroup } from "@calcom/ui/components/buttonGroup";
|
||||
import { Icon } from "@calcom/ui/components/icon";
|
||||
import { FolderIcon, SparklesIcon, TerminalIcon } from "@coss/ui/icons";
|
||||
|
||||
import { UpgradeTip } from "~/shell/UpgradeTip";
|
||||
|
||||
@@ -13,17 +13,17 @@ export const AdminAPIView = () => {
|
||||
|
||||
const features = [
|
||||
{
|
||||
icon: <Icon name="terminal" className="h-5 w-5 text-pink-500" />,
|
||||
icon: <TerminalIcon className="h-5 w-5 text-pink-500" />,
|
||||
title: t("admin_api"),
|
||||
description: t("leverage_our_api"),
|
||||
},
|
||||
{
|
||||
icon: <Icon name="folder" className="h-5 w-5 text-red-500" />,
|
||||
icon: <FolderIcon className="h-5 w-5 text-red-500" />,
|
||||
title: `SCIM & ${t("directory_sync")}`,
|
||||
description: t("directory_sync_description"),
|
||||
},
|
||||
{
|
||||
icon: <Icon name="sparkles" className="h-5 w-5 text-blue-500" />,
|
||||
icon: <SparklesIcon className="h-5 w-5 text-blue-500" />,
|
||||
title: "Cal.ai",
|
||||
description: t("use_cal_ai_to_make_call_description"),
|
||||
},
|
||||
|
||||
@@ -17,7 +17,7 @@ import {
|
||||
DropdownMenuItem,
|
||||
} from "@calcom/ui/components/dropdown";
|
||||
import { Switch } from "@calcom/ui/components/form";
|
||||
import { Icon } from "@calcom/ui/components/icon";
|
||||
import { TagsIcon } from "@coss/ui/icons";
|
||||
import { showToast } from "@calcom/ui/components/toast";
|
||||
import { revalidateAttributesList } from "@calcom/web/app/(use-page-wrapper)/settings/organizations/(org-user-only)/members/actions";
|
||||
|
||||
@@ -179,7 +179,7 @@ function OrganizationAttributesPage({
|
||||
) : (
|
||||
<div className="flex w-full flex-col items-center justify-center p-14">
|
||||
<div className="bg-emphasis text-emphasis flex h-16 w-16 items-center justify-center rounded-full p-2">
|
||||
<Icon name="tags" />
|
||||
<TagsIcon />
|
||||
</div>
|
||||
<h2 className="font-cal text-emphasis mt-6 text-xl font-semibold leading-none">
|
||||
{t("add_attributes")}
|
||||
|
||||
@@ -11,7 +11,7 @@ import { Avatar } from "@calcom/ui/components/avatar";
|
||||
import { Button } from "@calcom/ui/components/button";
|
||||
import { Form } from "@calcom/ui/components/form";
|
||||
import { Label } from "@calcom/ui/components/form";
|
||||
import { Icon } from "@calcom/ui/components/icon";
|
||||
import { PlusIcon } from "@coss/ui/icons";
|
||||
|
||||
export const AboutOrganizationForm = () => {
|
||||
const { t } = useLocale();
|
||||
@@ -50,7 +50,7 @@ export const AboutOrganizationForm = () => {
|
||||
<div className="flex items-center">
|
||||
<Avatar
|
||||
alt=""
|
||||
fallback={<Icon name="plus" className="text-subtle h-6 w-6" />}
|
||||
fallback={<PlusIcon className="text-subtle h-6 w-6" />}
|
||||
className="items-center"
|
||||
imageSrc={value}
|
||||
size="lg"
|
||||
|
||||
@@ -7,7 +7,7 @@ import { useOnboarding } from "@calcom/web/modules/ee/organizations/lib/onboardi
|
||||
import { useLocale } from "@calcom/lib/hooks/useLocale";
|
||||
import { trpc } from "@calcom/trpc/react";
|
||||
import { Button } from "@calcom/ui/components/button";
|
||||
import { Icon } from "@calcom/ui/components/icon";
|
||||
import { CheckIcon, XIcon } from "@coss/ui/icons";
|
||||
|
||||
const PaymentStatusView = () => {
|
||||
const { t } = useLocale();
|
||||
@@ -36,7 +36,7 @@ const PaymentStatusView = () => {
|
||||
return (
|
||||
<div className="flex min-h-[500px] flex-col items-center justify-center stack-y-6 px-4 sm:px-6">
|
||||
<div className="flex h-12 w-12 items-center justify-center rounded-full bg-red-100">
|
||||
<Icon name="x" className="h-6 w-6 text-red-600" />
|
||||
<XIcon className="h-6 w-6 text-red-600" />
|
||||
</div>
|
||||
<div className="text-center">
|
||||
<h1 className="font-cal text-emphasis text-2xl">{t("payment_failed")}</h1>
|
||||
@@ -52,7 +52,7 @@ const PaymentStatusView = () => {
|
||||
return (
|
||||
<div className="flex min-h-[500px] flex-col items-center justify-center stack-y-6 px-4 sm:px-6">
|
||||
<div className="flex h-12 w-12 items-center justify-center rounded-full bg-green-100">
|
||||
<Icon name="check" className="h-6 w-6 text-green-600 dark:text-green-400" />
|
||||
<CheckIcon className="h-6 w-6 text-green-600 dark:text-green-400" />
|
||||
</div>
|
||||
<div className="text-center">
|
||||
<h1 className="font-cal text-emphasis text-2xl">{t("payment_successful")}</h1>
|
||||
|
||||
@@ -24,8 +24,8 @@ import { Editor } from "@calcom/ui/components/editor";
|
||||
import { Form } from "@calcom/ui/components/form";
|
||||
import { Label } from "@calcom/ui/components/form";
|
||||
import { TextField } from "@calcom/ui/components/form";
|
||||
import { Icon } from "@calcom/ui/components/icon";
|
||||
import { BannerUploader, ImageUploader } from "@calcom/ui/components/image-uploader";
|
||||
import { CopyIcon, PlusIcon } from "@coss/ui/icons";
|
||||
// if I include this in the above barrel import, I get a runtime error that the component is not exported.
|
||||
import { OrgBanner } from "@calcom/ui/components/organization-banner";
|
||||
import {
|
||||
@@ -293,7 +293,7 @@ const OrgProfileForm = ({ defaultValues }: { defaultValues: FormValues }) => {
|
||||
<Avatar
|
||||
alt="calVideoLogo"
|
||||
imageSrc={value}
|
||||
fallback={<Icon name="plus" className="text-subtle h-6 w-6" />}
|
||||
fallback={<PlusIcon className="text-subtle h-6 w-6" />}
|
||||
size="lg"
|
||||
/>
|
||||
<div>
|
||||
@@ -453,7 +453,7 @@ const OrgProfileForm = ({ defaultValues }: { defaultValues: FormValues }) => {
|
||||
type="button"
|
||||
aria-label="copy organization id"
|
||||
onClick={() => handleCopy(value.toString())}>
|
||||
<Icon name="copy" className="ml-1 h-4 w-4" />
|
||||
<CopyIcon className="ml-1 h-4 w-4" />
|
||||
</Button>
|
||||
</Tooltip>
|
||||
}
|
||||
|
||||
@@ -8,7 +8,7 @@ import { trpc } from "@calcom/trpc/react";
|
||||
import { Button } from "@calcom/ui/components/button";
|
||||
import { DialogTrigger, ConfirmationDialogContent } from "@calcom/ui/components/dialog";
|
||||
import { Label } from "@calcom/ui/components/form";
|
||||
import { Icon } from "@calcom/ui/components/icon";
|
||||
import { ClipboardIcon } from "@coss/ui/icons";
|
||||
import { showToast } from "@calcom/ui/components/toast";
|
||||
import { Tooltip } from "@calcom/ui/components/tooltip";
|
||||
|
||||
@@ -102,7 +102,7 @@ const SAMLInfo = ({ acsUrl, entityId }: { acsUrl: string | null; entityId: strin
|
||||
}}
|
||||
type="button"
|
||||
className="rounded-l-none py-[19px] text-base ">
|
||||
<Icon name="clipboard" className="text-muted h-5 w-5 ltr:mr-2 rtl:ml-2" />
|
||||
<ClipboardIcon className="text-muted h-5 w-5 ltr:mr-2 rtl:ml-2" />
|
||||
{t("copy")}
|
||||
</Button>
|
||||
</Tooltip>
|
||||
@@ -124,7 +124,7 @@ const SAMLInfo = ({ acsUrl, entityId }: { acsUrl: string | null; entityId: strin
|
||||
}}
|
||||
type="button"
|
||||
className="rounded-l-none py-[19px] text-base ">
|
||||
<Icon name="clipboard" className="text-muted h-5 w-5 ltr:mr-2 rtl:ml-2" />
|
||||
<ClipboardIcon className="text-muted h-5 w-5 ltr:mr-2 rtl:ml-2" />
|
||||
{t("copy")}
|
||||
</Button>
|
||||
</Tooltip>
|
||||
@@ -160,7 +160,7 @@ const OIDCInfo = ({ callbackUrl }: { callbackUrl: string | null }) => {
|
||||
}}
|
||||
type="button"
|
||||
className="rounded-l-none py-[19px] text-base ">
|
||||
<Icon name="clipboard" className="text-muted h-5 w-5 ltr:mr-2 rtl:ml-2" />
|
||||
<ClipboardIcon className="text-muted h-5 w-5 ltr:mr-2 rtl:ml-2" />
|
||||
{t("copy")}
|
||||
</Button>
|
||||
</Tooltip>
|
||||
|
||||
@@ -6,7 +6,7 @@ import { useLocale } from "@calcom/lib/hooks/useLocale";
|
||||
import classNames from "@calcom/ui/classNames";
|
||||
import { Button } from "@calcom/ui/components/button";
|
||||
import { Label, TextArea } from "@calcom/ui/components/form";
|
||||
import { Icon } from "@calcom/ui/components/icon";
|
||||
import { LoaderIcon, MessageCircleIcon, SendIcon } from "@coss/ui/icons";
|
||||
import { Popover, PopoverContent, PopoverTrigger } from "@calcom/ui/components/popover";
|
||||
import { showToast } from "@calcom/ui/components/toast";
|
||||
|
||||
@@ -118,7 +118,7 @@ export const IntercomContactForm = () => {
|
||||
<Button
|
||||
onClick={() => setIsOpen(true)}
|
||||
className="bg-subtle text-emphasis flex h-12 w-12 items-center justify-center rounded-full border-none">
|
||||
<Icon name="message-circle" className="h-6 w-6" />
|
||||
<MessageCircleIcon className="h-6 w-6" />
|
||||
</Button>
|
||||
</PopoverTrigger>
|
||||
|
||||
@@ -174,12 +174,12 @@ export const IntercomContactForm = () => {
|
||||
<div className="flex w-full justify-center">
|
||||
{isSubmitting ? (
|
||||
<div className="flex items-center">
|
||||
<Icon name="loader" className="mr-2 h-4 w-4 animate-spin rounded-full" />
|
||||
<LoaderIcon className="mr-2 h-4 w-4 animate-spin rounded-full" />
|
||||
{t("sending")}
|
||||
</div>
|
||||
) : (
|
||||
<>
|
||||
<Icon name="send" className="mr-2 h-4 w-4" />
|
||||
<SendIcon className="mr-2 h-4 w-4" />
|
||||
{t("send_message")}
|
||||
</>
|
||||
)}
|
||||
|
||||
@@ -16,7 +16,7 @@ import {
|
||||
CommandItem,
|
||||
CommandList,
|
||||
} from "@calcom/ui/components/command";
|
||||
import { Icon } from "@calcom/ui/components/icon";
|
||||
import { CheckIcon } from "@coss/ui/icons";
|
||||
import { Popover, PopoverContent, PopoverTrigger } from "@calcom/ui/components/popover";
|
||||
import { showToast } from "@calcom/ui/components/toast";
|
||||
|
||||
@@ -196,7 +196,7 @@ const ListItem = ({ onSelect, text, isSelected }: ListItemProps) => {
|
||||
"border-subtle ml-auto flex h-4 w-4 items-center justify-center rounded-sm border",
|
||||
isSelected ? "text-emphasis" : "opacity-50 [&_svg]:invisible"
|
||||
)}>
|
||||
<Icon name="check" className={classNames("h-4 w-4")} />
|
||||
<CheckIcon className={classNames("h-4 w-4")} />
|
||||
</div>
|
||||
</CommandItem>
|
||||
);
|
||||
|
||||
@@ -12,8 +12,8 @@ import type { RouterOutputs } from "@calcom/trpc/react";
|
||||
import classNames from "@calcom/ui/classNames";
|
||||
import { Button } from "@calcom/ui/components/button";
|
||||
import { Form, Input, SettingsToggle } from "@calcom/ui/components/form";
|
||||
import { Icon } from "@calcom/ui/components/icon";
|
||||
import { showToast } from "@calcom/ui/components/toast";
|
||||
import { CornerDownRightIcon, TrashIcon } from "@coss/ui/icons";
|
||||
|
||||
interface ProfileViewProps {
|
||||
team: RouterOutputs["viewer"]["teams"]["get"];
|
||||
@@ -141,11 +141,11 @@ const InternalNotePresetsView = ({ team }: ProfileViewProps) => {
|
||||
variant="icon"
|
||||
onClick={() => remove(index)}
|
||||
disabled={fields.length === 1}>
|
||||
<Icon name="trash" className="h-4 w-5" />
|
||||
<TrashIcon className="h-4 w-5" />
|
||||
</Button>
|
||||
</div>
|
||||
<div className="flex items-center gap-2">
|
||||
<Icon name="corner-down-right" className="h-4 w-4" />
|
||||
<CornerDownRightIcon className="h-4 w-4" />
|
||||
<Controller
|
||||
name={`presets.${index}.cancellationReason`}
|
||||
control={form.control}
|
||||
|
||||
@@ -26,7 +26,7 @@ import { Label } from "@calcom/ui/components/form";
|
||||
import { TextField } from "@calcom/ui/components/form";
|
||||
import { Select } from "@calcom/ui/components/form";
|
||||
import { ToggleGroup } from "@calcom/ui/components/form";
|
||||
import { Icon } from "@calcom/ui/components/icon";
|
||||
import { BuildingIcon, UserIcon, UsersIcon } from "@coss/ui/icons";
|
||||
import { showToast } from "@calcom/ui/components/toast";
|
||||
import { revalidateTeamsList } from "@calcom/web/app/(use-page-wrapper)/(main-nav)/teams/actions";
|
||||
|
||||
@@ -121,15 +121,15 @@ export default function MemberInvitationModal(props: MemberInvitationModalProps)
|
||||
{
|
||||
value: "INDIVIDUAL",
|
||||
label: t("invite_team_individual_segment"),
|
||||
iconLeft: <Icon name="user" />,
|
||||
iconLeft: <UserIcon />,
|
||||
},
|
||||
{ value: "BULK", label: t("invite_team_bulk_segment"), iconLeft: <Icon name="users" /> },
|
||||
{ value: "BULK", label: t("invite_team_bulk_segment"), iconLeft: <UsersIcon /> },
|
||||
];
|
||||
if (canSeeOrganization) {
|
||||
array.unshift({
|
||||
value: "ORGANIZATION",
|
||||
label: t("organization"),
|
||||
iconLeft: <Icon name="building" />,
|
||||
iconLeft: <BuildingIcon />,
|
||||
});
|
||||
}
|
||||
return array;
|
||||
|
||||
@@ -9,7 +9,14 @@ import { useLocale } from "@calcom/lib/hooks/useLocale";
|
||||
import type { RouterOutputs } from "@calcom/trpc/react";
|
||||
import { trpc } from "@calcom/trpc/react";
|
||||
import { Card } from "@calcom/ui/components/card";
|
||||
import { Icon } from "@calcom/ui/components/icon";
|
||||
import {
|
||||
BuildingIcon,
|
||||
ChartLineIcon,
|
||||
PaintbrushIcon,
|
||||
PencilIcon,
|
||||
UserPlusIcon,
|
||||
UsersIcon,
|
||||
} from "@coss/ui/icons";
|
||||
import { showToast } from "@calcom/ui/components/toast";
|
||||
import { revalidateTeamsList } from "@calcom/web/app/(use-page-wrapper)/(main-nav)/teams/actions";
|
||||
|
||||
@@ -69,7 +76,7 @@ export default function TeamList(props: Props) {
|
||||
<div className="bg-subtle p-4" key={team.id}>
|
||||
<div className="grid-col-1 grid gap-2 md:grid-cols-3">
|
||||
<Card
|
||||
icon={<Icon name="building" className="h-5 w-5 text-red-700" />}
|
||||
icon={<BuildingIcon className="h-5 w-5 text-red-700" />}
|
||||
variant="basic"
|
||||
title={props.teams.length === 1 ? t("you_have_one_team") : t("You have a lot of teams")}
|
||||
description={
|
||||
@@ -84,7 +91,7 @@ export default function TeamList(props: Props) {
|
||||
}}
|
||||
/>
|
||||
<Card
|
||||
icon={<Icon name="paintbrush" className="h-5 w-5 text-orange-700" />}
|
||||
icon={<PaintbrushIcon className="h-5 w-5 text-orange-700" />}
|
||||
variant="basic"
|
||||
title={t("Get a clean subdomain")}
|
||||
description={t(
|
||||
@@ -96,7 +103,7 @@ export default function TeamList(props: Props) {
|
||||
}}
|
||||
/>
|
||||
<Card
|
||||
icon={<Icon name="chart-line" className="h-5 w-5 text-green-700" />}
|
||||
icon={<ChartLineIcon className="h-5 w-5 text-green-700" />}
|
||||
variant="basic"
|
||||
title={t("Admin tools and analytics")}
|
||||
description={t(
|
||||
@@ -134,7 +141,7 @@ export default function TeamList(props: Props) {
|
||||
<h3 className="text-emphasis mb-4 text-sm font-semibold">{t("recommended_next_steps")}</h3>
|
||||
<div className="grid-col-1 grid gap-2 md:grid-cols-3">
|
||||
<Card
|
||||
icon={<Icon name="user-plus" className="h-5 w-5 text-green-700" />}
|
||||
icon={<UserPlusIcon className="h-5 w-5 text-green-700" />}
|
||||
variant="basic"
|
||||
title={t("invite_team_member")}
|
||||
description={t("meetings_are_better_with_the_right")}
|
||||
@@ -144,7 +151,7 @@ export default function TeamList(props: Props) {
|
||||
}}
|
||||
/>
|
||||
<Card
|
||||
icon={<Icon name="users" className="h-5 w-5 text-orange-700" />}
|
||||
icon={<UsersIcon className="h-5 w-5 text-orange-700" />}
|
||||
variant="basic"
|
||||
title={t("collective_or_roundrobin")}
|
||||
description={t("book_your_team_members")}
|
||||
@@ -154,7 +161,7 @@ export default function TeamList(props: Props) {
|
||||
}}
|
||||
/>
|
||||
<Card
|
||||
icon={<Icon name="pencil" className="h-5 w-5 text-purple-700" />}
|
||||
icon={<PencilIcon className="h-5 w-5 text-purple-700" />}
|
||||
variant="basic"
|
||||
title={t("appearance")}
|
||||
description={t("appearance_description")}
|
||||
|
||||
@@ -10,7 +10,15 @@ import { Button } from "@calcom/ui/components/button";
|
||||
import { ButtonGroup } from "@calcom/ui/components/buttonGroup";
|
||||
import { EmptyScreen } from "@calcom/ui/components/empty-screen";
|
||||
import { Label } from "@calcom/ui/components/form";
|
||||
import { Icon } from "@calcom/ui/components/icon";
|
||||
import {
|
||||
EyeOffIcon,
|
||||
InfoIcon,
|
||||
MailIcon,
|
||||
RefreshCcwIcon,
|
||||
UserPlusIcon,
|
||||
UsersIcon,
|
||||
VideoIcon,
|
||||
} from "@coss/ui/icons";
|
||||
import { showToast } from "@calcom/ui/components/toast";
|
||||
|
||||
import SkeletonLoaderTeamList from "~/ee/teams/components/SkeletonloaderTeamList";
|
||||
@@ -60,32 +68,32 @@ export function TeamsListing({
|
||||
|
||||
const features = [
|
||||
{
|
||||
icon: <Icon name="users" className="h-5 w-5 text-red-500" />,
|
||||
icon: <UsersIcon className="h-5 w-5 text-red-500" />,
|
||||
title: t("collective_scheduling"),
|
||||
description: t("make_it_easy_to_book"),
|
||||
},
|
||||
{
|
||||
icon: <Icon name="refresh-ccw" className="h-5 w-5 text-blue-500" />,
|
||||
icon: <RefreshCcwIcon className="h-5 w-5 text-blue-500" />,
|
||||
title: t("round_robin"),
|
||||
description: t("find_the_best_person"),
|
||||
},
|
||||
{
|
||||
icon: <Icon name="user-plus" className="h-5 w-5 text-green-500" />,
|
||||
icon: <UserPlusIcon className="h-5 w-5 text-green-500" />,
|
||||
title: t("fixed_round_robin"),
|
||||
description: t("add_one_fixed_attendee"),
|
||||
},
|
||||
{
|
||||
icon: <Icon name="mail" className="h-5 w-5 text-orange-500" />,
|
||||
icon: <MailIcon className="h-5 w-5 text-orange-500" />,
|
||||
title: t("sms_attendee_action"),
|
||||
description: t("send_reminder_sms"),
|
||||
},
|
||||
{
|
||||
icon: <Icon name="video" className="h-5 w-5 text-purple-500" />,
|
||||
icon: <VideoIcon className="h-5 w-5 text-purple-500" />,
|
||||
title: `Cal Video ${t("recordings_title")}`,
|
||||
description: t("upgrade_to_access_recordings_description"),
|
||||
},
|
||||
{
|
||||
icon: <Icon name="eye-off" className="h-5 w-5 text-indigo-500" />,
|
||||
icon: <EyeOffIcon className="h-5 w-5 text-indigo-500" />,
|
||||
title: t("disable_cal_branding", { appName: APP_NAME }),
|
||||
description: t("disable_cal_branding_description", { appName: APP_NAME }),
|
||||
},
|
||||
@@ -175,7 +183,7 @@ export function TeamsListing({
|
||||
)}
|
||||
|
||||
<p className="text-subtle mb-8 mt-4 flex w-full items-center gap-1 text-sm md:justify-center md:text-center">
|
||||
<Icon className="hidden sm:block" name="info" /> {t("tip_username_plus")}
|
||||
<InfoIcon className="hidden sm:block" /> {t("tip_username_plus")}
|
||||
</p>
|
||||
</>
|
||||
);
|
||||
|
||||
@@ -32,8 +32,8 @@ import { Editor } from "@calcom/ui/components/editor";
|
||||
import { Form } from "@calcom/ui/components/form";
|
||||
import { Label } from "@calcom/ui/components/form";
|
||||
import { TextField } from "@calcom/ui/components/form";
|
||||
import { Icon } from "@calcom/ui/components/icon";
|
||||
import { ImageUploader } from "@calcom/ui/components/image-uploader";
|
||||
import { CopyIcon } from "@coss/ui/icons";
|
||||
import {
|
||||
SkeletonButton,
|
||||
SkeletonContainer,
|
||||
@@ -445,7 +445,7 @@ const TeamProfileForm = ({ team, teamId }: TeamProfileFormProps) => {
|
||||
type="button"
|
||||
aria-label="copy team id"
|
||||
onClick={() => handleCopy(teamId.toString())}>
|
||||
<Icon name="copy" className="ml-1 h-4 w-4" />
|
||||
<CopyIcon className="ml-1 h-4 w-4" />
|
||||
</Button>
|
||||
</Tooltip>
|
||||
}
|
||||
|
||||
@@ -20,7 +20,7 @@ import {
|
||||
ConfirmationDialogContent,
|
||||
} from "@calcom/ui/components/dialog";
|
||||
import { TextField } from "@calcom/ui/components/form";
|
||||
import { Icon } from "@calcom/ui/components/icon";
|
||||
import { BuildingIcon, LockIcon } from "@coss/ui/icons";
|
||||
import { DropdownActions, Table } from "@calcom/ui/components/table";
|
||||
import { showToast } from "@calcom/ui/components/toast";
|
||||
|
||||
@@ -209,11 +209,11 @@ function UsersTableBare() {
|
||||
<span>/{user.username}</span>
|
||||
{user.profiles[0]?.username && (
|
||||
<span className="flex items-center gap-1">
|
||||
<Icon name="building" className="text-subtle size-5" />
|
||||
<BuildingIcon className="text-subtle size-5" />
|
||||
<span>{user.profiles[0]?.username}</span>
|
||||
</span>
|
||||
)}
|
||||
{user.locked && <Icon name="lock" />}
|
||||
{user.locked && <LockIcon />}
|
||||
<br />
|
||||
</div>
|
||||
<span className="break-all">{user.email}</span>
|
||||
|
||||
@@ -20,7 +20,7 @@ import { CheckboxField } from "@calcom/ui/components/form";
|
||||
import { Form } from "@calcom/ui/components/form";
|
||||
import { Label } from "@calcom/ui/components/form";
|
||||
import { Input } from "@calcom/ui/components/form";
|
||||
import { Icon } from "@calcom/ui/components/icon";
|
||||
import { InfoIcon } from "@coss/ui/icons";
|
||||
import { Tooltip } from "@calcom/ui/components/tooltip";
|
||||
|
||||
interface IAddActionDialog {
|
||||
@@ -230,7 +230,7 @@ export const AddActionDialog = (props: IAddActionDialog) => {
|
||||
<Label>{t("sender_id")}</Label>
|
||||
<Tooltip content={t("sender_id_info")}>
|
||||
<span>
|
||||
<Icon name="info" className="mb-2 ml-2 mr-1 mt-0.5 h-4 w-4 text-gray-500" />
|
||||
<InfoIcon className="mb-2 ml-2 mr-1 mt-0.5 h-4 w-4 text-gray-500" />
|
||||
</span>
|
||||
</Tooltip>
|
||||
</div>
|
||||
|
||||
@@ -4,7 +4,6 @@ import type { CallDetailsAction, CallDetailsState } from "@calcom/features/ee/wo
|
||||
import { useLocale } from "@calcom/lib/hooks/useLocale";
|
||||
import { Badge } from "@calcom/ui/components/badge";
|
||||
import { Button } from "@calcom/ui/components/button";
|
||||
import { Icon } from "@calcom/ui/components/icon";
|
||||
import {
|
||||
Sheet,
|
||||
SheetContent,
|
||||
@@ -13,6 +12,7 @@ import {
|
||||
SheetFooter,
|
||||
SheetClose,
|
||||
} from "@calcom/ui/components/sheet";
|
||||
import { UserIcon } from "@coss/ui/icons";
|
||||
|
||||
interface CallDetailsSheetProps {
|
||||
state: CallDetailsState;
|
||||
@@ -150,7 +150,7 @@ export function CallDetailsSheet({ state, dispatch }: CallDetailsSheetProps) {
|
||||
return (
|
||||
<div key={index} className="stack-y-1">
|
||||
<div className="flex items-center gap-2">
|
||||
<Icon name="user" className={isAgent ? "text-info" : "text-success"} />
|
||||
<UserIcon className={isAgent ? "text-info" : "text-success"} />
|
||||
<span className={`text-sm font-medium ${isAgent ? "text-info" : "text-success"}`}>
|
||||
{isAgent ? t("agent") : t("user")}
|
||||
</span>
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { Icon } from "@calcom/ui/components/icon";
|
||||
import { SkeletonText } from "@calcom/ui/components/skeleton";
|
||||
import { BellIcon, LinkIcon } from "@coss/ui/icons";
|
||||
|
||||
function SkeletonLoader() {
|
||||
return (
|
||||
@@ -21,9 +21,9 @@ function SkeletonItem() {
|
||||
<div className="flex flex-col stack-y-2">
|
||||
<SkeletonText className="h-4 w-16 sm:w-24" />
|
||||
<div className="flex">
|
||||
<Icon name="bell" className="mr-1.5 mt-0.5 inline h-4 w-4 text-gray-200" />
|
||||
<BellIcon className="mr-1.5 mt-0.5 inline h-4 w-4 text-gray-200" />
|
||||
<SkeletonText className="h-4 w-16 ltr:mr-2 rtl:ml-2 sm:w-28" />
|
||||
<Icon name="link" className="mr-1.5 mt-0.5 inline h-4 w-4 text-gray-200" />
|
||||
<LinkIcon className="mr-1.5 mt-0.5 inline h-4 w-4 text-gray-200" />
|
||||
<SkeletonText className="h-4 w-28 sm:w-36" />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -10,7 +10,7 @@ import { trpc } from "@calcom/trpc/react";
|
||||
import { Button } from "@calcom/ui/components/button";
|
||||
import { DialogContent, DialogFooter } from "@calcom/ui/components/dialog";
|
||||
import { Label } from "@calcom/ui/components/form";
|
||||
import { Icon } from "@calcom/ui/components/icon";
|
||||
import { PhoneIcon } from "@coss/ui/icons";
|
||||
import { showToast } from "@calcom/ui/components/toast";
|
||||
|
||||
interface TestPhoneCallDialogProps {
|
||||
@@ -99,7 +99,7 @@ export function TestPhoneCallDialog({
|
||||
onClick={handleTestCall}
|
||||
loading={testCallMutation.isPending}
|
||||
disabled={!testPhoneNumber}>
|
||||
<Icon name="phone" className="mr-2 h-4 w-4" />
|
||||
<PhoneIcon className="mr-2 h-4 w-4" />
|
||||
{t("make_test_call")}
|
||||
</Button>
|
||||
</DialogFooter>
|
||||
|
||||
@@ -3,8 +3,8 @@ import { useFormContext } from "react-hook-form";
|
||||
|
||||
import { useLocale } from "@calcom/lib/hooks/useLocale";
|
||||
import { TimeUnit } from "@calcom/prisma/enums";
|
||||
import { Icon } from "@calcom/ui/components/icon";
|
||||
import { TextField } from "@calcom/ui/components/form";
|
||||
import { ChevronDownIcon, ChevronUpIcon } from "@coss/ui/icons";
|
||||
import {
|
||||
Dropdown,
|
||||
DropdownItem,
|
||||
@@ -38,7 +38,7 @@ const TimeUnitAddonSuffix = ({
|
||||
<button className="flex items-center">
|
||||
<div className="mr-1 w-3/5">{timeUnit ? timeUnitOptions[timeUnit] : "undefined"}</div>
|
||||
<div className="w-1/4 pt-1">
|
||||
{isDropdownOpen ? <Icon name="chevron-up" /> : <Icon name="chevron-down" />}
|
||||
{isDropdownOpen ? <ChevronUpIcon /> : <ChevronDownIcon />}
|
||||
</div>
|
||||
</button>
|
||||
</DropdownMenuTrigger>
|
||||
|
||||
@@ -10,7 +10,7 @@ import { useLocale } from "@calcom/lib/hooks/useLocale";
|
||||
import { trpc } from "@calcom/trpc/react";
|
||||
import { Button } from "@calcom/ui/components/button";
|
||||
import { Dialog, DialogContent, DialogHeader } from "@calcom/ui/components/dialog";
|
||||
import { Icon } from "@calcom/ui/components/icon";
|
||||
import { PauseIcon, PlayIcon, UserIcon } from "@coss/ui/icons";
|
||||
import { showToast } from "@calcom/ui/components/toast";
|
||||
|
||||
type Voice = {
|
||||
@@ -89,14 +89,14 @@ function VoiceSelectionContent({
|
||||
onClick={() => handlePlayVoice(row.original.preview_audio_url, row.original.voice_id)}
|
||||
className="rounded-full">
|
||||
{playingVoiceId === row.original.voice_id ? (
|
||||
<Icon name="pause" className="text-default h-3 w-3" />
|
||||
<PauseIcon className="text-default h-3 w-3" />
|
||||
) : (
|
||||
<Icon name="play" className="text-default h-3 w-3" />
|
||||
<PlayIcon className="text-default h-3 w-3" />
|
||||
)}
|
||||
</Button>
|
||||
<div className="flex items-center gap-2">
|
||||
<div className="bg-subtle flex h-10 w-10 items-center justify-center rounded-full">
|
||||
<Icon name="user" className="text-default h-5 w-5" />
|
||||
<UserIcon className="text-default h-5 w-5" />
|
||||
</div>
|
||||
<span className="text-emphasis font-medium">{row.original.voice_name}</span>
|
||||
</div>
|
||||
|
||||
@@ -12,6 +12,14 @@ import { Alert } from "@calcom/ui/components/alert";
|
||||
import { Button } from "@calcom/ui/components/button";
|
||||
import { DialogContent, DialogFooter } from "@calcom/ui/components/dialog";
|
||||
import { Icon } from "@calcom/ui/components/icon";
|
||||
import {
|
||||
LoaderIcon,
|
||||
MessageCircleIcon,
|
||||
PhoneIcon,
|
||||
PhoneOffIcon,
|
||||
TrashIcon,
|
||||
TriangleAlertIcon,
|
||||
} from "@coss/ui/icons";
|
||||
import { showToast } from "@calcom/ui/components/toast";
|
||||
import { Tooltip } from "@calcom/ui/components/tooltip";
|
||||
|
||||
@@ -260,15 +268,15 @@ export function WebCallDialog({
|
||||
const getStatusIcon = () => {
|
||||
switch (callStatus) {
|
||||
case "connecting":
|
||||
return <Icon name="loader" className="h-4 w-4 animate-spin rounded-full" />;
|
||||
return <LoaderIcon className="h-4 w-4 animate-spin rounded-full" />;
|
||||
case "active":
|
||||
return <Icon name="phone" className="text-success h-4 w-4" />;
|
||||
return <PhoneIcon className="text-success h-4 w-4" />;
|
||||
case "ended":
|
||||
return <Icon name="phone-off" className="text-muted h-4 w-4" />;
|
||||
return <PhoneOffIcon className="text-muted h-4 w-4" />;
|
||||
case "error":
|
||||
return <Icon name="triangle-alert" className="text-error h-4 w-4" />;
|
||||
return <TriangleAlertIcon className="text-error h-4 w-4" />;
|
||||
default:
|
||||
return <Icon name="phone" className="text-subtle h-4 w-4" />;
|
||||
return <PhoneIcon className="text-subtle h-4 w-4" />;
|
||||
}
|
||||
};
|
||||
|
||||
@@ -396,7 +404,7 @@ export function WebCallDialog({
|
||||
variant="icon"
|
||||
onClick={() => setTranscript([])}
|
||||
disabled={callStatus === "active"}>
|
||||
<Icon name="trash" className="h-4 w-4" />
|
||||
<TrashIcon className="h-4 w-4" />
|
||||
</Button>
|
||||
)}
|
||||
</div>
|
||||
@@ -405,7 +413,7 @@ export function WebCallDialog({
|
||||
{transcript.length === 0 ? (
|
||||
<div className="flex h-40 items-center justify-center text-center">
|
||||
<div>
|
||||
<Icon name="message-circle" className="text-subtle mx-auto h-8 w-8" />
|
||||
<MessageCircleIcon className="text-subtle mx-auto h-8 w-8" />
|
||||
<p className="text-subtle mt-2 text-sm">
|
||||
{callStatus === "idle"
|
||||
? t("start_call_to_see_conversation")
|
||||
@@ -441,7 +449,7 @@ export function WebCallDialog({
|
||||
{error && callStatus === "error" && (
|
||||
<div className="border-error bg-error/10 rounded-lg p-3">
|
||||
<div className="flex items-center gap-2">
|
||||
<Icon name="triangle-alert" className="text-error h-6 w-6" />
|
||||
<TriangleAlertIcon className="text-error h-6 w-6" />
|
||||
<span className="text-error text-sm">{error}</span>
|
||||
</div>
|
||||
</div>
|
||||
@@ -465,7 +473,7 @@ export function WebCallDialog({
|
||||
onClick={handleStartCall}
|
||||
loading={createWebCallMutation.isPending || callStatus === "connecting"}
|
||||
disabled={!hasCredits || createWebCallMutation.isPending || callStatus === "connecting"}>
|
||||
<Icon name="phone" className="mr-2 h-4 w-4" />
|
||||
<PhoneIcon className="mr-2 h-4 w-4" />
|
||||
{callStatus === "connecting" ? t("connecting") : t("start_web_call")}
|
||||
</Button>
|
||||
</Tooltip>
|
||||
@@ -475,7 +483,7 @@ export function WebCallDialog({
|
||||
color="destructive"
|
||||
onClick={handleEndCall}
|
||||
disabled={callStatus !== "active"}>
|
||||
<Icon name="phone-off" className="mr-2 h-4 w-4" />
|
||||
<PhoneOffIcon className="mr-2 h-4 w-4" />
|
||||
{t("end_call")}
|
||||
</Button>
|
||||
)}
|
||||
|
||||
@@ -1,29 +1,27 @@
|
||||
import { useSearchParams } from "next/navigation";
|
||||
import type { Dispatch, SetStateAction } from "react";
|
||||
import { useState, useEffect } from "react";
|
||||
import type { UseFormReturn } from "react-hook-form";
|
||||
|
||||
import { useAgentsData } from "@calcom/web/modules/ee/workflows/hooks/useAgentsData";
|
||||
import {
|
||||
isCalAIAction,
|
||||
isSMSAction,
|
||||
isFormTrigger,
|
||||
isSMSAction,
|
||||
} from "@calcom/features/ee/workflows/lib/actionHelperFunctions";
|
||||
import { ALLOWED_FORM_WORKFLOW_ACTIONS } from "@calcom/features/ee/workflows/lib/constants";
|
||||
import emailReminderTemplate from "@calcom/features/ee/workflows/lib/reminders/templates/emailReminderTemplate";
|
||||
import type { FormValues } from "@calcom/features/ee/workflows/lib/types";
|
||||
import type { WorkflowPermissions } from "@calcom/features/workflows/repositories/WorkflowPermissionsRepository";
|
||||
import { SENDER_ID, SENDER_NAME, SCANNING_WORKFLOW_STEPS } from "@calcom/lib/constants";
|
||||
import { SCANNING_WORKFLOW_STEPS, SENDER_ID, SENDER_NAME } from "@calcom/lib/constants";
|
||||
import { useLocale } from "@calcom/lib/hooks/useLocale";
|
||||
import { getTimeFormatStringFromUserTimeFormat } from "@calcom/lib/timeFormat";
|
||||
import { WorkflowActions } from "@calcom/prisma/enums";
|
||||
import { WorkflowTemplates } from "@calcom/prisma/enums";
|
||||
import { trpc, type RouterOutputs } from "@calcom/trpc/react";
|
||||
import { WorkflowActions, WorkflowTemplates } from "@calcom/prisma/enums";
|
||||
import { type RouterOutputs, trpc } from "@calcom/trpc/react";
|
||||
import { Button } from "@calcom/ui/components/button";
|
||||
import { FormCard, FormCardBody } from "@calcom/ui/components/card";
|
||||
import type { MultiSelectCheckboxesOptionType as Option } from "@calcom/ui/components/form";
|
||||
import { Icon } from "@calcom/ui/components/icon";
|
||||
import { useHasPaidPlan, useHasActiveTeamPlan } from "@calcom/web/modules/billing/hooks/useHasPaidPlan";
|
||||
import { useAgentsData } from "@calcom/web/modules/ee/workflows/hooks/useAgentsData";
|
||||
import { ArrowRightIcon, ZapIcon } from "@coss/ui/icons";
|
||||
import { useSearchParams } from "next/navigation";
|
||||
import type { Dispatch, SetStateAction } from "react";
|
||||
import { useEffect, useState } from "react";
|
||||
import type { UseFormReturn } from "react-hook-form";
|
||||
|
||||
import { AddActionDialog } from "./AddActionDialog";
|
||||
import WorkflowStepContainer from "./WorkflowStepContainer";
|
||||
@@ -197,7 +195,7 @@ export default function WorkflowDetailsPage(props: Props) {
|
||||
label={
|
||||
<div className="flex items-center gap-2 pt-1 pb-2">
|
||||
<div className="border-subtle text-subtle ml-1 rounded-lg border p-1">
|
||||
<Icon name="zap" size="16" />
|
||||
<ZapIcon size={16} />
|
||||
</div>
|
||||
<div className="text-sm font-medium leading-none">{t("trigger")}</div>
|
||||
</div>
|
||||
@@ -239,7 +237,7 @@ export default function WorkflowDetailsPage(props: Props) {
|
||||
label={
|
||||
<div className="flex items-center gap-2 pt-1 pb-2">
|
||||
<div className="border-subtle text-subtle rounded-lg border p-1">
|
||||
<Icon name="arrow-right" size="16" />
|
||||
<ArrowRightIcon size={16} />
|
||||
</div>
|
||||
<div className="text-sm font-medium leading-none">{t("action")}</div>
|
||||
</div>
|
||||
|
||||
@@ -16,7 +16,7 @@ import {
|
||||
DropdownMenuItem,
|
||||
DropdownMenuTrigger,
|
||||
} from "@calcom/ui/components/dropdown";
|
||||
import { Icon } from "@calcom/ui/components/icon";
|
||||
import { LinkIcon } from "@coss/ui/icons";
|
||||
import { Tooltip } from "@calcom/ui/components/tooltip";
|
||||
import { useAutoAnimate } from "@formkit/auto-animate/react";
|
||||
import Link from "next/link";
|
||||
@@ -137,7 +137,7 @@ export default function WorkflowListPage({ workflows }: Props) {
|
||||
{/*active on all badge */}
|
||||
{workflow.isActiveOnAll ? (
|
||||
<div>
|
||||
<Icon name="link" className="mr-1.5 inline h-3 w-3" aria-hidden="true" />
|
||||
<LinkIcon className="mr-1.5 inline h-3 w-3" />
|
||||
{workflow.isOrg ? t("active_on_all_teams") : t("active_on_all_event_types")}
|
||||
</div>
|
||||
) : workflow.activeOn && workflow.activeOn.length > 0 ? (
|
||||
@@ -147,7 +147,7 @@ export default function WorkflowListPage({ workflows }: Props) {
|
||||
.filter((wf) => (workflow.teamId ? wf.eventType.parentId === null : true))
|
||||
.map((activeOn, key) => <p key={key}>{activeOn.eventType.title}</p>)}>
|
||||
<div>
|
||||
<Icon name="link" className="mr-1.5 inline h-3 w-3" aria-hidden="true" />
|
||||
<LinkIcon className="mr-1.5 inline h-3 w-3" />
|
||||
{t("active_on_event_types", {
|
||||
count: workflow.activeOn.filter((wf) =>
|
||||
workflow.teamId ? wf.eventType.parentId === null : true
|
||||
@@ -162,7 +162,7 @@ export default function WorkflowListPage({ workflows }: Props) {
|
||||
<p key={key}>{activeOn.team.name}</p>
|
||||
))}>
|
||||
<div>
|
||||
<Icon name="link" className="mr-1.5 inline h-3 w-3" aria-hidden="true" />
|
||||
<LinkIcon className="mr-1.5 inline h-3 w-3" />
|
||||
{t("active_on_teams", {
|
||||
count: workflow.activeOnTeams?.length,
|
||||
})}
|
||||
@@ -171,7 +171,7 @@ export default function WorkflowListPage({ workflows }: Props) {
|
||||
) : (
|
||||
// active on no teams or event types
|
||||
<div>
|
||||
<Icon name="link" className="mr-1.5 inline h-3 w-3" aria-hidden="true" />
|
||||
<LinkIcon className="mr-1.5 inline h-3 w-3" />
|
||||
{workflow.isOrg ? t("no_active_teams") : t("no_active_event_types")}
|
||||
</div>
|
||||
)}
|
||||
|
||||
@@ -67,7 +67,7 @@ import { TextField } from "@calcom/ui/components/form";
|
||||
import { Select } from "@calcom/ui/components/form";
|
||||
import { MultiSelectCheckbox } from "@calcom/ui/components/form";
|
||||
import type { MultiSelectCheckboxesOptionType as Option } from "@calcom/ui/components/form";
|
||||
import { Icon } from "@calcom/ui/components/icon";
|
||||
import { CircleHelpIcon, InfoIcon, PhoneIcon } from "@coss/ui/icons";
|
||||
import { SkeletonText } from "@calcom/ui/components/skeleton";
|
||||
import { showToast } from "@calcom/ui/components/toast";
|
||||
import { useHasPaidPlan, useHasActiveTeamPlan } from "@calcom/web/modules/billing/hooks/useHasPaidPlan";
|
||||
@@ -688,7 +688,7 @@ export default function WorkflowStepContainer(props: WorkflowStepProps) {
|
||||
)}
|
||||
{!!timeSectionText && steps.some((s) => isSMSAction(s.action)) && (
|
||||
<div className="mt-1 flex text-gray-500">
|
||||
<Icon name="info" className="mr-1 mt-0.5 h-4 w-4" />
|
||||
<InfoIcon className="mr-1 mt-0.5 h-4 w-4" />
|
||||
<p className="text-sm">{t("testing_sms_workflow_info_message")}</p>
|
||||
</div>
|
||||
)}
|
||||
@@ -835,7 +835,7 @@ export default function WorkflowStepContainer(props: WorkflowStepProps) {
|
||||
{...form.register(`steps.${step.stepNumber - 1}.sender`)}
|
||||
/>
|
||||
<div className="mt-1.5 flex items-center gap-1">
|
||||
<Icon name="info" size="10" className="text-gray-500" />
|
||||
<InfoIcon size={10} className="text-gray-500" />
|
||||
<div className="text-subtle text-xs">{t("sender_id_info")}</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -910,7 +910,7 @@ export default function WorkflowStepContainer(props: WorkflowStepProps) {
|
||||
<h3 className="text-emphasis text-base font-medium">{t("cal_ai_agent")}</h3>
|
||||
{arePhoneNumbersActive.length > 0 ? (
|
||||
<div className="flex items-center gap-2">
|
||||
<Icon name="phone" className="text-emphasis h-4 w-4" />
|
||||
<PhoneIcon className="text-emphasis h-4 w-4" />
|
||||
<span className="text-emphasis text-sm">
|
||||
{formatPhoneNumber(arePhoneNumbersActive[0].phoneNumber)}
|
||||
</span>
|
||||
@@ -1437,7 +1437,7 @@ export default function WorkflowStepContainer(props: WorkflowStepProps) {
|
||||
<div className="ml-1 mt-2">
|
||||
<button type="button" onClick={() => setIsAdditionalInputsDialogOpen(true)}>
|
||||
<div className="text-subtle ml-1 flex items-center gap-2">
|
||||
<Icon name="circle-help" className="h-3 w-3" />
|
||||
<CircleHelpIcon className="h-3 w-3" />
|
||||
<p className="text-left text-xs">
|
||||
{isFormTrigger(trigger)
|
||||
? t("using_form_responses_as_variables")
|
||||
@@ -1676,7 +1676,7 @@ export default function WorkflowStepContainer(props: WorkflowStepProps) {
|
||||
).length > 0 && (
|
||||
<div className="bg-cal-muted rounded-lg p-3">
|
||||
<div className="flex items-center gap-2">
|
||||
<Icon name="phone" className="text-emphasis h-4 w-4" />
|
||||
<PhoneIcon className="text-emphasis h-4 w-4" />
|
||||
<span className="text-emphasis text-sm font-medium">
|
||||
{formatPhoneNumber(
|
||||
getActivePhoneNumbers(
|
||||
@@ -1737,7 +1737,7 @@ export default function WorkflowStepContainer(props: WorkflowStepProps) {
|
||||
<>
|
||||
<div className="bg-attention rounded-lg p-3">
|
||||
<div className="flex items-start gap-2">
|
||||
<Icon name="info" className="text-attention mt-0.5 h-4 w-4" />
|
||||
<InfoIcon className="text-attention mt-0.5 h-4 w-4" />
|
||||
<div className="stack-y-2">
|
||||
<p className="text-attention text-sm font-medium">{t("this_action_will_also")}</p>
|
||||
<ul className="text-attention stack-y-1 list-inside list-disc text-sm">
|
||||
@@ -1752,7 +1752,7 @@ export default function WorkflowStepContainer(props: WorkflowStepProps) {
|
||||
{relevantPhoneNumbers.map((phone) => (
|
||||
<div key={phone.phoneNumber} className="bg-cal-muted rounded-lg p-3">
|
||||
<div className="flex items-center gap-2">
|
||||
<Icon name="phone" className="text-emphasis h-4 w-4" />
|
||||
<PhoneIcon className="text-emphasis h-4 w-4" />
|
||||
<span className="text-emphasis text-sm font-medium">
|
||||
{formatPhoneNumber(phone.phoneNumber)}
|
||||
</span>
|
||||
|
||||
+7
-7
@@ -9,7 +9,7 @@ import { Button } from "@calcom/ui/components/button";
|
||||
import { Dialog } from "@calcom/ui/components/dialog";
|
||||
import { DialogContent, DialogHeader, DialogFooter as BaseDialogFooter } from "@calcom/ui/components/dialog";
|
||||
import { Form, Label, Switch, TextField } from "@calcom/ui/components/form";
|
||||
import { Icon } from "@calcom/ui/components/icon";
|
||||
import { InfoIcon } from "@coss/ui/icons";
|
||||
import { showToast } from "@calcom/ui/components/toast";
|
||||
import { Tooltip } from "@calcom/ui/components/tooltip";
|
||||
|
||||
@@ -86,7 +86,7 @@ export function ImportNumberDialog({
|
||||
<span className="flex items-center gap-1">
|
||||
{t("phone_number")}
|
||||
<Tooltip content={t("phone_number_info_tooltip")}>
|
||||
<Icon name="info" className="text-muted h-4 w-4 cursor-pointer" />
|
||||
<InfoIcon className="text-muted h-4 w-4 cursor-pointer" />
|
||||
</Tooltip>
|
||||
</span>
|
||||
}
|
||||
@@ -111,7 +111,7 @@ export function ImportNumberDialog({
|
||||
<span className="flex items-center gap-1">
|
||||
{t("termination_uri")}
|
||||
<Tooltip content={t("termination_uri_info_tooltip")}>
|
||||
<Icon name="info" className="text-muted h-4 w-4 cursor-pointer" />
|
||||
<InfoIcon className="text-muted h-4 w-4 cursor-pointer" />
|
||||
</Tooltip>
|
||||
</span>
|
||||
}
|
||||
@@ -144,7 +144,7 @@ export function ImportNumberDialog({
|
||||
<span className="flex items-center gap-1">
|
||||
{t("sip_trunk_username")}
|
||||
<Tooltip content={t("sip_trunk_username_info_tooltip")}>
|
||||
<Icon name="info" className="text-muted h-4 w-4 cursor-pointer" />
|
||||
<InfoIcon className="text-muted h-4 w-4 cursor-pointer" />
|
||||
</Tooltip>
|
||||
</span>
|
||||
}
|
||||
@@ -169,7 +169,7 @@ export function ImportNumberDialog({
|
||||
<span className="flex items-center gap-1">
|
||||
{t("sip_trunk_password")}
|
||||
<Tooltip content={t("sip_trunk_password_info_tooltip")}>
|
||||
<Icon name="info" className="text-muted h-4 w-4 cursor-pointer" />
|
||||
<InfoIcon className="text-muted h-4 w-4 cursor-pointer" />
|
||||
</Tooltip>
|
||||
</span>
|
||||
}
|
||||
@@ -194,7 +194,7 @@ export function ImportNumberDialog({
|
||||
<span className="flex items-center gap-1">
|
||||
{t("nickname")}
|
||||
<Tooltip content={t("nickname_info_tooltip")}>
|
||||
<Icon name="info" className="text-muted h-4 w-4 cursor-pointer" />
|
||||
<InfoIcon className="text-muted h-4 w-4 cursor-pointer" />
|
||||
</Tooltip>
|
||||
</span>
|
||||
}
|
||||
@@ -213,7 +213,7 @@ export function ImportNumberDialog({
|
||||
{/* Having trouble importing section */}
|
||||
<div className="rounded-lg border p-2">
|
||||
<div className="flex items-start gap-3">
|
||||
<Icon name="info" className="text-subtle mt-0.5 h-5 w-5 shrink-0" />
|
||||
<InfoIcon className="text-subtle mt-0.5 h-5 w-5 shrink-0" />
|
||||
<div className="flex-1">
|
||||
<p className="text-emphasis text-sm font-medium">{t("having_trouble_importing")}</p>
|
||||
<p className="text-subtle mt-1 text-sm leading-tight">
|
||||
|
||||
+2
-2
@@ -3,7 +3,7 @@
|
||||
import { useLocale } from "@calcom/lib/hooks/useLocale";
|
||||
import { Button } from "@calcom/ui/components/button";
|
||||
import { Label } from "@calcom/ui/components/form";
|
||||
import { Icon } from "@calcom/ui/components/icon";
|
||||
import { UserIcon } from "@coss/ui/icons";
|
||||
|
||||
interface VoiceSelectorProps {
|
||||
selectedVoiceId?: string;
|
||||
@@ -24,7 +24,7 @@ export function VoiceSelector({ selectedVoiceId, onVoiceDialogOpen, disabled = f
|
||||
onClick={onVoiceDialogOpen}
|
||||
disabled={disabled}
|
||||
className="w-full justify-start">
|
||||
<Icon name="user" className="mr-2 h-4 w-4" />
|
||||
<UserIcon className="mr-2 h-4 w-4" />
|
||||
{selectedVoiceId ? <span className="text-sm">{selectedVoiceId}</span> : t("select_voice")}
|
||||
</Button>
|
||||
</div>
|
||||
|
||||
+3
-3
@@ -11,7 +11,7 @@ import { trpc } from "@calcom/trpc/react";
|
||||
import { Button } from "@calcom/ui/components/button";
|
||||
import { Label, Select } from "@calcom/ui/components/form";
|
||||
import type { MultiSelectCheckboxesOptionType as Option } from "@calcom/ui/components/form";
|
||||
import { Icon } from "@calcom/ui/components/icon";
|
||||
import { InfoIcon, PhoneIncomingIcon } from "@coss/ui/icons";
|
||||
import { showToast } from "@calcom/ui/components/toast";
|
||||
|
||||
import { VoiceSelectionDialog } from "../../../VoiceSelectionDialog";
|
||||
@@ -91,7 +91,7 @@ export function IncomingCallsTab({
|
||||
<div className="border-subtle rounded-xl border p-8">
|
||||
<div className="stack-y-6 flex flex-col items-center text-center">
|
||||
<div className="bg-cal-muted flex h-16 w-16 items-center justify-center rounded-lg">
|
||||
<Icon name="info" className="text-subtle h-8 w-8" />
|
||||
<InfoIcon className="text-subtle h-8 w-8" />
|
||||
</div>
|
||||
<div className="stack-y-2">
|
||||
<h3 className="text-emphasis text-lg font-semibold">{t("setup_incoming_agent")}</h3>
|
||||
@@ -107,7 +107,7 @@ export function IncomingCallsTab({
|
||||
<div className="border-subtle rounded-xl border p-8">
|
||||
<div className="stack-y-6 flex flex-col items-center text-center">
|
||||
<div className="bg-cal-muted flex h-16 w-16 items-center justify-center rounded-lg">
|
||||
<Icon name="phone-incoming" className="text-subtle h-8 w-8" />
|
||||
<PhoneIncomingIcon className="text-subtle h-8 w-8" />
|
||||
</div>
|
||||
<div className="stack-y-2">
|
||||
<h3 className="text-emphasis text-lg font-semibold">{t("setup_inbound_agent")}</h3>
|
||||
|
||||
+3
-3
@@ -20,7 +20,7 @@ import {
|
||||
DropdownMenuItem,
|
||||
DropdownMenuTrigger,
|
||||
} from "@calcom/ui/components/dropdown";
|
||||
import { Icon } from "@calcom/ui/components/icon";
|
||||
import { LoaderIcon, PhoneIcon } from "@coss/ui/icons";
|
||||
import { showToast } from "@calcom/ui/components/toast";
|
||||
import { WebCallDialog } from "@calcom/web/modules/ee/workflows/components/WebCallDialog";
|
||||
|
||||
@@ -131,7 +131,7 @@ export function PhoneNumberTab({
|
||||
{updateAgentMutation.isPending && (
|
||||
<div className="absolute inset-0 z-10 flex items-center justify-center rounded-lg bg-white/50">
|
||||
<div className="flex items-center gap-2 text-sm text-gray-600">
|
||||
<Icon name="loader" className="h-4 w-4 animate-spin" />
|
||||
<LoaderIcon className="h-4 w-4 animate-spin" />
|
||||
{t("updating")}...
|
||||
</div>
|
||||
</div>
|
||||
@@ -279,7 +279,7 @@ export function PhoneNumberTab({
|
||||
<div className="border-subtle rounded-xl border p-8">
|
||||
<div className="stack-y-6 flex flex-col items-center text-center">
|
||||
<div className="bg-cal-muted flex h-16 w-16 items-center justify-center rounded-lg">
|
||||
<Icon name="phone" className="text-subtle h-8 w-8" />
|
||||
<PhoneIcon className="text-subtle h-8 w-8" />
|
||||
</div>
|
||||
<div className="stack-y-2">
|
||||
<h3 className="text-emphasis text-lg font-semibold">{t("no_phone_numbers")}</h3>
|
||||
|
||||
@@ -34,7 +34,7 @@ import { Badge } from "@calcom/ui/components/badge";
|
||||
import { Button } from "@calcom/ui/components/button";
|
||||
import type { MultiSelectCheckboxesOptionType as Option } from "@calcom/ui/components/form";
|
||||
import { Form, Input } from "@calcom/ui/components/form";
|
||||
import { Icon } from "@calcom/ui/components/icon";
|
||||
import { PencilIcon } from "@coss/ui/icons";
|
||||
import { showToast } from "@calcom/ui/components/toast";
|
||||
import { Tooltip } from "@calcom/ui/components/tooltip";
|
||||
|
||||
@@ -476,7 +476,7 @@ function WorkflowPage({
|
||||
disabled={isPending}
|
||||
onClick={() => setIsEditingName(true)}
|
||||
CustomStartIcon={
|
||||
<Icon name="pencil" className="text-subtle group-hover:text-default h-3 w-3" />
|
||||
<PencilIcon className="text-subtle group-hover:text-default h-3 w-3" />
|
||||
}>
|
||||
<span className="sr-only">{t("edit")}</span>
|
||||
</Button>
|
||||
|
||||
@@ -38,7 +38,7 @@ import { Select, ColorPicker } from "@calcom/ui/components/form";
|
||||
import { Label } from "@calcom/ui/components/form";
|
||||
import { TextField } from "@calcom/ui/components/form";
|
||||
import { Switch } from "@calcom/ui/components/form";
|
||||
import { Icon } from "@calcom/ui/components/icon";
|
||||
import { ArrowLeftIcon, SunIcon } from "@coss/ui/icons";
|
||||
import { HorizontalTabs } from "@calcom/ui/components/navigation";
|
||||
import { showToast } from "@calcom/ui/components/toast";
|
||||
|
||||
@@ -190,7 +190,7 @@ const ThemeSelectControl = ({
|
||||
}: ControlProps<{ value: EmbedTheme; label: string }, false>) => {
|
||||
return (
|
||||
<components.Control {...props}>
|
||||
<Icon name="sun" className="text-subtle mr-2 h-4 w-4" />
|
||||
<SunIcon className="text-subtle mr-2 h-4 w-4" />
|
||||
{children}
|
||||
</components.Control>
|
||||
);
|
||||
@@ -954,7 +954,7 @@ const EmbedTypeCodeAndPreviewDialogContent = ({
|
||||
className="text-emphasis mb-2.5 flex items-center text-xl font-semibold leading-5"
|
||||
id="modal-title">
|
||||
<button className="h-6 w-6" onClick={gotoEmbedTypeSelectionState}>
|
||||
<Icon name="arrow-left" className="mr-4 w-4" />
|
||||
<ArrowLeftIcon className="mr-4 w-4" />
|
||||
</button>
|
||||
{embed.title}
|
||||
</h3>
|
||||
|
||||
@@ -10,7 +10,7 @@ import type { AttributesQueryValue } from "@calcom/lib/raqb/types";
|
||||
import { Avatar } from "@calcom/ui/components/avatar";
|
||||
import { Button, buttonClasses } from "@calcom/ui/components/button";
|
||||
import { TextField } from "@calcom/ui/components/form";
|
||||
import { Icon } from "@calcom/ui/components/icon";
|
||||
import { ChevronDownIcon, InfoIcon, SearchIcon, UploadIcon } from "@coss/ui/icons";
|
||||
import {
|
||||
Sheet,
|
||||
SheetBody,
|
||||
@@ -272,7 +272,7 @@ export const EditWeightsForAllTeamMembers = ({
|
||||
<SheetBody className="mt-4 flex h-full flex-col stack-y-6 p-1">
|
||||
<div className="flex justify-start gap-2">
|
||||
<label className={buttonClasses({ color: "secondary" })}>
|
||||
<Icon name="upload" className="mr-2 h-4 w-4" />
|
||||
<UploadIcon className="mr-2 h-4 w-4" />
|
||||
<input type="file" accept=".csv" className="hidden" onChange={handleUploadCsv} />
|
||||
{t("upload")}
|
||||
</label>
|
||||
@@ -285,7 +285,7 @@ export const EditWeightsForAllTeamMembers = ({
|
||||
value={searchQuery}
|
||||
onChange={(e) => setSearchQuery(e.target.value.toLowerCase())}
|
||||
addOnLeading={
|
||||
<Icon name="search" className="text-subtle h-4 w-4" aria-hidden="true" focusable="false" />
|
||||
<SearchIcon className="text-subtle h-4 w-4" />
|
||||
}
|
||||
/>
|
||||
|
||||
@@ -304,10 +304,10 @@ export const EditWeightsForAllTeamMembers = ({
|
||||
className="flex w-full items-center justify-between rounded-md border bg-red-50 p-3 text-sm text-red-900"
|
||||
onClick={() => setIsErrorsExpanded(!isErrorsExpanded)}>
|
||||
<div className="flex items-center space-x-2">
|
||||
<Icon name="info" className="h-4 w-4" />
|
||||
<InfoIcon className="h-4 w-4" />
|
||||
<span>{t("csv_upload_errors", { count: uploadErrors.length })}</span>
|
||||
</div>
|
||||
<Icon name="chevron-down" className="h-4 w-4" />
|
||||
<ChevronDownIcon className="h-4 w-4" />
|
||||
</button>
|
||||
{isErrorsExpanded && (
|
||||
<div className="mt-2 stack-y-2">
|
||||
|
||||
@@ -25,7 +25,7 @@ import {
|
||||
} from "@calcom/ui/components/dropdown";
|
||||
import { Label } from "@calcom/ui/components/form";
|
||||
import { Switch } from "@calcom/ui/components/form";
|
||||
import { Icon } from "@calcom/ui/components/icon";
|
||||
import { LoaderIcon } from "@coss/ui/icons";
|
||||
import { HorizontalTabs, VerticalTabs } from "@calcom/ui/components/navigation";
|
||||
import type { VerticalTabItemProps } from "@calcom/ui/components/navigation";
|
||||
import { Skeleton } from "@calcom/ui/components/skeleton";
|
||||
@@ -292,7 +292,7 @@ function EventTypeSingleLayout({
|
||||
<Suspense
|
||||
fallback={
|
||||
<div className="flex h-64 items-center justify-center">
|
||||
<Icon name="loader" className="h-5 w-5 animate-spin" />
|
||||
<LoaderIcon className="h-5 w-5 animate-spin" />
|
||||
</div>
|
||||
}>
|
||||
<div className="flex flex-col xl:flex-row xl:space-x-6">
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { Icon } from "@calcom/ui/components/icon";
|
||||
import { ClockIcon, SearchIcon, UserIcon } from "@coss/ui/icons";
|
||||
import { SkeletonAvatar, SkeletonContainer, SkeletonText } from "@calcom/ui/components/skeleton";
|
||||
|
||||
function SkeletonLoader() {
|
||||
@@ -56,7 +56,7 @@ export function SearchSkeletonLoader() {
|
||||
<div className="max-w-64 mb-4">
|
||||
<div className="bg-default border-default flex h-8 items-center gap-1 rounded-[10px] border px-3 py-2">
|
||||
<div className="flex items-center justify-center">
|
||||
<Icon name="search" className="text-subtle h-4 w-4" />
|
||||
<SearchIcon className="text-subtle h-4 w-4" />
|
||||
</div>
|
||||
<SkeletonText className="max-w-56 h-4 w-full" />
|
||||
</div>
|
||||
@@ -88,11 +88,11 @@ function SkeletonItem() {
|
||||
<div className="">
|
||||
<ul className="mt-2 flex space-x-4 rtl:space-x-reverse ">
|
||||
<li className="flex items-center whitespace-nowrap">
|
||||
<Icon name="clock" className="text-subtle mr-1.5 mt-0.5 inline h-4 w-4" />
|
||||
<ClockIcon className="text-subtle mr-1.5 mt-0.5 inline h-4 w-4" />
|
||||
<SkeletonText className="h-4 w-12" />
|
||||
</li>
|
||||
<li className="flex items-center whitespace-nowrap">
|
||||
<Icon name="user" className="text-subtle mr-1.5 mt-0.5 inline h-4 w-4" />
|
||||
<UserIcon className="text-subtle mr-1.5 mt-0.5 inline h-4 w-4" />
|
||||
<SkeletonText className="h-4 w-12" />
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
@@ -27,7 +27,7 @@ import { Badge } from "@calcom/ui/components/badge";
|
||||
import { Button } from "@calcom/ui/components/button";
|
||||
import { Dialog, DialogContent, DialogFooter, DialogHeader } from "@calcom/ui/components/dialog";
|
||||
import { Label, TextField, Select, SettingsToggle } from "@calcom/ui/components/form";
|
||||
import { Icon } from "@calcom/ui/components/icon";
|
||||
import { LoaderIcon, TriangleAlertIcon } from "@coss/ui/icons";
|
||||
import { Skeleton } from "@calcom/ui/components/skeleton";
|
||||
import { showToast } from "@calcom/ui/components/toast";
|
||||
|
||||
@@ -328,7 +328,7 @@ const HostLocationRow = ({
|
||||
<div className="flex items-center gap-2">
|
||||
{currentLocation && !hasAppInstalled && (
|
||||
<Badge variant="orange" className="whitespace-nowrap">
|
||||
<Icon name="triangle-alert" className="mr-1 h-3 w-3" />
|
||||
<TriangleAlertIcon className="mr-1 h-3 w-3" />
|
||||
{t("app_not_installed")}
|
||||
</Badge>
|
||||
)}
|
||||
@@ -689,7 +689,7 @@ const HostList = ({
|
||||
<div ref={containerRef} className="border-subtle max-h-96 overflow-y-auto rounded-md border">
|
||||
{isLoading ? (
|
||||
<div className="flex items-center justify-center py-8">
|
||||
<Icon name="loader" className="text-subtle h-5 w-5 animate-spin" />
|
||||
<LoaderIcon className="text-subtle h-5 w-5 animate-spin" />
|
||||
</div>
|
||||
) : (
|
||||
<>
|
||||
@@ -705,7 +705,7 @@ const HostList = ({
|
||||
))}
|
||||
{isFetchingNextPage && (
|
||||
<div className="flex items-center justify-center py-4">
|
||||
<Icon name="loader" className="text-subtle h-4 w-4 animate-spin" />
|
||||
<LoaderIcon className="text-subtle h-4 w-4 animate-spin" />
|
||||
</div>
|
||||
)}
|
||||
</>
|
||||
|
||||
@@ -18,7 +18,7 @@ import { WEBAPP_URL } from "@calcom/lib/constants";
|
||||
import { useLocale } from "@calcom/lib/hooks/useLocale";
|
||||
import classNames from "@calcom/ui/classNames";
|
||||
import { Button } from "@calcom/ui/components/button";
|
||||
import { Icon } from "@calcom/ui/components/icon";
|
||||
import { CheckIcon, CornerDownRightIcon, XIcon } from "@coss/ui/icons";
|
||||
import { showToast } from "@calcom/ui/components/toast";
|
||||
|
||||
import CalVideoSettings from "./CalVideoSettings";
|
||||
@@ -242,8 +242,7 @@ const Locations: React.FC<LocationsProps> = ({
|
||||
}}
|
||||
aria-label={t("remove")}>
|
||||
<div className="h-4 w-4">
|
||||
<Icon
|
||||
name="x"
|
||||
<XIcon
|
||||
className={classNames(
|
||||
"hover:text-emphasis text-subtle h-4 w-4",
|
||||
customClassNames?.removeLocationIcon
|
||||
@@ -268,7 +267,7 @@ const Locations: React.FC<LocationsProps> = ({
|
||||
<div className="w-full">
|
||||
<div className="flex gap-2">
|
||||
<div className="flex items-center justify-center">
|
||||
<Icon name="corner-down-right" className="h-4 w-4" />
|
||||
<CornerDownRightIcon className="h-4 w-4" />
|
||||
</div>
|
||||
<LocationInput
|
||||
data-testid={`${eventLocationType.type}-location-input`}
|
||||
@@ -374,7 +373,7 @@ const Locations: React.FC<LocationsProps> = ({
|
||||
) && (
|
||||
<div className="text-default flex items-center text-sm">
|
||||
<div className="mr-1.5 h-3 w-3">
|
||||
<Icon name="check" className="h-3 w-3" />
|
||||
<CheckIcon className="h-3 w-3" />
|
||||
</div>
|
||||
<p className="text-default text-sm">
|
||||
<ServerTrans
|
||||
|
||||
@@ -63,7 +63,7 @@ import {
|
||||
SettingsToggle,
|
||||
Select,
|
||||
} from "@calcom/ui/components/form";
|
||||
import { Icon } from "@calcom/ui/components/icon";
|
||||
import { InfoIcon, PencilIcon } from "@coss/ui/icons";
|
||||
|
||||
import type { CustomEventTypeModalClassNames } from "./CustomEventTypeModal";
|
||||
import CustomEventTypeModal from "./CustomEventTypeModal";
|
||||
@@ -226,7 +226,7 @@ const destinationCalendarComponents = {
|
||||
aria-label="edit custom name"
|
||||
className="hover:stroke-3 hover:text-emphasis py-0! -mr-1.5 min-w-fit px-1.5 hover:bg-transparent"
|
||||
onClick={() => setShowEventNameTip((old) => !old)}>
|
||||
<Icon name="pencil" className="h-4 w-4" />
|
||||
<PencilIcon className="h-4 w-4" />
|
||||
</Button>
|
||||
}
|
||||
/>
|
||||
@@ -240,10 +240,7 @@ const destinationCalendarComponents = {
|
||||
label={
|
||||
<>
|
||||
{t("display_add_to_calendar_organizer")}
|
||||
<Icon
|
||||
name="info"
|
||||
className="text-default hover:text-attention hover:bg-attention ms-1 inline h-4 w-4 rounded-md"
|
||||
/>
|
||||
<InfoIcon className="text-default hover:text-attention hover:bg-attention ms-1 inline h-4 w-4 rounded-md" />
|
||||
</>
|
||||
}
|
||||
checked={useEventTypeDestinationCalendarEmail}
|
||||
|
||||
@@ -29,7 +29,7 @@ import {
|
||||
InputField,
|
||||
Label,
|
||||
} from "@calcom/ui/components/form";
|
||||
import { Icon } from "@calcom/ui/components/icon";
|
||||
import { ArrowDownIcon, ArrowUpIcon, MailIcon, PhoneIcon } from "@coss/ui/icons";
|
||||
import { showToast } from "@calcom/ui/components/toast";
|
||||
|
||||
import { fieldTypesConfigMap } from "@calcom/features/form-builder/fieldTypes";
|
||||
@@ -171,12 +171,12 @@ export const FormBuilder = function FormBuilder({
|
||||
{
|
||||
value: "email",
|
||||
label: "Email",
|
||||
iconLeft: <Icon name="mail" className="h-4 w-4" />,
|
||||
iconLeft: <MailIcon className="h-4 w-4" />,
|
||||
},
|
||||
{
|
||||
value: "phone",
|
||||
label: "Phone",
|
||||
iconLeft: <Icon name="phone" className="h-4 w-4" />,
|
||||
iconLeft: <PhoneIcon className="h-4 w-4" />,
|
||||
},
|
||||
]}
|
||||
onValueChange={(value) => {
|
||||
@@ -283,7 +283,7 @@ export const FormBuilder = function FormBuilder({
|
||||
type="button"
|
||||
className="bg-default text-muted hover:text-emphasis disabled:hover:text-muted border-subtle hover:border-emphasis invisible absolute -left-[12px] -ml-4 -mt-4 mb-4 hidden h-6 w-6 scale-0 items-center justify-center rounded-md border p-1 transition-all hover:shadow disabled:hover:border-inherit disabled:hover:shadow-none group-hover:visible group-hover:scale-100 sm:ml-0 sm:flex"
|
||||
onClick={() => swap(index, index - 1)}>
|
||||
<Icon name="arrow-up" className="h-5 w-5" />
|
||||
<ArrowUpIcon className="h-5 w-5" />
|
||||
</button>
|
||||
)}
|
||||
{index < fields.length - 1 && (
|
||||
@@ -291,7 +291,7 @@ export const FormBuilder = function FormBuilder({
|
||||
type="button"
|
||||
className="bg-default text-muted hover:border-emphasis border-subtle hover:text-emphasis disabled:hover:text-muted invisible absolute -left-[12px] -ml-4 mt-8 hidden h-6 w-6 scale-0 items-center justify-center rounded-md border p-1 transition-all hover:shadow disabled:hover:border-inherit disabled:hover:shadow-none group-hover:visible group-hover:scale-100 sm:ml-0 sm:flex"
|
||||
onClick={() => swap(index, index + 1)}>
|
||||
<Icon name="arrow-down" className="h-5 w-5" />
|
||||
<ArrowDownIcon className="h-5 w-5" />
|
||||
</button>
|
||||
)}
|
||||
</>
|
||||
|
||||
@@ -20,7 +20,7 @@ import { EmptyScreen } from "@calcom/ui/components/empty-screen";
|
||||
import { Label } from "@calcom/ui/components/form";
|
||||
import { TextField } from "@calcom/ui/components/form";
|
||||
import { SettingsToggle } from "@calcom/ui/components/form";
|
||||
import { Icon } from "@calcom/ui/components/icon";
|
||||
import { InfoIcon } from "@coss/ui/icons";
|
||||
import { showToast } from "@calcom/ui/components/toast";
|
||||
|
||||
type AIEventControllerProps = {
|
||||
@@ -90,7 +90,7 @@ const ErrorMessage = ({ fieldName, message }: { fieldName: string; message: stri
|
||||
const { t } = useLocale();
|
||||
return (
|
||||
<div data-testid={`error-message-${fieldName}`} className="mt-2 flex items-center text-sm text-red-700 ">
|
||||
<Icon name="info" className="h-3 w-3 ltr:mr-2 rtl:ml-2" />
|
||||
<InfoIcon className="h-3 w-3 ltr:mr-2 rtl:ml-2" />
|
||||
<p>{t(message || "invalid_input")}</p>
|
||||
</div>
|
||||
);
|
||||
|
||||
@@ -13,7 +13,7 @@ import { RRTimestampBasis, SchedulingType } from "@calcom/prisma/enums";
|
||||
import classNames from "@calcom/ui/classNames";
|
||||
import { Button } from "@calcom/ui/components/button";
|
||||
import { Label, Select, SettingsToggle } from "@calcom/ui/components/form";
|
||||
import { Icon } from "@calcom/ui/components/icon";
|
||||
import { XIcon } from "@coss/ui/icons";
|
||||
import { RadioAreaGroup as RadioArea } from "@calcom/ui/components/radio";
|
||||
import { Tooltip } from "@calcom/ui/components/tooltip";
|
||||
import type { AddMembersWithSwitchCustomClassNames } from "@calcom/web/modules/event-types/components/AddMembersWithSwitch";
|
||||
@@ -539,7 +539,7 @@ const RoundRobinHosts = ({
|
||||
type="button"
|
||||
onClick={() => handleRemoveGroup(group.id)}
|
||||
className="text-subtle hover:text-default rounded p-1">
|
||||
<Icon name="x" className="h-4 w-4" />
|
||||
<XIcon className="h-4 w-4" />
|
||||
</button>
|
||||
</div>
|
||||
<AddMembersWithSwitchComponent groupId={group.id} />
|
||||
|
||||
@@ -31,8 +31,8 @@ import { Button } from "@calcom/ui/components/button";
|
||||
import { Label } from "@calcom/ui/components/form";
|
||||
import { Select } from "@calcom/ui/components/form";
|
||||
import { SettingsToggle } from "@calcom/ui/components/form";
|
||||
import { Icon } from "@calcom/ui/components/icon";
|
||||
import { Spinner } from "@calcom/ui/components/icon";
|
||||
import { GlobeIcon, UserIcon } from "@coss/ui/icons";
|
||||
import { SkeletonText } from "@calcom/ui/components/skeleton";
|
||||
import { EmptyScreen } from "@calcom/ui/components/empty-screen";
|
||||
|
||||
@@ -263,7 +263,7 @@ const EventTypeScheduleDetails = memo(
|
||||
<div className="bg-cal-muted border-subtle flex flex-col items-center gap-2 rounded-b-md border p-6 sm:flex-row sm:items-center sm:justify-between">
|
||||
<div className="flex flex-col gap-2">
|
||||
<span className="text-default flex items-center justify-center text-center text-sm sm:justify-start">
|
||||
<Icon name="globe" className="h-3.5 w-3.5 ltr:mr-2 rtl:ml-2" />
|
||||
<GlobeIcon className="h-3.5 w-3.5 ltr:mr-2 rtl:ml-2" />
|
||||
{scheduleQueryData?.timeZone || <SkeletonText className="block h-5 w-32" />}
|
||||
</span>
|
||||
</div>
|
||||
@@ -393,8 +393,7 @@ const EventTypeRestrictionScheduleDetails = memo(
|
||||
"text-default flex items-center justify-center text-sm sm:justify-start",
|
||||
useBookerTimezone && "text-muted line-through"
|
||||
)}>
|
||||
<Icon
|
||||
name="globe"
|
||||
<GlobeIcon
|
||||
className={classNames("h-3.5 w-3.5 ltr:mr-2 rtl:ml-2", useBookerTimezone && "text-muted")}
|
||||
/>
|
||||
{scheduleQueryData?.timeZone || <SkeletonText className="block h-5 w-32" />}
|
||||
@@ -680,7 +679,7 @@ const TeamMemberSchedule = ({
|
||||
<>
|
||||
<div className={classNames("flex w-full items-center", customClassNames?.labelContainer)}>
|
||||
{!isPlatform && <Avatar size="sm" imageSrc={avatar} alt={label || ""} />}
|
||||
{isPlatform && <Icon name="user" className={classNames("h-4 w-4", customClassNames?.labelAvatar)} />}
|
||||
{isPlatform && <UserIcon className={classNames("h-4 w-4", customClassNames?.labelAvatar)} />}
|
||||
<p className={classNames("text-emphasis my-auto ms-3 text-sm", customClassNames?.label)}>{label}</p>
|
||||
</div>
|
||||
<div className="flex w-full flex-col pt-2">
|
||||
|
||||
@@ -18,7 +18,7 @@ import { Alert } from "@calcom/ui/components/alert";
|
||||
import { Button } from "@calcom/ui/components/button";
|
||||
import { EmptyScreen } from "@calcom/ui/components/empty-screen";
|
||||
import { Switch } from "@calcom/ui/components/form";
|
||||
import { Icon } from "@calcom/ui/components/icon";
|
||||
import { LockIcon } from "@coss/ui/icons";
|
||||
import { showToast } from "@calcom/ui/components/toast";
|
||||
import { Tooltip } from "@calcom/ui/components/tooltip";
|
||||
import { revalidateEventTypeEditPage } from "@calcom/web/app/(use-page-wrapper)/event-types/[type]/actions";
|
||||
@@ -154,7 +154,7 @@ const WorkflowListItem = (props: ItemProps) => {
|
||||
}>
|
||||
<div className="flex items-center ltr:mr-2 rtl:ml-2">
|
||||
{workflow.readOnly && props.isChildrenManagedEventType && (
|
||||
<Icon name="lock" className="text-subtle h-4 w-4 ltr:mr-2 rtl:ml-2" />
|
||||
<LockIcon className="text-subtle h-4 w-4 ltr:mr-2 rtl:ml-2" />
|
||||
)}
|
||||
<Switch
|
||||
checked={isActive}
|
||||
|
||||
@@ -34,7 +34,7 @@ import {
|
||||
} from "@calcom/ui/components/dropdown";
|
||||
import { EmptyScreen } from "@calcom/ui/components/empty-screen";
|
||||
import { Label, Switch, TextField } from "@calcom/ui/components/form";
|
||||
import { Icon } from "@calcom/ui/components/icon";
|
||||
import { SearchIcon } from "@coss/ui/icons";
|
||||
import { HorizontalTabs } from "@calcom/ui/components/navigation";
|
||||
import { Skeleton } from "@calcom/ui/components/skeleton";
|
||||
import { showToast } from "@calcom/ui/components/toast";
|
||||
@@ -928,7 +928,7 @@ const CTA = ({ profileOptions }: { profileOptions: ProfileOption[] }) => {
|
||||
<div className="flex items-center gap-4">
|
||||
<TextField
|
||||
className="max-w-64"
|
||||
addOnLeading={<Icon name="search" className="text-subtle h-4 w-4" />}
|
||||
addOnLeading={<SearchIcon className="text-subtle h-4 w-4" />}
|
||||
containerClassName="max-w-64 focus:ring-offset-0!"
|
||||
type="search"
|
||||
value={searchTerm}
|
||||
|
||||
@@ -5,8 +5,8 @@ import { useLocale } from "@calcom/lib/hooks/useLocale";
|
||||
import classNames from "@calcom/ui/classNames";
|
||||
import { Alert } from "@calcom/ui/components/alert";
|
||||
import { SettingsToggle, ToggleGroup } from "@calcom/ui/components/form";
|
||||
import { Icon } from "@calcom/ui/components/icon";
|
||||
import { SkeletonText } from "@calcom/ui/components/skeleton";
|
||||
import { CircleAlertIcon, CircleCheckIcon } from "@coss/ui/icons";
|
||||
import { Tooltip } from "@calcom/ui/components/tooltip";
|
||||
import type { ReactElement } from "react";
|
||||
import { useMemo } from "react";
|
||||
@@ -105,14 +105,14 @@ function FeatureItem({
|
||||
{blockedWarning && (
|
||||
<Tooltip side="top" content={blockedWarning}>
|
||||
<span>
|
||||
<Icon name="circle-alert" className="text-error ml-1 h-4 w-4" />
|
||||
<CircleAlertIcon className="text-error ml-1 h-4 w-4" />
|
||||
</span>
|
||||
</Tooltip>
|
||||
)}
|
||||
{enabledViaAutoOptInFlag && (
|
||||
<Tooltip side="top" content={t("enabled_via_auto_opt_in")}>
|
||||
<span>
|
||||
<Icon name="circle-check" className="text-success ml-1 h-4 w-4" />
|
||||
<CircleCheckIcon className="text-success ml-1 h-4 w-4" />
|
||||
</span>
|
||||
</Tooltip>
|
||||
)}
|
||||
|
||||
@@ -11,8 +11,8 @@ import { Avatar } from "@calcom/ui/components/avatar";
|
||||
import { VerticalDivider } from "@calcom/ui/components/divider";
|
||||
import { Divider } from "@calcom/ui/components/divider";
|
||||
import { FilterSearchField } from "@calcom/ui/components/form";
|
||||
import { Icon } from "@calcom/ui/components/icon";
|
||||
import { AnimatedPopover } from "@calcom/ui/components/popover";
|
||||
import { LayersIcon, UserIcon } from "@coss/ui/icons";
|
||||
import { Tooltip } from "@calcom/ui/components/tooltip";
|
||||
|
||||
import { filterQuerySchema } from "@calcom/features/filters/lib/getTeamsFiltersFromQuery";
|
||||
@@ -83,7 +83,7 @@ export const TeamsFilter = ({
|
||||
|
||||
<FilterCheckboxField
|
||||
id="all"
|
||||
icon={<Icon name="layers" className="h-4 w-4" />}
|
||||
icon={<LayersIcon className="h-4 w-4" />}
|
||||
checked={!query.teamIds && !isUserInQuery}
|
||||
onChange={removeAllQueryParams}
|
||||
label={t("all")}
|
||||
@@ -91,7 +91,7 @@ export const TeamsFilter = ({
|
||||
|
||||
<FilterCheckboxField
|
||||
id="yours"
|
||||
icon={<Icon name="user" className="h-4 w-4" />}
|
||||
icon={<UserIcon className="h-4 w-4" />}
|
||||
checked={!!isUserInQuery}
|
||||
onChange={(e) => {
|
||||
if (e.target.checked) {
|
||||
|
||||
@@ -13,9 +13,9 @@ import { AddressInput } from "@calcom/ui/components/address";
|
||||
import { InfoBadge } from "@calcom/ui/components/badge";
|
||||
import { Button } from "@calcom/ui/components/button";
|
||||
import { Label, CheckboxField, EmailField, InputField, Checkbox } from "@calcom/ui/components/form";
|
||||
import { Icon } from "@calcom/ui/components/icon";
|
||||
import { RadioGroup, RadioField } from "@calcom/ui/components/radio";
|
||||
import { Tooltip } from "@calcom/ui/components/tooltip";
|
||||
import { XIcon } from "@coss/ui/icons";
|
||||
|
||||
import { ComponentForField } from "./FormBuilderField";
|
||||
import { propsTypes } from "@calcom/features/form-builder/propsTypes";
|
||||
@@ -277,7 +277,7 @@ export const Components: Record<FieldType, Component> = {
|
||||
!readOnly ? (
|
||||
<Tooltip content="Remove email">
|
||||
<button className="m-1" type="button">
|
||||
<Icon name="x" width={12} className="text-default" />
|
||||
<XIcon size={12} className="text-default" />
|
||||
</button>
|
||||
</Tooltip>
|
||||
) : null
|
||||
|
||||
@@ -8,7 +8,7 @@ import { markdownToSafeHTML } from "@calcom/lib/markdownToSafeHTML";
|
||||
import classNames from "@calcom/ui/classNames";
|
||||
import { InfoBadge } from "@calcom/ui/components/badge";
|
||||
import { Label } from "@calcom/ui/components/form";
|
||||
import { Icon } from "@calcom/ui/components/icon";
|
||||
import { InfoIcon } from "@coss/ui/icons";
|
||||
|
||||
import { Components, isValidValueProp } from "./Components";
|
||||
import { fieldTypesConfigMap } from "@calcom/features/form-builder/fieldTypes";
|
||||
@@ -125,7 +125,7 @@ export const FormBuilderField = ({
|
||||
<div
|
||||
data-testid={`error-message-${field.name}`}
|
||||
className="mt-2 flex items-center text-sm text-red-700 ">
|
||||
<Icon name="info" className="h-3 w-3 ltr:mr-2 rtl:ml-2" />
|
||||
<InfoIcon className="h-3 w-3 ltr:mr-2 rtl:ml-2" />
|
||||
<p>{t(message || "invalid_input")}</p>
|
||||
</div>
|
||||
);
|
||||
|
||||
@@ -16,7 +16,7 @@ import classNames from "@calcom/ui/classNames";
|
||||
import { Button } from "@calcom/ui/components/button";
|
||||
import { StepCard } from "@calcom/ui/components/card";
|
||||
import { Steps } from "@calcom/ui/components/form";
|
||||
import { Icon } from "@calcom/ui/components/icon";
|
||||
import { LoaderIcon } from "@coss/ui/icons";
|
||||
|
||||
import { ConnectedCalendars } from "@components/getting-started/steps-views/ConnectCalendars";
|
||||
import { ConnectedVideoStep } from "@components/getting-started/steps-views/ConnectedVideoStep";
|
||||
@@ -176,7 +176,7 @@ const OnboardingPage = (props: PageProps) => {
|
||||
<Steps maxSteps={steps.length} currentStep={currentStepIndex + 1} navigateToStep={goToStep} />
|
||||
</div>
|
||||
<StepCard>
|
||||
<Suspense fallback={<Icon name="loader" />}>
|
||||
<Suspense fallback={<LoaderIcon />}>
|
||||
{currentStep === "user-settings" && (
|
||||
<UserSettings nextStep={goToNextStep} hideUsername={from === "signup"} user={user} />
|
||||
)}
|
||||
|
||||
@@ -13,7 +13,7 @@ import {
|
||||
HoverCardTrigger,
|
||||
HoverCardPortal,
|
||||
} from "@calcom/ui/components/hover-card";
|
||||
import { Icon } from "@calcom/ui/components/icon";
|
||||
import { CopyIcon } from "@coss/ui/icons";
|
||||
|
||||
import type { RoutingFormTableRow } from "@calcom/web/modules/insights/lib/types";
|
||||
import { BookingStatusBadge } from "./BookingStatusBadge";
|
||||
@@ -52,7 +52,7 @@ export function BookingAtCell({ row, rowId }: { row: RoutingFormTableRow; rowId:
|
||||
e.stopPropagation();
|
||||
copyToClipboard(row.bookingUserEmail ?? "");
|
||||
}}>
|
||||
<Icon name="copy" />
|
||||
<CopyIcon />
|
||||
</button>
|
||||
</p>
|
||||
</div>
|
||||
|
||||
@@ -6,8 +6,8 @@ import { useDataTable } from "@calcom/features/data-table";
|
||||
import NoSSR from "@calcom/lib/components/NoSSR";
|
||||
import { useLocale } from "@calcom/lib/hooks/useLocale";
|
||||
import { CURRENT_TIMEZONE } from "@calcom/lib/timezoneConstants";
|
||||
import { Icon } from "@calcom/ui/components/icon";
|
||||
import { Tooltip } from "@calcom/ui/components/tooltip";
|
||||
import { InfoIcon } from "@coss/ui/icons";
|
||||
|
||||
const TimezoneBadgeContent = () => {
|
||||
const { t } = useLocale();
|
||||
@@ -40,7 +40,7 @@ const TimezoneBadgeContent = () => {
|
||||
|
||||
return (
|
||||
<Tooltip content={timezoneData.tooltipContent}>
|
||||
<Icon name="info" data-testid="timezone-mismatch-badge" className="text-subtle" />
|
||||
<InfoIcon data-testid="timezone-mismatch-badge" className="text-subtle" />
|
||||
</Tooltip>
|
||||
);
|
||||
};
|
||||
|
||||
@@ -3,8 +3,8 @@ import { useState } from "react";
|
||||
import { useLocale } from "@calcom/lib/hooks/useLocale";
|
||||
import { Button } from "@calcom/ui/components/button";
|
||||
import { Command, CommandList, CommandItem } from "@calcom/ui/components/command";
|
||||
import { Icon } from "@calcom/ui/components/icon";
|
||||
import { Popover, PopoverTrigger, PopoverContent } from "@calcom/ui/components/popover";
|
||||
import { CheckIcon } from "@coss/ui/icons";
|
||||
|
||||
export type DateTarget = "startTime" | "createdAt";
|
||||
|
||||
@@ -66,7 +66,7 @@ export const DateTargetSelector = ({ value, onChange }: DateTargetSelectorProps)
|
||||
<div className="text-muted-foreground text-sm">{option.description}</div>
|
||||
</div>
|
||||
{selectedOption.value === option.value && (
|
||||
<Icon name="check" className="text-primary-foreground h-4 w-4" />
|
||||
<CheckIcon className="text-primary-foreground h-4 w-4" />
|
||||
)}
|
||||
</CommandItem>
|
||||
))}
|
||||
|
||||
@@ -8,8 +8,8 @@ import { trpc } from "@calcom/trpc/react";
|
||||
import { Avatar } from "@calcom/ui/components/avatar";
|
||||
import { Divider } from "@calcom/ui/components/divider";
|
||||
import { FilterSearchField } from "@calcom/ui/components/form";
|
||||
import { Icon } from "@calcom/ui/components/icon";
|
||||
import { AnimatedPopover } from "@calcom/ui/components/popover";
|
||||
import { LayersIcon } from "@coss/ui/icons";
|
||||
|
||||
import { useInsightsOrgTeams } from "../../hooks/useInsightsOrgTeams";
|
||||
|
||||
@@ -97,7 +97,7 @@ export const OrgTeamsFilter = () => {
|
||||
<FilterCheckboxField
|
||||
id="all"
|
||||
testId="org-teams-filter-item"
|
||||
icon={<Icon name="layers" className="h-4 w-4" />}
|
||||
icon={<LayersIcon className="h-4 w-4" />}
|
||||
checked={orgTeamsType === "org"}
|
||||
onChange={(e) => {
|
||||
if (e.target.checked) {
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import { useLocale } from "@calcom/lib/hooks/useLocale";
|
||||
import { Button } from "@calcom/ui/components/button";
|
||||
import { Input, Select, Switch } from "@calcom/ui/components/form";
|
||||
import { Icon } from "@calcom/ui/components/icon";
|
||||
import { ArrowRightIcon, LinkIcon } from "@coss/ui/icons";
|
||||
|
||||
import { getDefaultFieldMapping } from "@calcom/features/ee/integration-attribute-sync/lib/fieldMappingHelpers";
|
||||
import type {
|
||||
@@ -72,7 +72,7 @@ const MappingRow = ({ mapping, onChange, onRemove, attributeOptions, isLoading,
|
||||
/>
|
||||
</div>
|
||||
|
||||
<Icon name="arrow-right" className="text-subtle h-4 w-4" />
|
||||
<ArrowRightIcon className="text-subtle h-4 w-4" />
|
||||
|
||||
<div className="flex-1" style={{ minWidth: "200px" }}>
|
||||
<Select
|
||||
@@ -155,7 +155,7 @@ export const FieldMappingBuilder = ({
|
||||
<div className="bg-default border-subtle rounded-2xl border p-2">
|
||||
<div className="ml-2 flex items-center gap-0.5">
|
||||
<div className="border-subtle rounded-lg border p-1">
|
||||
<Icon name="link" className="text-subtle h-4 w-4" />
|
||||
<LinkIcon className="text-subtle h-4 w-4" />
|
||||
</div>
|
||||
<span className="text-emphasis ml-2 text-sm font-medium">{t("attribute_sync_field_mappings")}</span>
|
||||
</div>
|
||||
|
||||
+2
-2
@@ -8,7 +8,7 @@ import { Button } from "@calcom/ui/components/button";
|
||||
import { FormCard, FormCardBody } from "@calcom/ui/components/card";
|
||||
import { ConfirmationDialogContent } from "@calcom/ui/components/dialog";
|
||||
import { SelectField, Switch } from "@calcom/ui/components/form";
|
||||
import { Icon } from "@calcom/ui/components/icon";
|
||||
import { KeyIcon } from "@coss/ui/icons";
|
||||
|
||||
import {
|
||||
type IntegrationAttributeSync,
|
||||
@@ -161,7 +161,7 @@ const IntegrationAttributeSyncCard = (props: IIntegrationAttributeSyncCardProps)
|
||||
<div className="bg-default border-subtle rounded-2xl border p-2">
|
||||
<div className="ml-2 flex items-center gap-0.5">
|
||||
<div className="border-subtle rounded-lg border p-1">
|
||||
<Icon name="key" className="text-subtle h-4 w-4" />
|
||||
<KeyIcon className="text-subtle h-4 w-4" />
|
||||
</div>
|
||||
<span className="text-emphasis ml-2 text-sm font-medium">
|
||||
{t("attribute_sync_credential")}
|
||||
|
||||
@@ -4,7 +4,7 @@ import { useLocale } from "@calcom/lib/hooks/useLocale";
|
||||
import type { Attribute } from "@calcom/app-store/routing-forms/types/types";
|
||||
import { Button } from "@calcom/ui/components/button";
|
||||
import { Input, Select } from "@calcom/ui/components/form";
|
||||
import { Icon } from "@calcom/ui/components/icon";
|
||||
import { FilterIcon } from "@coss/ui/icons";
|
||||
|
||||
import {
|
||||
formatConditionValue,
|
||||
@@ -450,7 +450,7 @@ export const RuleBuilder = ({
|
||||
<div className="bg-default border-subtle rounded-2xl border p-2">
|
||||
<div className="ml-2 flex items-center gap-0.5">
|
||||
<div className="border-subtle rounded-lg border p-1">
|
||||
<Icon name="filter" className="text-subtle h-4 w-4" />
|
||||
<FilterIcon className="text-subtle h-4 w-4" />
|
||||
</div>
|
||||
<span className="text-emphasis ml-2 text-sm font-medium">
|
||||
{t("attribute_sync_user_filter_rules")}
|
||||
|
||||
@@ -5,7 +5,7 @@ import { useFormContext } from "react-hook-form";
|
||||
import { useLocale } from "@calcom/lib/hooks/useLocale";
|
||||
import { Button } from "@calcom/ui/components/button";
|
||||
import { Label, TextField, Select } from "@calcom/ui/components/form";
|
||||
import { Icon } from "@calcom/ui/components/icon";
|
||||
import { XIcon } from "@coss/ui/icons";
|
||||
|
||||
import type { InviteRole } from "../store/onboarding-store";
|
||||
|
||||
@@ -98,7 +98,7 @@ export function EmailInviteForm({
|
||||
className="h-7 w-7"
|
||||
disabled={fields.length === 1}
|
||||
onClick={() => remove(index)}>
|
||||
<Icon name="x" className="h-4 w-4" />
|
||||
<XIcon className="h-4 w-4" />
|
||||
</Button>
|
||||
</div>
|
||||
))}
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
import { useFlags } from "@calcom/web/modules/feature-flags/hooks/useFlags";
|
||||
import { useLocale } from "@calcom/lib/hooks/useLocale";
|
||||
import { Button } from "@calcom/ui/components/button";
|
||||
import { Icon } from "@calcom/ui/components/icon";
|
||||
import { LinkIcon, MailIcon, UploadIcon } from "@coss/ui/icons";
|
||||
|
||||
const GoogleIcon = () => (
|
||||
<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
@@ -68,7 +68,7 @@ export const InviteOptions = ({
|
||||
onClick={onInviteViaEmail}
|
||||
disabled={isSubmitting}>
|
||||
<div className="flex items-center gap-1">
|
||||
<Icon name="mail" className="h-4 w-4" />
|
||||
<MailIcon className="h-4 w-4" />
|
||||
<span>{t("invite_via_email")}</span>
|
||||
</div>
|
||||
</Button>
|
||||
@@ -80,7 +80,7 @@ export const InviteOptions = ({
|
||||
onClick={onUploadCSV}
|
||||
disabled={isSubmitting}>
|
||||
<div className="flex items-center gap-1">
|
||||
<Icon name="upload" className="h-4 w-4" />
|
||||
<UploadIcon className="h-4 w-4" />
|
||||
<span>{t("upload_csv_file")}</span>
|
||||
</div>
|
||||
</Button>
|
||||
@@ -93,7 +93,7 @@ export const InviteOptions = ({
|
||||
onClick={onCopyInviteLink}
|
||||
disabled>
|
||||
<div className="flex items-center gap-1">
|
||||
<Icon name="link" className="h-4 w-4" />
|
||||
<LinkIcon className="h-4 w-4" />
|
||||
<span>{t("copy_invite_link")}</span>
|
||||
</div>
|
||||
</Button>
|
||||
|
||||
@@ -5,7 +5,7 @@ import { useEffect, useState } from "react";
|
||||
|
||||
import { useLocale } from "@calcom/lib/hooks/useLocale";
|
||||
import { Button } from "@calcom/ui/components/button";
|
||||
import { Icon } from "@calcom/ui/components/icon";
|
||||
import { XIcon } from "@coss/ui/icons";
|
||||
|
||||
import { useOnboardingStore } from "../store/onboarding-store";
|
||||
|
||||
@@ -68,7 +68,7 @@ export const OnboardingContinuationPrompt = () => {
|
||||
<button
|
||||
onClick={() => setIsVisible(false)}
|
||||
className="text-muted hover:text-emphasis absolute right-2 top-2 rounded-md p-1 transition-colors">
|
||||
<Icon name="x" className="h-4 w-4" />
|
||||
<XIcon className="h-4 w-4" />
|
||||
</button>
|
||||
|
||||
<div className="mb-3 pr-6">
|
||||
|
||||
@@ -7,7 +7,15 @@ import { subdomainSuffix } from "@calcom/features/ee/organizations/lib/orgDomain
|
||||
import { useLocale } from "@calcom/lib/hooks/useLocale";
|
||||
import { Avatar } from "@calcom/ui/components/avatar";
|
||||
import { Badge } from "@calcom/ui/components/badge";
|
||||
import { Icon } from "@calcom/ui/components/icon";
|
||||
import {
|
||||
ArrowLeftIcon,
|
||||
ArrowRightIcon,
|
||||
CheckIcon,
|
||||
EllipsisVerticalIcon,
|
||||
LockIcon,
|
||||
RotateCwIcon,
|
||||
UserPlusIcon,
|
||||
} from "@coss/ui/icons";
|
||||
|
||||
type MigratedMember = {
|
||||
email: string;
|
||||
@@ -59,15 +67,15 @@ export const OnboardingMigrateMembersBrowserView = ({
|
||||
<div className="border-subtle bg-default flex min-w-0 shrink-0 items-center gap-3 rounded-t-2xl border-b p-3">
|
||||
{/* Navigation buttons */}
|
||||
<div className="flex shrink-0 items-center gap-4 opacity-50">
|
||||
<Icon name="arrow-left" className="text-subtle h-4 w-4" />
|
||||
<Icon name="arrow-right" className="text-subtle h-4 w-4" />
|
||||
<Icon name="rotate-cw" className="text-subtle h-4 w-4" />
|
||||
<ArrowLeftIcon className="text-subtle h-4 w-4" />
|
||||
<ArrowRightIcon className="text-subtle h-4 w-4" />
|
||||
<RotateCwIcon className="text-subtle h-4 w-4" />
|
||||
</div>
|
||||
<div className="bg-cal-muted flex w-full min-w-0 items-center gap-2 rounded-[32px] px-3 py-2">
|
||||
<Icon name="lock" className="text-subtle h-4 w-4" />
|
||||
<LockIcon className="text-subtle h-4 w-4" />
|
||||
<p className="text-default truncate text-sm font-medium leading-tight">{displayUrl}/members</p>
|
||||
</div>
|
||||
<Icon name="ellipsis-vertical" className="text-subtle h-4 w-4" />
|
||||
<EllipsisVerticalIcon className="text-subtle h-4 w-4" />
|
||||
</div>
|
||||
|
||||
{/* Content */}
|
||||
@@ -159,7 +167,7 @@ export const OnboardingMigrateMembersBrowserView = ({
|
||||
</div>
|
||||
<p className="text-muted text-xs font-medium leading-tight">{member.email}</p>
|
||||
</div>
|
||||
<Icon name="check" className="text-emphasis h-5 w-5" />
|
||||
<CheckIcon className="text-emphasis h-5 w-5" />
|
||||
</div>
|
||||
</div>
|
||||
))}
|
||||
@@ -167,7 +175,7 @@ export const OnboardingMigrateMembersBrowserView = ({
|
||||
) : (
|
||||
<div className="flex flex-col items-center justify-center gap-3 px-5 py-12">
|
||||
<div className="bg-cal-muted flex h-16 w-16 items-center justify-center rounded-full">
|
||||
<Icon name="user-plus" className="text-subtle h-8 w-8" />
|
||||
<UserPlusIcon className="text-subtle h-8 w-8" />
|
||||
</div>
|
||||
<div className="flex flex-col gap-1 text-center">
|
||||
<p className="text-default truncate text-sm font-semibold leading-tight">
|
||||
|
||||
@@ -7,7 +7,15 @@ import { subdomainSuffix } from "@calcom/features/ee/organizations/lib/orgDomain
|
||||
import { useLocale } from "@calcom/lib/hooks/useLocale";
|
||||
import { Avatar } from "@calcom/ui/components/avatar";
|
||||
import { Badge } from "@calcom/ui/components/badge";
|
||||
import { Icon } from "@calcom/ui/components/icon";
|
||||
import {
|
||||
ArrowLeftIcon,
|
||||
ArrowRightIcon,
|
||||
CheckIcon,
|
||||
EllipsisVerticalIcon,
|
||||
LockIcon,
|
||||
RotateCwIcon,
|
||||
UsersIcon,
|
||||
} from "@coss/ui/icons";
|
||||
|
||||
type OnboardingMigrateTeamsBrowserViewProps = {
|
||||
teams: Array<{ id: number; name: string; slug: string | null; isSelected?: boolean }>;
|
||||
@@ -52,15 +60,15 @@ export const OnboardingMigrateTeamsBrowserView = ({
|
||||
<div className="border-subtle bg-default flex min-w-0 shrink-0 items-center gap-3 rounded-t-2xl border-b p-3">
|
||||
{/* Navigation buttons */}
|
||||
<div className="flex shrink-0 items-center gap-4 opacity-50">
|
||||
<Icon name="arrow-left" className="text-subtle h-4 w-4" />
|
||||
<Icon name="arrow-right" className="text-subtle h-4 w-4" />
|
||||
<Icon name="rotate-cw" className="text-subtle h-4 w-4" />
|
||||
<ArrowLeftIcon className="text-subtle h-4 w-4" />
|
||||
<ArrowRightIcon className="text-subtle h-4 w-4" />
|
||||
<RotateCwIcon className="text-subtle h-4 w-4" />
|
||||
</div>
|
||||
<div className="bg-cal-muted flex w-full min-w-0 items-center gap-2 rounded-[32px] px-3 py-2">
|
||||
<Icon name="lock" className="text-subtle h-4 w-4" />
|
||||
<LockIcon className="text-subtle h-4 w-4" />
|
||||
<p className="text-default truncate text-sm font-medium leading-tight">{displayUrl}/teams</p>
|
||||
</div>
|
||||
<Icon name="ellipsis-vertical" className="text-subtle h-4 w-4" />
|
||||
<EllipsisVerticalIcon className="text-subtle h-4 w-4" />
|
||||
</div>
|
||||
|
||||
{/* Content */}
|
||||
@@ -158,9 +166,9 @@ export const OnboardingMigrateTeamsBrowserView = ({
|
||||
</p>
|
||||
</div>
|
||||
{team.isSelected ? (
|
||||
<Icon name="check" className="text-emphasis h-5 w-5" />
|
||||
<CheckIcon className="text-emphasis h-5 w-5" />
|
||||
) : (
|
||||
<Icon name="arrow-right" className="text-subtle h-4 w-4" />
|
||||
<ArrowRightIcon className="text-subtle h-4 w-4" />
|
||||
)}
|
||||
</div>
|
||||
</div>
|
||||
@@ -169,7 +177,7 @@ export const OnboardingMigrateTeamsBrowserView = ({
|
||||
) : (
|
||||
<div className="flex flex-col items-center justify-center gap-3 px-5 py-12">
|
||||
<div className="bg-cal-muted flex h-16 w-16 items-center justify-center rounded-full">
|
||||
<Icon name="users" className="text-subtle h-8 w-8" />
|
||||
<UsersIcon className="text-subtle h-8 w-8" />
|
||||
</div>
|
||||
<div className="flex flex-col gap-1 text-center">
|
||||
<p className="text-default truncate text-sm font-semibold leading-tight">
|
||||
|
||||
@@ -7,7 +7,15 @@ import { subdomainSuffix } from "@calcom/features/ee/organizations/lib/orgDomain
|
||||
import { useLocale } from "@calcom/lib/hooks/useLocale";
|
||||
import { Avatar } from "@calcom/ui/components/avatar";
|
||||
import { Badge } from "@calcom/ui/components/badge";
|
||||
import { Icon } from "@calcom/ui/components/icon";
|
||||
import {
|
||||
ArrowLeftIcon,
|
||||
ArrowRightIcon,
|
||||
CheckIcon,
|
||||
EllipsisVerticalIcon,
|
||||
LockIcon,
|
||||
RotateCwIcon,
|
||||
UsersIcon,
|
||||
} from "@coss/ui/icons";
|
||||
|
||||
type OnboardingTeamsBrowserViewProps = {
|
||||
teams: Array<{ name: string; slug?: string | null; isMigrated?: boolean }>;
|
||||
@@ -53,15 +61,15 @@ export const OnboardingTeamsBrowserView = ({
|
||||
<div className="border-subtle bg-default flex min-w-0 shrink-0 items-center gap-3 rounded-t-2xl border-b p-3">
|
||||
{/* Navigation buttons */}
|
||||
<div className="flex shrink-0 items-center gap-4 opacity-50">
|
||||
<Icon name="arrow-left" className="text-subtle h-4 w-4" />
|
||||
<Icon name="arrow-right" className="text-subtle h-4 w-4" />
|
||||
<Icon name="rotate-cw" className="text-subtle h-4 w-4" />
|
||||
<ArrowLeftIcon className="text-subtle h-4 w-4" />
|
||||
<ArrowRightIcon className="text-subtle h-4 w-4" />
|
||||
<RotateCwIcon className="text-subtle h-4 w-4" />
|
||||
</div>
|
||||
<div className="bg-cal-muted flex w-full min-w-0 items-center gap-2 rounded-[32px] px-3 py-2">
|
||||
<Icon name="lock" className="text-subtle h-4 w-4" />
|
||||
<LockIcon className="text-subtle h-4 w-4" />
|
||||
<p className="text-default truncate text-sm font-medium leading-tight">{displayUrl}/teams</p>
|
||||
</div>
|
||||
<Icon name="ellipsis-vertical" className="text-subtle h-4 w-4" />
|
||||
<EllipsisVerticalIcon className="text-subtle h-4 w-4" />
|
||||
</div>
|
||||
|
||||
{/* Content */}
|
||||
@@ -155,9 +163,9 @@ export const OnboardingTeamsBrowserView = ({
|
||||
</p>
|
||||
</div>
|
||||
{team.isMigrated ? (
|
||||
<Icon name="check" className="text-emphasis h-5 w-5" />
|
||||
<CheckIcon className="text-emphasis h-5 w-5" />
|
||||
) : (
|
||||
<Icon name="arrow-right" className="text-subtle h-4 w-4" />
|
||||
<ArrowRightIcon className="text-subtle h-4 w-4" />
|
||||
)}
|
||||
</div>
|
||||
</div>
|
||||
@@ -165,7 +173,7 @@ export const OnboardingTeamsBrowserView = ({
|
||||
) : (
|
||||
<div className="flex flex-col items-center justify-center gap-3 px-5 py-12">
|
||||
<div className="bg-cal-muted flex h-16 w-16 items-center justify-center rounded-full">
|
||||
<Icon name="users" className="text-subtle h-8 w-8" />
|
||||
<UsersIcon className="text-subtle h-8 w-8" />
|
||||
</div>
|
||||
<div className="flex flex-col gap-1 text-center">
|
||||
<p className="text-default truncate text-sm font-semibold leading-tight">
|
||||
|
||||
@@ -4,7 +4,7 @@ import { useCallback, useEffect, useRef, useState, useTransition } from "react";
|
||||
|
||||
import classNames from "@calcom/ui/classNames";
|
||||
import { Label, TextField } from "@calcom/ui/components/form";
|
||||
import { Icon } from "@calcom/ui/components/icon";
|
||||
import { LoaderIcon } from "@coss/ui/icons";
|
||||
|
||||
import { checkSlugAvailability } from "./action/check-slug-availability";
|
||||
|
||||
@@ -84,7 +84,7 @@ export function ValidatedOrganizationSlug({
|
||||
addOnSuffix={
|
||||
<div className="flex items-center gap-2">
|
||||
{validationState === "checking" && (
|
||||
<Icon name="loader" className="text-subtle h-3 w-3 animate-spin" />
|
||||
<LoaderIcon className="text-subtle h-3 w-3 animate-spin" />
|
||||
)}
|
||||
<span className="text-subtle text-sm">.cal.com</span>
|
||||
</div>
|
||||
|
||||
@@ -6,8 +6,8 @@ import React, { useRef, useState } from "react";
|
||||
import { useLocale } from "@calcom/lib/hooks/useLocale";
|
||||
import { Button } from "@calcom/ui/components/button";
|
||||
import { Dialog, DialogContent } from "@calcom/ui/components/dialog";
|
||||
import { Icon } from "@calcom/ui/components/icon";
|
||||
import { Logo } from "@calcom/ui/components/logo";
|
||||
import { DownloadIcon, FileTextIcon, UploadIcon } from "@coss/ui/icons";
|
||||
import { showToast } from "@calcom/ui/components/toast";
|
||||
|
||||
import { useOnboardingStore, type Invite } from "../../store/onboarding-store";
|
||||
@@ -157,7 +157,7 @@ export const OrganizationCSVUploadModal = ({ isOpen, onClose }: OrganizationCSVU
|
||||
{selectedFile ? (
|
||||
<div className="flex flex-col items-center gap-3">
|
||||
<div className="from-default to-muted border-subtle flex items-center justify-center rounded-full border bg-gradient-to-b p-4 shadow-sm">
|
||||
<Icon name="file-text" className="text-emphasis" style={{ width: 32, height: 32 }} />
|
||||
<FileTextIcon className="text-emphasis" size={32} />
|
||||
</div>
|
||||
<div className="flex flex-col items-center gap-1">
|
||||
<p className="text-emphasis text-sm font-medium">{selectedFile.name}</p>
|
||||
@@ -167,11 +167,7 @@ export const OrganizationCSVUploadModal = ({ isOpen, onClose }: OrganizationCSVU
|
||||
) : (
|
||||
<div className="flex flex-col items-center gap-3">
|
||||
<div className="from-default to-muted border-subtle flex items-center justify-center rounded-full border bg-gradient-to-b p-4 shadow-sm">
|
||||
<Icon
|
||||
name="upload"
|
||||
className="text-emphasis opacity-70"
|
||||
style={{ width: 32, height: 32 }}
|
||||
/>
|
||||
<UploadIcon className="text-emphasis opacity-70" size={32} />
|
||||
</div>
|
||||
<p className="text-subtle text-center text-sm">{t("upload_csv_subtitle")}</p>
|
||||
</div>
|
||||
@@ -187,7 +183,7 @@ export const OrganizationCSVUploadModal = ({ isOpen, onClose }: OrganizationCSVU
|
||||
<div className="mb-2 flex flex-col gap-3">
|
||||
<div className="bg-cal-muted border-subtle flex items-center gap-3 rounded-lg border p-4">
|
||||
<div className="from-default to-muted border-subtle flex items-center justify-center rounded-full border bg-gradient-to-b p-2 shadow-sm">
|
||||
<Icon name="download" className="text-emphasis" style={{ width: 16, height: 16 }} />
|
||||
<DownloadIcon className="text-emphasis" size={16} />
|
||||
</div>
|
||||
<div className="flex-1">
|
||||
<p className="text-emphasis text-sm font-medium">{t("need_template")}</p>
|
||||
@@ -200,7 +196,7 @@ export const OrganizationCSVUploadModal = ({ isOpen, onClose }: OrganizationCSVU
|
||||
|
||||
<div className="bg-cal-muted border-subtle flex items-center gap-3 rounded-lg border p-4">
|
||||
<div className="from-default to-muted border-subtle flex items-center justify-center rounded-full border bg-gradient-to-b p-2 shadow-sm">
|
||||
<Icon name="upload" className="text-emphasis" style={{ width: 16, height: 16 }} />
|
||||
<UploadIcon className="text-emphasis" size={16} />
|
||||
</div>
|
||||
<div className="flex-1">
|
||||
<p className="text-emphasis text-sm font-medium">{t("upload_your_file")}</p>
|
||||
|
||||
@@ -11,7 +11,7 @@ import slugify from "@calcom/lib/slugify";
|
||||
import { Badge } from "@calcom/ui/components/badge";
|
||||
import { Button } from "@calcom/ui/components/button";
|
||||
import { Form, TextField } from "@calcom/ui/components/form";
|
||||
import { Icon } from "@calcom/ui/components/icon";
|
||||
import { XIcon } from "@coss/ui/icons";
|
||||
|
||||
import { OnboardingCard } from "../../components/OnboardingCard";
|
||||
import { OnboardingLayout } from "../../components/OnboardingLayout";
|
||||
@@ -200,7 +200,7 @@ export const OrganizationTeamsView = ({ userEmail }: OrganizationTeamsViewProps)
|
||||
});
|
||||
remove(index);
|
||||
}}>
|
||||
<Icon name="x" className="h-4 w-4" />
|
||||
<XIcon className="h-4 w-4" />
|
||||
</Button>
|
||||
</div>
|
||||
))}
|
||||
|
||||
@@ -8,7 +8,7 @@ import { useLocale } from "@calcom/lib/hooks/useLocale";
|
||||
import slugify from "@calcom/lib/slugify";
|
||||
import classNames from "@calcom/ui/classNames";
|
||||
import { Label, TextField } from "@calcom/ui/components/form";
|
||||
import { Icon } from "@calcom/ui/components/icon";
|
||||
import { LoaderIcon } from "@coss/ui/icons";
|
||||
|
||||
import { checkTeamSlugAvailability } from "./action/check-team-slug-availability";
|
||||
|
||||
@@ -100,7 +100,7 @@ export function ValidatedTeamSlug({ value, onChange, onValidationChange }: Valid
|
||||
addOnLeading={urlPrefix}
|
||||
addOnSuffix={
|
||||
validationState === "checking" ? (
|
||||
<Icon name="loader" className="text-subtle h-3 w-3 animate-spin" />
|
||||
<LoaderIcon className="text-subtle h-3 w-3 animate-spin" />
|
||||
) : undefined
|
||||
}
|
||||
className={classNames(validationState === "taken" ? "border-error" : "")}
|
||||
|
||||
@@ -6,8 +6,8 @@ import React, { useRef, useState } from "react";
|
||||
import { useLocale } from "@calcom/lib/hooks/useLocale";
|
||||
import { Button } from "@calcom/ui/components/button";
|
||||
import { Dialog, DialogContent } from "@calcom/ui/components/dialog";
|
||||
import { Icon } from "@calcom/ui/components/icon";
|
||||
import { Logo } from "@calcom/ui/components/logo";
|
||||
import { DownloadIcon, FileTextIcon, UploadIcon } from "@coss/ui/icons";
|
||||
import { showToast } from "@calcom/ui/components/toast";
|
||||
|
||||
import { useOnboardingStore, type Invite } from "../../store/onboarding-store";
|
||||
@@ -156,7 +156,7 @@ export const CSVUploadModal = ({ isOpen, onClose }: CSVUploadModalProps) => {
|
||||
{selectedFile ? (
|
||||
<div className="flex flex-col items-center gap-3">
|
||||
<div className="from-default to-muted border-subtle flex items-center justify-center rounded-full border bg-gradient-to-b p-4 shadow-sm">
|
||||
<Icon name="file-text" className="text-emphasis" style={{ width: 32, height: 32 }} />
|
||||
<FileTextIcon className="text-emphasis" size={32} />
|
||||
</div>
|
||||
<div className="flex flex-col items-center gap-1">
|
||||
<p className="text-emphasis text-sm font-medium">{selectedFile.name}</p>
|
||||
@@ -166,11 +166,7 @@ export const CSVUploadModal = ({ isOpen, onClose }: CSVUploadModalProps) => {
|
||||
) : (
|
||||
<div className="flex flex-col items-center gap-3">
|
||||
<div className="from-default to-muted border-subtle flex items-center justify-center rounded-full border bg-gradient-to-b p-4 shadow-sm">
|
||||
<Icon
|
||||
name="upload"
|
||||
className="text-emphasis opacity-70"
|
||||
style={{ width: 32, height: 32 }}
|
||||
/>
|
||||
<UploadIcon className="text-emphasis opacity-70" size={32} />
|
||||
</div>
|
||||
<p className="text-subtle text-center text-sm">{t("upload_csv_subtitle")}</p>
|
||||
</div>
|
||||
@@ -187,7 +183,7 @@ export const CSVUploadModal = ({ isOpen, onClose }: CSVUploadModalProps) => {
|
||||
{/* Download template */}
|
||||
<div className="bg-cal-muted border-subtle flex items-center gap-3 rounded-lg border p-4">
|
||||
<div className="from-default to-muted border-subtle flex items-center justify-center rounded-full border bg-gradient-to-b p-2 shadow-sm">
|
||||
<Icon name="download" className="text-emphasis" style={{ width: 16, height: 16 }} />
|
||||
<DownloadIcon className="text-emphasis" size={16} />
|
||||
</div>
|
||||
<div className="flex-1">
|
||||
<p className="text-emphasis text-sm font-medium">{t("need_template")}</p>
|
||||
@@ -201,7 +197,7 @@ export const CSVUploadModal = ({ isOpen, onClose }: CSVUploadModalProps) => {
|
||||
{/* File upload */}
|
||||
<div className="bg-cal-muted border-subtle flex items-center gap-3 rounded-lg border p-4">
|
||||
<div className="from-default to-muted border-subtle flex items-center justify-center rounded-full border bg-gradient-to-b p-2 shadow-sm">
|
||||
<Icon name="upload" className="text-emphasis" style={{ width: 16, height: 16 }} />
|
||||
<UploadIcon className="text-emphasis" size={16} />
|
||||
</div>
|
||||
<div className="flex-1">
|
||||
<p className="text-emphasis text-sm font-medium">{t("upload_your_file")}</p>
|
||||
|
||||
Loaded 100 of 192 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user