@elliemae/ds-circular-progress-indicator 3.80.0-next.56 → 3.80.0-next.57

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 (56) hide show
  1. package/dist/cjs/DSCircularProgressIndicator.js +60 -103
  2. package/dist/cjs/DSCircularProgressIndicator.js.map +2 -2
  3. package/dist/cjs/constants/index.js +158 -0
  4. package/dist/cjs/constants/index.js.map +7 -0
  5. package/dist/cjs/index.js +9 -6
  6. package/dist/cjs/index.js.map +3 -3
  7. package/dist/cjs/react-desc-prop-types.js +53 -0
  8. package/dist/cjs/react-desc-prop-types.js.map +7 -0
  9. package/dist/cjs/typescript-testing/slot-props.js +43 -0
  10. package/dist/cjs/typescript-testing/slot-props.js.map +7 -0
  11. package/dist/cjs/typescript-testing/typescript-circular-indeterminate-indicator-valid.js +108 -0
  12. package/dist/cjs/typescript-testing/typescript-circular-indeterminate-indicator-valid.js.map +7 -0
  13. package/dist/cjs/typescript-testing/typescript-circular-progress-indicator-valid.js +74 -0
  14. package/dist/cjs/typescript-testing/typescript-circular-progress-indicator-valid.js.map +7 -0
  15. package/dist/cjs/v2/DSCircularIndeterminateIndicator.js +22 -7
  16. package/dist/cjs/v2/DSCircularIndeterminateIndicator.js.map +2 -2
  17. package/dist/cjs/v2/index.js +0 -2
  18. package/dist/cjs/v2/index.js.map +2 -2
  19. package/dist/cjs/v2/react-desc-prop-types.js +6 -1
  20. package/dist/cjs/v2/react-desc-prop-types.js.map +2 -2
  21. package/dist/cjs/v2/styled.js +30 -8
  22. package/dist/cjs/v2/styled.js.map +2 -2
  23. package/dist/esm/DSCircularProgressIndicator.js +71 -104
  24. package/dist/esm/DSCircularProgressIndicator.js.map +2 -2
  25. package/dist/esm/constants/index.js +128 -0
  26. package/dist/esm/constants/index.js.map +7 -0
  27. package/dist/esm/index.js +11 -5
  28. package/dist/esm/index.js.map +3 -3
  29. package/dist/esm/react-desc-prop-types.js +23 -0
  30. package/dist/esm/react-desc-prop-types.js.map +7 -0
  31. package/dist/esm/typescript-testing/slot-props.js +20 -0
  32. package/dist/esm/typescript-testing/slot-props.js.map +7 -0
  33. package/dist/esm/typescript-testing/typescript-circular-indeterminate-indicator-valid.js +85 -0
  34. package/dist/esm/typescript-testing/typescript-circular-indeterminate-indicator-valid.js.map +7 -0
  35. package/dist/esm/typescript-testing/typescript-circular-progress-indicator-valid.js +51 -0
  36. package/dist/esm/typescript-testing/typescript-circular-progress-indicator-valid.js.map +7 -0
  37. package/dist/esm/v2/DSCircularIndeterminateIndicator.js +25 -9
  38. package/dist/esm/v2/DSCircularIndeterminateIndicator.js.map +2 -2
  39. package/dist/esm/v2/index.js +0 -1
  40. package/dist/esm/v2/index.js.map +2 -2
  41. package/dist/esm/v2/react-desc-prop-types.js +12 -2
  42. package/dist/esm/v2/react-desc-prop-types.js.map +2 -2
  43. package/dist/esm/v2/styled.js +31 -9
  44. package/dist/esm/v2/styled.js.map +2 -2
  45. package/dist/types/DSCircularProgressIndicator.d.ts +6 -26
  46. package/dist/types/constants/index.d.ts +83 -0
  47. package/dist/types/index.d.ts +5 -4
  48. package/dist/types/react-desc-prop-types.d.ts +22 -0
  49. package/dist/types/v2/index.d.ts +1 -1
  50. package/dist/types/v2/react-desc-prop-types.d.ts +17 -6
  51. package/package.json +10 -8
  52. package/dist/cjs/v2/constants.js +0 -80
  53. package/dist/cjs/v2/constants.js.map +0 -7
  54. package/dist/esm/v2/constants.js +0 -50
  55. package/dist/esm/v2/constants.js.map +0 -7
  56. package/dist/types/v2/constants.d.ts +0 -39
