@elliemae/ds-legacy-circular-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.
Files changed (41) hide show
  1. package/dist/cjs/DSCircularProgressIndicator.js +261 -0
  2. package/dist/cjs/DSCircularProgressIndicator.js.map +7 -0
  3. package/dist/cjs/index.js +44 -0
  4. package/dist/cjs/index.js.map +7 -0
  5. package/dist/cjs/package.json +7 -0
  6. package/dist/cjs/v2/DSCircularIndeterminateIndicator.js +133 -0
  7. package/dist/cjs/v2/DSCircularIndeterminateIndicator.js.map +7 -0
  8. package/dist/cjs/v2/constants.js +80 -0
  9. package/dist/cjs/v2/constants.js.map +7 -0
  10. package/dist/cjs/v2/index.js +39 -0
  11. package/dist/cjs/v2/index.js.map +7 -0
  12. package/dist/cjs/v2/react-desc-prop-types.js +67 -0
  13. package/dist/cjs/v2/react-desc-prop-types.js.map +7 -0
  14. package/dist/cjs/v2/styled.js +164 -0
  15. package/dist/cjs/v2/styled.js.map +7 -0
  16. package/dist/esm/DSCircularProgressIndicator.js +231 -0
  17. package/dist/esm/DSCircularProgressIndicator.js.map +7 -0
  18. package/dist/esm/index.js +24 -0
  19. package/dist/esm/index.js.map +7 -0
  20. package/dist/esm/package.json +7 -0
  21. package/dist/esm/v2/DSCircularIndeterminateIndicator.js +114 -0
  22. package/dist/esm/v2/DSCircularIndeterminateIndicator.js.map +7 -0
  23. package/dist/esm/v2/constants.js +50 -0
  24. package/dist/esm/v2/constants.js.map +7 -0
  25. package/dist/esm/v2/index.js +11 -0
  26. package/dist/esm/v2/index.js.map +7 -0
  27. package/dist/esm/v2/react-desc-prop-types.js +37 -0
  28. package/dist/esm/v2/react-desc-prop-types.js.map +7 -0
  29. package/dist/esm/v2/styled.js +134 -0
  30. package/dist/esm/v2/styled.js.map +7 -0
  31. package/dist/types/DSCircularProgressIndicator.d.ts +33 -0
  32. package/dist/types/index.d.ts +2 -0
  33. package/dist/types/tests/DSCircularIndeterminateIndicator.axe.test.d.ts +1 -0
  34. package/dist/types/tests/DSCircularIndeterminateIndicator.test.d.ts +1 -0
  35. package/dist/types/tests/DSCircularProgressIndicator.test.d.ts +1 -0
  36. package/dist/types/v2/DSCircularIndeterminateIndicator.d.ts +4 -0
  37. package/dist/types/v2/constants.d.ts +35 -0
  38. package/dist/types/v2/index.d.ts +2 -0
  39. package/dist/types/v2/react-desc-prop-types.d.ts +25 -0
  40. package/dist/types/v2/styled.d.ts +11 -0
  41. package/package.json +87 -0
