@elliemae/ds-skeleton 3.15.0 → 3.16.0-next.10
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/DSSkeleton.js +5 -5
- package/dist/cjs/DSSkeleton.js.map +2 -2
- package/dist/cjs/config/useSkeleton.js +7 -7
- package/dist/cjs/config/useSkeleton.js.map +2 -2
- package/dist/cjs/exported-related/index.js +1 -1
- package/dist/cjs/exported-related/index.js.map +2 -2
- package/dist/cjs/index.js +2 -2
- package/dist/cjs/index.js.map +2 -2
- package/dist/cjs/package.json +7 -0
- package/dist/cjs/react-desc-prop-types.js +4 -4
- package/dist/cjs/react-desc-prop-types.js.map +2 -2
- package/dist/cjs/styled/components.js +3 -3
- package/dist/cjs/styled/components.js.map +1 -1
- package/dist/esm/DSSkeleton.js +4 -4
- package/dist/esm/DSSkeleton.js.map +1 -1
- package/dist/esm/config/useSkeleton.js +3 -3
- package/dist/esm/config/useSkeleton.js.map +1 -1
- package/dist/esm/exported-related/index.js +1 -1
- package/dist/esm/exported-related/index.js.map +1 -1
- package/dist/esm/index.js +2 -2
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/package.json +7 -0
- package/dist/esm/react-desc-prop-types.js +1 -1
- package/dist/esm/react-desc-prop-types.js.map +2 -2
- package/dist/esm/styled/components.js +3 -3
- package/dist/esm/styled/components.js.map +1 -1
- package/dist/types/DSSkeleton.d.ts +2 -2
- package/dist/types/exported-related/index.d.ts +1 -1
- package/dist/types/index.d.ts +2 -2
- package/dist/types/react-desc-prop-types.d.ts +1 -1
- package/package.json +5 -4
package/dist/cjs/DSSkeleton.js
CHANGED
|
@@ -30,10 +30,10 @@ __export(DSSkeleton_exports, {
|
|
|
30
30
|
module.exports = __toCommonJS(DSSkeleton_exports);
|
|
31
31
|
var React = __toESM(require("react"));
|
|
32
32
|
var import_jsx_runtime = require("react/jsx-runtime");
|
|
33
|
-
var
|
|
34
|
-
var import_components = require("./styled/components");
|
|
35
|
-
var import_useSkeleton = require("./config/useSkeleton");
|
|
36
|
-
var import_react_desc_prop_types = require("./react-desc-prop-types");
|
|
33
|
+
var import_ds_props_helpers = require("@elliemae/ds-props-helpers");
|
|
34
|
+
var import_components = require("./styled/components.js");
|
|
35
|
+
var import_useSkeleton = require("./config/useSkeleton.js");
|
|
36
|
+
var import_react_desc_prop_types = require("./react-desc-prop-types.js");
|
|
37
37
|
const DSSkeleton = (props) => {
|
|
38
38
|
const {
|
|
39
39
|
propsWithDefault: { variant },
|
|
@@ -45,6 +45,6 @@ const DSSkeleton = (props) => {
|
|
|
45
45
|
};
|
|
46
46
|
DSSkeleton.propTypes = import_react_desc_prop_types.DSSkeletonPropTypes;
|
|
47
47
|
DSSkeleton.displayName = "DSSkeleton";
|
|
48
|
-
const DSSkeletonWithSchema = (0,
|
|
48
|
+
const DSSkeletonWithSchema = (0, import_ds_props_helpers.describe)(DSSkeleton);
|
|
49
49
|
DSSkeletonWithSchema.propTypes = import_react_desc_prop_types.DSSkeletonPropTypes;
|
|
50
50
|
//# sourceMappingURL=DSSkeleton.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/DSSkeleton.tsx", "../../../../scripts/build/transpile/react-shim.js"],
|
|
4
|
-
"sourcesContent": ["import { describe } from '@elliemae/ds-
|
|
5
|
-
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADenB;AAfJ,
|
|
4
|
+
"sourcesContent": ["import { describe } from '@elliemae/ds-props-helpers';\nimport { StyledSkeleton } from './styled/components.js';\nimport { useSkeleton } from './config/useSkeleton.js';\nimport type { DSSkeletonT } from './react-desc-prop-types.js';\nimport { DSSkeletonPropTypes } from './react-desc-prop-types.js';\n\nexport const DSSkeleton: React.ComponentType<DSSkeletonT.Props> = (props) => {\n const {\n propsWithDefault: { variant },\n withChildren,\n xstyledProps,\n globalAttributes,\n } = useSkeleton(props);\n\n return (\n <StyledSkeleton {...globalAttributes} {...xstyledProps} variant={variant} withChildren={withChildren} as=\"span\" />\n );\n};\n\nDSSkeleton.propTypes = DSSkeletonPropTypes;\nDSSkeleton.displayName = 'DSSkeleton';\nexport const DSSkeletonWithSchema = describe(DSSkeleton);\nDSSkeletonWithSchema.propTypes = DSSkeletonPropTypes;\n", "import * as React from 'react';\nexport { React };\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADenB;AAfJ,8BAAyB;AACzB,wBAA+B;AAC/B,yBAA4B;AAE5B,mCAAoC;AAE7B,MAAM,aAAqD,CAAC,UAAU;AAC3E,QAAM;AAAA,IACJ,kBAAkB,EAAE,QAAQ;AAAA,IAC5B;AAAA,IACA;AAAA,IACA;AAAA,EACF,QAAI,gCAAY,KAAK;AAErB,SACE,4CAAC,oCAAgB,GAAG,kBAAmB,GAAG,cAAc,SAAkB,cAA4B,IAAG,QAAO;AAEpH;AAEA,WAAW,YAAY;AACvB,WAAW,cAAc;AAClB,MAAM,2BAAuB,kCAAS,UAAU;AACvD,qBAAqB,YAAY;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -28,14 +28,14 @@ __export(useSkeleton_exports, {
|
|
|
28
28
|
});
|
|
29
29
|
module.exports = __toCommonJS(useSkeleton_exports);
|
|
30
30
|
var React = __toESM(require("react"));
|
|
31
|
-
var
|
|
32
|
-
var import_exported_related = require("../exported-related");
|
|
33
|
-
var import_react_desc_prop_types = require("../react-desc-prop-types");
|
|
31
|
+
var import_ds_props_helpers = require("@elliemae/ds-props-helpers");
|
|
32
|
+
var import_exported_related = require("../exported-related/index.js");
|
|
33
|
+
var import_react_desc_prop_types = require("../react-desc-prop-types.js");
|
|
34
34
|
const useSkeleton = (props) => {
|
|
35
|
-
const propsWithDefault = (0,
|
|
36
|
-
(0,
|
|
37
|
-
const globalAttributes = (0,
|
|
38
|
-
const xstyledProps = (0,
|
|
35
|
+
const propsWithDefault = (0, import_ds_props_helpers.useMemoMergePropsWithDefault)(props, import_react_desc_prop_types.defaultProps);
|
|
36
|
+
(0, import_ds_props_helpers.useValidateTypescriptPropTypes)(props, import_react_desc_prop_types.DSSkeletonPropTypes, import_exported_related.DSSkeletonName);
|
|
37
|
+
const globalAttributes = (0, import_ds_props_helpers.useGetGlobalAttributes)(propsWithDefault);
|
|
38
|
+
const xstyledProps = (0, import_ds_props_helpers.useGetXstyledProps)(propsWithDefault);
|
|
39
39
|
return { propsWithDefault, globalAttributes, xstyledProps, withChildren: !!propsWithDefault.children };
|
|
40
40
|
};
|
|
41
41
|
//# sourceMappingURL=useSkeleton.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../src/config/useSkeleton.ts", "../../../../../scripts/build/transpile/react-shim.js"],
|
|
4
|
-
"sourcesContent": ["import {\n useMemoMergePropsWithDefault,\n useGetGlobalAttributes,\n useGetXstyledProps,\n useValidateTypescriptPropTypes,\n} from '@elliemae/ds-
|
|
5
|
-
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADAvB,
|
|
4
|
+
"sourcesContent": ["import {\n useMemoMergePropsWithDefault,\n useGetGlobalAttributes,\n useGetXstyledProps,\n useValidateTypescriptPropTypes,\n} from '@elliemae/ds-props-helpers';\nimport { DSSkeletonName } from '../exported-related/index.js';\nimport type { DSSkeletonT } from '../react-desc-prop-types.js';\nimport { defaultProps, DSSkeletonPropTypes } from '../react-desc-prop-types.js';\n\nexport const useSkeleton = (props: DSSkeletonT.Props) => {\n const propsWithDefault = useMemoMergePropsWithDefault(props, defaultProps);\n useValidateTypescriptPropTypes(props, DSSkeletonPropTypes, DSSkeletonName);\n\n const globalAttributes = useGetGlobalAttributes(propsWithDefault);\n const xstyledProps = useGetXstyledProps(propsWithDefault);\n\n return { propsWithDefault, globalAttributes, xstyledProps, withChildren: !!propsWithDefault.children };\n};\n", "import * as React from 'react';\nexport { React };\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADAvB,8BAKO;AACP,8BAA+B;AAE/B,mCAAkD;AAE3C,MAAM,cAAc,CAAC,UAA6B;AACvD,QAAM,uBAAmB,sDAA6B,OAAO,yCAAY;AACzE,8DAA+B,OAAO,kDAAqB,sCAAc;AAEzE,QAAM,uBAAmB,gDAAuB,gBAAgB;AAChE,QAAM,mBAAe,4CAAmB,gBAAgB;AAExD,SAAO,EAAE,kBAAkB,kBAAkB,cAAc,cAAc,CAAC,CAAC,iBAAiB,SAAS;AACvG;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -22,5 +22,5 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
|
|
|
22
22
|
var exported_related_exports = {};
|
|
23
23
|
module.exports = __toCommonJS(exported_related_exports);
|
|
24
24
|
var React = __toESM(require("react"));
|
|
25
|
-
__reExport(exported_related_exports, require("./theming"), module.exports);
|
|
25
|
+
__reExport(exported_related_exports, require("./theming.js"), module.exports);
|
|
26
26
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../src/exported-related/index.ts", "../../../../../scripts/build/transpile/react-shim.js"],
|
|
4
|
-
"sourcesContent": ["export * from './theming';\n", "import * as React from 'react';\nexport { React };\n"],
|
|
5
|
-
"mappings": ";;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;ACAA,YAAuB;ADAvB,qCAAc,
|
|
4
|
+
"sourcesContent": ["export * from './theming.js';\n", "import * as React from 'react';\nexport { React };\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;ACAA,YAAuB;ADAvB,qCAAc,yBAAd;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
package/dist/cjs/index.js
CHANGED
|
@@ -22,6 +22,6 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
|
|
|
22
22
|
var src_exports = {};
|
|
23
23
|
module.exports = __toCommonJS(src_exports);
|
|
24
24
|
var React = __toESM(require("react"));
|
|
25
|
-
__reExport(src_exports, require("./DSSkeleton"), module.exports);
|
|
26
|
-
__reExport(src_exports, require("./exported-related"), module.exports);
|
|
25
|
+
__reExport(src_exports, require("./DSSkeleton.js"), module.exports);
|
|
26
|
+
__reExport(src_exports, require("./exported-related/index.js"), module.exports);
|
|
27
27
|
//# sourceMappingURL=index.js.map
|
package/dist/cjs/index.js.map
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/index.ts", "../../../../scripts/build/transpile/react-shim.js"],
|
|
4
|
-
"sourcesContent": ["export * from './DSSkeleton';\nexport * from './exported-related';\n", "import * as React from 'react';\nexport { React };\n"],
|
|
5
|
-
"mappings": ";;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;ACAA,YAAuB;ADAvB,wBAAc,
|
|
4
|
+
"sourcesContent": ["export * from './DSSkeleton.js';\nexport * from './exported-related/index.js';\n", "import * as React from 'react';\nexport { React };\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;ACAA,YAAuB;ADAvB,wBAAc,4BAAd;AACA,wBAAc,wCADd;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -29,13 +29,13 @@ __export(react_desc_prop_types_exports, {
|
|
|
29
29
|
});
|
|
30
30
|
module.exports = __toCommonJS(react_desc_prop_types_exports);
|
|
31
31
|
var React = __toESM(require("react"));
|
|
32
|
-
var
|
|
32
|
+
var import_ds_props_helpers = require("@elliemae/ds-props-helpers");
|
|
33
33
|
const defaultProps = {
|
|
34
34
|
variant: "text"
|
|
35
35
|
};
|
|
36
36
|
const DSSkeletonPropTypes = {
|
|
37
|
-
...
|
|
38
|
-
...
|
|
39
|
-
variant:
|
|
37
|
+
...import_ds_props_helpers.globalAttributesPropTypes,
|
|
38
|
+
...import_ds_props_helpers.xstyledPropTypes,
|
|
39
|
+
variant: import_ds_props_helpers.PropTypes.oneOf(["circular", "rectangular", "text"]).description("Variant for the skeleton").defaultValue("text")
|
|
40
40
|
};
|
|
41
41
|
//# sourceMappingURL=react-desc-prop-types.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/react-desc-prop-types.ts", "../../../../scripts/build/transpile/react-shim.js"],
|
|
4
|
-
"sourcesContent": ["import type { WeakValidationMap } from 'react';\nimport type { GlobalAttributesT, XstyledProps } from '@elliemae/ds-
|
|
5
|
-
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;
|
|
4
|
+
"sourcesContent": ["import type { WeakValidationMap } from 'react';\nimport type {} from '@elliemae/ds-utilities';\nimport type { GlobalAttributesT, XstyledProps } from '@elliemae/ds-props-helpers';\nimport { PropTypes, globalAttributesPropTypes, xstyledPropTypes } from '@elliemae/ds-props-helpers';\n\nexport declare namespace DSSkeletonT {\n interface IProps {\n variant: 'circular' | 'rectangular' | 'text';\n }\n\n export interface Props extends IProps, Omit<GlobalAttributesT<HTMLSpanElement>, keyof IProps>, XstyledProps {}\n}\n\nexport const defaultProps: DSSkeletonT.Props = {\n variant: 'text',\n};\n\nexport const DSSkeletonPropTypes = {\n ...globalAttributesPropTypes,\n ...xstyledPropTypes,\n variant: PropTypes.oneOf(['circular', 'rectangular', 'text'])\n .description('Variant for the skeleton')\n .defaultValue('text'),\n} as WeakValidationMap<unknown>;\n", "import * as React from 'react';\nexport { React };\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADGvB,8BAAuE;AAUhE,MAAM,eAAkC;AAAA,EAC7C,SAAS;AACX;AAEO,MAAM,sBAAsB;AAAA,EACjC,GAAG;AAAA,EACH,GAAG;AAAA,EACH,SAAS,kCAAU,MAAM,CAAC,YAAY,eAAe,MAAM,CAAC,EACzD,YAAY,0BAA0B,EACtC,aAAa,MAAM;AACxB;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -29,9 +29,9 @@ __export(components_exports, {
|
|
|
29
29
|
module.exports = __toCommonJS(components_exports);
|
|
30
30
|
var React = __toESM(require("react"));
|
|
31
31
|
var import_ds_system = require("@elliemae/ds-system");
|
|
32
|
-
var import_exported_related = require("../exported-related");
|
|
33
|
-
var import_animation = require("./animation");
|
|
34
|
-
var import_variants = require("./variants");
|
|
32
|
+
var import_exported_related = require("../exported-related/index.js");
|
|
33
|
+
var import_animation = require("./animation.js");
|
|
34
|
+
var import_variants = require("./variants.js");
|
|
35
35
|
const StyledSkeleton = (0, import_ds_system.styled)("div", {
|
|
36
36
|
name: import_exported_related.DSSkeletonName,
|
|
37
37
|
slot: import_exported_related.DSSkeletonSlots.ROOT
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../src/styled/components.tsx", "../../../../../scripts/build/transpile/react-shim.js"],
|
|
4
|
-
"sourcesContent": ["import { styled, th, xStyledCommonProps } from '@elliemae/ds-system';\nimport { DSSkeletonName, DSSkeletonSlots } from '../exported-related';\nimport { pulseKeyframe } from './animation';\nimport { circularVariantCss, textVariantCss, withChildrenCss } from './variants';\n\ninterface StyledSkeletonProps {\n variant: 'circular' | 'rectangular' | 'text';\n withChildren: boolean;\n}\n\nexport const StyledSkeleton = styled('div', {\n name: DSSkeletonName,\n slot: DSSkeletonSlots.ROOT,\n})<StyledSkeletonProps>`\n display: block;\n height: 20px;\n background-color: ${th.color('neutral-400')}2f;\n ${(props) => {\n if (props.variant === 'circular') return circularVariantCss;\n if (props.variant === 'text') return textVariantCss;\n }}\n ${(props) => (props.withChildren ? withChildrenCss : '')}\n \n animation: ${pulseKeyframe} 1.5s ease-in-out 0.5s infinite;\n ${xStyledCommonProps}\n`;\n", "import * as React from 'react';\nexport { React };\n"],
|
|
4
|
+
"sourcesContent": ["import { styled, th, xStyledCommonProps } from '@elliemae/ds-system';\nimport { DSSkeletonName, DSSkeletonSlots } from '../exported-related/index.js';\nimport { pulseKeyframe } from './animation.js';\nimport { circularVariantCss, textVariantCss, withChildrenCss } from './variants.js';\n\ninterface StyledSkeletonProps {\n variant: 'circular' | 'rectangular' | 'text';\n withChildren: boolean;\n}\n\nexport const StyledSkeleton = styled('div', {\n name: DSSkeletonName,\n slot: DSSkeletonSlots.ROOT,\n})<StyledSkeletonProps>`\n display: block;\n height: 20px;\n background-color: ${th.color('neutral-400')}2f;\n ${(props) => {\n if (props.variant === 'circular') return circularVariantCss;\n if (props.variant === 'text') return textVariantCss;\n }}\n ${(props) => (props.withChildren ? withChildrenCss : '')}\n \n animation: ${pulseKeyframe} 1.5s ease-in-out 0.5s infinite;\n ${xStyledCommonProps}\n`;\n", "import * as React from 'react';\nexport { React };\n"],
|
|
5
5
|
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADAvB,uBAA+C;AAC/C,8BAAgD;AAChD,uBAA8B;AAC9B,sBAAoE;AAO7D,MAAM,qBAAiB,yBAAO,OAAO;AAAA,EAC1C,MAAM;AAAA,EACN,MAAM,wCAAgB;AACxB,CAAC;AAAA;AAAA;AAAA,sBAGqB,oBAAG,MAAM,aAAa;AAAA,IACxC,CAAC,UAAU;AACX,MAAI,MAAM,YAAY;AAAY,WAAO;AACzC,MAAI,MAAM,YAAY;AAAQ,WAAO;AACvC;AAAA,IACE,CAAC,UAAW,MAAM,eAAe,kCAAkB;AAAA;AAAA,eAExC;AAAA,IACX;AAAA;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
package/dist/esm/DSSkeleton.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
2
|
import { jsx } from "react/jsx-runtime";
|
|
3
|
-
import { describe } from "@elliemae/ds-
|
|
4
|
-
import { StyledSkeleton } from "./styled/components";
|
|
5
|
-
import { useSkeleton } from "./config/useSkeleton";
|
|
6
|
-
import { DSSkeletonPropTypes } from "./react-desc-prop-types";
|
|
3
|
+
import { describe } from "@elliemae/ds-props-helpers";
|
|
4
|
+
import { StyledSkeleton } from "./styled/components.js";
|
|
5
|
+
import { useSkeleton } from "./config/useSkeleton.js";
|
|
6
|
+
import { DSSkeletonPropTypes } from "./react-desc-prop-types.js";
|
|
7
7
|
const DSSkeleton = (props) => {
|
|
8
8
|
const {
|
|
9
9
|
propsWithDefault: { variant },
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../../scripts/build/transpile/react-shim.js", "../../src/DSSkeleton.tsx"],
|
|
4
|
-
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import { describe } from '@elliemae/ds-
|
|
4
|
+
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import { describe } from '@elliemae/ds-props-helpers';\nimport { StyledSkeleton } from './styled/components.js';\nimport { useSkeleton } from './config/useSkeleton.js';\nimport type { DSSkeletonT } from './react-desc-prop-types.js';\nimport { DSSkeletonPropTypes } from './react-desc-prop-types.js';\n\nexport const DSSkeleton: React.ComponentType<DSSkeletonT.Props> = (props) => {\n const {\n propsWithDefault: { variant },\n withChildren,\n xstyledProps,\n globalAttributes,\n } = useSkeleton(props);\n\n return (\n <StyledSkeleton {...globalAttributes} {...xstyledProps} variant={variant} withChildren={withChildren} as=\"span\" />\n );\n};\n\nDSSkeleton.propTypes = DSSkeletonPropTypes;\nDSSkeleton.displayName = 'DSSkeleton';\nexport const DSSkeletonWithSchema = describe(DSSkeleton);\nDSSkeletonWithSchema.propTypes = DSSkeletonPropTypes;\n"],
|
|
5
5
|
"mappings": "AAAA,YAAY,WAAW;ACenB;AAfJ,SAAS,gBAAgB;AACzB,SAAS,sBAAsB;AAC/B,SAAS,mBAAmB;AAE5B,SAAS,2BAA2B;AAE7B,MAAM,aAAqD,CAAC,UAAU;AAC3E,QAAM;AAAA,IACJ,kBAAkB,EAAE,QAAQ;AAAA,IAC5B;AAAA,IACA;AAAA,IACA;AAAA,EACF,IAAI,YAAY,KAAK;AAErB,SACE,oBAAC,kBAAgB,GAAG,kBAAmB,GAAG,cAAc,SAAkB,cAA4B,IAAG,QAAO;AAEpH;AAEA,WAAW,YAAY;AACvB,WAAW,cAAc;AAClB,MAAM,uBAAuB,SAAS,UAAU;AACvD,qBAAqB,YAAY;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -4,9 +4,9 @@ import {
|
|
|
4
4
|
useGetGlobalAttributes,
|
|
5
5
|
useGetXstyledProps,
|
|
6
6
|
useValidateTypescriptPropTypes
|
|
7
|
-
} from "@elliemae/ds-
|
|
8
|
-
import { DSSkeletonName } from "../exported-related";
|
|
9
|
-
import { defaultProps, DSSkeletonPropTypes } from "../react-desc-prop-types";
|
|
7
|
+
} from "@elliemae/ds-props-helpers";
|
|
8
|
+
import { DSSkeletonName } from "../exported-related/index.js";
|
|
9
|
+
import { defaultProps, DSSkeletonPropTypes } from "../react-desc-prop-types.js";
|
|
10
10
|
const useSkeleton = (props) => {
|
|
11
11
|
const propsWithDefault = useMemoMergePropsWithDefault(props, defaultProps);
|
|
12
12
|
useValidateTypescriptPropTypes(props, DSSkeletonPropTypes, DSSkeletonName);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../../../scripts/build/transpile/react-shim.js", "../../../src/config/useSkeleton.ts"],
|
|
4
|
-
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import {\n useMemoMergePropsWithDefault,\n useGetGlobalAttributes,\n useGetXstyledProps,\n useValidateTypescriptPropTypes,\n} from '@elliemae/ds-
|
|
4
|
+
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import {\n useMemoMergePropsWithDefault,\n useGetGlobalAttributes,\n useGetXstyledProps,\n useValidateTypescriptPropTypes,\n} from '@elliemae/ds-props-helpers';\nimport { DSSkeletonName } from '../exported-related/index.js';\nimport type { DSSkeletonT } from '../react-desc-prop-types.js';\nimport { defaultProps, DSSkeletonPropTypes } from '../react-desc-prop-types.js';\n\nexport const useSkeleton = (props: DSSkeletonT.Props) => {\n const propsWithDefault = useMemoMergePropsWithDefault(props, defaultProps);\n useValidateTypescriptPropTypes(props, DSSkeletonPropTypes, DSSkeletonName);\n\n const globalAttributes = useGetGlobalAttributes(propsWithDefault);\n const xstyledProps = useGetXstyledProps(propsWithDefault);\n\n return { propsWithDefault, globalAttributes, xstyledProps, withChildren: !!propsWithDefault.children };\n};\n"],
|
|
5
5
|
"mappings": "AAAA,YAAY,WAAW;ACAvB;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACK;AACP,SAAS,sBAAsB;AAE/B,SAAS,cAAc,2BAA2B;AAE3C,MAAM,cAAc,CAAC,UAA6B;AACvD,QAAM,mBAAmB,6BAA6B,OAAO,YAAY;AACzE,iCAA+B,OAAO,qBAAqB,cAAc;AAEzE,QAAM,mBAAmB,uBAAuB,gBAAgB;AAChE,QAAM,eAAe,mBAAmB,gBAAgB;AAExD,SAAO,EAAE,kBAAkB,kBAAkB,cAAc,cAAc,CAAC,CAAC,iBAAiB,SAAS;AACvG;",
|
|
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/exported-related/index.ts"],
|
|
4
|
-
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "export * from './theming';\n"],
|
|
4
|
+
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "export * from './theming.js';\n"],
|
|
5
5
|
"mappings": "AAAA,YAAY,WAAW;ACAvB,cAAc;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
package/dist/esm/index.js
CHANGED
package/dist/esm/index.js.map
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../../scripts/build/transpile/react-shim.js", "../../src/index.ts"],
|
|
4
|
-
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "export * from './DSSkeleton';\nexport * from './exported-related';\n"],
|
|
4
|
+
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "export * from './DSSkeleton.js';\nexport * from './exported-related/index.js';\n"],
|
|
5
5
|
"mappings": "AAAA,YAAY,WAAW;ACAvB,cAAc;AACd,cAAc;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
|
-
import { PropTypes, globalAttributesPropTypes, xstyledPropTypes } from "@elliemae/ds-
|
|
2
|
+
import { PropTypes, globalAttributesPropTypes, xstyledPropTypes } from "@elliemae/ds-props-helpers";
|
|
3
3
|
const defaultProps = {
|
|
4
4
|
variant: "text"
|
|
5
5
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../../scripts/build/transpile/react-shim.js", "../../src/react-desc-prop-types.ts"],
|
|
4
|
-
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import type { WeakValidationMap } from 'react';\nimport type { GlobalAttributesT, XstyledProps } from '@elliemae/ds-
|
|
5
|
-
"mappings": "AAAA,YAAY,WAAW;
|
|
4
|
+
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import type { WeakValidationMap } from 'react';\nimport type {} from '@elliemae/ds-utilities';\nimport type { GlobalAttributesT, XstyledProps } from '@elliemae/ds-props-helpers';\nimport { PropTypes, globalAttributesPropTypes, xstyledPropTypes } from '@elliemae/ds-props-helpers';\n\nexport declare namespace DSSkeletonT {\n interface IProps {\n variant: 'circular' | 'rectangular' | 'text';\n }\n\n export interface Props extends IProps, Omit<GlobalAttributesT<HTMLSpanElement>, keyof IProps>, XstyledProps {}\n}\n\nexport const defaultProps: DSSkeletonT.Props = {\n variant: 'text',\n};\n\nexport const DSSkeletonPropTypes = {\n ...globalAttributesPropTypes,\n ...xstyledPropTypes,\n variant: PropTypes.oneOf(['circular', 'rectangular', 'text'])\n .description('Variant for the skeleton')\n .defaultValue('text'),\n} as WeakValidationMap<unknown>;\n"],
|
|
5
|
+
"mappings": "AAAA,YAAY,WAAW;ACGvB,SAAS,WAAW,2BAA2B,wBAAwB;AAUhE,MAAM,eAAkC;AAAA,EAC7C,SAAS;AACX;AAEO,MAAM,sBAAsB;AAAA,EACjC,GAAG;AAAA,EACH,GAAG;AAAA,EACH,SAAS,UAAU,MAAM,CAAC,YAAY,eAAe,MAAM,CAAC,EACzD,YAAY,0BAA0B,EACtC,aAAa,MAAM;AACxB;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
2
|
import { styled, th, xStyledCommonProps } from "@elliemae/ds-system";
|
|
3
|
-
import { DSSkeletonName, DSSkeletonSlots } from "../exported-related";
|
|
4
|
-
import { pulseKeyframe } from "./animation";
|
|
5
|
-
import { circularVariantCss, textVariantCss, withChildrenCss } from "./variants";
|
|
3
|
+
import { DSSkeletonName, DSSkeletonSlots } from "../exported-related/index.js";
|
|
4
|
+
import { pulseKeyframe } from "./animation.js";
|
|
5
|
+
import { circularVariantCss, textVariantCss, withChildrenCss } from "./variants.js";
|
|
6
6
|
const StyledSkeleton = styled("div", {
|
|
7
7
|
name: DSSkeletonName,
|
|
8
8
|
slot: DSSkeletonSlots.ROOT
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../../../scripts/build/transpile/react-shim.js", "../../../src/styled/components.tsx"],
|
|
4
|
-
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import { styled, th, xStyledCommonProps } from '@elliemae/ds-system';\nimport { DSSkeletonName, DSSkeletonSlots } from '../exported-related';\nimport { pulseKeyframe } from './animation';\nimport { circularVariantCss, textVariantCss, withChildrenCss } from './variants';\n\ninterface StyledSkeletonProps {\n variant: 'circular' | 'rectangular' | 'text';\n withChildren: boolean;\n}\n\nexport const StyledSkeleton = styled('div', {\n name: DSSkeletonName,\n slot: DSSkeletonSlots.ROOT,\n})<StyledSkeletonProps>`\n display: block;\n height: 20px;\n background-color: ${th.color('neutral-400')}2f;\n ${(props) => {\n if (props.variant === 'circular') return circularVariantCss;\n if (props.variant === 'text') return textVariantCss;\n }}\n ${(props) => (props.withChildren ? withChildrenCss : '')}\n \n animation: ${pulseKeyframe} 1.5s ease-in-out 0.5s infinite;\n ${xStyledCommonProps}\n`;\n"],
|
|
4
|
+
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import { styled, th, xStyledCommonProps } from '@elliemae/ds-system';\nimport { DSSkeletonName, DSSkeletonSlots } from '../exported-related/index.js';\nimport { pulseKeyframe } from './animation.js';\nimport { circularVariantCss, textVariantCss, withChildrenCss } from './variants.js';\n\ninterface StyledSkeletonProps {\n variant: 'circular' | 'rectangular' | 'text';\n withChildren: boolean;\n}\n\nexport const StyledSkeleton = styled('div', {\n name: DSSkeletonName,\n slot: DSSkeletonSlots.ROOT,\n})<StyledSkeletonProps>`\n display: block;\n height: 20px;\n background-color: ${th.color('neutral-400')}2f;\n ${(props) => {\n if (props.variant === 'circular') return circularVariantCss;\n if (props.variant === 'text') return textVariantCss;\n }}\n ${(props) => (props.withChildren ? withChildrenCss : '')}\n \n animation: ${pulseKeyframe} 1.5s ease-in-out 0.5s infinite;\n ${xStyledCommonProps}\n`;\n"],
|
|
5
5
|
"mappings": "AAAA,YAAY,WAAW;ACAvB,SAAS,QAAQ,IAAI,0BAA0B;AAC/C,SAAS,gBAAgB,uBAAuB;AAChD,SAAS,qBAAqB;AAC9B,SAAS,oBAAoB,gBAAgB,uBAAuB;AAO7D,MAAM,iBAAiB,OAAO,OAAO;AAAA,EAC1C,MAAM;AAAA,EACN,MAAM,gBAAgB;AACxB,CAAC;AAAA;AAAA;AAAA,sBAGqB,GAAG,MAAM,aAAa;AAAA,IACxC,CAAC,UAAU;AACX,MAAI,MAAM,YAAY;AAAY,WAAO;AACzC,MAAI,MAAM,YAAY;AAAQ,WAAO;AACvC;AAAA,IACE,CAAC,UAAW,MAAM,eAAe,kBAAkB;AAAA;AAAA,eAExC;AAAA,IACX;AAAA;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import type { DSSkeletonT } from './react-desc-prop-types';
|
|
2
|
+
import type { DSSkeletonT } from './react-desc-prop-types.js';
|
|
3
3
|
export declare const DSSkeleton: React.ComponentType<DSSkeletonT.Props>;
|
|
4
|
-
export declare const DSSkeletonWithSchema: import("@elliemae/ds-
|
|
4
|
+
export declare const DSSkeletonWithSchema: import("@elliemae/ds-props-helpers/dist/types/propTypes/types.js").DocumentedReactComponent<DSSkeletonT.Props>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from './theming';
|
|
1
|
+
export * from './theming.js';
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from './DSSkeleton';
|
|
2
|
-
export * from './exported-related';
|
|
1
|
+
export * from './DSSkeleton.js';
|
|
2
|
+
export * from './exported-related/index.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { WeakValidationMap } from 'react';
|
|
2
|
-
import type { GlobalAttributesT, XstyledProps } from '@elliemae/ds-
|
|
2
|
+
import type { GlobalAttributesT, XstyledProps } from '@elliemae/ds-props-helpers';
|
|
3
3
|
export declare namespace DSSkeletonT {
|
|
4
4
|
interface IProps {
|
|
5
5
|
variant: 'circular' | 'rectangular' | 'text';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@elliemae/ds-skeleton",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.16.0-next.10",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "ICE MT - Dimsum - Skeleton UI",
|
|
6
6
|
"files": [
|
|
@@ -35,8 +35,9 @@
|
|
|
35
35
|
"indent": 4
|
|
36
36
|
},
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"@elliemae/ds-
|
|
39
|
-
"@elliemae/ds-
|
|
38
|
+
"@elliemae/ds-props-helpers": "3.16.0-next.10",
|
|
39
|
+
"@elliemae/ds-system": "3.16.0-next.10",
|
|
40
|
+
"@elliemae/ds-utilities": "3.16.0-next.10"
|
|
40
41
|
},
|
|
41
42
|
"devDependencies": {
|
|
42
43
|
"styled-components": "~5.3.6"
|
|
@@ -57,7 +58,7 @@
|
|
|
57
58
|
"eslint:fix": "eslint --ext='.js,.jsx,.test.js,.ts,.tsx' --fix --config='../../.eslintrc.js' src/",
|
|
58
59
|
"dts": "node ../../scripts/dts.mjs",
|
|
59
60
|
"build": "cross-env NODE_ENV=production node ../../scripts/build/build.mjs",
|
|
60
|
-
"dev:build": "pnpm --filter {.}... build
|
|
61
|
+
"dev:build": "pnpm --filter {.}... build",
|
|
61
62
|
"dev:install": "pnpm --filter {.}... i --no-lockfile && pnpm run dev:build",
|
|
62
63
|
"checkDeps": "npx -yes ../ds-codemods check-missing-packages --projectFolderPath=\"./\" --ignorePackagesGlobPattern=\"\" --ignoreFilesGlobPattern=\"**/test-ables/*,**/tests/*\""
|
|
63
64
|
}
|