nuxt-glorious 2.0.0-develop-13 → 2.0.0-develop-14

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/dist/module.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "nuxt-glorious",
3
3
  "configKey": "glorious",
4
- "version": "2.0.0-develop-13"
4
+ "version": "2.0.0-develop-14"
5
5
  }
@@ -13,10 +13,13 @@ const computeProps = (icon: any) => {
13
13
  const stroke = getAttribute(props.color, 'icon', 'color')
14
14
 
15
15
  return icon
16
- .replace(/width="(\d+)"/g, `class="g-icon-${props.name}" width="${size}"`)
16
+ .replace(
17
+ /(?<!stroke-)width="(\d+)"/g,
18
+ `class="g-icon-${props.name}" width="${size}"`
19
+ )
20
+ .replace(/stroke="(?!none)([^"]+)"/g, `stroke="${stroke}"`)
17
21
  .replace(/height="(\d+)"/g, `height="${size}"`)
18
22
  .replace(/fill="(?!none)([^"]+)"/g, `fill="${color}"`)
19
- .replace(/stroke="(?!none)([^"]+)"/g, `stroke="${stroke}"`)
20
23
  .replace(/stroke-width="[^"]*"/g, `stroke-width="${strokeWidth}"`)
21
24
  }
22
25
  const changeColorIcon = (color: string) => {
@@ -112,7 +112,7 @@ export const intSize = (def = 20) => ({
112
112
  default: def
113
113
  }
114
114
  });
115
- export const stroke = (def = null) => ({
115
+ export const stroke = (def = 1) => ({
116
116
  stroke: {
117
117
  required: false,
118
118
  type: [Number, null],
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "2.0.0-develop-13",
2
+ "version": "2.0.0-develop-14",
3
3
  "name": "nuxt-glorious",
4
4
  "description": "This package provides many things needed by a project, including server requests and authentication, SEO and other requirements of a project.",
5
5
  "repository": "sajadhzj/nuxt-glorious",