@grassus/ui-package 1.0.1 → 1.0.3

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.
@@ -0,0 +1,2 @@
1
+ "use strict";var e=require("react");!function(e,t){void 0===t&&(t={});var n=t.insertAt;if(e&&"undefined"!=typeof document){var r=document.head||document.getElementsByTagName("head")[0],d=document.createElement("style");d.type="text/css","top"===n&&r.firstChild?r.insertBefore(d,r.firstChild):r.appendChild(d),d.styleSheet?d.styleSheet.cssText=e:d.appendChild(document.createTextNode(e))}}("button {\r\n font-size: 60px;\r\n}\r\n");exports.TestInfo=t=>e.createElement("button",null,t.label);
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":["../../node_modules/style-inject/dist/style-inject.es.js","../../src/components/TestInfo/TestInfo.tsx"],"sourcesContent":["function styleInject(css, ref) {\n if ( ref === void 0 ) ref = {};\n var insertAt = ref.insertAt;\n\n if (!css || typeof document === 'undefined') { return; }\n\n var head = document.head || document.getElementsByTagName('head')[0];\n var style = document.createElement('style');\n style.type = 'text/css';\n\n if (insertAt === 'top') {\n if (head.firstChild) {\n head.insertBefore(style, head.firstChild);\n } else {\n head.appendChild(style);\n }\n } else {\n head.appendChild(style);\n }\n\n if (style.styleSheet) {\n style.styleSheet.cssText = css;\n } else {\n style.appendChild(document.createTextNode(css));\n }\n}\n\nexport default styleInject;\n",null],"names":["css","ref","insertAt","document","head","getElementsByTagName","style","createElement","type","firstChild","insertBefore","appendChild","styleSheet","cssText","createTextNode","props","React","label"],"mappings":"qCAAA,SAAqBA,EAAKC,QACX,IAARA,IAAiBA,EAAM,CAAA,GAC5B,IAAIC,EAAWD,EAAIC,SAEnB,GAAKF,GAA2B,oBAAbG,SAAnB,CAEA,IAAIC,EAAOD,SAASC,MAAQD,SAASE,qBAAqB,QAAQ,GAC9DC,EAAQH,SAASI,cAAc,SACnCD,EAAME,KAAO,WAEI,QAAbN,GACEE,EAAKK,WACPL,EAAKM,aAAaJ,EAAOF,EAAKK,YAKhCL,EAAKO,YAAYL,GAGfA,EAAMM,WACRN,EAAMM,WAAWC,QAAUb,EAE3BM,EAAMK,YAAYR,SAASW,eAAed,GAnBY,CAqB1D,8DCnBkBe,GACTC,EAAST,cAAA,SAAA,KAAAQ,EAAME","x_google_ignoreList":[0]}
@@ -0,0 +1,7 @@
1
+ import React from "react";
2
+ import "./TestInfo.css";
3
+ export interface ITestInfo {
4
+ label: string;
5
+ }
6
+ declare const TestInfo: (props: ITestInfo) => React.JSX.Element;
7
+ export default TestInfo;
@@ -0,0 +1 @@
1
+ export { default } from "./TestInfo";
@@ -0,0 +1 @@
1
+ export { default as TestInfo } from "./TestInfo";
@@ -0,0 +1 @@
1
+ export * from './components';
@@ -0,0 +1,2 @@
1
+ import e from"react";!function(e,t){void 0===t&&(t={});var n=t.insertAt;if(e&&"undefined"!=typeof document){var o=document.head||document.getElementsByTagName("head")[0],d=document.createElement("style");d.type="text/css","top"===n&&o.firstChild?o.insertBefore(d,o.firstChild):o.appendChild(d),d.styleSheet?d.styleSheet.cssText=e:d.appendChild(document.createTextNode(e))}}("button {\r\n font-size: 60px;\r\n}\r\n");const t=t=>e.createElement("button",null,t.label);export{t as TestInfo};
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":["../../node_modules/style-inject/dist/style-inject.es.js","../../src/components/TestInfo/TestInfo.tsx"],"sourcesContent":["function styleInject(css, ref) {\n if ( ref === void 0 ) ref = {};\n var insertAt = ref.insertAt;\n\n if (!css || typeof document === 'undefined') { return; }\n\n var head = document.head || document.getElementsByTagName('head')[0];\n var style = document.createElement('style');\n style.type = 'text/css';\n\n if (insertAt === 'top') {\n if (head.firstChild) {\n head.insertBefore(style, head.firstChild);\n } else {\n head.appendChild(style);\n }\n } else {\n head.appendChild(style);\n }\n\n if (style.styleSheet) {\n style.styleSheet.cssText = css;\n } else {\n style.appendChild(document.createTextNode(css));\n }\n}\n\nexport default styleInject;\n",null],"names":["css","ref","insertAt","document","head","getElementsByTagName","style","createElement","type","firstChild","insertBefore","appendChild","styleSheet","cssText","createTextNode","TestInfo","props","React","label"],"mappings":"sBAAA,SAAqBA,EAAKC,QACX,IAARA,IAAiBA,EAAM,CAAA,GAC5B,IAAIC,EAAWD,EAAIC,SAEnB,GAAKF,GAA2B,oBAAbG,SAAnB,CAEA,IAAIC,EAAOD,SAASC,MAAQD,SAASE,qBAAqB,QAAQ,GAC9DC,EAAQH,SAASI,cAAc,SACnCD,EAAME,KAAO,WAEI,QAAbN,GACEE,EAAKK,WACPL,EAAKM,aAAaJ,EAAOF,EAAKK,YAKhCL,EAAKO,YAAYL,GAGfA,EAAMM,WACRN,EAAMM,WAAWC,QAAUb,EAE3BM,EAAMK,YAAYR,SAASW,eAAed,GAnBY,CAqB1D,6CCnBA,MAAMe,EAAYC,GACTC,EAASV,cAAA,SAAA,KAAAS,EAAME","x_google_ignoreList":[0]}
@@ -0,0 +1,7 @@
1
+ import React from "react";
2
+ import "./TestInfo.css";
3
+ export interface ITestInfo {
4
+ label: string;
5
+ }
6
+ declare const TestInfo: (props: ITestInfo) => React.JSX.Element;
7
+ export default TestInfo;
@@ -0,0 +1 @@
1
+ export { default } from "./TestInfo";
@@ -0,0 +1 @@
1
+ export { default as TestInfo } from "./TestInfo";
@@ -0,0 +1 @@
1
+ export * from './components';
@@ -0,0 +1,8 @@
1
+ import React from 'react';
2
+
3
+ interface ITestInfo {
4
+ label: string;
5
+ }
6
+ declare const TestInfo: (props: ITestInfo) => React.JSX.Element;
7
+
8
+ export { TestInfo };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@grassus/ui-package",
3
- "version": "1.0.1",
3
+ "version": "1.0.3",
4
4
  "description": "Grassus UI package",
