@elliemae/ds-legacy-indeterminate-progress-indicator 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/DSIndeterminateProgressIndicator.js +107 -0
- package/dist/cjs/DSIndeterminateProgressIndicator.js.map +7 -0
- package/dist/cjs/config/useIndeterminateProgressIndicator.js +78 -0
- package/dist/cjs/config/useIndeterminateProgressIndicator.js.map +7 -0
- package/dist/cjs/config/useValidateProps.js +40 -0
- package/dist/cjs/config/useValidateProps.js.map +7 -0
- package/dist/cjs/constants/index.js +49 -0
- package/dist/cjs/constants/index.js.map +7 -0
- package/dist/cjs/index.js +41 -0
- package/dist/cjs/index.js.map +7 -0
- package/dist/cjs/package.json +7 -0
- package/dist/cjs/react-desc-prop-types.js +67 -0
- package/dist/cjs/react-desc-prop-types.js.map +7 -0
- package/dist/cjs/styled.js +182 -0
- package/dist/cjs/styled.js.map +7 -0
- package/dist/esm/DSIndeterminateProgressIndicator.js +79 -0
- package/dist/esm/DSIndeterminateProgressIndicator.js.map +7 -0
- package/dist/esm/config/useIndeterminateProgressIndicator.js +51 -0
- package/dist/esm/config/useIndeterminateProgressIndicator.js.map +7 -0
- package/dist/esm/config/useValidateProps.js +10 -0
- package/dist/esm/config/useValidateProps.js.map +7 -0
- package/dist/esm/constants/index.js +19 -0
- package/dist/esm/constants/index.js.map +7 -0
- package/dist/esm/index.js +10 -0
- package/dist/esm/index.js.map +7 -0
- package/dist/esm/package.json +7 -0
- package/dist/esm/react-desc-prop-types.js +37 -0
- package/dist/esm/react-desc-prop-types.js.map +7 -0
- package/dist/esm/styled.js +152 -0
- package/dist/esm/styled.js.map +7 -0
- package/dist/types/DSIndeterminateProgressIndicator.d.ts +6 -0
- package/dist/types/config/useIndeterminateProgressIndicator.d.ts +8 -0
- package/dist/types/config/useValidateProps.d.ts +3 -0
- package/dist/types/constants/index.d.ts +8 -0
- package/dist/types/index.d.ts +3 -0
- package/dist/types/react-desc-prop-types.d.ts +28 -0
- package/dist/types/styled.d.ts +6 -0
- package/package.json +70 -0
|
@@ -0,0 +1,107 @@
|
|
|
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 DSIndeterminateProgressIndicator_exports = {};
|
|
30
|
+
__export(DSIndeterminateProgressIndicator_exports, {
|
|
31
|
+
DSIndeterminateProgressIndicator: () => DSIndeterminateProgressIndicator,
|
|
32
|
+
IndeterminateProgressIndicatorWithSchema: () => IndeterminateProgressIndicatorWithSchema,
|
|
33
|
+
default: () => DSIndeterminateProgressIndicator_default
|
|
34
|
+
});
|
|
35
|
+
module.exports = __toCommonJS(DSIndeterminateProgressIndicator_exports);
|
|
36
|
+
var React = __toESM(require("react"));
|
|
37
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
38
|
+
var import_react = require("react");
|
|
39
|
+
var import_ds_legacy_props_helpers = require("@elliemae/ds-legacy-props-helpers");
|
|
40
|
+
var import_react_desc_prop_types = require("./react-desc-prop-types.js");
|
|
41
|
+
var import_useIndeterminateProgressIndicator = require("./config/useIndeterminateProgressIndicator.js");
|
|
42
|
+
var import_constants = require("./constants/index.js");
|
|
43
|
+
var import_ds_legacy_truncated_tooltip_text = require("@elliemae/ds-legacy-truncated-tooltip-text");
|
|
44
|
+
var import_styled = require("./styled.js");
|
|
45
|
+
const DSIndeterminateProgressIndicator = (props) => {
|
|
46
|
+
const { propsWithDefault, label } = (0, import_useIndeterminateProgressIndicator.useIndeterminateProgressIndicator)(props);
|
|
47
|
+
const {
|
|
48
|
+
containerProps,
|
|
49
|
+
complete,
|
|
50
|
+
failed,
|
|
51
|
+
processing,
|
|
52
|
+
processingComplete,
|
|
53
|
+
processingFail,
|
|
54
|
+
animated,
|
|
55
|
+
percent,
|
|
56
|
+
lineOnly
|
|
57
|
+
} = propsWithDefault;
|
|
58
|
+
const globalAttributes = (0, import_ds_legacy_props_helpers.useGetGlobalAttributes)(propsWithDefault);
|
|
59
|
+
const xstyledAttributes = (0, import_ds_legacy_props_helpers.useGetXstyledProps)(propsWithDefault);
|
|
60
|
+
const getOwnerProps = (0, import_react.useCallback)(() => propsWithDefault, [propsWithDefault]);
|
|
61
|
+
const getOwnerPropsArguments = (0, import_react.useCallback)(() => ({}), []);
|
|
62
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
|
|
63
|
+
import_styled.Container,
|
|
64
|
+
{
|
|
65
|
+
"aria-busy": processing,
|
|
66
|
+
"aria-label": label,
|
|
67
|
+
"aria-live": "polite",
|
|
68
|
+
role: "alert",
|
|
69
|
+
lineOnly,
|
|
70
|
+
getOwnerProps,
|
|
71
|
+
getOwnerPropsArguments,
|
|
72
|
+
...globalAttributes,
|
|
73
|
+
...xstyledAttributes,
|
|
74
|
+
...containerProps,
|
|
75
|
+
children: [
|
|
76
|
+
!lineOnly ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ds_legacy_truncated_tooltip_text.TooltipTextProvider, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
77
|
+
import_styled.StyledTruncatedTooltipText,
|
|
78
|
+
{
|
|
79
|
+
value: label,
|
|
80
|
+
getOwnerProps,
|
|
81
|
+
getOwnerPropsArguments
|
|
82
|
+
}
|
|
83
|
+
) }) : null,
|
|
84
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_styled.Bar, { getOwnerProps, getOwnerPropsArguments, children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
85
|
+
import_styled.BarIndicator,
|
|
86
|
+
{
|
|
87
|
+
complete,
|
|
88
|
+
failed,
|
|
89
|
+
processing,
|
|
90
|
+
animated,
|
|
91
|
+
processingComplete,
|
|
92
|
+
processingFail,
|
|
93
|
+
percent,
|
|
94
|
+
getOwnerProps,
|
|
95
|
+
getOwnerPropsArguments
|
|
96
|
+
}
|
|
97
|
+
) })
|
|
98
|
+
]
|
|
99
|
+
}
|
|
100
|
+
);
|
|
101
|
+
};
|
|
102
|
+
DSIndeterminateProgressIndicator.propTypes = import_react_desc_prop_types.DSIndeterminateProgressIndicatorPropTypes;
|
|
103
|
+
DSIndeterminateProgressIndicator.displayName = import_constants.DSIndeterminateProgressIndicatorName;
|
|
104
|
+
const IndeterminateProgressIndicatorWithSchema = (0, import_ds_legacy_props_helpers.describe)(DSIndeterminateProgressIndicator);
|
|
105
|
+
IndeterminateProgressIndicatorWithSchema.propTypes = import_react_desc_prop_types.DSIndeterminateProgressIndicatorPropTypes;
|
|
106
|
+
var DSIndeterminateProgressIndicator_default = DSIndeterminateProgressIndicator;
|
|
107
|
+
//# sourceMappingURL=DSIndeterminateProgressIndicator.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/DSIndeterminateProgressIndicator.tsx", "../../../../../scripts/build/transpile/react-shim.js"],
|
|
4
|
+
"sourcesContent": ["import React, { useCallback } from 'react';\nimport { describe, useGetGlobalAttributes, useGetXstyledProps } from '@elliemae/ds-legacy-props-helpers';\nimport {\n DSIndeterminateProgressIndicatorPropTypes,\n type DSIndeterminateProgressIndicatorT,\n} from './react-desc-prop-types.js';\nimport { useIndeterminateProgressIndicator } from './config/useIndeterminateProgressIndicator.js';\nimport { DSIndeterminateProgressIndicatorName } from './constants/index.js';\nimport { TooltipTextProvider } from '@elliemae/ds-legacy-truncated-tooltip-text';\nimport { Bar, BarIndicator, Container, StyledTruncatedTooltipText } from './styled.js';\n\nconst DSIndeterminateProgressIndicator: React.ComponentType<DSIndeterminateProgressIndicatorT.Props> = (props) => {\n const { propsWithDefault, label } = useIndeterminateProgressIndicator(props);\n const {\n containerProps,\n complete,\n failed,\n processing,\n processingComplete,\n processingFail,\n animated,\n percent,\n lineOnly,\n } = propsWithDefault;\n\n const globalAttributes = useGetGlobalAttributes(propsWithDefault);\n const xstyledAttributes = useGetXstyledProps(propsWithDefault);\n const getOwnerProps = useCallback(() => propsWithDefault, [propsWithDefault]);\n const getOwnerPropsArguments = useCallback(() => ({}), []);\n\n return (\n <Container\n aria-busy={processing}\n aria-label={label}\n aria-live=\"polite\"\n role=\"alert\"\n lineOnly={lineOnly}\n getOwnerProps={getOwnerProps}\n getOwnerPropsArguments={getOwnerPropsArguments}\n {...globalAttributes}\n {...xstyledAttributes}\n {...containerProps}\n >\n {!lineOnly ? (\n <TooltipTextProvider>\n <StyledTruncatedTooltipText\n value={label}\n getOwnerProps={getOwnerProps}\n getOwnerPropsArguments={getOwnerPropsArguments}\n />\n </TooltipTextProvider>\n ) : null}\n <Bar getOwnerProps={getOwnerProps} getOwnerPropsArguments={getOwnerPropsArguments}>\n <BarIndicator\n complete={complete}\n failed={failed}\n processing={processing}\n animated={animated}\n processingComplete={processingComplete}\n processingFail={processingFail}\n percent={percent}\n getOwnerProps={getOwnerProps}\n getOwnerPropsArguments={getOwnerPropsArguments}\n />\n </Bar>\n </Container>\n );\n};\n\nDSIndeterminateProgressIndicator.propTypes = DSIndeterminateProgressIndicatorPropTypes;\nDSIndeterminateProgressIndicator.displayName = DSIndeterminateProgressIndicatorName;\nconst IndeterminateProgressIndicatorWithSchema = describe(DSIndeterminateProgressIndicator);\nIndeterminateProgressIndicatorWithSchema.propTypes = DSIndeterminateProgressIndicatorPropTypes;\n\nexport { DSIndeterminateProgressIndicator, IndeterminateProgressIndicatorWithSchema };\nexport default DSIndeterminateProgressIndicator;\n", "import * as React from 'react';\nexport { React };\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;AD+BnB;AA/BJ,mBAAmC;AACnC,qCAAqE;AACrE,mCAGO;AACP,+CAAkD;AAClD,uBAAqD;AACrD,8CAAoC;AACpC,oBAAyE;AAEzE,MAAM,mCAAiG,CAAC,UAAU;AAChH,QAAM,EAAE,kBAAkB,MAAM,QAAI,4EAAkC,KAAK;AAC3E,QAAM;AAAA,IACJ;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,EACF,IAAI;AAEJ,QAAM,uBAAmB,uDAAuB,gBAAgB;AAChE,QAAM,wBAAoB,mDAAmB,gBAAgB;AAC7D,QAAM,oBAAgB,0BAAY,MAAM,kBAAkB,CAAC,gBAAgB,CAAC;AAC5E,QAAM,6BAAyB,0BAAY,OAAO,CAAC,IAAI,CAAC,CAAC;AAEzD,SACE;AAAA,IAAC;AAAA;AAAA,MACC,aAAW;AAAA,MACX,cAAY;AAAA,MACZ,aAAU;AAAA,MACV,MAAK;AAAA,MACL;AAAA,MACA;AAAA,MACA;AAAA,MACC,GAAG;AAAA,MACH,GAAG;AAAA,MACH,GAAG;AAAA,MAEH;AAAA,SAAC,WACA,4CAAC,+DACC;AAAA,UAAC;AAAA;AAAA,YACC,OAAO;AAAA,YACP;AAAA,YACA;AAAA;AAAA,QACF,GACF,IACE;AAAA,QACJ,4CAAC,qBAAI,eAA8B,wBACjC;AAAA,UAAC;AAAA;AAAA,YACC;AAAA,YACA;AAAA,YACA;AAAA,YACA;AAAA,YACA;AAAA,YACA;AAAA,YACA;AAAA,YACA;AAAA,YACA;AAAA;AAAA,QACF,GACF;AAAA;AAAA;AAAA,EACF;AAEJ;AAEA,iCAAiC,YAAY;AAC7C,iCAAiC,cAAc;AAC/C,MAAM,+CAA2C,yCAAS,gCAAgC;AAC1F,yCAAyC,YAAY;AAGrD,IAAO,2CAAQ;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -0,0 +1,78 @@
|
|
|
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 useIndeterminateProgressIndicator_exports = {};
|
|
30
|
+
__export(useIndeterminateProgressIndicator_exports, {
|
|
31
|
+
useIndeterminateProgressIndicator: () => useIndeterminateProgressIndicator
|
|
32
|
+
});
|
|
33
|
+
module.exports = __toCommonJS(useIndeterminateProgressIndicator_exports);
|
|
34
|
+
var React = __toESM(require("react"));
|
|
35
|
+
var import_react = __toESM(require("react"));
|
|
36
|
+
var import_ds_legacy_props_helpers = require("@elliemae/ds-legacy-props-helpers");
|
|
37
|
+
var import_react_desc_prop_types = require("../react-desc-prop-types.js");
|
|
38
|
+
var import_useValidateProps = require("./useValidateProps.js");
|
|
39
|
+
const useIndeterminateProgressIndicator = (propsFromUser) => {
|
|
40
|
+
const propsWithDefault = (0, import_ds_legacy_props_helpers.useMemoMergePropsWithDefault)(
|
|
41
|
+
propsFromUser,
|
|
42
|
+
import_react_desc_prop_types.defaultProps
|
|
43
|
+
);
|
|
44
|
+
(0, import_useValidateProps.useValidateProps)(propsWithDefault, import_react_desc_prop_types.DSIndeterminateProgressIndicatorPropTypes);
|
|
45
|
+
const {
|
|
46
|
+
title,
|
|
47
|
+
complete,
|
|
48
|
+
failed,
|
|
49
|
+
processing,
|
|
50
|
+
processingComplete,
|
|
51
|
+
processingCompleteTitle,
|
|
52
|
+
processingFail,
|
|
53
|
+
processingFailTitle
|
|
54
|
+
} = propsWithDefault;
|
|
55
|
+
const label = (0, import_react.useMemo)(() => {
|
|
56
|
+
if ((processingComplete || processingFail || processing) && (complete || failed)) {
|
|
57
|
+
return complete ? processingCompleteTitle : processingFailTitle;
|
|
58
|
+
}
|
|
59
|
+
return title;
|
|
60
|
+
}, [
|
|
61
|
+
processingComplete,
|
|
62
|
+
processingFail,
|
|
63
|
+
processing,
|
|
64
|
+
complete,
|
|
65
|
+
failed,
|
|
66
|
+
title,
|
|
67
|
+
processingCompleteTitle,
|
|
68
|
+
processingFailTitle
|
|
69
|
+
]);
|
|
70
|
+
return import_react.default.useMemo(
|
|
71
|
+
() => ({
|
|
72
|
+
propsWithDefault,
|
|
73
|
+
label
|
|
74
|
+
}),
|
|
75
|
+
[propsWithDefault, label]
|
|
76
|
+
);
|
|
77
|
+
};
|
|
78
|
+
//# sourceMappingURL=useIndeterminateProgressIndicator.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/config/useIndeterminateProgressIndicator.ts", "../../../../../../scripts/build/transpile/react-shim.js"],
|
|
4
|
+
"sourcesContent": ["import React, { useMemo } from 'react';\nimport { useMemoMergePropsWithDefault } from '@elliemae/ds-legacy-props-helpers';\nimport {\n type DSIndeterminateProgressIndicatorT,\n DSIndeterminateProgressIndicatorPropTypes,\n defaultProps,\n} from '../react-desc-prop-types.js';\nimport { useValidateProps } from './useValidateProps.js';\n\nexport interface IndeterminateProgressIndicatorCTX {\n propsWithDefault: DSIndeterminateProgressIndicatorT.InternalProps;\n}\n\nexport const useIndeterminateProgressIndicator = (propsFromUser: DSIndeterminateProgressIndicatorT.Props) => {\n // =============================================================================\n // MERGE WITH DEFAULT AND VALIDATE PROPS\n // =============================================================================\n const propsWithDefault = useMemoMergePropsWithDefault<DSIndeterminateProgressIndicatorT.InternalProps>(\n propsFromUser,\n defaultProps,\n );\n useValidateProps(propsWithDefault, DSIndeterminateProgressIndicatorPropTypes);\n // =============================================================================\n // AD HOC PER COMPONENT LOGIC\n // =============================================================================\n const {\n title,\n complete,\n failed,\n processing,\n processingComplete,\n processingCompleteTitle,\n processingFail,\n processingFailTitle,\n } = propsWithDefault;\n\n const label = useMemo(() => {\n if ((processingComplete || processingFail || processing) && (complete || failed)) {\n return complete ? processingCompleteTitle : processingFailTitle;\n }\n return title;\n }, [\n processingComplete,\n processingFail,\n processing,\n complete,\n failed,\n title,\n processingCompleteTitle,\n processingFailTitle,\n ]);\n\n return React.useMemo(\n () => ({\n propsWithDefault,\n label,\n }),\n [propsWithDefault, label],\n );\n};\n", "import * as React from 'react';\nexport { React };\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADAvB,mBAA+B;AAC/B,qCAA6C;AAC7C,mCAIO;AACP,8BAAiC;AAM1B,MAAM,oCAAoC,CAAC,kBAA2D;AAI3G,QAAM,uBAAmB;AAAA,IACvB;AAAA,IACA;AAAA,EACF;AACA,gDAAiB,kBAAkB,sEAAyC;AAI5E,QAAM;AAAA,IACJ;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,EACF,IAAI;AAEJ,QAAM,YAAQ,sBAAQ,MAAM;AAC1B,SAAK,sBAAsB,kBAAkB,gBAAgB,YAAY,SAAS;AAChF,aAAO,WAAW,0BAA0B;AAAA,IAC9C;AACA,WAAO;AAAA,EACT,GAAG;AAAA,IACD;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,EACF,CAAC;AAED,SAAO,aAAAA,QAAM;AAAA,IACX,OAAO;AAAA,MACL;AAAA,MACA;AAAA,IACF;AAAA,IACA,CAAC,kBAAkB,KAAK;AAAA,EAC1B;AACF;",
|
|
6
|
+
"names": ["React"]
|
|
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 useValidateProps_exports = {};
|
|
30
|
+
__export(useValidateProps_exports, {
|
|
31
|
+
useValidateProps: () => useValidateProps
|
|
32
|
+
});
|
|
33
|
+
module.exports = __toCommonJS(useValidateProps_exports);
|
|
34
|
+
var React = __toESM(require("react"));
|
|
35
|
+
var import_ds_legacy_props_helpers = require("@elliemae/ds-legacy-props-helpers");
|
|
36
|
+
var import_constants = require("../constants/index.js");
|
|
37
|
+
const useValidateProps = (props, propTypes) => {
|
|
38
|
+
(0, import_ds_legacy_props_helpers.useValidateTypescriptPropTypes)(props, propTypes, import_constants.DSIndeterminateProgressIndicatorName);
|
|
39
|
+
};
|
|
40
|
+
//# sourceMappingURL=useValidateProps.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/config/useValidateProps.ts", "../../../../../../scripts/build/transpile/react-shim.js"],
|
|
4
|
+
"sourcesContent": ["import { useValidateTypescriptPropTypes } from '@elliemae/ds-legacy-props-helpers';\nimport type { WeakValidationMap } from 'react';\nimport { type DSIndeterminateProgressIndicatorT } from '../react-desc-prop-types.js';\nimport { DSIndeterminateProgressIndicatorName } from '../constants/index.js';\n\nexport const useValidateProps = (\n props: DSIndeterminateProgressIndicatorT.InternalProps,\n propTypes: WeakValidationMap<unknown>,\n): void => {\n // we validate the \"required if\" via 'isRequiredIf from our custom PropTypes\n useValidateTypescriptPropTypes(props, propTypes, DSIndeterminateProgressIndicatorName);\n};\n", "import * as React from 'react';\nexport { React };\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADAvB,qCAA+C;AAG/C,uBAAqD;AAE9C,MAAM,mBAAmB,CAC9B,OACA,cACS;AAET,qEAA+B,OAAO,WAAW,qDAAoC;AACvF;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -0,0 +1,49 @@
|
|
|
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 constants_exports = {};
|
|
30
|
+
__export(constants_exports, {
|
|
31
|
+
DSIndeterminateProgressIndicatorDataTestIds: () => DSIndeterminateProgressIndicatorDataTestIds,
|
|
32
|
+
DSIndeterminateProgressIndicatorName: () => DSIndeterminateProgressIndicatorName,
|
|
33
|
+
DSIndeterminateProgressIndicatorSlots: () => DSIndeterminateProgressIndicatorSlots
|
|
34
|
+
});
|
|
35
|
+
module.exports = __toCommonJS(constants_exports);
|
|
36
|
+
var React = __toESM(require("react"));
|
|
37
|
+
var import_ds_legacy_system = require("@elliemae/ds-legacy-system");
|
|
38
|
+
const DSIndeterminateProgressIndicatorName = "DSIndeterminateProgressIndicator";
|
|
39
|
+
const DSIndeterminateProgressIndicatorSlots = {
|
|
40
|
+
ROOT: "root",
|
|
41
|
+
LABEL: "label",
|
|
42
|
+
BAR: "bar",
|
|
43
|
+
BAR_INDICATOR: "bar_indicator"
|
|
44
|
+
};
|
|
45
|
+
const DSIndeterminateProgressIndicatorDataTestIds = (0, import_ds_legacy_system.slotObjectToDataTestIds)(
|
|
46
|
+
DSIndeterminateProgressIndicatorName,
|
|
47
|
+
DSIndeterminateProgressIndicatorSlots
|
|
48
|
+
);
|
|
49
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/constants/index.ts", "../../../../../../scripts/build/transpile/react-shim.js"],
|
|
4
|
+
"sourcesContent": ["import { slotObjectToDataTestIds } from '@elliemae/ds-legacy-system';\n\nexport const DSIndeterminateProgressIndicatorName = 'DSIndeterminateProgressIndicator';\n\nexport const DSIndeterminateProgressIndicatorSlots = {\n ROOT: 'root',\n LABEL: 'label',\n BAR: 'bar',\n BAR_INDICATOR: 'bar_indicator',\n};\n\nexport const DSIndeterminateProgressIndicatorDataTestIds = slotObjectToDataTestIds(\n DSIndeterminateProgressIndicatorName,\n DSIndeterminateProgressIndicatorSlots,\n);\n", "import * as React from 'react';\nexport { React };\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADAvB,8BAAwC;AAEjC,MAAM,uCAAuC;AAE7C,MAAM,wCAAwC;AAAA,EACnD,MAAM;AAAA,EACN,OAAO;AAAA,EACP,KAAK;AAAA,EACL,eAAe;AACjB;AAEO,MAAM,kDAA8C;AAAA,EACzD;AAAA,EACA;AACF;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
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 __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
|
|
21
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
22
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
23
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
24
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
25
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
26
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
27
|
+
mod
|
|
28
|
+
));
|
|
29
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
30
|
+
var src_exports = {};
|
|
31
|
+
__export(src_exports, {
|
|
32
|
+
DSIndeterminateProgressIndicatorName: () => import_constants.DSIndeterminateProgressIndicatorName,
|
|
33
|
+
DSIndeterminateProgressIndicatorSlots: () => import_constants.DSIndeterminateProgressIndicatorSlots,
|
|
34
|
+
default: () => import_DSIndeterminateProgressIndicator.default
|
|
35
|
+
});
|
|
36
|
+
module.exports = __toCommonJS(src_exports);
|
|
37
|
+
var React = __toESM(require("react"));
|
|
38
|
+
__reExport(src_exports, require("./DSIndeterminateProgressIndicator.js"), module.exports);
|
|
39
|
+
var import_DSIndeterminateProgressIndicator = __toESM(require("./DSIndeterminateProgressIndicator.js"));
|
|
40
|
+
var import_constants = require("./constants/index.js");
|
|
41
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/index.tsx", "../../../../../scripts/build/transpile/react-shim.js"],
|
|
4
|
+
"sourcesContent": ["export * from './DSIndeterminateProgressIndicator.js';\nexport { default } from './DSIndeterminateProgressIndicator.js';\nexport { DSIndeterminateProgressIndicatorName, DSIndeterminateProgressIndicatorSlots } from './constants/index.js';\n", "import * as React from 'react';\nexport { React };\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADAvB,wBAAc,kDAAd;AACA,8CAAwB;AACxB,uBAA4F;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -0,0 +1,67 @@
|
|
|
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
|
+
DSIndeterminateProgressIndicatorPropTypes: () => DSIndeterminateProgressIndicatorPropTypes,
|
|
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
|
+
containerProps: {},
|
|
39
|
+
title: "",
|
|
40
|
+
complete: false,
|
|
41
|
+
failed: false,
|
|
42
|
+
processing: false,
|
|
43
|
+
processingComplete: false,
|
|
44
|
+
processingCompleteTitle: "Complete",
|
|
45
|
+
processingFail: false,
|
|
46
|
+
processingFailTitle: "Fail",
|
|
47
|
+
animated: true,
|
|
48
|
+
percent: 50,
|
|
49
|
+
lineOnly: false
|
|
50
|
+
};
|
|
51
|
+
const DSIndeterminateProgressIndicatorPropTypes = {
|
|
52
|
+
...import_ds_legacy_props_helpers.globalAttributesPropTypes,
|
|
53
|
+
...import_ds_legacy_props_helpers.xstyledPropTypes,
|
|
54
|
+
containerProps: import_ds_legacy_props_helpers.PropTypes.object.description("Set of Properties attached to the main container"),
|
|
55
|
+
title: import_ds_legacy_props_helpers.PropTypes.string.description("component s label"),
|
|
56
|
+
complete: import_ds_legacy_props_helpers.PropTypes.bool.description("Sets the process state to completed").defaultValue(false),
|
|
57
|
+
failed: import_ds_legacy_props_helpers.PropTypes.bool.description("Sets the process state to failed").defaultValue(false),
|
|
58
|
+
processing: import_ds_legacy_props_helpers.PropTypes.bool.description("Sets the process state to processing").defaultValue(false),
|
|
59
|
+
processingComplete: import_ds_legacy_props_helpers.PropTypes.bool.description("Sets the process state to processing and then completed").defaultValue(false),
|
|
60
|
+
processingCompleteTitle: import_ds_legacy_props_helpers.PropTypes.string.description("label to display when the process is completed"),
|
|
61
|
+
processingFail: import_ds_legacy_props_helpers.PropTypes.bool.description("Sets the process state to processing and then failed").defaultValue(false),
|
|
62
|
+
processingFailTitle: import_ds_legacy_props_helpers.PropTypes.string.description("label to display when the process has failed"),
|
|
63
|
+
animated: import_ds_legacy_props_helpers.PropTypes.bool.description("animate or not").defaultValue(true),
|
|
64
|
+
percent: import_ds_legacy_props_helpers.PropTypes.number.description("completion percentage").defaultValue(50),
|
|
65
|
+
lineOnly: import_ds_legacy_props_helpers.PropTypes.bool.description("hide the label from rendering")
|
|
66
|
+
};
|
|
67
|
+
//# 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 { GlobalAttributesT, XstyledProps } from '@elliemae/ds-legacy-props-helpers';\nimport { PropTypes, globalAttributesPropTypes, xstyledPropTypes } from '@elliemae/ds-legacy-props-helpers';\n\nexport declare namespace DSIndeterminateProgressIndicatorT {\n export interface RequiredProps {}\n\n export interface DefaultProps {\n containerProps: object;\n title: string;\n complete: boolean;\n failed: boolean;\n processing: boolean;\n processingComplete: boolean;\n processingCompleteTitle: string;\n processingFail: boolean;\n processingFailTitle: string;\n animated: boolean;\n percent: number;\n lineOnly: boolean;\n }\n\n export interface OptionalProps {}\n\n export interface Props\n extends Partial<DefaultProps>,\n OptionalProps,\n Omit<GlobalAttributesT<HTMLDivElement>, keyof DefaultProps>,\n XstyledProps,\n RequiredProps {}\n\n export interface InternalProps\n extends DefaultProps,\n OptionalProps,\n Omit<GlobalAttributesT<HTMLDivElement>, keyof DefaultProps>,\n XstyledProps,\n RequiredProps {}\n}\n\nexport const defaultProps: DSIndeterminateProgressIndicatorT.DefaultProps = {\n containerProps: {},\n title: '',\n complete: false,\n failed: false,\n processing: false,\n processingComplete: false,\n processingCompleteTitle: 'Complete',\n processingFail: false,\n processingFailTitle: 'Fail',\n animated: true,\n percent: 50,\n lineOnly: false,\n};\n\nexport const DSIndeterminateProgressIndicatorPropTypes = {\n ...globalAttributesPropTypes,\n ...xstyledPropTypes,\n containerProps: PropTypes.object.description('Set of Properties attached to the main container'),\n title: PropTypes.string.description('component s label'),\n complete: PropTypes.bool.description('Sets the process state to completed').defaultValue(false),\n failed: PropTypes.bool.description('Sets the process state to failed').defaultValue(false),\n processing: PropTypes.bool.description('Sets the process state to processing').defaultValue(false),\n processingComplete: PropTypes.bool\n .description('Sets the process state to processing and then completed')\n .defaultValue(false),\n processingCompleteTitle: PropTypes.string.description('label to display when the process is completed'),\n processingFail: PropTypes.bool\n .description('Sets the process state to processing and then failed')\n .defaultValue(false),\n processingFailTitle: PropTypes.string.description('label to display when the process has failed'),\n animated: PropTypes.bool.description('animate or not').defaultValue(true),\n percent: PropTypes.number.description('completion percentage').defaultValue(50),\n lineOnly: PropTypes.bool.description('hide the label from rendering'),\n} as React.WeakValidationMap<unknown>;\n", "import * as React from 'react';\nexport { React };\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADCvB,qCAAuE;AAqChE,MAAM,eAA+D;AAAA,EAC1E,gBAAgB,CAAC;AAAA,EACjB,OAAO;AAAA,EACP,UAAU;AAAA,EACV,QAAQ;AAAA,EACR,YAAY;AAAA,EACZ,oBAAoB;AAAA,EACpB,yBAAyB;AAAA,EACzB,gBAAgB;AAAA,EAChB,qBAAqB;AAAA,EACrB,UAAU;AAAA,EACV,SAAS;AAAA,EACT,UAAU;AACZ;AAEO,MAAM,4CAA4C;AAAA,EACvD,GAAG;AAAA,EACH,GAAG;AAAA,EACH,gBAAgB,yCAAU,OAAO,YAAY,kDAAkD;AAAA,EAC/F,OAAO,yCAAU,OAAO,YAAY,mBAAmB;AAAA,EACvD,UAAU,yCAAU,KAAK,YAAY,qCAAqC,EAAE,aAAa,KAAK;AAAA,EAC9F,QAAQ,yCAAU,KAAK,YAAY,kCAAkC,EAAE,aAAa,KAAK;AAAA,EACzF,YAAY,yCAAU,KAAK,YAAY,sCAAsC,EAAE,aAAa,KAAK;AAAA,EACjG,oBAAoB,yCAAU,KAC3B,YAAY,yDAAyD,EACrE,aAAa,KAAK;AAAA,EACrB,yBAAyB,yCAAU,OAAO,YAAY,gDAAgD;AAAA,EACtG,gBAAgB,yCAAU,KACvB,YAAY,sDAAsD,EAClE,aAAa,KAAK;AAAA,EACrB,qBAAqB,yCAAU,OAAO,YAAY,8CAA8C;AAAA,EAChG,UAAU,yCAAU,KAAK,YAAY,gBAAgB,EAAE,aAAa,IAAI;AAAA,EACxE,SAAS,yCAAU,OAAO,YAAY,uBAAuB,EAAE,aAAa,EAAE;AAAA,EAC9E,UAAU,yCAAU,KAAK,YAAY,+BAA+B;AACtE;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -0,0 +1,182 @@
|
|
|
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 styled_exports = {};
|
|
30
|
+
__export(styled_exports, {
|
|
31
|
+
Bar: () => Bar,
|
|
32
|
+
BarIndicator: () => BarIndicator,
|
|
33
|
+
Container: () => Container,
|
|
34
|
+
StyledTruncatedTooltipText: () => StyledTruncatedTooltipText
|
|
35
|
+
});
|
|
36
|
+
module.exports = __toCommonJS(styled_exports);
|
|
37
|
+
var React = __toESM(require("react"));
|
|
38
|
+
var import_ds_legacy_system = require("@elliemae/ds-legacy-system");
|
|
39
|
+
var import_ds_legacy_truncated_tooltip_text = require("@elliemae/ds-legacy-truncated-tooltip-text");
|
|
40
|
+
var import_constants = require("./constants/index.js");
|
|
41
|
+
const IndeterminateAnimation = (color) => import_ds_legacy_system.kfrm`
|
|
42
|
+
0% {
|
|
43
|
+
transform: scaleX(0.015);
|
|
44
|
+
transform-origin: 0% 0%;
|
|
45
|
+
background-image: linear-gradient(to right, rgba(255,255,255,0.8) 10%, ${color});
|
|
46
|
+
}
|
|
47
|
+
25% {
|
|
48
|
+
transform: scaleX(0.4);
|
|
49
|
+
}
|
|
50
|
+
50% {
|
|
51
|
+
transform: scaleX(0.015);
|
|
52
|
+
transform-origin: 100% 0%;
|
|
53
|
+
background-image: linear-gradient(to right, rgba(255,255,255,0.8) 10%, ${color});
|
|
54
|
+
}
|
|
55
|
+
50.1% {
|
|
56
|
+
transform: scaleX(0.015);
|
|
57
|
+
transform-origin: 100% 0%;
|
|
58
|
+
background-image: linear-gradient(to left, rgba(255,255,255,0.8) 10%, ${color});
|
|
59
|
+
}
|
|
60
|
+
75% {
|
|
61
|
+
transform: scaleX(0.4);
|
|
62
|
+
}
|
|
63
|
+
100% {
|
|
64
|
+
transform: scaleX(0.015);
|
|
65
|
+
transform-origin: 0% 0%;
|
|
66
|
+
background-image: linear-gradient(to left, rgba(255,255,255,0.8) 10%, ${color});
|
|
67
|
+
}
|
|
68
|
+
`;
|
|
69
|
+
const ProcessingSuccess = import_ds_legacy_system.kfrm`
|
|
70
|
+
0%, 30% { transform: translateX(-50%); width: 50% }
|
|
71
|
+
15% { transform: translateX(150%); width: 50% }
|
|
72
|
+
0%, 60% { transform: translateX(-50%); width: 50% }
|
|
73
|
+
45% { transform: translateX(150%); width: 50% }
|
|
74
|
+
0%, 90% { transform: translateX(-50%); width: 50% }
|
|
75
|
+
75% { transform: translateX(150%); width: 50% }
|
|
76
|
+
100% { transform: translateX(0%); }
|
|
77
|
+
`;
|
|
78
|
+
const ProcessingSuccessEnd = (color) => import_ds_legacy_system.kfrm`
|
|
79
|
+
0% { transform: translateX(-50%); width: 50% }
|
|
80
|
+
45% { transform: translateX(150%); width: 50% }
|
|
81
|
+
100% { transform: translateX(0%); background-color: ${color}; }
|
|
82
|
+
`;
|
|
83
|
+
const ProcessingFail = import_ds_legacy_system.kfrm`
|
|
84
|
+
0%, 30% { transform: translateX(-50%); width: 50% }
|
|
85
|
+
15% { transform: translateX(150%); width: 50% }
|
|
86
|
+
0%, 60% { transform: translateX(-50%); width: 50% }
|
|
87
|
+
45% { transform: translateX(150%); width: 50% }
|
|
88
|
+
0%, 90% { transform: translateX(-50%); width: 50% }
|
|
89
|
+
75% { transform: translateX(150%); width: 50%; }
|
|
90
|
+
100% { transform: translateX(0%); }
|
|
91
|
+
`;
|
|
92
|
+
const ProcessingFailEnd = import_ds_legacy_system.kfrm`
|
|
93
|
+
0% { transform: translateX(-50%); width: 50% }
|
|
94
|
+
45% { transform: translateX(150%); width: 50% }
|
|
95
|
+
100% { transform: translateX(0%); background-color: #e34256; }
|
|
96
|
+
`;
|
|
97
|
+
const Container = (0, import_ds_legacy_system.styled)("div", {
|
|
98
|
+
name: import_constants.DSIndeterminateProgressIndicatorName,
|
|
99
|
+
slot: import_constants.DSIndeterminateProgressIndicatorSlots.ROOT
|
|
100
|
+
})`
|
|
101
|
+
width: 100%;
|
|
102
|
+
padding: ${({ theme, lineOnly }) => lineOnly ? 0 : `${theme.space.xxs} ${theme.space.xs}`};
|
|
103
|
+
`;
|
|
104
|
+
const StyledTruncatedTooltipText = (0, import_ds_legacy_system.styled)(import_ds_legacy_truncated_tooltip_text.DSTruncatedTooltipText, {
|
|
105
|
+
name: import_constants.DSIndeterminateProgressIndicatorName,
|
|
106
|
+
slot: import_constants.DSIndeterminateProgressIndicatorSlots.LABEL
|
|
107
|
+
})``;
|
|
108
|
+
const Bar = (0, import_ds_legacy_system.styled)("div", {
|
|
109
|
+
name: import_constants.DSIndeterminateProgressIndicatorName,
|
|
110
|
+
slot: import_constants.DSIndeterminateProgressIndicatorSlots.BAR
|
|
111
|
+
})`
|
|
112
|
+
background-color: ${({ theme }) => theme.colors.neutral[100]};
|
|
113
|
+
overflow: hidden;
|
|
114
|
+
`;
|
|
115
|
+
const BarIndicator = (0, import_ds_legacy_system.styled)("div", {
|
|
116
|
+
name: import_constants.DSIndeterminateProgressIndicatorName,
|
|
117
|
+
slot: import_constants.DSIndeterminateProgressIndicatorSlots.BAR_INDICATOR
|
|
118
|
+
})`
|
|
119
|
+
height: ${({ theme }) => theme.space.xxxs};
|
|
120
|
+
width: ${({ complete, failed, animated, processing, percent }) => `${!complete && !failed && !animated && processing ? percent : 100}%`};
|
|
121
|
+
${({ theme, complete, failed, processing, animated, processingComplete, processingFail }) => {
|
|
122
|
+
if (!complete && !failed && !processing && !processingComplete && !processingFail)
|
|
123
|
+
return import_ds_legacy_system.css`
|
|
124
|
+
background-color: ${theme.colors.neutral[500]};
|
|
125
|
+
`;
|
|
126
|
+
else if (complete && processing)
|
|
127
|
+
return import_ds_legacy_system.css`
|
|
128
|
+
width: 100%;
|
|
129
|
+
background-color: ${theme.colors.brand[500]};
|
|
130
|
+
animation: ${ProcessingSuccessEnd(theme.colors.success[900])} 1s ease-in-out;
|
|
131
|
+
animation-fill-mode: forwards;
|
|
132
|
+
`;
|
|
133
|
+
else if (complete && !processingComplete && !processing)
|
|
134
|
+
return import_ds_legacy_system.css`
|
|
135
|
+
background-color: ${theme.colors.success[900]};
|
|
136
|
+
`;
|
|
137
|
+
else if (failed && !processingFail && !processing)
|
|
138
|
+
return import_ds_legacy_system.css`
|
|
139
|
+
background-color: #e34256;
|
|
140
|
+
`;
|
|
141
|
+
else if (processing) {
|
|
142
|
+
if (animated) {
|
|
143
|
+
return import_ds_legacy_system.css`
|
|
144
|
+
width: 100%;
|
|
145
|
+
animation: ${IndeterminateAnimation(theme.colors.brand[500])} 2s cubic-bezier(0.645, 0.045, 0.355, 1) infinite;
|
|
146
|
+
background-color: ${theme.colors.brand[500]};
|
|
147
|
+
`;
|
|
148
|
+
}
|
|
149
|
+
return import_ds_legacy_system.css`
|
|
150
|
+
background-color: ${theme.colors.brand[500]};
|
|
151
|
+
`;
|
|
152
|
+
} else if (processingComplete && !complete) {
|
|
153
|
+
return import_ds_legacy_system.css`
|
|
154
|
+
width: 50%;
|
|
155
|
+
animation: ${ProcessingSuccess} 4s infinite;
|
|
156
|
+
animation-fill-mode: forwards;
|
|
157
|
+
background-color: ${theme.colors.brand[500]};
|
|
158
|
+
`;
|
|
159
|
+
} else if (processingComplete && complete)
|
|
160
|
+
return import_ds_legacy_system.css`
|
|
161
|
+
width: 100%;
|
|
162
|
+
background-color: ${theme.colors.brand[500]};
|
|
163
|
+
animation: ${ProcessingSuccessEnd(theme.colors.success[900])} 1s ease-in-out;
|
|
164
|
+
animation-fill-mode: forwards;
|
|
165
|
+
`;
|
|
166
|
+
else if (processingFail && !failed)
|
|
167
|
+
return import_ds_legacy_system.css`
|
|
168
|
+
width: 50%;
|
|
169
|
+
animation: ${ProcessingFail} 4s infinite;
|
|
170
|
+
animation-fill-mode: forwards;
|
|
171
|
+
background-color: ${theme.colors.brand[500]};
|
|
172
|
+
`;
|
|
173
|
+
else if (processingFail && failed)
|
|
174
|
+
return import_ds_legacy_system.css`
|
|
175
|
+
width: 100%;
|
|
176
|
+
background-color: ${theme.colors.brand[500]};
|
|
177
|
+
animation: ${ProcessingFailEnd} 1s ease-in-out;
|
|
178
|
+
animation-fill-mode: forwards;
|
|
179
|
+
`;
|
|
180
|
+
}};
|
|
181
|
+
`;
|
|
182
|
+
//# sourceMappingURL=styled.js.map
|