@elliemae/ds-props-helpers 2.3.1-rc.2 → 3.0.0-alpha.2
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/dist/cjs/defaultProps/index.js +28 -0
- package/dist/cjs/defaultProps/index.js.map +7 -0
- package/dist/cjs/defaultProps/useMemoMergePropsWithDefault.js +62 -0
- package/dist/cjs/defaultProps/useMemoMergePropsWithDefault.js.map +7 -0
- package/dist/cjs/getProps/index.js +37 -0
- package/dist/cjs/getProps/index.js.map +7 -0
- package/dist/cjs/globalProps/constants.js +397 -0
- package/dist/cjs/globalProps/constants.js.map +7 -0
- package/dist/cjs/globalProps/globalAttributesPropTypes.js +398 -0
- package/dist/cjs/globalProps/globalAttributesPropTypes.js.map +7 -0
- package/dist/cjs/globalProps/index.js +29 -0
- package/dist/cjs/globalProps/index.js.map +7 -0
- package/dist/cjs/globalProps/useGetGlobalAttributes.js +56 -0
- package/dist/cjs/globalProps/useGetGlobalAttributes.js.map +7 -0
- package/dist/cjs/index.js +33 -0
- package/dist/cjs/index.js.map +7 -0
- package/dist/cjs/propTypes/PropTypes.js +149 -0
- package/dist/cjs/propTypes/PropTypes.js.map +7 -0
- package/dist/cjs/propTypes/customPropTypes.js +38 -0
- package/dist/cjs/propTypes/customPropTypes.js.map +7 -0
- package/dist/cjs/propTypes/describe.js +81 -0
- package/dist/cjs/propTypes/describe.js.map +7 -0
- package/dist/cjs/propTypes/describeConversions.js +96 -0
- package/dist/cjs/propTypes/describeConversions.js.map +7 -0
- package/dist/cjs/propTypes/describeGuards.js +49 -0
- package/dist/cjs/propTypes/describeGuards.js.map +7 -0
- package/dist/cjs/propTypes/index.js +37 -0
- package/dist/cjs/propTypes/index.js.map +7 -0
- package/dist/cjs/propTypes/toTypescript.js +154 -0
- package/dist/cjs/propTypes/toTypescript.js.map +7 -0
- package/dist/cjs/propTypes/types.js +27 -0
- package/dist/cjs/propTypes/types.js.map +7 -0
- package/dist/cjs/tests/globalProps/TestComponent.js +54 -0
- package/dist/cjs/tests/globalProps/TestComponent.js.map +7 -0
- package/dist/cjs/tests/validation/test.schema.js +67 -0
- package/dist/cjs/tests/validation/test.schema.js.map +7 -0
- package/dist/cjs/validation/errorTemplates.js +48 -0
- package/dist/cjs/validation/errorTemplates.js.map +7 -0
- package/dist/cjs/validation/index.js +30 -0
- package/dist/cjs/validation/index.js.map +7 -0
- package/dist/cjs/validation/typescriptGuards.js +65 -0
- package/dist/cjs/validation/typescriptGuards.js.map +7 -0
- package/dist/cjs/validation/typescriptParsers.js +76 -0
- package/dist/cjs/validation/typescriptParsers.js.map +7 -0
- package/dist/cjs/validation/typescriptValidator.js +171 -0
- package/dist/cjs/validation/typescriptValidator.js.map +7 -0
- package/dist/cjs/validation/validator.js +55 -0
- package/dist/cjs/validation/validator.js.map +7 -0
- package/dist/cjs/xstyledProps/constants.js +88 -0
- package/dist/cjs/xstyledProps/constants.js.map +7 -0
- package/dist/cjs/xstyledProps/index.js +29 -0
- package/dist/cjs/xstyledProps/index.js.map +7 -0
- package/dist/cjs/xstyledProps/useGetXstyledProps.js +48 -0
- package/dist/cjs/xstyledProps/useGetXstyledProps.js.map +7 -0
- package/dist/cjs/xstyledProps/xstyledPropTypes.js +92 -0
- package/dist/cjs/xstyledProps/xstyledPropTypes.js.map +7 -0
- package/dist/esm/defaultProps/index.js +3 -0
- package/dist/esm/defaultProps/index.js.map +7 -0
- package/dist/esm/defaultProps/useMemoMergePropsWithDefault.js +35 -0
- package/dist/esm/defaultProps/useMemoMergePropsWithDefault.js.map +7 -0
- package/dist/esm/getProps/index.js +8 -0
- package/dist/esm/getProps/index.js.map +7 -0
- package/dist/esm/globalProps/constants.js +368 -0
- package/dist/esm/globalProps/constants.js.map +7 -0
- package/{esm → dist/esm}/globalProps/globalAttributesPropTypes.js +58 -67
- package/dist/esm/globalProps/globalAttributesPropTypes.js.map +7 -0
- package/dist/esm/globalProps/index.js +4 -0
- package/dist/esm/globalProps/index.js.map +7 -0
- package/dist/esm/globalProps/useGetGlobalAttributes.js +27 -0
- package/dist/esm/globalProps/useGetGlobalAttributes.js.map +7 -0
- package/dist/esm/index.js +8 -0
- package/dist/esm/index.js.map +7 -0
- package/dist/esm/propTypes/PropTypes.js +122 -0
- package/dist/esm/propTypes/PropTypes.js.map +7 -0
- package/dist/esm/propTypes/customPropTypes.js +9 -0
- package/dist/esm/propTypes/customPropTypes.js.map +7 -0
- package/dist/esm/propTypes/describe.js +52 -0
- package/dist/esm/propTypes/describe.js.map +7 -0
- package/dist/esm/propTypes/describeConversions.js +76 -0
- package/dist/esm/propTypes/describeConversions.js.map +7 -0
- package/dist/esm/propTypes/describeGuards.js +20 -0
- package/dist/esm/propTypes/describeGuards.js.map +7 -0
- package/dist/esm/propTypes/index.js +8 -0
- package/dist/esm/propTypes/index.js.map +7 -0
- package/dist/esm/propTypes/toTypescript.js +127 -0
- package/dist/esm/propTypes/toTypescript.js.map +7 -0
- package/dist/esm/propTypes/types.js +2 -0
- package/dist/esm/propTypes/types.js.map +7 -0
- package/dist/esm/tests/globalProps/TestComponent.js +27 -0
- package/dist/esm/tests/globalProps/TestComponent.js.map +7 -0
- package/dist/esm/tests/validation/test.schema.js +38 -0
- package/dist/esm/tests/validation/test.schema.js.map +7 -0
- package/dist/esm/validation/errorTemplates.js +19 -0
- package/dist/esm/validation/errorTemplates.js.map +7 -0
- package/dist/esm/validation/index.js +5 -0
- package/dist/esm/validation/index.js.map +7 -0
- package/dist/esm/validation/typescriptGuards.js +36 -0
- package/dist/esm/validation/typescriptGuards.js.map +7 -0
- package/dist/esm/validation/typescriptParsers.js +47 -0
- package/dist/esm/validation/typescriptParsers.js.map +7 -0
- package/dist/esm/validation/typescriptValidator.js +153 -0
- package/dist/esm/validation/typescriptValidator.js.map +7 -0
- package/dist/esm/validation/validator.js +26 -0
- package/dist/esm/validation/validator.js.map +7 -0
- package/dist/esm/xstyledProps/constants.js +59 -0
- package/dist/esm/xstyledProps/constants.js.map +7 -0
- package/dist/esm/xstyledProps/index.js +4 -0
- package/dist/esm/xstyledProps/index.js.map +7 -0
- package/dist/esm/xstyledProps/useGetXstyledProps.js +19 -0
- package/dist/esm/xstyledProps/useGetXstyledProps.js.map +7 -0
- package/dist/esm/xstyledProps/xstyledPropTypes.js +63 -0
- package/dist/esm/xstyledProps/xstyledPropTypes.js.map +7 -0
- package/package.json +72 -81
- package/cjs/defaultProps/index.js +0 -9
- package/cjs/defaultProps/useMemoMergePropsWithDefault.js +0 -48
- package/cjs/getProps/index.js +0 -20
- package/cjs/globalProps/constants.js +0 -16
- package/cjs/globalProps/globalAttributesPropTypes.js +0 -382
- package/cjs/globalProps/index.js +0 -11
- package/cjs/globalProps/useGetGlobalAttributes.js +0 -37
- package/cjs/index.js +0 -32
- package/cjs/propTypes/PropTypes.js +0 -131
- package/cjs/propTypes/customPropTypes.js +0 -21
- package/cjs/propTypes/describe.js +0 -64
- package/cjs/propTypes/describeConversions.js +0 -104
- package/cjs/propTypes/describeGuards.js +0 -21
- package/cjs/propTypes/index.js +0 -11
- package/cjs/propTypes/toTypescript.js +0 -160
- package/cjs/propTypes/types.js +0 -2
- package/cjs/validation/errorTemplates.js +0 -16
- package/cjs/validation/index.js +0 -15
- package/cjs/validation/typescriptGuards.js +0 -36
- package/cjs/validation/typescriptParsers.js +0 -45
- package/cjs/validation/typescriptValidator.js +0 -208
- package/cjs/validation/validator.js +0 -36
- package/cjs/xstyledProps/constants.js +0 -21
- package/cjs/xstyledProps/index.js +0 -11
- package/cjs/xstyledProps/useGetXstyledProps.js +0 -27
- package/cjs/xstyledProps/xstyledPropTypes.js +0 -75
- package/esm/defaultProps/index.js +0 -1
- package/esm/defaultProps/useMemoMergePropsWithDefault.js +0 -39
- package/esm/getProps/index.js +0 -15
- package/esm/globalProps/constants.js +0 -12
- package/esm/globalProps/index.js +0 -2
- package/esm/globalProps/useGetGlobalAttributes.js +0 -33
- package/esm/index.js +0 -11
- package/esm/propTypes/PropTypes.js +0 -125
- package/esm/propTypes/customPropTypes.js +0 -17
- package/esm/propTypes/describe.js +0 -62
- package/esm/propTypes/describeConversions.js +0 -96
- package/esm/propTypes/describeGuards.js +0 -10
- package/esm/propTypes/index.js +0 -2
- package/esm/propTypes/toTypescript.js +0 -154
- package/esm/propTypes/types.js +0 -1
- package/esm/validation/errorTemplates.js +0 -11
- package/esm/validation/index.js +0 -3
- package/esm/validation/typescriptGuards.js +0 -23
- package/esm/validation/typescriptParsers.js +0 -41
- package/esm/validation/typescriptValidator.js +0 -203
- package/esm/validation/validator.js +0 -32
- package/esm/xstyledProps/constants.js +0 -16
- package/esm/xstyledProps/index.js +0 -2
- package/esm/xstyledProps/useGetXstyledProps.js +0 -23
- package/esm/xstyledProps/xstyledPropTypes.js +0 -71
- package/types/defaultProps/index.d.ts +0 -1
- package/types/defaultProps/useMemoMergePropsWithDefault.d.ts +0 -1
- package/types/getProps/index.d.ts +0 -2
- package/types/globalProps/constants.d.ts +0 -3
- package/types/globalProps/globalAttributesPropTypes.d.ts +0 -363
- package/types/globalProps/index.d.ts +0 -2
- package/types/globalProps/useGetGlobalAttributes.d.ts +0 -4
- package/types/index.d.ts +0 -6
- package/types/propTypes/PropTypes.d.ts +0 -3
- package/types/propTypes/customPropTypes.d.ts +0 -2
- package/types/propTypes/describe.d.ts +0 -3
- package/types/propTypes/describeConversions.d.ts +0 -3
- package/types/propTypes/describeGuards.d.ts +0 -9
- package/types/propTypes/index.d.ts +0 -3
- package/types/propTypes/toTypescript.d.ts +0 -3
- package/types/propTypes/types.d.ts +0 -99
- package/types/tests/globalProps/TestComponent.d.ts +0 -1
- package/types/tests/globalProps/globalAttributes.test.d.ts +0 -1
- package/types/tests/validation/any.validation.test.d.ts +0 -1
- package/types/tests/validation/array.validation.test.d.ts +0 -1
- package/types/tests/validation/boolean.validation.test.d.ts +0 -1
- package/types/tests/validation/function.validation.test.d.ts +0 -1
- package/types/tests/validation/number.validation.test.d.ts +0 -1
- package/types/tests/validation/object.validation.test.d.ts +0 -1
- package/types/tests/validation/schema.validation.test.d.ts +0 -1
- package/types/tests/validation/string.validation.test.d.ts +0 -1
- package/types/tests/validation/test.schema.d.ts +0 -1
- package/types/tests/validation/union.validation.test.d.ts +0 -1
- package/types/validation/errorTemplates.d.ts +0 -2
- package/types/validation/index.d.ts +0 -3
- package/types/validation/typescriptGuards.d.ts +0 -12
- package/types/validation/typescriptParsers.d.ts +0 -1
- package/types/validation/typescriptValidator.d.ts +0 -15
- package/types/validation/validator.d.ts +0 -1
- package/types/xstyledProps/constants.d.ts +0 -2
- package/types/xstyledProps/index.d.ts +0 -2
- package/types/xstyledProps/useGetXstyledProps.d.ts +0 -5
- package/types/xstyledProps/xstyledPropTypes.d.ts +0 -57
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import { PropTypes } from "../propTypes";
|
|
3
|
+
const xstyledPropTypes = {
|
|
4
|
+
margin: PropTypes.any.description("Applies to the root container. For more info read xstyled docs").xstyled(),
|
|
5
|
+
m: PropTypes.any.description("Applies to the root container. For more info read xstyled docs").xstyled(),
|
|
6
|
+
marginTop: PropTypes.any.description("Applies to the root container. For more info read xstyled docs").xstyled(),
|
|
7
|
+
mt: PropTypes.any.description("Applies to the root container. For more info read xstyled docs").xstyled(),
|
|
8
|
+
marginRight: PropTypes.any.description("Applies to the root container. For more info read xstyled docs").xstyled(),
|
|
9
|
+
mr: PropTypes.any.description("Applies to the root container. For more info read xstyled docs").xstyled(),
|
|
10
|
+
marginBottom: PropTypes.any.description("Applies to the root container. For more info read xstyled docs").xstyled(),
|
|
11
|
+
mb: PropTypes.any.description("Applies to the root container. For more info read xstyled docs").xstyled(),
|
|
12
|
+
marginLeft: PropTypes.any.description("Applies to the root container. For more info read xstyled docs").xstyled(),
|
|
13
|
+
ml: PropTypes.any.description("Applies to the root container. For more info read xstyled docs").xstyled(),
|
|
14
|
+
mx: PropTypes.any.description("Applies to the root container. For more info read xstyled docs").xstyled(),
|
|
15
|
+
my: PropTypes.any.description("Applies to the root container. For more info read xstyled docs").xstyled(),
|
|
16
|
+
padding: PropTypes.any.description("Applies to the root container. For more info read xstyled docs").xstyled(),
|
|
17
|
+
p: PropTypes.any.description("Applies to the root container. For more info read xstyled docs").xstyled(),
|
|
18
|
+
paddingTop: PropTypes.any.description("Applies to the root container. For more info read xstyled docs").xstyled(),
|
|
19
|
+
pt: PropTypes.any.description("Applies to the root container. For more info read xstyled docs").xstyled(),
|
|
20
|
+
paddingRight: PropTypes.any.description("Applies to the root container. For more info read xstyled docs").xstyled(),
|
|
21
|
+
pr: PropTypes.any.description("Applies to the root container. For more info read xstyled docs").xstyled(),
|
|
22
|
+
paddingBottom: PropTypes.any.description("Applies to the root container. For more info read xstyled docs").xstyled(),
|
|
23
|
+
pb: PropTypes.any.description("Applies to the root container. For more info read xstyled docs").xstyled(),
|
|
24
|
+
paddingLeft: PropTypes.any.description("Applies to the root container. For more info read xstyled docs").xstyled(),
|
|
25
|
+
pl: PropTypes.any.description("Applies to the root container. For more info read xstyled docs").xstyled(),
|
|
26
|
+
px: PropTypes.any.description("Applies to the root container. For more info read xstyled docs").xstyled(),
|
|
27
|
+
py: PropTypes.any.description("Applies to the root container. For more info read xstyled docs").xstyled(),
|
|
28
|
+
spaceY: PropTypes.any.description("Applies to the root container. For more info read xstyled docs").xstyled(),
|
|
29
|
+
spaceX: PropTypes.any.description("Applies to the root container. For more info read xstyled docs").xstyled(),
|
|
30
|
+
spaceXReverse: PropTypes.any.description("Applies to the root container. For more info read xstyled docs").xstyled(),
|
|
31
|
+
spaceYReverse: PropTypes.any.description("Applies to the root container. For more info read xstyled docs").xstyled(),
|
|
32
|
+
w: PropTypes.any.description("Applies to the root container. For more info read xstyled docs").xstyled(),
|
|
33
|
+
maxWidth: PropTypes.any.description("Applies to the root container. For more info read xstyled docs").xstyled(),
|
|
34
|
+
maxW: PropTypes.any.description("Applies to the root container. For more info read xstyled docs").xstyled(),
|
|
35
|
+
minWidth: PropTypes.any.description("Applies to the root container. For more info read xstyled docs").xstyled(),
|
|
36
|
+
minW: PropTypes.any.description("Applies to the root container. For more info read xstyled docs").xstyled(),
|
|
37
|
+
h: PropTypes.any.description("Applies to the root container. For more info read xstyled docs").xstyled(),
|
|
38
|
+
maxHeight: PropTypes.any.description("Applies to the root container. For more info read xstyled docs").xstyled(),
|
|
39
|
+
maxH: PropTypes.any.description("Applies to the root container. For more info read xstyled docs").xstyled(),
|
|
40
|
+
minHeight: PropTypes.any.description("Applies to the root container. For more info read xstyled docs").xstyled(),
|
|
41
|
+
minH: PropTypes.any.description("Applies to the root container. For more info read xstyled docs").xstyled(),
|
|
42
|
+
maskSize: PropTypes.any.description("Applies to the root container. For more info read xstyled docs").xstyled(),
|
|
43
|
+
display: PropTypes.any.description("Applies to the root container. For more info read xstyled docs").xstyled(),
|
|
44
|
+
float: PropTypes.any.description("Applies to the root container. For more info read xstyled docs").xstyled(),
|
|
45
|
+
boxSizing: PropTypes.any.description("Applies to the root container. For more info read xstyled docs").xstyled(),
|
|
46
|
+
container: PropTypes.any.description("Applies to the root container. For more info read xstyled docs").xstyled(),
|
|
47
|
+
overflow: PropTypes.any.description("Applies to the root container. For more info read xstyled docs").xstyled(),
|
|
48
|
+
overflowX: PropTypes.any.description("Applies to the root container. For more info read xstyled docs").xstyled(),
|
|
49
|
+
overflowY: PropTypes.any.description("Applies to the root container. For more info read xstyled docs").xstyled(),
|
|
50
|
+
zIndex: PropTypes.any.description("Applies to the root container. For more info read xstyled docs").xstyled(),
|
|
51
|
+
position: PropTypes.any.description("Applies to the root container. For more info read xstyled docs").xstyled(),
|
|
52
|
+
top: PropTypes.any.description("Applies to the root container. For more info read xstyled docs").xstyled(),
|
|
53
|
+
right: PropTypes.any.description("Applies to the root container. For more info read xstyled docs").xstyled(),
|
|
54
|
+
bottom: PropTypes.any.description("Applies to the root container. For more info read xstyled docs").xstyled(),
|
|
55
|
+
left: PropTypes.any.description("Applies to the root container. For more info read xstyled docs").xstyled(),
|
|
56
|
+
visibility: PropTypes.any.description("Applies to the root container. For more info read xstyled docs").xstyled(),
|
|
57
|
+
overscrollBehavior: PropTypes.any.description("Applies to the root container. For more info read xstyled docs").xstyled(),
|
|
58
|
+
objectFit: PropTypes.any.description("Applies to the root container. For more info read xstyled docs").xstyled()
|
|
59
|
+
};
|
|
60
|
+
export {
|
|
61
|
+
xstyledPropTypes
|
|
62
|
+
};
|
|
63
|
+
//# sourceMappingURL=xstyledPropTypes.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../../../scripts/build/transpile/react-shim.js", "../../../src/xstyledProps/xstyledPropTypes.ts"],
|
|
4
|
+
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import { PropTypes } from '../propTypes';\n\nexport const xstyledPropTypes = {\n margin: PropTypes.any.description('Applies to the root container. For more info read xstyled docs').xstyled(),\n m: PropTypes.any.description('Applies to the root container. For more info read xstyled docs').xstyled(),\n marginTop: PropTypes.any.description('Applies to the root container. For more info read xstyled docs').xstyled(),\n mt: PropTypes.any.description('Applies to the root container. For more info read xstyled docs').xstyled(),\n marginRight: PropTypes.any.description('Applies to the root container. For more info read xstyled docs').xstyled(),\n mr: PropTypes.any.description('Applies to the root container. For more info read xstyled docs').xstyled(),\n marginBottom: PropTypes.any.description('Applies to the root container. For more info read xstyled docs').xstyled(),\n mb: PropTypes.any.description('Applies to the root container. For more info read xstyled docs').xstyled(),\n marginLeft: PropTypes.any.description('Applies to the root container. For more info read xstyled docs').xstyled(),\n ml: PropTypes.any.description('Applies to the root container. For more info read xstyled docs').xstyled(),\n mx: PropTypes.any.description('Applies to the root container. For more info read xstyled docs').xstyled(),\n my: PropTypes.any.description('Applies to the root container. For more info read xstyled docs').xstyled(),\n padding: PropTypes.any.description('Applies to the root container. For more info read xstyled docs').xstyled(),\n p: PropTypes.any.description('Applies to the root container. For more info read xstyled docs').xstyled(),\n paddingTop: PropTypes.any.description('Applies to the root container. For more info read xstyled docs').xstyled(),\n pt: PropTypes.any.description('Applies to the root container. For more info read xstyled docs').xstyled(),\n paddingRight: PropTypes.any.description('Applies to the root container. For more info read xstyled docs').xstyled(),\n pr: PropTypes.any.description('Applies to the root container. For more info read xstyled docs').xstyled(),\n paddingBottom: PropTypes.any.description('Applies to the root container. For more info read xstyled docs').xstyled(),\n pb: PropTypes.any.description('Applies to the root container. For more info read xstyled docs').xstyled(),\n paddingLeft: PropTypes.any.description('Applies to the root container. For more info read xstyled docs').xstyled(),\n pl: PropTypes.any.description('Applies to the root container. For more info read xstyled docs').xstyled(),\n px: PropTypes.any.description('Applies to the root container. For more info read xstyled docs').xstyled(),\n py: PropTypes.any.description('Applies to the root container. For more info read xstyled docs').xstyled(),\n spaceY: PropTypes.any.description('Applies to the root container. For more info read xstyled docs').xstyled(),\n spaceX: PropTypes.any.description('Applies to the root container. For more info read xstyled docs').xstyled(),\n spaceXReverse: PropTypes.any.description('Applies to the root container. For more info read xstyled docs').xstyled(),\n spaceYReverse: PropTypes.any.description('Applies to the root container. For more info read xstyled docs').xstyled(),\n w: PropTypes.any.description('Applies to the root container. For more info read xstyled docs').xstyled(),\n maxWidth: PropTypes.any.description('Applies to the root container. For more info read xstyled docs').xstyled(),\n maxW: PropTypes.any.description('Applies to the root container. For more info read xstyled docs').xstyled(),\n minWidth: PropTypes.any.description('Applies to the root container. For more info read xstyled docs').xstyled(),\n minW: PropTypes.any.description('Applies to the root container. For more info read xstyled docs').xstyled(),\n h: PropTypes.any.description('Applies to the root container. For more info read xstyled docs').xstyled(),\n maxHeight: PropTypes.any.description('Applies to the root container. For more info read xstyled docs').xstyled(),\n maxH: PropTypes.any.description('Applies to the root container. For more info read xstyled docs').xstyled(),\n minHeight: PropTypes.any.description('Applies to the root container. For more info read xstyled docs').xstyled(),\n minH: PropTypes.any.description('Applies to the root container. For more info read xstyled docs').xstyled(),\n maskSize: PropTypes.any.description('Applies to the root container. For more info read xstyled docs').xstyled(),\n display: PropTypes.any.description('Applies to the root container. For more info read xstyled docs').xstyled(),\n float: PropTypes.any.description('Applies to the root container. For more info read xstyled docs').xstyled(),\n boxSizing: PropTypes.any.description('Applies to the root container. For more info read xstyled docs').xstyled(),\n container: PropTypes.any.description('Applies to the root container. For more info read xstyled docs').xstyled(),\n overflow: PropTypes.any.description('Applies to the root container. For more info read xstyled docs').xstyled(),\n overflowX: PropTypes.any.description('Applies to the root container. For more info read xstyled docs').xstyled(),\n overflowY: PropTypes.any.description('Applies to the root container. For more info read xstyled docs').xstyled(),\n zIndex: PropTypes.any.description('Applies to the root container. For more info read xstyled docs').xstyled(),\n position: PropTypes.any.description('Applies to the root container. For more info read xstyled docs').xstyled(),\n top: PropTypes.any.description('Applies to the root container. For more info read xstyled docs').xstyled(),\n right: PropTypes.any.description('Applies to the root container. For more info read xstyled docs').xstyled(),\n bottom: PropTypes.any.description('Applies to the root container. For more info read xstyled docs').xstyled(),\n left: PropTypes.any.description('Applies to the root container. For more info read xstyled docs').xstyled(),\n visibility: PropTypes.any.description('Applies to the root container. For more info read xstyled docs').xstyled(),\n overscrollBehavior: PropTypes.any\n .description('Applies to the root container. For more info read xstyled docs')\n .xstyled(),\n objectFit: PropTypes.any.description('Applies to the root container. For more info read xstyled docs').xstyled(),\n};\n"],
|
|
5
|
+
"mappings": "AAAA;ACAA;AAEO,MAAM,mBAAmB;AAAA,EAC9B,QAAQ,UAAU,IAAI,YAAY,kEAAkE;AAAA,EACpG,GAAG,UAAU,IAAI,YAAY,kEAAkE;AAAA,EAC/F,WAAW,UAAU,IAAI,YAAY,kEAAkE;AAAA,EACvG,IAAI,UAAU,IAAI,YAAY,kEAAkE;AAAA,EAChG,aAAa,UAAU,IAAI,YAAY,kEAAkE;AAAA,EACzG,IAAI,UAAU,IAAI,YAAY,kEAAkE;AAAA,EAChG,cAAc,UAAU,IAAI,YAAY,kEAAkE;AAAA,EAC1G,IAAI,UAAU,IAAI,YAAY,kEAAkE;AAAA,EAChG,YAAY,UAAU,IAAI,YAAY,kEAAkE;AAAA,EACxG,IAAI,UAAU,IAAI,YAAY,kEAAkE;AAAA,EAChG,IAAI,UAAU,IAAI,YAAY,kEAAkE;AAAA,EAChG,IAAI,UAAU,IAAI,YAAY,kEAAkE;AAAA,EAChG,SAAS,UAAU,IAAI,YAAY,kEAAkE;AAAA,EACrG,GAAG,UAAU,IAAI,YAAY,kEAAkE;AAAA,EAC/F,YAAY,UAAU,IAAI,YAAY,kEAAkE;AAAA,EACxG,IAAI,UAAU,IAAI,YAAY,kEAAkE;AAAA,EAChG,cAAc,UAAU,IAAI,YAAY,kEAAkE;AAAA,EAC1G,IAAI,UAAU,IAAI,YAAY,kEAAkE;AAAA,EAChG,eAAe,UAAU,IAAI,YAAY,kEAAkE;AAAA,EAC3G,IAAI,UAAU,IAAI,YAAY,kEAAkE;AAAA,EAChG,aAAa,UAAU,IAAI,YAAY,kEAAkE;AAAA,EACzG,IAAI,UAAU,IAAI,YAAY,kEAAkE;AAAA,EAChG,IAAI,UAAU,IAAI,YAAY,kEAAkE;AAAA,EAChG,IAAI,UAAU,IAAI,YAAY,kEAAkE;AAAA,EAChG,QAAQ,UAAU,IAAI,YAAY,kEAAkE;AAAA,EACpG,QAAQ,UAAU,IAAI,YAAY,kEAAkE;AAAA,EACpG,eAAe,UAAU,IAAI,YAAY,kEAAkE;AAAA,EAC3G,eAAe,UAAU,IAAI,YAAY,kEAAkE;AAAA,EAC3G,GAAG,UAAU,IAAI,YAAY,kEAAkE;AAAA,EAC/F,UAAU,UAAU,IAAI,YAAY,kEAAkE;AAAA,EACtG,MAAM,UAAU,IAAI,YAAY,kEAAkE;AAAA,EAClG,UAAU,UAAU,IAAI,YAAY,kEAAkE;AAAA,EACtG,MAAM,UAAU,IAAI,YAAY,kEAAkE;AAAA,EAClG,GAAG,UAAU,IAAI,YAAY,kEAAkE;AAAA,EAC/F,WAAW,UAAU,IAAI,YAAY,kEAAkE;AAAA,EACvG,MAAM,UAAU,IAAI,YAAY,kEAAkE;AAAA,EAClG,WAAW,UAAU,IAAI,YAAY,kEAAkE;AAAA,EACvG,MAAM,UAAU,IAAI,YAAY,kEAAkE;AAAA,EAClG,UAAU,UAAU,IAAI,YAAY,kEAAkE;AAAA,EACtG,SAAS,UAAU,IAAI,YAAY,kEAAkE;AAAA,EACrG,OAAO,UAAU,IAAI,YAAY,kEAAkE;AAAA,EACnG,WAAW,UAAU,IAAI,YAAY,kEAAkE;AAAA,EACvG,WAAW,UAAU,IAAI,YAAY,kEAAkE;AAAA,EACvG,UAAU,UAAU,IAAI,YAAY,kEAAkE;AAAA,EACtG,WAAW,UAAU,IAAI,YAAY,kEAAkE;AAAA,EACvG,WAAW,UAAU,IAAI,YAAY,kEAAkE;AAAA,EACvG,QAAQ,UAAU,IAAI,YAAY,kEAAkE;AAAA,EACpG,UAAU,UAAU,IAAI,YAAY,kEAAkE;AAAA,EACtG,KAAK,UAAU,IAAI,YAAY,kEAAkE;AAAA,EACjG,OAAO,UAAU,IAAI,YAAY,kEAAkE;AAAA,EACnG,QAAQ,UAAU,IAAI,YAAY,kEAAkE;AAAA,EACpG,MAAM,UAAU,IAAI,YAAY,kEAAkE;AAAA,EAClG,YAAY,UAAU,IAAI,YAAY,kEAAkE;AAAA,EACxG,oBAAoB,UAAU,IAC3B,YAAY,kEACZ;AAAA,EACH,WAAW,UAAU,IAAI,YAAY,kEAAkE;AAAA;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
package/package.json
CHANGED
|
@@ -1,123 +1,110 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@elliemae/ds-props-helpers",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "3.0.0-alpha.2",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "ICE MT - Dimsum - Props Helpers",
|
|
6
|
-
"
|
|
7
|
-
|
|
8
|
-
|
|
6
|
+
"files": [
|
|
7
|
+
"dist"
|
|
8
|
+
],
|
|
9
|
+
"module": "./dist/esm/index.js",
|
|
10
|
+
"main": "./dist/cjs/index.js",
|
|
11
|
+
"types": "./dist/types/index.d.ts",
|
|
9
12
|
"exports": {
|
|
10
13
|
".": {
|
|
11
|
-
"import": "./esm/index.js",
|
|
12
|
-
"require": "./cjs/index.js"
|
|
13
|
-
},
|
|
14
|
-
"./xstyledProps/xstyledPropTypes": {
|
|
15
|
-
"import": "./esm/xstyledProps/xstyledPropTypes.js",
|
|
16
|
-
"require": "./cjs/xstyledProps/xstyledPropTypes.js"
|
|
17
|
-
},
|
|
18
|
-
"./xstyledProps/useGetXstyledProps": {
|
|
19
|
-
"import": "./esm/xstyledProps/useGetXstyledProps.js",
|
|
20
|
-
"require": "./cjs/xstyledProps/useGetXstyledProps.js"
|
|
21
|
-
},
|
|
22
|
-
"./xstyledProps": {
|
|
23
|
-
"import": "./esm/xstyledProps/index.js",
|
|
24
|
-
"require": "./cjs/xstyledProps/index.js"
|
|
25
|
-
},
|
|
26
|
-
"./xstyledProps/constants": {
|
|
27
|
-
"import": "./esm/xstyledProps/constants.js",
|
|
28
|
-
"require": "./cjs/xstyledProps/constants.js"
|
|
14
|
+
"import": "./dist/esm/index.js",
|
|
15
|
+
"require": "./dist/cjs/index.js"
|
|
29
16
|
},
|
|
30
17
|
"./validation/validator": {
|
|
31
|
-
"import": "./esm/validation/validator.js",
|
|
32
|
-
"require": "./cjs/validation/validator.js"
|
|
18
|
+
"import": "./dist/esm/validation/validator.js",
|
|
19
|
+
"require": "./dist/cjs/validation/validator.js"
|
|
33
20
|
},
|
|
34
21
|
"./validation/typescriptValidator": {
|
|
35
|
-
"import": "./esm/validation/typescriptValidator.js",
|
|
36
|
-
"require": "./cjs/validation/typescriptValidator.js"
|
|
22
|
+
"import": "./dist/esm/validation/typescriptValidator.js",
|
|
23
|
+
"require": "./dist/cjs/validation/typescriptValidator.js"
|
|
37
24
|
},
|
|
38
25
|
"./validation/typescriptParsers": {
|
|
39
|
-
"import": "./esm/validation/typescriptParsers.js",
|
|
40
|
-
"require": "./cjs/validation/typescriptParsers.js"
|
|
26
|
+
"import": "./dist/esm/validation/typescriptParsers.js",
|
|
27
|
+
"require": "./dist/cjs/validation/typescriptParsers.js"
|
|
41
28
|
},
|
|
42
29
|
"./validation/typescriptGuards": {
|
|
43
|
-
"import": "./esm/validation/typescriptGuards.js",
|
|
44
|
-
"require": "./cjs/validation/typescriptGuards.js"
|
|
30
|
+
"import": "./dist/esm/validation/typescriptGuards.js",
|
|
31
|
+
"require": "./dist/cjs/validation/typescriptGuards.js"
|
|
45
32
|
},
|
|
46
33
|
"./validation": {
|
|
47
|
-
"import": "./esm/validation/index.js",
|
|
48
|
-
"require": "./cjs/validation/index.js"
|
|
34
|
+
"import": "./dist/esm/validation/index.js",
|
|
35
|
+
"require": "./dist/cjs/validation/index.js"
|
|
49
36
|
},
|
|
50
37
|
"./validation/errorTemplates": {
|
|
51
|
-
"import": "./esm/validation/errorTemplates.js",
|
|
52
|
-
"require": "./cjs/validation/errorTemplates.js"
|
|
38
|
+
"import": "./dist/esm/validation/errorTemplates.js",
|
|
39
|
+
"require": "./dist/cjs/validation/errorTemplates.js"
|
|
53
40
|
},
|
|
54
41
|
"./tests/validation/test.schema": {
|
|
55
|
-
"import": "./esm/tests/validation/test.schema.js",
|
|
56
|
-
"require": "./cjs/tests/validation/test.schema.js"
|
|
42
|
+
"import": "./dist/esm/tests/validation/test.schema.js",
|
|
43
|
+
"require": "./dist/cjs/tests/validation/test.schema.js"
|
|
57
44
|
},
|
|
58
45
|
"./tests/globalProps/TestComponent": {
|
|
59
|
-
"import": "./esm/tests/globalProps/TestComponent.js",
|
|
60
|
-
"require": "./cjs/tests/globalProps/TestComponent.js"
|
|
46
|
+
"import": "./dist/esm/tests/globalProps/TestComponent.js",
|
|
47
|
+
"require": "./dist/cjs/tests/globalProps/TestComponent.js"
|
|
61
48
|
},
|
|
62
49
|
"./propTypes/types": {
|
|
63
|
-
"import": "./esm/propTypes/types.js",
|
|
64
|
-
"require": "./cjs/propTypes/types.js"
|
|
50
|
+
"import": "./dist/esm/propTypes/types.js",
|
|
51
|
+
"require": "./dist/cjs/propTypes/types.js"
|
|
65
52
|
},
|
|
66
53
|
"./propTypes/toTypescript": {
|
|
67
|
-
"import": "./esm/propTypes/toTypescript.js",
|
|
68
|
-
"require": "./cjs/propTypes/toTypescript.js"
|
|
54
|
+
"import": "./dist/esm/propTypes/toTypescript.js",
|
|
55
|
+
"require": "./dist/cjs/propTypes/toTypescript.js"
|
|
69
56
|
},
|
|
70
57
|
"./propTypes/PropTypes": {
|
|
71
|
-
"import": "./esm/propTypes/PropTypes.js",
|
|
72
|
-
"require": "./cjs/propTypes/PropTypes.js"
|
|
58
|
+
"import": "./dist/esm/propTypes/PropTypes.js",
|
|
59
|
+
"require": "./dist/cjs/propTypes/PropTypes.js"
|
|
73
60
|
},
|
|
74
61
|
"./propTypes": {
|
|
75
|
-
"import": "./esm/propTypes/index.js",
|
|
76
|
-
"require": "./cjs/propTypes/index.js"
|
|
62
|
+
"import": "./dist/esm/propTypes/index.js",
|
|
63
|
+
"require": "./dist/cjs/propTypes/index.js"
|
|
77
64
|
},
|
|
78
65
|
"./propTypes/describeGuards": {
|
|
79
|
-
"import": "./esm/propTypes/describeGuards.js",
|
|
80
|
-
"require": "./cjs/propTypes/describeGuards.js"
|
|
66
|
+
"import": "./dist/esm/propTypes/describeGuards.js",
|
|
67
|
+
"require": "./dist/cjs/propTypes/describeGuards.js"
|
|
81
68
|
},
|
|
82
69
|
"./propTypes/describeConversions": {
|
|
83
|
-
"import": "./esm/propTypes/describeConversions.js",
|
|
84
|
-
"require": "./cjs/propTypes/describeConversions.js"
|
|
70
|
+
"import": "./dist/esm/propTypes/describeConversions.js",
|
|
71
|
+
"require": "./dist/cjs/propTypes/describeConversions.js"
|
|
85
72
|
},
|
|
86
73
|
"./propTypes/describe": {
|
|
87
|
-
"import": "./esm/propTypes/describe.js",
|
|
88
|
-
"require": "./cjs/propTypes/describe.js"
|
|
74
|
+
"import": "./dist/esm/propTypes/describe.js",
|
|
75
|
+
"require": "./dist/cjs/propTypes/describe.js"
|
|
89
76
|
},
|
|
90
77
|
"./propTypes/customPropTypes": {
|
|
91
|
-
"import": "./esm/propTypes/customPropTypes.js",
|
|
92
|
-
"require": "./cjs/propTypes/customPropTypes.js"
|
|
78
|
+
"import": "./dist/esm/propTypes/customPropTypes.js",
|
|
79
|
+
"require": "./dist/cjs/propTypes/customPropTypes.js"
|
|
93
80
|
},
|
|
94
81
|
"./globalProps/useGetGlobalAttributes": {
|
|
95
|
-
"import": "./esm/globalProps/useGetGlobalAttributes.js",
|
|
96
|
-
"require": "./cjs/globalProps/useGetGlobalAttributes.js"
|
|
82
|
+
"import": "./dist/esm/globalProps/useGetGlobalAttributes.js",
|
|
83
|
+
"require": "./dist/cjs/globalProps/useGetGlobalAttributes.js"
|
|
97
84
|
},
|
|
98
85
|
"./globalProps": {
|
|
99
|
-
"import": "./esm/globalProps/index.js",
|
|
100
|
-
"require": "./cjs/globalProps/index.js"
|
|
86
|
+
"import": "./dist/esm/globalProps/index.js",
|
|
87
|
+
"require": "./dist/cjs/globalProps/index.js"
|
|
101
88
|
},
|
|
102
89
|
"./globalProps/globalAttributesPropTypes": {
|
|
103
|
-
"import": "./esm/globalProps/globalAttributesPropTypes.js",
|
|
104
|
-
"require": "./cjs/globalProps/globalAttributesPropTypes.js"
|
|
90
|
+
"import": "./dist/esm/globalProps/globalAttributesPropTypes.js",
|
|
91
|
+
"require": "./dist/cjs/globalProps/globalAttributesPropTypes.js"
|
|
105
92
|
},
|
|
106
93
|
"./globalProps/constants": {
|
|
107
|
-
"import": "./esm/globalProps/constants.js",
|
|
108
|
-
"require": "./cjs/globalProps/constants.js"
|
|
94
|
+
"import": "./dist/esm/globalProps/constants.js",
|
|
95
|
+
"require": "./dist/cjs/globalProps/constants.js"
|
|
109
96
|
},
|
|
110
97
|
"./getProps": {
|
|
111
|
-
"import": "./esm/getProps/index.js",
|
|
112
|
-
"require": "./cjs/getProps/index.js"
|
|
98
|
+
"import": "./dist/esm/getProps/index.js",
|
|
99
|
+
"require": "./dist/cjs/getProps/index.js"
|
|
113
100
|
},
|
|
114
101
|
"./defaultProps/useMemoMergePropsWithDefault": {
|
|
115
|
-
"import": "./esm/defaultProps/useMemoMergePropsWithDefault.js",
|
|
116
|
-
"require": "./cjs/defaultProps/useMemoMergePropsWithDefault.js"
|
|
102
|
+
"import": "./dist/esm/defaultProps/useMemoMergePropsWithDefault.js",
|
|
103
|
+
"require": "./dist/cjs/defaultProps/useMemoMergePropsWithDefault.js"
|
|
117
104
|
},
|
|
118
105
|
"./defaultProps": {
|
|
119
|
-
"import": "./esm/defaultProps/index.js",
|
|
120
|
-
"require": "./cjs/defaultProps/index.js"
|
|
106
|
+
"import": "./dist/esm/defaultProps/index.js",
|
|
107
|
+
"require": "./dist/cjs/defaultProps/index.js"
|
|
121
108
|
}
|
|
122
109
|
},
|
|
123
110
|
"sideEffects": [
|
|
@@ -129,24 +116,22 @@
|
|
|
129
116
|
"url": "https://git.elliemae.io/platform-ui/dimsum.git"
|
|
130
117
|
},
|
|
131
118
|
"engines": {
|
|
132
|
-
"
|
|
133
|
-
"node": ">=
|
|
119
|
+
"pnpm": ">=6",
|
|
120
|
+
"node": ">=16"
|
|
134
121
|
},
|
|
135
|
-
"
|
|
136
|
-
|
|
137
|
-
"
|
|
138
|
-
"
|
|
139
|
-
"
|
|
122
|
+
"author": "ICE MT",
|
|
123
|
+
"jestSonar": {
|
|
124
|
+
"sonar56x": true,
|
|
125
|
+
"reportPath": "reports",
|
|
126
|
+
"reportFile": "tests.xml",
|
|
127
|
+
"indent": 4
|
|
140
128
|
},
|
|
141
129
|
"dependencies": {
|
|
142
|
-
"@xstyled/styled-components": "~3.1.1",
|
|
143
130
|
"fast-deep-equal": "~3.1.3",
|
|
144
|
-
"prop-types": "~15.7.2",
|
|
145
131
|
"react-desc": "^4.1.3"
|
|
146
132
|
},
|
|
147
133
|
"devDependencies": {
|
|
148
|
-
"@testing-library/jest-dom": "~5.15.
|
|
149
|
-
"@testing-library/react": "~12.1.2"
|
|
134
|
+
"@testing-library/jest-dom": "~5.15.1"
|
|
150
135
|
},
|
|
151
136
|
"peerDependencies": {
|
|
152
137
|
"react": "~17.0.2",
|
|
@@ -154,7 +139,13 @@
|
|
|
154
139
|
},
|
|
155
140
|
"publishConfig": {
|
|
156
141
|
"access": "public",
|
|
157
|
-
"
|
|
158
|
-
|
|
142
|
+
"typeSafety": false
|
|
143
|
+
},
|
|
144
|
+
"scripts": {
|
|
145
|
+
"dev": "cross-env NODE_ENV=development node ../../scripts/build/build.mjs --watch",
|
|
146
|
+
"test": "node ../../scripts/testing/test.mjs",
|
|
147
|
+
"lint": "node ../../scripts/lint.mjs",
|
|
148
|
+
"dts": "node ../../scripts/dts.mjs",
|
|
149
|
+
"build": "cross-env NODE_ENV=production node ../../scripts/build/build.mjs"
|
|
159
150
|
}
|
|
160
151
|
}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
-
|
|
5
|
-
var useMemoMergePropsWithDefault = require('./useMemoMergePropsWithDefault.js');
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
exports.useMemoMergePropsWithDefault = useMemoMergePropsWithDefault.useMemoMergePropsWithDefault;
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
-
|
|
5
|
-
require('core-js/modules/esnext.async-iterator.filter.js');
|
|
6
|
-
require('core-js/modules/esnext.iterator.constructor.js');
|
|
7
|
-
require('core-js/modules/esnext.iterator.filter.js');
|
|
8
|
-
require('core-js/modules/esnext.async-iterator.for-each.js');
|
|
9
|
-
require('core-js/modules/esnext.iterator.for-each.js');
|
|
10
|
-
var _defineProperty = require('@babel/runtime/helpers/defineProperty');
|
|
11
|
-
var react = require('react');
|
|
12
|
-
var deepequal = require('fast-deep-equal/react');
|
|
13
|
-
|
|
14
|
-
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
15
|
-
|
|
16
|
-
var _defineProperty__default = /*#__PURE__*/_interopDefaultLegacy(_defineProperty);
|
|
17
|
-
var deepequal__default = /*#__PURE__*/_interopDefaultLegacy(deepequal);
|
|
18
|
-
|
|
19
|
-
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
20
|
-
|
|
21
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty__default["default"](target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
22
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
23
|
-
|
|
24
|
-
const useMemoCompare = (next, compare) => {
|
|
25
|
-
// Ref for storing previous value
|
|
26
|
-
const previousRef = react.useRef(next);
|
|
27
|
-
const previous = previousRef.current; // Pass previous and next value to compare function
|
|
28
|
-
// to determine whether to consider them equal.
|
|
29
|
-
|
|
30
|
-
const isEqual = compare(previous, next); // If not equal update previousRef to next value.
|
|
31
|
-
// We only update if not equal so that this hook continues to return
|
|
32
|
-
// the same old value if compare keeps returning true.
|
|
33
|
-
|
|
34
|
-
if (!isEqual) previousRef.current = next; // Finally, if equal then return the previous value
|
|
35
|
-
|
|
36
|
-
return isEqual ? previous : next;
|
|
37
|
-
}; // eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
const useMemoMergePropsWithDefault = function (props, defaultProps) {
|
|
41
|
-
let compare = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : deepequal__default["default"];
|
|
42
|
-
|
|
43
|
-
const mergedProps = _objectSpread(_objectSpread({}, defaultProps), props);
|
|
44
|
-
|
|
45
|
-
return useMemoCompare(mergedProps, compare);
|
|
46
|
-
};
|
|
47
|
-
|
|
48
|
-
exports.useMemoMergePropsWithDefault = useMemoMergePropsWithDefault;
|
package/cjs/getProps/index.js
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
-
|
|
5
|
-
require('core-js/modules/esnext.async-iterator.filter.js');
|
|
6
|
-
require('core-js/modules/esnext.iterator.constructor.js');
|
|
7
|
-
require('core-js/modules/esnext.iterator.filter.js');
|
|
8
|
-
require('core-js/modules/web.dom-collections.iterator.js');
|
|
9
|
-
|
|
10
|
-
const getAriaProps = props => Object.fromEntries(Object.entries(props).filter(_ref => {
|
|
11
|
-
let [key] = _ref;
|
|
12
|
-
return key.includes('aria-');
|
|
13
|
-
}));
|
|
14
|
-
const getDataProps = props => Object.fromEntries(Object.entries(props).filter(_ref2 => {
|
|
15
|
-
let [key] = _ref2;
|
|
16
|
-
return key.includes('data-');
|
|
17
|
-
}));
|
|
18
|
-
|
|
19
|
-
exports.getAriaProps = getAriaProps;
|
|
20
|
-
exports.getDataProps = getDataProps;
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
-
|
|
5
|
-
require('core-js/modules/esnext.async-iterator.map.js');
|
|
6
|
-
require('core-js/modules/esnext.iterator.map.js');
|
|
7
|
-
require('core-js/modules/web.dom-collections.iterator.js');
|
|
8
|
-
|
|
9
|
-
/* eslint-disable max-lines */
|
|
10
|
-
const ariaAttributes = ['aria-activedescendant', 'aria-atomic', 'aria-autocomplete', 'aria-busy', 'aria-checked', 'aria-colcount', 'aria-colindex', 'aria-colspan', 'aria-controls', 'aria-current', 'aria-describedby', 'aria-details', 'aria-disabled', 'aria-dropeffect', 'aria-errormessage', 'aria-expanded', 'aria-flowto', 'aria-grabbed', 'aria-haspopup', 'aria-hidden', 'aria-invalid', 'aria-keyshortcuts', 'aria-label', 'aria-labelledby', 'aria-level', 'aria-live', 'aria-modal', 'aria-multiline', 'aria-multiselectable', 'aria-orientation', 'aria-owns', 'aria-placeholder', 'aria-posinset', 'aria-pressed', 'aria-readonly', 'aria-relevant', 'aria-required', 'aria-roledescription', 'aria-rowcount', 'aria-rowindex', 'aria-rowspan', 'aria-selected', 'aria-setsize', 'aria-sort', 'aria-valuemax', 'aria-valuemin', 'aria-valuenow', 'aria-valuetext'];
|
|
11
|
-
const domAttributes = ['onCopy', 'onCopyCapture', 'onCut', 'onCutCapture', 'onPaste', 'onPasteCapture', 'onCompositionEnd', 'onCompositionEndCapture', 'onCompositionStart', 'onCompositionStartCapture', 'onCompositionUpdate', 'onCompositionUpdateCapture', 'onFocus', 'onFocusCapture', 'onBlur', 'onBlurCapture', 'onChange', 'onChangeCapture', 'onBeforeInput', 'onBeforeInputCapture', 'onInput', 'onInputCapture', 'onReset', 'onResetCapture', 'onSubmit', 'onSubmitCapture', 'onInvalid', 'onInvalidCapture', 'onLoad', 'onLoadCapture', 'onError', 'onErrorCapture', 'onKeyDown', 'onKeyDownCapture', 'onKeyPress', 'onKeyPressCapture', 'onKeyUp', 'onKeyUpCapture', 'onAbort', 'onAbortCapture', 'onCanPlay', 'onCanPlayCapture', 'onCanPlayThrough', 'onCanPlayThroughCapture', 'onDurationChange', 'onDurationChangeCapture', 'onEmptied', 'onEmptiedCapture', 'onEncrypted', 'onEncryptedCapture', 'onEnded', 'onEndedCapture', 'onLoadedData', 'onLoadedDataCapture', 'onLoadedMetadata', 'onLoadedMetadataCapture', 'onLoadStart', 'onLoadStartCapture', 'onPause', 'onPauseCapture', 'onPlay', 'onPlayCapture', 'onPlaying', 'onPlayingCapture', 'onProgress', 'onProgressCapture', 'onRateChange', 'onRateChangeCapture', 'onSeeked', 'onSeekedCapture', 'onSeeking', 'onSeekingCapture', 'onStalled', 'onStalledCapture', 'onSuspend', 'onSuspendCapture', 'onTimeUpdate', 'onTimeUpdateCapture', 'onVolumeChange', 'onVolumeChangeCapture', 'onWaiting', 'onWaitingCapture', 'onAuxClick', 'onAuxClickCapture', 'onClick', 'onClickCapture', 'onContextMenu', 'onContextMenuCapture', 'onDoubleClick', 'onDoubleClickCapture', 'onDrag', 'onDragCapture', 'onDragEnd', 'onDragEndCapture', 'onDragEnter', 'onDragEnterCapture', 'onDragExit', 'onDragExitCapture', 'onDragLeave', 'onDragLeaveCapture', 'onDragOver', 'onDragOverCapture', 'onDragStart', 'onDragStartCapture', 'onDrop', 'onDropCapture', 'onMouseDown', 'onMouseDownCapture', 'onMouseEnter', 'onMouseLeave', 'onMouseMove', 'onMouseMoveCapture', 'onMouseOut', 'onMouseOutCapture', 'onMouseOver', 'onMouseOverCapture', 'onMouseUp', 'onMouseUpCapture', 'onSelect', 'onSelectCapture', 'onTouchCancel', 'onTouchCancelCapture', 'onTouchEnd', 'onTouchEndCapture', 'onTouchMove', 'onTouchMoveCapture', 'onTouchStart', 'onTouchStartCapture', 'onPointerDown', 'onPointerDownCapture', 'onPointerMove', 'onPointerMoveCapture', 'onPointerUp', 'onPointerUpCapture', 'onPointerCancel', 'onPointerCancelCapture', 'onPointerEnter', 'onPointerEnterCapture', 'onPointerLeave', 'onPointerLeaveCapture', 'onPointerOver', 'onPointerOverCapture', 'onPointerOut', 'onPointerOutCapture', 'onGotPointerCapture', 'onGotPointerCaptureCapture', 'onLostPointerCapture', 'onLostPointerCaptureCapture', 'onScroll', 'onScrollCapture', 'onWheel', 'onWheelCapture', 'onAnimationStart', 'onAnimationStartCapture', 'onAnimationEnd', 'onAnimationEndCapture', 'onAnimationIteration', 'onAnimationIterationCapture', 'onTransitionEnd', 'onTransitionEndCapture'];
|
|
12
|
-
const htmlAttributes = ['about', 'accept', 'acceptCharset', 'accessKey', 'action', 'allowFullScreen', 'allowTransparency', 'alt', // 'as', This property causes trouble in TS. This is actually not an HTML Attribute, leaving it here for the record
|
|
13
|
-
'async', 'autoCapitalize', 'autoComplete', 'autoCorrect', 'autoFocus', 'autoPlay', 'autoSave', 'capture', 'cellPadding', 'cellSpacing', 'challenge', 'charSet', 'checked', 'cite', 'classID', 'className', 'color', 'cols', 'colSpan', 'content', 'contentEditable', 'contextMenu', 'controls', 'coords', 'crossOrigin', 'data', 'datatype', 'dateTime', 'default', 'defaultChecked', 'defaultValue', 'defer', 'dir', 'disabled', 'download', 'draggable', 'encType', 'form', 'formAction', 'formEncType', 'formMethod', 'formNoValidate', 'formTarget', 'frameBorder', 'headers', 'height', 'hidden', 'high', 'href', 'hrefLang', 'htmlFor', 'httpEquiv', 'id', 'inlist', 'inputMode', 'integrity', 'is', 'itemID', 'itemProp', 'itemRef', 'itemScope', 'itemType', 'keyParams', 'keyType', 'kind', 'label', 'lang', 'list', 'loop', 'low', 'manifest', 'marginHeight', 'marginWidth', 'max', 'maxLength', 'media', 'mediaGroup', 'method', 'min', 'minLength', 'multiple', 'muted', 'name', 'nonce', 'noValidate', 'open', 'optimum', 'pattern', 'placeholder', 'playsInline', 'poster', 'prefix', 'preload', 'property', 'radioGroup', 'readOnly', 'rel', 'required', 'resource', 'results', 'reversed', 'role', 'rows', 'rowSpan', 'sandbox', 'scope', 'scoped', 'scrolling', 'seamless', 'security', 'selected', 'shape', 'size', 'sizes', 'slot', 'span', 'spellCheck', 'src', 'srcDoc', 'srcLang', 'srcSet', 'start', 'step', 'style', 'summary', 'suppressContentEditableWarning', 'suppressHydrationWarning', 'tabIndex', 'target', 'title', 'translate', 'type', 'typeof', 'unselectable', 'useMap', 'value', 'vocab', 'width', 'wmode', 'wrap'];
|
|
14
|
-
const globalAttributes = Object.fromEntries([...ariaAttributes, ...domAttributes, ...htmlAttributes].map(entry => [entry, true]));
|
|
15
|
-
|
|
16
|
-
exports.globalAttributes = globalAttributes;
|