Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

V2 Main #3549

Merged
merged 122 commits into from
Aug 24, 2022
Merged

V2 Main #3549

Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
122 commits
Select commit Hold shift + click to select a range
e5205ce
Fix breadcrumb colors
sean-brydon Jul 25, 2022
f2f075f
HorizontalTabs
sean-brydon Jul 25, 2022
dbd657c
Team List Item WIP
sean-brydon Jul 25, 2022
8fe290a
Merge remote-tracking branch 'origin/main' into V2-Components
sean-brydon Jul 26, 2022
1b6cb6b
Horizontal Tabs
sean-brydon Jul 26, 2022
104cd2e
Cards
sean-brydon Jul 26, 2022
193dd03
Remove team list item WIP
sean-brydon Jul 26, 2022
a0db67e
Merge branch 'main' into V2-Components
sean-brydon Jul 26, 2022
6677490
Login Page
sean-brydon Jul 26, 2022
02ab411
Add welcome back i118n
sean-brydon Jul 26, 2022
72c800d
EventType page work
sean-brydon Jul 26, 2022
8c81fcc
Update EventType Icons
sean-brydon Jul 26, 2022
79ff480
WIP Availability
sean-brydon Jul 27, 2022
c829830
Merge branch 'V2-Components' into feat/V2.0
sean-brydon Jul 27, 2022
b32ba65
Merge remote-tracking branch 'origin/main' into feat/V2.0
sean-brydon Jul 27, 2022
12d8f20
Horizontal Tab Work
sean-brydon Jul 27, 2022
b232ad8
Merge branch 'main' into feat/V2.0
sean-brydon Jul 27, 2022
b3935d5
Add build command for in root
sean-brydon Jul 27, 2022
a72671b
Update build DIr/command
sean-brydon Jul 27, 2022
d0ad652
Merge remote-tracking branch 'origin/main' into feat/V2.0
sean-brydon Jul 27, 2022
011db77
Add Edit Button + change buttons to v2
sean-brydon Jul 27, 2022
d78a53a
Availablitiy page
sean-brydon Jul 27, 2022
98f25d6
Fix IPAD
sean-brydon Jul 27, 2022
260d793
Make mobile look a little nicer
sean-brydon Jul 27, 2022
ac5837f
WIP bookingshell
sean-brydon Jul 27, 2022
c2228e4
Merge branch 'main' into feat/V2.0
sean-brydon Jul 27, 2022
28f1b25
Merge branch 'feat/V2.0' of https://github.com/calcom/cal.com into fe…
sean-brydon Jul 28, 2022
48ac5ec
Merge remote-tracking branch 'origin/main' into feat/V2.0
sean-brydon Jul 28, 2022
fff167d
Remove list items from breaking build
sean-brydon Jul 28, 2022
135c34c
Mian bulk of Booking Page.
sean-brydon Jul 28, 2022
70d40a3
Few updates to components
sean-brydon Jul 29, 2022
e6bbcbe
Fix chormatic feedback
sean-brydon Jul 29, 2022
d04798f
Merge remote-tracking branch 'origin/main' into feat/V2.0
sean-brydon Aug 1, 2022
4f620f7
Fix banner
sean-brydon Aug 1, 2022
ee3aa72
Fix Empty Screen
sean-brydon Aug 1, 2022
9fb83bb
Text area + embded window fixes
sean-brydon Aug 1, 2022
a0c7a67
Semi fix avatar
sean-brydon Aug 1, 2022
dee1e4e
Troubleshoot container + Active on count
sean-brydon Aug 1, 2022
131b6b4
Merge branch 'main' into feat/V2.0
PeerRich Aug 1, 2022
b9cb152
Improve mobile
sean-brydon Aug 2, 2022
c906830
NITS
sean-brydon Aug 2, 2022
a1667fd
Fix padding on input
sean-brydon Aug 2, 2022
02c3e51
Merge branch 'feat/V2.0' of https://github.com/calcom/cal.com into fe…
sean-brydon Aug 2, 2022
0fb768f
Fix icons
sean-brydon Aug 2, 2022
bac4dac
Merge remote-tracking branch 'origin/main' into feat/V2.0
sean-brydon Aug 4, 2022
a2e5a73
Starting to move event types settings to tabs
sean-brydon Aug 4, 2022
b608b65
Begin migration to single page form
sean-brydon Aug 5, 2022
d2d82ea
Single page tabs
sean-brydon Aug 5, 2022
c8defae
Limits Page
sean-brydon Aug 6, 2022
3e3a2ea
Advanced tab
sean-brydon Aug 7, 2022
a534451
Merge remote-tracking branch 'origin/main' into feat/V2.0
sean-brydon Aug 7, 2022
f214528
Add RHF to dependancies
sean-brydon Aug 7, 2022
784614f
Merge branch 'main' of https://github.com/calcom/cal.com into feat/V2.0
sean-brydon Aug 8, 2022
b251b75
Most of advanced tab
sean-brydon Aug 8, 2022
1be9a22
Merge branch 'main' of https://github.com/calcom/cal.com into feat/V2.0
sean-brydon Aug 8, 2022
e32adb4
Solved RHF mismtach
zomars Aug 8, 2022
867e9cb
Build fixes
zomars Aug 8, 2022
6e0b844
Merge branch 'main' into feat/V2.0
zomars Aug 8, 2022
8a179a1
RHF conditionals fixes
zomars Aug 8, 2022
077e795
Improved legibility
zomars Aug 8, 2022
b9ddc90
Merge branch 'feat/V2.0' of https://github.com/calcom/cal.com into fe…
sean-brydon Aug 9, 2022
8f9e5f3
Merge remote-tracking branch 'origin/main' into feat/V2.0
sean-brydon Aug 9, 2022
f264b41
Major refactor/organisation into optional V2 UI
sean-brydon Aug 10, 2022
fb9260f
Portal EditLocationModal
sean-brydon Aug 10, 2022
4795159
Fix dialoug form
sean-brydon Aug 10, 2022
033ffde
Update imports
sean-brydon Aug 10, 2022
e147c75
Auto Animate + custom inputs WIP
sean-brydon Aug 11, 2022
828d661
Merge remote-tracking branch 'origin/main' into feat/V2.0
sean-brydon Aug 11, 2022
5049e63
Custom Inputs
sean-brydon Aug 11, 2022
4d336c8
WIP Apps
sean-brydon Aug 11, 2022
12c3372
Fixing stories imports
sean-brydon Aug 12, 2022
e2a55d4
Stripe app
sean-brydon Aug 12, 2022
a9ca2b9
Remove duplicate dialog
sean-brydon Aug 12, 2022
5d478c3
Remove duplicate dialog
sean-brydon Aug 12, 2022
5748eb5
Merge branch 'feat/V2.0' of https://github.com/calcom/cal.com into fe…
sean-brydon Aug 12, 2022
e9213c5
Merge branch 'feat/V2.0' of https://github.com/calcom/cal.com into fe…
sean-brydon Aug 12, 2022
d7b83a4
Merge branch 'feat/V2.0' of https://github.com/calcom/cal.com into fe…
sean-brydon Aug 12, 2022
a73b9b9
Merge remote-tracking branch 'origin/main' into feat/v2.0
hariombalhara Aug 13, 2022
3f33afa
Merge remote-tracking branch 'origin/main' into feat/V2.0
hariombalhara Aug 13, 2022
0973830
Merge branch 'main' into feat/V2.0
sean-brydon Aug 15, 2022
4246300
Fix embed URL
sean-brydon Aug 15, 2022
a703f9a
Fix app toggles + number of active apps
sean-brydon Aug 15, 2022
c0deb23
Fix container padding on disabledBorder prop
sean-brydon Aug 15, 2022
0d5b432
Removes strict
sean-brydon Aug 15, 2022
1d4c4cf
EventType Team page WIP
sean-brydon Aug 16, 2022
e9e417e
Fix embed
hariombalhara Aug 16, 2022
ebcdeba
Merge remote-tracking branch 'origin/feat/V2.0' into feat/V2.0
hariombalhara Aug 16, 2022
6963070
NIT
sean-brydon Aug 16, 2022
e869f30
Add Darkmode gray color
sean-brydon Aug 16, 2022
8d387b9
Merge branch 'feat/V2.0' of https://github.com/calcom/cal.com into fe…
sean-brydon Aug 16, 2022
850e5a6
V2 Shell WIP
sean-brydon Aug 16, 2022
53f9015
Fix headings on shell V2
sean-brydon Aug 17, 2022
efd1b04
Fix mobile layout with V2 shell
sean-brydon Aug 17, 2022
85b1fb3
V2 create event type button
sean-brydon Aug 17, 2022
1cf5f59
Checked Team Select
sean-brydon Aug 17, 2022
fccfa7d
Hidden to happen on save - not on toggle
sean-brydon Aug 17, 2022
9b1a825
Team Attendee Select animation
sean-brydon Aug 17, 2022
5a36747
Fix scheduling type and remove multi select label
sean-brydon Aug 17, 2022
7ba1a07
Fix overflow on teams url
sean-brydon Aug 17, 2022
0dac841
Merge remote-tracking branch 'origin/main' into feat/V2.0
sean-brydon Aug 17, 2022
8facf32
Merge remote-tracking branch 'origin/main' into feat/V2.0
sean-brydon Aug 18, 2022
14f2e5f
Even Type move order handles
sean-brydon Aug 18, 2022
622bdda
Merge remote-tracking branch 'origin' into feat/V2.0
hariombalhara Aug 19, 2022
b7a0cfa
Fix Embed TS errors
hariombalhara Aug 19, 2022
5e9009f
Fix TS errors
hariombalhara Aug 19, 2022
93ea059
Fix Eslint errors
hariombalhara Aug 19, 2022
004a8c3
Fix TS errors for UI
hariombalhara Aug 19, 2022
e6af740
Fix ESLINT error
hariombalhara Aug 19, 2022
dbf7f84
Merge branch 'feat/V2.0' of https://github.com/calcom/cal.com into fe…
sean-brydon Aug 21, 2022
63bb6b6
added SidebarCard for promo to v2 and storybook (#3906)
PeerRich Aug 21, 2022
1c3d354
Tooltip Provider - Wrapper due to dep upgrade
sean-brydon Aug 21, 2022
7e007fa
public event type list darkmode
sean-brydon Aug 22, 2022
a8347c3
V2 Color changes to public booking
sean-brydon Aug 22, 2022
a723ad1
Merge remote-tracking branch 'origin/main' into feat/V2.0
sean-brydon Aug 23, 2022
e86a104
Remove unused component
sean-brydon Aug 23, 2022
893a3f1
Fix typecheck
sean-brydon Aug 23, 2022
60ba462
Merge branch 'feat/V2.0' of https://github.com/calcom/cal.com into fe…
sean-brydon Aug 23, 2022
713cb6b
Merge branch 'main' into feat/V2.0
zomars Aug 24, 2022
12e1b8f
Removed extra buttons on create ET dialog
zomars Aug 24, 2022
241cd54
ET edit page refactoring
zomars Aug 24, 2022
5ee8077
Avoids form wrapping the whole Shell
zomars Aug 24, 2022
531b922
Nitpicks
zomars Aug 24, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions apps/storybook/.storybook/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@ module.exports = {
* @see https://github.com/storybookjs/storybook/issues/12844#issuecomment-867544160
*/
config.resolve.roots = [path.resolve(__dirname, "../public"), "node_modules"];
config.resolve.alias = {
...config.resolve.alias,
"@/interfaces": path.resolve(__dirname, "../interfaces"),
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What are these for?

};

/**
* Why webpack5... Just why?
Expand Down
10 changes: 10 additions & 0 deletions apps/storybook/.storybook/preview.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,13 @@ export const parameters = {
Provider: RouterContext.Provider,
},
};

window.getEmbedNamespace = () => {
const url = new URL(document.URL);
const namespace = url.searchParams.get("embed");
return namespace;
};
Comment on lines +25 to +30
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Resolve embed requirements in storybook


window.getEmbedTheme = () => {
return "auto";
};
18 changes: 10 additions & 8 deletions apps/storybook/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,15 +34,17 @@
"devDependencies": {
"@babel/core": "^7.18.9",
"@calcom/config": "*",
"@storybook/addon-a11y": "^6.5.9",
"@storybook/addon-actions": "^6.5.9",
"@storybook/addon-essentials": "^6.5.9",
"@storybook/addon-interactions": "^6.5.9",
"@storybook/addon-links": "^6.5.9",
"@storybook/addon-a11y": "^6.5.10",
"@storybook/addon-actions": "^6.5.10",
"@storybook/addon-essentials": "^6.5.10",
"@storybook/addon-interactions": "^6.5.10",
"@storybook/addon-links": "^6.5.10",
"@storybook/addon-postcss": "^2.0.0",
"@storybook/builder-webpack5": "^6.5.9",
"@storybook/manager-webpack5": "^6.5.9",
"@storybook/react": "^6.5.9",
"@storybook/builder-vite": "^0.2.2",
"@storybook/builder-webpack5": "^6.5.10",
"@storybook/manager-webpack5": "^6.5.10",
"@storybook/react": "^6.5.10",
"@tailwindcss/line-clamp": "^0.4.0",
"@types/node": "16.9.1",
"@types/react": "^18.0.9",
"@types/react-dom": "18.0.4",
Expand Down
2 changes: 1 addition & 1 deletion apps/storybook/stories/Avatar.stories.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { ComponentMeta } from "@storybook/react";

import Avatar from "@calcom/ui/v2/Avatar";
import Avatar from "@calcom/ui/v2/core/Avatar";

export default {
title: "Avatar",
Expand Down
3 changes: 1 addition & 2 deletions apps/storybook/stories/AvatarGroup.stories.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import { ComponentMeta } from "@storybook/react";

import Avatar from "@calcom/ui/v2/Avatar";
import AvatarGroup from "@calcom/ui/v2/AvatarGroup";
import AvatarGroup from "@calcom/ui/v2/core/AvatarGroup";

export default {
title: "Avatar/Group",
Expand Down
2 changes: 1 addition & 1 deletion apps/storybook/stories/Badge.stories.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { ComponentMeta } from "@storybook/react";
import { Bell } from "react-feather";

import { Badge } from "@calcom/ui/v2";
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is the v2 index causing issues?

import Badge from "@calcom/ui/v2/core/Badge";

export default {
title: "Badge",
Expand Down
2 changes: 1 addition & 1 deletion apps/storybook/stories/Banner.stories.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { ComponentStory, ComponentMeta } from "@storybook/react";
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
import { ComponentStory, ComponentMeta } from "@storybook/react";
import { ComponentMeta } from "@storybook/react";

import { Info } from "react-feather";

import { Banner } from "@calcom/ui/v2";
import Banner from "@calcom/ui/v2/core/banner";

export default {
title: "Banner",
Expand Down
2 changes: 1 addition & 1 deletion apps/storybook/stories/Breadcrumb.stories.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { ComponentMeta } from "@storybook/react";

import { Breadcrumb, BreadcrumbItem } from "@calcom/ui/v2";
import Breadcrumb, { BreadcrumbItem } from "@calcom/ui/v2/core/Breadcrumb";

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Was the other approach causing issues? I think the former is the desirable way to consume these components. If they are causing issues we should figure out why.

export default {
title: "Breadcrumbs",
Expand Down
93 changes: 48 additions & 45 deletions apps/storybook/stories/Button.stories.tsx
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
import { TooltipProvider } from "@radix-ui/react-tooltip";
import { ComponentMeta, ComponentStory } from "@storybook/react";
import { Trash2 } from "react-feather";

import { Button as ButtonComponent } from "@calcom/ui/v2";
import Button from "@calcom/ui/v2/core/Button";

export default {
title: "Button",
component: ButtonComponent,
component: Button,
argTypes: {
color: {
options: ["primary", "secondary", "minimal", "destructive"],
Expand All @@ -24,67 +25,69 @@ export default {
control: { type: "radio" },
},
},
} as ComponentMeta<typeof ButtonComponent>;
} as ComponentMeta<typeof Button>;

const Template: ComponentStory<typeof ButtonComponent> = (args) => <ButtonComponent {...args} />;
const Template: ComponentStory<typeof Button> = (args) => <Button {...args} />;

export const All = () => (
<div>
<h1>Primary</h1>
<div className="flex space-x-2">
<ButtonComponent aria-label="Button Text">Button Text</ButtonComponent>
<ButtonComponent disabled aria-label="Button Text">
Button Text
</ButtonComponent>
</div>
<h1>Secondary</h1>
<div className="flex space-x-2">
<ButtonComponent color="secondary" aria-label="Button Text">
Button Text
</ButtonComponent>
<ButtonComponent disabled color="secondary" aria-label="Button Text">
Button Text
</ButtonComponent>
<ButtonComponent size="icon" color="secondary" StartIcon={Trash2} aria-label="Button Text" />
</div>
<h1>Minimal</h1>
<div className="flex">
<ButtonComponent color="minimal" aria-label="Button Text">
Button Text
</ButtonComponent>
<ButtonComponent disabled color="minimal" aria-label="Button Text">
Button Text
</ButtonComponent>
<ButtonComponent size="icon" color="minimal" StartIcon={Trash2} aria-label="Button Text" />
</div>
<h1>Destructive</h1>
<ButtonComponent size="icon" color="destructive" StartIcon={Trash2} aria-label="Button Text" />
<h1>Tooltip</h1>
<ButtonComponent
tooltip="Deletes EventTypes"
size="icon"
color="destructive"
StartIcon={Trash2}
aria-label="Button Text"
/>
<TooltipProvider>
<h1>Primary</h1>
<div className="flex space-x-2">
<Button aria-label="Button Text">Button Text</Button>
<Button disabled aria-label="Button Text">
Button Text
</Button>
</div>
<h1>Secondary</h1>
<div className="flex space-x-2">
<Button color="secondary" aria-label="Button Text">
Button Text
</Button>
<Button disabled color="secondary" aria-label="Button Text">
Button Text
</Button>
<Button size="icon" color="secondary" StartIcon={Trash2} aria-label="Button Text" />
</div>
<h1>Minimal</h1>
<div className="flex">
<Button color="minimal" aria-label="Button Text">
Button Text
</Button>
<Button disabled color="minimal" aria-label="Button Text">
Button Text
</Button>
<Button size="icon" color="minimal" StartIcon={Trash2} aria-label="Button Text" />
</div>
<h1>Destructive</h1>
<Button size="icon" color="destructive" StartIcon={Trash2} aria-label="Button Text" />
<h1>Tooltip</h1>
<Button
tooltip="Deletes EventTypes"
size="icon"
color="destructive"
StartIcon={Trash2}
aria-label="Button Text"
/>
</TooltipProvider>
</div>
);

export const Button = Template.bind({});
Button.args = {
export const Default = Template.bind({});
Default.args = {
color: "primary",
children: "Button Text",
};

export const Disabled = Template.bind({});
Disabled.args = {
...Button.args,
...Default.args,
disabled: true,
};

export const Loading = Template.bind({});
Loading.args = {
...Button.args,
...Default.args,
loading: true,
};
export const Icon = Template.bind({});
Expand Down
32 changes: 19 additions & 13 deletions apps/storybook/stories/ButtonGroup.stories.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
import { TooltipProvider } from "@radix-ui/react-tooltip";
import { ComponentMeta } from "@storybook/react";
import { ArrowLeft, ArrowRight, Clipboard, Navigation2, Trash2 } from "react-feather";

import { Button, ButtonGroup } from "@calcom/ui/v2";
import Button from "@calcom/ui/v2/core/Button";
import ButtonGroup from "@calcom/ui/v2/core/ButtonGroup";

export default {
title: "Button Group",
Expand All @@ -10,22 +12,26 @@ export default {

export const Default = () => (
<ButtonGroup>
<Button StartIcon={Trash2} size="icon" color="secondary" />
<Button StartIcon={Navigation2} size="icon" color="secondary" />
<Button StartIcon={Clipboard} size="icon" color="secondary" />
<TooltipProvider>
<Button StartIcon={Trash2} size="icon" color="secondary" />
<Button StartIcon={Navigation2} size="icon" color="secondary" />
<Button StartIcon={Clipboard} size="icon" color="secondary" />
</TooltipProvider>
</ButtonGroup>
);

export const Combined = () => (
<div className="flex flex-col space-y-2">
<ButtonGroup combined>
<Button StartIcon={Trash2} size="icon" color="secondary" combined />
<Button StartIcon={Navigation2} size="icon" color="secondary" combined />
<Button StartIcon={Clipboard} size="icon" color="secondary" combined />
</ButtonGroup>
<ButtonGroup combined>
<Button StartIcon={ArrowLeft} size="icon" color="secondary" combined />
<Button StartIcon={ArrowRight} size="icon" color="secondary" combined />
</ButtonGroup>
<TooltipProvider>
<ButtonGroup combined>
<Button StartIcon={Trash2} size="icon" color="secondary" combined />
<Button StartIcon={Navigation2} size="icon" color="secondary" combined />
<Button StartIcon={Clipboard} size="icon" color="secondary" combined />
</ButtonGroup>
<ButtonGroup combined>
<Button StartIcon={ArrowLeft} size="icon" color="secondary" combined />
<Button StartIcon={ArrowRight} size="icon" color="secondary" combined />
</ButtonGroup>
</TooltipProvider>
</div>
);
28 changes: 27 additions & 1 deletion apps/storybook/stories/Cards.stories.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { ComponentMeta } from "@storybook/react";
import { useState } from "react";

import { BaseCardProps, Card } from "@calcom/ui/v2/Card";
import Card, { BaseCardProps } from "@calcom/ui/v2/core/Card";

export default {
title: "Cards",
Expand Down Expand Up @@ -51,3 +52,28 @@ export const AppStore = () => {
</div>
);
};

const sidebarCardProps: BaseCardProps = {
variant: "SidebarCard",
thumbnailUrl: "https://img.youtube.com/vi/60HJt8DOVNo/0.jpg",
mediaLink: "https://www.youtube.com/watch?v=60HJt8DOVNo",
title: "Dynamic boooking links",
description: "Booking link that allows people to quickly schedule meetings.",
learnMore: {
href: "https://cal.com/blog/cal-v-1-9",
text: "Learn more",
},
};

export const SidebarCard = () => {
const [visible, setVisible] = useState(true); // save state in localStorage, cookie or db
return (
<header className="w-full max-w-[225px] bg-gray-100 p-3">
{visible && (
<div>
<Card {...sidebarCardProps} actionButton={{ onClick: () => setVisible(false), child: "Dismiss" }} />
</div>
)}
</header>
);
};
2 changes: 1 addition & 1 deletion apps/storybook/stories/Checkbox.stories.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { ComponentMeta } from "@storybook/react";

import { Checkbox } from "@calcom/ui/v2";
import Checkbox from "@calcom/ui/v2/core/form/Checkbox";

export default {
title: "Checkbox",
Expand Down
2 changes: 1 addition & 1 deletion apps/storybook/stories/Colors.stories.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { useState } from "react";

import ColorPicker from "@calcom/ui/v2/colorpicker";
import ColorPicker from "@calcom/ui/v2/core/colorpicker";

// eslint-disable-next-line import/no-anonymous-default-export
export default {
Expand Down
6 changes: 3 additions & 3 deletions apps/storybook/stories/DatePicker.stories.tsx
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
import { useState } from "react";

import DatePicker from "@calcom/ui/v2/booker/DatePicker";
import DatePicker from "@calcom/ui/v2/modules/booker/DatePicker";

export default {
title: "Datepicker",
component: DatePicker,
};

export const Default = () => {
const [selected, setSelected] = useState<Date | undefined>(undefined);
const [selected, setSelected] = useState<Date>(new Date());
return (
<div style={{ width: "455px" }}>
<DatePicker selected={selected} onChange={setSelected} locale="en" />
{/* <DatePicker selected={selected} onChange={setSelected} locale="en" /> */}
</div>
);
};
12 changes: 6 additions & 6 deletions apps/storybook/stories/EmptyScreen.stories.tsx
Original file line number Diff line number Diff line change
@@ -1,25 +1,25 @@
import { ComponentMeta } from "@storybook/react";
import { Bell } from "react-feather";

