@elliemae/ds-backdrop 3.16.0-next.2 → 3.16.0-next.4

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.
@@ -32,7 +32,7 @@ module.exports = __toCommonJS(Backdrop_exports);
32
32
  var React = __toESM(require("react"));
33
33
  var import_jsx_runtime = require("react/jsx-runtime");
34
34
  var import_ds_system = require("@elliemae/ds-system");
35
- var import_ds_utilities = require("@elliemae/ds-utilities");
35
+ var import_ds_props_helpers = require("@elliemae/ds-props-helpers");
36
36
  var import_react_desc_prop_types = require("./react-desc-prop-types");
37
37
  const BackdropTag = import_ds_system.styled.div`
38
38
  ${({ type }) => type === "cover" ? "position: fixed" : "position: absolute"};
@@ -51,7 +51,7 @@ const DSBackdrop = ({
51
51
  onClick = () => null
52
52
  }) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(BackdropTag, { zIndex, type, onClick, "data-testid": "ds-backdrop" });
53
53
  DSBackdrop.propTypes = import_react_desc_prop_types.DSBackdropPropTypes;
54
- const DSBackdropWithSchema = (0, import_ds_utilities.describe)(DSBackdrop);
54
+ const DSBackdropWithSchema = (0, import_ds_props_helpers.describe)(DSBackdrop);
55
55
  DSBackdropWithSchema.propTypes = import_react_desc_prop_types.DSBackdropPropTypes;
56
56
  var Backdrop_default = DSBackdrop;
57
57
  //# sourceMappingURL=Backdrop.js.map
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../src/Backdrop.tsx", "../../../../scripts/build/transpile/react-shim.js"],
4
- "sourcesContent": ["import React from 'react';\nimport { styled } from '@elliemae/ds-system';\nimport { describe } from '@elliemae/ds-utilities';\nimport { type DSBackdropT, DSBackdropPropTypes } from './react-desc-prop-types';\n\n// TODO change hardcoded opacity for theme variable\nconst BackdropTag = styled.div<{ zIndex?: number }>`\n ${({ type }) => (type === 'cover' ? 'position: fixed' : 'position: absolute')};\n\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n background: black;\n opacity: 0.6;\n ${(props) => (props.zIndex ? `z-index: ${props.zIndex};` : '')}\n`;\n\nexport const DSBackdrop: React.ComponentType<DSBackdropT.Props> = ({\n type = 'cover',\n zIndex,\n onClick = () => null,\n}) => <BackdropTag zIndex={zIndex} type={type} onClick={onClick} data-testid=\"ds-backdrop\" />;\n\nDSBackdrop.propTypes = DSBackdropPropTypes;\nexport const DSBackdropWithSchema = describe(DSBackdrop);\nDSBackdropWithSchema.propTypes = DSBackdropPropTypes;\n\nexport default DSBackdrop;\n", "import * as React from 'react';\nexport { React };\n"],
5
- "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADsBjB;AArBN,uBAAuB;AACvB,0BAAyB;AACzB,mCAAsD;AAGtD,MAAM,cAAc,wBAAO;AAAA,IACvB,CAAC,EAAE,KAAK,MAAO,SAAS,UAAU,oBAAoB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IAQtD,CAAC,UAAW,MAAM,SAAS,YAAY,MAAM,YAAY;AAAA;AAGtD,MAAM,aAAqD,CAAC;AAAA,EACjE,OAAO;AAAA,EACP;AAAA,EACA,UAAU,MAAM;AAClB,MAAM,4CAAC,eAAY,QAAgB,MAAY,SAAkB,eAAY,eAAc;AAE3F,WAAW,YAAY;AAChB,MAAM,2BAAuB,8BAAS,UAAU;AACvD,qBAAqB,YAAY;AAEjC,IAAO,mBAAQ;",
4
+ "sourcesContent": ["import React from 'react';\nimport { styled } from '@elliemae/ds-system';\nimport { describe } from '@elliemae/ds-props-helpers';\nimport { type DSBackdropT, DSBackdropPropTypes } from './react-desc-prop-types';\n\n// TODO change hardcoded opacity for theme variable\nconst BackdropTag = styled.div<{ zIndex?: number }>`\n ${({ type }) => (type === 'cover' ? 'position: fixed' : 'position: absolute')};\n\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n background: black;\n opacity: 0.6;\n ${(props) => (props.zIndex ? `z-index: ${props.zIndex};` : '')}\n`;\n\nexport const DSBackdrop: React.ComponentType<DSBackdropT.Props> = ({\n type = 'cover',\n zIndex,\n onClick = () => null,\n}) => <BackdropTag zIndex={zIndex} type={type} onClick={onClick} data-testid=\"ds-backdrop\" />;\n\nDSBackdrop.propTypes = DSBackdropPropTypes;\nexport const DSBackdropWithSchema = describe(DSBackdrop);\nDSBackdropWithSchema.propTypes = DSBackdropPropTypes;\n\nexport default DSBackdrop;\n", "import * as React from 'react';\nexport { React };\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADsBjB;AArBN,uBAAuB;AACvB,8BAAyB;AACzB,mCAAsD;AAGtD,MAAM,cAAc,wBAAO;AAAA,IACvB,CAAC,EAAE,KAAK,MAAO,SAAS,UAAU,oBAAoB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IAQtD,CAAC,UAAW,MAAM,SAAS,YAAY,MAAM,YAAY;AAAA;AAGtD,MAAM,aAAqD,CAAC;AAAA,EACjE,OAAO;AAAA,EACP;AAAA,EACA,UAAU,MAAM;AAClB,MAAM,4CAAC,eAAY,QAAgB,MAAY,SAAkB,eAAY,eAAc;AAE3F,WAAW,YAAY;AAChB,MAAM,2BAAuB,kCAAS,UAAU;AACvD,qBAAqB,YAAY;AAEjC,IAAO,mBAAQ;",
6
6
  "names": []
7
7
  }
@@ -0,0 +1,7 @@
1
+ {
2
+ "type": "commonjs",
3
+ "sideEffects": [
4
+ "*.css",
5
+ "*.scss"
6
+ ]
7
+ }
@@ -28,12 +28,12 @@ __export(react_desc_prop_types_exports, {
28
28
  });
29
29
  module.exports = __toCommonJS(react_desc_prop_types_exports);
30
30
  var React = __toESM(require("react"));
31
- var import_ds_utilities = require("@elliemae/ds-utilities");
31
+ var import_ds_props_helpers = require("@elliemae/ds-props-helpers");
32
32
  const DSBackdropPropTypes = {
33
- ...import_ds_utilities.globalAttributesPropTypes,
34
- ...import_ds_utilities.xstyledPropTypes,
35
- type: import_ds_utilities.PropTypes.oneOf(["fill", "cover"]).description("Type of backdrop"),
36
- zIndex: import_ds_utilities.PropTypes.number.description("Z-index for the backdrop"),
37
- onClick: import_ds_utilities.PropTypes.func.description("Backdrop click event")
33
+ ...import_ds_props_helpers.globalAttributesPropTypes,
34
+ ...import_ds_props_helpers.xstyledPropTypes,
35
+ type: import_ds_props_helpers.PropTypes.oneOf(["fill", "cover"]).description("Type of backdrop"),
36
+ zIndex: import_ds_props_helpers.PropTypes.number.description("Z-index for the backdrop"),
37
+ onClick: import_ds_props_helpers.PropTypes.func.description("Backdrop click event")
38
38
  };
39
39
  //# sourceMappingURL=react-desc-prop-types.js.map
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../src/react-desc-prop-types.ts", "../../../../scripts/build/transpile/react-shim.js"],
4
- "sourcesContent": ["import type { GlobalAttributesT, XstyledProps } from '@elliemae/ds-utilities';\nimport { PropTypes, globalAttributesPropTypes, xstyledPropTypes } from '@elliemae/ds-utilities';\nimport type { FontSizeProps, ColorProps } from '@elliemae/ds-system';\nimport type { WeakValidationMap } from 'react';\n\nexport declare namespace DSBackdropT {\n interface IProps {\n type?: 'fill' | 'cover';\n onClick?: React.MouseEventHandler;\n }\n\n export interface Props\n extends IProps,\n Omit<GlobalAttributesT<HTMLElement>, keyof IProps | 'color'>,\n XstyledProps,\n FontSizeProps,\n ColorProps {}\n}\n\nexport const DSBackdropPropTypes = {\n ...globalAttributesPropTypes,\n ...xstyledPropTypes,\n /**\n * ['cover', 'fill']\n */\n type: PropTypes.oneOf(['fill', 'cover']).description('Type of backdrop'),\n /**\n * z-index of dimmer background\n */\n zIndex: PropTypes.number.description('Z-index for the backdrop'),\n /**\n * Backdrop click event\n */\n onClick: PropTypes.func.description('Backdrop click event'),\n} as WeakValidationMap<unknown>;\n", "import * as React from 'react';\nexport { React };\n"],
5
- "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADCvB,0BAAuE;AAkBhE,MAAM,sBAAsB;AAAA,EACjC,GAAG;AAAA,EACH,GAAG;AAAA,EAIH,MAAM,8BAAU,MAAM,CAAC,QAAQ,OAAO,CAAC,EAAE,YAAY,kBAAkB;AAAA,EAIvE,QAAQ,8BAAU,OAAO,YAAY,0BAA0B;AAAA,EAI/D,SAAS,8BAAU,KAAK,YAAY,sBAAsB;AAC5D;",
4
+ "sourcesContent": ["import type {} from '@elliemae/ds-utilities';\nimport type { GlobalAttributesT, XstyledProps } from '@elliemae/ds-props-helpers';\nimport { PropTypes, globalAttributesPropTypes, xstyledPropTypes } from '@elliemae/ds-props-helpers';\nimport type { FontSizeProps, ColorProps } from '@elliemae/ds-system';\nimport type { WeakValidationMap } from 'react';\n\nexport declare namespace DSBackdropT {\n interface IProps {\n type?: 'fill' | 'cover';\n onClick?: React.MouseEventHandler;\n }\n\n export interface Props\n extends IProps,\n Omit<GlobalAttributesT<HTMLElement>, keyof IProps | 'color'>,\n XstyledProps,\n FontSizeProps,\n ColorProps {}\n}\n\nexport const DSBackdropPropTypes = {\n ...globalAttributesPropTypes,\n ...xstyledPropTypes,\n /**\n * ['cover', 'fill']\n */\n type: PropTypes.oneOf(['fill', 'cover']).description('Type of backdrop'),\n /**\n * z-index of dimmer background\n */\n zIndex: PropTypes.number.description('Z-index for the backdrop'),\n /**\n * Backdrop click event\n */\n onClick: PropTypes.func.description('Backdrop click event'),\n} as WeakValidationMap<unknown>;\n", "import * as React from 'react';\nexport { React };\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADEvB,8BAAuE;AAkBhE,MAAM,sBAAsB;AAAA,EACjC,GAAG;AAAA,EACH,GAAG;AAAA,EAIH,MAAM,kCAAU,MAAM,CAAC,QAAQ,OAAO,CAAC,EAAE,YAAY,kBAAkB;AAAA,EAIvE,QAAQ,kCAAU,OAAO,YAAY,0BAA0B;AAAA,EAI/D,SAAS,kCAAU,KAAK,YAAY,sBAAsB;AAC5D;",
6
6
  "names": []
7
7
  }
@@ -1,7 +1,7 @@
1
1
  import * as React from "react";
2
2
  import { jsx } from "react/jsx-runtime";
3
3
  import { styled } from "@elliemae/ds-system";
4
- import { describe } from "@elliemae/ds-utilities";
4
+ import { describe } from "@elliemae/ds-props-helpers";
5
5
  import { DSBackdropPropTypes } from "./react-desc-prop-types";
6
6
  const BackdropTag = styled.div`
