@rocketsofawesome/mirage
[Live Demo of the Pattern Library](https://rocketsofawesome.github.io/mirage/)
Last updated a month ago by roa_engineering .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @rocketsofawesome/mirage 
SYNC missed versions from official npm registry.

Mirage Branches Functions Lines Statements

Live Demo of the Pattern Library

Use the Pattern Library

First run the command:

npm install @rocketsofawesome/mirage

Then inside of your react project (preferably towards the top of the application) wrap the application in the <ROATheme></ROATheme> theme wrapper. This will set a bunch of props on children components such as colors, fonts, etc.

To import other components into your react app, simply do the following:

import { Logo } from '@rocketsofawesome/mirage'

You should then have access to the component and can use it like a normal react component:

<Logo />

It's that easy! Additional props are documented in

Development

To run the pattern library locally, run the following:

npm start

This will start the styleguidist server which parses through the directories in the src directory, and output those components to the pattern library.

If you would like to publish your new component(s) to the styleguide demo, commit your changes like you would normally.

Publish to npm

First, be sure to do your work on a feature branch, we have scripts that are run specifically on the master branch.

If you are happy with the changes that you have made to your component and you wish to publish your changes to npm, do the following.

First, be sure to add your component to the src/index.js, if you test your components by pulling them in from the SRC directory, you should be able to tell if they are being exported properly for consumption.

This is the file that gets distributed in the dist directory.

Then run the following commands:

npm version patch

This command will bump the version of the pattern library by one patch number (Note: publishing to npm requires that a new version number be supplied).

When you merge your feature branch onto master, the npm publish script will be run and your changes will then be available when you do npm install --save @rocketsofawesome/mirage in the codebase that is using our styled components. There is also another command that gets run that builds the styleguide code and then publishes that code to the gh-pages branch. This serves the static version of the component library.

The Rockets of Awesome Pattern Library (RoA PL) is an organized set of interactive, reusable components that can be used to build out more complicated modules, pages, and templates. Pattern libraries often include example elements, sample code, variations, use cases, and considerations.


When building a pattern library, you should consider the following for each pattern you add:

Pattern name: Giving each pattern a name makes it easier to discuss and reference them. Meaningful names help people quickly grasp what the pattern may look like and how it may be used.

Visual representation: What does the pattern look like? An interactive visual representation of the pattern can show different states (like active, focus, hover) and include other variations.

Design elements: Add a downloadable design file that can be easily edited. Designers can then incorporate the pattern into their workflow more quickly. Code samples: Sample code includes the code that defines the semantic structure, visual style, and behavior for each pattern. For web-based libraries, this would be the HTML, CSS, and Javascript. In most cases, the CSS and Javascript should already be defined in existing stylesheets and scripts. Sample code should document how to apply those styles and behaviors.

Variations: Some patterns have multiple variations. Show each of the visual variants, how to implement them, and what problems they are intended to solve. Use cases: Use cases define where and how to use patterns most effectively. They may even suggest alternative patterns for specific circumstances, good pattern combinations, and examples of when NOT to use the pattern.

Considerations: Even the best patterns have tradeoffs or potential pitfalls. Including considerations can help tell your team why (or more importantly why NOT) to use a pattern in certain circumstances. Related elements: What patterns are similar to this pattern? What patterns commonly accompany this one? Is this pattern a part of a larger component?

Current Tags

  • 0.1.392                                ...           latest (a month ago)

361 Versions

  • 0.1.392                                ...           a month ago
  • 0.1.391                                ...           a month ago
  • 0.1.390                                ...           a month ago
  • 0.1.389                                ...           a month ago
  • 0.1.388                                ...           a month ago
  • 0.1.387                                ...           a month ago
  • 0.1.386                                ...           a month ago
  • 0.1.385                                ...           a month ago
  • 0.1.384                                ...           a month ago
  • 0.1.383                                ...           a month ago
  • 0.1.382                                ...           a month ago
  • 0.1.381                                ...           a month ago
  • 0.1.380                                ...           a month ago
  • 0.1.379                                ...           a month ago
  • 0.1.378                                ...           a month ago
  • 0.1.377                                ...           2 months ago
  • 0.1.376                                ...           2 months ago
  • 0.1.375                                ...           2 months ago
  • 0.1.374                                ...           2 months ago
  • 0.1.373                                ...           2 months ago
  • 0.1.372                                ...           2 months ago
  • 0.1.371                                ...           2 months ago
  • 0.1.370                                ...           2 months ago
  • 0.1.369                                ...           2 months ago
  • 0.1.368                                ...           2 months ago
  • 0.1.367                                ...           2 months ago
  • 0.1.366                                ...           2 months ago
  • 0.1.365                                ...           2 months ago
  • 0.1.364                                ...           2 months ago
  • 0.1.363                                ...           2 months ago
  • 0.1.362                                ...           2 months ago
  • 0.1.361                                ...           2 months ago
  • 0.1.360                                ...           2 months ago
  • 0.1.359                                ...           3 months ago
  • 0.1.358                                ...           3 months ago
  • 0.1.357                                ...           3 months ago
  • 0.1.356                                ...           3 months ago
  • 0.1.355                                ...           3 months ago
  • 0.1.354                                ...           3 months ago
  • 0.1.353                                ...           3 months ago
  • 0.1.351                                ...           3 months ago
  • 0.1.350                                ...           3 months ago
  • 0.1.349                                ...           3 months ago
  • 0.1.348                                ...           3 months ago
  • 0.1.347                                ...           3 months ago
  • 0.1.346                                ...           3 months ago
  • 0.1.345                                ...           3 months ago
  • 0.1.344                                ...           3 months ago
  • 0.1.343                                ...           3 months ago
  • 0.1.342                                ...           3 months ago
  • 0.1.341                                ...           3 months ago
  • 0.1.340                                ...           3 months ago
  • 0.1.339                                ...           3 months ago
  • 0.1.338                                ...           3 months ago
  • 0.1.337                                ...           3 months ago
  • 0.1.336                                ...           3 months ago
  • 0.1.335                                ...           3 months ago
  • 0.1.334                                ...           3 months ago
  • 0.1.333                                ...           3 months ago
  • 0.1.332                                ...           3 months ago
  • 0.1.331                                ...           3 months ago
  • 0.1.330                                ...           3 months ago
  • 0.1.329                                ...           3 months ago
  • 0.1.328                                ...           3 months ago
  • 0.1.327                                ...           3 months ago
  • 0.1.326                                ...           3 months ago
  • 0.1.324                                ...           3 months ago
  • 0.1.325                                ...           3 months ago
  • 0.1.323                                ...           3 months ago
  • 0.1.322                                ...           3 months ago
  • 0.1.321                                ...           3 months ago
  • 0.1.320                                ...           3 months ago
  • 0.1.319                                ...           3 months ago
  • 0.1.317                                ...           3 months ago
  • 0.1.316                                ...           3 months ago
  • 0.1.315                                ...           3 months ago
  • 0.1.314                                ...           3 months ago
  • 0.1.313                                ...           3 months ago
  • 0.1.312                                ...           3 months ago
  • 0.1.311                                ...           3 months ago
  • 0.1.310                                ...           3 months ago
  • 0.1.309                                ...           3 months ago
  • 0.1.308                                ...           3 months ago
  • 0.1.307                                ...           3 months ago
  • 0.1.306                                ...           3 months ago
  • 0.1.305                                ...           3 months ago
  • 0.1.304                                ...           3 months ago
  • 0.1.303                                ...           3 months ago
  • 0.1.302                                ...           3 months ago
  • 0.1.301                                ...           3 months ago
  • 0.1.300                                ...           3 months ago
  • 0.1.298                                ...           3 months ago
  • 0.1.297                                ...           3 months ago
  • 0.1.296                                ...           3 months ago
  • 0.1.295                                ...           3 months ago
  • 0.1.294                                ...           3 months ago
  • 0.1.293                                ...           3 months ago
  • 0.1.292                                ...           3 months ago
  • 0.1.290                                ...           3 months ago
  • 0.1.291                                ...           3 months ago
  • 0.1.289                                ...           3 months ago
  • 0.1.288                                ...           3 months ago
  • 0.1.287                                ...           3 months ago
  • 0.1.286                                ...           3 months ago
  • 0.1.285                                ...           3 months ago
  • 0.1.284                                ...           3 months ago
  • 0.1.283                                ...           3 months ago
  • 0.1.281                                ...           3 months ago
  • 0.1.280                                ...           3 months ago
  • 0.1.279                                ...           3 months ago
  • 0.1.278                                ...           3 months ago
  • 0.1.277                                ...           3 months ago
  • 0.1.276                                ...           3 months ago
  • 0.1.275                                ...           3 months ago
  • 0.1.274                                ...           3 months ago
  • 0.1.273                                ...           3 months ago
  • 0.1.272                                ...           3 months ago
  • 0.1.271                                ...           3 months ago
  • 0.1.270                                ...           3 months ago
  • 0.1.269                                ...           3 months ago
  • 0.1.268                                ...           3 months ago
  • 0.1.267                                ...           3 months ago
  • 0.1.266                                ...           3 months ago
  • 0.1.264                                ...           4 months ago
  • 0.1.263                                ...           4 months ago
  • 0.1.262                                ...           4 months ago
  • 0.1.261                                ...           4 months ago
  • 0.1.259                                ...           4 months ago
  • 0.1.258                                ...           4 months ago
  • 0.1.257                                ...           4 months ago
  • 0.1.256                                ...           4 months ago
  • 0.1.254                                ...           4 months ago
  • 0.1.253                                ...           4 months ago
  • 0.1.252                                ...           4 months ago
  • 0.1.251                                ...           4 months ago
  • 0.1.250                                ...           4 months ago
  • 0.1.249                                ...           4 months ago
  • 0.1.248                                ...           4 months ago
  • 0.1.247                                ...           4 months ago
  • 0.1.245                                ...           4 months ago
  • 0.1.244                                ...           4 months ago
  • 0.1.243                                ...           4 months ago
  • 0.1.242                                ...           4 months ago
  • 0.1.241                                ...           4 months ago
  • 0.1.240                                ...           4 months ago
  • 0.1.239                                ...           4 months ago
  • 0.1.238                                ...           4 months ago
  • 0.1.237                                ...           4 months ago
  • 0.1.236                                ...           4 months ago
  • 0.1.235                                ...           4 months ago
  • 0.1.234                                ...           5 months ago
  • 0.1.233                                ...           5 months ago
  • 0.1.232                                ...           5 months ago
  • 0.1.231                                ...           5 months ago
  • 0.1.230                                ...           5 months ago
  • 0.1.229                                ...           5 months ago
  • 0.1.227                                ...           5 months ago
  • 0.1.226                                ...           5 months ago
  • 0.1.225                                ...           5 months ago
  • 0.1.224                                ...           5 months ago
  • 0.1.223                                ...           5 months ago
  • 0.1.222                                ...           5 months ago
  • 0.1.221                                ...           5 months ago
  • 0.1.220                                ...           5 months ago
  • 0.1.219                                ...           5 months ago
  • 0.1.217                                ...           5 months ago
  • 0.1.216                                ...           5 months ago
  • 0.1.215                                ...           5 months ago
  • 0.1.214                                ...           5 months ago
  • 0.1.213                                ...           5 months ago
  • 0.1.212                                ...           5 months ago
  • 0.1.211                                ...           5 months ago
  • 0.1.210                                ...           5 months ago
  • 0.1.209                                ...           5 months ago
  • 0.1.208                                ...           5 months ago
  • 0.1.207                                ...           5 months ago
  • 0.1.206                                ...           5 months ago
  • 0.1.204                                ...           5 months ago
  • 0.1.203                                ...           5 months ago
  • 0.1.201                                ...           5 months ago
  • 0.1.200                                ...           5 months ago
  • 0.1.199                                ...           5 months ago
  • 0.1.198                                ...           5 months ago
  • 0.1.197                                ...           5 months ago
  • 0.1.196                                ...           5 months ago
  • 0.1.195                                ...           5 months ago
  • 0.1.194                                ...           5 months ago
  • 0.1.193                                ...           5 months ago
  • 0.1.192                                ...           5 months ago
  • 0.1.191                                ...           5 months ago
  • 0.1.190                                ...           5 months ago
  • 0.1.189                                ...           5 months ago
  • 0.1.188                                ...           5 months ago
  • 0.1.187                                ...           5 months ago
  • 0.1.186                                ...           5 months ago
  • 0.1.185                                ...           5 months ago
  • 0.1.184                                ...           5 months ago
  • 0.1.182                                ...           5 months ago
  • 0.1.181                                ...           5 months ago
  • 0.1.180                                ...           5 months ago
  • 0.1.179                                ...           5 months ago
  • 0.1.178                                ...           5 months ago
  • 0.1.177                                ...           6 months ago
  • 0.1.176                                ...           6 months ago
  • 0.1.175                                ...           6 months ago
  • 0.1.174                                ...           6 months ago
  • 0.1.173                                ...           6 months ago
  • 0.1.172                                ...           6 months ago
  • 0.1.171                                ...           6 months ago
  • 0.1.170                                ...           6 months ago
  • 0.1.169                                ...           6 months ago
  • 0.1.168                                ...           6 months ago
  • 0.1.167                                ...           6 months ago
  • 0.1.166                                ...           6 months ago
  • 0.1.165                                ...           6 months ago
  • 0.1.164                                ...           6 months ago
  • 0.1.163                                ...           6 months ago
  • 0.1.162                                ...           6 months ago
  • 0.1.161                                ...           6 months ago
  • 0.1.160                                ...           6 months ago
  • 0.1.159                                ...           6 months ago
  • 0.1.158                                ...           6 months ago
  • 0.1.157                                ...           6 months ago
  • 0.1.156                                ...           6 months ago
  • 0.1.155                                ...           6 months ago
  • 0.1.154                                ...           6 months ago
  • 0.1.153                                ...           7 months ago
  • 0.1.152                                ...           7 months ago
  • 0.1.151                                ...           7 months ago
  • 0.1.150                                ...           7 months ago
  • 0.1.149                                ...           7 months ago
  • 0.1.148                                ...           7 months ago
  • 0.1.147                                ...           7 months ago
  • 0.1.146                                ...           8 months ago
  • 0.1.145                                ...           8 months ago
  • 0.1.144                                ...           8 months ago
  • 0.1.143                                ...           8 months ago
  • 0.1.142                                ...           8 months ago
  • 0.1.141                                ...           8 months ago
  • 0.1.140                                ...           8 months ago
  • 0.1.139                                ...           8 months ago
  • 0.1.138                                ...           8 months ago
  • 0.1.137                                ...           9 months ago
  • 0.1.136                                ...           9 months ago
  • 0.1.135                                ...           9 months ago
  • 0.1.134                                ...           9 months ago
  • 0.1.133                                ...           9 months ago
  • 0.1.132                                ...           9 months ago
  • 0.1.131                                ...           9 months ago
  • 0.1.130                                ...           9 months ago
  • 0.1.128                                ...           9 months ago
  • 0.1.127                                ...           9 months ago
  • 0.1.126                                ...           9 months ago
  • 0.1.125                                ...           9 months ago
  • 0.1.124                                ...           9 months ago
  • 0.1.123                                ...           9 months ago
  • 0.1.122                                ...           9 months ago
  • 0.1.120                                ...           9 months ago
  • 0.1.119                                ...           9 months ago
  • 0.1.118                                ...           9 months ago
  • 0.1.117                                ...           9 months ago
  • 0.1.116                                ...           9 months ago
  • 0.1.115                                ...           9 months ago
  • 0.1.114                                ...           9 months ago
  • 0.1.113                                ...           9 months ago
  • 0.1.112                                ...           9 months ago
  • 0.1.111                                ...           9 months ago
  • 0.1.110                                ...           9 months ago
  • 0.1.109                                ...           9 months ago
  • 0.1.108                                ...           9 months ago
  • 0.1.107                                ...           9 months ago
  • 0.1.106                                ...           9 months ago
  • 0.1.105                                ...           9 months ago
  • 0.1.104                                ...           9 months ago
  • 0.1.103                                ...           9 months ago
  • 0.1.102                                ...           9 months ago
  • 0.1.101                                ...           9 months ago
  • 0.1.100                                ...           9 months ago
  • 0.1.99                                ...           9 months ago
  • 0.1.98                                ...           9 months ago
  • 0.1.97                                ...           9 months ago
  • 0.1.96                                ...           9 months ago
  • 0.1.95                                ...           9 months ago
  • 0.1.94                                ...           9 months ago
  • 0.1.93                                ...           9 months ago
  • 0.1.92                                ...           9 months ago
  • 0.1.91                                ...           9 months ago
  • 0.1.90                                ...           9 months ago
  • 0.1.89                                ...           9 months ago
  • 0.1.88                                ...           9 months ago
  • 0.1.87                                ...           9 months ago
  • 0.1.86                                ...           9 months ago
  • 0.1.85                                ...           9 months ago
  • 0.1.84                                ...           9 months ago
  • 0.1.83                                ...           9 months ago
  • 0.1.82                                ...           9 months ago
  • 0.1.81                                ...           9 months ago
  • 0.1.80                                ...           9 months ago
  • 0.1.79                                ...           9 months ago
  • 0.1.78                                ...           9 months ago
  • 0.1.77                                ...           9 months ago
  • 0.1.76                                ...           9 months ago
  • 0.1.75                                ...           9 months ago
  • 0.1.74                                ...           9 months ago
  • 0.1.73                                ...           9 months ago
  • 0.1.72                                ...           9 months ago
  • 0.1.71                                ...           9 months ago
  • 0.1.70                                ...           9 months ago
  • 0.1.69                                ...           9 months ago
  • 0.1.68                                ...           9 months ago
  • 0.1.67                                ...           9 months ago
  • 0.1.66                                ...           9 months ago
  • 0.1.65                                ...           9 months ago
  • 0.1.64                                ...           9 months ago
  • 0.1.62                                ...           9 months ago
  • 0.1.61                                ...           9 months ago
  • 0.1.60                                ...           9 months ago
  • 0.1.59                                ...           9 months ago
  • 0.1.58                                ...           9 months ago
  • 0.1.57                                ...           9 months ago
  • 0.1.56                                ...           9 months ago
  • 0.1.55                                ...           9 months ago
  • 0.1.54                                ...           10 months ago
  • 0.1.52                                ...           10 months ago
  • 0.1.51                                ...           10 months ago
  • 0.1.50                                ...           10 months ago
  • 0.1.49                                ...           a year ago
  • 0.1.48                                ...           a year ago
  • 0.1.47                                ...           a year ago
  • 0.1.46                                ...           a year ago
  • 0.1.45                                ...           a year ago
  • 0.1.44                                ...           a year ago
  • 0.1.43                                ...           a year ago
  • 0.1.42                                ...           a year ago
  • 0.1.41                                ...           a year ago
  • 0.1.40                                ...           a year ago
  • 0.1.39                                ...           a year ago
  • 0.1.38                                ...           a year ago
  • 0.1.37                                ...           a year ago
  • 0.1.36                                ...           a year ago
  • 0.1.35                                ...           a year ago
  • 0.1.34                                ...           a year ago
  • 0.1.33                                ...           a year ago
  • 0.1.32                                ...           a year ago
  • 0.1.31                                ...           a year ago
  • 0.1.30                                ...           a year ago
  • 0.1.29                                ...           a year ago
  • 0.1.28                                ...           a year ago
  • 0.1.27                                ...           a year ago
  • 0.1.26                                ...           a year ago
  • 0.1.25                                ...           a year ago
  • 0.1.24                                ...           a year ago
  • 0.1.23                                ...           a year ago
  • 0.1.22                                ...           a year ago
  • 0.1.21                                ...           a year ago
  • 0.1.20                                ...           a year ago
  • 0.1.19                                ...           a year ago
  • 0.1.18                                ...           a year ago
  • 0.1.17                                ...           a year ago
  • 0.1.16                                ...           a year ago
  • 0.1.15                                ...           a year ago
Downloads
Today 0
This Week 0
This Month 4
Last Day 0
Last Week 1
Last Month 1,845
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |