@hh.ru/magritte-ui-progress-bar 4.0.9 → 4.0.11
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.d.ts +1 -1
- package/ProgressBar.js +1 -1
- package/SegmentedProgressBar.js +1 -1
- package/SegmentedProgressBar.js.map +1 -1
- package/SingleProgressBar.js +1 -1
- package/Skeleton.js +1 -1
- package/index.css +40 -40
- package/index.js +1 -1
- package/package.json +5 -5
- package/progress-bar-B4ay_BeP.js +5 -0
- package/progress-bar-B4ay_BeP.js.map +1 -0
- package/progress-bar-Dhixle0F.js +0 -5
- package/progress-bar-Dhixle0F.js.map +0 -1
package/ProgressBar.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { FC } from 'react';
|
|
2
2
|
import { ProgressBarProps } from '@hh.ru/magritte-ui-progress-bar/types';
|
|
3
3
|
export declare const ProgressBarComponent: FC<ProgressBarProps>;
|
|
4
|
-
export declare const ProgressBar: import("@hh.ru/magritte-ui-skeleton").ComponentWithSkeleton<ProgressBarProps>;
|
|
4
|
+
export declare const ProgressBar: import("@hh.ru/magritte-ui-skeleton").ComponentWithSkeleton<FC<ProgressBarProps>, ProgressBarProps>;
|
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-B4ay_BeP.js';
|
|
10
10
|
|
|
11
11
|
const ProgressBarComponent = (props) => {
|
|
12
12
|
const isSegmented = props.segments !== undefined;
|
package/SegmentedProgressBar.js
CHANGED
|
@@ -2,7 +2,7 @@ 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-B4ay_BeP.js';
|
|
6
6
|
|
|
7
7
|
const STYLE_TO_CSS = {
|
|
8
8
|
accent: styles.segmentedContainerStyleAccent,
|
|
@@ -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;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;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;
|
|
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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
|
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-B4ay_BeP.js';
|
|
5
5
|
|
|
6
6
|
const STYLE_TO_CSS = {
|
|
7
7
|
accent: styles.progressStyleAccent,
|
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-B4ay_BeP.js';
|
|
5
5
|
|
|
6
6
|
const ProgressBarSkeleton = ({ Component: ProgressBar,
|
|
7
7
|
// skeleton props
|
package/index.css
CHANGED
|
@@ -1,46 +1,46 @@
|
|
|
1
1
|
:root{
|
|
2
|
-
--magritte-color-component-progress-bar-background-content-v19-1-
|
|
3
|
-
--magritte-color-component-progress-bar-foreground-accent-v19-1-
|
|
4
|
-
--magritte-color-component-progress-bar-foreground-positive-v19-1-
|
|
5
|
-
--magritte-color-component-progress-bar-foreground-special-v19-1-
|
|
2
|
+
--magritte-color-component-progress-bar-background-content-v19-1-2:#DCE3EB;
|
|
3
|
+
--magritte-color-component-progress-bar-foreground-accent-v19-1-2:#0070ff;
|
|
4
|
+
--magritte-color-component-progress-bar-foreground-positive-v19-1-2:#0dc267;
|
|
5
|
+
--magritte-color-component-progress-bar-foreground-special-v19-1-2:#883be9;
|
|
6
6
|
}
|
|
7
7
|
:root{
|
|
8
|
-
--magritte-semantic-animation-ease-in-out-100-timing-function-v19-1-
|
|
9
|
-
--magritte-semantic-animation-ease-in-out-100-duration-v19-1-
|
|
8
|
+
--magritte-semantic-animation-ease-in-out-100-timing-function-v19-1-2:cubic-bezier(0.25, 0.1, 0.25, 1);
|
|
9
|
+
--magritte-semantic-animation-ease-in-out-100-duration-v19-1-2:100ms;
|
|
10
10
|
}
|
|
11
11
|
.magritte-night-theme{
|
|
12
|
-
--magritte-color-component-progress-bar-background-content-v19-1-
|
|
13
|
-
--magritte-color-component-progress-bar-foreground-accent-v19-1-
|
|
14
|
-
--magritte-color-component-progress-bar-foreground-positive-v19-1-
|
|
15
|
-
--magritte-color-component-progress-bar-foreground-special-v19-1-
|
|
16
|
-
}
|
|
17
|
-
.magritte-progress___pKPf-_4-0-
|
|
18
|
-
.magritte-segment___uKhLD_4-0-
|
|
19
|
-
.magritte-progress-animation-timeout___BeyxU_4-0-
|
|
12
|
+
--magritte-color-component-progress-bar-background-content-v19-1-2:#262626;
|
|
13
|
+
--magritte-color-component-progress-bar-foreground-accent-v19-1-2:#0058cc;
|
|
14
|
+
--magritte-color-component-progress-bar-foreground-positive-v19-1-2:#026d36;
|
|
15
|
+
--magritte-color-component-progress-bar-foreground-special-v19-1-2:#6a2eb7;
|
|
16
|
+
}
|
|
17
|
+
.magritte-progress___pKPf-_4-0-11,
|
|
18
|
+
.magritte-segment___uKhLD_4-0-11,
|
|
19
|
+
.magritte-progress-animation-timeout___BeyxU_4-0-11{
|
|
20
20
|
--animation-duration:0;
|
|
21
21
|
}
|
|
22
22
|
@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-
|
|
26
|
-
--animation-duration:var(--magritte-semantic-animation-ease-in-out-100-duration-v19-1-
|
|
23
|
+
.magritte-progress___pKPf-_4-0-11,
|
|
24
|
+
.magritte-segment___uKhLD_4-0-11,
|
|
25
|
+
.magritte-progress-animation-timeout___BeyxU_4-0-11{
|
|
26
|
+
--animation-duration:var(--magritte-semantic-animation-ease-in-out-100-duration-v19-1-2);
|
|
27
27
|
}
|
|
28
28
|
}
|
|
29
|
-
.magritte-progress___pKPf-_4-0-
|
|
29
|
+
.magritte-progress___pKPf-_4-0-11{
|
|
30
30
|
position:relative;
|
|
31
31
|
width:100%;
|
|
32
32
|
border-radius:50vh;
|
|
33
33
|
height:var(--magritte-ui-progress-height-override, 8px);
|
|
34
|
-
--magritte-ui-progress-background-color:var(--magritte-ui-progress-background-color-override, var(--magritte-color-component-progress-bar-background-content-v19-1-
|
|
34
|
+
--magritte-ui-progress-background-color:var(--magritte-ui-progress-background-color-override, var(--magritte-color-component-progress-bar-background-content-v19-1-2));
|
|
35
35
|
background-color:var(--magritte-ui-progress-background-color);
|
|
36
36
|
user-select:none;
|
|
37
37
|
overflow:hidden;
|
|
38
38
|
}
|
|
39
|
-
.magritte-progress-skeleton___cGz4D_4-0-
|
|
39
|
+
.magritte-progress-skeleton___cGz4D_4-0-11{
|
|
40
40
|
height:var(--magritte-ui-progress-height-override, 8px);
|
|
41
41
|
border-radius:50vh;
|
|
42
42
|
}
|
|
43
|
-
.magritte-progress-value___ffPrp_4-0-
|
|
43
|
+
.magritte-progress-value___ffPrp_4-0-11{
|
|
44
44
|
position:absolute;
|
|
45
45
|
height:var(--magritte-ui-progress-height-override, 8px);
|
|
46
46
|
left:0;
|
|
@@ -49,44 +49,44 @@
|
|
|
49
49
|
background:var(--magritte-ui-progress-value-color);
|
|
50
50
|
transition-property:width;
|
|
51
51
|
transition-duration:var(--animation-duration);
|
|
52
|
-
transition-timing-function:var(--magritte-semantic-animation-ease-in-out-100-timing-function-v19-1-
|
|
52
|
+
transition-timing-function:var(--magritte-semantic-animation-ease-in-out-100-timing-function-v19-1-2);
|
|
53
53
|
}
|
|
54
|
-
.magritte-segmented-container___O5xuJ_4-0-
|
|
54
|
+
.magritte-segmented-container___O5xuJ_4-0-11{
|
|
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_4-0-
|
|
59
|
+
.magritte-segment___uKhLD_4-0-11{
|
|
60
60
|
flex:1 1 auto;
|
|
61
61
|
height:var(--magritte-ui-progress-height-override, 8px);
|
|
62
62
|
border-radius:50vh;
|
|
63
63
|
transition-property:background-position;
|
|
64
64
|
transition-duration:var(--animation-duration);
|
|
65
|
-
transition-timing-function:var(--magritte-semantic-animation-ease-in-out-100-timing-function-v19-1-
|
|
66
|
-
--magritte-ui-progress-background-color:var(--magritte-ui-progress-background-color-override, var(--magritte-color-component-progress-bar-background-content-v19-1-
|
|
65
|
+
transition-timing-function:var(--magritte-semantic-animation-ease-in-out-100-timing-function-v19-1-2);
|
|
66
|
+
--magritte-ui-progress-background-color:var(--magritte-ui-progress-background-color-override, var(--magritte-color-component-progress-bar-background-content-v19-1-2));
|
|
67
67
|
background:linear-gradient(to right, var(--magritte-ui-progress-value-color) 50%, var(--magritte-ui-progress-background-color) 50%);
|
|
68
68
|
background-size:calc(200% + 1px) 100%;
|
|
69
69
|
background-position:right bottom;
|
|
70
70
|
background-repeat:no-repeat;
|
|
71
71
|
}
|
|
72
|
-
.magritte-filled___QH18N_4-0-
|
|
72
|
+
.magritte-filled___QH18N_4-0-11{
|
|
73
73
|
background-position:left bottom;
|
|
74
74
|
}
|
|
75
|
-
.magritte-segmented-container_style-accent___MRcsm_4-0-
|
|
76
|
-
--magritte-ui-progress-value-color:var(--magritte-ui-progress-value-color-override, var(--magritte-color-component-progress-bar-foreground-accent-v19-1-
|
|
75
|
+
.magritte-segmented-container_style-accent___MRcsm_4-0-11 .magritte-segment___uKhLD_4-0-11{
|
|
76
|
+
--magritte-ui-progress-value-color:var(--magritte-ui-progress-value-color-override, var(--magritte-color-component-progress-bar-foreground-accent-v19-1-2));
|
|
77
77
|
}
|
|
78
|
-
.magritte-progress_style-accent___0qJEN_4-0-
|
|
79
|
-
--magritte-ui-progress-value-color:var(--magritte-ui-progress-value-color-override, var(--magritte-color-component-progress-bar-foreground-accent-v19-1-
|
|
78
|
+
.magritte-progress_style-accent___0qJEN_4-0-11{
|
|
79
|
+
--magritte-ui-progress-value-color:var(--magritte-ui-progress-value-color-override, var(--magritte-color-component-progress-bar-foreground-accent-v19-1-2));
|
|
80
80
|
}
|
|
81
|
-
.magritte-segmented-container_style-positive___ItaIH_4-0-
|
|
82
|
-
--magritte-ui-progress-value-color:var(--magritte-ui-progress-value-color-override, var(--magritte-color-component-progress-bar-foreground-positive-v19-1-
|
|
81
|
+
.magritte-segmented-container_style-positive___ItaIH_4-0-11 .magritte-segment___uKhLD_4-0-11{
|
|
82
|
+
--magritte-ui-progress-value-color:var(--magritte-ui-progress-value-color-override, var(--magritte-color-component-progress-bar-foreground-positive-v19-1-2));
|
|
83
83
|
}
|
|
84
|
-
.magritte-progress_style-positive___EAtvB_4-0-
|
|
85
|
-
--magritte-ui-progress-value-color:var(--magritte-ui-progress-value-color-override, var(--magritte-color-component-progress-bar-foreground-positive-v19-1-
|
|
84
|
+
.magritte-progress_style-positive___EAtvB_4-0-11{
|
|
85
|
+
--magritte-ui-progress-value-color:var(--magritte-ui-progress-value-color-override, var(--magritte-color-component-progress-bar-foreground-positive-v19-1-2));
|
|
86
86
|
}
|
|
87
|
-
.magritte-segmented-container_style-special___m0PxE_4-0-
|
|
88
|
-
--magritte-ui-progress-value-color:var(--magritte-ui-progress-value-color-override, var(--magritte-color-component-progress-bar-foreground-special-v19-1-
|
|
87
|
+
.magritte-segmented-container_style-special___m0PxE_4-0-11 .magritte-segment___uKhLD_4-0-11{
|
|
88
|
+
--magritte-ui-progress-value-color:var(--magritte-ui-progress-value-color-override, var(--magritte-color-component-progress-bar-foreground-special-v19-1-2));
|
|
89
89
|
}
|
|
90
|
-
.magritte-progress_style-special___v8LNJ_4-0-
|
|
91
|
-
--magritte-ui-progress-value-color:var(--magritte-ui-progress-value-color-override, var(--magritte-color-component-progress-bar-foreground-special-v19-1-
|
|
90
|
+
.magritte-progress_style-special___v8LNJ_4-0-11{
|
|
91
|
+
--magritte-ui-progress-value-color:var(--magritte-ui-progress-value-color-override, var(--magritte-color-component-progress-bar-foreground-special-v19-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-
|
|
8
|
+
import './progress-bar-B4ay_BeP.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.0.11",
|
|
4
4
|
"main": "index.js",
|
|
5
5
|
"types": "index.d.ts",
|
|
6
6
|
"sideEffects": [
|
|
@@ -20,10 +20,10 @@
|
|
|
20
20
|
"watch": "yarn root:watch $(pwd)"
|
|
21
21
|
},
|
|
22
22
|
"dependencies": {
|
|
23
|
-
"@hh.ru/magritte-design-tokens": "19.1.
|
|
23
|
+
"@hh.ru/magritte-design-tokens": "19.1.2",
|
|
24
24
|
"@hh.ru/magritte-ui-mock-component": "1.0.11",
|
|
25
|
-
"@hh.ru/magritte-ui-skeleton": "2.1.
|
|
26
|
-
"@hh.ru/magritte-ui-theme-provider": "1.1.
|
|
25
|
+
"@hh.ru/magritte-ui-skeleton": "2.1.15",
|
|
26
|
+
"@hh.ru/magritte-ui-theme-provider": "1.1.31"
|
|
27
27
|
},
|
|
28
28
|
"peerDependencies": {
|
|
29
29
|
"classnames": ">=2.3.2",
|
|
@@ -32,5 +32,5 @@
|
|
|
32
32
|
"publishConfig": {
|
|
33
33
|
"access": "public"
|
|
34
34
|
},
|
|
35
|
-
"gitHead": "
|
|
35
|
+
"gitHead": "34aa8b63db1d1af2d969ef765d060ac8f59cd9ff"
|
|
36
36
|
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import './index.css';
|
|
2
|
+
var styles = {"progress":"magritte-progress___pKPf-_4-0-11","segment":"magritte-segment___uKhLD_4-0-11","progress-animation-timeout":"magritte-progress-animation-timeout___BeyxU_4-0-11","progressAnimationTimeout":"magritte-progress-animation-timeout___BeyxU_4-0-11","progress-skeleton":"magritte-progress-skeleton___cGz4D_4-0-11","progressSkeleton":"magritte-progress-skeleton___cGz4D_4-0-11","progress-value":"magritte-progress-value___ffPrp_4-0-11","progressValue":"magritte-progress-value___ffPrp_4-0-11","segmented-container":"magritte-segmented-container___O5xuJ_4-0-11","segmentedContainer":"magritte-segmented-container___O5xuJ_4-0-11","filled":"magritte-filled___QH18N_4-0-11","segmented-container_style-accent":"magritte-segmented-container_style-accent___MRcsm_4-0-11","segmentedContainerStyleAccent":"magritte-segmented-container_style-accent___MRcsm_4-0-11","progress_style-accent":"magritte-progress_style-accent___0qJEN_4-0-11","progressStyleAccent":"magritte-progress_style-accent___0qJEN_4-0-11","segmented-container_style-positive":"magritte-segmented-container_style-positive___ItaIH_4-0-11","segmentedContainerStylePositive":"magritte-segmented-container_style-positive___ItaIH_4-0-11","progress_style-positive":"magritte-progress_style-positive___EAtvB_4-0-11","progressStylePositive":"magritte-progress_style-positive___EAtvB_4-0-11","segmented-container_style-special":"magritte-segmented-container_style-special___m0PxE_4-0-11","segmentedContainerStyleSpecial":"magritte-segmented-container_style-special___m0PxE_4-0-11","progress_style-special":"magritte-progress_style-special___v8LNJ_4-0-11","progressStyleSpecial":"magritte-progress_style-special___v8LNJ_4-0-11"};
|
|
3
|
+
|
|
4
|
+
export { styles as s };
|
|
5
|
+
//# sourceMappingURL=progress-bar-B4ay_BeP.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"progress-bar-B4ay_BeP.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"}
|
package/progress-bar-Dhixle0F.js
DELETED
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import './index.css';
|
|
2
|
-
var styles = {"progress":"magritte-progress___pKPf-_4-0-9","segment":"magritte-segment___uKhLD_4-0-9","progress-animation-timeout":"magritte-progress-animation-timeout___BeyxU_4-0-9","progressAnimationTimeout":"magritte-progress-animation-timeout___BeyxU_4-0-9","progress-skeleton":"magritte-progress-skeleton___cGz4D_4-0-9","progressSkeleton":"magritte-progress-skeleton___cGz4D_4-0-9","progress-value":"magritte-progress-value___ffPrp_4-0-9","progressValue":"magritte-progress-value___ffPrp_4-0-9","segmented-container":"magritte-segmented-container___O5xuJ_4-0-9","segmentedContainer":"magritte-segmented-container___O5xuJ_4-0-9","filled":"magritte-filled___QH18N_4-0-9","segmented-container_style-accent":"magritte-segmented-container_style-accent___MRcsm_4-0-9","segmentedContainerStyleAccent":"magritte-segmented-container_style-accent___MRcsm_4-0-9","progress_style-accent":"magritte-progress_style-accent___0qJEN_4-0-9","progressStyleAccent":"magritte-progress_style-accent___0qJEN_4-0-9","segmented-container_style-positive":"magritte-segmented-container_style-positive___ItaIH_4-0-9","segmentedContainerStylePositive":"magritte-segmented-container_style-positive___ItaIH_4-0-9","progress_style-positive":"magritte-progress_style-positive___EAtvB_4-0-9","progressStylePositive":"magritte-progress_style-positive___EAtvB_4-0-9","segmented-container_style-special":"magritte-segmented-container_style-special___m0PxE_4-0-9","segmentedContainerStyleSpecial":"magritte-segmented-container_style-special___m0PxE_4-0-9","progress_style-special":"magritte-progress_style-special___v8LNJ_4-0-9","progressStyleSpecial":"magritte-progress_style-special___v8LNJ_4-0-9"};
|
|
3
|
-
|
|
4
|
-
export { styles as s };
|
|
5
|
-
//# sourceMappingURL=progress-bar-Dhixle0F.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"progress-bar-Dhixle0F.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"}
|