@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,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../src/v2/index.tsx", "../../../../../../scripts/build/transpile/react-shim.js"],
4
+ "sourcesContent": ["export {\n DSCircularIndeterminateIndicator,\n DSCircularIndeterminateIndicatorWithSchema,\n} from './DSCircularIndeterminateIndicator.js';\nexport * from './constants.js';\n", "import * as React from 'react';\nexport { React };\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADAvB,8CAGO;AACP,uBAAc,2BAJd;",
6
+ "names": []
7
+ }
@@ -0,0 +1,67 @@
1
+ "use strict";
2
+ var __create = Object.create;
3
+ var __defProp = Object.defineProperty;
4
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
+ var __getOwnPropNames = Object.getOwnPropertyNames;
6
+ var __getProtoOf = Object.getPrototypeOf;
7
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
8
+ var __export = (target, all) => {
9
+ for (var name in all)
10
+ __defProp(target, name, { get: all[name], enumerable: true });
11
+ };
12
+ var __copyProps = (to, from, except, desc) => {
13
+ if (from && typeof from === "object" || typeof from === "function") {
14
+ for (let key of __getOwnPropNames(from))
15
+ if (!__hasOwnProp.call(to, key) && key !== except)
16
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
17
+ }
18
+ return to;
19
+ };
20
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
21
+ // If the importer is in node compatibility mode or this is not an ESM
22
+ // file that has been converted to a CommonJS file using a Babel-
23
+ // compatible transform (i.e. "__esModule" has not been set), then set
24
+ // "default" to the CommonJS "module.exports" for node compatibility.
25
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
26
+ mod
27
+ ));
28
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
+ var react_desc_prop_types_exports = {};
30
+ __export(react_desc_prop_types_exports, {
31
+ CircularIndeterminateIndicatorPropTypes: () => CircularIndeterminateIndicatorPropTypes,
32
+ defaultProps: () => defaultProps
33
+ });
34
+ module.exports = __toCommonJS(react_desc_prop_types_exports);
35
+ var React = __toESM(require("react"));
36
+ var import_ds_legacy_props_helpers = require("@elliemae/ds-legacy-props-helpers");
37
+ const defaultProps = {
38
+ size: "m",
39
+ color: "dark",
40
+ text: "",
41
+ showText: true,
42
+ withTooltip: false,
43
+ tooltipStartPlacementPreference: "bottom"
44
+ };
45
+ const CircularIndeterminateIndicatorPropTypes = {
46
+ ...import_ds_legacy_props_helpers.globalAttributesPropTypes,
47
+ size: import_ds_legacy_props_helpers.PropTypes.oneOf(["xs", "s", "m", "l", "xl", "xxl"]).description("Size of the indicator").defaultValue("m"),
48
+ color: import_ds_legacy_props_helpers.PropTypes.oneOf(["light", "dark"]).description("Color mode for the indicator").defaultValue("dark"),
49
+ text: import_ds_legacy_props_helpers.PropTypes.string.description("Optional text to show under the indicator").defaultValue(""),
50
+ showText: import_ds_legacy_props_helpers.PropTypes.bool.description("Whether to show the optional text or not").defaultValue(true),
51
+ withTooltip: import_ds_legacy_props_helpers.PropTypes.bool.description("Whether to include a tooltip that shows the optional text on hover").defaultValue(false),
52
+ tooltipStartPlacementPreference: import_ds_legacy_props_helpers.PropTypes.oneOf([
53
+ "top-start",
54
+ "top",
55
+ "top-end",
56
+ "right-start",
57
+ "right",
58
+ "right-end",
59
+ "bottom-end",
60
+ "bottom",
61
+ "bottom-start",
62
+ "left-end",
63
+ "left",
64
+ "left-start"
65
+ ]).description("start placement preference for the tooltip").defaultValue("center")
66
+ };
67
+ //# sourceMappingURL=react-desc-prop-types.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../src/v2/react-desc-prop-types.tsx", "../../../../../../scripts/build/transpile/react-shim.js"],
4
+ "sourcesContent": ["/* 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", "import * as React from 'react';\nexport { React };\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADIvB,qCAAqD;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,yCAAU,MAAM,CAAC,MAAM,KAAK,KAAK,KAAK,MAAM,KAAK,CAAC,EAAE,YAAY,uBAAuB,EAAE,aAAa,GAAG;AAAA,EAC/G,OAAO,yCAAU,MAAM,CAAC,SAAS,MAAM,CAAC,EAAE,YAAY,8BAA8B,EAAE,aAAa,MAAM;AAAA,EACzG,MAAM,yCAAU,OAAO,YAAY,2CAA2C,EAAE,aAAa,EAAE;AAAA,EAC/F,UAAU,yCAAU,KAAK,YAAY,0CAA0C,EAAE,aAAa,IAAI;AAAA,EAClG,aAAa,yCAAU,KACpB,YAAY,oEAAoE,EAChF,aAAa,KAAK;AAAA,EACrB,iCAAiC,yCAAU,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,164 @@
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
+ StyledCircle: () => StyledCircle,
32
+ StyledContainer: () => StyledContainer,
33
+ StyledLabel: () => StyledLabel,
34
+ StyledPath: () => StyledPath,
35
+ StyledRect: () => StyledRect,
36
+ StyledSvg: () => StyledSvg
37
+ });
38
+ module.exports = __toCommonJS(styled_exports);
39
+ var React = __toESM(require("react"));
40
+ var import_ds_legacy_grid = require("@elliemae/ds-legacy-grid");
41
+ var import_ds_legacy_system = require("@elliemae/ds-legacy-system");
42
+ var import_constants = require("./constants.js");
43
+ const { PI } = Math;
44
+ const getArcLength = (percentage, radius) => 2 * PI * radius / 100 * percentage;
45
+ const svgRotateAnimation = import_ds_legacy_system.kfrm`
46
+ 0% {
47
+ transform: rotate(0);
48
+ }
49
+ 100% {
50
+ transform: rotate(360deg);
51
+ }
52
+ `;
53
+ const strokeTailAnimation = (r) => {
54
+ const miniDash = `${getArcLength(0, r)} ${getArcLength(100, r)}`;
55
+ const fullDash = `${getArcLength(75, r)} ${getArcLength(25, r)}`;
56
+ return import_ds_legacy_system.kfrm`
57
+ 0% {
58
+ stroke-dasharray: ${miniDash};
59
+ }
60
+ 50% {
61
+ stroke-dasharray: ${fullDash};
62
+ }
63
+ 100% {
64
+ stroke-dasharray: ${miniDash};
65
+ }
66
+ `;
67
+ };
68
+ const rotateAnimation = import_ds_legacy_system.kfrm`
69
+ 0%, 12.5% {
70
+ transform: rotate(0);
71
+ }
72
+ 25%, 37.5% {
73
+ transform: rotate(270deg);
74
+ }
75
+ 50%, 62.5% {
76
+ transform: rotate(540deg);
77
+ }
78
+ 75%, 87.5% {
79
+ transform: rotate(810deg);
80
+ }
81
+ 100% {
82
+ transform: rotate(1080deg);
83
+ }
84
+ `;
85
+ const dashAnimation = (r) => {
86
+ const miniDash = `${getArcLength(0, r)} ${getArcLength(100, r)}`;
87
+ const fullDash = `${getArcLength(75, r)} ${getArcLength(25, r)}`;
88
+ return import_ds_legacy_system.kfrm`
89
+ 0% {
90
+ stroke-dasharray: ${miniDash};
91
+ stroke-dashoffset: 0;
92
+ }
93
+ 12.5% {
94
+ stroke-dasharray: ${fullDash};
95
+ stroke-dashoffset: 0;
96
+ }
97
+ 25% {
98
+ stroke-dasharray: ${miniDash};
99
+ stroke-dashoffset: ${getArcLength(-75, r)};
100
+ }
101
+ 37.5% {
102
+ stroke-dasharray: ${fullDash};
103
+ stroke-dashoffset: ${getArcLength(-75, r)};
104
+ }
105
+ 50% {
106
+ stroke-dasharray: ${miniDash};
107
+ stroke-dashoffset: ${getArcLength(-150, r)};
108
+ }
109
+ 62.5% {
110
+ stroke-dasharray: ${fullDash};
111
+ stroke-dashoffset: ${getArcLength(-150, r)};
112
+ }
113
+ 75% {
114
+ stroke-dasharray: ${miniDash};
115
+ stroke-dashoffset: ${getArcLength(-225, r)};
116
+ }
117
+ 87.5% {
118
+ stroke-dasharray: ${fullDash};
119
+ stroke-dashoffset: ${getArcLength(-225, r)};
120
+ }
121
+ 100% {
122
+ stroke-dasharray: ${miniDash};
123
+ stroke-dashoffset: ${getArcLength(-300, r)};
124
+ }
125
+ `;
126
+ };
127
+ const StyledContainer = (0, import_ds_legacy_system.styled)(import_ds_legacy_grid.Grid, {
128
+ name: import_constants.DSCircularIndeterminateIndicatorName,
129
+ slot: import_constants.DSCircularIndeterminateIndicatorSlots.ROOT
130
+ })`
131
+ z-index: ${({ theme }) => theme.zIndex.loader};
132
+ `;
133
+ const StyledSvg = (0, import_ds_legacy_system.styled)("svg", {
134
+ name: import_constants.DSCircularIndeterminateIndicatorName,
135
+ slot: import_constants.DSCircularIndeterminateIndicatorSlots.SVG
136
+ })`
137
+ display: block;
138
+ margin: auto;
139
+ transform-origin: center center;
140
+ transform: rotate(-90deg);
141
+ animation: ${svgRotateAnimation} 2.5s linear infinite;
142
+ `;
143
+ const StyledPath = import_ds_legacy_system.styled.path`
144
+ transform-origin: center center;
145
+ animation:
146
+ ${rotateAnimation} 10s linear infinite,
147
+ ${(props) => strokeTailAnimation(props.r)} 2.5s linear infinite;
148
+ `;
149
+ const StyledRect = import_ds_legacy_system.styled.rect`
150
+ transform-origin: center center;
151
+ animation: ${rotateAnimation} 10s linear infinite;
152
+ `;
153
+ const StyledCircle = import_ds_legacy_system.styled.circle`
154
+ stroke-dashoffset: 0;
155
+ fill: none;
156
+ animation: ${(props) => dashAnimation(props.r)} 10s linear infinite;
157
+ clip-path: ${(props) => props.clipPath};
158
+ -webkit-clip-path: ${(props) => props.clipPath};
159
+ `;
160
+ const StyledLabel = (0, import_ds_legacy_system.styled)("span", {
161
+ name: import_constants.DSCircularIndeterminateIndicatorName,
162
+ slot: import_constants.DSCircularIndeterminateIndicatorSlots.LABEL
163
+ })``;
164
+ //# sourceMappingURL=styled.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../src/v2/styled.tsx", "../../../../../../scripts/build/transpile/react-shim.js"],
4
+ "sourcesContent": ["/* 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", "import * as React from 'react';\nexport { React };\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADCvB,4BAAqB;AACrB,8BAA6B;AAC7B,uBAA4F;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,sBAAkB,gCAAO,4BAAM;AAAA,EAC1C,MAAM;AAAA,EACN,MAAM,uDAAsC;AAC9C,CAAC;AAAA,aACY,CAAC,EAAE,MAAM,MAAM,MAAM,OAAO;AAAA;AAGlC,MAAM,gBAAY,gCAAO,OAAO;AAAA,EACrC,MAAM;AAAA,EACN,MAAM,uDAAsC;AAC9C,CAAC;AAAA;AAAA;AAAA;AAAA;AAAA,eAKc;AAAA;AAGR,MAAM,aAAa,+BAAO;AAAA;AAAA;AAAA,MAG3B;AAAA,MACA,CAAC,UAAU,oBAAoB,MAAM,CAAC;AAAA;AAGrC,MAAM,aAAa,+BAAO;AAAA;AAAA,eAElB;AAAA;AAGR,MAAM,eAAe,+BAAO;AAAA;AAAA;AAAA,eAGpB,CAAC,UAAU,cAAc,MAAM,CAAC;AAAA,eAChC,CAAC,UAAU,MAAM;AAAA,uBACT,CAAC,UAAU,MAAM;AAAA;AAGjC,MAAM,kBAAc,gCAAO,QAAQ;AAAA,EACxC,MAAM;AAAA,EACN,MAAM,uDAAsC;AAC9C,CAAC;",
6
+ "names": []
7
+ }
@@ -0,0 +1,231 @@
1
+ import * as React from "react";
2
+ import { jsx, jsxs } from "react/jsx-runtime";
3
+ import { useDeprecateComponent } from "@elliemae/ds-legacy-utilities";
4
+ import { describe, PropTypes } from "@elliemae/ds-legacy-props-helpers";
5
+ import { convertPropToCssClassName } from "@elliemae/ds-legacy-classnames";
6
+ import DSTooltip from "@elliemae/ds-legacy-tooltip";
7
+ const { classNameBlock, classNameElement } = convertPropToCssClassName("circular-progress-indicator");
8
+ const CircularProgressIndicator = ({ size, showLabel, showTooltip, waiting, loading }) => {
9
+ useDeprecateComponent({ componentName: "ds-circular-progress-indicator", version: "TBD Date: 2023 Q3" });
10
+ const waitingLabel = "Waiting...";
11
+ const loadingLabel = "Loading...";
12
+ const currentLabel = waiting && !loading ? waitingLabel : loadingLabel;
13
+ let sizePx;
14
+ let sizeLabel;
15
+ let strokeWidth;
16
+ let trackWidth;
17
+ let markerHeight = "0.7";
18
+ let markerRefY = "4.8";
19
+ let grayArcStrokeDasharray = "45 170";
20
+ let grayArcStrokeDashoffset = "127.5";
21
+ switch (size.toUpperCase()) {
22
+ case "XS":
23
+ sizePx = 8;
24
+ sizeLabel = 12;
25
+ strokeWidth = 10;
26
+ trackWidth = 3;
27
+ markerHeight = "1";
28
+ grayArcStrokeDasharray = "46 174";
29
+ grayArcStrokeDashoffset = "133";
30
+ break;
31
+ case "S":
32
+ sizePx = 16;
33
+ sizeLabel = 12;
34
+ strokeWidth = 8;
35
+ trackWidth = 3;
36
+ markerHeight = "1";
37
+ grayArcStrokeDasharray = "46 174";
38
+ grayArcStrokeDashoffset = "133";
39
+ break;
40
+ case "M":
41
+ sizePx = 24;
42
+ sizeLabel = 12;
43
+ strokeWidth = 7;
44
+ trackWidth = 3;
45
+ markerHeight = "1";
46
+ markerRefY = "5.5";
47
+ grayArcStrokeDasharray = "46 174";
48
+ grayArcStrokeDashoffset = "133";
49
+ break;
50
+ case "L":
51
+ sizePx = 32;
52
+ sizeLabel = 13;
53
+ strokeWidth = 6;
54
+ trackWidth = 3;
55
+ markerRefY = "5";
56
+ break;
57
+ case "XL":
58
+ sizePx = 48;
59
+ sizeLabel = 14;
60
+ strokeWidth = 5;
61
+ trackWidth = 1;
62
+ break;
63
+ case "XXL":
64
+ sizePx = 56;
65
+ sizeLabel = 16;
66
+ strokeWidth = 4;
67
+ trackWidth = 1;
68
+ break;
69
+ case "XXXL":
70
+ sizePx = 64;
71
+ sizeLabel = 16;
72
+ strokeWidth = 5;
73
+ trackWidth = 2;
74
+ break;
75
+ default:
76
+ break;
77
+ }
78
+ const labelText = /* @__PURE__ */ jsx(
79
+ "p",
80
+ {
81
+ "data-testid": "circular-indicator-label",
82
+ className: classNameElement("label"),
83
+ style: { fontSize: `${sizeLabel}px` },
84
+ children: currentLabel
85
+ }
86
+ );
87
+ const buildIndicator = (Component) => sizePx < 17 || showTooltip ? /* @__PURE__ */ jsx(
88
+ DSTooltip,
89
+ {
90
+ containerProps: {
91
+ id: "ds-circular-progress-indicator",
92
+ "data-testid": "circular-indicator-title"
93
+ },
94
+ interactionType: "hover",
95
+ title: currentLabel,
96
+ triggerComponent: Component,
97
+ placement: "bottom"
98
+ }
99
+ ) : Component;
100
+ const grayTrack = /* @__PURE__ */ jsx(
101
+ "circle",
102
+ {
103
+ className: classNameElement("track"),
104
+ cx: "50%",
105
+ cy: "50%",
106
+ fill: "none",
107
+ r: "28",
108
+ strokeWidth: `${trackWidth}px`
109
+ }
110
+ );
111
+ const grayArc = /* @__PURE__ */ jsx(
112
+ "circle",
113
+ {
114
+ className: classNameElement("arc-gray"),
115
+ stroke: "#E0E3E8",
116
+ strokeDasharray: `${grayArcStrokeDasharray}`,
117
+ strokeDashoffset: `${grayArcStrokeDashoffset}`,
118
+ cx: "50%",
119
+ cy: "50%",
120
+ fill: "none",
121
+ r: "28",
122
+ strokeWidth: `${trackWidth}px`
123
+ }
124
+ );
125
+ const indicator = /* @__PURE__ */ jsxs(
126
+ "svg",
127
+ {
128
+ height: `${sizePx}px`,
129
+ version: "1.1",
130
+ viewBox: "0 0 66 66",
131
+ width: `${sizePx}px`,
132
+ "data-testid": "circular-indicator",
133
+ "aria-label": waiting && !loading ? waitingLabel : loadingLabel,
134
+ children: [
135
+ /* @__PURE__ */ jsxs("defs", { children: [
136
+ /* @__PURE__ */ jsxs("linearGradient", { id: "grad1", x1: "0%", x2: "100%", y1: "100%", y2: "0%", children: [
137
+ /* @__PURE__ */ jsx("stop", { offset: "0%", style: { stopColor: "#E0E3E8", stopOpacity: 1 } }),
138
+ /* @__PURE__ */ jsx("stop", { offset: "89%", style: { stopColor: "#5594e2", stopOpacity: 1 } }),
139
+ /* @__PURE__ */ jsx("stop", { offset: "100%", style: { stopColor: "#5594e2", stopOpacity: 1 } })
140
+ ] }),
141
+ /* @__PURE__ */ jsxs("linearGradient", { id: "grad2", x1: "0%", x2: "100%", y1: "100%", y2: "0%", children: [
142
+ /* @__PURE__ */ jsx("stop", { offset: "0%", style: { stopColor: "#5594e2", stopOpacity: 1 } }),
143
+ /* @__PURE__ */ jsx("stop", { offset: "11%", style: { stopColor: "#5594e2", stopOpacity: 1 } }),
144
+ /* @__PURE__ */ jsx("stop", { offset: "100%", style: { stopColor: "#E0E3E8", stopOpacity: 1 } })
145
+ ] }),
146
+ /* @__PURE__ */ jsx(
147
+ "marker",
148
+ {
149
+ id: "inverseL",
150
+ viewBox: "0 0 5 10",
151
+ refX: "0.5",
152
+ refY: `${markerRefY}`,
153
+ markerUnits: "strokeWidth",
154
+ markerWidth: "0.5",
155
+ markerHeight: `${markerHeight}`,
156
+ orient: "auto",
157
+ children: /* @__PURE__ */ jsx("path", { d: "M 0 0 L 6 0 A 5 5 0 0 0 6 10 L 0 10 z", fill: "#FFF" })
158
+ }
159
+ ),
160
+ /* @__PURE__ */ jsx(
161
+ "marker",
162
+ {
163
+ id: "inverseR",
164
+ viewBox: "0 0 5 10",
165
+ refX: "0",
166
+ refY: "5",
167
+ markerUnits: "strokeWidth",
168
+ markerWidth: "0.7",
169
+ markerHeight: `${markerHeight}`,
170
+ children: /* @__PURE__ */ jsx("path", { d: "M 0 0 L 6 0 A 5 5 0 0 0 6 10 L 0 10 z", fill: "#FFF" })
171
+ }
172
+ )
173
+ ] }),
174
+ grayTrack,
175
+ !waiting && /* @__PURE__ */ jsxs("g", { fill: "none", fillRule: "evenodd", stroke: "none", strokeWidth: "1", children: [
176
+ /* @__PURE__ */ jsx(
177
+ "path",
178
+ {
179
+ className: classNameElement("arc-blue"),
180
+ d: "M30,5 C17.536025,6 6,17.536027 5,31",
181
+ stroke: "#5594e2",
182
+ strokeWidth: `${strokeWidth - 0.5}px`,
183
+ strokeLinecap: "round",
184
+ "data-testid": "circular-indicator-blue-arc"
185
+ }
186
+ ),
187
+ /* @__PURE__ */ jsx(
188
+ "path",
189
+ {
190
+ className: classNameElement("arc-white"),
191
+ d: "M33,5 C17.536027,5 5,17.536027 5,33",
192
+ stroke: "#FFF",
193
+ strokeWidth: `${strokeWidth + 2}px`,
194
+ markerStart: "url(#inverseR)",
195
+ markerEnd: "url(#inverseL)"
196
+ }
197
+ ),
198
+ grayArc
199
+ ] })
200
+ ]
201
+ }
202
+ );
203
+ return /* @__PURE__ */ jsxs("div", { className: classNameBlock("wrapper"), role: "status", "aria-hidden": waiting || loading ? "false" : "true", children: [
204
+ buildIndicator(indicator),
205
+ showLabel && labelText
206
+ ] });
207
+ };
208
+ CircularProgressIndicator.defaultProps = {
209
+ size: "m",
210
+ showLabel: false,
211
+ showTooltip: false,
212
+ waiting: false,
213
+ loading: false
214
+ };
215
+ const circularProgressIndicatorProps = {
216
+ size: PropTypes.oneOf(["xs", "s", "m", "l", "xl", "xxl", "xxxl"]).description("Defines the size of the indicator").defaultValue("m"),
217
+ showLabel: PropTypes.bool.description("Wheter the indicator displays its state on a label or not").defaultValue(false),
218
+ showTooltip: PropTypes.bool.description("Wheter the indicator displays its state on a tooltip or not").defaultValue(false),
219
+ waiting: PropTypes.bool.description("Defines the state of the indicator as Waiting and only displays the gray track").defaultValue(false),
220
+ loading: PropTypes.bool.description("Defines the state of the indicator as Loading and displays a blue spinner animation").defaultValue(false)
221
+ };
222
+ CircularProgressIndicator.propTypes = circularProgressIndicatorProps;
223
+ CircularProgressIndicator.displayName = "CircularProgressIndicator";
224
+ const CircularProgressIndicatorWithSchema = describe(CircularProgressIndicator);
225
+ CircularProgressIndicatorWithSchema.propTypes = circularProgressIndicatorProps;
226
+ var DSCircularProgressIndicator_default = CircularProgressIndicator;
227
+ export {
228
+ CircularProgressIndicatorWithSchema,
229
+ DSCircularProgressIndicator_default as default
230
+ };
231
+ //# sourceMappingURL=DSCircularProgressIndicator.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../../../scripts/build/transpile/react-shim.js", "../../src/DSCircularProgressIndicator.tsx"],
4
+ "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "/* eslint-disable eslint-comments/no-unlimited-disable */\n/* eslint-disable */\n// eslint-disable-next-line @typescript-eslint/ban-ts-comment\n// @ts-ignore\n\nimport React from 'react';\nimport { useDeprecateComponent } from '@elliemae/ds-legacy-utilities';\nimport { describe, PropTypes } from '@elliemae/ds-legacy-props-helpers';\nimport { convertPropToCssClassName } from '@elliemae/ds-legacy-classnames';\nimport DSTooltip from '@elliemae/ds-legacy-tooltip';\n\nconst { classNameBlock, classNameElement } = convertPropToCssClassName('circular-progress-indicator');\n\nconst CircularProgressIndicator = ({ size, showLabel, showTooltip, waiting, loading }) => {\n useDeprecateComponent({ componentName: 'ds-circular-progress-indicator', version: 'TBD Date: 2023 Q3' });\n\n const waitingLabel = 'Waiting...';\n const loadingLabel = 'Loading...';\n const currentLabel = waiting && !loading ? waitingLabel : loadingLabel;\n let sizePx;\n let sizeLabel;\n let strokeWidth;\n let trackWidth;\n let markerHeight = '0.7';\n let markerRefY = '4.8';\n let grayArcStrokeDasharray = '45 170';\n let grayArcStrokeDashoffset = '127.5';\n\n switch (size.toUpperCase()) {\n case 'XS':\n sizePx = 8;\n sizeLabel = 12;\n strokeWidth = 10;\n trackWidth = 3;\n markerHeight = '1';\n grayArcStrokeDasharray = '46 174';\n grayArcStrokeDashoffset = '133';\n break;\n case 'S':\n sizePx = 16;\n sizeLabel = 12;\n strokeWidth = 8;\n trackWidth = 3;\n markerHeight = '1';\n grayArcStrokeDasharray = '46 174';\n grayArcStrokeDashoffset = '133';\n break;\n case 'M':\n sizePx = 24;\n sizeLabel = 12;\n strokeWidth = 7;\n trackWidth = 3;\n markerHeight = '1';\n markerRefY = '5.5';\n grayArcStrokeDasharray = '46 174';\n grayArcStrokeDashoffset = '133';\n break;\n case 'L':\n sizePx = 32;\n sizeLabel = 13;\n strokeWidth = 6;\n trackWidth = 3;\n markerRefY = '5';\n break;\n case 'XL':\n sizePx = 48;\n sizeLabel = 14;\n strokeWidth = 5;\n trackWidth = 1;\n break;\n case 'XXL':\n sizePx = 56;\n sizeLabel = 16;\n strokeWidth = 4;\n trackWidth = 1;\n break;\n case 'XXXL':\n sizePx = 64;\n sizeLabel = 16;\n strokeWidth = 5;\n trackWidth = 2;\n break;\n default:\n break;\n }\n\n const labelText = (\n <p\n data-testid=\"circular-indicator-label\"\n className={classNameElement('label')}\n style={{ fontSize: `${sizeLabel}px` }}\n >\n {currentLabel}\n </p>\n );\n\n // Only adds the tooltip if sizePx < 17 or showTooltip is true\n const buildIndicator = (Component: JSX.Element) =>\n sizePx < 17 || showTooltip ? (\n <DSTooltip\n containerProps={{\n id: 'ds-circular-progress-indicator',\n 'data-testid': 'circular-indicator-title',\n }}\n interactionType=\"hover\"\n title={currentLabel}\n triggerComponent={Component}\n placement=\"bottom\"\n />\n ) : (\n Component\n );\n\n const grayTrack = (\n <circle\n className={classNameElement('track')}\n cx=\"50%\"\n cy=\"50%\"\n fill=\"none\"\n r=\"28\"\n strokeWidth={`${trackWidth}px`}\n />\n );\n\n const grayArc = (\n <circle\n className={classNameElement('arc-gray')}\n stroke=\"#E0E3E8\"\n strokeDasharray={`${grayArcStrokeDasharray}`}\n strokeDashoffset={`${grayArcStrokeDashoffset}`}\n cx=\"50%\"\n cy=\"50%\"\n fill=\"none\"\n r=\"28\"\n strokeWidth={`${trackWidth}px`}\n />\n );\n\n const indicator = (\n <svg\n height={`${sizePx}px`}\n version=\"1.1\"\n viewBox=\"0 0 66 66\"\n width={`${sizePx}px`}\n data-testid=\"circular-indicator\"\n aria-label={waiting && !loading ? waitingLabel : loadingLabel}\n >\n <defs>\n <linearGradient id=\"grad1\" x1=\"0%\" x2=\"100%\" y1=\"100%\" y2=\"0%\">\n <stop offset=\"0%\" style={{ stopColor: '#E0E3E8', stopOpacity: 1 }} />\n <stop offset=\"89%\" style={{ stopColor: '#5594e2', stopOpacity: 1 }} />\n <stop offset=\"100%\" style={{ stopColor: '#5594e2', stopOpacity: 1 }} />\n </linearGradient>\n <linearGradient id=\"grad2\" x1=\"0%\" x2=\"100%\" y1=\"100%\" y2=\"0%\">\n <stop offset=\"0%\" style={{ stopColor: '#5594e2', stopOpacity: 1 }} />\n <stop offset=\"11%\" style={{ stopColor: '#5594e2', stopOpacity: 1 }} />\n <stop offset=\"100%\" style={{ stopColor: '#E0E3E8', stopOpacity: 1 }} />\n </linearGradient>\n <marker\n id=\"inverseL\"\n viewBox=\"0 0 5 10\"\n refX=\"0.5\"\n refY={`${markerRefY}`}\n markerUnits=\"strokeWidth\"\n markerWidth=\"0.5\"\n markerHeight={`${markerHeight}`}\n orient=\"auto\"\n >\n <path d=\"M 0 0 L 6 0 A 5 5 0 0 0 6 10 L 0 10 z\" fill=\"#FFF\" />\n </marker>\n <marker\n id=\"inverseR\"\n viewBox=\"0 0 5 10\"\n refX=\"0\"\n refY=\"5\"\n markerUnits=\"strokeWidth\"\n markerWidth=\"0.7\"\n markerHeight={`${markerHeight}`}\n >\n <path d=\"M 0 0 L 6 0 A 5 5 0 0 0 6 10 L 0 10 z\" fill=\"#FFF\" />\n </marker>\n </defs>\n {grayTrack}\n {!waiting && (\n <g fill=\"none\" fillRule=\"evenodd\" stroke=\"none\" strokeWidth=\"1\">\n <path\n className={classNameElement('arc-blue')}\n d=\"M30,5 C17.536025,6 6,17.536027 5,31\"\n stroke=\"#5594e2\"\n strokeWidth={`${strokeWidth - 0.5}px`}\n strokeLinecap=\"round\"\n data-testid=\"circular-indicator-blue-arc\"\n />\n <path\n className={classNameElement('arc-white')}\n d=\"M33,5 C17.536027,5 5,17.536027 5,33\"\n stroke=\"#FFF\"\n strokeWidth={`${strokeWidth + 2}px`}\n markerStart=\"url(#inverseR)\"\n markerEnd=\"url(#inverseL)\"\n />\n {grayArc}\n </g>\n )}\n </svg>\n );\n\n return (\n <div className={classNameBlock('wrapper')} role=\"status\" aria-hidden={waiting || loading ? 'false' : 'true'}>\n {buildIndicator(indicator)}\n {showLabel && labelText}\n </div>\n );\n};\n\nCircularProgressIndicator.defaultProps = {\n size: 'm',\n showLabel: false,\n showTooltip: false,\n waiting: false,\n loading: false,\n};\n\nconst circularProgressIndicatorProps = {\n size: PropTypes.oneOf(['xs', 's', 'm', 'l', 'xl', 'xxl', 'xxxl'])\n .description('Defines the size of the indicator')\n .defaultValue('m'),\n showLabel: PropTypes.bool\n .description('Wheter the indicator displays its state on a label or not')\n .defaultValue(false),\n showTooltip: PropTypes.bool\n .description('Wheter the indicator displays its state on a tooltip or not')\n .defaultValue(false),\n waiting: PropTypes.bool\n .description('Defines the state of the indicator as Waiting and only displays the gray track')\n .defaultValue(false),\n loading: PropTypes.bool\n .description('Defines the state of the indicator as Loading and displays a blue spinner animation')\n .defaultValue(false),\n};\n\nCircularProgressIndicator.propTypes = circularProgressIndicatorProps;\nCircularProgressIndicator.displayName = 'CircularProgressIndicator';\nconst CircularProgressIndicatorWithSchema = describe(CircularProgressIndicator);\nCircularProgressIndicatorWithSchema.propTypes = circularProgressIndicatorProps;\n\nexport { CircularProgressIndicatorWithSchema };\nexport default CircularProgressIndicator;\n"],
5
+ "mappings": "AAAA,YAAY,WAAW;ACuFnB,cA6DI,YA7DJ;AAjFJ,SAAS,6BAA6B;AACtC,SAAS,UAAU,iBAAiB;AACpC,SAAS,iCAAiC;AAC1C,OAAO,eAAe;AAEtB,MAAM,EAAE,gBAAgB,iBAAiB,IAAI,0BAA0B,6BAA6B;AAEpG,MAAM,4BAA4B,CAAC,EAAE,MAAM,WAAW,aAAa,SAAS,QAAQ,MAAM;AACxF,wBAAsB,EAAE,eAAe,kCAAkC,SAAS,oBAAoB,CAAC;AAEvG,QA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,KAChB;AAEJ;AAEA,0BAA0B,eAAe;AAAA,EACvC,MAAM;AAAA,EACN,WAAW;AAAA,EACX,aAAa;AAAA,EACb,SAAS;AAAA,EACT,SAAS;AACX;AAEA,MAAM,iCAAiC;AAAA,EACrC,MAAM,UAAU,MAAM,CAAC,MAAM,KAAK,KAAK,KAAK,MAAM,OAAO,MAAM,CAAC,EAC7D,YAAY,mCAAmC,EAC/C,aAAa,GAAG;AAAA,EACnB,WAAW,UAAU,KAClB,YAAY,2DAA2D,EACvE,aAAa,KAAK;AAAA,EACrB,aAAa,UAAU,KACpB,YAAY,6DAA6D,EACzE,aAAa,KAAK;AAAA,EACrB,SAAS,UAAU,KAChB,YAAY,gFAAgF,EAC5F,aAAa,KAAK;AAAA,EACrB,SAAS,UAAU,KAChB,YAAY,qFAAqF,EACjG,aAAa,KAAK;AACvB;AAEA,0BAA0B,YAAY;AACtC,0BAA0B,cAAc;AACxC,MAAM,sCAAsC,SAAS,yBAAyB;AAC9E,oCAAoC,YAAY;AAGhD,IAAO,sCAAQ;",
6
+ "names": []
7
+ }
@@ -0,0 +1,24 @@
1
+ import * as React from "react";
2
+ import {
3
+ default as default2,
4
+ default as default3,
5
+ CircularProgressIndicatorWithSchema
6
+ } from "./DSCircularProgressIndicator.js";
7
+ import {
8
+ DSCircularIndeterminateIndicator,
9
+ DSCircularIndeterminateIndicatorWithSchema,
10
+ DSCircularIndeterminateIndicatorName,
11
+ DSCircularIndeterminateIndicatorSlots,
12
+ DSCircularIndeterminateIndicatorDataTestIds
13
+ } from "./v2/index.js";
14
+ export {
15
+ CircularProgressIndicatorWithSchema,
16
+ DSCircularIndeterminateIndicator,
17
+ DSCircularIndeterminateIndicatorDataTestIds,
18
+ DSCircularIndeterminateIndicatorName,
19
+ DSCircularIndeterminateIndicatorSlots,
20
+ DSCircularIndeterminateIndicatorWithSchema,
21
+ default3 as DSCircularProgressIndicator,
22
+ default2 as default
23
+ };
24
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../../../scripts/build/transpile/react-shim.js", "../../src/index.tsx"],
4
+ "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "/* eslint-disable import/named */\nexport {\n default,\n default as DSCircularProgressIndicator,\n CircularProgressIndicatorWithSchema,\n} from './DSCircularProgressIndicator.js';\nexport {\n DSCircularIndeterminateIndicator,\n DSCircularIndeterminateIndicatorWithSchema,\n DSCircularIndeterminateIndicatorName,\n DSCircularIndeterminateIndicatorSlots,\n DSCircularIndeterminateIndicatorDataTestIds,\n} from './v2/index.js';\n"],
5
+ "mappings": "AAAA,YAAY,WAAW;ACCvB;AAAA,EACE,WAAAA;AAAA,EACW,WAAXA;AAAA,EACA;AAAA,OACK;AACP;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACK;",
6
+ "names": ["default"]
7
+ }
@@ -0,0 +1,7 @@
1
+ {
2
+ "type": "module",
3
+ "sideEffects": [
4
+ "*.css",
5
+ "*.scss"
6
+ ]
7
+ }