No more modules folder 🔥 (#6158)
Co-authored-by: Peer Richelsen <[email protected]>
This commit is contained in:
1 parent
2fe9c782d4
commit
9d0cf6be0b
26 files changed
+29
-44
No files matched your search
@@ -7,8 +7,7 @@ import { HOSTED_CAL_FEATURES } from "@calcom/lib/constants";
|
||||
import { useLocale } from "@calcom/lib/hooks/useLocale";
|
||||
import { collectPageParameters, telemetryEventTypes, useTelemetry } from "@calcom/lib/telemetry";
|
||||
import { trpc } from "@calcom/trpc/react";
|
||||
|
||||
import { Button, Icon } from "../../..";
|
||||
import { Button, Icon } from "@calcom/ui";
|
||||
|
||||
interface Props {
|
||||
samlTenantID: string;
|
||||
@@ -20,7 +19,7 @@ const schema = z.object({
|
||||
email: z.string().email({ message: "Please enter a valid email" }),
|
||||
});
|
||||
|
||||
export default function SAMLLogin({ samlTenantID, samlProductID, setErrorMessage }: Props) {
|
||||
export function SAMLLogin({ samlTenantID, samlProductID, setErrorMessage }: Props) {
|
||||
const { t } = useLocale();
|
||||
const methods = useFormContext();
|
||||
const telemetry = useTelemetry();
|
||||
+1
-3
@@ -6,9 +6,7 @@ import classNames from "@calcom/lib/classNames";
|
||||
import { daysInMonth, yyyymmdd } from "@calcom/lib/date-fns";
|
||||
import { useLocale } from "@calcom/lib/hooks/useLocale";
|
||||
import { weekdayNames } from "@calcom/lib/weekday";
|
||||
import { Button, Icon } from "@calcom/ui";
|
||||
|
||||
import { SkeletonText } from "../../..";
|
||||
import { Button, Icon, SkeletonText } from "@calcom/ui";
|
||||
|
||||
export type DatePickerProps = {
|
||||
/** which day of the week to render the calendar. Usually Sunday (=0) or Monday (=1) - default: Sunday */
|
||||
+1
-2
@@ -3,8 +3,7 @@ import { Props } from "react-select";
|
||||
|
||||
import { classNames } from "@calcom/lib";
|
||||
import { useLocale } from "@calcom/lib/hooks/useLocale";
|
||||
|
||||
import { Avatar, Icon, Select } from "../../..";
|
||||
import { Avatar, Icon, Select } from "@calcom/ui";
|
||||
|
||||
type CheckedSelectOption = {
|
||||
avatar: string;
|
||||
+1
-2
@@ -1,6 +1,5 @@
|
||||
import { useLocale } from "@calcom/lib/hooks/useLocale";
|
||||
|
||||
import { Badge, Button, ButtonGroup, Icon } from "../../..";
|
||||
import { Badge, Button, ButtonGroup, Icon } from "@calcom/ui";
|
||||
|
||||
type Props = {
|
||||
required?: boolean;
|
||||
+1
-2
@@ -8,8 +8,7 @@ import getStripeAppData from "@calcom/lib/getStripeAppData";
|
||||
import { useLocale } from "@calcom/lib/hooks/useLocale";
|
||||
import { baseEventTypeSelect } from "@calcom/prisma";
|
||||
import { EventTypeModel } from "@calcom/prisma/zod";
|
||||
|
||||
import { Badge, Icon } from "../../..";
|
||||
import { Badge, Icon } from "@calcom/ui";
|
||||
|
||||
export type EventTypeDescriptionProps = {
|
||||
eventType: Pick<
|
||||
File renamed without changes.
+2
@@ -2,4 +2,6 @@ import dynamic from "next/dynamic";
|
||||
|
||||
export { default as CheckedTeamSelect } from "./CheckedTeamSelect";
|
||||
export { default as CustomInputItem } from "./CustomInputItem";
|
||||
export { default as CreateEventTypeButton } from "./CreateEventTypeButton";
|
||||
export { default as EventTypeDescription } from "./EventTypeDescription";
|
||||
export const EventTypeDescriptionLazy = dynamic(() => import("./EventTypeDescription"));
|
||||
@@ -13,11 +13,11 @@ import {
|
||||
DialogHeader,
|
||||
DialogClose,
|
||||
Switch,
|
||||
DatePicker,
|
||||
Form,
|
||||
Button,
|
||||
} from "@calcom/ui";
|
||||
|
||||
import DatePicker from "../../calendars/DatePicker";
|
||||
import { DayRanges, TimeRange } from "./Schedule";
|
||||
|
||||
const ALL_DAY_RANGE = {
|
||||
|
||||
@@ -3,8 +3,7 @@ import { useEffect, useState } from "react";
|
||||
|
||||
import { useLocale } from "@calcom/lib/hooks/useLocale";
|
||||
import { localStorage } from "@calcom/lib/webstorage";
|
||||
|
||||
import Card from "../../core/Card";
|
||||
import { Card } from "@calcom/ui";
|
||||
|
||||
export const tips = [
|
||||
{
|
||||
File renamed without changes.
File renamed without changes.
@@ -0,0 +1,2 @@
|
||||
export { List, ListItem, ListItemText, ListItemTitle } from "./List";
|
||||
export type { ListItemProps, ListProps } from "./List";
|
||||
@@ -46,8 +46,6 @@ export { default as TimezoneChangeDialog } from "./TimezoneChangeDialog";
|
||||
// export { default as Tooltip } from "./Tooltip";
|
||||
export {
|
||||
Alert,
|
||||
CheckedTeamSelect,
|
||||
CustomInputItem,
|
||||
EmptyScreen,
|
||||
HorizontalTabs,
|
||||
SettingsToggle,
|
||||
@@ -58,6 +56,7 @@ export {
|
||||
SkeletonText,
|
||||
Swatch,
|
||||
Switch,
|
||||
Card,
|
||||
VerticalTabs,
|
||||
} from "./v2";
|
||||
export type { AlertProps } from "./v2";
|
||||
@@ -118,8 +117,3 @@ export type { ITimezone, ITimezoneOption } from "./v2/core/TimezoneSelect";
|
||||
export { Tooltip } from "./v2/core/Tooltip";
|
||||
export { default as VerticalDivider } from "./v2/core/VerticalDivider";
|
||||
export { default as WizardForm } from "./v2/core/WizardForm";
|
||||
export { default as SAMLLogin } from "./v2/modules/auth/SAMLLogin";
|
||||
export { default as DatePicker } from "./v2/modules/booker/DatePicker";
|
||||
export { EventTypeDescriptionLazy } from "./v2/modules/event-types";
|
||||
export { EventTypeDescription } from "./v2/modules/event-types/EventTypeDescription";
|
||||
export { default as Tips } from "./v2/modules/tips/Tips";
|
||||
@@ -12,6 +12,7 @@ import UnconfirmedBookingBadge from "@calcom/features/bookings/UnconfirmedBookin
|
||||
import ImpersonatingBanner from "@calcom/features/ee/impersonation/components/ImpersonatingBanner";
|
||||
import HelpMenuItem from "@calcom/features/ee/support/components/HelpMenuItem";
|
||||
import { TeamsUpgradeBanner } from "@calcom/features/ee/teams/components";
|
||||
import { Tips } from "@calcom/features/tips";
|
||||
import CustomBranding from "@calcom/lib/CustomBranding";
|
||||
import classNames from "@calcom/lib/classNames";
|
||||
import {
|
||||
@@ -40,7 +41,6 @@ import {
|
||||
Icon,
|
||||
showToast,
|
||||
TimezoneChangeDialog,
|
||||
Tips,
|
||||
} from "../..";
|
||||
|
||||
/* TODO: Get this from endpoint */
|
||||
|
||||
@@ -1,3 +1,2 @@
|
||||
/* TODO: Make this index explicit */
|
||||
export * from "./core";
|
||||
export * from "./modules";
|
||||
@@ -1,7 +0,0 @@
|
||||
# To all Cal.com contributors
|
||||
|
||||
All these components should live in `packages/features`
|
||||
|
||||
With love,
|
||||
|
||||
zomars 💕
|
||||
@@ -1 +0,0 @@
|
||||
export { default as SAMLLogin } from "./SAMLLogin";
|
||||
@@ -1 +0,0 @@
|
||||
export * from "./DatePicker";
|
||||
@@ -1,3 +0,0 @@
|
||||
export * from "./auth";
|
||||
export * from "./booker";
|
||||
export * from "./event-types";
|
||||
Reference in new issue
Block a user