import { EmptyScreen as EmptyScreenPattern } from "@calcom/ui/v2";
import EmptyScreen from "@calcom/ui/v2/core/EmptyScreen";

export default {
title: "pattern/Empty Screen",
component: EmptyScreenPattern,
component: EmptyScreen,
decorators: [
(Story) => (
<div className="flex items-center justify-center">
<Story />
</div>
),
],
} as ComponentMeta<typeof EmptyScreenPattern>;
} as ComponentMeta<typeof EmptyScreen>;

export const EmptyScreenS = () => (
<EmptyScreenPattern
export const Default = () => (
<EmptyScreen
Icon={Bell}
headline="Empty State Header"
description="Ullamco dolor nulla sint nulla occaecat aliquip id elit fugiat et excepteur magna. Nisi tempor anim do tempor irure fugiat ad occaecat. Mollit ea eiusmod pariatur sunt deserunt eu eiusmod. Sit reprehenderit cupidatat consequat commodo in aliqua ea et. Et quis sit enim proident dolor mollit consectetur tempor dolore reprehenderit consequat adipisicing reprehenderit officia. Sint eu sunt fugiat laborum Lorem irure aute nulla et. Do non in enim ipsum ea."
description="Ullamco dolor nulla sint nulla occaecat aliquip id elit fugiat et excepteur magna. Nisi tempor anim do tempor irure fugiat ad occaecat. Mollit ea eiusmod pariatur sunt deserunt eu eiusmod. Sit reprehenderit "
buttonText="Veniam ut ipsum"
buttonOnClick={() => console.log("Button Clicked")}
/>
Expand Down
2 changes: 1 addition & 1 deletion apps/storybook/stories/FormStep.stories.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { ComponentMeta } from "@storybook/react";
import { useState } from "react";

import { FormStep } from "@calcom/ui/v2";
import FormStep from "@calcom/ui/v2/core/form/FormStep";

export default {
title: "Form Step",
Expand Down
Loading