@@ -0,0 +1,43 @@
1
+ "use strict";
2
+ var __create = Object.create;
3
+ var __defProp = Object.defineProperty;
4
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
+ var __getOwnPropNames = Object.getOwnPropertyNames;
6
+ var __getProtoOf = Object.getPrototypeOf;
7
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
8
+ var __copyProps = (to, from, except, desc) => {
9
+ if (from && typeof from === "object" || typeof from === "function") {
10
+ for (let key of __getOwnPropNames(from))
11
+ if (!__hasOwnProp.call(to, key) && key !== except)
12
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
13
+ }
14
+ return to;
15
+ };
16
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
17
+ // If the importer is in node compatibility mode or this is not an ESM
18
+ // file that has been converted to a CommonJS file using a Babel-
19
+ // compatible transform (i.e. "__esModule" has not been set), then set
20
+ // "default" to the CommonJS "module.exports" for node compatibility.
21
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
22
+ mod
23
+ ));
24
+ var React = __toESM(require("react"));
25
+ const SlotPropsAsObject = {
26
+ dsCircularindeterminateindicatorRoot: { "aria-label": "just a typescript test" },
27
+ dsCircularindeterminateindicatorSvg: { "aria-label": "just a typescript test" },
28
+ dsCircularindeterminateindicatorLabel: { "aria-label": "just a typescript test" },
29
+ dsCircularindeterminateindicatorCircle: { "aria-label": "just a typescript test" },
30
+ dsCircularindeterminateindicatorPath: { "aria-label": "just a typescript test" },
31
+ dsCircularindeterminateindicatorRect: { "aria-label": "just a typescript test" }
32
+ };
33
+ const SlotPropsAsFunctions = {
34
+ dsCircularindeterminateindicatorRoot: () => ({ "aria-label": "just a typescript test" }),
35
+ dsCircularindeterminateindicatorSvg: () => ({ "aria-label": "just a typescript test" }),
36
+ dsCircularindeterminateindicatorLabel: () => ({ "aria-label": "just a typescript test" }),
37
+ dsCircularindeterminateindicatorCircle: () => ({ "aria-label": "just a typescript test" }),
38
+ dsCircularindeterminateindicatorPath: () => ({ "aria-label": "just a typescript test" }),
39
+ dsCircularindeterminateindicatorRect: () => ({ "aria-label": "just a typescript test" })
40
+ };
41
+ const SlotFunctionsAreValidProps = SlotPropsAsFunctions;
42
+ const EnsureAllSlotsExistInSlotFunctionArguments = SlotPropsAsFunctions;
43
+ //# sourceMappingURL=slot-props.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../../../../scripts/build/transpile/react-shim.js", "../../../src/typescript-testing/slot-props.ts"],
4
+ "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "/* eslint-disable @typescript-eslint/no-unused-vars, no-unused-vars */\nimport { type TypescriptHelpersT } from '@elliemae/ds-typescript-helpers';\nimport type {\n DSCircularIndeterminateIndicatorName,\n CIRCULAR_INDETERMINATE_INDICATOR_SLOTS,\n} from '../constants/index.js';\nimport type { DSCircularIndeterminateIndicatorT } from '../v2/react-desc-prop-types.js';\n\nconst SlotPropsAsObject: Partial<DSCircularIndeterminateIndicatorT.Props> = {\n dsCircularindeterminateindicatorRoot: { 'aria-label': 'just a typescript test' },\n dsCircularindeterminateindicatorSvg: { 'aria-label': 'just a typescript test' },\n dsCircularindeterminateindicatorLabel: { 'aria-label': 'just a typescript test' },\n dsCircularindeterminateindicatorCircle: { 'aria-label': 'just a typescript test' },\n dsCircularindeterminateindicatorPath: { 'aria-label': 'just a typescript test' },\n dsCircularindeterminateindicatorRect: { 'aria-label': 'just a typescript test' },\n};\n\nconst SlotPropsAsFunctions: DSCircularIndeterminateIndicatorT.SlotFunctionArguments = {\n dsCircularindeterminateindicatorRoot: () => ({ 'aria-label': 'just a typescript test' }),\n dsCircularindeterminateindicatorSvg: () => ({ 'aria-label': 'just a typescript test' }),\n dsCircularindeterminateindicatorLabel: () => ({ 'aria-label': 'just a typescript test' }),\n dsCircularindeterminateindicatorCircle: () => ({ 'aria-label': 'just a typescript test' }),\n dsCircularindeterminateindicatorPath: () => ({ 'aria-label': 'just a typescript test' }),\n dsCircularindeterminateindicatorRect: () => ({ 'aria-label': 'just a typescript test' }),\n};\n\n// The function form must also be accepted by the public Props, slot by slot\nconst SlotFunctionsAreValidProps: Partial<DSCircularIndeterminateIndicatorT.Props> = SlotPropsAsFunctions;\n\n// Exhaustiveness check \u2014 fails compilation if a slot is missing from SlotFunctionArguments\nconst EnsureAllSlotsExistInSlotFunctionArguments: Required<\n TypescriptHelpersT.PropsForSlots<\n typeof DSCircularIndeterminateIndicatorName,\n typeof CIRCULAR_INDETERMINATE_INDICATOR_SLOTS\n >\n> = SlotPropsAsFunctions;\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;AAAA,YAAuB;ACQvB,MAAM,oBAAsE;AAAA,EAC1E,sCAAsC,EAAE,cAAc,yBAAyB;AAAA,EAC/E,qCAAqC,EAAE,cAAc,yBAAyB;AAAA,EAC9E,uCAAuC,EAAE,cAAc,yBAAyB;AAAA,EAChF,wCAAwC,EAAE,cAAc,yBAAyB;AAAA,EACjF,sCAAsC,EAAE,cAAc,yBAAyB;AAAA,EAC/E,sCAAsC,EAAE,cAAc,yBAAyB;AACjF;AAEA,MAAM,uBAAgF;AAAA,EACpF,sCAAsC,OAAO,EAAE,cAAc,yBAAyB;AAAA,EACtF,qCAAqC,OAAO,EAAE,cAAc,yBAAyB;AAAA,EACrF,uCAAuC,OAAO,EAAE,cAAc,yBAAyB;AAAA,EACvF,wCAAwC,OAAO,EAAE,cAAc,yBAAyB;AAAA,EACxF,sCAAsC,OAAO,EAAE,cAAc,yBAAyB;AAAA,EACtF,sCAAsC,OAAO,EAAE,cAAc,yBAAyB;AACxF;AAGA,MAAM,6BAA+E;AAGrF,MAAM,6CAKF;",
6
+ "names": []
7
+ }
@@ -0,0 +1,108 @@
1
+ "use strict";
2
+ var __create = Object.create;
3
+ var __defProp = Object.defineProperty;
4
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
+ var __getOwnPropNames = Object.getOwnPropertyNames;
6
+ var __getProtoOf = Object.getPrototypeOf;
7
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
8
+ var __copyProps = (to, from, except, desc) => {
9
+ if (from && typeof from === "object" || typeof from === "function") {
10
+ for (let key of __getOwnPropNames(from))
11
+ if (!__hasOwnProp.call(to, key) && key !== except)
12
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
13
+ }
14
+ return to;
15
+ };
16
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
17
+ // If the importer is in node compatibility mode or this is not an ESM
18
+ // file that has been converted to a CommonJS file using a Babel-
19
+ // compatible transform (i.e. "__esModule" has not been set), then set
20
+ // "default" to the CommonJS "module.exports" for node compatibility.
21
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
22
+ mod
23
+ ));
24
+ var React = __toESM(require("react"));
25
+ var import_jsx_runtime = require("react/jsx-runtime");
26
+ var import__ = require("../index.js");
27
+ const testRequiredProps = {};
28
+ const testOptionalProps = {
29
+ dsCircularindeterminateindicatorRoot: { "data-testid": "custom-root" },
30
+ dsCircularindeterminateindicatorLabel: () => ({ "aria-hidden": true })
31
+ };
32
+ const testPartialDefaults = {
33
+ text: "Loading...",
34
+ size: "l"
35
+ };
36
+ const testProps = {
37
+ ...testRequiredProps,
38
+ ...testOptionalProps,
39
+ ...testPartialDefaults
40
+ };
41
+ const testPropsAsSyntax = {
42
+ ...testRequiredProps,
43
+ ...testOptionalProps,
44
+ ...testPartialDefaults
45
+ };
46
+ const testCompleteDefaults = {
47
+ size: "m",
48
+ color: "dark",
49
+ text: "",
50
+ showText: true,
51
+ withTooltip: false,
52
+ inline: false,
53
+ tooltipStartPlacementPreference: "bottom"
54
+ };
55
+ const testInternalProps = {
56
+ ...testRequiredProps,
57
+ ...testOptionalProps,
58
+ ...testCompleteDefaults
59
+ };
60
+ const testInternalPropsAsSyntax = {
61
+ ...testRequiredProps,
62
+ ...testOptionalProps,
63
+ ...testCompleteDefaults
64
+ };
65
+ const testExplicitDefinition = {
66
+ size: "xs",
67
+ color: "light",
68
+ text: "Loading documents...",
69
+ showText: false,
70
+ withTooltip: true,
71
+ inline: true,
72
+ tooltipStartPlacementPreference: "top",
73
+ id: "documents-loader",
74
+ "aria-label": "Loading documents",
75
+ mt: "xs"
76
+ };
77
+ const testInferedTypeCompatibility = {
78
+ size: "xl",
79
+ color: "dark",
80
+ text: "Loading...",
81
+ withTooltip: false
82
+ };
83
+ const testDefinitionAsConst = {
84
+ size: "s",
85
+ color: "light",
86
+ text: "Loading...",
87
+ inline: true
88
+ };
89
+ const ExampleUsageComponent = () => /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [
90
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__.DSCircularIndeterminateIndicator, { ...testExplicitDefinition }),
91
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__.DSCircularIndeterminateIndicator, { ...testInferedTypeCompatibility }),
92
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__.DSCircularIndeterminateIndicator, { ...testDefinitionAsConst }),
93
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
94
+ import__.DSCircularIndeterminateIndicator,
95
+ {
96
+ size: "xxl",
97
+ color: "dark",
98
+ text: "Loading...",
99
+ showText: true,
100
+ withTooltip: false,
101
+ inline: false,
102
+ tooltipStartPlacementPreference: "bottom",
103
+ dsCircularindeterminateindicatorSvg: { "data-custom": "svg" },
104
+ dsCircularindeterminateindicatorPath: () => ({ "data-custom": "path" })
105
+ }
106
+ )
107
+ ] });
108
+ //# sourceMappingURL=typescript-circular-indeterminate-indicator-valid.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../../../../scripts/build/transpile/react-shim.js", "../../../src/typescript-testing/typescript-circular-indeterminate-indicator-valid.tsx"],
4
+ "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "/* eslint-disable @typescript-eslint/no-unused-vars, no-unused-vars */\nimport React from 'react';\nimport { DSCircularIndeterminateIndicator } from '../index.js';\nimport type { DSCircularIndeterminateIndicatorT } from '../index.js';\n\n// test we expose the namespace and the namespace follows our deliverable conventions\ntype ComponentPropsForApp = DSCircularIndeterminateIndicatorT.Props;\ntype ComponentPropsInternals = DSCircularIndeterminateIndicatorT.InternalProps;\ntype ComponentPropsDefaultProps = DSCircularIndeterminateIndicatorT.DefaultProps;\ntype ComponentPropsOptionalProps = DSCircularIndeterminateIndicatorT.OptionalProps;\ntype ComponentPropsRequiredProps = DSCircularIndeterminateIndicatorT.RequiredProps;\n\nconst testRequiredProps: ComponentPropsRequiredProps = {};\n\nconst testOptionalProps: ComponentPropsOptionalProps = {\n dsCircularindeterminateindicatorRoot: { 'data-testid': 'custom-root' },\n dsCircularindeterminateindicatorLabel: () => ({ 'aria-hidden': true }),\n};\n\n// difference Props and InternalProps is that InternalProps has all the default props filled in\n// Props allows for partial defaults\nconst testPartialDefaults: Partial<ComponentPropsDefaultProps> = {\n text: 'Loading...',\n size: 'l',\n};\n\nconst testProps: ComponentPropsForApp = {\n ...testRequiredProps,\n ...testOptionalProps,\n ...testPartialDefaults,\n};\n\nconst testPropsAsSyntax = {\n ...testRequiredProps,\n ...testOptionalProps,\n ...testPartialDefaults,\n} as ComponentPropsForApp;\n\n// InternalProps requires all defaults to be filled in\nconst testCompleteDefaults: Required<ComponentPropsDefaultProps> = {\n size: 'm',\n color: 'dark',\n text: '',\n showText: true,\n withTooltip: false,\n inline: false,\n tooltipStartPlacementPreference: 'bottom',\n};\n\nconst testInternalProps: ComponentPropsInternals = {\n ...testRequiredProps,\n ...testOptionalProps,\n ...testCompleteDefaults,\n};\n\nconst testInternalPropsAsSyntax = {\n ...testRequiredProps,\n ...testOptionalProps,\n ...testCompleteDefaults,\n} as ComponentPropsInternals;\n\n// using the explicit type definition, if there is an error, it will be marked on the key that is wrong\nconst testExplicitDefinition: ComponentPropsForApp = {\n size: 'xs',\n color: 'light',\n text: 'Loading documents...',\n showText: false,\n withTooltip: true,\n inline: true,\n tooltipStartPlacementPreference: 'top',\n id: 'documents-loader',\n 'aria-label': 'Loading documents',\n mt: 'xs',\n};\n\n// using the \"as\" syntax, if there is an error, it will be marking the whole object as wrong because it is not compatible with the type\nconst testInferedTypeCompatibility = {\n size: 'xl',\n color: 'dark',\n text: 'Loading...',\n withTooltip: false,\n} as ComponentPropsForApp;\n\nconst testDefinitionAsConst = {\n size: 's',\n color: 'light',\n text: 'Loading...',\n inline: true,\n} as const;\n\nconst ExampleUsageComponent = () => (\n <>\n {/* works with explicitly casted props, all syntaxes */}\n <DSCircularIndeterminateIndicator {...testExplicitDefinition} />\n <DSCircularIndeterminateIndicator {...testInferedTypeCompatibility} />\n <DSCircularIndeterminateIndicator {...testDefinitionAsConst} />\n {/* works with inline values */}\n <DSCircularIndeterminateIndicator\n size=\"xxl\"\n color=\"dark\"\n text=\"Loading...\"\n showText\n withTooltip={false}\n inline={false}\n tooltipStartPlacementPreference=\"bottom\"\n dsCircularindeterminateindicatorSvg={{ 'data-custom': 'svg' }}\n dsCircularindeterminateindicatorPath={() => ({ 'data-custom': 'path' })}\n />\n </>\n);\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;AAAA,YAAuB;AC2FrB;AAzFF,eAAiD;AAUjD,MAAM,oBAAiD,CAAC;AAExD,MAAM,oBAAiD;AAAA,EACrD,sCAAsC,EAAE,eAAe,cAAc;AAAA,EACrE,uCAAuC,OAAO,EAAE,eAAe,KAAK;AACtE;AAIA,MAAM,sBAA2D;AAAA,EAC/D,MAAM;AAAA,EACN,MAAM;AACR;AAEA,MAAM,YAAkC;AAAA,EACtC,GAAG;AAAA,EACH,GAAG;AAAA,EACH,GAAG;AACL;AAEA,MAAM,oBAAoB;AAAA,EACxB,GAAG;AAAA,EACH,GAAG;AAAA,EACH,GAAG;AACL;AAGA,MAAM,uBAA6D;AAAA,EACjE,MAAM;AAAA,EACN,OAAO;AAAA,EACP,MAAM;AAAA,EACN,UAAU;AAAA,EACV,aAAa;AAAA,EACb,QAAQ;AAAA,EACR,iCAAiC;AACnC;AAEA,MAAM,oBAA6C;AAAA,EACjD,GAAG;AAAA,EACH,GAAG;AAAA,EACH,GAAG;AACL;AAEA,MAAM,4BAA4B;AAAA,EAChC,GAAG;AAAA,EACH,GAAG;AAAA,EACH,GAAG;AACL;AAGA,MAAM,yBAA+C;AAAA,EACnD,MAAM;AAAA,EACN,OAAO;AAAA,EACP,MAAM;AAAA,EACN,UAAU;AAAA,EACV,aAAa;AAAA,EACb,QAAQ;AAAA,EACR,iCAAiC;AAAA,EACjC,IAAI;AAAA,EACJ,cAAc;AAAA,EACd,IAAI;AACN;AAGA,MAAM,+BAA+B;AAAA,EACnC,MAAM;AAAA,EACN,OAAO;AAAA,EACP,MAAM;AAAA,EACN,aAAa;AACf;AAEA,MAAM,wBAAwB;AAAA,EAC5B,MAAM;AAAA,EACN,OAAO;AAAA,EACP,MAAM;AAAA,EACN,QAAQ;AACV;AAEA,MAAM,wBAAwB,MAC5B,4EAEE;AAAA,8CAAC,6CAAkC,GAAG,wBAAwB;AAAA,EAC9D,4CAAC,6CAAkC,GAAG,8BAA8B;AAAA,EACpE,4CAAC,6CAAkC,GAAG,uBAAuB;AAAA,EAE7D;AAAA,IAAC;AAAA;AAAA,MACC,MAAK;AAAA,MACL,OAAM;AAAA,MACN,MAAK;AAAA,MACL,UAAQ;AAAA,MACR,aAAa;AAAA,MACb,QAAQ;AAAA,MACR,iCAAgC;AAAA,MAChC,qCAAqC,EAAE,eAAe,MAAM;AAAA,MAC5D,sCAAsC,OAAO,EAAE,eAAe,OAAO;AAAA;AAAA,EACvE;AAAA,GACF;",
6
+ "names": []
7
+ }
@@ -0,0 +1,74 @@
1
+ "use strict";
2
+ var __create = Object.create;
3
+ var __defProp = Object.defineProperty;
4
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
+ var __getOwnPropNames = Object.getOwnPropertyNames;
6
+ var __getProtoOf = Object.getPrototypeOf;
7
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
8
+ var __copyProps = (to, from, except, desc) => {
9
+ if (from && typeof from === "object" || typeof from === "function") {
10
+ for (let key of __getOwnPropNames(from))
11
+ if (!__hasOwnProp.call(to, key) && key !== except)
12
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
13
+ }
14
+ return to;
15
+ };
16
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
17
+ // If the importer is in node compatibility mode or this is not an ESM
18
+ // file that has been converted to a CommonJS file using a Babel-
19
+ // compatible transform (i.e. "__esModule" has not been set), then set
20
+ // "default" to the CommonJS "module.exports" for node compatibility.
21
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
22
+ mod
23
+ ));
24
+ var React = __toESM(require("react"));
25
+ var import_jsx_runtime = require("react/jsx-runtime");
26
+ var import__ = require("../index.js");
27
+ const testRequiredProps = {};
28
+ const testOptionalProps = {};
29
+ const testPartialDefaults = {
30
+ loading: true,
31
+ showLabel: true
32
+ };
33
+ const testProps = {
34
+ ...testRequiredProps,
35
+ ...testOptionalProps,
36
+ ...testPartialDefaults
37
+ };
38
+ const testCompleteDefaults = {
39
+ size: "m",
40
+ showLabel: false,
41
+ showTooltip: false,
42
+ waiting: false,
43
+ loading: false
44
+ };
45
+ const testInternalProps = {
46
+ ...testRequiredProps,
47
+ ...testOptionalProps,
48
+ ...testCompleteDefaults
49
+ };
50
+ const testExplicitDefinition = {
51
+ size: "xxxl",
52
+ showLabel: true,
53
+ showTooltip: true,
54
+ waiting: false,
55
+ loading: true
56
+ };
57
+ const testUppercaseSize = { size: "XL", loading: true };
58
+ const testInferedTypeCompatibility = {
59
+ size: "xs",
60
+ waiting: true
61
+ };
62
+ const testDefinitionAsConst = {
63
+ size: "s",
64
+ loading: true
65
+ };
66
+ const ExampleUsageComponent = () => /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [
67
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__.DSCircularProgressIndicator, {}),
68
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__.DSCircularProgressIndicator, { ...testExplicitDefinition }),
69
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__.DSCircularProgressIndicator, { ...testUppercaseSize }),
70
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__.DSCircularProgressIndicator, { ...testInferedTypeCompatibility }),
71
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__.DSCircularProgressIndicator, { ...testDefinitionAsConst }),
72
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__.DSCircularProgressIndicator, { size: "l", loading: true, showLabel: true, showTooltip: false, waiting: false })
73
+ ] });
74
+ //# sourceMappingURL=typescript-circular-progress-indicator-valid.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../../../../scripts/build/transpile/react-shim.js", "../../../src/typescript-testing/typescript-circular-progress-indicator-valid.tsx"],
4
+ "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "/* eslint-disable @typescript-eslint/no-unused-vars, no-unused-vars */\nimport React from 'react';\nimport { DSCircularProgressIndicator } from '../index.js';\nimport type { DSCircularProgressIndicatorT } from '../index.js';\n\n// Legacy component, deprecated in favour of DSCircularIndeterminateIndicator: it only reads these five props.\ntype ComponentPropsForApp = DSCircularProgressIndicatorT.Props;\ntype ComponentPropsInternals = DSCircularProgressIndicatorT.InternalProps;\ntype ComponentPropsDefaultProps = DSCircularProgressIndicatorT.DefaultProps;\ntype ComponentPropsOptionalProps = DSCircularProgressIndicatorT.OptionalProps;\ntype ComponentPropsRequiredProps = DSCircularProgressIndicatorT.RequiredProps;\n\nconst testRequiredProps: ComponentPropsRequiredProps = {};\n\nconst testOptionalProps: ComponentPropsOptionalProps = {};\n\nconst testPartialDefaults: Partial<ComponentPropsDefaultProps> = {\n loading: true,\n showLabel: true,\n};\n\nconst testProps: ComponentPropsForApp = {\n ...testRequiredProps,\n ...testOptionalProps,\n ...testPartialDefaults,\n};\n\nconst testCompleteDefaults: Required<ComponentPropsDefaultProps> = {\n size: 'm',\n showLabel: false,\n showTooltip: false,\n waiting: false,\n loading: false,\n};\n\nconst testInternalProps: ComponentPropsInternals = {\n ...testRequiredProps,\n ...testOptionalProps,\n ...testCompleteDefaults,\n};\n\nconst testExplicitDefinition: ComponentPropsForApp = {\n size: 'xxxl',\n showLabel: true,\n showTooltip: true,\n waiting: false,\n loading: true,\n};\n\n// the size has always been matched case-insensitively\nconst testUppercaseSize: ComponentPropsForApp = { size: 'XL', loading: true };\n\nconst testInferedTypeCompatibility = {\n size: 'xs',\n waiting: true,\n} as ComponentPropsForApp;\n\nconst testDefinitionAsConst = {\n size: 's',\n loading: true,\n} as const;\n\nconst ExampleUsageComponent = () => (\n <>\n <DSCircularProgressIndicator />\n <DSCircularProgressIndicator {...testExplicitDefinition} />\n <DSCircularProgressIndicator {...testUppercaseSize} />\n <DSCircularProgressIndicator {...testInferedTypeCompatibility} />\n <DSCircularProgressIndicator {...testDefinitionAsConst} />\n <DSCircularProgressIndicator size=\"l\" loading showLabel showTooltip={false} waiting={false} />\n </>\n);\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;AAAA,YAAuB;AC+DrB;AA7DF,eAA4C;AAU5C,MAAM,oBAAiD,CAAC;AAExD,MAAM,oBAAiD,CAAC;AAExD,MAAM,sBAA2D;AAAA,EAC/D,SAAS;AAAA,EACT,WAAW;AACb;AAEA,MAAM,YAAkC;AAAA,EACtC,GAAG;AAAA,EACH,GAAG;AAAA,EACH,GAAG;AACL;AAEA,MAAM,uBAA6D;AAAA,EACjE,MAAM;AAAA,EACN,WAAW;AAAA,EACX,aAAa;AAAA,EACb,SAAS;AAAA,EACT,SAAS;AACX;AAEA,MAAM,oBAA6C;AAAA,EACjD,GAAG;AAAA,EACH,GAAG;AAAA,EACH,GAAG;AACL;AAEA,MAAM,yBAA+C;AAAA,EACnD,MAAM;AAAA,EACN,WAAW;AAAA,EACX,aAAa;AAAA,EACb,SAAS;AAAA,EACT,SAAS;AACX;AAGA,MAAM,oBAA0C,EAAE,MAAM,MAAM,SAAS,KAAK;AAE5E,MAAM,+BAA+B;AAAA,EACnC,MAAM;AAAA,EACN,SAAS;AACX;AAEA,MAAM,wBAAwB;AAAA,EAC5B,MAAM;AAAA,EACN,SAAS;AACX;AAEA,MAAM,wBAAwB,MAC5B,4EACE;AAAA,8CAAC,wCAA4B;AAAA,EAC7B,4CAAC,wCAA6B,GAAG,wBAAwB;AAAA,EACzD,4CAAC,wCAA6B,GAAG,mBAAmB;AAAA,EACpD,4CAAC,wCAA6B,GAAG,8BAA8B;AAAA,EAC/D,4CAAC,wCAA6B,GAAG,uBAAuB;AAAA,EACxD,4CAAC,wCAA4B,MAAK,KAAI,SAAO,MAAC,WAAS,MAAC,aAAa,OAAO,SAAS,OAAO;AAAA,GAC9F;",
6
+ "names": []
7
+ }
@@ -36,10 +36,11 @@ var React = __toESM(require("react"));
36
36
  var import_jsx_runtime = require("react/jsx-runtime");
37
37
  var import_react = require("react");
38
38
  var import_ds_tooltip_v3 = require("@elliemae/ds-tooltip-v3");
39
+ var import_ds_typography = require("@elliemae/ds-typography");
39
40
  var import_ds_props_helpers = require("@elliemae/ds-props-helpers");
40
41
  var import_uid = require("uid");
41
42
  var import_react_desc_prop_types = require("./react-desc-prop-types.js");
42
- var import_constants = require("./constants.js");
43
+ var import_constants = require("../constants/index.js");
43
44
  var import_styled = require("./styled.js");
44
45
  const EmptyComp = (props) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_jsx_runtime.Fragment, { children: props.children });
45
46
  EmptyComp.displayName = "EmptyComp";
@@ -64,7 +65,7 @@ const DSCircularIndeterminateIndicator = (props) => {
64
65
  justifyContent: "center",
65
66
  role: "status",
66
67
  "aria-label": text || "Loading...",
67
- "data-testid": "ds-circular-indeterminate-indicator-root",
68
+ "data-testid": import_constants.CIRCULAR_INDETERMINATE_INDICATOR_DATA_TESTID.ROOT,
68
69
  ...globalAttributes,
69
70
  ...xstyledAttributes,
70
71
  getOwnerProps,
@@ -80,7 +81,17 @@ const DSCircularIndeterminateIndicator = (props) => {
80
81
  "aria-hidden": "true",
81
82
  children: [
82
83
  /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("defs", { children: [
83
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)("clipPath", { id: `not-gradient-clip-${uniqueId}`, children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_styled.StyledRect, { x: "0%", y: "0%", width: "52%", height: "100%" }) }),
84
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("clipPath", { id: `not-gradient-clip-${uniqueId}`, children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
85
+ import_styled.StyledRect,
86
+ {
87
+ x: "0%",
88
+ y: "0%",
89
+ width: "52%",
90
+ height: "100%",
91
+ getOwnerProps,
92
+ getOwnerPropsArguments
93
+ }
94
+ ) }),
84
95
  /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("linearGradient", { id: `gradient-color-${uniqueId}`, x1: "0%", x2: "0%", y1: "0%", y2: "100%", children: [
85
96
  /* @__PURE__ */ (0, import_jsx_runtime.jsx)("stop", { offset: "10%", stopColor: `${import_constants.colorToHex[color]}00` }),
86
97
  /* @__PURE__ */ (0, import_jsx_runtime.jsx)("stop", { offset: "90%", stopColor: `${import_constants.colorToHex[color]}FF` })
@@ -95,7 +106,9 @@ const DSCircularIndeterminateIndicator = (props) => {
95
106
  strokeWidth: import_constants.sizeToWeight[size],
96
107
  stroke: import_constants.colorToHex[color],
97
108
  strokeLinecap: "round",
98
- clipPath: `url(#not-gradient-clip-${uniqueId})`
109
+ clipPath: `url(#not-gradient-clip-${uniqueId})`,
110
+ getOwnerProps,
111
+ getOwnerPropsArguments
99
112
  }
100
113
  ),
101
114
  /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
@@ -108,7 +121,9 @@ const DSCircularIndeterminateIndicator = (props) => {
108
121
  fill: "transparent",
109
122
  stroke: `url(#gradient-color-${uniqueId})`,
110
123
  strokeLinecap: "round",
111
- r: circleRadius
124
+ r: circleRadius,
125
+ getOwnerProps,
126
+ getOwnerPropsArguments
112
127
  }
113
128
  )
114
129
  ]
@@ -120,7 +135,7 @@ const DSCircularIndeterminateIndicator = (props) => {
120
135
  style: { color: color === "light" ? "#FFFFFF" : "#353C46", fontSize: import_constants.sizeToTextSize[size] },
121
136
  getOwnerProps,
122
137
  getOwnerPropsArguments,
123
- children: text
138
+ children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ds_typography.DSTypography, { component: "span", variant: "b2", children: text })
124
139
  }
125
140
  )
126
141
  ] })
