nuxt-glorious 2.0.0-develop-12 → 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-12"
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],
@@ -1329,12 +1329,29 @@ label.checked {
1329
1329
  @apply relative w-max;
1330
1330
  }
1331
1331
  .glorious-tooltip .tooltip-slot:hover + .tooltip-content {
1332
- @apply opacity-100;
1332
+ opacity: 1;
1333
+ display: inline;
1334
+ animation: anim-glorious-tooltip 500ms backwards;
1333
1335
  }
1334
1336
  .glorious-tooltip > .tooltip-content {
1335
- @apply bg-white w-max rounded-lg shadow-md pt-2 px-3 flex absolute bottom-10 opacity-0 transition-all duration-100 ease-in;
1337
+ @apply bg-white w-max rounded-lg shadow-md pt-2 px-3 flex absolute bottom-10 right-0 left-0 mx-auto;
1338
+ display: none;
1339
+ opacity: 0;
1336
1340
  }
1337
1341
 
1342
+ @keyframes anim-glorious-tooltip {
1343
+ 0% {
1344
+ opacity: 0;
1345
+ display: none;
1346
+ }
1347
+ 1% {
1348
+ display: inline-block !important;
1349
+ }
1350
+ 100% {
1351
+ opacity: 1 !important;
1352
+ display: inline-block !important;
1353
+ }
1354
+ }
1338
1355
  .glorious-backdrop {
1339
1356
  @apply backdrop-blur-md fixed top-0 w-full h-full bg-gray-500/50 z-40;
1340
1357
  }
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "2.0.0-develop-12",
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",