@tekkare/auriga 0.2.128 → 0.2.130

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
@@ -4,5 +4,5 @@
4
4
  "compatibility": {
5
5
  "nuxt": "^3.0.0"
6
6
  },
7
- "version": "0.2.128"
7
+ "version": "0.2.130"
8
8
  }
@@ -4,17 +4,25 @@
4
4
  class="auriga_menu_item"
5
5
  activeClass="is-active"
6
6
  :target="newTab ? '_blank' : '_self'"
7
+ :class="loading ? 'loading' : ''"
7
8
  >
9
+ <span v-if="loading" class="loader" />
8
10
  <arg-tooltip
11
+ v-else
9
12
  :tooltip-text="label"
10
13
  :disable="sidebarOpen"
11
14
  dir="right"
12
15
  :class="['tooltip_display', sidebarOpen ? '' : 'menu_tooltip_icon']"
13
16
  >
14
- <arg-icon :name="icon" v-if="icon" size="20" />
17
+ <arg-icon :name="icon" v-if="icon && !loading" size="20" />
15
18
  </arg-tooltip>
16
- <arg-flag :iso="countryIso" v-if="countryIso" emoji height="14" />
17
- <span v-show="sidebarOpen">{{ label }}</span>
19
+ <arg-flag
20
+ :iso="countryIso"
21
+ v-if="countryIso && !loading"
22
+ emoji
23
+ height="14"
24
+ />
25
+ <span v-show="sidebarOpen && !loading">{{ label }}</span>
18
26
  </NuxtLink>
19
27
  </template>
20
28
  <script>
@@ -56,10 +64,11 @@ export default defineComponent({
56
64
  }
57
65
  },
58
66
  label: { type: String, required: true },
59
- newTab: { type: Boolean || void 0, default: false }
67
+ newTab: { type: Boolean || void 0, default: false },
68
+ loading: { type: Boolean, default: false }
60
69
  }
61
70
  });
62
71
  </script>
63
72
  <style scoped>
64
- .auriga_menu_item{align-items:center;align-self:stretch;border-radius:4px;color:var(--darkest);display:flex;font-size:14px;font-style:normal;font-weight:400;gap:8px;line-height:160%;padding:8px}.auriga_menu_item svg{color:var(--dark)!important}.auriga_menu_item.is-active svg,.auriga_menu_item:hover:not(.is-active) svg{color:var(--primary,#2176ff)!important}.auriga_menu_item.is-active{background:rgba(33,118,255,.1)!important}.auriga_menu_item:hover:not(.is-active){background:var(--light,#ececf2)}.menu_tooltip_icon{flex:1 1 100%}.tooltip_display{display:flex!important}
73
+ .auriga_menu_item{align-items:center;align-self:stretch;border-radius:4px;color:var(--darkest);display:flex;font-size:14px;font-style:normal;font-weight:400;gap:8px;line-height:160%}.auriga_menu_item:not(.loading){padding:8px}.auriga_menu_item.loading{height:36px}.auriga_menu_item svg{color:var(--dark)!important}.auriga_menu_item.is-active svg,.auriga_menu_item:hover:not(.is-active) svg{color:var(--primary,#2176ff)!important}.auriga_menu_item.is-active{background:rgba(33,118,255,.1)!important}.auriga_menu_item:hover:not(.is-active){background:var(--light,#ececf2)}.menu_tooltip_icon{flex:1 1 100%}.tooltip_display{display:flex!important}.loading .loader{background:var(--lightest);border:1px solid var(--lightest);overflow:hidden;position:relative}.loading .loader,.loading .loader:after{border-radius:4px;height:100%;width:calc(100% - 2px)}.loading .loader:after{animation:shimmer 1.5s infinite;background:linear-gradient(90deg,rgba(219,222,240,0),rgba(219,222,240,.6) 50%,rgba(219,222,240,0));content:"";left:-2px;position:absolute;top:0}@keyframes shimmer{0%{left:-100%}to{left:100%}}
65
74
  </style>
@@ -24,6 +24,10 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
24
24
  type: BooleanConstructor;
25
25
  default: boolean;
26
26
  };
27
+ loading: {
28
+ type: BooleanConstructor;
29
+ default: boolean;
30
+ };
27
31
  }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
28
32
  to: {
29
33
  type: StringConstructor;
@@ -50,7 +54,12 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
50
54
  type: BooleanConstructor;
51
55
  default: boolean;
52
56
  };
57
+ loading: {
58
+ type: BooleanConstructor;
59
+ default: boolean;
60
+ };
53
61
  }>> & Readonly<{}>, {
62
+ loading: boolean;
54
63
  newTab: boolean;
55
64
  }, {}, {
56
65
  argIcon: any;
@@ -214,6 +214,8 @@ export default defineComponent({
214
214
  return "uk";
215
215
  } else if (name === "poland") {
216
216
  return "republic-of-poland";
217
+ } else if (name === "south korea") {
218
+ return "south-korea";
217
219
  } else return name;
218
220
  }
219
221
  const sourceContent = computed(() => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tekkare/auriga",
3
- "version": "0.2.128",
3
+ "version": "0.2.130",
4
4
  "description": "Aurgia is a UI kit developped by Tekkare",
5
5
  "license": "MIT",
6
6
  "type": "module",