vueless 0.0.63 → 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.63",
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
 
@@ -176,7 +178,7 @@ const dynamicComponent = computed(() => {
176
178
  function getIcon(params) {
177
179
  const [, component] = generatedIcons.find(([path]) =>
178
180
  params.every((param) => {
179
- const skipFilled = fill ? true : !path.includes("-fill");
181
+ const skipFilled = fill ? true : !path.includes(FILL_SUFFIX);
180
182
 
181
183
  return skipFilled && path.includes(param);
182
184
  }),
package/web-types.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "framework": "vue",
3
3
  "name": "vueless",
4
- "version": "0.0.63",
4
+ "version": "0.0.64",
5
5
  "contributions": {
6
6
  "html": {
7
7
  "description-markup": "markdown",