@spectrum-web-components/progress-bar 1.6.1-beta.0 → 1.7.0-snapshot.20250519143559

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@spectrum-web-components/progress-bar",
3
- "version": "1.6.1-beta.0",
3
+ "version": "1.7.0-snapshot.20250519143559",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -64,13 +64,10 @@
64
64
  "css"
65
65
  ],
66
66
  "dependencies": {
67
- "@spectrum-web-components/base": "1.6.1-beta.0",
68
- "@spectrum-web-components/field-label": "1.6.1-beta.0",
69
- "@spectrum-web-components/reactive-controllers": "1.6.1-beta.0",
70
- "@spectrum-web-components/shared": "1.6.1-beta.0"
71
- },
72
- "devDependencies": {
73
- "@spectrum-css/progressbar": "5.0.0-s2-foundations.19"
67
+ "@spectrum-web-components/base": "1.7.0-snapshot.20250519143559",
68
+ "@spectrum-web-components/field-label": "1.7.0-snapshot.20250519143559",
69
+ "@spectrum-web-components/reactive-controllers": "1.7.0-snapshot.20250519143559",
70
+ "@spectrum-web-components/shared": "1.7.0-snapshot.20250519143559"
74
71
  },
75
72
  "types": "./src/index.d.ts",
76
73
  "customElements": "custom-elements.json",
