@spectrum-web-components/progress-bar 0.8.8-react.50 → 0.8.8-react.75

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,92 +1,124 @@
1
1
  "use strict";import{css as r}from"@spectrum-web-components/base";const e=r`
2
- :host([size=s]){--spectrum-progressbar-border-radius:var(
3
- --spectrum-progressbar-s-border-radius
4
- );--spectrum-progressbar-indeterminate-fill-width:var(
5
- --spectrum-progressbar-s-indeterminate-fill-width,var(--spectrum-global-dimension-static-percent-70)
6
- );--spectrum-progressbar-indeterminate-duration:var(
7
- --spectrum-progressbar-s-indeterminate-duration,var(--spectrum-global-animation-duration-2000)
8
- );--spectrum-progressbar-value-gap-y:var(
9
- --spectrum-progressbar-s-value-gap-y,0px
10
- );--spectrum-progressbar-height:var(
11
- --spectrum-progressbar-s-height,var(--spectrum-global-dimension-size-50)
12
- );--spectrum-progressbar-width:var(
13
- --spectrum-progressbar-s-width,var(--spectrum-global-dimension-static-size-2400)
14
- )}:host([size=m]){--spectrum-progressbar-border-radius:var(
15
- --spectrum-progressbar-m-border-radius
16
- );--spectrum-progressbar-indeterminate-fill-width:var(
17
- --spectrum-progressbar-m-indeterminate-fill-width,var(--spectrum-global-dimension-static-percent-70)
18
- );--spectrum-progressbar-indeterminate-duration:var(
19
- --spectrum-progressbar-m-indeterminate-duration,var(--spectrum-global-animation-duration-2000)
20
- );--spectrum-progressbar-value-gap-y:var(
21
- --spectrum-progressbar-m-value-gap-y,0px
22
- );--spectrum-progressbar-height:var(
23
- --spectrum-progressbar-m-height,var(--spectrum-global-dimension-size-75)
24
- );--spectrum-progressbar-width:var(
25
- --spectrum-progressbar-m-width,var(--spectrum-global-dimension-static-size-2400)
26
- );--spectrum-fieldlabel-side-padding-right:var(
27
- --spectrum-fieldlabel-m-side-padding-right,var(--spectrum-global-dimension-size-150)
28
- )}:host([size=l]){--spectrum-progressbar-indeterminate-fill-width:var(
29
- --spectrum-progressbar-l-indeterminate-fill-width,var(--spectrum-global-dimension-static-percent-70)
30
- );--spectrum-progressbar-indeterminate-duration:var(
31
- --spectrum-progressbar-l-indeterminate-duration,var(--spectrum-global-animation-duration-2000)
32
- );--spectrum-progressbar-value-gap-y:var(
33
- --spectrum-progressbar-l-value-gap-y,0px
34
- );--spectrum-progressbar-height:var(
35
- --spectrum-progressbar-l-height,var(--spectrum-global-dimension-size-100)
36
- );--spectrum-progressbar-border-radius:var(
37
- --spectrum-progressbar-l-border-radius,var(--spectrum-global-dimension-size-50)
38
- );--spectrum-progressbar-width:var(
39
- --spectrum-progressbar-l-width,var(--spectrum-global-dimension-static-size-2500)
40
- )}:host([size=xl]){--spectrum-progressbar-border-radius:var(
41
- --spectrum-progressbar-xl-border-radius
42
- );--spectrum-progressbar-indeterminate-fill-width:var(
43
- --spectrum-progressbar-xl-indeterminate-fill-width,var(--spectrum-global-dimension-static-percent-70)
44
- );--spectrum-progressbar-indeterminate-duration:var(
45
- --spectrum-progressbar-xl-indeterminate-duration,var(--spectrum-global-animation-duration-2000)
46
- );--spectrum-progressbar-value-gap-y:var(
47
- --spectrum-progressbar-xl-value-gap-y,0px
48
- );--spectrum-progressbar-height:var(
49
- --spectrum-progressbar-xl-height,var(--spectrum-global-dimension-size-125)
50
- );--spectrum-progressbar-width:var(
51
- --spectrum-progressbar-xl-width,var(--spectrum-global-dimension-static-size-2800)
52
- )}: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(
53
- --spectrum-progressbar-value-gap-y
54
- )}.label{flex:1 1 0%}:host([dir=ltr]) .percentage{margin-left:var(
55
- --spectrum-fieldlabel-side-padding-right
56
- )}:host([dir=rtl]) .percentage{margin-right:var(
57
- --spectrum-fieldlabel-side-padding-right
58
- )}.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(
59
- --spectrum-progressbar-width
60
- )}:host([dir=ltr][side-label]) .label{margin-right:var(
61
- --spectrum-fieldlabel-side-padding-right
62
- )}:host([dir=rtl][side-label]) .label{margin-left:var(
63
- --spectrum-fieldlabel-side-padding-right
64
- )}: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(
65
- --spectrum-fieldlabel-side-padding-right
66
- )}:host([dir=rtl][side-label]) .percentage{margin-right:var(
67
- --spectrum-fieldlabel-side-padding-right
68
- )}:host([side-label]) .percentage{margin-bottom:0;order:3}:host([indeterminate]) .fill{animation-timing-function:var(
69
- --spectrum-progressbar-indeterminate-animation-ease
70
- );position:relative;width:var(
71
- --spectrum-progressbar-indeterminate-fill-width
72
- );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(
73
- --spectrum-progressbar-m-track-fill-color,var(--spectrum-semantic-informative-color-default)
74
- )}.track{background-color:var(
75
- --spectrum-progressbar-m-track-color,var(--spectrum-alias-track-color-default)
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
- --spectrum-meter-m-notice-track-fill-color,var(--spectrum-semantic-notice-status-color)
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
- --spectrum-meter-m-negative-track-fill-color,var(--spectrum-semantic-negative-status-color)
88
- )}.label,.percentage{color:var(
89
- --spectrum-fieldlabel-m-text-color,var(--spectrum-alias-label-text-color)
90
- )}@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}
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))}}.fill{transform-origin:left;width:100%}:host([dir=rtl]) .fill{transform-origin:right}
91
123
  `;export default e;
