@elliemae/ds-transition 3.12.0-next.1 → 3.12.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/collapse/styled.js +1 -4
- package/dist/cjs/collapse/styled.js.map +2 -2
- package/dist/cjs/fade/styled.js +1 -4
- package/dist/cjs/fade/styled.js.map +2 -2
- package/dist/esm/collapse/styled.js +2 -5
- package/dist/esm/collapse/styled.js.map +2 -2
- package/dist/esm/fade/styled.js +2 -5
- package/dist/esm/fade/styled.js.map +2 -2
- package/package.json +3 -3
|
@@ -42,7 +42,7 @@ const getCorrectHeight = ({ show, collapsedSize, expandedHeight }) => {
|
|
|
42
42
|
return typeof collapsedSize === "number" ? `${collapsedSize}px` : collapsedSize;
|
|
43
43
|
return expandedHeight ? `${expandedHeight}px` : "fit-content";
|
|
44
44
|
};
|
|
45
|
-
const StyledCollapse = (0, import_ds_system.styled)(
|
|
45
|
+
const StyledCollapse = (0, import_ds_system.styled)(import_ds_system.XStyledWrapper, {
|
|
46
46
|
name: import_theming.DSCollapseName,
|
|
47
47
|
slot: import_theming.DSCollapseSlots.WRAPPER
|
|
48
48
|
})`
|
|
@@ -53,9 +53,6 @@ const StyledCollapse = (0, import_ds_system.styled)("div", {
|
|
|
53
53
|
return `height: ${getCorrectHeight(props)};`;
|
|
54
54
|
}}
|
|
55
55
|
overflow: hidden;
|
|
56
|
-
${import_ds_system.space}
|
|
57
|
-
${import_ds_system.sizing}
|
|
58
|
-
${import_ds_system.layout}
|
|
59
56
|
`;
|
|
60
57
|
const StyledChildrenWrapper = (0, import_ds_system.styled)("div", { name: import_theming.DSCollapseName, slot: import_theming.DSCollapseSlots.CHILDREN_WRAPPER })`
|
|
61
58
|
width: fit-content;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../src/collapse/styled.tsx", "../../../../../scripts/build/transpile/react-shim.js"],
|
|
4
|
-
"sourcesContent": ["import { styled,
|
|
5
|
-
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADAvB,
|
|
4
|
+
"sourcesContent": ["import { styled, XStyledWrapper } from '@elliemae/ds-system';\nimport type { DSCollapseT } from './react-desc-prop-types';\nimport { DSCollapseName, DSCollapseSlots } from './theming';\n\ninterface StyledCollapseProps extends DSCollapseT.Props {\n expandedWidth: number;\n expandedHeight: number;\n}\n\nconst getCorrectPropertyToAnimate = ({ orientation }: StyledCollapseProps) =>\n orientation === 'horizontal' ? 'width' : 'height';\n\nconst getCorrectWidth = ({ show, collapsedSize, expandedWidth }: StyledCollapseProps) => {\n if (!show) return typeof collapsedSize === 'number' ? `${collapsedSize}px` : collapsedSize;\n return expandedWidth ? `${expandedWidth}px` : 'fit-content';\n};\n\nconst getCorrectHeight = ({ show, collapsedSize, expandedHeight }: StyledCollapseProps) => {\n if (!show) return typeof collapsedSize === 'number' ? `${collapsedSize}px` : collapsedSize;\n return expandedHeight ? `${expandedHeight}px` : 'fit-content';\n};\n\nexport const StyledCollapse = styled(XStyledWrapper, {\n name: DSCollapseName,\n slot: DSCollapseSlots.WRAPPER,\n})<StyledCollapseProps>`\n transition: ${getCorrectPropertyToAnimate} 300ms cubic-bezier(0.4, 0, 0.2, 1);\n ${(props) => {\n if (props.orientation === 'horizontal') return `width: ${getCorrectWidth(props)};`;\n return `height: ${getCorrectHeight(props)};`;\n }}\n overflow: hidden;\n`;\n\nexport const StyledChildrenWrapper = styled('div', { name: DSCollapseName, slot: DSCollapseSlots.CHILDREN_WRAPPER })`\n width: fit-content;\n height: fit-content;\n`;\n", "import * as React from 'react';\nexport { React };\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADAvB,uBAAuC;AAEvC,qBAAgD;AAOhD,MAAM,8BAA8B,CAAC,EAAE,YAAY,MACjD,gBAAgB,eAAe,UAAU;AAE3C,MAAM,kBAAkB,CAAC,EAAE,MAAM,eAAe,cAAc,MAA2B;AACvF,MAAI,CAAC;AAAM,WAAO,OAAO,kBAAkB,WAAW,GAAG,oBAAoB;AAC7E,SAAO,gBAAgB,GAAG,oBAAoB;AAChD;AAEA,MAAM,mBAAmB,CAAC,EAAE,MAAM,eAAe,eAAe,MAA2B;AACzF,MAAI,CAAC;AAAM,WAAO,OAAO,kBAAkB,WAAW,GAAG,oBAAoB;AAC7E,SAAO,iBAAiB,GAAG,qBAAqB;AAClD;AAEO,MAAM,qBAAiB,yBAAO,iCAAgB;AAAA,EACnD,MAAM;AAAA,EACN,MAAM,+BAAgB;AACxB,CAAC;AAAA,gBACe;AAAA,IACZ,CAAC,UAAU;AACX,MAAI,MAAM,gBAAgB;AAAc,WAAO,UAAU,gBAAgB,KAAK;AAC9E,SAAO,WAAW,iBAAiB,KAAK;AAC1C;AAAA;AAAA;AAIK,MAAM,4BAAwB,yBAAO,OAAO,EAAE,MAAM,+BAAgB,MAAM,+BAAgB,iBAAiB,CAAC;AAAA;AAAA;AAAA;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
package/dist/cjs/fade/styled.js
CHANGED
|
@@ -30,13 +30,10 @@ module.exports = __toCommonJS(styled_exports);
|
|
|
30
30
|
var React = __toESM(require("react"));
|
|
31
31
|
var import_ds_system = require("@elliemae/ds-system");
|
|
32
32
|
var import_theming = require("./theming");
|
|
33
|
-
const StyledFade = (0, import_ds_system.styled)(
|
|
33
|
+
const StyledFade = (0, import_ds_system.styled)(import_ds_system.XStyledWrapper, { name: import_theming.DSFadeName, slot: import_theming.DSFadeSlots.WRAPPER })`
|
|
34
34
|
transition: opacity 225ms cubic-bezier(0.4, 0, 0.2, 1);
|
|
35
35
|
opacity: ${({ show }) => show ? 1 : 0};
|
|
36
36
|
width: fit-content;
|
|
37
37
|
height: fit-content;
|
|
38
|
-
${import_ds_system.space}
|
|
39
|
-
${import_ds_system.sizing}
|
|
40
|
-
${import_ds_system.layout}
|
|
41
38
|
`;
|
|
42
39
|
//# sourceMappingURL=styled.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../src/fade/styled.tsx", "../../../../../scripts/build/transpile/react-shim.js"],
|
|
4
|
-
"sourcesContent": ["import { styled,
|
|
5
|
-
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADAvB,
|
|
4
|
+
"sourcesContent": ["import { styled, XStyledWrapper } from '@elliemae/ds-system';\nimport { DSFadeName, DSFadeSlots } from './theming';\n\nexport const StyledFade = styled(XStyledWrapper, { name: DSFadeName, slot: DSFadeSlots.WRAPPER })<{\n show: boolean;\n}>`\n transition: opacity 225ms cubic-bezier(0.4, 0, 0.2, 1);\n opacity: ${({ show }) => (show ? 1 : 0)};\n width: fit-content;\n height: fit-content;\n`;\n", "import * as React from 'react';\nexport { React };\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADAvB,uBAAuC;AACvC,qBAAwC;AAEjC,MAAM,iBAAa,yBAAO,iCAAgB,EAAE,MAAM,2BAAY,MAAM,2BAAY,QAAQ,CAAC;AAAA;AAAA,aAInF,CAAC,EAAE,KAAK,MAAO,OAAO,IAAI;AAAA;AAAA;AAAA;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
|
-
import { styled,
|
|
2
|
+
import { styled, XStyledWrapper } from "@elliemae/ds-system";
|
|
3
3
|
import { DSCollapseName, DSCollapseSlots } from "./theming";
|
|
4
4
|
const getCorrectPropertyToAnimate = ({ orientation }) => orientation === "horizontal" ? "width" : "height";
|
|
5
5
|
const getCorrectWidth = ({ show, collapsedSize, expandedWidth }) => {
|
|
@@ -12,7 +12,7 @@ const getCorrectHeight = ({ show, collapsedSize, expandedHeight }) => {
|
|
|
12
12
|
return typeof collapsedSize === "number" ? `${collapsedSize}px` : collapsedSize;
|
|
13
13
|
return expandedHeight ? `${expandedHeight}px` : "fit-content";
|
|
14
14
|
};
|
|
15
|
-
const StyledCollapse = styled(
|
|
15
|
+
const StyledCollapse = styled(XStyledWrapper, {
|
|
16
16
|
name: DSCollapseName,
|
|
17
17
|
slot: DSCollapseSlots.WRAPPER
|
|
18
18
|
})`
|
|
@@ -23,9 +23,6 @@ const StyledCollapse = styled("div", {
|
|
|
23
23
|
return `height: ${getCorrectHeight(props)};`;
|
|
24
24
|
}}
|
|
25
25
|
overflow: hidden;
|
|
26
|
-
${space}
|
|
27
|
-
${sizing}
|
|
28
|
-
${layout}
|
|
29
26
|
`;
|
|
30
27
|
const StyledChildrenWrapper = styled("div", { name: DSCollapseName, slot: DSCollapseSlots.CHILDREN_WRAPPER })`
|
|
31
28
|
width: fit-content;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../../../scripts/build/transpile/react-shim.js", "../../../src/collapse/styled.tsx"],
|
|
4
|
-
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import { styled,
|
|
5
|
-
"mappings": "AAAA,YAAY,WAAW;ACAvB,SAAS,QAAQ,
|
|
4
|
+
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import { styled, XStyledWrapper } from '@elliemae/ds-system';\nimport type { DSCollapseT } from './react-desc-prop-types';\nimport { DSCollapseName, DSCollapseSlots } from './theming';\n\ninterface StyledCollapseProps extends DSCollapseT.Props {\n expandedWidth: number;\n expandedHeight: number;\n}\n\nconst getCorrectPropertyToAnimate = ({ orientation }: StyledCollapseProps) =>\n orientation === 'horizontal' ? 'width' : 'height';\n\nconst getCorrectWidth = ({ show, collapsedSize, expandedWidth }: StyledCollapseProps) => {\n if (!show) return typeof collapsedSize === 'number' ? `${collapsedSize}px` : collapsedSize;\n return expandedWidth ? `${expandedWidth}px` : 'fit-content';\n};\n\nconst getCorrectHeight = ({ show, collapsedSize, expandedHeight }: StyledCollapseProps) => {\n if (!show) return typeof collapsedSize === 'number' ? `${collapsedSize}px` : collapsedSize;\n return expandedHeight ? `${expandedHeight}px` : 'fit-content';\n};\n\nexport const StyledCollapse = styled(XStyledWrapper, {\n name: DSCollapseName,\n slot: DSCollapseSlots.WRAPPER,\n})<StyledCollapseProps>`\n transition: ${getCorrectPropertyToAnimate} 300ms cubic-bezier(0.4, 0, 0.2, 1);\n ${(props) => {\n if (props.orientation === 'horizontal') return `width: ${getCorrectWidth(props)};`;\n return `height: ${getCorrectHeight(props)};`;\n }}\n overflow: hidden;\n`;\n\nexport const StyledChildrenWrapper = styled('div', { name: DSCollapseName, slot: DSCollapseSlots.CHILDREN_WRAPPER })`\n width: fit-content;\n height: fit-content;\n`;\n"],
|
|
5
|
+
"mappings": "AAAA,YAAY,WAAW;ACAvB,SAAS,QAAQ,sBAAsB;AAEvC,SAAS,gBAAgB,uBAAuB;AAOhD,MAAM,8BAA8B,CAAC,EAAE,YAAY,MACjD,gBAAgB,eAAe,UAAU;AAE3C,MAAM,kBAAkB,CAAC,EAAE,MAAM,eAAe,cAAc,MAA2B;AACvF,MAAI,CAAC;AAAM,WAAO,OAAO,kBAAkB,WAAW,GAAG,oBAAoB;AAC7E,SAAO,gBAAgB,GAAG,oBAAoB;AAChD;AAEA,MAAM,mBAAmB,CAAC,EAAE,MAAM,eAAe,eAAe,MAA2B;AACzF,MAAI,CAAC;AAAM,WAAO,OAAO,kBAAkB,WAAW,GAAG,oBAAoB;AAC7E,SAAO,iBAAiB,GAAG,qBAAqB;AAClD;AAEO,MAAM,iBAAiB,OAAO,gBAAgB;AAAA,EACnD,MAAM;AAAA,EACN,MAAM,gBAAgB;AACxB,CAAC;AAAA,gBACe;AAAA,IACZ,CAAC,UAAU;AACX,MAAI,MAAM,gBAAgB;AAAc,WAAO,UAAU,gBAAgB,KAAK;AAC9E,SAAO,WAAW,iBAAiB,KAAK;AAC1C;AAAA;AAAA;AAIK,MAAM,wBAAwB,OAAO,OAAO,EAAE,MAAM,gBAAgB,MAAM,gBAAgB,iBAAiB,CAAC;AAAA;AAAA;AAAA;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
package/dist/esm/fade/styled.js
CHANGED
|
@@ -1,14 +1,11 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
|
-
import { styled,
|
|
2
|
+
import { styled, XStyledWrapper } from "@elliemae/ds-system";
|
|
3
3
|
import { DSFadeName, DSFadeSlots } from "./theming";
|
|
4
|
-
const StyledFade = styled(
|
|
4
|
+
const StyledFade = styled(XStyledWrapper, { name: DSFadeName, slot: DSFadeSlots.WRAPPER })`
|
|
5
5
|
transition: opacity 225ms cubic-bezier(0.4, 0, 0.2, 1);
|
|
6
6
|
opacity: ${({ show }) => show ? 1 : 0};
|
|
7
7
|
width: fit-content;
|
|
8
8
|
height: fit-content;
|
|
9
|
-
${space}
|
|
10
|
-
${sizing}
|
|
11
|
-
${layout}
|
|
12
9
|
`;
|
|
13
10
|
export {
|
|
14
11
|
StyledFade
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../../../scripts/build/transpile/react-shim.js", "../../../src/fade/styled.tsx"],
|
|
4
|
-
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import { styled,
|
|
5
|
-
"mappings": "AAAA,YAAY,WAAW;ACAvB,SAAS,QAAQ,
|
|
4
|
+
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import { styled, XStyledWrapper } from '@elliemae/ds-system';\nimport { DSFadeName, DSFadeSlots } from './theming';\n\nexport const StyledFade = styled(XStyledWrapper, { name: DSFadeName, slot: DSFadeSlots.WRAPPER })<{\n show: boolean;\n}>`\n transition: opacity 225ms cubic-bezier(0.4, 0, 0.2, 1);\n opacity: ${({ show }) => (show ? 1 : 0)};\n width: fit-content;\n height: fit-content;\n`;\n"],
|
|
5
|
+
"mappings": "AAAA,YAAY,WAAW;ACAvB,SAAS,QAAQ,sBAAsB;AACvC,SAAS,YAAY,mBAAmB;AAEjC,MAAM,aAAa,OAAO,gBAAgB,EAAE,MAAM,YAAY,MAAM,YAAY,QAAQ,CAAC;AAAA;AAAA,aAInF,CAAC,EAAE,KAAK,MAAO,OAAO,IAAI;AAAA;AAAA;AAAA;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@elliemae/ds-transition",
|
|
3
|
-
"version": "3.12.0-
|
|
3
|
+
"version": "3.12.0-rc.0",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "ICE MT - Dimsum - Tooltip",
|
|
6
6
|
"files": [
|
|
@@ -35,8 +35,8 @@
|
|
|
35
35
|
"indent": 4
|
|
36
36
|
},
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"@elliemae/ds-system": "3.12.0-
|
|
39
|
-
"@elliemae/ds-utilities": "3.12.0-
|
|
38
|
+
"@elliemae/ds-system": "3.12.0-rc.0",
|
|
39
|
+
"@elliemae/ds-utilities": "3.12.0-rc.0"
|
|
40
40
|
},
|
|
41
41
|
"devDependencies": {
|
|
42
42
|
"react": "^17.0.2",
|