@salutejs/plasma-new-hope 0.96.0-canary.1276.9759832498.0 → 0.96.0-canary.1276.9761216059.0
Sign up to get free protection for your applications and to get access to all the features.
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@salutejs/plasma-new-hope",
|
3
|
-
"version": "0.96.0-canary.1276.
|
3
|
+
"version": "0.96.0-canary.1276.9761216059.0",
|
4
4
|
"description": "Salute Design System blueprint",
|
5
5
|
"main": "cjs/index.js",
|
6
6
|
"module": "es/index.js",
|
@@ -32,6 +32,7 @@
|
|
32
32
|
"build:styled-components:cjs": "rm -rf styled-components/cjs && BABEL_ENV=cjs SC_NAMESPACE=plasma-new-hope babel ./src-sc --out-dir ./styled-components/cjs --extensions .ts,.tsx --copy-files",
|
33
33
|
"build:styled-components:esm": "rm -rf styled-components/es && BABEL_ENV=esm SC_NAMESPACE=plasma-new-hope babel ./src-sc --out-dir ./styled-components/es --extensions .ts,.tsx --copy-files",
|
34
34
|
"postbuild:styled-components": "rm -rf src-sc",
|
35
|
+
"postbuild:emotion": "rm -rf src-emotion",
|
35
36
|
"generate:typings:css": "tsc --outDir types --emitDeclarationOnly",
|
36
37
|
"generate:typings": "npm run generate:typings:css",
|
37
38
|
"storybook": "storybook dev -p ${PORT:-7002} -c .storybook",
|
@@ -117,5 +118,5 @@
|
|
117
118
|
"react-popper": "2.3.0",
|
118
119
|
"storeon": "3.1.5"
|
119
120
|
},
|
120
|
-
"gitHead": "
|
121
|
+
"gitHead": "0af11edceeea35ac61049344c4a2dcb64a248987"
|
121
122
|
}
|
@@ -1,53 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
|
3
|
-
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
4
|
-
Object.defineProperty(exports, "__esModule", {
|
5
|
-
value: true
|
6
|
-
});
|
7
|
-
exports._component = void 0;
|
8
|
-
Object.defineProperty(exports, "css", {
|
9
|
-
enumerable: true,
|
10
|
-
get: function get() {
|
11
|
-
return _react2.css;
|
12
|
-
}
|
13
|
-
});
|
14
|
-
var _react = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("react"));
|
15
|
-
var _react2 = /*#__PURE__*/require("@emotion/react");
|
16
|
-
var _styled = /*#__PURE__*/_interopRequireDefault( /*#__PURE__*/require("@emotion/styled"));
|
17
|
-
var _common = /*#__PURE__*/require("./common");
|
18
|
-
var _templateObject;
|
19
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
20
|
-
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
21
|
-
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
|
22
|
-
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
23
|
-
function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
|
24
|
-
var Root = /*#__PURE__*/_styled["default"].div(_templateObject || (_templateObject = /*#__PURE__*/_taggedTemplateLiteral(["\n ", ";\n ", ";\n ", ";\n"])), function (_ref) {
|
25
|
-
var base = _ref.base;
|
26
|
-
return base;
|
27
|
-
}, function (_ref2) {
|
28
|
-
var staticVariants = _ref2.staticVariants;
|
29
|
-
return staticVariants;
|
30
|
-
}, function (_ref3) {
|
31
|
-
var dynamicVariants = _ref3.dynamicVariants;
|
32
|
-
return dynamicVariants;
|
33
|
-
});
|
34
|
-
|
35
|
-
/* eslint-disable no-underscore-dangle */
|
36
|
-
var _component = exports._component = function _component(componentConfig) {
|
37
|
-
var tag = componentConfig.tag,
|
38
|
-
base = componentConfig.base;
|
39
|
-
var staticVariants = (0, _common.getStaticVariants)(componentConfig);
|
40
|
-
var dynamicVariants = (0, _common.getDynamicVariants)(componentConfig);
|
41
|
-
|
42
|
-
// TODO: should we type tag as more then string ?
|
43
|
-
var R = Root.withComponent(tag);
|
44
|
-
return /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
|
45
|
-
return /*#__PURE__*/_react["default"].createElement(R, _extends({
|
46
|
-
base: base,
|
47
|
-
staticVariants: staticVariants,
|
48
|
-
dynamicVariants: dynamicVariants
|
49
|
-
}, props, {
|
50
|
-
ref: ref
|
51
|
-
}));
|
52
|
-
});
|
53
|
-
};
|
@@ -1,38 +0,0 @@
|
|
1
|
-
var _templateObject;
|
2
|
-
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
3
|
-
function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
|
4
|
-
import React, { forwardRef } from 'react';
|
5
|
-
import { css } from '@emotion/react';
|
6
|
-
import styled from '@emotion/styled';
|
7
|
-
import { getStaticVariants, getDynamicVariants } from './common';
|
8
|
-
export { css };
|
9
|
-
var Root = /*#__PURE__*/styled.div(_templateObject || (_templateObject = /*#__PURE__*/_taggedTemplateLiteral(["\n ", ";\n ", ";\n ", ";\n"])), function (_ref) {
|
10
|
-
var base = _ref.base;
|
11
|
-
return base;
|
12
|
-
}, function (_ref2) {
|
13
|
-
var staticVariants = _ref2.staticVariants;
|
14
|
-
return staticVariants;
|
15
|
-
}, function (_ref3) {
|
16
|
-
var dynamicVariants = _ref3.dynamicVariants;
|
17
|
-
return dynamicVariants;
|
18
|
-
});
|
19
|
-
|
20
|
-
/* eslint-disable no-underscore-dangle */
|
21
|
-
export var _component = function _component(componentConfig) {
|
22
|
-
var tag = componentConfig.tag,
|
23
|
-
base = componentConfig.base;
|
24
|
-
var staticVariants = getStaticVariants(componentConfig);
|
25
|
-
var dynamicVariants = getDynamicVariants(componentConfig);
|
26
|
-
|
27
|
-
// TODO: should we type tag as more then string ?
|
28
|
-
var R = Root.withComponent(tag);
|
29
|
-
return /*#__PURE__*/forwardRef(function (props, ref) {
|
30
|
-
return /*#__PURE__*/React.createElement(R, _extends({
|
31
|
-
base: base,
|
32
|
-
staticVariants: staticVariants,
|
33
|
-
dynamicVariants: dynamicVariants
|
34
|
-
}, props, {
|
35
|
-
ref: ref
|
36
|
-
}));
|
37
|
-
});
|
38
|
-
};
|