@@ -1,197 +0,0 @@
1
- {
2
- "schemaVersion": "1.0.0",
3
- "readme": "",
4
- "modules": [
5
- {
6
- "kind": "javascript-module",
7
- "path": "sp-progress-bar.js",
8
- "declarations": [],
9
- "exports": [
10
- {
11
- "kind": "custom-element-definition",
12
- "name": "sp-progress-bar",
13
- "declaration": {
14
- "name": "ProgressBar",
15
- "module": "/src/ProgressBar.js"
16
- }
17
- }
18
- ]
19
- },
20
- {
21
- "kind": "javascript-module",
22
- "path": "src/ProgressBar.js",
23
- "declarations": [
24
- {
25
- "kind": "class",
26
- "description": "",
27
- "name": "ProgressBar",
28
- "members": [
29
- {
30
- "kind": "field",
31
- "name": "indeterminate",
32
- "type": {
33
- "text": "boolean"
34
- },
35
- "privacy": "public",
36
- "default": "false",
37
- "attribute": "indeterminate",
38
- "reflects": true
39
- },
40
- {
41
- "kind": "field",
42
- "name": "label",
43
- "type": {
44
- "text": "string"
45
- },
46
- "privacy": "public",
47
- "default": "''",
48
- "attribute": "label",
49
- "reflects": true
50
- },
51
- {
52
- "kind": "field",
53
- "name": "languageResolver",
54
- "privacy": "private",
55
- "default": "new LanguageResolutionController(this)"
56
- },
57
- {
58
- "kind": "field",
59
- "name": "overBackground",
60
- "type": {
61
- "text": "boolean"
62
- },
63
- "privacy": "public",
64
- "default": "false",
65
- "attribute": "over-background",
66
- "reflects": true
67
- },
68
- {
69
- "kind": "field",
70
- "name": "sideLabel",
71
- "type": {
72
- "text": "boolean"
73
- },
74
- "privacy": "public",
75
- "default": "false",
76
- "attribute": "side-label",
77
- "reflects": true
78
- },
79
- {
80
- "kind": "field",
81
- "name": "progress",
82
- "type": {
83
- "text": "number"
84
- },
85
- "privacy": "public",
86
- "default": "0",
87
- "attribute": "progress"
88
- },
89
- {
90
- "kind": "field",
91
- "name": "staticColor",
92
- "type": {
93
- "text": "'white' | undefined"
94
- },
95
- "privacy": "public",
96
- "attribute": "static-color",
97
- "reflects": true
98
- },
99
- {
100
- "kind": "field",
101
- "name": "slotEl",
102
- "type": {
103
- "text": "HTMLSlotElement"
104
- },
105
- "privacy": "private"
106
- },
107
- {
108
- "kind": "method",
109
- "name": "handleSlotchange",
110
- "privacy": "protected",
111
- "return": {
112
- "type": {
113
- "text": "void"
114
- }
115
- }
116
- }
117
- ],
118
- "attributes": [
119
- {
120
- "name": "indeterminate",
121
- "type": {
122
- "text": "boolean"
123
- },
124
- "default": "false",
125
- "fieldName": "indeterminate"
126
- },
127
- {
128
- "name": "label",
129
- "type": {
130
- "text": "string"
131
- },
132
- "default": "''",
133
- "fieldName": "label"
134
- },
135
- {
136
- "name": "over-background",
137
- "type": {
138
- "text": "boolean"
139
- },
140
- "default": "false",
141
- "fieldName": "overBackground"
142
- },
143
- {
144
- "name": "side-label",
145
- "type": {
146
- "text": "boolean"
147
- },
148
- "default": "false",
149
- "fieldName": "sideLabel"
150
- },
151
- {
152
- "name": "progress",
153
- "type": {
154
- "text": "number"
155
- },
156
- "default": "0",
157
- "fieldName": "progress"
158
- },
159
- {
160
- "name": "static-color",
161
- "type": {
162
- "text": "'white' | undefined"
163
- },
164
- "fieldName": "staticColor"
165
- }
166
- ],
167
- "mixins": [
168
- {
169
- "name": "SizedMixin",
170
- "package": "@spectrum-web-components/base"
171
- },
172
- {
173
- "name": "ObserveSlotText",
174
- "package": "@spectrum-web-components/shared/src/observe-slot-text.js"
175
- }
176
- ],
177
- "superclass": {
178
- "name": "SpectrumElement",
179
- "package": "@spectrum-web-components/base"
180
- },
181
- "tagName": "sp-progress-bar",
182
- "customElement": true
183
- }
184
- ],
185
- "exports": [
186
- {
187
- "kind": "js",
188
- "name": "ProgressBar",
189
- "declaration": {
190
- "name": "ProgressBar",
191
- "module": "src/ProgressBar.js"
192
- }
193
- }
194
- ]
195
- }
196
- ]
197
- }
@@ -1,77 +0,0 @@
1
- // @ts-check
2
- /*
3
- Copyright 2023 Adobe. All rights reserved.
4
- This file is licensed to you under the Apache License, Version 2.0 (the 'License');
5
- you may not use this file except in compliance with the License. You may obtain a copy
6
- of the License at http://www.apache.org/licenses/LICENSE-2.0
7
-
8
- Unless required by applicable law or agreed to in writing, software distributed under
9
- the License is distributed on an 'AS IS' BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
10
- OF ANY KIND, either express or implied. See the License for the specific language
11
- governing permissions and limitations under the License.
12
- */
13
-
14
- import {
15
- builder,
16
- converterFor,
17
- } from '../../../tasks/process-spectrum-utils.js';
18
-
19
- const converter = converterFor('spectrum-ProgressBar');
20
-
21
- /**
22
- * @type { import('../../../tasks/spectrum-css-converter').SpectrumCSSConverter }
23
- */
24
- const config = {
25
- conversions: [
26
- {
27
- inPackage: '@spectrum-css/progressbar',
28
- outPackage: 'progress-bar',
29
- fileName: 'progress-bar',
30
- components: [
31
- converter.classToHost(),
32
- converter.classToClass('spectrum-ProgressBar-track'),
33
- converter.classToClass('spectrum-ProgressBar-fill'),
34
- converter.classToClass('spectrum-ProgressBar-label'),
35
- converter.classToClass('spectrum-ProgressBar-percentage'),
36
- converter.classToAttribute(
37
- 'spectrum-ProgressBar--sideLabel',
38
- 'side-label'
39
- ),
40
- converter.classToAttribute('spectrum-ProgressBar-small'),
41
- converter.classToAttribute(
42
- 'spectrum-ProgressBar--indeterminate'
43
- ),
44
- converter.classToAttribute(
45
- 'spectrum-ProgressBar--overBackground',
46
- 'over-background'
47
- ),
48
- converter.classToAttribute('is-positive', 'positive'),
49
- converter.classToAttribute('is-notice', 'notice'),
50
- converter.classToAttribute('is-negative', 'negative'),
51
- // Default to `size='m'` without needing the attribute
52
- converter.classToHost('spectrum-ProgressBar--sizeM'),
53
- ...converter.enumerateAttributes(
54
- [
55
- ['spectrum-ProgressBar--sizeS', 's'],
56
- ['spectrum-ProgressBar--sizeL', 'l'],
57
- ['spectrum-ProgressBar--sizeXL', 'xl'],
58
- ],
59
- 'size'
60
- ),
61
- ...converter.enumerateAttributes(
62
- [
63
- ['spectrum-ProgressBar--staticBlack', 'black'],
64
- ['spectrum-ProgressBar--staticWhite', 'white'],
65
- ],
66
- 'static-color'
67
- ),
68
- ],
69
- excludeByComponents: [
70
- builder.class('spectrum-Meter--sizeS'),
71
- builder.class('spectrum-Meter--sizeL'),
72
- ],
73
- },
74
- ],
75
- };
76
-
77
- export default config;