@@ -129,5 +144,5 @@ const DSCircularIndeterminateIndicator = (props) => {
129
144
  };
130
145
  DSCircularIndeterminateIndicator.displayName = import_constants.DSCircularIndeterminateIndicatorName;
131
146
  const DSCircularIndeterminateIndicatorWithSchema = (0, import_ds_props_helpers.describe)(DSCircularIndeterminateIndicator);
132
- DSCircularIndeterminateIndicatorWithSchema.propTypes = import_react_desc_prop_types.CircularIndeterminateIndicatorPropTypes;
147
+ DSCircularIndeterminateIndicatorWithSchema.propTypes = import_react_desc_prop_types.CircularIndeterminateIndicatorPropTypesSchema;
133
148
  //# sourceMappingURL=DSCircularIndeterminateIndicator.js.map
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../src/v2/DSCircularIndeterminateIndicator.tsx", "../../../../../../scripts/build/transpile/react-shim.js"],
4
- "sourcesContent": ["/* eslint-disable @typescript-eslint/naming-convention */\nimport React, { useMemo, useCallback } from 'react';\nimport { DSTooltipV3 } from '@elliemae/ds-tooltip-v3';\nimport type { DSGridT } from '@elliemae/ds-grid';\n\nimport {\n describe,\n useGetGlobalAttributes,\n useMemoMergePropsWithDefault,\n useGetXstyledProps,\n} from '@elliemae/ds-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}</>;\nEmptyComp.displayName = 'EmptyComp';\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 = useGetGlobalAttributes<\n DSCircularIndeterminateIndicatorT.InternalProps,\n HTMLDivElement,\n DSGridT.Props\n >(propsWithDefault);\n const xstyledAttributes = useGetXstyledProps(propsWithDefault);\n\n const { size, color, text, showText, withTooltip, inline, 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 inline={inline}\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.displayName = DSCircularIndeterminateIndicatorName;\nexport const DSCircularIndeterminateIndicatorWithSchema = describe(DSCircularIndeterminateIndicator);\nDSCircularIndeterminateIndicatorWithSchema.propTypes = CircularIndeterminateIndicatorPropTypes;\n", "import * as React from 'react';\nexport { React };\n"],
5
- "mappings": ";;;;;;;;;;;;;;;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c;AACxC,MAAM,iDAA6C,kCAAS,gCAAgC;AACnG,2CAA2C,YAAY;",
4
+ "sourcesContent": ["/* eslint-disable @typescript-eslint/naming-convention */\nimport React, { useMemo, useCallback } from 'react';\nimport { DSTooltipV3 } from '@elliemae/ds-tooltip-v3';\nimport { DSTypography } from '@elliemae/ds-typography';\nimport type { DSGridT } from '@elliemae/ds-grid';\n\nimport {\n describe,\n useGetGlobalAttributes,\n useMemoMergePropsWithDefault,\n useGetXstyledProps,\n} from '@elliemae/ds-props-helpers';\nimport { uid } from 'uid';\nimport type { DSCircularIndeterminateIndicatorT } from './react-desc-prop-types.js';\nimport { CircularIndeterminateIndicatorPropTypesSchema, defaultProps } from './react-desc-prop-types.js';\nimport {\n colorToHex,\n sizeToPx,\n sizeToTextSize,\n sizeToWeight,\n DSCircularIndeterminateIndicatorName,\n CIRCULAR_INDETERMINATE_INDICATOR_DATA_TESTID,\n} from '../constants/index.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}</>;\nEmptyComp.displayName = 'EmptyComp';\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 = useGetGlobalAttributes<\n DSCircularIndeterminateIndicatorT.InternalProps,\n HTMLDivElement,\n DSGridT.Props\n >(propsWithDefault);\n const xstyledAttributes = useGetXstyledProps(propsWithDefault);\n\n const { size, color, text, showText, withTooltip, inline, 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 inline={inline}\n gutter=\"xs\"\n justifyContent=\"center\"\n role=\"status\"\n aria-label={text || 'Loading...'}\n // legacy data-testid \u2014 preserved for QA/consumer compatibility, breaking change if removed\n data-testid={CIRCULAR_INDETERMINATE_INDICATOR_DATA_TESTID.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\n x=\"0%\"\n y=\"0%\"\n width=\"52%\"\n height=\"100%\"\n getOwnerProps={getOwnerProps}\n getOwnerPropsArguments={getOwnerPropsArguments}\n />\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 getOwnerProps={getOwnerProps}\n getOwnerPropsArguments={getOwnerPropsArguments}\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 getOwnerProps={getOwnerProps}\n getOwnerPropsArguments={getOwnerPropsArguments}\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 <DSTypography component=\"span\" variant=\"b2\">\n {text}\n </DSTypography>\n </StyledLabel>\n )}\n </Wrapper>\n </StyledContainer>\n );\n};\n\nDSCircularIndeterminateIndicator.displayName = DSCircularIndeterminateIndicatorName;\nexport const DSCircularIndeterminateIndicatorWithSchema = describe(DSCircularIndeterminateIndicator);\nDSCircularIndeterminateIndicatorWithSchema.propTypes = CircularIndeterminateIndicatorPropTypesSchema;\n", "import * as React from 'react';\nexport { React };\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADyB0B;AAxBjD,mBAA4C;AAC5C,2BAA4B;AAC5B,2BAA6B;AAG7B,8BAKO;AACP,iBAAoB;AAEpB,mCAA4E;AAC5E,uBAOO;AACP,oBAA8F;AAE9F,MAAM,YAAgC,CAAC,UAAU,2EAAG,gBAAM,UAAS;AACnE,UAAU,cAAc;AAEjB,MAAM,mCAAiG,CAC5G,UACG;AACH,QAAM,uBAAmB;AAAA,IACvB;AAAA,IACA;AAAA,EACF;AACA,QAAM,uBAAmB,gDAIvB,gBAAgB;AAClB,QAAM,wBAAoB,4CAAmB,gBAAgB;AAE7D,QAAM,E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C,UAAK,QAAO,OAAM,WAAW,GAAG,4BAAW,KAAK,CAAC,MAAM;AAAA,mBAC1D;AAAA,iBACF;AAAA,cACA;AAAA,gBAAC;AAAA;AAAA,kBACC,IAAG;AAAA,kBACH,IAAG;AAAA,kBACH,GAAG;AAAA,kBACH,aAAa,8BAAa,IAAI;AAAA,kBAC9B,QAAQ,4BAAW,KAAK;AAAA,kBACxB,eAAc;AAAA,kBACd,UAAU,0BAA0B,QAAQ;AAAA,kBAC5C;AAAA,kBACA;AAAA;AAAA,cACF;AAAA,cAWA;AAAA,gBAAC;AAAA;AAAA,kBACC,GAAG,KAAK,0BAAS,IAAI,IAAI,CAAC,IAAI,0BAAS,IAAI,IAAI,CAAC;AAAA,oBACxC,YAAY;AAAA,oBACZ,YAAY,KAAK,YAAY,YAAY,YAAY,KAAK,YAAY;AAAA,kBAC9E,aAAa,8BAAa,IAAI;AAAA,kBAC9B,MAAK;AAAA,kBACL,QAAQ,uBAAuB,QAAQ;AAAA,kBACvC,eAAc;AAAA,kBACd,GAAG;AAAA,kBACH;AAAA,kBACA;AAAA;AAAA,cACF;AAAA;AAAA;AAAA,QACF;AAAA,QACC,SAAS,MAAM,YACd;AAAA,UAAC;AAAA;AAAA,YACC,OAAO,EAAE,OAAO,UAAU,UAAU,YAAY,WAAW,UAAU,gCAAe,IAAI,EAAE;AAAA,YAC1F;AAAA,YACA;AAAA,YAEA,sDAAC,qCAAa,WAAU,QAAO,SAAQ,MACpC,gBACH;AAAA;AAAA,QACF;AAAA,SAEJ;AAAA;AAAA,EACF;AAEJ;AAEA,iCAAiC,cAAc;AACxC,MAAM,iDAA6C,kCAAS,gCAAgC;AACnG,2CAA2C,YAAY;",
6
6
  "names": []
7
7
  }
