@spectrum-web-components/progress-bar 0.8.8-react.49 → 0.9.0
Sign up to get free protection for your applications and to get access to all the features.
- package/custom-elements.json +20 -3
- package/package.json +5 -5
- package/src/ProgressBar.d.ts +1 -0
- package/src/ProgressBar.dev.js +3 -0
- package/src/ProgressBar.dev.js.map +2 -2
- package/src/ProgressBar.js +5 -5
- package/src/ProgressBar.js.map +2 -2
- package/src/progress-bar.css.dev.js +119 -87
- package/src/progress-bar.css.dev.js.map +2 -2
- package/src/progress-bar.css.js +119 -87
- package/src/progress-bar.css.js.map +2 -2
- package/src/spectrum-config.js +14 -0
- package/src/spectrum-progress-bar.css.dev.js +119 -87
- package/src/spectrum-progress-bar.css.dev.js.map +2 -2
- package/src/spectrum-progress-bar.css.js +119 -87
- package/src/spectrum-progress-bar.css.js.map +2 -2
- package/stories/progress-bar.stories.js +10 -10
- package/stories/progress-bar.stories.js.map +2 -2
@@ -1,7 +1,7 @@
|
|
1
1
|
{
|
2
2
|
"version": 3,
|
3
3
|
"sources": ["spectrum-progress-bar.css.ts"],
|
4
|
-
"sourcesContent": ["/*\nCopyright 2023 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
|
5
|
-
"mappings": ";AAWA,SAAS,WAAW;AACpB,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;
|
4
|
+
"sourcesContent": ["/*\nCopyright 2023 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{--spectrum-progressbar-animation-ease-in-out-indeterminate:var(\n--spectrum-animation-ease-in-out\n);--spectrum-progressbar-animation-duration-indeterminate:var(\n--spectrum-animation-duration-2000\n);--spectrum-progressbar-corner-radius:var(--spectrum-corner-radius-100);--spectrum-progressbar-fill-size-indeterminate:70%;--spectrum-progressbar-size-2400:192px;--spectrum-progressbar-size-2500:200px;--spectrum-progressbar-size-2800:224px;--spectrum-progressbar-font-size:var(--spectrum-font-size-75);--spectrum-progressbar-line-height-cjk:var(--spectrum-cjk-line-height-100);--spectrum-progressbar-min-size:var(--spectrum-progress-bar-minimum-width);--spectrum-progressbar-max-size:var(--spectrum-progress-bar-maximum-width);--spectrum-progressbar-thickness:var(\n--spectrum-progress-bar-thickness-medium\n);--spectrum-progressbar-line-height:var(--spectrum-line-height-100);--spectrum-progressbar-spacing-label-to-progressbar:var(\n--spectrum-spacing-75\n);--spectrum-progressbar-spacing-top-to-text:var(\n--spectrum-component-top-to-text-100\n);--spectrum-progressbar-spacing-label-to-text:var(--spectrum-spacing-200);--spectrum-progressbar-text-color:var(\n--spectrum-neutral-content-color-default\n);--spectrum-progressbar-track-color:var(--spectrum-gray-300);--spectrum-progressbar-fill-color:var(--spectrum-accent-color-900);--spectrum-progressbar-fill-color-positive:var(\n--spectrum-positive-visual-color\n);--spectrum-progressbar-fill-color-notice:var(\n--spectrum-notice-visual-color\n);--spectrum-progressbar-fill-color-negative:var(\n--spectrum-negative-visual-color\n);--spectrum-progressbar-label-and-value-white:var(--spectrum-white);--spectrum-progressbar-track-color-white:var(\n--spectrum-transparent-white-300\n);--spectrum-progressbar-fill-color-white:var(--spectrum-white)}:host([size=s]){--spectrum-progressbar-size-default:var(\n--spectrum-progressbar-size-2400\n);--spectrum-progressbar-font-size:var(--spectrum-font-size-75);--spectrum-progressbar-thickness:var(\n--spectrum-progress-bar-thickness-small\n);--spectrum-progressbar-spacing-top-to-text:var(\n--spectrum-component-top-to-text-75\n)}:host([size=m]){--spectrum-progressbar-size-default:var(\n--spectrum-progressbar-size-2400\n);--spectrum-progressbar-font-size:var(--spectrum-font-size-75);--spectrum-progressbar-thickness:var(\n--spectrum-progress-bar-thickness-large\n);--spectrum-progressbar-spacing-top-to-text:var(\n--spectrum-component-top-to-text-75\n)}:host([size=l]){--spectrum-progressbar-size-default:var(\n--spectrum-progressbar-size-2500\n);--spectrum-progressbar-font-size:var(--spectrum-font-size-100);--spectrum-progressbar-thickness:var(\n--spectrum-progress-bar-thickness-large\n);--spectrum-progressbar-spacing-top-to-text:var(\n--spectrum-component-top-to-text-200\n)}:host([size=xl]){--spectrum-progressbar-size-default:var(\n--spectrum-progressbar-size-2800\n);--spectrum-progressbar-font-size:var(--spectrum-font-size-200);--spectrum-progressbar-thickness:var(\n--spectrum-progress-bar-thickness-extra-large\n);--spectrum-progressbar-spacing-top-to-text:var(\n--spectrum-component-top-to-text-300\n)}@media (forced-colors:active){.track{--highcontrast-progressbar-fill-color:ButtonText;--highcontrast-progressbar-track-color:ButtonFace;border:1px solid ButtonText;forced-color-adjust:none}}:host{align-items:center;display:inline-flex;flex-flow:row wrap;font-size:var(\n--mod-progressbar-font-size,var(--spectrum-progressbar-font-size)\n);inline-size:var(\n--mod-progressbar-size-default,var(--spectrum-progressbar-size-default)\n);justify-content:space-between;max-inline-size:var(\n--mod-progressbar-max-size,var(--spectrum-progressbar-max-size)\n);min-inline-size:var(\n--mod-progressbar-min-size,var(--spectrum-progressbar-min-size)\n);position:relative;vertical-align:top}.label,.percentage{color:var(\n--mod-progressbar-text-color,var(--spectrum-progressbar-text-color)\n);line-height:var(\n--mod-progressbar-line-height,var(--spectrum-progressbar-line-height)\n);margin-block-end:var(\n--mod-progressbar-spacing-label-to-progressbar,var(--spectrum-progressbar-spacing-label-to-progressbar)\n);margin-block-start:var(\n--mod-progressbar-spacing-top-to-text,var(--spectrum-progressbar-spacing-top-to-text)\n);text-align:start}.label:lang(ja),.label:lang(ko),.label:lang(zh),.percentage:lang(ja),.percentage:lang(ko),.percentage:lang(zh){line-height:var(\n--mod-progressbar-line-height-cjk,var(--spectrum-progressbar-line-height-cjk)\n)}.label{flex:1 1 0%}.percentage{align-self:flex-start;margin-inline-start:var(\n--mod-progressbar-spacing-label-to-text,var(--spectrum-progressbar-spacing-label-to-text)\n)}.track{background:var(\n--highcontrast-progressbar-track-color,var(\n--mod-progressbar-track-color,var(--spectrum-progressbar-track-color)\n)\n);block-size:var(\n--mod-progressbar-thickness,var(--spectrum-progressbar-thickness)\n);border-radius:var(--spectrum-progressbar-corner-radius);inline-size:100%;overflow:hidden}:host([positive]) .fill{background:var(\n--highcontrast-progressbar-fill-color,var(\n--mod-progressbar-fill-color-positive,var(--spectrum-progressbar-fill-color-positive)\n)\n)}:host(.is-notice) .fill{background:var(\n--highcontrast-progressbar-fill-color,var(\n--mod-progressbar-fill-color-notice,var(--spectrum-progressbar-fill-color-notice)\n)\n)}:host(.is-negative) .fill{background:var(\n--highcontrast-progressbar-fill-color,var(\n--mod-progressbar-fill-color-negative,var(--spectrum-progressbar-fill-color-negative)\n)\n)}.fill{background:var(\n--highcontrast-progressbar-fill-color,var(\n--mod-progressbar-fill-color,var(--spectrum-progressbar-fill-color)\n)\n);block-size:var(\n--mod-progressbar-thickness,var(--spectrum-progressbar-thickness)\n);border:none;transition:width 1s}:host([indeterminate]) .fill{animation-timing-function:var(\n--mod-progressbar-animation-ease-in-out-indeterminate,var(--spectrum-progressbar-animation-ease-in-out-indeterminate)\n);inline-size:var(\n--mod-progressbar-fill-size-indeterminate,var(--spectrum-progressbar-fill-size-indeterminate)\n);position:relative;will-change:transform}:host([side-label]){display:inline-flex;flex-flow:row;justify-content:space-between}:host([side-label]) .track{flex:1 1 var(\n--mod-progressbar-size-default,var(--spectrum-progressbar-size-default)\n)}:host([side-label]) .label{flex-grow:0;margin-block-end:0;margin-inline-end:var(\n--mod-progressbar-spacing-label-to-text,var(--spectrum-progressbar-spacing-label-to-text)\n)}:host([side-label]) .percentage{margin-block-end:0;margin-inline-start:var(\n--mod-spacing-progressbar-label-to-text,var(--spectrum-progressbar-spacing-label-to-text)\n);order:3;text-align:end}:host([static=white]) .fill{background:var(\n--mod-progressbar-fill-color-white,var(--spectrum-progressbar-fill-color-white)\n);color:var(\n--mod-progressbar-label-and-value-white,var(--spectrum-progressbar-label-and-value-white)\n)}:host([static=white]) .label,:host([static=white]) .percentage{color:var(\n--mode-progressbar-label-and-value-white,var(--spectrum-progressbar-label-and-value-white)\n)}:host([static=white]) .track{background-color:var(\n--spectrum-progressbar-track-color-white\n)}:host([dir=ltr][indeterminate]) .fill{animation:indeterminate-loop-ltr var(\n--mod-progressbar-animation-duration-indeterminate,var(--spectrum-progressbar-animation-duration-indeterminate)\n) infinite}:host([dir=rtl][indeterminate]) .fill{animation:indeterminate-loop-rtl var(\n--mod-progressbar-animation-duration-indeterminate,var(--spectrum-progressbar-animation-duration-indeterminate)\n) infinite}@keyframes indeterminate-loop-ltr{0%{transform:translate(calc(var(\n--mod-progressbar-fill-size-indeterminate,\nvar(--spectrum-progressbar-fill-size-indeterminate)\n)*-1))}to{transform:translate(var(\n--mod-progressbar-size-default,var(--spectrum-progressbar-size-default)\n))}}@keyframes indeterminate-loop-rtl{0%{transform:translate(var(\n--mod-progressbar-size-default,var(--spectrum-progressbar-fill-size-indeterminate)\n))}to{transform:translate(calc(var(\n--mod-progressbar-size-default,\nvar(--spectrum-progressbar-size-default)\n)*-1))}}\n`;\nexport default styles;"],
|
5
|
+
"mappings": ";AAWA,SAAS,WAAW;AACpB,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;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;AA2Hf,eAAe;",
|
6
6
|
"names": []
|
7
7
|
}
|
@@ -1,92 +1,124 @@
|
|
1
1
|
"use strict";import{css as r}from"@spectrum-web-components/base";const e=r`
|
2
|
-
:host
|
3
|
-
--spectrum-
|
4
|
-
);--spectrum-progressbar-
|
5
|
-
--spectrum-
|
6
|
-
);--spectrum-progressbar-indeterminate-
|
7
|
-
--spectrum-
|
8
|
-
);--spectrum-progressbar-
|
9
|
-
--spectrum-
|
10
|
-
);--spectrum-progressbar-
|
11
|
-
--spectrum-
|
12
|
-
);--spectrum-progressbar-
|
13
|
-
--spectrum-
|
14
|
-
)
|
15
|
-
--spectrum-
|
16
|
-
);--spectrum-progressbar-
|
17
|
-
--spectrum-
|
18
|
-
);--spectrum-progressbar-
|
19
|
-
--spectrum-
|
20
|
-
);--spectrum-progressbar-value-
|
21
|
-
--spectrum-
|
22
|
-
);--spectrum-progressbar-
|
23
|
-
--spectrum-progressbar-
|
24
|
-
);--spectrum-progressbar-
|
25
|
-
--spectrum-
|
26
|
-
);--spectrum-
|
27
|
-
--spectrum-
|
28
|
-
)}:host([size=
|
29
|
-
--spectrum-progressbar-
|
30
|
-
);--spectrum-progressbar-
|
31
|
-
--spectrum-
|
32
|
-
);--spectrum-progressbar-
|
33
|
-
--spectrum-
|
34
|
-
)
|
35
|
-
--spectrum-progressbar-
|
36
|
-
);--spectrum-progressbar-
|
37
|
-
--spectrum-
|
38
|
-
);--spectrum-progressbar-
|
39
|
-
--spectrum-
|
40
|
-
)}:host([size=xl]){--spectrum-progressbar-
|
41
|
-
--spectrum-progressbar-
|
42
|
-
);--spectrum-progressbar-
|
43
|
-
--spectrum-
|
44
|
-
);--spectrum-progressbar-
|
45
|
-
--spectrum-
|
46
|
-
);--
|
47
|
-
--
|
48
|
-
)
|
49
|
-
--
|
50
|
-
)
|
51
|
-
--
|
52
|
-
)
|
53
|
-
--spectrum-progressbar-
|
54
|
-
)}.label
|
55
|
-
--spectrum-
|
56
|
-
)
|
57
|
-
--spectrum-
|
58
|
-
)
|
59
|
-
--spectrum-progressbar-
|
60
|
-
)
|
61
|
-
--spectrum-
|
62
|
-
)}:
|
63
|
-
--spectrum-
|
64
|
-
)}
|
65
|
-
--spectrum-
|
66
|
-
)}
|
67
|
-
--
|
68
|
-
|
69
|
-
|
70
|
-
);
|
71
|
-
--
|
72
|
-
);
|
73
|
-
--
|
74
|
-
|
75
|
-
|
76
|
-
)}:host([over-background]) .fill{background:var(
|
77
|
-
--spectrum-progressbar-m-overbackground-track-fill-color,var(--spectrum-alias-track-fill-color-overbackground)
|
78
|
-
)}:host([over-background]) .label,:host([over-background]) .percentage{color:var(
|
79
|
-
--spectrum-progressbar-m-overbackground-track-fill-color,var(--spectrum-alias-track-fill-color-overbackground)
|
80
|
-
)}:host([over-background]) .track{background-color:var(
|
81
|
-
--spectrum-progressbar-m-overbackground-track-color,var(--spectrum-alias-track-color-overbackground)
|
82
|
-
)}:host([positive]) .fill{background:var(
|
83
|
-
--spectrum-meter-m-positive-track-fill-color,var(--spectrum-semantic-positive-status-color)
|
2
|
+
:host{--spectrum-progressbar-animation-ease-in-out-indeterminate:var(
|
3
|
+
--spectrum-animation-ease-in-out
|
4
|
+
);--spectrum-progressbar-animation-duration-indeterminate:var(
|
5
|
+
--spectrum-animation-duration-2000
|
6
|
+
);--spectrum-progressbar-corner-radius:var(--spectrum-corner-radius-100);--spectrum-progressbar-fill-size-indeterminate:70%;--spectrum-progressbar-size-2400:192px;--spectrum-progressbar-size-2500:200px;--spectrum-progressbar-size-2800:224px;--spectrum-progressbar-font-size:var(--spectrum-font-size-75);--spectrum-progressbar-line-height-cjk:var(--spectrum-cjk-line-height-100);--spectrum-progressbar-min-size:var(--spectrum-progress-bar-minimum-width);--spectrum-progressbar-max-size:var(--spectrum-progress-bar-maximum-width);--spectrum-progressbar-thickness:var(
|
7
|
+
--spectrum-progress-bar-thickness-medium
|
8
|
+
);--spectrum-progressbar-line-height:var(--spectrum-line-height-100);--spectrum-progressbar-spacing-label-to-progressbar:var(
|
9
|
+
--spectrum-spacing-75
|
10
|
+
);--spectrum-progressbar-spacing-top-to-text:var(
|
11
|
+
--spectrum-component-top-to-text-100
|
12
|
+
);--spectrum-progressbar-spacing-label-to-text:var(--spectrum-spacing-200);--spectrum-progressbar-text-color:var(
|
13
|
+
--spectrum-neutral-content-color-default
|
14
|
+
);--spectrum-progressbar-track-color:var(--spectrum-gray-300);--spectrum-progressbar-fill-color:var(--spectrum-accent-color-900);--spectrum-progressbar-fill-color-positive:var(
|
15
|
+
--spectrum-positive-visual-color
|
16
|
+
);--spectrum-progressbar-fill-color-notice:var(
|
17
|
+
--spectrum-notice-visual-color
|
18
|
+
);--spectrum-progressbar-fill-color-negative:var(
|
19
|
+
--spectrum-negative-visual-color
|
20
|
+
);--spectrum-progressbar-label-and-value-white:var(--spectrum-white);--spectrum-progressbar-track-color-white:var(
|
21
|
+
--spectrum-transparent-white-300
|
22
|
+
);--spectrum-progressbar-fill-color-white:var(--spectrum-white)}:host([size=s]){--spectrum-progressbar-size-default:var(
|
23
|
+
--spectrum-progressbar-size-2400
|
24
|
+
);--spectrum-progressbar-font-size:var(--spectrum-font-size-75);--spectrum-progressbar-thickness:var(
|
25
|
+
--spectrum-progress-bar-thickness-small
|
26
|
+
);--spectrum-progressbar-spacing-top-to-text:var(
|
27
|
+
--spectrum-component-top-to-text-75
|
28
|
+
)}:host([size=m]){--spectrum-progressbar-size-default:var(
|
29
|
+
--spectrum-progressbar-size-2400
|
30
|
+
);--spectrum-progressbar-font-size:var(--spectrum-font-size-75);--spectrum-progressbar-thickness:var(
|
31
|
+
--spectrum-progress-bar-thickness-large
|
32
|
+
);--spectrum-progressbar-spacing-top-to-text:var(
|
33
|
+
--spectrum-component-top-to-text-75
|
34
|
+
)}:host([size=l]){--spectrum-progressbar-size-default:var(
|
35
|
+
--spectrum-progressbar-size-2500
|
36
|
+
);--spectrum-progressbar-font-size:var(--spectrum-font-size-100);--spectrum-progressbar-thickness:var(
|
37
|
+
--spectrum-progress-bar-thickness-large
|
38
|
+
);--spectrum-progressbar-spacing-top-to-text:var(
|
39
|
+
--spectrum-component-top-to-text-200
|
40
|
+
)}:host([size=xl]){--spectrum-progressbar-size-default:var(
|
41
|
+
--spectrum-progressbar-size-2800
|
42
|
+
);--spectrum-progressbar-font-size:var(--spectrum-font-size-200);--spectrum-progressbar-thickness:var(
|
43
|
+
--spectrum-progress-bar-thickness-extra-large
|
44
|
+
);--spectrum-progressbar-spacing-top-to-text:var(
|
45
|
+
--spectrum-component-top-to-text-300
|
46
|
+
)}@media (forced-colors:active){.track{--highcontrast-progressbar-fill-color:ButtonText;--highcontrast-progressbar-track-color:ButtonFace;border:1px solid ButtonText;forced-color-adjust:none}}:host{align-items:center;display:inline-flex;flex-flow:row wrap;font-size:var(
|
47
|
+
--mod-progressbar-font-size,var(--spectrum-progressbar-font-size)
|
48
|
+
);inline-size:var(
|
49
|
+
--mod-progressbar-size-default,var(--spectrum-progressbar-size-default)
|
50
|
+
);justify-content:space-between;max-inline-size:var(
|
51
|
+
--mod-progressbar-max-size,var(--spectrum-progressbar-max-size)
|
52
|
+
);min-inline-size:var(
|
53
|
+
--mod-progressbar-min-size,var(--spectrum-progressbar-min-size)
|
54
|
+
);position:relative;vertical-align:top}.label,.percentage{color:var(
|
55
|
+
--mod-progressbar-text-color,var(--spectrum-progressbar-text-color)
|
56
|
+
);line-height:var(
|
57
|
+
--mod-progressbar-line-height,var(--spectrum-progressbar-line-height)
|
58
|
+
);margin-block-end:var(
|
59
|
+
--mod-progressbar-spacing-label-to-progressbar,var(--spectrum-progressbar-spacing-label-to-progressbar)
|
60
|
+
);margin-block-start:var(
|
61
|
+
--mod-progressbar-spacing-top-to-text,var(--spectrum-progressbar-spacing-top-to-text)
|
62
|
+
);text-align:start}.label:lang(ja),.label:lang(ko),.label:lang(zh),.percentage:lang(ja),.percentage:lang(ko),.percentage:lang(zh){line-height:var(
|
63
|
+
--mod-progressbar-line-height-cjk,var(--spectrum-progressbar-line-height-cjk)
|
64
|
+
)}.label{flex:1 1 0%}.percentage{align-self:flex-start;margin-inline-start:var(
|
65
|
+
--mod-progressbar-spacing-label-to-text,var(--spectrum-progressbar-spacing-label-to-text)
|
66
|
+
)}.track{background:var(
|
67
|
+
--highcontrast-progressbar-track-color,var(
|
68
|
+
--mod-progressbar-track-color,var(--spectrum-progressbar-track-color)
|
69
|
+
)
|
70
|
+
);block-size:var(
|
71
|
+
--mod-progressbar-thickness,var(--spectrum-progressbar-thickness)
|
72
|
+
);border-radius:var(--spectrum-progressbar-corner-radius);inline-size:100%;overflow:hidden}:host([positive]) .fill{background:var(
|
73
|
+
--highcontrast-progressbar-fill-color,var(
|
74
|
+
--mod-progressbar-fill-color-positive,var(--spectrum-progressbar-fill-color-positive)
|
75
|
+
)
|
84
76
|
)}:host(.is-notice) .fill{background:var(
|
85
|
-
--
|
77
|
+
--highcontrast-progressbar-fill-color,var(
|
78
|
+
--mod-progressbar-fill-color-notice,var(--spectrum-progressbar-fill-color-notice)
|
79
|
+
)
|
86
80
|
)}:host(.is-negative) .fill{background:var(
|
87
|
-
--
|
88
|
-
|
89
|
-
|
90
|
-
)}
|
81
|
+
--highcontrast-progressbar-fill-color,var(
|
82
|
+
--mod-progressbar-fill-color-negative,var(--spectrum-progressbar-fill-color-negative)
|
83
|
+
)
|
84
|
+
)}.fill{background:var(
|
85
|
+
--highcontrast-progressbar-fill-color,var(
|
86
|
+
--mod-progressbar-fill-color,var(--spectrum-progressbar-fill-color)
|
87
|
+
)
|
88
|
+
);block-size:var(
|
89
|
+
--mod-progressbar-thickness,var(--spectrum-progressbar-thickness)
|
90
|
+
);border:none;transition:width 1s}:host([indeterminate]) .fill{animation-timing-function:var(
|
91
|
+
--mod-progressbar-animation-ease-in-out-indeterminate,var(--spectrum-progressbar-animation-ease-in-out-indeterminate)
|
92
|
+
);inline-size:var(
|
93
|
+
--mod-progressbar-fill-size-indeterminate,var(--spectrum-progressbar-fill-size-indeterminate)
|
94
|
+
);position:relative;will-change:transform}:host([side-label]){display:inline-flex;flex-flow:row;justify-content:space-between}:host([side-label]) .track{flex:1 1 var(
|
95
|
+
--mod-progressbar-size-default,var(--spectrum-progressbar-size-default)
|
96
|
+
)}:host([side-label]) .label{flex-grow:0;margin-block-end:0;margin-inline-end:var(
|
97
|
+
--mod-progressbar-spacing-label-to-text,var(--spectrum-progressbar-spacing-label-to-text)
|
98
|
+
)}:host([side-label]) .percentage{margin-block-end:0;margin-inline-start:var(
|
99
|
+
--mod-spacing-progressbar-label-to-text,var(--spectrum-progressbar-spacing-label-to-text)
|
100
|
+
);order:3;text-align:end}:host([static=white]) .fill{background:var(
|
101
|
+
--mod-progressbar-fill-color-white,var(--spectrum-progressbar-fill-color-white)
|
102
|
+
);color:var(
|
103
|
+
--mod-progressbar-label-and-value-white,var(--spectrum-progressbar-label-and-value-white)
|
104
|
+
)}:host([static=white]) .label,:host([static=white]) .percentage{color:var(
|
105
|
+
--mode-progressbar-label-and-value-white,var(--spectrum-progressbar-label-and-value-white)
|
106
|
+
)}:host([static=white]) .track{background-color:var(
|
107
|
+
--spectrum-progressbar-track-color-white
|
108
|
+
)}:host([dir=ltr][indeterminate]) .fill{animation:indeterminate-loop-ltr var(
|
109
|
+
--mod-progressbar-animation-duration-indeterminate,var(--spectrum-progressbar-animation-duration-indeterminate)
|
110
|
+
) infinite}:host([dir=rtl][indeterminate]) .fill{animation:indeterminate-loop-rtl var(
|
111
|
+
--mod-progressbar-animation-duration-indeterminate,var(--spectrum-progressbar-animation-duration-indeterminate)
|
112
|
+
) infinite}@keyframes indeterminate-loop-ltr{0%{transform:translate(calc(var(
|
113
|
+
--mod-progressbar-fill-size-indeterminate,
|
114
|
+
var(--spectrum-progressbar-fill-size-indeterminate)
|
115
|
+
)*-1))}to{transform:translate(var(
|
116
|
+
--mod-progressbar-size-default,var(--spectrum-progressbar-size-default)
|
117
|
+
))}}@keyframes indeterminate-loop-rtl{0%{transform:translate(var(
|
118
|
+
--mod-progressbar-size-default,var(--spectrum-progressbar-fill-size-indeterminate)
|
119
|
+
))}to{transform:translate(calc(var(
|
120
|
+
--mod-progressbar-size-default,
|
121
|
+
var(--spectrum-progressbar-size-default)
|
122
|
+
)*-1))}}
|
91
123
|
`;export default e;
|
92
124
|
//# sourceMappingURL=spectrum-progress-bar.css.js.map
|
@@ -1,7 +1,7 @@
|
|
1
1
|
{
|
2
2
|
"version": 3,
|
3
3
|
"sources": ["spectrum-progress-bar.css.ts"],
|
4
|
-
"sourcesContent": ["/*\nCopyright 2023 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
|
5
|
-
"mappings": "aAWA,OAAS,OAAAA,MAAW,gCACpB,MAAMC,EAASD;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,
|
4
|
+
"sourcesContent": ["/*\nCopyright 2023 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{--spectrum-progressbar-animation-ease-in-out-indeterminate:var(\n--spectrum-animation-ease-in-out\n);--spectrum-progressbar-animation-duration-indeterminate:var(\n--spectrum-animation-duration-2000\n);--spectrum-progressbar-corner-radius:var(--spectrum-corner-radius-100);--spectrum-progressbar-fill-size-indeterminate:70%;--spectrum-progressbar-size-2400:192px;--spectrum-progressbar-size-2500:200px;--spectrum-progressbar-size-2800:224px;--spectrum-progressbar-font-size:var(--spectrum-font-size-75);--spectrum-progressbar-line-height-cjk:var(--spectrum-cjk-line-height-100);--spectrum-progressbar-min-size:var(--spectrum-progress-bar-minimum-width);--spectrum-progressbar-max-size:var(--spectrum-progress-bar-maximum-width);--spectrum-progressbar-thickness:var(\n--spectrum-progress-bar-thickness-medium\n);--spectrum-progressbar-line-height:var(--spectrum-line-height-100);--spectrum-progressbar-spacing-label-to-progressbar:var(\n--spectrum-spacing-75\n);--spectrum-progressbar-spacing-top-to-text:var(\n--spectrum-component-top-to-text-100\n);--spectrum-progressbar-spacing-label-to-text:var(--spectrum-spacing-200);--spectrum-progressbar-text-color:var(\n--spectrum-neutral-content-color-default\n);--spectrum-progressbar-track-color:var(--spectrum-gray-300);--spectrum-progressbar-fill-color:var(--spectrum-accent-color-900);--spectrum-progressbar-fill-color-positive:var(\n--spectrum-positive-visual-color\n);--spectrum-progressbar-fill-color-notice:var(\n--spectrum-notice-visual-color\n);--spectrum-progressbar-fill-color-negative:var(\n--spectrum-negative-visual-color\n);--spectrum-progressbar-label-and-value-white:var(--spectrum-white);--spectrum-progressbar-track-color-white:var(\n--spectrum-transparent-white-300\n);--spectrum-progressbar-fill-color-white:var(--spectrum-white)}:host([size=s]){--spectrum-progressbar-size-default:var(\n--spectrum-progressbar-size-2400\n);--spectrum-progressbar-font-size:var(--spectrum-font-size-75);--spectrum-progressbar-thickness:var(\n--spectrum-progress-bar-thickness-small\n);--spectrum-progressbar-spacing-top-to-text:var(\n--spectrum-component-top-to-text-75\n)}:host([size=m]){--spectrum-progressbar-size-default:var(\n--spectrum-progressbar-size-2400\n);--spectrum-progressbar-font-size:var(--spectrum-font-size-75);--spectrum-progressbar-thickness:var(\n--spectrum-progress-bar-thickness-large\n);--spectrum-progressbar-spacing-top-to-text:var(\n--spectrum-component-top-to-text-75\n)}:host([size=l]){--spectrum-progressbar-size-default:var(\n--spectrum-progressbar-size-2500\n);--spectrum-progressbar-font-size:var(--spectrum-font-size-100);--spectrum-progressbar-thickness:var(\n--spectrum-progress-bar-thickness-large\n);--spectrum-progressbar-spacing-top-to-text:var(\n--spectrum-component-top-to-text-200\n)}:host([size=xl]){--spectrum-progressbar-size-default:var(\n--spectrum-progressbar-size-2800\n);--spectrum-progressbar-font-size:var(--spectrum-font-size-200);--spectrum-progressbar-thickness:var(\n--spectrum-progress-bar-thickness-extra-large\n);--spectrum-progressbar-spacing-top-to-text:var(\n--spectrum-component-top-to-text-300\n)}@media (forced-colors:active){.track{--highcontrast-progressbar-fill-color:ButtonText;--highcontrast-progressbar-track-color:ButtonFace;border:1px solid ButtonText;forced-color-adjust:none}}:host{align-items:center;display:inline-flex;flex-flow:row wrap;font-size:var(\n--mod-progressbar-font-size,var(--spectrum-progressbar-font-size)\n);inline-size:var(\n--mod-progressbar-size-default,var(--spectrum-progressbar-size-default)\n);justify-content:space-between;max-inline-size:var(\n--mod-progressbar-max-size,var(--spectrum-progressbar-max-size)\n);min-inline-size:var(\n--mod-progressbar-min-size,var(--spectrum-progressbar-min-size)\n);position:relative;vertical-align:top}.label,.percentage{color:var(\n--mod-progressbar-text-color,var(--spectrum-progressbar-text-color)\n);line-height:var(\n--mod-progressbar-line-height,var(--spectrum-progressbar-line-height)\n);margin-block-end:var(\n--mod-progressbar-spacing-label-to-progressbar,var(--spectrum-progressbar-spacing-label-to-progressbar)\n);margin-block-start:var(\n--mod-progressbar-spacing-top-to-text,var(--spectrum-progressbar-spacing-top-to-text)\n);text-align:start}.label:lang(ja),.label:lang(ko),.label:lang(zh),.percentage:lang(ja),.percentage:lang(ko),.percentage:lang(zh){line-height:var(\n--mod-progressbar-line-height-cjk,var(--spectrum-progressbar-line-height-cjk)\n)}.label{flex:1 1 0%}.percentage{align-self:flex-start;margin-inline-start:var(\n--mod-progressbar-spacing-label-to-text,var(--spectrum-progressbar-spacing-label-to-text)\n)}.track{background:var(\n--highcontrast-progressbar-track-color,var(\n--mod-progressbar-track-color,var(--spectrum-progressbar-track-color)\n)\n);block-size:var(\n--mod-progressbar-thickness,var(--spectrum-progressbar-thickness)\n);border-radius:var(--spectrum-progressbar-corner-radius);inline-size:100%;overflow:hidden}:host([positive]) .fill{background:var(\n--highcontrast-progressbar-fill-color,var(\n--mod-progressbar-fill-color-positive,var(--spectrum-progressbar-fill-color-positive)\n)\n)}:host(.is-notice) .fill{background:var(\n--highcontrast-progressbar-fill-color,var(\n--mod-progressbar-fill-color-notice,var(--spectrum-progressbar-fill-color-notice)\n)\n)}:host(.is-negative) .fill{background:var(\n--highcontrast-progressbar-fill-color,var(\n--mod-progressbar-fill-color-negative,var(--spectrum-progressbar-fill-color-negative)\n)\n)}.fill{background:var(\n--highcontrast-progressbar-fill-color,var(\n--mod-progressbar-fill-color,var(--spectrum-progressbar-fill-color)\n)\n);block-size:var(\n--mod-progressbar-thickness,var(--spectrum-progressbar-thickness)\n);border:none;transition:width 1s}:host([indeterminate]) .fill{animation-timing-function:var(\n--mod-progressbar-animation-ease-in-out-indeterminate,var(--spectrum-progressbar-animation-ease-in-out-indeterminate)\n);inline-size:var(\n--mod-progressbar-fill-size-indeterminate,var(--spectrum-progressbar-fill-size-indeterminate)\n);position:relative;will-change:transform}:host([side-label]){display:inline-flex;flex-flow:row;justify-content:space-between}:host([side-label]) .track{flex:1 1 var(\n--mod-progressbar-size-default,var(--spectrum-progressbar-size-default)\n)}:host([side-label]) .label{flex-grow:0;margin-block-end:0;margin-inline-end:var(\n--mod-progressbar-spacing-label-to-text,var(--spectrum-progressbar-spacing-label-to-text)\n)}:host([side-label]) .percentage{margin-block-end:0;margin-inline-start:var(\n--mod-spacing-progressbar-label-to-text,var(--spectrum-progressbar-spacing-label-to-text)\n);order:3;text-align:end}:host([static=white]) .fill{background:var(\n--mod-progressbar-fill-color-white,var(--spectrum-progressbar-fill-color-white)\n);color:var(\n--mod-progressbar-label-and-value-white,var(--spectrum-progressbar-label-and-value-white)\n)}:host([static=white]) .label,:host([static=white]) .percentage{color:var(\n--mode-progressbar-label-and-value-white,var(--spectrum-progressbar-label-and-value-white)\n)}:host([static=white]) .track{background-color:var(\n--spectrum-progressbar-track-color-white\n)}:host([dir=ltr][indeterminate]) .fill{animation:indeterminate-loop-ltr var(\n--mod-progressbar-animation-duration-indeterminate,var(--spectrum-progressbar-animation-duration-indeterminate)\n) infinite}:host([dir=rtl][indeterminate]) .fill{animation:indeterminate-loop-rtl var(\n--mod-progressbar-animation-duration-indeterminate,var(--spectrum-progressbar-animation-duration-indeterminate)\n) infinite}@keyframes indeterminate-loop-ltr{0%{transform:translate(calc(var(\n--mod-progressbar-fill-size-indeterminate,\nvar(--spectrum-progressbar-fill-size-indeterminate)\n)*-1))}to{transform:translate(var(\n--mod-progressbar-size-default,var(--spectrum-progressbar-size-default)\n))}}@keyframes indeterminate-loop-rtl{0%{transform:translate(var(\n--mod-progressbar-size-default,var(--spectrum-progressbar-fill-size-indeterminate)\n))}to{transform:translate(calc(var(\n--mod-progressbar-size-default,\nvar(--spectrum-progressbar-size-default)\n)*-1))}}\n`;\nexport default styles;"],
|
5
|
+
"mappings": "aAWA,OAAS,OAAAA,MAAW,gCACpB,MAAMC,EAASD;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;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,EA2Hf,eAAeC",
|
6
6
|
"names": ["css", "styles"]
|
7
7
|
}
|
@@ -40,45 +40,45 @@ const makeOverBackground = (story) => html`
|
|
40
40
|
${story}
|
41
41
|
</div>
|
42
42
|
`;
|
43
|
-
export const
|
43
|
+
export const staticWhite = () => {
|
44
44
|
return makeOverBackground(html`
|
45
|
-
<sp-progress-bar progress="50"
|
45
|
+
<sp-progress-bar progress="50" static="white"></sp-progress-bar>
|
46
46
|
`);
|
47
47
|
};
|
48
|
-
export const
|
48
|
+
export const staticWhiteLabel = () => {
|
49
49
|
return makeOverBackground(html`
|
50
50
|
<sp-progress-bar
|
51
51
|
label="Loading"
|
52
52
|
progress="50"
|
53
|
-
|
53
|
+
static="white"
|
54
54
|
></sp-progress-bar>
|
55
55
|
`);
|
56
56
|
};
|
57
|
-
export const
|
57
|
+
export const staticWhiteIndeterminate = () => {
|
58
58
|
return makeOverBackground(html`
|
59
59
|
<sp-progress-bar
|
60
60
|
label="Loading"
|
61
61
|
indeterminate
|
62
|
-
|
62
|
+
static="white"
|
63
63
|
></sp-progress-bar>
|
64
64
|
`);
|
65
65
|
};
|
66
|
-
export const
|
66
|
+
export const staticWhiteSideLabel = () => {
|
67
67
|
return makeOverBackground(html`
|
68
68
|
<sp-progress-bar
|
69
69
|
label="Loading"
|
70
70
|
progress="50"
|
71
|
-
|
71
|
+
static="white"
|
72
72
|
side-label
|
73
73
|
></sp-progress-bar>
|
74
74
|
`);
|
75
75
|
};
|
76
|
-
export const
|
76
|
+
export const staticWhiteSideLabelIndeterminate = () => {
|
77
77
|
return makeOverBackground(html`
|
78
78
|
<sp-progress-bar
|
79
79
|
label="Loading"
|
80
80
|
indeterminate
|
81
|
-
|
81
|
+
static="white"
|
82
82
|
side-label
|
83
83
|
></sp-progress-bar>
|
84
84
|
`);
|
@@ -1,7 +1,7 @@
|
|
1
1
|
{
|
2
2
|
"version": 3,
|
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
|
5
|
-
"mappings": ";AAYA,SAAS,YAA4B;AAErC,OAAO;AAEP,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,
|
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 staticWhite = (): TemplateResult => {\n return makeOverBackground(html`\n <sp-progress-bar progress=\"50\" static=\"white\"></sp-progress-bar>\n `);\n};\n\nexport const staticWhiteLabel = (): TemplateResult => {\n return makeOverBackground(html`\n <sp-progress-bar\n label=\"Loading\"\n progress=\"50\"\n static=\"white\"\n ></sp-progress-bar>\n `);\n};\n\nexport const staticWhiteIndeterminate = (): TemplateResult => {\n return makeOverBackground(html`\n <sp-progress-bar\n label=\"Loading\"\n indeterminate\n static=\"white\"\n ></sp-progress-bar>\n `);\n};\n\nexport const staticWhiteSideLabel = (): TemplateResult => {\n return makeOverBackground(html`\n <sp-progress-bar\n label=\"Loading\"\n progress=\"50\"\n static=\"white\"\n side-label\n ></sp-progress-bar>\n `);\n};\n\nexport const staticWhiteSideLabelIndeterminate = (): TemplateResult => {\n return makeOverBackground(html`\n <sp-progress-bar\n label=\"Loading\"\n indeterminate\n static=\"white\"\n side-label\n ></sp-progress-bar>\n `);\n};\n"],
|
5
|
+
"mappings": ";AAYA,SAAS,YAA4B;AAErC,OAAO;AAEP,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,cAAc,MAAsB;AAC7C,SAAO,mBAAmB;AAAA;AAAA,KAEzB;AACL;AAEO,aAAM,mBAAmB,MAAsB;AAClD,SAAO,mBAAmB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,KAMzB;AACL;AAEO,aAAM,2BAA2B,MAAsB;AAC1D,SAAO,mBAAmB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,KAMzB;AACL;AAEO,aAAM,uBAAuB,MAAsB;AACtD,SAAO,mBAAmB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,KAOzB;AACL;AAEO,aAAM,oCAAoC,MAAsB;AACnE,SAAO,mBAAmB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,KAOzB;AACL;",
|
6
6
|
"names": []
|
7
7
|
}
|