@ethlete/components 1.0.0-next.21 → 1.0.0-next.23
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/CHANGELOG.md +200 -0
- package/fesm2022/ethlete-components.mjs +20753 -8152
- package/fesm2022/ethlete-components.mjs.map +1 -1
- package/generators/icons/generator.js +3 -4
- package/package.json +2 -1
- package/types/ethlete-components.d.ts +6605 -2608
|
@@ -145,6 +145,8 @@ function generateIconsFile(icons, schema, source) {
|
|
|
145
145
|
*/
|
|
146
146
|
import type { IconDefinition } from '@ethlete/components';
|
|
147
147
|
`;
|
|
148
|
+
// Deliberately no aggregate "all icons" export: importing one would register every icon
|
|
149
|
+
// and defeat tree shaking. Icons are meant to be imported and provided individually.
|
|
148
150
|
const consts = icons
|
|
149
151
|
.map((icon) => `export const ${constName(icon.name, icon.variant)}: IconDefinition = {\n` +
|
|
150
152
|
` name: '${icon.name}',\n` +
|
|
@@ -152,10 +154,7 @@ import type { IconDefinition } from '@ethlete/components';
|
|
|
152
154
|
` data: \`${icon.data}\`,\n` +
|
|
153
155
|
`};`)
|
|
154
156
|
.join('\n\n');
|
|
155
|
-
|
|
156
|
-
.map((icon) => ` ${constName(icon.name, icon.variant)},`)
|
|
157
|
-
.join('\n')}\n] as const;`;
|
|
158
|
-
return `${header}\n${consts}\n\n${aggregate}\n`;
|
|
157
|
+
return `${header}\n${consts}\n`;
|
|
159
158
|
}
|
|
160
159
|
function generateTypesFile(icons, schema) {
|
|
161
160
|
const names = [...new Set(icons.map((i) => i.name))]
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ethlete/components",
|
|
3
|
-
"version": "1.0.0-next.
|
|
3
|
+
"version": "1.0.0-next.23",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"peerDependencies": {
|
|
@@ -15,6 +15,7 @@
|
|
|
15
15
|
"@ethlete/query": "^6.0.0-beta.8",
|
|
16
16
|
"@floating-ui/dom": "1.7.6",
|
|
17
17
|
"@nx/devkit": "23.1.0-beta.7",
|
|
18
|
+
"date-fns": "4.1.0",
|
|
18
19
|
"rxjs": "7.8.2"
|
|
19
20
|
},
|
|
20
21
|
"peerDependenciesMeta": {
|