92
124
  //# sourceMappingURL=progress-bar.css.js.map
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["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([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,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,EA2Ff,eAAeC",
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))}}.fill{transform-origin:left;width:100%}:host([dir=rtl]) .fill{transform-origin:right}\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
  }
@@ -47,6 +47,20 @@ const config = {
47
47
  },
48
48
  ],
49
49
  },
50
+ {
51
+ type: 'enum',
52
+ name: 'static',
53
+ values: [
54
+ {
55
+ name: 'black',
56
+ selector: '.spectrum-ProgressBar--staticBlack',
57
+ },
58
+ {
59
+ name: 'white',
60
+ selector: '.spectrum-ProgressBar--staticWhite',
61
+ },
62
+ ],
63
+ },
50
64
  {
51
65
  type: 'boolean',
52
66
  selector: '.spectrum-ProgressBar--indeterminate',
@@ -1,95 +1,127 @@
1
1
  "use strict";
2
2
  import { css } from "@spectrum-web-components/base";
3
3
  const styles = css`
4
- :host([size=s]){--spectrum-progressbar-border-radius:var(
5
- --spectrum-progressbar-s-border-radius
6
- );--spectrum-progressbar-indeterminate-fill-width:var(
7
- --spectrum-progressbar-s-indeterminate-fill-width,var(--spectrum-global-dimension-static-percent-70)
8
- );--spectrum-progressbar-indeterminate-duration:var(
9
- --spectrum-progressbar-s-indeterminate-duration,var(--spectrum-global-animation-duration-2000)
10
- );--spectrum-progressbar-value-gap-y:var(
11
- --spectrum-progressbar-s-value-gap-y,0px
12
- );--spectrum-progressbar-height:var(
13
- --spectrum-progressbar-s-height,var(--spectrum-global-dimension-size-50)
14
- );--spectrum-progressbar-width:var(
15
- --spectrum-progressbar-s-width,var(--spectrum-global-dimension-static-size-2400)
16
- )}:host([size=m]){--spectrum-progressbar-border-radius:var(
17
- --spectrum-progressbar-m-border-radius
18
- );--spectrum-progressbar-indeterminate-fill-width:var(
19
- --spectrum-progressbar-m-indeterminate-fill-width,var(--spectrum-global-dimension-static-percent-70)
20
- );--spectrum-progressbar-indeterminate-duration:var(
21
- --spectrum-progressbar-m-indeterminate-duration,var(--spectrum-global-animation-duration-2000)
22
- );--spectrum-progressbar-value-gap-y:var(
23
- --spectrum-progressbar-m-value-gap-y,0px
24
- );--spectrum-progressbar-height:var(
25
- --spectrum-progressbar-m-height,var(--spectrum-global-dimension-size-75)
26
- );--spectrum-progressbar-width:var(
27
- --spectrum-progressbar-m-width,var(--spectrum-global-dimension-static-size-2400)
28
- );--spectrum-fieldlabel-side-padding-right:var(
29
- --spectrum-fieldlabel-m-side-padding-right,var(--spectrum-global-dimension-size-150)
30
- )}:host([size=l]){--spectrum-progressbar-indeterminate-fill-width:var(
31
- --spectrum-progressbar-l-indeterminate-fill-width,var(--spectrum-global-dimension-static-percent-70)
32
- );--spectrum-progressbar-indeterminate-duration:var(
33
- --spectrum-progressbar-l-indeterminate-duration,var(--spectrum-global-animation-duration-2000)
34
- );--spectrum-progressbar-value-gap-y:var(
35
- --spectrum-progressbar-l-value-gap-y,0px
36
- );--spectrum-progressbar-height:var(
37
- --spectrum-progressbar-l-height,var(--spectrum-global-dimension-size-100)
38
- );--spectrum-progressbar-border-radius:var(
39
- --spectrum-progressbar-l-border-radius,var(--spectrum-global-dimension-size-50)
40
- );--spectrum-progressbar-width:var(
41
- --spectrum-progressbar-l-width,var(--spectrum-global-dimension-static-size-2500)
42
- )}:host([size=xl]){--spectrum-progressbar-border-radius:var(
43
- --spectrum-progressbar-xl-border-radius
44
- );--spectrum-progressbar-indeterminate-fill-width:var(
45
- --spectrum-progressbar-xl-indeterminate-fill-width,var(--spectrum-global-dimension-static-percent-70)
46
- );--spectrum-progressbar-indeterminate-duration:var(
47
- --spectrum-progressbar-xl-indeterminate-duration,var(--spectrum-global-animation-duration-2000)
48
- );--spectrum-progressbar-value-gap-y:var(
49
- --spectrum-progressbar-xl-value-gap-y,0px
50
- );--spectrum-progressbar-height:var(
51
- --spectrum-progressbar-xl-height,var(--spectrum-global-dimension-size-125)
52
- );--spectrum-progressbar-width:var(
53
- --spectrum-progressbar-xl-width,var(--spectrum-global-dimension-static-size-2800)
54
- )}: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(
55
- --spectrum-progressbar-value-gap-y
56
- )}.label{flex:1 1 0%}:host([dir=ltr]) .percentage{margin-left:var(
57
- --spectrum-fieldlabel-side-padding-right
58
- )}:host([dir=rtl]) .percentage{margin-right:var(
59
- --spectrum-fieldlabel-side-padding-right
60
- )}.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(
61
- --spectrum-progressbar-width
62
- )}:host([dir=ltr][side-label]) .label{margin-right:var(
63
- --spectrum-fieldlabel-side-padding-right
64
- )}:host([dir=rtl][side-label]) .label{margin-left:var(
65
- --spectrum-fieldlabel-side-padding-right
66
- )}: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(
67
- --spectrum-fieldlabel-side-padding-right
68
- )}:host([dir=rtl][side-label]) .percentage{margin-right:var(
69
- --spectrum-fieldlabel-side-padding-right
70
- )}:host([side-label]) .percentage{margin-bottom:0;order:3}:host([indeterminate]) .fill{animation-timing-function:var(
71
- --spectrum-progressbar-indeterminate-animation-ease
72
- );position:relative;width:var(
73
- --spectrum-progressbar-indeterminate-fill-width
74
- );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(
75
- --spectrum-progressbar-m-track-fill-color,var(--spectrum-semantic-informative-color-default)
76
- )}.track{background-color:var(
77
- --spectrum-progressbar-m-track-color,var(--spectrum-alias-track-color-default)
78
- )}:host([over-background]) .fill{background:var(
79
- --spectrum-progressbar-m-overbackground-track-fill-color,var(--spectrum-alias-track-fill-color-overbackground)
80
- )}:host([over-background]) .label,:host([over-background]) .percentage{color:var(
81
- --spectrum-progressbar-m-overbackground-track-fill-color,var(--spectrum-alias-track-fill-color-overbackground)
82
- )}:host([over-background]) .track{background-color:var(
83
- --spectrum-progressbar-m-overbackground-track-color,var(--spectrum-alias-track-color-overbackground)
84
- )}:host([positive]) .fill{background:var(
85
- --spectrum-meter-m-positive-track-fill-color,var(--spectrum-semantic-positive-status-color)
4
+ :host{--spectrum-progressbar-animation-ease-in-out-indeterminate:var(
5
+ --spectrum-animation-ease-in-out
6
+ );--spectrum-progressbar-animation-duration-indeterminate:var(
7
+ --spectrum-animation-duration-2000
8
+ );--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(
9
+ --spectrum-progress-bar-thickness-medium
10
+ );--spectrum-progressbar-line-height:var(--spectrum-line-height-100);--spectrum-progressbar-spacing-label-to-progressbar:var(
11
+ --spectrum-spacing-75
12
+ );--spectrum-progressbar-spacing-top-to-text:var(
13
+ --spectrum-component-top-to-text-100
14
+ );--spectrum-progressbar-spacing-label-to-text:var(--spectrum-spacing-200);--spectrum-progressbar-text-color:var(
15
+ --spectrum-neutral-content-color-default
16
+ );--spectrum-progressbar-track-color:var(--spectrum-gray-300);--spectrum-progressbar-fill-color:var(--spectrum-accent-color-900);--spectrum-progressbar-fill-color-positive:var(
17
+ --spectrum-positive-visual-color
18
+ );--spectrum-progressbar-fill-color-notice:var(
19
+ --spectrum-notice-visual-color
20
+ );--spectrum-progressbar-fill-color-negative:var(
21
+ --spectrum-negative-visual-color
22
+ );--spectrum-progressbar-label-and-value-white:var(--spectrum-white);--spectrum-progressbar-track-color-white:var(
23
+ --spectrum-transparent-white-300
24
+ );--spectrum-progressbar-fill-color-white:var(--spectrum-white)}:host([size=s]){--spectrum-progressbar-size-default:var(
25
+ --spectrum-progressbar-size-2400
26
+ );--spectrum-progressbar-font-size:var(--spectrum-font-size-75);--spectrum-progressbar-thickness:var(
27
+ --spectrum-progress-bar-thickness-small
28
+ );--spectrum-progressbar-spacing-top-to-text:var(
29
+ --spectrum-component-top-to-text-75
30
+ )}:host([size=m]){--spectrum-progressbar-size-default:var(
31
+ --spectrum-progressbar-size-2400
32
+ );--spectrum-progressbar-font-size:var(--spectrum-font-size-75);--spectrum-progressbar-thickness:var(
33
+ --spectrum-progress-bar-thickness-large
34
+ );--spectrum-progressbar-spacing-top-to-text:var(
35
+ --spectrum-component-top-to-text-75
36
+ )}:host([size=l]){--spectrum-progressbar-size-default:var(
37
+ --spectrum-progressbar-size-2500
38
+ );--spectrum-progressbar-font-size:var(--spectrum-font-size-100);--spectrum-progressbar-thickness:var(
39
+ --spectrum-progress-bar-thickness-large
40
+ );--spectrum-progressbar-spacing-top-to-text:var(
41
+ --spectrum-component-top-to-text-200
42
+ )}:host([size=xl]){--spectrum-progressbar-size-default:var(
43
+ --spectrum-progressbar-size-2800
44
+ );--spectrum-progressbar-font-size:var(--spectrum-font-size-200);--spectrum-progressbar-thickness:var(
45
+ --spectrum-progress-bar-thickness-extra-large
46
+ );--spectrum-progressbar-spacing-top-to-text:var(
47
+ --spectrum-component-top-to-text-300
48
+ )}@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(
49
+ --mod-progressbar-font-size,var(--spectrum-progressbar-font-size)
50
+ );inline-size:var(
51
+ --mod-progressbar-size-default,var(--spectrum-progressbar-size-default)
52
+ );justify-content:space-between;max-inline-size:var(
53
+ --mod-progressbar-max-size,var(--spectrum-progressbar-max-size)
54
+ );min-inline-size:var(
55
+ --mod-progressbar-min-size,var(--spectrum-progressbar-min-size)
56
+ );position:relative;vertical-align:top}.label,.percentage{color:var(
57
+ --mod-progressbar-text-color,var(--spectrum-progressbar-text-color)
58
+ );line-height:var(
59
+ --mod-progressbar-line-height,var(--spectrum-progressbar-line-height)
60
+ );margin-block-end:var(
61
+ --mod-progressbar-spacing-label-to-progressbar,var(--spectrum-progressbar-spacing-label-to-progressbar)
62
+ );margin-block-start:var(
63
+ --mod-progressbar-spacing-top-to-text,var(--spectrum-progressbar-spacing-top-to-text)
64
+ );text-align:start}.label:lang(ja),.label:lang(ko),.label:lang(zh),.percentage:lang(ja),.percentage:lang(ko),.percentage:lang(zh){line-height:var(
65
+ --mod-progressbar-line-height-cjk,var(--spectrum-progressbar-line-height-cjk)
66
+ )}.label{flex:1 1 0%}.percentage{align-self:flex-start;margin-inline-start:var(
67
+ --mod-progressbar-spacing-label-to-text,var(--spectrum-progressbar-spacing-label-to-text)
68
+ )}.track{background:var(
69
+ --highcontrast-progressbar-track-color,var(
70
+ --mod-progressbar-track-color,var(--spectrum-progressbar-track-color)
71
+ )
72
+ );block-size:var(
73
+ --mod-progressbar-thickness,var(--spectrum-progressbar-thickness)
74
+ );border-radius:var(--spectrum-progressbar-corner-radius);inline-size:100%;overflow:hidden}:host([positive]) .fill{background:var(
75
+ --highcontrast-progressbar-fill-color,var(
76
+ --mod-progressbar-fill-color-positive,var(--spectrum-progressbar-fill-color-positive)
77
+ )
86
78
  )}:host(.is-notice) .fill{background:var(
87
- --spectrum-meter-m-notice-track-fill-color,var(--spectrum-semantic-notice-status-color)
79
+ --highcontrast-progressbar-fill-color,var(
80
+ --mod-progressbar-fill-color-notice,var(--spectrum-progressbar-fill-color-notice)
81
+ )
88
82
  )}:host(.is-negative) .fill{background:var(
89
- --spectrum-meter-m-negative-track-fill-color,var(--spectrum-semantic-negative-status-color)
90
- )}.label,.percentage{color:var(
91
- --spectrum-fieldlabel-m-text-color,var(--spectrum-alias-label-text-color)
92
- )}@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}}
83
+ --highcontrast-progressbar-fill-color,var(
84
+ --mod-progressbar-fill-color-negative,var(--spectrum-progressbar-fill-color-negative)
85
+ )
86
+ )}.fill{background:var(
87
+ --highcontrast-progressbar-fill-color,var(
88
+ --mod-progressbar-fill-color,var(--spectrum-progressbar-fill-color)
89
+ )
90
+ );block-size:var(
91
+ --mod-progressbar-thickness,var(--spectrum-progressbar-thickness)
92
+ );border:none;transition:width 1s}:host([indeterminate]) .fill{animation-timing-function:var(
93
+ --mod-progressbar-animation-ease-in-out-indeterminate,var(--spectrum-progressbar-animation-ease-in-out-indeterminate)
94
+ );inline-size:var(
95
+ --mod-progressbar-fill-size-indeterminate,var(--spectrum-progressbar-fill-size-indeterminate)
96
+ );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(
97
+ --mod-progressbar-size-default,var(--spectrum-progressbar-size-default)
98
+ )}:host([side-label]) .label{flex-grow:0;margin-block-end:0;margin-inline-end:var(
99
+ --mod-progressbar-spacing-label-to-text,var(--spectrum-progressbar-spacing-label-to-text)
100
+ )}:host([side-label]) .percentage{margin-block-end:0;margin-inline-start:var(
101
+ --mod-spacing-progressbar-label-to-text,var(--spectrum-progressbar-spacing-label-to-text)
102
+ );order:3;text-align:end}:host([static=white]) .fill{background:var(
103
+ --mod-progressbar-fill-color-white,var(--spectrum-progressbar-fill-color-white)
104
+ );color:var(
105
+ --mod-progressbar-label-and-value-white,var(--spectrum-progressbar-label-and-value-white)
106
+ )}:host([static=white]) .label,:host([static=white]) .percentage{color:var(
107
+ --mode-progressbar-label-and-value-white,var(--spectrum-progressbar-label-and-value-white)
108
+ )}:host([static=white]) .track{background-color:var(
109
+ --spectrum-progressbar-track-color-white
110
+ )}:host([dir=ltr][indeterminate]) .fill{animation:indeterminate-loop-ltr var(
111
+ --mod-progressbar-animation-duration-indeterminate,var(--spectrum-progressbar-animation-duration-indeterminate)
112
+ ) infinite}:host([dir=rtl][indeterminate]) .fill{animation:indeterminate-loop-rtl var(
113
+ --mod-progressbar-animation-duration-indeterminate,var(--spectrum-progressbar-animation-duration-indeterminate)
114
+ ) infinite}@keyframes indeterminate-loop-ltr{0%{transform:translate(calc(var(
115
+ --mod-progressbar-fill-size-indeterminate,
116
+ var(--spectrum-progressbar-fill-size-indeterminate)
117
+ )*-1))}to{transform:translate(var(
118
+ --mod-progressbar-size-default,var(--spectrum-progressbar-size-default)
119
+ ))}}@keyframes indeterminate-loop-rtl{0%{transform:translate(var(
120
+ --mod-progressbar-size-default,var(--spectrum-progressbar-fill-size-indeterminate)
121
+ ))}to{transform:translate(calc(var(
122
+ --mod-progressbar-size-default,
123
+ var(--spectrum-progressbar-size-default)
124
+ )*-1))}}
93
125
  `;
94
126
  export default styles;
95
127
  //# sourceMappingURL=spectrum-progress-bar.css.dev.js.map