Skip to content
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

chore(fluid-inputs): update branch with latest changes from main #3202

Merged
merged 35 commits into from
Oct 14, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
35 commits
Select commit Hold shift + click to select a range
a6bf633
chore(release): update carbon deps (#3159)
carbon-automation[bot] Sep 16, 2022
6b5e381
feat(website): add accessibility link, update common js (#3155)
tay1orjones Sep 16, 2022
2cf9d87
fix: mdx formatting inside component demo (#3160)
alisonjoseph Sep 16, 2022
835651e
docs: contained-list (#3145)
laurenmrice Sep 16, 2022
00c3c22
docs(grid): updated with API docs and example (#3136)
sstrubberg Sep 16, 2022
75d038d
fix(typography): fix controls bug (#3130)
aledavila Sep 19, 2022
e0059b2
Updated outdated links to storybook (#3164)
aagonzales Sep 20, 2022
94d7e1e
Change tab text of typography from "Styling strategies" to "Style str…
abhilipsasahoo03 Sep 20, 2022
1821a88
Update accessibility.mdx (#3143)
mbgower Sep 21, 2022
7ea3965
Correct verbiage on ibm commerce platform page (#3157)
francinelucca Sep 21, 2022
34f3b22
Compressed Images (#3162)
github-actions[bot] Sep 23, 2022
85db97a
docs(Theme): update Theme docs with new guidance/usage (#2998)
dakahn Sep 26, 2022
cf56acd
docs(team): removed team page and removed photos from partners (#3170)
sstrubberg Sep 26, 2022
0cc48b8
fix(content): broken links (#3167)
alisonjoseph Sep 27, 2022
62338df
docs(meetups): added office hours) (#3165)
sstrubberg Sep 27, 2022
b3416d2
update dataviz meeting time (#3177)
theiliad Sep 28, 2022
8b0bafa
chore(release): update carbon deps (#3178)
carbon-automation[bot] Sep 30, 2022
30d826f
docs: figma v11 release content updates (#3176)
laurenmrice Sep 30, 2022
d6d2b50
Compressed Images (#3184)
github-actions[bot] Oct 3, 2022
5d881e4
docs(Accordion): match Accordion to ken to code (#3180)
tw15egan Oct 4, 2022
f2ff211
Ecosystem updates (#3150)
mzuliani-ibm Oct 4, 2022
a3326c0
feat: add crosslink banner to carbon platform on homepage (#3185)
alisonjoseph Oct 5, 2022
4f6b0ab
docs: add flush accordion content (#3168)
laurenmrice Oct 5, 2022
fee6747
docs(progress-bar): add component live demo (#3182)
janhassel Oct 6, 2022
e280be0
docs(svelte): update resources and intro (#3183)
metonym Oct 7, 2022
b6ebe8e
Compressed Images (#3189)
github-actions[bot] Oct 11, 2022
5a8054e
docs(contact-us): minor updates to contact us page (#3186)
jeffchew Oct 12, 2022
e9bb1ba
chore(release): update carbon deps (#3194)
carbon-automation[bot] Oct 12, 2022
8591c2d
fix(tutorial): remove optimize sass from step 5 (#3192)
tay1orjones Oct 13, 2022
a06adb9
refactor(tutorial): remove badging (#3197)
tay1orjones Oct 13, 2022
9cffd78
chore(release): update carbon deps (#3200)
carbon-automation[bot] Oct 13, 2022
c73744d
fix(Icons): fix broken link (#3196)
tw15egan Oct 14, 2022
3c128a6
docs(Fluid inputs): text input and text area (#3158)
aagonzales Oct 4, 2022
7e5d681
chore(format): run yarn format
tw15egan Oct 14, 2022
77d20c7
Merge branch 'carbon-design-system:fluid-inputs' into fluid-inputs
tw15egan Oct 14, 2022
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
5 changes: 5 additions & 0 deletions gatsby-node.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,4 +66,9 @@ exports.createPages = ({ actions }) => {
toPath: '/developing/vue-tutorial/overview',
isPermanent: true,
});
createRedirect({
fromPath: '/guidelines/typography/styling-strategies',
toPath: '/guidelines/typography/style-strategies',
isPermanent: true,
});
};
7 changes: 5 additions & 2 deletions gatsby-ssr.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React from 'react';

export const onRenderBody = ({ setHeadComponents }) => {
export const onRenderBody = ({ setHeadComponents, setPostBodyComponents }) => {
const script = `
if(!window) window = {};
window.idaPageIsSPA = true;
Expand All @@ -20,7 +20,7 @@ export const onRenderBody = ({ setHeadComponents }) => {
},
}`;

return setHeadComponents([
setHeadComponents([
<meta key="image" name="image" content={'/ogimage.png'} />,
<meta
key="og:url"
Expand Down Expand Up @@ -68,6 +68,9 @@ export const onRenderBody = ({ setHeadComponents }) => {
key="fathom"
defer
/>,
]);

setPostBodyComponents([
<script key="digital-data" dangerouslySetInnerHTML={{ __html: script }} />,
<script
defer
Expand Down
12 changes: 6 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,11 @@
"dependencies": {
"@babel/core": "^7.15.8",
"@carbon/charts-react": "0.55.0",
"@carbon/elements": "^11.10.0-rc.0",
"@carbon/icons-react": "^11.8.0-rc.0",
"@carbon/pictograms": "^12.6.0-rc.0",
"@carbon/pictograms-react": "^11.32.0-rc.0",
"@carbon/react": "^1.13.0-rc.0",
"@carbon/elements": "^11.12.0",
"@carbon/icons-react": "^11.10.0",
"@carbon/pictograms": "^12.7.0",
"@carbon/pictograms-react": "^11.33.0",
"@carbon/react": "^1.15.0",
"@loadable/component": "^5.15.2",
"@slack/web-api": "^5.11.0",
"babel-preset-env": "^1.7.0",
Expand All @@ -57,7 +57,7 @@
"gatsby": "^4.9.2",
"gatsby-image": "^3.7.1",
"gatsby-plugin-image": "^2.9.0",
"gatsby-theme-carbon": "^3.0.0-next.12",
"gatsby-theme-carbon": "^3.0.0-next.13",
"lodash-es": "^4.17.15",
"markdown-it": "^12.3.2",
"nanoid": "^2.1.11",
Expand Down
35 changes: 35 additions & 0 deletions src/components/Banner/Banner.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
import React from 'react';
import { Button } from '@carbon/react';
import { ArrowRight } from '@carbon/react/icons';

import {
banner,
bannerText,
bannerHeading,
bannerDetails,
buttonBanner,
} from './Banner.module.scss';

const Banner = () => {
return (
<div aria-label="banner" className={banner}>
<p className={bannerText}>
<strong className={bannerHeading}>
A new web experience is coming!
</strong>
<span className={bannerDetails}>
The v1 Carbon platform is now available in public beta.
</span>
</p>
<Button
href="https://next.carbondesignsystem.com"
className={buttonBanner}
kind="ghost"
renderIcon={ArrowRight}>
Try the Carbon Platform
</Button>
</div>
);
};

export default Banner;
56 changes: 56 additions & 0 deletions src/components/Banner/Banner.module.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
// position header, left nav and content with banner
.banner + :global(.cds--header),
.banner + header + nav + div[class*='leftNavWrapper'],
.banner + header + nav + div + span + div + #main-content {
top: rem(48px);
}

// banner styles
.banner {
position: fixed;
top: 0;
z-index: 99999;
display: flex;
width: 100%;
height: rem(48px);
justify-content: space-between;

background: $blue-70;
color: $text-on-color;
}

.banner-text {
display: none;

@include breakpoint('md') {
@include type-style('body-short-01');

display: block;
padding: rem(15px) 0 0 $spacing-05;
}
}

.banner-details {
display: none;

@include breakpoint('lg') {
display: inline;
padding-left: $spacing-03;
}
}

// override carbon button styles
.banner :global(.cds--btn--ghost).button-banner {
width: 100%;
max-width: 100%;
color: $text-on-color;

@include breakpoint('md') {
width: auto;
}

&:hover {
background: $blue-70-hover;
color: $text-on-color;
}
}
3 changes: 3 additions & 0 deletions src/components/Banner/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import Banner from './Banner';

export default Banner;
28 changes: 10 additions & 18 deletions src/components/TypesetStyle/typeset-style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -83,9 +83,14 @@
.cds--typeset-style-controls-sticky {
align-items: center;
background-color: $white-0;
box-sizing: content-box;
position: sticky;
width: auto;
z-index: 2;
box-sizing: content-box;

@include breakpoint('md') {
flex-wrap: nowrap;
}
}

.cds--typeset-style-controls-sticky-stuck {
Expand Down Expand Up @@ -119,22 +124,14 @@
}

.cds--typeset-style-breakpoint-controls {
height: 3rem;
align-items: center;
display: flex;
height: 3rem;
overflow-x: auto;
white-space: nowrap;
padding-left: $spacing-05;
padding-right: 0;
white-space: nowrap;
width: 100%;

@include breakpoint('md') {
width: 62.5%;
}

@include breakpoint('lg') {
width: 50%;
}
}

.cds--typeset-style-screen-width-label {
Expand All @@ -147,21 +144,16 @@
height: 3rem;
border-top: 1px solid $gray-20;
border-bottom: 1px solid $gray-20;
padding-left: $spacing-05;
padding-right: $spacing-05;
display: grid;
grid-template-columns: auto 1fr auto;
padding-left: $spacing-05;
padding-right: $spacing-05;
width: 100%;

@include breakpoint('md') {
border-top: none;
border-bottom: none;
border-left: 1px solid $gray-20;
width: 37.5%;
}

@include breakpoint('lg') {
width: 50%;
}
}

Expand Down
76 changes: 76 additions & 0 deletions src/data/docgen/react-docgen.json
Original file line number Diff line number Diff line change
Expand Up @@ -4702,6 +4702,82 @@
}
},
"PrimaryButton": { "description": "", "displayName": "PrimaryButton" },
"ProgressBar": {
"description": "",
"displayName": "ProgressBar",
"methods": [],
"props": {
"className": {
"type": { "name": "string" },
"required": false,
"description": "Additional CSS class names."
},
"helperText": {
"type": { "name": "string" },
"required": false,
"description": "The current progress as a textual representation."
},
"hideLabel": {
"type": { "name": "bool" },
"required": false,
"description": "Whether the label should be visually hidden."
},
"label": {
"type": { "name": "string" },
"required": true,
"description": "A label describing the progress bar."
},
"max": {
"type": { "name": "number" },
"required": false,
"description": "The maximum value.",
"defaultValue": { "value": "100", "computed": false }
},
"size": {
"type": {
"name": "enum",
"value": [
{ "value": "'small'", "computed": false },
{ "value": "'big'", "computed": false }
]
},
"required": false,
"description": "Specify the size of the ProgressBar.",
"defaultValue": { "value": "'big'", "computed": false }
},
"status": {
"type": {
"name": "enum",
"value": [
{ "value": "'active'", "computed": false },
{ "value": "'finished'", "computed": false },
{ "value": "'error'", "computed": false }
]
},
"required": false,
"description": "Specify the status.",
"defaultValue": { "value": "'active'", "computed": false }
},
"type": {
"type": {
"name": "enum",
"value": [
{ "value": "'default'", "computed": false },
{ "value": "'inline'", "computed": false },
{ "value": "'indented'", "computed": false }
]
},
"required": false,
"description": "Defines the alignment variant of the progress bar.",
"defaultValue": { "value": "'default'", "computed": false }
},
"value": {
"type": { "name": "number" },
"required": false,
"description": "The current value."
}
}
},
"ProgressIndicator": {
"description": "",
"displayName": "ProgressIndicator",
Expand Down
4 changes: 2 additions & 2 deletions src/data/nav-items.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@
path: /all-about-carbon/who-uses-carbon/
- title: The Carbon ecosystem
path: /all-about-carbon/the-carbon-ecosystem/
- title: The Carbon team
path: /all-about-carbon/the-team/
- title: Partners
path: /all-about-carbon/partners/
- title: Releases
Expand Down Expand Up @@ -114,6 +112,8 @@
path: /components/checkbox/usage/
- title: Code snippet
path: /components/code-snippet/usage/
- title: Contained list
path: /components/contained-list/usage/
- title: Content switcher
path: /components/content-switcher/usage/
- title: Data table
Expand Down
1 change: 1 addition & 0 deletions src/gatsby-theme-carbon/components/Footer/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ const links = {
},
{ href: 'https://www.ibm.com/privacy', linkText: 'Privacy' },
{ href: 'https://www.ibm.com/legal', linkText: 'Terms of use' },
{ href: 'https://www.ibm.com/able', linkText: 'Accessibility' },
{ href: 'https://www.ibm.com/', linkText: 'IBM.com' },
],
secondCol: [
Expand Down
2 changes: 2 additions & 0 deletions src/gatsby-theme-carbon/components/Layout.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import Header from 'gatsby-theme-carbon/src/components/Header';
import Switcher from 'gatsby-theme-carbon/src/components/Switcher';
import Footer from 'gatsby-theme-carbon/src/components/Footer';
import Container from 'gatsby-theme-carbon/src/components/Container';
import Banner from '../../components/Banner';

import 'gatsby-theme-carbon/src/styles/index.scss';
import { layout } from '../../styles/Layout.module.scss';
Expand Down Expand Up @@ -43,6 +44,7 @@ const Layout = ({
pageDescription={pageDescription}
pageKeywords={pageKeywords}
/>
{homepage && <Banner />}
<Header />
<Switcher />
<LeftNav homepage={homepage} is404Page={is404} theme={theme} />
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
11 changes: 11 additions & 0 deletions src/pages/all-about-carbon/images/ecosystem/crop-growth.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading