vasille-css 3.0.3 → 3.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.
@@ -13,11 +13,11 @@ type PseudoSet = PropsSet & {
13
13
  type MediaSet = PseudoSet & {
14
14
  [k: `@${string}`]: PseudoSet;
15
15
  };
16
- export declare function webStyleSheet<T = {
16
+ export declare function webStyleSheet<T extends {
17
17
  [k: string]: MediaSet;
18
18
  }>(styles: T): {
19
19
  [K in keyof T]: string;
20
- } | undefined;
20
+ };
21
21
 
22
22
  // fake functions
23
23
  export declare function theme<T>(name: string, value: T): T;
package/lib/index.js CHANGED
@@ -37,13 +37,13 @@ function insertRule(target, rule) {
37
37
  break;
38
38
  case 2:
39
39
  if (!tablet) {
40
- tablet = createStyleSheet(`(min-width:${mobileMaxWidth}px)and(max-width:${tabletMaxWidth}px)`);
40
+ tablet = createStyleSheet(`(min-width:${mobileMaxWidth}px) and (max-width:${tabletMaxWidth}px)`);
41
41
  }
42
42
  sheet = tablet;
43
43
  break;
44
44
  case 3:
45
45
  if (!desktop) {
46
- desktop = createStyleSheet(`(min-width:${tabletMaxWidth}px)and(max-width:${laptopMaxWidth}px)`);
46
+ desktop = createStyleSheet(`(min-width:${tabletMaxWidth}px) and (max-width:${laptopMaxWidth}px)`);
47
47
  }
48
48
  sheet = desktop;
49
49
  break;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vasille-css",
3
- "version": "3.0.3",
3
+ "version": "3.0.5",
4
4
  "description": "Add module CSS styles to Vasille Components",
5
5
  "main": "./lib/index.js",
6
6
  "types": "./fake-types/index.d.ts",