Skip to content

Commit

Permalink
Merge pull request #507 from brightlayer-ui/dev
Browse files Browse the repository at this point in the history
Publicize tables guideline and R22 release
  • Loading branch information
EvanMcLaughlin-eaton authored Jan 18, 2022
2 parents d3a1b75 + 697d37d commit 8cd451c
Show file tree
Hide file tree
Showing 183 changed files with 1,416 additions and 11,993 deletions.
4 changes: 3 additions & 1 deletion .prettierignore
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
src/docs/community/faq.mdx
src/docs/community/faq.mdx
src/database/sitemap-database.json
src/database/index-database.json
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "doc-it",
"author": "Brightlayer UI <[email protected]>",
"version": "2.4.2",
"version": "3.0.0",
"private": true,
"scripts": {
"start": "node scripts/start.js",
Expand All @@ -27,7 +27,7 @@
"@brainhubeu/react-carousel": "1.12.15",
"@brightlayer-ui/colors": "^3.0.1",
"@brightlayer-ui/colors-branding": "^3.1.0",
"@brightlayer-ui/icons-mui": "^2.7.0",
"@brightlayer-ui/icons-mui": "^2.8.0",
"@brightlayer-ui/react-components": "^5.3.2",
"@brightlayer-ui/react-progress-icons": "^2.1.1",
"@brightlayer-ui/react-themes": "^6.1.0",
Expand Down
Binary file added public/favico.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<html lang="en">
<head>
<meta charset="utf-8" />
<link rel="icon" href="%PUBLIC_URL%/brightlayer-ui.png" />
<link rel="icon" href="%PUBLIC_URL%/favico.png" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="theme-color" content="#007bc1" />
<meta name="description" content="Documentation site for the Brightlayer UI design system." />
Expand Down
6 changes: 5 additions & 1 deletion scripts/crawl/sitemap.json
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@
"url": "/internationalization"
},
{
"title": "Lists & Tables",
"title": "Lists",
"url": "/lists"
},
{
Expand All @@ -156,6 +156,10 @@
"url": "/layout",
"hidden": true
},
{
"title": "Tables",
"url": "/tables"
},
{
"title": "Steppers",
"url": "/steppers"
Expand Down
7 changes: 1 addition & 6 deletions src/__configuration__/markdown/markdownMapping.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import {
} from '@material-ui/core';
import { Link as LinkIcon } from '@material-ui/icons';
import { Link, LinkProps } from 'react-router-dom';
import { REGULAR_WIDTH_STYLE, copyTextToClipboard } from '../../app/shared';
import { REGULAR_WIDTH_STYLE, copyTextToClipboard, getHash } from '../../app/shared';
import * as Colors from '@brightlayer-ui/colors';
import color from 'color';
import clsx from 'clsx';
Expand Down Expand Up @@ -52,11 +52,6 @@ export const InternalLink = (props: LinkProps): JSX.Element => {
/>
);
};
const getHash = (str: string): string =>
str
.replace(/ /g, '-')
.replace(/[#?/&]/g, '')
.toLowerCase();

type Headline = HTMLAttributes<HTMLDivElement> & {
hash: string;
Expand Down
19 changes: 12 additions & 7 deletions src/__configuration__/navigationMenu/navigation.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -203,9 +203,9 @@ export const pageDefinitions: SimpleNavItem[] = [
component: <MarkdownPage title={'Internationalization'} markdown={Docs.Patterns.I18N} />,
},
{
title: 'Lists & Tables',
title: 'Lists',
url: '/lists',
component: <MarkdownPage title={'Lists & Tables'} markdown={Docs.Patterns.Lists} />,
component: <MarkdownPage title={'Lists'} markdown={Docs.Patterns.Lists} />,
},
{
title: 'Loading & Waiting',
Expand All @@ -228,6 +228,11 @@ export const pageDefinitions: SimpleNavItem[] = [
component: <MarkdownPage title={'Page Layout'} markdown={Docs.Patterns.Layout} />,
hidden: true,
},
{
title: 'Tables',
url: '/tables',
component: <MarkdownPage title={'Tables'} markdown={Docs.Patterns.Tables} />,
},
{
title: 'Steppers',
url: '/steppers',
Expand Down Expand Up @@ -281,16 +286,16 @@ export const pageDefinitions: SimpleNavItem[] = [
url: '/illustrations',
component: <MarkdownPage title={'Illustrations'} markdown={Docs.Style.Illustrations} />,
},
{
title: 'Typography',
url: '/typography',
component: <MarkdownPage title={'Typography'} markdown={Docs.Style.Typography} />,
},
{
title: 'Themes',
url: '/themes',
component: <MarkdownPage title={'Themes'} markdown={Docs.Style.Themes} />,
},
{
title: 'Typography',
url: '/typography',
component: <MarkdownPage title={'Typography'} markdown={Docs.Style.Typography} />,
},
],
},
{
Expand Down
12 changes: 11 additions & 1 deletion src/__configuration__/patterns/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import LoadingImage from '../../app/assets/design-patterns/loading-states/loadin
import LoginBanner from '../../app/assets/design-patterns/user-authentication/login.svg';
import NavigationtImg from '../../app/assets/design-patterns/navigation/navigation.svg';
import OverlayBanner from '../../app/assets/design-patterns/overlays/overlay-banner.svg';
import TableImg from '../../app/assets/design-patterns/tables/tables.svg';
// import PageLayoutImg from '../../app/assets/design-patterns/page-layout/layout-banner.svg';
import StepperImg from '../../app/assets/design-patterns/steppers/steppers-banner.svg';
import VisualizationImage from '../../app/assets/design-patterns/visualizations/visualizations-banner.svg';
Expand Down Expand Up @@ -56,7 +57,7 @@ export const patterns = [
},
},
{
title: 'Lists & Tables',
title: 'Lists',
url: '/patterns/lists',
description: 'Different lists for different kinds of data.',
image: ListImg,
Expand Down Expand Up @@ -88,6 +89,15 @@ export const patterns = [
// description: 'Laying out elements on the screen.',
// image: PageLayoutImg,
// },
{
title: 'Tables',
url: '/patterns/tables',
description: 'Render tables in a structured way.',
image: TableImg,
background: {
position: 'center',
},
},
{
title: 'Steppers',
url: '/patterns/steppers',
Expand Down
7 changes: 6 additions & 1 deletion src/__configuration__/roadmap/index.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,17 @@
import { Quarter, Release } from '../../__types__';

export const CURRENT_RELEASE: Release = 'R22';
export const CURRENT_RELEASE: Release = 'R23';

export const AVAILABLE_RELEASES: Array<{
name: Release;
year: number;
quarter: Quarter;
}> = [
{
name: 'R24',
year: 2022,
quarter: 'Q2',
},
{
name: 'R23',
year: 2022,
Expand Down
File renamed without changes.
10 changes: 2 additions & 8 deletions src/__configuration__/themes/earth-day.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import * as BLUIThemes from '@brightlayer-ui/react-themes';
import * as Colors from '@brightlayer-ui/colors';
import banner from '../../app/assets/themes/earth-day/earth.jpg';
import cursor from '../../app/assets/themes/earth-day/cursor.svg';
import titleBlock from '../../app/assets/themes/earth-day/title-block.gif';
import AppBarTile from '../../app/assets/themes/earth-day/tile.svg';
import { Schedule } from './types';

Expand All @@ -26,14 +25,9 @@ export const EarthDaySchedule: Schedule = {
color: Colors.white[50],
},
className: 'earth-day',
customBannerText: {
backgroundImage: `url(${titleBlock})`,
backgroundSize: 'contain',
backgroundRepeat: 'no-repeat',
backgroundPosition: 'center',
},
appBarBackground: {
backgroundImage: `url(${AppBarTile})`,
background: `url(${AppBarTile}), linear-gradient(90deg, ${Colors.green[900]}, ${Colors.blue[700]})`,
backgroundPosition: 'center',
},
},
};
2 changes: 1 addition & 1 deletion src/__configuration__/themes/index.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
export * from './types';
export * from './schedule';
export * from './_schedule';
7 changes: 7 additions & 0 deletions src/__configuration__/themes/mid-autumn-festival.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,12 @@ export const MidAutumnSchedule: Schedule = {
},
},
},
MuiFab: {
primary: {
backgroundColor: Colors.red[700],
color: 'white',
},
},
},
},
landingPageBanner: {
Expand All @@ -77,6 +83,7 @@ export const MidAutumnSchedule: Schedule = {
backgroundRepeat: 'no-repeat',
backgroundPosition: 'center',
height: '40vh',
width: 600,
},
appBarBackground: {
backgroundImage: `url(${AppBarTile})`,
Expand Down
6 changes: 6 additions & 0 deletions src/__configuration__/themes/spring-festival.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,11 @@ export const SpringFestivalSchedule: Schedule = {
outlined: {},
outlinedPrimary: {},
},
MuiFab: {
primary: {
backgroundColor: Colors.yellow[900],
},
},
},
},
landingPageBanner: {
Expand All @@ -65,6 +70,7 @@ export const SpringFestivalSchedule: Schedule = {
backgroundSize: 'contain',
backgroundRepeat: 'no-repeat',
backgroundPosition: 'center',
width: 600,
},
drawerActiveBackgroundFade: 0.9,
appBarBackground: {
Expand Down
2 changes: 1 addition & 1 deletion src/__types__/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export type IconColor = 'black' | 'blue' | 'gray' | 'white';
export type ItemTypeFilter = 'all' | 'design' | 'development';
export type Status = 'backlog' | 'in-progress' | 'pre-release' | 'deferred' | 'finished';
export type Quarter = 'Q1' | 'Q2' | 'Q3' | 'Q4';
export type Release = 'R16' | 'R17' | 'R18' | 'R19' | 'R20' | 'R21' | 'R22' | 'R23';
export type Release = 'R16' | 'R17' | 'R18' | 'R19' | 'R20' | 'R21' | 'R22' | 'R23' | 'R24';

export type RoadmapItem = {
name: string;
Expand Down
Binary file modified src/app/assets/design-patterns/account-menu/crowded-drawer.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file modified src/app/assets/design-patterns/app-bar/collapsible-app-bar-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed src/app/assets/design-patterns/app-bar/safe-area.png
Binary file not shown.
Binary file modified src/app/assets/design-patterns/empty-states/do-encourage.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src/app/assets/design-patterns/empty-states/dont-distract.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file modified src/app/assets/design-patterns/lists/action-button-as-button.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed src/app/assets/design-patterns/lists/icon-align.png
Binary file not shown.
Binary file modified src/app/assets/design-patterns/lists/local-list-actions-2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src/app/assets/design-patterns/lists/local-list-actions.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src/app/assets/design-patterns/lists/multi-select-list.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src/app/assets/design-patterns/lists/navigate-list-1.png
Binary file modified src/app/assets/design-patterns/lists/navigate-list-2.png
Binary file modified src/app/assets/design-patterns/lists/notification-buckets-1.png
Binary file modified src/app/assets/design-patterns/lists/notification-buckets-2.png
Binary file modified src/app/assets/design-patterns/lists/scorecard.png
Binary file modified src/app/assets/design-patterns/lists/simple-list-1.png
Binary file modified src/app/assets/design-patterns/lists/simple-list-2.png
Binary file modified src/app/assets/design-patterns/lists/sortable-list.gif
Diff not rendered.
Diff not rendered.
Binary file removed src/app/assets/design-patterns/login/login-error.png
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
21 changes: 10 additions & 11 deletions src/app/assets/design-patterns/overlays/overlay-banner.svg
32 changes: 32 additions & 0 deletions src/app/assets/design-patterns/tables/arrange-list.svg
35 changes: 35 additions & 0 deletions src/app/assets/design-patterns/tables/arrange-table.svg
Binary file added src/app/assets/design-patterns/tables/drag-1.png
37 changes: 37 additions & 0 deletions src/app/assets/design-patterns/tables/read-list.svg
Loading

0 comments on commit 8cd451c

Please sign in to comment.