@spectrum-web-components/icons-ui 0.42.2 → 0.42.3
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/bin/build.js +69 -63
- package/package.json +6 -6
- package/src/custom-tag.d.ts +2 -2
package/bin/build.js
CHANGED
|
@@ -141,20 +141,22 @@ icons.forEach((i) => {
|
|
|
141
141
|
}
|
|
142
142
|
`;
|
|
143
143
|
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
144
|
+
prettier
|
|
145
|
+
.format(iconLiteral, {
|
|
146
|
+
printWidth: 100,
|
|
147
|
+
tabWidth: 2,
|
|
148
|
+
useTabs: false,
|
|
149
|
+
semi: true,
|
|
150
|
+
singleQuote: true,
|
|
151
|
+
trailingComma: 'all',
|
|
152
|
+
bracketSpacing: true,
|
|
153
|
+
jsxBracketSameLine: false,
|
|
154
|
+
arrowParens: 'avoid',
|
|
155
|
+
parser: 'typescript',
|
|
156
|
+
})
|
|
157
|
+
.then((icon) => {
|
|
158
|
+
fs.writeFileSync(location, icon, 'utf-8');
|
|
159
|
+
});
|
|
158
160
|
|
|
159
161
|
const exportString = `export {${ComponentName}Icon} from './icons/${id}.js';\r\n`;
|
|
160
162
|
fs.appendFileSync(
|
|
@@ -192,31 +194,33 @@ icons.forEach((i) => {
|
|
|
192
194
|
}
|
|
193
195
|
}
|
|
194
196
|
`;
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
197
|
+
prettier
|
|
198
|
+
.format(iconElement, {
|
|
199
|
+
printWidth: 100,
|
|
200
|
+
tabWidth: 2,
|
|
201
|
+
useTabs: false,
|
|
202
|
+
semi: true,
|
|
203
|
+
singleQuote: true,
|
|
204
|
+
trailingComma: 'all',
|
|
205
|
+
bracketSpacing: true,
|
|
206
|
+
jsxBracketSameLine: false,
|
|
207
|
+
arrowParens: 'avoid',
|
|
208
|
+
parser: 'typescript',
|
|
209
|
+
})
|
|
210
|
+
.then((iconElementFile) => {
|
|
211
|
+
fs.writeFileSync(
|
|
212
|
+
path.join(
|
|
213
|
+
rootDir,
|
|
214
|
+
'packages',
|
|
215
|
+
'icons-ui',
|
|
216
|
+
'src',
|
|
217
|
+
'elements',
|
|
218
|
+
`Icon${id}.ts`
|
|
219
|
+
),
|
|
220
|
+
iconElementFile,
|
|
221
|
+
'utf-8'
|
|
222
|
+
);
|
|
223
|
+
});
|
|
220
224
|
|
|
221
225
|
const iconRegistration = `
|
|
222
226
|
${disclaimer}
|
|
@@ -232,30 +236,32 @@ icons.forEach((i) => {
|
|
|
232
236
|
}
|
|
233
237
|
}
|
|
234
238
|
`;
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
239
|
+
prettier
|
|
240
|
+
.format(iconRegistration, {
|
|
241
|
+
printWidth: 100,
|
|
242
|
+
tabWidth: 2,
|
|
243
|
+
useTabs: false,
|
|
244
|
+
semi: true,
|
|
245
|
+
singleQuote: true,
|
|
246
|
+
trailingComma: 'all',
|
|
247
|
+
bracketSpacing: true,
|
|
248
|
+
jsxBracketSameLine: false,
|
|
249
|
+
arrowParens: 'avoid',
|
|
250
|
+
parser: 'typescript',
|
|
251
|
+
})
|
|
252
|
+
.then((iconRegistrationFile) => {
|
|
253
|
+
fs.writeFileSync(
|
|
254
|
+
path.join(
|
|
255
|
+
rootDir,
|
|
256
|
+
'packages',
|
|
257
|
+
'icons-ui',
|
|
258
|
+
'icons',
|
|
259
|
+
`${iconElementName}.ts`
|
|
260
|
+
),
|
|
261
|
+
iconRegistrationFile,
|
|
262
|
+
'utf-8'
|
|
263
|
+
);
|
|
264
|
+
});
|
|
259
265
|
const importStatement = `\r\nimport '@spectrum-web-components/icons-ui/icons/${iconElementName}.js';`;
|
|
260
266
|
const metadata = `{name: '${Case.sentence(
|
|
261
267
|
ComponentName
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@spectrum-web-components/icons-ui",
|
|
3
|
-
"version": "0.42.
|
|
3
|
+
"version": "0.42.3",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -44,9 +44,9 @@
|
|
|
44
44
|
"lit-html"
|
|
45
45
|
],
|
|
46
46
|
"dependencies": {
|
|
47
|
-
"@spectrum-web-components/base": "^0.42.
|
|
48
|
-
"@spectrum-web-components/icon": "^0.42.
|
|
49
|
-
"@spectrum-web-components/iconset": "^0.42.
|
|
47
|
+
"@spectrum-web-components/base": "^0.42.3",
|
|
48
|
+
"@spectrum-web-components/icon": "^0.42.3",
|
|
49
|
+
"@spectrum-web-components/iconset": "^0.42.3"
|
|
50
50
|
},
|
|
51
51
|
"devDependencies": {
|
|
52
52
|
"@spectrum-css/ui-icons": "^1.1.2",
|
|
@@ -55,7 +55,7 @@
|
|
|
55
55
|
"fast-glob": "^3.2.12",
|
|
56
56
|
"fs": "^0.0.1-security",
|
|
57
57
|
"path": "^0.12.7",
|
|
58
|
-
"prettier": "^
|
|
58
|
+
"prettier": "^3.0.0"
|
|
59
59
|
},
|
|
60
60
|
"types": "./src/index.d.ts",
|
|
61
61
|
"customElements": "custom-elements.json",
|
|
@@ -63,5 +63,5 @@
|
|
|
63
63
|
"./src/index.js",
|
|
64
64
|
"./icons/*"
|
|
65
65
|
],
|
|
66
|
-
"gitHead": "
|
|
66
|
+
"gitHead": "a03edce4f21f232f1705d8eb222e6e5436cad4c3"
|
|
67
67
|
}
|
package/src/custom-tag.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { html, TemplateResult } from '@spectrum-web-components/base';
|
|
2
2
|
export type { TemplateResult };
|
|
3
|
-
export
|
|
4
|
-
|
|
3
|
+
export type GenericTemplateLiteralTagType = (strings: TemplateStringsArray, ...values: unknown[]) => string;
|
|
4
|
+
type TemplateLiteralTagType = GenericTemplateLiteralTagType | typeof html;
|
|
5
5
|
export declare const tag: (strings: TemplateStringsArray, ...values: unknown[]) => string | TemplateResult;
|
|
6
6
|
export declare const setCustomTemplateLiteralTag: (tag: TemplateLiteralTagType) => void;
|