@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.
- package/dist/cjs/index.js +2 -0
- package/dist/cjs/index.js.map +1 -0
- package/dist/cjs/types/components/TestInfo/TestInfo.d.ts +7 -0
- package/dist/cjs/types/components/TestInfo/index.d.ts +1 -0
- package/dist/cjs/types/components/index.d.ts +1 -0
- package/dist/cjs/types/index.d.ts +1 -0
- package/dist/esm/index.js +2 -0
- package/dist/esm/index.js.map +1 -0
- package/dist/esm/types/components/TestInfo/TestInfo.d.ts +7 -0
- package/dist/esm/types/components/TestInfo/index.d.ts +1 -0
- package/dist/esm/types/components/index.d.ts +1 -0
- package/dist/esm/types/index.d.ts +1 -0
- package/dist/index.d.ts +8 -0
- package/package.json +19 -14
|
@@ -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 @@
|
|
|
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 @@
|
|
|
1
|
+
export { default } from "./TestInfo";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as TestInfo } from "./TestInfo";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './components';
|
package/dist/index.d.ts
ADDED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@grassus/ui-package",
|
|
3
|
-
"version": "1.0.
|
|
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": "
|
|
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": "^
|
|
18
|
-
"@rollup/plugin-node-resolve": "^
|
|
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": "^
|
|
21
|
-
"
|
|
22
|
-
"rollup": "^
|
|
23
|
-
"rollup-plugin-
|
|
24
|
-
"
|
|
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
|
}
|