@@ -0,0 +1,114 @@
1
+ import * as React from "react";
2
+ import { Fragment, jsx, jsxs } from "react/jsx-runtime";
3
+ import { useMemo, useCallback } from "react";
4
+ import { omit } from "lodash";
5
+ import { DSTooltipV3 } from "@elliemae/ds-legacy-tooltip";
6
+ import {
7
+ describe,
8
+ useGetGlobalAttributes,
9
+ useMemoMergePropsWithDefault,
10
+ useGetXstyledProps
11
+ } from "@elliemae/ds-legacy-props-helpers";
12
+ import { uid } from "uid";
13
+ import { CircularIndeterminateIndicatorPropTypes, defaultProps } from "./react-desc-prop-types.js";
14
+ import {
15
+ colorToHex,
16
+ sizeToPx,
17
+ sizeToTextSize,
18
+ sizeToWeight,
19
+ DSCircularIndeterminateIndicatorName
20
+ } from "./constants.js";
21
+ import { StyledCircle, StyledContainer, StyledPath, StyledRect, StyledSvg, StyledLabel } from "./styled.js";
22
+ const EmptyComp = (props) => /* @__PURE__ */ jsx(Fragment, { children: props.children });
23
+ const DSCircularIndeterminateIndicator = (props) => {
24
+ const propsWithDefault = useMemoMergePropsWithDefault(
25
+ props,
26
+ defaultProps
27
+ );
28
+ const globalAttributes = omit(useGetGlobalAttributes(propsWithDefault), ["height", "width", "rows", "cols", "wrap"]);
29
+ const xstyledAttributes = useGetXstyledProps(propsWithDefault);
30
+ const { size, color, text, showText, withTooltip, tooltipStartPlacementPreference } = propsWithDefault;
31
+ const Wrapper = useMemo(() => withTooltip ? DSTooltipV3 : EmptyComp, [withTooltip]);
32
+ const uniqueId = useMemo(() => uid(16), []);
33
+ const circleRadius = useMemo(() => (sizeToPx[size] - Number.parseInt(sizeToWeight[size], 10)) / 2, [size]);
34
+ const getOwnerProps = useCallback(() => propsWithDefault, [propsWithDefault]);
35
+ const getOwnerPropsArguments = useCallback(() => ({}), []);
36
+ return /* @__PURE__ */ jsx(
37
+ StyledContainer,
38
+ {
39
+ gutter: "xs",
40
+ justifyContent: "center",
41
+ role: "status",
42
+ "aria-label": text || "Loading...",
43
+ "data-testid": "ds-circular-indeterminate-indicator-root",
44
+ ...globalAttributes,
45
+ ...xstyledAttributes,
46
+ getOwnerProps,
47
+ getOwnerPropsArguments,
48
+ children: /* @__PURE__ */ jsxs(Wrapper, { text, textAlign: "center", startPlacementPreference: tooltipStartPlacementPreference, children: [
49
+ /* @__PURE__ */ jsxs(
50
+ StyledSvg,
51
+ {
52
+ width: sizeToPx[size],
53
+ height: sizeToPx[size],
54
+ getOwnerProps,
55
+ getOwnerPropsArguments,
56
+ "aria-hidden": "true",
57
+ children: [
58
+ /* @__PURE__ */ jsxs("defs", { children: [
59
+ /* @__PURE__ */ jsx("clipPath", { id: `not-gradient-clip-${uniqueId}`, children: /* @__PURE__ */ jsx(StyledRect, { x: "0%", y: "0%", width: "52%", height: "100%" }) }),
60
+ /* @__PURE__ */ jsxs("linearGradient", { id: `gradient-color-${uniqueId}`, x1: "0%", x2: "0%", y1: "0%", y2: "100%", children: [
61
+ /* @__PURE__ */ jsx("stop", { offset: "10%", stopColor: `${colorToHex[color]}00` }),
62
+ /* @__PURE__ */ jsx("stop", { offset: "90%", stopColor: `${colorToHex[color]}FF` })
63
+ ] })
64
+ ] }),
65
+ /* @__PURE__ */ jsx(
66
+ StyledCircle,
67
+ {
68
+ cx: "50%",
69
+ cy: "50%",
70
+ r: circleRadius,
71
+ strokeWidth: sizeToWeight[size],
72
+ stroke: colorToHex[color],
73
+ strokeLinecap: "round",
74
+ clipPath: `url(#not-gradient-clip-${uniqueId})`
75
+ }
76
+ ),
77
+ /* @__PURE__ */ jsx(
78
+ StyledPath,
79
+ {
80
+ d: `M ${sizeToPx[size] / 2} ${sizeToPx[size] / 2}
81
+ m ${circleRadius}, 0
82
+ a ${circleRadius}, ${circleRadius} 0 0, 1 -${circleRadius}, ${circleRadius}`,
83
+ strokeWidth: sizeToWeight[size],
84
+ fill: "transparent",
85
+ stroke: `url(#gradient-color-${uniqueId})`,
86
+ strokeLinecap: "round",
87
+ r: circleRadius
88
+ }
89
+ )
90
+ ]
91
+ }
92
+ ),
93
+ text !== "" && showText && /* @__PURE__ */ jsx(
94
+ StyledLabel,
95
+ {
96
+ style: { color: color === "light" ? "#FFFFFF" : "#353C46", fontSize: sizeToTextSize[size] },
97
+ getOwnerProps,
98
+ getOwnerPropsArguments,
99
+ children: text
100
+ }
101
+ )
102
+ ] })
103
+ }
104
+ );
105
+ };
106
+ DSCircularIndeterminateIndicator.propTypes = CircularIndeterminateIndicatorPropTypes;
107
+ DSCircularIndeterminateIndicator.displayName = DSCircularIndeterminateIndicatorName;
108
+ const DSCircularIndeterminateIndicatorWithSchema = describe(DSCircularIndeterminateIndicator);
109
+ DSCircularIndeterminateIndicatorWithSchema.propTypes = CircularIndeterminateIndicatorPropTypes;
110
+ export {
111
+ DSCircularIndeterminateIndicator,
112
+ DSCircularIndeterminateIndicatorWithSchema
113
+ };
114
+ //# sourceMappingURL=DSCircularIndeterminateIndicator.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../../../../scripts/build/transpile/react-shim.js", "../../../src/v2/DSCircularIndeterminateIndicator.tsx"],
4
+ "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "/* eslint-disable @typescript-eslint/naming-convention */\nimport React, { useMemo, useCallback } from 'react';\nimport { omit } from 'lodash';\nimport { DSTooltipV3 } from '@elliemae/ds-legacy-tooltip';\n\nimport {\n describe,\n useGetGlobalAttributes,\n useMemoMergePropsWithDefault,\n useGetXstyledProps,\n} from '@elliemae/ds-legacy-props-helpers';\nimport { uid } from 'uid';\nimport type { DSCircularIndeterminateIndicatorT } from './react-desc-prop-types.js';\nimport { CircularIndeterminateIndicatorPropTypes, defaultProps } from './react-desc-prop-types.js';\nimport {\n colorToHex,\n sizeToPx,\n sizeToTextSize,\n sizeToWeight,\n DSCircularIndeterminateIndicatorName,\n} from './constants.js';\nimport { StyledCircle, StyledContainer, StyledPath, StyledRect, StyledSvg, StyledLabel } from './styled.js';\n// eslint-disable-next-line react/jsx-no-useless-fragment\nconst EmptyComp: typeof DSTooltipV3 = (props) => <>{props.children}</>;\n\nexport const DSCircularIndeterminateIndicator: React.ComponentType<DSCircularIndeterminateIndicatorT.Props> = (\n props,\n) => {\n const propsWithDefault = useMemoMergePropsWithDefault<DSCircularIndeterminateIndicatorT.InternalProps>(\n props,\n defaultProps,\n );\n const globalAttributes = omit(useGetGlobalAttributes(propsWithDefault), ['height', 'width', 'rows', 'cols', 'wrap']);\n const xstyledAttributes = useGetXstyledProps(propsWithDefault);\n\n const { size, color, text, showText, withTooltip, tooltipStartPlacementPreference } = propsWithDefault;\n\n const Wrapper: typeof DSTooltipV3 = useMemo(() => (withTooltip ? DSTooltipV3 : EmptyComp), [withTooltip]);\n\n const uniqueId = useMemo(() => uid(16), []);\n\n const circleRadius = useMemo(() => (sizeToPx[size] - Number.parseInt(sizeToWeight[size], 10)) / 2, [size]);\n\n const getOwnerProps = useCallback(() => propsWithDefault, [propsWithDefault]);\n const getOwnerPropsArguments = useCallback(() => ({}), []);\n\n return (\n <StyledContainer\n gutter=\"xs\"\n justifyContent=\"center\"\n role=\"status\"\n aria-label={text || 'Loading...'}\n data-testid=\"ds-circular-indeterminate-indicator-root\"\n {...globalAttributes}\n {...xstyledAttributes}\n getOwnerProps={getOwnerProps}\n getOwnerPropsArguments={getOwnerPropsArguments}\n >\n <Wrapper text={text} textAlign=\"center\" startPlacementPreference={tooltipStartPlacementPreference}>\n <StyledSvg\n width={sizeToPx[size]}\n height={sizeToPx[size]}\n getOwnerProps={getOwnerProps}\n getOwnerPropsArguments={getOwnerPropsArguments}\n aria-hidden=\"true\"\n >\n <defs>\n <clipPath id={`not-gradient-clip-${uniqueId}`}>\n <StyledRect x=\"0%\" y=\"0%\" width=\"52%\" height=\"100%\" />\n </clipPath>\n <linearGradient id={`gradient-color-${uniqueId}`} x1=\"0%\" x2=\"0%\" y1=\"0%\" y2=\"100%\">\n <stop offset=\"10%\" stopColor={`${colorToHex[color]}00`} />\n <stop offset=\"90%\" stopColor={`${colorToHex[color]}FF`} />\n </linearGradient>\n </defs>\n <StyledCircle\n cx=\"50%\"\n cy=\"50%\"\n r={circleRadius}\n strokeWidth={sizeToWeight[size]}\n stroke={colorToHex[color]}\n strokeLinecap=\"round\"\n clipPath={`url(#not-gradient-clip-${uniqueId})`}\n />\n {/* \n Here we are using a path because:\n - Flexible enough to build a circle\n - When rotating, the gradient follows the rotation!!! (This is key)\n - We can use the rotation with keyframes, allowing for custom timing\n \n Using a circle does not pass point 2.\n Animating the gradient is not posible with custom timings.\n This is the best solution without using a custom library.\n */}\n <StyledPath\n d={`M ${sizeToPx[size] / 2} ${sizeToPx[size] / 2}\n m ${circleRadius}, 0\n a ${circleRadius}, ${circleRadius} 0 0, 1 -${circleRadius}, ${circleRadius}`}\n strokeWidth={sizeToWeight[size]}\n fill=\"transparent\"\n stroke={`url(#gradient-color-${uniqueId})`}\n strokeLinecap=\"round\"\n r={circleRadius}\n />\n </StyledSvg>\n {text !== '' && showText && (\n <StyledLabel\n style={{ color: color === 'light' ? '#FFFFFF' : '#353C46', fontSize: sizeToTextSize[size] }}\n getOwnerProps={getOwnerProps}\n getOwnerPropsArguments={getOwnerPropsArguments}\n >\n {text}\n </StyledLabel>\n )}\n </Wrapper>\n </StyledContainer>\n );\n};\n\nDSCircularIndeterminateIndicator.propTypes = CircularIndeterminateIndicatorPropTypes;\nDSCircularIndeterminateIndicator.displayName = DSCircularIndeterminateIndicatorName;\nexport const DSCircularIndeterminateIndicatorWithSchema = describe(DSCircularIndeterminateIndicator);\nDSCircularIndeterminateIndicatorWithSchema.propTypes = CircularIndeterminateIndicatorPropTypes;\n"],
5
+ "mappings": "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",
6
+ "names": []
7
+ }
@@ -0,0 +1,50 @@
1
+ import * as React from "react";
2
+ import { slotObjectToDataTestIds } from "@elliemae/ds-legacy-system";
3
+ const DSCircularIndeterminateIndicatorName = "DSCircularIndeterminateIndicator";
4
+ const DSCircularIndeterminateIndicatorSlots = {
5
+ ROOT: "root",
6
+ SVG: "svg",
7
+ LABEL: "label"
8
+ };
9
+ const sizeToPx = {
10
+ xs: 16,
11
+ s: 24,
12
+ m: 32,
13
+ l: 48,
14
+ xl: 56,
15
+ xxl: 64
16
+ };
17
+ const sizeToWeight = {
18
+ xs: "3px",
19
+ s: "3px",
20
+ m: "3px",
21
+ l: "4px",
22
+ xl: "5px",
23
+ xxl: "6px"
24
+ };
25
+ const colorToHex = {
26
+ light: "#EBF6FF",
27
+ dark: "#1394E5"
28
+ };
29
+ const sizeToTextSize = {
30
+ xs: "12px",
31
+ s: "12px",
32
+ m: "12px",
33
+ l: "13px",
34
+ xl: "14px",
35
+ xxl: "16px"
36
+ };
37
+ const DSCircularIndeterminateIndicatorDataTestIds = slotObjectToDataTestIds(
38
+ DSCircularIndeterminateIndicatorName,
39
+ DSCircularIndeterminateIndicatorSlots
40
+ );
41
+ export {
42
+ DSCircularIndeterminateIndicatorDataTestIds,
43
+ DSCircularIndeterminateIndicatorName,
44
+ DSCircularIndeterminateIndicatorSlots,
45
+ colorToHex,
46
+ sizeToPx,
47
+ sizeToTextSize,
48
+ sizeToWeight
49
+ };
50
+ //# sourceMappingURL=constants.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../../../../scripts/build/transpile/react-shim.js", "../../../src/v2/constants.tsx"],
4
+ "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import { slotObjectToDataTestIds } from '@elliemae/ds-legacy-system';\n\nexport const DSCircularIndeterminateIndicatorName = 'DSCircularIndeterminateIndicator';\n\nexport const DSCircularIndeterminateIndicatorSlots = {\n ROOT: 'root',\n SVG: 'svg',\n LABEL: 'label',\n};\n\nexport const sizeToPx = {\n xs: 16,\n s: 24,\n m: 32,\n l: 48,\n xl: 56,\n xxl: 64,\n};\n\nexport const sizeToWeight = {\n xs: '3px',\n s: '3px',\n m: '3px',\n l: '4px',\n xl: '5px',\n xxl: '6px',\n};\n\nexport const colorToHex = {\n light: '#EBF6FF',\n dark: '#1394E5',\n};\n\nexport const sizeToTextSize = {\n xs: '12px',\n s: '12px',\n m: '12px',\n l: '13px',\n xl: '14px',\n xxl: '16px',\n};\n\nexport const DSCircularIndeterminateIndicatorDataTestIds = slotObjectToDataTestIds(\n DSCircularIndeterminateIndicatorName,\n DSCircularIndeterminateIndicatorSlots,\n);\n"],
5
+ "mappings": "AAAA,YAAY,WAAW;ACAvB,SAAS,+BAA+B;AAEjC,MAAM,uCAAuC;AAE7C,MAAM,wCAAwC;AAAA,EACnD,MAAM;AAAA,EACN,KAAK;AAAA,EACL,OAAO;AACT;AAEO,MAAM,WAAW;AAAA,EACtB,IAAI;AAAA,EACJ,GAAG;AAAA,EACH,GAAG;AAAA,EACH,GAAG;AAAA,EACH,IAAI;AAAA,EACJ,KAAK;AACP;AAEO,MAAM,eAAe;AAAA,EAC1B,IAAI;AAAA,EACJ,GAAG;AAAA,EACH,GAAG;AAAA,EACH,GAAG;AAAA,EACH,IAAI;AAAA,EACJ,KAAK;AACP;AAEO,MAAM,aAAa;AAAA,EACxB,OAAO;AAAA,EACP,MAAM;AACR;AAEO,MAAM,iBAAiB;AAAA,EAC5B,IAAI;AAAA,EACJ,GAAG;AAAA,EACH,GAAG;AAAA,EACH,GAAG;AAAA,EACH,IAAI;AAAA,EACJ,KAAK;AACP;AAEO,MAAM,8CAA8C;AAAA,EACzD;AAAA,EACA;AACF;",
6
+ "names": []
7
+ }
@@ -0,0 +1,11 @@
1
+ import * as React from "react";
2
+ import {
3
+ DSCircularIndeterminateIndicator,
4
+ DSCircularIndeterminateIndicatorWithSchema
5
+ } from "./DSCircularIndeterminateIndicator.js";
6
+ export * from "./constants.js";
7
+ export {
8
+ DSCircularIndeterminateIndicator,
9
+ DSCircularIndeterminateIndicatorWithSchema
10
+ };
11
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../../../../scripts/build/transpile/react-shim.js", "../../../src/v2/index.tsx"],
4
+ "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "export {\n DSCircularIndeterminateIndicator,\n DSCircularIndeterminateIndicatorWithSchema,\n} from './DSCircularIndeterminateIndicator.js';\nexport * from './constants.js';\n"],
5
+ "mappings": "AAAA,YAAY,WAAW;ACAvB;AAAA,EACE;AAAA,EACA;AAAA,OACK;AACP,cAAc;",
6
+ "names": []
7
+ }
@@ -0,0 +1,37 @@
1
+ import * as React from "react";
2
+ import { PropTypes, globalAttributesPropTypes } from "@elliemae/ds-legacy-props-helpers";
3
+ const defaultProps = {
4
+ size: "m",
5
+ color: "dark",
6
+ text: "",
7
+ showText: true,
8
+ withTooltip: false,
9
+ tooltipStartPlacementPreference: "bottom"
10
+ };
11
+ const CircularIndeterminateIndicatorPropTypes = {
12
+ ...globalAttributesPropTypes,
13
+ size: PropTypes.oneOf(["xs", "s", "m", "l", "xl", "xxl"]).description("Size of the indicator").defaultValue("m"),
14
+ color: PropTypes.oneOf(["light", "dark"]).description("Color mode for the indicator").defaultValue("dark"),
15
+ text: PropTypes.string.description("Optional text to show under the indicator").defaultValue(""),
16
+ showText: PropTypes.bool.description("Whether to show the optional text or not").defaultValue(true),
17
+ withTooltip: PropTypes.bool.description("Whether to include a tooltip that shows the optional text on hover").defaultValue(false),
18
+ tooltipStartPlacementPreference: PropTypes.oneOf([
19
+ "top-start",
20
+ "top",
21
+ "top-end",
22
+ "right-start",
23
+ "right",
24
+ "right-end",
25
+ "bottom-end",
26
+ "bottom",
27
+ "bottom-start",
28
+ "left-end",
29
+ "left",
30
+ "left-start"
31
+ ]).description("start placement preference for the tooltip").defaultValue("center")
32
+ };
33
+ export {
34
+ CircularIndeterminateIndicatorPropTypes,
35
+ defaultProps
36
+ };
37
+ //# sourceMappingURL=react-desc-prop-types.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../../../../scripts/build/transpile/react-shim.js", "../../../src/v2/react-desc-prop-types.tsx"],
4
+ "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "/* eslint-disable @typescript-eslint/no-empty-interface */\n/* eslint-disable max-lines */\nimport type {} from '@elliemae/ds-legacy-utilities';\nimport type { GlobalAttributesT, XstyledProps } from '@elliemae/ds-legacy-props-helpers';\nimport { PropTypes, globalAttributesPropTypes } from '@elliemae/ds-legacy-props-helpers';\nimport { type DSTooltipV3T } from '@elliemae/ds-legacy-tooltip';\nimport type { WeakValidationMap } from 'react';\n\nexport const defaultProps: DSCircularIndeterminateIndicatorT.DefaultProps = {\n size: 'm',\n color: 'dark',\n text: '',\n showText: true,\n withTooltip: false,\n tooltipStartPlacementPreference: 'bottom',\n};\n\nexport declare namespace DSCircularIndeterminateIndicatorT {\n type TShirtSizes = 'xs' | 's' | 'm' | 'l' | 'xl' | 'xxl';\n type SupportedColors = 'light' | 'dark';\n export interface DefaultProps {\n size: TShirtSizes;\n color: SupportedColors;\n text: string;\n showText: boolean;\n withTooltip: boolean;\n tooltipStartPlacementPreference: DSTooltipV3T.Placement;\n }\n export interface OptionalProps {}\n export interface RequiredProps {}\n\n export interface Props\n extends Partial<DefaultProps>,\n OptionalProps,\n Omit<GlobalAttributesT<HTMLButtonElement>, keyof DefaultProps | keyof OptionalProps>,\n XstyledProps,\n RequiredProps {}\n\n export interface InternalProps\n extends DefaultProps,\n OptionalProps,\n Omit<GlobalAttributesT<HTMLButtonElement>, keyof DefaultProps | keyof OptionalProps>,\n XstyledProps,\n RequiredProps {}\n}\n\nexport const CircularIndeterminateIndicatorPropTypes = {\n ...globalAttributesPropTypes,\n size: PropTypes.oneOf(['xs', 's', 'm', 'l', 'xl', 'xxl']).description('Size of the indicator').defaultValue('m'),\n color: PropTypes.oneOf(['light', 'dark']).description('Color mode for the indicator').defaultValue('dark'),\n text: PropTypes.string.description('Optional text to show under the indicator').defaultValue(''),\n showText: PropTypes.bool.description('Whether to show the optional text or not').defaultValue(true),\n withTooltip: PropTypes.bool\n .description('Whether to include a tooltip that shows the optional text on hover')\n .defaultValue(false),\n tooltipStartPlacementPreference: PropTypes.oneOf([\n 'top-start',\n 'top',\n 'top-end',\n 'right-start',\n 'right',\n 'right-end',\n 'bottom-end',\n 'bottom',\n 'bottom-start',\n 'left-end',\n 'left',\n 'left-start',\n ])\n .description('start placement preference for the tooltip')\n .defaultValue('center'),\n} as WeakValidationMap<unknown>;\n"],
5
+ "mappings": "AAAA,YAAY,WAAW;ACIvB,SAAS,WAAW,iCAAiC;AAI9C,MAAM,eAA+D;AAAA,EAC1E,MAAM;AAAA,EACN,OAAO;AAAA,EACP,MAAM;AAAA,EACN,UAAU;AAAA,EACV,aAAa;AAAA,EACb,iCAAiC;AACnC;AA+BO,MAAM,0CAA0C;AAAA,EACrD,GAAG;AAAA,EACH,MAAM,UAAU,MAAM,CAAC,MAAM,KAAK,KAAK,KAAK,MAAM,KAAK,CAAC,EAAE,YAAY,uBAAuB,EAAE,aAAa,GAAG;AAAA,EAC/G,OAAO,UAAU,MAAM,CAAC,SAAS,MAAM,CAAC,EAAE,YAAY,8BAA8B,EAAE,aAAa,MAAM;AAAA,EACzG,MAAM,UAAU,OAAO,YAAY,2CAA2C,EAAE,aAAa,EAAE;AAAA,EAC/F,UAAU,UAAU,KAAK,YAAY,0CAA0C,EAAE,aAAa,IAAI;AAAA,EAClG,aAAa,UAAU,KACpB,YAAY,oEAAoE,EAChF,aAAa,KAAK;AAAA,EACrB,iCAAiC,UAAU,MAAM;AAAA,IAC/C;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,EACF,CAAC,EACE,YAAY,4CAA4C,EACxD,aAAa,QAAQ;AAC1B;",
6
+ "names": []
7
+ }
@@ -0,0 +1,134 @@
1
+ import * as React from "react";
2
+ import { Grid } from "@elliemae/ds-legacy-grid";
3
+ import { kfrm, styled } from "@elliemae/ds-legacy-system";
4
+ import { DSCircularIndeterminateIndicatorName, DSCircularIndeterminateIndicatorSlots } from "./constants.js";
5
+ const { PI } = Math;
6
+ const getArcLength = (percentage, radius) => 2 * PI * radius / 100 * percentage;
7
+ const svgRotateAnimation = kfrm`
8
+ 0% {
9
+ transform: rotate(0);
10
+ }
11
+ 100% {
12
+ transform: rotate(360deg);
13
+ }
14
+ `;
15
+ const strokeTailAnimation = (r) => {
16
+ const miniDash = `${getArcLength(0, r)} ${getArcLength(100, r)}`;
17
+ const fullDash = `${getArcLength(75, r)} ${getArcLength(25, r)}`;
18
+ return kfrm`
19
+ 0% {
20
+ stroke-dasharray: ${miniDash};
21
+ }
22
+ 50% {
23
+ stroke-dasharray: ${fullDash};
24
+ }
25
+ 100% {
26
+ stroke-dasharray: ${miniDash};
27
+ }
28
+ `;
29
+ };
30
+ const rotateAnimation = kfrm`
31
+ 0%, 12.5% {
32
+ transform: rotate(0);
33
+ }
34
+ 25%, 37.5% {
35
+ transform: rotate(270deg);
36
+ }
37
+ 50%, 62.5% {
38
+ transform: rotate(540deg);
39
+ }
40
+ 75%, 87.5% {
41
+ transform: rotate(810deg);
42
+ }
43
+ 100% {
44
+ transform: rotate(1080deg);
45
+ }
46
+ `;
47
+ const dashAnimation = (r) => {
48
+ const miniDash = `${getArcLength(0, r)} ${getArcLength(100, r)}`;
49
+ const fullDash = `${getArcLength(75, r)} ${getArcLength(25, r)}`;
50
+ return kfrm`
51
+ 0% {
52
+ stroke-dasharray: ${miniDash};
53
+ stroke-dashoffset: 0;
54
+ }
55
+ 12.5% {
56
+ stroke-dasharray: ${fullDash};
57
+ stroke-dashoffset: 0;
58
+ }
59
+ 25% {
60
+ stroke-dasharray: ${miniDash};
61
+ stroke-dashoffset: ${getArcLength(-75, r)};
62
+ }
63
+ 37.5% {
64
+ stroke-dasharray: ${fullDash};
65
+ stroke-dashoffset: ${getArcLength(-75, r)};
66
+ }
67
+ 50% {
68
+ stroke-dasharray: ${miniDash};
69
+ stroke-dashoffset: ${getArcLength(-150, r)};
70
+ }
71
+ 62.5% {
72
+ stroke-dasharray: ${fullDash};
73
+ stroke-dashoffset: ${getArcLength(-150, r)};
74
+ }
75
+ 75% {
76
+ stroke-dasharray: ${miniDash};
77
+ stroke-dashoffset: ${getArcLength(-225, r)};
78
+ }
79
+ 87.5% {
80
+ stroke-dasharray: ${fullDash};
81
+ stroke-dashoffset: ${getArcLength(-225, r)};
82
+ }
83
+ 100% {
84
+ stroke-dasharray: ${miniDash};
85
+ stroke-dashoffset: ${getArcLength(-300, r)};
86
+ }
87
+ `;
88
+ };
89
+ const StyledContainer = styled(Grid, {
90
+ name: DSCircularIndeterminateIndicatorName,
91
+ slot: DSCircularIndeterminateIndicatorSlots.ROOT
92
+ })`
93
+ z-index: ${({ theme }) => theme.zIndex.loader};
94
+ `;
95
+ const StyledSvg = styled("svg", {
96
+ name: DSCircularIndeterminateIndicatorName,
97
+ slot: DSCircularIndeterminateIndicatorSlots.SVG
98
+ })`
99
+ display: block;
100
+ margin: auto;
101
+ transform-origin: center center;
102
+ transform: rotate(-90deg);
103
+ animation: ${svgRotateAnimation} 2.5s linear infinite;
104
+ `;
105
+ const StyledPath = styled.path`
106
+ transform-origin: center center;
107
+ animation:
108
+ ${rotateAnimation} 10s linear infinite,
109
+ ${(props) => strokeTailAnimation(props.r)} 2.5s linear infinite;
110
+ `;
111
+ const StyledRect = styled.rect`
112
+ transform-origin: center center;
113
+ animation: ${rotateAnimation} 10s linear infinite;
114
+ `;
115
+ const StyledCircle = styled.circle`
116
+ stroke-dashoffset: 0;
117
+ fill: none;
118
+ animation: ${(props) => dashAnimation(props.r)} 10s linear infinite;
119
+ clip-path: ${(props) => props.clipPath};
120
+ -webkit-clip-path: ${(props) => props.clipPath};
121
+ `;
122
+ const StyledLabel = styled("span", {
123
+ name: DSCircularIndeterminateIndicatorName,
124
+ slot: DSCircularIndeterminateIndicatorSlots.LABEL
125
+ })``;
126
+ export {
127
+ StyledCircle,
128
+ StyledContainer,
129
+ StyledLabel,
130
+ StyledPath,
131
+ StyledRect,
132
+ StyledSvg
133
+ };
134
+ //# sourceMappingURL=styled.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../../../../scripts/build/transpile/react-shim.js", "../../../src/v2/styled.tsx"],
4
+ "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "/* eslint-disable no-underscore-dangle */\nimport { Grid } from '@elliemae/ds-legacy-grid';\nimport { kfrm, styled } from '@elliemae/ds-legacy-system';\nimport { DSCircularIndeterminateIndicatorName, DSCircularIndeterminateIndicatorSlots } from './constants.js';\nconst { PI } = Math;\n\nconst getArcLength = (percentage: number, radius: number) => ((2 * PI * radius) / 100) * percentage;\n\nconst svgRotateAnimation = kfrm`\n 0% {\n transform: rotate(0);\n }\n 100% {\n transform: rotate(360deg);\n }\n`;\n\nconst strokeTailAnimation = (r: number) => {\n const miniDash = `${getArcLength(0, r)} ${getArcLength(100, r)}`;\n const fullDash = `${getArcLength(75, r)} ${getArcLength(25, r)}`;\n\n return kfrm`\n 0% {\n stroke-dasharray: ${miniDash};\n }\n 50% {\n stroke-dasharray: ${fullDash};\n }\n 100% {\n stroke-dasharray: ${miniDash};\n }\n`;\n};\n\nconst rotateAnimation = kfrm`\n 0%, 12.5% {\n transform: rotate(0);\n }\n 25%, 37.5% {\n transform: rotate(270deg);\n }\n 50%, 62.5% {\n transform: rotate(540deg);\n }\n 75%, 87.5% {\n transform: rotate(810deg);\n }\n 100% {\n transform: rotate(1080deg);\n }\n`;\n\nconst dashAnimation = (r: number) => {\n const miniDash = `${getArcLength(0, r)} ${getArcLength(100, r)}`;\n const fullDash = `${getArcLength(75, r)} ${getArcLength(25, r)}`;\n\n return kfrm`\n 0% {\n stroke-dasharray: ${miniDash};\n stroke-dashoffset: 0;\n }\n 12.5% {\n stroke-dasharray: ${fullDash};\n stroke-dashoffset: 0;\n }\n 25% {\n stroke-dasharray: ${miniDash};\n stroke-dashoffset: ${getArcLength(-75, r)};\n }\n 37.5% {\n stroke-dasharray: ${fullDash};\n stroke-dashoffset: ${getArcLength(-75, r)};\n }\n 50% {\n stroke-dasharray: ${miniDash};\n stroke-dashoffset: ${getArcLength(-150, r)};\n }\n 62.5% {\n stroke-dasharray: ${fullDash};\n stroke-dashoffset: ${getArcLength(-150, r)};\n }\n 75% {\n stroke-dasharray: ${miniDash};\n stroke-dashoffset: ${getArcLength(-225, r)};\n }\n 87.5% {\n stroke-dasharray: ${fullDash};\n stroke-dashoffset: ${getArcLength(-225, r)};\n }\n 100% {\n stroke-dasharray: ${miniDash};\n stroke-dashoffset: ${getArcLength(-300, r)};\n }\n`;\n};\n\nexport const StyledContainer = styled(Grid, {\n name: DSCircularIndeterminateIndicatorName,\n slot: DSCircularIndeterminateIndicatorSlots.ROOT,\n})`\n z-index: ${({ theme }) => theme.zIndex.loader};\n`;\n\nexport const StyledSvg = styled('svg', {\n name: DSCircularIndeterminateIndicatorName,\n slot: DSCircularIndeterminateIndicatorSlots.SVG,\n})`\n display: block;\n margin: auto;\n transform-origin: center center;\n transform: rotate(-90deg);\n animation: ${svgRotateAnimation} 2.5s linear infinite;\n`;\n\nexport const StyledPath = styled.path<{ r: number }>`\n transform-origin: center center;\n animation:\n ${rotateAnimation} 10s linear infinite,\n ${(props) => strokeTailAnimation(props.r)} 2.5s linear infinite;\n`;\n\nexport const StyledRect = styled.rect`\n transform-origin: center center;\n animation: ${rotateAnimation} 10s linear infinite;\n`;\n\nexport const StyledCircle = styled.circle<{ r: number }>`\n stroke-dashoffset: 0;\n fill: none;\n animation: ${(props) => dashAnimation(props.r)} 10s linear infinite;\n clip-path: ${(props) => props.clipPath};\n -webkit-clip-path: ${(props) => props.clipPath};\n`;\n\nexport const StyledLabel = styled('span', {\n name: DSCircularIndeterminateIndicatorName,\n slot: DSCircularIndeterminateIndicatorSlots.LABEL,\n})``;\n"],
5
+ "mappings": "AAAA,YAAY,WAAW;ACCvB,SAAS,YAAY;AACrB,SAAS,MAAM,cAAc;AAC7B,SAAS,sCAAsC,6CAA6C;AAC5F,MAAM,EAAE,GAAG,IAAI;AAEf,MAAM,eAAe,CAAC,YAAoB,WAAqB,IAAI,KAAK,SAAU,MAAO;AAEzF,MAAM,qBAAqB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAS3B,MAAM,sBAAsB,CAAC,MAAc;AACzC,QAAM,WAAW,GAAG,aAAa,GAAG,CAAC,KAAK,aAAa,KAAK,CAAC;AAC7D,QAAM,WAAW,GAAG,aAAa,IAAI,CAAC,KAAK,aAAa,IAAI,CAAC;AAE7D,SAAO;AAAA;AAAA,4BAEmB;AAAA;AAAA;AAAA,4BAGA;AAAA;AAAA;AAAA,4BAGA;AAAA;AAAA;AAG5B;AAEA,MAAM,kBAAkB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAkBxB,MAAM,gBAAgB,CAAC,MAAc;AACnC,QAAM,WAAW,GAAG,aAAa,GAAG,CAAC,KAAK,aAAa,KAAK,CAAC;AAC7D,QAAM,WAAW,GAAG,aAAa,IAAI,CAAC,KAAK,aAAa,IAAI,CAAC;AAE7D,SAAO;AAAA;AAAA,4BAEmB;AAAA;AAAA;AAAA;AAAA,4BAIA;AAAA;AAAA;AAAA;AAAA,4BAIA;AAAA,6BACC,aAAa,KAAK,CAAC;AAAA;AAAA;AAAA,4BAGpB;AAAA,6BACC,aAAa,KAAK,CAAC;AAAA;AAAA;AAAA,4BAGpB;AAAA,6BACC,aAAa,MAAM,CAAC;AAAA;AAAA;AAAA,4BAGrB;AAAA,6BACC,aAAa,MAAM,CAAC;AAAA;AAAA;AAAA,4BAGrB;AAAA,6BACC,aAAa,MAAM,CAAC;AAAA;AAAA;AAAA,4BAGrB;AAAA,6BACC,aAAa,MAAM,CAAC;AAAA;AAAA;AAAA,4BAGrB;AAAA,6BACC,aAAa,MAAM,CAAC;AAAA;AAAA;AAGjD;AAEO,MAAM,kBAAkB,OAAO,MAAM;AAAA,EAC1C,MAAM;AAAA,EACN,MAAM,sCAAsC;AAC9C,CAAC;AAAA,aACY,CAAC,EAAE,MAAM,MAAM,MAAM,OAAO;AAAA;AAGlC,MAAM,YAAY,OAAO,OAAO;AAAA,EACrC,MAAM;AAAA,EACN,MAAM,sCAAsC;AAC9C,CAAC;AAAA;AAAA;AAAA;AAAA;AAAA,eAKc;AAAA;AAGR,MAAM,aAAa,OAAO;AAAA;AAAA;AAAA,MAG3B;AAAA,MACA,CAAC,UAAU,oBAAoB,MAAM,CAAC;AAAA;AAGrC,MAAM,aAAa,OAAO;AAAA;AAAA,eAElB;AAAA;AAGR,MAAM,eAAe,OAAO;AAAA;AAAA;AAAA,eAGpB,CAAC,UAAU,cAAc,MAAM,CAAC;AAAA,eAChC,CAAC,UAAU,MAAM;AAAA,uBACT,CAAC,UAAU,MAAM;AAAA;AAGjC,MAAM,cAAc,OAAO,QAAQ;AAAA,EACxC,MAAM;AAAA,EACN,MAAM,sCAAsC;AAC9C,CAAC;",
6
+ "names": []
7
+ }
@@ -0,0 +1,33 @@
1
+ declare const CircularProgressIndicator: {
2
+ ({ size, showLabel, showTooltip, waiting, loading }: {
3
+ size: any;
4
+ showLabel: any;
5
+ showTooltip: any;
6
+ waiting: any;
7
+ loading: any;
8
+ }): import("react/jsx-runtime").JSX.Element;
9
+ defaultProps: {
10
+ size: string;
11
+ showLabel: boolean;
12
+ showTooltip: boolean;
13
+ waiting: boolean;
14
+ loading: boolean;
15
+ };
16
+ propTypes: {
17
+ size: import("@elliemae/ds-legacy-props-helpers/dist/types/propTypes/types").ReactDescT;
18
+ showLabel: import("@elliemae/ds-legacy-props-helpers/dist/types/propTypes/types").ReactDescT;
19
+ showTooltip: import("@elliemae/ds-legacy-props-helpers/dist/types/propTypes/types").ReactDescT;
20
+ waiting: import("@elliemae/ds-legacy-props-helpers/dist/types/propTypes/types").ReactDescT;
21
+ loading: import("@elliemae/ds-legacy-props-helpers/dist/types/propTypes/types").ReactDescT;
22
+ };
23
+ displayName: string;
24
+ };
25
+ declare const CircularProgressIndicatorWithSchema: import("@elliemae/ds-legacy-props-helpers/dist/types/propTypes/types").DocumentedReactComponent<{
26
+ size: any;
27
+ showLabel: any;
28
+ showTooltip: any;
29
+ waiting: any;
30
+ loading: any;
31
+ }>;
32
+ export { CircularProgressIndicatorWithSchema };
33
+ export default CircularProgressIndicator;
@@ -0,0 +1,2 @@
1
+ export { default, default as DSCircularProgressIndicator, CircularProgressIndicatorWithSchema, } from './DSCircularProgressIndicator.js';
2
+ export { DSCircularIndeterminateIndicator, DSCircularIndeterminateIndicatorWithSchema, DSCircularIndeterminateIndicatorName, DSCircularIndeterminateIndicatorSlots, DSCircularIndeterminateIndicatorDataTestIds, } from './v2/index.js';
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import type { DSCircularIndeterminateIndicatorT } from './react-desc-prop-types.js';
3
+ export declare const DSCircularIndeterminateIndicator: React.ComponentType<DSCircularIndeterminateIndicatorT.Props>;
4
+ export declare const DSCircularIndeterminateIndicatorWithSchema: import("@elliemae/ds-legacy-props-helpers/dist/types/propTypes/types.js").DocumentedReactComponent<DSCircularIndeterminateIndicatorT.Props>;
@@ -0,0 +1,35 @@
1
+ export declare const DSCircularIndeterminateIndicatorName = "DSCircularIndeterminateIndicator";
2
+ export declare const DSCircularIndeterminateIndicatorSlots: {
3
+ ROOT: string;
4
+ SVG: string;
5
+ LABEL: string;
6
+ };
7
+ export declare const sizeToPx: {
8
+ xs: number;
9
+ s: number;
10
+ m: number;
11
+ l: number;
12
+ xl: number;
13
+ xxl: number;
14
+ };
15
+ export declare const sizeToWeight: {
16
+ xs: string;
17
+ s: string;
18
+ m: string;
19
+ l: string;
20
+ xl: string;
21
+ xxl: string;
22
+ };
23
+ export declare const colorToHex: {
24
+ light: string;
25
+ dark: string;
26
+ };
27
+ export declare const sizeToTextSize: {
28
+ xs: string;
29
+ s: string;
30
+ m: string;
31
+ l: string;
32
+ xl: string;
33
+ xxl: string;
34
+ };
35
+ export declare const DSCircularIndeterminateIndicatorDataTestIds: Record<string, string>;
@@ -0,0 +1,2 @@
1
+ export { DSCircularIndeterminateIndicator, DSCircularIndeterminateIndicatorWithSchema, } from './DSCircularIndeterminateIndicator.js';
2
+ export * from './constants.js';
@@ -0,0 +1,25 @@
1
+ import type { GlobalAttributesT, XstyledProps } from '@elliemae/ds-legacy-props-helpers';
2
+ import { type DSTooltipV3T } from '@elliemae/ds-legacy-tooltip';
3
+ import type { WeakValidationMap } from 'react';
4
+ export declare const defaultProps: DSCircularIndeterminateIndicatorT.DefaultProps;
5
+ export declare namespace DSCircularIndeterminateIndicatorT {
6
+ type TShirtSizes = 'xs' | 's' | 'm' | 'l' | 'xl' | 'xxl';
7
+ type SupportedColors = 'light' | 'dark';
8
+ interface DefaultProps {
9
+ size: TShirtSizes;
10
+ color: SupportedColors;
11
+ text: string;
12
+ showText: boolean;
13
+ withTooltip: boolean;
14
+ tooltipStartPlacementPreference: DSTooltipV3T.Placement;
15
+ }
16
+ interface OptionalProps {
17
+ }
18
+ interface RequiredProps {
19
+ }
20
+ interface Props extends Partial<DefaultProps>, OptionalProps, Omit<GlobalAttributesT<HTMLButtonElement>, keyof DefaultProps | keyof OptionalProps>, XstyledProps, RequiredProps {
21
+ }
22
+ interface InternalProps extends DefaultProps, OptionalProps, Omit<GlobalAttributesT<HTMLButtonElement>, keyof DefaultProps | keyof OptionalProps>, XstyledProps, RequiredProps {
23
+ }
24
+ }
25
+ export declare const CircularIndeterminateIndicatorPropTypes: WeakValidationMap<unknown>;
@@ -0,0 +1,11 @@
1
+ /// <reference types="react" />
2
+ export declare const StyledContainer: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("@elliemae/ds-legacy-grid").DSGridT.Props & import("react").RefAttributes<HTMLDivElement>>, import("@elliemae/ds-legacy-system").Theme, object & import("@elliemae/ds-legacy-system").OwnerInterface, never>;
3
+ export declare const StyledSvg: import("styled-components").StyledComponent<"svg", import("@elliemae/ds-legacy-system").Theme, object & import("@elliemae/ds-legacy-system").OwnerInterface, never>;
4
+ export declare const StyledPath: import("styled-components").StyledComponent<"path", import("@elliemae/ds-legacy-system").Theme, {
5
+ r: number;
6
+ } & import("@elliemae/ds-legacy-system").OwnerInterface, never>;
7
+ export declare const StyledRect: import("styled-components").StyledComponent<"rect", import("@elliemae/ds-legacy-system").Theme, object & import("@elliemae/ds-legacy-system").OwnerInterface, never>;
8
+ export declare const StyledCircle: import("styled-components").StyledComponent<"circle", import("@elliemae/ds-legacy-system").Theme, {
9
+ r: number;
10
+ } & import("@elliemae/ds-legacy-system").OwnerInterface, never>;
11
+ export declare const StyledLabel: import("styled-components").StyledComponent<"span", import("@elliemae/ds-legacy-system").Theme, object & import("@elliemae/ds-legacy-system").OwnerInterface, never>;
package/package.json ADDED
@@ -0,0 +1,87 @@
1
+ {
2
+ "name": "@elliemae/ds-legacy-circular-progress-indicator",
3
+ "version": "1.0.0-rc.1",
4
+ "license": "MIT",
5
+ "description": "ICE MT - Dimsum - Circular progress indicator",
6
+ "files": [
7
+ "dist"
8
+ ],
9
+ "module": "./dist/esm/index.js",
10
+ "main": "./dist/cjs/index.js",
11
+ "types": "./dist/types/index.d.ts",
12
+ "exports": {
13
+ ".": {
14
+ "import": "./dist/esm/index.js",
15
+ "require": "./dist/cjs/index.js"
16
+ },
17
+ "./v2/react-desc-prop-types": {
18
+ "import": "./dist/esm/v2/react-desc-prop-types.js",
19
+ "require": "./dist/cjs/v2/react-desc-prop-types.js"
20
+ },
21
+ "./v2": {
22
+ "import": "./dist/esm/v2/index.js",
23
+ "require": "./dist/cjs/v2/index.js"
24
+ },
25
+ "./v2/DSCircularIndeterminateIndicator": {
26
+ "import": "./dist/esm/v2/DSCircularIndeterminateIndicator.js",
27
+ "require": "./dist/cjs/v2/DSCircularIndeterminateIndicator.js"
28
+ },
29
+ "./DSCircularProgressIndicator": {
30
+ "import": "./dist/esm/DSCircularProgressIndicator.js",
31
+ "require": "./dist/cjs/DSCircularProgressIndicator.js"
32
+ }
33
+ },
34
+ "sideEffects": [
35
+ "*.css",
36
+ "*.scss"
37
+ ],
38
+ "repository": {
39
+ "type": "git",
40
+ "url": "https://git.elliemae.io/platform-ui/dimsum-legacy.git"
41
+ },
42
+ "engines": {
43
+ "pnpm": ">=6",
44
+ "node": ">=16"
45
+ },
46
+ "author": "ICE MT",
47
+ "jestSonar": {
48
+ "sonar56x": true,
49
+ "reportPath": "reports",
50
+ "reportFile": "tests.xml",
51
+ "indent": 4
52
+ },
53
+ "dependencies": {
54
+ "styled-components": "~5.3.9",
55
+ "uid": "~2.0.1",
56
+ "@elliemae/ds-legacy-classnames": "1.0.0-rc.1",
57
+ "@elliemae/ds-legacy-grid": "1.0.0-rc.1",
58
+ "@elliemae/ds-legacy-props-helpers": "1.0.0-rc.1",
59
+ "@elliemae/ds-legacy-system": "1.0.0-rc.1",
60
+ "@elliemae/ds-legacy-tooltip": "1.0.0-rc.1",
61
+ "@elliemae/ds-legacy-utilities": "1.0.0-rc.1"
62
+ },
63
+ "devDependencies": {
64
+ "@elliemae/pui-cli": "~9.0.0-next.31",
65
+ "@elliemae/ds-legacy-monorepo-devops": "1.0.0-rc.1"
66
+ },
67
+ "peerDependencies": {
68
+ "lodash": "^4.17.21",
69
+ "react": "^17.0.2",
70
+ "react-dom": "^17.0.2"
71
+ },
72
+ "publishConfig": {
73
+ "access": "public",
74
+ "typeSafety": false
75
+ },
76
+ "scripts": {
77
+ "dev": "cross-env NODE_ENV=development node ../../../scripts/build/build.mjs --watch",
78
+ "test": "pui-cli test --passWithNoTests",
79
+ "lint": "node ../../../scripts/lint.mjs",
80
+ "eslint:fix": "eslint --ext='.js,.jsx,.test.js,.ts,.tsx' --fix --config='../../../.eslintrc.js' src/",
81
+ "dts": "node ../../../scripts/dts.mjs",
82
+ "build": "cross-env NODE_ENV=production node ../../../scripts/build/build.mjs",
83
+ "dev:build": "pnpm --filter {.}... build",
84
+ "dev:install": "pnpm --filter {.}... i --no-lockfile && pnpm run dev:build",
85
+ "checkDeps": "npm exec ../../util/ds-codemods -- check-missing-packages --projectFolderPath=\"./\" --ignorePackagesGlobPattern=\"\" --ignoreFilesGlobPattern=\"**/test-ables/*,**/tests/*\""
86
+ }
87
+ }