@@ -17,7 +17,6 @@ var __copyProps = (to, from, except, desc) => {
17
17
  }
18
18
  return to;
19
19
  };
20
- var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
21
20
  var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
22
21
  // If the importer is in node compatibility mode or this is not an ESM
23
22
  // file that has been converted to a CommonJS file using a Babel-
@@ -35,5 +34,4 @@ __export(v2_exports, {
35
34
  module.exports = __toCommonJS(v2_exports);
36
35
  var React = __toESM(require("react"));
37
36
  var import_DSCircularIndeterminateIndicator = require("./DSCircularIndeterminateIndicator.js");
38
- __reExport(v2_exports, require("./constants.js"), module.exports);
39
37
  //# sourceMappingURL=index.js.map
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
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;",
4
+ "sourcesContent": ["export {\n DSCircularIndeterminateIndicator,\n DSCircularIndeterminateIndicatorWithSchema,\n} from './DSCircularIndeterminateIndicator.js';\nexport { type DSCircularIndeterminateIndicatorT } from './react-desc-prop-types.js';\n", "import * as React from 'react';\nexport { React };\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADAvB,8CAGO;",
6
6
  "names": []
7
7
  }
@@ -29,11 +29,13 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
29
29
  var react_desc_prop_types_exports = {};
30
30
  __export(react_desc_prop_types_exports, {
31
31
  CircularIndeterminateIndicatorPropTypes: () => CircularIndeterminateIndicatorPropTypes,
32
+ CircularIndeterminateIndicatorPropTypesSchema: () => CircularIndeterminateIndicatorPropTypesSchema,
32
33
  defaultProps: () => defaultProps
33
34
  });
34
35
  module.exports = __toCommonJS(react_desc_prop_types_exports);
35
36
  var React = __toESM(require("react"));
36
37
  var import_ds_props_helpers = require("@elliemae/ds-props-helpers");
38
+ var import_constants = require("../constants/index.js");
37
39
  const defaultProps = {
38
40
  size: "m",
39
41
  color: "dark",
@@ -44,7 +46,9 @@ const defaultProps = {
44
46
  tooltipStartPlacementPreference: "bottom"
45
47
  };
46
48
  const CircularIndeterminateIndicatorPropTypes = {
49
+ ...(0, import_ds_props_helpers.getPropsPerSlotPropTypes)(import_constants.DSCircularIndeterminateIndicatorName, import_constants.CIRCULAR_INDETERMINATE_INDICATOR_SLOTS),
47
50
  ...import_ds_props_helpers.globalAttributesPropTypes,
51
+ ...import_ds_props_helpers.xstyledPropTypes,
48
52
  size: import_ds_props_helpers.PropTypes.oneOf(["xs", "s", "m", "l", "xl", "xxl"]).description("Size of the indicator").defaultValue("m"),
49
53
  color: import_ds_props_helpers.PropTypes.oneOf(["light", "dark"]).description("Color mode for the indicator").defaultValue("dark"),
50
54
  text: import_ds_props_helpers.PropTypes.string.description("Optional text to show under the indicator").defaultValue(""),
@@ -64,6 +68,7 @@ const CircularIndeterminateIndicatorPropTypes = {
64
68
  "left-end",
65
69
  "left",
66
70
  "left-start"
67
- ]).description("start placement preference for the tooltip").defaultValue("center")
71
+ ]).description("start placement preference for the tooltip").defaultValue("bottom")
68
72
  };
