-
Notifications
You must be signed in to change notification settings - Fork 8k
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
V2 Main #3549
Changes from all commits
e5205ce
f2f075f
dbd657c
8fe290a
1b6cb6b
104cd2e
193dd03
a0db67e
6677490
02ab411
72c800d
8c81fcc
79ff480
c829830
b32ba65
12d8f20
b232ad8
b3935d5
a72671b
d0ad652
011db77
d78a53a
98f25d6
260d793
ac5837f
c2228e4
28f1b25
48ac5ec
fff167d
135c34c
70d40a3
e6bbcbe
d04798f
4f620f7
ee3aa72
9fb83bb
a0c7a67
dee1e4e
131b6b4
b9cb152
c906830
a1667fd
02c3e51
0fb768f
bac4dac
a2e5a73
b608b65
d2d82ea
c8defae
3e3a2ea
a534451
f214528
784614f
b251b75
1be9a22
e32adb4
867e9cb
6e0b844
8a179a1
077e795
b9ddc90
8f9e5f3
f264b41
fb9260f
4795159
033ffde
e147c75
828d661
5049e63
4d336c8
12c3372
e2a55d4
a9ca2b9
5d478c3
5748eb5
e9213c5
d7b83a4
a73b9b9
3f33afa
0973830
4246300
a703f9a
c0deb23
0d5b432
1d4c4cf
e9e417e
ebcdeba
6963070
e869f30
8d387b9
850e5a6
53f9015
efd1b04
85b1fb3
1cf5f59
fccfa7d
9b1a825
5a36747
7ba1a07
0dac841
8facf32
14f2e5f
622bdda
b7a0cfa
5e9009f
93ea059
004a8c3
e6af740
dbf7f84
63bb6b6
1c3d354
7e007fa
a8347c3
a723ad1
e86a104
893a3f1
60ba462
713cb6b
12e1b8f
241cd54
5ee8077
531b922
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Resolve embed requirements in storybook |
||
|
||
window.getEmbedTheme = () => { | ||
return "auto"; | ||
}; |
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"; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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", | ||
|
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
@@ -1,7 +1,7 @@ | ||||||
import { ComponentStory, ComponentMeta } from "@storybook/react"; | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
import { Info } from "react-feather"; | ||||||
|
||||||
import { Banner } from "@calcom/ui/v2"; | ||||||
import Banner from "@calcom/ui/v2/core/banner"; | ||||||
|
||||||
export default { | ||||||
title: "Banner", | ||||||
|
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"; | ||
|
||
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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", | ||
|
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> | ||
); | ||
}; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What are these for?