react-figma 0.17.1 → 0.18.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.all-contributorsrc +18 -0
- package/README.md +4 -2
- package/components/component/createComponent.d.ts +1 -1
- package/contributing.md +1 -1
- package/mixins/frameMixin.js +1 -1
- package/mixins/frameMixin.js.map +1 -1
- package/package.json +1 -1
- package/types.d.ts +1 -0
package/.all-contributorsrc
CHANGED
|
@@ -148,6 +148,24 @@
|
|
|
148
148
|
"contributions": [
|
|
149
149
|
"doc"
|
|
150
150
|
]
|
|
151
|
+
},
|
|
152
|
+
{
|
|
153
|
+
"login": "KonstHardy",
|
|
154
|
+
"name": "Konstantin Popov",
|
|
155
|
+
"avatar_url": "https://avatars.githubusercontent.com/u/46906648?v=4",
|
|
156
|
+
"profile": "https://github.com/KonstHardy",
|
|
157
|
+
"contributions": [
|
|
158
|
+
"doc"
|
|
159
|
+
]
|
|
160
|
+
},
|
|
161
|
+
{
|
|
162
|
+
"login": "Utkarsh299-tech",
|
|
163
|
+
"name": "Utkarsh Singh",
|
|
164
|
+
"avatar_url": "https://avatars.githubusercontent.com/u/60184229?v=4",
|
|
165
|
+
"profile": "https://utkarsh299-tech.github.io/myportfolio/",
|
|
166
|
+
"contributions": [
|
|
167
|
+
"doc"
|
|
168
|
+
]
|
|
151
169
|
}
|
|
152
170
|
],
|
|
153
171
|
"contributorsPerLine": 7,
|
package/README.md
CHANGED
|
@@ -115,7 +115,7 @@ export const App = () => {
|
|
|
115
115
|
* [Interactive](examples/interactive)
|
|
116
116
|
* [Data fetching](examples/fetching)
|
|
117
117
|
* [💅 styled-components](examples/styled-components)
|
|
118
|
-
* [PrimerDemo](https://github.com/react-figma/PrimerDemo) - Example of
|
|
118
|
+
* [PrimerDemo](https://github.com/react-figma/PrimerDemo) - Example of multiplatform UI-kit
|
|
119
119
|
* [Component Variants](examples/component-variants)
|
|
120
120
|
* [MDX](examples/mdx)
|
|
121
121
|
* [Local Styles](examples/local-styles)
|
|
@@ -131,7 +131,7 @@ export const App = () => {
|
|
|
131
131
|
<a href="https://opencollective.com/reactfigma/backer/4/website" target="_blank"><img src="https://opencollective.com/reactfigma/backer/4/avatar.svg"></a>
|
|
132
132
|
<a href="https://opencollective.com/reactfigma/backer/5/website" target="_blank"><img src="https://opencollective.com/reactfigma/backer/5/avatar.svg"></a>
|
|
133
133
|
|
|
134
|
-
[Become a sponsor](https://opencollective.com/reactfigma#sponsor) and get your logo on our README on
|
|
134
|
+
[Become a sponsor](https://opencollective.com/reactfigma#sponsor) and get your logo on our README on GitHub with a link to your site.
|
|
135
135
|
|
|
136
136
|
<a href="https://opencollective.com/reactfigma/sponsor/0/website" target="_blank"><img src="https://opencollective.com/reactfigma/sponsor/0/avatar.svg"></a>
|
|
137
137
|
<a href="https://opencollective.com/reactfigma/sponsor/1/website" target="_blank"><img src="https://opencollective.com/reactfigma/sponsor/1/avatar.svg"></a>
|
|
@@ -191,6 +191,8 @@ Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/d
|
|
|
191
191
|
<tr>
|
|
192
192
|
<td align="center"><a href="https://michaelzheng.medium.com/"><img src="https://avatars.githubusercontent.com/u/7504237?v=4?s=100" width="100px;" alt=""/><br /><sub><b>不吃猫的鱼</b></sub></a><br /><a href="https://github.com/react-figma/react-figma/commits?author=n0ruSh" title="Code">💻</a></td>
|
|
193
193
|
<td align="center"><a href="https://github.com/kant"><img src="https://avatars.githubusercontent.com/u/32717?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Darío Hereñú</b></sub></a><br /><a href="https://github.com/react-figma/react-figma/commits?author=kant" title="Documentation">📖</a></td>
|
|
194
|
+
<td align="center"><a href="https://github.com/KonstHardy"><img src="https://avatars.githubusercontent.com/u/46906648?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Konstantin Popov</b></sub></a><br /><a href="https://github.com/react-figma/react-figma/commits?author=KonstHardy" title="Documentation">📖</a></td>
|
|
195
|
+
<td align="center"><a href="https://utkarsh299-tech.github.io/myportfolio/"><img src="https://avatars.githubusercontent.com/u/60184229?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Utkarsh Singh</b></sub></a><br /><a href="https://github.com/react-figma/react-figma/commits?author=Utkarsh299-tech" title="Documentation">📖</a></td>
|
|
194
196
|
</tr>
|
|
195
197
|
</table>
|
|
196
198
|
|
|
@@ -3,5 +3,5 @@ import { ComponentProps } from './Component';
|
|
|
3
3
|
import { InstanceProps } from './Instance';
|
|
4
4
|
export declare const createComponent: () => {
|
|
5
5
|
Component: React.FunctionComponent<Pick<ComponentProps, "width" | "height" | "visible" | "opacity" | "blendMode" | "fills" | "backgrounds" | "fillStyleId" | "strokeStyleId" | "strokes" | "strokeWeight" | "strokeAlign" | "strokeCap" | "strokeJoin" | "dashPattern" | "paddingTop" | "paddingBottom" | "paddingLeft" | "paddingRight" | "name" | "children" | "layoutMode" | "layoutAlign" | "primaryAxisAlignItems" | "counterAxisAlignItems" | "style" | "cornerRadius" | "cornerSmoothing" | "isMask" | "effects" | "effectStyleId" | "topLeftRadius" | "topRightRadius" | "bottomLeftRadius" | "bottomRightRadius" | "locked" | "constraints" | "pluginData" | "sharedPluginData" | "onNodeId" | "relativeTransform" | "x" | "y" | "rotation" | "isWithoutConstraints" | "layoutGrow" | "exportSettings" | "exportAsyncSettings" | "exportAsyncCallback" | "onSelectionEnter" | "onSelectionLeave" | "onLayout" | "primaryAxisSizingMode" | "counterAxisSizingMode" | "horizontalPadding" | "verticalPadding" | "itemSpacing" | "clipsContent" | "guides" | "layoutGrids" | "gridStyleId" | "description" | "documentationLinks">>;
|
|
6
|
-
Instance: React.FunctionComponent<Pick<InstanceProps, "width" | "height" | "visible" | "opacity" | "blendMode" | "backgrounds" | "paddingTop" | "paddingBottom" | "paddingLeft" | "paddingRight" | "name" | "children" | "layoutMode" | "layoutAlign" | "primaryAxisAlignItems" | "counterAxisAlignItems" | "style" | "isMask" | "effects" | "effectStyleId" | "locked" | "constraints" | "pluginData" | "sharedPluginData" | "onNodeId" | "relativeTransform" | "x" | "y" | "rotation" | "isWithoutConstraints" | "layoutGrow" | "exportSettings" | "exportAsyncSettings" | "exportAsyncCallback" | "onSelectionEnter" | "onSelectionLeave" | "onLayout" | "primaryAxisSizingMode" | "counterAxisSizingMode" | "horizontalPadding" | "verticalPadding" | "itemSpacing" | "overrides" | "detach">>;
|
|
6
|
+
Instance: React.FunctionComponent<Pick<InstanceProps, "width" | "height" | "visible" | "opacity" | "blendMode" | "backgrounds" | "fillStyleId" | "paddingTop" | "paddingBottom" | "paddingLeft" | "paddingRight" | "name" | "children" | "layoutMode" | "layoutAlign" | "primaryAxisAlignItems" | "counterAxisAlignItems" | "style" | "isMask" | "effects" | "effectStyleId" | "locked" | "constraints" | "pluginData" | "sharedPluginData" | "onNodeId" | "relativeTransform" | "x" | "y" | "rotation" | "isWithoutConstraints" | "layoutGrow" | "exportSettings" | "exportAsyncSettings" | "exportAsyncCallback" | "onSelectionEnter" | "onSelectionLeave" | "onLayout" | "primaryAxisSizingMode" | "counterAxisSizingMode" | "horizontalPadding" | "verticalPadding" | "itemSpacing" | "overrides" | "detach">>;
|
|
7
7
|
};
|
package/contributing.md
CHANGED
|
@@ -66,4 +66,4 @@ Before commit pre-commit hook will be launched. It runs prettier and linting/tes
|
|
|
66
66
|
|
|
67
67
|
## Publishing new version to NPM
|
|
68
68
|
1. Bump version in `package.json` and `src/renderer.tsx`
|
|
69
|
-
2. Create new release/new tag on
|
|
69
|
+
2. Create new release/new tag on GitHub named `vx.y.z` where `x.y.z` is new version number
|
package/mixins/frameMixin.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
var propsAssign_1 = require("../helpers/propsAssign");
|
|
4
|
-
exports.frameMixin = propsAssign_1.propsAssign(['backgrounds'], {
|
|
4
|
+
exports.frameMixin = propsAssign_1.propsAssign(['backgrounds', 'fillStyleId'], {
|
|
5
5
|
backgrounds: []
|
|
6
6
|
});
|
|
7
7
|
//# sourceMappingURL=frameMixin.js.map
|
package/mixins/frameMixin.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"frameMixin.js","sourceRoot":"","sources":["../src/mixins/frameMixin.ts"],"names":[],"mappings":";;AAAA,sDAAqD;AAGxC,QAAA,UAAU,GAAG,yBAAW,CAAyB,CAAC,aAAa,CAAC,EAAE;
|
|
1
|
+
{"version":3,"file":"frameMixin.js","sourceRoot":"","sources":["../src/mixins/frameMixin.ts"],"names":[],"mappings":";;AAAA,sDAAqD;AAGxC,QAAA,UAAU,GAAG,yBAAW,CAAyB,CAAC,aAAa,EAAE,aAAa,CAAC,EAAE;IAC1F,WAAW,EAAE,EAAE;CAClB,CAAC,CAAC"}
|
package/package.json
CHANGED