@elliemae/ds-legacy-skeleton 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.
Files changed (46) hide show
  1. package/dist/cjs/DSSkeleton.js +54 -0
  2. package/dist/cjs/DSSkeleton.js.map +7 -0
  3. package/dist/cjs/config/useSkeleton.js +45 -0
  4. package/dist/cjs/config/useSkeleton.js.map +7 -0
  5. package/dist/cjs/exported-related/index.js +30 -0
  6. package/dist/cjs/exported-related/index.js.map +7 -0
  7. package/dist/cjs/exported-related/theming.js +40 -0
  8. package/dist/cjs/exported-related/theming.js.map +7 -0
  9. package/dist/cjs/index.js +31 -0
  10. package/dist/cjs/index.js.map +7 -0
  11. package/dist/cjs/package.json +7 -0
  12. package/dist/cjs/react-desc-prop-types.js +45 -0
  13. package/dist/cjs/react-desc-prop-types.js.map +7 -0
  14. package/dist/cjs/styled/animation.js +47 -0
  15. package/dist/cjs/styled/animation.js.map +7 -0
  16. package/dist/cjs/styled/components.js +57 -0
  17. package/dist/cjs/styled/components.js.map +7 -0
  18. package/dist/cjs/styled/variants.js +60 -0
  19. package/dist/cjs/styled/variants.js.map +7 -0
  20. package/dist/esm/DSSkeleton.js +24 -0
  21. package/dist/esm/DSSkeleton.js.map +7 -0
  22. package/dist/esm/config/useSkeleton.js +20 -0
  23. package/dist/esm/config/useSkeleton.js.map +7 -0
  24. package/dist/esm/exported-related/index.js +3 -0
  25. package/dist/esm/exported-related/index.js.map +7 -0
  26. package/dist/esm/exported-related/theming.js +10 -0
  27. package/dist/esm/exported-related/theming.js.map +7 -0
  28. package/dist/esm/index.js +4 -0
  29. package/dist/esm/index.js.map +7 -0
  30. package/dist/esm/package.json +7 -0
  31. package/dist/esm/react-desc-prop-types.js +15 -0
  32. package/dist/esm/react-desc-prop-types.js.map +7 -0
  33. package/dist/esm/styled/animation.js +17 -0
  34. package/dist/esm/styled/animation.js.map +7 -0
  35. package/dist/esm/styled/components.js +27 -0
  36. package/dist/esm/styled/components.js.map +7 -0
  37. package/dist/esm/styled/variants.js +30 -0
  38. package/dist/esm/styled/variants.js.map +7 -0
  39. package/dist/types/DSSkeleton.d.ts +4 -0
  40. package/dist/types/exported-related/index.d.ts +1 -0
  41. package/dist/types/exported-related/theming.d.ts +4 -0
  42. package/dist/types/index.d.ts +2 -0
  43. package/dist/types/react-desc-prop-types.d.ts +11 -0
  44. package/dist/types/styled/animation.d.ts +1 -0
  45. package/dist/types/styled/components.d.ts +6 -0
  46. package/package.json +67 -0
