@elliemae/ds-button-v2 3.55.0-next.9 → 3.55.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/parts/SharedButtonBaseline/config/useValidateProps.js +2 -1
- package/dist/cjs/parts/SharedButtonBaseline/config/useValidateProps.js.map +2 -2
- package/dist/esm/parts/SharedButtonBaseline/config/useValidateProps.js +2 -1
- package/dist/esm/parts/SharedButtonBaseline/config/useValidateProps.js.map +2 -2
- package/package.json +6 -6
|
@@ -36,7 +36,8 @@ var import_ds_props_helpers = require("@elliemae/ds-props-helpers");
|
|
|
36
36
|
var import_DSButtonDefinitions = require("../DSButtonDefinitions.js");
|
|
37
37
|
const useValidateProps = (props, propTypes) => {
|
|
38
38
|
(0, import_ds_props_helpers.useValidateTypescriptPropTypes)(props, propTypes, import_DSButtonDefinitions.DSButtonName);
|
|
39
|
-
if (props.size === "s")
|
|
39
|
+
if (props.size === "s") {
|
|
40
40
|
console.warn("[DSButton] Size 's' will be deprecated in the future, so its use is not recommended.");
|
|
41
|
+
}
|
|
41
42
|
};
|
|
42
43
|
//# sourceMappingURL=useValidateProps.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../../../src/parts/SharedButtonBaseline/config/useValidateProps.ts", "../../../../../../../../scripts/build/transpile/react-shim.js"],
|
|
4
|
-
"sourcesContent": ["import { useValidateTypescriptPropTypes, type ValidationMap } from '@elliemae/ds-props-helpers';\nimport { DSButtonName } from '../DSButtonDefinitions.js';\nimport type { DSButtonT } from '../react-desc-prop-types.js';\n\nexport const useValidateProps = (props: DSButtonT.Props, propTypes: ValidationMap<unknown>): void => {\n // we validate the \"required if\" via 'isRequiredIf from our custom PropTypes\n useValidateTypescriptPropTypes(props, propTypes, DSButtonName);\n\n if (props.size === 's')
|
|
5
|
-
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADAvB,8BAAmE;AACnE,iCAA6B;AAGtB,MAAM,mBAAmB,CAAC,OAAwB,cAA4C;AAEnG,8DAA+B,OAAO,WAAW,uCAAY;AAE7D,MAAI,MAAM,SAAS;
|
|
4
|
+
"sourcesContent": ["import { useValidateTypescriptPropTypes, type ValidationMap } from '@elliemae/ds-props-helpers';\nimport { DSButtonName } from '../DSButtonDefinitions.js';\nimport type { DSButtonT } from '../react-desc-prop-types.js';\n\nexport const useValidateProps = (props: DSButtonT.Props, propTypes: ValidationMap<unknown>): void => {\n // we validate the \"required if\" via 'isRequiredIf from our custom PropTypes\n useValidateTypescriptPropTypes(props, propTypes, DSButtonName);\n\n if (props.size === 's') {\n console.warn(\"[DSButton] Size 's' will be deprecated in the future, so its use is not recommended.\");\n }\n};\n", "import * as React from 'react';\nexport { React };\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADAvB,8BAAmE;AACnE,iCAA6B;AAGtB,MAAM,mBAAmB,CAAC,OAAwB,cAA4C;AAEnG,8DAA+B,OAAO,WAAW,uCAAY;AAE7D,MAAI,MAAM,SAAS,KAAK;AACtB,YAAQ,KAAK,sFAAsF;AAAA,EACrG;AACF;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -3,8 +3,9 @@ import { useValidateTypescriptPropTypes } from "@elliemae/ds-props-helpers";
|
|
|
3
3
|
import { DSButtonName } from "../DSButtonDefinitions.js";
|
|
4
4
|
const useValidateProps = (props, propTypes) => {
|
|
5
5
|
useValidateTypescriptPropTypes(props, propTypes, DSButtonName);
|
|
6
|
-
if (props.size === "s")
|
|
6
|
+
if (props.size === "s") {
|
|
7
7
|
console.warn("[DSButton] Size 's' will be deprecated in the future, so its use is not recommended.");
|
|
8
|
+
}
|
|
8
9
|
};
|
|
9
10
|
export {
|
|
10
11
|
useValidateProps
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../../../../../../scripts/build/transpile/react-shim.js", "../../../../../src/parts/SharedButtonBaseline/config/useValidateProps.ts"],
|
|
4
|
-
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import { useValidateTypescriptPropTypes, type ValidationMap } from '@elliemae/ds-props-helpers';\nimport { DSButtonName } from '../DSButtonDefinitions.js';\nimport type { DSButtonT } from '../react-desc-prop-types.js';\n\nexport const useValidateProps = (props: DSButtonT.Props, propTypes: ValidationMap<unknown>): void => {\n // we validate the \"required if\" via 'isRequiredIf from our custom PropTypes\n useValidateTypescriptPropTypes(props, propTypes, DSButtonName);\n\n if (props.size === 's')
|
|
5
|
-
"mappings": "AAAA,YAAY,WAAW;ACAvB,SAAS,sCAA0D;AACnE,SAAS,oBAAoB;AAGtB,MAAM,mBAAmB,CAAC,OAAwB,cAA4C;AAEnG,iCAA+B,OAAO,WAAW,YAAY;AAE7D,MAAI,MAAM,SAAS;
|
|
4
|
+
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import { useValidateTypescriptPropTypes, type ValidationMap } from '@elliemae/ds-props-helpers';\nimport { DSButtonName } from '../DSButtonDefinitions.js';\nimport type { DSButtonT } from '../react-desc-prop-types.js';\n\nexport const useValidateProps = (props: DSButtonT.Props, propTypes: ValidationMap<unknown>): void => {\n // we validate the \"required if\" via 'isRequiredIf from our custom PropTypes\n useValidateTypescriptPropTypes(props, propTypes, DSButtonName);\n\n if (props.size === 's') {\n console.warn(\"[DSButton] Size 's' will be deprecated in the future, so its use is not recommended.\");\n }\n};\n"],
|
|
5
|
+
"mappings": "AAAA,YAAY,WAAW;ACAvB,SAAS,sCAA0D;AACnE,SAAS,oBAAoB;AAGtB,MAAM,mBAAmB,CAAC,OAAwB,cAA4C;AAEnG,iCAA+B,OAAO,WAAW,YAAY;AAE7D,MAAI,MAAM,SAAS,KAAK;AACtB,YAAQ,KAAK,sFAAsF;AAAA,EACrG;AACF;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@elliemae/ds-button-v2",
|
|
3
|
-
"version": "3.55.
|
|
3
|
+
"version": "3.55.2",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "ICE MT - Dimsum - Button",
|
|
6
6
|
"files": [
|
|
@@ -36,16 +36,16 @@
|
|
|
36
36
|
"indent": 4
|
|
37
37
|
},
|
|
38
38
|
"dependencies": {
|
|
39
|
-
"@elliemae/ds-
|
|
40
|
-
"@elliemae/ds-
|
|
41
|
-
"@elliemae/ds-
|
|
39
|
+
"@elliemae/ds-system": "3.55.2",
|
|
40
|
+
"@elliemae/ds-typescript-helpers": "3.55.2",
|
|
41
|
+
"@elliemae/ds-props-helpers": "3.55.2"
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|
|
44
44
|
"@elliemae/pui-cli": "9.0.0-next.65",
|
|
45
45
|
"jest": "~29.7.0",
|
|
46
46
|
"styled-components": "~5.3.9",
|
|
47
|
-
"@elliemae/ds-
|
|
48
|
-
"@elliemae/ds-
|
|
47
|
+
"@elliemae/ds-test-utils": "3.55.2",
|
|
48
|
+
"@elliemae/ds-monorepo-devops": "3.55.2"
|
|
49
49
|
},
|
|
50
50
|
"peerDependencies": {
|
|
51
51
|
"react": "^18.3.1",
|