73
+ const CircularIndeterminateIndicatorPropTypesSchema = CircularIndeterminateIndicatorPropTypes;
69
74
  //# sourceMappingURL=react-desc-prop-types.js.map
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../src/v2/react-desc-prop-types.tsx", "../../../../../../scripts/build/transpile/react-shim.js"],
4
- "sourcesContent": ["/* eslint-disable max-lines */\nimport type { GlobalAttributesT, XstyledProps, ValidationMap } from '@elliemae/ds-props-helpers';\nimport { PropTypes, globalAttributesPropTypes } from '@elliemae/ds-props-helpers';\nimport { type DSTooltipV3T } from '@elliemae/ds-tooltip-v3';\n\nexport const defaultProps: DSCircularIndeterminateIndicatorT.DefaultProps = {\n size: 'm',\n color: 'dark',\n text: '',\n showText: true,\n withTooltip: false,\n inline: 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 inline: boolean;\n tooltipStartPlacementPreference: DSTooltipV3T.Placement;\n }\n export interface OptionalProps {}\n export interface RequiredProps {}\n\n export interface Props\n extends\n Partial<DefaultProps>,\n OptionalProps,\n Omit<GlobalAttributesT<HTMLButtonElement>, keyof DefaultProps>,\n XstyledProps,\n RequiredProps {}\n\n export interface InternalProps\n extends\n DefaultProps,\n OptionalProps,\n Omit<GlobalAttributesT<HTMLButtonElement>, keyof DefaultProps>,\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 inline: PropTypes.bool.description('Whether to show the indicator inline or not').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 ValidationMap<unknown>;\n", "import * as React from 'react';\nexport { React };\n"],
5
- "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADEvB,8BAAqD;AAG9C,MAAM,eAA+D;AAAA,EAC1E,MAAM;AAAA,EACN,OAAO;AAAA,EACP,MAAM;AAAA,EACN,UAAU;AAAA,EACV,aAAa;AAAA,EACb,QAAQ;AAAA,EACR,iCAAiC;AACnC;AAkCO,MAAM,0CAA0C;AAAA,EACrD,GAAG;AAAA,EACH,MAAM,kCAAU,MAAM,CAAC,MAAM,KAAK,KAAK,KAAK,MAAM,KAAK,CAAC,EAAE,YAAY,uBAAuB,EAAE,aAAa,GAAG;AAAA,EAC/G,OAAO,kCAAU,MAAM,CAAC,SAAS,MAAM,CAAC,EAAE,YAAY,8BAA8B,EAAE,aAAa,MAAM;AAAA,EACzG,MAAM,kCAAU,OAAO,YAAY,2CAA2C,EAAE,aAAa,EAAE;AAAA,EAC/F,UAAU,kCAAU,KAAK,YAAY,0CAA0C,EAAE,aAAa,IAAI;AAAA,EAClG,aAAa,kCAAU,KACpB,YAAY,oEAAoE,EAChF,aAAa,KAAK;AAAA,EACrB,QAAQ,kCAAU,KAAK,YAAY,6CAA6C,EAAE,aAAa,KAAK;AAAA,EACpG,iCAAiC,kCAAU,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;",
4
+ "sourcesContent": ["import type { DSPropTypesSchema, GlobalAttributesT, ValidationMap, XstyledProps } from '@elliemae/ds-props-helpers';\nimport {\n PropTypes,\n getPropsPerSlotPropTypes,\n globalAttributesPropTypes,\n xstyledPropTypes,\n} from '@elliemae/ds-props-helpers';\nimport { type TypescriptHelpersT } from '@elliemae/ds-typescript-helpers';\nimport { type DSTooltipV3T } from '@elliemae/ds-tooltip-v3';\nimport { DSCircularIndeterminateIndicatorName, CIRCULAR_INDETERMINATE_INDICATOR_SLOTS } from '../constants/index.js';\n\nexport declare namespace DSCircularIndeterminateIndicatorT {\n type TShirtSizes = 'xs' | 's' | 'm' | 'l' | 'xl' | 'xxl';\n type SupportedColors = 'light' | 'dark';\n\n export type SlotFunctionArguments = {\n dsCircularindeterminateindicatorRoot: () => object;\n dsCircularindeterminateindicatorSvg: () => object;\n dsCircularindeterminateindicatorLabel: () => object;\n dsCircularindeterminateindicatorCircle: () => object;\n dsCircularindeterminateindicatorPath: () => object;\n dsCircularindeterminateindicatorRect: () => object;\n };\n\n export interface DefaultProps {\n size: TShirtSizes;\n color: SupportedColors;\n text: string;\n showText: boolean;\n withTooltip: boolean;\n inline: boolean;\n tooltipStartPlacementPreference: DSTooltipV3T.Placement;\n }\n\n export interface OptionalProps extends TypescriptHelpersT.PropsForGlobalOnSlots<\n typeof DSCircularIndeterminateIndicatorName,\n typeof CIRCULAR_INDETERMINATE_INDICATOR_SLOTS\n > {}\n\n export interface RequiredProps {}\n\n // `HTMLButtonElement` predates this remediation (the root is a div): narrowing it would change the event handler\n // types consumers already compile against, so it stays \u2014 see KNOWN_INTENTIONAL_DEVIATIONS.md\n export interface Props\n extends\n Partial<DefaultProps>,\n OptionalProps,\n Omit<GlobalAttributesT<HTMLButtonElement>, keyof DefaultProps | keyof OptionalProps>,\n XstyledProps,\n RequiredProps {}\n\n export interface InternalProps\n extends\n DefaultProps,\n OptionalProps,\n Omit<GlobalAttributesT<HTMLButtonElement>, keyof DefaultProps | keyof OptionalProps>,\n XstyledProps,\n RequiredProps {}\n}\n\nexport const defaultProps: DSCircularIndeterminateIndicatorT.DefaultProps = {\n size: 'm',\n color: 'dark',\n text: '',\n showText: true,\n withTooltip: false,\n inline: false,\n tooltipStartPlacementPreference: 'bottom',\n};\n\nexport const CircularIndeterminateIndicatorPropTypes: DSPropTypesSchema<DSCircularIndeterminateIndicatorT.Props> = {\n ...getPropsPerSlotPropTypes(DSCircularIndeterminateIndicatorName, CIRCULAR_INDETERMINATE_INDICATOR_SLOTS),\n ...globalAttributesPropTypes,\n ...xstyledPropTypes,\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 inline: PropTypes.bool.description('Whether to show the indicator inline or not').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('bottom'),\n};\n\nexport const CircularIndeterminateIndicatorPropTypesSchema =\n CircularIndeterminateIndicatorPropTypes as unknown as ValidationMap<DSCircularIndeterminateIndicatorT.Props>;\n", "import * as React from 'react';\nexport { React };\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADCvB,8BAKO;AAGP,uBAA6F;AAmDtF,MAAM,eAA+D;AAAA,EAC1E,MAAM;AAAA,EACN,OAAO;AAAA,EACP,MAAM;AAAA,EACN,UAAU;AAAA,EACV,aAAa;AAAA,EACb,QAAQ;AAAA,EACR,iCAAiC;AACnC;AAEO,MAAM,0CAAsG;AAAA,EACjH,OAAG,kDAAyB,uDAAsC,uDAAsC;AAAA,EACxG,GAAG;AAAA,EACH,GAAG;AAAA,EACH,MAAM,kCAAU,MAAM,CAAC,MAAM,KAAK,KAAK,KAAK,MAAM,KAAK,CAAC,EAAE,YAAY,uBAAuB,EAAE,aAAa,GAAG;AAAA,EAC/G,OAAO,kCAAU,MAAM,CAAC,SAAS,MAAM,CAAC,EAAE,YAAY,8BAA8B,EAAE,aAAa,MAAM;AAAA,EACzG,MAAM,kCAAU,OAAO,YAAY,2CAA2C,EAAE,aAAa,EAAE;AAAA,EAC/F,UAAU,kCAAU,KAAK,YAAY,0CAA0C,EAAE,aAAa,IAAI;AAAA,EAClG,aAAa,kCAAU,KACpB,YAAY,oEAAoE,EAChF,aAAa,KAAK;AAAA,EACrB,QAAQ,kCAAU,KAAK,YAAY,6CAA6C,EAAE,aAAa,KAAK;AAAA,EACpG,iCAAiC,kCAAU,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;AAEO,MAAM,gDACX;",
6
6
  "names": []
7
7
  }
