@elliemae/ds-legacy-transition 1.0.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.
- package/dist/cjs/collapse/DSCollapse.js +70 -0
- package/dist/cjs/collapse/DSCollapse.js.map +7 -0
- package/dist/cjs/collapse/index.js +30 -0
- package/dist/cjs/collapse/index.js.map +7 -0
- package/dist/cjs/collapse/react-desc-prop-types.js +48 -0
- package/dist/cjs/collapse/react-desc-prop-types.js.map +7 -0
- package/dist/cjs/collapse/styled.js +66 -0
- package/dist/cjs/collapse/styled.js.map +7 -0
- package/dist/cjs/collapse/theming.js +41 -0
- package/dist/cjs/collapse/theming.js.map +7 -0
- package/dist/cjs/collapse/useCollapse.js +45 -0
- package/dist/cjs/collapse/useCollapse.js.map +7 -0
- package/dist/cjs/fade/DSFade.js +53 -0
- package/dist/cjs/fade/DSFade.js.map +7 -0
- package/dist/cjs/fade/index.js +30 -0
- package/dist/cjs/fade/index.js.map +7 -0
- package/dist/cjs/fade/react-desc-prop-types.js +41 -0
- package/dist/cjs/fade/react-desc-prop-types.js.map +7 -0
- package/dist/cjs/fade/styled.js +44 -0
- package/dist/cjs/fade/styled.js.map +7 -0
- package/dist/cjs/fade/theming.js +40 -0
- package/dist/cjs/fade/theming.js.map +7 -0
- package/dist/cjs/fade/useFade.js +44 -0
- package/dist/cjs/fade/useFade.js.map +7 -0
- package/dist/cjs/index.js +31 -0
- package/dist/cjs/index.js.map +7 -0
- package/dist/cjs/package.json +7 -0
- package/dist/esm/collapse/DSCollapse.js +40 -0
- package/dist/esm/collapse/DSCollapse.js.map +7 -0
- package/dist/esm/collapse/index.js +3 -0
- package/dist/esm/collapse/index.js.map +7 -0
- package/dist/esm/collapse/react-desc-prop-types.js +18 -0
- package/dist/esm/collapse/react-desc-prop-types.js.map +7 -0
- package/dist/esm/collapse/styled.js +36 -0
- package/dist/esm/collapse/styled.js.map +7 -0
- package/dist/esm/collapse/theming.js +11 -0
- package/dist/esm/collapse/theming.js.map +7 -0
- package/dist/esm/collapse/useCollapse.js +20 -0
- package/dist/esm/collapse/useCollapse.js.map +7 -0
- package/dist/esm/fade/DSFade.js +23 -0
- package/dist/esm/fade/DSFade.js.map +7 -0
- package/dist/esm/fade/index.js +3 -0
- package/dist/esm/fade/index.js.map +7 -0
- package/dist/esm/fade/react-desc-prop-types.js +11 -0
- package/dist/esm/fade/react-desc-prop-types.js.map +7 -0
- package/dist/esm/fade/styled.js +14 -0
- package/dist/esm/fade/styled.js.map +7 -0
- package/dist/esm/fade/theming.js +10 -0
- package/dist/esm/fade/theming.js.map +7 -0
- package/dist/esm/fade/useFade.js +14 -0
- package/dist/esm/fade/useFade.js.map +7 -0
- package/dist/esm/index.js +4 -0
- package/dist/esm/index.js.map +7 -0
- package/dist/esm/package.json +7 -0
- package/dist/types/collapse/DSCollapse.d.ts +4 -0
- package/dist/types/collapse/index.d.ts +1 -0
- package/dist/types/collapse/react-desc-prop-types.d.ts +13 -0
- package/dist/types/collapse/styled.d.ts +8 -0
- package/dist/types/collapse/theming.d.ts +5 -0
- package/dist/types/collapse/useCollapse.d.ts +6 -0
- package/dist/types/fade/DSFade.d.ts +4 -0
- package/dist/types/fade/index.d.ts +1 -0
- package/dist/types/fade/react-desc-prop-types.d.ts +10 -0
- package/dist/types/fade/styled.d.ts +3 -0
- package/dist/types/fade/theming.d.ts +4 -0
- package/dist/types/fade/useFade.d.ts +6 -0
- package/dist/types/index.d.ts +2 -0
- package/package.json +68 -0
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __create = Object.create;
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
7
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
+
var __export = (target, all) => {
|
|
9
|
+
for (var name in all)
|
|
10
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
11
|
+
};
|
|
12
|
+
var __copyProps = (to, from, except, desc) => {
|
|
13
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
14
|
+
for (let key of __getOwnPropNames(from))
|
|
15
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
16
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
17
|
+
}
|
|
18
|
+
return to;
|
|
19
|
+
};
|
|
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.
|
|
25
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
26
|
+
mod
|
|
27
|
+
));
|
|
28
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
29
|
+
var useFade_exports = {};
|
|
30
|
+
__export(useFade_exports, {
|
|
31
|
+
useFade: () => useFade
|
|
32
|
+
});
|
|
33
|
+
module.exports = __toCommonJS(useFade_exports);
|
|
34
|
+
var React = __toESM(require("react"));
|
|
35
|
+
var import_ds_legacy_props_helpers = require("@elliemae/ds-legacy-props-helpers");
|
|
36
|
+
var import_react_desc_prop_types = require("./react-desc-prop-types.js");
|
|
37
|
+
var import_theming = require("./theming.js");
|
|
38
|
+
const useFade = (props) => {
|
|
39
|
+
(0, import_ds_legacy_props_helpers.useValidateTypescriptPropTypes)(props, import_react_desc_prop_types.DSFadePropTypes, import_theming.DSFadeName);
|
|
40
|
+
const globalAttributes = (0, import_ds_legacy_props_helpers.useGetGlobalAttributes)(props);
|
|
41
|
+
const xstyledProps = (0, import_ds_legacy_props_helpers.useGetXstyledProps)(props);
|
|
42
|
+
return { propsWithDefault: props, globalAttributes, xstyledProps };
|
|
43
|
+
};
|
|
44
|
+
//# sourceMappingURL=useFade.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/fade/useFade.ts", "../../../../../../scripts/build/transpile/react-shim.js"],
|
|
4
|
+
"sourcesContent": ["import { useGetGlobalAttributes, useGetXstyledProps, useValidateTypescriptPropTypes } from '@elliemae/ds-legacy-props-helpers';\nimport type { DSFadeT } from './react-desc-prop-types.js';\nimport { DSFadePropTypes } from './react-desc-prop-types.js';\nimport { DSFadeName } from './theming.js';\n\nexport const useFade = (props: DSFadeT.Props) => {\n useValidateTypescriptPropTypes(props, DSFadePropTypes, DSFadeName);\n const globalAttributes = useGetGlobalAttributes(props);\n const xstyledProps = useGetXstyledProps(props);\n return { propsWithDefault: props, globalAttributes, xstyledProps };\n};\n", "import * as React from 'react';\nexport { React };\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADAvB,qCAA2F;AAE3F,mCAAgC;AAChC,qBAA2B;AAEpB,MAAM,UAAU,CAAC,UAAyB;AAC/C,qEAA+B,OAAO,8CAAiB,yBAAU;AACjE,QAAM,uBAAmB,uDAAuB,KAAK;AACrD,QAAM,mBAAe,mDAAmB,KAAK;AAC7C,SAAO,EAAE,kBAAkB,OAAO,kBAAkB,aAAa;AACnE;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __create = Object.create;
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
7
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
+
var __copyProps = (to, from, except, desc) => {
|
|
9
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
10
|
+
for (let key of __getOwnPropNames(from))
|
|
11
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
12
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
13
|
+
}
|
|
14
|
+
return to;
|
|
15
|
+
};
|
|
16
|
+
var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
|
|
17
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
18
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
19
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
20
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
21
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
22
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
23
|
+
mod
|
|
24
|
+
));
|
|
25
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
26
|
+
var src_exports = {};
|
|
27
|
+
module.exports = __toCommonJS(src_exports);
|
|
28
|
+
var React = __toESM(require("react"));
|
|
29
|
+
__reExport(src_exports, require("./fade/index.js"), module.exports);
|
|
30
|
+
__reExport(src_exports, require("./collapse/index.js"), module.exports);
|
|
31
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/index.ts", "../../../../../scripts/build/transpile/react-shim.js"],
|
|
4
|
+
"sourcesContent": ["export * from './fade/index.js';\nexport * from './collapse/index.js';\n", "import * as React from 'react';\nexport { React };\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;ACAA,YAAuB;ADAvB,wBAAc,4BAAd;AACA,wBAAc,gCADd;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import { jsx } from "react/jsx-runtime";
|
|
3
|
+
import { useRef } from "react";
|
|
4
|
+
import { useOnElementResize } from "@elliemae/ds-legacy-utilities";
|
|
5
|
+
import { describe } from "@elliemae/ds-legacy-props-helpers";
|
|
6
|
+
import { useCollapse } from "./useCollapse.js";
|
|
7
|
+
import { DSCollapsePropTypes } from "./react-desc-prop-types.js";
|
|
8
|
+
import { StyledCollapse, StyledChildrenWrapper } from "./styled.js";
|
|
9
|
+
const DSCollapse = (props) => {
|
|
10
|
+
const {
|
|
11
|
+
propsWithDefault: { show, orientation, collapsedSize, children },
|
|
12
|
+
globalAttributes,
|
|
13
|
+
xstyledProps
|
|
14
|
+
} = useCollapse(props);
|
|
15
|
+
const ref = useRef(null);
|
|
16
|
+
const { width: expandedWidth, height: expandedHeight } = useOnElementResize(ref);
|
|
17
|
+
return /* @__PURE__ */ jsx(
|
|
18
|
+
StyledCollapse,
|
|
19
|
+
{
|
|
20
|
+
"data-test-id": "ds-transition-collapse",
|
|
21
|
+
show,
|
|
22
|
+
orientation,
|
|
23
|
+
collapsedSize,
|
|
24
|
+
expandedWidth,
|
|
25
|
+
expandedHeight,
|
|
26
|
+
...globalAttributes,
|
|
27
|
+
...xstyledProps,
|
|
28
|
+
children: /* @__PURE__ */ jsx(StyledChildrenWrapper, { ref, children })
|
|
29
|
+
}
|
|
30
|
+
);
|
|
31
|
+
};
|
|
32
|
+
DSCollapse.propTypes = DSCollapsePropTypes;
|
|
33
|
+
DSCollapse.displayName = "DSCollapse";
|
|
34
|
+
const DSCollapseWithSchema = describe(DSCollapse);
|
|
35
|
+
DSCollapseWithSchema.propTypes = DSCollapsePropTypes;
|
|
36
|
+
export {
|
|
37
|
+
DSCollapse,
|
|
38
|
+
DSCollapseWithSchema
|
|
39
|
+
};
|
|
40
|
+
//# sourceMappingURL=DSCollapse.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../../../../scripts/build/transpile/react-shim.js", "../../../src/collapse/DSCollapse.tsx"],
|
|
4
|
+
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import { useRef } from 'react';\nimport { useOnElementResize } from '@elliemae/ds-legacy-utilities';\nimport { describe } from '@elliemae/ds-legacy-props-helpers';\nimport { useCollapse } from './useCollapse.js';\nimport type { DSCollapseT } from './react-desc-prop-types.js';\nimport { DSCollapsePropTypes } from './react-desc-prop-types.js';\nimport { StyledCollapse, StyledChildrenWrapper } from './styled.js';\n\nexport const DSCollapse: React.ComponentType<DSCollapseT.Props> = (props) => {\n const {\n propsWithDefault: { show, orientation, collapsedSize, children },\n globalAttributes,\n xstyledProps,\n } = useCollapse(props);\n\n const ref = useRef<HTMLDivElement>(null);\n\n const { width: expandedWidth, height: expandedHeight } = useOnElementResize(ref);\n\n return (\n <StyledCollapse\n data-test-id=\"ds-transition-collapse\"\n show={show}\n orientation={orientation}\n collapsedSize={collapsedSize}\n expandedWidth={expandedWidth}\n expandedHeight={expandedHeight}\n {...globalAttributes}\n {...xstyledProps}\n >\n <StyledChildrenWrapper ref={ref}>{children}</StyledChildrenWrapper>\n </StyledCollapse>\n );\n};\n\nDSCollapse.propTypes = DSCollapsePropTypes;\nDSCollapse.displayName = 'DSCollapse';\nexport const DSCollapseWithSchema = describe(DSCollapse);\nDSCollapseWithSchema.propTypes = DSCollapsePropTypes;\n"],
|
|
5
|
+
"mappings": "AAAA,YAAY,WAAW;AC8BjB;AA9BN,SAAS,cAAc;AACvB,SAAS,0BAA0B;AACnC,SAAS,gBAAgB;AACzB,SAAS,mBAAmB;AAE5B,SAAS,2BAA2B;AACpC,SAAS,gBAAgB,6BAA6B;AAE/C,MAAM,aAAqD,CAAC,UAAU;AAC3E,QAAM;AAAA,IACJ,kBAAkB,EAAE,MAAM,aAAa,eAAe,SAAS;AAAA,IAC/D;AAAA,IACA;AAAA,EACF,IAAI,YAAY,KAAK;AAErB,QAAM,MAAM,OAAuB,IAAI;AAEvC,QAAM,EAAE,OAAO,eAAe,QAAQ,eAAe,IAAI,mBAAmB,GAAG;AAE/E,SACE;AAAA,IAAC;AAAA;AAAA,MACC,gBAAa;AAAA,MACb;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACC,GAAG;AAAA,MACH,GAAG;AAAA,MAEJ,8BAAC,yBAAsB,KAAW,UAAS;AAAA;AAAA,EAC7C;AAEJ;AAEA,WAAW,YAAY;AACvB,WAAW,cAAc;AAClB,MAAM,uBAAuB,SAAS,UAAU;AACvD,qBAAqB,YAAY;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../../../../scripts/build/transpile/react-shim.js", "../../../src/collapse/index.ts"],
|
|
4
|
+
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "export * from './DSCollapse.js';\n"],
|
|
5
|
+
"mappings": "AAAA,YAAY,WAAW;ACAvB,cAAc;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import { PropTypes, globalAttributesPropTypes, xstyledPropTypes } from "@elliemae/ds-legacy-props-helpers";
|
|
3
|
+
const defaultProps = {
|
|
4
|
+
orientation: "horizontal",
|
|
5
|
+
collapsedSize: "0px"
|
|
6
|
+
};
|
|
7
|
+
const DSCollapsePropTypes = {
|
|
8
|
+
...globalAttributesPropTypes,
|
|
9
|
+
...xstyledPropTypes,
|
|
10
|
+
show: PropTypes.bool.description("Whether to show the inner element or not").isRequired,
|
|
11
|
+
orientation: PropTypes.oneOf(["horizontal", "vertical"]).description("Whether this element should slide from left to right or from top to bottom").defaultValue("horizontal"),
|
|
12
|
+
collapsedSize: PropTypes.oneOfType([PropTypes.number, PropTypes.string]).description("Size when collapsed").defaultValue(0)
|
|
13
|
+
};
|
|
14
|
+
export {
|
|
15
|
+
DSCollapsePropTypes,
|
|
16
|
+
defaultProps
|
|
17
|
+
};
|
|
18
|
+
//# sourceMappingURL=react-desc-prop-types.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../../../../scripts/build/transpile/react-shim.js", "../../../src/collapse/react-desc-prop-types.tsx"],
|
|
4
|
+
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import type {} from '@elliemae/ds-legacy-utilities';\nimport type { GlobalAttributesT, XstyledProps } from '@elliemae/ds-legacy-props-helpers';\nimport { PropTypes, globalAttributesPropTypes, xstyledPropTypes } from '@elliemae/ds-legacy-props-helpers';\nimport type { WeakValidationMap } from 'react';\n\nexport declare namespace DSCollapseT {\n interface IProps {\n show: boolean;\n orientation?: 'horizontal' | 'vertical';\n collapsedSize?: number | string;\n }\n\n export interface Props extends IProps, Omit<GlobalAttributesT<HTMLDivElement>, keyof IProps>, XstyledProps {}\n}\n\nexport const defaultProps: Partial<DSCollapseT.Props> = {\n orientation: 'horizontal',\n collapsedSize: '0px',\n};\n\nexport const DSCollapsePropTypes = {\n ...globalAttributesPropTypes,\n ...xstyledPropTypes,\n show: PropTypes.bool.description('Whether to show the inner element or not').isRequired,\n orientation: PropTypes.oneOf(['horizontal', 'vertical'])\n .description('Whether this element should slide from left to right or from top to bottom')\n .defaultValue('horizontal'),\n collapsedSize: PropTypes.oneOfType([PropTypes.number, PropTypes.string])\n .description('Size when collapsed')\n .defaultValue(0),\n} as WeakValidationMap<unknown>;\n"],
|
|
5
|
+
"mappings": "AAAA,YAAY,WAAW;ACEvB,SAAS,WAAW,2BAA2B,wBAAwB;AAahE,MAAM,eAA2C;AAAA,EACtD,aAAa;AAAA,EACb,eAAe;AACjB;AAEO,MAAM,sBAAsB;AAAA,EACjC,GAAG;AAAA,EACH,GAAG;AAAA,EACH,MAAM,UAAU,KAAK,YAAY,0CAA0C,EAAE;AAAA,EAC7E,aAAa,UAAU,MAAM,CAAC,cAAc,UAAU,CAAC,EACpD,YAAY,4EAA4E,EACxF,aAAa,YAAY;AAAA,EAC5B,eAAe,UAAU,UAAU,CAAC,UAAU,QAAQ,UAAU,MAAM,CAAC,EACpE,YAAY,qBAAqB,EACjC,aAAa,CAAC;AACnB;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import { styled, xStyledCommonProps } from "@elliemae/ds-legacy-system";
|
|
3
|
+
import { DSCollapseName, DSCollapseSlots } from "./theming.js";
|
|
4
|
+
const getCorrectPropertyToAnimate = ({ orientation }) => orientation === "horizontal" ? "width" : "height";
|
|
5
|
+
const getCorrectWidth = ({ show, collapsedSize, expandedWidth }) => {
|
|
6
|
+
if (!show)
|
|
7
|
+
return typeof collapsedSize === "number" ? `${collapsedSize}px` : collapsedSize;
|
|
8
|
+
return expandedWidth ? `${expandedWidth}px` : "fit-content";
|
|
9
|
+
};
|
|
10
|
+
const getCorrectHeight = ({ show, collapsedSize, expandedHeight }) => {
|
|
11
|
+
if (!show)
|
|
12
|
+
return typeof collapsedSize === "number" ? `${collapsedSize}px` : collapsedSize;
|
|
13
|
+
return expandedHeight ? `${expandedHeight}px` : "fit-content";
|
|
14
|
+
};
|
|
15
|
+
const StyledCollapse = styled("div", {
|
|
16
|
+
name: DSCollapseName,
|
|
17
|
+
slot: DSCollapseSlots.WRAPPER
|
|
18
|
+
})`
|
|
19
|
+
transition: ${getCorrectPropertyToAnimate} 300ms cubic-bezier(0.4, 0, 0.2, 1);
|
|
20
|
+
${(props) => {
|
|
21
|
+
if (props.orientation === "horizontal")
|
|
22
|
+
return `width: ${getCorrectWidth(props)};`;
|
|
23
|
+
return `height: ${getCorrectHeight(props)};`;
|
|
24
|
+
}}
|
|
25
|
+
overflow: hidden;
|
|
26
|
+
${xStyledCommonProps}
|
|
27
|
+
`;
|
|
28
|
+
const StyledChildrenWrapper = styled("div", { name: DSCollapseName, slot: DSCollapseSlots.CHILDREN_WRAPPER })`
|
|
29
|
+
width: fit-content;
|
|
30
|
+
height: fit-content;
|
|
31
|
+
`;
|
|
32
|
+
export {
|
|
33
|
+
StyledChildrenWrapper,
|
|
34
|
+
StyledCollapse
|
|
35
|
+
};
|
|
36
|
+
//# sourceMappingURL=styled.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 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, xStyledCommonProps } from '@elliemae/ds-legacy-system';\nimport type { DSCollapseT } from './react-desc-prop-types.js';\nimport { DSCollapseName, DSCollapseSlots } from './theming.js';\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('div', {\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 ${xStyledCommonProps}\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,0BAA0B;AAE3C,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,OAAO;AAAA,EAC1C,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,IAEE;AAAA;AAGG,MAAM,wBAAwB,OAAO,OAAO,EAAE,MAAM,gBAAgB,MAAM,gBAAgB,iBAAiB,CAAC;AAAA;AAAA;AAAA;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../../../../scripts/build/transpile/react-shim.js", "../../../src/collapse/theming.ts"],
|
|
4
|
+
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "export const DSCollapseName = 'DSCollapse';\n\nexport const DSCollapseSlots = {\n WRAPPER: 'root',\n CHILDREN_WRAPPER: 'children-wrapper',\n};\n"],
|
|
5
|
+
"mappings": "AAAA,YAAY,WAAW;ACAhB,MAAM,iBAAiB;AAEvB,MAAM,kBAAkB;AAAA,EAC7B,SAAS;AAAA,EACT,kBAAkB;AACpB;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import {
|
|
3
|
+
useGetGlobalAttributes,
|
|
4
|
+
useGetXstyledProps,
|
|
5
|
+
useValidateTypescriptPropTypes,
|
|
6
|
+
useMemoMergePropsWithDefault
|
|
7
|
+
} from "@elliemae/ds-legacy-props-helpers";
|
|
8
|
+
import { DSCollapsePropTypes, defaultProps } from "./react-desc-prop-types.js";
|
|
9
|
+
import { DSCollapseName } from "./theming.js";
|
|
10
|
+
const useCollapse = (props) => {
|
|
11
|
+
const propsWithDefault = useMemoMergePropsWithDefault(props, defaultProps);
|
|
12
|
+
useValidateTypescriptPropTypes(propsWithDefault, DSCollapsePropTypes, DSCollapseName);
|
|
13
|
+
const globalAttributes = useGetGlobalAttributes(propsWithDefault);
|
|
14
|
+
const xstyledProps = useGetXstyledProps(propsWithDefault);
|
|
15
|
+
return { propsWithDefault, globalAttributes, xstyledProps };
|
|
16
|
+
};
|
|
17
|
+
export {
|
|
18
|
+
useCollapse
|
|
19
|
+
};
|
|
20
|
+
//# sourceMappingURL=useCollapse.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../../../../scripts/build/transpile/react-shim.js", "../../../src/collapse/useCollapse.ts"],
|
|
4
|
+
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import {\n useGetGlobalAttributes,\n useGetXstyledProps,\n useValidateTypescriptPropTypes,\n useMemoMergePropsWithDefault,\n} from '@elliemae/ds-legacy-props-helpers';\nimport type { DSCollapseT } from './react-desc-prop-types.js';\nimport { DSCollapsePropTypes, defaultProps } from './react-desc-prop-types.js';\nimport { DSCollapseName } from './theming.js';\n\nexport const useCollapse = (props: DSCollapseT.Props) => {\n const propsWithDefault = useMemoMergePropsWithDefault(props, defaultProps);\n useValidateTypescriptPropTypes(propsWithDefault, DSCollapsePropTypes, DSCollapseName);\n const globalAttributes = useGetGlobalAttributes(propsWithDefault);\n const xstyledProps = useGetXstyledProps(propsWithDefault);\n return { propsWithDefault, globalAttributes, xstyledProps };\n};\n"],
|
|
5
|
+
"mappings": "AAAA,YAAY,WAAW;ACAvB;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACK;AAEP,SAAS,qBAAqB,oBAAoB;AAClD,SAAS,sBAAsB;AAExB,MAAM,cAAc,CAAC,UAA6B;AACvD,QAAM,mBAAmB,6BAA6B,OAAO,YAAY;AACzE,iCAA+B,kBAAkB,qBAAqB,cAAc;AACpF,QAAM,mBAAmB,uBAAuB,gBAAgB;AAChE,QAAM,eAAe,mBAAmB,gBAAgB;AACxD,SAAO,EAAE,kBAAkB,kBAAkB,aAAa;AAC5D;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import { jsx } from "react/jsx-runtime";
|
|
3
|
+
import { describe } from "@elliemae/ds-legacy-props-helpers";
|
|
4
|
+
import { useFade } from "./useFade.js";
|
|
5
|
+
import { DSFadePropTypes } from "./react-desc-prop-types.js";
|
|
6
|
+
import { StyledFade } from "./styled.js";
|
|
7
|
+
const DSFade = (props) => {
|
|
8
|
+
const {
|
|
9
|
+
propsWithDefault: { show, children },
|
|
10
|
+
globalAttributes,
|
|
11
|
+
xstyledProps
|
|
12
|
+
} = useFade(props);
|
|
13
|
+
return /* @__PURE__ */ jsx(StyledFade, { "data-test-id": "ds-transition-fade", show, ...globalAttributes, ...xstyledProps, children });
|
|
14
|
+
};
|
|
15
|
+
DSFade.propTypes = DSFadePropTypes;
|
|
16
|
+
DSFade.displayName = "DSFade";
|
|
17
|
+
const DSFadeWithSchema = describe(DSFade);
|
|
18
|
+
DSFadeWithSchema.propTypes = DSFadePropTypes;
|
|
19
|
+
export {
|
|
20
|
+
DSFade,
|
|
21
|
+
DSFadeWithSchema
|
|
22
|
+
};
|
|
23
|
+
//# sourceMappingURL=DSFade.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../../../../scripts/build/transpile/react-shim.js", "../../../src/fade/DSFade.tsx"],
|
|
4
|
+
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import { describe } from '@elliemae/ds-legacy-props-helpers';\nimport { useFade } from './useFade.js';\nimport type { DSFadeT } from './react-desc-prop-types.js';\nimport { DSFadePropTypes } from './react-desc-prop-types.js';\nimport { StyledFade } from './styled.js';\n\nexport const DSFade: React.ComponentType<DSFadeT.Props> = (props) => {\n const {\n propsWithDefault: { show, children },\n globalAttributes,\n xstyledProps,\n } = useFade(props);\n\n return (\n <StyledFade data-test-id=\"ds-transition-fade\" show={show} {...globalAttributes} {...xstyledProps}>\n {children}\n </StyledFade>\n );\n};\n\nDSFade.propTypes = DSFadePropTypes;\nDSFade.displayName = 'DSFade';\nexport const DSFadeWithSchema = describe(DSFade);\nDSFadeWithSchema.propTypes = DSFadePropTypes;\n"],
|
|
5
|
+
"mappings": "AAAA,YAAY,WAAW;ACcnB;AAdJ,SAAS,gBAAgB;AACzB,SAAS,eAAe;AAExB,SAAS,uBAAuB;AAChC,SAAS,kBAAkB;AAEpB,MAAM,SAA6C,CAAC,UAAU;AACnE,QAAM;AAAA,IACJ,kBAAkB,EAAE,MAAM,SAAS;AAAA,IACnC;AAAA,IACA;AAAA,EACF,IAAI,QAAQ,KAAK;AAEjB,SACE,oBAAC,cAAW,gBAAa,sBAAqB,MAAa,GAAG,kBAAmB,GAAG,cACjF,UACH;AAEJ;AAEA,OAAO,YAAY;AACnB,OAAO,cAAc;AACd,MAAM,mBAAmB,SAAS,MAAM;AAC/C,iBAAiB,YAAY;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../../../../scripts/build/transpile/react-shim.js", "../../../src/fade/index.ts"],
|
|
4
|
+
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "export * from './DSFade.js';\n"],
|
|
5
|
+
"mappings": "AAAA,YAAY,WAAW;ACAvB,cAAc;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import { PropTypes, globalAttributesPropTypes, xstyledPropTypes } from "@elliemae/ds-legacy-props-helpers";
|
|
3
|
+
const DSFadePropTypes = {
|
|
4
|
+
...globalAttributesPropTypes,
|
|
5
|
+
...xstyledPropTypes,
|
|
6
|
+
show: PropTypes.bool.description("Whether to show the inner element or not").isRequired
|
|
7
|
+
};
|
|
8
|
+
export {
|
|
9
|
+
DSFadePropTypes
|
|
10
|
+
};
|
|
11
|
+
//# sourceMappingURL=react-desc-prop-types.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../../../../scripts/build/transpile/react-shim.js", "../../../src/fade/react-desc-prop-types.tsx"],
|
|
4
|
+
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import type {} from '@elliemae/ds-legacy-utilities';\nimport type { GlobalAttributesT, XstyledProps } from '@elliemae/ds-legacy-props-helpers';\nimport { PropTypes, globalAttributesPropTypes, xstyledPropTypes } from '@elliemae/ds-legacy-props-helpers';\nimport type { WeakValidationMap } from 'react';\n\nexport declare namespace DSFadeT {\n interface IProps {\n show: boolean;\n }\n\n export interface Props extends IProps, Omit<GlobalAttributesT<HTMLInputElement>, keyof IProps>, XstyledProps {}\n}\n\nexport const DSFadePropTypes = {\n ...globalAttributesPropTypes,\n ...xstyledPropTypes,\n show: PropTypes.bool.description('Whether to show the inner element or not').isRequired,\n} as WeakValidationMap<unknown>;\n"],
|
|
5
|
+
"mappings": "AAAA,YAAY,WAAW;ACEvB,SAAS,WAAW,2BAA2B,wBAAwB;AAWhE,MAAM,kBAAkB;AAAA,EAC7B,GAAG;AAAA,EACH,GAAG;AAAA,EACH,MAAM,UAAU,KAAK,YAAY,0CAA0C,EAAE;AAC/E;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import { styled, xStyledCommonProps } from "@elliemae/ds-legacy-system";
|
|
3
|
+
import { DSFadeName, DSFadeSlots } from "./theming.js";
|
|
4
|
+
const StyledFade = styled("div", { name: DSFadeName, slot: DSFadeSlots.WRAPPER })`
|
|
5
|
+
transition: opacity 225ms cubic-bezier(0.4, 0, 0.2, 1);
|
|
6
|
+
opacity: ${({ show }) => show ? 1 : 0};
|
|
7
|
+
width: fit-content;
|
|
8
|
+
height: fit-content;
|
|
9
|
+
${xStyledCommonProps}
|
|
10
|
+
`;
|
|
11
|
+
export {
|
|
12
|
+
StyledFade
|
|
13
|
+
};
|
|
14
|
+
//# sourceMappingURL=styled.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 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, xStyledCommonProps } from '@elliemae/ds-legacy-system';\nimport { DSFadeName, DSFadeSlots } from './theming.js';\n\nexport const StyledFade = styled('div', { 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 ${xStyledCommonProps}\n`;\n"],
|
|
5
|
+
"mappings": "AAAA,YAAY,WAAW;ACAvB,SAAS,QAAQ,0BAA0B;AAC3C,SAAS,YAAY,mBAAmB;AAEjC,MAAM,aAAa,OAAO,OAAO,EAAE,MAAM,YAAY,MAAM,YAAY,QAAQ,CAAC;AAAA;AAAA,aAI1E,CAAC,EAAE,KAAK,MAAO,OAAO,IAAI;AAAA;AAAA;AAAA,IAGnC;AAAA;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../../../../scripts/build/transpile/react-shim.js", "../../../src/fade/theming.ts"],
|
|
4
|
+
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "export const DSFadeName = 'DSFade';\n\nexport const DSFadeSlots = {\n WRAPPER: 'root',\n};\n"],
|
|
5
|
+
"mappings": "AAAA,YAAY,WAAW;ACAhB,MAAM,aAAa;AAEnB,MAAM,cAAc;AAAA,EACzB,SAAS;AACX;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import { useGetGlobalAttributes, useGetXstyledProps, useValidateTypescriptPropTypes } from "@elliemae/ds-legacy-props-helpers";
|
|
3
|
+
import { DSFadePropTypes } from "./react-desc-prop-types.js";
|
|
4
|
+
import { DSFadeName } from "./theming.js";
|
|
5
|
+
const useFade = (props) => {
|
|
6
|
+
useValidateTypescriptPropTypes(props, DSFadePropTypes, DSFadeName);
|
|
7
|
+
const globalAttributes = useGetGlobalAttributes(props);
|
|
8
|
+
const xstyledProps = useGetXstyledProps(props);
|
|
9
|
+
return { propsWithDefault: props, globalAttributes, xstyledProps };
|
|
10
|
+
};
|
|
11
|
+
export {
|
|
12
|
+
useFade
|
|
13
|
+
};
|
|
14
|
+
//# sourceMappingURL=useFade.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../../../../scripts/build/transpile/react-shim.js", "../../../src/fade/useFade.ts"],
|
|
4
|
+
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import { useGetGlobalAttributes, useGetXstyledProps, useValidateTypescriptPropTypes } from '@elliemae/ds-legacy-props-helpers';\nimport type { DSFadeT } from './react-desc-prop-types.js';\nimport { DSFadePropTypes } from './react-desc-prop-types.js';\nimport { DSFadeName } from './theming.js';\n\nexport const useFade = (props: DSFadeT.Props) => {\n useValidateTypescriptPropTypes(props, DSFadePropTypes, DSFadeName);\n const globalAttributes = useGetGlobalAttributes(props);\n const xstyledProps = useGetXstyledProps(props);\n return { propsWithDefault: props, globalAttributes, xstyledProps };\n};\n"],
|
|
5
|
+
"mappings": "AAAA,YAAY,WAAW;ACAvB,SAAS,wBAAwB,oBAAoB,sCAAsC;AAE3F,SAAS,uBAAuB;AAChC,SAAS,kBAAkB;AAEpB,MAAM,UAAU,CAAC,UAAyB;AAC/C,iCAA+B,OAAO,iBAAiB,UAAU;AACjE,QAAM,mBAAmB,uBAAuB,KAAK;AACrD,QAAM,eAAe,mBAAmB,KAAK;AAC7C,SAAO,EAAE,kBAAkB,OAAO,kBAAkB,aAAa;AACnE;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../../../scripts/build/transpile/react-shim.js", "../../src/index.ts"],
|
|
4
|
+
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "export * from './fade/index.js';\nexport * from './collapse/index.js';\n"],
|
|
5
|
+
"mappings": "AAAA,YAAY,WAAW;ACAvB,cAAc;AACd,cAAc;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import type { DSCollapseT } from './react-desc-prop-types.js';
|
|
3
|
+
export declare const DSCollapse: React.ComponentType<DSCollapseT.Props>;
|
|
4
|
+
export declare const DSCollapseWithSchema: import("@elliemae/ds-legacy-props-helpers/dist/types/propTypes/types.js").DocumentedReactComponent<DSCollapseT.Props>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './DSCollapse.js';
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { GlobalAttributesT, XstyledProps } from '@elliemae/ds-legacy-props-helpers';
|
|
2
|
+
import type { WeakValidationMap } from 'react';
|
|
3
|
+
export declare namespace DSCollapseT {
|
|
4
|
+
interface IProps {
|
|
5
|
+
show: boolean;
|
|
6
|
+
orientation?: 'horizontal' | 'vertical';
|
|
7
|
+
collapsedSize?: number | string;
|
|
8
|
+
}
|
|
9
|
+
interface Props extends IProps, Omit<GlobalAttributesT<HTMLDivElement>, keyof IProps>, XstyledProps {
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
export declare const defaultProps: Partial<DSCollapseT.Props>;
|
|
13
|
+
export declare const DSCollapsePropTypes: WeakValidationMap<unknown>;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { DSCollapseT } from './react-desc-prop-types.js';
|
|
2
|
+
interface StyledCollapseProps extends DSCollapseT.Props {
|
|
3
|
+
expandedWidth: number;
|
|
4
|
+
expandedHeight: number;
|
|
5
|
+
}
|
|
6
|
+
export declare const StyledCollapse: import("styled-components").StyledComponent<"div", import("@elliemae/ds-legacy-system").Theme, StyledCollapseProps & import("@elliemae/ds-legacy-system").OwnerInterface, never>;
|
|
7
|
+
export declare const StyledChildrenWrapper: import("styled-components").StyledComponent<"div", import("@elliemae/ds-legacy-system").Theme, object & import("@elliemae/ds-legacy-system").OwnerInterface, never>;
|
|
8
|
+
export {};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { DSCollapseT } from './react-desc-prop-types.js';
|
|
2
|
+
export declare const useCollapse: (props: DSCollapseT.Props) => {
|
|
3
|
+
propsWithDefault: DSCollapseT.Props;
|
|
4
|
+
globalAttributes: import("@elliemae/ds-legacy-props-helpers").GlobalAttributesT<Element>;
|
|
5
|
+
xstyledProps: import("@elliemae/ds-legacy-props-helpers").XstyledProps;
|
|
6
|
+
};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import type { DSFadeT } from './react-desc-prop-types.js';
|
|
3
|
+
export declare const DSFade: React.ComponentType<DSFadeT.Props>;
|
|
4
|
+
export declare const DSFadeWithSchema: import("@elliemae/ds-legacy-props-helpers/dist/types/propTypes/types.js").DocumentedReactComponent<DSFadeT.Props>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './DSFade.js';
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { GlobalAttributesT, XstyledProps } from '@elliemae/ds-legacy-props-helpers';
|
|
2
|
+
import type { WeakValidationMap } from 'react';
|
|
3
|
+
export declare namespace DSFadeT {
|
|
4
|
+
interface IProps {
|
|
5
|
+
show: boolean;
|
|
6
|
+
}
|
|
7
|
+
interface Props extends IProps, Omit<GlobalAttributesT<HTMLInputElement>, keyof IProps>, XstyledProps {
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
export declare const DSFadePropTypes: WeakValidationMap<unknown>;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { DSFadeT } from './react-desc-prop-types.js';
|
|
2
|
+
export declare const useFade: (props: DSFadeT.Props) => {
|
|
3
|
+
propsWithDefault: DSFadeT.Props;
|
|
4
|
+
globalAttributes: import("@elliemae/ds-legacy-props-helpers").GlobalAttributesT<Element>;
|
|
5
|
+
xstyledProps: import("@elliemae/ds-legacy-props-helpers").XstyledProps;
|
|
6
|
+
};
|