* feature: First pass at Container Queries
`react-container-query` used to emulate 'media' queries based on container widths. Needs more thought on how to handle layouts for multiple devices. Min / Max widths for sections probs a good idea.
Added in an 'Edit' button to toggle editing the layout.
Added mostly static chakra elements to each of the sections to prototype the above Container Queries. I know it is not pretty, but TypeScript and I wanted to prototype it without stalling. I *will* split them out into components but would be good to perhaps pair up with you for this when you're available @vidvidvid. 🙏
* feature: Calendar UI elements (First pass)
Added in chakra popovers for event details.
Again, this is just chakra elements to be pulled out as templates for components.
* feat: better styling on the popovers & transitions on cal container queries
* feature: Improving responsiveness
MetaGame Design System User Guide
This was bootstrapped using TSDX. Modified README for MetaGame usage below:
Congrats! You just saved yourself hours of work by bootstrapping this project with TSDX. Let’s get you oriented with what’s here and how to use it.
This TSDX setup is meant for developing React components (not apps!) that can be published to NPM. If you’re looking to build an app, you should use
create-react-app,razzle,nextjs,gatsby, orreact-static.
If you’re new to TypeScript and React, checkout this handy cheatsheet
Commands
TSDX scaffolds your new library inside /src.
The recommended workflow is to run TSDX in one terminal:
yarn start
This builds to /dist and runs the project in watch mode so any edits you save inside src causes a rebuild to /dist.
Then run storybook:
Storybook
Run inside another terminal:
yarn storybook
This loads the stories from ./stories.
NOTE: Stories should reference the components as if using the library, similar to the example playground. This means importing from the root project directory. This has been aliased in the tsconfig and the storybook webpack config as a helper.
To run tests, use yarn test.
Jest
Jest tests are set up to run with npm test or yarn test. This runs the test watcher (Jest) in an interactive mode. By default, runs tests related to files changed since the last commit.
Folder Structure
/.storybook # Storybook configuration
/__tests__ # Test Files
foo.test.tsx
/src
index.tsx # Entry Point
theme/index.ts # Default Theme
/stories # Storybook files
Foo.stories.tsx
package.json
tsconfig.json
Rollup
TSDX uses Rollup v1.x as a bundler and generates multiple rollup configs for various module formats and build settings. See Optimizations for details.
Optimizations
Please see the main tsdx optimizations docs. In particular, know that you can take advantage of development-only optimizations:
// ./types/index.d.ts
declare var __DEV__: boolean;
// inside your code...
if (__DEV__) {
console.log('foo');
}
You can also choose to install and use invariant and warning functions.
Module Formats
CJS, ESModules, and UMD module formats are supported.
The appropriate paths are configured in package.json and dist/index.js accordingly. Please report if any issues are found.
Named Exports
Per Palmer Group guidelines, always use named exports. Code split inside your React app instead of your React library.