@@ -39,7 +39,7 @@ module.exports = __toCommonJS(styled_exports);
39
39
  var React = __toESM(require("react"));
40
40
  var import_ds_grid = require("@elliemae/ds-grid");
41
41
  var import_ds_system = require("@elliemae/ds-system");
42
- var import_constants = require("./constants.js");
42
+ var import_constants = require("../constants/index.js");
43
43
  const { PI } = Math;
44
44
  const getArcLength = (percentage, radius) => 2 * PI * radius / 100 * percentage;
45
45
  const svgRotateAnimation = import_ds_system.kfrm`
@@ -126,13 +126,13 @@ const dashAnimation = (r) => {
126
126
  };
127
127
  const StyledContainer = (0, import_ds_system.styled)(import_ds_grid.Grid, {
128
128
  name: import_constants.DSCircularIndeterminateIndicatorName,
129
- slot: import_constants.DSCircularIndeterminateIndicatorSlots.ROOT
129
+ slot: import_constants.CIRCULAR_INDETERMINATE_INDICATOR_SLOTS.ROOT
130
130
  })`
131
131
  ${({ inline, theme }) => !inline ? `z-index: ${theme.zIndex.loader}` : ``}
132
132
  `;
133
133
  const StyledSvg = (0, import_ds_system.styled)("svg", {
134
134
  name: import_constants.DSCircularIndeterminateIndicatorName,
135
- slot: import_constants.DSCircularIndeterminateIndicatorSlots.SVG
135
+ slot: import_constants.CIRCULAR_INDETERMINATE_INDICATOR_SLOTS.SVG
136
136
  })`
