@leancodepl/styled-tools 9.6.4 → 9.6.6

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/README.md CHANGED
@@ -24,20 +24,20 @@ Creates type-safe theme utilities for styled-components with full TypeScript sup
24
24
 
25
25
  ```typescript
26
26
  // theme.ts
27
- import { mkTheme } from '@leancodepl/styled-tools';
28
- import styled from 'styled-components';
27
+ import { mkTheme } from "@leancodepl/styled-tools"
28
+ import styled from "styled-components"
29
29
 
30
30
  interface AppTheme {
31
- colors: { primary: string; secondary: string };
32
- spacing: { small: string; large: string };
31
+ colors: { primary: string; secondary: string }
32
+ spacing: { small: string; large: string }
33
33
  }
34
34
 
35
- export const { theme, useTheme } = mkTheme<AppTheme>();
35
+ export const { theme, useTheme } = mkTheme<AppTheme>()
36
36
 
37
37
  const Button = styled.button`
38
38
  color: ${theme.colors.primary};
39
39
  padding: ${theme.spacing.small};
40
- `;
40
+ `
41
41
  ```
42
42
 
43
43
  ### React Hook Usage
package/index.cjs.js CHANGED
@@ -25,7 +25,7 @@ function guard(value) {
25
25
 
26
26
  /**
27
27
  * Creates type-safe theme utilities for styled-components with full TypeScript support.
28
- *
28
+ *
29
29
  * @template TTheme - The theme object type extending Value
30
30
  * @returns Object containing theme proxy and useTheme hook
31
31
  * @example
@@ -34,9 +34,9 @@ function guard(value) {
34
34
  * colors: { primary: string; secondary: string };
35
35
  * spacing: { small: string; large: string };
36
36
  * }
37
- *
37
+ *
38
38
  * const { theme, useTheme } = mkTheme<AppTheme>();
39
- *
39
+ *
40
40
  * const Button = styled.button`
41
41
  * color: ${theme.colors.primary};
42
42
  * padding: ${theme.spacing.small};
package/index.esm.js CHANGED
@@ -23,7 +23,7 @@ function guard(value) {
23
23
 
24
24
  /**
25
25
  * Creates type-safe theme utilities for styled-components with full TypeScript support.
26
- *
26
+ *
27
27
  * @template TTheme - The theme object type extending Value
28
28
  * @returns Object containing theme proxy and useTheme hook
29
29
  * @example
@@ -32,9 +32,9 @@ function guard(value) {
32
32
  * colors: { primary: string; secondary: string };
33
33
  * spacing: { small: string; large: string };
34
34
  * }
35
- *
35
+ *
36
36
  * const { theme, useTheme } = mkTheme<AppTheme>();
37
- *
37
+ *
38
38
  * const Button = styled.button`
39
39
  * color: ${theme.colors.primary};
40
40
  * padding: ${theme.spacing.small};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@leancodepl/styled-tools",
3
- "version": "9.6.4",
3
+ "version": "9.6.6",
4
4
  "license": "Apache-2.0",
5
5
  "peerDependencies": {
6
6
  "styled-components": ">=6.0.0"