Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 7 additions & 14 deletions packages/react-strict-dom/src/native/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,6 @@
* @flow
*/

import type {
StyleXStyles,
StyleXStylesWithout,
StaticStyles,
Theme,
VarGroup
} from '@stylexjs/stylex';

import typeof * as TStyleX from '@stylexjs/stylex';

import * as React from 'react';
Expand All @@ -27,19 +19,20 @@ import {
useViewportScale
} from './modules/ContextViewportScale';

type StyleTheme<V, T> = Theme<V, T>;
type StyleVars<T> = VarGroup<T>;
type Styles<T> = StyleXStyles<T>;
type StylesWithout<T> = StyleXStylesWithout<T>;

type ProviderValue = Readonly<{ [string]: string | number }>;

type ProviderProps = Readonly<{
children: React.Node,
customProperties: ProviderValue
}>;

export type { StaticStyles, StyleTheme, StyleVars, Styles, StylesWithout };
export type {
StaticStyles,
Theme as StyleTheme,
VarGroup as StyleVars,
StyleXStyles as Styles,
StyleXStylesWithout as StylesWithout
} from '@stylexjs/stylex';
export type {
StrictChangeEvent,
StrictClickEvent,
Expand Down
21 changes: 7 additions & 14 deletions packages/react-strict-dom/src/web/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,23 +7,16 @@
* @flow strict
*/

import type {
StyleXStyles,
StyleXStylesWithout,
StaticStyles,
Theme,
VarGroup
} from '@stylexjs/stylex';

import * as html from './html';
import * as css from '@stylexjs/stylex';

type StyleTheme<V, T> = Theme<V, T>;
type StyleVars<T> = VarGroup<T>;
type Styles<T> = StyleXStyles<T>;
type StylesWithout<T> = StyleXStylesWithout<T>;

export type { StaticStyles, StyleTheme, StyleVars, Styles, StylesWithout };
export type {
StaticStyles,
Theme as StyleTheme,
VarGroup as StyleVars,
StyleXStyles as Styles,
StyleXStylesWithout as StylesWithout
} from '@stylexjs/stylex';
export type {
StrictChangeEvent,
StrictClickEvent,
Expand Down