@@ -0,0 +1,54 @@
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 DSSkeleton_exports = {};
30
+ __export(DSSkeleton_exports, {
31
+ DSSkeleton: () => DSSkeleton,
32
+ DSSkeletonWithSchema: () => DSSkeletonWithSchema
33
+ });
34
+ module.exports = __toCommonJS(DSSkeleton_exports);
35
+ var React = __toESM(require("react"));
36
+ var import_jsx_runtime = require("react/jsx-runtime");
37
+ var import_ds_legacy_props_helpers = require("@elliemae/ds-legacy-props-helpers");
38
+ var import_components = require("./styled/components.js");
39
+ var import_useSkeleton = require("./config/useSkeleton.js");
40
+ var import_react_desc_prop_types = require("./react-desc-prop-types.js");
41
+ const DSSkeleton = (props) => {
42
+ const {
43
+ propsWithDefault: { variant },
44
+ withChildren,
45
+ xstyledProps,
46
+ globalAttributes
47
+ } = (0, import_useSkeleton.useSkeleton)(props);
48
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_components.StyledSkeleton, { ...globalAttributes, ...xstyledProps, variant, withChildren, as: "span" });
49
+ };
50
+ DSSkeleton.propTypes = import_react_desc_prop_types.DSSkeletonPropTypes;
51
+ DSSkeleton.displayName = "DSSkeleton";
52
+ const DSSkeletonWithSchema = (0, import_ds_legacy_props_helpers.describe)(DSSkeleton);
53
+ DSSkeletonWithSchema.propTypes = import_react_desc_prop_types.DSSkeletonPropTypes;
54
+ //# sourceMappingURL=DSSkeleton.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../src/DSSkeleton.tsx", "../../../../../scripts/build/transpile/react-shim.js"],
4
+ "sourcesContent": ["import { describe } from '@elliemae/ds-legacy-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,qCAAyB;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,yCAAS,UAAU;AACvD,qBAAqB,YAAY;",
6
+ "names": []
7
+ }
@@ -0,0 +1,45 @@
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 useSkeleton_exports = {};
30
+ __export(useSkeleton_exports, {
31
+ useSkeleton: () => useSkeleton
32
+ });
33
+ module.exports = __toCommonJS(useSkeleton_exports);
34
+ var React = __toESM(require("react"));
35
+ var import_ds_legacy_props_helpers = require("@elliemae/ds-legacy-props-helpers");
36
+ var import_exported_related = require("../exported-related/index.js");
37
+ var import_react_desc_prop_types = require("../react-desc-prop-types.js");
38
+ const useSkeleton = (props) => {
39
+ const propsWithDefault = (0, import_ds_legacy_props_helpers.useMemoMergePropsWithDefault)(props, import_react_desc_prop_types.defaultProps);
40
+ (0, import_ds_legacy_props_helpers.useValidateTypescriptPropTypes)(props, import_react_desc_prop_types.DSSkeletonPropTypes, import_exported_related.DSSkeletonName);
41
+ const globalAttributes = (0, import_ds_legacy_props_helpers.useGetGlobalAttributes)(propsWithDefault);
42
+ const xstyledProps = (0, import_ds_legacy_props_helpers.useGetXstyledProps)(propsWithDefault);
43
+ return { propsWithDefault, globalAttributes, xstyledProps, withChildren: !!propsWithDefault.children };
44
+ };
45
+ //# sourceMappingURL=useSkeleton.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 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-legacy-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,qCAKO;AACP,8BAA+B;AAE/B,mCAAkD;AAE3C,MAAM,cAAc,CAAC,UAA6B;AACvD,QAAM,uBAAmB,6DAA6B,OAAO,yCAAY;AACzE,qEAA+B,OAAO,kDAAqB,sCAAc;AAEzE,QAAM,uBAAmB,uDAAuB,gBAAgB;AAChE,QAAM,mBAAe,mDAAmB,gBAAgB;AAExD,SAAO,EAAE,kBAAkB,kBAAkB,cAAc,cAAc,CAAC,CAAC,iBAAiB,SAAS;AACvG;",
6
+ "names": []
7
+ }
@@ -0,0 +1,30 @@
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 exported_related_exports = {};
27
+ module.exports = __toCommonJS(exported_related_exports);
28
+ var React = __toESM(require("react"));
29
+ __reExport(exported_related_exports, require("./theming.js"), module.exports);
30
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../src/exported-related/index.ts", "../../../../../../scripts/build/transpile/react-shim.js"],
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
+ "names": []
7
+ }
@@ -0,0 +1,40 @@
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 theming_exports = {};
30
+ __export(theming_exports, {
31
+ DSSkeletonName: () => DSSkeletonName,
32
+ DSSkeletonSlots: () => DSSkeletonSlots
33
+ });
34
+ module.exports = __toCommonJS(theming_exports);
35
+ var React = __toESM(require("react"));
36
+ const DSSkeletonName = "DSSkeleton";
37
+ const DSSkeletonSlots = {
38
+ ROOT: "root"
39
+ };
40
+ //# sourceMappingURL=theming.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../src/exported-related/theming.ts", "../../../../../../scripts/build/transpile/react-shim.js"],
4
+ "sourcesContent": ["export const DSSkeletonName = 'DSSkeleton';\n\nexport const DSSkeletonSlots = {\n ROOT: 'root',\n};\n", "import * as React from 'react';\nexport { React };\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADAhB,MAAM,iBAAiB;AAEvB,MAAM,kBAAkB;AAAA,EAC7B,MAAM;AACR;",
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("./DSSkeleton.js"), module.exports);
30
+ __reExport(src_exports, require("./exported-related/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 './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
+ "names": []
7
+ }
@@ -0,0 +1,7 @@
1
+ {
2
+ "type": "commonjs",
3
+ "sideEffects": [
4
+ "*.css",
5
+ "*.scss"
6
+ ]
7
+ }
@@ -0,0 +1,45 @@
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 react_desc_prop_types_exports = {};
30
+ __export(react_desc_prop_types_exports, {
31
+ DSSkeletonPropTypes: () => DSSkeletonPropTypes,
32
+ defaultProps: () => defaultProps
33
+ });
34
+ module.exports = __toCommonJS(react_desc_prop_types_exports);
35
+ var React = __toESM(require("react"));
36
+ var import_ds_legacy_props_helpers = require("@elliemae/ds-legacy-props-helpers");
37
+ const defaultProps = {
38
+ variant: "text"
39
+ };
40
+ const DSSkeletonPropTypes = {
41
+ ...import_ds_legacy_props_helpers.globalAttributesPropTypes,
42
+ ...import_ds_legacy_props_helpers.xstyledPropTypes,
43
+ variant: import_ds_legacy_props_helpers.PropTypes.oneOf(["circular", "rectangular", "text"]).description("Variant for the skeleton").defaultValue("text")
44
+ };
45
+ //# sourceMappingURL=react-desc-prop-types.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../src/react-desc-prop-types.ts", "../../../../../scripts/build/transpile/react-shim.js"],
4
+ "sourcesContent": ["import type { WeakValidationMap } from 'react';\nimport 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';\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,qCAAuE;AAUhE,MAAM,eAAkC;AAAA,EAC7C,SAAS;AACX;AAEO,MAAM,sBAAsB;AAAA,EACjC,GAAG;AAAA,EACH,GAAG;AAAA,EACH,SAAS,yCAAU,MAAM,CAAC,YAAY,eAAe,MAAM,CAAC,EACzD,YAAY,0BAA0B,EACtC,aAAa,MAAM;AACxB;",
6
+ "names": []
7
+ }
@@ -0,0 +1,47 @@
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 animation_exports = {};
30
+ __export(animation_exports, {
31
+ pulseKeyframe: () => pulseKeyframe
32
+ });
33
+ module.exports = __toCommonJS(animation_exports);
34
+ var React = __toESM(require("react"));
35
+ var import_ds_legacy_system = require("@elliemae/ds-legacy-system");
36
+ const pulseKeyframe = import_ds_legacy_system.kfrm`
37
+ 0% {
38
+ opacity: 1;
39
+ }
40
+ 50% {
41
+ opacity: 0.4;
42
+ }
43
+ 100% {
44
+ opacity: 1;
45
+ }
46
+ `;
47
+ //# sourceMappingURL=animation.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../src/styled/animation.ts", "../../../../../../scripts/build/transpile/react-shim.js"],
4
+ "sourcesContent": ["import { kfrm } from '@elliemae/ds-legacy-system';\n\nexport const pulseKeyframe = kfrm`\n 0% {\n opacity: 1;\n }\n 50% {\n opacity: 0.4;\n }\n 100% {\n opacity: 1;\n }\n`;\n", "import * as React from 'react';\nexport { React };\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADAvB,8BAAqB;AAEd,MAAM,gBAAgB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;",
6
+ "names": []
7
+ }
@@ -0,0 +1,57 @@
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 components_exports = {};
30
+ __export(components_exports, {
31
+ StyledSkeleton: () => StyledSkeleton
32
+ });
33
+ module.exports = __toCommonJS(components_exports);
34
+ var React = __toESM(require("react"));
35
+ var import_ds_legacy_system = require("@elliemae/ds-legacy-system");
36
+ var import_exported_related = require("../exported-related/index.js");
37
+ var import_animation = require("./animation.js");
38
+ var import_variants = require("./variants.js");
39
+ const StyledSkeleton = (0, import_ds_legacy_system.styled)("div", {
40
+ name: import_exported_related.DSSkeletonName,
41
+ slot: import_exported_related.DSSkeletonSlots.ROOT
42
+ })`
43
+ display: block;
44
+ height: 20px;
45
+ background-color: ${import_ds_legacy_system.th.color("neutral-400")}2f;
46
+ ${(props) => {
47
+ if (props.variant === "circular")
48
+ return import_variants.circularVariantCss;
49
+ if (props.variant === "text")
50
+ return import_variants.textVariantCss;
51
+ }}
52
+ ${(props) => props.withChildren ? import_variants.withChildrenCss : ""}
53
+
54
+ animation: ${import_animation.pulseKeyframe} 1.5s ease-in-out 0.5s infinite;
55
+ ${import_ds_legacy_system.xStyledCommonProps}
56
+ `;
57
+ //# sourceMappingURL=components.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../src/styled/components.tsx", "../../../../../../scripts/build/transpile/react-shim.js"],
4
+ "sourcesContent": ["import { styled, th, xStyledCommonProps } from '@elliemae/ds-legacy-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
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADAvB,8BAA+C;AAC/C,8BAAgD;AAChD,uBAA8B;AAC9B,sBAAoE;AAO7D,MAAM,qBAAiB,gCAAO,OAAO;AAAA,EAC1C,MAAM;AAAA,EACN,MAAM,wCAAgB;AACxB,CAAC;AAAA;AAAA;AAAA,sBAGqB,2BAAG,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
+ "names": []
7
+ }
@@ -0,0 +1,60 @@
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 variants_exports = {};
30
+ __export(variants_exports, {
31
+ circularVariantCss: () => circularVariantCss,
32
+ textVariantCss: () => textVariantCss,
33
+ withChildrenCss: () => withChildrenCss
34
+ });
35
+ module.exports = __toCommonJS(variants_exports);
36
+ var React = __toESM(require("react"));
37
+ var import_ds_legacy_system = require("@elliemae/ds-legacy-system");
38
+ const textVariantCss = import_ds_legacy_system.css`
39
+ margin-top: 0;
40
+ margin-bottom: 0;
41
+ height: auto;
42
+ transform-origin: 0 55%;
43
+ transform: scale(1, 0.6);
44
+ border-radius: 4px/4%;
45
+ &:empty:before {
46
+ content: '\\00a0';
47
+ }
48
+ `;
49
+ const circularVariantCss = import_ds_legacy_system.css`
50
+ border-radius: 50%;
51
+ `;
52
+ const withChildrenCss = import_ds_legacy_system.css`
53
+ & > * {
54
+ visibility: hidden;
55
+ }
56
+
57
+ ${({ w }) => !w ? "width: fit-content;" : ""}
58
+ ${({ h }) => !h ? "height: auto;" : ""}
59
+ `;
60
+ //# sourceMappingURL=variants.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../src/styled/variants.ts", "../../../../../../scripts/build/transpile/react-shim.js"],
4
+ "sourcesContent": ["import { css } from '@elliemae/ds-legacy-system';\n\nexport const textVariantCss = css`\n margin-top: 0;\n margin-bottom: 0;\n height: auto;\n transform-origin: 0 55%;\n transform: scale(1, 0.6);\n border-radius: 4px/4%;\n &:empty:before {\n content: '\\\\00a0';\n }\n`;\n\nexport const circularVariantCss = css`\n border-radius: 50%;\n`;\n\nexport const withChildrenCss = css<{ w: unknown; h: unknown }>`\n & > * {\n visibility: hidden;\n }\n\n ${({ w }) => (!w ? 'width: fit-content;' : '')}\n ${({ h }) => (!h ? 'height: auto;' : '')}\n`;\n", "import * as React from 'react';\nexport { React };\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADAvB,8BAAoB;AAEb,MAAM,iBAAiB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAYvB,MAAM,qBAAqB;AAAA;AAAA;AAI3B,MAAM,kBAAkB;AAAA;AAAA;AAAA;AAAA;AAAA,IAK3B,CAAC,EAAE,EAAE,MAAO,CAAC,IAAI,wBAAwB;AAAA,IACzC,CAAC,EAAE,EAAE,MAAO,CAAC,IAAI,kBAAkB;AAAA;",
6
+ "names": []
7
+ }
@@ -0,0 +1,24 @@
1
+ import * as React from "react";
2
+ import { jsx } from "react/jsx-runtime";
3
+ import { describe } from "@elliemae/ds-legacy-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
+ const DSSkeleton = (props) => {
8
+ const {
9
+ propsWithDefault: { variant },
10
+ withChildren,
11
+ xstyledProps,
12
+ globalAttributes
13
+ } = useSkeleton(props);
14
+ return /* @__PURE__ */ jsx(StyledSkeleton, { ...globalAttributes, ...xstyledProps, variant, withChildren, as: "span" });
15
+ };
16
+ DSSkeleton.propTypes = DSSkeletonPropTypes;
17
+ DSSkeleton.displayName = "DSSkeleton";
18
+ const DSSkeletonWithSchema = describe(DSSkeleton);
19
+ DSSkeletonWithSchema.propTypes = DSSkeletonPropTypes;
20
+ export {
21
+ DSSkeleton,
22
+ DSSkeletonWithSchema
23
+ };
24
+ //# sourceMappingURL=DSSkeleton.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 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-legacy-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
+ "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
+ "names": []
7
+ }
@@ -0,0 +1,20 @@
1
+ import * as React from "react";
2
+ import {
3
+ useMemoMergePropsWithDefault,
4
+ useGetGlobalAttributes,
5
+ useGetXstyledProps,
6
+ useValidateTypescriptPropTypes
7
+ } from "@elliemae/ds-legacy-props-helpers";
8
+ import { DSSkeletonName } from "../exported-related/index.js";
9
+ import { defaultProps, DSSkeletonPropTypes } from "../react-desc-prop-types.js";
10
+ const useSkeleton = (props) => {
11
+ const propsWithDefault = useMemoMergePropsWithDefault(props, defaultProps);
12
+ useValidateTypescriptPropTypes(props, DSSkeletonPropTypes, DSSkeletonName);
13
+ const globalAttributes = useGetGlobalAttributes(propsWithDefault);
14
+ const xstyledProps = useGetXstyledProps(propsWithDefault);
15
+ return { propsWithDefault, globalAttributes, xstyledProps, withChildren: !!propsWithDefault.children };
16
+ };
17
+ export {
18
+ useSkeleton
19
+ };
20
+ //# sourceMappingURL=useSkeleton.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 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-legacy-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
+ "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
+ "names": []
7
+ }
@@ -0,0 +1,3 @@
1
+ import * as React from "react";
2
+ export * from "./theming.js";
3
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 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.js';\n"],
5
+ "mappings": "AAAA,YAAY,WAAW;ACAvB,cAAc;",
6
+ "names": []
7
+ }
@@ -0,0 +1,10 @@
1
+ import * as React from "react";
2
+ const DSSkeletonName = "DSSkeleton";
3
+ const DSSkeletonSlots = {
4
+ ROOT: "root"
5
+ };
6
+ export {
7
+ DSSkeletonName,
8
+ DSSkeletonSlots
9
+ };
10
+ //# sourceMappingURL=theming.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../../../../scripts/build/transpile/react-shim.js", "../../../src/exported-related/theming.ts"],
4
+ "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "export const DSSkeletonName = 'DSSkeleton';\n\nexport const DSSkeletonSlots = {\n ROOT: 'root',\n};\n"],
5
+ "mappings": "AAAA,YAAY,WAAW;ACAhB,MAAM,iBAAiB;AAEvB,MAAM,kBAAkB;AAAA,EAC7B,MAAM;AACR;",
6
+ "names": []
7
+ }
@@ -0,0 +1,4 @@
1
+ import * as React from "react";
2
+ export * from "./DSSkeleton.js";
3
+ export * from "./exported-related/index.js";
4
+ //# sourceMappingURL=index.js.map
@@ -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 './DSSkeleton.js';\nexport * from './exported-related/index.js';\n"],
5
+ "mappings": "AAAA,YAAY,WAAW;ACAvB,cAAc;AACd,cAAc;",
6
+ "names": []
7
+ }
@@ -0,0 +1,7 @@
1
+ {
2
+ "type": "module",
3
+ "sideEffects": [
4
+ "*.css",
5
+ "*.scss"
6
+ ]
7
+ }
@@ -0,0 +1,15 @@
1
+ import * as React from "react";
2
+ import { PropTypes, globalAttributesPropTypes, xstyledPropTypes } from "@elliemae/ds-legacy-props-helpers";
3
+ const defaultProps = {
4
+ variant: "text"
5
+ };
6
+ const DSSkeletonPropTypes = {
7
+ ...globalAttributesPropTypes,
8
+ ...xstyledPropTypes,
9
+ variant: PropTypes.oneOf(["circular", "rectangular", "text"]).description("Variant for the skeleton").defaultValue("text")
10
+ };
11
+ export {
12
+ DSSkeletonPropTypes,
13
+ defaultProps
14
+ };
15
+ //# sourceMappingURL=react-desc-prop-types.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 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 {} 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';\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
+ "names": []
7
+ }
@@ -0,0 +1,17 @@
1
+ import * as React from "react";
2
+ import { kfrm } from "@elliemae/ds-legacy-system";
3
+ const pulseKeyframe = kfrm`
4
+ 0% {
5
+ opacity: 1;
6
+ }
7
+ 50% {
8
+ opacity: 0.4;
9
+ }
10
+ 100% {
11
+ opacity: 1;
12
+ }
13
+ `;
14
+ export {
15
+ pulseKeyframe
16
+ };
17
+ //# sourceMappingURL=animation.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../../../../scripts/build/transpile/react-shim.js", "../../../src/styled/animation.ts"],
4
+ "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import { kfrm } from '@elliemae/ds-legacy-system';\n\nexport const pulseKeyframe = kfrm`\n 0% {\n opacity: 1;\n }\n 50% {\n opacity: 0.4;\n }\n 100% {\n opacity: 1;\n }\n`;\n"],
5
+ "mappings": "AAAA,YAAY,WAAW;ACAvB,SAAS,YAAY;AAEd,MAAM,gBAAgB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;",
6
+ "names": []
7
+ }
@@ -0,0 +1,27 @@
1
+ import * as React from "react";
2
+ import { styled, th, xStyledCommonProps } from "@elliemae/ds-legacy-system";
3
+ import { DSSkeletonName, DSSkeletonSlots } from "../exported-related/index.js";
4
+ import { pulseKeyframe } from "./animation.js";
5
+ import { circularVariantCss, textVariantCss, withChildrenCss } from "./variants.js";
6
+ const StyledSkeleton = styled("div", {
7
+ name: DSSkeletonName,
8
+ slot: DSSkeletonSlots.ROOT
9
+ })`
10
+ display: block;
11
+ height: 20px;
12
+ background-color: ${th.color("neutral-400")}2f;
13
+ ${(props) => {
14
+ if (props.variant === "circular")
15
+ return circularVariantCss;
16
+ if (props.variant === "text")
17
+ return textVariantCss;
18
+ }}
19
+ ${(props) => props.withChildren ? withChildrenCss : ""}
20
+
21
+ animation: ${pulseKeyframe} 1.5s ease-in-out 0.5s infinite;
22
+ ${xStyledCommonProps}
23
+ `;
24
+ export {
25
+ StyledSkeleton
26
+ };
27
+ //# sourceMappingURL=components.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 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-legacy-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
+ "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
+ "names": []
7
+ }
@@ -0,0 +1,30 @@
1
+ import * as React from "react";
2
+ import { css } from "@elliemae/ds-legacy-system";
3
+ const textVariantCss = css`
4
+ margin-top: 0;
5
+ margin-bottom: 0;
6
+ height: auto;
7
+ transform-origin: 0 55%;
8
+ transform: scale(1, 0.6);
9
+ border-radius: 4px/4%;
10
+ &:empty:before {
11
+ content: '\\00a0';
12
+ }
13
+ `;
14
+ const circularVariantCss = css`
15
+ border-radius: 50%;
16
+ `;
17
+ const withChildrenCss = css`
18
+ & > * {
19
+ visibility: hidden;
20
+ }
21
+
22
+ ${({ w }) => !w ? "width: fit-content;" : ""}
23
+ ${({ h }) => !h ? "height: auto;" : ""}
24
+ `;
25
+ export {
26
+ circularVariantCss,
27
+ textVariantCss,
28
+ withChildrenCss
29
+ };
30
+ //# sourceMappingURL=variants.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../../../../scripts/build/transpile/react-shim.js", "../../../src/styled/variants.ts"],
4
+ "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import { css } from '@elliemae/ds-legacy-system';\n\nexport const textVariantCss = css`\n margin-top: 0;\n margin-bottom: 0;\n height: auto;\n transform-origin: 0 55%;\n transform: scale(1, 0.6);\n border-radius: 4px/4%;\n &:empty:before {\n content: '\\\\00a0';\n }\n`;\n\nexport const circularVariantCss = css`\n border-radius: 50%;\n`;\n\nexport const withChildrenCss = css<{ w: unknown; h: unknown }>`\n & > * {\n visibility: hidden;\n }\n\n ${({ w }) => (!w ? 'width: fit-content;' : '')}\n ${({ h }) => (!h ? 'height: auto;' : '')}\n`;\n"],
5
+ "mappings": "AAAA,YAAY,WAAW;ACAvB,SAAS,WAAW;AAEb,MAAM,iBAAiB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAYvB,MAAM,qBAAqB;AAAA;AAAA;AAI3B,MAAM,kBAAkB;AAAA;AAAA;AAAA;AAAA;AAAA,IAK3B,CAAC,EAAE,EAAE,MAAO,CAAC,IAAI,wBAAwB;AAAA,IACzC,CAAC,EAAE,EAAE,MAAO,CAAC,IAAI,kBAAkB;AAAA;",
6
+ "names": []
7
+ }
@@ -0,0 +1,4 @@
1
+ /// <reference types="react" />
2
+ import type { DSSkeletonT } from './react-desc-prop-types.js';
3
+ export declare const DSSkeleton: React.ComponentType<DSSkeletonT.Props>;
4
+ export declare const DSSkeletonWithSchema: import("@elliemae/ds-legacy-props-helpers/dist/types/propTypes/types.js").DocumentedReactComponent<DSSkeletonT.Props>;
@@ -0,0 +1 @@
1
+ export * from './theming.js';
@@ -0,0 +1,4 @@
1
+ export declare const DSSkeletonName = "DSSkeleton";
2
+ export declare const DSSkeletonSlots: {
3
+ ROOT: string;
4
+ };
@@ -0,0 +1,2 @@
1
+ export * from './DSSkeleton.js';
2
+ export * from './exported-related/index.js';
@@ -0,0 +1,11 @@
1
+ import type { WeakValidationMap } from 'react';
2
+ import type { GlobalAttributesT, XstyledProps } from '@elliemae/ds-legacy-props-helpers';
3
+ export declare namespace DSSkeletonT {
4
+ interface IProps {
5
+ variant?: 'circular' | 'rectangular' | 'text';
6
+ }
7
+ interface Props extends IProps, Omit<GlobalAttributesT<HTMLSpanElement>, keyof IProps>, XstyledProps {
8
+ }
9
+ }
10
+ export declare const defaultProps: DSSkeletonT.Props;
11
+ export declare const DSSkeletonPropTypes: WeakValidationMap<unknown>;
@@ -0,0 +1 @@
1
+ export declare const pulseKeyframe: import("styled-components").Keyframes;
@@ -0,0 +1,6 @@
1
+ interface StyledSkeletonProps {
2
+ variant: 'circular' | 'rectangular' | 'text';
3
+ withChildren: boolean;
4
+ }
5
+ export declare const StyledSkeleton: import("styled-components").StyledComponent<"div", import("@elliemae/ds-legacy-system").Theme, StyledSkeletonProps & import("@elliemae/ds-legacy-system").OwnerInterface, never>;
6
+ export {};
package/package.json ADDED
@@ -0,0 +1,67 @@
1
+ {
2
+ "name": "@elliemae/ds-legacy-skeleton",
3
+ "version": "1.0.0-rc.1",
4
+ "license": "MIT",
5
+ "description": "ICE MT - Dimsum - Skeleton UI",
6
+ "files": [
7
+ "dist"
8
+ ],
9
+ "module": "./dist/esm/index.js",
10
+ "main": "./dist/cjs/index.js",
11
+ "types": "./dist/types/index.d.ts",
12
+ "exports": {
13
+ ".": {
14
+ "import": "./dist/esm/index.js",
15
+ "require": "./dist/cjs/index.js"
16
+ }
17
+ },
18
+ "sideEffects": [
19
+ "*.css",
20
+ "*.scss"
21
+ ],
22
+ "repository": {
23
+ "type": "git",
24
+ "url": "https://git.elliemae.io/platform-ui/dimsum-legacy.git"
25
+ },
26
+ "engines": {
27
+ "pnpm": ">=6",
28
+ "node": ">=16"
29
+ },
30
+ "author": "ICE MT",
31
+ "jestSonar": {
32
+ "sonar56x": true,
33
+ "reportPath": "reports",
34
+ "reportFile": "tests.xml",
35
+ "indent": 4
36
+ },
37
+ "dependencies": {
38
+ "@elliemae/ds-legacy-props-helpers": "1.0.0-rc.1",
39
+ "@elliemae/ds-legacy-system": "1.0.0-rc.1",
40
+ "@elliemae/ds-legacy-utilities": "1.0.0-rc.1"
41
+ },
42
+ "devDependencies": {
43
+ "@elliemae/pui-cli": "~9.0.0-next.31",
44
+ "styled-components": "~5.3.9",
45
+ "@elliemae/ds-legacy-monorepo-devops": "1.0.0-rc.1"
46
+ },
47
+ "peerDependencies": {
48
+ "react": "^17.0.2",
49
+ "react-dom": "^17.0.2",
50
+ "styled-components": "~5.3.9"
51
+ },
52
+ "publishConfig": {
53
+ "access": "public",
54
+ "typeSafety": false
55
+ },
56
+ "scripts": {
57
+ "dev": "cross-env NODE_ENV=development node ../../../scripts/build/build.mjs --watch",
58
+ "test": "pui-cli test --passWithNoTests",
59
+ "lint": "node ../../../scripts/lint.mjs",
60
+ "eslint:fix": "eslint --ext='.js,.jsx,.test.js,.ts,.tsx' --fix --config='../../../.eslintrc.js' src/",
61
+ "dts": "node ../../../scripts/dts.mjs",
62
+ "build": "cross-env NODE_ENV=production node ../../../scripts/build/build.mjs",
63
+ "dev:build": "pnpm --filter {.}... build",
64
+ "dev:install": "pnpm --filter {.}... i --no-lockfile && pnpm run dev:build",
65
+ "checkDeps": "npm exec ../../util/ds-codemods -- check-missing-packages --projectFolderPath=\"./\" --ignorePackagesGlobPattern=\"\" --ignoreFilesGlobPattern=\"**/test-ables/*,**/tests/*\""
66
+ }
67
+ }