@hh.ru/magritte-ui-progress-bar 3.1.4 → 4.0.0

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.
package/ProgressBar.js CHANGED
@@ -6,7 +6,7 @@ import { ProgressBarSkeleton } from './Skeleton.js';
6
6
  import { enrichWithSkeleton } from '@hh.ru/magritte-ui-skeleton';
7
7
  import 'react';
8
8
  import 'classnames';
9
- import './progress-bar-27cd28f5.js';
9
+ import './progress-bar-1340428b.js';
10
10
 
11
11
  const ProgressBarComponent = (props) => {
12
12
  const isSegmented = props.segments !== undefined;
@@ -2,14 +2,14 @@ import './index.css';
2
2
  import { jsx } from 'react/jsx-runtime';
3
3
  import { useRef, useState, useEffect, useLayoutEffect } from 'react';
4
4
  import classnames from 'classnames';
5
- import { s as styles } from './progress-bar-27cd28f5.js';
5
+ import { s as styles } from './progress-bar-1340428b.js';
6
6
 
7
7
  const STYLE_TO_CSS = {
8
8
  accent: styles.segmentedContainerStyleAccent,
9
9
  positive: styles.segmentedContainerStylePositive,
10
10
  special: styles.segmentedContainerStyleSpecial,
11
11
  };
12
- const SegmentedProgressBar = ({ segments, progress, style = 'accent', 'data-qa': dataQA = 'progress', ariaLabel, }) => {
12
+ const SegmentedProgressBar = ({ segments, progress, style = 'accent', 'data-qa': dataQA = 'progress', 'aria-label': ariaLabel, }) => {
13
13
  const prevProgress = useRef(progress);
14
14
  const [animationTimeout, setAnimationTimeout] = useState(0);
15
15
  useEffect(() => {
@@ -1 +1 @@
1
- {"version":3,"file":"SegmentedProgressBar.js","sources":["../src/SegmentedProgressBar.tsx"],"sourcesContent":["import { FC, useRef, useEffect, useLayoutEffect, useState } from 'react';\nimport classnames from 'classnames';\n\nimport { ProgressBarSegmentedProps } from '@hh.ru/magritte-ui-progress-bar/types';\n\nimport styles from './progress-bar.less';\n\nconst STYLE_TO_CSS = {\n accent: styles.segmentedContainerStyleAccent,\n positive: styles.segmentedContainerStylePositive,\n special: styles.segmentedContainerStyleSpecial,\n};\nexport const SegmentedProgressBar: FC<ProgressBarSegmentedProps> = ({\n segments,\n progress,\n style = 'accent',\n 'data-qa': dataQA = 'progress',\n ariaLabel,\n}) => {\n const prevProgress = useRef(progress);\n const [animationTimeout, setAnimationTimeout] = useState(0);\n useEffect(() => {\n prevProgress.current = progress;\n }, [progress]);\n\n useLayoutEffect(() => {\n const animationTimeoutElement = document.createElement('div');\n animationTimeoutElement.classList.add(styles.progressAnimationTimeout);\n document.body.appendChild(animationTimeoutElement);\n const style = window.getComputedStyle(animationTimeoutElement);\n const animationTimeout = parseInt(style.getPropertyValue(`--animation-duration`), 10);\n if (Number.isInteger(animationTimeout)) {\n setAnimationTimeout(animationTimeout);\n }\n document.body.removeChild(animationTimeoutElement);\n }, []);\n\n return (\n <div\n className={classnames(styles.segmentedContainer, STYLE_TO_CSS[style])}\n data-qa={dataQA}\n role=\"progressbar\"\n aria-valuemin={0}\n aria-valuemax={segments}\n aria-valuenow={progress}\n aria-label={ariaLabel}\n >\n {[...Array(segments).keys()].map((_, i) => {\n let delay = 0;\n const direction = progress - prevProgress.current >= 0 ? 0 : -1;\n const startSelection = prevProgress.current + direction;\n if (i === startSelection) {\n delay = 0;\n } else {\n delay = Math.abs(i - startSelection) * animationTimeout;\n }\n return (\n <div\n key={i}\n className={classnames(styles.segment, {\n [styles.filled]: i < progress,\n })}\n style={{ transitionDelay: `${delay}ms` }}\n data-qa=\"progress-segment\"\n />\n );\n })}\n </div>\n );\n};\n"],"names":["_jsx"],"mappings":";;;;;AAOA,MAAM,YAAY,GAAG;IACjB,MAAM,EAAE,MAAM,CAAC,6BAA6B;IAC5C,QAAQ,EAAE,MAAM,CAAC,+BAA+B;IAChD,OAAO,EAAE,MAAM,CAAC,8BAA8B;CACjD,CAAC;MACW,oBAAoB,GAAkC,CAAC,EAChE,QAAQ,EACR,QAAQ,EACR,KAAK,GAAG,QAAQ,EAChB,SAAS,EAAE,MAAM,GAAG,UAAU,EAC9B,SAAS,GACZ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AC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,KAAI;YACtC,IAAI,KAAK,GAAG,CAAC,CAAC;AACd,YAAA,MAAM,SAAS,GAAG,QAAQ,GAAG,YAAY,CAAC,OAAO,IAAI,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,CAAC;AAChE,YAAA,MAAM,cAAc,GAAG,YAAY,CAAC,OAAO,GAAG,SAAS,CAAC;YACxD,IAAI,CAAC,KAAK,cAAc,EAAE;gBACtB,KAAK,GAAG,CAAC,CAAC;AACb,aAAA;AAAM,iBAAA;gBACH,KAAK,GAAG,IAAI,CAAC,GAAG,CAAC,CAAC,GAAG,cAAc,CAAC,GAAG,gBAAgB,CAAC;AAC3D,aAAA;YACD,QACIA,aAEI,SAAS,EAAE,UAAU,CAAC,MAAM,CAAC,OAAO,EAAE;AAClC,oBAAA,CAAC,MAAM,CAAC,MAAM,GAAG,CAAC,GAAG,QAAQ;AAChC,iBAAA,CAAC,EACF,KAAK,EAAE,EAAE,eAAe,EAAE,CAAG,EAAA,KAAK,CAAI,EAAA,CAAA,EAAE,aAChC,kBAAkB,EAAA,EALrB,CAAC,CAMR,EACJ;SACL,CAAC,EACA,CAAA,EACR;AACN;;;;"}
1
+ {"version":3,"file":"SegmentedProgressBar.js","sources":["../src/SegmentedProgressBar.tsx"],"sourcesContent":["import { FC, useRef, useEffect, useLayoutEffect, useState } from 'react';\nimport classnames from 'classnames';\n\nimport { ProgressBarSegmentedProps } from '@hh.ru/magritte-ui-progress-bar/types';\n\nimport styles from './progress-bar.less';\n\nconst STYLE_TO_CSS = {\n accent: styles.segmentedContainerStyleAccent,\n positive: styles.segmentedContainerStylePositive,\n special: styles.segmentedContainerStyleSpecial,\n};\nexport const SegmentedProgressBar: FC<ProgressBarSegmentedProps> = ({\n segments,\n progress,\n style = 'accent',\n 'data-qa': dataQA = 'progress',\n 'aria-label': ariaLabel,\n}) => {\n const prevProgress = useRef(progress);\n const [animationTimeout, setAnimationTimeout] = useState(0);\n useEffect(() => {\n prevProgress.current = progress;\n }, [progress]);\n\n useLayoutEffect(() => {\n const animationTimeoutElement = document.createElement('div');\n animationTimeoutElement.classList.add(styles.progressAnimationTimeout);\n document.body.appendChild(animationTimeoutElement);\n const style = window.getComputedStyle(animationTimeoutElement);\n const animationTimeout = parseInt(style.getPropertyValue(`--animation-duration`), 10);\n if (Number.isInteger(animationTimeout)) {\n setAnimationTimeout(animationTimeout);\n }\n document.body.removeChild(animationTimeoutElement);\n }, []);\n\n return (\n <div\n className={classnames(styles.segmentedContainer, STYLE_TO_CSS[style])}\n data-qa={dataQA}\n role=\"progressbar\"\n aria-valuemin={0}\n aria-valuemax={segments}\n aria-valuenow={progress}\n aria-label={ariaLabel}\n >\n {[...Array(segments).keys()].map((_, i) => {\n let delay = 0;\n const direction = progress - prevProgress.current >= 0 ? 0 : -1;\n const startSelection = prevProgress.current + direction;\n if (i === startSelection) {\n delay = 0;\n } else {\n delay = Math.abs(i - startSelection) * animationTimeout;\n }\n return (\n <div\n key={i}\n className={classnames(styles.segment, {\n [styles.filled]: i < progress,\n })}\n style={{ transitionDelay: `${delay}ms` }}\n data-qa=\"progress-segment\"\n />\n );\n })}\n </div>\n );\n};\n"],"names":["_jsx"],"mappings":";;;;;AAOA,MAAM,YAAY,GAAG;IACjB,MAAM,EAAE,MAAM,CAAC,6BAA6B;IAC5C,QAAQ,EAAE,MAAM,CAAC,+BAA+B;IAChD,OAAO,EAAE,MAAM,CAAC,8BAA8B;CACjD,CAAC;AACW,MAAA,oBAAoB,GAAkC,CAAC,EAChE,QAAQ,EACR,QAAQ,EACR,KAAK,GAAG,QAAQ,EAChB,SAAS,EAAE,MAAM,GAAG,UAAU,EAC9B,YAAY,EAAE,SAAS,GAC1B,KAAI;AACD,IAAA,MAAM,YAAY,GAAG,MAAM,CAAC,QAAQ,CAAC,CAAC;IACtC,MAAM,CAAC,gBAAgB,EAAE,mBAAmB,CAAC,GAAG,QAAQ,CAAC,CAAC,CAAC,CAAC;IA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AAC,GAAG,CAAC,GAAG,CAAC,CAAC,CAAC;AAChE,YAAA,MAAM,cAAc,GAAG,YAAY,CAAC,OAAO,GAAG,SAAS,CAAC;YACxD,IAAI,CAAC,KAAK,cAAc,EAAE;gBACtB,KAAK,GAAG,CAAC,CAAC;AACb,aAAA;AAAM,iBAAA;gBACH,KAAK,GAAG,IAAI,CAAC,GAAG,CAAC,CAAC,GAAG,cAAc,CAAC,GAAG,gBAAgB,CAAC;AAC3D,aAAA;YACD,QACIA,aAEI,SAAS,EAAE,UAAU,CAAC,MAAM,CAAC,OAAO,EAAE;AAClC,oBAAA,CAAC,MAAM,CAAC,MAAM,GAAG,CAAC,GAAG,QAAQ;AAChC,iBAAA,CAAC,EACF,KAAK,EAAE,EAAE,eAAe,EAAE,CAAG,EAAA,KAAK,CAAI,EAAA,CAAA,EAAE,aAChC,kBAAkB,EAAA,EALrB,CAAC,CAMR,EACJ;SACL,CAAC,EACA,CAAA,EACR;AACN;;;;"}
@@ -1,14 +1,14 @@
1
1
  import './index.css';
2
2
  import { jsx } from 'react/jsx-runtime';
3
3
  import classnames from 'classnames';
4
- import { s as styles } from './progress-bar-27cd28f5.js';
4
+ import { s as styles } from './progress-bar-1340428b.js';
5
5
 
6
6
  const STYLE_TO_CSS = {
7
7
  accent: styles.progressStyleAccent,
8
8
  positive: styles.progressStylePositive,
9
9
  special: styles.progressStyleSpecial,
10
10
  };
11
- const SingleProgressBar = ({ max = 100, progress, style = 'accent', 'data-qa': dataQA = 'progress', ariaLabel, }) => {
11
+ const SingleProgressBar = ({ max = 100, progress, style = 'accent', 'data-qa': dataQA = 'progress', 'aria-label': ariaLabel, }) => {
12
12
  const width = (progress / max) * 100;
13
13
  return (jsx("div", { className: classnames(styles.progress, STYLE_TO_CSS[style]), role: "progressbar", "aria-valuemin": 0, "aria-valuemax": max, "aria-valuenow": progress, "aria-label": ariaLabel, "data-qa": dataQA, children: jsx("div", { className: styles.progressValue, "data-qa": "progress-value", style: { width: `${width}%` } }) }));
14
14
  };
@@ -1 +1 @@
1
- {"version":3,"file":"SingleProgressBar.js","sources":["../src/SingleProgressBar.tsx"],"sourcesContent":["import { FC } from 'react';\nimport classnames from 'classnames';\n\nimport { ProgressBarSingleProps } from '@hh.ru/magritte-ui-progress-bar/types';\n\nimport styles from './progress-bar.less';\n\nconst STYLE_TO_CSS = {\n accent: styles.progressStyleAccent,\n positive: styles.progressStylePositive,\n special: styles.progressStyleSpecial,\n};\n\nexport const SingleProgressBar: FC<ProgressBarSingleProps> = ({\n max = 100,\n progress,\n style = 'accent',\n 'data-qa': dataQA = 'progress',\n ariaLabel,\n}) => {\n const width = (progress / max) * 100;\n return (\n <div\n className={classnames(styles.progress, STYLE_TO_CSS[style])}\n role=\"progressbar\"\n aria-valuemin={0}\n aria-valuemax={max}\n aria-valuenow={progress}\n aria-label={ariaLabel}\n data-qa={dataQA}\n >\n <div className={styles.progressValue} data-qa=\"progress-value\" style={{ width: `${width}%` }} />\n </div>\n );\n};\n"],"names":["_jsx"],"mappings":";;;;AAOA,MAAM,YAAY,GAAG;IACjB,MAAM,EAAE,MAAM,CAAC,mBAAmB;IAClC,QAAQ,EAAE,MAAM,CAAC,qBAAqB;IACtC,OAAO,EAAE,MAAM,CAAC,oBAAoB;CACvC,CAAC;AAEW,MAAA,iBAAiB,GAA+B,CAAC,EAC1D,GAAG,GAAG,GAAG,EACT,QAAQ,EACR,KAAK,GAAG,QAAQ,EAChB,SAAS,EAAE,MAAM,GAAG,UAAU,EAC9B,SAAS,GACZ,KAAI;IACD,MAAM,KAAK,GAAG,CAAC,QAAQ,GAAG,GAAG,IAAI,GAAG,CAAC;IACrC,QACIA,aACI,SAAS,EAAE,UAAU,CAAC,MAAM,CAAC,QAAQ,EAAE,YAAY,CAAC,KAAK,CAAC,CAAC,EAC3D,IAAI,EAAC,aAAa,EACH,eAAA,EAAA,CAAC,EACD,eAAA,EAAA,GAAG,EACH,eAAA,EAAA,QAAQ,gBACX,SAAS,EAAA,SAAA,EACZ,MAAM,EAAA,QAAA,EAEfA,GAAK,CAAA,KAAA,EAAA,EAAA,SAAS,EAAE,MAAM,CAAC,aAAa,EAAA,SAAA,EAAU,gBAAgB,EAAC,KAAK,EAAE,EAAE,KAAK,EAAE,CAAG,EAAA,KAAK,GAAG,EAAE,EAAA,CAAI,EAC9F,CAAA,EACR;AACN;;;;"}
1
+ {"version":3,"file":"SingleProgressBar.js","sources":["../src/SingleProgressBar.tsx"],"sourcesContent":["import { FC } from 'react';\nimport classnames from 'classnames';\n\nimport { ProgressBarSingleProps } from '@hh.ru/magritte-ui-progress-bar/types';\n\nimport styles from './progress-bar.less';\n\nconst STYLE_TO_CSS = {\n accent: styles.progressStyleAccent,\n positive: styles.progressStylePositive,\n special: styles.progressStyleSpecial,\n};\n\nexport const SingleProgressBar: FC<ProgressBarSingleProps> = ({\n max = 100,\n progress,\n style = 'accent',\n 'data-qa': dataQA = 'progress',\n 'aria-label': ariaLabel,\n}) => {\n const width = (progress / max) * 100;\n return (\n <div\n className={classnames(styles.progress, STYLE_TO_CSS[style])}\n role=\"progressbar\"\n aria-valuemin={0}\n aria-valuemax={max}\n aria-valuenow={progress}\n aria-label={ariaLabel}\n data-qa={dataQA}\n >\n <div className={styles.progressValue} data-qa=\"progress-value\" style={{ width: `${width}%` }} />\n </div>\n );\n};\n"],"names":["_jsx"],"mappings":";;;;AAOA,MAAM,YAAY,GAAG;IACjB,MAAM,EAAE,MAAM,CAAC,mBAAmB;IAClC,QAAQ,EAAE,MAAM,CAAC,qBAAqB;IACtC,OAAO,EAAE,MAAM,CAAC,oBAAoB;CACvC,CAAC;AAEW,MAAA,iBAAiB,GAA+B,CAAC,EAC1D,GAAG,GAAG,GAAG,EACT,QAAQ,EACR,KAAK,GAAG,QAAQ,EAChB,SAAS,EAAE,MAAM,GAAG,UAAU,EAC9B,YAAY,EAAE,SAAS,GAC1B,KAAI;IACD,MAAM,KAAK,GAAG,CAAC,QAAQ,GAAG,GAAG,IAAI,GAAG,CAAC;IACrC,QACIA,aACI,SAAS,EAAE,UAAU,CAAC,MAAM,CAAC,QAAQ,EAAE,YAAY,CAAC,KAAK,CAAC,CAAC,EAC3D,IAAI,EAAC,aAAa,EACH,eAAA,EAAA,CAAC,EACD,eAAA,EAAA,GAAG,EACH,eAAA,EAAA,QAAQ,gBACX,SAAS,EAAA,SAAA,EACZ,MAAM,EAAA,QAAA,EAEfA,GAAK,CAAA,KAAA,EAAA,EAAA,SAAS,EAAE,MAAM,CAAC,aAAa,EAAA,SAAA,EAAU,gBAAgB,EAAC,KAAK,EAAE,EAAE,KAAK,EAAE,CAAG,EAAA,KAAK,GAAG,EAAE,EAAA,CAAI,EAC9F,CAAA,EACR;AACN;;;;"}
package/Skeleton.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import './index.css';
2
2
  import { jsx } from 'react/jsx-runtime';
3
3
  import { Skeleton } from '@hh.ru/magritte-ui-skeleton';
4
- import { s as styles } from './progress-bar-27cd28f5.js';
4
+ import { s as styles } from './progress-bar-1340428b.js';
5
5
 
6
6
  const ProgressBarSkeleton = ({ Component: ProgressBar,
7
7
  // skeleton props
package/index.css CHANGED
@@ -14,19 +14,19 @@
14
14
  --magritte-color-component-progress-bar-foreground-positive-v18-1-2:#026d36;
15
15
  --magritte-color-component-progress-bar-foreground-special-v18-1-2:#6a2eb7;
16
16
  }
17
- .magritte-progress___pKPf-_3-1-4,
18
- .magritte-segment___uKhLD_3-1-4,
19
- .magritte-progress-animation-timeout___BeyxU_3-1-4{
17
+ .magritte-progress___pKPf-_4-0-0,
18
+ .magritte-segment___uKhLD_4-0-0,
19
+ .magritte-progress-animation-timeout___BeyxU_4-0-0{
20
20
  --animation-duration:0;
21
21
  }
22
22
  @media (prefers-reduced-motion: no-preference){
23
- .magritte-progress___pKPf-_3-1-4,
24
- .magritte-segment___uKhLD_3-1-4,
25
- .magritte-progress-animation-timeout___BeyxU_3-1-4{
23
+ .magritte-progress___pKPf-_4-0-0,
24
+ .magritte-segment___uKhLD_4-0-0,
25
+ .magritte-progress-animation-timeout___BeyxU_4-0-0{
26
26
  --animation-duration:var(--magritte-semantic-animation-ease-in-out-100-duration-v18-1-2);
27
27
  }
28
28
  }
29
- .magritte-progress___pKPf-_3-1-4{
29
+ .magritte-progress___pKPf-_4-0-0{
30
30
  position:relative;
31
31
  width:100%;
32
32
  border-radius:50vh;
@@ -36,11 +36,11 @@
36
36
  user-select:none;
37
37
  overflow:hidden;
38
38
  }
39
- .magritte-progress-skeleton___cGz4D_3-1-4{
39
+ .magritte-progress-skeleton___cGz4D_4-0-0{
40
40
  height:var(--magritte-ui-progress-height-override, 8px);
41
41
  border-radius:50vh;
42
42
  }
43
- .magritte-progress-value___ffPrp_3-1-4{
43
+ .magritte-progress-value___ffPrp_4-0-0{
44
44
  position:absolute;
45
45
  height:var(--magritte-ui-progress-height-override, 8px);
46
46
  left:0;
@@ -51,12 +51,12 @@
51
51
  transition-duration:var(--animation-duration);
52
52
  transition-timing-function:var(--magritte-semantic-animation-ease-in-out-100-timing-function-v18-1-2);
53
53
  }
54
- .magritte-segmented-container___O5xuJ_3-1-4{
54
+ .magritte-segmented-container___O5xuJ_4-0-0{
55
55
  display:flex;
56
56
  gap:var(--magritte-ui-progress-segments-margin-override, 4px);
57
57
  user-select:none;
58
58
  }
59
- .magritte-segment___uKhLD_3-1-4{
59
+ .magritte-segment___uKhLD_4-0-0{
60
60
  flex:1 1 auto;
61
61
  height:var(--magritte-ui-progress-height-override, 8px);
62
62
  border-radius:50vh;
@@ -69,24 +69,24 @@
69
69
  background-position:right bottom;
70
70
  background-repeat:no-repeat;
71
71
  }
72
- .magritte-filled___QH18N_3-1-4{
72
+ .magritte-filled___QH18N_4-0-0{
73
73
  background-position:left bottom;
74
74
  }
75
- .magritte-segmented-container_style-accent___MRcsm_3-1-4 .magritte-segment___uKhLD_3-1-4{
75
+ .magritte-segmented-container_style-accent___MRcsm_4-0-0 .magritte-segment___uKhLD_4-0-0{
76
76
  --magritte-ui-progress-value-color:var(--magritte-ui-progress-value-color-override, var(--magritte-color-component-progress-bar-foreground-accent-v18-1-2));
77
77
  }
78
- .magritte-progress_style-accent___0qJEN_3-1-4{
78
+ .magritte-progress_style-accent___0qJEN_4-0-0{
79
79
  --magritte-ui-progress-value-color:var(--magritte-ui-progress-value-color-override, var(--magritte-color-component-progress-bar-foreground-accent-v18-1-2));
80
80
  }
81
- .magritte-segmented-container_style-positive___ItaIH_3-1-4 .magritte-segment___uKhLD_3-1-4{
81
+ .magritte-segmented-container_style-positive___ItaIH_4-0-0 .magritte-segment___uKhLD_4-0-0{
82
82
  --magritte-ui-progress-value-color:var(--magritte-ui-progress-value-color-override, var(--magritte-color-component-progress-bar-foreground-positive-v18-1-2));
83
83
  }
84
- .magritte-progress_style-positive___EAtvB_3-1-4{
84
+ .magritte-progress_style-positive___EAtvB_4-0-0{
85
85
  --magritte-ui-progress-value-color:var(--magritte-ui-progress-value-color-override, var(--magritte-color-component-progress-bar-foreground-positive-v18-1-2));
86
86
  }
87
- .magritte-segmented-container_style-special___m0PxE_3-1-4 .magritte-segment___uKhLD_3-1-4{
87
+ .magritte-segmented-container_style-special___m0PxE_4-0-0 .magritte-segment___uKhLD_4-0-0{
88
88
  --magritte-ui-progress-value-color:var(--magritte-ui-progress-value-color-override, var(--magritte-color-component-progress-bar-foreground-special-v18-1-2));
89
89
  }
90
- .magritte-progress_style-special___v8LNJ_3-1-4{
90
+ .magritte-progress_style-special___v8LNJ_4-0-0{
91
91
  --magritte-ui-progress-value-color:var(--magritte-ui-progress-value-color-override, var(--magritte-color-component-progress-bar-foreground-special-v18-1-2));
92
92
  }
package/index.js CHANGED
@@ -5,7 +5,7 @@ import 'react/jsx-runtime';
5
5
  import './SegmentedProgressBar.js';
6
6
  import 'react';
7
7
  import 'classnames';
8
- import './progress-bar-27cd28f5.js';
8
+ import './progress-bar-1340428b.js';
9
9
  import './SingleProgressBar.js';
10
10
  import './Skeleton.js';
11
11
  import '@hh.ru/magritte-ui-skeleton';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hh.ru/magritte-ui-progress-bar",
3
- "version": "3.1.4",
3
+ "version": "4.0.0",
4
4
  "main": "index.js",
5
5
  "types": "index.d.ts",
6
6
  "sideEffects": [
@@ -21,7 +21,7 @@
21
21
  "dependencies": {
22
22
  "@hh.ru/magritte-design-tokens": "18.1.2",
23
23
  "@hh.ru/magritte-ui-mock-component": "1.0.10",
24
- "@hh.ru/magritte-ui-skeleton": "2.1.3",
24
+ "@hh.ru/magritte-ui-skeleton": "2.1.4",
25
25
  "@hh.ru/magritte-ui-theme-provider": "1.1.22"
26
26
  },
27
27
  "peerDependencies": {
@@ -31,5 +31,5 @@
31
31
  "publishConfig": {
32
32
  "access": "public"
33
33
  },
34
- "gitHead": "f983d20d02117bd1e412d635d854ab7c47492692"
34
+ "gitHead": "77a359961872f43d688f9507b225fa72ba99a3e8"
35
35
  }
@@ -0,0 +1,5 @@
1
+ import './index.css';
2
+ var styles = {"progress":"magritte-progress___pKPf-_4-0-0","segment":"magritte-segment___uKhLD_4-0-0","progress-animation-timeout":"magritte-progress-animation-timeout___BeyxU_4-0-0","progressAnimationTimeout":"magritte-progress-animation-timeout___BeyxU_4-0-0","progress-skeleton":"magritte-progress-skeleton___cGz4D_4-0-0","progressSkeleton":"magritte-progress-skeleton___cGz4D_4-0-0","progress-value":"magritte-progress-value___ffPrp_4-0-0","progressValue":"magritte-progress-value___ffPrp_4-0-0","segmented-container":"magritte-segmented-container___O5xuJ_4-0-0","segmentedContainer":"magritte-segmented-container___O5xuJ_4-0-0","filled":"magritte-filled___QH18N_4-0-0","segmented-container_style-accent":"magritte-segmented-container_style-accent___MRcsm_4-0-0","segmentedContainerStyleAccent":"magritte-segmented-container_style-accent___MRcsm_4-0-0","progress_style-accent":"magritte-progress_style-accent___0qJEN_4-0-0","progressStyleAccent":"magritte-progress_style-accent___0qJEN_4-0-0","segmented-container_style-positive":"magritte-segmented-container_style-positive___ItaIH_4-0-0","segmentedContainerStylePositive":"magritte-segmented-container_style-positive___ItaIH_4-0-0","progress_style-positive":"magritte-progress_style-positive___EAtvB_4-0-0","progressStylePositive":"magritte-progress_style-positive___EAtvB_4-0-0","segmented-container_style-special":"magritte-segmented-container_style-special___m0PxE_4-0-0","segmentedContainerStyleSpecial":"magritte-segmented-container_style-special___m0PxE_4-0-0","progress_style-special":"magritte-progress_style-special___v8LNJ_4-0-0","progressStyleSpecial":"magritte-progress_style-special___v8LNJ_4-0-0"};
3
+
4
+ export { styles as s };
5
+ //# sourceMappingURL=progress-bar-1340428b.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"progress-bar-1340428b.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"}
package/types.d.ts CHANGED
@@ -4,7 +4,7 @@ type ProgressBarCommonProps = {
4
4
  progress: number;
5
5
  /** Cтиль прогресс-бара */
6
6
  style?: ProgressBarStyle;
7
- ariaLabel?: string;
7
+ 'aria-label'?: string;
8
8
  'data-qa'?: string;
9
9
  };
10
10
  export type ProgressBarSingleProps = ProgressBarCommonProps & {
@@ -1,5 +0,0 @@
1
- import './index.css';
2
- var styles = {"progress":"magritte-progress___pKPf-_3-1-4","segment":"magritte-segment___uKhLD_3-1-4","progress-animation-timeout":"magritte-progress-animation-timeout___BeyxU_3-1-4","progressAnimationTimeout":"magritte-progress-animation-timeout___BeyxU_3-1-4","progress-skeleton":"magritte-progress-skeleton___cGz4D_3-1-4","progressSkeleton":"magritte-progress-skeleton___cGz4D_3-1-4","progress-value":"magritte-progress-value___ffPrp_3-1-4","progressValue":"magritte-progress-value___ffPrp_3-1-4","segmented-container":"magritte-segmented-container___O5xuJ_3-1-4","segmentedContainer":"magritte-segmented-container___O5xuJ_3-1-4","filled":"magritte-filled___QH18N_3-1-4","segmented-container_style-accent":"magritte-segmented-container_style-accent___MRcsm_3-1-4","segmentedContainerStyleAccent":"magritte-segmented-container_style-accent___MRcsm_3-1-4","progress_style-accent":"magritte-progress_style-accent___0qJEN_3-1-4","progressStyleAccent":"magritte-progress_style-accent___0qJEN_3-1-4","segmented-container_style-positive":"magritte-segmented-container_style-positive___ItaIH_3-1-4","segmentedContainerStylePositive":"magritte-segmented-container_style-positive___ItaIH_3-1-4","progress_style-positive":"magritte-progress_style-positive___EAtvB_3-1-4","progressStylePositive":"magritte-progress_style-positive___EAtvB_3-1-4","segmented-container_style-special":"magritte-segmented-container_style-special___m0PxE_3-1-4","segmentedContainerStyleSpecial":"magritte-segmented-container_style-special___m0PxE_3-1-4","progress_style-special":"magritte-progress_style-special___v8LNJ_3-1-4","progressStyleSpecial":"magritte-progress_style-special___v8LNJ_3-1-4"};
3
-
4
- export { styles as s };
5
- //# sourceMappingURL=progress-bar-27cd28f5.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"progress-bar-27cd28f5.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"}