@elliemae/ds-form 3.12.0-next.1 → 3.12.0-rc.1
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.
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../src/Toggle/toggleHelper.tsx", "../../../../../scripts/build/transpile/react-shim.js"],
|
|
4
|
-
"sourcesContent": ["export const isValidDrag = ({ inside, circleWidth, drag, checked, boxWidth }) => {\n const difference = boxWidth - circleWidth;\n return checked ? !inside && -drag > difference / 2 : !inside && drag > boxWidth / 3;\n};\n\nexport const cleanDrag = () => ({\n startPoint: null,\n isDragging: false,\n});\n\n// eslint-disable-next-line complexity\nexport const calculateDrag = (clientX, { startPoint, checked, isDragging, boxWidth, circleWidth }) => {\n if (!isDragging) return null;\n const move = startPoint - clientX;\n const drag = !checked ? clientX - startPoint : boxWidth - circleWidth - move;\n if (!checked && clientX > 0 && clientX > startPoint && drag < boxWidth * 0.7) return drag;\n if (checked && clientX > 0 && clientX < startPoint && move < boxWidth * 0.7) return drag;\n return null;\n};\n\nexport const dragStartingPoints =\n (checked) =>\n
|
|
5
|
-
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADAhB,MAAM,cAAc,CAAC,EAAE,QAAQ,aAAa,MAAM,SAAS,SAAS,MAAM;AAC/E,QAAM,aAAa,WAAW;AAC9B,SAAO,UAAU,CAAC,UAAU,CAAC,OAAO,aAAa,IAAI,CAAC,UAAU,OAAO,WAAW;AACpF;AAEO,MAAM,YAAY,OAAO;AAAA,EAC9B,YAAY;AAAA,EACZ,YAAY;AACd;AAGO,MAAM,gBAAgB,CAAC,SAAS,EAAE,YAAY,SAAS,YAAY,UAAU,YAAY,MAAM;AACpG,MAAI,CAAC;AAAY,WAAO;AACxB,QAAM,OAAO,aAAa;AAC1B,QAAM,OAAO,CAAC,UAAU,UAAU,aAAa,WAAW,cAAc;AACxE,MAAI,CAAC,WAAW,UAAU,KAAK,UAAU,cAAc,OAAO,WAAW;AAAK,WAAO;AACrF,MAAI,WAAW,UAAU,KAAK,UAAU,cAAc,OAAO,WAAW;AAAK,WAAO;AACpF,SAAO;AACT;AAEO,MAAM,qBACX,CAAC,
|
|
4
|
+
"sourcesContent": ["export const isValidDrag = ({ inside, circleWidth, drag, checked, boxWidth }) => {\n const difference = boxWidth - circleWidth;\n return checked ? !inside && -drag > difference / 2 : !inside && drag > boxWidth / 3;\n};\n\nexport const cleanDrag = () => ({\n startPoint: null,\n isDragging: false,\n});\n\n// eslint-disable-next-line complexity\nexport const calculateDrag = (clientX, { startPoint, checked, isDragging, boxWidth, circleWidth }) => {\n if (!isDragging) return null;\n const move = startPoint - clientX;\n const drag = !checked ? clientX - startPoint : boxWidth - circleWidth - move;\n if (!checked && clientX > 0 && clientX > startPoint && drag < boxWidth * 0.7) return drag;\n if (checked && clientX > 0 && clientX < startPoint && move < boxWidth * 0.7) return drag;\n return null;\n};\n\nexport const dragStartingPoints =\n (checked) =>\n ({ circleWidth, boxWidth }) => {\n if (checked) return { drag: boxWidth - circleWidth };\n return {\n drag: 0,\n };\n };\n", "import * as React from 'react';\nexport { React };\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADAhB,MAAM,cAAc,CAAC,EAAE,QAAQ,aAAa,MAAM,SAAS,SAAS,MAAM;AAC/E,QAAM,aAAa,WAAW;AAC9B,SAAO,UAAU,CAAC,UAAU,CAAC,OAAO,aAAa,IAAI,CAAC,UAAU,OAAO,WAAW;AACpF;AAEO,MAAM,YAAY,OAAO;AAAA,EAC9B,YAAY;AAAA,EACZ,YAAY;AACd;AAGO,MAAM,gBAAgB,CAAC,SAAS,EAAE,YAAY,SAAS,YAAY,UAAU,YAAY,MAAM;AACpG,MAAI,CAAC;AAAY,WAAO;AACxB,QAAM,OAAO,aAAa;AAC1B,QAAM,OAAO,CAAC,UAAU,UAAU,aAAa,WAAW,cAAc;AACxE,MAAI,CAAC,WAAW,UAAU,KAAK,UAAU,cAAc,OAAO,WAAW;AAAK,WAAO;AACrF,MAAI,WAAW,UAAU,KAAK,UAAU,cAAc,OAAO,WAAW;AAAK,WAAO;AACpF,SAAO;AACT;AAEO,MAAM,qBACX,CAAC,YACD,CAAC,EAAE,aAAa,SAAS,MAAM;AAC7B,MAAI;AAAS,WAAO,EAAE,MAAM,WAAW,YAAY;AACnD,SAAO;AAAA,IACL,MAAM;AAAA,EACR;AACF;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../../../scripts/build/transpile/react-shim.js", "../../../src/Toggle/toggleHelper.tsx"],
|
|
4
|
-
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "export const isValidDrag = ({ inside, circleWidth, drag, checked, boxWidth }) => {\n const difference = boxWidth - circleWidth;\n return checked ? !inside && -drag > difference / 2 : !inside && drag > boxWidth / 3;\n};\n\nexport const cleanDrag = () => ({\n startPoint: null,\n isDragging: false,\n});\n\n// eslint-disable-next-line complexity\nexport const calculateDrag = (clientX, { startPoint, checked, isDragging, boxWidth, circleWidth }) => {\n if (!isDragging) return null;\n const move = startPoint - clientX;\n const drag = !checked ? clientX - startPoint : boxWidth - circleWidth - move;\n if (!checked && clientX > 0 && clientX > startPoint && drag < boxWidth * 0.7) return drag;\n if (checked && clientX > 0 && clientX < startPoint && move < boxWidth * 0.7) return drag;\n return null;\n};\n\nexport const dragStartingPoints =\n (checked) =>\n
|
|
5
|
-
"mappings": "AAAA,YAAY,WAAW;ACAhB,MAAM,cAAc,CAAC,EAAE,QAAQ,aAAa,MAAM,SAAS,SAAS,MAAM;AAC/E,QAAM,aAAa,WAAW;AAC9B,SAAO,UAAU,CAAC,UAAU,CAAC,OAAO,aAAa,IAAI,CAAC,UAAU,OAAO,WAAW;AACpF;AAEO,MAAM,YAAY,OAAO;AAAA,EAC9B,YAAY;AAAA,EACZ,YAAY;AACd;AAGO,MAAM,gBAAgB,CAAC,SAAS,EAAE,YAAY,SAAS,YAAY,UAAU,YAAY,MAAM;AACpG,MAAI,CAAC;AAAY,WAAO;AACxB,QAAM,OAAO,aAAa;AAC1B,QAAM,OAAO,CAAC,UAAU,UAAU,aAAa,WAAW,cAAc;AACxE,MAAI,CAAC,WAAW,UAAU,KAAK,UAAU,cAAc,OAAO,WAAW;AAAK,WAAO;AACrF,MAAI,WAAW,UAAU,KAAK,UAAU,cAAc,OAAO,WAAW;AAAK,WAAO;AACpF,SAAO;AACT;AAEO,MAAM,qBACX,CAAC,
|
|
4
|
+
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "export const isValidDrag = ({ inside, circleWidth, drag, checked, boxWidth }) => {\n const difference = boxWidth - circleWidth;\n return checked ? !inside && -drag > difference / 2 : !inside && drag > boxWidth / 3;\n};\n\nexport const cleanDrag = () => ({\n startPoint: null,\n isDragging: false,\n});\n\n// eslint-disable-next-line complexity\nexport const calculateDrag = (clientX, { startPoint, checked, isDragging, boxWidth, circleWidth }) => {\n if (!isDragging) return null;\n const move = startPoint - clientX;\n const drag = !checked ? clientX - startPoint : boxWidth - circleWidth - move;\n if (!checked && clientX > 0 && clientX > startPoint && drag < boxWidth * 0.7) return drag;\n if (checked && clientX > 0 && clientX < startPoint && move < boxWidth * 0.7) return drag;\n return null;\n};\n\nexport const dragStartingPoints =\n (checked) =>\n ({ circleWidth, boxWidth }) => {\n if (checked) return { drag: boxWidth - circleWidth };\n return {\n drag: 0,\n };\n };\n"],
|
|
5
|
+
"mappings": "AAAA,YAAY,WAAW;ACAhB,MAAM,cAAc,CAAC,EAAE,QAAQ,aAAa,MAAM,SAAS,SAAS,MAAM;AAC/E,QAAM,aAAa,WAAW;AAC9B,SAAO,UAAU,CAAC,UAAU,CAAC,OAAO,aAAa,IAAI,CAAC,UAAU,OAAO,WAAW;AACpF;AAEO,MAAM,YAAY,OAAO;AAAA,EAC9B,YAAY;AAAA,EACZ,YAAY;AACd;AAGO,MAAM,gBAAgB,CAAC,SAAS,EAAE,YAAY,SAAS,YAAY,UAAU,YAAY,MAAM;AACpG,MAAI,CAAC;AAAY,WAAO;AACxB,QAAM,OAAO,aAAa;AAC1B,QAAM,OAAO,CAAC,UAAU,UAAU,aAAa,WAAW,cAAc;AACxE,MAAI,CAAC,WAAW,UAAU,KAAK,UAAU,cAAc,OAAO,WAAW;AAAK,WAAO;AACrF,MAAI,WAAW,UAAU,KAAK,UAAU,cAAc,OAAO,WAAW;AAAK,WAAO;AACpF,SAAO;AACT;AAEO,MAAM,qBACX,CAAC,YACD,CAAC,EAAE,aAAa,SAAS,MAAM;AAC7B,MAAI;AAAS,WAAO,EAAE,MAAM,WAAW,YAAY;AACnD,SAAO;AAAA,IACL,MAAM;AAAA,EACR;AACF;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@elliemae/ds-form",
|
|
3
|
-
"version": "3.12.0-
|
|
3
|
+
"version": "3.12.0-rc.1",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "ICE MT - Dimsum - Form",
|
|
6
6
|
"files": [
|
|
@@ -475,17 +475,17 @@
|
|
|
475
475
|
"indent": 4
|
|
476
476
|
},
|
|
477
477
|
"dependencies": {
|
|
478
|
-
"@elliemae/ds-button": "3.12.0-
|
|
479
|
-
"@elliemae/ds-classnames": "3.12.0-
|
|
480
|
-
"@elliemae/ds-common": "3.12.0-
|
|
481
|
-
"@elliemae/ds-grid": "3.12.0-
|
|
482
|
-
"@elliemae/ds-icons": "3.12.0-
|
|
483
|
-
"@elliemae/ds-shared": "3.12.0-
|
|
484
|
-
"@elliemae/ds-system": "3.12.0-
|
|
485
|
-
"@elliemae/ds-text-wrapper": "3.12.0-
|
|
486
|
-
"@elliemae/ds-tooltip": "3.12.0-
|
|
487
|
-
"@elliemae/ds-truncated-tooltip-text": "3.12.0-
|
|
488
|
-
"@elliemae/ds-utilities": "3.12.0-
|
|
478
|
+
"@elliemae/ds-button": "3.12.0-rc.1",
|
|
479
|
+
"@elliemae/ds-classnames": "3.12.0-rc.1",
|
|
480
|
+
"@elliemae/ds-common": "3.12.0-rc.1",
|
|
481
|
+
"@elliemae/ds-grid": "3.12.0-rc.1",
|
|
482
|
+
"@elliemae/ds-icons": "3.12.0-rc.1",
|
|
483
|
+
"@elliemae/ds-shared": "3.12.0-rc.1",
|
|
484
|
+
"@elliemae/ds-system": "3.12.0-rc.1",
|
|
485
|
+
"@elliemae/ds-text-wrapper": "3.12.0-rc.1",
|
|
486
|
+
"@elliemae/ds-tooltip": "3.12.0-rc.1",
|
|
487
|
+
"@elliemae/ds-truncated-tooltip-text": "3.12.0-rc.1",
|
|
488
|
+
"@elliemae/ds-utilities": "3.12.0-rc.1",
|
|
489
489
|
"memoize-one": "~6.0.0",
|
|
490
490
|
"moment": "~2.29.3",
|
|
491
491
|
"prop-types": "~15.8.1",
|
|
@@ -498,14 +498,14 @@
|
|
|
498
498
|
"@testing-library/jest-dom": "~5.16.4",
|
|
499
499
|
"@testing-library/react": "~12.1.3",
|
|
500
500
|
"@testing-library/user-event": "~13.5.0",
|
|
501
|
-
"styled-components": "~5.3.
|
|
501
|
+
"styled-components": "~5.3.6",
|
|
502
502
|
"styled-system": "~5.1.5"
|
|
503
503
|
},
|
|
504
504
|
"peerDependencies": {
|
|
505
505
|
"lodash": "^4.17.21",
|
|
506
506
|
"react": "~17.0.2",
|
|
507
507
|
"react-dom": "^17.0.2",
|
|
508
|
-
"styled-components": "
|
|
508
|
+
"styled-components": "~5.3.6",
|
|
509
509
|
"styled-system": "^5.1.5"
|
|
510
510
|
},
|
|
511
511
|
"publishConfig": {
|