nuxt-glorious 1.2.1-4 → 1.2.1-5

Sign up to get free protection for your applications and to get access to all the features.
package/dist/module.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "glorious",
3
3
  "configKey": "glorious",
4
- "version": "1.2.1-4"
4
+ "version": "1.2.1-5"
5
5
  }
@@ -0,0 +1,18 @@
1
+ .glorious-alert {
2
+ @apply p-3 rounded shadow;
3
+ }
4
+ .glorious-alert.color-orange {
5
+ @apply border border-orange-300 bg-orange-100;
6
+ }
7
+ .glorious-alert.color-blue {
8
+ @apply border border-blue-300 bg-blue-100;
9
+ }
10
+ .glorious-alert.color-gray {
11
+ @apply border border-gray-300 bg-gray-100;
12
+ }
13
+ .glorious-alert.color-red {
14
+ @apply border border-red-300 bg-red-100;
15
+ }
16
+ .glorious-alert.color-green {
17
+ @apply border border-green-300 bg-green-100;
18
+ }
@@ -1,5 +1,5 @@
1
1
  .glorious-breadcrumb {
2
- @apply text-sm;
2
+ @apply text-xs;
3
3
  }
4
4
  .glorious-breadcrumb .end-text {
5
5
  @apply font-bold;
@@ -0,0 +1,36 @@
1
+ <script lang="ts" setup>
2
+ const props = defineProps({
3
+ color: {
4
+ required: false,
5
+ default: "blue",
6
+ type: String as () => "orange" | "blue" | "gray" | "red" | "green",
7
+ },
8
+ });
9
+ </script>
10
+
11
+ <template>
12
+ <div class="glorious-alert" :class="[`color-${props.color}`]">
13
+ <slot />
14
+ </div>
15
+ </template>
16
+
17
+ <style>
18
+ .glorious-alert {
19
+ @apply p-3 rounded shadow;
20
+ }
21
+ .glorious-alert.color-orange {
22
+ @apply border border-orange-300 bg-orange-100;
23
+ }
24
+ .glorious-alert.color-blue {
25
+ @apply border border-blue-300 bg-blue-100;
26
+ }
27
+ .glorious-alert.color-gray {
28
+ @apply border border-gray-300 bg-gray-100;
29
+ }
30
+ .glorious-alert.color-red {
31
+ @apply border border-red-300 bg-red-100;
32
+ }
33
+ .glorious-alert.color-green {
34
+ @apply border border-green-300 bg-green-100;
35
+ }
36
+ </style>
@@ -1,8 +1,8 @@
1
1
  <script lang="ts" setup>
2
2
  interface breadcrumbInterface {
3
3
  text: String;
4
- icon: String;
5
- to: String;
4
+ icon?: String;
5
+ to?: String;
6
6
  }
7
7
 
8
8
  const props = defineProps({
@@ -47,7 +47,7 @@ const props = defineProps({
47
47
 
48
48
  <style>
49
49
  .glorious-breadcrumb {
50
- @apply text-sm;
50
+ @apply text-xs;
51
51
  }
52
52
  .glorious-breadcrumb .end-text {
53
53
  @apply font-bold;
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "1.2.1-4",
2
+ "version": "1.2.1-5",
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",