@spectrum-web-components/progress-bar 0.5.11 → 0.5.14-devmode.0
Sign up to get free protection for your applications and to get access to all the features.
- package/package.json +22 -9
- package/sp-progress-bar.dev.js +3 -0
- package/sp-progress-bar.dev.js.map +7 -0
- package/sp-progress-bar.js +3 -14
- package/sp-progress-bar.js.map +7 -1
- package/src/ProgressBar.dev.js +106 -0
- package/src/ProgressBar.dev.js.map +7 -0
- package/src/ProgressBar.js +84 -81
- package/src/ProgressBar.js.map +7 -1
- package/src/index.dev.js +2 -0
- package/src/index.dev.js.map +7 -0
- package/src/index.js +2 -13
- package/src/index.js.map +7 -1
- package/src/progress-bar.css.dev.js +94 -0
- package/src/progress-bar.css.dev.js.map +7 -0
- package/src/progress-bar.css.js +3 -14
- package/src/progress-bar.css.js.map +7 -1
- package/src/spectrum-progress-bar.css.dev.js +94 -0
- package/src/spectrum-progress-bar.css.dev.js.map +7 -0
- package/src/spectrum-progress-bar.css.js +3 -14
- package/src/spectrum-progress-bar.css.js.map +7 -1
- package/stories/progress-bar-sizes.stories.js +9 -20
- package/stories/progress-bar-sizes.stories.js.map +7 -1
- package/stories/progress-bar.stories.js +15 -26
- package/stories/progress-bar.stories.js.map +7 -1
- package/test/benchmark/basic-test.js +5 -16
- package/test/benchmark/basic-test.js.map +7 -1
- package/test/progress-bar-sizes.test-vrt.js +4 -15
- package/test/progress-bar-sizes.test-vrt.js.map +7 -1
- package/test/progress-bar.test-vrt.js +4 -15
- package/test/progress-bar.test-vrt.js.map +7 -1
- package/test/progress-bar.test.js +44 -55
- package/test/progress-bar.test.js.map +7 -1
package/src/progress-bar.css.js
CHANGED
@@ -1,16 +1,5 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
4
|
-
you may not use this file except in compliance with the License. You may obtain a copy
|
5
|
-
of the License at http://www.apache.org/licenses/LICENSE-2.0
|
6
|
-
|
7
|
-
Unless required by applicable law or agreed to in writing, software distributed under
|
8
|
-
the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
|
9
|
-
OF ANY KIND, either express or implied. See the License for the specific language
|
10
|
-
governing permissions and limitations under the License.
|
11
|
-
*/
|
12
|
-
import { css } from '@spectrum-web-components/base';
|
13
|
-
const styles = css `
|
1
|
+
import { css } from "@spectrum-web-components/base";
|
2
|
+
const styles = css`
|
14
3
|
:host([size=s]){--spectrum-progressbar-border-radius:var(
|
15
4
|
--spectrum-progressbar-s-border-radius
|
16
5
|
);--spectrum-progressbar-indeterminate-fill-width:var(
|
@@ -102,4 +91,4 @@ const styles = css `
|
|
102
91
|
)}@media (forced-colors:active){.track{--spectrum-progressbar-m-track-fill-color:ButtonText;--spectrum-progressbar-m-track-color:ButtonFace;border:1px solid ButtonText;forced-color-adjust:none}}.fill{transform-origin:left;width:100%}:host([dir=rtl]) .fill{transform-origin:right}
|
103
92
|
`;
|
104
93
|
export default styles;
|
105
|
-
//# sourceMappingURL=progress-bar.css.js.map
|
94
|
+
//# sourceMappingURL=progress-bar.css.js.map
|
@@ -1 +1,7 @@
|
|
1
|
-
{
|
1
|
+
{
|
2
|
+
"version": 3,
|
3
|
+
"sources": ["progress-bar.css.ts"],
|
4
|
+
"sourcesContent": ["/*\nCopyright 2022 Adobe. All rights reserved.\nThis file is licensed to you under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License. You may obtain a copy\nof the License at http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software distributed under\nthe License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\nOF ANY KIND, either express or implied. See the License for the specific language\ngoverning permissions and limitations under the License.\n*/\nimport { css } from '@spectrum-web-components/base';\nconst styles = css`\n:host([size=s]){--spectrum-progressbar-border-radius:var(\n--spectrum-progressbar-s-border-radius\n);--spectrum-progressbar-indeterminate-fill-width:var(\n--spectrum-progressbar-s-indeterminate-fill-width,var(--spectrum-global-dimension-static-percent-70)\n);--spectrum-progressbar-indeterminate-duration:var(\n--spectrum-progressbar-s-indeterminate-duration,var(--spectrum-global-animation-duration-2000)\n);--spectrum-progressbar-value-gap-y:var(\n--spectrum-progressbar-s-value-gap-y,0px\n);--spectrum-progressbar-height:var(\n--spectrum-progressbar-s-height,var(--spectrum-global-dimension-size-50)\n);--spectrum-progressbar-width:var(\n--spectrum-progressbar-s-width,var(--spectrum-global-dimension-static-size-2400)\n)}:host([size=m]){--spectrum-progressbar-border-radius:var(\n--spectrum-progressbar-m-border-radius\n);--spectrum-progressbar-indeterminate-fill-width:var(\n--spectrum-progressbar-m-indeterminate-fill-width,var(--spectrum-global-dimension-static-percent-70)\n);--spectrum-progressbar-indeterminate-duration:var(\n--spectrum-progressbar-m-indeterminate-duration,var(--spectrum-global-animation-duration-2000)\n);--spectrum-progressbar-value-gap-y:var(\n--spectrum-progressbar-m-value-gap-y,0px\n);--spectrum-progressbar-height:var(\n--spectrum-progressbar-m-height,var(--spectrum-global-dimension-size-75)\n);--spectrum-progressbar-width:var(\n--spectrum-progressbar-m-width,var(--spectrum-global-dimension-static-size-2400)\n);--spectrum-fieldlabel-side-padding-right:var(\n--spectrum-fieldlabel-m-side-padding-right,var(--spectrum-global-dimension-size-150)\n)}:host([size=l]){--spectrum-progressbar-indeterminate-fill-width:var(\n--spectrum-progressbar-l-indeterminate-fill-width,var(--spectrum-global-dimension-static-percent-70)\n);--spectrum-progressbar-indeterminate-duration:var(\n--spectrum-progressbar-l-indeterminate-duration,var(--spectrum-global-animation-duration-2000)\n);--spectrum-progressbar-value-gap-y:var(\n--spectrum-progressbar-l-value-gap-y,0px\n);--spectrum-progressbar-height:var(\n--spectrum-progressbar-l-height,var(--spectrum-global-dimension-size-100)\n);--spectrum-progressbar-border-radius:var(\n--spectrum-progressbar-l-border-radius,var(--spectrum-global-dimension-size-50)\n);--spectrum-progressbar-width:var(\n--spectrum-progressbar-l-width,var(--spectrum-global-dimension-static-size-2500)\n)}:host([size=xl]){--spectrum-progressbar-border-radius:var(\n--spectrum-progressbar-xl-border-radius\n);--spectrum-progressbar-indeterminate-fill-width:var(\n--spectrum-progressbar-xl-indeterminate-fill-width,var(--spectrum-global-dimension-static-percent-70)\n);--spectrum-progressbar-indeterminate-duration:var(\n--spectrum-progressbar-xl-indeterminate-duration,var(--spectrum-global-animation-duration-2000)\n);--spectrum-progressbar-value-gap-y:var(\n--spectrum-progressbar-xl-value-gap-y,0px\n);--spectrum-progressbar-height:var(\n--spectrum-progressbar-xl-height,var(--spectrum-global-dimension-size-125)\n);--spectrum-progressbar-width:var(\n--spectrum-progressbar-xl-width,var(--spectrum-global-dimension-static-size-2800)\n)}:host{align-items:center;display:inline-flex;flex-flow:row wrap;justify-content:space-between;position:relative;vertical-align:top;width:var(--spectrum-progressbar-width)}.track{border-radius:var(--spectrum-progressbar-border-radius);overflow:hidden;width:100%;z-index:1}.fill,.track{height:var(--spectrum-progressbar-height)}.fill{border:none;transition:width 1s}:host([dir=ltr]) .label,:host([dir=ltr]) .percentage{text-align:left}:host([dir=rtl]) .label,:host([dir=rtl]) .percentage{text-align:right}.label,.percentage{margin-bottom:var(\n--spectrum-progressbar-value-gap-y\n)}.label{flex:1 1 0%}:host([dir=ltr]) .percentage{margin-left:var(\n--spectrum-fieldlabel-side-padding-right\n)}:host([dir=rtl]) .percentage{margin-right:var(\n--spectrum-fieldlabel-side-padding-right\n)}.percentage{align-self:flex-start}:host([side-label]){display:inline-flex;flex-flow:row;justify-content:space-between;width:auto}:host([side-label]) .track{flex:1 1 var(--spectrum-progressbar-width);min-width:var(\n--spectrum-progressbar-width\n)}:host([dir=ltr][side-label]) .label{margin-right:var(\n--spectrum-fieldlabel-side-padding-right\n)}:host([dir=rtl][side-label]) .label{margin-left:var(\n--spectrum-fieldlabel-side-padding-right\n)}:host([side-label]) .label{flex-grow:0;margin-bottom:0}:host([dir=ltr][side-label]) .percentage{text-align:right}:host([dir=rtl][side-label]) .percentage{text-align:left}:host([dir=ltr][side-label]) .percentage{margin-left:var(\n--spectrum-fieldlabel-side-padding-right\n)}:host([dir=rtl][side-label]) .percentage{margin-right:var(\n--spectrum-fieldlabel-side-padding-right\n)}:host([side-label]) .percentage{margin-bottom:0;order:3}:host([indeterminate]) .fill{animation-timing-function:var(\n--spectrum-progressbar-indeterminate-animation-ease\n);position:relative;width:var(\n--spectrum-progressbar-indeterminate-fill-width\n);will-change:transform}:host([dir=ltr][indeterminate]) .fill{animation:indeterminate-loop-ltr var(--spectrum-progressbar-indeterminate-duration) infinite}:host([dir=rtl][indeterminate]) .fill{animation:indeterminate-loop-rtl var(--spectrum-progressbar-indeterminate-duration) infinite}@keyframes indeterminate-loop-ltr{0%{transform:translate(calc(var(--spectrum-progressbar-indeterminate-fill-width)*-1))}to{transform:translate(var(--spectrum-progressbar-width))}}@keyframes indeterminate-loop-rtl{0%{transform:translate(var(--spectrum-progressbar-width))}to{transform:translate(calc(var(--spectrum-progressbar-width)*-1))}}.fill{background:var(\n--spectrum-progressbar-m-track-fill-color,var(--spectrum-semantic-informative-color-default)\n)}.track{background-color:var(\n--spectrum-progressbar-m-track-color,var(--spectrum-alias-track-color-default)\n)}:host([over-background]) .fill{background:var(\n--spectrum-progressbar-m-overbackground-track-fill-color,var(--spectrum-alias-track-fill-color-overbackground)\n)}:host([over-background]) .label,:host([over-background]) .percentage{color:var(\n--spectrum-progressbar-m-overbackground-track-fill-color,var(--spectrum-alias-track-fill-color-overbackground)\n)}:host([over-background]) .track{background-color:var(\n--spectrum-progressbar-m-overbackground-track-color,var(--spectrum-alias-track-color-overbackground)\n)}:host([positive]) .fill{background:var(\n--spectrum-meter-m-positive-track-fill-color,var(--spectrum-semantic-positive-status-color)\n)}:host(.is-notice) .fill{background:var(\n--spectrum-meter-m-notice-track-fill-color,var(--spectrum-semantic-notice-status-color)\n)}:host(.is-negative) .fill{background:var(\n--spectrum-meter-m-negative-track-fill-color,var(--spectrum-semantic-negative-status-color)\n)}.label,.percentage{color:var(\n--spectrum-fieldlabel-m-text-color,var(--spectrum-alias-label-text-color)\n)}@media (forced-colors:active){.track{--spectrum-progressbar-m-track-fill-color:ButtonText;--spectrum-progressbar-m-track-color:ButtonFace;border:1px solid ButtonText;forced-color-adjust:none}}.fill{transform-origin:left;width:100%}:host([dir=rtl]) .fill{transform-origin:right}\n`;\nexport default styles;"],
|
5
|
+
"mappings": "AAWA;AACA,MAAM,SAAS;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AA2Ff,eAAe;",
|
6
|
+
"names": []
|
7
|
+
}
|
@@ -0,0 +1,94 @@
|
|
1
|
+
import { css } from "@spectrum-web-components/base";
|
2
|
+
const styles = css`
|
3
|
+
:host([size=s]){--spectrum-progressbar-border-radius:var(
|
4
|
+
--spectrum-progressbar-s-border-radius
|
5
|
+
);--spectrum-progressbar-indeterminate-fill-width:var(
|
6
|
+
--spectrum-progressbar-s-indeterminate-fill-width,var(--spectrum-global-dimension-static-percent-70)
|
7
|
+
);--spectrum-progressbar-indeterminate-duration:var(
|
8
|
+
--spectrum-progressbar-s-indeterminate-duration,var(--spectrum-global-animation-duration-2000)
|
9
|
+
);--spectrum-progressbar-value-gap-y:var(
|
10
|
+
--spectrum-progressbar-s-value-gap-y,0px
|
11
|
+
);--spectrum-progressbar-height:var(
|
12
|
+
--spectrum-progressbar-s-height,var(--spectrum-global-dimension-size-50)
|
13
|
+
);--spectrum-progressbar-width:var(
|
14
|
+
--spectrum-progressbar-s-width,var(--spectrum-global-dimension-static-size-2400)
|
15
|
+
)}:host([size=m]){--spectrum-progressbar-border-radius:var(
|
16
|
+
--spectrum-progressbar-m-border-radius
|
17
|
+
);--spectrum-progressbar-indeterminate-fill-width:var(
|
18
|
+
--spectrum-progressbar-m-indeterminate-fill-width,var(--spectrum-global-dimension-static-percent-70)
|
19
|
+
);--spectrum-progressbar-indeterminate-duration:var(
|
20
|
+
--spectrum-progressbar-m-indeterminate-duration,var(--spectrum-global-animation-duration-2000)
|
21
|
+
);--spectrum-progressbar-value-gap-y:var(
|
22
|
+
--spectrum-progressbar-m-value-gap-y,0px
|
23
|
+
);--spectrum-progressbar-height:var(
|
24
|
+
--spectrum-progressbar-m-height,var(--spectrum-global-dimension-size-75)
|
25
|
+
);--spectrum-progressbar-width:var(
|
26
|
+
--spectrum-progressbar-m-width,var(--spectrum-global-dimension-static-size-2400)
|
27
|
+
);--spectrum-fieldlabel-side-padding-right:var(
|
28
|
+
--spectrum-fieldlabel-m-side-padding-right,var(--spectrum-global-dimension-size-150)
|
29
|
+
)}:host([size=l]){--spectrum-progressbar-indeterminate-fill-width:var(
|
30
|
+
--spectrum-progressbar-l-indeterminate-fill-width,var(--spectrum-global-dimension-static-percent-70)
|
31
|
+
);--spectrum-progressbar-indeterminate-duration:var(
|
32
|
+
--spectrum-progressbar-l-indeterminate-duration,var(--spectrum-global-animation-duration-2000)
|
33
|
+
);--spectrum-progressbar-value-gap-y:var(
|
34
|
+
--spectrum-progressbar-l-value-gap-y,0px
|
35
|
+
);--spectrum-progressbar-height:var(
|
36
|
+
--spectrum-progressbar-l-height,var(--spectrum-global-dimension-size-100)
|
37
|
+
);--spectrum-progressbar-border-radius:var(
|
38
|
+
--spectrum-progressbar-l-border-radius,var(--spectrum-global-dimension-size-50)
|
39
|
+
);--spectrum-progressbar-width:var(
|
40
|
+
--spectrum-progressbar-l-width,var(--spectrum-global-dimension-static-size-2500)
|
41
|
+
)}:host([size=xl]){--spectrum-progressbar-border-radius:var(
|
42
|
+
--spectrum-progressbar-xl-border-radius
|
43
|
+
);--spectrum-progressbar-indeterminate-fill-width:var(
|
44
|
+
--spectrum-progressbar-xl-indeterminate-fill-width,var(--spectrum-global-dimension-static-percent-70)
|
45
|
+
);--spectrum-progressbar-indeterminate-duration:var(
|
46
|
+
--spectrum-progressbar-xl-indeterminate-duration,var(--spectrum-global-animation-duration-2000)
|
47
|
+
);--spectrum-progressbar-value-gap-y:var(
|
48
|
+
--spectrum-progressbar-xl-value-gap-y,0px
|
49
|
+
);--spectrum-progressbar-height:var(
|
50
|
+
--spectrum-progressbar-xl-height,var(--spectrum-global-dimension-size-125)
|
51
|
+
);--spectrum-progressbar-width:var(
|
52
|
+
--spectrum-progressbar-xl-width,var(--spectrum-global-dimension-static-size-2800)
|
53
|
+
)}:host{align-items:center;display:inline-flex;flex-flow:row wrap;justify-content:space-between;position:relative;vertical-align:top;width:var(--spectrum-progressbar-width)}.track{border-radius:var(--spectrum-progressbar-border-radius);overflow:hidden;width:100%;z-index:1}.fill,.track{height:var(--spectrum-progressbar-height)}.fill{border:none;transition:width 1s}:host([dir=ltr]) .label,:host([dir=ltr]) .percentage{text-align:left}:host([dir=rtl]) .label,:host([dir=rtl]) .percentage{text-align:right}.label,.percentage{margin-bottom:var(
|
54
|
+
--spectrum-progressbar-value-gap-y
|
55
|
+
)}.label{flex:1 1 0%}:host([dir=ltr]) .percentage{margin-left:var(
|
56
|
+
--spectrum-fieldlabel-side-padding-right
|
57
|
+
)}:host([dir=rtl]) .percentage{margin-right:var(
|
58
|
+
--spectrum-fieldlabel-side-padding-right
|
59
|
+
)}.percentage{align-self:flex-start}:host([side-label]){display:inline-flex;flex-flow:row;justify-content:space-between;width:auto}:host([side-label]) .track{flex:1 1 var(--spectrum-progressbar-width);min-width:var(
|
60
|
+
--spectrum-progressbar-width
|
61
|
+
)}:host([dir=ltr][side-label]) .label{margin-right:var(
|
62
|
+
--spectrum-fieldlabel-side-padding-right
|
63
|
+
)}:host([dir=rtl][side-label]) .label{margin-left:var(
|
64
|
+
--spectrum-fieldlabel-side-padding-right
|
65
|
+
)}:host([side-label]) .label{flex-grow:0;margin-bottom:0}:host([dir=ltr][side-label]) .percentage{text-align:right}:host([dir=rtl][side-label]) .percentage{text-align:left}:host([dir=ltr][side-label]) .percentage{margin-left:var(
|
66
|
+
--spectrum-fieldlabel-side-padding-right
|
67
|
+
)}:host([dir=rtl][side-label]) .percentage{margin-right:var(
|
68
|
+
--spectrum-fieldlabel-side-padding-right
|
69
|
+
)}:host([side-label]) .percentage{margin-bottom:0;order:3}:host([indeterminate]) .fill{animation-timing-function:var(
|
70
|
+
--spectrum-progressbar-indeterminate-animation-ease
|
71
|
+
);position:relative;width:var(
|
72
|
+
--spectrum-progressbar-indeterminate-fill-width
|
73
|
+
);will-change:transform}:host([dir=ltr][indeterminate]) .fill{animation:indeterminate-loop-ltr var(--spectrum-progressbar-indeterminate-duration) infinite}:host([dir=rtl][indeterminate]) .fill{animation:indeterminate-loop-rtl var(--spectrum-progressbar-indeterminate-duration) infinite}@keyframes indeterminate-loop-ltr{0%{transform:translate(calc(var(--spectrum-progressbar-indeterminate-fill-width)*-1))}to{transform:translate(var(--spectrum-progressbar-width))}}@keyframes indeterminate-loop-rtl{0%{transform:translate(var(--spectrum-progressbar-width))}to{transform:translate(calc(var(--spectrum-progressbar-width)*-1))}}.fill{background:var(
|
74
|
+
--spectrum-progressbar-m-track-fill-color,var(--spectrum-semantic-informative-color-default)
|
75
|
+
)}.track{background-color:var(
|
76
|
+
--spectrum-progressbar-m-track-color,var(--spectrum-alias-track-color-default)
|
77
|
+
)}:host([over-background]) .fill{background:var(
|
78
|
+
--spectrum-progressbar-m-overbackground-track-fill-color,var(--spectrum-alias-track-fill-color-overbackground)
|
79
|
+
)}:host([over-background]) .label,:host([over-background]) .percentage{color:var(
|
80
|
+
--spectrum-progressbar-m-overbackground-track-fill-color,var(--spectrum-alias-track-fill-color-overbackground)
|
81
|
+
)}:host([over-background]) .track{background-color:var(
|
82
|
+
--spectrum-progressbar-m-overbackground-track-color,var(--spectrum-alias-track-color-overbackground)
|
83
|
+
)}:host([positive]) .fill{background:var(
|
84
|
+
--spectrum-meter-m-positive-track-fill-color,var(--spectrum-semantic-positive-status-color)
|
85
|
+
)}:host(.is-notice) .fill{background:var(
|
86
|
+
--spectrum-meter-m-notice-track-fill-color,var(--spectrum-semantic-notice-status-color)
|
87
|
+
)}:host(.is-negative) .fill{background:var(
|
88
|
+
--spectrum-meter-m-negative-track-fill-color,var(--spectrum-semantic-negative-status-color)
|
89
|
+
)}.label,.percentage{color:var(
|
90
|
+
--spectrum-fieldlabel-m-text-color,var(--spectrum-alias-label-text-color)
|
91
|
+
)}@media (forced-colors:active){.track{--spectrum-progressbar-m-track-fill-color:ButtonText;--spectrum-progressbar-m-track-color:ButtonFace;border:1px solid ButtonText;forced-color-adjust:none}}
|
92
|
+
`;
|
93
|
+
export default styles;
|
94
|
+
//# sourceMappingURL=spectrum-progress-bar.css.dev.js.map
|
@@ -0,0 +1,7 @@
|
|
1
|
+
{
|
2
|
+
"version": 3,
|
3
|
+
"sources": ["spectrum-progress-bar.css.ts"],
|
4
|
+
"sourcesContent": ["/*\nCopyright 2022 Adobe. All rights reserved.\nThis file is licensed to you under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License. You may obtain a copy\nof the License at http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software distributed under\nthe License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\nOF ANY KIND, either express or implied. See the License for the specific language\ngoverning permissions and limitations under the License.\n*/\nimport { css } from '@spectrum-web-components/base';\nconst styles = css`\n:host([size=s]){--spectrum-progressbar-border-radius:var(\n--spectrum-progressbar-s-border-radius\n);--spectrum-progressbar-indeterminate-fill-width:var(\n--spectrum-progressbar-s-indeterminate-fill-width,var(--spectrum-global-dimension-static-percent-70)\n);--spectrum-progressbar-indeterminate-duration:var(\n--spectrum-progressbar-s-indeterminate-duration,var(--spectrum-global-animation-duration-2000)\n);--spectrum-progressbar-value-gap-y:var(\n--spectrum-progressbar-s-value-gap-y,0px\n);--spectrum-progressbar-height:var(\n--spectrum-progressbar-s-height,var(--spectrum-global-dimension-size-50)\n);--spectrum-progressbar-width:var(\n--spectrum-progressbar-s-width,var(--spectrum-global-dimension-static-size-2400)\n)}:host([size=m]){--spectrum-progressbar-border-radius:var(\n--spectrum-progressbar-m-border-radius\n);--spectrum-progressbar-indeterminate-fill-width:var(\n--spectrum-progressbar-m-indeterminate-fill-width,var(--spectrum-global-dimension-static-percent-70)\n);--spectrum-progressbar-indeterminate-duration:var(\n--spectrum-progressbar-m-indeterminate-duration,var(--spectrum-global-animation-duration-2000)\n);--spectrum-progressbar-value-gap-y:var(\n--spectrum-progressbar-m-value-gap-y,0px\n);--spectrum-progressbar-height:var(\n--spectrum-progressbar-m-height,var(--spectrum-global-dimension-size-75)\n);--spectrum-progressbar-width:var(\n--spectrum-progressbar-m-width,var(--spectrum-global-dimension-static-size-2400)\n);--spectrum-fieldlabel-side-padding-right:var(\n--spectrum-fieldlabel-m-side-padding-right,var(--spectrum-global-dimension-size-150)\n)}:host([size=l]){--spectrum-progressbar-indeterminate-fill-width:var(\n--spectrum-progressbar-l-indeterminate-fill-width,var(--spectrum-global-dimension-static-percent-70)\n);--spectrum-progressbar-indeterminate-duration:var(\n--spectrum-progressbar-l-indeterminate-duration,var(--spectrum-global-animation-duration-2000)\n);--spectrum-progressbar-value-gap-y:var(\n--spectrum-progressbar-l-value-gap-y,0px\n);--spectrum-progressbar-height:var(\n--spectrum-progressbar-l-height,var(--spectrum-global-dimension-size-100)\n);--spectrum-progressbar-border-radius:var(\n--spectrum-progressbar-l-border-radius,var(--spectrum-global-dimension-size-50)\n);--spectrum-progressbar-width:var(\n--spectrum-progressbar-l-width,var(--spectrum-global-dimension-static-size-2500)\n)}:host([size=xl]){--spectrum-progressbar-border-radius:var(\n--spectrum-progressbar-xl-border-radius\n);--spectrum-progressbar-indeterminate-fill-width:var(\n--spectrum-progressbar-xl-indeterminate-fill-width,var(--spectrum-global-dimension-static-percent-70)\n);--spectrum-progressbar-indeterminate-duration:var(\n--spectrum-progressbar-xl-indeterminate-duration,var(--spectrum-global-animation-duration-2000)\n);--spectrum-progressbar-value-gap-y:var(\n--spectrum-progressbar-xl-value-gap-y,0px\n);--spectrum-progressbar-height:var(\n--spectrum-progressbar-xl-height,var(--spectrum-global-dimension-size-125)\n);--spectrum-progressbar-width:var(\n--spectrum-progressbar-xl-width,var(--spectrum-global-dimension-static-size-2800)\n)}:host{align-items:center;display:inline-flex;flex-flow:row wrap;justify-content:space-between;position:relative;vertical-align:top;width:var(--spectrum-progressbar-width)}.track{border-radius:var(--spectrum-progressbar-border-radius);overflow:hidden;width:100%;z-index:1}.fill,.track{height:var(--spectrum-progressbar-height)}.fill{border:none;transition:width 1s}:host([dir=ltr]) .label,:host([dir=ltr]) .percentage{text-align:left}:host([dir=rtl]) .label,:host([dir=rtl]) .percentage{text-align:right}.label,.percentage{margin-bottom:var(\n--spectrum-progressbar-value-gap-y\n)}.label{flex:1 1 0%}:host([dir=ltr]) .percentage{margin-left:var(\n--spectrum-fieldlabel-side-padding-right\n)}:host([dir=rtl]) .percentage{margin-right:var(\n--spectrum-fieldlabel-side-padding-right\n)}.percentage{align-self:flex-start}:host([side-label]){display:inline-flex;flex-flow:row;justify-content:space-between;width:auto}:host([side-label]) .track{flex:1 1 var(--spectrum-progressbar-width);min-width:var(\n--spectrum-progressbar-width\n)}:host([dir=ltr][side-label]) .label{margin-right:var(\n--spectrum-fieldlabel-side-padding-right\n)}:host([dir=rtl][side-label]) .label{margin-left:var(\n--spectrum-fieldlabel-side-padding-right\n)}:host([side-label]) .label{flex-grow:0;margin-bottom:0}:host([dir=ltr][side-label]) .percentage{text-align:right}:host([dir=rtl][side-label]) .percentage{text-align:left}:host([dir=ltr][side-label]) .percentage{margin-left:var(\n--spectrum-fieldlabel-side-padding-right\n)}:host([dir=rtl][side-label]) .percentage{margin-right:var(\n--spectrum-fieldlabel-side-padding-right\n)}:host([side-label]) .percentage{margin-bottom:0;order:3}:host([indeterminate]) .fill{animation-timing-function:var(\n--spectrum-progressbar-indeterminate-animation-ease\n);position:relative;width:var(\n--spectrum-progressbar-indeterminate-fill-width\n);will-change:transform}:host([dir=ltr][indeterminate]) .fill{animation:indeterminate-loop-ltr var(--spectrum-progressbar-indeterminate-duration) infinite}:host([dir=rtl][indeterminate]) .fill{animation:indeterminate-loop-rtl var(--spectrum-progressbar-indeterminate-duration) infinite}@keyframes indeterminate-loop-ltr{0%{transform:translate(calc(var(--spectrum-progressbar-indeterminate-fill-width)*-1))}to{transform:translate(var(--spectrum-progressbar-width))}}@keyframes indeterminate-loop-rtl{0%{transform:translate(var(--spectrum-progressbar-width))}to{transform:translate(calc(var(--spectrum-progressbar-width)*-1))}}.fill{background:var(\n--spectrum-progressbar-m-track-fill-color,var(--spectrum-semantic-informative-color-default)\n)}.track{background-color:var(\n--spectrum-progressbar-m-track-color,var(--spectrum-alias-track-color-default)\n)}:host([over-background]) .fill{background:var(\n--spectrum-progressbar-m-overbackground-track-fill-color,var(--spectrum-alias-track-fill-color-overbackground)\n)}:host([over-background]) .label,:host([over-background]) .percentage{color:var(\n--spectrum-progressbar-m-overbackground-track-fill-color,var(--spectrum-alias-track-fill-color-overbackground)\n)}:host([over-background]) .track{background-color:var(\n--spectrum-progressbar-m-overbackground-track-color,var(--spectrum-alias-track-color-overbackground)\n)}:host([positive]) .fill{background:var(\n--spectrum-meter-m-positive-track-fill-color,var(--spectrum-semantic-positive-status-color)\n)}:host(.is-notice) .fill{background:var(\n--spectrum-meter-m-notice-track-fill-color,var(--spectrum-semantic-notice-status-color)\n)}:host(.is-negative) .fill{background:var(\n--spectrum-meter-m-negative-track-fill-color,var(--spectrum-semantic-negative-status-color)\n)}.label,.percentage{color:var(\n--spectrum-fieldlabel-m-text-color,var(--spectrum-alias-label-text-color)\n)}@media (forced-colors:active){.track{--spectrum-progressbar-m-track-fill-color:ButtonText;--spectrum-progressbar-m-track-color:ButtonFace;border:1px solid ButtonText;forced-color-adjust:none}}\n`;\nexport default styles;"],
|
5
|
+
"mappings": "AAWA;AACA,MAAM,SAAS;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AA2Ff,eAAe;",
|
6
|
+
"names": []
|
7
|
+
}
|
@@ -1,16 +1,5 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
4
|
-
you may not use this file except in compliance with the License. You may obtain a copy
|
5
|
-
of the License at http://www.apache.org/licenses/LICENSE-2.0
|
6
|
-
|
7
|
-
Unless required by applicable law or agreed to in writing, software distributed under
|
8
|
-
the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
|
9
|
-
OF ANY KIND, either express or implied. See the License for the specific language
|
10
|
-
governing permissions and limitations under the License.
|
11
|
-
*/
|
12
|
-
import { css } from '@spectrum-web-components/base';
|
13
|
-
const styles = css `
|
1
|
+
import { css } from "@spectrum-web-components/base";
|
2
|
+
const styles = css`
|
14
3
|
:host([size=s]){--spectrum-progressbar-border-radius:var(
|
15
4
|
--spectrum-progressbar-s-border-radius
|
16
5
|
);--spectrum-progressbar-indeterminate-fill-width:var(
|
@@ -102,4 +91,4 @@ const styles = css `
|
|
102
91
|
)}@media (forced-colors:active){.track{--spectrum-progressbar-m-track-fill-color:ButtonText;--spectrum-progressbar-m-track-color:ButtonFace;border:1px solid ButtonText;forced-color-adjust:none}}
|
103
92
|
`;
|
104
93
|
export default styles;
|
105
|
-
//# sourceMappingURL=spectrum-progress-bar.css.js.map
|
94
|
+
//# sourceMappingURL=spectrum-progress-bar.css.js.map
|
@@ -1 +1,7 @@
|
|
1
|
-
{
|
1
|
+
{
|
2
|
+
"version": 3,
|
3
|
+
"sources": ["spectrum-progress-bar.css.ts"],
|
4
|
+
"sourcesContent": ["/*\nCopyright 2022 Adobe. All rights reserved.\nThis file is licensed to you under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License. You may obtain a copy\nof the License at http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software distributed under\nthe License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\nOF ANY KIND, either express or implied. See the License for the specific language\ngoverning permissions and limitations under the License.\n*/\nimport { css } from '@spectrum-web-components/base';\nconst styles = css`\n:host([size=s]){--spectrum-progressbar-border-radius:var(\n--spectrum-progressbar-s-border-radius\n);--spectrum-progressbar-indeterminate-fill-width:var(\n--spectrum-progressbar-s-indeterminate-fill-width,var(--spectrum-global-dimension-static-percent-70)\n);--spectrum-progressbar-indeterminate-duration:var(\n--spectrum-progressbar-s-indeterminate-duration,var(--spectrum-global-animation-duration-2000)\n);--spectrum-progressbar-value-gap-y:var(\n--spectrum-progressbar-s-value-gap-y,0px\n);--spectrum-progressbar-height:var(\n--spectrum-progressbar-s-height,var(--spectrum-global-dimension-size-50)\n);--spectrum-progressbar-width:var(\n--spectrum-progressbar-s-width,var(--spectrum-global-dimension-static-size-2400)\n)}:host([size=m]){--spectrum-progressbar-border-radius:var(\n--spectrum-progressbar-m-border-radius\n);--spectrum-progressbar-indeterminate-fill-width:var(\n--spectrum-progressbar-m-indeterminate-fill-width,var(--spectrum-global-dimension-static-percent-70)\n);--spectrum-progressbar-indeterminate-duration:var(\n--spectrum-progressbar-m-indeterminate-duration,var(--spectrum-global-animation-duration-2000)\n);--spectrum-progressbar-value-gap-y:var(\n--spectrum-progressbar-m-value-gap-y,0px\n);--spectrum-progressbar-height:var(\n--spectrum-progressbar-m-height,var(--spectrum-global-dimension-size-75)\n);--spectrum-progressbar-width:var(\n--spectrum-progressbar-m-width,var(--spectrum-global-dimension-static-size-2400)\n);--spectrum-fieldlabel-side-padding-right:var(\n--spectrum-fieldlabel-m-side-padding-right,var(--spectrum-global-dimension-size-150)\n)}:host([size=l]){--spectrum-progressbar-indeterminate-fill-width:var(\n--spectrum-progressbar-l-indeterminate-fill-width,var(--spectrum-global-dimension-static-percent-70)\n);--spectrum-progressbar-indeterminate-duration:var(\n--spectrum-progressbar-l-indeterminate-duration,var(--spectrum-global-animation-duration-2000)\n);--spectrum-progressbar-value-gap-y:var(\n--spectrum-progressbar-l-value-gap-y,0px\n);--spectrum-progressbar-height:var(\n--spectrum-progressbar-l-height,var(--spectrum-global-dimension-size-100)\n);--spectrum-progressbar-border-radius:var(\n--spectrum-progressbar-l-border-radius,var(--spectrum-global-dimension-size-50)\n);--spectrum-progressbar-width:var(\n--spectrum-progressbar-l-width,var(--spectrum-global-dimension-static-size-2500)\n)}:host([size=xl]){--spectrum-progressbar-border-radius:var(\n--spectrum-progressbar-xl-border-radius\n);--spectrum-progressbar-indeterminate-fill-width:var(\n--spectrum-progressbar-xl-indeterminate-fill-width,var(--spectrum-global-dimension-static-percent-70)\n);--spectrum-progressbar-indeterminate-duration:var(\n--spectrum-progressbar-xl-indeterminate-duration,var(--spectrum-global-animation-duration-2000)\n);--spectrum-progressbar-value-gap-y:var(\n--spectrum-progressbar-xl-value-gap-y,0px\n);--spectrum-progressbar-height:var(\n--spectrum-progressbar-xl-height,var(--spectrum-global-dimension-size-125)\n);--spectrum-progressbar-width:var(\n--spectrum-progressbar-xl-width,var(--spectrum-global-dimension-static-size-2800)\n)}:host{align-items:center;display:inline-flex;flex-flow:row wrap;justify-content:space-between;position:relative;vertical-align:top;width:var(--spectrum-progressbar-width)}.track{border-radius:var(--spectrum-progressbar-border-radius);overflow:hidden;width:100%;z-index:1}.fill,.track{height:var(--spectrum-progressbar-height)}.fill{border:none;transition:width 1s}:host([dir=ltr]) .label,:host([dir=ltr]) .percentage{text-align:left}:host([dir=rtl]) .label,:host([dir=rtl]) .percentage{text-align:right}.label,.percentage{margin-bottom:var(\n--spectrum-progressbar-value-gap-y\n)}.label{flex:1 1 0%}:host([dir=ltr]) .percentage{margin-left:var(\n--spectrum-fieldlabel-side-padding-right\n)}:host([dir=rtl]) .percentage{margin-right:var(\n--spectrum-fieldlabel-side-padding-right\n)}.percentage{align-self:flex-start}:host([side-label]){display:inline-flex;flex-flow:row;justify-content:space-between;width:auto}:host([side-label]) .track{flex:1 1 var(--spectrum-progressbar-width);min-width:var(\n--spectrum-progressbar-width\n)}:host([dir=ltr][side-label]) .label{margin-right:var(\n--spectrum-fieldlabel-side-padding-right\n)}:host([dir=rtl][side-label]) .label{margin-left:var(\n--spectrum-fieldlabel-side-padding-right\n)}:host([side-label]) .label{flex-grow:0;margin-bottom:0}:host([dir=ltr][side-label]) .percentage{text-align:right}:host([dir=rtl][side-label]) .percentage{text-align:left}:host([dir=ltr][side-label]) .percentage{margin-left:var(\n--spectrum-fieldlabel-side-padding-right\n)}:host([dir=rtl][side-label]) .percentage{margin-right:var(\n--spectrum-fieldlabel-side-padding-right\n)}:host([side-label]) .percentage{margin-bottom:0;order:3}:host([indeterminate]) .fill{animation-timing-function:var(\n--spectrum-progressbar-indeterminate-animation-ease\n);position:relative;width:var(\n--spectrum-progressbar-indeterminate-fill-width\n);will-change:transform}:host([dir=ltr][indeterminate]) .fill{animation:indeterminate-loop-ltr var(--spectrum-progressbar-indeterminate-duration) infinite}:host([dir=rtl][indeterminate]) .fill{animation:indeterminate-loop-rtl var(--spectrum-progressbar-indeterminate-duration) infinite}@keyframes indeterminate-loop-ltr{0%{transform:translate(calc(var(--spectrum-progressbar-indeterminate-fill-width)*-1))}to{transform:translate(var(--spectrum-progressbar-width))}}@keyframes indeterminate-loop-rtl{0%{transform:translate(var(--spectrum-progressbar-width))}to{transform:translate(calc(var(--spectrum-progressbar-width)*-1))}}.fill{background:var(\n--spectrum-progressbar-m-track-fill-color,var(--spectrum-semantic-informative-color-default)\n)}.track{background-color:var(\n--spectrum-progressbar-m-track-color,var(--spectrum-alias-track-color-default)\n)}:host([over-background]) .fill{background:var(\n--spectrum-progressbar-m-overbackground-track-fill-color,var(--spectrum-alias-track-fill-color-overbackground)\n)}:host([over-background]) .label,:host([over-background]) .percentage{color:var(\n--spectrum-progressbar-m-overbackground-track-fill-color,var(--spectrum-alias-track-fill-color-overbackground)\n)}:host([over-background]) .track{background-color:var(\n--spectrum-progressbar-m-overbackground-track-color,var(--spectrum-alias-track-color-overbackground)\n)}:host([positive]) .fill{background:var(\n--spectrum-meter-m-positive-track-fill-color,var(--spectrum-semantic-positive-status-color)\n)}:host(.is-notice) .fill{background:var(\n--spectrum-meter-m-notice-track-fill-color,var(--spectrum-semantic-notice-status-color)\n)}:host(.is-negative) .fill{background:var(\n--spectrum-meter-m-negative-track-fill-color,var(--spectrum-semantic-negative-status-color)\n)}.label,.percentage{color:var(\n--spectrum-fieldlabel-m-text-color,var(--spectrum-alias-label-text-color)\n)}@media (forced-colors:active){.track{--spectrum-progressbar-m-track-fill-color:ButtonText;--spectrum-progressbar-m-track-color:ButtonFace;border:1px solid ButtonText;forced-color-adjust:none}}\n`;\nexport default styles;"],
|
5
|
+
"mappings": "AAWA;AACA,MAAM,SAAS;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AA2Ff,eAAe;",
|
6
|
+
"names": []
|
7
|
+
}
|
@@ -1,22 +1,11 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
4
|
-
you may not use this file except in compliance with the License. You may obtain a copy
|
5
|
-
of the License at http://www.apache.org/licenses/LICENSE-2.0
|
6
|
-
|
7
|
-
Unless required by applicable law or agreed to in writing, software distributed under
|
8
|
-
the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
|
9
|
-
OF ANY KIND, either express or implied. See the License for the specific language
|
10
|
-
governing permissions and limitations under the License.
|
11
|
-
*/
|
12
|
-
import { html } from '@spectrum-web-components/base';
|
13
|
-
import '../sp-progress-bar.js';
|
1
|
+
import { html } from "@spectrum-web-components/base";
|
2
|
+
import "@spectrum-web-components/progress-bar/sp-progress-bar.js";
|
14
3
|
export default {
|
15
|
-
|
16
|
-
|
4
|
+
title: "Progress Bar/Sizes",
|
5
|
+
component: "sp-progress-bar"
|
17
6
|
};
|
18
7
|
export const s = () => {
|
19
|
-
|
8
|
+
return html`
|
20
9
|
<sp-progress-bar
|
21
10
|
label="Loading"
|
22
11
|
progress="50"
|
@@ -25,7 +14,7 @@ export const s = () => {
|
|
25
14
|
`;
|
26
15
|
};
|
27
16
|
export const m = () => {
|
28
|
-
|
17
|
+
return html`
|
29
18
|
<sp-progress-bar
|
30
19
|
label="Loading"
|
31
20
|
progress="50"
|
@@ -34,7 +23,7 @@ export const m = () => {
|
|
34
23
|
`;
|
35
24
|
};
|
36
25
|
export const l = () => {
|
37
|
-
|
26
|
+
return html`
|
38
27
|
<sp-progress-bar
|
39
28
|
label="Loading"
|
40
29
|
progress="50"
|
@@ -43,7 +32,7 @@ export const l = () => {
|
|
43
32
|
`;
|
44
33
|
};
|
45
34
|
export const XL = () => {
|
46
|
-
|
35
|
+
return html`
|
47
36
|
<sp-progress-bar
|
48
37
|
label="Loading"
|
49
38
|
progress="50"
|
@@ -51,4 +40,4 @@ export const XL = () => {
|
|
51
40
|
></sp-progress-bar>
|
52
41
|
`;
|
53
42
|
};
|
54
|
-
//# sourceMappingURL=progress-bar-sizes.stories.js.map
|
43
|
+
//# sourceMappingURL=progress-bar-sizes.stories.js.map
|
@@ -1 +1,7 @@
|
|
1
|
-
{
|
1
|
+
{
|
2
|
+
"version": 3,
|
3
|
+
"sources": ["progress-bar-sizes.stories.ts"],
|
4
|
+
"sourcesContent": ["/*\nCopyright 2020 Adobe. All rights reserved.\nThis file is licensed to you under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License. You may obtain a copy\nof the License at http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software distributed under\nthe License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\nOF ANY KIND, either express or implied. See the License for the specific language\ngoverning permissions and limitations under the License.\n*/\n\nimport { html, TemplateResult } from '@spectrum-web-components/base';\n\nimport '@spectrum-web-components/progress-bar/sp-progress-bar.js';\n\nexport default {\n title: 'Progress Bar/Sizes',\n component: 'sp-progress-bar',\n};\n\nexport const s = (): TemplateResult => {\n return html`\n <sp-progress-bar\n label=\"Loading\"\n progress=\"50\"\n size=\"s\"\n ></sp-progress-bar>\n `;\n};\n\nexport const m = (): TemplateResult => {\n return html`\n <sp-progress-bar\n label=\"Loading\"\n progress=\"50\"\n size=\"m\"\n ></sp-progress-bar>\n `;\n};\n\nexport const l = (): TemplateResult => {\n return html`\n <sp-progress-bar\n label=\"Loading\"\n progress=\"50\"\n size=\"l\"\n ></sp-progress-bar>\n `;\n};\n\nexport const XL = (): TemplateResult => {\n return html`\n <sp-progress-bar\n label=\"Loading\"\n progress=\"50\"\n size=\"xl\"\n ></sp-progress-bar>\n `;\n};\n"],
|
5
|
+
"mappings": "AAYA;AAEA;AAEA,eAAe;AAAA,EACX,OAAO;AAAA,EACP,WAAW;AACf;AAEO,aAAM,IAAI,MAAsB;AACnC,SAAO;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAOX;AAEO,aAAM,IAAI,MAAsB;AACnC,SAAO;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAOX;AAEO,aAAM,IAAI,MAAsB;AACnC,SAAO;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAOX;AAEO,aAAM,KAAK,MAAsB;AACpC,SAAO;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAOX;",
|
6
|
+
"names": []
|
7
|
+
}
|
@@ -1,32 +1,21 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
4
|
-
you may not use this file except in compliance with the License. You may obtain a copy
|
5
|
-
of the License at http://www.apache.org/licenses/LICENSE-2.0
|
6
|
-
|
7
|
-
Unless required by applicable law or agreed to in writing, software distributed under
|
8
|
-
the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
|
9
|
-
OF ANY KIND, either express or implied. See the License for the specific language
|
10
|
-
governing permissions and limitations under the License.
|
11
|
-
*/
|
12
|
-
import { html } from '@spectrum-web-components/base';
|
13
|
-
import '../sp-progress-bar.js';
|
1
|
+
import { html } from "@spectrum-web-components/base";
|
2
|
+
import "@spectrum-web-components/progress-bar/sp-progress-bar.js";
|
14
3
|
export default {
|
15
|
-
|
16
|
-
|
4
|
+
title: "Progress Bar",
|
5
|
+
component: "sp-progress-bar"
|
17
6
|
};
|
18
7
|
export const label = () => {
|
19
|
-
|
8
|
+
return html`
|
20
9
|
<sp-progress-bar label="Loading" progress="50"></sp-progress-bar>
|
21
10
|
`;
|
22
11
|
};
|
23
12
|
export const indeterminate = () => {
|
24
|
-
|
13
|
+
return html`
|
25
14
|
<sp-progress-bar label="Loading" indeterminate></sp-progress-bar>
|
26
15
|
`;
|
27
16
|
};
|
28
17
|
export const sideLabel = () => {
|
29
|
-
|
18
|
+
return html`
|
30
19
|
<sp-progress-bar
|
31
20
|
side-label
|
32
21
|
label="Loading"
|
@@ -35,7 +24,7 @@ export const sideLabel = () => {
|
|
35
24
|
`;
|
36
25
|
};
|
37
26
|
export const sideIndeterminate = () => {
|
38
|
-
|
27
|
+
return html`
|
39
28
|
<sp-progress-bar
|
40
29
|
side-label
|
41
30
|
label="Loading"
|
@@ -43,7 +32,7 @@ export const sideIndeterminate = () => {
|
|
43
32
|
></sp-progress-bar>
|
44
33
|
`;
|
45
34
|
};
|
46
|
-
const makeOverBackground = (story) => html
|
35
|
+
const makeOverBackground = (story) => html`
|
47
36
|
<div
|
48
37
|
style="background-color: var(--spectrum-global-color-seafoam-600); color: var(--spectrum-global-color-seafoam-600); padding: var(--spectrum-global-dimension-size-175) var(--spectrum-global-dimension-size-250); display: inline-block"
|
49
38
|
>
|
@@ -51,12 +40,12 @@ const makeOverBackground = (story) => html `
|
|
51
40
|
</div>
|
52
41
|
`;
|
53
42
|
export const overBackground = () => {
|
54
|
-
|
43
|
+
return makeOverBackground(html`
|
55
44
|
<sp-progress-bar progress="50" over-background></sp-progress-bar>
|
56
45
|
`);
|
57
46
|
};
|
58
47
|
export const overBackgroundLabel = () => {
|
59
|
-
|
48
|
+
return makeOverBackground(html`
|
60
49
|
<sp-progress-bar
|
61
50
|
label="Loading"
|
62
51
|
progress="50"
|
@@ -65,7 +54,7 @@ export const overBackgroundLabel = () => {
|
|
65
54
|
`);
|
66
55
|
};
|
67
56
|
export const overBackgroundIndeterminate = () => {
|
68
|
-
|
57
|
+
return makeOverBackground(html`
|
69
58
|
<sp-progress-bar
|
70
59
|
label="Loading"
|
71
60
|
indeterminate
|
@@ -74,7 +63,7 @@ export const overBackgroundIndeterminate = () => {
|
|
74
63
|
`);
|
75
64
|
};
|
76
65
|
export const overBackgroundSideLabel = () => {
|
77
|
-
|
66
|
+
return makeOverBackground(html`
|
78
67
|
<sp-progress-bar
|
79
68
|
label="Loading"
|
80
69
|
progress="50"
|
@@ -84,7 +73,7 @@ export const overBackgroundSideLabel = () => {
|
|
84
73
|
`);
|
85
74
|
};
|
86
75
|
export const overBackgroundSideLabelIndeterminate = () => {
|
87
|
-
|
76
|
+
return makeOverBackground(html`
|
88
77
|
<sp-progress-bar
|
89
78
|
label="Loading"
|
90
79
|
indeterminate
|
@@ -93,4 +82,4 @@ export const overBackgroundSideLabelIndeterminate = () => {
|
|
93
82
|
></sp-progress-bar>
|
94
83
|
`);
|
95
84
|
};
|
96
|
-
//# sourceMappingURL=progress-bar.stories.js.map
|
85
|
+
//# sourceMappingURL=progress-bar.stories.js.map
|
@@ -1 +1,7 @@
|
|
1
|
-
{
|
1
|
+
{
|
2
|
+
"version": 3,
|
3
|
+
"sources": ["progress-bar.stories.ts"],
|
4
|
+
"sourcesContent": ["/*\nCopyright 2020 Adobe. All rights reserved.\nThis file is licensed to you under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License. You may obtain a copy\nof the License at http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software distributed under\nthe License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\nOF ANY KIND, either express or implied. See the License for the specific language\ngoverning permissions and limitations under the License.\n*/\n\nimport { html, TemplateResult } from '@spectrum-web-components/base';\n\nimport '@spectrum-web-components/progress-bar/sp-progress-bar.js';\n\nexport default {\n title: 'Progress Bar',\n component: 'sp-progress-bar',\n};\n\nexport const label = (): TemplateResult => {\n return html`\n <sp-progress-bar label=\"Loading\" progress=\"50\"></sp-progress-bar>\n `;\n};\n\nexport const indeterminate = (): TemplateResult => {\n return html`\n <sp-progress-bar label=\"Loading\" indeterminate></sp-progress-bar>\n `;\n};\n\nexport const sideLabel = (): TemplateResult => {\n return html`\n <sp-progress-bar\n side-label\n label=\"Loading\"\n progress=\"50\"\n ></sp-progress-bar>\n `;\n};\n\nexport const sideIndeterminate = (): TemplateResult => {\n return html`\n <sp-progress-bar\n side-label\n label=\"Loading\"\n indeterminate\n ></sp-progress-bar>\n `;\n};\n\nconst makeOverBackground = (story: TemplateResult): TemplateResult => html`\n <div\n style=\"background-color: var(--spectrum-global-color-seafoam-600); color: var(--spectrum-global-color-seafoam-600); padding: var(--spectrum-global-dimension-size-175) var(--spectrum-global-dimension-size-250); display: inline-block\"\n >\n ${story}\n </div>\n`;\n\nexport const overBackground = (): TemplateResult => {\n return makeOverBackground(html`\n <sp-progress-bar progress=\"50\" over-background></sp-progress-bar>\n `);\n};\n\nexport const overBackgroundLabel = (): TemplateResult => {\n return makeOverBackground(html`\n <sp-progress-bar\n label=\"Loading\"\n progress=\"50\"\n over-background\n ></sp-progress-bar>\n `);\n};\n\nexport const overBackgroundIndeterminate = (): TemplateResult => {\n return makeOverBackground(html`\n <sp-progress-bar\n label=\"Loading\"\n indeterminate\n over-background\n ></sp-progress-bar>\n `);\n};\n\nexport const overBackgroundSideLabel = (): TemplateResult => {\n return makeOverBackground(html`\n <sp-progress-bar\n label=\"Loading\"\n progress=\"50\"\n over-background\n side-label\n ></sp-progress-bar>\n `);\n};\n\nexport const overBackgroundSideLabelIndeterminate = (): TemplateResult => {\n return makeOverBackground(html`\n <sp-progress-bar\n label=\"Loading\"\n indeterminate\n over-background\n side-label\n ></sp-progress-bar>\n `);\n};\n"],
|
5
|
+
"mappings": "AAYA;AAEA;AAEA,eAAe;AAAA,EACX,OAAO;AAAA,EACP,WAAW;AACf;AAEO,aAAM,QAAQ,MAAsB;AACvC,SAAO;AAAA;AAAA;AAGX;AAEO,aAAM,gBAAgB,MAAsB;AAC/C,SAAO;AAAA;AAAA;AAGX;AAEO,aAAM,YAAY,MAAsB;AAC3C,SAAO;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAOX;AAEO,aAAM,oBAAoB,MAAsB;AACnD,SAAO;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAOX;AAEA,MAAM,qBAAqB,CAAC,UAA0C;AAAA;AAAA;AAAA;AAAA,UAI5D;AAAA;AAAA;AAIH,aAAM,iBAAiB,MAAsB;AAChD,SAAO,mBAAmB;AAAA;AAAA,KAEzB;AACL;AAEO,aAAM,sBAAsB,MAAsB;AACrD,SAAO,mBAAmB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,KAMzB;AACL;AAEO,aAAM,8BAA8B,MAAsB;AAC7D,SAAO,mBAAmB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,KAMzB;AACL;AAEO,aAAM,0BAA0B,MAAsB;AACzD,SAAO,mBAAmB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,KAOzB;AACL;AAEO,aAAM,uCAAuC,MAAsB;AACtE,SAAO,mBAAmB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,KAOzB;AACL;",
|
6
|
+
"names": []
|
7
|
+
}
|
@@ -1,18 +1,7 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
of the License at http://www.apache.org/licenses/LICENSE-2.0
|
6
|
-
|
7
|
-
Unless required by applicable law or agreed to in writing, software distributed under
|
8
|
-
the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
|
9
|
-
OF ANY KIND, either express or implied. See the License for the specific language
|
10
|
-
governing permissions and limitations under the License.
|
11
|
-
*/
|
12
|
-
import '@spectrum-web-components/progress-bar/sp-progress-bar.js';
|
13
|
-
import { html } from 'lit';
|
14
|
-
import { measureFixtureCreation } from '../../../../test/benchmark/helpers.js';
|
15
|
-
measureFixtureCreation(html `
|
1
|
+
import "@spectrum-web-components/progress-bar/sp-progress-bar.js";
|
2
|
+
import { html } from "lit";
|
3
|
+
import { measureFixtureCreation } from "../../../../test/benchmark/helpers.js";
|
4
|
+
measureFixtureCreation(html`
|
16
5
|
<sp-progress-bar label="Loading" indeterminate></sp-progress-bar>
|
17
6
|
`);
|
18
|
-
//# sourceMappingURL=basic-test.js.map
|
7
|
+
//# sourceMappingURL=basic-test.js.map
|
@@ -1 +1,7 @@
|
|
1
|
-
{
|
1
|
+
{
|
2
|
+
"version": 3,
|
3
|
+
"sources": ["basic-test.ts"],
|
4
|
+
"sourcesContent": ["/*\nCopyright 2020 Adobe. All rights reserved.\nThis file is licensed to you under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License. You may obtain a copy\nof the License at http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software distributed under\nthe License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\nOF ANY KIND, either express or implied. See the License for the specific language\ngoverning permissions and limitations under the License.\n*/\n\nimport '@spectrum-web-components/progress-bar/sp-progress-bar.js';\nimport { html } from 'lit';\nimport { measureFixtureCreation } from '../../../../test/benchmark/helpers.js';\n\nmeasureFixtureCreation(html`\n <sp-progress-bar label=\"Loading\" indeterminate></sp-progress-bar>\n`);\n"],
|
5
|
+
"mappings": "AAYA;AACA;AACA;AAEA,uBAAuB;AAAA;AAAA,CAEtB;",
|
6
|
+
"names": []
|
7
|
+
}
|
@@ -1,15 +1,4 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
of the License at http://www.apache.org/licenses/LICENSE-2.0
|
6
|
-
|
7
|
-
Unless required by applicable law or agreed to in writing, software distributed under
|
8
|
-
the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
|
9
|
-
OF ANY KIND, either express or implied. See the License for the specific language
|
10
|
-
governing permissions and limitations under the License.
|
11
|
-
*/
|
12
|
-
import * as stories from '../stories/progress-bar-sizes.stories.js';
|
13
|
-
import { regressVisuals } from '../../../test/visual/test.js';
|
14
|
-
regressVisuals('ProgressBarSizesStories', stories);
|
15
|
-
//# sourceMappingURL=progress-bar-sizes.test-vrt.js.map
|
1
|
+
import * as stories from "../stories/progress-bar-sizes.stories.js";
|
2
|
+
import { regressVisuals } from "../../../test/visual/test.js";
|
3
|
+
regressVisuals("ProgressBarSizesStories", stories);
|
4
|
+
//# sourceMappingURL=progress-bar-sizes.test-vrt.js.map
|
@@ -1 +1,7 @@
|
|
1
|
-
{
|
1
|
+
{
|
2
|
+
"version": 3,
|
3
|
+
"sources": ["progress-bar-sizes.test-vrt.ts"],
|
4
|
+
"sourcesContent": ["/*\nCopyright 2020 Adobe. All rights reserved.\nThis file is licensed to you under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License. You may obtain a copy\nof the License at http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software distributed under\nthe License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\nOF ANY KIND, either express or implied. See the License for the specific language\ngoverning permissions and limitations under the License.\n*/\n\nimport * as stories from '../stories/progress-bar-sizes.stories.js';\nimport { regressVisuals } from '../../../test/visual/test.js';\n\nregressVisuals('ProgressBarSizesStories', stories);\n"],
|
5
|
+
"mappings": "AAYA;AACA;AAEA,eAAe,2BAA2B,OAAO;",
|
6
|
+
"names": []
|
7
|
+
}
|
@@ -1,15 +1,4 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
of the License at http://www.apache.org/licenses/LICENSE-2.0
|
6
|
-
|
7
|
-
Unless required by applicable law or agreed to in writing, software distributed under
|
8
|
-
the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
|
9
|
-
OF ANY KIND, either express or implied. See the License for the specific language
|
10
|
-
governing permissions and limitations under the License.
|
11
|
-
*/
|
12
|
-
import * as stories from '../stories/progress-bar.stories.js';
|
13
|
-
import { regressVisuals } from '../../../test/visual/test.js';
|
14
|
-
regressVisuals('ProgressBarStories', stories);
|
15
|
-
//# sourceMappingURL=progress-bar.test-vrt.js.map
|
1
|
+
import * as stories from "../stories/progress-bar.stories.js";
|
2
|
+
import { regressVisuals } from "../../../test/visual/test.js";
|
3
|
+
regressVisuals("ProgressBarStories", stories);
|
4
|
+
//# sourceMappingURL=progress-bar.test-vrt.js.map
|
@@ -1 +1,7 @@
|
|
1
|
-
{
|
1
|
+
{
|
2
|
+
"version": 3,
|
3
|
+
"sources": ["progress-bar.test-vrt.ts"],
|
4
|
+
"sourcesContent": ["/*\nCopyright 2020 Adobe. All rights reserved.\nThis file is licensed to you under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License. You may obtain a copy\nof the License at http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software distributed under\nthe License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\nOF ANY KIND, either express or implied. See the License for the specific language\ngoverning permissions and limitations under the License.\n*/\n\nimport * as stories from '../stories/progress-bar.stories.js';\nimport { regressVisuals } from '../../../test/visual/test.js';\n\nregressVisuals('ProgressBarStories', stories);\n"],
|
5
|
+
"mappings": "AAYA;AACA;AAEA,eAAe,sBAAsB,OAAO;",
|
6
|
+
"names": []
|
7
|
+
}
|