@elliemae/ds-square-indicator 2.2.0-next.6 → 2.2.2-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.
@@ -14,7 +14,6 @@ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'defau
14
14
 
15
15
  var _jsx2__default = /*#__PURE__*/_interopDefaultLegacy(_jsx2);
16
16
 
17
- var _animate;
18
17
  const sizeToPx = {
19
18
  xs: '16px',
20
19
  s: '24px',
@@ -50,7 +49,8 @@ const DSSquareIndicator = _ref => {
50
49
  text = '',
51
50
  showText = true,
52
51
  withTooltip = false,
53
- tooltipStartPlacementPreference = 'bottom'
52
+ tooltipStartPlacementPreference = 'bottom',
53
+ __duration = 2.5
54
54
  } = _ref;
55
55
  const Wrapper = withTooltip ? dsTooltip.DSTooltipV3 : _ref2 => {
56
56
  let {
@@ -82,14 +82,14 @@ const DSSquareIndicator = _ref => {
82
82
  strokeWidth: sizeToWeight[size],
83
83
  strokeDasharray: "400% 400%",
84
84
  stroke: colorToHex[color]
85
- }, void 0, _animate || (_animate = /*#__PURE__*/_jsx2__default["default"]("animate", {
85
+ }, void 0, /*#__PURE__*/_jsx2__default["default"]("animate", {
86
86
  attributeName: "stroke-dashoffset",
87
87
  values: "800%;0",
88
88
  keyTimes: "0;1",
89
- dur: "2.5s",
89
+ dur: "".concat(__duration, "s"),
90
90
  repeatCount: "indefinite",
91
91
  restart: "always"
92
- })))), text !== '' && showText && /*#__PURE__*/_jsx2__default["default"]("span", {
92
+ }))), text !== '' && showText && /*#__PURE__*/_jsx2__default["default"]("span", {
93
93
  style: {
94
94
  color: colorToHex[color],
95
95
  fontSize: sizeToTextSize[size]
@@ -6,7 +6,6 @@ import { describe } from 'react-desc';
6
6
  import { SquareIndicatorPropTypes } from './react-desc-prop-types.js';
7
7
  import { jsx, Fragment } from 'react/jsx-runtime';
8
8
 
9
- var _animate;
10
9
  const sizeToPx = {
11
10
  xs: '16px',
12
11
  s: '24px',
@@ -42,7 +41,8 @@ const DSSquareIndicator = _ref => {
42
41
  text = '',
43
42
  showText = true,
44
43
  withTooltip = false,
45
- tooltipStartPlacementPreference = 'bottom'
44
+ tooltipStartPlacementPreference = 'bottom',
45
+ __duration = 2.5
46
46
  } = _ref;
47
47
  const Wrapper = withTooltip ? DSTooltipV3 : _ref2 => {
48
48
  let {
@@ -74,14 +74,14 @@ const DSSquareIndicator = _ref => {
74
74
  strokeWidth: sizeToWeight[size],
75
75
  strokeDasharray: "400% 400%",
76
76
  stroke: colorToHex[color]
77
- }, void 0, _animate || (_animate = /*#__PURE__*/_jsx2("animate", {
77
+ }, void 0, /*#__PURE__*/_jsx2("animate", {
78
78
  attributeName: "stroke-dashoffset",
79
79
  values: "800%;0",
80
80
  keyTimes: "0;1",
81
- dur: "2.5s",
81
+ dur: "".concat(__duration, "s"),
82
82
  repeatCount: "indefinite",
83
83
  restart: "always"
84
- })))), text !== '' && showText && /*#__PURE__*/_jsx2("span", {
84
+ }))), text !== '' && showText && /*#__PURE__*/_jsx2("span", {
85
85
  style: {
86
86
  color: colorToHex[color],
87
87
  fontSize: sizeToTextSize[size]
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@elliemae/ds-square-indicator",
3
- "version": "2.2.0-next.6",
3
+ "version": "2.2.2-rc.1",
4
4
  "license": "MIT",
5
5
  "description": "ICE MT - Dimsum - Indeterminate Progress Indicator",
6
6
  "module": "./esm/index.js",
@@ -40,7 +40,7 @@
40
40
  "build": "node ../../scripts/build/build.js"
41
41
  },
42
42
  "dependencies": {
43
- "@elliemae/ds-grid": "2.2.0-next.6",
43
+ "@elliemae/ds-grid": "2.2.0-next.7",
44
44
  "react-desc": "~4.1.3"
45
45
  },
46
46
  "peerDependencies": {
@@ -3,7 +3,7 @@ import React from 'react';
3
3
  import { DSSquareIndicatorT } from './react-desc-prop-types';
4
4
  export declare const DSSquareIndicator: React.ComponentType<DSSquareIndicatorT.Props>;
5
5
  export declare const DSSquareIndicatorWithSchema: {
6
- (props?: React.PropsWithChildren<DSSquareIndicatorT.Props> | undefined): JSX.Element;
6
+ (props?: unknown): JSX.Element;
7
7
  propTypes: unknown;
8
8
  toTypescript: () => import("react-desc").TypescriptSchema;
9
9
  };
@@ -7,6 +7,7 @@ export declare namespace DSSquareIndicatorT {
7
7
  showText?: boolean;
8
8
  withTooltip: boolean;
9
9
  tooltipStartPlacementPreference?: 'top-start' | 'top' | 'top-end' | 'right-start' | 'right' | 'right-end' | 'bottom-end' | 'bottom' | 'bottom-start' | 'left-end' | 'left' | 'left-start';
10
+ __duration: number;
10
11
  }
11
12
  }
12
13
  export declare const SquareIndicatorPropTypes: {