newtil-css 0.2.59 → 0.2.60

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/index.d.ts CHANGED
@@ -1,2 +1,3 @@
1
1
  // index.d.ts
2
- export { default as layout } from "./dist/types/n-layout";
2
+ export { default as initLayout } from "./dist/types/n-layout";
3
+ export { default as initBar } from "./dist/types/n-layout";
package/index.js CHANGED
@@ -1,2 +1,3 @@
1
+ // index.js
1
2
  export { default as initLayout } from "./dist/js/n-layout";
2
- export { default as initBar } from "./dist/js/n-bar";
3
+ export { default as initBar } from "./dist/js/n-bar";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "newtil-css",
3
- "version": "0.2.59",
3
+ "version": "0.2.60",
4
4
  "description": "Utility based CSS",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",
@@ -1,3 +0,0 @@
1
- var undefined$1 = undefined;
2
-
3
- export { undefined$1 as default };
package/dist/css/utils.js DELETED
@@ -1,3 +0,0 @@
1
- var undefined$1 = undefined;
2
-
3
- export { undefined$1 as default };
@@ -1,28 +0,0 @@
1
- function styleInject(css, ref) {
2
- if ( ref === void 0 ) ref = {};
3
- var insertAt = ref.insertAt;
4
-
5
- if (!css || typeof document === 'undefined') { return; }
6
-
7
- var head = document.head || document.getElementsByTagName('head')[0];
8
- var style = document.createElement('style');
9
- style.type = 'text/css';
10
-
11
- if (insertAt === 'top') {
12
- if (head.firstChild) {
13
- head.insertBefore(style, head.firstChild);
14
- } else {
15
- head.appendChild(style);
16
- }
17
- } else {
18
- head.appendChild(style);
19
- }
20
-
21
- if (style.styleSheet) {
22
- style.styleSheet.cssText = css;
23
- } else {
24
- style.appendChild(document.createTextNode(css));
25
- }
26
- }
27
-
28
- export { styleInject as s };
File without changes
File without changes