Commit Graph

46 Commits

Author SHA1 Message Date
Patrik Oldsberg c53bafc5f9 v0.1.1-alpha.7 2020-06-09 14:24:56 +02:00
Raghunandan 499c784c97 minor fixes 2020-06-04 13:42:41 +02:00
Patrik Oldsberg 828e6675c8 packages/storybook: add global apis decorator (#1058) 2020-05-28 21:48:21 +02:00
dependabot-preview[bot] f182ae3e41 build(deps-dev): bump storybook-dark-mode from 0.4.1 to 0.6.1 (#1008)
Bumps [storybook-dark-mode](https://github.com/hipstersmoothie/storybook-dark-mode) from 0.4.1 to 0.6.1.
- [Release notes](https://github.com/hipstersmoothie/storybook-dark-mode/releases)
- [Changelog](https://github.com/hipstersmoothie/storybook-dark-mode/blob/master/CHANGELOG.md)
- [Commits](https://github.com/hipstersmoothie/storybook-dark-mode/compare/v0.4.1...v0.6.1)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-05-28 12:47:17 +02:00
Adil Alimbetov f72d97dc17 Sidebar logo update (#814)
* Testing logo ux

* Updated logo on sidebar

* removed unused vars

* adjusted types on icon components
2020-05-27 10:13:41 +02:00
Patrik Oldsberg d62c6748a0 v0.1.1-alpha.6 2020-05-20 10:49:53 +02:00
Patrik Oldsberg 1dd33e8e33 packages,plugins: remove extra tsconfig files 2020-05-17 23:30:16 +02:00
Patrik Oldsberg 8cee042e13 packages/storybook: point to src/ and use sucrase 2020-05-17 23:30:15 +02:00
Patrik Oldsberg 2bde9d3854 v0.1.1-alpha.5 2020-05-13 16:28:41 +02:00
Fredrik Adelöw c1dd24a100 OCD time: devDependencies consistently below dependencies :) 2020-05-07 08:46:10 +02:00
Patrik Oldsberg 70040b22a7 drop support for src-relative imports 2020-05-06 16:48:55 +02:00
Himanshu Mishra a835294a70 Add comment about Webpack plugin to fail builds on warnings 2020-05-05 22:49:27 +09:00
Himanshu Mishra f40ccc38a4 Fix syntax to check if an element is in a set 2020-05-05 20:25:45 +09:00
Himanshu Mishra b2b91013eb Fix bug in warnings whitelist check 2020-05-05 20:16:13 +09:00
Himanshu Mishra a984c9cf22 Ignore a set of warnings during storybook webpack build 2020-05-05 19:25:54 +09:00
Himanshu Mishra 706821337e Allow local storybook build even if there are warnings 2020-05-05 16:50:27 +09:00
Himanshu Mishra 23f083a19b Fail Storybook build if there are webpack compilation warnings
Create a Webpack plugin which looks for warnings at the end of the build.
Reference doc: https://webpack.js.org/contribute/writing-a-plugin/
2020-05-05 16:43:56 +09:00
Himanshu Mishra 8354d4a104 Set the initial Storybook theme to light (#711)
This fixes the inconsistency if user's OS/Browser theme is set to Dark mode.
2020-05-04 19:32:47 +02:00
Sebastian Qvarfordt 190f11c8f7 Table component with filter and search (#600)
* Initial table component with storybook example

* Moved dependencies to package/core

* Removed dependency to @backstage/core from base package.json

* Clean up some examples and remove type from columns, replacing with property align instead

* Removed more unused stuff and added toggle for filter input

* Fixed some lint issues

* Added example with material-table

* Convert column array passed into MaterialTable Backstage component into MT column array. Allow multiple values in one cell

* Removed subheader from MT

* Nicer double value cell

* Added custom sorting to example

* Cleaned up stories a bit

* Setting field instead of customSort

* Improve styling. Still needs better theme integration

* Using more colors from theme

* Fixed typing issue

* Removed react-table implementation and cleaned up material-table implementation

* Fixed some type issues

* Fixed lint issues
2020-05-04 11:10:35 +02:00
Patrik Oldsberg 5448e54e94 packages/storybook: make local core imports resolve to core src 2020-05-01 15:28:08 +02:00
Patrik Oldsberg db9d9f7f08 packages/storybook: use ts-loader for JS too 2020-05-01 15:28:08 +02:00
Stefan Ålund 516e105bd8 Add padding for all Stories (#663) 2020-04-27 22:00:05 +02:00
Muhammad Rivki b55a2adb7e fix: remove style that override background (#634) 2020-04-23 14:20:53 +02:00
Himanshu Mishra 7a5a57dd31 Disable ProgressPlugin which logs verbose webpack build progress
Warnings and Errors are still logged during build.
2020-04-20 21:02:21 +09:00
Himanshu Mishra c2e2c9363f Check if dark mode is enabled and toggle
Storybook components are wrapped using a decorator in the storybook config. When rendering, useDarkMode() will let the component know which theme (dark/light) to thoose.
2020-04-20 18:00:22 +09:00
Himanshu Mishra fe972b1e21 Use storybook-dark-mode addon to toggle light/dark mode
See the project https://github.com/hipstersmoothie/storybook-dark-mode
2020-04-20 18:00:21 +09:00
Ruairi O Brien c1ada09d06 Change peerDependencies to dependencies
Also removed some duplication.

Addresses #584
2020-04-18 01:41:41 +01:00
Patrik Oldsberg 218ee1a391 Merge pull request #563 from spotify/rugvip/theme-refactor
packages/theme: refactor to differ themes by palette only, and expose nicer types
2020-04-16 16:25:13 +02:00
Patrik Oldsberg e6c444b955 packages/storybook: hoist storybook addons so they can be loaded from other packages 2020-04-16 13:13:55 +02:00
Patrik Oldsberg d766d7aac4 packages,plugins: use lightTheme/darkTheme exports from theme package 2020-04-16 11:44:30 +02:00
Patrik Oldsberg 8df2089a02 Merge pull request #566 from spotify/rugvip/storybook-dist
packages/storybook: depend on dist version of local packages and make sure they are built
2020-04-16 11:44:06 +02:00
Patrik Oldsberg 4f9789f23a packages/storybook: depend on dist version of local packages and make sure they are built 2020-04-16 10:39:13 +02:00
Patrik Oldsberg 111f75cf3d packages/storybook: added note in readme explaining why the package exists (#560) 2020-04-16 09:02:58 +02:00
Patrik Oldsberg c4457a7614 v0.1.1-alpha.4 2020-04-15 20:27:06 +02:00
Patrik Oldsberg dd1ef4eda0 Merge pull request #548 from OrkoHunter/OrkoHunter/#536-show-story-source-code
Show code in storybook
2020-04-15 18:14:55 +02:00
Sebastian Qvarfordt 29239b1877 Added global decorator for storybook wrapping stories with the MUI theme (#556) 2020-04-15 17:08:03 +02:00
Himanshu Mishra 045ce9ab6b Add storybook addon storysource which shows code of components in storybook 2020-04-14 09:08:48 +09:00
Muhammad Rivki 6ca4626b78 fix(storybook): add aliases for @backstage/theme (#539) 2020-04-13 09:43:52 +02:00
Patrik Oldsberg 56ab5e3296 v0.1.1-alpha.3 2020-04-08 15:16:27 +02:00
Patrik Oldsberg 7463309e58 packages/storybook: make src-relative imports work 2020-04-08 00:41:37 +02:00
Patrik Oldsberg 3b9b16c952 v0.1.1-alpha.2 2020-04-07 13:25:23 +02:00
Patrik Oldsberg 29f2bc2735 v0.1.1-alpha.1 2020-04-03 14:37:54 +02:00
hugomartinez 60d504978e Storybook background color changed for better lisibility - Issue #450 2020-04-02 18:46:02 +02:00
Mateus Marquezini b1a2eef8fd #400 Adding Information Card component to Storybook 2020-03-29 12:11:07 -03:00
Patrik Oldsberg cf446052bc packages: add READMEs 2020-03-25 12:57:54 +01:00
Patrik Oldsberg 4852485f9a package/core: move storybook to separate private and nohoist package 2020-03-23 19:26:56 +01:00