@cronocode/react-box 1.7.1 → 1.7.3

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,2 +0,0 @@
1
- import { DoxStyleProps } from './doxStyles';
2
- export default function useStyles(props: DoxStyleProps, isSvg: boolean): (string | undefined)[];
@@ -1,21 +0,0 @@
1
- import React, { RefAttributes } from 'react';
2
- import ClassNameUtils from '../utils/className/classNameUtils';
3
- import { DoxStyleProps } from './dox/doxStyles';
4
- import { StylesContext } from './dox/stylesContext';
5
- type ExtractElementType<T> = T extends React.DetailedHTMLProps<React.HTMLAttributes<infer E>, infer E> ? E : T extends React.SVGProps<infer E> ? E : never;
6
- type ExtractElementFromTag<T extends keyof React.JSX.IntrinsicElements> = ExtractElementType<React.JSX.IntrinsicElements[T]>;
7
- type AllProps<TTag extends keyof React.JSX.IntrinsicElements> = React.ComponentProps<TTag>;
8
- type TagPropsType<TTag extends keyof React.JSX.IntrinsicElements> = Omit<AllProps<TTag>, 'className' | 'style' | 'ref'>;
9
- interface Props<TTag extends keyof React.JSX.IntrinsicElements> extends DoxStyleProps {
10
- children?: React.ReactNode | ((props: {
11
- isHover: boolean;
12
- }) => React.ReactNode);
13
- tag?: TTag;
14
- props?: TagPropsType<TTag>;
15
- className?: ClassNameUtils.ClassNameType;
16
- style?: React.ComponentProps<TTag>['style'];
17
- }
18
- declare const _default: <TTag extends keyof React.JSX.IntrinsicElements = "div">(props: Props<TTag> & React.RefAttributes<ExtractElementType<React.JSX.IntrinsicElements[TTag]>>) => React.ReactNode;
19
- export default _default;
20
- declare const flushStyles: typeof StylesContext.flush;
21
- export { flushStyles };