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

fix(EmptyState): illustrations should render correctly now #332

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
53 commits
Select commit Hold shift + click to select a range
8b3d0a2
fix(EmptyState): illustrations should render correctly now
matthewgallo Feb 10, 2021
520f513
fix(EmptyState): add dynamic import for empty state illustrations
matthewgallo Feb 11, 2021
2ad2113
fix(EmptyState): use global package prefix
matthewgallo Feb 11, 2021
db9df38
fix: merge main and fix conflict
matthewgallo Feb 11, 2021
f812226
Merge branch 'master' into empty-state-asset-fix
matthewgallo Feb 17, 2021
abfc4b9
fix: refactor how we implement empty state illustrations
matthewgallo Feb 17, 2021
82805f4
fix: notifications empty state test
matthewgallo Feb 17, 2021
8a50014
fix(EmptyStates): refactor empty state to not bundle every svg
matthewgallo Feb 19, 2021
5d798e1
fix(EmptyStates): import sass file from new directory, fix classname
matthewgallo Mar 1, 2021
33f5b65
fix(EmptyStates): merge master and fix storybook conflicts
matthewgallo Mar 2, 2021
37dd87c
fix: remove spurious scrollbar when available height is very small (#…
dcwarwick Mar 3, 2021
8cbf2b2
chore(release): publish [skip ci]
github-actions[bot] Mar 3, 2021
7dd4479
fix: card design revisions v1 (#396)
davidmenendez Mar 4, 2021
450b440
chore(release): publish [skip ci]
github-actions[bot] Mar 4, 2021
e7b0d70
fix(SidePanel): remove slideIn prop from storybook, refactor classnam…
matthewgallo Mar 4, 2021
9d951ac
chore(release): publish [skip ci]
github-actions[bot] Mar 4, 2021
0122782
Remove AboutModal theme prop and respond to Carbon theme (#389)
dcwarwick Mar 4, 2021
c39baa4
chore(release): publish [skip ci]
github-actions[bot] Mar 4, 2021
e179f34
fix(WebTerminal): move from experimental to canary in storybook (#406)
matthewgallo Mar 4, 2021
7a938ff
chore(release): publish [skip ci]
github-actions[bot] Mar 4, 2021
e2c2f8d
fix: prettier config (#402)
lee-chase Mar 5, 2021
447b375
fix: story sort order (#401)
lee-chase Mar 5, 2021
a93ee51
chore(release): publish [skip ci]
github-actions[bot] Mar 5, 2021
08a836f
fix(Notifications): add props for label strings and fix classname usa…
matthewgallo Mar 5, 2021
08836c1
chore(release): publish [skip ci]
github-actions[bot] Mar 5, 2021
05aa11b
fix: remove console log from page header test (#410)
lee-chase Mar 8, 2021
dbcf6f2
chore(release): publish [skip ci]
github-actions[bot] Mar 8, 2021
7ec2bc9
fix: actdionbar item tip and title title (#403)
lee-chase Mar 8, 2021
1d58962
fix(PageHeader): story previews show correctly again in docs (#414)
matthewgallo Mar 8, 2021
3ddf623
chore(release): publish [skip ci]
github-actions[bot] Mar 8, 2021
620e4d4
Feature flags proposal (#387)
lee-chase Mar 8, 2021
a190b7d
chore(release): publish [skip ci]
github-actions[bot] Mar 8, 2021
3fb354d
Issue 385 (#417)
moores2 Mar 9, 2021
d7fc222
chore(release): publish [skip ci]
github-actions[bot] Mar 9, 2021
cfabda5
chore: fix build:storybook script to ensure dependencies built (#419)
dcwarwick Mar 9, 2021
29711ec
fix: canary scss and settings imports (#418)
lee-chase Mar 9, 2021
d029c75
chore(release): publish [skip ci]
github-actions[bot] Mar 9, 2021
1fe152c
feat(WebTerminal): add entrance/exit animation to panel (#412)
matthewgallo Mar 9, 2021
3f3ae00
chore(release): publish [skip ci]
github-actions[bot] Mar 9, 2021
377ed85
chore: core is no longer a dependency of experimental (#421)
dcwarwick Mar 9, 2021
417356f
chore(release): publish [skip ci]
github-actions[bot] Mar 9, 2021
b04bc25
chore: core is no longer a dependency of security (#423)
dcwarwick Mar 9, 2021
34ad794
chore(release): publish [skip ci]
github-actions[bot] Mar 9, 2021
fc604e1
Feature flags tidy (#425)
lee-chase Mar 9, 2021
645012f
chore(release): publish [skip ci]
github-actions[bot] Mar 9, 2021
c8295d2
Fix resizing of AboutModal (#422)
moores2 Mar 10, 2021
a1133dc
chore(release): publish [skip ci]
github-actions[bot] Mar 10, 2021
c666edb
build(ci): add import test and CI check for built artifacts (#351)
SimonFinney Mar 10, 2021
de08117
chore(release): publish [skip ci]
github-actions[bot] Mar 10, 2021
c167a11
fix: card feedback round 3 (#428)
davidmenendez Mar 10, 2021
e273b9c
chore(release): publish [skip ci]
github-actions[bot] Mar 10, 2021
2c16659
Merge branch 'empty-state-asset-fix' of https://github.com/matthewgal…
lee-chase Mar 11, 2021
549e273
fix: pkg.prefix and settings move
lee-chase Mar 11, 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
6 changes: 1 addition & 5 deletions .github/workflows/ci-check.yml → .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,10 @@
name: Continuous integration check
name: CI

on:
pull_request:
branches:
- master

push:
branches:
- master

jobs:
check:
runs-on: ubuntu-latest
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion netlify.toml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Netlify build and deploy settings - https://docs.netlify.com/configure-builds/file-based-configuration/#sample-file
[build]
command = "yarn build:storybook-addon-carbon-theme && yarn build:storybook"
command = "yarn build:storybook"
publish = "packages/core/storybook-static"
16 changes: 10 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,21 +12,24 @@
},
"scripts": {
"audit": "node scripts/audit.js dependencies moderate",
"build": "lerna run build --stream --prefix --npm-client yarn",
"build:storybook-addon-carbon-theme": "lerna run --scope \"@carbon/storybook-addon-theme\" build",
"build:storybook": "cd packages/core && yarn build:storybook",
"ci-check": "yarn format:diff && yarn lint && yarn test --ci",
"build": "lerna run build --stream --prefix --npm-client yarn --include-dependencies",
"build:storybook-addon-carbon-theme": "yarn build --scope \"@carbon/storybook-addon-theme\"",
"//build:storybook": "# we build dependencies, then run storybook build directly because its dynamic output gets mangled by lerna",
"build:storybook": "yarn build:storybook-dependencies-only && cd packages/core && yarn build",
"build:storybook-dependencies-only": "yarn build $(lerna ls --scope @carbon/ibm-cloud-cognitive-core --include-dependencies | grep -v '^@carbon/ibm-cloud-cognitive-core$' | xargs -n1 echo '--scope')",
"ci-check": "yarn format:diff && yarn lint && yarn test --ci && lerna run ci-check --stream",
"clean": "lerna run clean && lerna clean --yes && rimraf node_modules",
"copy-common-files": "sh ./scripts/copy-common-files.sh;",
"format": "prettier --write '**/*.{js,md,mdx,scss,ts}' '!**/{build,es,lib,storybook,ts,umd}/**'",
"format:diff": "prettier --list-different '**/*.{js,md,mdx,scss,ts}' '!**/{build,es,lib,storybook,ts,umd}/**' '!README.md'",
"generate": "cd packages/experimental && yarn generate",
"generate": "lerna run generate --scope \"@carbon/ibm-cloud-cognitive-experimental",
"monorepo:npm-upgrade": "sh ./scripts/monorepo-npm-upgrade.sh",
"lint": "yarn lint:es && yarn lint:style",
"lint:es": "eslint 'packages/*/src/**/*.js'",
"lint:style": "stylelint 'packages/*/src/**/*.scss' --report-needless-disables --report-invalid-scope-disables",
"test": "lerna run test --stream && jest",
"storybook": "yarn build:storybook-addon-carbon-theme && cd packages/core && yarn start",
"//storybook": "# we build dependencies, then start storybook directly because its dynamic output gets mangled by lerna",
"storybook": "yarn build:storybook-dependencies-only && cd packages/core && yarn start",
"sync": "carbon-cli sync"
},
"peerDependencies": {
Expand All @@ -38,6 +41,7 @@
"@commitlint/config-conventional": "^8.3.4",
"@testing-library/react": "^11.2.2",
"@testing-library/user-event": "^12.6.0",
"chalk": "^4.1.0",
"copyfiles": "^2.4.1",
"cpx": "^1.5.0",
"enzyme": "^3.11.0",
Expand Down
152 changes: 152 additions & 0 deletions packages/cloud-cognitive/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,158 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

## [0.1.92](https://github.com/carbon-design-system/ibm-cloud-cognitive/compare/@carbon/[email protected]...@carbon/[email protected]) (2021-03-10)

**Note:** Version bump only for package @carbon/ibm-cloud-cognitive





## [0.1.91](https://github.com/carbon-design-system/ibm-cloud-cognitive/compare/@carbon/[email protected]...@carbon/[email protected]) (2021-03-10)

**Note:** Version bump only for package @carbon/ibm-cloud-cognitive





## [0.1.90](https://github.com/carbon-design-system/ibm-cloud-cognitive/compare/@carbon/[email protected]...@carbon/[email protected]) (2021-03-10)

**Note:** Version bump only for package @carbon/ibm-cloud-cognitive





## [0.1.89](https://github.com/carbon-design-system/ibm-cloud-cognitive/compare/@carbon/[email protected]...@carbon/[email protected]) (2021-03-09)

**Note:** Version bump only for package @carbon/ibm-cloud-cognitive





## [0.1.88](https://github.com/carbon-design-system/ibm-cloud-cognitive/compare/@carbon/[email protected]...@carbon/[email protected]) (2021-03-09)

**Note:** Version bump only for package @carbon/ibm-cloud-cognitive





## [0.1.87](https://github.com/carbon-design-system/ibm-cloud-cognitive/compare/@carbon/[email protected]...@carbon/[email protected]) (2021-03-09)

**Note:** Version bump only for package @carbon/ibm-cloud-cognitive





## [0.1.86](https://github.com/carbon-design-system/ibm-cloud-cognitive/compare/@carbon/[email protected]...@carbon/[email protected]) (2021-03-09)

**Note:** Version bump only for package @carbon/ibm-cloud-cognitive





## [0.1.85](https://github.com/carbon-design-system/ibm-cloud-cognitive/compare/@carbon/[email protected]...@carbon/[email protected]) (2021-03-09)

**Note:** Version bump only for package @carbon/ibm-cloud-cognitive





## [0.1.84](https://github.com/carbon-design-system/ibm-cloud-cognitive/compare/@carbon/[email protected]...@carbon/[email protected]) (2021-03-09)

**Note:** Version bump only for package @carbon/ibm-cloud-cognitive





## [0.1.83](https://github.com/carbon-design-system/ibm-cloud-cognitive/compare/@carbon/[email protected]...@carbon/[email protected]) (2021-03-08)

**Note:** Version bump only for package @carbon/ibm-cloud-cognitive





## [0.1.82](https://github.com/carbon-design-system/ibm-cloud-cognitive/compare/@carbon/[email protected]...@carbon/[email protected]) (2021-03-08)

**Note:** Version bump only for package @carbon/ibm-cloud-cognitive





## [0.1.81](https://github.com/carbon-design-system/ibm-cloud-cognitive/compare/@carbon/[email protected]...@carbon/[email protected]) (2021-03-08)

**Note:** Version bump only for package @carbon/ibm-cloud-cognitive





## [0.1.80](https://github.com/carbon-design-system/ibm-cloud-cognitive/compare/@carbon/[email protected]...@carbon/[email protected]) (2021-03-05)

**Note:** Version bump only for package @carbon/ibm-cloud-cognitive





## [0.1.79](https://github.com/carbon-design-system/ibm-cloud-cognitive/compare/@carbon/[email protected]...@carbon/[email protected]) (2021-03-05)

**Note:** Version bump only for package @carbon/ibm-cloud-cognitive





## [0.1.78](https://github.com/carbon-design-system/ibm-cloud-cognitive/compare/@carbon/[email protected]...@carbon/[email protected]) (2021-03-04)

**Note:** Version bump only for package @carbon/ibm-cloud-cognitive





## [0.1.77](https://github.com/carbon-design-system/ibm-cloud-cognitive/compare/@carbon/[email protected]...@carbon/[email protected]) (2021-03-04)

**Note:** Version bump only for package @carbon/ibm-cloud-cognitive





## [0.1.76](https://github.com/carbon-design-system/ibm-cloud-cognitive/compare/@carbon/[email protected]...@carbon/[email protected]) (2021-03-04)

**Note:** Version bump only for package @carbon/ibm-cloud-cognitive





## [0.1.75](https://github.com/carbon-design-system/ibm-cloud-cognitive/compare/@carbon/[email protected]...@carbon/[email protected]) (2021-03-04)

**Note:** Version bump only for package @carbon/ibm-cloud-cognitive





## [0.1.74](https://github.com/carbon-design-system/ibm-cloud-cognitive/compare/@carbon/[email protected]...@carbon/[email protected]) (2021-03-03)

**Note:** Version bump only for package @carbon/ibm-cloud-cognitive





## [0.1.73](https://github.com/carbon-design-system/ibm-cloud-cognitive/compare/@carbon/[email protected]...@carbon/[email protected]) (2021-03-01)

**Note:** Version bump only for package @carbon/ibm-cloud-cognitive
Expand Down
9 changes: 5 additions & 4 deletions packages/cloud-cognitive/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@carbon/ibm-cloud-cognitive",
"description": "Carbon for Cloud & Cognitive common UI components",
"version": "0.1.73",
"version": "0.1.92",
"license": "Apache-2.0",
"main": "lib/index.js",
"module": "es/index.js",
Expand Down Expand Up @@ -32,17 +32,18 @@
"build": "yarn clean && yarn build:js && yarn build:scss",
"build:js": "node scripts/build",
"build:scss": "bundler bundle:scss src/index.scss && copyfiles 'src/**/*.scss' scss -u 1",
"ci-check": "node scripts/import",
"clean": "rimraf es lib scss",
"test": "bundler check 'src/**/*.scss'"
},
"peerDependencies": {
"react": "^16.13.1"
},
"dependencies": {
"@carbon/ibm-cloud-cognitive-experimental": "^0.20.2",
"@carbon/ibm-cloud-cognitive-security": "^0.4.2"
"@carbon/ibm-cloud-cognitive-experimental": "^0.21.5",
"@carbon/ibm-cloud-cognitive-security": "^0.4.9"
},
"devDependencies": {
"@carbon/ibm-cloud-cognitive-core": "^0.6.2"
"@carbon/ibm-cloud-cognitive-core": "^0.6.13"
}
}
10 changes: 10 additions & 0 deletions packages/cloud-cognitive/scripts/import.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
/**
* Copyright IBM Corp. 2021, 2021
*
* This source code is licensed under the Apache-2.0 license found in the
* LICENSE file in the root directory of this source tree.
*/

module.exports = require('@carbon/ibm-cloud-cognitive-core/import')(
require('path').resolve(__dirname, '..', 'lib')
);
16 changes: 12 additions & 4 deletions packages/core/.storybook/index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -17,29 +17,37 @@ $css--reset: false;
@import '../generated/feature-flags/feature-flags';
@import '@carbon/themes/scss/themes';

// Setting attribute storybook-carbon-theme="XXX" on the html element
// will set the carbon theme used for the storybook pane.
// Adding class sb--use-carbon-theme-XXX on any element
// will set the carbon theme used within that element.
@if map-get($feature-flags, 'enable-css-custom-properties') {
:root {
:root,
.sb--use-carbon-theme-white {
@include carbon--theme(
$theme: $carbon--theme--white,
$emit-custom-properties: true
);
}

:root[storybook-carbon-theme='g10'] {
:root[storybook-carbon-theme='g10'],
.sb--use-carbon-theme-g10 {
@include carbon--theme(
$theme: $carbon--theme--g10,
$emit-custom-properties: true
);
}

:root[storybook-carbon-theme='g90'] {
:root[storybook-carbon-theme='g90'],
.sb--use-carbon-theme-g90 {
@include carbon--theme(
$theme: $carbon--theme--g90,
$emit-custom-properties: true
);
}

:root[storybook-carbon-theme='g100'] {
:root[storybook-carbon-theme='g100'],
.sb--use-carbon-theme-g100 {
@include carbon--theme(
$theme: $carbon--theme--g100,
$emit-custom-properties: true
Expand Down
28 changes: 25 additions & 3 deletions packages/core/.storybook/preview.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
* LICENSE file in the root directory of this source tree.
*/

import { withInfo } from '@storybook/addon-info';
import React, { useEffect } from 'react';
import { withInfo } from '@storybook/addon-info';
import { withCarbonTheme } from '@carbon/storybook-addon-theme/react';

import index from './index.scss';
Expand Down Expand Up @@ -39,12 +39,34 @@ const decorators = [
withCarbonTheme,
];

const order = [
'Cloud & Cognitive/Released',
'Cloud & Cognitive/Canary',
'Legacy',
];
const toOrder = (value) => {
const inOrder = order.findIndex((item) => value.startsWith(item));
// length is last index + 1
return inOrder < 0 ? order.length : inOrder;
};

const parameters = {
controls: { expanded: true, hideNoControlsWarning: true },
layout: 'centered',
options: {
storySort: {
order: ['Cloud & Cognitive', ['Released', 'Canary'], 'Legacy'],
storySort: (a, b) => {
// const storybookOrder = ['Cloud & Cognitive', ['Released', 'Canary'], 'Legacy'];
const aInOrder = toOrder(a[1].kind);
const bInOrder = toOrder(b[1].kind);

if (aInOrder !== bInOrder) {
return aInOrder - bInOrder;
} else {
// from storybook doc example https://storybook.js.org/docs/react/writing-stories/naming-components-and-hierarchy
return a[1].kind === b[1].kind
? 0
: a[1].id.localeCompare(b[1].id, undefined, { numeric: true });
}
},
},

Expand Down
Loading