Skip to content
This repository has been archived by the owner on Jun 12, 2024. It is now read-only.

Upgrade to Assembly v1 🌝 #481

Merged
merged 58 commits into from
Oct 11, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
58 commits
Select commit Hold shift + click to select a range
4f1393a
update to Node 14
malwoodsantoro Sep 1, 2021
6707fcf
add requirements section to readme.md
malwoodsantoro Sep 2, 2021
f3ebc99
update assembly and mr-ui
malwoodsantoro Sep 2, 2021
e30cbad
remove font-size from docs-prose.css
malwoodsantoro Sep 2, 2021
54ba814
remove classes with position: sticky
malwoodsantoro Sep 2, 2021
9ee2c29
spacing fix
malwoodsantoro Sep 2, 2021
a6d0d8e
replace limiter class
malwoodsantoro Sep 2, 2021
c42a1f5
replace limiter--wide class
malwoodsantoro Sep 2, 2021
6fe1ffd
remove unused txt-spacing0 class
malwoodsantoro Sep 2, 2021
ceb4e76
update limiter--wide class
malwoodsantoro Sep 2, 2021
1d2ed8c
remove fr-ui--feedback color-gray from docs-prose.css
malwoodsantoro Sep 3, 2021
cd03feb
remove color-gray code class
malwoodsantoro Sep 3, 2021
ba53f5f
scroll-auto → overflow-auto
malwoodsantoro Sep 3, 2021
1b43060
remove double selectors
malwoodsantoro Sep 3, 2021
70fd5b7
add back heading prose selectors
malwoodsantoro Sep 3, 2021
53a5774
add mr-ui back as peerdependency
malwoodsantoro Sep 3, 2021
f48c4e0
update snapshots
malwoodsantoro Sep 3, 2021
fc05380
update package lock
malwoodsantoro Sep 4, 2021
b74c926
Merge branch 'main' into assembly-v1-update
Sep 7, 2021
02ffaec
Update package-lock.json
Sep 7, 2021
a8a3bd4
Update CHANGELOG.md
Sep 8, 2021
720180a
LevelIndicator (#482)
Sep 9, 2021
735e716
[Assembly v1] Browser (#483)
malwoodsantoro Sep 9, 2021
d5565c1
[Assembly v1] BackToTopButton (#486)
Sep 9, 2021
82e0169
Merge remote-tracking branch 'origin/main' into assembly-v1-update
Sep 9, 2021
02aedcb
[Assembly v1] Themes, Note, Tag (#487)
Sep 13, 2021
d2d39a8
[Assembly v1] Card (#489)
Sep 14, 2021
c606b2f
[Assembly v1] Phone (#488)
Sep 14, 2021
480a7c7
[Assembly v1] CardContainer (#493)
Sep 15, 2021
e5152a3
[Assembly v1] Feedback (#496)
malwoodsantoro Sep 15, 2021
e0b6e23
[Assembly v1] CodeSnippetTitle (#491)
malwoodsantoro Sep 15, 2021
f70036f
[Assembly v1] OverviewHeader (#501)
Sep 16, 2021
32b0c67
Merge branch 'main' into assembly-v1-update
Sep 16, 2021
d2f0afb
[Assembly v1] OnThisPage (#497)
malwoodsantoro Sep 16, 2021
2f5aed9
[Assembly v1] NavigationAccordion (#499)
Sep 16, 2021
5ddfa47
[Assembly v1] ProductMenu (#503)
Sep 16, 2021
d9c1ece
[Assembly v1] Update mr-ui@1.1.0 (#502)
Sep 16, 2021
13af43e
[Assembly v1] Search (#500)
Sep 17, 2021
9b4b8c6
[Assembly v1] NumberedCodeSnippet (#504)
malwoodsantoro Sep 17, 2021
c5ca835
[Assembly v1] RelatedPage (#507)
malwoodsantoro Sep 17, 2021
67f3833
[Assembly v1] PageLayout (#510)
Sep 20, 2021
2b8d010
[Assembly v1] Video (#511)
malwoodsantoro Sep 20, 2021
f378f02
[Assembly v1] Update catalog site (#512)
malwoodsantoro Sep 22, 2021
1d5f153
Merge branch 'main' into assembly-v1-update
Sep 23, 2021
99a8945
Merge branch 'main' into assembly-v1-update
Sep 23, 2021
64d7dae
Fix package-lock.json
Sep 23, 2021
526579d
Merge branch 'main' into assembly-v1-update
Sep 23, 2021
00039a1
5.0.0-beta.0
Sep 23, 2021
4c7db7c
Update class in make-table-scroll plugin (#520)
Sep 27, 2021
f498a3b
Update dependencies
Sep 27, 2021
ce75191
5.0.0-beta.1
Sep 27, 2021
4249f02
mbx-assembly@1.2.0
Sep 28, 2021
d74f7a5
[Assembly v1] Update default theme to use `color-text` (#522)
Sep 29, 2021
0b9ba32
Fix border color and set icon color for `lightText` (#521)
Sep 29, 2021
e32d40d
[Assembly v1] h2 fix (#523)
Sep 29, 2021
617c23a
5.0.0-beta.2
Sep 29, 2021
f6f0554
[Assembly v1] Replace viewport and scroll classes in PageLayout (#524)
Oct 1, 2021
c4fe76a
5.0.0-beta.3
Oct 1, 2021
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
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
12
14
7 changes: 6 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
# Changelog

## Unreleased
## 5.0.0-beta.0

This release updates to Assembly v1. [#481](https://github.com/mapbox/dr-ui/pull/481)

- 🚨 Replace `customStyles` prop in `Tag` with `customBorder`, `customColor,` and `customBackground`. The new props accept class names.
- 🚨 `CardContainer` no longer accepts a number for `cardColSize`, choose: `'1/4'` for 4 cards or `'1/3'` for 3 cards per row. The default is `'1/2'` for 2 cards per row.
- Update to mr-ui@1.1.0.
- Handle `NavigiationAccordion` when there is no `activeItem`. [#495](https://github.com/mapbox/dr-ui/pull/495)
- Move "I like..." category to bottom in `Feedback` component. [#518](https://github.com/mapbox/dr-ui/pull/518)
- Decrease Sentry `tracesSampleRate` to `0.05`. [#517](https://github.com/mapbox/dr-ui/pull/517)
Expand Down
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,13 @@ UI components for Mapbox documentation projects.

## Installation

**Requirements**

- Node 14
malwoodsantoro marked this conversation as resolved.
Show resolved Hide resolved
- npm 7

If you're not sure if your Node and NPM versions are up to date, run `nvm use` before installing dependencies. If you don't have NVM installed, you can [find installation instructions here](https://github.com/nvm-sh/nvm/blob/master/README.md#installing-and-updating).

```
npm install @mapbox/dr-ui
```
Expand Down
18 changes: 8 additions & 10 deletions docs/src/components/component-example.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,11 @@ export default class ComponentExample extends React.Component {
const { props, state } = this;
return (
<div>
<div className="flex-parent flex-parent--end-cross">
<div className="flex-child flex-child--grow pb6 prose">
{props.description}
</div>
<div className="flex-child flex-child--no-shrink w120">
<div className="flex-parent flex-parent--end-main">
<div className="flex-child">
<div className="flex flex--end-cross">
<div className="flex-child-grow pb6 prose">{props.description}</div>
<div className="flex-child-no-shrink w120">
<div className="flex flex--end-main">
<div>
<ToggleCodeButton
onClick={this.toggleCode}
codeIsVisible={state.showCode}
Expand Down Expand Up @@ -69,13 +67,13 @@ function ToggleCodeButton(props) {
className="block btn btn--s btn--gray unround-b round-t"
onClick={props.onClick}
>
<span className="flex-parent flex-parent--center-cross">
<span className="flex-child">
<span className="flex flex--center-cross">
<span>
<svg className="icon">
<use xlinkHref="#icon-code" />
</svg>
</span>
<span className="ml6 flex-child">{text}</span>
<span className="ml6">{text}</span>
</span>
</button>
);
Expand Down
10 changes: 4 additions & 6 deletions docs/src/components/component-section.js
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ function sortedProps(propsData) {

function PropRow(props) {
const required = !props.required ? null : (
<span className="txt-xs txt-mono ml6 bg-purple-faint color-purple px6 py3 round">
<span className="txt-xs txt-mono ml6 bg-purple-faint color-purple-deep px6 py3 round">
REQUIRED
</span>
);
Expand Down Expand Up @@ -128,11 +128,9 @@ function LabeledDefaultValue(props) {
}

return (
<div className="flex-parent mb3">
<div className="flex-child flex-child--no-shrink color-gray">
{props.title}:
</div>
<div className="ml6 flex-child flex-child--grow">
<div className="flex mb3">
<div className="flex-child-no-shrink color-gray">{props.title}:</div>
<div className="ml6 flex-child-grow">
<DefaultValueDisplay value={props.value} />
</div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion docs/src/css/site.css
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
height: 50px !important;
}
@media screen and (min-width: 640px) {
#docs-content #dr-ui--page-layout-sidebar.scroll-auto-mm {
#docs-content #dr-ui--page-layout-sidebar.overflow-auto-mm {
overflow: unset !important;
}
}
Expand Down
4 changes: 3 additions & 1 deletion docs/src/pages/components/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,9 @@ overviewHeader:
changelogLink: /dr-ui/changelog/
installLink: https://github.com/mapbox/dr-ui/blob/main/README.md
ghLink: https://github.com/mapbox/dr-ui
theme: bg-purple-faint
lightText: true
theme: bg-purple-deep

# version: "" dynamic version is set in pages-shell.js
# image: "" set in page-shell.js
---
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@
title: Accessibility test page
description: Page for testing accessibility of components.
layout: page
order: 6
groupOrder: 1
contentType: guide
products:
- Documentation
prependJs:
- "import Note from '../../../../src/components/note/note';"
- "import Note from '../../../../../src/components/note/note';"
---

Use this test page to check color contrast and other accessibility considerations.
Expand Down
29 changes: 29 additions & 0 deletions docs/src/pages/guides/test-pages/headings.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
---
title: Headings
description: Page for testing headings.
layout: page
groupOrder: 2
contentType: guide
products:
- Documentation
---

## Heading 2

This first heading should have padding between the text and top border.

### Heading 3

This is a heading 3 section. This is a heading 3 section. This is a heading 3 section. This is a heading 3 section. This is a heading 3 section. This is a heading 3 section. This is a heading 3 section. This is a heading 3 section. This is a heading 3 section. This is a heading 3 section. This is a heading 3 section. This is a heading 3 section. This is a heading 3 section.

#### Heading 4

This is a heading 4 section. This is a heading 4 section. This is a heading 4 section. This is a heading 4 section. This is a heading 4 section. This is a heading 4 section. This is a heading 4 section. This is a heading 4 section. This is a heading 4 section. This is a heading 4 section. This is a heading 4 section. This is a heading 4 section. This is a heading 4 section.

##### Heading 5

This is a heading 5 section. This is a heading 5 section. This is a heading 5 section. This is a heading 5 section. This is a heading 5 section. This is a heading 5 section. This is a heading 5 section. This is a heading 5 section. This is a heading 5 section. This is a heading 5 section. This is a heading 5 section. This is a heading 5 section. This is a heading 5 section.

## Heading 2

This is a heading 2 section. This is a heading 2 section. This is a heading 2 section. This is a heading 2 section. This is a heading 2 section. This is a heading 2 section. This is a heading 2 section. This is a heading 2 section. This is a heading 2 section. This is a heading 2 section. This is a heading 2 section. This is a heading 2 section. This is a heading 2 section.
10 changes: 10 additions & 0 deletions docs/src/pages/guides/test-pages/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
---
title: Test pages
description: A group of test pages.
order: 6
contentType: guide
layout: page
group: true
products:
- Documentation
---
Loading