@elliemae/ds-props-helpers 2.3.0-next.4 → 2.3.0-next.8
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/cjs/globalProps/constants.js +2 -1
- package/cjs/globalProps/useGetGlobalAttributes.js +1 -0
- package/cjs/index.js +12 -8
- package/cjs/propTypes/PropTypes.js +3 -2
- package/cjs/xstyledProps/constants.js +21 -0
- package/cjs/xstyledProps/index.js +11 -0
- package/cjs/xstyledProps/useGetXstyledProps.js +27 -0
- package/cjs/xstyledProps/xstyledPropTypes.js +75 -0
- package/esm/globalProps/constants.js +2 -1
- package/esm/globalProps/useGetGlobalAttributes.js +1 -0
- package/esm/index.js +5 -3
- package/esm/propTypes/PropTypes.js +3 -2
- package/esm/xstyledProps/constants.js +16 -0
- package/esm/xstyledProps/index.js +2 -0
- package/esm/xstyledProps/useGetXstyledProps.js +23 -0
- package/esm/xstyledProps/xstyledPropTypes.js +71 -0
- package/package.json +19 -2
- package/types/globalProps/globalAttributesPropTypes.d.ts +361 -361
- package/types/globalProps/useGetGlobalAttributes.d.ts +3 -4
- package/types/index.d.ts +2 -1
- package/types/propTypes/types.d.ts +3 -0
- package/types/xstyledProps/constants.d.ts +2 -0
- package/types/xstyledProps/index.d.ts +2 -0
- package/types/xstyledProps/useGetXstyledProps.d.ts +5 -0
- package/types/xstyledProps/xstyledPropTypes.d.ts +57 -0
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { AriaAttributes, DOMAttributes, HTMLAttributes } from 'react';
|
|
1
|
+
import { AllHTMLAttributes, AriaAttributes, DOMAttributes, HTMLAttributes } from 'react';
|
|
2
2
|
import { GlobalAttributes } from './constants';
|
|
3
|
-
declare type
|
|
4
|
-
export declare const useGetGlobalAttributes: <T
|
|
5
|
-
export {};
|
|
3
|
+
export declare type GlobalAttributesT<T = Element> = AriaAttributes & DOMAttributes<T> & HTMLAttributes<T> & Omit<AllHTMLAttributes<T>, 'as'>;
|
|
4
|
+
export declare const useGetGlobalAttributes: <T, S = Element>(props: T, overrides?: Partial<GlobalAttributes<CallableFunction>> | undefined) => GlobalAttributesT<S>;
|
package/types/index.d.ts
CHANGED
|
@@ -37,6 +37,9 @@ export interface ReactDescT {
|
|
|
37
37
|
deprecated: (this: ReactDescT, info: Record<string, string>) => ReactDescT;
|
|
38
38
|
description: (this: ReactDescT, descr: string) => ReactDescT;
|
|
39
39
|
format: (this: ReactDescT, format: string) => ReactDescT;
|
|
40
|
+
hidden: (this: ReactDescT) => ReactDescT;
|
|
41
|
+
global: (this: ReactDescT) => ReactDescT;
|
|
42
|
+
xstyled: (this: ReactDescT) => ReactDescT;
|
|
40
43
|
isRequired: ReactDescT;
|
|
41
44
|
reactDesc: ReactDescObjT;
|
|
42
45
|
args?: ReactDescT | ReactDescT[] | Record<string, ReactDescT> | unknown[] | Parameters<InstanceOfT>[0] | Parameters<OneOfT>[0] | Parameters<ObjectOfT>[0] | Parameters<ExactT>[0];
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { SizingProps, SpaceProps, LayoutProps } from '@xstyled/styled-components';
|
|
2
|
+
declare type XstyledProps = SpaceProps & SizingProps & LayoutProps;
|
|
3
|
+
declare type PropsWithXstyled<T> = T & XstyledProps;
|
|
4
|
+
export declare const useGetXstyledProps: <T>(props: PropsWithXstyled<T>) => XstyledProps;
|
|
5
|
+
export {};
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
export declare const xstyledPropTypes: {
|
|
2
|
+
margin: import("../propTypes/types").ReactDescT;
|
|
3
|
+
m: import("../propTypes/types").ReactDescT;
|
|
4
|
+
marginTop: import("../propTypes/types").ReactDescT;
|
|
5
|
+
mt: import("../propTypes/types").ReactDescT;
|
|
6
|
+
marginRight: import("../propTypes/types").ReactDescT;
|
|
7
|
+
mr: import("../propTypes/types").ReactDescT;
|
|
8
|
+
marginBottom: import("../propTypes/types").ReactDescT;
|
|
9
|
+
mb: import("../propTypes/types").ReactDescT;
|
|
10
|
+
marginLeft: import("../propTypes/types").ReactDescT;
|
|
11
|
+
ml: import("../propTypes/types").ReactDescT;
|
|
12
|
+
mx: import("../propTypes/types").ReactDescT;
|
|
13
|
+
my: import("../propTypes/types").ReactDescT;
|
|
14
|
+
padding: import("../propTypes/types").ReactDescT;
|
|
15
|
+
p: import("../propTypes/types").ReactDescT;
|
|
16
|
+
paddingTop: import("../propTypes/types").ReactDescT;
|
|
17
|
+
pt: import("../propTypes/types").ReactDescT;
|
|
18
|
+
paddingRight: import("../propTypes/types").ReactDescT;
|
|
19
|
+
pr: import("../propTypes/types").ReactDescT;
|
|
20
|
+
paddingBottom: import("../propTypes/types").ReactDescT;
|
|
21
|
+
pb: import("../propTypes/types").ReactDescT;
|
|
22
|
+
paddingLeft: import("../propTypes/types").ReactDescT;
|
|
23
|
+
pl: import("../propTypes/types").ReactDescT;
|
|
24
|
+
px: import("../propTypes/types").ReactDescT;
|
|
25
|
+
py: import("../propTypes/types").ReactDescT;
|
|
26
|
+
spaceY: import("../propTypes/types").ReactDescT;
|
|
27
|
+
spaceX: import("../propTypes/types").ReactDescT;
|
|
28
|
+
spaceXReverse: import("../propTypes/types").ReactDescT;
|
|
29
|
+
spaceYReverse: import("../propTypes/types").ReactDescT;
|
|
30
|
+
w: import("../propTypes/types").ReactDescT;
|
|
31
|
+
maxWidth: import("../propTypes/types").ReactDescT;
|
|
32
|
+
maxW: import("../propTypes/types").ReactDescT;
|
|
33
|
+
minWidth: import("../propTypes/types").ReactDescT;
|
|
34
|
+
minW: import("../propTypes/types").ReactDescT;
|
|
35
|
+
h: import("../propTypes/types").ReactDescT;
|
|
36
|
+
maxHeight: import("../propTypes/types").ReactDescT;
|
|
37
|
+
maxH: import("../propTypes/types").ReactDescT;
|
|
38
|
+
minHeight: import("../propTypes/types").ReactDescT;
|
|
39
|
+
minH: import("../propTypes/types").ReactDescT;
|
|
40
|
+
maskSize: import("../propTypes/types").ReactDescT;
|
|
41
|
+
display: import("../propTypes/types").ReactDescT;
|
|
42
|
+
float: import("../propTypes/types").ReactDescT;
|
|
43
|
+
boxSizing: import("../propTypes/types").ReactDescT;
|
|
44
|
+
container: import("../propTypes/types").ReactDescT;
|
|
45
|
+
overflow: import("../propTypes/types").ReactDescT;
|
|
46
|
+
overflowX: import("../propTypes/types").ReactDescT;
|
|
47
|
+
overflowY: import("../propTypes/types").ReactDescT;
|
|
48
|
+
zIndex: import("../propTypes/types").ReactDescT;
|
|
49
|
+
position: import("../propTypes/types").ReactDescT;
|
|
50
|
+
top: import("../propTypes/types").ReactDescT;
|
|
51
|
+
right: import("../propTypes/types").ReactDescT;
|
|
52
|
+
bottom: import("../propTypes/types").ReactDescT;
|
|
53
|
+
left: import("../propTypes/types").ReactDescT;
|
|
54
|
+
visibility: import("../propTypes/types").ReactDescT;
|
|
55
|
+
overscrollBehavior: import("../propTypes/types").ReactDescT;
|
|
56
|
+
objectFit: import("../propTypes/types").ReactDescT;
|
|
57
|
+
};
|