css-engine-test-pb 0.0.3 → 0.0.5

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/index.d.ts CHANGED
@@ -1,4 +1,8 @@
1
+ import { borderColor } from './shorthands';
2
+ export declare const shorthands: {
3
+ borderColor: typeof borderColor;
4
+ };
1
5
  export { makeStyles } from './makeStyles';
2
6
  export { makeResetStyles } from './makeResetStyles';
3
7
  export { mergeClasses } from './mergeClasses';
4
- export { CSSValue, CSSProperties, CSSPseudos, CSSMediaQueries, StyleRule, StyleDefinition, StyleBucket, CSSRule, GeneratedClasses, StyleSheet, StyleEngineConfig, MakeStylesFunction, StyleSlots } from './types';
8
+ export type { StyleRule, CSSProperties, GeneratedClasses, StyleSlots } from './types';
package/dist/index.js CHANGED
@@ -1,4 +1,7 @@
1
+ import { borderColor } from './shorthands';
2
+ export const shorthands = {
3
+ borderColor
4
+ };
1
5
  export { makeStyles } from './makeStyles';
2
6
  export { makeResetStyles } from './makeResetStyles';
3
7
  export { mergeClasses } from './mergeClasses';
4
- export { StyleBucket } from './types';
@@ -1,2 +1,2 @@
1
1
  import { StyleRule } from './types';
2
- export declare function makeResetStyles(styleDefinition: StyleRule): string;
2
+ export declare function makeResetStyles(styleDefinition: StyleRule): () => string;
@@ -1,5 +1,6 @@
1
1
  import { getGlobalEngine } from './engine';
2
2
  export function makeResetStyles(styleDefinition) {
3
3
  const engine = getGlobalEngine();
4
- return engine.createStyle(styleDefinition);
4
+ const className = engine.createStyle(styleDefinition);
5
+ return () => className;
5
6
  }
@@ -0,0 +1,7 @@
1
+ import { CSSValue } from '../types';
2
+ export declare function borderColor(value: CSSValue): {
3
+ borderTopColor: CSSValue;
4
+ borderRightColor: CSSValue;
5
+ borderBottomColor: CSSValue;
6
+ borderLeftColor: CSSValue;
7
+ };
@@ -0,0 +1,8 @@
1
+ export function borderColor(value) {
2
+ return {
3
+ borderTopColor: value,
4
+ borderRightColor: value,
5
+ borderBottomColor: value,
6
+ borderLeftColor: value,
7
+ };
8
+ }
@@ -0,0 +1 @@
1
+ export { borderColor } from './borderColor';
@@ -0,0 +1 @@
1
+ export { borderColor } from './borderColor';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "css-engine-test-pb",
3
- "version": "0.0.3",
3
+ "version": "0.0.5",
4
4
  "description": "",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",