Skip to content
This repository has been archived by the owner on Mar 18, 2022. It is now read-only.

ADAPT-000: Add Identity Bar, Logo, Global Footer, SR only Text, Button #4

Merged
merged 79 commits into from
Feb 17, 2021
Merged
Show file tree
Hide file tree
Changes from 6 commits
Commits
Show all changes
79 commits
Select commit Hold shift + click to select a range
7335bbc
Playing around with an idea.
sherakama Feb 5, 2021
20692d8
Playing around some more.
sherakama Feb 5, 2021
79fe464
added twin.
sherakama Feb 5, 2021
80c55b5
Wip.
sherakama Feb 9, 2021
5facb78
Wip.
sherakama Feb 9, 2021
ca7cd0b
Demo code.
sherakama Feb 10, 2021
31e6fac
WIP IdentityBar.js; install Classnames and uninstall TW classnames
yvonnetangsu Feb 10, 2021
c4f9aee
fixup
yvonnetangsu Feb 10, 2021
5483a11
remove active link class
yvonnetangsu Feb 10, 2021
117c020
fix path and run build
yvonnetangsu Feb 10, 2021
bb8a732
wip!
sherakama Feb 10, 2021
c175ffb
Merge branch 'variants' into variants-yt
yvonnetangsu Feb 10, 2021
a7cbb3a
moar.better.
sherakama Feb 10, 2021
00d4389
switch.
sherakama Feb 10, 2021
e645ac2
Moar updates.
sherakama Feb 11, 2021
20f6b4b
Merge branch 'variants' into variants-yt
yvonnetangsu Feb 11, 2021
d481a2a
Add identity bar levers and stories files; use case convention and fo…
yvonnetangsu Feb 11, 2021
76ed592
fixup
yvonnetangsu Feb 11, 2021
c285ae0
fixup! progress.
sherakama Feb 11, 2021
77cebec
Remove css file.
sherakama Feb 11, 2021
1b4e15d
Merge branch 'variants' into variants-yt
yvonnetangsu Feb 11, 2021
5b2081c
Add SrOnlyLabel component; WIP Global footer
yvonnetangsu Feb 11, 2021
79a8848
fixup! wip.
sherakama Feb 12, 2021
2ec89b3
Merge branch 'variants' into variants-yt
yvonnetangsu Feb 12, 2021
a45bcab
fixup! wip.
sherakama Feb 12, 2021
604d5d5
fixup! wip.
sherakama Feb 12, 2021
2801ac9
Merge branch "variants" into "variants-yt"
yvonnetangsu Feb 12, 2021
4a7eef4
Finish global footer styles
yvonnetangsu Feb 12, 2021
ceb9c85
fixup! wip.
sherakama Feb 12, 2021
7ad735b
Merge branch 'variants' into variants-yt
yvonnetangsu Feb 12, 2021
eb7460a
Fixup! more stuff.
sherakama Feb 12, 2021
7d9b097
Element stories.
sherakama Feb 12, 2021
4824840
fixup! stories.
sherakama Feb 13, 2021
280095b
Merge branch 'variants' into variants-yt
yvonnetangsu Feb 13, 2021
bb6f4da
Identity bar fixup
yvonnetangsu Feb 13, 2021
ec2c2d6
Add global footer to storybook WIP
yvonnetangsu Feb 13, 2021
156ccca
Add basefont 20 class to global footer wrapper so logo doesn't scale …
yvonnetangsu Feb 14, 2021
61a764d
Merge branch 'main' into variants-yt
yvonnetangsu Feb 16, 2021
b46a777
Temporary quick test to avoid build error because of failed test
yvonnetangsu Feb 16, 2021
96fc369
Some paragraph stuff and start some button stuff
yvonnetangsu Feb 16, 2021
ad49001
Prep work for the button component
yvonnetangsu Feb 16, 2021
5363da7
dupe vibrate() policy
sherakama Feb 17, 2021
d2bc47c
Update src/Button/Button.js
yvonnetangsu Feb 17, 2021
005a0e3
Update src/Button/Button.js
yvonnetangsu Feb 17, 2021
d87134d
button WIP
yvonnetangsu Feb 17, 2021
8c0f643
clean up identity bar code to use new convention
yvonnetangsu Feb 17, 2021
8126dad
Fix hilarity caused by capitalizing PropTypes; fix hilarity caused by…
yvonnetangsu Feb 17, 2021
cd92a4b
Add minimal button style for buttons that doesn't look like a rectang…
yvonnetangsu Feb 17, 2021
783c24b
Add buttonTypes as levers; sizes fixups
yvonnetangsu Feb 17, 2021
dbdb258
button styles
yvonnetangsu Feb 17, 2021
19a7f93
Alert examples tweaks
yvonnetangsu Feb 17, 2021
f980b13
Minor fixes and suggestions. (#6)
sherakama Feb 17, 2021
7cf9bf0
Update src/Button/Button.js
yvonnetangsu Feb 17, 2021
0dc76cc
Add disabled button styles
yvonnetangsu Feb 17, 2021
c78b922
add disabled button attribute and on click action
yvonnetangsu Feb 17, 2021
3160f37
Add logo component
yvonnetangsu Feb 17, 2021
2c7a011
Have Identity Bar use Logo component
yvonnetangsu Feb 17, 2021
00084ba
Global Footer SR Only Label subcomponent fixup
yvonnetangsu Feb 17, 2021
7a3b917
Stories for identity bar, footer and logo
yvonnetangsu Feb 17, 2021
f818b9f
export Logo
yvonnetangsu Feb 17, 2021
9e01eb9
Update src/Logo/Logo.js
yvonnetangsu Feb 17, 2021
540b7fd
Use Logo component for global footer
yvonnetangsu Feb 17, 2021
1f155d7
Add SrOnlyText to storybook
yvonnetangsu Feb 17, 2021
46abba0
Add same color border to disabled button so everything will be same h…
yvonnetangsu Feb 17, 2021
2cf3470
fixup! node_modules.
sherakama Feb 17, 2021
7d7c12d
All the dirs.
sherakama Feb 17, 2021
3abb597
Fixup! minor bugs.
sherakama Feb 17, 2021
bdaba64
fixup! stuff.
sherakama Feb 17, 2021
98f75d2
Use dedupe
sherakama Feb 17, 2021
4000aad
fixup! stuff. (#8)
sherakama Feb 17, 2021
2bf3071
Update src/GlobalFooter/GlobalFooter.js
yvonnetangsu Feb 17, 2021
eb1ee7a
dedupe setting for button tweak
yvonnetangsu Feb 17, 2021
5d9b6da
fixup! tests.
sherakama Feb 17, 2021
cc76c56
setup testing.
sherakama Feb 17, 2021
6ec2b34
Update src/IdentityBar/IdentityBar.stories.js
yvonnetangsu Feb 17, 2021
ecd626d
Update src/Logo/Logo.stories.js
yvonnetangsu Feb 17, 2021
9c8cf4d
Merge branch 'variants-yt' of github.com:SU-SWS/decanter-react into v…
yvonnetangsu Feb 17, 2021
1faab2c
Merge branch 'moar-suggestions' into variants-yt
yvonnetangsu Feb 17, 2021
e49c5ed
ADAPT-000: Automagically run tests (#10)
sherakama Feb 17, 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
12 changes: 10 additions & 2 deletions .storybook/main.js
Original file line number Diff line number Diff line change
@@ -1,16 +1,24 @@
module.exports = {
"stories": [
"../src/**/*.stories.mdx",
"../src/**/*.stories.@(js|jsx|ts|tsx)"
"../src/**/*.stories.@(js|jsx|ts|tsx)",
"./stories/*.stories.@(js|jsx|ts|tsx)"
],
"addons": [
// Default core extention
"@storybook/addon-essentials",
// This came out of the box. Better find out what it is.
"@storybook/addon-links",
// https://storybook.js.org/addons/@whitespace/storybook-addon-html
"@whitespace/storybook-addon-html",
// https://storybook.js.org/addons/storybook-addon-designs
"storybook-addon-designs",
// https://www.npmjs.com/package/@storybook/addon-a11y
"@storybook/addon-a11y",
// https://storybook.js.org/addons/storybook-dark-mode
"storybook-dark-mode"
]
],
reactOptions: {
fastRefresh: true,
}
}
47 changes: 47 additions & 0 deletions .storybook/preview.js
Original file line number Diff line number Diff line change
@@ -1,14 +1,61 @@
// Decanter Styles.
import 'decanter/dist/decanter.css'
import 'decanter/dist/decanter.js'
import { INITIAL_VIEWPORTS } from '@storybook/addon-viewport';

// Our Breakpoints
const customViewports = {
sm: {
name: 'Small Breakpoint',
styles: {
width: '576px',
height: '328px'
}
},
md: {
name: 'Medium Breakpoint',
styles: {
width: '768px',
height: '1024px'
}
},
lg: {
name: 'Large Breakpoint',
styles: {
width: '992px',
height: '1200px'
}
},
xl: {
name: 'Extra Large Breakpoint',
styles: {
width: '1200px',
height: '1024px'
}
},
'2xl': {
name: '2X Extra Large Breakpoint',
styles: {
width: '1500px',
height: '1100px'
}
}
};

// Configuration.
export const parameters = {
actions: { argTypesRegex: "^on[A-Z].*" },
controls: { expanded: true },
html: {
prettier: {
tabWidth: 2,
useTabs: false
},
},
viewport: {
viewports: {
...INITIAL_VIEWPORTS,
...customViewports
},
},
}
43 changes: 43 additions & 0 deletions .storybook/stories/Paragraph.stories.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
import React from 'react';
import PropTypes from 'prop-types'

export const textShort = "Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book."
export const textLong = "It is a long established fact that a reader will be distracted by the readable content of a page when looking at its layout. The point of using Lorem Ipsum is that it has a more-or-less normal distribution of letters, as opposed to using 'Content here, content here', making it look like readable English. Many desktop publishing packages and web page editors now use Lorem Ipsum as their default model text, and a search for 'lorem ipsum' will uncover many web sites still in their infancy. Various versions have evolved over the years, sometimes by accident, sometimes on purpose (injected humour and the like)."
export const textMixed = "<p>A <strong>paragraph</strong> (from the Greek paragraphos, <em>“to write beside”</em> or “<i>written beside</i>”) is a <a href=\"#\">self-contained unit of a discourse</a> in writing dealing with a <span class=\"su-underline\">particular point or idea</span>.</p>"

const Paragraph = ({children, ...props}) => {
return (
<p {...props}>{children}</p>
)
}

Paragraph.propTypes = {
color: PropTypes.string,
children: PropTypes.string
}

export default {
title: 'Elements/Paragraph',
component: Paragraph,
};

const Template = (args) => <Paragraph {...args} />;

export const Default = Template.bind({})
Default.args = {
className: '',
children: textLong
}

export const Short = Template.bind({});
Short.args = {
className: '',
children: textShort
}

export const Long = Template.bind({});
Long.args = {
className: '',
children: textLong,
}

Loading