5
5
  "repository": "https://github.com/grassus/ui-package.git",
6
6
  "author": "Pavel 'Grassus' Dzekunov",
@@ -9,27 +9,32 @@
9
9
  "ui",
10
10
  "library"
11
11
  ],
12
- "license": "ICS",
12
+ "license": "MIT",
13
13
  "scripts": {
14
- "rollup": "rollup -c"
14
+ "rollup": "rollup -c --bundleConfigAsCjs",
15
+ "release-it": "yarn version --patch && git push --follow-tags",
16
+ "release-publish": "npm run rollup -c && npm publish"
15
17
  },
16
18
  "devDependencies": {
17
- "@rollup/plugin-commonjs": "^21.0.1",
18
- "@rollup/plugin-node-resolve": "^13.0.6",
19
+ "@rollup/plugin-commonjs": "^25.0.7",
20
+ "@rollup/plugin-node-resolve": "^15.2.3",
21
+ "@rollup/plugin-terser": "^0.4.4",
19
22
  "@rollup/plugin-typescript": "^11.1.6",
20
- "@types/react": "^17.0.34",
21
- "react": "^17.0.2",
22
- "rollup": "^2.60.0",
23
- "rollup-plugin-dts": "^4.0.1",
24
- "typescript": "^4.4.4"
23
+ "@types/react": "^18.2.73",
24
+ "rollup": "^4.13.2",
25
+ "rollup-plugin-dts": "^6.1.0",
26
+ "rollup-plugin-peer-deps-external": "^2.2.4",
27
+ "rollup-plugin-postcss": "^4.0.2",
28
+ "tslib": "^2.6.2",
29
+ "typescript": "^5.4.3"
30
+ },
31
+ "peerDependencies": {
32
+ "react": "^18.2.0"
25
33
  },
26
34
  "main": "dist/cjs/index.js",
27
35
  "module": "dist/esm/index.js",
28
36
  "files": [
29
37
  "dist"
30
38
  ],
31
- "types": "dist/index.d.ts",
32
- "dependencies": {
33
- "tslib": "^2.6.2"
34
- }
39
+ "types": "dist/index.d.ts"
35
40
  }