nuxt-glorious 2.0.0-develop-11 → 2.0.0-develop-13

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.d.mts CHANGED
@@ -33,7 +33,17 @@ interface ModuleOptions {
33
33
  components: {
34
34
  alert: {
35
35
  props: {
36
- color: string;
36
+ color?: string;
37
+ };
38
+ };
39
+ select: {
40
+ props: {
41
+ color?: string;
42
+ size?: 'md';
43
+ disabled?: false;
44
+ required?: false;
45
+ displayTextKey?: 'text';
46
+ keyOfValue?: 'value';
37
47
  };
38
48
  };
39
49
  };
package/dist/module.d.ts CHANGED
@@ -33,7 +33,17 @@ interface ModuleOptions {
33
33
  components: {
34
34
  alert: {
35
35
  props: {
36
- color: string;
36
+ color?: string;
37
+ };
38
+ };
39
+ select: {
40
+ props: {
41
+ color?: string;
42
+ size?: 'md';
43
+ disabled?: false;
44
+ required?: false;
45
+ displayTextKey?: 'text';
46
+ keyOfValue?: 'value';
37
47
  };
38
48
  };
39
49
  };
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-11"
4
+ "version": "2.0.0-develop-13"
5
5
  }
@@ -61,7 +61,11 @@ const firstVal = selectValue.value
61
61
  "
62
62
  :value="firstVal"
63
63
  >
64
- {{ props.placeholder }}
64
+ {{
65
+ props.firstOptionText === ''
66
+ ? props.placeholder
67
+ : props.firstOptionText
68
+ }}
65
69
  </option>
66
70
  <option
67
71
  v-for="(item, index) in props.options"
@@ -1,4 +1,9 @@
1
1
  declare const _default: {
2
+ firstOptionText: {
3
+ required: boolean;
4
+ default: string;
5
+ type: StringConstructor;
6
+ };
2
7
  options: {
3
8
  required: boolean;
4
9
  default: never[];
@@ -20,5 +20,10 @@ export default {
20
20
  ...keyOfValue(),
21
21
  ...error,
22
22
  ...disabled,
23
- ...options
23
+ ...options,
24
+ firstOptionText: {
25
+ required: false,
26
+ default: "",
27
+ type: String
28
+ }
24
29
  };
@@ -1328,13 +1328,30 @@ label.checked {
1328
1328
  .glorious-tooltip {
1329
1329
  @apply relative w-max;
1330
1330
  }
1331
- .glorious-tooltip > .tooltip-slot:hover ~ .tooltip-content {
1332
- @apply opacity-100;
1331
+ .glorious-tooltip .tooltip-slot:hover + .tooltip-content {
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-11",
2
+ "version": "2.0.0-develop-13",
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",