rn-css 1.6.10 → 1.6.11

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,6 @@
1
1
  import type { Style, Transform } from '../types';
2
2
  /** Parse a css value for border */
3
- export declare function border(prefixKey: 'border' | 'borderLeft' | 'borderRight' | 'borderTop' | 'borderBottom', value: string): {
3
+ export declare function border(prefixKey: 'border' | 'borderLeft' | 'borderRight' | 'borderTop' | 'borderBottom' | 'outline', value: string): {
4
4
  [x: string]: string;
5
5
  };
6
6
  export declare function shadow(prefix: 'textShadow' | 'shadow', value: string): {
@@ -69,6 +69,7 @@ function cssChunkToStyle(css) {
69
69
  const key = kebab2camel(rawKey.trim());
70
70
  const value = stripSpaces(rawValue.trim()); // We need this to correctly read calc() values
71
71
  switch (key) {
72
+ case 'outline':
72
73
  case 'border':
73
74
  case 'borderTop':
74
75
  case 'borderLeft':
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rn-css",
3
- "version": "1.6.10",
3
+ "version": "1.6.11",
4
4
  "scripts": {
5
5
  "test": "jest",
6
6
  "prepare": "tsc",
@@ -23,7 +23,7 @@ function findNumbers (value: string) {
23
23
  }
24
24
 
25
25
  /** Parse a css value for border */
26
- export function border (prefixKey: 'border' | 'borderLeft' | 'borderRight' | 'borderTop' | 'borderBottom', value: string): { [x:string]: string } {
26
+ export function border (prefixKey: 'border' | 'borderLeft' | 'borderRight' | 'borderTop' | 'borderBottom' | 'outline', value: string): { [x:string]: string } {
27
27
  const values = value.split(/\s+/mg)
28
28
  const result = {
29
29
  [prefixKey + 'Width']: '0',
@@ -66,6 +66,7 @@ function cssChunkToStyle (css: string) {
66
66
  const key = kebab2camel(rawKey.trim())
67
67
  const value = stripSpaces(rawValue.trim())// We need this to correctly read calc() values
68
68
  switch (key) {
69
+ case 'outline':
69
70
  case 'border':
70
71
  case 'borderTop':
71
72
  case 'borderLeft':