@elliemae/ds-backdrop 3.16.0-next.10 → 3.16.0-next.12

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.
@@ -18,6 +18,10 @@ var __copyProps = (to, from, except, desc) => {
18
18
  return to;
19
19
  };
20
20
  var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
21
+ // If the importer is in node compatibility mode or this is not an ESM
22
+ // file that has been converted to a CommonJS file using a Babel-
23
+ // compatible transform (i.e. "__esModule" has not been set), then set
24
+ // "default" to the CommonJS "module.exports" for node compatibility.
21
25
  isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
22
26
  mod
23
27
  ));
@@ -2,6 +2,6 @@
2
2
  "version": 3,
3
3
  "sources": ["../../src/Backdrop.tsx", "../../../../scripts/build/transpile/react-shim.js"],
4
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.js';\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;",
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
  }
package/dist/cjs/index.js CHANGED
@@ -18,6 +18,10 @@ var __copyProps = (to, from, except, desc) => {
18
18
  return to;
19
19
  };
20
20
  var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
21
+ // If the importer is in node compatibility mode or this is not an ESM
22
+ // file that has been converted to a CommonJS file using a Babel-
23
+ // compatible transform (i.e. "__esModule" has not been set), then set
24
+ // "default" to the CommonJS "module.exports" for node compatibility.
21
25
  isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
22
26
  mod
23
27
  ));
@@ -2,6 +2,6 @@
2
2
  "version": 3,
3
3
  "sources": ["../../src/index.tsx", "../../../../scripts/build/transpile/react-shim.js"],
4
4
  "sourcesContent": ["export { default } from './Backdrop.js';\nexport { default as DSBackdrop } from './Backdrop.js';\n", "import * as React from 'react';\nexport { React };\n"],
5
- "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADAvB,sBAAwB;AACxB,IAAAA,mBAAsC;",
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADAvB,sBAAwB;AACxB,IAAAA,mBAAsC;",
6
6
  "names": ["import_Backdrop"]
7
7
  }
@@ -18,6 +18,10 @@ var __copyProps = (to, from, except, desc) => {
18
18
  return to;
19
19
  };
20
20
  var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
21
+ // If the importer is in node compatibility mode or this is not an ESM
22
+ // file that has been converted to a CommonJS file using a Babel-
23
+ // compatible transform (i.e. "__esModule" has not been set), then set
24
+ // "default" to the CommonJS "module.exports" for node compatibility.
21
25
  isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
22
26
  mod
23
27
  ));
@@ -32,8 +36,17 @@ var import_ds_props_helpers = require("@elliemae/ds-props-helpers");
32
36
  const DSBackdropPropTypes = {
33
37
  ...import_ds_props_helpers.globalAttributesPropTypes,
34
38
  ...import_ds_props_helpers.xstyledPropTypes,
39
+ /**
40
+ * ['cover', 'fill']
41
+ */
35
42
  type: import_ds_props_helpers.PropTypes.oneOf(["fill", "cover"]).description("Type of backdrop"),
43
+ /**
44
+ * z-index of dimmer background
45
+ */
36
46
  zIndex: import_ds_props_helpers.PropTypes.number.description("Z-index for the backdrop"),
47
+ /**
48
+ * Backdrop click event
49
+ */
37
50
  onClick: import_ds_props_helpers.PropTypes.func.description("Backdrop click event")
38
51
  };
39
52
  //# sourceMappingURL=react-desc-prop-types.js.map
@@ -2,6 +2,6 @@
2
2
  "version": 3,
3
3
  "sources": ["../../src/react-desc-prop-types.ts", "../../../../scripts/build/transpile/react-shim.js"],
4
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;",
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADEvB,8BAAuE;AAkBhE,MAAM,sBAAsB;AAAA,EACjC,GAAG;AAAA,EACH,GAAG;AAAA;AAAA;AAAA;AAAA,EAIH,MAAM,kCAAU,MAAM,CAAC,QAAQ,OAAO,CAAC,EAAE,YAAY,kBAAkB;AAAA;AAAA;AAAA;AAAA,EAIvE,QAAQ,kCAAU,OAAO,YAAY,0BAA0B;AAAA;AAAA;AAAA;AAAA,EAI/D,SAAS,kCAAU,KAAK,YAAY,sBAAsB;AAC5D;",
6
6
  "names": []
7
7
  }
@@ -3,8 +3,17 @@ import { PropTypes, globalAttributesPropTypes, xstyledPropTypes } from "@elliema
3
3
  const DSBackdropPropTypes = {
4
4
  ...globalAttributesPropTypes,
5
5
  ...xstyledPropTypes,
6
+ /**
7
+ * ['cover', 'fill']
8
+ */
6
9
  type: PropTypes.oneOf(["fill", "cover"]).description("Type of backdrop"),
10
+ /**
11
+ * z-index of dimmer background
12
+ */
7
13
  zIndex: PropTypes.number.description("Z-index for the backdrop"),
14
+ /**
15
+ * Backdrop click event
16
+ */
8
17
  onClick: PropTypes.func.description("Backdrop click event")
9
18
  };
10
19
  export {
@@ -2,6 +2,6 @@
2
2
  "version": 3,
3
3
  "sources": ["../../../../scripts/build/transpile/react-shim.js", "../../src/react-desc-prop-types.ts"],
4
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;",
5
+ "mappings": "AAAA,YAAY,WAAW;ACEvB,SAAS,WAAW,2BAA2B,wBAAwB;AAkBhE,MAAM,sBAAsB;AAAA,EACjC,GAAG;AAAA,EACH,GAAG;AAAA;AAAA;AAAA;AAAA,EAIH,MAAM,UAAU,MAAM,CAAC,QAAQ,OAAO,CAAC,EAAE,YAAY,kBAAkB;AAAA;AAAA;AAAA;AAAA,EAIvE,QAAQ,UAAU,OAAO,YAAY,0BAA0B;AAAA;AAAA;AAAA;AAAA,EAI/D,SAAS,UAAU,KAAK,YAAY,sBAAsB;AAC5D;",
6
6
  "names": []
7
7
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@elliemae/ds-backdrop",
3
- "version": "3.16.0-next.10",
3
+ "version": "3.16.0-next.12",
4
4
  "license": "MIT",
5
5
  "description": "ICE MT - Dimsum - Backdrop",
6
6
  "files": [
@@ -39,12 +39,12 @@
39
39
  "indent": 4
40
40
  },
41
41
  "dependencies": {
42
- "@elliemae/ds-props-helpers": "3.16.0-next.10",
43
- "@elliemae/ds-system": "3.16.0-next.10",
44
- "@elliemae/ds-utilities": "3.16.0-next.10"
42
+ "@elliemae/ds-props-helpers": "3.16.0-next.12",
43
+ "@elliemae/ds-system": "3.16.0-next.12",
44
+ "@elliemae/ds-utilities": "3.16.0-next.12"
45
45
  },
46
46
  "devDependencies": {
47
- "styled-components": "~5.3.6"
47
+ "styled-components": "~5.3.9"
48
48
  },
49
49
  "peerDependencies": {
50
50
  "react": "^17.0.2",