vueless 0.0.62 → 0.0.64

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": "vueless",
3
- "version": "0.0.62",
3
+ "version": "0.0.64",
4
4
  "license": "MIT",
5
5
  "description": "Vue Styleless Component Framework.",
6
6
  "homepage": "https://vueless.com",
@@ -157,10 +157,12 @@ if (import.meta.env.PROD) {
157
157
  }
158
158
 
159
159
  const dynamicComponent = computed(() => {
160
+ const FILL_SUFFIX = "-fill";
161
+
160
162
  const library = config.value.defaultVariants.library;
161
163
  const weight = config.value.defaultVariants.weight;
162
164
  const style = config.value.defaultVariants.style;
163
- const fill = props.fill || config.value.defaultVariants.fill ? "-fill" : "";
165
+ const fill = props.fill || config.value.defaultVariants.fill ? FILL_SUFFIX : "";
164
166
  const name = props.name;
165
167
  const src = props.src;
166
168
 
@@ -175,7 +177,11 @@ const dynamicComponent = computed(() => {
175
177
 
176
178
  function getIcon(params) {
177
179
  const [, component] = generatedIcons.find(([path]) =>
178
- params.every((param) => path.includes(param)),
180
+ params.every((param) => {
181
+ const skipFilled = fill ? true : !path.includes(FILL_SUFFIX);
182
+
183
+ return skipFilled && path.includes(param);
184
+ }),
179
185
  );
180
186
 
181
187
  return component;
package/web-types.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "framework": "vue",
3
3
  "name": "vueless",
4
- "version": "0.0.62",
4
+ "version": "0.0.64",
5
5
  "contributions": {
6
6
  "html": {
7
7
  "description-markup": "markdown",