Skip to content

Commit

Permalink
Merge pull request #1468 from Royal-Navy/feat/timeline-styled-components
Browse files Browse the repository at this point in the history
feat(Timeline): Migrate to styled-components
  • Loading branch information
m7kvqbe1 authored Sep 25, 2020
2 parents bd19837 + 273f1ca commit 09cad68
Show file tree
Hide file tree
Showing 25 changed files with 608 additions and 511 deletions.
1 change: 0 additions & 1 deletion packages/css-framework/index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,6 @@
@use "src/components/tab-nav";
@use "src/components/tab-set";
@use "src/components/textinput";
@use "src/components/timeline";
@use "src/components/toast";
@use "src/components/toggle";
@use "src/components/tooltip";
Expand Down
270 changes: 0 additions & 270 deletions packages/css-framework/src/components/_timeline.scss

This file was deleted.

3 changes: 2 additions & 1 deletion packages/docs-site/src/library/pages/timeline/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -1245,11 +1245,12 @@ Here you will find comprehensive API documentation for the Timeline Components.
## Roadmap

- Migrate to independent package within monorepo
- Adopt [styled-components](https://github.com/styled-components/styled-components) for default presentation
- ~~Adopt [styled-components](https://github.com/styled-components/styled-components) for default presentation~~
- Expose `TimelineSide` render prop
- Add demos to sandbox
- Iterate upon default presentation (user research and design)
- Investigate support for advanced features:
- ~~Hours display~~
- Infinite scroll
- Lazy loading
- View scaling (micro to macro / hours to years)
Expand Down
42 changes: 0 additions & 42 deletions packages/react-component-library/.babelrc

This file was deleted.

29 changes: 29 additions & 0 deletions packages/react-component-library/babel.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
module.exports = {
presets: ['@babel/preset-react', '@babel/typescript'],
plugins: [
'@babel/proposal-class-properties',
'@babel/proposal-object-rest-spread',
'@babel/plugin-proposal-nullish-coalescing-operator',
'@babel/plugin-proposal-optional-chaining',
],
env: {
es: {
presets: [
[
'@babel/preset-env',
{
modules: false,
},
],
],
plugins: ['babel-plugin-jsx-remove-data-test-id'],
},
cjs: {
presets: [['@babel/preset-env']],
plugins: ['babel-plugin-jsx-remove-data-test-id'],
},
test: {
plugins: ['@babel/plugin-transform-modules-commonjs'],
},
},
}
3 changes: 3 additions & 0 deletions packages/react-component-library/jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,7 @@ module.exports = {
testMatch: ['**/?(*.)(spec|test).ts?(x)'],
setupFiles: ['<rootDir>/jest/setupTests.js'],
globalSetup: '<rootDir>/jest/globalSetup.js',
transformIgnorePatterns: [
'/node_modules/(?!@royalnavy/design-tokens).+\\.js$',
],
}
Loading

0 comments on commit 09cad68

Please sign in to comment.