@hh.ru/magritte-ui-progress-bar 4.0.33 → 4.1.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 +1 -1
- package/SegmentedProgressBar.js +3 -1
- package/SegmentedProgressBar.js.map +1 -1
- package/SingleProgressBar.js +3 -1
- package/SingleProgressBar.js.map +1 -1
- package/Skeleton.js +1 -1
- package/index.css +34 -18
- package/index.js +1 -1
- package/package.json +2 -2
- package/progress-bar-0Q1p3e8x.js +5 -0
- package/progress-bar-0Q1p3e8x.js.map +1 -0
- package/types.d.ts +1 -1
- package/progress-bar-Psv2NGBE.js +0 -5
- package/progress-bar-Psv2NGBE.js.map +0 -1
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-
|
|
9
|
+
import './progress-bar-0Q1p3e8x.js';
|
|
10
10
|
|
|
11
11
|
const ProgressBarComponent = (props) => {
|
|
12
12
|
const isSegmented = props.segments !== undefined;
|
package/SegmentedProgressBar.js
CHANGED
|
@@ -2,12 +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-
|
|
5
|
+
import { s as styles } from './progress-bar-0Q1p3e8x.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
|
+
warning: styles.segmentedContainerStyleWarning,
|
|
12
|
+
negative: styles.segmentedContainerStyleNegative,
|
|
11
13
|
};
|
|
12
14
|
const SegmentedProgressBar = ({ segments, progress, style = 'accent', 'data-qa': dataQA = 'progress', 'aria-label': ariaLabel, }) => {
|
|
13
15
|
const prevProgress = useRef(progress);
|
|
@@ -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 '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;
|
|
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 warning: styles.segmentedContainerStyleWarning,\n negative: styles.segmentedContainerStyleNegative,\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;IAC9C,OAAO,EAAE,MAAM,CAAC,8BAA8B;IAC9C,QAAQ,EAAE,MAAM,CAAC,+BAA+B;CACnD,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;IAC5D,SAAS,CAAC,MAAK;AACX,QAAA,YAAY,CAAC,OAAO,GAAG,QAAQ,CAAC;AACpC,KAAC,EAAE,CAAC,QAAQ,CAAC,CAAC,CAAC;IAEf,eAAe,CAAC,MAAK;QACjB,MAAM,uBAAuB,GAAG,QAAQ,CAAC,aAAa,CAAC,KAAK,CAAC,CAAC;QAC9D,uBAAuB,CAAC,SAAS,CAAC,GAAG,CAAC,MAAM,CAAC,wBAAwB,CAAC,CAAC;AACvE,QAAA,QAAQ,CAAC,IAAI,CAAC,WAAW,CAAC,uBAAuB,CAAC,CAAC;QACnD,MAAM,KAAK,GAAG,MAAM,CAAC,gBAAgB,CAAC,uBAAuB,CAAC,CAAC;AAC/D,QAAA,MAAM,gBAAgB,GAAG,QAAQ,CAAC,KAAK,CAAC,gBAAgB,CAAC,CAAsB,oBAAA,CAAA,CAAC,EAAE,EAAE,CAAC,CAAC;AACtF,QAAA,IAAI,MAAM,CAAC,SAAS,CAAC,gBAAgB,CAAC,EAAE;YACpC,mBAAmB,CAAC,gBAAgB,CAAC,CAAC;SACzC;AACD,QAAA,QAAQ,CAAC,IAAI,CAAC,WAAW,CAAC,uBAAuB,CAAC,CAAC;KACtD,EAAE,EAAE,CAAC,CAAC;IAEP,QACIA,aACI,SAAS,EAAE,UAAU,CAAC,MAAM,CAAC,kBAAkB,EAAE,YAAY,CAAC,KAAK,CAAC,CAAC,EAC5D,SAAA,EAAA,MAAM,EACf,IAAI,EAAC,aAAa,EAAA,eAAA,EACH,CAAC,EAAA,eAAA,EACD,QAAQ,EACR,eAAA,EAAA,QAAQ,gBACX,SAAS,EAAA,QAAA,EAEpB,CAAC,GAAG,KAAK,CAAC,QAAQ,CAAC,CAAC,IAAI,EAAE,CAAC,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;AACxD,YAAA,IAAI,CAAC,KAAK,cAAc,EAAE;gBACtB,KAAK,GAAG,CAAC,CAAC;aACb;iBAAM;gBACH,KAAK,GAAG,IAAI,CAAC,GAAG,CAAC,CAAC,GAAG,cAAc,CAAC,GAAG,gBAAgB,CAAC;aAC3D;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;;;;"}
|
package/SingleProgressBar.js
CHANGED
|
@@ -1,12 +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-
|
|
4
|
+
import { s as styles } from './progress-bar-0Q1p3e8x.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
|
+
warning: styles.progressStyleWarning,
|
|
11
|
+
negative: styles.progressStyleNegative,
|
|
10
12
|
};
|
|
11
13
|
const SingleProgressBar = ({ max = 100, progress, style = 'accent', 'data-qa': dataQA = 'progress', 'aria-label': ariaLabel, }) => {
|
|
12
14
|
const width = (progress / max) * 100;
|
package/SingleProgressBar.js.map
CHANGED
|
@@ -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 '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;
|
|
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 warning: styles.progressStyleWarning,\n negative: styles.progressStyleNegative,\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;IACpC,OAAO,EAAE,MAAM,CAAC,oBAAoB;IACpC,QAAQ,EAAE,MAAM,CAAC,qBAAqB;CACzC,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-
|
|
4
|
+
import { s as styles } from './progress-bar-0Q1p3e8x.js';
|
|
5
5
|
|
|
6
6
|
const ProgressBarSkeleton = ({ Component: ProgressBar,
|
|
7
7
|
// skeleton props
|
package/index.css
CHANGED
|
@@ -3,6 +3,8 @@
|
|
|
3
3
|
--magritte-color-component-progress-bar-foreground-accent-v21-4-6:#0070ff;
|
|
4
4
|
--magritte-color-component-progress-bar-foreground-positive-v21-4-6:#0dc267;
|
|
5
5
|
--magritte-color-component-progress-bar-foreground-special-v21-4-6:#883be9;
|
|
6
|
+
--magritte-color-component-progress-bar-foreground-warning-v21-4-6:#ff9900;
|
|
7
|
+
--magritte-color-component-progress-bar-foreground-negative-v21-4-6:#ff4d3a;
|
|
6
8
|
}
|
|
7
9
|
:root{
|
|
8
10
|
--magritte-semantic-animation-ease-in-out-100-timing-function-v21-4-6:cubic-bezier(0.25, 0.1, 0.25, 1);
|
|
@@ -13,20 +15,22 @@
|
|
|
13
15
|
--magritte-color-component-progress-bar-foreground-accent-v21-4-6:#0058cc;
|
|
14
16
|
--magritte-color-component-progress-bar-foreground-positive-v21-4-6:#026d36;
|
|
15
17
|
--magritte-color-component-progress-bar-foreground-special-v21-4-6:#6a2eb7;
|
|
18
|
+
--magritte-color-component-progress-bar-foreground-warning-v21-4-6:#ac6600;
|
|
19
|
+
--magritte-color-component-progress-bar-foreground-negative-v21-4-6:#ac3225;
|
|
16
20
|
}
|
|
17
|
-
.magritte-progress___pKPf-_4-0
|
|
18
|
-
.magritte-segment___uKhLD_4-0
|
|
19
|
-
.magritte-progress-animation-timeout___BeyxU_4-0
|
|
21
|
+
.magritte-progress___pKPf-_4-1-0,
|
|
22
|
+
.magritte-segment___uKhLD_4-1-0,
|
|
23
|
+
.magritte-progress-animation-timeout___BeyxU_4-1-0{
|
|
20
24
|
--animation-duration:0;
|
|
21
25
|
}
|
|
22
26
|
@media (prefers-reduced-motion: no-preference){
|
|
23
|
-
.magritte-progress___pKPf-_4-0
|
|
24
|
-
.magritte-segment___uKhLD_4-0
|
|
25
|
-
.magritte-progress-animation-timeout___BeyxU_4-0
|
|
27
|
+
.magritte-progress___pKPf-_4-1-0,
|
|
28
|
+
.magritte-segment___uKhLD_4-1-0,
|
|
29
|
+
.magritte-progress-animation-timeout___BeyxU_4-1-0{
|
|
26
30
|
--animation-duration:var(--magritte-semantic-animation-ease-in-out-100-duration-v21-4-6);
|
|
27
31
|
}
|
|
28
32
|
}
|
|
29
|
-
.magritte-progress___pKPf-_4-0
|
|
33
|
+
.magritte-progress___pKPf-_4-1-0{
|
|
30
34
|
position:relative;
|
|
31
35
|
width:100%;
|
|
32
36
|
border-radius:50vh;
|
|
@@ -36,11 +40,11 @@
|
|
|
36
40
|
user-select:none;
|
|
37
41
|
overflow:hidden;
|
|
38
42
|
}
|
|
39
|
-
.magritte-progress-skeleton___cGz4D_4-0
|
|
43
|
+
.magritte-progress-skeleton___cGz4D_4-1-0{
|
|
40
44
|
height:var(--magritte-ui-progress-height-override, 8px);
|
|
41
45
|
border-radius:50vh;
|
|
42
46
|
}
|
|
43
|
-
.magritte-progress-value___ffPrp_4-0
|
|
47
|
+
.magritte-progress-value___ffPrp_4-1-0{
|
|
44
48
|
position:absolute;
|
|
45
49
|
height:var(--magritte-ui-progress-height-override, 8px);
|
|
46
50
|
left:0;
|
|
@@ -51,12 +55,12 @@
|
|
|
51
55
|
transition-duration:var(--animation-duration);
|
|
52
56
|
transition-timing-function:var(--magritte-semantic-animation-ease-in-out-100-timing-function-v21-4-6);
|
|
53
57
|
}
|
|
54
|
-
.magritte-segmented-container___O5xuJ_4-0
|
|
58
|
+
.magritte-segmented-container___O5xuJ_4-1-0{
|
|
55
59
|
display:flex;
|
|
56
60
|
gap:var(--magritte-ui-progress-segments-margin-override, 4px);
|
|
57
61
|
user-select:none;
|
|
58
62
|
}
|
|
59
|
-
.magritte-segment___uKhLD_4-0
|
|
63
|
+
.magritte-segment___uKhLD_4-1-0{
|
|
60
64
|
flex:1 1 auto;
|
|
61
65
|
height:var(--magritte-ui-progress-height-override, 8px);
|
|
62
66
|
border-radius:50vh;
|
|
@@ -69,24 +73,36 @@
|
|
|
69
73
|
background-position:right bottom;
|
|
70
74
|
background-repeat:no-repeat;
|
|
71
75
|
}
|
|
72
|
-
.magritte-filled___QH18N_4-0
|
|
76
|
+
.magritte-filled___QH18N_4-1-0{
|
|
73
77
|
background-position:left bottom;
|
|
74
78
|
}
|
|
75
|
-
.magritte-segmented-container_style-accent___MRcsm_4-0
|
|
79
|
+
.magritte-segmented-container_style-accent___MRcsm_4-1-0 .magritte-segment___uKhLD_4-1-0{
|
|
76
80
|
--magritte-ui-progress-value-color:var(--magritte-ui-progress-value-color-override, var(--magritte-color-component-progress-bar-foreground-accent-v21-4-6));
|
|
77
81
|
}
|
|
78
|
-
.magritte-progress_style-accent___0qJEN_4-0
|
|
82
|
+
.magritte-progress_style-accent___0qJEN_4-1-0{
|
|
79
83
|
--magritte-ui-progress-value-color:var(--magritte-ui-progress-value-color-override, var(--magritte-color-component-progress-bar-foreground-accent-v21-4-6));
|
|
80
84
|
}
|
|
81
|
-
.magritte-segmented-container_style-positive___ItaIH_4-0
|
|
85
|
+
.magritte-segmented-container_style-positive___ItaIH_4-1-0 .magritte-segment___uKhLD_4-1-0{
|
|
82
86
|
--magritte-ui-progress-value-color:var(--magritte-ui-progress-value-color-override, var(--magritte-color-component-progress-bar-foreground-positive-v21-4-6));
|
|
83
87
|
}
|
|
84
|
-
.magritte-progress_style-positive___EAtvB_4-0
|
|
88
|
+
.magritte-progress_style-positive___EAtvB_4-1-0{
|
|
85
89
|
--magritte-ui-progress-value-color:var(--magritte-ui-progress-value-color-override, var(--magritte-color-component-progress-bar-foreground-positive-v21-4-6));
|
|
86
90
|
}
|
|
87
|
-
.magritte-segmented-container_style-special___m0PxE_4-0
|
|
91
|
+
.magritte-segmented-container_style-special___m0PxE_4-1-0 .magritte-segment___uKhLD_4-1-0{
|
|
88
92
|
--magritte-ui-progress-value-color:var(--magritte-ui-progress-value-color-override, var(--magritte-color-component-progress-bar-foreground-special-v21-4-6));
|
|
89
93
|
}
|
|
90
|
-
.magritte-progress_style-special___v8LNJ_4-0
|
|
94
|
+
.magritte-progress_style-special___v8LNJ_4-1-0{
|
|
91
95
|
--magritte-ui-progress-value-color:var(--magritte-ui-progress-value-color-override, var(--magritte-color-component-progress-bar-foreground-special-v21-4-6));
|
|
92
96
|
}
|
|
97
|
+
.magritte-segmented-container_style-warning___Dfq4v_4-1-0 .magritte-segment___uKhLD_4-1-0{
|
|
98
|
+
--magritte-ui-progress-value-color:var(--magritte-ui-progress-value-color-override, var(--magritte-color-component-progress-bar-foreground-warning-v21-4-6));
|
|
99
|
+
}
|
|
100
|
+
.magritte-progress_style-warning___8D5-R_4-1-0{
|
|
101
|
+
--magritte-ui-progress-value-color:var(--magritte-ui-progress-value-color-override, var(--magritte-color-component-progress-bar-foreground-warning-v21-4-6));
|
|
102
|
+
}
|
|
103
|
+
.magritte-segmented-container_style-negative___ESqFP_4-1-0 .magritte-segment___uKhLD_4-1-0{
|
|
104
|
+
--magritte-ui-progress-value-color:var(--magritte-ui-progress-value-color-override, var(--magritte-color-component-progress-bar-foreground-negative-v21-4-6));
|
|
105
|
+
}
|
|
106
|
+
.magritte-progress_style-negative___QDl5g_4-1-0{
|
|
107
|
+
--magritte-ui-progress-value-color:var(--magritte-ui-progress-value-color-override, var(--magritte-color-component-progress-bar-foreground-negative-v21-4-6));
|
|
108
|
+
}
|
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-
|
|
8
|
+
import './progress-bar-0Q1p3e8x.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": "4.0
|
|
3
|
+
"version": "4.1.0",
|
|
4
4
|
"main": "index.js",
|
|
5
5
|
"types": "index.d.ts",
|
|
6
6
|
"sideEffects": [
|
|
@@ -31,5 +31,5 @@
|
|
|
31
31
|
"publishConfig": {
|
|
32
32
|
"access": "public"
|
|
33
33
|
},
|
|
34
|
-
"gitHead": "
|
|
34
|
+
"gitHead": "d82dc3520dc1a6a0584a8682991ad653e56730ed"
|
|
35
35
|
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import './index.css';
|
|
2
|
+
var styles = {"progress":"magritte-progress___pKPf-_4-1-0","segment":"magritte-segment___uKhLD_4-1-0","progress-animation-timeout":"magritte-progress-animation-timeout___BeyxU_4-1-0","progressAnimationTimeout":"magritte-progress-animation-timeout___BeyxU_4-1-0","progress-skeleton":"magritte-progress-skeleton___cGz4D_4-1-0","progressSkeleton":"magritte-progress-skeleton___cGz4D_4-1-0","progress-value":"magritte-progress-value___ffPrp_4-1-0","progressValue":"magritte-progress-value___ffPrp_4-1-0","segmented-container":"magritte-segmented-container___O5xuJ_4-1-0","segmentedContainer":"magritte-segmented-container___O5xuJ_4-1-0","filled":"magritte-filled___QH18N_4-1-0","segmented-container_style-accent":"magritte-segmented-container_style-accent___MRcsm_4-1-0","segmentedContainerStyleAccent":"magritte-segmented-container_style-accent___MRcsm_4-1-0","progress_style-accent":"magritte-progress_style-accent___0qJEN_4-1-0","progressStyleAccent":"magritte-progress_style-accent___0qJEN_4-1-0","segmented-container_style-positive":"magritte-segmented-container_style-positive___ItaIH_4-1-0","segmentedContainerStylePositive":"magritte-segmented-container_style-positive___ItaIH_4-1-0","progress_style-positive":"magritte-progress_style-positive___EAtvB_4-1-0","progressStylePositive":"magritte-progress_style-positive___EAtvB_4-1-0","segmented-container_style-special":"magritte-segmented-container_style-special___m0PxE_4-1-0","segmentedContainerStyleSpecial":"magritte-segmented-container_style-special___m0PxE_4-1-0","progress_style-special":"magritte-progress_style-special___v8LNJ_4-1-0","progressStyleSpecial":"magritte-progress_style-special___v8LNJ_4-1-0","segmented-container_style-warning":"magritte-segmented-container_style-warning___Dfq4v_4-1-0","segmentedContainerStyleWarning":"magritte-segmented-container_style-warning___Dfq4v_4-1-0","progress_style-warning":"magritte-progress_style-warning___8D5-R_4-1-0","progressStyleWarning":"magritte-progress_style-warning___8D5-R_4-1-0","segmented-container_style-negative":"magritte-segmented-container_style-negative___ESqFP_4-1-0","segmentedContainerStyleNegative":"magritte-segmented-container_style-negative___ESqFP_4-1-0","progress_style-negative":"magritte-progress_style-negative___QDl5g_4-1-0","progressStyleNegative":"magritte-progress_style-negative___QDl5g_4-1-0"};
|
|
3
|
+
|
|
4
|
+
export { styles as s };
|
|
5
|
+
//# sourceMappingURL=progress-bar-0Q1p3e8x.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"progress-bar-0Q1p3e8x.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"}
|
package/types.d.ts
CHANGED
package/progress-bar-Psv2NGBE.js
DELETED
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import './index.css';
|
|
2
|
-
var styles = {"progress":"magritte-progress___pKPf-_4-0-33","segment":"magritte-segment___uKhLD_4-0-33","progress-animation-timeout":"magritte-progress-animation-timeout___BeyxU_4-0-33","progressAnimationTimeout":"magritte-progress-animation-timeout___BeyxU_4-0-33","progress-skeleton":"magritte-progress-skeleton___cGz4D_4-0-33","progressSkeleton":"magritte-progress-skeleton___cGz4D_4-0-33","progress-value":"magritte-progress-value___ffPrp_4-0-33","progressValue":"magritte-progress-value___ffPrp_4-0-33","segmented-container":"magritte-segmented-container___O5xuJ_4-0-33","segmentedContainer":"magritte-segmented-container___O5xuJ_4-0-33","filled":"magritte-filled___QH18N_4-0-33","segmented-container_style-accent":"magritte-segmented-container_style-accent___MRcsm_4-0-33","segmentedContainerStyleAccent":"magritte-segmented-container_style-accent___MRcsm_4-0-33","progress_style-accent":"magritte-progress_style-accent___0qJEN_4-0-33","progressStyleAccent":"magritte-progress_style-accent___0qJEN_4-0-33","segmented-container_style-positive":"magritte-segmented-container_style-positive___ItaIH_4-0-33","segmentedContainerStylePositive":"magritte-segmented-container_style-positive___ItaIH_4-0-33","progress_style-positive":"magritte-progress_style-positive___EAtvB_4-0-33","progressStylePositive":"magritte-progress_style-positive___EAtvB_4-0-33","segmented-container_style-special":"magritte-segmented-container_style-special___m0PxE_4-0-33","segmentedContainerStyleSpecial":"magritte-segmented-container_style-special___m0PxE_4-0-33","progress_style-special":"magritte-progress_style-special___v8LNJ_4-0-33","progressStyleSpecial":"magritte-progress_style-special___v8LNJ_4-0-33"};
|
|
3
|
-
|
|
4
|
-
export { styles as s };
|
|
5
|
-
//# sourceMappingURL=progress-bar-Psv2NGBE.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"progress-bar-Psv2NGBE.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"}
|