nuxt-glorious 0.8.3 → 0.8.6

Sign up to get free protection for your applications and to get access to all the features.
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2024 sajad hosseini zadeh
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/dist/module.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "glorious",
3
3
  "configKey": "glorious",
4
- "version": "0.8.3"
4
+ "version": "0.8.6"
5
5
  }
@@ -4,11 +4,16 @@ const props = defineProps({
4
4
  required: true,
5
5
  type: Object,
6
6
  },
7
+ dir: {
8
+ required: false,
9
+ type: String as () => "rtl" | "ltr",
10
+ default: "rtl",
11
+ },
7
12
  });
8
13
  </script>
9
14
 
10
15
  <template>
11
- <div class="flex gap-1 flex-wrap">
16
+ <div class="flex gap-1 flex-wrap dir-ltr" :dir="props.dir">
12
17
  <div
13
18
  v-for="(item, key, index) in props.items"
14
19
  :key="index"
@@ -32,7 +37,7 @@ const props = defineProps({
32
37
  <GIcon
33
38
  v-if="index !== Object.entries(props.items).length - 1"
34
39
  name="glorious-arrow"
35
- style="rotate: 180deg"
40
+ :style="{ rotate: props.dir === 'rtl' ? '180deg' : '0deg' }"
36
41
  :size="10"
37
42
  color="#6b7280"
38
43
  />
@@ -1,5 +1,5 @@
1
1
  <script lang="ts" setup>
2
- import { watch } from "#imports";
2
+ import { watch, ref } from "#imports";
3
3
  const props = defineProps({
4
4
  currentPage: {
5
5
  required: true,
@@ -60,6 +60,7 @@ const arrowNext = () => {
60
60
  v-if="props.currentPage && props.lastPage !== 1"
61
61
  class="w-max glorious-paginate"
62
62
  >
63
+ ds
63
64
  <div>
64
65
  <GIcon
65
66
  :color="props.currentPage !== 1 ? '#000' : '#cbd5e1'"
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "0.8.3",
2
+ "version": "0.8.6",
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",