Skip to content

Commit 6e05498

Browse files
committed
Some progress
1 parent f753a9f commit 6e05498

File tree

16 files changed

+28
-33
lines changed

16 files changed

+28
-33
lines changed

packages/react-native-reanimated/src/css/web/style/builderFactories.ts renamed to packages/react-native-reanimated/src/common/web/style/builderFactories.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
'use strict';
22

3-
import type { AnyRecord } from '../../../common';
4-
import { hasSuffix } from '../../../common';
3+
import type { AnyRecord } from '../..';
4+
import { hasSuffix } from '../..';
55
import {
66
hasProp,
77
isConfigPropertyAlias,
88
isDefined,
99
isRecord,
1010
kebabizeCamelCase,
11-
} from '../../utils';
11+
} from '../../../css/utils';
1212
import type {
1313
AnyBuilderConfig,
1414
RuleBuilder,
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
'use strict';
22
export * from './shadows';
3+
export * from './transforms';

packages/react-native-reanimated/src/css/web/style/builders/shadows.ts renamed to packages/react-native-reanimated/src/common/web/style/builders/shadows.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
'use strict';
22
import type { TextStyle, ViewStyle } from 'react-native';
33

4-
import type { ValueProcessor } from '../../../../common';
5-
import { logger } from '../../../../common';
6-
import { opacifyColor } from '../../utils';
4+
import { opacifyColor } from '../../../../css/web/utils';
5+
import type { ValueProcessor } from '../../..';
6+
import { logger } from '../../..';
77
import { createRuleBuilder } from '../builderFactories';
88
import { processColor } from '../processors';
99

packages/react-native-reanimated/src/css/web/config.ts renamed to packages/react-native-reanimated/src/common/web/style/config.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
11
'use strict';
2-
import type { PlainStyle } from '../../common';
3-
import { processBoxShadowWeb } from '../../common/web/style';
4-
import type { StyleBuilderConfig } from './style';
2+
import { processColor } from '../../processors';
3+
import type { PlainStyle } from '../../types';
54
import {
65
boxShadowBuilder,
7-
processColor,
86
processFilter,
97
processFontVariant,
108
processFontWeight,
@@ -15,7 +13,9 @@ import {
1513
processTransform,
1614
processTransformOrigin,
1715
textShadowBuilder,
18-
} from './style';
16+
} from './processors';
17+
import { processBoxShadowWeb } from './processors/shadows';
18+
import type { StyleBuilderConfig } from './types';
1919

2020
const colorAttributes = { process: processColor };
2121

packages/react-native-reanimated/src/common/web/style/index.ts

Lines changed: 0 additions & 1 deletion
This file was deleted.

packages/react-native-reanimated/src/css/web/style/processors/colors.ts renamed to packages/react-native-reanimated/src/common/web/style/processors/colors.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
import type { ColorValue } from 'react-native';
33

44
import { convertToRGBA, rgbaArrayToRGBAColor } from '../../../../Colors';
5-
import { isNumber } from '../../../utils';
5+
import { isNumber } from '../../../../css/utils';
66
import type { ValueProcessor } from '../types';
77

88
export const processColor: ValueProcessor<ColorValue> = (value) => {

packages/react-native-reanimated/src/css/web/style/processors/filter.ts renamed to packages/react-native-reanimated/src/common/web/style/processors/filter.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
'use strict';
22
import type { FilterFunction } from 'react-native';
33

4-
import { maybeAddSuffix } from '../../../../common';
4+
import { maybeAddSuffix } from '../../..';
55
import type { ValueProcessor } from '../types';
66

77
const FILTER_SUFFIXES: Record<string, string> = {

packages/react-native-reanimated/src/css/web/style/processors/font.ts renamed to packages/react-native-reanimated/src/common/web/style/processors/font.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
'use strict';
22
import type { FontVariant } from 'react-native';
33

4-
import { FONT_WEIGHT_MAPPINGS } from '../../../constants';
4+
import { FONT_WEIGHT_MAPPINGS } from '../../../../css/constants';
55
import type { ValueProcessor } from '../types';
66

77
export const processFontWeight: ValueProcessor<number | string> = (value) => {
Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,8 @@
1-
export * from './shadows';
1+
'use strict';
2+
export * from '../builders/shadows';
3+
export * from '../builders/transforms';
4+
export * from './colors';
5+
export * from './filter';
6+
export * from './font';
7+
export * from './margins';
8+
export * from './paddings';

0 commit comments

Comments
 (0)