@razorpay/blade 0.0.1 → 3.1.4-npm-publish-test.1
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/package.json +159 -112
- package/Button/Button.native.js +0 -1
- package/Button/Button.web.js +0 -31
- package/Button/index.js +0 -2
- package/README.md +0 -3
package/package.json
CHANGED
|
@@ -1,124 +1,171 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@razorpay/blade",
|
|
3
|
-
"
|
|
4
|
-
"version": "0.0.1",
|
|
3
|
+
"version": "3.1.4-npm-publish-test.1",
|
|
5
4
|
"license": "MIT",
|
|
6
5
|
"engines": {
|
|
7
|
-
"node": ">=
|
|
6
|
+
"node": ">=14.19.0"
|
|
8
7
|
},
|
|
9
|
-
"
|
|
10
|
-
"
|
|
11
|
-
"
|
|
12
|
-
"react-dom": "16.9.0",
|
|
13
|
-
"react-native": "0.61.5",
|
|
14
|
-
"styled-components": "5.0.0"
|
|
15
|
-
},
|
|
16
|
-
"devDependencies": {
|
|
17
|
-
"@babel/cli": "7.8.4",
|
|
18
|
-
"@babel/core": "7.8.3",
|
|
19
|
-
"@babel/preset-env": "7.8.3",
|
|
20
|
-
"@babel/preset-react": "7.8.3",
|
|
21
|
-
"@babel/runtime": "7.6.2",
|
|
22
|
-
"@react-native-community/eslint-config": "0.0.5",
|
|
23
|
-
"@rollup/plugin-commonjs": "11.0.2",
|
|
24
|
-
"@rollup/plugin-json": "4.0.2",
|
|
25
|
-
"@rollup/plugin-node-resolve": "7.1.1",
|
|
26
|
-
"@storybook/addon-actions": "5.3.9",
|
|
27
|
-
"@storybook/addon-docs": "5.3.9",
|
|
28
|
-
"@storybook/addon-knobs": "5.3.9",
|
|
29
|
-
"@storybook/addon-links": "5.3.8",
|
|
30
|
-
"@storybook/addon-ondevice-knobs": "5.3.8",
|
|
31
|
-
"@storybook/addon-ondevice-notes": "5.3.8",
|
|
32
|
-
"@storybook/addon-storyshots": "5.3.8",
|
|
33
|
-
"@storybook/addons": "5.3.8",
|
|
34
|
-
"@storybook/react-native": "5.3.9",
|
|
35
|
-
"@storybook/react": "5.3.8",
|
|
36
|
-
"@storybook/theming": "5.3.9",
|
|
37
|
-
"@testing-library/jest-dom": "4.2.4",
|
|
38
|
-
"@testing-library/react-native": "5.0.3",
|
|
39
|
-
"@testing-library/react": "9.4.0",
|
|
40
|
-
"@testing-library/user-event": "7.1.2",
|
|
41
|
-
"babel-eslint": "10.0.3",
|
|
42
|
-
"babel-jest": "24.9.0",
|
|
43
|
-
"babel-loader": "8.0.6",
|
|
44
|
-
"babel-plugin-module-resolver": "4.0.0",
|
|
45
|
-
"babel-plugin-styled-components": "1.10.7",
|
|
46
|
-
"chalk": "3.0.0",
|
|
47
|
-
"cz-conventional-changelog": "3.1.0",
|
|
48
|
-
"eslint": "6.8.0",
|
|
49
|
-
"eslint-config-kentcdodds": "14.7.0",
|
|
50
|
-
"eslint-config-prettier": "6.10.0",
|
|
51
|
-
"eslint-plugin-prettier": "3.1.2",
|
|
52
|
-
"eslint-plugin-react": "7.18.0",
|
|
53
|
-
"husky": "4.2.1",
|
|
54
|
-
"jest": "24.9.0",
|
|
55
|
-
"lint-staged": "10.0.4",
|
|
56
|
-
"metro-react-native-babel-preset": "0.56.0",
|
|
57
|
-
"prettier": "1.19.1",
|
|
58
|
-
"react-test-renderer": "16.12.0",
|
|
59
|
-
"rollup": "1.31.0",
|
|
60
|
-
"rollup-plugin-babel": "4.3.3",
|
|
61
|
-
"rollup-plugin-peer-deps-external": "2.2.2",
|
|
62
|
-
"semantic-release": "17.0.2",
|
|
63
|
-
"shelljs": "0.8.3",
|
|
64
|
-
"stylelint": "13.0.0",
|
|
65
|
-
"stylelint-config-recommended": "3.0.0",
|
|
66
|
-
"stylelint-config-styled-components": "0.1.1",
|
|
67
|
-
"stylelint-processor-styled-components": "1.9.0"
|
|
8
|
+
"repository": {
|
|
9
|
+
"type": "git",
|
|
10
|
+
"url": "ssh://git@github.com/razorpay/blade.git"
|
|
68
11
|
},
|
|
69
|
-
"
|
|
70
|
-
"
|
|
71
|
-
"
|
|
72
|
-
"
|
|
73
|
-
"
|
|
74
|
-
"
|
|
12
|
+
"files": [
|
|
13
|
+
"build",
|
|
14
|
+
"components.d.ts",
|
|
15
|
+
"components.js",
|
|
16
|
+
"tokens.d.ts",
|
|
17
|
+
"tokens.js",
|
|
18
|
+
"utils.d.ts",
|
|
19
|
+
"utils.js"
|
|
20
|
+
],
|
|
21
|
+
"exports": {
|
|
22
|
+
"./components": {
|
|
23
|
+
"react-native": "./build/components/index.native.js",
|
|
24
|
+
"default": "./build/components/index.web.js"
|
|
25
|
+
},
|
|
26
|
+
"./tokens": {
|
|
27
|
+
"react-native": "./build/tokens/index.native.js",
|
|
28
|
+
"default": "./build/tokens/index.web.js"
|
|
29
|
+
},
|
|
30
|
+
"./utils": {
|
|
31
|
+
"react-native": "./build/utils/index.native.js",
|
|
32
|
+
"default": "./build/utils/index.web.js"
|
|
33
|
+
}
|
|
75
34
|
},
|
|
76
35
|
"scripts": {
|
|
77
|
-
"
|
|
78
|
-
"
|
|
79
|
-
"
|
|
80
|
-
"
|
|
81
|
-
"
|
|
82
|
-
"
|
|
83
|
-
"
|
|
84
|
-
"
|
|
85
|
-
"
|
|
86
|
-
"
|
|
87
|
-
"
|
|
36
|
+
"typecheck": "run-s types:typecheck:*",
|
|
37
|
+
"prepublish": "yarn build",
|
|
38
|
+
"build": "run-s build:*",
|
|
39
|
+
"clearCache": "jest --clearCache",
|
|
40
|
+
"build:clean": "rm -rf build",
|
|
41
|
+
"build:generate-types": "run-s types:generate-types:*",
|
|
42
|
+
"build:copy-declarations": "run-s types:copy-declarations:*",
|
|
43
|
+
"types:generate-types:web": "tsc -p ./tsconfig-generate-types.web.json",
|
|
44
|
+
"types:generate-types:native": "tsc -p ./tsconfig-generate-types.native.json",
|
|
45
|
+
"types:typecheck:web": "tsc -p ./tsconfig-typecheck.web.json",
|
|
46
|
+
"types:typecheck:native": "tsc -p ./tsconfig-typecheck.native.json",
|
|
47
|
+
"types:copy-declarations:web": "copyfiles -u 1 \"src/**/*.d.ts\" build/types/web",
|
|
48
|
+
"types:copy-declarations:native": "copyfiles -u 1 \"src/**/*.d.ts\" build/types/native",
|
|
49
|
+
"build:generate-root-imports": "rollup -c && node ./scripts/generateRootImports.js",
|
|
50
|
+
"build:clean-declarations": "rm -rf build/types",
|
|
51
|
+
"build:react": "FRAMEWORK=REACT rollup -c && node ./scripts/generateRootImports.js",
|
|
52
|
+
"build:react-native": "FRAMEWORK=REACT_NATIVE rollup -c && node ./scripts/generateRootImports.js",
|
|
53
|
+
"build:generate-css-variables": "GENERATE_CSS_VARIABLES=true FRAMEWORK=REACT rollup -c && node ./scripts/generateCssThemeVariables.js",
|
|
54
|
+
"build:clean-theme-bundle": "rm -rf build/js-bundle-for-css",
|
|
55
|
+
"react-native:get-stories": "sb-rn-get-stories --config-path=./.storybook/react-native && yarn prettier --write ./.storybook/react-native/storybook.requires.js",
|
|
56
|
+
"react-native:storybook:android": "yarn react-native:get-stories && FRAMEWORK=REACT_NATIVE react-native run-android",
|
|
57
|
+
"react-native:storybook:ios": "yarn react-native:get-stories && FRAMEWORK=REACT_NATIVE react-native run-ios",
|
|
58
|
+
"react-native:storybook:start": "yarn react-native:get-stories && FRAMEWORK=REACT_NATIVE react-native start --reset-cache",
|
|
59
|
+
"react": "yarn run react:storybook",
|
|
60
|
+
"react:storybook": "FRAMEWORK=REACT start-storybook -c ./.storybook/react -p 9009",
|
|
61
|
+
"react:storybook:build": "FRAMEWORK=REACT build-storybook -c ./.storybook/react -o storybook-site",
|
|
62
|
+
"test:react": "FRAMEWORK=REACT jest -c ./jest.web.config.js",
|
|
63
|
+
"test:react-native": "FRAMEWORK=REACT_NATIVE jest -c ./jest.native.config.js",
|
|
64
|
+
"start:ios": "run-p react-native:storybook:start react-native:storybook:ios",
|
|
65
|
+
"start:android": "run-p react-native:storybook:start react-native:storybook:android",
|
|
66
|
+
"start:native": "run-p react-native:storybook:start react-native:storybook:android react-native:storybook:ios",
|
|
67
|
+
"start:web": "yarn react",
|
|
68
|
+
"start:all": "run-p start:native start:web",
|
|
69
|
+
"chromatic": "npx chromatic",
|
|
70
|
+
"publish-npm": "npm publish --tag next --\"@razorpay:registry=https://registry.npmjs.org/\""
|
|
88
71
|
},
|
|
89
|
-
"
|
|
90
|
-
"
|
|
91
|
-
|
|
92
|
-
"pre-commit": "lint-staged"
|
|
93
|
-
}
|
|
94
|
-
},
|
|
95
|
-
"lint-staged": {
|
|
96
|
-
"*.(js|jsx)": [
|
|
97
|
-
"eslint",
|
|
98
|
-
"stylelint"
|
|
99
|
-
],
|
|
100
|
-
"*.(js|json|jsx)": [
|
|
101
|
-
"prettier --write"
|
|
102
|
-
]
|
|
72
|
+
"dependencies": {
|
|
73
|
+
"@babel/runtime": "7.16.5",
|
|
74
|
+
"use-presence": "1.1.0"
|
|
103
75
|
},
|
|
104
|
-
"
|
|
105
|
-
"
|
|
106
|
-
|
|
107
|
-
|
|
76
|
+
"devDependencies": {
|
|
77
|
+
"@babel/core": "7.16.5",
|
|
78
|
+
"@babel/plugin-transform-react-jsx": "7.16.5",
|
|
79
|
+
"@babel/plugin-transform-runtime": "7.16.5",
|
|
80
|
+
"@babel/preset-env": "7.16.5",
|
|
81
|
+
"@babel/preset-react": "7.16.5",
|
|
82
|
+
"@babel/preset-typescript": "7.16.5",
|
|
83
|
+
"@react-native-async-storage/async-storage": "1.15.14",
|
|
84
|
+
"@react-native-community/datetimepicker": "5.0.1",
|
|
85
|
+
"@react-native-community/slider": "4.1.12",
|
|
86
|
+
"@rollup/plugin-alias": "3.1.9",
|
|
87
|
+
"@rollup/plugin-babel": "5.3.1",
|
|
88
|
+
"@rollup/plugin-commonjs": "21.1.0",
|
|
89
|
+
"@rollup/plugin-node-resolve": "13.1.1",
|
|
90
|
+
"@storybook/addon-a11y": "6.3.0",
|
|
91
|
+
"@storybook/addon-actions": "6.3.0",
|
|
92
|
+
"@storybook/addon-controls": "6.3",
|
|
93
|
+
"@storybook/addon-docs": "6.3.0",
|
|
94
|
+
"@storybook/addon-essentials": "6.3.0",
|
|
95
|
+
"@storybook/addon-links": "6.3.0",
|
|
96
|
+
"@storybook/addon-ondevice-actions": "6.0.1-beta.7",
|
|
97
|
+
"@storybook/addon-ondevice-backgrounds": "6.0.1-alpha.7",
|
|
98
|
+
"@storybook/addon-ondevice-controls": "6.0.1-alpha.7",
|
|
99
|
+
"@storybook/addon-ondevice-notes": "6.0.1-alpha.7",
|
|
100
|
+
"@storybook/design-system": "7.3.4",
|
|
101
|
+
"@storybook/node-logger": "6.3.0",
|
|
102
|
+
"@storybook/preset-create-react-app": "3.2.0",
|
|
103
|
+
"@storybook/react": "6.3.0",
|
|
104
|
+
"@storybook/react-native": "6.0.1-alpha.7",
|
|
105
|
+
"@testing-library/jest-dom": "5.16.4",
|
|
106
|
+
"@testing-library/jest-native": "4.0.11",
|
|
107
|
+
"@testing-library/react": "12.1.5",
|
|
108
|
+
"@testing-library/react-hooks": "5.1.2",
|
|
109
|
+
"@testing-library/react-native": "9.1.0",
|
|
110
|
+
"@testing-library/user-event": "14.4.1",
|
|
111
|
+
"@types/jest": "26.0.23",
|
|
112
|
+
"@types/jest-axe": "3.5.3",
|
|
113
|
+
"@types/lodash": "4.14.168",
|
|
114
|
+
"@types/react": "17.0.38",
|
|
115
|
+
"@types/react-native": "0.66.9",
|
|
116
|
+
"@types/react-test-renderer": "17.0.1",
|
|
117
|
+
"@types/styled-components": "5.1.25",
|
|
118
|
+
"@types/styled-components-react-native": "5.1.3",
|
|
119
|
+
"any-leaf": "1.2.2",
|
|
120
|
+
"babel-jest": "26.6.3",
|
|
121
|
+
"babel-loader": "8.2.3",
|
|
122
|
+
"babel-plugin-module-resolver": "4.1.0",
|
|
123
|
+
"babel-plugin-styled-components": "1.12.0",
|
|
124
|
+
"chalk": "4.1.1",
|
|
125
|
+
"copyfiles": "2.4.1",
|
|
126
|
+
"eslint-plugin-mdx": "1.16.0",
|
|
127
|
+
"execa": "5.0.0",
|
|
128
|
+
"figures": "3.2.0",
|
|
129
|
+
"flat": "5.0.2",
|
|
130
|
+
"ismobilejs": "1.1.1",
|
|
131
|
+
"jest": "26.6.3",
|
|
132
|
+
"jest-axe": "6.0.0",
|
|
133
|
+
"jest-matchmedia-mock": "1.1.0",
|
|
134
|
+
"jest-styled-components": "7.0.8",
|
|
135
|
+
"jest-useragent-mock": "0.1.1",
|
|
136
|
+
"lodash": "4.17.21",
|
|
137
|
+
"metro-react-native-babel-preset": "0.66.2",
|
|
138
|
+
"moniker": "0.1.2",
|
|
139
|
+
"npm-run-all": "4.1.5",
|
|
140
|
+
"outdent": "0.8.0",
|
|
141
|
+
"react": "17.0.2",
|
|
142
|
+
"react-dom": "17.0.2",
|
|
143
|
+
"react-native": "0.66.4",
|
|
144
|
+
"react-native-reanimated": "2.6.0",
|
|
145
|
+
"react-native-svg": "12.3.0",
|
|
146
|
+
"react-scripts": "4.0.3",
|
|
147
|
+
"react-test-renderer": "17.0.2",
|
|
148
|
+
"rollup": "2.61.1",
|
|
149
|
+
"rollup-plugin-dts": "4.0.1",
|
|
150
|
+
"rollup-plugin-peer-deps-external": "2.2.4",
|
|
151
|
+
"style-dictionary": "3.7.1",
|
|
152
|
+
"styled-components": "5.3.5",
|
|
153
|
+
"tsconfig-paths-webpack-plugin": "3.5.2"
|
|
108
154
|
},
|
|
109
|
-
"
|
|
110
|
-
"
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
"
|
|
116
|
-
|
|
117
|
-
"last 1 firefox version",
|
|
118
|
-
"last 1 safari version"
|
|
119
|
-
]
|
|
155
|
+
"peerDependencies": {
|
|
156
|
+
"@babel/runtime": "^7.16.5",
|
|
157
|
+
"react": "^17.0.2",
|
|
158
|
+
"react-dom": "^17.0.2",
|
|
159
|
+
"react-native": "^0.66.4",
|
|
160
|
+
"react-native-reanimated": "^2.6.0",
|
|
161
|
+
"react-native-svg": "^12.3.0",
|
|
162
|
+
"styled-components": "^5"
|
|
120
163
|
},
|
|
121
|
-
"
|
|
122
|
-
"
|
|
123
|
-
|
|
124
|
-
|
|
164
|
+
"resolutions": {
|
|
165
|
+
"@storybook/**/react-dom": "17.0.2",
|
|
166
|
+
"@storybook/**/react": "17.0.2",
|
|
167
|
+
"react-dom": "17.0.2",
|
|
168
|
+
"react": "17.0.2",
|
|
169
|
+
"styled-components": "^5"
|
|
170
|
+
}
|
|
171
|
+
}
|
package/Button/Button.native.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(exports,"__esModule",{value:true});exports.default=void 0;var _extends2=_interopRequireDefault(require("@babel/runtime/helpers/extends"));var _objectWithoutProperties2=_interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));var _taggedTemplateLiteralLoose2=_interopRequireDefault(require("@babel/runtime/helpers/taggedTemplateLiteralLoose"));var _react=_interopRequireDefault(require("react"));var _propTypes=_interopRequireDefault(require("prop-types"));var _native=_interopRequireDefault(require("styled-components/native"));function _templateObject2(){var data=(0,_taggedTemplateLiteralLoose2.default)(["\n color: ",";\n align-self: center;\n font-size: 18px;\n"]);_templateObject2=function _templateObject2(){return data;};return data;}function _templateObject(){var data=(0,_taggedTemplateLiteralLoose2.default)(["\n background-color: ",";\n padding-top: 14px;\n border-radius: 6px;\n border-width: 1px;\n margin-top: 7px;\n"]);_templateObject=function _templateObject(){return data;};return data;}var StyledButton=_native.default.TouchableOpacity(_templateObject(),'#202c41');var StyledText=_native.default.Text(_templateObject2(),'#fff');var Button=function Button(_ref){var onClick=_ref.onClick,children=_ref.children,rest=(0,_objectWithoutProperties2.default)(_ref,["onClick","children"]);return _react.default.createElement(StyledButton,(0,_extends2.default)({onPress:onClick},rest),_react.default.createElement(StyledText,null,children));};Button.propTypes={onClick:_propTypes.default.func.isRequired,children:_propTypes.default.node.isRequired};var _default=Button;exports.default=_default;
|
package/Button/Button.web.js
DELETED
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import PropTypes from 'prop-types';
|
|
3
|
-
|
|
4
|
-
function _extends() { _extends = Object.assign || 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); }
|
|
5
|
-
|
|
6
|
-
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
7
|
-
|
|
8
|
-
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
9
|
-
|
|
10
|
-
var Button = function Button(_ref) {
|
|
11
|
-
var type = _ref.type,
|
|
12
|
-
onClick = _ref.onClick,
|
|
13
|
-
children = _ref.children,
|
|
14
|
-
rest = _objectWithoutProperties(_ref, ["type", "onClick", "children"]);
|
|
15
|
-
|
|
16
|
-
return React.createElement("button", _extends({
|
|
17
|
-
onClick: onClick,
|
|
18
|
-
type: type
|
|
19
|
-
}, rest), children);
|
|
20
|
-
};
|
|
21
|
-
|
|
22
|
-
Button.propTypes = {
|
|
23
|
-
type: PropTypes.oneOf(['button', 'submit']),
|
|
24
|
-
onClick: PropTypes.func.isRequired,
|
|
25
|
-
children: PropTypes.node.isRequired
|
|
26
|
-
};
|
|
27
|
-
Button.defaultProps = {
|
|
28
|
-
type: 'button'
|
|
29
|
-
};
|
|
30
|
-
|
|
31
|
-
export default Button;
|
package/Button/index.js
DELETED
package/README.md
DELETED