@tekkare/auriga 0.1.5 → 0.1.6

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.
@@ -1,30 +1,26 @@
1
1
  <template>
2
- <div class="arg_sidebar">
3
- <div class="arg_sidebar_header">
4
- <nuxt-link to="/" class="arg_sidebar_home">
5
- <arg-icon name="House" color="var(--primary)"/>
6
- <span v-if="lang === 'en'">
7
- Home
8
- </span>
9
- <span v-if="lang === 'fr'">
10
- Accueil
11
- </span>
12
- </nuxt-link>
13
- </div>
14
-
15
- <h1 class="arg_sidebar_title">{{name}}</h1>
16
- <div class="arg_sidebar_body">
17
- <div class="arg_sidebar_content">
18
- <slot name="menu"/>
19
- </div>
20
- <div class="arg_sidebar_footer">
21
- <slot name="footer"/>
22
- </div>
23
- </div>
24
-
25
- <!-- Have a slot here for the submenus -->
26
- <!-- What do i do about the bottom menus. I think they are fixed so I just have to make it dynamic -->
2
+ <div class="arg_sidebar">
3
+ <div class="arg_sidebar_header">
4
+ <nuxt-link to="/" class="arg_sidebar_home">
5
+ <arg-icon name="House" color="var(--primary)" />
6
+ <span v-if="lang === 'en'"> Home </span>
7
+ <span v-if="lang === 'fr'"> Accueil </span>
8
+ </nuxt-link>
27
9
  </div>
10
+
11
+ <h1 class="arg_sidebar_title">{{ name }}</h1>
12
+ <div class="arg_sidebar_body">
13
+ <div class="arg_sidebar_content">
14
+ <slot name="menu" />
15
+ </div>
16
+ <div class="arg_sidebar_footer">
17
+ <slot name="footer" />
18
+ </div>
19
+ </div>
20
+
21
+ <!-- Have a slot here for the submenus -->
22
+ <!-- What do i do about the bottom menus. I think they are fixed so I just have to make it dynamic -->
23
+ </div>
28
24
  </template>
29
25
  <script>
