@elliemae/ds-backdrop 3.22.0-next.8 → 3.22.0-rc.0
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/Backdrop.js.map
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
|
-
"sources": ["../../src/Backdrop.tsx", "
|
|
3
|
+
"sources": ["../../src/Backdrop.tsx", "../../../../../scripts/build/transpile/react-shim.js"],
|
|
4
4
|
"sourcesContent": ["import React from 'react';\nimport { styled, th } 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: ${th.color('neutral-800')};\n opacity: 0.7;\n z-index: ${({ zIndex, theme }) => (zIndex ? `${zIndex}` : theme.zIndex.backdrop)};\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
5
|
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADsBjB;AArBN,uBAA2B;AAC3B,8BAAyB;AACzB,mCAAsD;AAGtD,MAAM,cAAc,wBAAO;AAAA,IACvB,CAAC,EAAE,KAAK,MAAO,SAAS,UAAU,oBAAoB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,gBAM1C,oBAAG,MAAM,aAAa;AAAA;AAAA,aAEzB,CAAC,EAAE,QAAQ,MAAM,MAAO,SAAS,GAAG,WAAW,MAAM,OAAO;AAAA;AAGlE,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": []
|
package/dist/cjs/index.js.map
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
|
-
"sources": ["../../src/index.tsx", "
|
|
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
5
|
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADAvB,sBAAwB;AACxB,IAAAA,mBAAsC;",
|
|
6
6
|
"names": ["import_Backdrop"]
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
|
-
"sources": ["../../src/react-desc-prop-types.ts", "
|
|
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
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": []
|
package/dist/esm/Backdrop.js.map
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
|
-
"sources": ["
|
|
3
|
+
"sources": ["../../../../../scripts/build/transpile/react-shim.js", "../../src/Backdrop.tsx"],
|
|
4
4
|
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import React from 'react';\nimport { styled, th } 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: ${th.color('neutral-800')};\n opacity: 0.7;\n z-index: ${({ zIndex, theme }) => (zIndex ? `${zIndex}` : theme.zIndex.backdrop)};\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,QAAQ,UAAU;AAC3B,SAAS,gBAAgB;AACzB,SAA2B,2BAA2B;AAGtD,MAAM,cAAc,OAAO;AAAA,IACvB,CAAC,EAAE,KAAK,MAAO,SAAS,UAAU,oBAAoB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,gBAM1C,GAAG,MAAM,aAAa;AAAA;AAAA,aAEzB,CAAC,EAAE,QAAQ,MAAM,MAAO,SAAS,GAAG,WAAW,MAAM,OAAO;AAAA;AAGlE,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": []
|
package/dist/esm/index.js.map
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
|
-
"sources": ["
|
|
3
|
+
"sources": ["../../../../../scripts/build/transpile/react-shim.js", "../../src/index.tsx"],
|
|
4
4
|
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "export { default } from './Backdrop.js';\nexport { default as DSBackdrop } from './Backdrop.js';\n"],
|
|
5
5
|
"mappings": "AAAA,YAAY,WAAW;ACAvB,SAAS,WAAAA,gBAAe;AACxB,SAAoB,WAAXA,gBAA6B;",
|
|
6
6
|
"names": ["default"]
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
|
-
"sources": ["
|
|
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
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": []
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@elliemae/ds-backdrop",
|
|
3
|
-
"version": "3.22.0-
|
|
3
|
+
"version": "3.22.0-rc.0",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "ICE MT - Dimsum - Backdrop",
|
|
6
6
|
"files": [
|
|
@@ -39,14 +39,14 @@
|
|
|
39
39
|
"indent": 4
|
|
40
40
|
},
|
|
41
41
|
"dependencies": {
|
|
42
|
-
"@elliemae/ds-props-helpers": "3.22.0-
|
|
43
|
-
"@elliemae/ds-system": "3.22.0-
|
|
44
|
-
"@elliemae/ds-utilities": "3.22.0-
|
|
42
|
+
"@elliemae/ds-props-helpers": "3.22.0-rc.0",
|
|
43
|
+
"@elliemae/ds-system": "3.22.0-rc.0",
|
|
44
|
+
"@elliemae/ds-utilities": "3.22.0-rc.0"
|
|
45
45
|
},
|
|
46
46
|
"devDependencies": {
|
|
47
|
-
"@elliemae/pui-cli": "~9.0.0-next.
|
|
47
|
+
"@elliemae/pui-cli": "~9.0.0-next.22",
|
|
48
48
|
"styled-components": "~5.3.9",
|
|
49
|
-
"@elliemae/ds-monorepo-devops": "3.22.0-
|
|
49
|
+
"@elliemae/ds-monorepo-devops": "3.22.0-rc.0"
|
|
50
50
|
},
|
|
51
51
|
"peerDependencies": {
|
|
52
52
|
"react": "^17.0.2",
|
|
@@ -58,14 +58,14 @@
|
|
|
58
58
|
"typeSafety": false
|
|
59
59
|
},
|
|
60
60
|
"scripts": {
|
|
61
|
-
"dev": "cross-env NODE_ENV=development node
|
|
61
|
+
"dev": "cross-env NODE_ENV=development node ../../../scripts/build/build.mjs --watch",
|
|
62
62
|
"test": "pui-cli test --passWithNoTests",
|
|
63
|
-
"lint": "node
|
|
64
|
-
"eslint:fix": "eslint --ext='.js,.jsx,.test.js,.ts,.tsx' --fix --config='
|
|
65
|
-
"dts": "node
|
|
66
|
-
"build": "cross-env NODE_ENV=production node
|
|
63
|
+
"lint": "node ../../../scripts/lint.mjs",
|
|
64
|
+
"eslint:fix": "eslint --ext='.js,.jsx,.test.js,.ts,.tsx' --fix --config='../../../.eslintrc.js' src/",
|
|
65
|
+
"dts": "node ../../../scripts/dts.mjs",
|
|
66
|
+
"build": "cross-env NODE_ENV=production node ../../../scripts/build/build.mjs",
|
|
67
67
|
"dev:build": "pnpm --filter {.}... build",
|
|
68
68
|
"dev:install": "pnpm --filter {.}... i --no-lockfile && pnpm run dev:build",
|
|
69
|
-
"checkDeps": "npm exec
|
|
69
|
+
"checkDeps": "npm exec ../../util/ds-codemods -- check-missing-packages --projectFolderPath=\"./\" --ignorePackagesGlobPattern=\"\" --ignoreFilesGlobPattern=\"**/test-ables/*,**/tests/*\""
|
|
70
70
|
}
|
|
71
71
|
}
|