137
137
  display: block;
138
138
  margin: auto;
@@ -140,25 +140,47 @@ const StyledSvg = (0, import_ds_system.styled)("svg", {
140
140
  transform: rotate(-90deg);
141
141
  animation: ${svgRotateAnimation} 2.5s linear infinite;
142
142
  `;
143
- const StyledPath = import_ds_system.styled.path`
143
+ const StyledPath = (0, import_ds_system.styled)("path", {
144
+ name: import_constants.DSCircularIndeterminateIndicatorName,
145
+ slot: import_constants.CIRCULAR_INDETERMINATE_INDICATOR_SLOTS.PATH
146
+ })`
144
147
  transform-origin: center center;
145
148
  animation:
146
149
  ${rotateAnimation} 10s linear infinite,
147
150
  ${(props) => strokeTailAnimation(props.r)} 2.5s linear infinite;
148
151
  `;
149
- const StyledRect = import_ds_system.styled.rect`
152
+ const StyledRect = (0, import_ds_system.styled)("rect", {
153
+ name: import_constants.DSCircularIndeterminateIndicatorName,
154
+ slot: import_constants.CIRCULAR_INDETERMINATE_INDICATOR_SLOTS.RECT
155
+ })`
150
156
  transform-origin: center center;
151
157
  animation: ${rotateAnimation} 10s linear infinite;
152
158
  `;
153
- const StyledCircle = import_ds_system.styled.circle`
159
+ const StyledCircle = (0, import_ds_system.styled)("circle", {
160
+ name: import_constants.DSCircularIndeterminateIndicatorName,
161
+ slot: import_constants.CIRCULAR_INDETERMINATE_INDICATOR_SLOTS.CIRCLE
162
+ })`
154
163
  stroke-dashoffset: 0;
155
164
  fill: none;
156
165
  animation: ${(props) => dashAnimation(props.r)} 10s linear infinite;
157
166
  clip-path: ${(props) => props.clipPath};
158
167
  -webkit-clip-path: ${(props) => props.clipPath};
159
168
  `;
169
+ const inheritedTypography = import_ds_system.css`
170
+ font: inherit;
171
+ line-height: inherit;
172
+ color: inherit;
173
+ white-space: inherit;
174
+ overflow-wrap: inherit;
175
+ margin: 0;
176
+ padding: 0;
177
+ `;
160
178
  const StyledLabel = (0, import_ds_system.styled)("span", {
161
179
  name: import_constants.DSCircularIndeterminateIndicatorName,
162
- slot: import_constants.DSCircularIndeterminateIndicatorSlots.LABEL
163
- })``;
180
+ slot: import_constants.CIRCULAR_INDETERMINATE_INDICATOR_SLOTS.LABEL
181
+ })`
182
+ && > * {
183
+ ${inheritedTypography}
184
+ }
185
+ `;
164
186
  //# sourceMappingURL=styled.js.map
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
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-grid';\nimport { kfrm, styled } from '@elliemae/ds-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})<{ inline: boolean }>`\n ${({ inline, theme }) => (!inline ? `z-index: ${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,qBAAqB;AACrB,uBAA6B;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,CAAC,IAAI,aAAa,KAAK,CAAC,CAAC;AAC9D,QAAM,WAAW,GAAG,aAAa,IAAI,CAAC,CAAC,IAAI,aAAa,IAAI,CAAC,CAAC;AAE9D,SAAO;AAAA;AAAA,4BAEmB,QAAQ;AAAA;AAAA;AAAA,4BAGR,QAAQ;AAAA;AAAA;AAAA,4BAGR,QAAQ;AAAA;AAAA;AAGpC;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,CAAC,IAAI,aAAa,KAAK,CAAC,CAAC;AAC9D,QAAM,WAAW,GAAG,aAAa,IAAI,CAAC,CAAC,IAAI,aAAa,IAAI,CAAC,CAAC;AAE9D,SAAO;AAAA;AAAA,4B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;AAGzC,MAAM,kBAAc,yBAAO,QAAQ;AAAA,EACxC,MAAM;AAAA,EACN,MAAM,uDAAsC;AAC9C,CAAC;",
4
+ "sourcesContent": ["/* eslint-disable no-underscore-dangle */\nimport { Grid } from '@elliemae/ds-grid';\nimport { css, kfrm, styled } from '@elliemae/ds-system';\nimport { DSCircularIndeterminateIndicatorName, CIRCULAR_INDETERMINATE_INDICATOR_SLOTS } from '../constants/index.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: CIRCULAR_INDETERMINATE_INDICATOR_SLOTS.ROOT,\n})<{ inline: boolean }>`\n ${({ inline, theme }) => (!inline ? `z-index: ${theme.zIndex.loader}` : ``)}\n`;\n\nexport const StyledSvg = styled('svg', {\n name: DSCircularIndeterminateIndicatorName,\n slot: CIRCULAR_INDETERMINATE_INDICATOR_SLOTS.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', {\n name: DSCircularIndeterminateIndicatorName,\n slot: CIRCULAR_INDETERMINATE_INDICATOR_SLOTS.PATH,\n})<{ 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 name: DSCircularIndeterminateIndicatorName,\n slot: CIRCULAR_INDETERMINATE_INDICATOR_SLOTS.RECT,\n})`\n transform-origin: center center;\n animation: ${rotateAnimation} 10s linear infinite;\n`;\n\nexport const StyledCircle = styled('circle', {\n name: DSCircularIndeterminateIndicatorName,\n slot: CIRCULAR_INDETERMINATE_INDICATOR_SLOTS.CIRCLE,\n})<{ 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\n// ============================================================================================================\n// Typography (PUI-18946)\n// ============================================================================================================\n// The label text renders through DSTypography, nested inside the LABEL slot rather than being the slot: making\n// DSTypography the slot would let the nested-slot mechanism rewrite `data-dimsum-slot` to `dsTypographyRoot` and\n// demote ours to `data-dimsum-parent-slot`.\n//\n// No visual change: the label takes its font family, weight and style from where the indicator is placed, and its\n// size and color from the inline style the component sets on the slot. DSTypography's own metrics (the variant's\n// size, line-height, font-family, `white-space: pre-wrap`) would change that, so the child inherits everything from\n// the slot. `&& > *` gives 0-2-0, which beats DSTypography's single class whatever the injection order, and it targets\n// the child only, so the theme's `styleOverrides` for the slot (0-1-0) still reach the text.\n//\n// Deliberately neutral: adopting the variant's metrics is a UX decision, not a side effect of this change.\nconst inheritedTypography = css`\n font: inherit;\n line-height: inherit;\n color: inherit;\n white-space: inherit;\n overflow-wrap: inherit;\n margin: 0;\n padding: 0;\n`;\n\nexport const StyledLabel = styled('span', {\n name: DSCircularIndeterminateIndicatorName,\n slot: CIRCULAR_INDETERMINATE_INDICATOR_SLOTS.LABEL,\n})`\n && > * {\n ${inheritedTypography}\n }\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,qBAAqB;AACrB,uBAAkC;AAClC,uBAA6F;AAC7F,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,CAAC,IAAI,aAAa,KAAK,CAAC,CAAC;AAC9D,QAAM,WAAW,GAAG,aAAa,IAAI,CAAC,CAAC,IAAI,aA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