@gtkx/css 0.1.17 → 0.1.19

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/cache.js CHANGED
@@ -1,9 +1,9 @@
1
1
  import createCache from "@emotion/cache";
2
- import { GtkStyleSheet } from "./gtk-style-sheet.js";
2
+ import { StyleSheet } from "./style-sheet.js";
3
3
  let gtkCache = null;
4
4
  export const getGtkCache = () => {
5
5
  if (!gtkCache) {
6
- const sheet = new GtkStyleSheet({ key: "gtkx" });
6
+ const sheet = new StyleSheet({ key: "gtkx" });
7
7
  gtkCache = createCache({
8
8
  key: "gtkx",
9
9
  container: null,
package/dist/index.d.ts CHANGED
@@ -1,3 +1,3 @@
1
1
  export { getGtkCache, resetGtkCache } from "./cache.js";
2
2
  export { css, cx, injectGlobal, keyframes } from "./css.js";
3
- import "./gtk-style-sheet.js";
3
+ import "./style-sheet.js";
package/dist/index.js CHANGED
@@ -1,3 +1,3 @@
1
1
  export { getGtkCache, resetGtkCache } from "./cache.js";
2
2
  export { css, cx, injectGlobal, keyframes } from "./css.js";
3
- import "./gtk-style-sheet.js";
3
+ import "./style-sheet.js";
@@ -5,7 +5,7 @@ type StyleSheetOptions = {
5
5
  speedy?: boolean;
6
6
  prepend?: boolean;
7
7
  };
8
- export declare class GtkStyleSheet {
8
+ export declare class StyleSheet {
9
9
  key: string;
10
10
  private rules;
11
11
  private provider;
@@ -12,7 +12,7 @@ const flushPendingStyles = () => {
12
12
  pendingSheets.length = 0;
13
13
  };
14
14
  events.once("start", flushPendingStyles);
15
- export class GtkStyleSheet {
15
+ export class StyleSheet {
16
16
  key;
17
17
  rules = [];
18
18
  provider = null;
@@ -66,6 +66,5 @@ export class GtkStyleSheet {
66
66
  this.display = null;
67
67
  this.hasPendingRules = false;
68
68
  }
69
- hydrate(_elements) {
70
- }
69
+ hydrate(_elements) { }
71
70
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gtkx/css",
3
- "version": "0.1.17",
3
+ "version": "0.1.19",
4
4
  "description": "Emotion-style CSS-in-JS for GTKX applications",
5
5
  "keywords": [
6
6
  "gtk",
@@ -36,7 +36,7 @@
36
36
  "dependencies": {
37
37
  "@emotion/cache": "11.14.0",
38
38
  "@emotion/serialize": "1.3.3",
39
- "@gtkx/ffi": "0.1.17"
39
+ "@gtkx/ffi": "0.1.19"
40
40
  },
41
41
  "scripts": {
42
42
  "build": "tsc -b"