WIP - add extractor, generate snippet_data
This commit is contained in:
16
node_modules/fbjs-css-vars/CHANGELOG.md
generated
vendored
Normal file
16
node_modules/fbjs-css-vars/CHANGELOG.md
generated
vendored
Normal file
@ -0,0 +1,16 @@
|
||||
## [1.0.2] - 2018-12-17
|
||||
|
||||
### Changed
|
||||
- Relicensed to MIT.
|
||||
|
||||
|
||||
## [1.0.1] - 2017-07-18
|
||||
|
||||
### Fixed
|
||||
- Added `repository` field in `package.json` to fix issue with some tools.
|
||||
|
||||
|
||||
## [1.0.0] - 2016-07-14
|
||||
|
||||
### Added
|
||||
- Initial release with variables used by Fixed Data Table and Draft.
|
||||
21
node_modules/fbjs-css-vars/LICENSE
generated
vendored
Normal file
21
node_modules/fbjs-css-vars/LICENSE
generated
vendored
Normal file
@ -0,0 +1,21 @@
|
||||
MIT License
|
||||
|
||||
Copyright (c) 2013-present, Facebook, Inc.
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
SOFTWARE.
|
||||
38
node_modules/fbjs-css-vars/README.md
generated
vendored
Normal file
38
node_modules/fbjs-css-vars/README.md
generated
vendored
Normal file
@ -0,0 +1,38 @@
|
||||
# fbjs-css-vars
|
||||
|
||||
This package exports a few of the CSS variables that we use in Facebook projects. This is not the full list we have internally but focused on making available the minimum set needed by our open source projects.
|
||||
|
||||
## Usage
|
||||
|
||||
There are almost no use cases where a product will use this module. It will primarily be consumed by one of the following:
|
||||
|
||||
### `cssVar`
|
||||
|
||||
This is a module that will read from the list we have here and return the corresponding value. Internally we transform this statically but we don't currently do that in our open source projects.
|
||||
|
||||
```js
|
||||
React.render(
|
||||
<div style={{backgroundColor: cssVar('fbui-white')}} />,
|
||||
containerNode
|
||||
);
|
||||
```
|
||||
|
||||
### CSS
|
||||
|
||||
In order to directly sync out our internal CSS and have it parsed by browser, we need to apply some transforms like we do internally. One of those transforms will insert the variables we have available here. In the future we may make use of [CSS Variables](https://developer.mozilla.org/en-US/docs/Web/CSS/Using_CSS_variables).
|
||||
|
||||
```css
|
||||
.class {
|
||||
background-color: var(fbui-white);
|
||||
}
|
||||
```
|
||||
|
||||
### Direct Usage
|
||||
|
||||
We're just exporting a JS Object so usage is straightforward.
|
||||
|
||||
```js
|
||||
var fbCSSVars = require('fbjs-css-vars')
|
||||
|
||||
console.log(fbCSSVars['fbui-white']);
|
||||
```
|
||||
20
node_modules/fbjs-css-vars/index.js
generated
vendored
Normal file
20
node_modules/fbjs-css-vars/index.js
generated
vendored
Normal file
@ -0,0 +1,20 @@
|
||||
/**
|
||||
* Copyright (c) 2013-present, Facebook, Inc.
|
||||
*
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*/
|
||||
|
||||
module.exports = {
|
||||
'fbui-desktop-background-light': '#f6f7f8',
|
||||
'fbui-desktop-text-placeholder': '#9197a3',
|
||||
'fbui-desktop-text-placeholder-focused': '#bdc1c9',
|
||||
'fbui-white': '#fff',
|
||||
'scrollbar-face-active-color': '#7d7d7d',
|
||||
'scrollbar-face-color': '#c2c2c2',
|
||||
'scrollbar-face-margin': '4px',
|
||||
'scrollbar-face-radius': '6px',
|
||||
'scrollbar-size': '15px',
|
||||
'scrollbar-size-large': '17px',
|
||||
'scrollbar-track-color': 'rgba(255, 255, 255, 0.8)',
|
||||
};
|
||||
44
node_modules/fbjs-css-vars/package.json
generated
vendored
Normal file
44
node_modules/fbjs-css-vars/package.json
generated
vendored
Normal file
@ -0,0 +1,44 @@
|
||||
{
|
||||
"_from": "fbjs-css-vars@^1.0.0",
|
||||
"_id": "fbjs-css-vars@1.0.2",
|
||||
"_inBundle": false,
|
||||
"_integrity": "sha512-b2XGFAFdWZWg0phtAWLHCk836A1Xann+I+Dgd3Gk64MHKZO44FfoD1KxyvbSh0qZsIoXQGGlVztIY+oitJPpRQ==",
|
||||
"_location": "/fbjs-css-vars",
|
||||
"_phantomChildren": {},
|
||||
"_requested": {
|
||||
"type": "range",
|
||||
"registry": true,
|
||||
"raw": "fbjs-css-vars@^1.0.0",
|
||||
"name": "fbjs-css-vars",
|
||||
"escapedName": "fbjs-css-vars",
|
||||
"rawSpec": "^1.0.0",
|
||||
"saveSpec": null,
|
||||
"fetchSpec": "^1.0.0"
|
||||
},
|
||||
"_requiredBy": [
|
||||
"/fbjs"
|
||||
],
|
||||
"_resolved": "https://registry.npmjs.org/fbjs-css-vars/-/fbjs-css-vars-1.0.2.tgz",
|
||||
"_shasum": "216551136ae02fe255932c3ec8775f18e2c078b8",
|
||||
"_spec": "fbjs-css-vars@^1.0.0",
|
||||
"_where": "/Users/stefanfejes/Projects/30-seconds-of-python-code/node_modules/fbjs",
|
||||
"author": "",
|
||||
"bugs": {
|
||||
"url": "https://github.com/facebook/fbjs/issues"
|
||||
},
|
||||
"bundleDependencies": false,
|
||||
"deprecated": false,
|
||||
"description": "This package exports a few of the CSS variables that we use in Facebook projects. This is not the full list we have internally but focused on making available the minimum set needed by our open source projects.",
|
||||
"homepage": "https://github.com/facebook/fbjs#readme",
|
||||
"license": "MIT",
|
||||
"main": "index.js",
|
||||
"name": "fbjs-css-vars",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/facebook/fbjs.git"
|
||||
},
|
||||
"scripts": {
|
||||
"test": "echo \"Error: no test specified\" && exit 1"
|
||||
},
|
||||
"version": "1.0.2"
|
||||
}
|
||||
Reference in New Issue
Block a user