7
7
  ${({ type }) => type === "cover" ? "position: fixed" : "position: absolute"};
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../../scripts/build/transpile/react-shim.js", "../../src/Backdrop.tsx"],
4
- "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import React from 'react';\nimport { styled } from '@elliemae/ds-system';\nimport { describe } from '@elliemae/ds-utilities';\nimport { type DSBackdropT, DSBackdropPropTypes } from './react-desc-prop-types';\n\n// TODO change hardcoded opacity for theme variable\nconst BackdropTag = styled.div<{ zIndex?: number }>`\n ${({ type }) => (type === 'cover' ? 'position: fixed' : 'position: absolute')};\n\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n background: black;\n opacity: 0.6;\n ${(props) => (props.zIndex ? `z-index: ${props.zIndex};` : '')}\n`;\n\nexport const DSBackdrop: React.ComponentType<DSBackdropT.Props> = ({\n type = 'cover',\n zIndex,\n onClick = () => null,\n}) => <BackdropTag zIndex={zIndex} type={type} onClick={onClick} data-testid=\"ds-backdrop\" />;\n\nDSBackdrop.propTypes = DSBackdropPropTypes;\nexport const DSBackdropWithSchema = describe(DSBackdrop);\nDSBackdropWithSchema.propTypes = DSBackdropPropTypes;\n\nexport default DSBackdrop;\n"],
4
+ "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import React from 'react';\nimport { styled } from '@elliemae/ds-system';\nimport { describe } from '@elliemae/ds-props-helpers';\nimport { type DSBackdropT, DSBackdropPropTypes } from './react-desc-prop-types';\n\n// TODO change hardcoded opacity for theme variable\nconst BackdropTag = styled.div<{ zIndex?: number }>`\n ${({ type }) => (type === 'cover' ? 'position: fixed' : 'position: absolute')};\n\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n background: black;\n opacity: 0.6;\n ${(props) => (props.zIndex ? `z-index: ${props.zIndex};` : '')}\n`;\n\nexport const DSBackdrop: React.ComponentType<DSBackdropT.Props> = ({\n type = 'cover',\n zIndex,\n onClick = () => null,\n}) => <BackdropTag zIndex={zIndex} type={type} onClick={onClick} data-testid=\"ds-backdrop\" />;\n\nDSBackdrop.propTypes = DSBackdropPropTypes;\nexport const DSBackdropWithSchema = describe(DSBackdrop);\nDSBackdropWithSchema.propTypes = DSBackdropPropTypes;\n\nexport default DSBackdrop;\n"],
5
5
  "mappings": "AAAA,YAAY,WAAW;ACsBjB;AArBN,SAAS,cAAc;AACvB,SAAS,gBAAgB;AACzB,SAA2B,2BAA2B;AAGtD,MAAM,cAAc,OAAO;AAAA,IACvB,CAAC,EAAE,KAAK,MAAO,SAAS,UAAU,oBAAoB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IAQtD,CAAC,UAAW,MAAM,SAAS,YAAY,MAAM,YAAY;AAAA;AAGtD,MAAM,aAAqD,CAAC;AAAA,EACjE,OAAO;AAAA,EACP;AAAA,EACA,UAAU,MAAM;AAClB,MAAM,oBAAC,eAAY,QAAgB,MAAY,SAAkB,eAAY,eAAc;AAE3F,WAAW,YAAY;AAChB,MAAM,uBAAuB,SAAS,UAAU;AACvD,qBAAqB,YAAY;AAEjC,IAAO,mBAAQ;",