30
26
  import {
@@ -49,66 +45,66 @@ export default defineComponent({
49
45
  });
50
46
  </script>
51
47
  <style scoped>
52
- .arg_sidebar{
53
- display: flex;
54
- width: 200px;
55
- padding: 16px 8px;
56
- flex-direction: column;
57
- align-items: flex-start;
58
- gap: 16px;
59
- border-right: 1px solid var(--base-dividers, #ECECF2);
60
- background: var(--base-not-quite-white, #FDFDFF);
61
- height: 100vh;
62
- position: fixed;
63
- z-index: 100;
64
- transition: all ease 0.3s;
65
- left: 0;
66
- top: 0;
67
- box-sizing: border-box;
48
+ .arg_sidebar {
49
+ display: flex;
50
+ width: 200px;
51
+ padding: 16px 8px;
52
+ flex-direction: column;
53
+ align-items: flex-start;
54
+ gap: 16px;
55
+ border-right: 1px solid var(--base-dividers, #ececf2);
56
+ background: var(--background);
57
+ height: 100vh;
58
+ position: fixed;
59
+ z-index: 100;
60
+ transition: all ease 0.3s;
61
+ left: 0;
62
+ top: 0;
63
+ box-sizing: border-box;
68
64
  }
69
- .arg_sidebar_header{
70
- display: flex;
71
- justify-content: space-between;
72
- align-items: flex-start;
73
- align-self: stretch;
65
+ .arg_sidebar_header {
66
+ display: flex;
67
+ justify-content: space-between;
68
+ align-items: flex-start;
69
+ align-self: stretch;
74
70
  }
75
- .arg_sidebar_home{
76
- display: flex;
77
- height: 32px;
78
- padding: 6px;
79
- align-items: center;
80
- gap: 6px;
81
- font-size: 14px;
82
- font-style: normal;
83
- font-weight: 400;
84
- line-height: 160%;
85
- color: var(--primary);
71
+ .arg_sidebar_home {
72
+ display: flex;
73
+ height: 32px;
74
+ padding: 6px;
75
+ align-items: center;
76
+ gap: 6px;
77
+ font-size: 14px;
78
+ font-style: normal;
79
+ font-weight: 400;
80
+ line-height: 160%;
81
+ color: var(--primary);
86
82
  }
87
- .arg_sidebar_title{
88
- display: flex;
89
- padding: 0px 8px;
90
- flex-direction: column;
91
- justify-content: center;
92
- align-items: flex-start;
93
- gap: 8px;
94
- align-self: stretch;
95
- font-size: 20px;
96
- font-style: normal;
97
- font-weight: 900;
98
- line-height: normal;
99
- margin-bottom: 16px;
83
+ .arg_sidebar_title {
84
+ display: flex;
85
+ padding: 0px 8px;
86
+ flex-direction: column;
87
+ justify-content: center;
88
+ align-items: flex-start;
89
+ gap: 8px;
90
+ align-self: stretch;
91
+ font-size: 20px;
92
+ font-style: normal;
93
+ font-weight: 900;
94
+ line-height: normal;
95
+ margin-bottom: 16px;
100
96
  }
101
- .arg_sidebar_body{
102
- display: flex;
103
- flex-direction: column;
104
- justify-content: space-between;
105
- height: 100%;
106
- gap: 16px;
107
- width: 100%;
97
+ .arg_sidebar_body {
98
+ display: flex;
99
+ flex-direction: column;
100
+ justify-content: space-between;
101
+ height: 100%;
102
+ gap: 16px;
103
+ width: 100%;
108
104
  }
109
- .arg_sidebar_content{
110
- display: flex;
111
- flex-direction: column;
112
- gap: 8px;
105
+ .arg_sidebar_content {
106
+ display: flex;
107
+ flex-direction: column;
108
+ gap: 8px;
113
109
  }
114
- </style>
110
+ </style>
@@ -60,7 +60,7 @@ export default defineComponent({
60
60
  gap: 4px;
61
61
  border: 1.5px solid var(--dividers);
62
62
  border-radius: 8px;
63
- background: var(--not-quite-white);
63
+ background: var(--pure-white);
64
64
  position: relative;
65
65
  }
66
66
 
@@ -22,7 +22,7 @@ export default defineComponent({
22
22
  --lavendar-grey: #cdcede;
23
23
  --more: #dedfe9;
24
24
  --dividers: #eaeaf5;
25
-
25
+
26
26
  /* PRIMARY */
27
27
  --primary: #2176ff;
28
28
  --primary-hover: #0966fb;
@@ -62,7 +62,7 @@ export default defineComponent({
62
62
  --nested-table-bg: #eaeaf5;
63
63
  --table-hover: #dddded;
64
64
  --base-dividers: #ececf2;
65
- --base-not-quite-white: #FDFDFF;
65
+ --not-quite-white: #fdfdff;
66
66
 
67
67
  /*SHADOWS*/
68
68
  --container-shadow: 0px 0px 40px rgba(94, 92, 154, 0.06);
@@ -981,13 +981,13 @@ button {
981
981
  gap: 10px;
982
982
  flex-wrap: wrap;
983
983
  }
984
- .arg_sub_menu .arg_sub_menu .arg_sub_menu_button{
985
- padding-left: 24px !important;
984
+ .arg_sub_menu .arg_sub_menu .arg_sub_menu_button {
985
+ padding-left: 24px !important;
986
986
  }
987
- .arg_sub_menu .arg_sub_menu .auriga_menu_item{
987
+ .arg_sub_menu .arg_sub_menu .auriga_menu_item {
988
988
  padding-left: 40px !important;
989
989
  }
990
- .arg_sub_menu .auriga_menu_item{
990
+ .arg_sub_menu .auriga_menu_item {
991
991
  padding-left: 24px !important;
992
992
  }
993
993
  </style>
@@ -1,40 +1,45 @@
1
1
  <template>
2
- <div
3
- @click="changeValue"
4
- class="prmt_parent_switch"
5
- @focus="activate_switch = true"
6
- @focusout="activate_switch = false"
7
- tabindex="0"
8
- :class="activate_switch ? 'open' : ''"
9
- >
2
+ <div class="oip_select_display">
3
+ <p class="oip_filter_label">{{ switch_label }}</p>
10
4
  <div
11
- :class="[
12
- 'prmt_switch_text',
13
- true_is_active ? 'prmt_switch_is_active' : 'prmt_switch_is_inactive',
14
- ]"
15
- >
16
- {{ active_text }}
17
- </div>
18
- <div
19
- :class="[
20
- 'prmt_switch',
21
- true_is_active ? 'prmt_switch_is_active' : 'prmt_switch_is_inactive',
22
- ]"
5
+ @click="changeValue"
6
+ class="prmt_parent_switch"
7
+ @focus="activate_switch = true"
8
+ @focusout="activate_switch = false"
9
+ tabindex="0"
10
+ :class="activate_switch ? 'open' : ''"
23
11
  >
24
12
  <div
25
13
  :class="[
26
- 'prmt_switch_round',
14
+ 'prmt_switch_text',
27
15
  true_is_active ? 'prmt_switch_is_active' : 'prmt_switch_is_inactive',
28
16
  ]"
29
- ></div>
30
- </div>
31
- <div
32
- :class="[
33
- 'prmt_switch_text',
34
- true_is_active ? 'prmt_switch_is_inactive' : 'prmt_switch_is_active',
35
- ]"
36
- >
37
- {{ inactive_text }}
17
+ >
18
+ {{ active_text }}
19
+ </div>
20
+ <div
21
+ :class="[
22
+ 'prmt_switch',
23
+ true_is_active ? 'prmt_switch_is_active' : 'prmt_switch_is_inactive',
24
+ ]"
25
+ >
26
+ <div
27
+ :class="[
28
+ 'prmt_switch_round',
29
+ true_is_active
30
+ ? 'prmt_switch_is_active'
31
+ : 'prmt_switch_is_inactive',
32
+ ]"
33
+ ></div>
34
+ </div>
35
+ <div
36
+ :class="[
37
+ 'prmt_switch_text',
38
+ true_is_active ? 'prmt_switch_is_inactive' : 'prmt_switch_is_active',
39
+ ]"
40
+ >
41
+ {{ inactive_text }}
42
+ </div>
38
43
  </div>
39
44
  </div>
40
45
  </template>
@@ -50,7 +55,8 @@ export default defineComponent({
50
55
  props: {
51
56
  active_text: { type: String, required: true },
52
57
  inactive_text: { type: String, required: true },
53
- is_active: { type: Boolean, default: true }
58
+ is_active: { type: Boolean, default: true },
59
+ switch_label: { type: String, required: true }
54
60
  },
55
61
  emits: ["changeValue", "update:Switch"],
56
62
  setup(props, { emit }) {
@@ -102,7 +108,7 @@ export default defineComponent({
102
108
  .prmt_switch {
103
109
  transition: all 300ms ease;
104
110
  width: 36px;
105
- height: 21px;
111
+ height: 18px;
106
112
  border-radius: 35.7px;
107
113
  padding: 0 2px;
108
114
  }
@@ -125,7 +131,6 @@ export default defineComponent({
125
131
 
126
132
  .prmt_switch_round {
127
133
  transition: all 300ms ease;
128
- margin-top: 2px;
129
134
  margin-bottom: 2px;
130
135
  background-color: var(--pure-white);
131
136
  border: solid 0.5px var(--more);
@@ -11,6 +11,10 @@ declare const _default: import("vue").DefineComponent<{
11
11
  type: BooleanConstructor;
12
12
  default: boolean;
13
13
  };
14
+ switch_label: {
15
+ type: StringConstructor;
16
+ required: true;
17
+ };
14
18
  }, {
15
19
  changeValue: () => void;
16
20
  activate_switch: import("vue").Ref<boolean>;
@@ -28,6 +32,10 @@ declare const _default: import("vue").DefineComponent<{
28
32
  type: BooleanConstructor;
29
33
  default: boolean;
30
34
  };
35
+ switch_label: {
36
+ type: StringConstructor;
37
+ required: true;
38
+ };
31
39
  }>> & {
32
40
  onChangeValue?: ((...args: any[]) => any) | undefined;
33
41
  "onUpdate:Switch"?: ((...args: any[]) => any) | undefined;