-
Notifications
You must be signed in to change notification settings - Fork 305
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(content-answers): Upgrade Content Answers (#3658)
* fix(docgen-sidebar): add collapsible component to hide nested tags (#3626) * fix(docgen-sidebar): add collapsible component to hide nested tags * fix(docgen-sidebar): nesting of tags in tag tree * fix(docgen-tags): update styles to use blueprint tokens * fix(docgen-tags): replace bdl tokens with blueprint tokens * fix(docgen-tags): convert test from enzyme to rtl * fix(docgen-tags): remove snapshots, reuse blueprint loader * fix(docgen-tags): address code review comments * fix(docgen-tags): remove the sidebar test file * fix(docgen-tags): file with updated name * Update src/elements/content-sidebar/__tests__/DocGenSidebar.test.tsx Co-authored-by: greg-in-a-box <103291617+greg-in-a-box@users.noreply.github.com> * Update src/elements/content-sidebar/__tests__/DocGenSidebar.test.tsx Co-authored-by: greg-in-a-box <103291617+greg-in-a-box@users.noreply.github.com> * fix(docgen-sidebar): address code review comments * fix(docgen-sidebar): address code review comments * fix(docgen-sidebar): remove unused mock --------- Co-authored-by: greg-in-a-box <103291617+greg-in-a-box@users.noreply.github.com> Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> * chore(storybook): Added global types for storybook * feat(content-answers): Upgrade Content Answers * feat(content-answers): fix tests * feat(content-answers): Enabled some new features * feat(content-answers): Feedback * chore(content-answers): feedback * feat(content-answers): Feedback * feat(content-answers): Feedback * feat(content-answers): Feedback * feat(content-answers): vrt width * feat(content-answers): Feedback * feat(content-answers): Feedback * feat(content-answers): Providers * feat(content-answers): Providers * feat(content-answers): Feedback * feat(content-answers): Feedback * feat(content-answers): tests * feat(content-answers): Feedback * feat(content-answers): Feedback --------- Co-authored-by: rustam-e <6816931+rustam-e@users.noreply.github.com> Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
- Loading branch information
1 parent
d2e59c8
commit 002d496
Showing
69 changed files
with
1,335 additions
and
1,789 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,10 +16,11 @@ | |
} | ||
|
||
.be.bcpr { | ||
height: 600px; | ||
height: 900px; | ||
} | ||
|
||
.be.bcs { | ||
width: 1000px; | ||
height: 900px; | ||
} | ||
</style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,44 +1,46 @@ | ||
.be { | ||
&.bce, | ||
&.bcp { | ||
height: 600px; | ||
} | ||
#rsg-root { | ||
.be { | ||
&.bce, | ||
&.bcp { | ||
height: 600px; | ||
} | ||
|
||
&.bcpr { | ||
.bcs { | ||
box-shadow: initial; | ||
&.bcpr { | ||
.bcs { | ||
box-shadow: initial; | ||
} | ||
} | ||
} | ||
|
||
&.bcu { | ||
height: 400px; | ||
} | ||
&.bcu { | ||
height: 400px; | ||
} | ||
|
||
&.bcow { | ||
width: 100px; | ||
} | ||
&.bcow { | ||
width: 100px; | ||
} | ||
|
||
&.bce, | ||
&.bcp, | ||
&.bcpr, | ||
&.bcs, | ||
&.bcu { | ||
box-shadow: 0 0 20px 0 rgba(85, 85, 85, .42); | ||
&.bce, | ||
&.bcp, | ||
&.bcpr, | ||
&.bcs, | ||
&.bcu { | ||
box-shadow: 0 0 20px 0 rgba(85, 85, 85, .42); | ||
} | ||
} | ||
} | ||
|
||
[data-preview='ContentSidebar'] { | ||
> div { | ||
display: inline-block; | ||
} | ||
[data-preview='ContentSidebar'] { | ||
> div { | ||
display: inline-block; | ||
} | ||
|
||
.bcs { | ||
height: 1000px; | ||
.bcs { | ||
height: 1000px; | ||
} | ||
} | ||
} | ||
|
||
[data-preview='ContentPreview'] { | ||
.bcpr { | ||
height: 600px; | ||
[data-preview='ContentPreview'] { | ||
.bcpr { | ||
height: 600px; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
// @flow | ||
import * as React from 'react'; | ||
import { Notification, TooltipProvider } from '@box/blueprint-web'; | ||
|
||
export interface ProvideProps { | ||
children: React.Node; | ||
hasProviders: ?boolean; | ||
} | ||
|
||
const Provide = ({ children, hasProviders }: ProvideProps) => { | ||
if (hasProviders) { | ||
return ( | ||
<Notification.Provider> | ||
<Notification.Viewport /> | ||
<TooltipProvider>{children}</TooltipProvider> | ||
</Notification.Provider> | ||
); | ||
} | ||
|
||
return React.Children.only(children); | ||
}; | ||
|
||
export default Provide; |
Oops, something went wrong.