6
6
  "names": []
7
7
  }
@@ -0,0 +1,7 @@
1
+ {
2
+ "type": "module",
3
+ "sideEffects": [
4
+ "*.css",
5
+ "*.scss"
6
+ ]
7
+ }
@@ -1,5 +1,5 @@
1
1
  import * as React from "react";
2
- import { PropTypes, globalAttributesPropTypes, xstyledPropTypes } from "@elliemae/ds-utilities";
2
+ import { PropTypes, globalAttributesPropTypes, xstyledPropTypes } from "@elliemae/ds-props-helpers";
3
3
  const DSBackdropPropTypes = {
4
4
  ...globalAttributesPropTypes,
5
5
  ...xstyledPropTypes,
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../../scripts/build/transpile/react-shim.js", "../../src/react-desc-prop-types.ts"],
4
- "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import type { GlobalAttributesT, XstyledProps } from '@elliemae/ds-utilities';\nimport { PropTypes, globalAttributesPropTypes, xstyledPropTypes } from '@elliemae/ds-utilities';\nimport type { FontSizeProps, ColorProps } from '@elliemae/ds-system';\nimport type { WeakValidationMap } from 'react';\n\nexport declare namespace DSBackdropT {\n interface IProps {\n type?: 'fill' | 'cover';\n onClick?: React.MouseEventHandler;\n }\n\n export interface Props\n extends IProps,\n Omit<GlobalAttributesT<HTMLElement>, keyof IProps | 'color'>,\n XstyledProps,\n FontSizeProps,\n ColorProps {}\n}\n\nexport const DSBackdropPropTypes = {\n ...globalAttributesPropTypes,\n ...xstyledPropTypes,\n /**\n * ['cover', 'fill']\n */\n type: PropTypes.oneOf(['fill', 'cover']).description('Type of backdrop'),\n /**\n * z-index of dimmer background\n */\n zIndex: PropTypes.number.description('Z-index for the backdrop'),\n /**\n * Backdrop click event\n */\n onClick: PropTypes.func.description('Backdrop click event'),\n} as WeakValidationMap<unknown>;\n"],
5
- "mappings": "AAAA,YAAY,WAAW;ACCvB,SAAS,WAAW,2BAA2B,wBAAwB;AAkBhE,MAAM,sBAAsB;AAAA,EACjC,GAAG;AAAA,EACH,GAAG;AAAA,EAIH,MAAM,UAAU,MAAM,CAAC,QAAQ,OAAO,CAAC,EAAE,YAAY,kBAAkB;AAAA,EAIvE,QAAQ,UAAU,OAAO,YAAY,0BAA0B;AAAA,EAI/D,SAAS,UAAU,KAAK,YAAY,sBAAsB;AAC5D;",
4
+ "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import type {} from '@elliemae/ds-utilities';\nimport type { GlobalAttributesT, XstyledProps } from '@elliemae/ds-props-helpers';\nimport { PropTypes, globalAttributesPropTypes, xstyledPropTypes } from '@elliemae/ds-props-helpers';\nimport type { FontSizeProps, ColorProps } from '@elliemae/ds-system';\nimport type { WeakValidationMap } from 'react';\n\nexport declare namespace DSBackdropT {\n interface IProps {\n type?: 'fill' | 'cover';\n onClick?: React.MouseEventHandler;\n }\n\n export interface Props\n extends IProps,\n Omit<GlobalAttributesT<HTMLElement>, keyof IProps | 'color'>,\n XstyledProps,\n FontSizeProps,\n ColorProps {}\n}\n\nexport const DSBackdropPropTypes = {\n ...globalAttributesPropTypes,\n ...xstyledPropTypes,\n /**\n * ['cover', 'fill']\n */\n type: PropTypes.oneOf(['fill', 'cover']).description('Type of backdrop'),\n /**\n * z-index of dimmer background\n */\n zIndex: PropTypes.number.description('Z-index for the backdrop'),\n /**\n * Backdrop click event\n */\n onClick: PropTypes.func.description('Backdrop click event'),\n} as WeakValidationMap<unknown>;\n"],
5
+ "mappings": "AAAA,YAAY,WAAW;ACEvB,SAAS,WAAW,2BAA2B,wBAAwB;AAkBhE,MAAM,sBAAsB;AAAA,EACjC,GAAG;AAAA,EACH,GAAG;AAAA,EAIH,MAAM,UAAU,MAAM,CAAC,QAAQ,OAAO,CAAC,EAAE,YAAY,kBAAkB;AAAA,EAIvE,QAAQ,UAAU,OAAO,YAAY,0BAA0B;AAAA,EAI/D,SAAS,UAAU,KAAK,YAAY,sBAAsB;AAC5D;",
6
6
  "names": []
