@elliemae/ds-legacy-form-layout-label 1.0.12 → 1.0.16
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/config/useFormLayoutLabel.js +2 -2
- package/dist/cjs/config/useFormLayoutLabel.js.map +2 -2
- package/dist/esm/config/useFormLayoutLabel.js +1 -1
- package/dist/esm/config/useFormLayoutLabel.js.map +1 -1
- package/dist/types/config/useFormLayoutLabel.d.ts +1 -2
- package/dist/types/config/useValidateProps.d.ts +0 -1
- package/dist/types/react-desc-prop-types.d.ts +1 -1
- package/dist/types/styled.d.ts +2 -9
- package/package.json +7 -7
|
@@ -33,14 +33,14 @@ __export(useFormLayoutLabel_exports, {
|
|
|
33
33
|
module.exports = __toCommonJS(useFormLayoutLabel_exports);
|
|
34
34
|
var React = __toESM(require("react"));
|
|
35
35
|
var import_react = __toESM(require("react"));
|
|
36
|
-
var
|
|
36
|
+
var import_lodash_es = require("lodash-es");
|
|
37
37
|
var import_ds_legacy_props_helpers = require("@elliemae/ds-legacy-props-helpers");
|
|
38
38
|
var import_react_desc_prop_types = require("../react-desc-prop-types.js");
|
|
39
39
|
var import_useValidateProps = require("./useValidateProps.js");
|
|
40
40
|
const useFormLayoutLabel = (propsFromUser) => {
|
|
41
41
|
const propsWithDefault = (0, import_ds_legacy_props_helpers.useMemoMergePropsWithDefault)(propsFromUser, import_react_desc_prop_types.defaultProps);
|
|
42
42
|
(0, import_useValidateProps.useValidateProps)(propsWithDefault, import_react_desc_prop_types.DSFormLayoutLabelPropTypes);
|
|
43
|
-
const globalProps = (0,
|
|
43
|
+
const globalProps = (0, import_lodash_es.omit)((0, import_ds_legacy_props_helpers.useGetGlobalAttributes)(propsWithDefault), [
|
|
44
44
|
"cols",
|
|
45
45
|
"rows",
|
|
46
46
|
"wrap"
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../src/config/useFormLayoutLabel.ts", "../../../../../../scripts/build/transpile/react-shim.js"],
|
|
4
|
-
"sourcesContent": ["import React from 'react';\nimport { omit } from 'lodash';\nimport {\n useGetGlobalAttributes,\n useGetXstyledProps,\n useMemoMergePropsWithDefault,\n} from '@elliemae/ds-legacy-props-helpers';\nimport { type DSFormLayoutLabelT, DSFormLayoutLabelPropTypes, defaultProps } from '../react-desc-prop-types.js';\nimport { useValidateProps } from './useValidateProps.js';\n\nexport interface FormLayoutLabelCTX {\n propsWithDefault: DSFormLayoutLabelT.InternalProps;\n globalProps: ReturnType<typeof useGetGlobalAttributes>;\n xstyledProps: ReturnType<typeof useGetXstyledProps>;\n}\n\nexport const useFormLayoutLabel = (propsFromUser: DSFormLayoutLabelT.Props) => {\n // =============================================================================\n // MERGE WITH DEFAULT AND VALIDATE PROPS\n // =============================================================================\n const propsWithDefault = useMemoMergePropsWithDefault<DSFormLayoutLabelT.InternalProps>(propsFromUser, defaultProps);\n useValidateProps(propsWithDefault, DSFormLayoutLabelPropTypes);\n // =============================================================================\n // GLOBAL ATTRIBUTES & XSTYLED PROPS\n // =============================================================================\n const globalProps = omit(useGetGlobalAttributes<DSFormLayoutLabelT.InternalProps>(propsWithDefault), [\n 'cols',\n 'rows',\n 'wrap',\n ]);\n const xstyledProps = useGetXstyledProps(propsWithDefault);\n\n return React.useMemo(\n () => ({\n propsWithDefault,\n globalProps,\n xstyledProps,\n }),\n [propsWithDefault, globalProps, xstyledProps],\n );\n};\n", "import * as React from 'react';\nexport { React };\n"],
|
|
5
|
-
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADAvB,mBAAkB;AAClB,
|
|
4
|
+
"sourcesContent": ["import React from 'react';\nimport { omit } from 'lodash-es';\nimport {\n useGetGlobalAttributes,\n useGetXstyledProps,\n useMemoMergePropsWithDefault,\n} from '@elliemae/ds-legacy-props-helpers';\nimport { type DSFormLayoutLabelT, DSFormLayoutLabelPropTypes, defaultProps } from '../react-desc-prop-types.js';\nimport { useValidateProps } from './useValidateProps.js';\n\nexport interface FormLayoutLabelCTX {\n propsWithDefault: DSFormLayoutLabelT.InternalProps;\n globalProps: ReturnType<typeof useGetGlobalAttributes>;\n xstyledProps: ReturnType<typeof useGetXstyledProps>;\n}\n\nexport const useFormLayoutLabel = (propsFromUser: DSFormLayoutLabelT.Props) => {\n // =============================================================================\n // MERGE WITH DEFAULT AND VALIDATE PROPS\n // =============================================================================\n const propsWithDefault = useMemoMergePropsWithDefault<DSFormLayoutLabelT.InternalProps>(propsFromUser, defaultProps);\n useValidateProps(propsWithDefault, DSFormLayoutLabelPropTypes);\n // =============================================================================\n // GLOBAL ATTRIBUTES & XSTYLED PROPS\n // =============================================================================\n const globalProps = omit(useGetGlobalAttributes<DSFormLayoutLabelT.InternalProps>(propsWithDefault), [\n 'cols',\n 'rows',\n 'wrap',\n ]);\n const xstyledProps = useGetXstyledProps(propsWithDefault);\n\n return React.useMemo(\n () => ({\n propsWithDefault,\n globalProps,\n xstyledProps,\n }),\n [propsWithDefault, globalProps, xstyledProps],\n );\n};\n", "import * as React from 'react';\nexport { React };\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADAvB,mBAAkB;AAClB,uBAAqB;AACrB,qCAIO;AACP,mCAAkF;AAClF,8BAAiC;AAQ1B,MAAM,qBAAqB,CAAC,kBAA4C;AAI7E,QAAM,uBAAmB,6DAA+D,eAAe,yCAAY;AACnH,gDAAiB,kBAAkB,uDAA0B;AAI7D,QAAM,kBAAc,2BAAK,uDAAyD,gBAAgB,GAAG;AAAA,IACnG;AAAA,IACA;AAAA,IACA;AAAA,EACF,CAAC;AACD,QAAM,mBAAe,mDAAmB,gBAAgB;AAExD,SAAO,aAAAA,QAAM;AAAA,IACX,OAAO;AAAA,MACL;AAAA,MACA;AAAA,MACA;AAAA,IACF;AAAA,IACA,CAAC,kBAAkB,aAAa,YAAY;AAAA,EAC9C;AACF;",
|
|
6
6
|
"names": ["React"]
|
|
7
7
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../../../../scripts/build/transpile/react-shim.js", "../../../src/config/useFormLayoutLabel.ts"],
|
|
4
|
-
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import React from 'react';\nimport { omit } from 'lodash';\nimport {\n useGetGlobalAttributes,\n useGetXstyledProps,\n useMemoMergePropsWithDefault,\n} from '@elliemae/ds-legacy-props-helpers';\nimport { type DSFormLayoutLabelT, DSFormLayoutLabelPropTypes, defaultProps } from '../react-desc-prop-types.js';\nimport { useValidateProps } from './useValidateProps.js';\n\nexport interface FormLayoutLabelCTX {\n propsWithDefault: DSFormLayoutLabelT.InternalProps;\n globalProps: ReturnType<typeof useGetGlobalAttributes>;\n xstyledProps: ReturnType<typeof useGetXstyledProps>;\n}\n\nexport const useFormLayoutLabel = (propsFromUser: DSFormLayoutLabelT.Props) => {\n // =============================================================================\n // MERGE WITH DEFAULT AND VALIDATE PROPS\n // =============================================================================\n const propsWithDefault = useMemoMergePropsWithDefault<DSFormLayoutLabelT.InternalProps>(propsFromUser, defaultProps);\n useValidateProps(propsWithDefault, DSFormLayoutLabelPropTypes);\n // =============================================================================\n // GLOBAL ATTRIBUTES & XSTYLED PROPS\n // =============================================================================\n const globalProps = omit(useGetGlobalAttributes<DSFormLayoutLabelT.InternalProps>(propsWithDefault), [\n 'cols',\n 'rows',\n 'wrap',\n ]);\n const xstyledProps = useGetXstyledProps(propsWithDefault);\n\n return React.useMemo(\n () => ({\n propsWithDefault,\n globalProps,\n xstyledProps,\n }),\n [propsWithDefault, globalProps, xstyledProps],\n );\n};\n"],
|
|
4
|
+
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import React from 'react';\nimport { omit } from 'lodash-es';\nimport {\n useGetGlobalAttributes,\n useGetXstyledProps,\n useMemoMergePropsWithDefault,\n} from '@elliemae/ds-legacy-props-helpers';\nimport { type DSFormLayoutLabelT, DSFormLayoutLabelPropTypes, defaultProps } from '../react-desc-prop-types.js';\nimport { useValidateProps } from './useValidateProps.js';\n\nexport interface FormLayoutLabelCTX {\n propsWithDefault: DSFormLayoutLabelT.InternalProps;\n globalProps: ReturnType<typeof useGetGlobalAttributes>;\n xstyledProps: ReturnType<typeof useGetXstyledProps>;\n}\n\nexport const useFormLayoutLabel = (propsFromUser: DSFormLayoutLabelT.Props) => {\n // =============================================================================\n // MERGE WITH DEFAULT AND VALIDATE PROPS\n // =============================================================================\n const propsWithDefault = useMemoMergePropsWithDefault<DSFormLayoutLabelT.InternalProps>(propsFromUser, defaultProps);\n useValidateProps(propsWithDefault, DSFormLayoutLabelPropTypes);\n // =============================================================================\n // GLOBAL ATTRIBUTES & XSTYLED PROPS\n // =============================================================================\n const globalProps = omit(useGetGlobalAttributes<DSFormLayoutLabelT.InternalProps>(propsWithDefault), [\n 'cols',\n 'rows',\n 'wrap',\n ]);\n const xstyledProps = useGetXstyledProps(propsWithDefault);\n\n return React.useMemo(\n () => ({\n propsWithDefault,\n globalProps,\n xstyledProps,\n }),\n [propsWithDefault, globalProps, xstyledProps],\n );\n};\n"],
|
|
5
5
|
"mappings": "AAAA,YAAY,WAAW;ACAvB,OAAOA,YAAW;AAClB,SAAS,YAAY;AACrB;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,OACK;AACP,SAAkC,4BAA4B,oBAAoB;AAClF,SAAS,wBAAwB;AAQ1B,MAAM,qBAAqB,CAAC,kBAA4C;AAI7E,QAAM,mBAAmB,6BAA+D,eAAe,YAAY;AACnH,mBAAiB,kBAAkB,0BAA0B;AAI7D,QAAM,cAAc,KAAK,uBAAyD,gBAAgB,GAAG;AAAA,IACnG;AAAA,IACA;AAAA,IACA;AAAA,EACF,CAAC;AACD,QAAM,eAAe,mBAAmB,gBAAgB;AAExD,SAAOA,OAAM;AAAA,IACX,OAAO;AAAA,MACL;AAAA,MACA;AAAA,MACA;AAAA,IACF;AAAA,IACA,CAAC,kBAAkB,aAAa,YAAY;AAAA,EAC9C;AACF;",
|
|
6
6
|
"names": ["React"]
|
|
7
7
|
}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="lodash" />
|
|
2
1
|
import { useGetGlobalAttributes, useGetXstyledProps } from '@elliemae/ds-legacy-props-helpers';
|
|
3
2
|
import { type DSFormLayoutLabelT } from '../react-desc-prop-types.js';
|
|
4
3
|
export interface FormLayoutLabelCTX {
|
|
@@ -8,6 +7,6 @@ export interface FormLayoutLabelCTX {
|
|
|
8
7
|
}
|
|
9
8
|
export declare const useFormLayoutLabel: (propsFromUser: DSFormLayoutLabelT.Props) => {
|
|
10
9
|
propsWithDefault: DSFormLayoutLabelT.InternalProps;
|
|
11
|
-
globalProps:
|
|
10
|
+
globalProps: any;
|
|
12
11
|
xstyledProps: import("@elliemae/ds-legacy-props-helpers").XstyledProps;
|
|
13
12
|
};
|
|
@@ -18,4 +18,4 @@ export declare namespace DSFormLayoutLabelT {
|
|
|
18
18
|
type ExampleState = '0' | '1';
|
|
19
19
|
}
|
|
20
20
|
export declare const defaultProps: DSFormLayoutLabelT.DefaultProps;
|
|
21
|
-
export declare const DSFormLayoutLabelPropTypes:
|
|
21
|
+
export declare const DSFormLayoutLabelPropTypes: WeakValidationMap<unknown>;
|
package/dist/types/styled.d.ts
CHANGED
|
@@ -1,9 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
}
|
|
4
|
-
interface DSFormLayoutBlockItemStyledMarkT {
|
|
5
|
-
required?: boolean;
|
|
6
|
-
}
|
|
7
|
-
export declare const StyledLabel: import("styled-components").StyledComponent<"label", import("@elliemae/ds-legacy-system").Theme, DSFormLayoutBlockItemStyledLabelT & import("@elliemae/ds-legacy-system").OwnerInterface, never>;
|
|
8
|
-
export declare const StyledMark: import("styled-components").StyledComponent<"span", import("@elliemae/ds-legacy-system").Theme, DSFormLayoutBlockItemStyledMarkT & import("@elliemae/ds-legacy-system").OwnerInterface, never>;
|
|
9
|
-
export {};
|
|
1
|
+
export declare const StyledLabel: any;
|
|
2
|
+
export declare const StyledMark: any;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@elliemae/ds-legacy-form-layout-label",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.16",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "ICE MT - Dimsum - Form Layout Label",
|
|
6
6
|
"files": [
|
|
@@ -36,24 +36,24 @@
|
|
|
36
36
|
},
|
|
37
37
|
"dependencies": {
|
|
38
38
|
"@xstyled/system": "~3.7.3",
|
|
39
|
-
"@elliemae/ds-legacy-props-helpers": "1.0.
|
|
40
|
-
"@elliemae/ds-legacy-system": "1.0.
|
|
39
|
+
"@elliemae/ds-legacy-props-helpers": "1.0.16",
|
|
40
|
+
"@elliemae/ds-legacy-system": "1.0.16"
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|
|
43
43
|
"@elliemae/pui-cli": "9.0.0-next.50",
|
|
44
|
-
"lodash": "^4.17.21",
|
|
44
|
+
"lodash-es": "^4.17.21",
|
|
45
45
|
"styled-components": "~5.3.9",
|
|
46
|
-
"@elliemae/ds-legacy-monorepo-devops": "1.0.
|
|
46
|
+
"@elliemae/ds-legacy-monorepo-devops": "1.0.16"
|
|
47
47
|
},
|
|
48
48
|
"peerDependencies": {
|
|
49
|
-
"lodash": "^4.17.21",
|
|
49
|
+
"lodash-es": "^4.17.21",
|
|
50
50
|
"react": "^17.0.2",
|
|
51
51
|
"react-dom": "^17.0.2",
|
|
52
52
|
"styled-components": "~5.3.9"
|
|
53
53
|
},
|
|
54
54
|
"publishConfig": {
|
|
55
55
|
"access": "public",
|
|
56
|
-
"typeSafety":
|
|
56
|
+
"typeSafety": false
|
|
57
57
|
},
|
|
58
58
|
"scripts": {
|
|
59
59
|
"dev": "cross-env NODE_ENV=development node ../../../scripts/build/build.mjs --watch",
|