simplestyle-js 5.2.1 → 5.2.2

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.
@@ -1,6 +1,5 @@
1
- import type { Properties } from 'csstype';
2
1
  import type { SimpleStyleRegistry } from './simpleStyleRegistry.js';
3
- import type { ImportStringType, SimpleStyleRules } from './types.js';
2
+ import type { ImportStringType, Properties, SimpleStyleRules } from './types.js';
4
3
  export type CreateStylesOptions = Partial<{
5
4
  /**
6
5
  * If true, automatically renders generated styles
@@ -29,6 +29,7 @@ const _createStyles = /*#__PURE__*/ _interop_require_wildcard(require("./createS
29
29
  const _generateClassName = require("./generateClassName.cjs");
30
30
  _export_star(require("./makeStyles.cjs"), exports);
31
31
  const _plugins = require("./plugins.cjs");
32
+ _export_star(require("./types.cjs"), exports);
32
33
  function _export_star(from, to) {
33
34
  Object.keys(from).forEach(function(k) {
34
35
  if (k !== "default" && !Object.prototype.hasOwnProperty.call(to, k)) {
@@ -4,4 +4,4 @@ export { setSeed } from './generateClassName.js';
4
4
  export * from './makeStyles.js';
5
5
  export type { PosthookPlugin } from './plugins.js';
6
6
  export { registerPosthook } from './plugins.js';
7
- export type { ImportStringType, SimpleStyleRules } from './types.js';
7
+ export * from './types.js';
@@ -5,3 +5,4 @@ export type SimpleStyleRules = {
5
5
  export type RenderableSimpleStyleRules = SimpleStyleRules & Record<string, Properties[]>;
6
6
  export type HasProperty<T, K extends keyof T> = T extends Record<K, any> ? true : false;
7
7
  export type ImportStringType = `@import ${string}`;
8
+ export type { Properties };
@@ -1,6 +1,5 @@
1
- import type { Properties } from 'csstype';
2
1
  import type { SimpleStyleRegistry } from './simpleStyleRegistry.js';
3
- import type { ImportStringType, SimpleStyleRules } from './types.js';
2
+ import type { ImportStringType, Properties, SimpleStyleRules } from './types.js';
4
3
  export type CreateStylesOptions = Partial<{
5
4
  /**
6
5
  * If true, automatically renders generated styles
@@ -4,4 +4,4 @@ export { setSeed } from './generateClassName.js';
4
4
  export * from './makeStyles.js';
5
5
  export type { PosthookPlugin } from './plugins.js';
6
6
  export { registerPosthook } from './plugins.js';
7
- export type { ImportStringType, SimpleStyleRules } from './types.js';
7
+ export * from './types.js';
@@ -2,3 +2,4 @@ export { default as createStyles, keyframes, rawStyles } from './createStyles.mj
2
2
  export { setSeed } from './generateClassName.mjs';
3
3
  export * from './makeStyles.mjs';
4
4
  export { registerPosthook } from './plugins.mjs';
5
+ export * from './types.mjs';
@@ -5,3 +5,4 @@ export type SimpleStyleRules = {
5
5
  export type RenderableSimpleStyleRules = SimpleStyleRules & Record<string, Properties[]>;
6
6
  export type HasProperty<T, K extends keyof T> = T extends Record<K, any> ? true : false;
7
7
  export type ImportStringType = `@import ${string}`;
8
+ export type { Properties };
@@ -1 +1,2 @@
1
+ // re-export this type so we don't run into portability issues here
1
2
  export { };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "simplestyle-js",
3
- "version": "5.2.1",
3
+ "version": "5.2.2",
4
4
  "description": "An incredibly straightforward and simple CSS-in-JS solution with zero runtime dependencies, and out-of-the-box TypeScript support",
5
5
  "type": "module",
6
6
  "repository": {