7
7
  }
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
2
  import { type DSBackdropT } from './react-desc-prop-types';
3
3
  export declare const DSBackdrop: React.ComponentType<DSBackdropT.Props>;
4
- export declare const DSBackdropWithSchema: import("@elliemae/ds-utilities/dist/types/props-helpers/propTypes/types").DocumentedReactComponent<DSBackdropT.Props>;
4
+ export declare const DSBackdropWithSchema: import("@elliemae/ds-props-helpers/dist/types/propTypes/types").DocumentedReactComponent<DSBackdropT.Props>;
5
5
  export default DSBackdrop;
@@ -1,4 +1,4 @@
1
- import type { GlobalAttributesT, XstyledProps } from '@elliemae/ds-utilities';
1
+ import type { GlobalAttributesT, XstyledProps } from '@elliemae/ds-props-helpers';
2
2
  import type { FontSizeProps, ColorProps } from '@elliemae/ds-system';
3
3
  import type { WeakValidationMap } from 'react';
4
4
  export declare namespace DSBackdropT {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@elliemae/ds-backdrop",
3
- "version": "3.16.0-next.2",
3
+ "version": "3.16.0-next.4",
4
4
  "license": "MIT",
5
5
  "description": "ICE MT - Dimsum - Backdrop",
6
6
  "files": [
@@ -39,8 +39,9 @@
39
39
  "indent": 4
40
40
  },
41
41
  "dependencies": {
42
- "@elliemae/ds-system": "3.16.0-next.2",
43
- "@elliemae/ds-utilities": "3.16.0-next.2"
42
+ "@elliemae/ds-system": "3.16.0-next.4",
43
+ "@elliemae/ds-props-helpers": "3.16.0-next.4",
44
+ "@elliemae/ds-utilities": "3.16.0-next.4"
44
45
  },
45
46
  "devDependencies": {
46
47
  "styled-components": "~5.3.6"
@@ -61,7 +62,7 @@
61
62
  "eslint:fix": "eslint --ext='.js,.jsx,.test.js,.ts,.tsx' --fix --config='../../.eslintrc.js' src/",
62
63
  "dts": "node ../../scripts/dts.mjs",
63
64
  "build": "cross-env NODE_ENV=production node ../../scripts/build/build.mjs",
64
- "dev:build": "pnpm --filter {.}... build && pnpm --filter {.}... dts",
65
+ "dev:build": "pnpm --filter {.}... build",
65
66
  "dev:install": "pnpm --filter {.}... i --no-lockfile && pnpm run dev:build",
66
67
  "checkDeps": "npx -yes ../ds-codemods check-missing-packages --projectFolderPath=\"./\" --ignorePackagesGlobPattern=\"\" --ignoreFilesGlobPattern=\"**/test-ables/*,**/tests/*\""
67
68
  }