@elliemae/ds-indeterminate-progress-indicator 3.22.1-rc.0 → 3.23.0-rc.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -35,15 +35,13 @@ __export(DSIndeterminateProgressIndicator_exports, {
35
35
  module.exports = __toCommonJS(DSIndeterminateProgressIndicator_exports);
36
36
  var React = __toESM(require("react"));
37
37
  var import_jsx_runtime = require("react/jsx-runtime");
38
+ var import_react = require("react");
38
39
  var import_ds_props_helpers = require("@elliemae/ds-props-helpers");
39
40
  var import_react_desc_prop_types = require("./react-desc-prop-types.js");
40
41
  var import_useIndeterminateProgressIndicator = require("./config/useIndeterminateProgressIndicator.js");
41
42
  var import_constants = require("./constants/index.js");
42
- var import_ds_classnames = require("@elliemae/ds-classnames");
43
- var import_ds_truncated_tooltip_text = __toESM(require("@elliemae/ds-truncated-tooltip-text"));
44
- const { cssClassName, classNameBlock, classNameElement } = (0, import_ds_classnames.convertPropToCssClassName)(
45
- "indeterminate-progress-indicator"
46
- );
43
+ var import_ds_truncated_tooltip_text = require("@elliemae/ds-truncated-tooltip-text");
44
+ var import_styled = require("./styled.js");
47
45
  const DSIndeterminateProgressIndicator = (props) => {
48
46
  const { propsWithDefault, label } = (0, import_useIndeterminateProgressIndicator.useIndeterminateProgressIndicator)(props);
49
47
  const {
@@ -57,29 +55,44 @@ const DSIndeterminateProgressIndicator = (props) => {
57
55
  percent,
58
56
  lineOnly
59
57
  } = propsWithDefault;
58
+ const globalAttributes = (0, import_ds_props_helpers.useGetGlobalAttributes)(propsWithDefault);
59
+ const xstyledAttributes = (0, import_ds_props_helpers.useGetXstyledProps)(propsWithDefault);
60
+ const getOwnerProps = (0, import_react.useCallback)(() => propsWithDefault, [propsWithDefault]);
61
+ const getOwnerPropsArguments = (0, import_react.useCallback)(() => ({}), []);
60
62
  return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
61
- "div",
63
+ import_styled.Container,
62
64
  {
63
65
  "aria-busy": processing,
64
66
  "aria-label": label,
65
67
  "aria-live": "polite",
66
- className: `${cssClassName} ${!complete && !failed && !processing ? classNameBlock("default") : ""} ${complete ? classNameBlock("complete") : ""} ${// eslint-disable-next-line max-len
67
- failed ? classNameBlock("failed") : ""} ${processing ? classNameBlock("processing") : ""} ${animated && processing ? "animated" : ""}
68
- ${processingComplete ? classNameBlock("processing-complete") : ""}
69
- ${processingFail ? classNameBlock("processing-fail") : ""}
70
- ${lineOnly ? "line-only" : ""}
71
- `,
72
68
  role: "alert",
69
+ lineOnly,
70
+ getOwnerProps,
71
+ getOwnerPropsArguments,
72
+ ...globalAttributes,
73
+ ...xstyledAttributes,
73
74
  ...containerProps,
74
75
  children: [
75
- !lineOnly ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ds_truncated_tooltip_text.default, { className: classNameBlock("tooltip-text"), containerComponent: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", {}), value: label }) : null,
76
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: `${classNameElement("bar")}`, children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
77
- "div",
76
+ !lineOnly ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ds_truncated_tooltip_text.TooltipTextProvider, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
77
+ import_styled.StyledTruncatedTooltipText,
78
78
  {
79
- className: `${classNameElement("bar-indicator")}`,
80
- style: {
81
- width: `${!complete && !failed && !animated && processing ? percent : 100}%`
82
- }
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
83
96
  }
84
97
  ) })
85
98
  ]
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../src/DSIndeterminateProgressIndicator.tsx", "../../../../../scripts/build/transpile/react-shim.js"],
4
- "sourcesContent": ["/* eslint-disable complexity */\n/* eslint-disable @typescript-eslint/unbound-method */\nimport React from 'react';\nimport { describe } from '@elliemae/ds-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 { convertPropToCssClassName } from '@elliemae/ds-classnames';\nimport DSTruncatedTooltipText from '@elliemae/ds-truncated-tooltip-text';\n\nconst { cssClassName, classNameBlock, classNameElement } = convertPropToCssClassName(\n 'indeterminate-progress-indicator',\n);\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 return (\n <div\n aria-busy={processing}\n aria-label={label}\n aria-live=\"polite\"\n className={`${cssClassName} ${!complete && !failed && !processing ? classNameBlock('default') : ''} ${\n complete ? classNameBlock('complete') : ''\n } ${\n // eslint-disable-next-line max-len\n failed ? classNameBlock('failed') : ''\n } ${processing ? classNameBlock('processing') : ''} ${animated && processing ? 'animated' : ''} \n ${processingComplete ? classNameBlock('processing-complete') : ''} \n ${processingFail ? classNameBlock('processing-fail') : ''} \n ${lineOnly ? 'line-only' : ''}\n `}\n role=\"alert\"\n {...containerProps}\n >\n {!lineOnly ? (\n <DSTruncatedTooltipText className={classNameBlock('tooltip-text')} containerComponent={<div />} value={label} />\n ) : null}\n <div className={`${classNameElement('bar')}`}>\n <div\n className={`${classNameElement('bar-indicator')}`}\n style={{\n width: `${!complete && !failed && !animated && processing ? percent : 100}%`,\n }}\n />\n </div>\n </div>\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;ADgCnB;AA7BJ,8BAAyB;AACzB,mCAGO;AACP,+CAAkD;AAClD,uBAAqD;AACrD,2BAA0C;AAC1C,uCAAmC;AAEnC,MAAM,EAAE,cAAc,gBAAgB,iBAAiB,QAAI;AAAA,EACzD;AACF;AAEA,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,SACE;AAAA,IAAC;AAAA;AAAA,MACC,aAAW;AAAA,MACX,cAAY;AAAA,MACZ,aAAU;AAAA,MACV,WAAW,GAAG,gBAAgB,CAAC,YAAY,CAAC,UAAU,CAAC,aAAa,eAAe,SAAS,IAAI,MAC9F,WAAW,eAAe,UAAU,IAAI;AAAA,MAGxC,SAAS,eAAe,QAAQ,IAAI,MAClC,aAAa,eAAe,YAAY,IAAI,MAAM,YAAY,aAAa,aAAa;AAAA,WACvF,qBAAqB,eAAe,qBAAqB,IAAI;AAAA,WAC7D,iBAAiB,eAAe,iBAAiB,IAAI;AAAA,WACrD,WAAW,cAAc;AAAA;AAAA,MAE9B,MAAK;AAAA,MACJ,GAAG;AAAA,MAEH;AAAA,SAAC,WACA,4CAAC,iCAAAA,SAAA,EAAuB,WAAW,eAAe,cAAc,GAAG,oBAAoB,4CAAC,SAAI,GAAI,OAAO,OAAO,IAC5G;AAAA,QACJ,4CAAC,SAAI,WAAW,GAAG,iBAAiB,KAAK,KACvC;AAAA,UAAC;AAAA;AAAA,YACC,WAAW,GAAG,iBAAiB,eAAe;AAAA,YAC9C,OAAO;AAAA,cACL,OAAO,GAAG,CAAC,YAAY,CAAC,UAAU,CAAC,YAAY,aAAa,UAAU;AAAA,YACxE;AAAA;AAAA,QACF,GACF;AAAA;AAAA;AAAA,EACF;AAEJ;AAEA,iCAAiC,YAAY;AAC7C,iCAAiC,cAAc;AAC/C,MAAM,+CAA2C,kCAAS,gCAAgC;AAC1F,yCAAyC,YAAY;AAGrD,IAAO,2CAAQ;",
6
- "names": ["DSTruncatedTooltipText"]
4
+ "sourcesContent": ["import React, { useCallback } from 'react';\nimport { describe, useGetGlobalAttributes, useGetXstyledProps } from '@elliemae/ds-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-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,8BAAqE;AACrE,mCAGO;AACP,+CAAkD;AAClD,uBAAqD;AACrD,uCAAoC;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,gDAAuB,gBAAgB;AAChE,QAAM,wBAAoB,4CAAmB,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,wDACC;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,kCAAS,gCAAgC;AAC1F,yCAAyC,YAAY;AAGrD,IAAO,2CAAQ;",
6
+ "names": []
7
7
  }
@@ -28,9 +28,22 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
28
28
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
29
  var constants_exports = {};
30
30
  __export(constants_exports, {
31
- DSIndeterminateProgressIndicatorName: () => DSIndeterminateProgressIndicatorName
31
+ DSIndeterminateProgressIndicatorDataTestIds: () => DSIndeterminateProgressIndicatorDataTestIds,
32
+ DSIndeterminateProgressIndicatorName: () => DSIndeterminateProgressIndicatorName,
33
+ DSIndeterminateProgressIndicatorSlots: () => DSIndeterminateProgressIndicatorSlots
32
34
  });
33
35
  module.exports = __toCommonJS(constants_exports);
34
36
  var React = __toESM(require("react"));
37
+ var import_ds_system = require("@elliemae/ds-system");
35
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_system.slotObjectToDataTestIds)(
46
+ DSIndeterminateProgressIndicatorName,
47
+ DSIndeterminateProgressIndicatorSlots
48
+ );
36
49
  //# sourceMappingURL=index.js.map
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../src/constants/index.ts", "../../../../../../scripts/build/transpile/react-shim.js"],
4
- "sourcesContent": ["export const DSIndeterminateProgressIndicatorName = 'DSIndeterminateProgressIndicator';\n", "import * as React from 'react';\nexport { React };\n"],
5
- "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADAhB,MAAM,uCAAuC;",
4
+ "sourcesContent": ["import { slotObjectToDataTestIds } from '@elliemae/ds-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,uBAAwC;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
6
  "names": []
7
7
  }
package/dist/cjs/index.js CHANGED
@@ -29,10 +29,13 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
29
29
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
30
30
  var src_exports = {};
31
31
  __export(src_exports, {
32
+ DSIndeterminateProgressIndicatorName: () => import_constants.DSIndeterminateProgressIndicatorName,
33
+ DSIndeterminateProgressIndicatorSlots: () => import_constants.DSIndeterminateProgressIndicatorSlots,
32
34
  default: () => import_DSIndeterminateProgressIndicator.default
33
35
  });
34
36
  module.exports = __toCommonJS(src_exports);
35
37
  var React = __toESM(require("react"));
36
38
  __reExport(src_exports, require("./DSIndeterminateProgressIndicator.js"), module.exports);
37
39
  var import_DSIndeterminateProgressIndicator = __toESM(require("./DSIndeterminateProgressIndicator.js"));
40
+ var import_constants = require("./constants/index.js");
38
41
  //# sourceMappingURL=index.js.map
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../src/index.tsx", "../../../../../scripts/build/transpile/react-shim.js"],
4
- "sourcesContent": ["export * from './DSIndeterminateProgressIndicator.js';\nexport { default } from './DSIndeterminateProgressIndicator.js';\n", "import * as React from 'react';\nexport { React };\n"],
5
- "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADAvB,wBAAc,kDAAd;AACA,8CAAwB;",
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
6
  "names": []
7
7
  }
@@ -49,6 +49,8 @@ const defaultProps = {
49
49
  lineOnly: false
50
50
  };
51
51
  const DSIndeterminateProgressIndicatorPropTypes = {
52
+ ...import_ds_props_helpers.globalAttributesPropTypes,
53
+ ...import_ds_props_helpers.xstyledPropTypes,
52
54
  containerProps: import_ds_props_helpers.PropTypes.object.description("Set of Properties attached to the main container"),
53
55
  title: import_ds_props_helpers.PropTypes.string.description("component s label"),
54
56
  complete: import_ds_props_helpers.PropTypes.bool.description("Sets the process state to completed").defaultValue(false),
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../src/react-desc-prop-types.ts", "../../../../../scripts/build/transpile/react-shim.js"],
4
- "sourcesContent": ["/* eslint-disable @typescript-eslint/no-empty-interface */\nimport { PropTypes } from '@elliemae/ds-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 extends Partial<DefaultProps>, OptionalProps, RequiredProps {}\n\n export interface InternalProps extends DefaultProps, OptionalProps, 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 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,8BAA0B;AA2BnB,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,gBAAgB,kCAAU,OAAO,YAAY,kDAAkD;AAAA,EAC/F,OAAO,kCAAU,OAAO,YAAY,mBAAmB;AAAA,EACvD,UAAU,kCAAU,KAAK,YAAY,qCAAqC,EAAE,aAAa,KAAK;AAAA,EAC9F,QAAQ,kCAAU,KAAK,YAAY,kCAAkC,EAAE,aAAa,KAAK;AAAA,EACzF,YAAY,kCAAU,KAAK,YAAY,sCAAsC,EAAE,aAAa,KAAK;AAAA,EACjG,oBAAoB,kCAAU,KAC3B,YAAY,yDAAyD,EACrE,aAAa,KAAK;AAAA,EACrB,yBAAyB,kCAAU,OAAO,YAAY,gDAAgD;AAAA,EACtG,gBAAgB,kCAAU,KACvB,YAAY,sDAAsD,EAClE,aAAa,KAAK;AAAA,EACrB,qBAAqB,kCAAU,OAAO,YAAY,8CAA8C;AAAA,EAChG,UAAU,kCAAU,KAAK,YAAY,gBAAgB,EAAE,aAAa,IAAI;AAAA,EACxE,SAAS,kCAAU,OAAO,YAAY,uBAAuB,EAAE,aAAa,EAAE;AAAA,EAC9E,UAAU,kCAAU,KAAK,YAAY,+BAA+B;AACtE;",
4
+ "sourcesContent": ["import type { GlobalAttributesT, XstyledProps } from '@elliemae/ds-props-helpers';\nimport { PropTypes, globalAttributesPropTypes, xstyledPropTypes } from '@elliemae/ds-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,8BAAuE;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,kCAAU,OAAO,YAAY,kDAAkD;AAAA,EAC/F,OAAO,kCAAU,OAAO,YAAY,mBAAmB;AAAA,EACvD,UAAU,kCAAU,KAAK,YAAY,qCAAqC,EAAE,aAAa,KAAK;AAAA,EAC9F,QAAQ,kCAAU,KAAK,YAAY,kCAAkC,EAAE,aAAa,KAAK;AAAA,EACzF,YAAY,kCAAU,KAAK,YAAY,sCAAsC,EAAE,aAAa,KAAK;AAAA,EACjG,oBAAoB,kCAAU,KAC3B,YAAY,yDAAyD,EACrE,aAAa,KAAK;AAAA,EACrB,yBAAyB,kCAAU,OAAO,YAAY,gDAAgD;AAAA,EACtG,gBAAgB,kCAAU,KACvB,YAAY,sDAAsD,EAClE,aAAa,KAAK;AAAA,EACrB,qBAAqB,kCAAU,OAAO,YAAY,8CAA8C;AAAA,EAChG,UAAU,kCAAU,KAAK,YAAY,gBAAgB,EAAE,aAAa,IAAI;AAAA,EACxE,SAAS,kCAAU,OAAO,YAAY,uBAAuB,EAAE,aAAa,EAAE;AAAA,EAC9E,UAAU,kCAAU,KAAK,YAAY,+BAA+B;AACtE;",
6
6
  "names": []
7
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_system = require("@elliemae/ds-system");
39
+ var import_ds_truncated_tooltip_text = require("@elliemae/ds-truncated-tooltip-text");
40
+ var import_constants = require("./constants/index.js");
41
+ const IndeterminateAnimation = (color) => import_ds_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_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_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_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_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_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_system.styled)(import_ds_truncated_tooltip_text.DSTruncatedTooltipText, {
105
+ name: import_constants.DSIndeterminateProgressIndicatorName,
106
+ slot: import_constants.DSIndeterminateProgressIndicatorSlots.LABEL
107
+ })``;
108
+ const Bar = (0, import_ds_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_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_system.css`
124
+ background-color: ${theme.colors.neutral[500]};
125
+ `;
126
+ else if (complete && processing)
127
+ return import_ds_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_system.css`
135
+ background-color: ${theme.colors.success[900]};
136
+ `;
137
+ else if (failed && !processingFail && !processing)
138
+ return import_ds_system.css`
139
+ background-color: #e34256;
140
+ `;
141
+ else if (processing) {
142
+ if (animated) {
143
+ return import_ds_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_system.css`
150
+ background-color: ${theme.colors.brand[500]};
151
+ `;
152
+ } else if (processingComplete && !complete) {
153
+ return import_ds_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_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_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_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
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../src/styled.tsx", "../../../../../scripts/build/transpile/react-shim.js"],
4
+ "sourcesContent": ["/* eslint-disable complexity */\nimport { css, kfrm, styled } from '@elliemae/ds-system';\nimport { type DSIndeterminateProgressIndicatorT } from './react-desc-prop-types.js';\nimport { DSTruncatedTooltipText } from '@elliemae/ds-truncated-tooltip-text';\nimport { DSIndeterminateProgressIndicatorName, DSIndeterminateProgressIndicatorSlots } from './constants/index.js';\n\nconst IndeterminateAnimation = (color: string) => kfrm`\n 0% {\n transform: scaleX(0.015);\n transform-origin: 0% 0%;\n background-image: linear-gradient(to right, rgba(255,255,255,0.8) 10%, ${color});\n }\n 25% {\n transform: scaleX(0.4);\n }\n 50% {\n transform: scaleX(0.015);\n transform-origin: 100% 0%;\n background-image: linear-gradient(to right, rgba(255,255,255,0.8) 10%, ${color});\n }\n 50.1% {\n transform: scaleX(0.015);\n transform-origin: 100% 0%;\n background-image: linear-gradient(to left, rgba(255,255,255,0.8) 10%, ${color});\n }\n 75% {\n transform: scaleX(0.4);\n }\n 100% {\n transform: scaleX(0.015);\n transform-origin: 0% 0%;\n background-image: linear-gradient(to left, rgba(255,255,255,0.8) 10%, ${color});\n }\n`;\n\nconst ProcessingSuccess = kfrm`\n 0%, 30% { transform: translateX(-50%); width: 50% }\n 15% { transform: translateX(150%); width: 50% }\n 0%, 60% { transform: translateX(-50%); width: 50% }\n 45% { transform: translateX(150%); width: 50% }\n 0%, 90% { transform: translateX(-50%); width: 50% }\n 75% { transform: translateX(150%); width: 50% }\n 100% { transform: translateX(0%); }\n`;\n\nconst ProcessingSuccessEnd = (color: string) => kfrm`\n 0% { transform: translateX(-50%); width: 50% }\n 45% { transform: translateX(150%); width: 50% }\n 100% { transform: translateX(0%); background-color: ${color}; }\n`;\n\nconst ProcessingFail = kfrm`\n 0%, 30% { transform: translateX(-50%); width: 50% }\n 15% { transform: translateX(150%); width: 50% }\n 0%, 60% { transform: translateX(-50%); width: 50% }\n 45% { transform: translateX(150%); width: 50% }\n 0%, 90% { transform: translateX(-50%); width: 50% }\n 75% { transform: translateX(150%); width: 50%; }\n 100% { transform: translateX(0%); }\n`;\n\nconst ProcessingFailEnd = kfrm`\n 0% { transform: translateX(-50%); width: 50% }\n 45% { transform: translateX(150%); width: 50% }\n 100% { transform: translateX(0%); background-color: #e34256; }\n`;\n\nexport const Container = styled('div', {\n name: DSIndeterminateProgressIndicatorName,\n slot: DSIndeterminateProgressIndicatorSlots.ROOT,\n})<DSIndeterminateProgressIndicatorT.Props>`\n width: 100%;\n padding: ${({ theme, lineOnly }) => (lineOnly ? 0 : `${theme.space.xxs} ${theme.space.xs}`)};\n`;\n\nexport const StyledTruncatedTooltipText = styled(DSTruncatedTooltipText, {\n name: DSIndeterminateProgressIndicatorName,\n slot: DSIndeterminateProgressIndicatorSlots.LABEL,\n})``;\n\nexport const Bar = styled('div', {\n name: DSIndeterminateProgressIndicatorName,\n slot: DSIndeterminateProgressIndicatorSlots.BAR,\n})`\n background-color: ${({ theme }) => theme.colors.neutral[100]};\n overflow: hidden;\n`;\n\nexport const BarIndicator = styled('div', {\n name: DSIndeterminateProgressIndicatorName,\n slot: DSIndeterminateProgressIndicatorSlots.BAR_INDICATOR,\n})<DSIndeterminateProgressIndicatorT.Props>`\n height: ${({ theme }) => theme.space.xxxs};\n width: ${({ complete, failed, animated, processing, percent }) =>\n `${!complete && !failed && !animated && processing ? percent : 100}%`};\n ${({ theme, complete, failed, processing, animated, processingComplete, processingFail }) => {\n // Default\n if (!complete && !failed && !processing && !processingComplete && !processingFail)\n return css`\n background-color: ${theme.colors.neutral[500]};\n `;\n // Completed\n else if (complete && processing)\n return css`\n width: 100%;\n background-color: ${theme.colors.brand[500]};\n animation: ${ProcessingSuccessEnd(theme.colors.success[900])} 1s ease-in-out;\n animation-fill-mode: forwards;\n `;\n else if (complete && !processingComplete && !processing)\n return css`\n background-color: ${theme.colors.success[900]};\n `;\n // Failed\n else if (failed && !processingFail && !processing)\n return css`\n background-color: #e34256;\n `;\n // Processing\n else if (processing) {\n if (animated) {\n return css`\n width: 100%;\n animation: ${IndeterminateAnimation(theme.colors.brand[500])} 2s cubic-bezier(0.645, 0.045, 0.355, 1) infinite;\n background-color: ${theme.colors.brand[500]};\n `;\n }\n return css`\n background-color: ${theme.colors.brand[500]};\n `;\n }\n // Processing -> Completed\n else if (processingComplete && !complete) {\n return css`\n width: 50%;\n animation: ${ProcessingSuccess} 4s infinite;\n animation-fill-mode: forwards;\n background-color: ${theme.colors.brand[500]};\n `;\n } else if (processingComplete && complete)\n return css`\n width: 100%;\n background-color: ${theme.colors.brand[500]};\n animation: ${ProcessingSuccessEnd(theme.colors.success[900])} 1s ease-in-out;\n animation-fill-mode: forwards;\n `;\n // Processing -> Failed\n else if (processingFail && !failed)\n return css`\n width: 50%;\n animation: ${ProcessingFail} 4s infinite;\n animation-fill-mode: forwards;\n background-color: ${theme.colors.brand[500]};\n `;\n else if (processingFail && failed)\n return css`\n width: 100%;\n background-color: ${theme.colors.brand[500]};\n animation: ${ProcessingFailEnd} 1s ease-in-out;\n animation-fill-mode: forwards;\n `;\n }};\n`;\n", "import * as React from 'react';\nexport { React };\n"],
5
+ "mappings": "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",
6
+ "names": []
7
+ }
@@ -1,16 +1,14 @@
1
1
  import * as React from "react";
2
2
  import { jsx, jsxs } from "react/jsx-runtime";
3
- import { describe } from "@elliemae/ds-props-helpers";
3
+ import { useCallback } from "react";
4
+ import { describe, useGetGlobalAttributes, useGetXstyledProps } from "@elliemae/ds-props-helpers";
4
5
  import {
5
6
  DSIndeterminateProgressIndicatorPropTypes
6
7
  } from "./react-desc-prop-types.js";
7
8
  import { useIndeterminateProgressIndicator } from "./config/useIndeterminateProgressIndicator.js";
8
9
  import { DSIndeterminateProgressIndicatorName } from "./constants/index.js";
9
- import { convertPropToCssClassName } from "@elliemae/ds-classnames";
10
- import DSTruncatedTooltipText from "@elliemae/ds-truncated-tooltip-text";
11
- const { cssClassName, classNameBlock, classNameElement } = convertPropToCssClassName(
12
- "indeterminate-progress-indicator"
13
- );
10
+ import { TooltipTextProvider } from "@elliemae/ds-truncated-tooltip-text";
11
+ import { Bar, BarIndicator, Container, StyledTruncatedTooltipText } from "./styled.js";
14
12
  const DSIndeterminateProgressIndicator = (props) => {
15
13
  const { propsWithDefault, label } = useIndeterminateProgressIndicator(props);
16
14
  const {
@@ -24,29 +22,44 @@ const DSIndeterminateProgressIndicator = (props) => {
24
22
  percent,
25
23
  lineOnly
26
24
  } = propsWithDefault;
25
+ const globalAttributes = useGetGlobalAttributes(propsWithDefault);
26
+ const xstyledAttributes = useGetXstyledProps(propsWithDefault);
27
+ const getOwnerProps = useCallback(() => propsWithDefault, [propsWithDefault]);
28
+ const getOwnerPropsArguments = useCallback(() => ({}), []);
27
29
  return /* @__PURE__ */ jsxs(
28
- "div",
30
+ Container,
29
31
  {
30
32
  "aria-busy": processing,
31
33
  "aria-label": label,
32
34
  "aria-live": "polite",
33
- className: `${cssClassName} ${!complete && !failed && !processing ? classNameBlock("default") : ""} ${complete ? classNameBlock("complete") : ""} ${// eslint-disable-next-line max-len
34
- failed ? classNameBlock("failed") : ""} ${processing ? classNameBlock("processing") : ""} ${animated && processing ? "animated" : ""}
35
- ${processingComplete ? classNameBlock("processing-complete") : ""}
36
- ${processingFail ? classNameBlock("processing-fail") : ""}
37
- ${lineOnly ? "line-only" : ""}
38
- `,
39
35
  role: "alert",
36
+ lineOnly,
37
+ getOwnerProps,
38
+ getOwnerPropsArguments,
39
+ ...globalAttributes,
40
+ ...xstyledAttributes,
40
41
  ...containerProps,
41
42
  children: [
42
- !lineOnly ? /* @__PURE__ */ jsx(DSTruncatedTooltipText, { className: classNameBlock("tooltip-text"), containerComponent: /* @__PURE__ */ jsx("div", {}), value: label }) : null,
43
- /* @__PURE__ */ jsx("div", { className: `${classNameElement("bar")}`, children: /* @__PURE__ */ jsx(
44
- "div",
43
+ !lineOnly ? /* @__PURE__ */ jsx(TooltipTextProvider, { children: /* @__PURE__ */ jsx(
44
+ StyledTruncatedTooltipText,
45
45
  {
46
- className: `${classNameElement("bar-indicator")}`,
47
- style: {
48
- width: `${!complete && !failed && !animated && processing ? percent : 100}%`
49
- }
46
+ value: label,
47
+ getOwnerProps,
48
+ getOwnerPropsArguments
49
+ }
50
+ ) }) : null,
51
+ /* @__PURE__ */ jsx(Bar, { getOwnerProps, getOwnerPropsArguments, children: /* @__PURE__ */ jsx(
52
+ BarIndicator,
53
+ {
54
+ complete,
55
+ failed,
56
+ processing,
57
+ animated,
58
+ processingComplete,
59
+ processingFail,
60
+ percent,
61
+ getOwnerProps,
62
+ getOwnerPropsArguments
50
63
  }
51
64
  ) })
52
65
  ]
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../../../scripts/build/transpile/react-shim.js", "../../src/DSIndeterminateProgressIndicator.tsx"],
4
- "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "/* eslint-disable complexity */\n/* eslint-disable @typescript-eslint/unbound-method */\nimport React from 'react';\nimport { describe } from '@elliemae/ds-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 { convertPropToCssClassName } from '@elliemae/ds-classnames';\nimport DSTruncatedTooltipText from '@elliemae/ds-truncated-tooltip-text';\n\nconst { cssClassName, classNameBlock, classNameElement } = convertPropToCssClassName(\n 'indeterminate-progress-indicator',\n);\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 return (\n <div\n aria-busy={processing}\n aria-label={label}\n aria-live=\"polite\"\n className={`${cssClassName} ${!complete && !failed && !processing ? classNameBlock('default') : ''} ${\n complete ? classNameBlock('complete') : ''\n } ${\n // eslint-disable-next-line max-len\n failed ? classNameBlock('failed') : ''\n } ${processing ? classNameBlock('processing') : ''} ${animated && processing ? 'animated' : ''} \n ${processingComplete ? classNameBlock('processing-complete') : ''} \n ${processingFail ? classNameBlock('processing-fail') : ''} \n ${lineOnly ? 'line-only' : ''}\n `}\n role=\"alert\"\n {...containerProps}\n >\n {!lineOnly ? (\n <DSTruncatedTooltipText className={classNameBlock('tooltip-text')} containerComponent={<div />} value={label} />\n ) : null}\n <div className={`${classNameElement('bar')}`}>\n <div\n className={`${classNameElement('bar-indicator')}`}\n style={{\n width: `${!complete && !failed && !animated && processing ? percent : 100}%`,\n }}\n />\n </div>\n </div>\n );\n};\n\nDSIndeterminateProgressIndicator.propTypes = DSIndeterminateProgressIndicatorPropTypes;\nDSIndeterminateProgressIndicator.displayName = DSIndeterminateProgressIndicatorName;\nconst IndeterminateProgressIndicatorWithSchema = describe(DSIndeterminateProgressIndicator);\nIndeterminateProgressIndicatorWithSchema.propTypes = DSIndeterminateProgressIndicatorPropTypes;\n\nexport { DSIndeterminateProgressIndicator, IndeterminateProgressIndicatorWithSchema };\nexport default DSIndeterminateProgressIndicator;\n"],
5
- "mappings": "AAAA,YAAY,WAAW;ACgCnB,SAkB2F,KAlB3F;AA7BJ,SAAS,gBAAgB;AACzB;AAAA,EACE;AAAA,OAEK;AACP,SAAS,yCAAyC;AAClD,SAAS,4CAA4C;AACrD,SAAS,iCAAiC;AAC1C,OAAO,4BAA4B;AAEnC,MAAM,EAAE,cAAc,gBAAgB,iBAAiB,IAAI;AAAA,EACzD;AACF;AAEA,MAAM,mCAAiG,CAAC,UAAU;AAChH,QAAM,EAAE,kBAAkB,MAAM,IAAI,kCAAkC,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,SACE;AAAA,IAAC;AAAA;AAAA,MACC,aAAW;AAAA,MACX,cAAY;AAAA,MACZ,aAAU;AAAA,MACV,WAAW,GAAG,gBAAgB,CAAC,YAAY,CAAC,UAAU,CAAC,aAAa,eAAe,SAAS,IAAI,MAC9F,WAAW,eAAe,UAAU,IAAI;AAAA,MAGxC,SAAS,eAAe,QAAQ,IAAI,MAClC,aAAa,eAAe,YAAY,IAAI,MAAM,YAAY,aAAa,aAAa;AAAA,WACvF,qBAAqB,eAAe,qBAAqB,IAAI;AAAA,WAC7D,iBAAiB,eAAe,iBAAiB,IAAI;AAAA,WACrD,WAAW,cAAc;AAAA;AAAA,MAE9B,MAAK;AAAA,MACJ,GAAG;AAAA,MAEH;AAAA,SAAC,WACA,oBAAC,0BAAuB,WAAW,eAAe,cAAc,GAAG,oBAAoB,oBAAC,SAAI,GAAI,OAAO,OAAO,IAC5G;AAAA,QACJ,oBAAC,SAAI,WAAW,GAAG,iBAAiB,KAAK,KACvC;AAAA,UAAC;AAAA;AAAA,YACC,WAAW,GAAG,iBAAiB,eAAe;AAAA,YAC9C,OAAO;AAAA,cACL,OAAO,GAAG,CAAC,YAAY,CAAC,UAAU,CAAC,YAAY,aAAa,UAAU;AAAA,YACxE;AAAA;AAAA,QACF,GACF;AAAA;AAAA;AAAA,EACF;AAEJ;AAEA,iCAAiC,YAAY;AAC7C,iCAAiC,cAAc;AAC/C,MAAM,2CAA2C,SAAS,gCAAgC;AAC1F,yCAAyC,YAAY;AAGrD,IAAO,2CAAQ;",
4
+ "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import React, { useCallback } from 'react';\nimport { describe, useGetGlobalAttributes, useGetXstyledProps } from '@elliemae/ds-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-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"],
5
+ "mappings": "AAAA,YAAY,WAAW;AC+BnB,SAcM,KAdN;AA/BJ,SAAgB,mBAAmB;AACnC,SAAS,UAAU,wBAAwB,0BAA0B;AACrE;AAAA,EACE;AAAA,OAEK;AACP,SAAS,yCAAyC;AAClD,SAAS,4CAA4C;AACrD,SAAS,2BAA2B;AACpC,SAAS,KAAK,cAAc,WAAW,kCAAkC;AAEzE,MAAM,mCAAiG,CAAC,UAAU;AAChH,QAAM,EAAE,kBAAkB,MAAM,IAAI,kCAAkC,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,mBAAmB,uBAAuB,gBAAgB;AAChE,QAAM,oBAAoB,mBAAmB,gBAAgB;AAC7D,QAAM,gBAAgB,YAAY,MAAM,kBAAkB,CAAC,gBAAgB,CAAC;AAC5E,QAAM,yBAAyB,YAAY,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,oBAAC,uBACC;AAAA,UAAC;AAAA;AAAA,YACC,OAAO;AAAA,YACP;AAAA,YACA;AAAA;AAAA,QACF,GACF,IACE;AAAA,QACJ,oBAAC,OAAI,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,2CAA2C,SAAS,gCAAgC;AAC1F,yCAAyC,YAAY;AAGrD,IAAO,2CAAQ;",
6
6
  "names": []
7
7
  }
@@ -1,6 +1,19 @@
1
1
  import * as React from "react";
2
+ import { slotObjectToDataTestIds } from "@elliemae/ds-system";
2
3
  const DSIndeterminateProgressIndicatorName = "DSIndeterminateProgressIndicator";
4
+ const DSIndeterminateProgressIndicatorSlots = {
5
+ ROOT: "root",
6
+ LABEL: "label",
7
+ BAR: "bar",
8
+ BAR_INDICATOR: "bar_indicator"
9
+ };
10
+ const DSIndeterminateProgressIndicatorDataTestIds = slotObjectToDataTestIds(
11
+ DSIndeterminateProgressIndicatorName,
12
+ DSIndeterminateProgressIndicatorSlots
13
+ );
3
14
  export {
4
- DSIndeterminateProgressIndicatorName
15
+ DSIndeterminateProgressIndicatorDataTestIds,
16
+ DSIndeterminateProgressIndicatorName,
17
+ DSIndeterminateProgressIndicatorSlots
5
18
  };
6
19
  //# sourceMappingURL=index.js.map
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../../../../scripts/build/transpile/react-shim.js", "../../../src/constants/index.ts"],
4
- "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "export const DSIndeterminateProgressIndicatorName = 'DSIndeterminateProgressIndicator';\n"],
5
- "mappings": "AAAA,YAAY,WAAW;ACAhB,MAAM,uCAAuC;",
4
+ "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import { slotObjectToDataTestIds } from '@elliemae/ds-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"],
5
+ "mappings": "AAAA,YAAY,WAAW;ACAvB,SAAS,+BAA+B;AAEjC,MAAM,uCAAuC;AAE7C,MAAM,wCAAwC;AAAA,EACnD,MAAM;AAAA,EACN,OAAO;AAAA,EACP,KAAK;AAAA,EACL,eAAe;AACjB;AAEO,MAAM,8CAA8C;AAAA,EACzD;AAAA,EACA;AACF;",
6
6
  "names": []
7
7
  }
package/dist/esm/index.js CHANGED
@@ -1,7 +1,10 @@
1
1
  import * as React from "react";
2
2
  export * from "./DSIndeterminateProgressIndicator.js";
3
3
  import { default as default2 } from "./DSIndeterminateProgressIndicator.js";
4
+ import { DSIndeterminateProgressIndicatorName, DSIndeterminateProgressIndicatorSlots } from "./constants/index.js";
4
5
  export {
6
+ DSIndeterminateProgressIndicatorName,
7
+ DSIndeterminateProgressIndicatorSlots,
5
8
  default2 as default
6
9
  };
7
10
  //# sourceMappingURL=index.js.map
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../../../scripts/build/transpile/react-shim.js", "../../src/index.tsx"],
4
- "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "export * from './DSIndeterminateProgressIndicator.js';\nexport { default } from './DSIndeterminateProgressIndicator.js';\n"],
5
- "mappings": "AAAA,YAAY,WAAW;ACAvB,cAAc;AACd,SAAS,WAAAA,gBAAe;",
4
+ "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "export * from './DSIndeterminateProgressIndicator.js';\nexport { default } from './DSIndeterminateProgressIndicator.js';\nexport { DSIndeterminateProgressIndicatorName, DSIndeterminateProgressIndicatorSlots } from './constants/index.js';\n"],
5
+ "mappings": "AAAA,YAAY,WAAW;ACAvB,cAAc;AACd,SAAS,WAAAA,gBAAe;AACxB,SAAS,sCAAsC,6CAA6C;",
6
6
  "names": ["default"]
7
7
  }
@@ -1,5 +1,5 @@
1
1
  import * as React from "react";
2
- import { PropTypes } from "@elliemae/ds-props-helpers";
2
+ import { PropTypes, globalAttributesPropTypes, xstyledPropTypes } from "@elliemae/ds-props-helpers";
3
3
  const defaultProps = {
4
4
  containerProps: {},
5
5
  title: "",
@@ -15,6 +15,8 @@ const defaultProps = {
15
15
  lineOnly: false
16
16
  };
17
17
  const DSIndeterminateProgressIndicatorPropTypes = {
18
+ ...globalAttributesPropTypes,
19
+ ...xstyledPropTypes,
18
20
  containerProps: PropTypes.object.description("Set of Properties attached to the main container"),
19
21
  title: PropTypes.string.description("component s label"),
20
22
  complete: PropTypes.bool.description("Sets the process state to completed").defaultValue(false),
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../../../scripts/build/transpile/react-shim.js", "../../src/react-desc-prop-types.ts"],
4
- "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "/* eslint-disable @typescript-eslint/no-empty-interface */\nimport { PropTypes } from '@elliemae/ds-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 extends Partial<DefaultProps>, OptionalProps, RequiredProps {}\n\n export interface InternalProps extends DefaultProps, OptionalProps, 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 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"],
5
- "mappings": "AAAA,YAAY,WAAW;ACCvB,SAAS,iBAAiB;AA2BnB,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,gBAAgB,UAAU,OAAO,YAAY,kDAAkD;AAAA,EAC/F,OAAO,UAAU,OAAO,YAAY,mBAAmB;AAAA,EACvD,UAAU,UAAU,KAAK,YAAY,qCAAqC,EAAE,aAAa,KAAK;AAAA,EAC9F,QAAQ,UAAU,KAAK,YAAY,kCAAkC,EAAE,aAAa,KAAK;AAAA,EACzF,YAAY,UAAU,KAAK,YAAY,sCAAsC,EAAE,aAAa,KAAK;AAAA,EACjG,oBAAoB,UAAU,KAC3B,YAAY,yDAAyD,EACrE,aAAa,KAAK;AAAA,EACrB,yBAAyB,UAAU,OAAO,YAAY,gDAAgD;AAAA,EACtG,gBAAgB,UAAU,KACvB,YAAY,sDAAsD,EAClE,aAAa,KAAK;AAAA,EACrB,qBAAqB,UAAU,OAAO,YAAY,8CAA8C;AAAA,EAChG,UAAU,UAAU,KAAK,YAAY,gBAAgB,EAAE,aAAa,IAAI;AAAA,EACxE,SAAS,UAAU,OAAO,YAAY,uBAAuB,EAAE,aAAa,EAAE;AAAA,EAC9E,UAAU,UAAU,KAAK,YAAY,+BAA+B;AACtE;",
4
+ "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import type { GlobalAttributesT, XstyledProps } from '@elliemae/ds-props-helpers';\nimport { PropTypes, globalAttributesPropTypes, xstyledPropTypes } from '@elliemae/ds-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"],
5
+ "mappings": "AAAA,YAAY,WAAW;ACCvB,SAAS,WAAW,2BAA2B,wBAAwB;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,UAAU,OAAO,YAAY,kDAAkD;AAAA,EAC/F,OAAO,UAAU,OAAO,YAAY,mBAAmB;AAAA,EACvD,UAAU,UAAU,KAAK,YAAY,qCAAqC,EAAE,aAAa,KAAK;AAAA,EAC9F,QAAQ,UAAU,KAAK,YAAY,kCAAkC,EAAE,aAAa,KAAK;AAAA,EACzF,YAAY,UAAU,KAAK,YAAY,sCAAsC,EAAE,aAAa,KAAK;AAAA,EACjG,oBAAoB,UAAU,KAC3B,YAAY,yDAAyD,EACrE,aAAa,KAAK;AAAA,EACrB,yBAAyB,UAAU,OAAO,YAAY,gDAAgD;AAAA,EACtG,gBAAgB,UAAU,KACvB,YAAY,sDAAsD,EAClE,aAAa,KAAK;AAAA,EACrB,qBAAqB,UAAU,OAAO,YAAY,8CAA8C;AAAA,EAChG,UAAU,UAAU,KAAK,YAAY,gBAAgB,EAAE,aAAa,IAAI;AAAA,EACxE,SAAS,UAAU,OAAO,YAAY,uBAAuB,EAAE,aAAa,EAAE;AAAA,EAC9E,UAAU,UAAU,KAAK,YAAY,+BAA+B;AACtE;",
6
6
  "names": []
7
7
  }
@@ -0,0 +1,152 @@
1
+ import * as React from "react";
2
+ import { css, kfrm, styled } from "@elliemae/ds-system";
3
+ import { DSTruncatedTooltipText } from "@elliemae/ds-truncated-tooltip-text";
4
+ import { DSIndeterminateProgressIndicatorName, DSIndeterminateProgressIndicatorSlots } from "./constants/index.js";
5
+ const IndeterminateAnimation = (color) => kfrm`
6
+ 0% {
7
+ transform: scaleX(0.015);
8
+ transform-origin: 0% 0%;
9
+ background-image: linear-gradient(to right, rgba(255,255,255,0.8) 10%, ${color});
10
+ }
11
+ 25% {
12
+ transform: scaleX(0.4);
13
+ }
14
+ 50% {
15
+ transform: scaleX(0.015);
16
+ transform-origin: 100% 0%;
17
+ background-image: linear-gradient(to right, rgba(255,255,255,0.8) 10%, ${color});
18
+ }
19
+ 50.1% {
20
+ transform: scaleX(0.015);
21
+ transform-origin: 100% 0%;
22
+ background-image: linear-gradient(to left, rgba(255,255,255,0.8) 10%, ${color});
23
+ }
24
+ 75% {
25
+ transform: scaleX(0.4);
26
+ }
27
+ 100% {
28
+ transform: scaleX(0.015);
29
+ transform-origin: 0% 0%;
30
+ background-image: linear-gradient(to left, rgba(255,255,255,0.8) 10%, ${color});
31
+ }
32
+ `;
33
+ const ProcessingSuccess = kfrm`
34
+ 0%, 30% { transform: translateX(-50%); width: 50% }
35
+ 15% { transform: translateX(150%); width: 50% }
36
+ 0%, 60% { transform: translateX(-50%); width: 50% }
37
+ 45% { transform: translateX(150%); width: 50% }
38
+ 0%, 90% { transform: translateX(-50%); width: 50% }
39
+ 75% { transform: translateX(150%); width: 50% }
40
+ 100% { transform: translateX(0%); }
41
+ `;
42
+ const ProcessingSuccessEnd = (color) => kfrm`
43
+ 0% { transform: translateX(-50%); width: 50% }
44
+ 45% { transform: translateX(150%); width: 50% }
45
+ 100% { transform: translateX(0%); background-color: ${color}; }
46
+ `;
47
+ const ProcessingFail = kfrm`
48
+ 0%, 30% { transform: translateX(-50%); width: 50% }
49
+ 15% { transform: translateX(150%); width: 50% }
50
+ 0%, 60% { transform: translateX(-50%); width: 50% }
51
+ 45% { transform: translateX(150%); width: 50% }
52
+ 0%, 90% { transform: translateX(-50%); width: 50% }
53
+ 75% { transform: translateX(150%); width: 50%; }
54
+ 100% { transform: translateX(0%); }
55
+ `;
56
+ const ProcessingFailEnd = kfrm`
57
+ 0% { transform: translateX(-50%); width: 50% }
58
+ 45% { transform: translateX(150%); width: 50% }
59
+ 100% { transform: translateX(0%); background-color: #e34256; }
60
+ `;
61
+ const Container = styled("div", {
62
+ name: DSIndeterminateProgressIndicatorName,
63
+ slot: DSIndeterminateProgressIndicatorSlots.ROOT
64
+ })`
65
+ width: 100%;
66
+ padding: ${({ theme, lineOnly }) => lineOnly ? 0 : `${theme.space.xxs} ${theme.space.xs}`};
67
+ `;
68
+ const StyledTruncatedTooltipText = styled(DSTruncatedTooltipText, {
69
+ name: DSIndeterminateProgressIndicatorName,
70
+ slot: DSIndeterminateProgressIndicatorSlots.LABEL
71
+ })``;
72
+ const Bar = styled("div", {
73
+ name: DSIndeterminateProgressIndicatorName,
74
+ slot: DSIndeterminateProgressIndicatorSlots.BAR
75
+ })`
76
+ background-color: ${({ theme }) => theme.colors.neutral[100]};
77
+ overflow: hidden;
78
+ `;
79
+ const BarIndicator = styled("div", {
80
+ name: DSIndeterminateProgressIndicatorName,
81
+ slot: DSIndeterminateProgressIndicatorSlots.BAR_INDICATOR
82
+ })`
83
+ height: ${({ theme }) => theme.space.xxxs};
84
+ width: ${({ complete, failed, animated, processing, percent }) => `${!complete && !failed && !animated && processing ? percent : 100}%`};
85
+ ${({ theme, complete, failed, processing, animated, processingComplete, processingFail }) => {
86
+ if (!complete && !failed && !processing && !processingComplete && !processingFail)
87
+ return css`
88
+ background-color: ${theme.colors.neutral[500]};
89
+ `;
90
+ else if (complete && processing)
91
+ return css`
92
+ width: 100%;
93
+ background-color: ${theme.colors.brand[500]};
94
+ animation: ${ProcessingSuccessEnd(theme.colors.success[900])} 1s ease-in-out;
95
+ animation-fill-mode: forwards;
96
+ `;
97
+ else if (complete && !processingComplete && !processing)
98
+ return css`
99
+ background-color: ${theme.colors.success[900]};
100
+ `;
101
+ else if (failed && !processingFail && !processing)
102
+ return css`
103
+ background-color: #e34256;
104
+ `;
105
+ else if (processing) {
106
+ if (animated) {
107
+ return css`
108
+ width: 100%;
109
+ animation: ${IndeterminateAnimation(theme.colors.brand[500])} 2s cubic-bezier(0.645, 0.045, 0.355, 1) infinite;
110
+ background-color: ${theme.colors.brand[500]};
111
+ `;
112
+ }
113
+ return css`
114
+ background-color: ${theme.colors.brand[500]};
115
+ `;
116
+ } else if (processingComplete && !complete) {
117
+ return css`
118
+ width: 50%;
119
+ animation: ${ProcessingSuccess} 4s infinite;
120
+ animation-fill-mode: forwards;
121
+ background-color: ${theme.colors.brand[500]};
122
+ `;
123
+ } else if (processingComplete && complete)
124
+ return css`
125
+ width: 100%;
126
+ background-color: ${theme.colors.brand[500]};
127
+ animation: ${ProcessingSuccessEnd(theme.colors.success[900])} 1s ease-in-out;
128
+ animation-fill-mode: forwards;
129
+ `;
130
+ else if (processingFail && !failed)
131
+ return css`
132
+ width: 50%;
133
+ animation: ${ProcessingFail} 4s infinite;
134
+ animation-fill-mode: forwards;
135
+ background-color: ${theme.colors.brand[500]};
136
+ `;
137
+ else if (processingFail && failed)
138
+ return css`
139
+ width: 100%;
140
+ background-color: ${theme.colors.brand[500]};
141
+ animation: ${ProcessingFailEnd} 1s ease-in-out;
142
+ animation-fill-mode: forwards;
143
+ `;
144
+ }};
145
+ `;
146
+ export {
147
+ Bar,
148
+ BarIndicator,
149
+ Container,
150
+ StyledTruncatedTooltipText
151
+ };
152
+ //# sourceMappingURL=styled.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../../../scripts/build/transpile/react-shim.js", "../../src/styled.tsx"],
4
+ "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "/* eslint-disable complexity */\nimport { css, kfrm, styled } from '@elliemae/ds-system';\nimport { type DSIndeterminateProgressIndicatorT } from './react-desc-prop-types.js';\nimport { DSTruncatedTooltipText } from '@elliemae/ds-truncated-tooltip-text';\nimport { DSIndeterminateProgressIndicatorName, DSIndeterminateProgressIndicatorSlots } from './constants/index.js';\n\nconst IndeterminateAnimation = (color: string) => kfrm`\n 0% {\n transform: scaleX(0.015);\n transform-origin: 0% 0%;\n background-image: linear-gradient(to right, rgba(255,255,255,0.8) 10%, ${color});\n }\n 25% {\n transform: scaleX(0.4);\n }\n 50% {\n transform: scaleX(0.015);\n transform-origin: 100% 0%;\n background-image: linear-gradient(to right, rgba(255,255,255,0.8) 10%, ${color});\n }\n 50.1% {\n transform: scaleX(0.015);\n transform-origin: 100% 0%;\n background-image: linear-gradient(to left, rgba(255,255,255,0.8) 10%, ${color});\n }\n 75% {\n transform: scaleX(0.4);\n }\n 100% {\n transform: scaleX(0.015);\n transform-origin: 0% 0%;\n background-image: linear-gradient(to left, rgba(255,255,255,0.8) 10%, ${color});\n }\n`;\n\nconst ProcessingSuccess = kfrm`\n 0%, 30% { transform: translateX(-50%); width: 50% }\n 15% { transform: translateX(150%); width: 50% }\n 0%, 60% { transform: translateX(-50%); width: 50% }\n 45% { transform: translateX(150%); width: 50% }\n 0%, 90% { transform: translateX(-50%); width: 50% }\n 75% { transform: translateX(150%); width: 50% }\n 100% { transform: translateX(0%); }\n`;\n\nconst ProcessingSuccessEnd = (color: string) => kfrm`\n 0% { transform: translateX(-50%); width: 50% }\n 45% { transform: translateX(150%); width: 50% }\n 100% { transform: translateX(0%); background-color: ${color}; }\n`;\n\nconst ProcessingFail = kfrm`\n 0%, 30% { transform: translateX(-50%); width: 50% }\n 15% { transform: translateX(150%); width: 50% }\n 0%, 60% { transform: translateX(-50%); width: 50% }\n 45% { transform: translateX(150%); width: 50% }\n 0%, 90% { transform: translateX(-50%); width: 50% }\n 75% { transform: translateX(150%); width: 50%; }\n 100% { transform: translateX(0%); }\n`;\n\nconst ProcessingFailEnd = kfrm`\n 0% { transform: translateX(-50%); width: 50% }\n 45% { transform: translateX(150%); width: 50% }\n 100% { transform: translateX(0%); background-color: #e34256; }\n`;\n\nexport const Container = styled('div', {\n name: DSIndeterminateProgressIndicatorName,\n slot: DSIndeterminateProgressIndicatorSlots.ROOT,\n})<DSIndeterminateProgressIndicatorT.Props>`\n width: 100%;\n padding: ${({ theme, lineOnly }) => (lineOnly ? 0 : `${theme.space.xxs} ${theme.space.xs}`)};\n`;\n\nexport const StyledTruncatedTooltipText = styled(DSTruncatedTooltipText, {\n name: DSIndeterminateProgressIndicatorName,\n slot: DSIndeterminateProgressIndicatorSlots.LABEL,\n})``;\n\nexport const Bar = styled('div', {\n name: DSIndeterminateProgressIndicatorName,\n slot: DSIndeterminateProgressIndicatorSlots.BAR,\n})`\n background-color: ${({ theme }) => theme.colors.neutral[100]};\n overflow: hidden;\n`;\n\nexport const BarIndicator = styled('div', {\n name: DSIndeterminateProgressIndicatorName,\n slot: DSIndeterminateProgressIndicatorSlots.BAR_INDICATOR,\n})<DSIndeterminateProgressIndicatorT.Props>`\n height: ${({ theme }) => theme.space.xxxs};\n width: ${({ complete, failed, animated, processing, percent }) =>\n `${!complete && !failed && !animated && processing ? percent : 100}%`};\n ${({ theme, complete, failed, processing, animated, processingComplete, processingFail }) => {\n // Default\n if (!complete && !failed && !processing && !processingComplete && !processingFail)\n return css`\n background-color: ${theme.colors.neutral[500]};\n `;\n // Completed\n else if (complete && processing)\n return css`\n width: 100%;\n background-color: ${theme.colors.brand[500]};\n animation: ${ProcessingSuccessEnd(theme.colors.success[900])} 1s ease-in-out;\n animation-fill-mode: forwards;\n `;\n else if (complete && !processingComplete && !processing)\n return css`\n background-color: ${theme.colors.success[900]};\n `;\n // Failed\n else if (failed && !processingFail && !processing)\n return css`\n background-color: #e34256;\n `;\n // Processing\n else if (processing) {\n if (animated) {\n return css`\n width: 100%;\n animation: ${IndeterminateAnimation(theme.colors.brand[500])} 2s cubic-bezier(0.645, 0.045, 0.355, 1) infinite;\n background-color: ${theme.colors.brand[500]};\n `;\n }\n return css`\n background-color: ${theme.colors.brand[500]};\n `;\n }\n // Processing -> Completed\n else if (processingComplete && !complete) {\n return css`\n width: 50%;\n animation: ${ProcessingSuccess} 4s infinite;\n animation-fill-mode: forwards;\n background-color: ${theme.colors.brand[500]};\n `;\n } else if (processingComplete && complete)\n return css`\n width: 100%;\n background-color: ${theme.colors.brand[500]};\n animation: ${ProcessingSuccessEnd(theme.colors.success[900])} 1s ease-in-out;\n animation-fill-mode: forwards;\n `;\n // Processing -> Failed\n else if (processingFail && !failed)\n return css`\n width: 50%;\n animation: ${ProcessingFail} 4s infinite;\n animation-fill-mode: forwards;\n background-color: ${theme.colors.brand[500]};\n `;\n else if (processingFail && failed)\n return css`\n width: 100%;\n background-color: ${theme.colors.brand[500]};\n animation: ${ProcessingFailEnd} 1s ease-in-out;\n animation-fill-mode: forwards;\n `;\n }};\n`;\n"],
5
+ "mappings": "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",
6
+ "names": []
7
+ }
@@ -1 +1,8 @@
1
1
  export declare const DSIndeterminateProgressIndicatorName = "DSIndeterminateProgressIndicator";
2
+ export declare const DSIndeterminateProgressIndicatorSlots: {
3
+ ROOT: string;
4
+ LABEL: string;
5
+ BAR: string;
6
+ BAR_INDICATOR: string;
7
+ };
8
+ export declare const DSIndeterminateProgressIndicatorDataTestIds: Record<string, string>;
@@ -1,2 +1,3 @@
1
1
  export * from './DSIndeterminateProgressIndicator.js';
2
2
  export { default } from './DSIndeterminateProgressIndicator.js';
3
+ export { DSIndeterminateProgressIndicatorName, DSIndeterminateProgressIndicatorSlots } from './constants/index.js';
@@ -1,4 +1,5 @@
1
1
  /// <reference types="react" />
2
+ import type { GlobalAttributesT, XstyledProps } from '@elliemae/ds-props-helpers';
2
3
  export declare namespace DSIndeterminateProgressIndicatorT {
3
4
  interface RequiredProps {
4
5
  }
@@ -18,9 +19,9 @@ export declare namespace DSIndeterminateProgressIndicatorT {
18
19
  }
19
20
  interface OptionalProps {
20
21
  }
21
- interface Props extends Partial<DefaultProps>, OptionalProps, RequiredProps {
22
+ interface Props extends Partial<DefaultProps>, OptionalProps, Omit<GlobalAttributesT<HTMLDivElement>, keyof DefaultProps>, XstyledProps, RequiredProps {
22
23
  }
23
- interface InternalProps extends DefaultProps, OptionalProps, RequiredProps {
24
+ interface InternalProps extends DefaultProps, OptionalProps, Omit<GlobalAttributesT<HTMLDivElement>, keyof DefaultProps>, XstyledProps, RequiredProps {
24
25
  }
25
26
  }
26
27
  export declare const defaultProps: DSIndeterminateProgressIndicatorT.DefaultProps;
@@ -0,0 +1,6 @@
1
+ /// <reference types="react" />
2
+ import { type DSIndeterminateProgressIndicatorT } from './react-desc-prop-types.js';
3
+ export declare const Container: import("styled-components").StyledComponent<"div", import("@elliemae/ds-system").Theme, DSIndeterminateProgressIndicatorT.Props & import("@elliemae/ds-system").OwnerInterface, never>;
4
+ export declare const StyledTruncatedTooltipText: import("styled-components").StyledComponent<keyof JSX.IntrinsicElements | import("react").ComponentType<any> | import("styled-components").AnyStyledComponent, import("@elliemae/ds-system").Theme, object & import("@elliemae/ds-system").OwnerInterface, never>;
5
+ export declare const Bar: import("styled-components").StyledComponent<"div", import("@elliemae/ds-system").Theme, object & import("@elliemae/ds-system").OwnerInterface, never>;
6
+ export declare const BarIndicator: import("styled-components").StyledComponent<"div", import("@elliemae/ds-system").Theme, DSIndeterminateProgressIndicatorT.Props & import("@elliemae/ds-system").OwnerInterface, never>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@elliemae/ds-indeterminate-progress-indicator",
3
- "version": "3.22.1-rc.0",
3
+ "version": "3.23.0-rc.1",
4
4
  "license": "MIT",
5
5
  "description": "ICE MT - Dimsum - Indeterminate Progress Indicator",
6
6
  "files": [
@@ -39,9 +39,9 @@
39
39
  "indent": 4
40
40
  },
41
41
  "dependencies": {
42
- "@elliemae/ds-classnames": "3.22.1-rc.0",
43
- "@elliemae/ds-props-helpers": "3.22.1-rc.0",
44
- "@elliemae/ds-truncated-tooltip-text": "3.22.1-rc.0"
42
+ "@elliemae/ds-classnames": "3.23.0-rc.1",
43
+ "@elliemae/ds-props-helpers": "3.23.0-rc.1",
44
+ "@elliemae/ds-truncated-tooltip-text": "3.23.0-rc.1"
45
45
  },
46
46
  "devDependencies": {
47
47
  "@elliemae/pui-cli": "~9.0.0-next.22",
@@ -50,7 +50,7 @@
50
50
  "@testing-library/user-event": "~13.5.0",
51
51
  "jest-axe": "^7.0.1",
52
52
  "styled-components": "~5.3.9",
53
- "@elliemae/ds-monorepo-devops": "3.22.1-rc.0"
53
+ "@elliemae/ds-monorepo-devops": "3.23.0-rc.1"
54
54
  },
55
55
  "peerDependencies": {
56
56
  "react": "^17.0.2",